.transfer-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:40px;align-items:start}.transfer-main,.transfer-side{min-width:0}.transfer-main h2,.transfer-side h2{font:600 19px/1.5 Georgia,"Noto Serif SC",serif;margin:24px 0 14px}.file-drop{display:flex;flex-direction:column;gap:12px;padding:25px;border:1px dashed #b6aa96;background:#faf7ee;border-radius:12px;overflow-wrap:anywhere}.file-drop input{max-width:100%;font:inherit}.file-drop span,.dialog-copy{color:#786f62}.import-options{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:12px;margin:20px 0}.import-options label{font-size:13px;display:flex;flex-direction:column;gap:8px}.import-options input,.import-options select,.transfer-main select,.transfer-main input:not([type=checkbox]){width:100%;min-width:0;box-sizing:border-box;padding:10px;background:#fffcf4;border:1px solid #d9cfbe;border-radius:6px;color:inherit;font:inherit}.inline-check{display:flex;align-items:flex-start;gap:9px;margin:18px 0;line-height:1.6}.inline-check input{flex:none;margin-top:6px}.import-section{border-top:1px solid #ded5c6;padding:15px 0}.import-section summary{display:flex;justify-content:space-between;gap:14px;cursor:pointer;line-height:1.6}.import-section summary span{overflow-wrap:anywhere}.import-section summary small{white-space:nowrap;color:#766c5e}.import-section textarea{min-height:200px;font:16px/1.8 Georgia,"宋体",serif}.import-warning{line-height:1.7;padding:12px;border-left:3px solid #b99765;background:#f5eedf;color:#5f523f}.transfer-side{border-left:1px solid #ded5c6;padding-left:24px;line-height:1.7}.transfer-side p{color:#766c5e}.transfer-side hr{border:0;border-top:1px solid #ded5c6;margin:30px 0}.import-history-row{margin:18px 0;padding-bottom:15px;border-bottom:1px solid #ded5c6;overflow-wrap:anywhere}.import-history-row p{font-size:13px}.revision-diff{white-space:pre-wrap;overflow-wrap:anywhere;font:16px/1.85 Georgia,"宋体",serif;background:#fcf9f1;padding:24px;max-height:50vh;overflow:auto}.revision-diff ins{background:#e2eedf;color:#254c29;text-decoration:underline}.revision-diff del{background:#f3dddd;color:#793737;text-decoration:line-through}.pinned-reference{border-left:3px solid #a48b62;padding:12px 0 16px 16px;margin:20px 0;overflow-wrap:anywhere}.pinned-reference span{font-size:12px;color:#786f62}.pinned-reference p{white-space:pre-wrap;max-height:300px;overflow:auto}.transfer-main [role=status]{line-height:1.6;overflow-wrap:anywhere}.transfer-main [hidden]{display:none!important}
@media(max-width:1000px){.transfer-layout{grid-template-columns:1fr}.transfer-side{padding-left:0;border-left:0;border-top:1px solid #ded5c6}.import-options{gap:8px}.import-section summary{align-items:start}.file-drop{padding:18px}.revision-diff{padding:14px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.revision-detail{white-space:pre-wrap;overflow-wrap:anywhere}.panel-tabs{flex-wrap:wrap}

/* ux01: secondary settings stay optional, native disclosures work by keyboard. */
.import-options label[hidden]{display:none}.review-settings,.review-evidence{margin:12px 0}.review-settings>summary,.review-evidence>summary{cursor:pointer;padding:12px 0;color:var(--ink,#302d26);min-height:44px}.review-quota{font-weight:600}.review-goal-summary p{white-space:pre-wrap;overflow-wrap:anywhere}.review-settings[open]{padding-bottom:10px}.review-scope{overflow-wrap:anywhere}

/* Review studio: cream-paper emphasis, no manuscript markup persisted. */
.review-workspace-entry{background:#725236;color:#fffaf0;border:1px solid #725236;border-radius:8px;padding:10px 14px;font-size:14px;font-weight:600;line-height:1.4;white-space:nowrap;min-height:44px}.review-workspace-entry:hover{background:#563e2a}.review-workspace-entry:focus-visible{outline:3px solid #c49d5d;outline-offset:3px}.review-workspace-entry:disabled{opacity:.6;cursor:wait}
.studio-quote-highlight{background:#f4d88d;color:#302416;border-bottom:2px solid #a67a32;scroll-margin-block:100px}.ProseMirror ::selection{background:#ebc970;color:#302416}
.review-pending{padding:16px;background:#f6efe0;border:1px solid #d7c7ab;border-radius:10px;line-height:1.7}.review-pending strong{display:block;color:#725236}.review-pending p{margin:8px 0}.dialog-field textarea::placeholder{color:#8b8173;opacity:1}
@media(max-width:700px){.topbar{flex-wrap:wrap;gap:8px;height:auto;min-height:64px;padding-block:10px}.top-actions{flex-wrap:wrap;gap:6px}.review-workspace-entry{padding:9px 11px}.topbar .breadcrumbs{min-width:0;max-width:100%}}

.profile-selects{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media(max-width:480px){.profile-selects{grid-template-columns:1fr}}

.note-prompt-tools{margin:14px 0;padding:12px 14px;border:1px solid var(--line);border-radius:6px;background:var(--canvas)}
.note-prompt-tools summary,.pinned-reference summary{cursor:pointer;min-height:44px;line-height:1.7;color:var(--ink)}
.note-prompt-tools summary:focus-visible,.pinned-reference summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.prompt-choice{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;line-height:1.6;cursor:pointer}
.prompt-choice input{width:18px;height:18px;flex-shrink:0;accent-color:var(--green)}
.note-prompt-tools .outline-button{margin-top:10px;min-height:44px}
.pinned-reference summary span{font-size:12px;color:var(--sub)}
.pinned-reference summary strong{display:block;font-family:var(--serif);font-size:18px;font-weight:500;overflow-wrap:anywhere}
.pinned-reference details>p,.mini-note p{overflow-wrap:anywhere}
.reference-actions{display:flex;flex-wrap:wrap;gap:8px}.reference-actions button{min-height:44px}
.reference-search{display:block;margin:14px 0;font-size:13px;line-height:1.8;color:var(--sub)}
.reference-search input{width:100%;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:4px;background:var(--paper);color:var(--ink)}
.reference-search input::placeholder{color:var(--sub);opacity:1}
#reference-results button{min-height:44px}
.pinned-reference summary span,.reference-search,#reference-results .dialog-copy{color:#655f55}
#note-prompt-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px}
dialog:has(.note-prompt-tools) .dialog-head{position:sticky;top:0;z-index:3;background:var(--paper);padding-block:8px}
dialog:has(.note-prompt-tools) .dialog-actions{position:sticky;bottom:0;z-index:3;background:var(--paper);padding-block:12px}
@media(max-width:920px){.companion-head{position:sticky;top:0;z-index:3;background:var(--side)}.companion{overscroll-behavior:contain}.companion :is(button,input,summary){scroll-margin-top:100px}}
@media(max-width:650px){body.panel-open{overflow:hidden}.panel-open .companion{inset:0 0 0 auto;height:100dvh;z-index:60}}
@media(max-width:520px){#note-prompt-options{grid-template-columns:1fr}}
.credential-dialog .dialog-head{position:sticky;top:0;z-index:3;background:var(--paper);padding-block:8px}
.credential-dialog .dialog-head button{min-width:44px;min-height:44px}
.credential-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.credential-actions button,#switch-workspace,#rotate-key{min-height:44px}
.credential-reset{margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}
.credential-reset summary{cursor:pointer;min-height:44px;color:var(--ink)}
.credential-dialog textarea{overflow-wrap:anywhere;word-break:break-all}

.work-search-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 14px;background:var(--paper,#fffdf7);border-bottom:1px solid #d7cfbd;color:#3b555b}.work-search-bar[hidden]{display:none}.work-search-bar span{flex:1;min-width:120px;overflow-wrap:anywhere}.work-search-bar button{padding:7px 10px;min-height:36px;border:1px solid #c6c6ba;border-radius:8px}.work-search-bar button:disabled{opacity:.5;cursor:default}

.focus-segment{box-sizing:border-box;width:100%;max-width:900px;margin:0 auto 12px;padding:16px 20px;background:#f8f4e8;border-block:1px solid #d7cfbd;color:#384943}.focus-segment[hidden]{display:none}.focus-segment-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.focus-segment-top strong{margin-right:auto}.focus-segment button{min-height:40px;padding:7px 12px;border:1px solid #9eaa9d;border-radius:8px;background:#fffcf5;color:#354b42}.focus-segment button:focus-visible,.focus-segment input:focus-visible,.focus-segment textarea:focus-visible{outline:2px solid #385b49;outline-offset:3px}.focus-segment button:disabled{color:#746e61;cursor:default}.focus-goal,.focus-cue{display:grid;gap:6px;margin-top:12px;font-size:13px}.focus-segment input,.focus-segment textarea{box-sizing:border-box;width:100%;font:inherit;color:#2e3f38;background:#fffdf6;border:1px solid #a9b2a5;border-radius:6px;padding:9px}.focus-segment textarea{min-height:84px;resize:vertical}.focus-segment input::placeholder,.focus-segment textarea::placeholder{color:#706b60}.focus-segment details{margin-top:10px}.focus-segment summary{cursor:pointer;padding:5px 0}.focus-notice,.focus-segment details p{font-size:12px;line-height:1.6;color:#5d655b;margin:9px 0 0}#focus-elapsed{font-variant-numeric:tabular-nums;font-size:20px}#focus-phase{font-size:12px}@media(max-width:600px){.focus-segment{padding:12px}.focus-segment-top{gap:8px}.focus-segment-top strong{flex-basis:100%}.focus-segment button{min-height:44px}.focus-segment input{font-size:16px}}

/* Keep the existing space entry discoverable and reachable on short screens. */
.profile-access{display:flex;align-items:center;gap:10px;width:100%;height:auto;min-height:52px;margin:0;border:0;text-align:left;border-radius:5px;padding:6px 0;font:13px/1.5 var(--sans)}
.profile-access:hover{background:var(--canvas)}
.profile-access>span:nth-child(2){min-width:0;flex:1}
.profile-access small{display:block;font-size:11px;color:var(--sub);margin-top:4px}
.profile-access .profile-chevron{font-size:22px;color:var(--sub)}
.credential-switch{min-height:44px;width:100%;text-align:left}
.credential-input textarea{min-height:88px;overflow-wrap:anywhere}
.credential-actions button{min-height:44px}
@media(max-width:650px){.menu-open .sidebar{overflow-y:auto;overscroll-behavior:contain}.sidebar-bottom{flex-shrink:0}.sidebar>nav,.sidebar>.brand{flex-shrink:0}}

/* Navigation remains available when the sidebar is folded or in focus mode. */
.profile-access .avatar{flex:0 0 29px;width:29px;height:29px}
.profile-access>span:nth-child(2){white-space:nowrap}
.profile-access small{white-space:normal;line-height:1.5}
.profile-access .profile-chevron{flex:0 0 auto;line-height:1}
.home-return{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;min-height:44px;padding:0 9px;border:1px solid var(--line);border-radius:5px;color:var(--ink);font:12px/1.4 var(--sans);white-space:nowrap}
.home-return svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.home-return:hover{background:var(--side)}
.home-return:focus-visible,.profile-access:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
@media(max-width:650px){
 .topbar,.focus-mode .topbar{height:auto;min-height:104px;flex-wrap:wrap;gap:4px;padding:8px 12px}
 .topbar .breadcrumbs{flex:1 1 100%;min-width:0}
 .topbar .top-actions{width:100%;justify-content:space-between;gap:6px;flex-wrap:wrap}
 .topbar .top-actions button{min-height:40px}
 .breadcrumbs #crumb-work{min-width:0;flex:1}
}

/* Let the chapter list yield height before the account row is clipped. */
.sidebar .chapter-list{flex:1 1 auto;min-height:40px;max-height:none}
.sidebar .sidebar-bottom{flex-shrink:0}
.top-actions .review-entry-full{display:inline}
.top-actions .review-entry-short{display:none}
@media(max-width:650px){
 .top-actions .review-entry-full{display:none}
 .top-actions .review-entry-short{display:inline}
 .top-actions .review-workspace-entry{padding:7px 9px}
 .topbar .top-actions button,.edit-meta button{white-space:nowrap}
 .editor-toolbar{height:auto;min-height:52px;flex-wrap:wrap;padding:7px 12px;gap:6px}
 .format-tools,.edit-meta{flex-shrink:0}
}

/* The existing four companion tabs share one row at medium widths. */
.panel-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.panel-tabs button{min-width:0;white-space:nowrap}

/* Make the brand's existing home destination explicit in the left sidebar. */
.brand{border-radius:5px}
.brand .brand-return{display:flex;align-items:center;gap:4px;width:max-content;min-height:24px;margin-top:6px;padding:2px 7px;border:1px solid #b8c4b7;border-radius:4px;background:#e3e9de;color:#345946;font:11px/1.4 var(--sans);letter-spacing:0;white-space:nowrap}
.brand-return svg{width:13px;height:13px;flex:0 0 auto}
.brand:hover .brand-return{background:#d7e1d1;border-color:#91a78f}
/* Compact, opt-in analysis inside the existing companion panel. */
.review-focus-picker{display:flex;gap:6px;margin:14px 0 10px;min-width:0}
.review-focus-picker select{flex:1;min-width:0;padding:8px 7px;border:1px solid var(--line);border-radius:5px;background:var(--paper);font:12px var(--sans);color:var(--ink)}
.review-focus-picker button{flex:0 0 auto;border:1px solid #b8c4b7;background:#e3e9de;border-radius:5px;padding:7px;color:#345946;font-size:11px;min-height:40px;white-space:nowrap}
.quick-tools-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.quick-tools-heading h3{font:22px/1.5 var(--serif);margin:0}
.quick-tools-heading a{font-size:12px;white-space:nowrap;color:#386f63;text-decoration:underline;text-underline-offset:3px}
.quick-intro{margin-bottom:17px!important}
.quick-demo{padding:8px 10px!important;border-radius:5px;background:#eee4d0;color:#72502d!important;font-size:11px!important;line-height:1.6!important}
.quick-tool-entry{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:76px;padding:14px 0;border-bottom:1px solid var(--line);text-align:left;color:var(--ink)}
.quick-tool-entry:hover{background:#e7eadd}
.quick-tool-entry>span{min-width:0}
.quick-tool-entry strong{font:17px/1.5 var(--serif);display:block}
.quick-tool-entry small{display:block;font:11px/1.7 var(--sans);color:var(--sub);margin-top:4px}
.quick-tool-entry b{font:21px/1.3 var(--serif);color:#345946;flex-shrink:0;text-align:center}
.quick-tool-entry b small{font-size:10px;color:#345946}
.quick-policy{font-size:11px!important;margin:15px 0!important}
.quick-history{border-top:1px solid var(--line);padding-top:15px;margin-top:18px}
.quick-history h4{font-size:12px;color:var(--sub);font-weight:500;margin:0 0 7px}
.quick-history>p{font-size:11px!important}
.quick-history-row{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}
.quick-history-row small{display:block;font-size:10px;color:var(--sub);margin-top:4px}
.quick-history-row b{font-size:11px;font-weight:400;color:var(--blue);white-space:nowrap}
.free-inspiration{margin-top:24px;border-top:1px solid var(--line);padding-top:12px}
.free-inspiration>summary,.quick-reference>summary{cursor:pointer;min-height:44px;line-height:44px;font-size:13px;color:var(--ink)}
.quick-confirm-heading{display:flex;justify-content:space-between;gap:14px;align-items:center;font-size:12px}
.quick-confirm-heading strong{font:22px var(--serif);color:#345946;white-space:nowrap}
.quick-source{max-height:170px;overflow:auto;margin:15px 0 20px;padding:14px 16px;background:var(--canvas);border-radius:5px;font:14px/1.9 var(--serif);white-space:pre-wrap;overflow-wrap:anywhere}
.quick-reference{margin:14px 0;border-block:1px solid var(--line)}
.quick-reference .review-note-check{min-height:36px}
.quick-result-meta{font-size:12px;color:var(--sub);line-height:1.8}
.quick-result-summary{font:18px/1.8 var(--serif);margin:20px 0}
.quick-stale{background:#f0e3c8;color:#695333;padding:12px 14px;font-size:12px;line-height:1.7;border-radius:5px}
.quick-finding,.quick-choice{margin:22px 0;padding-top:18px;border-top:1px solid var(--line)}
.quick-finding>span{font-size:11px;color:var(--accent)}
.quick-finding h3,.quick-choice h3{font:18px/1.7 var(--serif);margin:8px 0 12px}
.quick-finding blockquote{margin:12px 0;padding:13px 15px;background:var(--canvas);border-radius:5px;font:14px/1.9 var(--serif);white-space:pre-wrap;overflow-wrap:anywhere}
.quick-finding blockquote small{display:block;font:11px/1.6 var(--sans);color:var(--sub);margin:8px 0 0}
.quick-finding p,.quick-choice p{font-size:13px;line-height:1.9;overflow-wrap:anywhere}
.quick-locate{display:block;color:var(--blue);font:11px var(--sans);padding:8px 0;min-height:36px;text-decoration:underline;text-underline-offset:3px}
.quick-save-note{width:100%;min-height:44px;margin-top:12px}
@media(max-width:650px){.quick-tool-entry{min-height:80px}.quick-tool-entry strong{font-size:19px}.quick-tool-entry small{font-size:12px}.review-focus-picker select{font-size:14px}.review-focus-picker button{min-height:44px;font-size:12px}}
dialog:has(.quick-source) .dialog-head,dialog:has(.quick-result-summary) .dialog-head{position:sticky;top:0;z-index:3;background:var(--paper);padding-top:8px}
dialog:has(.quick-source) .dialog-actions{position:sticky;bottom:0;background:var(--paper);padding-block:12px;border-top:1px solid var(--line)}
