@charset "UTF-8";

/* ALF ChatLab — a light workspace built around the question. */
:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-raised: #f0f1f8;
  --text: #202334;
  --muted: #686d80;
  --gold: #5956e9;
  --cobalt: #5956e9;
  --accent: #5956e9;
  --accent-strong: #4844d0;
  --lilac-bg: #eeecff;
  --mint-bg: #e5f5ef;
  --line: #e4e6ef;
  --line-strong: #cdd1e0;
  --mint: #28715b;
  --peach: #a35b41;
  --blue: #4567ba;
  --lilac: #7953a0;
  --shadow: 0 16px 48px #4846770a, 0 3px 8px #48467704;
  color-scheme: light;
  font-family: "Avenir Next", Avenir, "Trebuchet MS", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.modal-open, body.splash-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; border: 0; background: none; cursor: pointer; }
button:disabled { opacity: .58; cursor: wait; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; flex-shrink: 0; }
button svg, a svg { pointer-events: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; letter-spacing: -.035em; }
h1, h2 { text-wrap: balance; }
p { color: var(--muted); }
ul, ol { padding-left: 22px; }
::selection { color: #34317b; background: #dedbff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #aaa5ff; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon { width: 20px; height: 20px; }
.page-width { width: 100%; max-width: 1336px; padding: 0 48px; margin: 0 auto; }
#main-content { min-height: 64vh; outline: none; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px 18px; border-radius: 8px; background: var(--accent); color: #fff; z-index: 200; }
.skip-link:focus { top: 16px; }

/* The shell stays quiet so the working area carries the hierarchy. */
.site-header { position: relative; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; max-width: 1480px; margin: auto; padding: 0 40px; display: flex; align-items: center; gap: 42px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 168px; color: var(--text); }
.brand img { width: 72px; max-width: 90px; height: 28px; object-fit: contain; }
.brand > svg, .brand-mark, .brand-symbol { width: 31px; height: 34px; flex-shrink: 0; }
.brand-name { color: var(--text); font-size: 23px; font-weight: 700; letter-spacing: -.05em; }
.brand-product { font-size: 14px; font-weight: 500; letter-spacing: -.025em; color: var(--muted); }
.desktop-nav { display: flex; align-items: center; gap: 5px; }
.desktop-nav a { display: flex; align-items: center; min-height: 42px; padding: 9px 16px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--muted); }
.desktop-nav a:hover { color: var(--text); background: #f7f7fc; }
.desktop-nav a.is-active { background: var(--lilac-bg); color: var(--accent-strong); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 13px; }
.view-picker select { max-width: 166px; min-height: 40px; padding: 8px 27px 8px 10px; background: transparent; border: 0; border-radius: 7px; color: var(--muted); font-size: 11px; cursor: pointer; }
.view-picker option { color: var(--text); background: #fff; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); background: transparent; flex-shrink: 0; }
.icon-button svg { width: 19px; height: 19px; }
.icon-button:hover { color: var(--accent); background: var(--lilac-bg); }
.avatar { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 12px; background: #eae7ff; color: #5c50a6; font-size: 12px; font-weight: 600; }
.menu-toggle, .mobile-menu { display: none; }
.demo-ribbon { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 8px 20px; min-height: 32px; color: var(--muted); background: var(--bg); font-size: 11px; line-height: 1.5; }
.demo-dot { display: block; width: 5px; height: 5px; background: #a39ed6; border-radius: 50%; }
.ribbon-divider { display: block; width: 1px; height: 9px; background: #d8d9e4; margin: 0 3px; }
.bottom-nav { display: none; }
.site-footer { display: flex; align-items: center; gap: 28px; max-width: 1336px; margin: 0 auto; padding: 24px 48px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -.04em; white-space: nowrap; }
.footer-brand img { width: 66px; height: 26px; object-fit: contain; }
.footer-brand span { margin-left: 0; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 0; }
.site-footer > p { font-size: 11px; }
.site-footer > div { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 11px; }
.site-footer a:hover { color: var(--accent); }

/* Shared controls use one accent and generous pointer targets. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 45px; padding: 12px 18px; border: 1px solid transparent; border-radius: 10px; color: var(--text); background: transparent; font-size: 12px; line-height: 1.3; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.button .icon { width: 17px; height: 17px; }
.button.primary { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 3px 8px #5956e914; }
.button.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); box-shadow: 0 4px 12px #5956e922; }
.button.secondary { background: #fff; border-color: var(--line-strong); color: #4e5267; }
.button.secondary:hover { background: #f7f6ff; border-color: #bcb7ec; color: var(--accent-strong); }
.button.is-saved { color: var(--accent-strong); border-color: #c9c3f3; background: var(--lilac-bg); }
.button.danger-outline { color: #a54c59; border-color: #eacbd0; background: #fff; }
.button.danger-outline:hover { background: #fff1f2; }
.full-width { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; font-size: 12px; font-weight: 500; color: var(--accent-strong); }
.text-link .icon { width: 16px; height: 16px; }
.text-link:hover { color: #39349f; text-decoration: underline; text-underline-offset: 5px; }
.text-button { min-height: 44px; font-size: 12px; color: var(--muted); padding: 8px 0; }
.text-button.danger { color: #a54c59; }
.text-button:hover { text-decoration: underline; text-underline-offset: 5px; }
.eyebrow { margin-bottom: 12px; color: #77738c; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 40px 0 30px; }
.page-heading h1 { max-width: 26ch; font-size: clamp(30px,3vw,40px); line-height: 1.16; letter-spacing: -.045em; }
.page-heading p { max-width: 66ch; margin-top: 13px; font-size: 14px; line-height: 1.75; }
.heading-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-top: 22px; color: var(--muted); font-size: 12px; }
.back-link .icon { width: 16px; height: 16px; }
.back-link:hover { color: var(--accent); }
.back-link + .page-heading { padding-top: 21px; }
.model-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; font-size: 27px; font-weight: 500; line-height: 1; flex-shrink: 0; }
.model-mark.small { width: 23px; height: 23px; border-radius: 0; background: none; font-size: 22px; }
.mint { color: var(--mint); }
.peach { color: var(--peach); }
.blue { color: var(--blue); }
.lilac { color: var(--lilac); }
.model-mark.mint:not(.small) { background: #e5f5ef; }
.model-mark.peach:not(.small) { background: #faeee7; }
.model-mark.blue:not(.small) { background: #edf1ff; }
.model-mark.lilac:not(.small) { background: #f2ebfa; }
.model-pills { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.model-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1; white-space: nowrap; }
.model-pill.is-selected { color: var(--text); background: #f7f7ff; border-color: #dedcf4; }
button.model-pill:hover { border-color: #bcb5ee; background: #f0edff; }
.model-pill .model-mark.small { width: 18px; height: 18px; font-size: 18px; }
.model-check { display: flex; align-items: center; width: 11px; height: 11px; margin-left: 1px; color: var(--accent); }
.model-check .icon { width: 11px; height: 11px; }
.model-pill:not(.is-selected) .model-check { opacity: 0; }

/* Home is a focused prompt studio, not a marketing landing page. */
.home-studio { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100svh - 190px); width: 100%; max-width: 1160px; margin: 0 auto; padding: 45px 32px 60px; }
.studio-intro { width: 100%; max-width: 720px; margin: 0 auto 29px; text-align: center; }
.studio-wordmark-art { position: relative; display: grid; place-items: center; width: 112px; height: 77px; max-width: none; max-height: none; margin: 0 auto 19px; overflow: visible; }
.studio-wordmark-art img { position: relative; z-index: 2; width: 38px; height: 38px; }
.studio-orbit { position: absolute; width: 96px; height: 51px; border: 1px solid #e4dff3; border-radius: 50%; transform: rotate(-25deg); }
.studio-orbit.orbit-two { width: 79px; height: 64px; border-color: #ddd9f1; transform: rotate(35deg); }
.studio-orbit.orbit-three { width: 69px; height: 74px; border-color: #dceee5; transform: rotate(12deg); }
.studio-intro > svg, .studio-intro > img { max-width: 180px; max-height: 94px; height: auto; margin: 0 auto 19px; }
.studio-intro h1 { font-size: clamp(33px,3.5vw,45px); line-height: 1.17; letter-spacing: -.045em; font-weight: 600; color: var(--text); }
.studio-intro p { max-width: 55ch; margin: 14px auto 0; font-size: 15px; line-height: 1.75; color: var(--muted); }
.studio-composer { position: relative; width: 100%; max-width: 820px; z-index: 1; }
.studio-composer::before, .studio-composer::after { position: absolute; z-index: -1; font-weight: 400; line-height: 1; pointer-events: none; }
.studio-composer::before { content: "✳"; top: -25px; left: -35px; color: #d2c4df; font-size: 39px; transform: rotate(-14deg); }
.studio-composer::after { content: "✦"; right: -38px; bottom: 28px; color: #b9dfcf; font-size: 41px; transform: rotate(13deg); }
.composer { position: relative; width: 100%; margin: 0; padding: 25px 27px 0; background: #fff; border: 1px solid #d8d9e7; border-radius: 21px; box-shadow: 0 18px 54px #57518b0d, 0 3px 10px #57518b05; }
.composer:focus-within { border-color: #b6aff3; box-shadow: 0 18px 54px #57518b0d, 0 0 0 3px #eeeaff; }
.composer-label { display: block; margin-bottom: 12px; color: var(--muted); font-size: 11px; font-weight: 500; }
.composer textarea { display: block; width: 100%; min-height: 106px; max-height: 280px; resize: vertical; padding: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 22px; line-height: 1.5; letter-spacing: -.028em; }
.composer textarea::placeholder { color: var(--muted); opacity: 1; }
.composer textarea:focus-visible { outline: 0; }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 17px; padding: 19px 0 22px; }
.compare-submit { flex-shrink: 0; min-height: 46px; padding: 13px 18px; border-radius: 10px; font-size: 12px; }
.composer-help { display: flex; align-items: center; gap: 6px; margin: 0 -27px; padding: 12px 27px; color: var(--muted); background: #fcfcfe; border-top: 1px solid #eeeef5; border-radius: 0 0 21px 21px; font-size: 11px; line-height: 1.6; }
.composer-help .icon { width: 13px; height: 13px; }
.studio-suggestions { width: 100%; max-width: 820px; margin: 18px auto 0; }
.example-prompts { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-start; gap: 8px 12px; padding: 17px 0; }
.example-prompts > span { margin-right: 3px; color: var(--muted); font-size: 11px; }
.example-prompts button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 11px; border: 1px solid #e5e5ef; border-radius: 9px; background: #fbfbfd; color: #66697d; font-size: 11px; line-height: 1.4; }
.example-prompts button:hover { color: var(--accent-strong); background: var(--lilac-bg); border-color: #d6d1f7; }
.example-prompts .icon { width: 12px; height: 12px; color: var(--muted); }
.studio-suggestions .example-prompts { justify-content: center; padding: 0; }
.studio-suggestions .example-prompts > span { width: 100%; margin: 0 0 5px; text-align: center; }
.studio-footnote { display: grid; grid-template-columns: auto auto; align-items: center; justify-content: center; gap: 0 10px; max-width: 55ch; margin: 24px auto 0; color: var(--muted); font-size: 11px; line-height: 1.7; text-align: center; }
.studio-footnote .icon { width: 13px; height: 13px; }
.studio-models { display: flex; align-items: center; gap: 7px; }
.studio-models .model-mark.small { width: 17px; height: 17px; font-size: 17px; }
.studio-footnote p { font-size: 11px; }
.studio-footnote .text-link { grid-column: 1/-1; justify-self: center; min-height: 44px; font-size: 11px; color: #77708c; }
body[data-route="home"] .site-footer { border-color: transparent; }

/* Workspace — the prompt gets the room, utility stays to the side. */
.workspace-layout { display: grid; grid-template-columns: minmax(0,1fr) 265px; gap: 38px; }
.workspace-question-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 20px; }
.workspace-question-title h2 { font-size: 22px; }
.subtle-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.composer-compact { padding: 23px 23px 0; }
.composer-compact textarea { min-height: 100px; font-size: 20px; }
.composer-compact .composer-bottom { flex-wrap: wrap; gap: 15px; padding: 17px 0 20px; }
.composer-compact .compare-submit { margin-left: auto; }
.composer-compact .composer-help { margin: 0 -23px; padding: 11px 23px; }
.workspace-main .example-prompts { gap: 8px; }
.workspace-main .example-prompts > span { width: 100%; }
.workspace-aside { padding-top: 48px; }
.usage-panel { padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.panel-label { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.plan-tag { display: inline-block; padding: 4px 7px; border-radius: 5px; color: #70649e; background: #f0edf9; font-size: 11px; font-weight: 500; white-space: nowrap; }
.usage-number { margin: 25px 0 2px; font-size: 42px; line-height: 1.2; letter-spacing: -.055em; font-weight: 600; }
.usage-number span { margin-left: 6px; color: var(--muted); font-size: 20px; font-weight: 400; letter-spacing: -.025em; }
.usage-panel > p { font-size: 11px; }
.usage-track { height: 5px; overflow: hidden; border-radius: 6px; background: #eae9f3; margin-top: 19px; }
.usage-track > span { display: block; height: 100%; max-width: 100%; background: #8e86e7; border-radius: 6px; }
.usage-foot { display: flex; justify-content: space-between; gap: 10px; margin: 10px 0 23px; color: var(--muted); font-size: 11px; }
.usage-foot a { color: var(--accent-strong); }
.usage-panel .button { font-size: 11px; }
.aside-note { padding: 27px 5px 22px; }
.aside-note-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 15px; border-radius: 11px; color: #6e66ad; background: #efecfa; }
.aside-note h3 { max-width: 18ch; font-size: 22px; line-height: 1.25; }
.aside-note p { margin: 13px 0 12px; font-size: 12px; line-height: 1.85; }
.aside-note .text-link { font-size: 11px; }
.help-inline { display: flex; align-items: center; gap: 8px; padding: 17px 3px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.help-inline .icon { width: 15px; height: 15px; }
.help-inline .icon:last-child { margin-left: auto; }
.recent-section { margin-top: 30px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.section-title h2 { font-size: 21px; }
.section-title .text-link { font-size: 11px; }
.recent-list { border-top: 1px solid var(--line); }
.recent-row { display: flex; align-items: center; gap: 15px; min-height: 84px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.recent-icon { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 10px; background: #ebeaf6; color: var(--muted); flex-shrink: 0; }
.recent-icon .icon { width: 17px; height: 17px; }
.recent-text { min-width: 0; flex: 1; }
.recent-text strong { display: block; color: #3d4054; font-size: 13px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.recent-row:hover .recent-text strong { color: var(--accent); }
.recent-text small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.recent-date { color: var(--muted); font-size: 11px; white-space: nowrap; }
.recent-row > .icon { color: var(--muted); width: 14px; height: 14px; }
.saved-banner { display: flex; align-items: center; gap: 17px; padding: 20px 22px; margin: 26px 0 48px; border: 1px solid #dceae4; border-radius: 12px; background: #edf6f2; }
.saved-banner-icon { color: var(--muted); }
.saved-banner h3 { color: #3e5d51; font-size: 17px; }
.saved-banner p { color: var(--muted); font-size: 11px; margin-top: 5px; }
.saved-banner > .icon { width: 17px; height: 17px; color: var(--muted); margin-left: auto; }
.empty-inline { display: flex; align-items: center; gap: 17px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.empty-inline > .icon { color: var(--muted); }
.empty-inline strong { font-size: 14px; }
.empty-inline p { margin-top: 6px; font-size: 12px; }

/* Results share one aligned surface instead of a collection of competing cards. */
.question-strip { display: flex; align-items: center; gap: 15px; padding: 18px 22px; border: 1px solid #e1dff0; border-radius: 12px; background: #f1effa; }
.question-symbol { display: flex; align-items: center; justify-content: center; width: 32px; height: 34px; color: var(--muted); flex-shrink: 0; }
.question-strip > div { flex: 1; min-width: 0; }
.question-strip > div > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.question-strip p { color: #3b3752; font-size: 16px; line-height: 1.5; letter-spacing: -.02em; overflow-wrap: anywhere; }
.question-strip > .text-link { font-size: 11px; flex-shrink: 0; }
.results-tabs { display: flex; align-items: stretch; gap: 27px; margin-top: 25px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.results-tabs button { display: flex; align-items: center; gap: 8px; min-height: 53px; padding: 0 0 15px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 12px; white-space: nowrap; }
.results-tabs button .icon { width: 17px; height: 17px; }
.results-tabs button.active { color: var(--accent-strong); border-color: var(--accent); }
.sample-notice { display: flex; align-items: flex-start; gap: 8px; padding: 17px 0 20px; }
.sample-notice > .icon { width: 14px; height: 14px; margin-top: 2px; color: var(--muted); }
.sample-notice p { max-width: 112ch; font-size: 11px; line-height: 1.8; color: var(--muted); }
.context-guide { margin: -6px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.answer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.answer-grid-1 { grid-template-columns: minmax(0,1fr); max-width: 720px; }
.answer-grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.answer-grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.answer-card { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--line); background: #fff; }
.answer-card:first-child { border-left: 0; }
.answer-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px; border-bottom: 1px solid #eeedf4; background: #fdfdff; }
.model-identity { display: flex; align-items: center; gap: 11px; }
.model-identity h2 { font-size: 15px; letter-spacing: -.025em; }
.model-identity div > span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.answer-number { color: var(--muted); font-size: 11px; }
.answer-card-body { display: flex; flex-direction: column; flex: 1; padding: 26px 21px 23px; }
.angle-label { display: inline-block; margin-bottom: 13px; font-size: 11px; font-weight: 500; }
.answer-card h3 { min-height: 55px; font-size: 23px; line-height: 1.23; letter-spacing: -.035em; }
.answer-card-body > p { margin: 17px 0; font-size: 14px; line-height: 1.75; color: #737080; }
.answer-card ol { padding-left: 17px; margin: 0 0 25px; color: #59566c; font-size: 14px; line-height: 1.75; }
.answer-card li { padding-left: 4px; margin-bottom: 13px; }
.answer-card li::marker { color: var(--muted); font-size: 11px; }
.answer-takeaway { border-top: 1px solid #ebe8f3; padding-top: 16px; margin-top: auto; }
.answer-takeaway > span { font-size: 11px; color: var(--muted); }
.answer-takeaway p { font-size: 14px; color: #4f4969; line-height: 1.75; margin-top: 7px; }
.answer-card > footer { display: flex; align-items: center; gap: 19px; padding: 4px 19px; border-top: 1px solid #efedf5; }
.mini-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0; color: var(--muted); font-size: 11px; }
.mini-action .icon { width: 14px; height: 14px; }
.mini-action:hover, .mini-action[aria-pressed="true"], .mini-action.is-saved { color: var(--accent); }
.mini-action.icon-only { width: 30px; margin-left: auto; }
.results-bottom-note { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0 44px; }
.results-bottom-note > span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.results-bottom-note > span .icon { width: 16px; height: 16px; color: var(--muted); }
.results-bottom-note .text-link { font-size: 11px; }
.difference-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 37px; padding: 9px 0 31px; }
.shared-ground { position: relative; padding: 34px; border-radius: 18px; background: #eaf5ef; border: 1px solid #dcece2; }
.large-outline-icon { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; margin-bottom: 27px; background: #fff9; border: 1px solid #cfe1d5; border-radius: 14px; color: var(--muted); }
.shared-ground .eyebrow { color: var(--muted); }
.shared-ground h2 { color: #375947; font-size: 32px; line-height: 1.23; }
.shared-ground > p { margin-top: 20px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.shared-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.shared-pills span { padding: 7px 9px; border-radius: 6px; background: #fff9; color: var(--muted); font-size: 11px; }
.difference-list { padding: 8px 0; }
.difference-list > h2 { font-size: 23px; margin-bottom: 18px; }
.difference-row { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.difference-row strong { font-size: 12px; font-weight: 600; }
.difference-row p { font-size: 13px; line-height: 1.8; margin-top: 6px; }
.difference-list > .text-link { margin-top: 15px; }
.synthesis-preview { display: grid; grid-template-columns: 85px 1fr; gap: 36px; max-width: 960px; margin: 8px auto 25px; padding: 42px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.synthesis-emblem { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin-top: 7px; border-radius: 24px; background: #f1edff; color: var(--muted); }
.synthesis-emblem > .icon { width: 34px; height: 34px; }
.synthesis-preview h2 { font-size: 37px; line-height: 1.18; }
.synthesis-preview p { max-width: 60ch; font-size: 15px; line-height: 1.85; margin: 24px 0; }

/* The expanded synthesis is treated like a carefully set document. */
.synthesis-layout { display: grid; grid-template-columns: minmax(0,1fr) 245px; gap: 55px; padding: 35px 0 52px; }
.synthesis-article { padding: 35px 40px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.synthesis-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; margin-bottom: 23px; }
.synthesis-label .icon { width: 17px; height: 17px; }
.synthesis-label > span { margin-left: auto; color: var(--muted); font-size: 11px; padding: 4px 7px; background: #f6f3fa; border-radius: 5px; }
.synthesis-article h2 { font-size: clamp(31px,3vw,41px); line-height: 1.18; letter-spacing: -.045em; }
.synthesis-article > p { margin-top: 22px; color: #747080; font-size: 14px; line-height: 1.95; }
.synthesis-article > .article-lead { margin-top: 25px; color: #5a536b; font-size: 17px; line-height: 1.8; }
.synthesis-article blockquote { margin: 30px 0; padding: 21px 24px; border-left: 3px solid #c2b2dd; border-radius: 0 10px 10px 0; background: #f5f1fa; color: #80708f; font-size: 25px; line-height: 1.5; letter-spacing: -.035em; }
.synthesis-article > h3 { margin: 31px 0 19px; font-size: 22px; }
.action-step { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid #ede9f2; }
.action-step > span { display: flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 9px; background: #f3edf9; color: var(--muted); font-size: 11px; flex-shrink: 0; }
.action-step h4 { font-size: 17px; line-height: 1.5; }
.action-step p { margin-top: 8px; font-size: 13px; line-height: 1.9; }
.synthesis-attribution { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; padding: 16px; border: 1px solid #eeebf3; border-radius: 9px; background: #fbf9fd; }
.synthesis-attribution > .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--muted); }
.synthesis-attribution p { color: var(--muted); font-size: 11px; line-height: 1.85; }
.synthesis-aside { padding-top: 13px; }
.aside-sticky { position: sticky; top: 28px; }
.synthesis-aside h3 { font-size: 19px; line-height: 1.35; margin-bottom: 20px; }
.source-perspective { display: flex; align-items: center; gap: 11px; padding: 13px 0; }
.source-perspective strong { font-size: 12px; font-weight: 600; }
.source-perspective p { margin-top: 3px; font-size: 11px; }
.synthesis-aside .button { margin-top: 22px; font-size: 11px; }
.aside-question { margin-top: 33px; padding-top: 27px; border-top: 1px solid var(--line); }
.aside-question h3 { font-size: 22px; margin-bottom: 12px; }
.aside-question p { font-size: 12px; line-height: 1.85; }
.aside-question .text-link { margin-top: 10px; font-size: 11px; }

/* Limit state — a calm next step with no dark marketing panel. */
.limit-layout { display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 80px; max-width: 1030px; margin: 25px auto 60px; }
.limit-story h1 { font-size: clamp(42px,4.6vw,58px); line-height: 1.13; letter-spacing: -.05em; }
.limit-story > p { max-width: 39ch; margin-top: 24px; font-size: 14px; line-height: 1.85; }
.limit-contour { position: relative; width: 240px; height: 170px; display: flex; align-items: center; justify-content: center; margin-top: 26px; }
.limit-contour > span { position: relative; z-index: 2; color: var(--muted); font-size: 78px; line-height: 1; font-weight: 400; }
.limit-contour i { position: absolute; inset: 20px 38px; border: 1px solid #e5ddeb; border-radius: 50%; transform: rotate(-22deg); }
.limit-contour i:nth-of-type(2) { inset: 35px 15px; transform: rotate(24deg); border-color: #e6e4f5; }
.limit-contour i:nth-of-type(3) { inset: 7px 53px; transform: rotate(16deg); border-color: #dcece5; }
.limit-card { padding: 34px; border: 1px solid #e1dce9; border-radius: 23px; background: #fff; box-shadow: var(--shadow); }
.limit-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 23px; border-radius: 16px; background: #f0eafa; color: var(--muted); }
.limit-icon > .icon { width: 25px; height: 25px; }
.limit-card > .plan-tag { margin-bottom: 15px; }
.limit-card h2 { font-size: 30px; line-height: 1.23; }
.limit-card > p { font-size: 13px; line-height: 1.85; margin-top: 17px; }
.limit-meter { padding-top: 24px; margin: 25px 0; border-top: 1px solid #eee9f2; }
.limit-meter > div:first-child { display: flex; align-items: baseline; justify-content: space-between; }
.limit-meter strong { font-size: 25px; font-weight: 600; letter-spacing: -.04em; }
.limit-meter strong span { font-size: 18px; color: var(--text); font-weight: 400; }
.limit-meter > div > span { font-size: 11px; color: var(--muted); }
.limit-meter .usage-track { background: #f0eaf5; margin-top: 12px; }
.limit-meter .usage-track > span { background: #c2a7d4; }
.limit-meter small { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.limit-card > .button { margin-bottom: 10px; }
.limit-card > .limit-reassurance { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.limit-reassurance > .icon { width: 13px; height: 13px; }

/* Detailed comparison keeps rows aligned across both perspectives. */
.compare-model-controls { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 56px; padding: 0 28px; }
.compare-model-field { display: grid; gap: 9px; min-width: 0; color: var(--muted); font-size: 12px; }
.compare-model-field > label, .compare-model-field > span { font-size: 12px; font-weight: 500; color: var(--muted); }
.compare-model-field .field-select { width: 100%; min-height: 47px; background: #fff; border-color: var(--line-strong); color: var(--text); font-size: 13px; }
.compare-select-strip { display: grid; grid-template-columns: 155px minmax(0,1fr); align-items: end; gap: 0; padding: 0 0 22px; }
.compare-select-strip > span { color: var(--muted); font-size: 12px; padding-bottom: 12px; }
.compare-table { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.compare-row { display: grid; grid-template-columns: 155px 1fr 1fr; }
.compare-row > div, .compare-row > h3 { min-width: 0; padding: 24px 28px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.compare-row > :first-child { border-left: 0; background: #fafaff; }
.compare-row > h3 { color: var(--text); font-size: 11px; letter-spacing: 0; line-height: 1.7; font-weight: 500; }
.compare-head > div { border-top: 0; background: #fdfcff; }
.compare-head > div:first-child { display: flex; align-items: center; color: var(--muted); font-size: 11px; }
.compare-head > div:not(:first-child) { display: grid; align-items: center; grid-template-columns: 42px 1fr; gap: 3px 14px; }
.compare-head .model-mark { grid-row: 1/3; }
.compare-head h2 { font-size: 19px; line-height: 1.4; }
.compare-head div > span:last-child { color: var(--muted); font-size: 11px; }
.compare-row h4 { font-size: 20px; line-height: 1.4; margin-bottom: 14px; }
.compare-row p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.compare-takeaway p { color: #62516f; }
.mobile-column-label { display: none; }
.focused-insight { display: flex; align-items: center; gap: 20px; margin: 27px 0 50px; padding: 25px; border: 1px solid #e6dcf0; border-radius: 13px; background: #f3edf9; }
.focused-insight > div { flex: 1; }
.focused-insight .eyebrow { font-size: 11px; margin-bottom: 7px; color: var(--muted); }
.focused-insight h3 { font-size: 20px; color: #655170; }
.focused-insight p { font-size: 12px; margin-top: 7px; color: var(--muted); }
.focused-insight .text-link { font-size: 11px; }

/* History is a list; settings and help use only the grouping they need. */
.history-toolbar { display: flex; align-items: center; gap: 20px; padding: 7px 0 25px; }
.search-field { display: flex; align-items: center; gap: 11px; min-height: 46px; max-width: 470px; flex: 1; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; }
.search-field > .icon { color: var(--muted); width: 17px; height: 17px; }
.search-field input { width: 100%; min-width: 0; padding: 11px 0; color: var(--text); background: transparent; border: 0; font-size: 13px; outline: 0; }
.search-field input::placeholder { color: var(--muted); }
.search-field:focus-within { outline: 3px solid #e1d6f0; outline-offset: 2px; }
.saved-filter { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 12px; white-space: nowrap; cursor: pointer; }
.saved-filter input { width: 15px; height: 15px; accent-color: var(--accent); }
.saved-filter > span { display: flex; align-items: center; gap: 7px; }
.saved-filter .icon { width: 15px; height: 15px; }
.history-model-filter select { min-height: 44px; max-width: 145px; padding: 9px 11px; color: #81708f; background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; }
.history-count { color: var(--muted); font-size: 11px; margin-left: auto; white-space: nowrap; }
.history-list { padding: 0 25px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.history-item { display: flex; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid #efeaf4; }
.history-item:last-child { border-bottom: 0; }
.history-item-main { display: flex; align-items: center; gap: 22px; min-width: 0; flex: 1; }
.history-item-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: #f6effa; color: var(--muted); border-radius: 13px; flex-shrink: 0; }
.history-item-main > div { min-width: 0; }
.history-date { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.history-item h2 { color: #63506f; font-size: 19px; line-height: 1.5; letter-spacing: -.025em; overflow-wrap: anywhere; }
.history-item-main:hover h2 { color: var(--accent); }
.history-models { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.history-models > span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.history-models .model-mark.small { width: 14px; height: 14px; font-size: 14px; }
.history-item-actions { display: flex; gap: 8px; }
.history-item-actions .is-saved { color: var(--accent); background: var(--lilac-bg); }
.history-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 0 46px; }
.history-bottom p { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.history-bottom .icon { width: 13px; height: 13px; }
.empty-state { padding: 58px 24px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.empty-state > span { display: flex; align-items: center; justify-content: center; width: 59px; height: 59px; margin: 0 auto 23px; border-radius: 19px; color: var(--muted); background: #f6effa; }
.empty-state h2 { font-size: 28px; }
.empty-state p { max-width: 44ch; margin: 14px auto 23px; font-size: 14px; }
.settings-layout { display: grid; grid-template-columns: 205px 1fr; gap: 48px; margin-bottom: 50px; }
.settings-nav { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; align-self: start; }
.settings-nav a, .settings-nav button { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 11px 13px; color: var(--muted); border-radius: 9px; font-size: 12px; text-align: left; }
.settings-nav .icon { width: 17px; height: 17px; }
.settings-nav a.active, .settings-nav a.is-active { background: #eee5f6; color: #8c63a4; }
.settings-nav a:hover, .settings-nav button:hover { background: #f3edf8; }
.settings-panels { min-width: 0; }
.settings-section { padding: 30px; margin-bottom: 22px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.settings-section-heading { padding-bottom: 23px; margin-bottom: 25px; border-bottom: 1px solid #f0e9f5; }
.settings-section-heading h2 { font-size: 22px; }
.settings-section-heading p { font-size: 12px; line-height: 1.8; margin-top: 9px; }
.field-label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 500; }
.text-input { display: block; width: 100%; max-width: 390px; min-height: 46px; padding: 10px 13px; background: #fff; color: var(--text); border: 1px solid #dfd2e9; border-radius: 9px; font-size: 14px; }
.field-help { margin-top: 8px; color: var(--muted); font-size: 11px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 0; border-bottom: 1px solid #f0e8f5; }
.setting-row:first-of-type { margin-top: 12px; }
.setting-row > div > label { color: var(--muted); font-size: 13px; font-weight: 500; }
.setting-row p { max-width: 44ch; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.field-select { min-height: 44px; min-width: 112px; padding: 10px 12px; border: 1px solid #e0d1eb; border-radius: 9px; color: var(--muted); background: #fff; font-size: 12px; }
.switch { position: relative; display: block; width: 42px; height: 44px; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.switch > span:not(.sr-only) { display: block; width: 42px; height: 24px; margin-top: 10px; border-radius: 14px; background: #ded2e8; pointer-events: none; transition: background .15s; }
.switch > span:not(.sr-only)::before { content: ""; position: absolute; width: 16px; height: 16px; left: 4px; top: 14px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px #8650a020; transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid #d4b7e7; outline-offset: 4px; }
.settings-save-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 25px; }
.settings-save-row > span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.settings-save-row > span > .icon { width: 13px; height: 13px; }
.plan-settings-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.plan-settings-content h3 { margin-top: 14px; font-size: 22px; }
.plan-settings-content p { margin-top: 8px; font-size: 11px; }
.data-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.help-intro { margin: 2px 0 37px; }
.help-lead { display: flex; align-items: center; gap: 21px; padding: 26px; background: #eeedf9; border: 1px solid #e2dff2; border-radius: 16px; }
.help-lead > span { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: #fff9; color: var(--muted); border-radius: 15px; flex-shrink: 0; }
.help-lead > span > .icon { width: 25px; height: 25px; }
.help-lead > div { flex: 1; }
.help-lead h2 { font-size: 23px; }
.help-lead p { font-size: 12px; margin-top: 9px; }
.help-layout { display: grid; grid-template-columns: 1fr 290px; gap: 65px; padding-bottom: 50px; }
.faq-list > h2 { font-size: 24px; margin-bottom: 23px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 14px; line-height: 1.7; color: #75627e; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > .icon { width: 17px; height: 17px; color: var(--muted); }
.faq-list details[open] summary > .icon { transform: rotate(45deg); color: var(--muted); }
.faq-list details p { max-width: 69ch; padding: 0 35px 24px 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.help-aside { padding-top: 3px; }
.help-aside > h3 { font-size: 19px; margin-bottom: 18px; }
.help-aside > a { display: flex; align-items: center; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.help-aside > a > .icon { width: 17px; height: 17px; }
.help-aside > a > .icon:last-child { margin-left: auto; width: 13px; height: 13px; }
.help-aside > a:hover { color: var(--accent); }
.support-note { padding: 24px; margin-top: 27px; background: #f2eef8; border-radius: 15px; }
.support-note > span { display: block; color: var(--muted); margin-bottom: 20px; }
.support-note h3 { font-size: 22px; line-height: 1.3; color: #8d699f; }
.support-note p { color: var(--muted); font-size: 12px; line-height: 1.9; margin-top: 14px; }

/* Intro and transient UI. The splash has one short, quiet entrance. */
.splash { position: fixed; inset: 0; z-index: 180; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fafafd; }
.splash-content { position: relative; z-index: 2; width: 100%; max-width: 760px; padding: 30px; text-align: center; animation: splash-arrive .6s ease-out both; }
.splash-mark { width: 104px; height: 104px; margin: 0 auto 28px; color: var(--accent); overflow: visible; }
.splash-mark svg { width: 100%; height: 100%; }
.splash-wordmark { margin-bottom: 35px; color: var(--accent); font-size: 30px; font-weight: 700; letter-spacing: -.05em; }
.splash-wordmark > span { display: inline-block; margin-left: 13px; padding-left: 13px; color: var(--muted); border-left: 1px solid #e2d9ea; font-size: 15px; font-weight: 400; letter-spacing: -.01em; }
.splash-content > p { color: var(--text); font-size: clamp(43px,5.5vw,68px); font-weight: 600; line-height: 1.12; letter-spacing: -.055em; }
.splash-content > p > span { color: var(--text); }
.splash-caption { max-width: 50ch; margin: 24px auto 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.splash-skip { position: absolute; bottom: max(35px,env(safe-area-inset-bottom)); right: 42px; z-index: 3; display: flex; align-items: center; gap: 18px; min-height: 44px; padding: 10px 16px; color: var(--muted); border: 1px solid #e7ddeb; border-radius: 10px; background: #fff9; font-size: 12px; }
.splash-skip > span { color: var(--muted); font-size: 18px; }
.splash-orbit { position: absolute; left: 50%; top: 50%; width: 620px; height: 620px; transform: translate(-50%,-50%); opacity: .55; }
.splash-orbit span { position: absolute; inset: 0; border: 1px solid #e2dceb; border-radius: 50%; transform: rotate(-25deg) scaleY(.6); }
.splash-orbit span:nth-child(2) { transform: rotate(30deg) scaleY(.67); border-color: #e4d6ee; }
.splash-orbit span:nth-child(3) { transform: rotate(84deg) scaleY(.72); border-color: #d4e9df; }
.toast { position: fixed; z-index: 190; bottom: 25px; left: 50%; max-width: min(90vw,480px); padding: 14px 22px; color: #5b526c; background: #fff; border: 1px solid #ded6e9; border-radius: 12px; box-shadow: 0 9px 30px #71538a18; font-size: 13px; line-height: 1.6; text-align: center; opacity: 0; transform: translate(-50%,12px); transition: opacity .18s, transform .18s; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.modal-backdrop { position: fixed; inset: 0; z-index: 160; display: flex; align-items: center; justify-content: center; padding: 25px; overflow: auto; background: #f4f0f7dc; backdrop-filter: blur(8px); }
.app-modal { position: relative; width: 100%; max-width: 720px; max-height: 89dvh; padding: 36px; overflow: auto; background: #fff; border: 1px solid #e1d5e8; border-radius: 22px; box-shadow: 0 22px 80px #8d63a01a; }
.app-modal h2 { padding-right: 30px; margin-bottom: 14px; color: #6a4d7d; font-size: 30px; line-height: 1.25; }
.app-modal p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.modal-close { position: absolute; top: 15px; right: 15px; width: 38px; height: 38px; border: 1px solid #e7daef; border-radius: 11px; color: var(--muted); font-size: 24px; }
.modal-close .icon { width: 18px; height: 18px; }
.muted { color: var(--muted); }
.plan-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.plan-option { display: flex; flex-direction: column; padding: 24px; background: #faf7fc; border: 1px solid #e9def0; border-radius: 15px; }
.plan-option:last-child { background: #f4effb; border-color: #d9c5eb; }
.plan-option h3 { color: var(--text); font-size: 21px; margin-bottom: 10px; }
.app-modal .plan-price { margin: 12px 0 15px; color: #8d64a6; font-size: 34px; line-height: 1.3; font-weight: 600; letter-spacing: -.04em; }
.plan-price small, .plan-price span { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan-option ul { padding-left: 17px; margin: 15px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.plan-option > .button { margin-top: 24px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 25px; }
.copy-fallback { display: block; width: 100%; min-height: 120px; padding: 14px; margin: 20px 0; background: #faf6fc; color: var(--muted); border: 1px solid #e9d8f1; border-radius: 9px; resize: vertical; font-size: 13px; }
.form-error, #form-error { padding: 0 0 12px; color: #ad5369; font-size: 12px; line-height: 1.7; }
.form-error:empty, #form-error:empty { display: none; }
.spinner { display: block; width: 15px; height: 15px; border: 2px solid #fff6; border-top-color: #fff; border-radius: 50%; animation: spin .75s linear infinite; }
.is-loading { opacity: .7; }
.noscript-message { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; padding: 26px; color: #6f5183; background: #fff; border-top: 1px solid #dfcde9; font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes splash-arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

/* Tablet widths preserve the comparison layout without shrinking the reading. */
@media (min-width: 1600px) {
  .page-width { max-width: 1430px; }
  .header-inner { max-width: 1510px; }
  .answer-card-body { padding: 28px; }
}
@media (max-width: 1160px) {
  .header-inner { padding: 0 30px; gap: 28px; }
  .brand { min-width: 150px; }
  .desktop-nav a { padding: 9px 12px; }
  .header-actions { gap: 9px; }
  .launch-button { display: none; }
  .view-picker select { max-width: 145px; }
  .page-width { padding: 0 32px; }
  .heading-actions .button { font-size: 11px; padding: 11px 13px; }
  .page-heading h1 { font-size: 34px; }
  .workspace-layout { grid-template-columns: minmax(0,1fr) 245px; gap: 27px; }
  .workspace-question-title h2 { font-size: 21px; }
  .usage-panel { padding: 21px; }
  .answer-card > header { padding: 17px 15px; }
  .model-identity { gap: 8px; }
  .model-identity .model-mark { width: 33px; height: 33px; font-size: 24px; border-radius: 10px; }
  .answer-number { display: none; }
  .answer-card-body { padding: 23px 17px; }
  .answer-card h3 { font-size: 21px; min-height: 66px; }
  .answer-card > footer { gap: 11px; padding: 4px 15px; }
  .mini-action { font-size: 11px; }
  .synthesis-layout { gap: 35px; grid-template-columns: minmax(0,1fr) 225px; }
  .synthesis-article { padding: 29px; }
  .limit-layout { gap: 48px; grid-template-columns: 1fr 390px; }
  .compare-select-strip { grid-template-columns: 125px minmax(0,1fr); }
  .compare-model-controls { gap: 44px; padding: 0 22px; }
  .compare-row { grid-template-columns: 125px 1fr 1fr; }
  .compare-row > div, .compare-row > h3 { padding: 22px; }
  .settings-layout { grid-template-columns: 185px 1fr; gap: 30px; }
  .help-layout { grid-template-columns: 1fr 260px; gap: 40px; }
  .site-footer { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 950px) {
  .header-inner { min-height: 72px; padding: 0 25px; gap: 23px; }
  .brand { min-width: 145px; }
  .desktop-nav { gap: 2px; }
  .desktop-nav a { font-size: 12px; padding: 8px 11px; }
  .view-picker { display: none; }
  .page-width { padding: 0 26px; }
  .home-studio { min-height: calc(100svh - 180px); padding: 42px 46px 52px; }
  .studio-intro h1 { font-size: 39px; }
  .studio-intro p { font-size: 14px; }
  .studio-composer::before { left: -29px; font-size: 31px; }
  .studio-composer::after { right: -29px; font-size: 32px; }
  .composer-bottom { flex-wrap: wrap; }
  .compare-submit { margin-left: auto; }
  .workspace-layout { grid-template-columns: 1fr; gap: 0; }
  .workspace-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 0; margin-bottom: 35px; }
  .aside-note { padding: 7px 0; }
  .aside-note h3 { max-width: none; }
  .help-inline { grid-column: 1/-1; padding: 14px 0; }
  .workspace-main .example-prompts > span { width: auto; }
  .composer-compact .composer-bottom { flex-wrap: nowrap; }
  .saved-banner { margin-bottom: 32px; }
  .page-heading { align-items: flex-start; gap: 20px; }
  .heading-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 260px; }
  .page-heading h1 { font-size: 32px; }
  .page-heading p { font-size: 13px; }
  .answer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .answer-grid-1 { grid-template-columns: 1fr; }
  .answer-card:nth-child(odd) { border-left: 0; }
  .answer-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .answer-card > header { padding: 21px; }
  .answer-number { display: block; }
  .model-identity .model-mark { width: 38px; height: 38px; font-size: 27px; }
  .answer-card-body { padding: 26px; }
  .answer-card h3 { font-size: 26px; min-height: 0; }
  .answer-card > footer { padding: 5px 24px; gap: 24px; }
  .mini-action { font-size: 11px; }
  .difference-layout { gap: 26px; }
  .shared-ground { padding: 29px; }
  .shared-ground h2 { font-size: 29px; }
  .synthesis-layout { gap: 26px; grid-template-columns: minmax(0,1fr) 205px; }
  .synthesis-article { padding: 26px; }
  .synthesis-article h2 { font-size: 32px; }
  .synthesis-article > .article-lead { font-size: 16px; }
  .synthesis-label { flex-wrap: wrap; }
  .synthesis-label > span { margin-left: 0; }
  .synthesis-aside h3 { font-size: 17px; }
  .limit-layout { gap: 30px; grid-template-columns: 1fr 350px; }
  .limit-story h1 { font-size: 43px; }
  .limit-card { padding: 29px; }
  .limit-card h2 { font-size: 28px; }
  .compare-select-strip { grid-template-columns: 105px minmax(0,1fr); }
  .compare-model-controls { gap: 40px; padding: 0 20px; }
  .compare-row { grid-template-columns: 105px 1fr 1fr; }
  .compare-row > div, .compare-row > h3 { padding: 20px; }
  .compare-row h4 { font-size: 18px; }
  .focused-insight { flex-wrap: wrap; }
  .focused-insight > .text-link { margin-left: 60px; }
  .history-toolbar { gap: 14px; }
  .history-list { padding: 0 21px; }
  .settings-layout { grid-template-columns: 165px 1fr; gap: 24px; }
  .settings-nav a, .settings-nav button { font-size: 11px; padding: 10px; }
  .settings-section { padding: 25px; }
  .settings-save-row { flex-wrap: wrap; }
  .settings-save-row > .button { margin-left: auto; }
  .plan-settings-content { flex-wrap: wrap; }
  .help-layout { grid-template-columns: 1fr 235px; gap: 30px; }
  .help-lead { padding: 24px; gap: 17px; }
  .help-lead h2 { font-size: 21px; max-width: 25ch; }
  .help-lead .button { font-size: 11px; }
  .site-footer { padding: 25px 26px; }
  .site-footer > p { display: none; }
}

/* Mobile is designed as an app surface: one reading column and a fixed dock. */
@media (max-width: 767px) {
  html { scroll-padding-top: 82px; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); font-size: 14px; }
  .page-width { padding: 0 21px; }
  .site-header { position: sticky; top: 0; }
  .header-inner { min-height: 66px; padding: 0 21px; gap: 16px; }
  .brand { min-width: 0; gap: 10px; }
  .brand img { width: 67px; height: 26px; }
  .brand > svg, .brand-mark, .brand-symbol { width: 27px; height: 29px; }
  .brand-name { font-size: 21px; }
  .brand-product { font-size: 12px; }
  .desktop-nav { display: none; }
  .header-actions { gap: 10px; }
  .avatar { width: 32px; height: 32px; border-radius: 11px; font-size: 11px; }
  .menu-toggle { display: inline-flex; width: 36px; height: 44px; }
  .demo-ribbon { min-height: 30px; padding: 7px 14px; gap: 6px; font-size: 11px; }
  .ribbon-divider { margin: 0 1px; }
  .mobile-menu:not([hidden]) { position: absolute; top: 100%; left: 0; right: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 12px; max-height: 70dvh; padding: 16px 21px 21px; overflow: auto; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 25px #53416e0a; }
  .mobile-menu a, .mobile-menu button { display: flex; align-items: center; min-height: 46px; padding: 10px; border-radius: 8px; color: var(--muted); font-size: 12px; text-align: left; }
  .mobile-menu a.is-active { background: var(--lilac-bg); color: var(--accent); }
  .mobile-menu a:hover, .mobile-menu button:hover { color: var(--accent); background: #f7f2fb; }
  .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; display: grid; grid-template-columns: repeat(4,1fr); padding: 7px 12px calc(8px + env(safe-area-inset-bottom)); min-height: 70px; background: #ffffffed; backdrop-filter: blur(18px); border-top: 1px solid #e5dcec; box-shadow: 0 -4px 22px #8b5eaa05; }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 49px; padding: 6px 9px; margin: 0 3px; border-radius: 14px; color: var(--muted); font-size: 11px; line-height: 1.3; }
  .bottom-nav svg { width: 20px; height: 20px; }
  .bottom-nav a.is-active { color: var(--accent); background: #f0eafb; }
  .home-studio { min-height: calc(100svh - 174px); padding: 30px 25px 36px; justify-content: center; }
  .studio-intro { margin-bottom: 25px; max-width: 540px; }
  .studio-wordmark-art { width: 105px; height: 72px; max-height: none; margin-bottom: 17px; }
  .studio-intro > svg, .studio-intro > img { max-width: 145px; max-height: 65px; margin-bottom: 18px; }
  .studio-intro h1 { font-size: clamp(30px,5.9vw,38px); line-height: 1.2; max-width: 19ch; margin: 0 auto; }
  .studio-intro p { max-width: 38ch; margin-top: 12px; font-size: 13px; line-height: 1.8; }
  .studio-composer { max-width: 580px; }
  .studio-composer::before { top: -19px; left: -17px; font-size: 27px; }
  .studio-composer::after { right: -17px; bottom: 24px; font-size: 26px; }
  .composer { padding: 21px 20px 0; border-radius: 18px; }
  .composer-label { margin-bottom: 12px; font-size: 11px; }
  .composer textarea { min-height: 98px; font-size: 20px; line-height: 1.5; }
  .composer-bottom { flex-direction: column; align-items: stretch; gap: 16px; padding: 15px 0 20px; }
  .composer .model-pills { gap: 7px; }
  .composer .model-pill { flex: 1; padding: 8px; gap: 5px; min-height: 44px; font-size: 11px; }
  .composer .model-check { display: none; }
  .composer .model-mark.small { width: 17px; height: 17px; font-size: 17px; }
  .compare-submit { width: 100%; min-height: 47px; margin: 0; justify-content: space-between; padding: 13px 17px; font-size: 12px; }
  .composer-help { align-items: flex-start; margin: 0 -20px; padding: 11px 20px; border-radius: 0 0 18px 18px; font-size: 11px; }
  .composer-help .icon { margin-top: 2px; flex-shrink: 0; }
  .studio-suggestions { margin-top: 17px; max-width: 560px; }
  .studio-suggestions .example-prompts { gap: 8px; }
  .studio-suggestions .example-prompts > span { margin-bottom: 3px; }
  .example-prompts { gap: 8px; padding: 17px 0; }
  .example-prompts > span { width: 100%; font-size: 11px; }
  .example-prompts button { min-height: 44px; padding: 9px 10px; font-size: 11px; gap: 5px; }
  .example-prompts .icon { width: 11px; height: 11px; }
  .studio-footnote { margin-top: 21px; font-size: 11px; max-width: 45ch; }
  .page-heading { display: block; padding: 30px 0 25px; }
  .page-heading h1 { font-size: 31px; line-height: 1.18; max-width: 23ch; }
  .page-heading .eyebrow { margin-bottom: 11px; font-size: 11px; }
  .page-heading p { max-width: 48ch; font-size: 12px; line-height: 1.8; margin-top: 12px; }
  .heading-actions { justify-content: flex-start; gap: 8px; max-width: none; margin-top: 19px; }
  .heading-actions .button { min-height: 44px; padding: 11px 13px; font-size: 11px; }
  .heading-actions .button .icon { width: 15px; height: 15px; }
  .workspace-question-title { margin: 2px 0 18px; gap: 12px; }
  .workspace-question-title h2 { max-width: 20ch; font-size: 20px; }
  .subtle-count { font-size: 11px; }
  .composer-compact { padding: 20px 20px 0; }
  .composer-compact textarea { font-size: 19px; min-height: 94px; }
  .composer-compact .composer-bottom { flex-direction: column; align-items: stretch; gap: 16px; }
  .composer-compact .compare-submit { margin: 0; }
  .composer-compact .composer-help { padding: 11px 20px; margin: 0 -20px; }
  .workspace-main .example-prompts > span { width: 100%; }
  .workspace-aside { gap: 22px; margin-bottom: 30px; }
  .usage-panel { padding: 22px; }
  .panel-label { display: block; font-size: 11px; }
  .panel-label .plan-tag { display: block; width: max-content; margin-top: 8px; }
  .usage-number { margin-top: 20px; font-size: 39px; }
  .usage-number span { font-size: 18px; }
  .usage-panel > p { font-size: 11px; }
  .usage-foot { flex-wrap: wrap; font-size: 11px; }
  .usage-panel .button { min-height: 44px; font-size: 11px; padding: 11px; }
  .aside-note { padding: 3px 0; }
  .aside-note h3 { font-size: 21px; }
  .aside-note p { font-size: 11px; }
  .aside-note .text-link { font-size: 11px; }
  .help-inline { font-size: 11px; padding: 13px 0; }
  .recent-section { margin-top: 25px; }
  .section-title h2 { font-size: 21px; }
  .section-title .text-link { font-size: 11px; }
  .recent-row { gap: 12px; min-height: 80px; }
  .recent-text strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; font-size: 12px; line-height: 1.55; }
  .recent-text small { font-size: 11px; }
  .recent-date { display: none; }
  .saved-banner { margin: 24px 0 31px; padding: 19px; gap: 15px; }
  .saved-banner h3 { font-size: 17px; }
  .saved-banner p { font-size: 11px; }
  .question-strip { align-items: flex-start; gap: 10px; padding: 16px 14px; border-radius: 11px; }
  .question-symbol { width: 25px; height: 31px; }
  .question-symbol > .icon { width: 18px; height: 18px; }
  .question-strip > div > span { font-size: 11px; }
  .question-strip p { font-size: 14px; line-height: 1.6; }
  .question-strip > .text-link { min-height: 32px; font-size: 11px; gap: 4px; }
  .question-strip > .text-link .icon { width: 12px; height: 12px; }
  .results-tabs { gap: 23px; margin-top: 20px; }
  .results-tabs button { min-height: 49px; font-size: 11px; gap: 6px; padding-bottom: 13px; }
  .results-tabs button .icon { width: 14px; height: 14px; }
  .sample-notice { padding: 15px 0 19px; gap: 7px; }
  .sample-notice p { font-size: 11px; line-height: 1.8; }
  .sample-notice > .icon { width: 13px; height: 13px; }
  .context-guide { font-size: 11px; margin-bottom: 16px; }
  .answer-card > header { padding: 18px 16px; }
  .model-identity { gap: 8px; }
  .model-identity h2 { font-size: 14px; }
  .model-identity div > span { font-size: 11px; }
  .model-identity .model-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 24px; }
  .answer-number { display: none; }
  .answer-card-body { padding: 21px 18px; }
  .answer-card h3 { font-size: 23px; line-height: 1.25; }
  .answer-card > footer { padding: 4px 15px; gap: 12px; }
  .mini-action { font-size: 11px; gap: 5px; }
  .mini-action .icon { width: 13px; height: 13px; }
  .mini-action.icon-only { width: 24px; }
  .results-bottom-note { display: block; padding: 22px 0 35px; }
  .results-bottom-note > span { align-items: flex-start; font-size: 11px; line-height: 1.8; }
  .results-bottom-note > span .icon { margin-top: 2px; }
  .results-bottom-note > .text-link { font-size: 11px; margin-top: 10px; }
  .difference-layout { grid-template-columns: 1fr; gap: 26px; padding-top: 5px; }
  .shared-ground { padding: 28px; }
  .shared-ground h2 { font-size: 31px; }
  .shared-ground > p { font-size: 13px; }
  .large-outline-icon { margin-bottom: 22px; }
  .difference-list { padding: 0; }
  .difference-list > h2 { font-size: 22px; }
  .difference-row p { font-size: 12px; }
  .synthesis-preview { grid-template-columns: 1fr; gap: 23px; padding: 28px; }
  .synthesis-emblem { width: 58px; height: 58px; border-radius: 19px; margin: 0; }
  .synthesis-emblem > .icon { width: 28px; height: 28px; }
  .synthesis-preview h2 { font-size: 32px; }
  .synthesis-preview p { font-size: 13px; margin: 20px 0; }
  .back-link { padding-top: 17px; font-size: 11px; }
  .back-link + .page-heading { padding-top: 15px; }
  .synthesis-layout { grid-template-columns: 1fr; gap: 28px; padding: 26px 0 35px; }
  .synthesis-article { padding: 26px; border-radius: 13px; }
  .synthesis-label { margin-bottom: 20px; gap: 7px; font-size: 11px; }
  .synthesis-label > span { margin-left: auto; font-size: 11px; }
  .synthesis-article h2 { font-size: 33px; }
  .synthesis-article > .article-lead { margin-top: 22px; font-size: 16px; line-height: 1.85; }
  .synthesis-article > p { font-size: 13px; line-height: 1.95; margin-top: 20px; }
  .synthesis-article blockquote { font-size: 24px; padding: 18px 20px; margin: 27px 0; line-height: 1.5; }
  .synthesis-article > h3 { font-size: 22px; margin: 27px 0 18px; }
  .action-step { gap: 15px; padding: 21px 0; }
  .action-step h4 { font-size: 17px; }
  .action-step p { font-size: 13px; }
  .synthesis-attribution { padding: 15px; gap: 8px; }
  .synthesis-attribution p { font-size: 11px; }
  .synthesis-aside { padding: 25px 0 0; border-top: 1px solid var(--line); }
  .aside-sticky { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .synthesis-aside h3 { grid-column: 1/-1; font-size: 19px; margin-bottom: 12px; }
  .source-perspective { padding: 12px 0; }
  .synthesis-aside .button { grid-column: 1/-1; margin-top: 17px; }
  .aside-question { grid-column: 1/-1; margin-top: 27px; padding-top: 24px; }
  .aside-question h3 { font-size: 22px; }
  .aside-question p { max-width: 44ch; font-size: 12px; }
  .limit-layout { grid-template-columns: 1fr; gap: 26px; margin: 18px auto 38px; }
  .limit-story h1 { font-size: 43px; max-width: 15ch; }
  .limit-story > p { max-width: 45ch; margin-top: 18px; font-size: 13px; }
  .limit-contour { display: none; }
  .limit-card { width: 100%; max-width: 460px; padding: 29px; border-radius: 20px; }
  .limit-icon { width: 42px; height: 42px; border-radius: 13px; margin-bottom: 20px; }
  .limit-card h2 { font-size: 29px; }
  .limit-card > p { font-size: 12px; }
  .limit-meter { padding-top: 22px; margin: 23px 0; }
  .compare-model-controls { gap: 14px; padding: 0; }
  .compare-model-field { gap: 8px; font-size: 11px; }
  .compare-model-field > label, .compare-model-field > span { font-size: 11px; }
  .compare-model-field .field-select { min-height: 46px; padding: 11px; font-size: 12px; }
  .compare-select-strip { display: block; padding-bottom: 20px; }
  .compare-select-strip > span { display: block; padding-bottom: 0; margin-bottom: 11px; font-size: 11px; }
  .compare-select-strip .model-pills { gap: 7px; }
  .compare-select-strip .model-pill { flex: 1; padding: 8px; font-size: 11px; }
  .compare-select-strip .model-mark.small { width: 17px; height: 17px; font-size: 17px; }
  .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-row > h3 { grid-column: 1/-1; padding: 11px 16px; border-left: 0; background: #f7f3fb; color: var(--text); font-size: 11px; }
  .compare-row > div { padding: 20px 17px; border-top: 0; }
  .compare-row > div:nth-child(2) { border-left: 0; }
  .compare-head > div:first-child { display: none; }
  .compare-head > div:not(:first-child) { grid-template-columns: 32px 1fr; gap: 3px 10px; padding: 19px 16px; }
  .compare-head h2 { font-size: 16px; }
  .compare-head .model-mark { width: 31px; height: 31px; font-size: 23px; border-radius: 10px; }
  .compare-head div > span:last-child { font-size: 11px; }
  .compare-row h4 { font-size: 18px; line-height: 1.4; margin-bottom: 12px; }
  .compare-row p { font-size: 12px; line-height: 1.9; }
  .focused-insight { padding: 22px; gap: 15px; margin: 23px 0 35px; }
  .focused-insight > span > .model-mark { width: 34px; height: 34px; font-size: 25px; }
  .focused-insight h3 { font-size: 19px; line-height: 1.3; }
  .focused-insight p { font-size: 11px; line-height: 1.85; }
  .focused-insight .text-link { margin-left: 49px; font-size: 11px; }
  .history-toolbar { flex-wrap: wrap; gap: 11px 16px; padding-bottom: 21px; }
  .search-field { max-width: none; flex: 1 0 100%; min-height: 46px; padding: 0 13px; }
  .search-field input { font-size: 13px; }
  .saved-filter { font-size: 11px; min-height: 44px; }
  .history-model-filter { margin-left: auto; }
  .history-model-filter select { max-width: 120px; min-height: 44px; padding: 9px 10px; font-size: 11px; }
  .history-count { font-size: 11px; }
  .history-list { padding: 0 19px; border-radius: 12px; }
  .history-item { gap: 10px; align-items: flex-start; padding: 21px 0; }
  .history-item-main { align-items: flex-start; gap: 13px; }
  .history-item-icon { width: 34px; height: 34px; border-radius: 10px; margin-top: 4px; }
  .history-item-icon > .icon { width: 17px; height: 17px; }
  .history-date { font-size: 11px; margin-bottom: 6px; }
  .history-item h2 { font-size: 17px; line-height: 1.5; }
  .history-models { gap: 7px 11px; margin-top: 10px; }
  .history-models > span { font-size: 11px; }
  .history-models .model-mark.small { width: 13px; height: 13px; font-size: 13px; }
  .history-item-actions { flex-direction: column; gap: 0; }
  .history-item-actions .icon-button { width: 34px; height: 44px; }
  .history-item-actions .icon { width: 17px; height: 17px; }
  .history-bottom { align-items: flex-start; gap: 12px; padding: 19px 0 30px; }
  .history-bottom p { align-items: flex-start; max-width: 25ch; padding-top: 10px; font-size: 11px; line-height: 1.8; }
  .history-bottom p > .icon { margin-top: 3px; }
  .history-bottom .text-button { white-space: nowrap; font-size: 11px; }
  .empty-state { padding: 44px 23px; }
  .empty-state h2 { font-size: 28px; }
  .empty-state p { font-size: 13px; line-height: 1.85; }
  .empty-state .button { font-size: 12px; }
  .settings-layout { display: block; margin-bottom: 35px; }
  .settings-nav { flex-direction: row; overflow: auto; gap: 6px; margin-bottom: 22px; padding: 0 0 13px; border-bottom: 1px solid var(--line); }
  .settings-nav a, .settings-nav button { min-height: 44px; font-size: 11px; white-space: nowrap; gap: 7px; padding: 10px; }
  .settings-nav .icon { width: 15px; height: 15px; }
  .settings-section { padding: 24px; margin-bottom: 18px; border-radius: 13px; }
  .settings-section-heading { padding-bottom: 21px; margin-bottom: 23px; }
  .settings-section-heading h2 { font-size: 22px; }
  .settings-section-heading p { font-size: 12px; margin-top: 8px; }
  .field-help { font-size: 11px; }
  .setting-row { gap: 17px; padding: 23px 0; }
  .setting-row > div > label { font-size: 12px; }
  .setting-row p { max-width: 29ch; font-size: 11px; line-height: 1.85; }
  .field-select { min-width: 98px; padding: 10px; font-size: 11px; }
  .settings-save-row { gap: 17px; padding-top: 22px; }
  .settings-save-row > .button { width: 100%; margin: 0; font-size: 12px; }
  .settings-save-row > span { font-size: 11px; }
  .plan-settings-content { gap: 20px; }
  .plan-settings-content h3 { font-size: 22px; }
  .plan-settings-content p { font-size: 11px; }
  .plan-settings-content .button { font-size: 11px; }
  .data-actions { flex-direction: column; gap: 10px; }
  .data-actions .button { font-size: 12px; }
  .help-intro { margin-bottom: 29px; }
  .help-lead { flex-wrap: wrap; gap: 16px; padding: 24px; border-radius: 14px; }
  .help-lead > span { width: 42px; height: 42px; border-radius: 13px; }
  .help-lead > span > .icon { width: 23px; height: 23px; }
  .help-lead h2 { font-size: 21px; line-height: 1.3; max-width: none; }
  .help-lead p { max-width: 39ch; font-size: 11px; line-height: 1.85; }
  .help-lead > .button { margin-left: 58px; font-size: 11px; }
  .help-layout { grid-template-columns: 1fr; gap: 32px; padding-bottom: 35px; }
  .faq-list > h2 { font-size: 23px; margin-bottom: 19px; }
  .faq-list summary { font-size: 13px; padding: 21px 0; line-height: 1.75; gap: 15px; }
  .faq-list summary > .icon { width: 16px; height: 16px; }
  .faq-list details p { padding: 0 20px 23px 0; font-size: 12px; line-height: 1.95; }
  .help-aside { padding-top: 0; }
  .help-aside > h3 { font-size: 21px; margin-bottom: 14px; }
  .help-aside > a { font-size: 12px; padding: 16px 0; }
  .support-note { padding: 25px; margin-top: 25px; border-radius: 14px; }
  .support-note p { max-width: 45ch; font-size: 12px; }
  .site-footer { display: block; padding: 23px 21px 27px; }
  .footer-brand { font-size: 18px; }
  .site-footer > div { flex-wrap: wrap; gap: 22px; margin: 15px 0 0; font-size: 11px; }
  .site-footer > div > span { margin-left: auto; font-size: 11px; }
  body[data-route="home"] .site-footer { display: none; }
  .toast { bottom: calc(89px + env(safe-area-inset-bottom)); min-width: 250px; max-width: calc(100vw - 32px); padding: 13px 18px; font-size: 12px; }
  .splash-content { padding: 24px; }
  .splash-mark { width: 83px; height: 83px; margin-bottom: 26px; }
  .splash-content > p { font-size: clamp(39px,9vw,57px); }
  .splash-wordmark { font-size: 25px; margin-bottom: 31px; }
  .splash-wordmark > span { font-size: 13px; }
  .splash-caption { max-width: 33ch; font-size: 12px; line-height: 1.85; margin-top: 22px; }
  .splash-skip { right: 25px; bottom: calc(25px + env(safe-area-inset-bottom)); font-size: 11px; }
  .splash-orbit { width: 470px; height: 470px; }
  .modal-backdrop { padding: 17px; }
  .app-modal { max-height: 86dvh; padding: 28px 24px; border-radius: 19px; }
  .app-modal h2 { font-size: 27px; padding-right: 27px; margin-bottom: 13px; }
  .app-modal p { font-size: 12px; }
  .modal-close { top: 13px; right: 13px; width: 34px; height: 34px; border-radius: 10px; font-size: 20px; }
  .plan-options { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
  .plan-option { padding: 23px; border-radius: 13px; }
  .app-modal .plan-price { font-size: 31px; }
  .modal-actions { flex-wrap: wrap; gap: 10px; }
  .modal-actions .button { flex: 1; font-size: 12px; }
  .copy-fallback { min-height: 105px; font-size: 12px; }
}
@media (max-width: 480px) {
  .page-width { padding: 0 18px; }
  .header-inner { padding: 0 18px; }
  .demo-ribbon { font-size: 11px; padding: 7px 10px; gap: 5px; }
  .home-studio { padding: 27px 20px 32px; }
  .studio-intro { margin-bottom: 23px; }
  .studio-intro h1 { max-width: 18ch; font-size: 31px; line-height: 1.2; }
  .studio-intro p { max-width: 33ch; font-size: 12px; }
  .studio-wordmark-art { width: 105px; height: 70px; max-height: none; margin-bottom: 16px; }
  .studio-intro > svg, .studio-intro > img { max-width: 128px; max-height: 60px; margin-bottom: 16px; }
  .studio-composer::before { top: -15px; left: -11px; font-size: 24px; }
  .studio-composer::after { right: -12px; bottom: 33px; font-size: 24px; }
  .composer { padding: 20px 17px 0; border-radius: 17px; }
  .composer textarea { min-height: 102px; font-size: 19px; }
  .composer-label { font-size: 11px; margin-bottom: 11px; }
  .composer .model-pill { flex: 1 0 calc(50% - 7px); min-height: 44px; font-size: 11px; padding: 9px; gap: 7px; }
  .composer .model-mark.small { width: 18px; height: 18px; font-size: 18px; }
  .composer .model-check { display: flex; margin-left: 3px; }
  .composer-bottom { gap: 14px; padding: 15px 0 18px; }
  .composer-help { margin: 0 -17px; padding: 11px 17px; border-radius: 0 0 17px 17px; font-size: 11px; }
  .composer-compact { padding: 20px 17px 0; }
  .composer-compact .composer-help { margin: 0 -17px; padding: 11px 17px; }
  .studio-suggestions .example-prompts { gap: 7px; }
  .example-prompts button { font-size: 11px; min-height: 44px; padding: 8px 10px; }
  .studio-footnote { max-width: 37ch; margin-top: 18px; }
  .page-heading h1 { font-size: 29px; }
  .heading-actions .button { font-size: 11px; gap: 7px; padding: 11px 12px; }
  .workspace-question-title h2 { font-size: 20px; }
  .workspace-aside { grid-template-columns: 1fr; gap: 24px; }
  .usage-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 19px; padding: 23px; }
  .panel-label { display: flex; align-items: center; gap: 14px; grid-column: 1/-1; font-size: 11px; }
  .panel-label .plan-tag { margin: 0; }
  .usage-number { grid-row: 2/4; font-size: 42px; margin-top: 20px; }
  .usage-panel > p { grid-row: 4; grid-column: 1; }
  .usage-panel .usage-track { grid-column: 2; grid-row: 2; margin-top: 29px; }
  .usage-panel .usage-foot { grid-column: 2; grid-row: 3; margin: 8px 0 0; font-size: 11px; }
  .usage-panel .button { grid-column: 1/-1; margin-top: 20px; font-size: 11px; }
  .aside-note { padding: 0 3px; }
  .aside-note-icon { float: left; margin: 0 16px 15px 0; }
  .aside-note h3 { max-width: none; font-size: 22px; padding-top: 6px; }
  .aside-note p { clear: both; max-width: 45ch; font-size: 12px; margin-top: 18px; }
  .aside-note .text-link { font-size: 11px; }
  .help-inline { margin-top: -7px; }
  .question-strip { gap: 8px; padding: 14px 12px; }
  .question-strip p { font-size: 13px; }
  .question-strip > .text-link { font-size: 11px; }
  .question-symbol { width: 22px; }
  .results-tabs { gap: 20px; }
  .results-tabs button { font-size: 11px; gap: 5px; }
  .results-tabs button .icon { width: 13px; height: 13px; }
  .answer-grid { grid-template-columns: 1fr; }
  .answer-card { border-left: 0; }
  .answer-card + .answer-card { border-top: 1px solid var(--line); }
  .answer-card > header { padding: 20px 23px; }
  .model-identity h2 { font-size: 15px; }
  .model-identity div > span { font-size: 11px; }
  .model-identity .model-mark { width: 37px; height: 37px; border-radius: 11px; font-size: 27px; }
  .answer-number { display: block; }
  .answer-card-body { padding: 25px 24px; }
  .angle-label { font-size: 11px; }
  .answer-card h3 { max-width: 22ch; font-size: 27px; line-height: 1.2; }
  .answer-card > footer { padding: 5px 22px; gap: 26px; }
  .mini-action { font-size: 11px; }
  .mini-action .icon { width: 15px; height: 15px; }
  .mini-action.icon-only { width: 32px; }
  .synthesis-article { padding: 23px 20px; }
  .synthesis-article h2 { font-size: 30px; }
  .synthesis-label { flex-wrap: wrap; gap: 8px; }
  .synthesis-label > span { margin-left: 0; }
  .synthesis-article blockquote { padding: 17px 18px; font-size: 22px; }
  .action-step { gap: 12px; }
  .action-step h4 { font-size: 16px; }
  .compare-select-strip .model-pill { padding: 8px 7px; font-size: 11px; gap: 5px; }
  .compare-select-strip .model-mark.small { width: 15px; height: 15px; font-size: 15px; }
  .compare-head > div:not(:first-child) { grid-template-columns: 28px 1fr; gap: 3px 8px; padding: 18px 13px; }
  .compare-head .model-mark { width: 28px; height: 28px; font-size: 21px; }
  .compare-head h2 { font-size: 15px; }
  .compare-head div > span:last-child { font-size: 11px; }
  .compare-row > div { padding: 20px 14px; }
  .compare-row h4 { font-size: 17px; }
  .compare-row p { font-size: 12px; }
  .compare-row > h3 { font-size: 11px; }
  .focused-insight { align-items: flex-start; padding: 20px; }
  .focused-insight > span { padding-top: 5px; }
  .focused-insight .text-link { margin-left: 0; }
  .history-list { padding: 0 15px; }
  .history-item-main { gap: 10px; }
  .history-item-icon { width: 30px; height: 30px; }
  .history-item h2 { font-size: 16px; }
  .history-models { gap: 7px 10px; }
  .history-models > span { font-size: 11px; }
  .history-item-actions .icon-button { width: 29px; }
  .history-count { width: 100%; margin-top: -5px; }
  .settings-section { padding: 22px; }
  .setting-row { gap: 13px; }
  .field-select { min-width: 92px; padding: 10px 8px; font-size: 11px; }
  .setting-row p { max-width: 25ch; font-size: 11px; }
  .help-lead { padding: 22px; gap: 14px; }
  .help-lead > span { width: 37px; height: 37px; }
  .help-lead h2 { font-size: 20px; }
  .help-lead > .button { margin-left: 51px; }
  .site-footer { padding: 23px 18px 27px; }
  .site-footer > div { gap: 18px; }
  .site-footer > div > span { font-size: 11px; }
  .limit-story h1 { font-size: 41px; }
  .limit-card { padding: 27px; }
  .limit-card h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .splash-content, .spinner { animation: none; }
}
