:root {
  color-scheme: light;
  --paper: #f4efe4;
  --paper-strong: #fffdf7;
  --ink: #173c3a;
  --muted: #60716d;
  --teal: #1f8179;
  --teal-dark: #125b56;
  --mint: #dbece6;
  --gold: #e4b45b;
  --line: #244c48;
  --red: #b94c43;
  --amber: #9a6b22;
  --shadow: 5px 6px 0 rgba(23, 60, 58, 0.15);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: linear-gradient(rgba(31,129,121,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(31,129,121,.045) 1px, transparent 1px), var(--paper); background-size: 28px 28px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.site-nav { height: 46px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 0 18px; border-bottom: 1px solid #dfe3df; background: #fff; color: #263b35; }
.site-nav a { color: inherit; text-decoration: none; }
.site-brand { width: max-content; display: inline-flex; align-items: center; gap: 9px; }
.site-brand > img { width: 28px; height: 28px; display: block; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 9px rgba(23,60,53,.18); }
.site-brand strong { font-size: 14px; letter-spacing: .04em; }
.site-nav-links { height: 100%; display: flex; align-items: stretch; gap: 4px; }
.site-nav-links a { min-width: 84px; display: grid; place-items: center; position: relative; padding: 0 12px; color: #69766f; font-size: 12px; font-weight: 750; }
.site-nav-links a::after { content: ""; height: 2px; position: absolute; right: 12px; bottom: 0; left: 12px; background: #b84e35; transform: scaleX(0); }
.site-nav-links a:hover, .site-nav-links a.is-active { color: #173c35; }
.site-nav-links a.is-active::after { transform: scaleX(1); }
.site-account { justify-self: end; min-height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid #cfd7d2; border-radius: 999px; background: #f8faf8; color: #31463f; font-size: 11px; font-weight: 700; }
.shell { width: min(1500px, calc(100% - 32px)); min-height: calc(100vh - 78px); margin: 16px auto; border: 2px solid var(--line); border-radius: 20px; background: var(--paper-strong); box-shadow: var(--shadow); overflow: hidden; }
.topbar { display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 16px 22px; border-bottom: 2px solid var(--line); background: rgba(255,253,247,.96); }
.brand-mark, .avatar { display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--teal); border: 2px solid var(--line); font-weight: 800; }
.brand-mark { width: 48px; height: 48px; border-radius: 14px 14px 14px 5px; box-shadow: 3px 3px 0 var(--gold); font-size: 22px; }
.brand-mark:is(img) { display: block; border-radius: 50%; object-fit: cover; }
.avatar:is(img) { display: block; border-radius: 50%; object-fit: cover; }
.brand-copy h1 { margin: 0; font-size: 21px; letter-spacing: .02em; }
.brand-copy p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.run-stats { display: flex; gap: 9px; margin-left: auto; }
.run-metric { display: grid; min-width: 72px; padding: 7px 9px; border: 1px solid #b5c8c1; border-radius: 9px; background: #f6fbf7; text-align: center; }
.run-metric strong { font-size: 15px; }
.run-metric small { color: var(--muted); font-size: 10px; }
.health { display: flex; align-items: center; gap: 8px; margin-left: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.health-dot { width: 10px; height: 10px; border: 2px solid var(--line); border-radius: 50%; background: var(--gold); }
.health.ready .health-dot { background: #68b987; }
.health.degraded .health-dot { background: #d96858; }
.workspace { display: grid; grid-template-columns: 270px minmax(400px, 1fr) 390px; min-height: calc(100vh - 132px); }
.setup { padding: 26px 20px; border-right: 2px solid var(--line); background: var(--mint); }
.eyebrow { margin: 0 0 7px; color: var(--teal-dark); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.setup h2, .inspector h2 { margin: 0 0 8px; font-size: 19px; }
.setup-note { margin: 0 0 21px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.access-card { display: grid; gap: 4px; margin: 0 0 16px; padding: 10px 11px; border: 1px solid #8eb7ac; border-radius: 10px; background: rgba(255,253,247,.72); }
.access-card span, .access-card small { color: var(--muted); font-size: 10px; }
.access-card strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.access-card.is-error { border-color: #db958c; background: #fff0ee; }
.identity-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.text-button { min-height: auto; padding: 0; color: var(--teal-dark); border: 0; background: transparent; box-shadow: none; font-size: 11px; }
.text-button:hover { text-decoration: underline; transform: none; }
label { display: grid; gap: 7px; margin-bottom: 14px; }
label > span, .field-label { font-size: 12px; font-weight: 800; }
input, textarea { width: 100%; color: var(--ink); border: 2px solid var(--line); border-radius: 10px; background: var(--paper-strong); outline: none; transition: box-shadow 150ms ease, transform 150ms ease; }
input { height: 42px; padding: 0 11px; font-size: 13px; }
textarea { min-height: 58px; padding: 11px 13px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(31,129,121,.2); }
.game-picker-control { position: relative; min-width: 0; }
.game-results { position: absolute; z-index: 20; top: calc(100% + 5px); left: 0; width: 100%; max-height: 260px; padding: 5px; overflow-y: auto; border: 2px solid var(--line); border-radius: 10px; background: var(--paper-strong); box-shadow: var(--shadow); }
.game-results button { display: block; width: 100%; min-height: 36px; padding: 7px 9px; color: var(--ink); border: 0; border-radius: 7px; background: transparent; text-align: left; }
.game-results button:hover, .game-results button:focus { background: var(--mint); transform: none; }
.game-results p { margin: 0; padding: 9px; color: var(--muted); font-size: 11px; }
.toggle-row { grid-template-columns: 18px minmax(0, 1fr); align-items: center; column-gap: 8px; margin: 6px 0 15px; }
.toggle-row input { width: 16px; height: 16px; accent-color: var(--teal); }
.toggle-row small { grid-column: 2; color: var(--muted); font-size: 10px; line-height: 1.4; }
button { min-height: 40px; padding: 0 15px; border: 2px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 800; transition: transform 120ms ease, box-shadow 120ms ease; }
button:hover { transform: translateY(-1px); }
button:active { transform: translateY(1px); box-shadow: none; }
button:disabled { cursor: wait; opacity: .62; transform: none; }
.secondary { width: 100%; color: var(--ink); background: var(--paper-strong); box-shadow: 3px 3px 0 rgba(23,60,58,.16); }
.primary { color: #fff; background: var(--teal); box-shadow: 3px 3px 0 var(--teal-dark); }
.session-history { margin-top: 23px; padding-top: 17px; border-top: 1px dashed rgba(23,60,58,.38); }
.session-history-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.session-history-head small { color: var(--muted); font-size: 9px; }
.session-list { display: grid; gap: 6px; max-height: 285px; overflow-y: auto; }
.session-item { display: grid; gap: 3px; width: 100%; min-height: 0; padding: 9px 10px; color: var(--ink); border: 1px solid #91b8ae; border-radius: 9px; background: rgba(255,253,247,.66); text-align: left; }
.session-item:hover, .session-item:focus { background: #fff; transform: none; }
.session-item.is-active { border: 2px solid var(--teal-dark); background: #fff; }
.session-item strong, .session-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-item strong { font-size: 11px; }
.session-item span { color: var(--muted); font-size: 10px; font-weight: 500; }
.session-item small { color: #74847f; font-size: 8px; }
.session-empty { margin: 0; padding: 10px; color: var(--muted); border: 1px dashed #91b8ae; border-radius: 8px; font-size: 10px; text-align: center; }
.starter-block { margin-top: 25px; padding-top: 19px; border-top: 1px dashed rgba(23,60,58,.38); }
.starter-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.starter { min-height: 31px; padding: 0 9px; color: var(--teal-dark); border: 1px solid #7ca9a0; background: rgba(255,253,247,.65); font-size: 11px; }
.pipeline { display: grid; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px dashed rgba(23,60,58,.38); color: var(--muted); font-size: 11px; font-weight: 800; }
.pipeline i { width: 2px; height: 10px; margin-left: 13px; background: rgba(23,60,58,.35); }
.chat { display: grid; grid-template-rows: minmax(300px, 1fr) auto auto; min-width: 0; padding: 0 22px 16px; }
.messages { display: flex; flex-direction: column; gap: 18px; min-height: 0; padding: 25px 3px; overflow-y: auto; }
.message { display: flex; align-items: flex-start; gap: 10px; max-width: 92%; }
.message.user { align-self: flex-end; flex-direction: row-reverse; }
.avatar { width: 32px; height: 32px; border-radius: 10px 10px 10px 3px; font-size: 12px; }
.user .avatar { color: var(--ink); background: var(--gold); border-radius: 10px 10px 3px 10px; }
.bubble { min-width: 0; padding: 12px 14px; border: 2px solid var(--line); border-radius: 6px 15px 15px 15px; background: #fff; box-shadow: 3px 3px 0 rgba(23,60,58,.1); }
.user .bubble { border-radius: 15px 6px 15px 15px; background: #f8e4b7; }
.bubble p { margin: 0; line-height: 1.7; white-space: pre-wrap; }
.answer-copy { margin-top: 9px !important; }
.intro-bubble { background: #f5fbf8; }
.intro-points { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.intro-points span { padding: 4px 7px; border-radius: 6px; color: var(--teal-dark); background: var(--mint); font-size: 10px; font-weight: 800; }
.pending-bubble { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.loading-line { display: inline-block; width: 54px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--mint), var(--teal), var(--mint)); background-size: 180% 100%; animation: loading 1.2s ease-in-out infinite; }
@keyframes loading { 0% { background-position: 100% 0; } 100% { background-position: -80% 0; } }
.error-bubble { color: var(--red); background: #fff1ef; }
.answer-status-row, .card-title-row, .section-title, .selected-question, .fragment-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.meta, .section-title span, .card-title-row small { color: var(--muted); font-size: 11px; }
.status-pill { display: inline-flex; align-items: center; width: fit-content; padding: 3px 7px; border-radius: 999px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.status-grounded { border-color: #6fac8e; background: #e4f5e8; color: #226c49; }
.status-needs_review, .status-unbound { border-color: #cfaa67; background: #fff4d9; color: var(--amber); }
.status-uncovered, .status-empty { border-color: #db958c; background: #fff0ee; color: var(--red); }
.answer-item-preview-list { display: grid; gap: 7px; margin-top: 11px; }
.answer-item-preview { padding: 8px 9px; border-left: 3px solid var(--teal); background: #f5faf7; }
.answer-item-preview p { font-size: 12px; line-height: 1.5; }
.ref-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ref-chip { display: inline-flex; max-width: 100%; padding: 3px 6px; overflow: hidden; border-radius: 5px; color: var(--teal-dark); background: var(--mint); font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.missing-ref { color: var(--red); font-size: 10px; }
.followup-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.mini-label { color: var(--muted); font-size: 10px; font-weight: 800; }
.followup-chip { min-height: 28px; padding: 0 8px; color: var(--teal-dark); border: 1px solid #91b8ae; border-radius: 999px; background: #f6fbf8; font-size: 10px; }
.inspect-button { min-height: 28px; margin-top: 11px; padding: 0; color: var(--teal-dark); border: 0; background: transparent; font-size: 11px; }
.composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; padding-top: 16px; border-top: 2px solid var(--line); }
.composer label { margin: 0; }
.footnote { margin: 9px 2px 0; color: var(--muted); font-size: 10px; }
.inspector { min-width: 0; padding: 23px 17px 18px; border-left: 2px solid var(--line); background: #f8fbf6; overflow-y: auto; }
.inspector-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid #b7c9c1; }
.icon-btn { min-height: 30px; padding: 0 9px; color: var(--teal-dark); border: 1px solid #7ca9a0; background: #fff; font-size: 11px; }
.inspector-body { padding-top: 14px; }
.inspector-empty { display: grid; gap: 7px; padding: 22px 4px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.inspector-empty strong { color: var(--ink); font-size: 14px; }
.selected-question { align-items: flex-start; margin-bottom: 13px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.diagnostic-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 13px; }
.diagnostic-metrics > div { display: grid; gap: 4px; min-width: 0; padding: 8px 5px; border: 1px solid #d0ded7; border-radius: 7px; background: #fff; text-align: center; }
.diagnostic-metrics strong { font-size: 13px; }
.diagnostic-metrics small { color: var(--muted); font-size: 9px; line-height: 1.2; }
.failure-box { display: grid; gap: 3px; margin: 0 0 13px; padding: 8px 9px; border-left: 3px solid var(--red); color: var(--red); background: #fff0ee; font-size: 11px; line-height: 1.45; }
.failure-box span { color: #80514c; }
.inspector-section { margin-top: 16px; }
.section-title { padding-bottom: 6px; border-bottom: 1px solid #d2dfd8; }
.section-title h3 { margin: 0; font-size: 12px; }
.inspector-card { margin-top: 7px; padding: 9px; border: 1px solid #d2dfd8; border-radius: 8px; background: #fff; }
.answer-card p, .citation-card p { font-size: 11px; line-height: 1.55; }
.citation-card .quote { color: var(--teal-dark); }
.citation-card small, .fragment-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.score { color: var(--teal-dark); font-size: 11px; font-weight: 900; }
.empty-line { margin-top: 7px; padding: 9px; color: var(--muted); border: 1px dashed #b9ccc3; border-radius: 7px; font-size: 10px; }
.stage-list { display: grid; gap: 0; margin: 7px 0 0; padding: 0; list-style: none; }
.stage-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 6px; min-height: 30px; border-bottom: 1px dashed #d4e0db; }
.stage-list li:last-child { border-bottom: 0; }
.stage-dot { width: 8px; height: 8px; border-radius: 50%; background: #68b987; }
.stage-dot.is-error { background: var(--red); }
.stage-list strong, .fragment-row strong { font-size: 10px; }
.stage-list small, .stage-list time { color: var(--muted); font-size: 9px; }
.stage-list time { white-space: nowrap; }
.fragment-row { align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed #d4e0db; }
.fragment-row:last-child { border-bottom: 0; }
.fragment-row > div:first-child { min-width: 0; }
.fragment-score { flex: 0 0 62px; text-align: right; }
.fragment-score small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inspector-followups { margin-top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.auth-gate { position: fixed; inset: 46px 0 0; z-index: 20; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); overflow-y: auto; background: #12342f; }
.auth-gate[hidden] { display: none; }
.auth-story { min-height: calc(100vh - 46px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; position: relative; overflow: hidden; padding: clamp(34px, 6vw, 78px); color: #f4ead7; background: #12342f; }
.auth-story::before { content: ''; width: 420px; height: 420px; position: absolute; left: -210px; bottom: -220px; border: 1px solid rgba(240,221,167,.16); border-radius: 50%; box-shadow: 0 0 0 70px rgba(240,221,167,.025), 0 0 0 140px rgba(240,221,167,.018); }
.auth-story-brand { width: max-content; display: inline-flex; align-items: center; gap: 12px; position: relative; z-index: 1; color: #f4ead7; text-decoration: none; font: 700 19px/1 "Noto Serif SC", "Songti SC", STSong, serif; letter-spacing: .08em; }
.auth-story-brand img { width: 38px; height: 38px; display: block; border-radius: 50%; object-fit: cover; box-shadow: 0 5px 15px rgba(0,0,0,.18); }
.auth-story-copy { position: relative; z-index: 1; }
.auth-story-eyebrow { margin: 0; color: #d7bc75; font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.auth-story-copy h1 { max-width: 620px; margin: 20px 0 20px; font: 700 clamp(48px, 6vw, 80px)/1.14 "Noto Serif SC", "Songti SC", STSong, serif; letter-spacing: .04em; }
.auth-story-copy > p:last-child { margin: 0; color: #d4c9b4; font: 17px/1.8 "Noto Serif SC", "Songti SC", STSong, serif; letter-spacing: .04em; }
.auth-value-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; z-index: 1; border-top: 1px solid rgba(240,221,167,.2); border-bottom: 1px solid rgba(240,221,167,.2); }
.auth-value-preview span { min-width: 0; display: grid; gap: 7px; padding: 18px 16px 20px; border-right: 1px solid rgba(240,221,167,.16); }
.auth-value-preview span:first-child { padding-left: 0; }
.auth-value-preview span:last-child { border-right: 0; }
.auth-value-preview b { color: #d7bc75; font-size: 9px; letter-spacing: .16em; }
.auth-value-preview strong { color: #f4ead7; font: 700 14px/1.3 "Noto Serif SC", "Songti SC", STSong, serif; }
.auth-value-preview small { color: #93a79d; font-size: 10px; line-height: 1.6; }
.auth-panel { width: 100%; min-height: calc(100vh - 46px); position: relative; padding: clamp(34px, 5vw, 64px); overflow-y: auto; border: 0; border-left: 1px solid #c9b99d; border-radius: 0; background: #f8f3e9; box-shadow: -24px 0 70px rgba(0,0,0,.2); }
.auth-close { width: 36px; min-height: 36px; position: absolute; top: 19px; right: 19px; padding: 0; border: 0; border-radius: 0; color: #6c746d; background: transparent; box-shadow: none; font-size: 22px; }
.auth-close:hover { transform: none; color: #bd4c2f; background: transparent; }
.auth-guest { margin-top: 16px; border-radius: 0; }
.auth-brand { width: 50px; height: 50px; margin: 34px auto 12px; border: 0; border-radius: 50%; color: #efd894; background: #102d29; box-shadow: none; font-size: 17px; }
.auth-panel > .eyebrow { color: #bd4c2f; text-align: center; }
.auth-panel h2 { margin: 10px 0 7px; font: 700 29px/1.25 "Noto Serif SC", "Songti SC", STSong, serif; text-align: center; }
.auth-copy { max-width: 380px; margin: 0 auto 24px; color: #6d756e; font-size: 11px; line-height: 1.7; text-align: center; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 22px; padding: 0; border: 0; border-bottom: 1px solid #d7cdbb; border-radius: 0; background: transparent; }
.auth-tab { min-height: 47px; position: relative; padding: 0 10px; border: 0; border-radius: 0; color: #73786f; background: transparent; box-shadow: none; }
.auth-tab::after { content: ''; height: 2px; position: absolute; right: 15px; bottom: -1px; left: 15px; background: transparent; }
.auth-tab.is-active { color: #102d29; background: transparent; box-shadow: none; }
.auth-tab.is-active::after { background: #bd4c2f; }
.auth-pane[hidden] { display: none; }
#displayNameField[hidden] { display: none; }
.auth-pane input { border-width: 1px; border-color: #cfc5b4; border-radius: 0; background: #fffaf0; }
.auth-pane input:focus { border-color: #bd4c2f; box-shadow: 0 0 0 3px rgba(189,76,47,.1); }
.auth-submit { width: 100%; margin-top: 3px; border-color: #bd4c2f; border-radius: 0; background: #bd4c2f; box-shadow: none; }
.auth-switch { display: block; margin: 14px auto 0; color: #9f3e27; }
.auth-error { min-height: 20px; margin: 13px 0 0; color: var(--red); font-size: 11px; line-height: 1.5; text-align: center; }
.qr-login { display: grid; justify-items: center; gap: 9px; text-align: center; }
.qr-login p { max-width: 290px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.qr-login .secondary { width: auto; margin-top: 4px; }
.qr-frame { display: grid; place-items: center; width: 210px; height: 210px; padding: 10px; border: 1px solid #cfc5b4; border-radius: 0; background: #fffaf0; }
.qr-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 1120px) {
  .shell { width: min(100% - 20px, 980px); }
  .workspace { grid-template-columns: 240px minmax(0, 1fr); }
  .inspector { grid-column: 1 / -1; border-top: 2px solid var(--line); border-left: 0; max-height: 520px; }
}

@media (max-width: 920px) and (min-width: 701px) {
  .auth-gate { grid-template-columns: minmax(300px, .86fr) minmax(390px, 1.14fr); }
  .auth-story { padding: 42px 34px; }
  .auth-story-copy h1 { font-size: 44px; }
  .auth-value-preview { grid-template-columns: 1fr; border-bottom: 0; }
  .auth-value-preview span { padding: 10px 0; border-right: 0; border-bottom: 1px solid rgba(240,221,167,.14); }
  .auth-value-preview small { display: none; }
}

@media (max-width: 700px) {
  .site-nav { grid-template-columns: auto 1fr; height: auto; min-height: 46px; padding: 8px 12px; }
  .site-nav-links { grid-column: 1 / -1; grid-row: 2; height: 36px; justify-content: stretch; }
  .site-nav-links a { min-width: 0; flex: 1; padding-inline: 6px; font-size: 11px; }
  .site-account { grid-column: 2; grid-row: 1; }
  .shell { width: 100%; min-height: calc(100vh - 90px); margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .topbar { flex-wrap: wrap; min-height: 76px; padding: 13px 15px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy h1 { font-size: 18px; }
  .brand-copy p, .run-stats { display: none; }
  .health { margin-left: auto; font-size: 10px; }
  .workspace { display: block; min-height: auto; }
  .setup { padding: 18px 15px; border-right: 0; border-bottom: 2px solid var(--line); }
  .setup-note, .pipeline { display: none; }
  .setup h2 { margin-bottom: 13px; }
  .setup label:not(.toggle-row) { grid-template-columns: 70px 1fr; align-items: center; }
  .session-list { max-height: 190px; }
  .secondary { margin-top: 2px; }
  .chat { min-height: 60vh; padding: 0 13px 13px; }
  .messages { padding: 21px 0; }
  .message { max-width: 96%; }
  .composer { grid-template-columns: 1fr; }
  .primary { width: 100%; }
  .inspector { max-height: none; padding: 20px 14px; }
  .auth-gate { inset: 90px 0 0; display: block; }
  .auth-story { min-height: 205px; padding: 22px 24px 25px; gap: 18px; }
  .auth-story-brand { font-size: 16px; }
  .auth-story-copy h1 { margin: 0; font-size: 33px; }
  .auth-story-copy > p:last-child { margin-top: 8px; font-size: 14px; }
  .auth-story-eyebrow, .auth-value-preview { display: none; }
  .auth-panel { min-height: calc(100vh - 295px); max-height: none; padding: 23px 20px 36px; border: 0; border-top: 1px solid #c9b99d; border-radius: 0; box-shadow: none; }
  .qr-frame { width: 190px; height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
