:root {
  color-scheme: dark;
  --canvas: #0a121c;
  --surface: #131f2b;
  --ink: #f0f7fa;
  --muted: #a0aebc;
  --accent: #33d9de;
  --line: #2a3948;
  --selection: #1b2c3b;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif; font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 6px; }
::selection { color: var(--ink); background: #255b65; }
.skip { position: absolute; left: 20px; top: -100px; padding: 10px 16px; background: var(--ink); color: var(--canvas); z-index: 10; border-radius: 12px; }
.skip:focus { top: 8px; }
.site-header, .site-footer, main, .draft-notice { width: min(100% - 80px, 1104px); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--rounded); font-size: 30px; font-weight: 900; letter-spacing: -1.1px; line-height: 1; }
.brand-mark { display: block; width: 48px; height: 48px; border-radius: 14px; }
.site-header nav { display: flex; gap: 4px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 100px; font-size: 13px; }
.site-header nav a { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 18px; border-radius: 100px; color: var(--muted); text-decoration: none; transition: background .16s ease, color .16s ease; }
.site-header nav a:hover { background: var(--selection); color: var(--ink); }
.site-header nav a[aria-current="page"] { color: var(--ink); background: var(--selection); font-weight: 650; }
.draft-notice { display: flex; align-items: baseline; gap: 10px; background: var(--surface); color: var(--muted); font-size: 12px; padding: 13px 18px; margin-top: 4px; border-radius: 14px; }
.draft-notice strong { color: var(--ink); white-space: nowrap; font-weight: 600; }
.draft-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 6px; align-self: center; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 12px; font-weight: 650; letter-spacing: .06em; }
h1, h2, h3 { line-height: 1.5; overflow-wrap: anywhere; }
h1 { font-family: var(--rounded); font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; margin: 0 0 20px; font-weight: 850; }
h2 { font-size: 24px; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 750; }
.keep-together { white-space: nowrap; }
.lead { font-size: 17px; color: var(--muted); line-height: 1.95; }
.direction { color: var(--accent); font-size: 11px; padding: 5px 10px; background: #33d9de0d; border-radius: 100px; white-space: nowrap; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.plan { border: 1px solid var(--line); padding: 30px; border-radius: 26px; }
.pro-plan { background: var(--surface); border-color: #347076; }
.plan-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.plan-heading h3 { margin: 0; font-family: var(--rounded); font-size: 20px; font-weight: 800; }
.plan-heading > span { font-size: 11px; color: var(--muted); }
.pro-badge { display: inline-block; vertical-align: middle; padding: 2px 9px; margin-left: 5px; border-radius: 100px; color: var(--canvas); background: var(--ink); font-size: 11px; font-weight: 850; letter-spacing: .03em; }
.plan-heading .plan-status { color: var(--accent); font-size: 10px; padding: 4px 10px; border-radius: 100px; background: #33d9de0d; }
.plan .quota { margin: 24px 0 12px; font-size: 15px; color: var(--ink); }
.quota strong { font-family: var(--rounded); font-size: 54px; font-weight: 850; line-height: 1; letter-spacing: -1.5px; margin-right: 6px; }
.pro-plan .quota strong { color: var(--accent); }
.quota > span { color: var(--muted); font-size: 12px; margin-left: 5px; }
.plan > p:not(.quota) { font-size: 13px; margin: 0; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 14px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 26px; }
.plan-price > strong { font-family: var(--rounded); font-size: 25px; font-weight: 800; }
.plan-price > strong > span { color: var(--muted); font-size: 12px; font-weight: 500; margin-left: 4px; }
.plan-price > span { font-size: 12px; color: var(--muted); }
.plan-notes { display: flex; align-items: flex-start; gap: 38px; margin-top: 20px; }
.fine-print { color: var(--muted); font-size: 11px; }
.plan-notes p { flex: 1; margin: 0; }
.plan-notes > a { font-size: 12px; white-space: nowrap; }
.document { max-width: 840px; margin: 44px auto 72px; padding: 44px 52px; border-radius: 30px; background: var(--surface); }
.document > .eyebrow { margin-bottom: 10px; }
.document h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 16px; }
.updated { color: var(--muted); font-size: 11px; margin-top: 0; }
.document section { margin-top: 38px; padding-top: 32px; border-top: 1px solid var(--line); }
.document h2 { font-size: 20px; margin-bottom: 16px; letter-spacing: -.025em; }
.document h3 { font-size: 15px; margin: 26px 0 8px; }
.document p { margin: 10px 0 18px; font-size: 15px; line-height: 1.95; overflow-wrap: anywhere; }
.document .updated { font-size: 11px; }
.document .lead { font-size: 16px; margin: 25px 0 18px; }
.document > p:not(.lead):not(.eyebrow):not(.updated) { color: var(--muted); }
.contents { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; margin: 25px 0 32px; }
.contents > a { padding: 8px 13px; border-radius: 100px; color: var(--ink); background: var(--selection); text-decoration: none; }
.contents > a:hover { color: var(--accent); }
.provider-list { margin: 0; }
.provider-list > div { margin: 25px 0; }
.provider-list dt { font-weight: 700; font-size: 15px; }
.provider-list dd { margin: 8px 0 0; font-size: 15px; line-height: 1.95; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; background: var(--canvas); font-size: 12px; line-height: 1.9; }
caption { text-align: left; padding: 15px 18px; font-weight: 600; background: var(--selection); }
th, td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
thead th { background: var(--selection); color: var(--muted); font-size: 11px; font-weight: 600; }
tbody th { width: 30%; min-width: 100px; font-weight: 600; }
tbody td { min-width: 80px; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
.document .faq { margin-top: 28px; padding-top: 26px; }
.faq h2 { font-size: 17px; }
.document .contact-box { background: var(--canvas); border: 1px solid var(--line); border-radius: 20px; padding: 25px 28px; }
.document .fine-print { font-size: 12px; color: var(--muted); }
.site-footer { display: flex; align-items: center; gap: 24px; justify-content: space-between; border-top: 1px solid var(--line); padding: 28px 0 38px; color: var(--muted); font-size: 11px; }
.site-footer > div { display: flex; align-items: center; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer .footer-brand { color: var(--ink); text-decoration: none; font-family: var(--rounded); font-size: 22px; font-weight: 850; letter-spacing: -.8px; }
@media (max-width: 1000px) {
  .site-footer { align-items: flex-start; }
  .site-footer > div { align-items: flex-start; flex-direction: column; gap: 5px; }
}
@media (max-width: 760px) {
  .site-header, .site-footer, main, .draft-notice { width: calc(100% - 40px); }
  .site-header { align-items: flex-start; gap: 20px; flex-direction: column; padding: 24px 0 20px; }
  .brand { font-size: 30px; }
  .brand-mark { width: 44px; height: 44px; }
  .site-header nav { width: 100%; font-size: 12px; }
  .site-header nav > a { flex: 1; min-width: 0; padding: 6px 10px; }
  .draft-notice { flex-wrap: wrap; gap: 0 8px; padding: 13px 16px; font-size: 11px; }
  .draft-notice > span:last-child { flex-basis: 100%; padding-left: 14px; margin-top: 3px; }
  .draft-dot { align-self: auto; margin-top: 7px; }
  .plan-grid { grid-template-columns: 1fr; gap: 14px; }
  .plan { padding: 25px; border-radius: 24px; }
  .plan-price { flex-wrap: wrap; gap: 4px 14px; }
  .plan-notes { flex-direction: column; gap: 14px; }
  .document { margin: 28px auto 44px; padding: 27px 22px; border-radius: 24px; }
  .document h1 { font-size: clamp(24px, 7vw, 27px); }
  .document .lead { font-size: 15px; margin-top: 22px; }
  .document p, .provider-list dd { font-size: 14px; }
  .document section { margin-top: 30px; padding-top: 25px; }
  .document h2 { font-size: 18px; }
  .contents { gap: 7px; margin-bottom: 25px; }
  .contents > a { padding: 7px 10px; font-size: 10px; }
  th, td { padding: 12px; }
  .document .contact-box { padding: 20px; }
  .site-footer { flex-direction: column; gap: 22px; padding-bottom: 30px; }
  .site-footer .footer-info { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header nav a, .primary-link, .link-card { transition: none; }
}

[hidden] { display: none !important; }
button, input, summary { font: inherit; }
button, summary { cursor: pointer; }
button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
button:disabled { cursor: default; opacity: .5; }
.app-demo { --canvas: #0a121c; --surface: #131f2b; --ink: #f0f7fa; --accent: #33d9de; --line: #2a3948; --selection: #1b2c3b; color: var(--ink); color-scheme: dark; --app-muted: #92959c; --app-selection: #1c1c1e; position: relative; width: min(100%, 430px); height: 760px; margin-inline: auto; background: var(--canvas); border: 2px solid #34414e; border-radius: 36px; overflow: hidden; box-shadow: 0 22px 70px #00000040; line-height: 1.4; scroll-margin-top: 26px; }
.app-demo button { color: var(--ink); border: 0; background: transparent; }
.app-demo button:focus-visible, .app-demo input:focus-visible, .app-demo select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.demo-reader { height: 100%; display: flex; flex-direction: column; color: #302d29; background: #f5f2e9; }
.reader-header { min-height: 72px; display: flex; align-items: center; gap: 10px; padding: 16px 24px; border-bottom: 1px solid #302d2914; font-size: 12px; color: #746f63; }
.reader-type { margin-left: auto; font-family: Georgia, serif; font-size: 22px; color: #302d29; }
.reader-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 34px 28px; }
.reader-chapter { font-size: 10px; font-weight: 650; letter-spacing: 2px; color: #82775f; }
.demo-reader h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 32px; font-weight: 400; line-height: 1.2; letter-spacing: -.7px; margin: 14px 0 28px; }
.reader-prose { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; line-height: 1.8; }
.reader-prose p + p { margin-top: 22px; }
.reader-word-wrap { position: relative; display: inline-block; }
.app-demo .reader-word { min-height: 44px; padding: 0 3px; margin: -5px -3px; font-family: inherit; font-size: inherit; line-height: inherit; text-align: left; color: #302d29; background: #e8d8aa; border-radius: 4px; text-decoration: underline; text-decoration-color: #b29a5e; text-underline-offset: 4px; }
.app-demo .reader-word[aria-pressed='true'] { background: #a8ceef; text-decoration: none; }
.reader-selection-menu { position: absolute; z-index: 1; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%); }
.reader-selection-menu::after { content: ''; position: absolute; top: 100%; left: calc(50% - 6px); border: 6px solid transparent; border-top-color: #302d29; }
.app-demo .reader-selection-menu button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border-radius: 12px; background: #302d29; color: #fff; font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 15px; white-space: nowrap; box-shadow: 0 5px 16px #00000026; }
.reader-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 14px 24px; color: #746f63; font-size: 10px; border-top: 1px solid #302d2914; }
.reader-footer > span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.demo-share-menu { position: absolute; inset: 0; display: flex; align-items: flex-end; background: #00000065; z-index: 2; }
.share-menu-sheet { width: 100%; padding: 10px 24px 32px; border-radius: 28px 28px 0 0; background: #242428; box-shadow: 0 -10px 40px #00000026; }
.share-menu-handle { width: 36px; height: 5px; border-radius: 5px; background: #78787e; margin: 0 auto 18px; }
.share-menu-sheet > header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #ffffff14; }
.share-menu-sheet h2 { font-size: 20px; font-weight: 650; margin: 0 0 5px; }
.share-menu-sheet p { font-size: 12px; color: #b4b4bc; }
.app-demo .share-menu-sheet .app-close { width: 44px; height: 44px; border-radius: 50%; color: #b4b4bc; background: #38383d; }
.app-demo .share-menu-app { display: grid; justify-items: center; gap: 9px; min-width: 84px; margin: 24px 0 0; padding: 0 8px; font-size: 12px; }
.share-menu-app img { display: block; border-radius: 14px; }
.app-share-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px 12px; }
.app-share-scrim { position: absolute; inset: 0; background: #00000065; z-index: 2; }
.app-overlay.app-share { inset: 40px 0 0; z-index: 3; border-radius: 28px 28px 0 0; box-shadow: 0 -8px 40px #00000026; }
.app-share-header h2 { font-family: var(--rounded); font-size: 34px; font-weight: 900; letter-spacing: -1.3px; line-height: 1.3; margin: 0; }
.app-demo .app-share-header .app-close { color: var(--ink); background: var(--surface); border-radius: 16px; }
.app-share > .app-scroll { padding: 8px 24px 24px; }
.app-share-picker { display: grid; gap: 16px; }
.app-demo .app-share-picker h3 { margin: 0; font-family: var(--rounded); font-size: 20px; font-weight: 750; line-height: 1.3; }
.app-share-tokens { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 8px; }
.app-share-tokens button { min-height: 44px; padding: 8px 12px; border-radius: 16px; background: var(--app-selection); font-size: 17px; font-weight: 650; }
.app-share-tokens button.is-selected { background: var(--surface); }
.app-share .app-query { border: 0; }
.app-share-direction { position: relative; display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; margin-top: 20px; color: var(--accent); font-size: 16px; font-weight: 650; }
.app-share-direction select { position: absolute; inset: 0; width: 100%; min-height: 44px; opacity: 0; cursor: pointer; }
.app-share-direction:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.app-share-direction .app-icon { width: 12px; height: 12px; }
.app-share-result-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.app-demo #app-share-change-word { min-height: 44px; padding: 8px 0 8px 12px; font-size: 12px; font-weight: 650; }
.app-share .app-word { margin-top: 20px; }
.app-share-loading { padding: 8px 12px; margin-top: 20px; }
.app-share-loading p { color: var(--app-muted); font-size: 12px; margin-bottom: 10px; }
.app-share-loading > div { display: grid; gap: 10px; }
.app-share-loading span { height: 14px; width: 85%; background: #f0f7fa14; border-radius: 4px; }
.app-share-loading span:nth-child(2) { width: 65%; }
.app-share-loading span:nth-child(3) { width: 95%; }
.app-share .app-sense-number { color: var(--ink); }
.app-share .is-selected .app-sense-number { color: var(--accent); }
.app-share .app-save-footer p { color: var(--app-muted); font-size: 12px; line-height: 1.45; text-align: center; margin-top: 8px; }
.app-share .app-save-footer { padding-bottom: 24px; }
.demo-controls { display: flex; gap: 12px; width: min(100%, 430px); margin: 20px auto 0; }
.demo-controls button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-family: inherit; font-size: 12px; }
.demo-controls #demo-review { flex: 1; border-color: #2e525a; background: #17343b; }
.demo-controls .app-icon { width: 16px; height: 16px; }
.demo-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.app-main { height: 100%; display: flex; flex-direction: column; }
.app-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px 12px; flex-shrink: 0; }
.app-header #app-brand { padding: 0; font-family: var(--rounded); font-size: 34px; font-weight: 900; letter-spacing: -1.3px; line-height: 1.3; text-align: left; }
.app-icon { width: 22px; height: 22px; display: block; flex-shrink: 0; }
.app-demo .app-gear { width: 46px; height: 46px; display: grid; place-items: center; background: var(--surface); border-radius: 16px; flex-shrink: 0; }
.app-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3e4955 transparent; }
.app-page { padding: 12px 24px 24px; }
.app-query { display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 0; padding: 4px 4px 4px 16px; border: 1px solid #f0f7fa14; border-radius: 18px; background: var(--surface); }
.app-query:focus-within { border-color: #33d9de99; }
.app-query > span, .app-query > .app-icon { color: var(--app-muted); }
.app-query .app-icon { width: 19px; height: 19px; }
.app-query input { min-width: 0; width: 100%; padding: 10px 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 17px; line-height: 1.4; }
.app-query input::placeholder { color: var(--app-muted); }
.app-query input:focus-visible { outline: 0; }
.app-query button { display: grid; place-items: center; width: 44px; height: 44px; color: var(--accent); flex: 0 0 44px; }
.app-result { margin-top: 20px; }
.app-direction { color: var(--accent); font-family: var(--rounded); font-size: 13px; font-weight: 900; letter-spacing: 1.8px; }
.app-demo .app-word { font-family: var(--rounded); font-size: 34px; font-weight: 900; letter-spacing: -1px; line-height: 1.3; margin: 12px 0 20px; }
.app-senses { display: grid; gap: 10px; }
.app-sense { border-radius: 16px; background: var(--app-selection); overflow: hidden; }
.app-sense.is-selected { border-radius: 26px; background: var(--surface); }
.app-sense-choice { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 16px; width: 100%; text-align: left; align-items: center; }
.app-sense-number { color: var(--accent); font-family: var(--rounded); font-size: 15px; font-weight: 900; }
.app-sense-title { font-size: 17px; font-weight: 650; line-height: 1.3; }
.app-sense-part { display: none; font-size: 16px; color: var(--app-muted); }
.is-selected .app-sense-choice { grid-template-columns: 1fr; gap: 14px; padding: 22px 22px 0; }
.is-selected .app-sense-title { font-family: var(--rounded); font-size: 28px; font-weight: 750; }
.is-selected .app-sense-part { display: block; }
.app-sense-body { padding: 14px 22px 22px; }
.app-demo p { margin: 0; }
.app-demo hr { border: 0; height: 1px; background: #f0f7fa14; margin: 20px 0; }
.app-usage, .app-muted { color: var(--app-muted); font-size: 16px; line-height: 1.45; }
.app-example { margin-top: 14px; }
.app-example p:first-child { font-size: 16px; line-height: 1.4; }
.app-example p:last-child { margin-top: 6px; color: var(--app-muted); font-size: 12px; line-height: 1.45; }
.app-sense .app-example { color: var(--app-muted); }
.app-learning { display: grid; gap: 16px; }
.app-pronunciation { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.app-pronunciation span, .app-info > span { display: block; color: var(--app-muted); font-size: 12px; margin-bottom: 4px; }
.app-pronunciation p, .app-info p { font-size: 17px; line-height: 1.45; }
.app-info:first-of-type p { font-size: 16px; }
.app-demo .app-audio { width: 44px; height: 44px; display: grid; place-items: center; color: var(--accent); border-radius: 12px; }
.app-audio:hover, .app-audio.is-playing { background: #33d9de14; }
.app-save-footer { padding: 12px 24px; flex-shrink: 0; }
.app-demo .app-primary { width: 100%; min-height: 60px; padding: 16px; border-radius: 18px; color: var(--surface); background: var(--ink); font-family: var(--rounded); font-size: 17px; line-height: 28px; font-weight: 750; }
.app-demo .app-primary:hover:enabled { background: #d7e2e8; }
.app-tabs { display: flex; flex-shrink: 0; margin: 4px 14px 14px; padding: 5px; min-height: 68px; border: 1px solid #45505b; background: #202b37; border-radius: 38px; box-shadow: 0 3px 10px #00000018; }
.app-tabs button { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 32px; padding: 6px 2px; }
.app-tabs button[aria-pressed="true"] { background: #35414d; }
.app-tabs .app-icon { width: 23px; height: 23px; }
.app-tabs span { font-size: 10px; line-height: 1.3; font-weight: 650; }
.app-today-card { padding: 24px; border-radius: 28px; background: var(--surface); }
.app-date { color: var(--accent); font-family: var(--rounded); font-size: 16px; font-weight: 650; }
.app-demo .app-count { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; }
.app-count strong { font-family: var(--rounded); font-size: 76px; letter-spacing: -2px; font-weight: 900; line-height: 1.1; }
.app-count > span { font-size: 16px; color: var(--app-muted); }
.app-today-card .app-muted { margin: 12px 0; }
.app-today-card .app-primary { margin-top: 10px; }
.app-demo #app-today-page > h3 { font-size: 17px; margin: 28px 0 16px; letter-spacing: 0; }
.app-card-list { display: grid; gap: 16px; }
#app-saved-cards { margin-top: 16px; }
.app-demo .app-card-row { padding: 20px; border-radius: 22px; background: var(--surface); text-align: left; display: grid; gap: 10px; width: 100%; }
.app-card-row strong { font-family: var(--rounded); font-size: 20px; }
.app-card-row > span:last-child { color: var(--app-muted); font-size: 16px; }
.app-empty { color: var(--app-muted); font-size: 16px; padding: 35px 0; }
.app-overlay { position: absolute; inset: 0; background: var(--canvas); display: flex; flex-direction: column; }
.app-overlay > .app-scroll { padding: 24px; }
.app-overlay-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.app-demo .app-overlay-header h2 { font-family: var(--rounded); font-size: 28px; font-weight: 900; letter-spacing: -1px; margin: 0; }
.app-demo .app-close { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 16px; background: var(--ink); color: var(--surface); }
.app-review-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.app-direction-select { max-width: 100%; color: var(--accent); background: transparent; border: 0; font-size: 16px; font-weight: 650; padding: 10px 0; }
.app-review-badge { color: var(--accent); background: #33d9de14; font-size: 12px; font-weight: 800; letter-spacing: .8px; border-radius: 30px; padding: 10px 14px; }
.app-review-card { min-height: 320px; display: flex; flex-direction: column; justify-content: center; padding: 28px; border-radius: 32px; background: var(--surface); margin-bottom: 24px; }
.app-review-card .app-word { text-align: center; margin: 0; }
#app-review-answer > h4 { font-size: 22px; font-weight: 750; text-align: center; margin: 22px 0; line-height: 1.3; }
#app-review-answer > .app-muted { text-align: center; margin-bottom: 22px; }
#app-review-answer .app-example { margin-top: 22px; color: var(--app-muted); }
.app-ratings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.app-demo .app-ratings button { display: grid; gap: 8px; padding: 18px 8px; border-radius: 18px; background: var(--surface); font-size: 17px; font-weight: 700; }
.app-ratings small { font-size: 12px; font-weight: 400; color: var(--app-muted); }
.app-demo .app-ratings button[data-grade="good"] { background: #33d9de1a; }
.app-ratings button:hover { outline: 1px solid var(--accent); }
.app-complete-card { padding: 60px 16px; border-radius: 28px; background: var(--surface); text-align: center; margin-bottom: 24px; }
.app-complete-card > .app-icon { width: 48px; height: 48px; margin: 0 auto 20px; color: var(--accent); stroke-width: 1.2; }
.app-complete-card > h3 { font-size: 34px; margin: 0 0 20px; }
.app-detail-direction { font-size: 16px; font-weight: 650; color: var(--accent); }
.app-detail-card { padding: 24px; background: var(--surface); border-radius: 28px; }
.app-detail-card > h4 { font-family: var(--rounded); font-size: 28px; font-weight: 750; margin: 0 0 20px; }
.app-detail-card > .app-usage { margin-top: 6px; }
.app-settings-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: #1c1c1e; }
.app-settings-header h2 { font-size: 17px; margin: 0; }
.app-settings-header button { color: var(--accent); font-size: 17px; }
.app-overlay > .app-settings-preview { padding: 0; }
.app-settings-preview img { display: block; width: 100%; height: auto; margin-top: -34%; }
.demo-caption { max-width: 560px; margin: 20px auto 28px; color: var(--muted); font-size: 10px; text-align: center; line-height: 1.9; }
.demo-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.feature-visual { container-type: inline-size; position: relative; height: 260px; border: 1px solid #34414e; border-radius: 26px; overflow: hidden; background: var(--canvas); }
.feature-visual > img { display: block; width: 100%; height: auto; position: absolute; top: 0; left: 0; }
.shot-search > img { top: -49.45cqw; }
.shot-senses > img { top: -38.46cqw; }
.shot-question > img { top: -78.3cqw; }
.shot-grades > img { bottom: -16px; top: auto; }
.shot-pronunciation > img { top: -115.38cqw; }
.shot-etymology > img { top: -151.1cqw; }
.shot-share > img { top: -65.38cqw; }
.shot-history > img { top: -49.45cqw; }
.shot-wordbook > img { top: -42.58cqw; }
.shot-goals > img { top: -54.95cqw; }
.shot-pro > img { top: -42.58cqw; }
@media (max-width: 600px) {
  .app-demo { height: 760px; border-radius: 30px; }
  .reader-header { padding-inline: 20px; }
  .reader-scroll { padding: 28px 22px; }
  .reader-prose { font-size: 19px; }
  .reader-footer { padding-inline: 20px; font-size: 9px; }
  .app-share-header { padding-inline: 20px; }
  .app-share > .app-scroll { padding-inline: 20px; }
  .demo-controls { gap: 8px; }
  .demo-controls button { padding-inline: 10px; font-size: 11px; }
  .app-header { padding-inline: 20px; }
  .app-page, .app-save-footer { padding-inline: 20px; }
  .app-demo .app-word { font-size: 34px; }
  .app-overlay > .app-scroll { padding: 20px; }
  .app-overlay > .app-settings-preview { padding: 0; }
  .app-review-card { min-height: 280px; padding: 24px; }
  .app-direction-select { font-size: 14px; }
  .app-review-badge { padding-inline: 10px; }
  .feature-visual { height: 260px; }
}
.app-header { display: grid; grid-template-columns: 1fr 46px; column-gap: 12px; }
.app-header #app-brand { grid-column: 1; grid-row: 1; }
.app-header .app-gear { grid-column: 2; grid-row: 1 / 3; }
.app-header #app-wordbook-count { grid-column: 1; grid-row: 2; font-size: 12px; margin-top: 6px; }
.app-review-card:has(#app-review-answer[hidden]) { aspect-ratio: 1; min-height: 260px; }
.app-detail-label { font-size: 12px; margin-bottom: 12px !important; }
#app-direction-changed > p { margin-bottom: 12px; }
#app-skipped-count { margin-top: 16px; }
.app-settings-header { background: var(--canvas); }
.app-settings-header h2 { margin: 0 auto; }
.shot-grades > img { bottom: -28px; }
.demo-callout { width: min(100%, 430px); margin-inline: auto; }
.visual-caption > span { display: block; margin-top: 7px; }
.app-header .app-page-title { grid-column: 1; grid-row: 1; font-family: var(--rounded); font-size: 34px; font-weight: 900; letter-spacing: -1.3px; line-height: 1.3; margin: 0; }
.app-settings-header { position: relative; min-height: 74px; }
.app-settings-header .app-settings-close { position: absolute; right: 20px; width: 44px; height: 44px; border: 1px solid #2d4660; background: #16222f; color: var(--ink); border-radius: 50%; display: grid; place-items: center; }
.visual-caption { margin: 24px 0 0; color: var(--muted); font-size: 10px; text-align: center; line-height: 1.9; }
@media (max-width: 600px) { .visual-caption { font-size: 9px; } }
