.workspace-modal{overscroll-behavior:contain;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:14px;margin:auto;padding:22px;position:fixed;inset:0;overflow:auto;box-shadow:0 20px 52px #101a1633}.workspace-modal:not([open]){display:none}.workspace-modal::backdrop{-webkit-backdrop-filter:blur(4px);background:#101a166b}.workspace-modal .dialog-actions{flex-wrap:wrap}.workspace-modal .dialog-actions button{height:auto;min-height:44px;padding-block:10px}.workspace-modal .dialog-close{flex:0 0 36px}.workspace-modal textarea{width:100%;min-width:0}.theme-dark .workspace-modal{color:#dce7e1;background:#14231f;border-color:#3b4c45}.theme-dark .workspace-modal p,.theme-dark .workspace-modal label{color:#b3c4bb}.theme-dark .workspace-modal .dialog-close{color:#dce7e1}.theme-dark .workspace-modal .dialog-actions .primary-btn{color:#10201d}.theme-dark .workspace-modal .dialog-actions button:not(.danger-btn):not(.primary-btn){color:#dce7e1;background:#10201d;border-color:#3b4c45}@media (max-width:380px){.workspace-modal.confirm-dialog{grid-template-columns:32px minmax(0,1fr);gap:10px;padding:16px}.workspace-modal .dialog-icon{width:32px;height:32px}.workspace-modal .dialog-actions button{flex:1}}@media print{.workspace-modal,.workspace-modal::backdrop{display:none!important}}.link-dialog{width:min(460px,100vw - 32px)}.link-dialog h2{margin:0 0 14px;font-size:17px}.link-dialog label{color:var(--muted,#667);margin:12px 0 5px;font-size:12px;font-weight:600;display:block}.link-dialog input{border:1px solid var(--line);background:#fff;border-radius:8px;width:100%;height:38px;padding:0 11px;font-size:14px}.link-dialog input:focus-visible{outline-offset:1px;outline:2px solid #2a8a63}.link-dialog-error{color:#9a3128;margin:10px 0 0;font-size:12px}.link-dialog-actions{align-items:center;gap:8px;margin-top:18px;display:flex}.link-dialog-spacer{flex:1}.template-picker{width:min(520px,100vw - 32px)}.template-picker h2{margin:0 0 6px;font-size:17px}.template-picker>p{color:var(--muted,#667);margin:0 0 14px;font-size:12px}.template-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.template-choice{border:1px solid var(--line);text-align:left;cursor:pointer;background:#fff;border-radius:9px;flex-direction:column;gap:3px;width:100%;padding:11px 13px;display:flex}.template-choice:hover,.template-choice:focus-visible{border-color:var(--green,#176b4a);background:var(--mint,#e8f2ed)}.theme-dark .template-choice{background:#10201d;border-color:#3b4c45}.theme-dark .template-choice:hover,.theme-dark .template-choice:focus-visible{background:#17322b;border-color:#2f8f68}.template-choice strong{color:var(--ink,#17211d);font-size:14px}.template-choice span{color:var(--muted,#667);font-size:12px}.template-picker-actions{justify-content:flex-end;margin-top:16px;display:flex}.history-dialog{width:min(460px,100vw - 32px)}.history-dialog h2{margin:0 0 6px;font-size:17px}.history-dialog>p{color:var(--muted,#667);margin:0 0 14px;font-size:12px}.history-empty{border:1px dashed var(--line);color:var(--muted,#667);border-radius:9px;margin:0;padding:14px;font-size:12px}.history-list{gap:6px;max-height:46vh;margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.history-list li{border:1px solid var(--line);border-radius:9px;justify-content:space-between;align-items:center;gap:10px;padding:9px 12px;display:flex}.history-list span{flex-direction:column;gap:2px;display:flex}.history-list strong{color:var(--ink,#17211d);font-size:13px}.history-list small{color:var(--muted,#667);font-size:11px}.history-buttons{flex:none;gap:6px;display:flex}.history-list button{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:7px;flex:none;height:30px;padding:0 12px;font-size:12px}.history-list button:hover{border-color:var(--green,#176b4a);color:var(--green,#176b4a);background:var(--mint,#e8f2ed)}.compare-dialog{width:min(680px,100vw - 32px)}.compare-dialog h2{margin:0 0 6px;font-size:17px}.compare-summary{color:var(--muted,#667);margin:0 0 12px;font-size:12px}.compare-note{color:var(--muted,#667);margin:10px 0 0;font-size:11px}.compare-body{border-top:1px solid var(--line);border-bottom:1px solid var(--line);max-height:52vh;padding:4px 2px;overflow-y:auto}.compare-block{border-left:3px solid #0000;border-radius:6px;margin:0 0 10px;padding:6px 10px;font-size:13px;line-height:1.55}.compare-mark{width:1em;font-weight:700;display:inline-block}.compare-block.compare-added{background:#e8f4ec;border-left-color:#176b4a}.compare-block.compare-removed{background:#f7eceb;border-left-color:#a5382c;-webkit-text-decoration:line-through #a5382c8c;text-decoration:line-through #a5382c8c}.compare-edited{border-left-color:var(--line);background:#fbfaf6}.compare-edited mark{border-radius:3px;padding:0 2px}mark.compare-added{color:#0f3f2c;background:#cfe9d9}mark.compare-removed{color:#6d211a;background:#f3d7d3;text-decoration:line-through}.compare-actions,.history-actions{justify-content:flex-end;margin-top:16px;display:flex}.statistics-dialog{width:min(560px,100vw - 32px);max-height:min(86vh,760px);overflow-y:auto}.statistics-dialog h2{margin:0 0 6px;font-size:17px}.statistics-dialog>p{color:var(--muted,#667);margin:0 0 14px;font-size:12px}.statistics-dialog h3{margin:0 0 4px;font-size:13px}.statistics-figures{grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:8px;margin:0;display:grid}.statistics-figures>div{border:1px solid var(--line);border-radius:9px;padding:9px 11px}.statistics-figures dt{color:var(--muted,#667);font-size:11px}.statistics-figures dd{color:var(--ink,#17211d);margin:2px 0 0;font-size:16px;font-weight:700}.statistics-score,.statistics-list{margin-top:16px}.statistics-ease{margin:0 0 4px;font-size:13px}.statistics-ease strong{color:var(--green,#176b4a);font-size:20px}.statistics-note{color:var(--muted,#667);margin:0;font-size:11px;line-height:1.5}.statistics-list ul{gap:6px;margin:8px 0 0;padding:0;list-style:none;display:grid}.statistics-list li{border:1px solid var(--line);border-radius:9px;padding:8px 11px;font-size:12px;line-height:1.5}.statistics-actions{justify-content:flex-end;margin-top:16px;display:flex}.statistics-actions button{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:7px;height:32px;padding:0 14px;font-size:12px}.theme-dark .statistics-figures>div,.theme-dark .statistics-list li,.theme-dark .statistics-actions button{color:#dce7e1;background:#10201d;border-color:#3b4c45}.theme-dark .statistics-figures dd{color:#dce7e1}.merge-dialog{width:min(560px,100vw - 32px);max-height:min(88vh,820px);overflow-y:auto}.merge-dialog h2{margin:0 0 6px;font-size:17px}.merge-dialog>p{color:var(--muted,#667);margin:0 0 14px;font-size:12px}.merge-dialog h3{text-transform:uppercase;letter-spacing:.05em;color:var(--muted,#667);margin:0 0 5px;font-size:12px}.merge-fields ul{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.merge-fields li{border:1px solid var(--line);border-radius:20px;padding:4px 9px;font-size:12px}.merge-fields em{color:#9a5b12;font-size:11px}.merge-dialog code{font-size:12px}.merge-paste,.merge-title{margin-top:16px;display:block}.merge-paste>span,.merge-title>span{margin-bottom:5px;font-size:12px;font-weight:600;display:block}.merge-rows{border:1px solid var(--line);resize:vertical;border-radius:9px;width:100%;padding:9px 11px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.5}.merge-title input{border:1px solid var(--line);border-radius:9px;width:100%;height:34px;padding:0 11px;font-size:13px}.merge-preview{border:1px solid var(--line);border-radius:11px;margin-top:16px;padding:11px 13px}.merge-note{color:var(--muted,#667);margin:0;font-size:12px;line-height:1.5}.merge-warning{color:#59440d;background:#fff8df;border-radius:8px;margin:0 0 7px;padding:7px 10px;font-size:12px;line-height:1.45}.merge-actions{justify-content:flex-end;gap:9px;margin-top:18px;display:flex}.merge-actions button{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:8px;height:34px;padding:0 14px;font-size:13px}.merge-actions .primary-btn{border-color:var(--green,#176b4a);background:var(--green,#176b4a);color:#fff}.merge-actions button:disabled{opacity:.5;cursor:not-allowed}.theme-dark .merge-rows,.theme-dark .merge-title input,.theme-dark .merge-preview,.theme-dark .merge-fields li,.theme-dark .merge-actions button:not(.primary-btn){color:#dce7e1;background:#10201d;border-color:#3b4c45}.theme-dark .merge-warning{color:#f7e5aa;background:#302a18}
.help-dialog{--help-surface:#fff;--help-secondary:#53665c;--help-button-ink:#fff;width:min(660px,100% - 32px);max-height:min(740px, calc(var(--app-viewport-height,100dvh) - 32px));border:1px solid var(--line);color:var(--ink);background:var(--help-surface);border-radius:18px;margin:auto;padding:0;overflow:hidden;box-shadow:0 24px 80px #10251a33}.help-dialog[open]{grid-template-rows:auto minmax(0,1fr) auto;display:grid}.help-dialog::backdrop{background:#14231f66}.help-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:20px 24px 16px;display:flex}.help-eyebrow{letter-spacing:.12em;color:var(--green);margin:0 0 5px;font-size:10px;font-weight:700}.help-heading h2{margin:0;font-size:24px;font-weight:700;line-height:1.2}.help-close{border:1px solid var(--line);width:44px;height:44px;color:inherit;cursor:pointer;background:0 0;border-radius:50%;flex:0 0 44px;padding:0;font-size:25px;line-height:1}.help-close:hover{background:var(--mint)}.help-body{overscroll-behavior:contain;min-height:0;padding:16px 24px 24px;scroll-padding-block:12px;overflow-y:auto}.help-intro{color:var(--help-secondary);margin:0 0 16px;font-size:15px;line-height:1.5}.help-body details{border-top:1px solid var(--line)}.help-body summary{cursor:pointer;min-height:52px;padding:16px 3px;font-size:15px;font-weight:700;line-height:1.35}.help-body summary:hover,.help-body details[open] summary{color:var(--green)}.help-section{padding:0 3px 16px;font-size:14px;line-height:1.65}.help-section p{margin:0 0 12px}.help-section p:last-child{margin-bottom:0}.help-section strong{font-weight:700}.help-section .help-callout{border-left:3px solid var(--green);background:var(--mint);border-radius:0 8px 8px 0;padding:12px 14px}.help-section a{color:var(--green);text-underline-offset:3px;text-decoration:underline}.help-section small{color:var(--help-secondary);font-size:12px}.help-shortcuts{margin:14px 0}.help-shortcuts table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:13px;line-height:1.5}.help-shortcuts caption{text-align:left;padding-bottom:8px;font-weight:700}.help-shortcuts th,.help-shortcuts td{text-align:left;vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid var(--line);padding:9px 6px}.help-shortcuts thead{background:var(--mint)}.help-shortcuts tbody th{font-weight:400}.help-section kbd{border:1px solid var(--line);border-radius:4px;padding:1px 4px;font-size:12px}.help-footer{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding:14px 24px;display:flex}.help-footer>span{max-width:240px;color:var(--help-secondary);font-size:12px;line-height:1.4}.help-done{border:1px solid var(--green);background:var(--green);min-height:44px;color:var(--help-button-ink);cursor:pointer;border-radius:9px;flex:none;padding:10px 18px;font-weight:700}.help-done:hover{filter:brightness(.94)}.welcome-guide{z-index:3;border:1px solid var(--line);width:min(340px,100% - 94px);max-height:calc(100% - 32px);color:var(--ink);background:#fff;border-radius:14px;padding:12px 16px 14px;position:absolute;bottom:16px;left:16px;overflow-y:auto;box-shadow:0 8px 30px #17211d22}.welcome-guide-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.welcome-guide-heading h2{margin:0;font-size:16px;font-weight:700;line-height:1.3}.welcome-guide-heading .help-close{border:0;margin-right:-8px}.welcome-guide p{margin:6px 0 10px;font-size:13px;line-height:1.5}.help-link-button{min-height:44px;color:var(--green);text-align:left;cursor:pointer;background:0 0;border:0;padding:8px 0;font-size:13px;font-weight:700}.help-link-button:hover{text-decoration:underline}.interface-collapsed .welcome-guide{display:none}.theme-dark .help-dialog{--help-surface:#14231f;--help-secondary:#b0c0b6;--help-button-ink:#14231f}.theme-dark .welcome-guide{background:#14231f}.help-dialog :is(a,summary,h2):focus-visible{outline-offset:3px;outline:3px solid #2f80ed}.theme-dark .help-dialog :is(a,summary,h2):focus-visible{outline-color:#8fc5ff}@media (max-width:600px){.help-dialog{width:calc(100% - 16px);max-height:calc(var(--app-viewport-height,100dvh) - 16px);border-radius:14px}.help-heading{padding:12px 16px}.help-heading h2{font-size:21px}.help-body{padding:14px 16px 20px}.help-footer{padding:10px 16px calc(10px + env(safe-area-inset-bottom));gap:10px}.help-footer>span{max-width:130px}.help-done{padding-inline:12px;font-size:13px}.welcome-guide{padding-inline:12px;bottom:12px;left:12px}}@media (max-height:480px){.welcome-guide{display:none}}@media print{.welcome-guide,.help-dialog,.help-dialog::backdrop{display:none!important}}
.sources-panel{inset:calc(var(--chrome-bottom,calc(var(--topbar-height,58px) + 89px)) + 12px) 16px auto auto;z-index:60;width:min(420px,100% - 32px);max-height:calc(var(--app-viewport-height,100dvh) - var(--chrome-bottom,calc(var(--topbar-height,58px) + 89px)) - 24px);overscroll-behavior:contain;background:var(--paper);border:1px solid var(--line);border-radius:18px;flex-direction:column;gap:14px;padding:18px 20px 24px;display:flex;position:fixed;overflow-y:auto;box-shadow:0 16px 60px #14231f33}.sources-panel header{justify-content:space-between;align-items:center;display:flex}.sources-panel h2{margin:0;font-family:Georgia,serif;font-size:20px}.sources-panel label{color:var(--muted);flex-direction:column;gap:4px;font-size:12px;font-weight:700;display:flex}.sources-panel input,.sources-panel select{border:1px solid var(--line);background:var(--paper);min-height:36px;color:var(--ink);font:inherit;border-radius:8px;padding:0 10px;font-size:13px;font-weight:400}.sources-panel small{color:var(--muted);font-weight:400}.sources-note{background:var(--mint);color:#1d3d2f;border-radius:10px;margin:0;padding:10px 12px;font-size:13px;line-height:1.45}.source-form{border:1px solid var(--line);border-radius:12px;flex-direction:column;gap:12px;padding:14px;display:flex}.source-authors{border:1px solid var(--line);border-radius:10px;flex-direction:column;gap:8px;margin:0;padding:10px;display:flex}.source-authors legend{color:var(--muted);padding:0 4px;font-size:12px;font-weight:700}.source-author{gap:6px;display:flex}.source-author input{flex:1 1 0;min-width:0}.source-author button,.source-add-author{border:1px solid var(--line);background:var(--paper);min-height:36px;color:var(--ink);cursor:pointer;border-radius:8px;padding:0 10px;font-size:12px}.source-preview{background:var(--canvas);border-radius:10px;margin:0;padding:10px 12px;font-size:13px;line-height:1.5}.source-preview strong{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:4px;font-size:11px;display:block}.source-form-actions{justify-content:flex-end;gap:8px;display:flex}.source-form-actions button,.sources-add{border:1px solid var(--line);background:var(--paper);min-height:38px;color:var(--ink);cursor:pointer;border-radius:9px;padding:0 14px;font-size:13px;font-weight:700}.sources-panel .primary-btn{border-color:var(--green);background:var(--green);color:#fff}.sources-list{flex-direction:column;gap:14px;margin:0;padding:0;list-style:none;display:flex}.sources-list li{border-bottom:1px solid var(--line);padding-bottom:14px}.sources-list li:last-child{border-bottom:0}.source-entry{margin:0 0 6px;font-size:13px;line-height:1.5}.source-uncited{color:var(--muted);margin-bottom:6px;font-size:11px;display:block}.source-actions{gap:6px;display:flex}.source-actions input{width:70px}.source-actions button{border:1px solid var(--line);background:var(--paper);min-height:36px;color:var(--ink);cursor:pointer;border-radius:8px;padding:0 10px;font-size:12px;font-weight:700}.sources-empty{color:var(--muted);border-bottom:0;font-size:13px}.theme-dark .sources-panel{color:#dce7e1;background:#14231f;border-color:#3b4c45}.theme-dark .sources-panel input,.theme-dark .sources-panel select,.theme-dark .sources-panel .source-actions button,.theme-dark .sources-panel .source-form-actions button,.theme-dark .sources-add{color:#dce7e1;background:#10201d;border-color:#3b4c45}.theme-dark .source-preview{background:#10201d}.theme-dark .sources-note{color:#cfe5da;background:#16281f}@media (max-width:820px){.sources-panel{width:calc(100vw - 16px);max-height:calc(var(--app-viewport-height,100dvh) - 16px);inset:8px 8px auto auto}}
.ai-tools{--ai-surface:#fff;--ai-muted:#53665c;--ai-primary-ink:#fff;width:min(560px,100% - 32px);max-width:none;max-height:calc(var(--app-viewport-height,100dvh) - 32px);border:1px solid var(--line);color:var(--ink);background:var(--ai-surface);border-radius:18px;margin:0;padding:0;position:fixed;inset:16px 16px auto auto;overflow:hidden;box-shadow:0 16px 60px #14231f33}.ai-tools[open]{grid-template-rows:auto minmax(0,1fr) auto;display:grid}.ai-tools::backdrop{background:#14231f40}.ai-tools-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:18px 20px;display:flex}.ai-tools-eyebrow{color:var(--green);letter-spacing:.1em;margin:0 0 6px;font-size:10px;font-weight:700}.ai-tools-heading h2{align-items:center;gap:8px;margin:0;font-size:21px;font-weight:700;line-height:1.2;display:flex}.ai-tools button{border:1px solid var(--line);background:var(--ai-surface);min-height:44px;color:var(--ink);cursor:pointer;border-radius:9px;padding:9px 12px;font-size:13px;font-weight:700}.ai-tools button:hover{background:var(--mint)}.ai-tools button:disabled{opacity:.6;cursor:default}.ai-tools .ai-tools-close{border-radius:50%;flex:0 0 44px;padding:0;font-size:25px}.ai-tools .ai-primary{background:var(--green);border-color:var(--green);color:var(--ai-primary-ink)}.ai-tools-body{overscroll-behavior:contain;overflow-wrap:anywhere;min-height:0;padding:16px 20px 22px;font-size:14px;line-height:1.5;overflow-y:auto}#ai-tools-description,.ai-tools .ai-hint{color:var(--ai-muted);margin:0 0 16px;font-size:12px}.ai-chips{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;margin-bottom:16px;display:grid}.ai-tools .ai-chip{text-align:left;flex-direction:column;align-items:flex-start;gap:2px;min-height:auto;padding:10px 12px;display:flex}.ai-tools .ai-chip small{color:var(--ai-muted);font-size:11px;font-weight:500;line-height:1.35}.ai-tools .ai-chip.active{color:var(--green);border-color:var(--green);background:var(--mint);box-shadow:inset 0 -2px var(--green)}.ai-tools .ai-chip.active small{color:inherit;opacity:.85}.ai-option{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:16px;display:flex}.ai-option-label{color:var(--ai-muted);font-size:12px;font-weight:700}.ai-option-choices{flex-wrap:wrap;gap:6px;display:flex}.ai-tools .ai-option-choices button{min-height:38px;padding:6px 12px}.ai-tools .ai-option-choices button.active{color:var(--green);border-color:var(--green);background:var(--mint)}.ai-option select{border:1px solid var(--line);min-height:44px;font:inherit;color:var(--ink);background:var(--ai-surface);border-radius:9px;padding:10px 12px}.ai-source{border:1px solid var(--line);border-radius:9px;margin:0 0 16px;padding:10px 12px}.ai-source summary{cursor:pointer;color:var(--ai-muted);font-size:12px;font-weight:700}.ai-source p{white-space:pre-wrap;max-height:160px;margin:12px 0 0;overflow:auto}.ai-results{gap:12px;display:grid}.ai-result{border:1px solid var(--line);background:var(--ai-surface);border-radius:12px;padding:12px 14px}.ai-result>header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;display:flex}.ai-result h3{margin:0;font-size:14px;font-weight:700}.ai-result-actions{flex-wrap:wrap;gap:6px;display:flex}.ai-tools .ai-result-actions button{min-height:38px;padding:6px 10px;font-size:12px}.ai-result textarea{resize:vertical;border:1px solid var(--line);background:var(--ai-surface);width:100%;color:var(--ink);font:inherit;border-radius:9px;margin:0 0 8px;padding:12px;line-height:1.55;display:block}.ai-tools .ai-regenerate{min-height:36px;margin-top:8px;padding:6px 10px;font-size:12px;font-weight:600}.ai-result h4{color:var(--ai-muted);margin:12px 0 6px;font-size:12px;font-weight:700}.ai-passage{border:1px solid var(--line);white-space:pre-wrap;border-radius:8px;margin:0 0 8px;padding:10px 12px}.ai-passage del{color:#942f24;text-decoration-thickness:2px}.ai-passage ins{color:#1d6b4f;font-weight:700;text-decoration:none}.theme-dark .ai-passage del{color:#ffc9c0}.theme-dark .ai-passage ins{color:#8fe3bd}.ai-corrections{gap:12px;margin:0;padding-left:20px;display:grid}.ai-correction-change{margin:0 0 4px}.ai-correction-change del{color:#942f24;text-decoration-thickness:2px}.ai-correction-change ins{color:#1d6b4f;font-weight:700;text-decoration:none}.ai-correction-why{color:var(--ai-muted);margin:0 0 8px;font-size:12px}.ai-correction-actions{gap:6px;display:flex}.ai-tools .ai-correction-actions button{min-height:36px;padding:5px 10px;font-size:12px}.ai-tools .ai-error{color:#942f24;background:#fff0ed;border-radius:8px;padding:12px}.ai-tools .ai-message{background:var(--mint);border-radius:8px;padding:12px}.ai-tools-footer{border-top:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;gap:8px;padding:12px 20px;display:flex}.ai-tools-footer button{flex:1}.ai-tools :is(button,h2,textarea,summary,select):focus-visible{outline-offset:2px;outline:3px solid #2f80ed}.theme-dark .ai-tools{--ai-surface:#14231f;--ai-muted:#b0c0b6;--ai-primary-ink:#14231f}.theme-dark .ai-tools .ai-error{color:#ffc9c0;background:#492622}.theme-dark .ai-correction-change del{color:#ffc9c0}.theme-dark .ai-correction-change ins{color:#8fe3bd}.theme-dark .ai-tools :is(button,h2,textarea,summary,select):focus-visible{outline-color:#8fc5ff}@media (max-width:600px){.ai-tools{width:calc(100% - 16px);max-height:calc(var(--app-viewport-height,100dvh) - 16px);border-radius:14px;inset:8px 8px auto auto}.ai-tools-heading{padding:12px 16px}.ai-tools-body{padding:12px 16px 18px}.ai-tools-footer{padding:12px 16px}.ai-chips{grid-template-columns:repeat(2,minmax(0,1fr))}.ai-tools .ai-chip small{display:none}}@media print{.ai-tools,.ai-tools::backdrop{display:none!important}}
.comments-panel{inset:calc(var(--chrome-bottom,calc(var(--topbar-height,58px) + 89px)) + 12px) 16px auto auto;z-index:60;width:min(360px,100% - 32px);max-height:calc(var(--app-viewport-height,100dvh) - var(--chrome-bottom,calc(var(--topbar-height,58px) + 89px)) - 24px);background:var(--paper);border:1px solid var(--line);border-radius:18px;flex-direction:column;gap:10px;padding:16px 18px 20px;display:flex;position:fixed;box-shadow:0 16px 60px #14231f33}.comments-panel header{justify-content:space-between;align-items:center;display:flex}.comments-panel h2{margin:0;font-family:Georgia,serif;font-size:20px}.comments-hint,.comments-empty{color:var(--muted);margin:0;font-size:12px;line-height:1.5}.comments-list{overscroll-behavior:contain;overflow-y:auto}.comments-list ul{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.comments-list li{background:var(--surface,#fbfaf6);border:1px solid var(--line);border-left:3px solid #d9a441;border-radius:10px;flex-direction:column;gap:6px;padding:10px 12px;display:flex}.comments-list li.comment-done{border-left-color:var(--line);opacity:.62}.comment-quote{text-align:left;color:var(--muted);cursor:pointer;background:0 0;border:0;padding:0;font-size:12px;font-style:italic;line-height:1.4}.comment-quote:hover{color:var(--ink);text-decoration:underline}.comment-quote-gone{cursor:default;margin:0}.comment-quote-gone:hover{text-decoration:none}.comments-panel textarea{width:100%;min-height:46px;font:inherit;color:var(--ink);background:var(--paper);border:1px solid var(--line);resize:vertical;border-radius:8px;padding:6px 8px;font-size:13px;line-height:1.45}.comment-actions{align-items:center;gap:8px;display:flex}.comment-actions small{color:var(--muted);margin-right:auto;font-size:11px}.comment-actions button{background:var(--paper);border:1px solid var(--line);cursor:pointer;border-radius:999px;padding:3px 9px;font-size:12px}.comments-stray h3{color:var(--muted);margin:14px 0 6px;font-size:12px;font-weight:700}
