/* Shared theme tokens come from /styles.css; page layout stays in normal flow. */
.dictionary-page { min-height: 100dvh; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.dictionary-page a { color: var(--link-blue); }
.dictionary-page :is(a, button, input, select):focus-visible { outline: 3px solid var(--link-blue); outline-offset: 3px; }
.dict-skip { position: absolute; top: -80px; left: 16px; padding: 10px; background: var(--paper); z-index: 1; }
.dict-skip:focus { top: 10px; }
.dict-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px max(16px, calc((100% - 960px) / 2)); border-bottom: 1px solid var(--line); background: var(--panel); }
.dict-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 19px; font-weight: 700; }
.dict-brand span { font-size: 12px; font-weight: 400; }
.dict-theme { display: grid; gap: 4px; font-size: 12px; color: var(--fg-2); }
.dict-theme select { max-width: 130px; padding: 6px; color: var(--fg); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.dict-main { max-width: 800px; margin: 0 auto; padding: 44px 24px 64px; }
.dict-intro { margin-bottom: 28px; }
.dict-eyebrow { font-size: 12px; letter-spacing: 2px; color: var(--fg-2); }
.dict-intro h1 { font-size: clamp(28px, 5vw, 36px); letter-spacing: 3px; margin: 8px 0 12px; }
.dict-intro > p:last-child { color: var(--fg-2); }
.dict-search label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.dict-search-row { display: flex; gap: 10px; }
.dict-search input { min-width: 0; flex: 1; padding: 13px 14px; border: 1px solid var(--accent); border-radius: 10px; background: var(--paper); color: var(--fg); font: 16px var(--sans); }
.dictionary-page button { min-height: 44px; padding: 10px 20px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 15px; }
.dictionary-page button:disabled { opacity: .6; cursor: wait; }
.dictionary-page .dict-secondary { background: var(--paper); color: var(--link-blue); border-color: var(--line); }
#dictionaryHint { color: var(--fg-2); font-size: 12px; line-height: 1.6; }
.dict-status { color: var(--fg-2); font-size: 14px; line-height: 1.7; margin: 24px 0 12px; }
.dict-main :is(p, h2, span, mark) { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .dict-main { padding: 28px 16px 44px; }
  .dict-header { padding: 12px 16px; gap: 8px; }
  .dict-brand { gap: 8px; font-size: 17px; }
  .dict-brand span { display: none; }
  .dict-card { padding: 18px; }
  .dictionary-page button { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) { .dictionary-page { transition: none; } }
