:root{--void: #141312;--fog: #fbfaf9;--mist: #f0efec;--ink: #1b1917;--mute: #78716c;--line: #e8e6e2;--paper: #ffffff;--panel: #f5f4f2;--warn: #9a3412;--warn-bg: #fdf0e6;--focus: #e5484d;--accent: #e5484d;--accent-strong: #d23a3f;--accent-soft: #fcebe9;--glow: rgba(255, 255, 255, .7);--radius: 10px;--radius-lg: 16px;--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-6: 24px;--radius-sm: 6px;--radius-md: 12px;--dur-fast: .12s;--dur-med: .16s;--ease-out: cubic-bezier(.22, 1, .36, 1);--shadow: 0 12px 32px rgba(0, 0, 0, .12);--shadow-soft: 0 1px 3px rgba(0, 0, 0, .05);--shadow-pop: 0 4px 16.4px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .06);--ring: rgba(229, 72, 77, .22);--user-bg: #221f1c;--user-fg: #faf8f6;--assistant-bg: #ffffff;--assistant-border: #e8e6e2;--chip-bg: #f0efec;--workspace: #eceae6;--office-bar: #faf9f7;--office-control: #3f3b37;--office-hover: #efede9;--office-active: #d23a3f;--office-active-bg: #fcebe9;--office-mode-border: #ddd9d4;--office-mode-fg: #6e6862;--office-mode-active-bg: #35312d;--office-mode-active-fg: #ffffff;--office-save-bg: #e5484d;--office-save-fg: #ffffff;--office-disabled-bg: #e9e6e2;--office-disabled-fg: #8a857f;--solid-bg: #1b1917;--solid-fg: #faf8f6}:root[data-theme=dark]{--void: #eceae6;--fog: #161514;--mist: #2a2825;--ink: #f0ede9;--mute: #a09a93;--line: #363230;--paper: #201e1c;--panel: #1a1816;--warn: #eba36a;--warn-bg: #3a2a1e;--focus: #f16a6e;--accent: #f16a6e;--accent-strong: #f48286;--accent-soft: rgba(229, 72, 77, .16);--glow: rgba(255, 255, 255, .08);--shadow: 0 12px 32px rgba(0, 0, 0, .4);--shadow-soft: 0 1px 3px rgba(0, 0, 0, .3);--shadow-pop: 0 4px 16.4px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .3);--ring: rgba(241, 106, 110, .35);--user-bg: #35312d;--user-fg: #f5f2ee;--assistant-bg: #232120;--assistant-border: #363230;--chip-bg: #2a2825;--workspace: #2a2825;--office-bar: #221f1d;--office-control: #ddd9d4;--office-hover: #2e2b28;--office-active: #f48286;--office-active-bg: rgba(229, 72, 77, .2);--office-mode-border: #4a4541;--office-mode-fg: #b8b2ab;--office-mode-active-bg: #e8e5e1;--office-mode-active-fg: #1b1917;--office-save-bg: #f16a6e;--office-save-fg: #1b1314;--office-disabled-bg: #2e2b28;--office-disabled-fg: #7d7873;--solid-bg: #eceae6;--solid-fg: #1b1917;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,Roboto,Noto Sans,Helvetica Neue,Arial,PingFang SC,Source Han Sans SC,Microsoft YaHei UI,Microsoft YaHei,Noto Sans CJK SC,sans-serif;color:var(--ink);background:var(--fog)}button,textarea,select{font:inherit}.app{height:100%}.app.hosted-miwrite{--focus: #ff5c00;--accent: #ff5c00;--accent-strong: #d94e00;--accent-soft: rgba(255, 92, 0, .1);--ring: rgba(255, 92, 0, .22);--office-active: #d94e00;--office-active-bg: #fff0e8;--office-save-bg: #ff5c00}.app.chat-only{display:flex;flex-direction:column;align-items:center;justify-content:stretch;padding:0}.app.with-doc{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,390px);width:100%;height:100dvh;gap:0;min-height:100%;overflow:hidden}.canvas-pane,.chat-pane{min-height:0;display:flex;flex-direction:column}.canvas-pane{padding:0;overflow:hidden;position:relative}.chat-pane{width:100%;padding:0;background:var(--panel);border-left:1px solid var(--line)}.chat-pane.landing{width:min(760px,100%);height:100%;min-height:100%;padding:0 1.25rem;display:flex;flex-direction:column;background:transparent;border-left:0;-webkit-backdrop-filter:none;backdrop-filter:none}.chat-pane.landing.stage{justify-content:stretch}.landing-stage{flex:1;min-height:0;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:1.75rem;padding:1rem 0 2.5rem;animation:hero-rise .7s cubic-bezier(.22,1,.36,1) both}.shell-bar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.85rem .15rem .35rem;animation:in .35s ease both}.chat-pane:not(.landing) .shell-bar{min-height:48px;padding:.5rem .85rem;border-bottom:1px solid var(--line);background:var(--paper)}.shell-brand{display:flex;align-items:baseline;gap:.65rem;min-width:0}.shell-spacer{display:inline-block;width:0}.shell-logo{font-weight:650;font-size:.95rem;letter-spacing:0}.shell-actions{display:flex;align-items:center;gap:.4rem;flex-shrink:0}.layout-control,.theme-control{display:inline-flex;align-items:center;padding:2px;border:1px solid var(--line);border-radius:8px}.layout-control button,.theme-control button{width:26px;height:24px;display:grid;place-items:center;border:0;border-radius:6px;color:var(--mute);background:transparent;cursor:pointer}.layout-control button:hover,.layout-control button.active,.theme-control button:hover,.theme-control button.active{color:var(--ink);background:var(--mist)}.connection-state{width:12px;height:12px;display:grid;place-items:center}.connection-state i{width:6px;height:6px;border-radius:50%;background:var(--mute)}.connection-state.ok i{background:#1a9e56}.connection-state.warn i{background:#c27a1c}.cascade-card{display:grid;gap:.55rem;padding:.75rem .85rem;border:1px solid color-mix(in srgb,var(--accent) 28%,var(--line));border-radius:12px;background:color-mix(in srgb,var(--accent-soft) 70%,var(--paper))}.cascade-title{margin:0;font-size:.82rem;font-weight:600;color:var(--ink)}.cascade-list{list-style:none;margin:0;padding:0;display:grid;gap:.35rem}.cascade-list label{display:grid;grid-template-columns:auto 1fr auto;gap:.45rem;align-items:start;font-size:.82rem;cursor:pointer}.cascade-reason{color:var(--ink);line-height:1.4}.cascade-id{color:var(--mute);font-size:.68rem;font-family:ui-monospace,monospace}.cascade-actions{display:flex;justify-content:flex-end;gap:.4rem}.chat-hero{text-align:center;padding:0 .5rem}.hero-eyebrow{margin:0 0 .65rem;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:var(--mute)}.brand{font-family:inherit;font-weight:700;font-size:3.4rem;letter-spacing:0;margin:0;line-height:.92;color:var(--ink)}.hero-line{margin:1rem auto 0;color:var(--mute);font-size:1.05rem;font-weight:400;max-width:26rem;line-height:1.55}.landing-composer{width:min(640px,100%);margin:0 auto;padding:0!important;background:transparent!important;position:relative!important;animation:composer-rise .75s cubic-bezier(.22,1,.36,1) .08s both}.doc-bar{position:relative;z-index:20;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:1.15rem;padding:.45rem .75rem .45rem 1rem;border-bottom:1px solid var(--line);background:var(--paper)}.doc-heading{min-width:0;display:flex;align-items:center;gap:.55rem}.doc-title{min-width:0;overflow:hidden;color:var(--ink);font-size:.82rem;font-weight:600;text-overflow:ellipsis;white-space:nowrap;letter-spacing:0}.doc-dirty,.doc-pending{flex:0 0 auto;color:var(--mute);font-size:.7rem}.doc-dirty{color:var(--warn)}.doc-bar-actions{display:flex;align-items:center;gap:.15rem}.hosted-doc-bar{padding-left:.55rem}.hosted-breadcrumb{min-width:0;flex:1;display:flex;align-items:center;gap:.35rem}.hosted-document-brand{display:inline-flex;width:26px;height:26px;flex:0 0 26px;align-items:center;justify-content:center}.hosted-document-brand img{display:block;width:26px;height:26px}.hosted-project-link{min-width:0;max-width:min(15rem,38%);height:30px;display:inline-flex;align-items:center;gap:.35rem;padding:0 .45rem;border:0;border-radius:6px;color:var(--mute);background:transparent;cursor:pointer;font-size:.76rem}.hosted-project-link:hover:not(:disabled){color:var(--ink);background:var(--mist)}.hosted-project-link:disabled{cursor:not-allowed;opacity:.5}.hosted-all-docs-link{flex:0 0 auto;height:30px;padding:0 .4rem;border:0;border-radius:6px;color:var(--mute);background:transparent;cursor:pointer;font-size:.74rem}.hosted-all-docs-link:hover:not(:disabled){color:var(--ink);background:var(--mist)}.hosted-all-docs-link:disabled{cursor:not-allowed;opacity:.5}.hosted-project-link span,.hosted-project-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hosted-project-name{color:var(--mute);font-size:.76rem}.hosted-breadcrumb-separator{flex:0 0 auto;color:var(--mute)}.hosted-document-state,.doc-saved{display:flex;align-items:center}.hosted-document-state{flex:0 0 auto;gap:.4rem}.hosted-balance{color:var(--text-muted);font-size:12px;white-space:nowrap}.hosted-home-button{color:var(--mute)}.hosted-recharge-link{min-height:30px;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:.35rem;padding:0 .55rem;border:1px solid color-mix(in srgb,var(--accent) 65%,var(--line));border-radius:7px;color:var(--accent-strong);background:color-mix(in srgb,var(--accent) 8%,var(--paper));font-size:.72rem;font-weight:650;text-decoration:none}.hosted-recharge-link:hover{border-color:var(--accent);color:#fff;background:var(--accent)}.hosted-model-control{min-width:0;max-width:min(34rem,42vw);display:grid;justify-items:end;gap:2px}.hosted-model-row{min-width:0;max-width:100%;display:flex;align-items:center;gap:.25rem}.hosted-model-select{min-width:0;height:30px;display:inline-flex;align-items:center;gap:.35rem;padding-left:.45rem;border:1px solid var(--line);border-radius:8px;color:var(--mute);background:var(--paper);font-size:.72rem;white-space:nowrap}.hosted-model-select select{width:min(23rem,31vw);min-width:8rem;height:28px;padding:0 1.55rem 0 .25rem;border:0;border-radius:7px;color:var(--ink);background:var(--paper);font-weight:650;cursor:pointer}.hosted-model-select select:focus-visible{outline:2px solid var(--ring);outline-offset:-2px}.hosted-model-select select:disabled{cursor:not-allowed;opacity:.55}.hosted-model-refresh{width:30px;height:30px;flex:0 0 30px;display:inline-grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:6px;color:var(--mute);background:var(--paper);cursor:pointer}.hosted-model-refresh:hover:not(:disabled),.hosted-model-refresh:focus-visible{border-color:var(--accent);color:var(--accent);outline:0}.hosted-model-refresh:disabled{cursor:wait;opacity:.5}.hosted-model-meta{min-width:0;max-width:100%;display:flex;align-items:center;justify-content:flex-end;gap:.2rem .45rem;overflow:hidden;color:var(--mute);font-size:.58rem;line-height:1.2;white-space:nowrap}.hosted-model-meta>span,.hosted-model-meta>strong{overflow:hidden;text-overflow:ellipsis}.hosted-model-meta>strong{color:var(--accent-strong);font-weight:700}.hosted-model-health{display:inline-flex;align-items:center;gap:.25rem;color:var(--mute);font-weight:650}.hosted-model-health i{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#8a857f}.hosted-model-health[data-state=available] i{background:#16803d}.hosted-model-health[data-state=checking] i{background:#d97706}.hosted-model-health[data-state=unavailable]{color:#b33a3f}.hosted-model-health[data-state=unavailable] i{background:#c33c42}.hosted-research-button{display:inline-flex;align-items:center;gap:.35rem;min-height:30px;padding:0 .55rem;border:1px solid color-mix(in srgb,var(--accent) 45%,var(--line));border-radius:6px;color:var(--accent-strong);background:var(--accent-soft);font:inherit;font-size:.74rem;font-weight:650;white-space:nowrap;cursor:pointer}.hosted-research-button:hover:not(:disabled){color:#fff;background:var(--accent-strong)}.hosted-research-button:disabled{cursor:not-allowed;opacity:.45}.doc-saved{gap:.2rem;color:var(--mute);font-size:.7rem;white-space:nowrap}.doc-saved-revision{font-variant-numeric:tabular-nums}.review-timeline{position:relative}.timeline-toggle{color:var(--mute)}.timeline-panel{position:absolute;top:calc(100% + .45rem);right:0;width:min(360px,calc(100vw - 2rem));max-height:18rem;overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:.5rem .65rem .65rem;box-shadow:var(--shadow-pop)}.timeline-heading,.source-picker-heading{min-height:2rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem;font-size:.78rem;font-weight:600}.timeline-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.4rem}.timeline-list li{display:flex;flex-direction:column;gap:.15rem;font-size:.78rem}.timeline-list li.fail{opacity:.75}.timeline-meta{color:var(--mute)}.timeline-rationale{color:var(--ink)}.timeline-empty{margin:0;font-size:.78rem;color:var(--mute)}.paper{flex:1;min-height:0;margin-top:0;background:var(--paper);border:1px solid color-mix(in srgb,var(--line) 85%,transparent);border-radius:0;overflow:auto;padding:2.4rem 2.6rem 3rem;box-shadow:var(--shadow-soft)}.office-workspace{flex:1;min-height:0;margin-top:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);background:var(--workspace)}.office-toolbar{z-index:12;min-height:44px;display:flex;align-items:center;gap:.35rem;padding:.35rem .45rem;border-bottom:1px solid var(--line);background:var(--office-bar);color:var(--ink);overflow-x:auto;scrollbar-width:thin}.office-tool-group{height:32px;display:inline-flex;align-items:center;gap:1px;padding-right:.35rem;border-right:1px solid var(--line);flex:0 0 auto}.office-select{height:28px;border:1px solid var(--line);border-radius:6px;padding:0 1.5rem 0 .45rem;color:var(--office-control);background:var(--office-bar);font-size:.7rem;outline:none}.office-select:focus{border-color:var(--accent)}.office-select:disabled{opacity:.45}.office-font{width:144px}.office-size{width:58px}.office-tool,.office-zoom{position:relative;width:32px;height:32px;display:inline-grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--office-control);cursor:pointer;flex:0 0 auto}.office-tool svg,.office-mode svg,.office-save svg{width:17px;height:17px;stroke-width:1.8}.office-tool:hover:not(:disabled),.office-zoom:hover:not(:disabled){background:var(--office-hover)}.office-tool.active{color:var(--office-active);background:var(--office-active-bg)}.office-tool:disabled,.office-zoom:disabled{opacity:.35;cursor:not-allowed}.office-zoom{width:43px;font-size:.7rem;font-variant-numeric:tabular-nums}.office-toolbar-spacer{flex:1 0 .35rem}.office-mode{height:32px;display:inline-flex;overflow:hidden;border:1px solid var(--office-mode-border);border-radius:8px;flex:0 0 auto}.office-mode button{height:30px;display:inline-flex;align-items:center;gap:.3rem;padding:0 .55rem;border:0;background:transparent;color:var(--office-mode-fg);cursor:pointer;font-size:.72rem}.office-mode button.active{color:var(--office-mode-active-fg);background:var(--office-mode-active-bg)}.office-save{height:32px;min-width:76px;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;padding:0 .65rem;border:0;border-radius:8px;color:var(--office-save-fg);background:var(--office-save-bg);cursor:pointer;font-size:.74rem;flex:0 0 auto}.office-save:disabled{color:var(--office-disabled-fg);background:var(--office-disabled-bg);cursor:not-allowed}.office-tool-count{position:absolute;top:1px;right:1px;min-width:13px;height:13px;display:grid;place-items:center;padding:0 2px;border-radius:7px;color:#fff;background:var(--accent);font-size:8px;line-height:1}.office-body{position:relative;flex:1;display:flex;min-height:0;overflow:hidden}.app.with-doc.layout-document{grid-template-columns:minmax(0,1fr) minmax(300px,320px)}.app.with-doc.layout-balanced{grid-template-columns:minmax(0,1fr) minmax(360px,390px)}.app.with-doc.layout-chat{grid-template-columns:minmax(520px,.9fr) minmax(440px,1.1fr)}.office-canvas-scroll{position:relative;flex:1;min-width:0;min-height:0;overflow:auto;background:var(--workspace);overscroll-behavior:contain}.office-editor{min-width:794px;min-height:100%;padding:20px 28px 48px}.office-loading{position:sticky;top:1rem;left:1rem;z-index:5;width:fit-content;margin:1rem;padding:.5rem .7rem;border:1px solid #ddd9d4;background:#fffffff0;color:#5d6165;font-size:.78rem}.office-error{padding:.55rem .75rem;border-bottom:1px solid #c78170;color:#7f2f20;background:#fff0ec;font-size:.78rem}.office-review-rail{position:relative;z-index:2;width:min(340px,36%);flex:0 0 min(340px,36%);display:flex;flex-direction:column;border-left:1px solid #ddd9d4;background:#f7f6f4;box-shadow:none}.office-review-rail>header{min-height:46px;display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;padding:.75rem .85rem;border-bottom:1px solid #dadcde}.office-review-rail>header strong{font-size:.86rem}.office-review-rail>header span{color:#696d71;font-size:.7rem}.office-review-warning{margin:0;padding:.55rem .85rem;border-bottom:1px solid #e1c7b9;color:#7c452f;background:#fff3eb;font-size:.74rem;line-height:1.45}.office-review-list{flex:1;min-height:0;overflow:auto;padding:.7rem}.office-proposal{margin:0 0 .65rem;padding:.75rem;border:1px solid #e6e0d6;border-radius:10px;background:#fffdfa;font-size:.78rem}.office-proposal .label{color:#935133;font-size:.67rem;font-weight:600}.office-proposal .hint{margin:.35rem 0;line-height:1.45}.office-compare{display:grid;gap:.4rem;margin:.55rem 0}.office-compare>div{padding:.45rem .5rem;border-left:2px solid #ddd9d4;background:#f4f4f3}.office-compare>div+div{border-left-color:#3b8069;background:#eff8f4}.office-compare span{color:#777b7e;font-size:.65rem}.office-compare p{margin:.2rem 0 0;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.office-proposal textarea{width:100%;min-height:7rem;resize:vertical;padding:.5rem;border:1px solid #bbbfc2;background:#fff;color:#202124}.office-proposal .actions{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.55rem}.office-proposal .btn{min-height:30px;padding:.35rem .7rem;border-radius:4px;font-size:.72rem}.office-review-empty{margin:1rem 0;color:#777b7e;text-align:center;font-size:.78rem}.office-comment{margin:.45rem 0;padding:.5rem .6rem;border-left:2px solid #81878b;color:#565b5f;background:#fff;font-size:.75rem;line-height:1.45}.office-comment.warn{border-left-color:#a34a34;color:#6d3327;background:#fff5f1}.spin{animation:office-spin .8s linear infinite}@keyframes office-spin{to{transform:rotate(360deg)}}.ProseMirror{outline:none;font-family:inherit;font-size:1.12rem;line-height:1.78;max-width:38rem;font-optical-sizing:auto}.ProseMirror p{margin:0 0 1.1rem}.ProseMirror h1,.ProseMirror h2,.ProseMirror h3{font-weight:650;line-height:1.25;margin:1.5rem 0 .75rem;letter-spacing:0}.ProseMirror h1{font-size:1.7rem}.ProseMirror h2{font-size:1.35rem}.ProseMirror h3{font-size:1.15rem}.margin-block-wrap.is-pending{margin:.35rem 0 .85rem}.pending-rail,.pending-card{margin:.45rem 0 .85rem;padding:.9rem 1rem;background:color-mix(in srgb,var(--warn-bg) 88%,var(--paper));border:1px solid color-mix(in srgb,var(--warn) 22%,var(--line));border-radius:12px;font-family:inherit;font-size:.86rem}.pending-rail .label,.pending-card .label{font-size:.68rem;letter-spacing:0;text-transform:uppercase;color:var(--warn);margin-bottom:.35rem}.pending-rail .hint{color:var(--mute);font-size:.82rem;margin-bottom:.55rem}.pending-rail .compare,.pending-card .compare{display:grid;gap:.45rem;margin:.4rem 0 .7rem}.pending-rail .col,.pending-card .compare div{padding:.5rem .6rem;background:#ffffffb8;border-radius:8px}.pending-rail .col-label{display:block;font-size:.68rem;color:var(--mute);margin-bottom:.25rem}.pending-rail .patch-context{margin:-.2rem 0 .6rem;padding:0 .6rem;color:var(--mute);font-size:.78rem;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}.pending-rail .actions,.pending-card .actions{display:flex;flex-wrap:wrap;gap:.4rem}.pending-rail .btn.ok,.pending-card .btn.ok{background:var(--accent)}.messages{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:1rem;padding:.75rem 0 1rem}.chat-pane:not(.landing) .messages{gap:1.1rem;padding:1.25rem 1rem 1.5rem}.turn{display:grid;gap:.3rem;max-width:100%;animation:in .3s ease both}.turn.user{justify-items:end}.turn.assistant{justify-items:start}.turn.system{justify-items:center}.turn-meta{font-size:.66rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--mute);padding:0 .2rem}.bubble{max-width:min(100%,34rem);padding:.6rem .8rem;border:0;border-radius:8px;white-space:pre-wrap;word-break:break-word;font-size:.92rem;line-height:1.62;box-shadow:var(--shadow-soft)}.bubble.user{max-width:min(88%,30rem);padding:.55rem .8rem;background:var(--user-bg);color:var(--user-fg);border-radius:16px 16px 4px;font-size:.95rem;font-weight:500;text-align:left}.bubble.assistant{max-width:min(100%,40rem);background:var(--assistant-bg);color:var(--ink);border:1px solid var(--assistant-border);border-radius:16px 16px 16px 4px;font-family:inherit;font-size:.94rem;line-height:1.65;letter-spacing:0;box-shadow:none;white-space:pre-wrap}.bubble.system{max-width:min(100%,30rem);background:transparent;border:1px dashed var(--assistant-border);border-radius:999px;box-shadow:none;color:var(--mute);font-size:.78rem;padding:.3rem .85rem;text-align:center}.bubble.assistant .md{white-space:normal}.bubble.assistant .md>:first-child{margin-top:0}.bubble.assistant .md>:last-child{margin-bottom:0}.composer-wrap{display:grid;gap:.55rem;padding:.35rem 0 1.35rem;position:sticky;bottom:0;background:transparent}.chat-pane:not(.landing) .composer-wrap{padding:.5rem .85rem .85rem;background:var(--panel)}.context-strip{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.45rem .7rem;border:0;border-left:2px solid var(--line);border-radius:0;color:var(--mute);font-size:.78rem;background:transparent}.task-receipt{display:flex;align-items:center;gap:.55rem;min-height:1.55rem;padding:.3rem .6rem;border:1px solid var(--line);border-radius:999px;background:var(--chip-bg);color:var(--mute);font-size:.7rem}.task-receipt:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--accent)}.task-receipt.interrupted:before{background:var(--warn)}.task-receipt button{border:0;padding:0;color:var(--accent);background:transparent;font:inherit;cursor:pointer}.context-strip span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.context-strip .linkish{flex:0 0 auto;white-space:nowrap}.source-picker{position:relative;flex:0 0 auto}.source-picker-toggle{position:relative;color:var(--mute)}.source-picker.has-sources .source-picker-toggle{color:var(--accent)}.source-picker-toggle:disabled,.source-picker-list input:disabled{cursor:not-allowed;opacity:.45}.source-count{position:absolute;top:-2px;right:-2px;min-width:14px;height:14px;display:grid;place-items:center;padding:0 3px;border-radius:7px;color:#fff;background:var(--accent);font-size:8px;line-height:1}.source-picker-panel{position:absolute;bottom:calc(100% + .55rem);left:0;z-index:40;width:min(330px,calc(100vw - 2rem));max-height:18rem;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:.35rem;background:var(--paper);box-shadow:var(--shadow-pop)}.source-picker-list{list-style:none;margin:0;padding:0;display:grid}.source-picker-list label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.5rem;min-height:2rem;padding:.35rem .45rem;color:var(--ink);cursor:pointer;font-size:.78rem}.source-picker-list label:hover{background:var(--panel)}.source-picker-list label span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-picker-note{margin:0;padding:.45rem .5rem;color:var(--mute);font-size:.78rem}.source-picker-note.error{color:var(--warn)}.proposal-evidence{display:flex;align-items:flex-start;flex-wrap:wrap;gap:.35rem;min-width:0;margin-top:.3rem;color:var(--mute);font-size:.7rem}.proposal-evidence>span{flex:0 0 auto}.proposal-evidence code{min-width:0;overflow:hidden;color:var(--accent);font:inherit;text-overflow:ellipsis;white-space:nowrap}.evidence-ref{min-width:0;max-width:100%}.evidence-ref>button{max-width:100%;overflow:hidden;border:0;padding:0;color:var(--accent);background:transparent;font:inherit;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.evidence-ref p{margin:.35rem 0 0;padding-left:.55rem;border-left:1px solid var(--line);color:var(--ink);white-space:pre-wrap}.evidence-ref p.error{color:var(--warn)}.linkish{border:0;background:transparent;color:var(--ink);text-decoration:underline;cursor:pointer;font-size:inherit;padding:0}.composer-card{display:grid;gap:.35rem;border:1px solid var(--line);border-radius:14px;background:var(--paper);box-shadow:var(--shadow-soft);padding:.65rem .7rem .55rem;transition:box-shadow .25s ease,border-color .25s ease,transform .25s ease}.composer-card:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--ring),0 4px 14px #00000012;transform:none}.landing-composer .composer-card{border-radius:18px;padding:1rem 1.1rem .8rem}.chip.accent{background:var(--accent);border-color:var(--accent);color:#fff}.chip.accent:hover:not(:disabled){filter:brightness(1.05)}@keyframes hero-rise{0%{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}@keyframes composer-rise{0%{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}@keyframes pane-in{0%{opacity:0;transform:translate(-8px)}to{opacity:1;transform:none}}@keyframes in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@media(max-width:960px){.app.with-doc{grid-template-columns:1fr;grid-template-rows:minmax(0,58fr) minmax(0,42fr);height:100dvh}.app.with-doc.layout-document,.app.with-doc.layout-balanced,.app.with-doc.layout-chat{grid-template-columns:1fr}.layout-control{display:none}.chat-pane:not(.landing){border-top:1px solid var(--line);border-left:0}.paper{padding:1.4rem 1.35rem 2rem}.brand{font-size:2.8rem}.landing-stage{justify-content:flex-start;padding-top:10vh}.shell-bar{flex-wrap:nowrap}.source-picker-panel{max-height:7.5rem}.office-body:has(.office-review-rail) .office-canvas-scroll{display:none}.office-review-rail{width:100%;flex:1;border-top:1px solid #ddd9d4;border-left:0}}.composer-card.busy{opacity:1}.composer-card textarea{width:100%;resize:none;border:0;border-radius:0;padding:.35rem .25rem;background:transparent;color:var(--ink);outline:none;min-height:3.2rem}.composer-footer{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.composer-tools{min-width:0;display:flex;align-items:center;gap:.4rem}.composer-hint{min-width:0;overflow:hidden;color:var(--mute);font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}.busy-dot{width:6px;height:6px;display:inline-block;margin-right:.4rem;border-radius:50%;background:#1a9e56;animation:busy-pulse 1.2s ease-in-out infinite}@keyframes busy-pulse{50%{opacity:.3}}.icon-button{width:32px;height:32px;display:inline-grid;flex:0 0 32px;place-items:center;border:0;border-radius:8px;padding:0;color:var(--mute);background:transparent;cursor:pointer}.icon-button:hover:not(:disabled){color:var(--ink);background:var(--mist)}.icon-button:disabled{cursor:not-allowed;opacity:.38}.icon-button.send{border-radius:10px;color:var(--user-fg);background:var(--accent)}.icon-button.send:hover:not(:disabled){color:var(--user-fg);background:var(--accent-strong);filter:brightness(1.12)}.btn{border:0;background:var(--solid-bg);color:var(--solid-fg);padding:.5rem .9rem;border-radius:8px;cursor:pointer;font-weight:500;letter-spacing:0}.btn.send{min-width:4.5rem}.btn:hover:not(:disabled){background:color-mix(in srgb,var(--solid-bg) 88%,#ffffff)}.btn:disabled{opacity:.35;cursor:not-allowed}.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:8px}.prompt-chips{display:flex;flex-wrap:wrap;gap:.45rem}.chip{border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:.42rem .75rem;border-radius:999px;cursor:pointer;font-size:.82rem}.chip:hover:not(:disabled){border-color:var(--ink)}.chip:disabled{opacity:.4;cursor:not-allowed}.hint{color:var(--mute);font-size:.8rem}.canvas-status{position:sticky;top:0;z-index:5;margin:-.35rem 0 1rem;padding:.5rem 0;border-bottom:1px solid var(--line);color:var(--mute);font-size:.82rem;background:color-mix(in srgb,var(--fog) 88%,transparent)}.side-notes{margin:.35rem 0 .5rem;display:grid;gap:.3rem}.side-note{border-left:2px solid var(--line);padding:.35rem .55rem;color:var(--mute);font-size:.82rem;line-height:1.45;font-family:inherit}.side-note.warn{border-left-color:var(--warn);color:var(--ink);background:var(--warn-bg)}.batch-bar{margin-top:1rem;padding-top:.75rem;border-top:1px dashed var(--line)}.sel-bubble{position:fixed;z-index:80;display:flex;gap:0;padding:0;background:var(--paper);border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:var(--shadow-pop);max-width:calc(100vw - 24px)}.sel-bubble button{border:0;border-left:1px solid color-mix(in srgb,var(--ink) 14%,transparent);background:transparent;color:var(--ink);padding:.45rem .75rem;white-space:nowrap;cursor:pointer;font-size:.82rem}.sel-bubble button:first-of-type{border-left:0}.sel-bubble button:hover:not(:disabled){background:var(--accent-soft);color:var(--accent)}.sel-bubble button:disabled{opacity:.4;cursor:not-allowed}.selection-limit{display:inline-flex;align-items:center;padding:0 .65rem;border-right:1px solid color-mix(in srgb,var(--ink) 18%,transparent);color:var(--ink);font-size:.75rem;white-space:nowrap}.translation-popover{position:fixed;z-index:96;display:grid;grid-template-rows:auto minmax(0,auto) minmax(44px,1fr) auto;gap:.55rem;padding:.7rem .8rem;background:var(--paper);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow-pop);overflow:hidden}.translation-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem;cursor:move;touch-action:none;-webkit-user-select:none;user-select:none}.translation-heading strong{font-size:.86rem;font-weight:600}.translation-heading button,.translation-actions button{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:30px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--ink);cursor:pointer;font:inherit;font-size:.78rem}.translation-heading button{width:30px;padding:0}.translation-heading button:hover,.translation-actions button:hover{border-color:var(--accent);color:var(--accent)}.translation-source{margin:0;padding:.45rem .55rem;border-left:2px solid var(--line);color:var(--mute);font-size:.78rem;line-height:1.5;max-height:7rem;overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap}.translation-body{min-height:44px;color:var(--ink);font-size:.92rem;line-height:1.65;overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap}.translation-body p{margin:0}.translation-body .spin{width:20px;height:20px;color:var(--accent);animation:margin-spin .9s linear infinite}.translation-actions{display:flex;justify-content:flex-end;gap:.4rem}.translation-actions button{padding:0 .7rem}@keyframes margin-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.rewrite-prompt-backdrop{position:fixed;inset:0;z-index:110;background:#00000080;display:grid;place-items:center;padding:1rem}.rewrite-prompt{width:min(440px,100%);background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:1rem 1.1rem .9rem;display:grid;gap:.65rem}.rewrite-prompt h2{margin:0;font-family:inherit;font-size:1.2rem;font-weight:500}.rewrite-excerpt{margin:0;color:var(--mute);font-size:.82rem;line-height:1.45;max-height:4.2em;overflow:hidden}.rewrite-prompt textarea{width:100%;resize:vertical;border:1px solid var(--line);border-radius:8px;padding:.55rem .65rem;background:var(--fog);color:var(--ink)}.rewrite-prompt textarea:focus{outline:3px solid var(--ring);border-color:var(--accent)}.rewrite-prompt-actions{display:flex;justify-content:flex-end;gap:.45rem}.ctx-menu{position:fixed;z-index:90;min-width:132px;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:.25rem;box-shadow:var(--shadow-pop);max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow-y:auto}.ctx-menu button{display:block;width:100%;text-align:left;border:0;border-radius:8px;background:transparent;padding:.5rem .7rem;cursor:pointer}.ctx-menu button:hover{background:var(--mist)}.ctx-menu button:disabled{color:var(--mute);cursor:not-allowed}.ctx-menu button:hover:disabled{background:transparent}.ctx-menu button:hover:not(:disabled){background:var(--accent-soft);color:var(--accent)}.ctx-menu-group{margin-top:.2rem;padding-top:.2rem;border-top:1px solid var(--line)}.ctx-menu .artifact-workflow-button{display:flex;align-items:center;gap:.45rem}.ctx-menu .artifact-workflow-button svg{width:15px;height:15px;flex:0 0 auto}.thread-backdrop{position:fixed;inset:0;z-index:100}.thread-popover{position:fixed;z-index:101;width:520px;max-width:calc(100vw - 24px);display:flex;flex-direction:column;overflow:hidden;background:var(--paper);border:1px solid color-mix(in srgb,var(--ink) 16%,var(--line));border-radius:16px;box-shadow:0 1px 3px #0e121414,0 16px 44px #0e12142e;animation:overlay-in var(--dur-med) var(--ease-out)}.thread-head{display:flex;align-items:flex-start;gap:.4rem;padding:.6rem .65rem .5rem .85rem;border-bottom:1px solid var(--line);cursor:grab;touch-action:none}.thread-head:active{cursor:grabbing}.thread-quote{flex:1;min-width:0;margin:0;padding-left:.55rem;border-left:2px solid var(--accent);color:var(--mute);font-size:.74rem;line-height:1.5;max-height:4.5em;overflow:hidden;overflow-wrap:anywhere}.thread-head .icon-button{flex:none;width:24px;height:24px;color:var(--mute)}.thread-stale{margin:0;padding:.4rem .85rem;color:var(--warn);background:color-mix(in srgb,var(--warn-bg) 70%,var(--paper));font-size:.7rem}.thread-scroll{flex:1;min-height:0;overflow-y:auto;padding:.7rem .85rem .4rem;display:grid;gap:.7rem;align-content:start}.thread-proposal{gap:.6rem}.thread-proposal .review-heading{padding-bottom:.45rem}.thread-proposal .review-fragment{padding:.5rem .1rem}.thread-notes{display:grid;gap:.3rem}.thread-notes p{margin:0;padding:.4rem .6rem;border-left:2px solid #c9a227;background:color-mix(in srgb,#c9a227 7%,var(--paper));font-size:.74rem;line-height:1.5}.thread-notes p.warn{border-left-color:var(--warn);background:color-mix(in srgb,var(--warn-bg) 72%,var(--paper))}.thread-messages{display:grid;gap:.45rem}.thread-message{margin:0;max-width:92%;font-size:.78rem;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.thread-message[data-role=user]{justify-self:end;padding:.4rem .6rem;border-radius:12px 12px 4px;color:var(--ink);background:var(--accent-soft)}.thread-message[data-role=assistant]{justify-self:start;color:var(--ink)}.thread-status{margin:0;color:var(--mute);font-size:.72rem}.thread-status:before{content:"";display:inline-block;width:6px;height:6px;margin-right:.4rem;border-radius:50%;background:var(--accent);animation:thread-pulse 1s ease-in-out infinite}@keyframes thread-pulse{0%,to{opacity:.35}50%{opacity:1}}.thread-empty{margin:0;color:var(--mute);font-size:.74rem;line-height:1.6}.thread-composer{display:flex;align-items:flex-end;gap:.4rem;padding:.5rem .55rem .55rem;border-top:1px solid var(--line)}.thread-composer textarea{flex:1;min-width:0;resize:none;border:1px solid var(--line);border-radius:10px;padding:.45rem .55rem;background:var(--panel);color:var(--ink);font-size:.8rem;line-height:1.45}.thread-composer textarea:focus{outline:2px solid color-mix(in srgb,var(--accent) 45%,transparent);outline-offset:0;border-color:var(--accent)}.thread-send{flex:none;width:30px;height:30px;border-radius:8px;color:#fff;background:var(--accent)}.thread-send:disabled{color:var(--mute);background:var(--mist)}.anchor-rail{position:absolute;z-index:40;top:0;right:0;bottom:0;width:26px;pointer-events:none}.anchor-dot{position:absolute;right:4px;width:19px;height:19px;display:grid;place-items:center;padding:0;border:1px solid color-mix(in srgb,var(--ink) 18%,var(--line));border-radius:50%;color:var(--mute);background:var(--paper);box-shadow:0 1px 4px #0e121424;cursor:pointer;pointer-events:auto;transform:translateY(-50%);transition:transform .12s ease,background .12s ease,color .12s ease}.anchor-dot:hover{transform:translateY(-50%) scale(1.18);color:var(--ink)}.anchor-dot.pending{border-color:var(--accent);color:#fff;background:var(--accent)}.anchor-dot.active{box-shadow:0 0 0 2px var(--paper),0 0 0 4px var(--accent)}.review-threads{display:grid;gap:.35rem;margin-bottom:.9rem}.review-thread-item{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.45rem .6rem;border:1px solid var(--line);border-radius:10px;background:var(--paper);cursor:pointer;text-align:left}.review-thread-item:hover{border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}.review-thread-item.active{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.review-thread-excerpt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-size:.76rem}.review-thread-item b,.review-thread-item i{flex:none;font-size:.66rem;font-style:normal;font-weight:600}.review-thread-item b{color:var(--accent)}.review-thread-item i{color:var(--mute)}.selection-limit-menu{max-width:16rem;margin:0;padding:.55rem .7rem;border-bottom:1px solid var(--line);color:var(--mute);font-size:.76rem;line-height:1.45}.empty-paper{color:var(--mute);font-family:inherit;font-size:1.15rem;line-height:1.6;max-width:26rem}.boot-error{max-width:26rem;margin:5rem auto;padding:2rem}.hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.chat-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.settings-trigger{flex-shrink:0;padding:.4rem .75rem;font-size:.78rem;letter-spacing:0}.settings-overlay{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:1rem;background:#00000080;animation:in .25s ease both}.settings-panel{width:min(440px,100%);max-height:min(92vh,820px);overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:1.25rem 1.35rem 0;box-shadow:var(--shadow);display:grid;gap:1rem}.settings-panel.wide{width:min(580px,100%)}.settings-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.settings-head h2{margin:0;font-family:inherit;font-size:1.35rem;font-weight:600;letter-spacing:0}.settings-head p{margin:.3rem 0 0;color:var(--mute);font-size:.82rem;line-height:1.45}.settings-close{width:2rem;height:2rem;flex:0 0 2rem;display:grid;place-items:center;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--mute);cursor:pointer;font-size:1.45rem;line-height:1}.settings-close:hover{border-color:var(--line);color:var(--ink)}.settings-close:disabled{cursor:not-allowed;opacity:.45}.settings-format{display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.settings-format button{min-height:2.35rem;border:0;border-radius:8px;background:transparent;color:var(--mute);cursor:pointer;font:inherit;font-size:.82rem}.settings-format button.active{background:var(--paper);color:var(--ink);box-shadow:0 1px 3px #1111101f}.settings-format button:disabled{cursor:not-allowed;opacity:.5}.settings-field{display:grid;gap:.35rem}.settings-field span{font-size:.78rem;color:var(--mute);letter-spacing:0}.settings-field-note{min-width:0;color:var(--mute);font-size:.72rem;line-height:1.4}.settings-field-note code{color:var(--ink);font-size:inherit;overflow-wrap:anywhere}.settings-field input:not([type=checkbox]),.settings-field select,.settings-model-group>input,.settings-model-group>select{width:100%;min-width:0;min-height:2.75rem;border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:.7rem .8rem;border-radius:8px;font:inherit}.settings-field input:not([type=checkbox]):focus,.settings-field select:focus,.settings-model-group>input:focus,.settings-model-group>select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--ring)}.settings-model-group{display:grid;gap:.35rem}.settings-field-head{min-height:1.25rem;display:flex;align-items:center;justify-content:space-between;gap:.75rem;color:var(--mute);font-size:.78rem}.settings-discover-row,.settings-test-row{display:flex;align-items:center;gap:.75rem}.settings-result{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:baseline;gap:.5rem;margin:-.25rem 0 0;padding:.55rem .7rem;border-left:3px solid var(--accent);background:var(--accent-soft);font-size:.78rem}.settings-result.err{border-left-color:var(--warn);background:var(--warn-bg)}.settings-latency{color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}.settings-result-detail{min-width:0;color:var(--mute);overflow-wrap:anywhere}.settings-advanced{border-top:1px solid var(--line);padding-top:.75rem}.settings-advanced summary{color:var(--mute);cursor:pointer;font-size:.8rem}.settings-advanced[open] summary{color:var(--ink)}.settings-advanced-grid{display:grid;grid-template-columns:1fr;gap:.8rem;padding:.85rem 0 0}.settings-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem;margin-top:.25rem}.settings-footer{position:sticky;bottom:0;margin:0 -1.35rem;padding:.85rem 1.35rem 1rem;border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent);background:color-mix(in srgb,var(--paper) 96%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.settings-msg{margin:0;font-size:.85rem;line-height:1.4}.settings-msg.err{color:var(--warn)}.settings-msg.ok{color:var(--mute)}.extensions-panel{width:min(620px,calc(100vw - 2rem));gap:.8rem}.extensions-panel .settings-close svg{width:17px;height:17px}.extensions-tabs{width:fit-content;display:inline-grid;grid-template-columns:repeat(2,minmax(7rem,1fr));gap:2px;padding:2px;border:1px solid var(--line);border-radius:10px;background:var(--mist)}.extensions-tabs button{min-height:32px;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:0 .8rem;border:0;border-radius:8px;color:var(--mute);background:transparent;cursor:pointer;font-size:.78rem}.extensions-tabs button.active{color:var(--ink);background:var(--paper);box-shadow:0 1px 3px #12141614}.extensions-tabs svg,.extensions-actions svg,.extensions-panel .settings-discover-row svg{width:15px;height:15px}.extensions-body>[role=tabpanel]{display:grid;gap:1.15rem}.extensions-body>[role=tabpanel][hidden]{display:none}.extensions-section{display:grid;gap:.6rem}.extensions-list{max-height:15rem;margin:0;padding:0;list-style:none;overflow:auto;border-top:1px solid var(--line)}.extensions-list li{display:grid;gap:.25rem;padding:.65rem 0;border-bottom:1px solid var(--line)}.extensions-row-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-width:0}.extensions-row-head>div:first-child{min-width:0;display:flex;align-items:baseline;gap:.55rem}.extensions-list strong{font-size:.76rem}.extensions-row-head span,.extensions-list p,.settings-field-head small{color:var(--mute)}.extensions-row-head span{font-size:.7rem}.extensions-list p{margin:0;font-size:.74rem;line-height:1.45;overflow-wrap:anywhere}.extensions-row-actions{display:flex;align-items:center;flex:0 0 auto;gap:.1rem}.extensions-row-actions .icon-button,.extensions-row-head>.icon-button,.extensions-panel .settings-field-head .icon-button{width:28px;height:28px;flex-basis:28px}.extensions-row-actions svg,.extensions-row-head>.icon-button svg,.extensions-panel .settings-field-head .icon-button svg{width:15px;height:15px}.icon-button.danger:hover:not(:disabled){color:var(--warn);background:var(--warn-bg)}.extensions-empty{margin:0;padding:.45rem 0;color:var(--mute);font-size:.74rem}.extensions-import textarea{min-height:9rem;resize:vertical;padding:.7rem;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--paper);font:.76rem/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}.extensions-file{width:100%;color:var(--mute);font-size:.72rem}.mcp-section{padding-top:.9rem;border-top:1px solid var(--line)}.mcp-fields{display:grid;grid-template-columns:.65fr 1.35fr;gap:.5rem}.mcp-fields label{min-width:0;display:grid;gap:.3rem;color:var(--mute);font-size:.72rem}.mcp-fields label:last-child{grid-column:1 / -1}.mcp-fields input{min-width:0;padding:.58rem .65rem;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--paper)}.mcp-tool-list{max-height:12rem;margin:0;padding:0;overflow:auto;list-style:none;border:1px solid var(--line);border-radius:10px}.mcp-tool-list li{display:grid;gap:.2rem;padding:.5rem .6rem;border-bottom:1px solid var(--line)}.mcp-tool-list li:last-child{border-bottom:0}.mcp-tool-list label{display:flex;align-items:center;gap:.45rem;font-size:.76rem}.mcp-tool-list small{padding-left:1.35rem;color:var(--mute);font-size:.68rem}.extensions-actions{position:sticky;bottom:0;margin:0 -1.35rem;padding:.8rem 1.35rem 1rem;border-top:1px solid var(--line);background:color-mix(in srgb,var(--paper) 96%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.extensions-actions .btn,.extensions-panel .settings-discover-row .btn,.settings-test-row .btn,.settings-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem}@media(max-width:640px){.office-history-tools{order:-2}.office-zoom-tools{order:-1}.extensions-panel{gap:.75rem}.extensions-tabs{width:100%;grid-template-columns:1fr 1fr}.mcp-fields{grid-template-columns:1fr}.mcp-fields label:last-child{grid-column:auto}.extensions-actions{margin:0 -1rem;padding:.8rem 1rem calc(.9rem + env(safe-area-inset-bottom))}}@media(max-width:640px){.app.with-doc{grid-template-rows:minmax(0,60fr) minmax(0,40fr)}.doc-bar,.chat-pane:not(.landing) .shell-bar{min-height:44px;padding-top:.35rem;padding-bottom:.35rem}.doc-pending{display:none}.chat-pane:not(.landing) .composer-wrap{padding:.35rem .65rem calc(.65rem + env(safe-area-inset-bottom))}.composer-card{padding:.5rem .55rem .45rem}.composer-card textarea{min-height:2.6rem}.composer-hint{max-width:13rem}.settings-overlay{place-items:stretch;padding:0}.settings-panel,.settings-panel.wide{width:100%;max-height:100dvh;min-height:100dvh;border:0;border-radius:0;padding:1rem 1rem 0}.settings-discover-row .btn,.settings-test-row .btn{min-height:2.75rem}.settings-discover-row,.settings-test-row{align-items:flex-start;flex-direction:column}.settings-advanced-grid{grid-template-columns:1fr}.settings-result{grid-template-columns:1fr auto}.settings-result-detail{grid-column:1 / -1}.settings-footer{position:static;margin:0 -1rem;padding:.8rem 1rem calc(.9rem + env(safe-area-inset-bottom))}}.app.with-doc.layout-dock{grid-template-columns:minmax(0,1fr) var(--sidecar-width, 380px)}.app.with-doc.layout-float,.app.with-doc.layout-focus{grid-template-columns:minmax(0,1fr)}.app.with-doc.layout-focus .office-editor{display:flex;justify-content:center}.sidecar-shell{position:relative;min-width:0;min-height:0;overflow:hidden;background:var(--panel)}.sidecar-shell>.chat-pane{height:100%}.sidecar-shell.landing-shell{display:contents}.layout-float .sidecar-shell:not(.landing-shell){position:fixed;z-index:60;min-width:340px;min-height:360px;border:1px solid color-mix(in srgb,var(--ink) 20%,var(--line));border-radius:14px;box-shadow:0 18px 46px #0e121433}.layout-float .sidecar-shell .chat-pane{border-left:0}.layout-float .sidecar-shell .shell-bar{cursor:move}.layout-focus .sidecar-shell:not(.landing-shell){display:none}.sidecar-dock-resizer{position:absolute;z-index:70;top:0;bottom:0;left:-4px;width:8px;cursor:col-resize}.sidecar-dock-resizer:after{content:"";position:absolute;top:0;bottom:0;left:3px;width:1px;background:var(--line)}.sidecar-dock-resizer:hover:after{width:2px;background:var(--accent)}.sidecar-float-resizer{position:absolute;z-index:70;right:0;bottom:0;width:18px;height:18px;cursor:nwse-resize}.sidecar-float-resizer:before,.sidecar-float-resizer:after{content:"";position:absolute;right:4px;bottom:4px;width:8px;height:1px;background:var(--mute);transform:rotate(-45deg);transform-origin:right center}.sidecar-float-resizer:after{right:7px;bottom:4px;width:5px}.sidecar-launcher{position:fixed;z-index:55;right:18px;bottom:18px;width:44px;height:44px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--ink) 24%,var(--line));border-radius:50%;color:var(--solid-fg);background:var(--solid-bg);box-shadow:var(--shadow);cursor:pointer}.sidecar-launcher svg{width:19px;height:19px}.sidecar-launcher span{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px;border-radius:9px;color:#fff;background:var(--accent);font-size:9px}.doc-pending{padding:0;border:0;color:var(--warn);background:transparent;cursor:pointer;font:inherit;font-size:.7rem}.activity-tabs{align-self:auto;display:flex;align-items:stretch;gap:.4rem;padding:.45rem .85rem .55rem;border-bottom:1px solid var(--line);background:var(--paper)}.activity-tabs button{position:relative;flex:1;min-width:0;min-height:30px;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;padding:0 .6rem;border:1px solid var(--line);border-radius:8px;color:var(--mute);background:transparent;cursor:pointer;font-size:.76rem;font-weight:500}.activity-tabs button:hover{background:var(--mist);color:var(--ink)}.activity-tabs button:after{content:"";position:absolute;right:.5rem;bottom:-.5rem;left:.5rem;height:2px;display:none;background:transparent}.activity-tabs button.active{border-color:color-mix(in srgb,var(--accent) 55%,var(--line));background:var(--accent-soft);color:var(--accent);font-weight:600}.activity-tabs button.active:after{background:var(--accent)}.activity-tabs svg{width:15px;height:15px}.activity-tabs b{min-width:16px;height:16px;display:grid;place-items:center;padding:0 4px;border-radius:8px;color:#fff;background:var(--accent);font-size:9px;font-weight:600}.theme-cycle{color:var(--mute)}.connection-warning{width:25px;height:25px;display:grid;place-items:center;color:#a05b22}.connection-warning svg{width:15px;height:15px}.sidecar-activity-body{flex:1;min-height:0;display:flex;flex-direction:column}.sidecar-activity-body[hidden]{display:none}.review-panel{flex:1;min-height:0;overflow:auto;padding:1rem 1rem 1.4rem;background:var(--panel)}.review-sections{display:flex;gap:.35rem;margin:-.15rem 0 .9rem;border-bottom:0}.review-sections button{display:inline-flex;align-items:center;gap:.3rem;min-height:30px;padding:0 .7rem;border:1px solid var(--line);border-radius:999px;color:var(--mute);background:var(--paper);cursor:pointer;font-size:.74rem}.review-sections button.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:600}.review-sections svg{width:14px;height:14px}.review-sections b{min-width:16px;height:16px;display:grid;place-items:center;border-radius:8px;color:#fff;background:var(--accent);font-size:9px}.review-workflow-tools{display:flex;flex-wrap:wrap;gap:.4rem;margin:-.25rem 0 .9rem}.review-workflow-tools button{display:inline-flex;align-items:center;gap:.35rem;min-height:30px;padding:0 .65rem;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:var(--paper);cursor:pointer;font-size:.74rem}.review-workflow-tools button:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.review-workflow-tools button:disabled{color:var(--mute);cursor:not-allowed}.review-workflow-tools svg{width:14px;height:14px}.review-current{display:grid;gap:.8rem}.review-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding-bottom:.7rem;border-bottom:1px solid var(--line)}.review-heading>div:first-child{min-width:0;display:grid;gap:.15rem}.review-heading strong{font-size:.95rem}.review-heading>div:first-child span,.review-count{color:var(--mute);font-size:.7rem}.review-nav{display:flex;align-items:center;gap:.25rem;color:var(--mute);font-size:.7rem}.review-nav button{width:27px;height:27px;display:grid;place-items:center;padding:0;border:0;border-radius:6px;color:var(--mute);background:transparent;cursor:pointer}.review-nav button:hover{color:var(--ink);background:var(--mist)}.review-nav svg{width:15px;height:15px}.review-rationale{margin:0;color:var(--mute);font-size:.8rem;line-height:1.55}.review-change{display:grid;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.review-fragment{display:grid;grid-template-columns:3.2rem minmax(0,1fr);gap:.6rem;padding:.7rem .15rem;border-radius:6px}.review-fragment+.review-fragment{border-top:1px solid var(--line)}.review-fragment>span{padding-top:.08rem;color:var(--mute);font-size:.68rem}.review-fragment del,.review-fragment ins{text-decoration:none;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.86rem;line-height:1.6}.review-fragment.before del{color:color-mix(in srgb,var(--ink) 72%,var(--accent));text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--accent) 60%,transparent)}.review-fragment.after ins{color:var(--ink);background:color-mix(in srgb,var(--accent-soft) 76%,transparent)}.review-context{margin:0;padding:.55rem .65rem;border-left:2px solid var(--line);color:var(--mute);background:color-mix(in srgb,var(--paper) 62%,transparent);font-size:.72rem;line-height:1.55;overflow-wrap:anywhere}.review-context mark{color:var(--ink);background:color-mix(in srgb,#e7c66a 38%,transparent)}.review-actions{display:flex;flex-wrap:wrap;gap:.4rem}.review-actions button{min-height:32px;display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .65rem;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--paper);cursor:pointer;font-size:.74rem}.review-actions button.primary{border-color:var(--accent);color:#fff;background:var(--accent)}.review-actions button:disabled{opacity:.42;cursor:not-allowed}.review-actions svg{width:14px;height:14px}.review-editor{display:grid;gap:.45rem}.review-editor label{color:var(--mute);font-size:.72rem}.review-editor textarea{width:100%;min-height:7.5rem;resize:vertical;padding:.65rem;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--paper);outline:none;line-height:1.55}.review-editor textarea:focus{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.review-warning,.review-error{margin:0 0 .8rem;padding:.55rem .65rem;border-left:2px solid var(--warn);color:var(--warn);background:var(--warn-bg);font-size:.74rem;line-height:1.45}.review-empty{padding:12vh 1rem 2rem;color:var(--mute);text-align:center}.review-empty strong{color:var(--ink);font-size:.9rem}.review-empty p{margin:.45rem 0 0;font-size:.78rem}.review-comments{margin-top:1.2rem;padding-top:.8rem;border-top:1px solid var(--line)}.review-comments h3{margin:0 0 .5rem;font-size:.76rem}.review-comments p{margin:0;padding:.45rem 0;border-bottom:1px solid color-mix(in srgb,var(--line) 68%,transparent);color:var(--mute);font-size:.74rem;line-height:1.5}.review-comments p.warn{color:var(--warn)}.review-checklists{display:grid;gap:1.25rem}.checklist-run{display:grid;gap:.7rem;min-width:0}.checklist-run+.checklist-run{padding-top:1rem;border-top:1px solid var(--line)}.checklist-run-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.7rem}.checklist-run-heading>div{display:grid;gap:.12rem}.checklist-run-heading strong{font-size:.88rem}.checklist-run-heading span,.checklist-run-heading time{color:var(--mute);font-size:.68rem;line-height:1.4}.checklist-run-heading time{max-width:9rem;text-align:right}.checklist-disclosure{margin:0;padding:.55rem .65rem;border-left:2px solid var(--line);color:var(--mute);background:color-mix(in srgb,var(--paper) 68%,transparent);font-size:.72rem;line-height:1.55;overflow-wrap:anywhere}.checklist-disclosure.citation{border-left-color:var(--warn);color:color-mix(in srgb,var(--warn) 78%,var(--ink));background:var(--warn-bg)}.checklist-batch{min-height:38px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.55rem;padding-bottom:.55rem;border-bottom:1px solid var(--line)}.checklist-batch>span{flex:1 1 9rem;min-width:0;color:var(--mute);font-size:.7rem}.checklist-batch>div{display:flex;flex:1 1 auto;flex-wrap:wrap;justify-content:flex-end;gap:.35rem}.checklist-batch button{min-height:30px;display:inline-flex;align-items:center;gap:.3rem;padding:.3rem .55rem;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:var(--paper);cursor:pointer;font-size:.7rem}.checklist-batch button:disabled{opacity:.42;cursor:not-allowed}.checklist-batch svg,.checklist-block-heading svg{width:14px;height:14px}.checklist-empty{margin:0;padding:1rem 0;color:var(--mute);text-align:center;font-size:.74rem}.checklist-group{min-width:0;border-bottom:1px solid var(--line)}.checklist-group>header{min-height:32px;display:flex;align-items:center;justify-content:space-between;gap:.55rem;padding:.2rem 0}.checklist-group>header label{min-width:0;display:flex;align-items:center;gap:.45rem}.checklist-group>header strong{overflow-wrap:anywhere;font-size:.76rem}.checklist-group>header span{flex:0 0 auto;color:var(--mute);font-size:.66rem}.checklist-run input[type=checkbox]{width:15px;height:15px;flex:0 0 auto;margin:0;accent-color:var(--accent)}.checklist-block{min-width:0;padding:.35rem 0 .45rem 1.45rem;border-top:1px solid color-mix(in srgb,var(--line) 62%,transparent)}.checklist-block-heading{min-height:25px;display:flex;align-items:center;justify-content:space-between;gap:.5rem}.checklist-block-heading>span{min-width:0;overflow:hidden;color:var(--mute);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.64rem;text-overflow:ellipsis;white-space:nowrap}.checklist-block-heading button{width:26px;height:26px;display:grid;flex:0 0 auto;place-items:center;padding:0;border:0;border-radius:6px;color:var(--mute);background:transparent;cursor:pointer}.checklist-block-heading button:hover{color:var(--ink);background:var(--mist)}.checklist-item{min-width:0;display:grid;grid-template-columns:15px minmax(0,1fr) auto;align-items:start;gap:.5rem;padding:.45rem 0;cursor:pointer}.checklist-item>span{min-width:0;display:grid;gap:.12rem}.checklist-item strong{overflow-wrap:anywhere;font-size:.75rem;line-height:1.45}.checklist-item small{color:var(--mute);overflow-wrap:anywhere;font-size:.67rem;line-height:1.45}.checklist-item i{color:var(--mute);font-size:.64rem;font-style:normal;line-height:1.5;white-space:nowrap}.checklist-item.status-resolved,.checklist-item.status-dismissed{cursor:default;opacity:.64}.checklist-item.status-resolved i{color:var(--accent)}.review-history{min-height:0}.review-history-filters{margin:0 0 .7rem}.review-history-filters button{min-height:26px;padding:0 .6rem;font-size:.7rem}.review-history-diff{display:flex;margin:.1rem 0;border:1px solid color-mix(in srgb,var(--line) 68%,transparent);border-radius:10px}.review-history-diff .review-fragment{flex:1 1 0;min-width:0;grid-template-columns:auto minmax(0,1fr);gap:.4rem;padding:.45rem .5rem}.review-history-diff .review-fragment+.review-fragment{border-top:none;border-left:1px solid var(--line)}.review-history-diff .review-fragment del,.review-history-diff .review-fragment ins{overflow:hidden;font-size:.74rem;line-height:1.5;white-space:nowrap;text-overflow:ellipsis;overflow-wrap:normal}.review-history-empty{margin:2rem 0;color:var(--mute);text-align:center;font-size:.78rem}.review-history ol{list-style:none;margin:0;padding:0}.review-history li{display:grid;gap:.25rem;padding:.65rem 0;border-bottom:1px solid color-mix(in srgb,var(--line) 68%,transparent)}.review-history li>div{display:flex;justify-content:space-between;gap:.5rem}.review-history li strong{font-size:.78rem}.review-history li time,.review-history li>span{color:var(--mute);font-size:.68rem}.review-history li p{margin:0;color:var(--ink);font-size:.74rem;line-height:1.45}.review-history li.rejected strong{color:var(--warn)}@media(max-width:960px){.app.with-doc,.app.with-doc.layout-dock,.app.with-doc.layout-float,.app.with-doc.layout-focus{display:block;height:100dvh}.app.with-doc .canvas-pane{height:100dvh}.app.with-doc .sidecar-shell:not(.landing-shell){position:fixed;z-index:60;inset:auto 0 0!important;width:100%!important;height:min(52dvh,520px)!important;min-width:0;min-height:280px;border:1px solid var(--line);border-right:0;border-bottom:0;border-left:0;border-radius:16px 16px 0 0;box-shadow:0 -12px 30px #0e121429}.app.with-doc.layout-focus .sidecar-shell:not(.landing-shell){display:none}.app.with-doc .chat-pane:not(.landing){border-top:0;border-left:0}.app.with-doc:not(.layout-focus) .office-editor{padding-bottom:calc(52dvh + 56px)}.sidecar-dock-resizer,.sidecar-float-resizer{display:none}.layout-control{display:inline-flex;border:0;padding:0}.layout-control button:not(:last-child){display:none}.office-body:has(.office-review-rail) .office-canvas-scroll{display:block}}@media(max-width:520px){.shell-actions{gap:.15rem}.layout-control button{width:24px}.review-panel{padding:.8rem .8rem calc(1rem + env(safe-area-inset-bottom))}.review-fragment{grid-template-columns:2.8rem minmax(0,1fr)}.sel-bubble{max-width:calc(100vw - 16px);overflow-x:auto}}.md p{margin:.45rem 0}.md h3,.md h4,.md h5,.md h6{margin:.85rem 0 .35rem;line-height:1.35;color:var(--ink)}.md h3{font-size:1.02rem}.md h4{font-size:.95rem}.md h5,.md h6{font-size:.88rem}.md ul,.md ol{margin:.4rem 0;padding-left:1.25rem}.md li{margin:.2rem 0}.md li::marker{color:var(--accent)}.md code{padding:.08rem .32rem;border-radius:4px;background:var(--mist);font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-size:.82em}.md pre{margin:.5rem 0;padding:.6rem .75rem;overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.md pre code{padding:0;background:transparent}.md blockquote{margin:.5rem 0;padding:.15rem 0 .15rem .7rem;border-left:3px solid color-mix(in srgb,var(--accent) 35%,var(--line));color:var(--mute)}.md hr{margin:.75rem 0;border:0;border-top:1px solid var(--line)}.md a{color:var(--accent)}.md-table-wrap{margin:.55rem 0;overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(to right,var(--assistant-bg) 30%,transparent),linear-gradient(to left,var(--assistant-bg) 30%,transparent),radial-gradient(farthest-side at 0 50%,rgba(0,0,0,.14),transparent),radial-gradient(farthest-side at 100% 50%,rgba(0,0,0,.14),transparent);background-repeat:no-repeat;background-size:2.5rem 100%,2.5rem 100%,.6rem 100%,.6rem 100%;background-position:0 0,100% 0,0 0,100% 0;background-attachment:local,local,scroll,scroll}.md table{width:100%;border-collapse:collapse;font-size:.8rem;line-height:1.5}.md th{padding:4px 10px;background:var(--accent-soft);color:var(--ink);font-weight:600;text-align:left;white-space:nowrap;border-bottom:2px solid var(--line)}.md td{padding:4px 10px;border-top:1px solid var(--line);vertical-align:top}.md tbody tr:nth-child(2n) td{background:color-mix(in srgb,var(--accent-soft) 45%,transparent)}.attention-strip{display:flex;align-items:center;gap:.35rem;padding:.35rem .1rem;overflow-x:auto;scrollbar-width:none;font-size:.72rem;color:var(--mute)}.attention-strip::-webkit-scrollbar{display:none}.attention-strip>span,.attention-chip{flex:0 0 auto;max-width:15rem;padding:.18rem .55rem;overflow:hidden;border:1px solid var(--line);border-radius:999px;background:var(--chip-bg);text-overflow:ellipsis;white-space:nowrap}.attention-strip>span:first-child,.attention-chip.focus{border-color:color-mix(in srgb,var(--accent) 42%,var(--line));background:var(--accent-soft);color:var(--accent);font-weight:600}.attention-strip .linkish{flex:0 0 auto;font-size:.72rem}.attention-chip-icon{flex:0 0 auto;margin-right:.25rem;vertical-align:-2px}.chat-hero .brand{letter-spacing:-.01em}@media(prefers-reduced-motion:reduce){.turn,.landing-stage,.landing-composer{animation:none}}@keyframes overlay-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.sel-bubble,.ctx-menu,.pending-card,.thread-proposal,.office-proposal{animation:overlay-in var(--dur-med) var(--ease-out)}.btn:focus-visible,.icon-button:focus-visible,.chip:focus-visible,.linkish:focus-visible,.sel-bubble button:focus-visible,.ctx-menu button:focus-visible,.thread-send:focus-visible,.task-receipt button:focus-visible,.activity-tabs button:focus-visible,.review-sections button:focus-visible,.review-actions button:focus-visible,.checklist-batch button:focus-visible,.checklist-block-heading button:focus-visible,.review-nav button:focus-visible,.timeline-toggle:focus-visible,.doc-pending:focus-visible,.office-tool:focus-visible,.office-mode button:focus-visible,.office-save:focus-visible,.office-zoom:focus-visible,.layout-control button:focus-visible,.settings-close:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:1ms!important;transition-duration:1ms!important}}.mcp-approval-panel{max-width:520px}.mcp-approval-body{padding:0 4px 12px;font-size:13px;line-height:1.6}.mcp-approval-args{margin:8px 0 0;padding:10px 12px;max-height:240px;overflow:auto;background:var(--bg-inset, rgba(127, 127, 127, .08));border-radius:8px;font-size:12px;white-space:pre-wrap;word-break:break-all}.mcp-approval-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:8px}.composer-card{position:relative}.skill-chips{display:flex;flex-wrap:wrap;gap:.3rem}.skill-chip{display:inline-flex;align-items:center;gap:.25rem;padding:.12rem .5rem;border:1px solid var(--line);border-radius:999px;background:var(--chip-bg);color:var(--mute);font-size:.7rem}.skill-chip-remove{display:inline-flex;align-items:center;border:none;background:none;color:inherit;cursor:pointer;padding:0}.skill-chip-remove:hover{color:var(--ink)}.skill-picker{position:absolute;bottom:calc(100% + .4rem);left:.5rem;right:.5rem;z-index:40;margin:0;padding:.35rem;list-style:none;border:1px solid var(--line);border-radius:12px;background:var(--paper);box-shadow:var(--shadow-pop);max-height:14rem;overflow:auto}.skill-picker button{display:grid;gap:.1rem;width:100%;text-align:left;border:none;background:none;padding:.35rem .45rem;border-radius:8px;cursor:pointer;color:inherit}.skill-picker button:hover{background:var(--chip-bg)}.skill-picker small{color:var(--mute)}.loaded-skills{margin-top:.3rem;font-size:.68rem;color:var(--mute)}.skill-state{font-size:.68rem;color:var(--mute);white-space:nowrap}.composer-module-control{position:static;display:flex;align-items:center;min-width:0}.context-controls{min-width:0;display:inline-flex;align-items:center;gap:.18rem;color:var(--mute)}.context-usage{min-width:0;overflow:hidden;color:inherit;font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}.context-compact{width:24px;height:24px;display:inline-grid;flex:0 0 24px;place-items:center;border:1px solid transparent;border-radius:6px;padding:0;background:transparent;color:inherit;cursor:pointer}.context-compact:hover:not(:disabled){border-color:var(--line);background:var(--chip-bg);color:var(--ink)}.context-compact:focus-visible{outline:2px solid var(--focus);outline-offset:1px}.context-compact:disabled{cursor:default;opacity:.45}.composer-module-trigger,.composer-module-clear{height:26px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--mute);cursor:pointer}.composer-module-trigger{max-width:152px;gap:.28rem;padding:0 .42rem}.composer-module-trigger span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.72rem}.composer-module-trigger:hover:not(:disabled),.composer-module-trigger.selected,.composer-module-clear:hover{border-color:var(--line);background:var(--chip-bg);color:var(--ink)}.composer-module-trigger:disabled{cursor:default;opacity:.5}.composer-module-clear{width:24px;flex:0 0 24px;padding:0}.composer-module-menu{position:absolute;right:.5rem;left:.5rem;bottom:calc(100% + .5rem);z-index:45;width:auto;max-height:min(360px,calc(100dvh - 7rem));display:grid;grid-template-columns:104px minmax(0,1fr);overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--paper);box-shadow:var(--shadow-pop)}.composer-module-categories,.composer-module-actions{min-width:0;padding:.38rem;overflow-y:auto}.composer-module-categories{border-right:1px solid var(--line);background:var(--panel)}.composer-module-menu button{width:100%;border:0;border-radius:6px;background:transparent;color:var(--ink);cursor:pointer;text-align:left}.composer-module-categories button{height:36px;display:flex;align-items:center;justify-content:space-between;gap:.25rem;padding:0 .5rem;font-size:.78rem}.composer-module-actions button{min-height:54px;display:grid;align-content:center;gap:.14rem;padding:.42rem .55rem}.composer-module-actions strong{font-size:.78rem;font-weight:600}.composer-module-actions small{overflow-wrap:anywhere;color:var(--mute);font-size:.68rem;line-height:1.4}.composer-module-menu button:hover,.composer-module-menu button.active{background:var(--chip-bg)}.composer-module-menu button.active{color:var(--accent-strong)}.composer-module-trigger:focus-visible,.composer-module-clear:focus-visible,.composer-module-menu button:focus-visible{outline:2px solid var(--focus);outline-offset:1px}@media(max-width:520px){.composer-module-menu{grid-template-columns:88px minmax(0,1fr)}.composer-module-trigger{max-width:122px}.context-usage{max-width:104px}}.settings-hub-panel{gap:.85rem}.settings-hub-tabs{display:flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--panel);overflow-x:auto;min-height:calc(2.35rem + 8px);scrollbar-width:none}.settings-hub-tabs button{flex:1 0 auto;min-height:2.35rem;padding:0 .9rem;border:0;border-radius:8px;background:transparent;color:var(--mute);cursor:pointer;font:inherit;font-size:.82rem;white-space:nowrap}.settings-hub-tabs button.active{background:var(--paper);color:var(--ink);box-shadow:0 1px 3px #1111101f}.settings-hub-body>[role=tabpanel]{display:grid}.settings-hub-body>[role=tabpanel][hidden]{display:none}.settings-tab-body{display:grid;gap:1rem;padding-bottom:1.25rem}.settings-active-status{margin:0;padding:.55rem .75rem;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--mute);font-size:.78rem;line-height:1.45}.cc-switch-section{display:grid;gap:.5rem}.cc-route-list{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}.cc-route{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.55rem .75rem;border:1px solid var(--line);border-radius:10px}.cc-route>div{display:grid;gap:.15rem;min-width:0}.cc-route strong{font-size:.82rem}.cc-route small{color:var(--mute);font-size:.72rem;overflow-wrap:anywhere}.cc-route .btn{flex:0 0 auto}.cc-route-active{flex:0 0 auto;color:var(--accent);font-size:.75rem}.preset-row{display:flex;flex-wrap:wrap;gap:.4rem}.settings-field-inline{display:flex;align-items:center;gap:.5rem}.settings-field-inline input[type=checkbox]{flex:0 0 auto}.reasoning-mode-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.5rem}.reasoning-mode{display:grid;gap:.15rem;padding:.55rem .65rem;border:1px solid var(--line);border-radius:10px;cursor:pointer}.reasoning-mode:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.reasoning-mode strong{font-size:.82rem}.reasoning-mode small{color:var(--mute);font-size:.7rem;line-height:1.4}.reasoning-mode input{position:absolute;opacity:0;pointer-events:none}.open-docx-panel{gap:.85rem}.hosted-document-picker{width:min(540px,100%);padding-bottom:1.25rem}.hosted-picker-actions{display:flex;align-items:center;gap:.35rem}.hosted-upload-button{min-height:2rem;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;padding:0 .65rem;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:var(--paper);cursor:pointer;font-size:.76rem;white-space:nowrap}.hosted-upload-button:hover:not(:disabled){border-color:var(--accent);background:var(--mist)}.hosted-upload-button:disabled{cursor:not-allowed;opacity:.5}.hosted-document-item-title{display:grid;gap:.15rem}.hosted-document-item-title strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;font-weight:600}.hosted-document-item-title small{color:var(--mute);font-size:.7rem;font-variant-numeric:tabular-nums}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.open-docx-list{list-style:none;margin:0;padding:0;display:grid;gap:.4rem;max-height:50vh;overflow-y:auto}.open-docx-list button{width:100%;display:flex;align-items:center;gap:.55rem;padding:.6rem .75rem;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);cursor:pointer;font:inherit;font-size:.84rem;text-align:left}.open-docx-list button:hover:not(:disabled){border-color:var(--accent)}.open-docx-list button:disabled{cursor:not-allowed;opacity:.55}.open-docx-list span{min-width:0;overflow-wrap:anywhere}.open-docx-list em{margin-left:auto;flex:0 0 auto;color:var(--mute);font-size:.72rem;font-style:normal}.open-docx-empty{display:grid;justify-items:center;gap:.5rem;padding:1.25rem .5rem;text-align:center}.open-docx-empty p{margin:0}.spin{animation:spin .9s linear infinite;vertical-align:-2px}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:640px){.hosted-doc-bar{gap:.35rem;padding-left:.35rem;padding-right:.35rem}.hosted-project-link{width:30px;flex:0 0 30px;padding:0;justify-content:center}.hosted-project-link span,.hosted-breadcrumb-separator,.doc-saved-revision{display:none}.hosted-document-brand,.hosted-document-brand img{width:24px;height:24px}.hosted-document-brand{flex-basis:24px}.hosted-document-state{gap:.15rem}.hosted-model-select{padding-left:0}.hosted-model-select>span,.hosted-balance{display:none}.hosted-recharge-link{width:30px;min-height:30px;flex-basis:30px;padding:0}.hosted-recharge-link span{display:none}.hosted-model-select select{width:min(31vw,118px);min-width:78px;padding-left:.4rem}.hosted-model-control{max-width:min(43vw,168px)}.hosted-model-refresh{width:28px;height:28px;flex-basis:28px}.hosted-model-meta{max-width:100%;justify-content:flex-start;font-size:.54rem}.hosted-model-channel,.hosted-model-price,.hosted-model-recommended,.hosted-model-free,.hosted-document-state .doc-pending{display:none}.hosted-document-picker .settings-head{align-items:center}.hosted-upload-button{width:2rem;padding:0;font-size:0}.settings-hub-panel{padding:1rem 1rem 0}.settings-hub-tabs{width:100%}.settings-hub-tabs button{padding:0 .7rem}.reasoning-mode-list{grid-template-columns:1fr 1fr}.cc-route{align-items:flex-start;flex-direction:column}.cc-route .btn{align-self:flex-end}}@media(prefers-reduced-motion:reduce){.spin{animation:none}}.hosted-project-shell{--accent: #ff5c00;--accent-strong: #d94e00;--accent-soft: rgba(255, 92, 0, .1);--focus: #ff5c00;--ring: rgba(255, 92, 0, .22);--solid-bg: #111111;--solid-fg: #ffffff;min-height:100dvh;color:var(--ink);background:var(--fog)}.hosted-project-topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:0 20px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--fog) 94%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.hosted-project-topbar-title,.hosted-project-topbar-actions{display:flex;align-items:center;min-width:0;gap:10px}.hosted-project-site-actions{display:inline-flex;align-items:center;gap:6px}.hosted-topbar-recharge{border-color:color-mix(in srgb,var(--accent) 65%,var(--line));color:var(--accent-strong);background:color-mix(in srgb,var(--accent) 7%,transparent)}.hosted-topbar-recharge:hover{border-color:var(--accent);color:#fff;background:var(--accent)}.hosted-project-topbar-title>strong{min-width:0;overflow:hidden;font-size:.9rem;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.hosted-project-brand{display:inline-flex;min-width:0;align-items:center;gap:8px;color:var(--ink);font-size:.84rem;font-weight:700;text-decoration:none}.hosted-project-brand img{display:block;width:30px;height:30px;flex:0 0 30px}.hosted-project-brand:hover{color:var(--accent-strong)}.hosted-project-topbar-divider{width:1px;height:18px;flex:0 0 1px;background:var(--line)}.hosted-project-primary,.hosted-project-icon-button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;border:0;border-radius:6px;cursor:pointer;transition:background var(--dur-fast),color var(--dur-fast),opacity var(--dur-fast)}.hosted-project-primary{gap:7px;padding:0 13px;color:var(--solid-fg);background:var(--solid-bg);font-size:.82rem;font-weight:650;text-decoration:none}.hosted-project-primary:hover:not(:disabled){background:var(--accent-strong);color:#fff}.hosted-project-primary:disabled{cursor:not-allowed;opacity:.45}.hosted-project-secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:0 13px;border:1px solid color-mix(in srgb,var(--line) 80%,transparent);border-radius:6px;color:var(--ink);background:transparent;cursor:pointer;font-size:.82rem;font-weight:650;text-decoration:none}.hosted-project-secondary:hover:not(:disabled){background:var(--mist)}.hosted-project-secondary:disabled{cursor:not-allowed;opacity:.45}.hosted-project-start-actions{display:flex;flex-wrap:wrap;gap:.65rem;justify-content:center}.hosted-project-icon-button{width:34px;flex:0 0 34px;color:var(--mute);background:transparent;text-decoration:none}.hosted-project-icon-button:hover{color:var(--ink);background:var(--mist)}.hosted-project-content{width:min(1040px,calc(100% - 40px));margin:0 auto;padding:50px 0 80px}.hosted-start-content{width:min(1040px,calc(100% - 40px));margin:0 auto;padding:64px 0 84px}.hosted-start-checking{display:flex;min-height:calc(100dvh - 56px);align-items:center;justify-content:center;gap:10px;padding-block:24px;color:var(--mute);font-size:.82rem}.hosted-start-checking p{margin:0}.hosted-start-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);align-items:end;gap:64px}.hosted-start-kicker{display:inline-flex;align-items:center;gap:8px;color:var(--accent-strong);font-size:.68rem;font-weight:750}.hosted-start-kicker>span{width:7px;height:7px;border-radius:50%;background:var(--accent)}.hosted-start-intro h1,.hosted-start-auth-copy h1{margin:16px 0 10px;color:var(--ink);font-size:2rem;font-weight:720;line-height:1.2;letter-spacing:0}.hosted-start-intro>div>p,.hosted-start-auth-copy>p{margin:0;color:var(--mute);font-size:.9rem;line-height:1.65}.hosted-start-safety{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;padding:2px 0 2px 20px;border-left:2px solid var(--accent);color:var(--accent-strong)}.hosted-start-safety strong{color:var(--ink);font-size:.86rem;font-weight:680}.hosted-start-safety p{margin:5px 0 0;color:var(--mute);font-size:.76rem;line-height:1.55}.hosted-start-actions-section{margin-top:52px;padding-top:22px;border-top:1px solid var(--line)}.hosted-start-section-heading{display:flex;min-height:28px;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:16px}.hosted-start-section-heading h2{margin:0;color:var(--ink);font-size:.95rem;font-weight:680}.hosted-start-section-heading span{color:var(--mute);font-size:.7rem}.hosted-start-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.hosted-start-action{display:grid;min-width:0;min-height:112px;grid-template-columns:38px minmax(0,1fr) 18px;align-items:center;gap:12px;padding:18px 16px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--paper);cursor:pointer;text-align:left;transition:border-color var(--dur-fast),background var(--dur-fast),color var(--dur-fast)}.hosted-start-action:hover:not(:disabled){border-color:color-mix(in srgb,var(--accent) 70%,var(--line));background:var(--accent-soft)}.hosted-start-action:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.hosted-start-action:disabled{cursor:not-allowed;opacity:.5}.hosted-start-action.is-primary{border-color:#111;color:#fff;background:#111}.hosted-start-action.is-primary:hover:not(:disabled){border-color:var(--accent);background:#1f1f1f}.hosted-start-action-icon{display:grid;width:38px;height:38px;place-items:center;border-radius:6px;color:var(--accent-strong);background:var(--accent-soft)}.hosted-start-action.is-primary .hosted-start-action-icon{color:#fff;background:var(--accent)}.hosted-start-action-copy{display:grid;min-width:0;gap:5px}.hosted-start-action-copy strong,.hosted-start-action-copy small{overflow-wrap:anywhere}.hosted-start-action-copy strong{font-size:.86rem;font-weight:680}.hosted-start-action-copy small{color:var(--mute);font-size:.72rem;line-height:1.45}.hosted-start-action.is-primary small{color:#b7b7b7}.hosted-start-all-documents{display:inline-flex;align-items:center;gap:7px;margin-top:18px;color:var(--ink);font-size:.78rem;font-weight:650;text-decoration:none}.hosted-start-all-documents:hover{color:var(--accent-strong)}.hosted-start-auth{display:grid;min-height:calc(100dvh - 56px);grid-template-columns:minmax(0,1fr) minmax(300px,390px);align-items:center;gap:80px;padding-block:48px}.hosted-start-auth-copy{max-width:530px}.hosted-auth-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-top:26px;padding:4px;border-radius:8px;background:var(--mist)}.hosted-auth-tabs button{min-height:38px;border:0;border-radius:6px;color:var(--mute);background:transparent;cursor:pointer;font:inherit;font-size:.76rem;font-weight:680}.hosted-auth-tabs button.is-active{color:var(--ink);background:var(--paper);box-shadow:0 1px 3px #1111111a}.hosted-auth-tabs button:focus-visible,.hosted-auth-field input:focus-visible,.hosted-auth-remember input:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.hosted-auth-form{display:grid;gap:14px;margin-top:18px}.hosted-auth-field{display:grid;min-width:0;gap:6px;color:var(--ink);font-size:.72rem;font-weight:650}.hosted-auth-field input{width:100%;min-width:0;min-height:42px;padding:9px 11px;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:var(--paper);font:inherit;font-size:.82rem;font-weight:450}.hosted-auth-field input:focus{border-color:var(--accent)}.hosted-auth-remember{display:inline-flex;width:max-content;align-items:center;gap:7px;color:var(--mute);cursor:pointer;font-size:.72rem}.hosted-auth-remember input{width:16px;height:16px;margin:0;accent-color:var(--accent)}.hosted-auth-code-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}.hosted-auth-code-row .hosted-project-secondary{min-height:42px}.hosted-auth-submit{width:100%;min-height:42px}.hosted-auth-message{margin:12px 0 0;color:var(--mute);font-size:.74rem;line-height:1.5}.hosted-auth-message.hosted-project-alert{color:var(--warn)}.hosted-start-assurances{display:flex;flex-wrap:wrap;gap:10px 20px;margin-top:24px;color:var(--mute);font-size:.72rem}.hosted-start-assurances span{display:inline-flex;align-items:center;gap:6px}.hosted-start-assurances svg{color:var(--accent-strong)}.hosted-start-auth-preview{padding:20px;border:1px solid var(--line);border-radius:8px;background:var(--paper);box-shadow:var(--shadow-soft)}.hosted-start-auth-preview>div{display:flex;align-items:center;gap:10px;padding-bottom:16px;border-bottom:1px solid var(--line);color:var(--ink);font-size:.78rem;font-weight:700}.hosted-start-auth-preview img{display:block;width:38px;height:38px}.hosted-start-auth-preview ol{display:grid;gap:0;padding:0;margin:8px 0 0;list-style:none}.hosted-start-auth-preview li{display:grid;min-height:64px;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:12px;border-bottom:1px solid var(--line);color:var(--accent-strong)}.hosted-start-auth-preview li:last-child{border-bottom:0}.hosted-start-auth-preview li>span{display:grid;gap:3px}.hosted-start-auth-preview strong{color:var(--ink);font-size:.8rem}.hosted-start-auth-preview small{color:var(--mute);font-size:.7rem}.hosted-project-heading{display:flex;align-items:flex-end;justify-content:space-between;min-height:58px;margin-bottom:24px}.hosted-project-heading h1{margin:0;font-size:1.55rem;font-weight:680;letter-spacing:0}.hosted-project-heading p{margin:7px 0 0;color:var(--mute);font-size:.8rem}.hosted-project-list,.hosted-document-rows{padding:0;margin:0;border-top:1px solid var(--line);list-style:none}.hosted-project-list li,.hosted-document-rows li{border-bottom:1px solid var(--line)}.hosted-project-list li>button,.hosted-document-rows li>button{display:grid;width:100%;min-height:76px;grid-template-columns:38px minmax(0,1fr) auto 18px;align-items:center;gap:12px;padding:10px 12px;border:0;background:transparent;color:var(--ink);cursor:pointer;text-align:left}.hosted-project-list li>button:hover:not(:disabled),.hosted-document-rows li>button:hover:not(:disabled){background:var(--panel)}.hosted-document-rows li>button:disabled{cursor:not-allowed;opacity:.55}.hosted-project-icon{display:grid;width:36px;height:36px;place-items:center;border:1px solid var(--line);border-radius:6px;color:var(--accent-strong);background:var(--paper)}.hosted-project-row-copy{display:grid;min-width:0;gap:5px}.hosted-project-row-copy strong,.hosted-project-row-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hosted-project-row-copy strong{font-size:.9rem;font-weight:650}.hosted-project-row-copy small,.hosted-project-row-meta{color:var(--mute);font-size:.74rem}.hosted-project-row-meta{display:flex;align-items:center;gap:12px;white-space:nowrap}.hosted-project-row-meta em{padding:2px 6px;border-radius:4px;color:var(--warn);background:var(--warn-bg);font-style:normal}.hosted-project-empty,.hosted-project-error,.hosted-project-loading{display:flex;align-items:center;justify-content:center;gap:12px;min-height:220px;margin:0;color:var(--mute)}.hosted-project-empty{flex-direction:column;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.hosted-project-empty p{margin:0 0 4px}.hosted-project-error{flex-direction:column;text-align:center}.hosted-project-error strong{color:var(--warn);font-size:.86rem}.hosted-project-alert{margin:0 0 16px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--warn) 25%,var(--line));border-radius:6px;color:var(--warn);background:var(--warn-bg);font-size:.8rem}.hosted-project-bridge{display:grid;gap:42px;margin-top:48px}.hosted-project-section{padding-top:24px;border-top:1px solid var(--line)}.hosted-project-section-head{display:flex;min-height:32px;align-items:center;justify-content:space-between;margin-bottom:14px}.hosted-project-section-head>div{display:flex;align-items:baseline;gap:8px}.hosted-project-section-head h2{margin:0;font-size:1rem;font-weight:680}.hosted-project-section-head span{color:var(--mute);font-size:.72rem;font-variant-numeric:tabular-nums}.hosted-project-notice,.hosted-project-bridge-error{margin:0 0 12px;padding:9px 11px;border-radius:6px;font-size:.78rem}.hosted-project-notice{border:1px solid color-mix(in srgb,var(--accent) 24%,var(--line));color:var(--accent-strong);background:var(--accent-soft)}.hosted-project-bridge-error{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid color-mix(in srgb,var(--warn) 25%,var(--line));color:var(--warn);background:var(--warn-bg)}.hosted-project-bridge-empty{display:flex;min-height:92px;align-items:center;justify-content:center;gap:9px;color:var(--mute);font-size:.8rem}.hosted-artifact-list,.hosted-project-timeline{padding:0;margin:0;list-style:none}.hosted-artifact-list{display:grid;gap:8px}.hosted-artifact-list>li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:15px 16px;border:1px solid var(--line);border-radius:6px;background:var(--paper)}.hosted-artifact-main{display:grid;min-width:0;gap:5px}.hosted-artifact-main>strong{overflow-wrap:anywhere;font-size:.88rem;font-weight:650}.hosted-artifact-main>p{display:-webkit-box;margin:0;overflow:hidden;color:var(--mute);font-size:.76rem;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2}.hosted-artifact-main>small{color:var(--mute);font-size:.68rem}.hosted-artifact-kind{color:var(--accent-strong);font-size:.68rem;font-weight:650}.hosted-artifact-actions{display:flex;max-width:460px;align-items:flex-end;justify-content:flex-end;gap:7px;flex-wrap:wrap}.hosted-artifact-action{min-height:32px;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}.hosted-artifact-target{display:grid;min-width:150px;gap:3px}.hosted-artifact-target>span{color:var(--mute);font-size:.66rem}.hosted-artifact-target select{width:100%;min-height:32px;padding:0 26px 0 8px;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:var(--paper);font:inherit;font-size:.74rem}.hosted-project-timeline{border-top:1px solid var(--line)}.hosted-project-timeline>li{display:grid;min-height:48px;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:10px;border-bottom:1px solid var(--line)}.hosted-timeline-dot{width:6px;height:6px;border-radius:50%;background:var(--accent)}.hosted-project-timeline>li>div{display:flex;min-width:0;align-items:baseline;justify-content:space-between;gap:12px}.hosted-project-timeline strong{overflow:hidden;font-size:.78rem;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.hosted-project-timeline time{flex:0 0 auto;color:var(--mute);font-size:.68rem}.hosted-create-project{width:min(520px,calc(100vw - 28px))}.hosted-create-project form,.hosted-create-project label{display:grid;gap:8px}.hosted-create-project form{gap:18px}.hosted-create-project label>span{color:var(--mute);font-size:.76rem;font-weight:600}.hosted-create-project input,.hosted-create-project textarea{width:100%;border:1px solid var(--line);border-radius:6px;padding:10px 11px;color:var(--ink);background:var(--paper);outline:0;resize:vertical}.hosted-create-project input:focus,.hosted-create-project textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--ring)}.hosted-create-project footer{display:flex;justify-content:flex-end;gap:8px}.research-module-overlay{z-index:150}.research-module-panel{width:min(660px,100%);min-height:420px;padding-bottom:1.25rem;gap:1.2rem;align-content:start}.research-module-head h2{margin-top:.25rem;font-size:1.25rem}.research-module-kicker{display:inline-flex;align-items:center;gap:.35rem;color:var(--accent-strong);font-size:.72rem;font-weight:700}.research-module-body{display:grid;gap:1rem}.research-direction{display:flex;flex-wrap:wrap;gap:.45rem}.research-direction button{display:inline-flex;align-items:center;gap:.3rem;min-height:34px;padding:0 .7rem;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:var(--paper);font:inherit;font-size:.78rem;cursor:pointer}.research-direction button[aria-pressed=true]{border-color:var(--accent);color:var(--accent-strong);background:var(--accent-soft)}.research-question-field{display:grid;gap:.45rem;color:var(--ink);font-size:.8rem;font-weight:650}.research-question-field textarea{width:100%;min-width:0;resize:vertical;border:1px solid var(--line);border-radius:6px;padding:.8rem;color:var(--ink);background:var(--paper);font:inherit;font-size:.86rem;font-weight:400;line-height:1.55}.research-question-field textarea:focus{outline:2px solid color-mix(in srgb,var(--accent) 30%,transparent);border-color:var(--accent)}.research-context-note{display:flex;align-items:center;gap:.45rem;color:var(--mute);font-size:.76rem}.research-module-footer{display:flex;justify-content:flex-end;gap:.5rem;padding-top:.35rem}.research-diagnosis{margin:0;padding:.7rem .8rem;border-left:3px solid var(--accent);color:var(--text-muted);background:var(--mist);font-size:.8rem;line-height:1.55}.research-clarify-options{display:grid;gap:.55rem;margin:0;padding:0;border:0}.research-clarify-options legend{margin-bottom:.65rem;color:var(--ink);font-size:.9rem;font-weight:650}.research-clarify-options button{display:grid;gap:.2rem;width:100%;padding:.7rem .8rem;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:var(--paper);text-align:left;cursor:pointer}.research-clarify-options button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft)}.research-clarify-options strong{font-size:.82rem}.research-clarify-options span{color:var(--mute);font-size:.75rem;line-height:1.45}.research-confirmation{display:grid;gap:.4rem;padding:.9rem;border:1px solid var(--line);border-radius:6px;background:var(--mist)}.research-confirmation span,.research-confirmation small{color:var(--mute);font-size:.73rem}.research-confirmation strong{overflow-wrap:anywhere;font-size:.88rem;line-height:1.55}.research-result-preview{display:grid;gap:.5rem;min-height:0}.research-result-preview>span{color:var(--mute);font-size:.73rem;font-weight:650}.research-result-preview pre{max-height:min(52vh,420px);margin:0;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:6px;padding:.9rem;color:var(--ink);background:var(--mist);font:inherit;font-size:.82rem;line-height:1.6}.research-module-status{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.65rem;color:var(--ink);text-align:center}.research-module-status strong{font-size:.92rem}.research-module-status span{color:var(--mute);font-size:.78rem}@media(max-width:700px){.hosted-project-topbar{min-height:52px;padding:0 10px}.hosted-project-topbar-title>strong{max-width:40vw}.hosted-project-brand span{display:none}.hosted-topbar-recharge{width:34px;padding:0}.hosted-topbar-recharge span{display:none}.hosted-start-content{width:calc(100% - 24px);padding:36px 0 56px}.hosted-start-checking{min-height:calc(100dvh - 52px)}.hosted-start-intro,.hosted-start-auth{grid-template-columns:minmax(0,1fr);gap:32px}.hosted-start-intro{align-items:start}.hosted-start-intro h1,.hosted-start-auth-copy h1{margin-top:13px;font-size:1.6rem}.hosted-start-safety{padding-left:14px}.hosted-start-actions-section{margin-top:36px}.hosted-start-actions{grid-template-columns:minmax(0,1fr)}.hosted-start-action{min-height:86px;padding:13px 14px}.hosted-start-auth{min-height:0;align-content:start;padding-block:48px 56px}.hosted-auth-code-row{grid-template-columns:minmax(0,1fr)}.hosted-auth-code-row .hosted-project-secondary{width:100%}.hosted-project-content{width:calc(100% - 24px);padding:28px 0 56px}.hosted-project-heading{min-height:48px;margin-bottom:16px}.hosted-project-heading h1{font-size:1.25rem}.hosted-project-list li>button,.hosted-document-rows li>button{min-height:70px;grid-template-columns:34px minmax(0,1fr) 16px;gap:10px;padding:9px 4px}.hosted-project-icon{width:32px;height:32px}.hosted-project-row-meta{display:none}.hosted-project-primary{padding:0 10px}.hosted-research-button span{display:none}.research-module-panel{width:100%;min-height:100dvh;max-height:100dvh;border-radius:0}.research-module-footer>button{flex:1 1 0}.hosted-project-bridge{gap:32px;margin-top:36px}.hosted-artifact-list>li{grid-template-columns:minmax(0,1fr);gap:12px;padding:13px 12px}.hosted-artifact-actions{max-width:none;justify-content:flex-start}.hosted-artifact-target{width:100%}.hosted-artifact-action{flex:1 1 auto}.hosted-project-timeline>li>div{display:grid;gap:2px}}@media(max-width:390px){.hosted-project-topbar{gap:6px;padding-inline:8px}.hosted-project-topbar-title,.hosted-project-topbar-actions{gap:7px}.hosted-project-topbar-title>strong{max-width:31vw}.hosted-project-brand img{width:28px;height:28px;flex-basis:28px}.hosted-project-secondary{padding-inline:9px}.hosted-start-section-heading{align-items:flex-start;flex-direction:column;gap:4px}.hosted-start-action{grid-template-columns:36px minmax(0,1fr) 16px;gap:10px}.hosted-start-action-icon{width:36px;height:36px}.hosted-start-auth-preview{padding:16px}}.session-menu{max-width:420px;width:min(420px,calc(100vw - 2rem))}.session-menu-body{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-2) 0 var(--space-2)}.session-new{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);width:100%}.session-history h3{margin:0 0 var(--space-2);font-size:.8rem;font-weight:600;color:var(--mute)}.session-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;max-height:46vh;overflow-y:auto}.session-item{display:flex;align-items:stretch;gap:2px}.session-switch{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:var(--space-2) var(--space-3);border:0;border-radius:var(--radius-sm);background:transparent;color:var(--ink);text-align:left;cursor:pointer}.session-switch:hover:not(:disabled){background:var(--mist)}.session-switch:disabled,.session-delete:disabled{opacity:.4;cursor:not-allowed}.session-title{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;font-weight:500}.session-meta{font-size:.72rem;color:var(--mute)}.session-delete{display:inline-flex;align-items:center;justify-content:center;padding:0 var(--space-2);border:0;border-radius:var(--radius-sm);background:transparent;color:var(--mute);cursor:pointer}.session-delete:hover:not(:disabled){background:var(--accent-soft);color:var(--accent-strong)}.session-danger{border-top:1px solid var(--line);padding-top:var(--space-3)}.session-clear-btn{width:100%;color:var(--accent-strong)}.session-clear-confirm p{margin:0 0 var(--space-2);font-size:.82rem;color:var(--warn)}.session-clear-actions{display:flex;gap:var(--space-2);justify-content:flex-end}.session-danger-btn{background:var(--accent);color:#fff}.session-danger-btn:hover:not(:disabled){background:var(--accent-strong)}@media(max-width:640px){.session-menu{width:100%}.session-list{max-height:40vh}}.thread-resize,.translation-resize{position:absolute;right:0;bottom:0;width:18px;height:18px;cursor:nwse-resize;touch-action:none;background:linear-gradient(135deg,transparent 55%,color-mix(in srgb,var(--ink) 30%,transparent) 55%,color-mix(in srgb,var(--ink) 30%,transparent) 62%,transparent 62%,transparent 72%,color-mix(in srgb,var(--ink) 30%,transparent) 72%,color-mix(in srgb,var(--ink) 30%,transparent) 79%,transparent 79%);border-bottom-right-radius:16px}
