:root {
  color-scheme: light;
  --paper: #f2eee5;
  --paper-deep: #e7dfd1;
  --ink: #273038;
  --green: #174a3a;
  --green-soft: #dbe7df;
  --red: #a9472f;
  --line: #b9ad9c;
  --display: "STKaiti", "KaiTi", "FangSong", serif;
  --body: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(169, 71, 47, .08), transparent 28rem),
    linear-gradient(145deg, #f7f3eb 0%, var(--paper) 52%, #ece5da 100%);
  font-family: var(--body);
}
button, textarea, input { font: inherit; }
button { color: inherit; }
.paper-grain {
  position: fixed; inset: 0; pointer-events: none; opacity: .26;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.shell { width: min(100%, 560px); margin: 0 auto; min-height: 100vh; padding: max(20px, env(safe-area-inset-top)) 22px max(36px, env(safe-area-inset-bottom)); position: relative; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid color-mix(in oklch, var(--line), transparent 36%); }
.brand { color: var(--green); font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.build-badge { border: 1px solid var(--line); padding: 4px 7px; color: #746c62; font-size: 10px; letter-spacing: .04em; }
.sound-toggle { border: 0; background: transparent; padding: 9px 0 9px 16px; font-size: 13px; color: var(--green); cursor: pointer; }
.update-notice { margin: 12px 0 0; padding: 12px 14px; border-left: 3px solid var(--red); background: rgba(255,255,255,.35); font-size: 12px; line-height: 1.5; }
.update-notice button { margin-left: 8px; border: 0; background: transparent; color: var(--green); text-decoration: underline; cursor: pointer; }
.playback-status { margin: 10px 0 0; color: #746c62; font-size: 11px; }
.diagnostic-id { margin: 5px 0 0; color: #81786d; font-size: 10px; letter-spacing: .02em; }
.playback-status[data-state="playing"] { color: var(--green); font-weight: 800; }
.playback-status[data-state="error"], .playback-status[data-state="blocked"] { color: var(--red); }
.scene { padding: clamp(26px, 5vh, 54px) 0 0; animation: enter .58s cubic-bezier(.22,1,.36,1) both; }
.scene[hidden] { display: none; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.eyebrow { margin: 0 0 15px; color: var(--green); font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.055em; line-height: .98; }
h1 { font-size: clamp(46px, 12vw, 72px); }
h1 em { color: var(--green); font-style: normal; }
h2 { font-size: clamp(34px, 8vw, 52px); line-height: 1.15; }
.intro-copy, .result-lead { margin: 22px 0 0; max-width: 28em; font-size: 16px; line-height: 1.8; color: color-mix(in oklch, var(--ink), var(--paper) 18%); }
.hero-art { margin: 24px -7px 0; position: relative; }
.hero-art img { display: block; width: 100%; max-height: 42vh; aspect-ratio: 1.22; object-fit: cover; object-position: 50% 48%; clip-path: polygon(2% 2%, 100% 0, 97% 98%, 0 100%); }
.hero-art figcaption { position: absolute; left: 18px; right: 18px; bottom: 15px; padding: 11px 14px; color: #f8f2e8; background: rgba(23, 74, 58, .93); font-size: 12px; line-height: 1.55; }
.entry-actions { margin-top: 24px; }
.continuous-explain { margin: 12px auto 0; max-width: 34em; color: #746c62; font-size: 12px; line-height: 1.65; text-align: center; }
.button { border: 0; border-radius: 18px; cursor: pointer; min-height: 52px; padding: 13px 20px; font-weight: 800; transition: transform .16s ease, background .16s ease, box-shadow .16s ease, opacity .16s ease; }
.button:active, .speak-button:active { transform: translateY(2px) scale(.985); box-shadow: none; }
.button:disabled, .speak-button:disabled { cursor: wait; opacity: .66; }
.button:focus-visible, button:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid color-mix(in oklch, var(--red), white 35%); outline-offset: 3px; }
.button--primary { width: 100%; min-height: 58px; border-radius: 999px; background: var(--green); color: #f8f3e9; box-shadow: 0 8px 22px rgba(23,74,58,.18); }
.button--primary span { display: block; font-size: 17px; }
.button--primary small { display: block; margin-top: 2px; opacity: .75; font-weight: 500; }
.button--quiet { background: transparent; border: 1px solid var(--line); }
.entry-secondary, .input-links { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 15px; }
.text-button { border: 0; background: transparent; padding: 8px 3px; color: var(--green); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.audio-honesty, .privacy-note { font-size: 12px; line-height: 1.6; color: #746c62; }
.editor-status { margin: 0; padding: 12px 14px; border-left: 3px solid var(--red); background: rgba(169,71,47,.08); color: #6d3426; font-size: 13px; line-height: 1.6; }
.audio-honesty { margin: 18px 0 0; text-align: center; }
.progress { margin-bottom: clamp(42px, 10vh, 86px); }
.continuous-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -26px 0 32px; padding: 10px 0; border-block: 1px solid color-mix(in oklch, var(--line), transparent 28%); color: var(--green); font-size: 12px; font-weight: 800; }
.continuous-bar .text-button { flex: none; font-size: 12px; }
.progress > span { display: block; margin-bottom: 9px; color: var(--green); font-size: 12px; font-weight: 800; }
.progress-track { height: 3px; background: color-mix(in oklch, var(--line), transparent 45%); }
.progress-track i { display: block; width: 33%; height: 100%; background: var(--red); transition: transform .42s cubic-bezier(.22,1,.36,1), width .42s ease; }
.question-audio-row { display: flex; align-items: center; gap: 10px; margin: 22px 0 36px; color: #746c62; font-size: 11px; }
.previous-bridge { margin: 0 0 12px; color: var(--green); font-family: var(--display); font-size: 20px; line-height: 1.45; }
.audio-chip { border: 1px solid var(--line); background: rgba(255,255,255,.25); padding: 8px 11px; cursor: pointer; white-space: nowrap; }
.speak-button { width: 100%; min-height: 136px; border: 0; border-radius: 30px; background: var(--green); color: #f8f3e9; cursor: pointer; padding: 24px 28px; text-align: left; position: relative; overflow: hidden; box-shadow: 0 13px 30px rgba(23,74,58,.18); transition: transform .16s ease, background .2s ease, box-shadow .2s ease, opacity .16s ease; }
.speak-button::after { content: ""; position: absolute; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; right: -48px; top: -52px; }
.speak-button strong { display: block; font-family: var(--display); font-size: 29px; letter-spacing: -.04em; }
.speak-button small { display: block; margin-top: 10px; opacity: .72; }
.mic-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 16px; border-radius: 50%; background: rgba(255,255,255,.13); }
.mic-icon svg { width: 34px; height: 34px; fill: rgba(255,255,255,.92); stroke: rgba(255,255,255,.92); stroke-width: 2; stroke-linecap: round; }
.speak-button.is-listening .mic-icon { animation: pulse 1.1s ease-in-out infinite; background: rgba(255,255,255,.2); }
.speak-button.is-listening { background: var(--red); box-shadow: 0 13px 30px rgba(169,71,47,.2); }
.speak-button.is-processing { background: #8c6a48; }
.speak-button.is-success { background: #2f6a53; }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px rgba(216,93,63,0); } }
.live-status { min-height: 1.6em; margin: 0 0 14px; text-align: center; font-family: var(--display); font-size: clamp(20px, 5vw, 25px); font-weight: 800; line-height: 1.35; color: var(--green); }
.live-status.is-listening { color: var(--red); }
.finish-guide { margin: 7px 0 0; text-align: center; font-size: 13px; line-height: 1.5; color: var(--ink); }
.transcript-preview { margin: 14px 0 0; padding: 12px 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.38); color: var(--ink); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.voice-privacy { margin: 8px auto 0; max-width: 30em; text-align: center; font-size: 11px; line-height: 1.55; color: #82786d; }
.answer-editor { display: grid; gap: 12px; }
.answer-editor label, .poster-editor label { font-weight: 800; color: var(--green); }
textarea, input { width: 100%; border: 1px solid var(--line); border-radius: 0; background: rgba(255,255,255,.38); color: var(--ink); padding: 15px; resize: vertical; }
.editor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.recovery-actions, .result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.editor-actions .button--primary { width: 100%; grid-column: 1 / -1; }
.editor-actions #editor-rerecord { grid-column: 1 / -1; }
.recovery { border-top: 2px solid var(--red); padding-top: 20px; }
.recovery p { line-height: 1.7; }
.bridge-card, .model-result-state { margin: 8px 0 24px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.35); }
.bridge-card blockquote { margin: 8px 0 16px; color: var(--green); font-family: var(--display); font-size: clamp(28px, 7vw, 40px); line-height: 1.25; }
.bridge-audio-state, .model-result-state p { color: #746c62; font-size: 13px; line-height: 1.65; }
.bridge-actions, .model-result-actions { display: grid; gap: 9px; }
.bridge-actions .text-button, .model-result-actions .text-button { justify-self: center; }
.direct-card { display: block; margin: 38px auto 0; border: 0; background: transparent; color: #746c62; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.poster-frame { margin: 28px 0 12px; padding: 9px; background: #ded5c7; transform: rotate(-.45deg); box-shadow: 0 18px 50px rgba(49,43,35,.14); }
#poster { display: block; width: 100%; height: auto; background: var(--paper); }
.poster-meta { display: flex; justify-content: space-between; font-size: 11px; color: #746c62; margin-bottom: 18px; }
.privacy-choice-status, .poster-save-status { margin: 14px 0 0; color: var(--green); font-size: 13px; line-height: 1.6; }
.result-actions #restore-personalized { grid-column: 1 / -1; }
.poster-editor { display: grid; gap: 10px; margin-top: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.checkbox { display: flex; gap: 9px; align-items: flex-start; line-height: 1.5; font-weight: 500 !important; }
.checkbox input { width: auto; margin-top: 5px; }
.button--community { width: 100%; margin-top: 30px; color: var(--green); background: transparent; border: 1px solid var(--green); }
.community-unavailable { color: #746c62; font-size: 13px; }
.community-dialog { width: min(calc(100% - 30px), 440px); max-height: calc(100dvh - 30px); margin: auto; padding: 30px 24px 24px; border: 0; border-radius: 28px; color: var(--ink); background: #f7f2e9; box-shadow: 0 28px 80px rgba(39,48,56,.28); overflow: auto; }
.community-dialog::backdrop { background: rgba(39,48,56,.52); backdrop-filter: blur(3px); }
.community-dialog h2 { padding-right: 28px; font-size: clamp(34px, 10vw, 48px); }
.community-copy { margin: 16px 0; line-height: 1.7; }
.dialog-close { position: absolute; top: 15px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper-deep); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.qr-figure { margin: 18px auto 22px; text-align: center; }
.qr-figure img { display: block; width: min(100%, 250px); height: auto; margin: 0 auto; background: #fff; }
.qr-figure figcaption { margin-top: 10px; font-size: 12px; line-height: 1.55; color: #746c62; }
.restart { display: block; margin: 24px auto 0; }
.test-details { margin-top: 4px; color: #746c62; font-size: 11px; }
.test-details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; width: fit-content; }
.test-details summary::before { content: '▸'; margin-right: 5px; color: var(--green); }
.test-details[open] summary::before { content: '▾'; }
.test-details .diagnostic-id { margin-top: 2px; }
.test-details .playback-status { margin-top: 3px; }

@media (max-width: 600px) {
  .shell { min-height: 100dvh; padding: max(10px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); }
  .topbar { min-height: 44px; }
  .sound-toggle { min-height: 44px; padding: 7px 0 7px 14px; }
  .scene--question { padding-top: 10px; }
  .scene--question .progress { margin-bottom: 10px; }
  .scene--question .progress > span { margin-bottom: 5px; }
  .scene--question .continuous-bar { margin: 0 0 10px; padding: 4px 0; gap: 8px; }
  .scene--question .continuous-bar .text-button { min-height: 44px; text-align: right; }
  .scene--question .eyebrow { margin-bottom: 6px; }
  .scene--question h2 { font-size: clamp(27px, 7vw, 34px); line-height: 1.18; }
  .previous-bridge { max-height: 3.1em; overflow: auto; font-size: 17px; line-height: 1.5; }
  .question-audio-row { margin: 9px 0 10px; font-size: 11px; line-height: 1.35; }
  .audio-chip { min-height: 44px; flex: none; padding: 8px 10px; }
  .live-status { margin: 0 0 6px; min-height: 1.3em; font-size: 19px; }
  .speak-button { min-height: 80px; display: grid; grid-template-columns: 46px minmax(0,1fr); align-items: center; column-gap: 12px; padding: 10px 16px; border-radius: 20px; }
  .speak-button::after { width: 104px; height: 104px; right: -38px; top: -39px; }
  .mic-icon { width: 44px; height: 44px; margin: 0; grid-row: 1 / span 2; }
  .mic-icon svg { width: 27px; height: 27px; }
  .speak-button strong { align-self: end; font-size: 23px; line-height: 1.1; }
  .speak-button small { align-self: start; margin-top: 3px; font-size: 11px; }
  .finish-guide { margin-top: 5px; }
  .input-links { margin-top: 5px; }
  .input-links .text-button { min-height: 44px; }
  .voice-privacy { margin-top: 2px; font-size: 11px; line-height: 1.4; }
  .answer-editor { gap: 7px; }
  .answer-editor textarea { min-height: 90px; height: 90px; padding: 11px 12px; line-height: 1.5; }
  .answer-editor .privacy-note { margin: 0; line-height: 1.4; }
  .answer-editor .editor-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .answer-editor .editor-actions .button { min-height: 44px; padding: 8px 4px; font-size: 12px; }
  .answer-editor .editor-actions .button--primary { grid-column: 1 / -1; min-height: 50px; font-size: 15px; }
  .answer-editor .editor-actions #editor-rerecord { grid-column: auto; }
  .scene--question:has(#answer-editor:not([hidden])) { display: flex; flex-direction: column; }
  .scene--question:has(#answer-editor:not([hidden])) .eyebrow { display: none; }
  .scene--question:has(#answer-editor:not([hidden])) .question-audio-row { margin: 5px 0 6px; }
  .scene--question:has(#answer-editor:not([hidden])) #answer-editor { order: 1; }
  .scene--question:has(#answer-editor:not([hidden])) .previous-bridge { order: 2; max-height: none; margin-top: 12px; }
  .scene--question:has(#answer-editor:not([hidden])) .direct-card { order: 3; }
  .answer-editor .privacy-note { order: 1; }
  .answer-editor .editor-status { padding: 7px 10px; line-height: 1.4; }
  .direct-card { min-height: 44px; margin-top: 12px; }
  .bridge-card, .model-result-state { margin: 10px 0 14px; padding: 15px; border-radius: 18px; }
  .bridge-card blockquote { max-height: min(24vh, 160px); overflow: auto; font-size: clamp(24px, 6vw, 30px); }
  .recovery { padding-top: 12px; }
  .recovery p { margin: 8px 0; }
  .scene--result { padding-top: 16px; }
  .result-lead { margin-top: 12px; font-size: 14px; line-height: 1.55; }
  .poster-frame { margin-top: 16px; }
}

@media (max-width: 600px) and (max-height: 700px) {
  .scene--question { padding-top: 6px; }
  .scene--question .progress { margin-bottom: 6px; }
  .scene--question .continuous-bar { margin-bottom: 6px; }
  .question-audio-row { margin: 6px 0 7px; }
  .voice-privacy { max-width: 33em; }
  .answer-editor textarea { min-height: 72px; height: 72px; }
}

@media (min-width: 760px) {
  .shell { width: min(100%, 720px); padding-inline: 56px; }
  .hero-art { width: 76%; margin-left: auto; margin-right: -36px; }
  .entry-actions { width: 72%; }
}
@media (hover: hover) {
  .button:hover, .speak-button:hover { transform: translateY(-2px); }
}
@media (pointer: coarse) {
  .button, .text-button, .audio-chip { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* TASK-069: the approved three-screen hierarchy, wired to the existing real flow. */
:root { --paper: #f5f1e9; --ink: #27332f; --line: #d9d5ca; --cream: #fffdf8; --red: #b95236; --body: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif; }
html { background: #eae5dc; }
body { background: #eae5dc; font-size: 16px; line-height: 1.5; }
.shell { width: min(100%, 432px); min-height: 100svh; padding: max(18px, env(safe-area-inset-top)) 22px max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; background: var(--paper); box-shadow: 0 20px 54px #413f3520; }
.topbar { min-height: 40px; flex: none; border: 0; align-items: flex-start; font-size: 12px; }
.brand { min-height: 44px; display: flex; align-items: center; font-weight: 700; letter-spacing: .02em; }
.top-actions { position: relative; gap: 2px; }
.sound-toggle, .test-details summary { min-height: 44px; padding: 8px 7px; font-size: 12px; text-decoration: none; }
.test-details { margin: 0; font-size: 12px; }
.test-details summary { display: flex; align-items: center; width: auto; min-width: 44px; list-style: none; color: var(--green); }
.test-details summary::before { content: none; }
.test-details summary::-webkit-details-marker { display: none; }
.test-panel { position: absolute; right: 0; top: 44px; z-index: 5; width: min(78vw, 286px); padding: 12px 14px; background: var(--cream); border: 1px solid var(--line); box-shadow: 0 12px 28px #1f302324; }
.test-panel p, .test-details .diagnostic-id, .test-details .playback-status { margin: 0 0 6px; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.test-panel p:last-child { margin-bottom: 0; }
.scene { flex: 1; min-height: 0; padding: 0; animation: none; }
.scene--intro, .scene--question, .scene--result { display: flex; flex-direction: column; }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: .02em; }
h1, h2 { font-family: var(--body); font-weight: 700; letter-spacing: -.045em; }
.button, .speak-button, .text-button { transition: transform .18s ease, background .18s ease; }
.button--primary, .speak-button { min-height: 56px; border-radius: 17px; box-shadow: none; }
.button--primary { padding: 12px 18px; font-size: 18px; }
.button--primary:active, .speak-button:active { transform: scale(.98); background: #103e31; }
.button--quiet { border-color: var(--line); border-radius: 12px; }
.text-button { min-height: 44px; padding: 8px 10px; text-decoration: none; font-weight: 700; }
.intro-content { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.intro-copy-group h1 { margin-top: 18px; font-size: clamp(30px, 8.5vw, 40px); line-height: 1.22; }
.intro-copy { margin: 12px 0 0; max-width: 22em; font-size: 16px; line-height: 1.55; color: #636b63; }
.hero-art { display: block; align-self: center; width: min(100%, clamp(205px, 36svh, 340px)); height: auto; aspect-ratio: 1; object-fit: contain; margin: 0; }
.entry-actions { margin: 0; display: grid; gap: 2px; }
.entry-actions .text-button { justify-self: stretch; text-align: center; }
.fine-print { color: #636b63; font-size: 13px; }
.fine-print summary, .community-info summary, .bridge-options summary { min-height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; }
.fine-print summary::after { content: "＋"; padding-left: 6px; font-size: 16px; }
.fine-print[open] summary::after { content: "－"; }
.fine-print p { margin: 0 0 8px; line-height: 1.6; }
.entry-secondary { display: grid; gap: 0; margin: 0; }
.entry-secondary .text-button { text-align: left; }
.audio-honesty { margin: 0; }
.progress { flex: none; margin: 8px 0 0; }
.progress > span { margin-bottom: 4px; color: #636b63; font-size: 12px; }
.progress-track { background: var(--line); }
.dialogue-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding-top: clamp(12px, 4svh, 32px); }
.dialogue-stage { flex: 1; min-height: 150px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.dialogue-companion { display: flex; align-items: center; gap: 10px; color: var(--green); font-size: 13px; font-weight: 700; }
.dialogue-companion img { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; }
.dialogue-stage h2 { max-width: 12em; margin-top: 12px; font-size: clamp(27px, 7vw, 36px); line-height: 1.35; }
.live-status { min-height: 0; margin: 18px 0 0; text-align: left; font-family: var(--body); font-size: 16px; line-height: 1.4; color: var(--green); }
.live-status.is-listening { color: var(--green); }
.live-status.is-listening::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--red); vertical-align: middle; }
.scene--question:has(#input-stage[hidden]) .live-status { display: none; }
.scene--question:has(#input-stage[hidden]) #type-answer { display: none; }
.dialogue-controls { flex: none; padding-bottom: 8px; }
.continuous-bar { margin: 0 0 8px; padding: 4px 0; border: 0; color: var(--red); font-size: 12px; }
.input-stage { display: grid; gap: 6px; }
.speak-button { width: 100%; min-height: 64px; display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-items: center; padding: 10px 16px; text-align: left; }
.speak-button::after { display: none; }
.mic-icon { grid-row: 1 / span 2; width: 36px; height: 36px; margin: 0; }
.mic-icon svg { width: 24px; height: 24px; }
.speak-button strong { align-self: end; font-family: var(--body); font-size: 18px; line-height: 1.1; }
.speak-button small { align-self: start; margin: 2px 0 0; font-size: 11px; line-height: 1.25; }
.finish-guide { margin: 0; font-size: 12px; text-align: left; }
.transcript-preview { max-height: 70px; overflow: auto; margin: 2px 0 0; padding: 8px 10px; font-size: 12px; }
.dialogue-secondary { display: flex; justify-content: space-between; align-items: center; gap: 4px; margin-top: 8px; }
.dialogue-secondary > .text-button, .question-more > summary { min-width: 66px; min-height: 44px; }
.question-more { position: relative; margin-left: auto; color: var(--green); font-weight: 700; }
.question-more summary { display: grid; place-items: center; padding: 8px 12px; cursor: pointer; list-style: none; }
.question-more summary::-webkit-details-marker { display: none; }
.question-more-items { position: absolute; right: 0; bottom: 48px; z-index: 4; width: 200px; padding: 8px; background: var(--cream); border: 1px solid var(--line); box-shadow: 0 12px 28px #1f302324; }
.question-more-items .text-button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px; text-align: left; font-size: 14px; }
.question-more-items p { margin: 0 8px 8px; font-size: 11px; line-height: 1.45; color: #636b63; }
.question-more-items .previous-bridge { max-height: 5em; overflow: auto; color: var(--green); }
.direct-card { margin: 0; }
.answer-editor { gap: 8px; }
.answer-editor label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.answer-editor textarea { min-height: 90px; height: 90px; padding: 10px 12px; border-radius: 10px; background: var(--cream); font-size: 16px; }
.answer-editor .editor-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
.answer-editor .editor-actions .button--primary { grid-column: 1 / -1; min-height: 56px; font-size: 17px; }
.answer-editor .editor-actions #editor-rerecord { grid-column: auto; }
.answer-editor .editor-actions .button--quiet { min-height: 44px; padding: 8px; font-size: 13px; }
.answer-editor .editor-actions #back-answer { grid-column: 1 / -1; justify-self: center; min-width: 100px; border: 0; background: none; color: var(--green); }
.answer-editor .privacy-note { order: 1; margin: 0; font-size: 11px; line-height: 1.4; }
.editor-status { padding: 8px 10px; font-size: 12px; line-height: 1.45; }
.scene--question:has(#answer-editor:not([hidden])) .dialogue-companion img { width: 52px; height: 52px; }
.scene--question:has(#answer-editor:not([hidden])) .dialogue-stage h2 { font-size: clamp(24px, 6.5vw, 31px); line-height: 1.25; }
.scene--question:has(#answer-editor:not([hidden])) .continuous-bar { display: none; }
.scene--question:has(#answer-editor:not([hidden])) .answer-editor textarea { min-height: 72px; height: 72px; }
.scene--question:has(#answer-editor:not([hidden])) .answer-editor .privacy-note { display: none; }
.recovery { border: 0; padding: 0; }
.recovery p { margin: 8px 0; font-size: 16px; line-height: 1.5; }
.recovery-actions { display: grid; grid-template-columns: 1fr; gap: 2px; }
.recovery-actions .text-button { justify-self: center; }
.scene--question:has(#recovery:not([hidden])) .continuous-bar, .scene--question:has(#recovery:not([hidden])) #pause-continuous { display: none; }
.bridge-card { margin: 10px 0 0; padding: 0; border: 0; background: none; }
.bridge-card blockquote { max-height: 30svh; overflow: auto; margin: 0; font-family: var(--body); font-size: clamp(27px, 7vw, 36px); font-weight: 700; line-height: 1.35; }
.bridge-audio-state { margin: 12px 0 0; font-size: 13px; line-height: 1.5; }
.bridge-card #continue-bridge { margin-top: 14px; }
.bridge-options { margin-top: 8px; color: var(--green); font-size: 13px; }
.bridge-options summary { justify-content: flex-start; }
.bridge-actions { display: grid; gap: 4px; }
.bridge-actions .button, .bridge-actions .text-button { min-height: 44px; }
.scene--result { justify-content: center; gap: 6px; }
.scene--result .eyebrow { margin-top: 8px; color: #636b63; }
.scene--result h2 { font-size: 16px; line-height: 1.3; }
.result-lead { margin: 0; font-size: 13px; line-height: 1.45; }
.scene--result.is-ready > .eyebrow, .scene--result.is-ready > .result-lead, .scene--result.is-ready > .poster-meta { display: none; }
.scene--result.is-ready > #result-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.model-result-state { margin: 12px 0; padding: 12px; }
.poster-frame { align-self: center; width: min(100%, clamp(220px, 38svh, 348px)); margin: 4px 0 0; padding: 10px; background: var(--cream); transform: none; box-shadow: 0 10px 35px #3c382c18; }
#poster { width: 100%; }
.poster-meta { width: min(100%, 348px); align-self: center; margin: 0; font-size: 11px; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.result-actions .button--primary { flex: 1; width: auto; }
.result-actions .button--quiet { min-width: 94px; min-height: 44px; padding: 8px; border: 0; background: none; color: var(--green); font-size: 14px; }
.result-actions #restore-personalized { flex-basis: 100%; width: 100%; }
.poster-editor { margin: 0; padding: 12px 0; gap: 8px; }
.poster-editor input { border-radius: 10px; background: var(--cream); font-size: 16px; }
.community-info { margin-top: 2px; border-top: 1px solid var(--line); color: var(--green); font-size: 14px; }
.community-info summary { justify-content: flex-start; font-weight: 700; }
.community-info p { margin: 0 0 8px; color: #636b63; font-size: 12px; }
.button--community { margin: 0; min-height: 44px; }
.restart { margin: 0 auto; min-height: 44px; font-size: 12px; }
@media (max-height: 700px) {
  .intro-content { gap: 9px; }
  .hero-art { width: min(100%, clamp(175px, 31svh, 230px)); }
  .intro-copy { margin-top: 7px; }
  .dialogue-body { gap: 10px; }
  .poster-frame { width: min(100%, 260px); }
}
@media (min-width: 700px) {
  .shell { min-height: 760px; }
  .scene { min-height: 700px; }
  .hero-art { width: min(100%, 320px); }
}
