/* A: clear actions and cards. B: quiet, spacious long-form reading. Only the logo glows. */
:root{color-scheme:light;--green:#ffd139;--green-dark:#f6c32f;--gold-text:#725500;--deep:#272b27;--mint:#fff0b3;--mint-light:#fff6d5;--ink:#272b27;--muted:#686d63;--paper:#faf9f5;--reading-paper:#faf9f5;--white:#fff;--line:#e2e3d9;--danger:#a13333;--reading:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font:18px/1.7 var(--reading)}
:root[data-font=standard]{font-size:18px}:root[data-font=large]{font-size:20px}:root[data-font=xlarge]{font-size:22px}
*{box-sizing:border-box}body{margin:0;min-width:320px;color:var(--ink);background:var(--paper)}body:has(dialog[open]){overflow:hidden}
button,input,textarea,select{font:inherit;color:inherit}button,summary{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}
a{color:var(--gold-text);text-underline-offset:3px}h1,h2,h3,p,strong,small{overflow-wrap:anywhere}
h1,h2,h3{font-family:var(--reading)}h1{margin:0;font-size:1.78rem;line-height:1.4;letter-spacing:-.02em}h2{margin:0;font-size:1.3rem;line-height:1.45}h3{margin:0;font-size:1.15rem;line-height:1.5}p{margin:12px 0}
input,textarea,select{width:100%;min-width:0;padding:13px 14px;border:1px solid #abb5a3;border-radius:10px;background:#fff}input,select{min-height:54px}textarea{resize:vertical;line-height:1.7}
input[type=checkbox],input[type=radio]{accent-color:#765800;width:24px;height:24px;min-height:24px;flex:0 0 24px}
:focus-visible{outline:3px solid #725500;outline-offset:3px}[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.topbar{max-width:760px;min-height:72px;margin:auto;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;flex-shrink:0;white-space:nowrap;gap:10px;padding:0;min-height:48px;border:0;background:transparent;font-size:1.25rem;line-height:1.2;font-weight:800}
.brand span{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;line-height:1;color:white;border-radius:12px 5px 12px 5px;background:radial-gradient(ellipse at 45% 32%,#ffe990 0%,#ffcf43 62%,#ffc638 100%);box-shadow:0 0 7px 2px #fffbe2,0 0 18px 5px #ffdc7080}
.top-actions{min-width:0;display:flex;align-items:center;gap:10px}#account-name{max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:.85rem}.test-badge{display:none}
.account-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 24px}.account-actions button{min-height:52px}.guest-intro{padding:22px;border:1px solid var(--line);border-radius:18px;background:#fff;margin:20px 0}.guest-intro p{color:var(--muted)}.guest-intro .primary-button{margin-top:8px}.guest-memoirs article{margin-bottom:18px}.auth-page>.tabs,.auth-page #account-login{display:none}.auth-back{margin-bottom:20px}.account-exit-dialog{width:calc(100% - 36px);max-width:440px;border:1px solid var(--line);border-radius:20px;padding:24px;color:var(--ink);background:var(--paper)}.account-exit-dialog::backdrop{background:#25292270}.account-exit-dialog .account-actions{margin:24px 0 0}.account-exit-dialog p{line-height:1.8}
.pill{display:inline-block;width:fit-content;padding:4px 11px;border-radius:7px;color:#5c4900;background:var(--mint-light);font-size:.8rem}
.account-profile{display:flex;align-items:center;gap:14px;margin:20px 0}.account-profile>strong{min-width:0}.account-avatar{position:relative;display:grid;place-items:center;flex:0 0 64px;height:64px;overflow:hidden;border-radius:50%;background:var(--mint-light);color:var(--gold-text);font-size:1.4rem}.account-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:var(--paper)}
main{min-height:calc(100dvh - 72px);padding-bottom:calc(112px + env(safe-area-inset-bottom));outline:none}#app:focus{outline:none}
.page-section,.detail-page,.hero{width:100%;max-width:760px;margin:auto;padding:24px 20px}.hero{padding-bottom:12px}.detail-page{background:#fff;min-height:calc(100dvh - 72px)}
.eyebrow{margin:0 0 9px;color:var(--gold-text);font-size:.9rem;font-weight:700}
.lead,.page-title p,.auth-copy>p:last-child{margin:12px 0 0;color:var(--muted);font-size:1rem}
.hint,.fineprint{color:var(--muted);font-size:.85rem;line-height:1.6}.loading{padding:26px 12px;color:var(--muted);text-align:center}
.primary-button,.secondary-button,.danger-button,.back-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:56px;border:1px solid var(--line);border-radius:15px;padding:13px 16px;font-weight:650;line-height:1.45;text-align:center;text-decoration:none;overflow-wrap:anywhere}
.secondary-button{color:var(--ink);border-color:#adb8a4;background:#fff}.secondary-button:hover:not(:disabled){background:#f5f7f1}
:is(.primary-button,.back-button,.back-books-button,.dialog-header .secondary-button,[data-mz=back],[data-action=back-current]){color:var(--ink);border-color:var(--green);background:var(--green)}
:is(.primary-button,.back-button,.back-books-button,.dialog-header .secondary-button,[data-mz=back],[data-action=back-current]):hover:not(:disabled){background:var(--green-dark)}
.danger-button{color:var(--danger);border-color:#d0aaaa;background:#fff}.full{width:100%}.compact{min-height:50px;padding:10px 14px}
.text-button,.link-button,.danger-link{min-height:48px;border:0;padding:10px 2px;background:transparent;color:var(--gold-text);font-weight:650;text-align:left}.danger-link{color:var(--danger)}
.auth-wrap{width:100%;max-width:960px;margin:auto;padding:28px 20px;display:grid;gap:28px}
.auth-card,.input-card,.settings-card,.feedback-card,.new-memoir-page-form{padding:22px;border:1px solid var(--line);border-radius:20px;background:#fff}
.auth-card label,.feedback-card label,.new-memoir-page-form label{display:grid;gap:8px;margin:16px 0;font-weight:650}
.auth-card .primary-button,.auth-card .text-button{width:100%;justify-content:center;text-align:center}.auth-card .text-button{margin-top:8px}
.auth-card>.full+.full{margin-top:12px}
.login-agreement{display:flex;align-items:flex-start;gap:10px;margin:18px 0;font-size:.9rem;line-height:1.7}.login-agreement input[type=checkbox]{flex:0 0 24px;width:24px;height:24px;min-height:24px;margin:10px 0;accent-color:#725500}.auth-card .login-agreement label{display:inline-block;margin:0;padding:8px 0;font-weight:400;cursor:pointer}.login-agreement button{display:inline;min-height:44px;padding:7px 0;border:0;background:transparent;color:#725500;font-size:inherit;text-decoration:underline;text-underline-offset:3px}.legal-content{overflow-wrap:anywhere}.legal-content h1{font-size:1.5rem}.legal-content h2{font-size:1.15rem;margin-top:28px}.legal-content p,.legal-content li{font-size:1rem;line-height:1.9}.legal-content ul{padding-left:1.3em}.legal-content a{color:#725500;text-decoration:underline}.legal-content article{scroll-margin-top:20px}
.form-error{margin:8px 0;color:var(--danger);font-size:.9rem}.form-error:empty{display:none}.form-error:not(:empty){padding:12px;border-radius:8px;background:#fff3f0}
.input-card{margin-top:24px}.input-fields>label{display:block;margin-bottom:12px;font-weight:700;font-size:1.1rem}.input-fields textarea{min-height:140px;background:#fafaf7;border-color:var(--line)}.input-actions{display:grid;grid-template-columns:1fr;gap:12px;margin-top:14px}.input-card>.hint:last-child{margin-bottom:0}.input-actions .primary-button{min-height:60px;font-size:1.1rem}
.input-card.submitted{padding:0;border:0;background:transparent}.analysis-source>.hint{margin:0 0 10px}.analysis-source-content{padding:17px 18px;border:1px solid var(--line);border-radius:14px;background:#fff;max-height:10em;overflow-y:auto;overflow-wrap:anywhere}.analysis-source-content p{margin:0;white-space:pre-wrap}.analysis-source-content ul{padding:0;margin:10px 0 0;list-style:none;color:var(--muted);font-size:.85rem}.analysis-source-content ul:first-child{margin:0}.analysis-source-content li+li{margin-top:6px}
.analysis-wait{margin-top:18px;padding:22px 20px;border-radius:16px;background:var(--mint-light);color:var(--ink)}.analysis-track{width:100%;height:5px;margin:0 0 16px;overflow:hidden;border-radius:3px;background:#e9ddb9}.analysis-track>span{display:block;width:25%;height:100%;border-radius:inherit;background:linear-gradient(90deg,transparent,#b28a1a 45%,#8a6710);animation:analysis-forward 2s linear infinite}.analysis-wait-heading{display:flex;align-items:center;gap:11px}.analysis-wait strong{font-size:1.15rem;line-height:1.5}.analysis-wait p{font-size:.9rem;margin:10px 0 0;color:var(--muted)}.analysis-wait.error p{color:var(--danger)}#home-analysis-wait .analysis-track{margin:20px 0 0}.analysis-ring{width:20px;height:20px;flex:0 0 20px;border:3px solid #e8d59b;border-top-color:#8a6710;border-right-color:#8a6710;border-radius:50%;animation:analysis-spin 1.1s linear infinite}.analysis-footnote{text-align:center;margin:22px 0 0}.hero:has(.submitted) .eyebrow,.hero:has(.submitted) .lead,.hero:has(.submitted)+.examples{display:none}
@keyframes analysis-spin{to{transform:rotate(360deg)}}
@keyframes analysis-forward{from{transform:translateX(-100%)}to{transform:translateX(400%)}}
.wait-flow,.loading{position:relative;overflow:hidden}
.wait-flow::after,.loading::after{content:"";display:block;width:25%;height:4px;margin-top:10px;border-radius:3px;background:linear-gradient(90deg,transparent,#e2ae10 55%,#fff0a3);animation:analysis-forward 2s linear infinite;pointer-events:none}
button.wait-flow::after{position:absolute;left:0;bottom:0;margin:0}
@media(prefers-reduced-motion:reduce){.wait-flow::after,.loading::after{animation:none;transform:translateX(150%)}}
#home-analysis-wait,#home-upload-status{scroll-margin-block:100px}
.upload-help{margin:6px 0 0}.upload-help summary{font-size:.85rem;color:var(--muted);font-weight:400;min-height:48px}.magazine-add{margin-bottom:20px}
.upload-list{list-style:none;margin:12px 0 0;padding:0}.upload-list li{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;padding:10px;background:var(--mint-light);border-radius:8px;font-size:.85rem;overflow-wrap:anywhere}
.examples{display:flex;flex-direction:column;align-items:stretch;gap:16px;padding-top:28px}.example-grid{display:grid;gap:14px}.example-grid article{padding:22px;border:1px solid var(--line);border-radius:20px;background:#fff}.example-grid h3{margin-top:12px;line-height:1.55}.example-grid p{color:var(--muted);font-size:1rem}.example-grid .link-button{padding-bottom:0}.examples-next{min-height:56px}
.tabs{position:fixed;z-index:20;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:760px;margin:auto;border-top:1px solid var(--line);padding:6px 10px calc(6px + env(safe-area-inset-bottom));background:#fff}
.tabs button{min-height:66px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;border-radius:15px;background:transparent;color:var(--muted);font-size:.95rem}
.tabs button span{display:grid;place-items:center;min-width:40px;height:26px;font-size:1.3rem;line-height:1}.tabs button.active{color:var(--ink);font-weight:750;background:var(--mint-light)}.tabs svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.page-title{display:flex;flex-direction:column;align-items:stretch;gap:18px;margin-bottom:22px}
.memory-directory,.memoir-mode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:5px;margin-bottom:22px;border-radius:12px;background:#f0f3eb}
.memory-entry,.memoir-mode button{min-height:52px;border:1px solid transparent;border-radius:9px;padding:9px 8px;color:var(--muted);background:transparent}
.memory-entry.active,.memoir-mode button[aria-pressed=true]{border-color:var(--line);color:var(--ink);font-weight:700;background:#fff}
.continue-card{border:1px solid #e9dba2;border-radius:20px;padding:22px;background:#fffdf4}.continue-top{display:flex;align-items:center;gap:18px;margin-bottom:22px}.continue-top>div{min-width:0;flex:1}.continue-top .hint{margin:9px 0 0;font-size:.95rem}.continue-top .eyebrow{font-size:.9rem}
.book-cover{display:grid;place-items:center;flex:0 0 72px;width:72px;min-height:92px;padding:9px;border:1px solid #e1c159;border-left:5px solid #d8ad29;border-radius:3px 10px 10px 3px;background:#ffdf78;color:#503d06;font-family:var(--reading);font-size:1.15rem;line-height:1.4}
.section-title{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:24px 0 12px}.book-grid{display:grid;gap:12px}
.book-card{display:flex;align-items:center;gap:14px;min-width:0;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff;text-align:left}
.book-card .book-cover{width:48px;flex-basis:48px;min-height:66px;font-size:.85rem}.book-card>span:nth-child(2){display:grid;gap:5px;min-width:0;flex:1}.book-card small{color:var(--muted);font-size:.85rem}.book-card strong{font-family:var(--reading);font-size:1.1rem}
.back-button,.back-books-button{margin-bottom:20px;width:fit-content;min-height:50px}
.focused-page>.topbar,.focused-page>.tabs{display:none}.focused-page main{padding-bottom:env(safe-area-inset-bottom)}.focused-page .detail-page{padding-top:calc(16px + env(safe-area-inset-top))}
.page-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.page-toolbar .back-books-button{margin:0}.page-toolbar>span{color:var(--muted);font-size:.85rem}
.book-context{margin:0 0 22px}.book-context h1{font-size:1.35rem;font-weight:650;color:var(--muted)}
.interview-card{padding:22px 20px 4px;border:1px solid #e9dba2;border-radius:20px;background:var(--mint-light)}
.interview-ended{margin:18px 0}.end-interview-button{margin:12px 0 20px;border-width:2px}.interview-sources{padding-bottom:12px}.interview-sources a{display:block;padding:8px 0;overflow-wrap:anywhere}.interview-sources p{font-size:.9rem}
.interview-question>p{margin:0 0 20px;font-family:var(--reading);font-size:1.5rem;font-weight:650;line-height:1.65}
.interview-card .reader-panel{border:0;padding:0;margin:0;background:transparent}.interview-card .reader-body h2{display:none}
.reader-panel{display:flex;flex-direction:column;gap:16px;margin:22px 0;padding:18px;border:1px solid var(--line);border-radius:15px;background:#fff}.reader-body{width:100%;min-width:0}.reader-body>h2{margin-bottom:12px;font-size:1.15rem}
.reader-buttons{display:flex;flex-wrap:wrap;gap:9px}.reader-buttons [data-reader=play]{flex:1 1 100%;background:#fff;border-color:#abb5a3;color:var(--ink)}.reader-buttons>button:not([data-reader=play]){flex:1}
.reader-settings-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0 16px}.reader-settings-links .secondary-button{font-size:.85rem;padding:10px 5px;min-height:52px}.reader-settings-links svg{width:21px;height:21px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.reader-status:empty,.photo-status:empty{display:none}.photo-status{padding:12px;border-radius:8px;background:var(--mint-light);font-size:.9rem}
.reader-caption{font-family:var(--reading);max-height:8em;overflow-y:auto}.reader-status{margin-bottom:0;font-size:1rem;color:var(--danger)}
.companion-state{color:var(--muted);font-size:.8rem}.companion-state:empty{display:none}
.reader-avatar{width:180px;max-width:100%;align-self:center;overflow:hidden;border-radius:12px}.companion-photo,.companion-video{display:block;width:100%;aspect-ratio:1;object-fit:cover;opacity:1;filter:none}
.reader-dialog{width:min(100%,560px);max-width:100%;height:100dvh;max-height:100dvh;padding:0;margin:auto;border:0;background:#fff;color:var(--ink)}.reader-dialog::backdrop{background:#25292270}
.dialog-layout{display:flex;flex-direction:column;height:100%;min-height:0}.dialog-header{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:calc(12px + env(safe-area-inset-top)) 20px 12px;border-bottom:1px solid var(--line)}.dialog-header>span{color:var(--muted)}.dialog-header button{min-height:50px}
.dialog-content{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:22px 20px}.dialog-content .lead{font-size:.95rem}
.dialog-footer{flex-shrink:0;padding:12px 20px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff}.dialog-footer .hint{margin:8px 0 0;text-align:center;font-size:.8rem}
.upload-steps{display:flex;flex-wrap:wrap;gap:12px 20px;padding:0;margin:20px 0;list-style:none;font-size:.9rem}.upload-steps li{padding-bottom:6px;border-bottom:3px solid var(--green)}
.photo-preview{display:grid;place-items:center;gap:6px;min-height:200px;padding:16px;border:1px solid var(--line);border-radius:14px;margin:24px 0 14px;background:#fafbf7;text-align:center}
.photo-preview img{max-width:100%;width:180px;height:170px;object-fit:contain;border-radius:8px}
.photo-placeholder{display:grid;gap:6px;justify-items:center}.photo-placeholder>span{font-size:1.7rem}.photo-placeholder>p{margin:0;color:var(--muted);font-size:.8rem}.photo-preview-note{margin:0}
.reader-consent{display:flex;align-items:start;gap:11px;min-height:48px;margin:20px 0 10px;cursor:pointer;font-size:.95rem}.reader-consent input{margin:3px 0 0}
.reader-options{display:grid;gap:18px;margin:24px 0}.reader-options label,.voice-input-choice{display:grid;gap:8px}
.voice-choices{display:grid;gap:12px;padding:0;border:0;margin:24px 0}.voice-card{display:flex;align-items:stretch;min-width:0;border:2px solid var(--line);border-radius:16px;background:#fff;overflow:hidden}.voice-card:has(:checked){border-color:#b58a12;background:var(--mint-light)}.voice-card>label{display:flex;align-items:center;gap:12px;flex:1;min-width:0;padding:18px 12px;cursor:pointer}.voice-card input{margin:0}.voice-copy{display:grid;gap:4px}.voice-copy strong{font-size:1.2rem}.voice-copy>span{color:var(--muted);font-size:.9rem}.voice-preview{align-self:center;flex-shrink:0;min-height:48px;padding:8px 12px;margin-right:10px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:1rem;font-weight:650}.voice-preview:hover{background:#fff0b3}.voice-preview-status{margin:0 0 12px;color:var(--danger);font-size:1rem;overflow-wrap:anywhere}.voice-preview-status:empty{display:none}
@media(max-width:359px){.voice-card>label{gap:8px;padding:16px 8px}.voice-preview{padding:8px;margin-right:8px}}
.video-create{padding:20px 0;border-top:1px solid var(--line);margin-top:24px}.video-create h2{font-size:1.2rem}.video-create .reader-consent{margin:16px 0}.video-action-status{font-size:1rem;color:var(--danger);margin:12px 0 0}.video-action-status:empty{display:none}
details{margin:12px 0}summary{min-height:54px;padding:12px 0;font-weight:650;overflow-wrap:anywhere}
.interview-history,.version-panel,.record-options{margin:0;border-bottom:1px solid var(--line)}.version-panel summary span{color:var(--muted);font-size:.8rem;font-weight:400}
.interview-actions{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-bottom:18px}.interview-actions label{display:grid;gap:6px;flex:1;min-width:120px}
.record-options .danger-button{margin:20px 0}.voice-input-choice{margin-top:18px}
.messages{max-height:60dvh;overflow-y:auto;padding:6px 0 16px}.message{margin:12px 0;max-width:94%}.message small{color:var(--muted);font-size:.8rem}
.message p{margin:4px 0;padding:13px;border-radius:4px 12px 12px;background:#f0f3eb;white-space:pre-wrap}.message.user{margin-left:auto}.message.user p{background:var(--mint-light);border-radius:12px 4px 12px 12px}
.topic-chips{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.topic-chips button{min-height:48px;border:1px solid var(--line);border-radius:10px;padding:8px 12px;background:#fff}
.chat-form{padding:16px 0 0;margin-top:0;background:#fff}
.chat-form:has(.answer-editor:not([hidden])) .record-button{background:#fff;border-color:#adb8a4;font-size:1rem}.chat-form:has(.answer-editor:not([hidden])) .button-pair{display:none}
.voice-status{margin:0 0 12px;color:var(--danger);font-size:1rem}.voice-status:empty{display:none}.record-button{min-height:62px;font-size:1.15rem}
.button-pair{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.button-pair>button{flex:1 1 125px;padding:11px 8px}
.answer-editor{margin-bottom:22px;padding:16px;border:1px solid var(--line);border-radius:12px}.answer-editor>label{display:block;margin-bottom:10px;font-weight:700}.answer-editor textarea{font-family:var(--reading);margin-bottom:14px}
.memoir-library{margin:24px 0 16px}.memoir-generate{position:sticky;bottom:0;z-index:3;margin:20px -20px -24px;padding:14px 20px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff}.memoir-generate>button{min-height:58px}.draft-kind{display:inline-block;width:fit-content;padding:3px 10px;border-radius:6px;background:var(--mint-light);color:var(--gold-text);font-size:1rem;font-weight:600}.editor-heading .draft-kind{margin-bottom:12px}
.memoir-page,.generation-page{display:flex;flex-direction:column;min-height:100dvh}.memoir-page>*,.generation-page>*{flex-shrink:0}.generation-page form{display:flex;flex:1;flex-direction:column}.memoir-page>.memoir-generate,.generation-page .memoir-generate{margin-top:auto}
.generation-choices{display:grid;gap:14px;padding:0;border:0;margin:28px 0}.generation-choices>label{display:flex;gap:14px;align-items:center;padding:20px 16px;border:2px solid var(--line);border-radius:14px;cursor:pointer}.generation-choices>label:has(:checked){border-color:#dbac28;background:var(--mint-light)}.generation-choices>label>span{display:grid;gap:8px}.generation-choices strong{font-size:1.2rem}.generation-choices span>span{font-size:1rem;color:var(--muted)}.chapter-name{display:grid;gap:12px;font-weight:650}.generation-records{margin:20px 0}.generation-records label{display:flex;align-items:start;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);cursor:pointer}.generation-records label>span{overflow-wrap:anywhere;min-width:0}.generation-records input{margin-top:4px}.generation-page .form-error{font-size:1rem}
.free-intro p{color:var(--muted)}.version-list{display:grid;gap:12px;margin:16px 0}
.version-list button{display:grid;gap:5px;min-height:72px;padding:14px;border:1px solid var(--line);border-radius:12px;text-align:left;background:#fff}.version-list small{color:var(--muted)}
.editor-heading{display:grid;gap:14px;margin-bottom:20px}.editor-heading input{font:700 1.5rem/1.5 var(--reading)}
.chapters{display:grid;gap:20px}.chapter{padding:18px;border:1px solid var(--line);border-radius:14px}.chapter input{font:700 1.2rem/1.5 var(--reading)}.chapter textarea{margin-top:14px;min-height:260px;font-family:var(--reading);line-height:1.9}.chapter .text-button{display:block;margin-left:auto}
.notice,.chat-note{margin:16px 0;padding:13px 14px;border-left:3px solid var(--green);background:var(--mint-light);font-size:.9rem}
.photo-magazine{overflow:hidden;border:1px solid var(--line);border-radius:15px}.magazine-cover{display:grid;gap:18px;align-content:center;min-height:300px;padding:30px 22px;text-align:center;background:#ffdf78;color:#463a12}.magazine-cover h1{font-size:2rem}.magazine-cover>span{font-size:.85rem}
.photo-magazine-pages figure{margin:0;padding:24px 18px;border-top:1px solid var(--line)}.photo-magazine-pages figure>p{color:var(--gold-text)}.photo-magazine-pages img{display:block;width:100%;max-height:560px;object-fit:contain;background:#f7f8f3}
.photo-magazine-pages figcaption{display:grid;gap:12px;padding-top:16px}.photo-magazine footer{padding:20px;color:var(--muted);font-size:.85rem;text-align:center}
.report-heading{display:grid;gap:10px}.report-heading h1{margin:0;font-size:1.4rem;line-height:1.5}
.overall{display:flex;align-items:center;justify-content:space-between;gap:15px;border-radius:12px;padding:12px 16px;background:var(--mint-light)}.overall strong{font-size:1.4rem}.overall small{font-size:.85rem}.rating-note{color:var(--muted);font-size:.85rem}
.summary-card{margin:26px 0 22px;padding:0;border:0;background:#fff}.summary-card h2{font-size:1.25rem}.summary-card ol{padding-left:1.3em;margin:14px 0 0}.summary-card li{padding-left:6px;margin:14px 0;font-size:1.1rem;line-height:1.8;overflow-wrap:anywhere}.summary-card li::marker{color:var(--gold-text);font-weight:700}.summary-card li:last-child{margin-bottom:0}
.claim-list{display:grid;gap:20px}.claim-card{padding:20px 16px;border:1px solid var(--line);border-radius:15px}
.claim-title{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;border-bottom:1px solid var(--line);padding-bottom:14px}.claim-title>span{display:grid;place-items:center;width:30px;height:30px;border-radius:7px;background:var(--green);font-weight:700}.claim-title h3{font-size:1.15rem}
.support{width:fit-content;padding:4px 10px;border-radius:7px;grid-column:2;font-size:.9rem;font-weight:600}
.support-supported{color:#137967;background:#e5f2ec}.support-pending{color:#654e14;background:#f5edd8}.support-opposed{color:#8b3434;background:#f9e7e3}.support-missing{color:#656c62;background:#edf0eb}
.claim-card section{margin-top:20px}.claim-card h4{margin:0 0 8px;font-family:inherit;font-size:1rem}.claim-card p{margin:0;font-size:1.05rem;line-height:1.8}.sources{padding-left:1.1em;overflow-wrap:anywhere}.sources li{margin:8px 0}.sources a{display:inline-block;padding:8px 0;min-height:44px}.claim-detail{border-top:1px solid var(--line);margin:16px 0 0}.claim-detail summary{color:var(--gold-text);font-size:1rem}.evidence-heading{font-size:1.25rem;margin:30px 0 16px}
.tags{display:flex;flex-wrap:wrap;gap:8px}.tags span{padding:5px 10px;border-radius:7px;background:var(--mint-light);font-size:.85rem}
.medical-note,.final-note,.attribution{text-align:center}.medical-note{font-weight:700;margin-top:26px}.attribution{color:var(--muted);font-size:.8rem}
.sticky-actions{position:sticky;bottom:calc(82px + env(safe-area-inset-bottom));display:flex;flex-wrap:wrap;gap:10px;padding:12px 0;margin:20px 0 0;background:#fff;border-top:1px solid var(--line)}.sticky-actions>*{flex:1}.focused-page .sticky-actions{bottom:0;padding-bottom:calc(12px + env(safe-area-inset-bottom))}
.report-page .sticky-actions{position:static}
.empty-state{padding:40px 20px;text-align:center}.empty-state.inline{border:1px solid var(--line);border-radius:16px}.empty-state h1{font-size:1.65rem}.empty-state p{color:var(--muted)}
.empty-icon{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 20px;border-radius:14px;background:var(--mint);font-family:var(--reading);font-size:1.5rem}
pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow-y:auto;padding:14px;background:#f5f7ef;font:inherit;text-align:left}
.mine-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:5px;gap:3px;margin-bottom:22px;background:#f0f3eb;border-radius:12px}.mine-tabs button{min-height:52px;padding:9px 3px;border:1px solid transparent;border-radius:9px;background:transparent;font-size:.9rem}.mine-tabs .active{color:var(--ink);border-color:var(--line);background:#fff;font-weight:700}
.record-list{display:grid;gap:12px}.record-list>button{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;min-height:90px;padding:18px;border:1px solid var(--line);border-radius:13px;background:#fff;text-align:left}.record-list>button>span{display:grid;gap:5px;flex:1 1 180px}.record-list small{color:var(--muted);font-size:.8rem}
.status{padding:4px 9px;border-radius:7px;font-size:.8rem}.status-已完成{background:var(--mint-light)}.status-处理中{color:#705700;background:#fff0b8}.status-失败{color:var(--danger);background:#f9e7e3}
.settings-card hr{border:0;border-top:1px solid var(--line);margin:26px 0}.settings-card h2+.secondary-button{margin-top:12px}.feedback-card textarea{display:block;margin-bottom:16px}
.font-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.font-options label{position:relative;cursor:pointer}.font-options input{position:absolute;width:1px;height:1px;min-height:0;opacity:0}.font-options span{display:grid;place-items:center;min-height:62px;border:1px solid var(--line);border-radius:10px;font-size:.9rem}
.font-options input:checked+span{border:2px solid #80611c;background:var(--mint-light);font-weight:700}.font-options input:focus-visible+span{outline:3px solid #725500;outline-offset:3px}
.help-grid{display:grid;gap:14px;margin-bottom:20px}.help-grid section{padding:20px;border:1px solid var(--line);border-radius:15px}.help-grid h2{font-size:1.15rem}.help-grid p{color:var(--muted);margin-bottom:0}
.toast{position:fixed;z-index:50;bottom:calc(90px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 36px);padding:12px 18px;border-radius:12px;background:#252922;color:#fff;opacity:0;pointer-events:none;font-size:.9rem}.toast.show{opacity:1}
@media(min-width:800px){.auth-wrap{grid-template-columns:1.1fr 1fr;align-items:center;gap:50px;padding-top:70px}.auth-copy h1{font-size:2.4rem}.test-badge{display:block;color:var(--muted);font-size:.8rem}.reader-dialog{height:min(900px,94dvh);border:1px solid var(--line);border-radius:18px}.reader-panel:not(.interview-card .reader-panel){flex-direction:row;align-items:center}.reader-avatar{flex-shrink:0}.photo-magazine-pages figcaption{grid-template-columns:1fr auto;align-items:center}}
@media(max-width:359px){.page-section,.detail-page,.hero,.dialog-content{padding-left:16px;padding-right:16px}.auth-card,.input-card,.settings-card,.continue-card{padding:16px}.continue-top{gap:12px}.continue-top .book-cover{width:58px;flex-basis:58px}.memoir-generate{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.analysis-ring,.analysis-track>span{animation:none}.analysis-track>span{transform:translateX(150%)}}

/* Analysis: the current task and its answer always precede secondary controls. */
.hero:has(.submitted){padding-top:16px}.hero:has(.submitted) #hero-title{display:none}
.input-card.submitted{margin-top:0}.submitted .analysis-wait,.analysis-pending-page .analysis-wait{margin-top:0;border:1px solid #e8d79d;padding:24px 20px}
.submitted .analysis-source{margin-top:12px}.analysis-source summary{min-height:48px;padding:10px 0;color:var(--muted);font-size:.9rem}
.analysis-wait-heading h1{font-size:1.2rem}.analysis-pending-page .analysis-track{margin:20px 0 0}
.analysis-ready{margin-top:14px}.analysis-ready:not([hidden]){position:sticky;top:12px;z-index:2}
.waiting-examples{margin-top:28px}.waiting-examples-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.waiting-examples-heading h2{font-size:1.1rem}.waiting-examples-heading .text-button{font-size:.85rem;padding:10px 2px;white-space:nowrap}
.waiting-example{border:1px solid var(--line);border-radius:16px;padding:20px;min-height:242px;background:#fff}
.waiting-example h3{font-size:1.2rem;line-height:1.55;margin:14px 0 10px}.waiting-example p{font-size:.95rem;color:var(--muted);margin:0}
.waiting-examples-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}
.waiting-dots{display:flex;flex-wrap:wrap;gap:6px;max-width:50%}.waiting-dots i{display:block;width:6px;height:6px;border-radius:50%;background:#d5d8d0}.waiting-dots i.active{width:20px;border-radius:4px;background:#98740b}
.page-toolbar .back-button{margin:0}.report-page .page-toolbar{margin-bottom:20px}
.report-page .reader-compact{padding:0;border:0;margin:0 0 14px;border-radius:0;display:block}
.reader-compact .reader-buttons [data-reader=play]{flex:1;background:var(--green);border-color:var(--green)}
.reader-compact .reader-buttons>button{min-width:0;white-space:normal}.report-reader-settings{margin-top:6px}
.report-reader-settings summary{font-size:.85rem;color:var(--muted);min-height:44px;padding:10px 0}
.report-support{padding:22px 20px 18px;margin:22px 0 0;border:1px solid #e0e3da;border-radius:23px;background:#fff}
.report-support h2{font-size:1.11rem;font-weight:700;line-height:1.5;color:var(--ink);letter-spacing:-.025em}
.evidence-metric{display:flex;align-items:center;gap:16px;margin:14px 0 10px}.evidence-number{font-size:4.44rem;line-height:1;letter-spacing:-.075em;font-weight:800;color:#656c62;font-variant-numeric:tabular-nums;white-space:nowrap}.evidence-number>span{font-size:1.89rem;letter-spacing:-.04em;margin-left:3px}.evidence-label{font-size:1.22rem;line-height:1.45;font-weight:750;min-width:0}.evidence-low .evidence-number{color:#c73732}.evidence-medium .evidence-number{color:#9b7000}.evidence-high .evidence-number{color:#137967}
.evidence-count{font-size:1rem;line-height:1.6;margin:14px 0 16px;color:#54574e}.evidence-count strong{color:var(--ink);font-weight:750}
.evidence-distribution{display:flex;gap:4px;height:30px;border-radius:9px;overflow:hidden}.evidence-segment{display:flex;align-items:center;justify-content:center;min-width:0;font-size:.9rem;font-weight:750}.segment-supported{background:#218774;color:#fff}.segment-pending{background:#f3c53c;color:#433500}.segment-opposed{background:#c73732;color:#fff}.segment-missing{background:#dce1da;color:#3c443c}
.evidence-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:13px 0 0;padding:0;list-style:none}.evidence-legend li{display:flex;align-items:center;gap:6px;font-size:.9rem;line-height:1.5;white-space:nowrap}.evidence-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%}.dot-supported{background:#218774}.dot-pending{background:#f3c53c}.dot-opposed{background:#c73732}.dot-missing{background:#9ea89c}
.evidence-caution{padding:12px 14px;border-radius:10px;background:var(--mint-light);font-size:1rem;line-height:1.7;margin:18px 0 0}.report-support .rating-note{border-top:1px solid #edf0e9;padding-top:13px;font-size:.9rem;margin:18px 0 0;color:#62665d;line-height:1.65}
.report-page .claim-list{scroll-margin-top:16px}

/* Shared hierarchy: one current task, with preferences one level deeper. */
.account-subpage>h1{margin:8px 0 24px}.account-menu{border:1px solid var(--line);border-radius:20px;background:#fff;margin:0 0 20px;overflow:hidden}.account-menu>button{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:72px;padding:20px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;font-weight:650}.account-menu>button:last-child{border:0}.account-menu small{display:block;margin-top:5px;font-size:.9rem;font-weight:400;color:var(--muted)}.account-menu>button>span:last-child{font-size:1.5rem;color:var(--muted)}
.settings-stack{display:grid;gap:20px}.settings-stack h3{font-size:1rem;margin:18px 0 12px}.settings-stack .full{margin-top:14px}.retention-choice{display:flex;align-items:center;gap:12px;margin:18px 0 0}.retention-choice input{margin:0}.account-delete{margin:0;color:var(--muted)}.account-delete summary{font-weight:500}.account-delete p{font-size:1rem}
.reader-compact{padding:0;border:0;background:transparent}.interview-card .reader-compact{margin-bottom:0}.interview-card .reader-compact [data-reader=play]{background:#fff;border-color:#d8c995;font-weight:600}.interview-card .report-reader-settings{margin:0}.interview-ended{padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--mint-light)}.interview-ended h2{font-size:1.3rem}.interview-ended p{color:var(--muted)}
.editor-page .reader-compact{margin:12px 0 22px}.chapter{background:#fafaf7}.chapter input,.chapter textarea{background:#fff}.draft-status:empty{display:none}.draft-status{font-size:.9rem;color:var(--muted)}.empty-state.inline{background:#fff}.new-memoir-page-form{margin-top:26px}.new-memoir-page-form .full{margin-top:16px}
@media(max-width:359px){.report-support{padding:20px 16px}.interview-card{padding:18px 16px 4px}.account-menu>button{padding:18px 16px}}

/* Shared mobile rhythm, including dialogs and large-type settings. */
html{scroll-padding-block:24px 120px}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
.topbar{min-height:70px}.brand span{font-size:1.5rem}.tabs{gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom))}
.hero{padding-top:22px}.hero .eyebrow{display:none}.hero h1{font-size:1.78rem;line-height:1.45}.hero .lead{font-size:1.05rem}
.input-card{padding:18px;margin-top:24px}.input-fields textarea{border:0;background:transparent;padding:4px 0;min-height:120px}.input-actions{border-top:1px solid var(--line);padding-top:16px}.input-actions [data-action=choose-files]{background:var(--mint-light);border-color:transparent}
.pill,.hint,.fineprint,.attribution,.record-list small,.status,.book-card small,.message small,.version-panel summary span{font-size:.9rem}
.page-toolbar{min-height:50px}.page-toolbar>span{font-size:1rem}.back-button,.back-books-button,.dialog-header .secondary-button,[data-mz=back]{font-size:.95rem}
.example-grid article{padding:20px}.example-grid p{line-height:1.7}.examples{padding-bottom:32px}
.interview-card{padding:24px 20px 12px}.interview-question>p{font-size:1.45rem;line-height:1.7}.book-context{padding-bottom:14px;border-bottom:1px solid var(--line)}.book-context h1{font-size:1.1rem}
.settings-card+.settings-card{margin-top:16px}.settings-stack .settings-card+.settings-card{margin-top:0}.voice-copy,.continue-top>div,.security-list section>div{min-width:0}
.dialog-content{padding-top:24px}.photo-preview{border-style:dashed}.reader-dialog h1{font-size:1.55rem}.voice-card>label{padding:18px 14px}.voice-copy strong{font-size:1.1rem}
.form-error:not(:empty){font-size:1rem}.auth-card #phone-status:empty{display:none}.auth-card .wechat-entry{margin-top:14px}
/* Reading uses B's paper, rules and generous leading; actions keep A's clear buttons. */
.report-page,.manuscript-page{background:var(--reading-paper)}
.report-heading{gap:14px}.report-heading h1{font-size:1.4rem;font-weight:650}
.report-page .summary-card{background:transparent;margin-block:30px}.summary-card li{font-size:1.12rem;line-height:1.9;margin-block:18px}
.report-page .evidence-heading{border-top:2px solid var(--ink);padding-top:22px;margin-top:32px}.report-page .claim-list{gap:0}.report-page .claim-card{border:0;border-bottom:1px solid #cfcfc2;border-radius:0;padding:24px 0 28px}.report-page .claim-title{border:0;padding:0}.report-page .claim-card p{font-size:1.12rem;line-height:1.9}.report-page .claim-card h4{font-size:1.05rem}.report-page .sources{font-size:1rem}.report-page .rating-note{font-size:.9rem}.report-page .reader-compact{margin-bottom:20px}
.manuscript-page .editor-heading{margin-top:12px;margin-bottom:26px}.manuscript-page h1{font-size:1.85rem;line-height:1.5}.manuscript-page .chapters{gap:32px}.manuscript-page .chapter{background:transparent;border:0;border-top:1px solid #bdbeb0;border-radius:0;padding:24px 0 0;scroll-margin-top:24px}.manuscript-page .chapter-number{font-size:.9rem;letter-spacing:.1em;color:var(--muted);margin:0 0 10px}.manuscript-page .chapter h2{font-size:1.5rem;font-weight:650}.chapter-prose p{white-space:pre-wrap;font-size:1.12rem;line-height:1.95;margin:20px 0}.manuscript-page .sticky-actions{background:var(--reading-paper)}
.editor-page:not(.manuscript-page) .chapter{padding:16px;background:#fafaf7}.editor-page .sticky-actions{gap:12px}.editor-page .sticky-actions>button{min-width:120px}.editor-page:not(.manuscript-page) .editor-heading{margin-top:14px}
@media(min-width:800px){body{background:#f1f2ec}.topbar,.hero,.page-section{background:#fff}.topbar{border-bottom:1px solid var(--line)}.auth-wrap{background:transparent}.report-page,.manuscript-page{padding-inline:48px}.report-page .page-toolbar{margin-inline:-12px}.report-page .claim-card{padding-block:28px}.reader-dialog .dialog-content{padding-inline:28px}}
@media(max-width:359px){.input-card{padding:16px}.report-support{padding:22px 16px}.waiting-examples-heading{flex-wrap:wrap}.voice-card{flex-wrap:wrap}.voice-preview{margin:0 14px 14px auto}.reader-buttons>button{flex-basis:100%}.security-list section{flex-wrap:wrap}.security-list section>div{flex-basis:58%}.sticky-actions{gap:8px}.generation-choices>label{padding:18px 12px}}
:root[data-font=xlarge] .reader-buttons>button,:root[data-font=xlarge] .button-pair>button{flex-basis:100%}
@media(max-width:399px){.evidence-metric{gap:12px}.evidence-label{font-size:1.1rem}:root[data-font=xlarge] .evidence-number{font-size:3.9rem}.evidence-number>span{font-size:1.65rem}}
@media(max-width:359px){.evidence-metric{gap:10px}.evidence-number{font-size:3.5rem}:root[data-font=xlarge] .evidence-number{font-size:3rem}.evidence-label{font-size:1rem}.evidence-legend{gap:5px}.evidence-legend li{gap:4px;font-size:.85rem}}

/* Approved mobile task flows: quiet paper, one primary action, secondary tools below content. */
.topbar{background:#fff;border-bottom:1px solid var(--line)}
.page-section,.detail-page,.hero{padding-inline:22px;background:var(--paper)}
.detail-page{min-height:100dvh}.hero h1{font-size:1.6rem;line-height:1.45}.hero .lead{margin-top:8px}
:is(.back-button,.back-books-button,.dialog-header .secondary-button,[data-mz=back],[data-action=back-current]){background:var(--mint-light);border-color:transparent;color:#594711;min-height:48px;margin-bottom:0}
.page-toolbar{min-height:48px;margin-bottom:24px}.page-toolbar>span{font-size:.95rem}
.text-button,.link-button,.danger-link{min-width:48px}.sources a,.source-card a,.login-agreement button{min-height:48px}
.auth-wrap{gap:20px;padding-top:20px}.auth-copy h1{font-size:1.45rem}.auth-copy .eyebrow{display:none}.auth-copy>p:last-child{font-size:.95rem}.auth-card{padding:20px}.auth-card h2{font-size:1.25rem}.auth-card label{margin-block:12px}.auth-card .login-agreement{margin-block:12px}
.input-card{padding:0;border:0;background:transparent}.input-fields{background:#fff;border:1px solid #bdc6b4;border-radius:20px;padding:18px}.input-fields textarea{min-height:170px;font-size:1.05rem}.input-actions{border:0;padding:0;margin-top:24px;gap:12px}.input-actions .primary-button{min-height:56px;font-size:1rem}.composer-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding-top:10px;margin-top:13px}.composer-tools .text-button{font-size:.94rem}.composer-tools .hint{font-size:.85rem}.hero .eyebrow{display:block;font-size:.88rem}.examples-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.examples-heading h2{font-size:1.1rem}.examples-heading .text-button{font-size:.94rem}.upload-help summary{min-height:48px;padding-block:8px}.upload-help{margin:0}.hero .lead{line-height:1.7}
.submitted .analysis-wait,.analysis-pending-page .analysis-wait{background:#fff;border-color:#d6dbc9;border-radius:20px;padding:22px 20px}.analysis-wait strong,.analysis-wait-heading h1{font-size:1.25rem}.analysis-ring{width:27px;height:27px;flex-basis:27px}.analysis-wait p{font-size:1rem;line-height:1.7}.analysis-track{height:6px}.analysis-leave{display:block;margin:8px 0}.waiting-examples{margin-top:24px}.waiting-example{min-height:0}.waiting-examples-heading{flex-wrap:wrap}.waiting-examples-heading h2{font-size:1.1rem}
.report-heading{gap:10px}.report-heading h1{font-size:1.35rem}.report-support{padding:20px;margin-top:18px;border-radius:20px}.report-support h2{font-size:1.1rem}.evidence-metric{margin:8px 0 12px}.evidence-number{font-size:3.7rem}.evidence-number>span{font-size:1.6rem}.evidence-label{font-size:1rem}.evidence-count{margin:8px 0 12px;font-size:.95rem}.evidence-distribution{height:14px;border-radius:5px}.evidence-segment{font-size:0}.evidence-legend{gap:8px}.evidence-legend li{font-size:.88rem;white-space:normal}.report-support .rating-note{font-size:.85rem;margin-top:12px;padding-top:11px}.evidence-notes{margin:8px 0 0}.evidence-notes summary{font-size:.88rem;min-height:48px;padding:9px 0;color:var(--muted)}.evidence-caution{margin-top:6px;font-size:.95rem;padding:10px 12px}.summary-card h2{font-size:1.28rem}.summary-card ol{list-style:none;padding:0;counter-reset:point}.summary-card li{display:block;padding:12px 0;margin:0;border-bottom:1px solid var(--line);font-size:1.05rem;line-height:1.75;counter-increment:point}.summary-card li::before{content:counter(point,decimal-leading-zero);font-size:.85rem;color:#8a721e;font-weight:700;margin-right:12px}.summary-card li:last-child{border:0}.report-page .summary-card{margin-block:24px}
.source-page h1{font-size:1.45rem}.source-explanation{font-size:1.1rem;line-height:1.8;margin:20px 0}.source-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;margin-top:14px}.source-card h2{font-size:1.1rem}.source-card a{display:flex;align-items:center;font-weight:650;margin-top:12px}.source-card blockquote{margin:14px 0;padding-left:14px;border-left:3px solid #e3bd3c}.source-scope{margin:24px 0}.source-scope h2{font-size:1.1rem}.source-scope p{line-height:1.85;margin-bottom:24px}
.report-page .reader-compact .reader-buttons [data-reader=play],.manuscript-page .reader-compact .reader-buttons [data-reader=play]{background:#fff;border-color:#bfc4b7}.reader-compact .reader-buttons>button{font-size:.95rem}.report-reader-settings{margin:0}.report-reader-settings summary{min-height:48px}
#book-grid{margin-top:20px}.continue-card{background:#fff;border-color:var(--line);padding:20px}.continue-top{margin-bottom:16px}.continue-top h2{font-size:1.2rem}.book-continue{margin:24px 0}.book-manuscripts{margin-bottom:20px}.book-delete{margin:24px 0}.book-page>.memoir-generate{margin-top:24px}.book-page .version-list button{background:#fff}
.book-context{border:0;margin-bottom:18px;padding:0}.book-context h1{font-size:.95rem;font-weight:550}.interview-card{padding:22px 20px 14px;border-color:#eadba9}.interview-card .eyebrow{font-size:.88rem}.interview-question>p{font-size:1.42rem;line-height:1.65;margin-bottom:12px}.interview-navigation{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.interview-navigation button{flex:1 1 auto;min-height:56px;padding:12px 16px;border:1px solid #b79518;border-radius:15px;background:#fff8dc;font-size:1rem;font-weight:650;color:var(--ink)}.interview-ended{background:#fff;border-color:var(--line);padding:22px}.interview-ended h2{font-size:1.5rem}.chat-form{background:transparent}.answer-editor{padding:18px;background:#fff;border-radius:16px}.answer-editor textarea{min-height:200px;font-size:1.05rem}.chat-form:has(.answer-editor:not([hidden]))+.end-interview-button{margin-top:0}.chat-form:not(:has(.answer-editor:not([hidden]))){display:grid;grid-template-columns:1fr 1fr;gap:12px}.chat-form:not(:has(.answer-editor:not([hidden]))) .voice-status,.chat-form:not(:has(.answer-editor:not([hidden]))) .draft-status{grid-column:1/-1}.chat-form .button-pair{margin:0;display:flex}.chat-form:has(.answer-editor:not([hidden])) .button-pair{display:none}.record-button{min-height:56px;font-size:1rem}.end-interview-button{border-width:1px;background:transparent}.memoir-library{margin-top:20px}.memoir-library>.secondary-button{margin-top:12px}.memoir-generate{margin-inline:-22px;padding-inline:22px}.memoir-generate>button{font-size:1rem}
.generation-choices{margin-block:24px}.generation-choices>label{padding:18px;border-radius:16px;border-width:1px;background:#fff}.generation-choices>label:has(:checked){border:2px solid #a88000;padding:17px;background:#fff9e7}.generation-choices strong{font-size:1.1rem}.generation-note{font-size:.95rem;color:var(--muted);margin:20px 0}.generation-page .memoir-generate{margin-inline:0;padding-inline:0}
.chapter-directory{border-block:1px solid var(--line);padding:4px 0;margin-bottom:24px}.chapter-link{display:block;width:100%;text-align:left;min-height:56px;padding:13px 8px;border:0;border-bottom:1px solid var(--line);background:transparent}.chapter-link:last-child{border:0}.manuscript-page h1{font-size:1.65rem}.chapter-prose p{font-size:1.07rem;line-height:1.95}.editor-page .sticky-actions{margin-top:24px}.focused-page .toast{bottom:calc(88px + env(safe-area-inset-bottom))}
@media(max-width:599px){.auth-wrap{padding-bottom:20px}.auth-copy h1 br{display:none}.auth-copy h1{font-size:1.25rem}.auth-copy>p:last-child{display:none}.topbar #account-name{display:none}.profile-page,.profile-header,.mz-top{background:var(--paper)}}
:root[data-font=xlarge] .evidence-metric{flex-wrap:wrap}:root[data-font=xlarge] .evidence-legend{grid-template-columns:1fr}:root[data-font=xlarge] .chat-form:not(:has(.answer-editor:not([hidden]))){grid-template-columns:1fr}
.memoir-page:has(.answer-editor:not([hidden])) .interview-card,.memoir-page:has(.answer-editor:not([hidden])) .interview-navigation,.memoir-page:has(.answer-editor:not([hidden])) .memoir-generate,.memoir-page:has(.answer-editor:not([hidden])) .memoir-library{display:none}
.answer-editor{border:1px solid var(--line)}.answer-editor label{font-size:1.35rem}.answer-editor textarea{min-height:260px}.answer-editor [type=submit]{position:fixed;bottom:calc(16px + env(safe-area-inset-bottom));left:max(22px,calc((100vw - 676px)/2));width:calc(100% - 44px);max-width:676px;z-index:30;box-shadow:0 0 0 16px var(--paper)}
.memoir-page:has(.answer-editor:not([hidden])) .chat-form>.record-button{background:#fff;border-color:var(--line);margin-top:16px}
.answer-editor [type=submit]:disabled{opacity:1;background:#ffe89b;border-color:#ffe89b;color:#71684d}
@media(max-width:359px){.page-section,.detail-page,.hero{padding-inline:16px}.memoir-generate{margin-inline:-16px;padding-inline:16px}.report-support{padding:18px 16px}.evidence-number{font-size:3.5rem}}

/* Approved 18 October screens: actual hierarchy, not only a colour overlay. */
.detail-page{padding-top:0;padding-bottom:calc(120px + env(safe-area-inset-bottom))}
.page-toolbar{position:sticky;top:0;z-index:12;min-height:68px;padding:10px 22px;margin:0 -22px 25px;background:#fff;border-bottom:1px solid var(--line)}
.page-toolbar .back-button{padding:7px 12px;border-radius:12px}.page-toolbar>span{font-weight:650;color:var(--ink)}
.focused-page .detail-page{padding-top:0}.focused-page main{padding-bottom:0}
.sticky-actions,.memoir-generate,.generation-page .memoir-generate,.book-page>.memoir-generate{position:fixed;z-index:22;left:0;right:0;bottom:0;max-width:760px;margin:0 auto;padding:13px 22px calc(17px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff}
.report-page .sticky-actions{position:fixed}.sticky-actions>button{min-width:0;min-height:56px}
.auth-wrap{display:block;max-width:520px;padding:25px 22px 40px}.auth-copy h1{font-size:1.6rem}.auth-copy>p:last-child{display:block!important;font-size:1.05rem;line-height:1.7}.auth-card{padding:0;border:0;background:transparent;margin-top:24px}.auth-card label{margin:18px 0 8px}.auth-card input{border-radius:13px;min-height:56px}.auth-page .topbar{max-width:520px}.auth-page main{padding-bottom:0}.auth-card .login-agreement{margin-block:18px}.auth-card .login-agreement label{margin:0}.auth-card .login-agreement button{min-height:44px}.otp{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.otp-field>label{display:block;font-weight:650}.otp button{font-size:.88rem;background:var(--mint-light);border-color:transparent;padding:10px;max-width:9em}.auth-card .primary-button{display:flex}
.evidence-label{font-weight:400;line-height:1.6}.evidence-label b{display:block;font-weight:700}.report-page .summary-card{margin:22px 0}.summary-card h2{font-size:1.22rem}.summary-card .summary-first{font-size:1.28rem;line-height:1.6;margin:12px 0 10px}.summary-card .lead{font-size:1.05rem;line-height:1.7;margin:10px 0}.report-page .evidence-heading{border:0;padding:0;margin:26px 0 12px;font-size:1.1rem}.report-page .claim-title{display:flex;flex-direction:column;align-items:start;gap:9px}.report-page .claim-title>span{display:none}.report-page .claim-title .support{order:-1}.report-page .claim-card{border-top:1px solid var(--line);border-bottom:0;padding:20px 0}.report-page .claim-card h3{font-size:1.05rem}.report-page .claim-card p{font-size:1rem;line-height:1.8}.report-page .claim-card section>h4{font-size:.9rem;color:var(--muted)}
.reader-compact .reader-body{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid #c2c8b8;border-radius:14px;padding:4px 13px;background:#fff}.reader-compact .reader-buttons{gap:6px;align-items:center}.reader-compact .reader-buttons [data-reader=play],.report-page .reader-compact .reader-buttons [data-reader=play],.manuscript-page .reader-compact .reader-buttons [data-reader=play]{flex:0 1 auto;min-height:48px;background:transparent;border:0;padding:8px 0;font-size:.95rem}.reader-compact .reader-buttons>button:not([data-reader=play]){min-height:48px;font-size:.9rem;padding:8px}.reader-compact .reader-voice-link{font-size:.94rem;padding:8px 4px}.reader-compact .reader-caption,.reader-compact .reader-status{grid-column:1/-1;margin:0}.interview-card .reader-body{display:block;border:0;background:transparent;padding:0}.interview-card .reader-buttons [data-reader=play]{font-weight:650;color:#62501e}.reader-compact .reader-buttons [data-reader=stop]{flex:0 1 auto}.reader-compact .reader-status:not(:empty){padding-top:10px}
.book-card{gap:18px;padding:18px;border-radius:18px}.book-card .book-cover{width:76px;flex-basis:76px;min-height:104px;font-size:.96rem;background:#f1ca59;border-left-color:#d9b34b;letter-spacing:.08em}.book-card strong{font-size:1.05rem}.book-open{display:block;color:#62501e;font-size:.94rem;margin-top:7px;font-weight:650}.book-grid{gap:16px}.new-memoir-page-form{padding:0;border:0;background:transparent}.new-memoir-page-form label{margin-block:24px}.new-memoir-page-form input{border-radius:13px}.new-memoir-page-form .lead{margin-top:22px}.version-list button{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:16px 0;background:transparent}.version-list{gap:0}.book-page .version-list button{background:transparent}.book-page .lead{font-size:.9rem}.book-page .book-manuscripts h2{font-size:1.1rem}
.interview-page{padding-bottom:calc(200px + env(safe-area-inset-bottom))}.interview-page .interview-card{margin:0 0 22px}.interview-invitation{font-size:1.05rem;margin:0 0 12px}.interview-dock{position:fixed;z-index:23;bottom:0;left:0;right:0;max-width:760px;margin:auto;padding:13px 22px calc(12px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;border-top:1px solid var(--line);background:#fff}.interview-dock .button-pair>button{min-width:0;flex:1}.interview-dock .end-interview-button,.interview-dock [data-action=cancel-interview-end]{grid-column:1/-1;text-align:center;justify-content:center;margin:0;min-height:48px;padding:8px}.interview-page .chat-form:not(:has(.answer-editor:not([hidden]))){display:block;padding:0}.interview-page:not(.ended)>.memoir-generate{position:static;border:0;background:transparent;padding:16px 0;margin:0;max-width:none}.interview-page:not(.ended)>.memoir-generate button{background:transparent;border-color:#bfc4b7}.interview-page .memoir-library{margin-top:20px}.interview-page .memoir-library .section-title{margin:0 0 8px;gap:8px}.interview-page .section-title h2{font-size:1.1rem}.saved-count{background:#e8f3ed;color:#226c53;border-radius:7px;font-size:.85rem;padding:3px 8px}.interview-history summary{font-size:1rem;font-weight:600}.interview-page .record-options{margin-top:16px}.interview-ended{padding:0;border:0;background:transparent;margin-top:0}.interview-ended h2{font-size:1.6rem}.interview-ended .full{margin-top:22px}.interview-page:has(.answer-editor:not([hidden])) .interview-invitation{display:none}.interview-page:has(.answer-editor:not([hidden])) .interview-dock{position:static;padding:0;border:0;background:transparent;display:block}.interview-page:has(.answer-editor:not([hidden])) .interview-dock .record-button{background:#fff;border-color:var(--line);margin-top:16px}.answer-editor{padding:0;border:0;background:transparent}.answer-editor label{font-size:1.05rem}.answer-editor textarea{background:#fff;border:1px solid #b9c0b1;border-radius:13px;min-height:300px}.answer-editor [type=submit]{left:max(22px,calc((100vw - 716px)/2));max-width:716px}
.manuscript-page .chapter:first-child{border:0;padding-top:0}.manuscript-page .editor-heading{margin:8px 0 22px}.manuscript-page .chapter-prose p:first-child{font-size:1.15rem;margin-top:0}.manuscript-page .chapter-prose p{margin:0 0 22px}.manuscript-page .chapter>.text-button{font-size:.9rem}.manuscript-tools{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:18px;margin-top:22px}.editor-page:not(.manuscript-page) .chapter{padding:0;border:0;background:transparent}.editor-page:not(.manuscript-page) .chapter textarea{min-height:350px}.editor-page:not(.manuscript-page) .editor-heading input{font-size:1.05rem;font-weight:400}.chapter-directory{background:#fff;padding:12px 18px;border:1px solid var(--line);border-radius:18px}.chapter-directory summary{font-size:1.1rem}
.mine-page .profile-entry{padding:0;border:0;background:transparent;margin:0 0 26px}.mine-page .profile-avatar{width:58px;height:58px}.mine-page .profile-entry-copy strong{font-size:1.6rem}.mine-page .profile-entry-copy>span{color:#62501e;font-weight:650}.account-menu{padding:0 20px}.account-menu>button{padding:15px 0;min-height:70px}.account-menu small{font-size:.9rem}.profile-page{padding-top:0;background:var(--paper)}.profile-header{position:sticky;top:0;z-index:12;padding:10px 22px;min-height:68px;margin:0 -20px 25px;border-bottom:1px solid var(--line);background:#fff}.profile-header h1{margin-left:auto;font-size:1.05rem}.profile-fields{padding:0;border:0;background:transparent}.profile-photo{align-items:flex-start}.profile-gender{margin-top:18px}.security-list{background:#fff}.dialog-content{background:var(--paper)}.dialog-header>span{font-size:1rem}.cartoon-preview{background:#fff}.dialog-header .secondary-button:hover{background:#ffedaa}.voice-choices{margin-top:24px}.voice-card{border-width:1px}.voice-card:has(:checked){border:2px solid #a88000;background:#fff9e7}.voice-preview{border:0;background:transparent}.voice-copy strong{font-size:1rem}
@media(max-width:375px){.page-toolbar{margin-inline:-16px;padding-inline:16px}.interview-dock,.sticky-actions,.memoir-generate{padding-inline:16px}.input-fields{padding:16px}.account-menu{padding-inline:16px}}
:root[data-font=xlarge] .interview-dock{grid-template-columns:1fr}:root[data-font=xlarge] .interview-page{padding-bottom:calc(270px + env(safe-area-inset-bottom))}:root[data-font=xlarge] .otp{grid-template-columns:minmax(0,1fr)}:root[data-font=xlarge] .otp button{max-width:none}
@media(max-height:500px){.interview-dock,.sticky-actions,.memoir-generate,.generation-page .memoir-generate,.profile-save{position:static}.answer-editor [type=submit]{position:static;max-width:none;width:100%;box-shadow:none}}
.recording-feedback{text-align:center;padding:32px 18px;border:1px solid var(--line);border-radius:20px;background:#fff}.recording-clock{font-size:2rem;font-variant-numeric:tabular-nums;font-weight:650;margin:25px 0}.recording-clock::before{content:'';display:inline-block;width:11px;height:11px;border-radius:50%;background:#b2463f;margin-right:12px}.is-recording .interview-card,.is-recording .interview-navigation,.is-recording .interview-invitation,.is-recording .memoir-library,.is-recording .record-options,.is-recording .memoir-generate,.is-recording .answer-editor,.is-recording .interview-dock .button-pair,.is-recording .end-interview-button{display:none!important}.is-recording .interview-dock{display:block;position:fixed!important}.is-recording .record-button{background:var(--green)!important;margin:0!important}.is-recording .chat-form{display:block!important}
.generation-page:has(.generating)>h1,.generating .generation-choices,.generating #chapter-options,.generating .generation-note,.generating .draft-status{display:none}.generation-feedback{margin-top:24px}.generation-feedback h2{font-size:1.35rem}
.book-card .book-cover{flex-basis:auto;min-width:calc(3em + 20px);padding-inline:6px;font-size:.85rem;letter-spacing:0;white-space:nowrap}.chapter-edit{border-bottom:1px solid var(--line);padding-bottom:16px}.chapter-edit summary{min-height:48px;padding:12px 0;font-weight:650}.chapter-edit[open] summary{margin-bottom:14px}
.auth-card .login-agreement button{min-height:48px}

/* Approved 19 October mobile screens. Decorations never receive pointer input. */
.header-profile{position:relative;overflow:hidden;flex-shrink:0;display:grid;place-items:center;width:46px;height:46px;padding:0;border:1px solid var(--line);border-radius:50%;background:#fcfbf8}.header-profile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.header-profile svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round}.header-browse{display:none}.brand-login .header-browse{display:block;white-space:nowrap;font-size:.9rem}.brand-login #account-name,.brand-login #account-profile{display:none}
.brand-surface{background:#fcfbf7}.brand-surface>.topbar{border-bottom:0}.brand-surface .hero,.brand-surface .shelf-page{background:#fcfbf7}.brand-surface .brand{font-size:1.15rem}.brand-surface .tabs button.active{background:transparent}.brand-surface .tabs button span{width:60px;min-height:30px;border-radius:20px}.brand-surface .tabs button.active span{background:var(--green)}.brand-surface .tabs button{font-size:.85rem;gap:3px}
.brand-highlight{position:relative;isolation:isolate;display:inline-block}.brand-highlight:after{content:'';position:absolute;z-index:-1;left:0;right:0;bottom:.14em;height:.28em;background:var(--green);border-radius:2px;pointer-events:none}
.home-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.brand-home h1{font-size:1.46rem;line-height:1.48}.brand-home .lead{font-size:.9rem;margin:10px 0 0}.brand-home:has(.submitted) .home-heading{display:none}
.paper-art{width:98px;height:98px;position:relative;flex:none;pointer-events:none}.paper-front,.paper-back{position:absolute;width:58px;height:72px;top:10px;left:17px;border:1px solid #ece8dd;border-radius:6px;background:#fff;padding:12px 10px;transform:rotate(9deg)}.paper-back{transform:rotate(-14deg);left:8px;top:4px;background:#f1eee4}.paper-front b{width:12px;height:12px;display:block;background:#f2d783;border-radius:3px;margin-bottom:7px}.paper-front i{display:block;height:3px;margin-top:5px;background:#dbdacf;width:100%;border-radius:2px}.paper-front i:nth-of-type(2){width:65%}.paper-lens{position:absolute;width:45px;height:45px;border:7px solid #ffd04c;border-radius:50%;left:45px;top:43px;background:#fff9}.paper-lens:after{content:'';width:8px;height:22px;background:#efbc2e;position:absolute;right:-10px;bottom:-17px;transform:rotate(-38deg);border-radius:7px}
.brand-home .input-card{margin-top:20px;padding:18px;border:1px solid #dcdccf;border-radius:23px;background:#fff}.brand-home .input-fields{padding:0;border:0;background:transparent}.brand-home .input-fields textarea{min-height:96px;height:5.5em;padding:0;border:0;resize:vertical;font-size:.98rem;line-height:1.8}.brand-home .input-fields>label.sr-only{margin:0;padding:0}.brand-home .input-actions{margin-top:0;border:0;padding:0}.brand-home .input-actions .primary-button{min-height:56px}.brand-home .composer-tools{margin-top:12px;padding:3px 0 9px;border-color:#eeeee7}.brand-home .composer-tools .text-button{display:flex;align-items:center;gap:9px;min-height:48px;width:100%;padding:6px 0;color:var(--ink);font-size:.9rem}.upload-plus{margin-left:auto;color:#777c70}.brand-home .upload-help{margin-top:8px}.brand-home .upload-help summary{font-size:.8rem;min-height:44px;padding:8px 0}.brand-home .draft-status:empty{display:none}.guest-compose-input{display:block;width:100%;min-height:110px;text-align:left;padding:0 0 20px;border:0;background:transparent;color:#757b70;font-size:.98rem;line-height:1.8}
.brand-home+.examples{padding-top:14px;gap:10px}.brand-home+.examples .examples-heading h2{font-size:1rem}.brand-home+.examples .examples-heading .text-button{font-size:.85rem}.example-grid article.question-card{padding:0;overflow:hidden;border-radius:19px}.question-open{display:flex;align-items:center;gap:12px;padding:20px 17px;min-height:110px;width:100%;background:#fff;border:0;text-align:left}.question-mark{display:grid;place-items:center;flex:0 0 32px;height:37px;align-self:flex-start;margin-top:4px;font-size:26px;font-weight:600;color:#816a2b;background:#fff3c4;border-radius:12px 12px 12px 3px}.question-copy{flex:1;min-width:0}.question-category{display:block;font-size:.8rem;color:#74786c;margin-bottom:5px}.question-copy strong{font-size:.95rem;line-height:1.65;font-weight:650}.question-arrow{font-size:26px;color:#798071}.question-open:focus-visible{outline-offset:-4px}
.shelf-page .page-title{gap:7px;margin-bottom:18px}.shelf-page .page-title h1{font-size:1.37rem;line-height:1.5}.shelf-page .page-title p{margin:0;font-size:.9rem}.shelf-page .memory-directory{padding:0;gap:6px;border-radius:0;border-bottom:1px solid var(--line);background:transparent;margin:0 0 20px}.shelf-page .memory-entry{border:0;border-bottom:3px solid transparent;border-radius:0;min-height:53px;font-size:.95rem;background:transparent}.shelf-page .memory-entry.active{border-bottom-color:var(--green)}
.shelf-page .continue-card{background:#f6f0df;border:1px solid #eae2cc;padding:20px 17px 17px;border-radius:23px}.shelf-page .continue-top{gap:23px;margin-bottom:18px;min-height:155px}.shelf-page .continue-top h2{font-size:1.1rem;line-height:1.5}.shelf-page .recent-label{font-size:.85rem;color:#817447;margin:0 0 7px}.shelf-page .book-meta{font-size:.85rem;color:#716e5d;margin:10px 0 0}.shelf-page .continue-card .primary-button{justify-content:space-between;font-size:1rem}.shelf-mic{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;flex:none}
.paper-book{position:relative;display:block;flex:0 0 102px;min-height:145px;margin-left:5px;padding:12px 12px 26px 17px;border-radius:3px 7px 7px 3px;border-left:5px solid #d7b350;background:linear-gradient(100deg,#e9c86d,#f1d786 12%,#f6df9c);color:#615027;transform:rotate(-7deg);box-shadow:3px 2px 0 #e4d5b4,5px 4px 0 #fcf8ec,6px 6px 0 #dfd4bb;pointer-events:none}.paper-book strong{display:block;font-size:17px;line-height:1.6;margin-top:10px;font-weight:550}.paper-book small,.paper-book i{font-size:7px;font-style:normal;letter-spacing:.03em}.paper-book i{position:absolute;bottom:11px;left:17px}
.shelf-page .shelf-heading{margin:22px 0 12px;gap:8px}.shelf-heading h2{font-size:1.05rem}.shelf-new{font-size:.85rem;min-height:46px;padding:8px 10px;border:1px solid #e3d4a0;border-radius:12px;background:#fff9e7;color:#6b5623}.shelf-page #book-grid{margin-top:0}.shelf-page .book-card{gap:19px;padding:18px;border-radius:19px}.shelf-page .book-cover{display:block;width:64px;min-width:64px;flex:0 0 64px;min-height:88px;padding:9px;border-radius:3px 7px 7px 3px;font-size:14px;line-height:1.5;white-space:normal;box-shadow:3px 2px 0 #eee9dc}.shelf-page .cover-sage{background:#aeb9a5;border:0;border-left:4px solid #748275;color:#303e32}.shelf-page .cover-clay{background:#e4cbb4;border:0;border-left:4px solid #ba9c7f;color:#5f4637}.shelf-page .book-card strong{font-size:1rem}.shelf-page .book-card small,.shelf-page .book-open{font-size:.85rem}.shelf-page .book-open{margin-top:2px}.shelf-page .empty-state{margin-top:10px}
.brand-auth{padding-top:22px}.welcome-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:108px}.brand-auth .auth-copy h1{font-size:1.55rem;line-height:1.5;white-space:nowrap}.brand-auth .auth-copy h1 br{display:initial}.welcome-art{width:157px;height:auto;min-width:0;display:block;mix-blend-mode:multiply;pointer-events:none}.brand-auth .auth-copy>p:last-child{font-size:.85rem;line-height:1.8;margin:13px 0 0}.brand-auth .auth-card{margin-top:26px}.brand-auth .auth-card label{font-size:.94rem;margin:18px 0 8px}.brand-auth .auth-card>label:first-of-type{margin-top:0}.phone-number-field{display:flex;align-items:center;border:1px solid #d2d5ca;border-radius:15px;background:#fff;overflow:hidden}.phone-number-field>span{padding:0 15px;border-right:1px solid var(--line);color:#74796f;font-size:.9rem}.auth-card .phone-number-field input{border:0;background:transparent;padding:15px 13px;min-width:0}.brand-auth .auth-card input{font-size:.95rem;border-color:#d2d5ca;min-height:58px;border-radius:15px}.brand-auth .otp button{border-radius:15px;background:#fff2bf;font-size:.85rem;max-width:none;min-height:58px}.brand-auth .login-agreement{font-size:.8rem;line-height:1.65;margin:16px 0 18px}.brand-auth .login-agreement label{font-size:inherit;margin:0}.brand-auth .login-agreement input[type=checkbox]{width:22px;height:22px;min-height:22px;flex-basis:22px;margin-top:10px}.brand-auth .login-agreement button{font-size:inherit}.brand-auth .auth-card .wechat-entry{margin-top:20px}.brand-auth .auth-card>.text-button{font-size:.9rem}.brand-login>.topbar{max-width:520px}.brand-login .top-actions{flex-shrink:0}
@media(max-width:359px){.brand-home,.shelf-page,.brand-auth{padding-inline:18px}.paper-art{display:none}.brand-home h1{font-size:1.4rem}.brand-home .input-card{padding:16px}.shelf-page .page-title h1{font-size:1.2rem}.shelf-page .continue-card{padding:16px 13px}.shelf-page .continue-top{gap:17px}.paper-book{flex-basis:88px;padding-inline:12px;min-height:134px}.paper-book strong{font-size:15px}.shelf-page .continue-top h2{font-size:1rem}.shelf-page .book-meta{font-size:.8rem}.shelf-page .book-card{gap:15px;padding:15px}.brand-auth .welcome-art{width:118px}.brand-auth .auth-copy h1{font-size:1.42rem}.brand-home+.examples .examples-heading{gap:0}.question-open{gap:9px;padding:17px 13px}}
:root[data-font=xlarge] .paper-art{display:none}:root[data-font=xlarge] .brand-auth .welcome-art{width:110px}:root[data-font=xlarge] .shelf-page .continue-top{flex-wrap:wrap}:root[data-font=xlarge] .shelf-page .continue-top>div{flex-basis:145px}:root[data-font=xlarge] .brand-auth .otp{grid-template-columns:minmax(0,1fr) auto}
@media(max-width:359px){:root[data-font=xlarge] .brand-auth .welcome-art{display:none}:root[data-font=xlarge] .brand-auth .otp{grid-template-columns:minmax(0,1fr)}:root[data-font=xlarge] .brand-auth .phone-number-field>span{padding-inline:10px}}

/* Approved 20 October spacing; keep the existing task and account behaviours. */
.brand-surface>.topbar{padding:16px 24px;min-height:80px}.header-profile{width:48px;height:48px}
.brand-home,.shelf-page,.brand-auth{padding-inline:24px;padding-top:30px}
.brand-home h1{font-size:1.5rem;line-height:1.6}.brand-home .lead{margin-top:14px}
.paper-art{width:82px;transform:scale(.84);transform-origin:right center}
.brand-home .input-card{margin-top:28px;padding:22px;border-radius:22px}
.brand-home .input-fields textarea{min-height:120px;height:6em;font-size:1rem}
.brand-home .composer-tools{margin-top:18px;padding:6px 0 16px}.brand-home .composer-tools .text-button{min-height:52px;gap:10px}
.brand-home .primary-button,.brand-auth .primary-button,.shelf-page .primary-button{min-height:60px;padding:15px 18px}
.brand-home .upload-help{margin-top:12px}.brand-home .upload-help summary{min-height:48px;padding:10px 0}
.brand-home+.examples{padding:32px 24px 28px;gap:16px}.brand-home+.examples .examples-heading h2{font-size:1.05rem}.brand-home+.examples .examples-heading .text-button{font-size:.8rem}
.brand-home+.examples .example-grid{gap:16px}.question-open{padding:22px 20px;gap:16px}.question-copy strong{font-size:1rem;line-height:1.75}.question-category{margin-bottom:8px}
.brand-auth .welcome-heading{gap:16px;min-height:110px}.brand-auth .welcome-art{width:126px}
.brand-auth .auth-copy h1{font-size:1.5rem;line-height:1.6}.brand-auth .auth-copy>p:last-child{font-size:.9rem;line-height:1.85;margin-top:20px}.brand-auth .auth-card{margin-top:32px}
.brand-auth .login-agreement{margin:0 0 20px;line-height:1.8;gap:12px}.brand-auth .login-agreement input[type=checkbox]{margin-top:14px;width:24px;height:24px;min-height:24px;flex-basis:24px}
.brand-auth .login-agreement>div{min-width:0}.brand-auth .login-agreement label{padding:7px 0 0;line-height:1.8}
.brand-auth .policy-links{display:flex;align-items:center;flex-wrap:wrap;gap:0 3px}.brand-auth .policy-links button{min-height:48px;white-space:nowrap}
.brand-auth .auth-card .wechat-entry{margin:0;font-size:1rem}
.brand-auth .login-divider{display:flex;align-items:center;gap:16px;color:#737467;font-size:.8rem;margin:36px 0 20px;text-align:center}
.login-divider::before,.login-divider::after{content:'';height:1px;background:var(--line);flex:1}
.phone-alternative{margin:0}.phone-alternative>summary{list-style:none;text-align:center;border:1px solid #cdd0c4;border-radius:15px;background:#fff;font-size:.9rem;font-weight:600;min-height:56px;padding:12px 16px}
.phone-alternative>summary::-webkit-details-marker{display:none}.phone-alternative>summary::after{content:'⌄';margin-left:12px;color:#68705e}.phone-alternative[open]>summary::after{content:'⌃'}
.alternative-fields{padding:8px 0 20px}.brand-auth .alternative-fields>label,.brand-auth .alternative-fields .otp-field{margin-top:24px}.brand-auth .alternative-fields .primary-button{margin-top:24px}
.brand-auth .auth-card>.text-button{margin-top:16px;min-height:52px;font-size:.85rem}
#phone-form>.primary-button{margin-top:24px}
.shelf-page .page-title{gap:14px;margin-bottom:28px}.shelf-page .page-title h1{font-size:1.4rem;line-height:1.6}.shelf-page .page-title p{line-height:1.8}
.shelf-page .memory-directory{margin-bottom:28px;gap:16px}.shelf-page .memory-entry{min-height:56px}
.shelf-page .continue-card{padding:24px;border-radius:22px}.shelf-page .continue-top{gap:24px;margin-bottom:26px;min-height:140px}.shelf-page .continue-top h2{font-size:1.15rem;line-height:1.6}
.shelf-page .recent-label{font-size:.8rem;margin-bottom:12px;color:#74633d}.shelf-page .book-meta{font-size:.8rem;line-height:1.8;margin:12px 0 0;color:#666b5e}
.shelf-page .paper-book{flex-basis:92px;min-height:118px;margin-left:3px;padding:18px 12px;transform:rotate(-5deg)}.shelf-page .paper-book strong{font-size:18px;margin-top:8px;line-height:1.75}
.shelf-page .shelf-heading{margin:32px 0 20px;gap:12px}.shelf-heading h2{font-size:1.1rem}.shelf-new{min-height:52px;padding:10px 14px}
.shelf-page .book-grid{gap:18px}.shelf-page .book-card{padding:22px 20px;gap:22px;border-radius:18px}.shelf-page .book-card strong{line-height:1.65}.shelf-page .book-card small{font-size:.8rem;line-height:1.75}.shelf-page .book-open{margin-top:10px}
.brand-surface .tabs{padding-top:10px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}.brand-surface .tabs button{min-height:66px;gap:5px}
@media(max-width:374px){
  .brand-surface>.topbar{padding-inline:20px}.brand-home,.shelf-page,.brand-auth,.brand-home+.examples{padding-inline:20px}
  .brand-home .input-card{padding:18px}.paper-art,.brand-auth .welcome-art{display:none}.brand-auth .welcome-heading{min-height:0}
  .shelf-page .continue-card{padding:20px}.shelf-page .continue-top{gap:22px;flex-wrap:wrap}.shelf-page .continue-top>div{flex-basis:140px}
  .shelf-page .shelf-heading{align-items:flex-start}.shelf-page .book-card{gap:18px;padding:20px 16px}.brand-auth .otp{grid-template-columns:1fr}
}
:root[data-font=xlarge] .brand-auth .welcome-art{display:none}:root[data-font=xlarge] .brand-auth .otp{grid-template-columns:1fr}
:root[data-font=xlarge] .shelf-page .continue-top{flex-wrap:wrap}:root[data-font=xlarge] .shelf-page .continue-top>div{flex-basis:160px}

#merge-accounts .retention-choice{min-height:52px;padding:10px 0;cursor:pointer}

/* Keep saved narration reachable while a new answer is being edited. */
.memoir-page>.interview-history{margin:0 0 24px;border:0}
.interview-history>summary{display:flex;align-items:center;gap:10px;list-style:none;min-height:56px;padding:14px 16px;border:1px solid #b79518;border-radius:15px;background:#fff8dc;color:var(--ink);font-size:1rem}
.interview-history>summary::-webkit-details-marker{display:none}
.interview-history>summary::after{content:'展开 ⌄';margin-left:auto;white-space:nowrap;font-size:.9rem}
.interview-history[open]>summary::after{content:'收起 ⌃'}
.history-count{color:var(--muted);font-size:.9rem;white-space:nowrap}
.interview-history>.messages{max-height:none;overflow:visible;padding:8px 0}
.interview-history .message{overflow-wrap:anywhere}
.book-page>.book-continue{margin-bottom:12px}
.is-recording>.interview-history{display:none!important}
@media(max-width:359px){.interview-history>summary{flex-wrap:wrap;gap:6px 10px}.interview-history>summary>span:first-child{flex-basis:100%}}
