:root{color-scheme:light;--paper:#fff;--soft:#f5f5f3;--ink:#20201e;--muted:#767670;--line:#e8e8e3;--inverse:#fff;--dock:84px}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{background:#ededea;scroll-padding-top:90px;scroll-padding-bottom:110px}
body{margin:0;color:var(--ink);font:16px/1.65 -apple-system,BlinkMacSystemFont,'PingFang SC','Helvetica Neue',sans-serif;-webkit-text-size-adjust:100%}
button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:12px 16px;min-height:48px;font-weight:500}button:active{transform:translateY(1px);background:var(--soft)}button:disabled{cursor:wait;opacity:.45}button:focus-visible,a:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.app{width:100%;max-width:480px;min-height:100vh;min-height:100dvh;margin:0 auto;background:var(--paper);position:relative}
header{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:16px 24px;padding-top:calc(16px + env(safe-area-inset-top));background:#fffffff5;backdrop-filter:blur(16px)}
.brand{font-family:'Iowan Old Style','Baskerville','Times New Roman',serif;font-size:34px;line-height:1.2;font-weight:500;letter-spacing:-1.4px}.avatar{display:grid;place-items:center;border-radius:50%;width:44px;min-height:44px;padding:0;background:var(--soft);border:0;font-size:15px}
main{padding:26px 24px calc(var(--dock) + env(safe-area-inset-bottom) + 28px);min-width:0}h1,h2,h3,p{margin:0}h1{font-size:28px;font-weight:600;line-height:1.35;letter-spacing:-.8px;margin-bottom:28px}h2{font-size:19px;font-weight:600}h3{font-size:17px;font-weight:600}p,h2,h3,li{overflow-wrap:anywhere}label{display:block;margin:20px 0;font-weight:500}
input,textarea,select{display:block;width:100%;min-width:0;max-width:100%;margin-top:10px;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:var(--soft);font-size:16px;line-height:1.7;font-weight:400;outline-offset:3px}
select{min-height:56px;text-overflow:ellipsis;padding-right:36px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b5b55' stroke-width='1.7'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center}
textarea{min-height:240px;min-height:clamp(220px,30svh,340px);resize:vertical;line-height:1.85;background:var(--paper)}textarea::placeholder{color:#a0a09a}.editor{min-height:360px;min-height:55svh;font-size:17px;line-height:1.9}
.primary{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--ink);color:var(--inverse);border-color:var(--ink);width:100%;min-height:56px;text-align:center;border-radius:16px;font-size:17px}.primary:active{background:#383834}.primary svg{width:20px;height:20px}.quiet{border:0;background:transparent;color:var(--muted);padding:10px 0}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.row>*{min-width:0}.editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.section{margin-top:30px}.box{background:var(--soft);padding:20px;border-radius:20px;margin:22px 0}.meta{font-size:14px;color:var(--muted);font-weight:400}.entry{display:block;width:100%;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:20px 0;text-align:left}.entry p{margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:17px;font-weight:500}.tabs{display:flex;gap:4px;padding:4px;background:var(--soft);border-radius:14px;margin:24px 0}.tabs button{flex:1;min-width:0;text-align:center;padding:9px 4px;border:0;border-radius:10px;background:transparent;font-size:15px;font-weight:400}.tabs button[aria-pressed=true]{background:var(--paper);box-shadow:0 1px 4px #0000000a;font-weight:500}
nav{position:fixed;z-index:20;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;display:grid;grid-template-columns:repeat(3,1fr);padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fffffff5;backdrop-filter:blur(16px)}nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;border-radius:14px;text-align:center;padding:7px 4px;min-height:62px;background:transparent;color:var(--muted);font-size:14px;font-weight:400}nav svg{width:23px;height:23px;stroke-width:1.65}nav button[aria-current=page]{color:var(--ink);font-weight:600}nav button[aria-current=page] .nav-icon{background:var(--soft)}.nav-icon{display:grid;place-items:center;width:48px;height:28px;border-radius:12px}
.check{display:flex;align-items:center;gap:12px;min-height:52px;margin:4px 0;font-weight:400}.check input{width:22px;height:22px;margin:0;accent-color:var(--ink)}.box .primary{margin-top:16px}details{margin:20px 0}summary{cursor:pointer;padding:12px 0;min-height:48px;color:var(--muted);font-size:15px}details li,details p{font-size:14px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}#notice:not(:empty){padding:12px 24px;background:var(--soft);font-size:15px;overflow-wrap:anywhere}dialog{color:var(--ink);background:var(--paper);border:0;border-radius:24px 24px 0 0;width:min(480px,100vw);max-width:100vw;max-height:85dvh;margin:auto auto 0;padding:24px;padding-bottom:calc(24px + env(safe-area-inset-bottom));overflow:auto}dialog::backdrop{background:#0005}dialog pre{font-size:14px}#close-dialog{float:right;margin-bottom:16px}dialog h2{clear:both}.empty{padding:24px 0;color:var(--muted);font-size:16px}.split{display:flex;flex-direction:column;gap:36px}.split>*{min-width:0}.split>div>label:first-child{margin-top:0}.error{color:#a13636}.version{font-size:14px}a{color:inherit}.keyboard-open nav{visibility:hidden;pointer-events:none}
@media(min-width:600px){.app{box-shadow:0 0 0 1px var(--line),0 12px 60px #00000008}}
@media(max-width:360px){header{padding-left:20px;padding-right:20px}main{padding-left:20px;padding-right:20px}.tabs button{font-size:14px}.brand{font-size:31px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Mobile V1: quiet cards, a compact brand and a searchable author sheet. */
:root{--soft:#f5f5f3}
.app{background:var(--soft)}header{background:#f5f5f3f5;padding:18px 22px;padding-top:calc(18px + env(safe-area-inset-top))}.brand{font-size:22px;letter-spacing:-.6px}.avatar{width:36px;min-height:36px;background:#eaeae7;font-size:13px}.avatar svg{width:18px;height:18px;stroke-width:1.6}
main{padding:20px 22px calc(var(--dock) + env(safe-area-inset-bottom) + 28px)}h1{font-size:25px;font-weight:500;margin-bottom:24px}h2{font-size:17px;font-weight:500}.compose-card{background:var(--paper);border-radius:20px;padding:18px;margin-bottom:18px}.compose-card label{margin:0;font-weight:400}.compose-card textarea{border:0;border-radius:0;background:transparent;margin:20px 0 14px;padding:0;min-height:190px}.compose-card .primary{min-height:48px;font-size:16px;border-radius:13px}.compose-card .row{gap:8px}.compose-card select{margin-top:14px;background:var(--soft);border:0;font-size:16px}
.writer-trigger{display:flex;align-items:center;gap:10px;border:0;border-radius:22px;background:var(--soft);padding:9px 13px;min-height:44px;font-size:15px;font-weight:500;max-width:85%}.writer-trigger span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.writer-trigger svg{width:17px;height:17px;flex-shrink:0;stroke-width:1.7}
.entry-types{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.entry-types button{background:white;border:0;border-radius:13px;font-size:14px;font-weight:400;padding:11px 4px}.entry-types button[aria-pressed=true]{box-shadow:inset 0 0 0 1px #bcbcb5;color:var(--ink)}.section{margin-top:28px;margin-bottom:16px}.record-list{display:flex;flex-direction:column;gap:12px}.entry{border:0;background:white;border-radius:16px;padding:17px 18px}.entry p{font-size:16px;font-weight:500;margin-bottom:12px}.entry .meta{font-size:13px}.working-dot{width:7px;height:7px;display:inline-block;background:#a2a29a;border-radius:50%}.failure-dot{font-size:13px;color:#a34e40}.document-title{font-size:24px;line-height:1.55;margin-bottom:12px}.author-label{font-size:14px;color:var(--muted);margin-bottom:24px}.editor{background:white;border:0;border-radius:18px;min-height:56svh;margin:0 0 16px;line-height:1.9}.editor-actions button{border:0;background:white;font-size:15px;font-weight:400}.more{margin:18px 0}.more summary{font-size:13px;padding:8px 0;color:var(--muted)}.more .quiet{display:block;font-size:14px;margin:2px 0;min-height:44px}.more .entry{margin-bottom:8px}.processing{margin:20px 0}.failure{background:#fff8f5;border-radius:14px;padding:14px 16px;margin:16px 0;font-size:14px}.failure p{font-size:14px;color:#954e42}.failure .quiet{font-size:14px;margin-right:20px;color:#954e42;padding-bottom:0}.check{justify-content:space-between;margin:10px 0}.result-tabs{display:flex;gap:8px;overflow-x:auto;margin:20px 0}.result-tabs button{font-size:13px;white-space:nowrap;border:0;padding:9px 12px;background:#e9e9e5;border-radius:10px;min-height:42px}.result-tabs button.selected{background:var(--ink);color:white}
.profile-card{padding:30px;background:white;border-radius:20px;display:flex;flex-direction:column;align-items:center;gap:16px;margin:24px 0}.profile-avatar{width:66px;height:66px;border-radius:50%;background:#eaeae6;display:grid;place-items:center;font-family:Georgia,serif;font-size:28px}.menu-card{background:white;border-radius:18px;padding:0 18px}.menu-item{display:flex;align-items:center;justify-content:space-between;width:100%;padding:18px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;font-size:16px;font-weight:400}.menu-item:last-child{border:0}.menu-item span{color:var(--muted)}#notice:not(:empty){font-size:14px;color:#954e42;background:#fff8f5;margin:0 22px;border-radius:12px;padding:12px 15px}
#writer-picker{max-height:78dvh;padding:12px 22px calc(24px + env(safe-area-inset-bottom));background:white;border-radius:26px 26px 0 0}.sheet-handle{width:36px;height:4px;background:#d8d8d3;border-radius:3px;margin:0 auto 16px}#writer-search{border:0;background:var(--soft);border-radius:13px;margin:16px 0;padding:12px 14px}#writer-list{display:flex;flex-direction:column;gap:7px}.writer-option{display:flex;align-items:center;gap:14px;border:1px solid transparent;border-radius:15px;padding:13px;min-height:62px;text-align:left;font-size:16px;font-weight:400}.writer-option.selected{background:var(--soft);border-color:var(--line)}.writer-initial{display:grid;place-items:center;flex-shrink:0;border-radius:50%;width:34px;height:34px;background:#ecece8;font-family:Georgia,'PingFang SC',serif;font-size:16px}.writer-check{margin-left:auto;width:20px;height:20px}.writer-check svg{width:20px;height:20px;stroke-width:1.8}.login-panel{padding-top:45px}.login-panel label{font-size:14px;color:var(--muted)}.login-panel input{background:white;border:0;border-radius:14px;min-height:54px}.login-panel .primary{margin-top:26px}nav:empty,nav[hidden]{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Confirmed mobile layout, applied to the real workbench (2026-11-09). */
:root{--soft:#f6f6f5;--ink:#242423;--muted:#797975;--line:#eaeae7}
html{background:#eeeeeb}header{padding:18px 20px 16px;background:#ffffffed}main{padding:22px 20px calc(var(--dock) + env(safe-area-inset-bottom) + 26px)}
h1{font-size:25px;line-height:1.4;font-weight:500;letter-spacing:-.6px;margin-bottom:22px}h2{line-height:1.4}button svg{width:19px;height:19px;flex:none;stroke-width:1.65}
.compose-card{padding:18px;border-radius:20px;margin-bottom:16px}.compose-card textarea{min-height:150px;height:174px;margin:18px 0 16px;resize:vertical;font-size:16px;line-height:1.8}.compose-card .primary{min-height:48px;font-size:15px;font-weight:500}.writer-trigger{background:#f1f1ee;gap:9px;padding:9px 13px;max-width:100%;font-size:15px}
.entry-types{gap:10px}.entry-types button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:13px 5px;min-height:76px;border-radius:15px;font-size:14px}.entry-types button svg{width:22px;height:22px}.entry-types button[aria-pressed=true]{box-shadow:inset 0 0 0 1px #c9c9c2}
.section{margin-top:28px;margin-bottom:14px}.record-list{gap:12px}.entry{padding:17px 18px;border-radius:17px}.entry p{font-size:16px;line-height:1.65;font-weight:500;margin-bottom:12px}.entry .meta{font-size:14px}.entry .row>svg{width:16px;height:16px;color:#aaa}.sort-label{display:inline-flex;align-items:center;gap:4px;font-size:14px;color:var(--muted);font-weight:400;white-space:nowrap;background:transparent;border:0;padding:0;min-height:44px}.sort-label svg{width:16px;height:16px}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.page-heading h1{margin:0}.new-note{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#fff}.new-note svg{width:21px;height:21px}
.search-field{display:flex;align-items:center;gap:10px;padding:0 15px;margin:0;background:#fff;border-radius:14px;min-height:52px}.search-field>svg{width:20px;height:20px;color:#92928c;flex:none}.search-field input{padding:12px 0;border:0;border-radius:0;background:transparent;margin:0;font-size:16px;min-width:0}.search-field:focus-within{outline:1px solid #b9b9b2;outline-offset:2px}
.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0}.list-filter{display:flex;align-items:center;gap:7px;padding:8px 11px;min-height:40px;max-width:75%;border:1px solid var(--line);border-radius:24px;background:#fff;font-size:14px;font-weight:400}.list-filter span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-filter svg{width:16px;height:16px}.list-toolbar>.sort-label{font-size:13px}
.document-title{font-size:24px;line-height:1.6;font-weight:500;margin-top:8px}.editor{font-size:16px;padding:18px;line-height:1.95;min-height:38svh;border-radius:18px}.author-label{margin-bottom:20px}.editor-actions{gap:10px}.editor-actions button{min-height:46px;border:1px solid var(--line);border-radius:13px}.editor-actions+.more{margin:8px 0}.more summary{font-size:14px}.processing{justify-content:flex-end}
.check{padding:14px 0;border-bottom:1px solid var(--line);margin:0;min-height:64px}.check:last-of-type{border-bottom:0;margin-bottom:16px}.format-label{display:flex;align-items:center;gap:12px}.format-label svg{width:23px;height:23px;stroke-width:1.5}.check input{width:21px;height:21px;flex:none}.compose-card>h2{margin-bottom:6px}
#writer-picker{padding:12px 20px calc(24px + env(safe-area-inset-bottom));border-radius:26px 26px 0 0}#writer-picker h2{font-size:20px;font-weight:500}#writer-search{padding:12px 15px;margin:12px 0 18px;font-size:16px;min-height:48px}.writer-option{padding:13px;min-height:66px;gap:13px}.writer-initial{width:38px;height:38px;background:#f1f1ed}.writer-initial svg{width:19px;height:19px}.writer-option.selected{background:#f6f6f3;border-color:#deded8}.writer-option.selected .writer-check{background:var(--ink);color:white;border-radius:50%;display:grid;place-items:center;width:22px;height:22px}.writer-check svg{width:15px;height:15px}
nav{background:#fffffff5;padding-top:8px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}nav button{min-height:58px;font-size:13px;font-weight:400}nav button[aria-current=page]{font-weight:500}nav button[aria-current=page] .nav-icon{background:#edede8}.nav-icon{height:29px;width:48px}
@media(min-width:600px){.app,nav{max-width:420px}dialog{width:420px}}@media(max-width:360px){main{padding-left:16px;padding-right:16px}header{padding-left:18px;padding-right:18px}.brand{font-size:22px}.entry-types{gap:8px}.compose-card{padding:16px}.entry{padding:16px}.list-toolbar{gap:8px}.list-filter{max-width:72%}.document-title{font-size:22px}}

.reuse-button{margin-top:14px;font-size:16px;min-height:48px;border-radius:13px}

/* Small intake, bounded recents and visible output results. */
.compose-card textarea#idea{min-height:100px;height:120px;margin:16px 0;resize:vertical}
.recent-records{max-height:min(32svh,300px);overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#d6d6d0 transparent;padding-right:3px;border-radius:17px}.recent-records>.entry{flex-shrink:0}.recent-records:focus-visible{outline:1px solid #aaa;outline-offset:4px}
.creation-tabs{display:flex;gap:24px;margin:0 0 18px;border-bottom:1px solid #e5e5df}.creation-tabs button{background:transparent;border:0;border-radius:0;min-height:44px;padding:0 0 12px;font-size:15px;color:var(--muted);position:relative}.creation-tabs button[aria-pressed=true]{color:var(--ink);font-weight:500}.creation-tabs button[aria-pressed=true]:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;border-radius:2px;background:var(--ink)}
.output-source{margin-bottom:20px}.output-source h2{font-size:15px;margin:0 0 12px;color:var(--muted);font-weight:400}.topic-trigger{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;padding:18px;border:0;border-radius:18px;background:white;text-align:left}.source-text{display:flex;flex-direction:column;gap:10px;min-width:0}.source-text strong{font-size:17px;font-weight:500;line-height:1.65;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.source-text>span{font-size:14px;color:var(--muted)}.topic-trigger>svg{width:18px;height:18px;flex:none}
.output-options h2{font-size:17px;margin-bottom:18px}.format-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.format-grid .format-choice{display:flex;flex-direction:column;gap:18px;border:1px solid var(--line);border-radius:15px;background:#fafaf8;padding:15px;margin:0;font-size:16px;font-weight:400;cursor:pointer}.format-choice.selected{background:#f0f0eb;border-color:#b7b7af}.format-choice-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.format-choice-top svg{width:24px;height:24px;stroke-width:1.5}.format-choice input{width:19px;height:19px;margin:0;accent-color:var(--ink)}
.output-kind{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:400}.output-kind svg{width:20px;height:20px;stroke-width:1.5}.result-card{display:flex;flex-direction:column;gap:12px;width:100%;padding:18px;border:0;border-radius:17px;background:white;text-align:left}.result-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}.result-card-top>svg{width:16px;height:16px;color:#999}.result-card strong{font-size:16px;font-weight:500;line-height:1.65;overflow-wrap:anywhere}.result-excerpt{font-size:14px;font-weight:400;color:var(--muted);line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.result-pending{background:#fff;padding:18px;border-radius:17px;display:flex;align-items:center;justify-content:space-between;gap:12px}.result-pending>span:last-child{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--muted)}.loading-dot{display:block;width:6px;height:6px;border-radius:50%;background:#999}.empty-output{padding:30px 18px;background:white;border-radius:18px;text-align:center}.empty-output>svg{width:32px;height:32px;color:#999;margin-bottom:14px}.empty-output p{margin-bottom:24px}.empty-output .primary{min-height:46px;font-size:15px}
#topic-picker{padding:12px 20px calc(24px + env(safe-area-inset-bottom));border-radius:26px 26px 0 0;max-height:80dvh}#topic-heading{font-size:20px}#topic-search{background:var(--soft);border:0;margin:12px 0 18px;min-height:48px;padding:12px 15px}#topic-list{display:flex;flex-direction:column;gap:8px}.topic-option{display:flex;align-items:center;gap:16px;text-align:left;border:1px solid transparent;border-radius:15px;padding:16px;flex-shrink:0}.topic-option.selected{border-color:#deded8;background:#f6f6f3}.topic-option-text{display:flex;flex-direction:column;gap:8px;flex:1;min-width:0}.topic-option-text strong{font-size:16px;font-weight:500;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.topic-option-text>span{font-size:13px;color:var(--muted)}#output-results{scroll-margin-top:84px}#output-results .failure{margin:0}

.editor-actions.revision-actions{grid-template-columns:1fr 1fr 1.2fr;gap:8px}.revision-actions button{padding:10px 5px;font-size:14px}.revision-actions button[data-action=rewrite]{background:#e9e9e3;border-color:#e2e2da}.revision-progress{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:8px 4px;color:var(--muted);font-size:14px}.revision-result{margin-top:14px;border:1px solid #deded6;background:#fffffc}.revision-origin{display:flex;gap:18px;flex-wrap:wrap;align-items:flex-start;margin-top:10px}.revision-origin .quiet,.revision-origin summary{font-size:14px}.revision-origin details{margin:0;flex:1}.revision-origin p{font-size:14px;white-space:pre-wrap}.revision-origin summary{padding:10px 0}
#rewrite-dialog{padding:12px 20px calc(24px + env(safe-area-inset-bottom));border-radius:26px 26px 0 0;max-height:85dvh}#rewrite-heading{font-size:20px}#rewrite-source{font-size:14px;color:var(--muted);margin:14px 0 20px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}#rewrite-form label{font-size:16px;font-weight:500;margin:0 0 12px}#rewrite-request{background:var(--soft);border:0;min-height:148px;height:148px;margin:0 0 18px;resize:vertical;padding:15px;font-size:16px}#rewrite-form .primary{font-size:16px;min-height:48px}#rewrite-error{color:#954e42;font-size:14px;margin:0}#rewrite-error:not(:empty){margin:0 0 14px}

.image-entry{display:flex;align-items:center;gap:12px;width:100%;padding:16px 18px;margin:0 0 22px;background:#fff;border:1px solid var(--line);border-radius:17px;text-align:left;font-size:16px}.image-entry>svg{width:22px;height:22px;stroke-width:1.6}.image-entry>svg:last-child{width:16px;height:16px;color:var(--muted);margin-left:auto}.image-heading{margin:8px 0 20px}.image-heading h1{margin:0}.image-heading .quiet{font-size:14px}#image-tool{display:block;border:0;width:100%;min-height:550px;height:1100px;background:var(--soft)}.image-source-kind{display:block;font-size:13px;color:var(--muted);margin-top:7px}

/* One topic, one consistent multi-select output list. */
.output-format-list{display:flex;flex-direction:column;gap:10px;margin:0 0 20px}.output-options>.output-format-list+.primary{min-height:50px;font-size:16px;border-radius:14px}.output-format-row{display:flex;align-items:center;gap:14px;width:100%;padding:16px 18px;min-height:68px;margin:0;background:#fff;border:1px solid var(--line);border-radius:17px;font-size:16px;font-weight:400;cursor:pointer}.output-format-row.selected{border-color:#aaa99f;background:#fff}.output-format-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#f1f1ed;flex:none}.output-format-icon svg{width:21px;height:21px;stroke-width:1.5}.output-format-row>input{width:20px;height:20px;margin:0 0 0 auto;accent-color:var(--ink);flex:none}.output-format-row:focus-within{outline:2px solid #aaa;outline-offset:2px}.output-options{margin-bottom:24px}.output-options>h2{font-size:15px;color:var(--muted);font-weight:400;margin-bottom:12px}

/* UI8 — approved dark editorial direction; titles are concise selectors. */
:root{color-scheme:dark;--paper:#22211f;--soft:#292824;--ink:#efeee8;--muted:#b4b1a6;--line:#45423b;--inverse:#22211f;--dock:76px}
html{background:#181817}body{font-weight:400}.app{background:var(--paper)}
header{margin:0 22px;padding:24px 0 20px;padding-top:calc(24px + env(safe-area-inset-top));background:#22211ff5;border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}
.brand{font-family:'Baskerville','Iowan Old Style','Times New Roman',serif;font-size:27px;font-weight:400;letter-spacing:-.8px}.avatar{width:38px;min-height:38px;background:transparent;border:1px solid var(--line);font:17px Georgia,serif}
main{padding:25px 22px calc(var(--dock) + env(safe-area-inset-bottom) + 26px)}h1{font-family:'Songti SC','STSong','Noto Serif CJK SC',serif;font-size:32px;font-weight:400;line-height:1.4;margin:0 0 24px;letter-spacing:-.6px}h2{font-family:'Songti SC','STSong',serif;font-size:21px;font-weight:400}button{border-radius:8px;font-weight:400}button:active{background:#35332e}input,textarea,select{background:var(--soft);border-color:var(--line);border-radius:8px}textarea::placeholder,input::placeholder{color:#aaa79d}input:focus-visible,textarea:focus-visible{outline:1px solid #b7b2a4;outline-offset:3px}
.primary,.compose-card .primary,.reuse-button,.output-options>.output-format-list+.primary{background:var(--ink);color:var(--inverse);border-color:var(--ink);border-radius:6px;min-height:50px;font-size:16px;font-weight:500}.primary:active{background:#d9d6cc}
.compose-card{background:transparent;padding:0 0 24px;border:0;border-bottom:1px solid var(--line);border-radius:0;margin-bottom:22px}.compose-card .row{gap:10px}.compose-card textarea#idea{height:132px;min-height:100px;margin:18px 0 22px;font-size:16px;line-height:1.9;resize:vertical}.writer-trigger{padding:0;gap:10px;background:transparent;border:0;font-size:16px;max-width:100%}.writer-trigger .writer-initial{width:30px;height:30px;font-size:17px;background:#37352f}.writer-trigger>span:nth-child(2){min-width:0}.writer-trigger svg{width:16px;height:16px}
.section{margin-top:23px;margin-bottom:5px}.sort-label{font-size:13px}.record-list{gap:0}.entry{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:16px 0;min-width:0}.topic-record{display:flex;align-items:flex-start;gap:12px;width:100%;text-align:left}.record-index{font:italic 16px/1.8 Georgia,serif;color:var(--muted);width:24px;flex:none}.record-copy{flex:1;min-width:0}.entry p{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:unset;font-size:16px;font-weight:400;line-height:1.7;margin:0 0 7px}.record-copy>.meta{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;color:var(--muted)}.topic-record>svg{width:16px;height:16px;color:var(--muted);margin-top:5px;flex:none}.topic-record>.failure-dot{font-size:12px;flex:none;margin-top:5px}.recent-records{border-radius:0;max-height:min(34svh,300px);padding-right:3px;scrollbar-color:#555147 transparent}.entry-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-size:15px}
nav{background:#22211ff5;border-color:var(--line);padding:12px 18px calc(12px + env(safe-area-inset-bottom));backdrop-filter:blur(16px)}nav button{flex-direction:row;gap:7px;min-height:44px;font-size:14px;padding:8px 2px;border-radius:6px}nav svg{width:18px;height:18px}nav button[aria-current=page]{color:var(--ink);font-weight:400}nav button[aria-current=page]:after{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.nav-icon{width:20px;height:20px;border-radius:0}nav button[aria-current=page] .nav-icon{background:transparent}
.page-heading{margin-bottom:20px}.new-note{background:var(--soft);border:1px solid var(--line);width:38px;height:38px;min-height:38px}.search-field{background:var(--soft);border-radius:8px;min-height:48px;border:1px solid var(--line)}.search-field>svg{color:var(--muted)}.list-toolbar{padding:12px 0}.list-filter{background:transparent;border:0;padding:8px 0;max-width:72%;color:var(--muted)}.creation-tabs{gap:23px;margin-bottom:4px;border-color:var(--line)}.creation-tabs button{font-size:14px}.document-title{font-family:'Songti SC','STSong',serif;font-size:25px;line-height:1.55;overflow-wrap:anywhere;margin:10px 0 12px}.author-label{font-size:13px;margin-bottom:18px}.editor{background:var(--soft);border:1px solid var(--line);border-radius:8px;font-size:16px;line-height:1.95;min-height:38svh;padding:16px}.editor-actions button{background:transparent;border-color:var(--line);border-radius:7px;font-size:14px}.revision-actions button[data-action=rewrite]{background:#35332d;border-color:#4d493f}.revision-result{background:#2c2a25;border-color:#555044;border-radius:8px}.revision-origin{gap:16px}.revision-origin details{min-width:0}.more summary{font-size:13px}.more .entry{border-radius:0}.more .quiet{margin:0}
.output-source{margin-bottom:24px}.output-source h2,.output-options>h2{font-family:inherit;font-size:14px;color:var(--muted);margin-bottom:12px}.topic-trigger{background:var(--soft);border:1px solid var(--line);border-radius:8px;padding:15px;gap:12px}.source-text{flex:1;min-width:0;gap:6px}.source-text strong,.topic-option-text strong,.result-card strong{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;-webkit-line-clamp:unset;font-size:16px;font-weight:400;line-height:1.7;max-width:100%}.source-text>span{font-size:13px;color:var(--muted)}.output-format-list{gap:10px;margin-bottom:20px}.output-format-row{background:transparent;border-color:var(--line);border-radius:8px;padding:14px 15px;min-height:64px;gap:12px}.output-format-row.selected{background:#2d2b26;border-color:#827b6d}.output-format-icon{background:#37342e;border-radius:8px;width:32px;height:32px}.output-format-icon svg{width:20px;height:20px}.output-format-row>input{accent-color:#efeee8}.result-card{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:18px 0;gap:8px;min-width:0}.result-excerpt{font-size:13px;-webkit-line-clamp:1}.result-pending{background:var(--soft);border-radius:8px;margin:8px 0;padding:14px}.output-kind{font-size:13px}.empty-output{background:var(--soft);border:1px solid var(--line);border-radius:8px}.revision-result{padding:16px;border:1px solid #555044;border-radius:8px;background:#2c2a25}.result-card-top{color:var(--muted)}
dialog,#writer-picker{background:#282622;color:var(--ink);border:1px solid var(--line);border-bottom:0;border-radius:20px 20px 0 0}dialog::backdrop{background:#0009}dialog h2,#writer-picker h2,#topic-heading,#rewrite-heading{font-family:'Songti SC','STSong',serif;font-size:23px;font-weight:400}.sheet-handle{background:#625d51}.writer-option{background:transparent;border-radius:8px;padding:12px;min-height:60px}.writer-option.selected,.topic-option.selected{background:#36332c;border-color:#5b5548}.writer-initial{background:#3b382f;color:var(--ink);width:34px;height:34px}.writer-option.selected .writer-check{background:var(--ink);color:var(--paper)}#writer-search,#topic-search,#rewrite-request{background:#34312b;border:1px solid var(--line);border-radius:8px}.topic-option{background:transparent;border-radius:8px;padding:13px;gap:12px;width:100%;min-width:0}.topic-option-text{gap:6px}.writer-check{flex:none}.topic-option-text>span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#rewrite-source{white-space:nowrap;text-overflow:ellipsis;display:block;overflow:hidden;font-size:13px}#rewrite-form label{font-size:15px;font-weight:400}#rewrite-form .primary{font-size:16px}.image-heading h1{font-size:29px}.image-source-kind{font-size:12px}.profile-card,.menu-card{background:var(--soft);border:1px solid var(--line);border-radius:8px}.profile-avatar{background:#3b382f}.menu-item{background:transparent}.login-panel input{background:var(--soft);border:1px solid var(--line);border-radius:8px}.failure,#notice:not(:empty){background:#382b26;border:1px solid #584138;border-radius:8px;color:#edb6a4}.failure p,.failure .quiet,#rewrite-error,.failure-dot{color:#edb6a4}.error{color:#edb6a4}#image-tool{background:var(--paper)}
@media(min-width:600px){.app{box-shadow:0 0 0 1px #36332d}}@media(max-width:360px){header{margin-left:18px;margin-right:18px;padding-left:0;padding-right:0}.brand{font-size:26px}main{padding-left:18px;padding-right:18px}h1{font-size:30px}.record-index{width:20px}.topic-record{gap:9px}.document-title{font-size:23px}.output-format-row{padding:13px;gap:10px}.image-heading h1{font-size:26px}}

/* UI9: compact brand, navigation supplies page names. */
.brand{font-size:21px;letter-spacing:-.5px}header{padding-top:calc(18px + env(safe-area-inset-top));padding-bottom:16px}.avatar{width:34px;min-height:34px;font-size:15px}main{padding-top:22px}.creation-search-row{display:flex;align-items:center;gap:12px;min-width:0}.creation-search-row .search-field{flex:1;min-width:0}.creation-search-row .new-note{flex:none;width:40px;height:40px}.image-heading{margin:0 0 16px}.profile-card{margin-top:0}h1.sr-only{margin:-1px;padding:0}

/* UI10: compact controls and an independently scrolling results pane. */
.multishare-overview{overflow:hidden}.multishare-overview .app{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}.multishare-overview header{position:relative;flex:none}.multishare-overview main{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding-top:16px;padding-bottom:calc(var(--dock) + env(safe-area-inset-bottom) + 8px)}
.multishare-overview .output-source{flex:none;margin-bottom:14px}.multishare-overview .output-source h2,.multishare-overview .output-options>h2{font-size:13px;margin:0 0 8px}.multishare-overview .topic-trigger{min-height:48px;padding:10px 12px;border-radius:7px;gap:10px}.multishare-overview .source-text{gap:0}.multishare-overview .source-text strong{font-size:15px}.multishare-overview .source-text>span{display:none}.multishare-overview .topic-trigger>svg{width:15px;height:15px}
.multishare-overview .output-options{flex:none;margin:0 0 16px}.multishare-overview .output-format-list{gap:6px;margin-bottom:12px}.multishare-overview .output-format-row{min-height:44px;padding:8px 12px;gap:10px;border-radius:7px;font-size:14px}.multishare-overview .output-format-icon{width:24px;height:24px;border-radius:6px;background:transparent}.multishare-overview .output-format-icon svg{width:16px;height:16px}.multishare-overview .output-format-row>input{width:16px;height:16px}.multishare-overview .output-options>.primary{min-height:44px;padding:9px 12px;font-size:15px;border-radius:6px}.multishare-overview .output-options>.primary svg{width:17px;height:17px}
.multishare-overview #output-results{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;scroll-margin:0;border-top:1px solid var(--line)}.multishare-overview #output-results>.section{flex:none;margin:0;padding:12px 0 10px;align-items:center}.multishare-overview #output-results h2{font-size:19px}.result-count{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}#output-result-list{min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#625d51 transparent;padding-right:4px;flex:1}#output-result-list>*{flex-shrink:0}#output-result-list:focus-visible{outline:1px solid #827b6d;outline-offset:-1px}#output-result-list .result-card{padding:14px 0;gap:7px}#output-result-list .result-card strong{font-size:16px}#output-result-list .result-excerpt{-webkit-line-clamp:2;font-size:14px;line-height:1.8}#output-result-list .result-card-top{font-size:12px}#output-result-list .output-kind{font-size:12px}#output-result-list .output-kind svg{width:16px;height:16px}
.output-detail-toolbar,.image-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:nowrap;margin:0 0 14px;min-height:40px}.output-detail-toolbar .quiet,.image-heading .quiet{min-height:40px;padding:8px 0;font-size:14px;white-space:nowrap}.output-detail-toolbar .output-kind{font-size:13px;min-width:0;white-space:nowrap}.output-detail-toolbar .output-kind svg{width:16px;height:16px}.output-detail-toolbar+.document-title{margin-top:0}.topic-option{padding:11px 12px;gap:12px}.topic-option-text{gap:4px}.topic-option-text strong{font-size:15px}.topic-option-text>span{font-size:12px}#topic-picker>.row,#rewrite-dialog>.row{flex-wrap:nowrap;align-items:center}#topic-picker>.row h2,#rewrite-dialog>.row h2{line-height:1.4;margin:0}#topic-picker>.row .quiet,#rewrite-dialog>.row .quiet{min-height:40px;padding:8px 0;font-size:14px}
@media(max-height:650px){.multishare-overview main{padding-top:10px}.multishare-overview .output-source{margin-bottom:10px}.multishare-overview .output-options{margin-bottom:10px}.multishare-overview .output-format-list{gap:4px;margin-bottom:8px}.multishare-overview #output-results>.section{padding:8px 0}.multishare-overview .output-source h2,.multishare-overview .output-options>h2{margin-bottom:5px}}
@media(max-height:650px){.multishare-overview header{padding-top:calc(12px + env(safe-area-inset-top));padding-bottom:12px}.multishare-overview .output-source h2,.multishare-overview .output-options>h2{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.multishare-overview #output-result-list .result-excerpt{-webkit-line-clamp:1}}

.clipboard-buffer{position:fixed;left:-9999px;top:0;width:1px;height:1px;opacity:0}

/* Voice entry stays next to its text field; final text is never auto-submitted. */
.voice-tools{display:flex;align-items:center;gap:12px;margin:6px 0 14px;min-width:0}
.voice-input{display:inline-flex;flex:none;align-items:center;gap:7px;min-height:44px;padding:0 12px;border:1px solid var(--line,#44413a);border-radius:24px;background:transparent;color:var(--muted,#b4b1a6);font-size:14px;font-weight:400}
.voice-input svg{width:15px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.voice-input.listening{background:#efeee8;color:#22211f;border-color:#efeee8}
.voice-status{min-width:0;flex:1;font-size:13px;color:var(--muted,#b4b1a6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.voice-status.voice-error{white-space:normal;color:#f1b8aa;line-height:1.5}
#rewrite-form .voice-tools{margin-top:6px}

.device-login{max-width:360px;margin:12vh auto 0;padding:0 10px;text-align:center}.device-mark{font-family:Georgia,serif;font-size:34px;border:1px solid #45423b;width:70px;height:70px;border-radius:50%;display:grid;place-items:center;margin:0 auto 30px}.device-login h1{font-size:28px;font-weight:400;margin:0 0 32px}.device-login form{display:grid;gap:16px}.device-login input{width:100%;box-sizing:border-box;min-height:54px;border:1px solid #45423b;background:#292824;color:#efeee8;border-radius:7px;padding:14px 16px;font-size:16px}.device-login .primary{min-height:54px;display:flex;align-items:center;justify-content:center;gap:12px}.device-login .primary svg{width:18px;height:18px}.device-login p{font-size:13px;color:#aaa79d;margin-top:22px}.device-login input:focus-visible{outline:1px solid #c7c1b1;outline-offset:3px}
