:root{color:#27362f;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--bg:#f4f5f1;--surface:#fff;--subtle:#f8f9f6;--text:#27362f;--muted:#7a847d;--line:#e2e7df;--accent:#176c58;--accent-soft:#e8f2eb;--blue:#e9f0fb;--blue-text:#416a99;--red:#a3524b;--red-bg:#fae9e4;--green:#2d6949;--green-bg:#e0efcb;--shadow:0 10px 50px #263b2a09;background:#f4f5f1;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#151c1a;--surface:#1c2521;--subtle:#202b26;--text:#e0e7e0;--muted:#99aa9f;--line:#334239;--accent:#a1d6b7;--accent-soft:#2b4235;--blue:#263b50;--blue-text:#a4c4e2;--red:#f0b0a5;--red-bg:#55332e;--green:#c4e4af;--green-bg:#344a29;--shadow:0 10px 50px #0002}*{box-sizing:border-box}body{color:var(--text);background:var(--bg);margin:0}button,input,textarea,select{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:7px;justify-content:center;align-items:center;gap:7px;min-height:32px;padding:5px 9px;font-size:12px;font-weight:550;display:inline-flex}button:hover:not(:disabled){background:var(--accent-soft)}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}svg{flex-shrink:0}input,textarea,select{outline:none}input:focus-visible,textarea:focus-visible,select:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 35%,transparent)}.app-shell{max-width:1920px;margin:auto}.topbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;height:81px;padding:0 42px;display:flex}.brand{color:var(--text);letter-spacing:-.9px;align-items:center;gap:11px;font-size:22px;font-weight:650;display:flex}.brand:hover{text-decoration:none}.brand-light{font-weight:400}.brand-mark{background:var(--accent);border-radius:9px;flex-direction:column;justify-content:center;gap:4px;width:32px;height:33px;padding:0 8px;display:flex;transform:rotate(-2deg)}.brand-mark span{background:var(--surface);border-radius:2px;width:16px;height:2px}.brand-mark span:nth-child(2){width:10px}.beta{letter-spacing:0;color:var(--muted);border:1px solid var(--line);border-radius:4px;align-self:center;margin-left:2px;padding:3px 4px;font:10px ui-monospace,monospace}.top-actions{align-items:center;gap:12px;display:flex}.connection-pill{border:1px solid var(--line);background:var(--surface);text-overflow:ellipsis;max-width:290px;padding:6px 12px;font-size:11px;font-weight:450;overflow:hidden}.dot{background:#adb4ae;border-radius:50%;flex-shrink:0;width:6px;height:6px}.connected .dot{background:#4aab7b;box-shadow:0 0 0 3px #4aab7b16}.icon-button{min-width:30px;color:var(--muted);padding:6px}.github-link{color:var(--muted);border-left:1px solid var(--line);padding-left:10px;font-size:12px}main{max-width:1660px;margin:auto;padding:35px 42px 20px}.document-bar{justify-content:space-between;align-items:center;margin-bottom:25px;display:flex}.document-title{flex-direction:column;align-items:flex-start;gap:5px;display:flex}.document-title input{letter-spacing:-.65px;background:0 0;border:0;border-radius:3px;width:clamp(180px,42vw,600px);max-width:600px;padding:0;font-size:24px;font-weight:530}.local-label{color:var(--muted);font-size:12px}.document-actions{align-items:center;gap:12px;display:flex}.document-actions button:first-child{border:1px solid var(--line);background:var(--surface);padding:7px 12px}.workspace-controls{justify-content:space-between;align-items:center;gap:15px;margin-bottom:13px;display:flex}.preset-control{align-items:center;gap:10px;display:flex}.small-label{letter-spacing:1.5px;color:var(--muted);font-size:9px;font-weight:650}.preset-control select{appearance:auto;background:0 0;border:0;max-width:190px;padding:5px 4px;font-size:12px;font-weight:550}.protection-summary{align-items:center;gap:10px;display:flex}.lock-summary{color:var(--accent);gap:6px;font-size:11px}.lock-summary b{font-weight:600}.divider{background:var(--line);width:1px;height:14px}.text-button{color:var(--muted);font-size:11px;font-weight:450}.workspace{grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);height:calc(100dvh - 360px);min-height:480px;max-height:1100px;display:grid}.editor-panel{border:1px solid var(--line);background:var(--surface);min-width:0;box-shadow:var(--shadow);border-radius:13px;flex-direction:column;display:flex;overflow:hidden}.panel-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;min-height:63px;padding:12px 19px;display:flex}.panel-title{align-items:center;gap:9px;min-width:0;display:flex}.panel-title h1,.panel-title h2{letter-spacing:-.25px;margin:0;font-size:14px;font-weight:600}.panel-number{color:var(--muted);padding-right:2px;font:10px ui-monospace,SFMono-Regular,monospace}.word-count{color:var(--muted);white-space:nowrap;margin-left:5px;font:10px ui-monospace,SFMono-Regular,monospace}.segmented{background:var(--subtle);border:1px solid var(--line);border-radius:7px;align-items:center;gap:2px;padding:3px;display:flex}.segmented button{min-height:25px;color:var(--muted);border-radius:4px;padding:3px 9px;font-size:10px;font-weight:450}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #00000010}.editor-body{flex:1;min-height:0;position:relative;overflow:hidden}.editor-host{width:100%;height:100%}.cm-editor{background:var(--surface);height:100%;color:var(--text);font-family:inherit;font-size:14px}.cm-editor.cm-focused{outline:none}.cm-scroller{font:inherit;scrollbar-width:thin;scrollbar-color:var(--line) transparent;line-height:1.9;overflow:auto}.cm-content{font:inherit;caret-color:var(--accent);padding:22px 23px 70px}.cm-line{padding:0 3px}.cm-gutters{display:none!important}.cm-activeLine{background:0 0!important}.cm-selectionBackground{background:color-mix(in srgb,var(--blue-text) 20%,transparent)!important}.cm-cursor{border-left-color:var(--accent)!important}.cm-line .locked{background:var(--blue);color:var(--blue-text);border-radius:2px}.cm-line .removed{background:var(--red-bg);color:var(--red);border-radius:2px;text-decoration:line-through;text-decoration-thickness:1px}.cm-line .added{background:var(--green-bg);color:var(--green);box-shadow:0 1px 0 color-mix(in srgb,var(--green) 25%,transparent);border-radius:2px}.middle-rail{justify-content:center;align-items:center;display:flex}.middle-rail>span{background:var(--bg);color:var(--muted);justify-content:center;align-items:center;display:flex}.empty-draft{pointer-events:none;position:absolute;top:57px;left:30px;right:30px}.empty-eyebrow{letter-spacing:1.5px;color:var(--muted);font-size:9px}.empty-draft p{letter-spacing:-.7px;margin:14px 0 9px;font-size:25px;font-weight:440}.empty-draft>span:last-of-type{color:var(--muted);max-width:270px;font-size:12px;line-height:1.7;display:block}.sample-button{pointer-events:auto;color:var(--accent);gap:13px;min-height:30px;margin-top:24px;padding:0;font-size:11px}.empty-result{text-align:center;flex-direction:column;justify-content:center;align-items:center;height:100%;min-height:270px;padding:25px;display:flex}.empty-result-symbol{border:1px solid var(--line);background:var(--subtle);width:52px;height:52px;color:var(--accent);border-radius:16px;justify-content:center;align-items:center;margin-bottom:15px;display:flex}.empty-result p{letter-spacing:-.85px;margin:0 0 15px;font-size:29px;font-weight:420;line-height:1.25}.empty-result>span:last-of-type{color:var(--muted);max-width:210px;font-size:11px;line-height:1.75}.diff-key{color:var(--muted);gap:17px;margin-top:28px;font-size:10px;display:flex}.diff-key>span{align-items:center;gap:5px;display:flex}.diff-key i{border-radius:2px;width:9px;height:9px;display:block}.removed-key{background:var(--red-bg);border:1px solid var(--red)}.added-key{background:var(--green-bg);border:1px solid var(--green)}.locked-key{background:var(--blue);border:1px solid var(--blue-text)}.panel-footer{border-top:1px solid var(--line);background:var(--surface);justify-content:space-between;align-items:center;gap:8px;min-height:49px;padding:8px 14px;display:flex}.footer-actions{align-items:center;gap:3px;display:flex}.footer-actions button{color:var(--muted);min-height:28px;padding:4px 7px;font-size:10px;font-weight:450}.footer-meta{color:var(--muted);white-space:nowrap;font:9px ui-monospace,monospace}.dot-separator{margin:0 7px}.edit-bar{justify-content:space-between;align-items:center;gap:16px;padding:17px 0 13px;display:flex}.edit-status{color:var(--muted);align-items:center;gap:8px;max-width:75%;font-size:11px;line-height:1.6;display:flex}.edit-status .muted{margin-left:5px;font:10px ui-monospace,monospace}.primary-button{background:var(--accent);color:var(--surface);border:1px solid #0000;gap:9px;min-height:41px;padding:11px 18px;font-size:12px;box-shadow:0 2px 4px #0001}.primary-button:hover:not(:disabled){background:var(--accent);filter:brightness(1.08)}.primary-button kbd{background:#ffffff20;border:1px solid #ffffff20;border-radius:4px;margin-left:15px;padding:2px 4px;font:9px inherit}.stop-button{background:var(--red);min-width:150px}.stop-button:hover:not(:disabled){background:var(--red)}.muted{color:var(--muted)}.spinner{border:1.5px solid;border-right-color:#0000;border-radius:50%;width:13px;height:13px;animation:.8s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.review-bar{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:9px 0 13px;display:flex}.check-label{cursor:pointer;color:var(--muted);align-items:center;gap:8px;font-size:11px;line-height:1.5;flex-direction:row!important;font-weight:400!important;display:flex!important}input[type=checkbox]{width:13px;height:13px;accent-color:var(--accent);flex-shrink:0;padding:0!important}.change-navigation{color:var(--muted);align-items:center;gap:6px;font:10px ui-monospace,monospace;display:flex}.change-navigation>span{margin-right:8px}.change-navigation button{min-height:25px;padding:3px}.issue-list{flex-direction:column;gap:5px;margin:0 0 18px;display:flex}.issue-list button{border:1px solid var(--line);background:var(--accent-soft);color:var(--accent);white-space:normal;text-align:left;justify-content:flex-start;padding:10px;font-size:11px}.issue-list button strong{white-space:nowrap}.issue-list button svg:last-child{margin-left:auto}.issue-list button span{font-weight:400}.app-footer{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;align-items:center;gap:12px;padding-top:15px;font-size:10px;display:flex}.app-footer .check-label{font-size:10px}.toast{background:var(--text);max-width:90vw;color:var(--surface);z-index:20;border-radius:9px;align-items:center;gap:15px;padding:10px 12px 10px 16px;font-size:12px;display:flex;position:fixed;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 8px 30px #0002}.toast button{color:inherit;min-height:22px;padding:2px}dialog{border:1px solid var(--line);background:var(--surface);width:min(560px,100vw - 32px);color:var(--text);border-radius:17px;max-height:88dvh;padding:0;box-shadow:0 25px 100px #0003}dialog::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#101f185a}.dialog-inner{padding:27px}.dialog-header{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:19px;display:flex}.dialog-header h2{letter-spacing:-.6px;margin:7px 0 0;font-size:23px;font-weight:500}.dialog-content{flex-direction:column;gap:17px;display:flex}.dialog-description{color:var(--muted);margin:0;font-size:12px;line-height:1.65}.dialog-content>label,.field-row>label{flex-direction:column;flex:1;gap:8px;min-width:0;font-size:11px;font-weight:550;display:flex}.dialog-content input:not([type=checkbox]),.dialog-content select,.dialog-content textarea{border:1px solid var(--line);background:var(--subtle);border-radius:7px;width:100%;min-width:0;padding:11px;font-size:12px}.dialog-content input[type=password]{letter-spacing:2px}.field-row{align-items:flex-end;gap:13px;display:flex}.field-row>.primary-button{margin-left:auto}.secondary-button{border:1px solid var(--line);background:var(--surface);min-height:38px;padding:8px 12px}.connection-test{height:39px;font-size:11px}.inline-status{color:var(--muted);overflow-wrap:anywhere;margin:0;font-size:11px;line-height:1.7}.full{width:100%}.preset-chips{flex-wrap:wrap;gap:7px;display:flex}.preset-chips button{border:1px solid var(--line);font-size:11px;font-weight:450}.preset-chips button.selected{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}.prompt-textarea{resize:vertical;min-height:230px;line-height:1.8}.lock-options{grid-template-columns:1fr 1fr;gap:15px;display:grid}.rule-toggle{cursor:pointer;align-items:flex-start;gap:9px;font-size:11px;display:flex}.rule-toggle input{margin-top:3px}.rule-toggle span{flex-direction:column;gap:4px;display:flex}.rule-toggle b{font-weight:550}.rule-toggle small{color:var(--muted);font-size:10px;line-height:1.6}.lock-list{max-height:200px;overflow:auto}.lock-list>div{border:1px solid var(--line);color:var(--blue-text);border-radius:7px;align-items:center;gap:8px;margin-bottom:6px;padding:8px;font-size:11px;display:flex}.lock-list>div>span{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.lock-list>div>button{min-height:23px;padding:2px}.lock-list>p,.dialog-content>span.muted{font-size:11px;line-height:1.6}.history-head{justify-content:space-between;align-items:center;font-size:11px;display:flex}.history-entry{text-align:left;border:1px solid var(--line);white-space:normal;justify-content:space-between;padding:14px}.history-entry span{flex-direction:column;gap:7px;display:flex}.history-entry b{font-size:12px;font-weight:550}.history-entry small{color:var(--muted);font-size:10px}.history-empty{color:var(--muted);flex-direction:column;align-items:center;padding:40px 0;font-size:12px;display:flex}.help-content p{margin:0;font-size:12px;line-height:1.8}.help-content a{font-size:12px}.help-content code{background:var(--subtle);border:1px solid var(--line);border-radius:3px;padding:2px 4px;font-size:11px}.markdown-preview{overflow-wrap:anywhere;scrollbar-width:thin;scrollbar-color:var(--line) transparent;height:100%;padding:24px 29px 60px;font-size:14px;line-height:1.85;overflow:auto}.markdown-preview>:first-child{margin-top:0}.markdown-preview h1{letter-spacing:-.7px;font-size:26px;font-weight:550;line-height:1.35}.markdown-preview h2{letter-spacing:-.4px;margin-top:1.7em;font-size:20px;font-weight:550}.markdown-preview h3{font-size:16px;font-weight:600}.markdown-preview p{margin:1em 0}.markdown-preview a{text-underline-offset:3px;text-decoration:underline}.markdown-preview code{background:var(--accent-soft);border-radius:4px;padding:2px 5px;font:12px ui-monospace,monospace}.markdown-preview pre{background:var(--subtle);border:1px solid var(--line);border-radius:8px;padding:15px;line-height:1.7;overflow:auto}.markdown-preview pre code{background:0 0;padding:0}.markdown-preview table{border-collapse:collapse;width:100%;font-size:12px}.markdown-preview td,.markdown-preview th{border:1px solid var(--line);text-align:left;padding:7px 10px}.markdown-preview blockquote{border-left:2px solid var(--accent);color:var(--muted);margin-left:0;padding-left:15px}.markdown-preview ul,.markdown-preview ol{padding-left:22px}.markdown-preview hr{border:0;border-top:1px solid var(--line);margin:2em 0}@media (width>=1600px){main{padding-top:45px}.workspace{height:calc(100dvh - 385px)}.cm-editor{font-size:15px}.cm-content{padding:28px 30px 80px}.panel-header{padding-left:25px;padding-right:25px}}@media (width<=1050px){.word-count{display:none}.topbar{padding:0 25px}main{padding:28px 25px 20px}.workspace{grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr)}.panel-header{padding:12px}.middle-rail svg{width:13px}.cm-content{padding-left:16px;padding-right:16px}.footer-meta{font-size:8px}.footer-actions button{gap:4px;padding:4px}.empty-draft{left:22px;right:18px}.empty-draft p{font-size:22px}}@media (width<=700px){.topbar{height:66px;padding:0 16px}.brand{gap:8px;font-size:20px}.brand-mark{width:29px;height:30px;padding-left:7px}.beta,.github-link,.hide-small{display:none}.top-actions{gap:5px}.connection-pill{max-width:145px;padding:5px 7px;font-size:9px}.top-actions>.icon-button{min-width:25px;padding:4px}.top-actions>.icon-button svg{width:16px}main{padding:23px 14px 16px}.document-title input{width:52vw;font-size:21px}.local-label{font-size:10px}.document-actions{gap:4px}.document-actions button{gap:5px;padding:5px 8px;font-size:10px}.document-bar{margin-bottom:20px}.workspace-controls{align-items:flex-start;gap:5px}.preset-control{flex-direction:column;align-items:flex-start;gap:4px}.small-label{font-size:8px}.preset-control select{max-width:150px;padding-left:0;font-size:11px}.protection-summary{flex-wrap:wrap;justify-content:flex-end;gap:2px;max-width:210px}.protection-summary .divider{display:none}.lock-summary{font-size:10px}.protection-summary>.text-button{gap:3px;padding-left:4px;padding-right:4px;font-size:10px}.workspace{grid-template-columns:1fr;gap:14px;height:auto;min-height:0}.editor-panel{height:470px}.middle-rail{display:none}.panel-header{min-height:56px;padding:12px 14px}.panel-number{font-size:9px}.word-count{font-size:9px;display:inline}.panel-title{gap:7px}.panel-title h1,.panel-title h2,.cm-editor{font-size:13px}.cm-content{padding:18px 16px 50px}.empty-draft{top:42px}.empty-result p{font-size:27px}.footer-meta{font-size:9px}.edit-bar{background:var(--bg);z-index:3;border-top:1px solid var(--line);margin-top:12px;padding:12px 0;position:sticky;bottom:0}.edit-status{flex-wrap:wrap;gap:5px;max-width:60%;font-size:10px}.edit-status>.muted{margin-left:0}.primary-button{min-height:38px;padding:10px 13px;font-size:11px}.primary-button kbd{display:none}.app-footer{flex-wrap:wrap;justify-content:center;gap:12px;font-size:9px}.app-footer>span:last-child{display:none}.app-footer .check-label{font-size:9px}.review-bar{font-size:10px}.change-navigation{gap:2px;font-size:9px}.change-navigation>span{margin-right:3px}.check-label{font-size:10px}.dialog-inner{padding:23px 19px}.dialog-header h2{font-size:21px}.field-row{gap:9px}.dialog-content input:not([type=checkbox]){padding:10px 8px;font-size:11px}.connection-test{padding:7px;font-size:10px}.lock-options{gap:12px}.issue-list button{flex-wrap:wrap;gap:5px;font-size:10px}.issue-list button span{width:85%;margin-left:20px}.markdown-preview{padding:20px;font-size:13px}.markdown-preview h1{font-size:23px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--text);background:var(--bg);--bg:#f8f6f3;--surface:#fff;--subtle:#f8f5f1;--text:#322d2a;--muted:#756b63;--line:#e7e0d8;--accent:#a55231;--accent-soft:#f6eae1;--on-accent:#fff9f4;--link:#925030;--syntax:#74665e;--ease:cubic-bezier(.2, .7, .2, 1)}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#111318;--surface:#1b1e25;--subtle:#232731;--text:#f2eee9;--muted:#b1a99f;--line:#383b42;--accent:#edac86;--accent-soft:#382d29;--on-accent:#241b16;--link:#efbd9e;--syntax:#c2b4a8;--blue:#293d58;--blue-text:#bfd8f5;--red-bg:#55332f;--red:#ffc3b7;--green-bg:#354f2c;--green:#d3efbd}html,body,#root{background:var(--bg);min-height:100%}body,#root,.app-shell{min-height:100dvh}.app-shell{flex-direction:column;display:flex}main{flex-direction:column;flex:1;width:100%;min-width:0;display:flex}.workspace{flex:1 0 420px;height:auto;min-height:420px;max-height:none}.editor-panel{height:auto;min-height:0}.brand-logo{width:37px;height:37px;transition:transform .2s var(--ease);flex-shrink:0}.brand:hover .brand-logo{transform:rotate(-3deg)}.privacy-note{color:var(--muted);align-items:center;gap:8px;margin:0;font-size:11px;line-height:1.6;display:flex}.privacy-note strong{color:var(--text);margin-right:4px;font-weight:550}.attribution a{color:var(--text)}.attribution a span{color:var(--muted);margin-left:5px}.waiting-result{height:100%;min-height:150px;color:var(--muted);justify-content:center;align-items:center;gap:10px;font-size:13px;display:flex}.connection-pill[data-connection-state=checking] .dot{background:#c89437;animation:1s ease-in-out infinite connection-pulse}.connection-pill[data-connection-state=error] .dot{background:var(--red)}@keyframes connection-pulse{50%{opacity:.35}}body,.topbar,.editor-panel,.panel-header,.panel-footer,.cm-editor,.segmented,.connection-pill,dialog,.edit-bar,.mobile-panes,button,input,select,textarea{transition:background-color .19s var(--ease), color .19s var(--ease), border-color .19s var(--ease), box-shadow .19s var(--ease)}button{transition:background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease)}button:active:not(:disabled){transform:translateY(1px)}.primary-button{color:var(--on-accent);border-radius:9px}input{accent-color:var(--accent)}.panel-number,.middle-rail,.attribution a:hover{color:var(--accent)}dialog::backdrop{background:#14121170}.primary-button:hover:not(:disabled){box-shadow:0 4px 12px color-mix(in srgb, var(--accent) 20%, transparent);transform:translateY(-1px)}.primary-button:active:not(:disabled){transform:translateY(0)}.theme-toggle svg{animation:theme-icon .22s var(--ease)}.github-link,.source-link{align-items:center;gap:4px;display:inline-flex}.github-link:hover,.source-link:hover{color:var(--accent)}.connection-pill{min-height:34px}.connection-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.connection-pill .dot{flex-shrink:0}.connection-pill:hover:not(:disabled){border-color:var(--accent)}.document-title input{padding:3px 0}.document-title input:focus-visible{box-shadow:0 2px 0 var(--accent)}.panel-title h1,.panel-title h2{letter-spacing:-.2px}.word-count,.footer-actions button{font-size:11px}.edit-status{font-size:12px}.empty-draft .sample-button{border:1px solid var(--line);background:var(--subtle);border-radius:8px;gap:10px;min-height:36px;padding:7px 11px;line-height:1.4}.empty-draft .sample-button:hover:not(:disabled){background:var(--accent-soft);border-color:color-mix(in srgb, var(--accent) 45%, var(--line))}.feedback-button{min-height:32px;color:var(--text);white-space:nowrap;background:0 0;border:0;border-radius:7px;justify-content:center;align-items:center;gap:7px;padding:5px 9px;font-size:12px;font-weight:550;display:inline-flex}.feedback-button:hover{background:var(--accent-soft);color:var(--accent);text-decoration:none}.workspace{animation:workspace-enter .3s var(--ease) both}.mobile-panes{display:none}.editor-host .cm-editor{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px}.editor-host .cm-scroller{font-family:inherit;line-height:1.9}.editor-host .cm-content{font:inherit;padding:25px 25px 70px}.editor-host .cm-line{padding:0 3px}.editor-host .cm-cursor{border-left-color:var(--accent)}.editor-host .cm-line .et-heading{font-size:1.08em;font-weight:600;text-decoration:none}.editor-host .cm-line .et-link{color:var(--link);text-decoration:none}.editor-host .cm-line .et-code{font-family:ui-monospace,SFMono-Regular,monospace;font-size:.92em}.editor-host .cm-line .et-emphasis{font-style:italic}.editor-host .cm-line .et-strong{font-weight:600}.editor-host .cm-line .et-notation{color:var(--syntax)}.editor-host .cm-line .et-link.et-notation{color:var(--link)}.editor-host .cm-line .locked,.editor-host .cm-line .removed,.editor-host .cm-line .added{-webkit-box-decoration-break:clone;box-decoration-break:clone}.editor-host .cm-line .removed{-webkit-text-decoration-color:var(--red);text-decoration-color:var(--red)}.editor-host .cm-line .removed *,.editor-host .cm-line .added *{color:inherit}.editor-host .cm-selectionBackground{border-radius:2px}dialog[open]{animation:dialog-enter .18s var(--ease) both}dialog[open]::backdrop{animation:.18s ease-out both backdrop-enter}.markdown-preview{animation:content-enter .14s var(--ease)}.dialog-content input:not([type=checkbox]):focus-visible,.dialog-content textarea:focus-visible,.dialog-content select:focus-visible{border-color:var(--accent)}.dialog-content input,.dialog-content textarea,.dialog-content select{font-weight:400}.result-dot{background:var(--accent);border-radius:50%;width:6px;height:6px}@keyframes workspace-enter{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes dialog-enter{0%{opacity:0;transform:translateY(7px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes backdrop-enter{0%{opacity:0}to{opacity:1}}@keyframes content-enter{0%{opacity:.5}to{opacity:1}}@keyframes theme-icon{0%{opacity:.4;transform:rotate(-25deg)scale(.85)}to{opacity:1;transform:rotate(0)scale(1)}}@media (width>=1600px){.editor-host .cm-editor{font-size:15px}.editor-host .cm-content{padding:29px 31px 80px}}@media (width<=1050px){.editor-host .cm-content{padding:23px 19px 65px}}@media (width<=700px){.brand-logo{width:32px;height:32px}.privacy-note{align-items:flex-start;margin:0;font-size:10px}.github-link{display:none}.document-bar{gap:12px}.document-title{flex:1;min-width:0}.document-title input{text-overflow:ellipsis;width:100%;min-width:0}.document-actions{flex-shrink:0}.feedback-button{padding:5px 8px}.mobile-panes{background:var(--line);border-radius:10px;align-items:center;gap:4px;margin:0 0 11px;padding:4px;display:flex}.mobile-panes button{min-height:33px;color:var(--muted);border-radius:7px;flex:1;font-size:12px}.mobile-panes button>span{opacity:.7;font:9px ui-monospace,monospace}.mobile-panes button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0001}.workspace{flex-direction:column;flex:1 0 330px;min-height:330px;display:flex}.workspace[data-mobile-pane=original] .result-panel,.workspace[data-mobile-pane=edited] .draft-panel{display:none}.editor-panel{flex:1;height:auto;min-height:330px;max-height:none}.workspace-controls{min-height:49px;margin-bottom:12px}.protection-summary{max-width:190px}.protection-summary button{min-height:27px}.editor-host .cm-editor{font-size:14px}.editor-host .cm-content{padding:21px 17px 48px}.editor-host .cm-scroller{line-height:1.85}.edit-bar{border-top:0;margin-top:0;padding:13px 0;position:static}.edit-status{font-size:11px}.primary-button{min-height:40px;font-size:12px}.footer-actions button{min-height:30px;font-size:11px}.panel-title .word-count{font-size:10px}.app-footer{gap:8px 18px;padding-top:12px;line-height:1.6}.app-footer,.app-footer .check-label{font-size:10px}.app-footer .attribution{text-align:center;width:100%}.empty-result>span:last-of-type{font-size:12px}.diff-key{font-size:11px}}@media (width<=360px){.brand-logo{width:28px;height:28px}.topbar{padding:0 12px}.brand{gap:6px;font-size:18px}.brand-mark{width:26px;height:28px;padding-left:5px}.connection-pill{max-width:110px}.top-actions{gap:2px}.document-bar{flex-wrap:wrap}.document-title{flex-basis:100%}.document-actions{gap:2px;margin-left:auto}.document-actions button{padding:5px}.document-title input{font-size:19px}.word-count{display:none!important}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.provider-presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;display:grid}.provider-presets button{border:1px solid var(--line);min-height:35px;padding:6px;font-size:10px;font-weight:450}.provider-presets button[aria-pressed=true]{color:var(--accent);background:var(--accent-soft);border-color:var(--accent)}.connection-content{gap:14px}.connection-content .connection-privacy{color:var(--text);font-size:12px;line-height:1.7}.connection-test-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.connection-test-row .connection-test{flex:1;min-height:39px}.connection-result{border:1px solid var(--line);background:var(--subtle);color:var(--muted);overflow-wrap:anywhere;border-radius:8px;align-items:flex-start;gap:9px;padding:12px;font-size:12px;line-height:1.6;display:flex}.connection-result svg,.connection-result .spinner{margin-top:2px}.connection-result.connected,.connection-result.checking{color:var(--accent);background:var(--accent-soft);border-color:color-mix(in srgb, var(--accent) 35%, var(--line))}.connection-result.error{color:var(--red);background:var(--red-bg);border-color:color-mix(in srgb, var(--red) 40%, var(--line))}.model-field{flex-direction:column;gap:5px;display:flex}.model-field label{flex-direction:column;gap:8px;font-size:11px;font-weight:550;display:flex}.model-field>button{align-self:flex-end;min-height:22px;padding:2px;font-size:10px}.provider-help{color:var(--muted);margin:0;font-size:11px;line-height:1.65}.provider-help a{white-space:nowrap;align-items:center;gap:3px;display:inline-flex}@media (width<=360px){.provider-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.provider-presets button{font-size:10px}}.cm-tooltip.fact-tooltip{border:1px solid color-mix(in srgb, var(--accent) 25%, var(--line));background:var(--accent);border-radius:8px;overflow:hidden;box-shadow:0 5px 18px #0002}.fact-tooltip button{background:var(--accent);color:var(--on-accent);min-height:33px;padding:6px 12px;font-size:11px}.fact-tooltip button:hover:not(:disabled){background:var(--accent);filter:brightness(1.08)}.fact-tooltip button:focus-visible{outline:2px solid var(--on-accent);outline-offset:-4px}.retained-review{border-top:1px solid var(--line);background:var(--subtle);flex-shrink:0}.retained-heading{color:var(--accent);cursor:pointer;border-radius:3px;align-items:center;gap:7px;min-height:35px;padding:8px 14px;list-style:none;display:flex}.retained-heading::-webkit-details-marker{display:none}.retained-heading:hover{background:var(--accent-soft)}.retained-heading:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}.retained-count{flex:1;font-size:11px;font-weight:550}.retained-chevron{transition:transform .16s var(--ease)}.retained-review details[open] .retained-chevron{transform:rotate(180deg)}.retained-review ol{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent;max-height:125px;margin:0 10px 8px;padding:0;list-style:none;overflow-y:auto}.retained-review li+li{border-top:1px solid var(--line)}.retained-review li{align-items:center;gap:7px;display:flex}.retained-review button{white-space:normal;text-align:left;justify-content:space-between;gap:14px;width:100%;padding:7px 4px;display:flex}.retained-review button.active{background:var(--accent-soft)}.retained-review .retained-locate{flex:1;width:auto;min-width:0}.retained-review .retry-passage{width:auto;min-height:32px;color:var(--accent);background:var(--surface);border:1px solid var(--line);white-space:nowrap;flex-shrink:0;gap:5px;padding:5px 8px;font-size:10px}.retained-review .retry-passage:hover:not(:disabled){background:var(--accent-soft);border-color:var(--accent)}.retained-review .retry-passage:disabled{opacity:.65}.retained-detail{flex-direction:column;gap:4px;min-width:0;display:flex}.retained-detail strong{text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:450;overflow:hidden}.retained-detail small{color:var(--muted);font-size:10px;font-weight:400;line-height:1.5}.locate-label{color:var(--accent);flex-shrink:0;font-size:10px}.editor-host .cm-line .retained-passage{background:color-mix(in srgb, var(--accent) 8%, transparent);-webkit-text-decoration:underline dotted color-mix(in srgb, var(--accent) 55%, transparent);text-decoration:underline dotted color-mix(in srgb, var(--accent) 55%, transparent);text-underline-offset:4px}.editor-host .cm-line .review-focus{background:var(--accent-soft);box-shadow:0 0 0 1px var(--accent);-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:2px}.editor-host .cm-line .review-focus *{color:inherit}@media (width<=700px){.retained-heading{padding:8px 12px}.retained-review ol{max-height:110px}.retained-review button{gap:9px}}.workspace-preferences{justify-content:space-between;align-items:center;gap:12px 24px;margin:0;display:flex}.workspace-preferences .privacy-note{margin:0}.save-drafts-control{white-space:nowrap;flex-shrink:0}.panel-title{flex-wrap:wrap;gap:4px 9px}.document-stats{color:var(--muted);align-items:center;gap:6px;font:10px ui-monospace,SFMono-Regular,monospace;display:inline-flex}.document-stats .word-count{font:inherit;margin:0;display:inline!important}.reading-time{white-space:nowrap}.edit-feedback{flex-direction:column;gap:5px;min-width:0;display:flex}.edit-feedback .edit-status{max-width:none}.run-metrics{color:var(--muted);flex-wrap:wrap;align-items:center;gap:6px;font:10px/1.5 ui-monospace,SFMono-Regular,monospace;display:flex}.run-metrics svg{color:var(--accent)}.footer-links{align-items:center;gap:19px;display:flex}.footer-links a{color:var(--muted);align-items:center;gap:4px;display:inline-flex}.footer-links a:hover{color:var(--accent)}.protection-helper{background:var(--accent-soft);border:1px solid color-mix(in srgb, var(--accent) 20%, var(--line));border-radius:8px;align-items:flex-start;gap:10px;padding:12px;display:flex}.protection-helper svg{color:var(--accent);margin-top:2px}.protection-helper p{margin:0;font-size:12px;line-height:1.7}.rule-toggle small{font-size:11px}@media (width<=1050px){.document-stats{flex-wrap:wrap;flex-basis:100%;row-gap:3px;padding-left:22px}.workspace-preferences{flex-wrap:wrap}}@media (width<=700px){.workspace-preferences{flex-direction:column;align-items:flex-start;gap:8px;margin:0}.save-drafts-control{font-size:10px}.panel-title{column-gap:7px}.document-stats{gap:4px;padding-left:19px;font-size:9px}.edit-feedback{max-width:62%}.run-metrics{gap:5px;font-size:9px}.app-footer{justify-content:space-between}.app-footer .attribution{text-align:left;width:auto}.footer-links{gap:12px}}@media (width<=560px){.lock-options{grid-template-columns:1fr}}@media (width<=420px){.app-footer{justify-content:center;gap:7px}.app-footer .attribution{text-align:center;width:100%}}.middle-rail .scroll-link{min-width:26px;min-height:30px;color:var(--muted);padding:5px}.middle-rail .scroll-link[aria-pressed=true]{color:var(--accent);background:var(--accent-soft)}.middle-rail .scroll-link svg{width:16px}.preview-scroll-anchor{height:0;display:block}.markdown-preview>:nth-child(1 of :not(.preview-scroll-anchor)){margin-top:0}.structure-promise{border:1px solid color-mix(in srgb, var(--accent) 24%, var(--line));background:var(--accent-soft);animation:content-enter .14s var(--ease);border-radius:9px;flex-direction:column;gap:10px;margin:0 0 24px;padding:12px 16px;display:flex}.structure-overview{align-items:center;gap:12px 20px;display:flex}.structure-pipeline{color:var(--accent);flex-shrink:0}.structure-pipeline strong{align-items:center;gap:9px;font-size:12px;font-weight:600;display:flex}.structure-pipeline strong span{opacity:.7;font-weight:400}.structure-overview p{color:var(--text);flex:1;margin:0;font-size:12px;line-height:1.6}.structure-overview button{color:var(--accent);flex-shrink:0}.structure-promise .workspace-preferences{border-top:1px solid color-mix(in srgb, var(--accent) 18%, var(--line));padding-top:10px}.structure-promise.is-compact{background:0 0;border:0;margin-bottom:20px;padding:0;animation:none}.structure-promise.is-compact .workspace-preferences{border-top:0;padding-top:0}@media (width<=900px){.structure-overview{grid-template-columns:1fr auto;gap:5px 10px;display:grid}.structure-overview p{grid-area:2/1/auto/-1;font-size:11px}.structure-overview button{grid-area:1/2}}@media (width<=700px){.structure-promise{margin-bottom:20px;padding:10px 12px}.structure-pipeline strong{gap:6px;font-size:11px}.structure-overview button{padding:3px 0;font-size:10px}.empty-draft{top:18px}.empty-result{min-height:0;padding:12px 16px}.empty-result-symbol{border-radius:10px;width:34px;height:34px;margin-bottom:10px}.empty-result p{margin-bottom:10px;font-size:24px}.empty-result>span:last-of-type{max-width:230px;font-size:11px;line-height:1.6}.empty-result .diff-key{gap:14px;margin-top:16px;font-size:10px}}.result-panel .panel-header{flex-wrap:wrap;row-gap:8px}.result-panel .panel-title{flex:1;min-width:100px}.result-panel .segmented{flex-shrink:0;margin-left:auto}.result-source{height:100%}.editing-result{border-color:color-mix(in srgb, var(--accent) 65%, var(--line))}.result-panel .cm-line .locked,.result-panel .cm-line .locked *{color:var(--blue-text);background:var(--blue);box-shadow:none;text-decoration:none}.result-edit-note{color:var(--muted);background:var(--subtle);border-bottom:1px solid var(--line);margin:0;padding:8px 18px;font-size:11px;line-height:1.6}.panel-header{flex-wrap:wrap;row-gap:8px}.draft-panel .panel-title{flex:1;min-width:100px}.panel-actions{align-items:center;gap:6px;margin-left:auto;display:flex}.pane-collapse{min-width:28px;padding:5px}.collapsed-handle{display:none}.edit-actions{flex-shrink:0;align-items:center;gap:12px;display:flex}.edit-actions .save-drafts-control{margin-right:6px}.focus-exit kbd{color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:2px 4px;font:9px ui-monospace,monospace}@media (width>=701px){.workspace[data-collapsed=original]{grid-template-columns:42px 20px minmax(0,1fr)}.workspace[data-collapsed=edited]{grid-template-columns:minmax(0,1fr) 20px 42px}.workspace:not([data-collapsed=none]) .middle-rail{visibility:hidden}.editor-panel[data-collapsed=true]>:not(.collapsed-handle){display:none}.editor-panel[data-collapsed=true] .collapsed-handle{background:var(--subtle);width:100%;height:100%;color:var(--muted);border-radius:0;flex-direction:column;justify-content:flex-start;gap:14px;padding:17px 0;display:flex}.collapsed-handle span{writing-mode:vertical-rl;letter-spacing:.4px;font-size:11px}.editor-panel .collapsed-handle:hover{background:var(--accent-soft);color:var(--accent)}}html.editor-focus{overflow:hidden}.app-shell.focus-mode{z-index:10;background:var(--bg);width:100%;max-width:none;height:100dvh;margin:0;position:fixed;inset:0;overflow:hidden}.focus-mode>.topbar,.focus-mode .structure-promise,.focus-mode .document-bar,.focus-mode .workspace-controls,.focus-mode .app-footer{display:none}.focus-mode main{max-width:none;min-height:0;margin:0;padding:8px 10px 0;overflow:hidden}.focus-mode .workspace{flex:1 1 0;height:auto;min-height:0;max-height:none;animation:none}.focus-mode .editor-panel{height:100%;min-height:0}.focus-mode .edit-bar{flex-shrink:0;min-height:50px;margin:0;padding:6px 0}.focus-mode .edit-feedback{min-width:0}.focus-mode .edit-status{font-size:11px}.focus-mode .review-bar{flex-shrink:0;padding:5px 0 7px}.focus-mode .primary-button{min-height:34px;padding:8px 14px}.focus-mode .run-metrics{display:none}@media (width<=700px){.pane-collapse{display:none}.panel-actions{gap:0}.edit-bar{flex-wrap:wrap;row-gap:8px}.edit-bar .edit-feedback{flex-basis:100%;max-width:none}.edit-actions{justify-content:flex-end;width:100%}.edit-actions .save-drafts-control{white-space:normal;min-width:0;margin-right:0}.save-drafts-control span{min-width:0}.focus-mode main{padding:6px 8px 0}.focus-mode .mobile-panes{flex-shrink:0;margin-bottom:6px;padding:3px}.focus-mode .mobile-panes button{min-height:30px}.focus-mode .edit-bar{align-items:flex-start;gap:7px;padding:8px 0}.focus-mode .edit-actions{gap:5px}.focus-mode .focus-exit{min-width:30px;margin-right:auto;padding:5px}.focus-mode .focus-exit span,.focus-mode .focus-exit kbd{display:none}.focus-mode .edit-feedback{max-width:none}.focus-mode .primary-button{padding:8px 10px}}
