:root{--bg:#fff;--sidebar:#f9f9f9;--surface:#fff;--surface-soft:#f1f1f1;--surface-hover:#e9e9e9;--text:#0d0d0d;--text-muted:#5f5f5f;--text-subtle:#8a8a8a;--border:#e3e3e3;--border-strong:#cfcfcf;--black:#000;--white:#fff;--accent:#c24e42;--accent-hover:#aa3f34;--accent-soft:#fff0ed;--accent-ring:#c24e4229;accent-color:var(--accent);--shadow:0 14px 44px #0000001f;--radius:8px;--radius-lg:16px;--font-sans:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif}*{box-sizing:border-box}html{background:var(--bg);color:var(--text)}body{background:var(--bg);color:var(--text);font-family:var(--font-sans);letter-spacing:0;min-height:100vh;margin:0;font-size:14px}button,input,select,textarea{font:inherit}button{color:inherit}a{color:inherit;text-decoration:none}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.chat-app{background:var(--bg);grid-template-columns:260px minmax(0,1fr);min-height:100vh;display:grid}.chat-sidebar{background:var(--sidebar);border-right:0;flex-direction:column;gap:14px;min-width:0;height:100vh;padding:14px 10px;display:flex;overflow:hidden}.mobile-workspace-bar{display:none}.mobile-workspace-content{grid-template-columns:minmax(0,1fr);gap:18px;display:grid}.mobile-workspace-commands,.mobile-workspace-project-list{grid-template-columns:minmax(0,1fr);gap:4px;display:grid}.mobile-workspace-projects{grid-template-columns:minmax(0,1fr);gap:8px;min-height:0;display:grid}.mobile-workspace-projects h3{margin:0;padding:0 10px;font-size:13px}.mobile-workspace-project-list{max-height:min(42vh,360px);overflow:auto}.mobile-workspace-account{border-top:1px solid var(--border);align-items:center;gap:10px;min-width:0;padding-top:14px;display:flex}.mobile-workspace-account div{flex:1;gap:2px;min-width:0;display:grid}.mobile-workspace-account strong,.mobile-workspace-account div span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mobile-workspace-account div span{color:var(--text-muted);font-size:12px}.mobile-workspace-sign-out{justify-content:center;width:100%}.sidebar-brand-row{justify-content:space-between;align-items:center;min-height:34px;padding:0 4px;display:flex}.sidebar-scrollable-content{overscroll-behavior:contain;flex-direction:column;flex:auto;gap:14px;min-width:0;min-height:0;display:flex;overflow-y:auto}.sidebar-scrollable-content .sidebar-section{flex-shrink:0}.sidebar-brand{font-size:18px;font-weight:750}.sidebar-nav,.sidebar-list{grid-template-columns:minmax(0,1fr);gap:2px;min-width:0;display:grid}.sidebar-action,.sidebar-link,.sidebar-text-link{border-radius:var(--radius);cursor:pointer;text-align:left;background:0 0;border:0;align-items:center;gap:10px;min-width:0;min-height:36px;padding:0 10px;display:flex;overflow:hidden}.sidebar-action:hover,.sidebar-link:hover,.sidebar-text-link:hover,.sidebar-action.active,.sidebar-link.selected{background:var(--accent-soft);color:var(--accent-hover)}.sidebar-link span,.sidebar-text-link{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sidebar-action>span,.sidebar-link>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.sidebar-action>svg,.sidebar-link>svg{flex-shrink:0}.sidebar-section{grid-template-columns:minmax(0,1fr);gap:7px;min-width:0;min-height:0;display:grid}.sidebar-section.recents{flex:1;align-content:start;overflow:hidden}.sidebar-section.recents .sidebar-list{align-content:start}.sidebar-section h2,.sidebar-section-header h2{color:var(--text);margin:0;padding:0 10px;font-size:13px;font-weight:700}.sidebar-section-header{justify-content:space-between;align-items:center;display:flex}.sidebar-muted{color:var(--text-subtle);padding:8px 10px}.sidebar-account{border-top:1px solid var(--border);align-items:center;gap:10px;min-height:58px;margin-top:auto;padding:10px;display:flex}.sidebar-account div{flex:1;gap:2px;min-width:0;display:grid}.sidebar-account strong,.sidebar-account span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sidebar-account span{color:var(--text-muted);font-size:12px}.avatar{background:var(--black);color:var(--white);border-radius:999px;justify-content:center;align-items:center;width:26px;height:26px;font-size:11px;font-weight:800;display:inline-flex}.auth-page{background:var(--bg);justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.auth-panel{gap:22px;width:min(100%,420px);max-width:420px;display:grid}.auth-brand{align-items:center;gap:10px;font-size:18px;display:flex}.auth-copy{gap:8px;display:grid}.auth-copy h1{margin:0;font-size:28px;font-weight:700;line-height:1.1}.auth-copy p{color:var(--text-muted);margin:0;line-height:1.5}.auth-form{gap:12px;display:grid}.auth-methods{gap:16px;display:grid}.auth-google-button{justify-content:center;width:100%;min-height:44px}.auth-google-mark{border:1px solid var(--border-strong);border-radius:999px;justify-content:center;align-items:center;width:20px;height:20px;font-size:12px;font-weight:800;display:inline-flex}.auth-divider{color:var(--text-subtle);grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;font-size:12px;display:grid}.auth-divider:before,.auth-divider:after{background:var(--border);content:"";height:1px}.auth-form label{color:var(--text);gap:7px;font-size:13px;font-weight:650;display:grid}.auth-form input{background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius);color:var(--text);outline:none;min-height:42px;padding:0 12px}.auth-form input:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-ring)}.auth-switcher{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.auth-switcher button{color:var(--text-muted);cursor:pointer;background:0 0;border:0;padding:0;font-weight:650}.auth-switcher button:hover{color:var(--accent-hover)}.chat-main{flex-direction:column;min-width:0;height:100vh;display:flex;overflow:hidden}.chat-topbar{flex:none;justify-content:space-between;align-items:center;min-height:56px;padding:10px 22px;display:flex}.chat-topbar>div{align-items:baseline;gap:10px;min-width:0;display:flex}.chat-topbar>div:first-child{flex:auto;overflow:hidden}.topbar-project-link{min-width:0;overflow:hidden}.chat-topbar strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:100%;display:block;overflow:hidden}.chat-topbar .topbar-actions{flex:none;align-items:center;gap:8px;display:flex}.chat-topbar .topbar-actions>button{flex-shrink:0}.proof-history-picker{min-width:0;max-width:min(34vw,320px);display:block}.proof-history-picker select{background:var(--bg);border:1px solid var(--border);color:var(--text);font:inherit;text-overflow:ellipsis;border-radius:8px;width:100%;min-width:0;max-width:100%;height:34px;padding:0 28px 0 10px;font-size:13px}.chat-topbar strong{font-size:15px}.chat-topbar span,.topbar-back-link{color:var(--text-muted);font-size:13px}.topbar-back-link{font-weight:650}.chat-landing{text-align:center;flex-direction:column;flex:1;justify-content:flex-end;align-items:center;min-height:0;padding:44px 24px 30px;display:flex}.chat-landing h1{letter-spacing:0;margin:0;font-size:clamp(24px,3vw,30px);font-weight:500;line-height:1.16}.prompt-suggestions{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:22px;display:flex}.prompt-suggestions button{background:var(--surface);border:1px solid var(--border);cursor:pointer;border-radius:999px;min-height:36px;padding:0 14px}.prompt-suggestions button:hover{background:var(--accent-soft);color:var(--accent-hover)}.conversation-pane,.project-thread{flex:1;min-height:0;overflow:auto}.message-list{grid-template-columns:minmax(0,1fr);gap:32px;width:100%;min-width:0;max-width:816px;margin:0 auto;padding:32px 24px;display:grid}.chat-message{min-width:0;font-size:16px;display:flex}.chat-message>*{min-width:0;max-width:100%}.chat-message p{overflow-wrap:anywhere;max-width:100%;margin:0;line-height:1.8}.chat-message.user{justify-content:flex-end}.chat-message.user>p,.chat-message.user>.learner-rich-text{background:var(--surface-soft);border-radius:24px;max-width:min(85%,640px);padding:12px 20px}.chat-message.user>.learner-rich-text p{white-space:pre-wrap}.chat-message.assistant{justify-content:flex-start;align-items:flex-start;gap:14px}.chat-topbar .topbar-brand{display:inline-flex}.proof-explanation-message>.proof-explanation-shell,.proof-explanation-message>.proof-explanation,.proof-explanation-status>div{width:100%;max-width:min(680px,100%)}.processing-status{white-space:normal;align-items:baseline;display:inline-flex}.processing-status-label{animation:1.6s ease-in-out infinite processing-status-breathe}.processing-status-dots{white-space:nowrap;min-width:1.05em;display:inline-flex}.processing-status-dots>span{opacity:.2;animation:1.35s ease-in-out infinite processing-status-dot}.processing-status-dots>span:nth-child(2){animation-delay:.15s}.processing-status-dots>span:nth-child(3){animation-delay:.3s}@keyframes processing-status-breathe{0%,to{opacity:.55}50%{opacity:1}}@keyframes processing-status-dot{0%,60%,to{opacity:.2;transform:translateY(0)}30%{opacity:1;transform:translateY(-.08em)}}.proof-explanation-message>.proof-explanation-shell{max-width:min(1040px,100%)}.proof-explanation-shell{min-width:0}.proof-explanation{gap:18px;min-width:0;max-width:100%;display:grid}.proof-explanation-retry{margin:0;padding-top:14px}.proof-explanation p{overflow-wrap:anywhere;margin:0;line-height:1.6}.learner-rich-text{overflow-wrap:anywhere;min-width:0;max-width:100%}.learner-rich-text>:first-child{margin-top:0}.learner-rich-text>:last-child{margin-bottom:0}.learner-rich-text p{max-width:100%;margin:0 0 16px;line-height:1.8}.learner-rich-text ul,.learner-rich-text ol{gap:5px;margin:8px 0 10px;padding-left:22px;line-height:1.6;display:grid}.learner-rich-text li{overflow-wrap:anywhere;min-width:0}.learner-rich-text code{font-family:var(--font-mono);font-size:.92em}.learner-rich-text :not(pre)>code{background:var(--surface-soft);border-radius:4px;padding:1px 4px}.learner-rich-text pre{background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius);min-width:0;max-width:100%;margin:10px 0;padding:11px 12px;overflow-x:auto}.learner-rich-text pre code{overflow-wrap:anywhere;white-space:pre-wrap;display:block}.learner-rich-text .katex-display{color:inherit;max-width:100%;margin:12px 0;padding:2px 0;overflow:auto hidden}.learner-rich-text .katex-display>.katex{width:max-content;min-width:100%;max-width:none}.learner-rich-text :not(.katex-display)>.katex{vertical-align:middle;max-width:100%;display:inline-block;overflow:auto hidden}.learner-rich-text .katex-error{overflow-wrap:anywhere;color:var(--text)!important}.learner-definition-trigger{cursor:help}.learner-definition-trigger:focus-visible{outline:2px solid var(--text-muted);outline-offset:3px;border-radius:2px}.learner-definition-tooltip{z-index:1000;box-sizing:border-box;border:1px solid var(--border);background:var(--surface);width:340px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);color:var(--text);font:14px/1.6 var(--font-sans), sans-serif;overflow-wrap:anywhere;border-radius:8px;padding:12px 14px;position:fixed;overflow-y:auto;box-shadow:0 8px 24px #00000024}.learner-definition-tooltip .learner-rich-text p{margin:0}.learner-notation-conflict{color:var(--text-muted);margin-left:8px;font-size:12px;font-style:italic;line-height:1.45;display:inline}.proof-explanation-overview{font-size:15px}.proof-explanation-sections,.proof-explanation-section{display:contents}.proof-explanation-conclusion{font-weight:620}.proof-explanation-diagnostic{color:var(--text-muted);font-size:13px;margin-top:7px!important}.lean-source-panel-scrim{cursor:default;z-index:70;background:#13171d29;border:0;padding:0;position:fixed;inset:0}.lean-source-side-panel{background:var(--surface);z-index:80;flex-direction:column;min-width:min(460px,100vw);max-width:min(460px,100vw);height:100dvh;display:flex;position:fixed;top:0;right:0;box-shadow:-18px 0 44px #0000001f}.lean-source-panel-header{justify-content:space-between;align-items:center;gap:16px;min-height:72px;padding:16px 20px;display:flex}.lean-source-panel-header p{margin:0;font-size:17px;font-weight:680}.lean-source-panel-header span{color:var(--text-muted);margin-top:3px;font-size:12px;display:block}.lean-source-panel-body{min-height:0;padding:20px;overflow:auto}.lean-source-full-code{background:var(--surface-soft);border-radius:var(--radius);font-family:var(--font-mono);white-space:pre;margin:0;padding:14px;font-size:12px;line-height:1.65;overflow:auto}.lean-source-full-code code{font:inherit}.lean-source-line{border-radius:3px}.lean-source-line--mapped{cursor:help}.lean-source-line--active,.lean-source-line:focus-visible,.referenced-source-statement--active,.proof-explanation-section-summary--source-active{background:var(--accent-soft);box-shadow:0 0 0 2px var(--accent-ring);outline:none}.lean-source-correspondence{background:var(--surface-soft);border-radius:var(--radius);z-index:1;overflow-wrap:anywhere;white-space:normal;height:min(220px,30dvh);margin-bottom:16px;padding:12px;font-size:13px;position:sticky;top:0;overflow:auto}.lean-source-correspondence p{margin:6px 0}.referenced-source-picker{gap:8px;margin:12px 0;display:grid}.referenced-source-picker select{width:100%;min-width:0}.lean-reference-list{gap:6px;margin:2px 0 0;padding:0;list-style:none;display:grid}.lean-reference-list li{grid-template-columns:max-content minmax(0,1fr);align-items:start;gap:8px;min-width:0;display:grid}.lean-reference-list span{background:var(--surface-soft);color:var(--text-muted);border-radius:4px;padding:2px 6px;font-size:11px;font-weight:700;line-height:1.5}.lean-reference-list code{color:var(--text-muted);font-family:var(--font-mono);overflow-wrap:anywhere;white-space:pre-wrap;min-width:0;padding-top:2px;font-size:11px;line-height:1.5}.clarification-question-form{background:var(--surface);border:1px solid color-mix(in srgb, var(--border-strong) 62%, transparent);box-sizing:border-box;z-index:30;border-radius:999px;align-items:center;gap:8px;max-width:calc(100dvw - 32px);max-height:calc(100dvh - 32px);margin:0;padding:10px 11px 10px 20px;display:grid;overflow-y:auto;box-shadow:0 10px 30px #0f172a1f,0 1px 3px #0f172a1f}.clarification-question-form--overflow{grid-template-columns:minmax(0,1fr) auto}.clarification-question-form textarea{background:var(--surface);color:var(--text);font:inherit;resize:none;border:0;border-radius:0;outline:none;width:100%;min-height:25px;padding:2px 0;line-height:1.5}.clarification-question-form textarea:focus{outline:0}.clarification-form-actions{justify-content:flex-end;gap:6px;display:flex}.clarification-question-form .clarification-form-error{grid-column:1/-1}.clarification-form-icon-button{color:var(--text-muted);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;width:32px;height:32px;padding:0;transition:background .15s,color .15s;display:inline-flex}.clarification-form-icon-button:hover:not(:disabled){background:var(--accent-soft);color:var(--accent-hover)}.clarification-form-icon-button:disabled{cursor:not-allowed;opacity:.5}.clarification-form-icon-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.clarification-form-submit{background:var(--accent);color:var(--white)}.clarification-form-submit:hover:not(:disabled){background:var(--accent-hover);color:var(--white);opacity:.82}.clarification-form-error{color:var(--text-muted);margin:0;font-size:12px}.clarification-answer-message>div,.clarification-answer{gap:10px;width:100%;min-width:0;max-width:100%;display:grid}.clarification-answer>p,.clarification-answer-message>p,.clarification-answer-message>div>p{overflow-wrap:anywhere;margin:0;line-height:1.6}.clarification-key-points{gap:8px;display:grid}.clarification-key-points>div{min-width:0}.proof-clarification-extension,.proof-explanation-unmatched-clarifications{gap:8px;margin-top:8px;padding:0;display:grid}.proof-clarification-extension{transform-origin:top;animation:.24s cubic-bezier(.2,.75,.25,1) both proof-clarification-enter}.proof-clarification-extension--completed .clarification-answer{animation:.42s cubic-bezier(.2,.75,.25,1) 35ms both proof-clarification-answer}.proof-clarification-status{color:var(--text-muted);font-size:13px}.proof-explanation-unmatched-clarifications{padding-left:0}@keyframes proof-clarification-enter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes proof-clarification-answer{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.processing-status-label,.processing-status-dots>span,.proof-clarification-extension,.proof-clarification-extension--completed .clarification-answer{animation:none}.processing-status-label,.processing-status-dots>span{opacity:1;transform:none}}.prompt-input-shell{background:var(--surface);border:1px solid var(--border);border-radius:28px;flex:none;align-items:flex-end;gap:8px;width:min(760px,100% - 40px);max-width:760px;min-height:54px;margin:0 auto clamp(150px,24vh,230px);padding:9px 10px 9px 20px;display:flex;box-shadow:0 2px 12px #0000000a}.prompt-input-shell:focus-within{border-color:var(--accent)}.prompt-input-shell textarea{color:var(--text);field-sizing:content;resize:none;background:0 0;border:0;outline:none;flex:1;align-self:center;min-width:0;min-height:26px;max-height:132px;padding:4px 0;font-size:16px;line-height:1.4}.prompt-input-shell textarea::placeholder{color:var(--text-subtle)}.prompt-icon-button,.prompt-submit,.icon-button{cursor:pointer;border:0;border-radius:999px;flex:none;justify-content:center;align-items:center;width:36px;height:36px;display:inline-flex}.prompt-icon-button,.icon-button.subtle{color:var(--text);background:0 0}.prompt-icon-button:hover,.icon-button.subtle:hover,.icon-button.subtle.active{background:var(--accent-soft);color:var(--accent-hover)}.prompt-submit{background:var(--accent);color:var(--white)}.prompt-submit:hover:not(:disabled){background:var(--accent-hover)}.prompt-submit:disabled{background:var(--border-strong);cursor:not-allowed}.prompt-icon-button:disabled,.icon-button:disabled,.sidebar-action:disabled{cursor:not-allowed;opacity:.45}.prompt-icon-button:disabled:hover,.icon-button:disabled:hover,.sidebar-action:disabled:hover{background:0 0}.button{border-radius:var(--radius);cursor:pointer;white-space:nowrap;border:1px solid #0000;justify-content:center;align-items:center;gap:7px;min-height:40px;font-weight:650;line-height:1;transition:background .15s,border-color .15s,color .15s;display:inline-flex}.button:disabled{cursor:not-allowed;opacity:.65}.button:focus-visible,.icon-button:focus-visible,.prompt-icon-button:focus-visible,.prompt-submit:focus-visible,.lean-source-panel-close:focus-visible,.field-control:focus,.sidebar-action:focus-visible,.sidebar-link:focus-visible,.sidebar-text-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.button-md{padding:0 16px}.button-sm{min-height:32px;padding:0 10px}.button-primary{background:var(--accent);color:var(--white)}.button-primary:hover:not(:disabled){background:var(--accent-hover)}.button-secondary{background:var(--surface);border-color:var(--border-strong);color:var(--text)}.button-secondary:hover:not(:disabled),.button-ghost:hover:not(:disabled){background:var(--accent-soft);color:var(--accent-hover);border-color:var(--accent)}.button-ghost{color:var(--text);background:0 0}.button-danger{background:var(--accent-hover);color:var(--white)}.badge{background:var(--surface-soft);border:1px solid var(--border);color:var(--text-muted);white-space:nowrap;border-radius:999px;align-items:center;padding:7px 9px;font-size:12px;font-weight:650;line-height:1;display:inline-flex}.badge-neutral,.badge-info,.badge-success,.badge-warning,.badge-danger{background:var(--surface-soft);color:var(--text-muted)}.modal-backdrop{z-index:50;background:#00000073;justify-content:center;align-items:center;padding:18px;display:flex;position:fixed;inset:0}.modal-panel{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow);width:100%;max-width:512px;max-height:min(720px,100vh - 36px);padding:16px;overflow:auto}.modal-header{justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px;display:flex}.modal-header h2{margin:0;font-size:20px;font-weight:500;line-height:1.2}.modal-header-actions{align-items:center;gap:4px;display:flex}.chat-search-dialog{gap:14px;display:grid}.chat-search-field{border:1px solid var(--border-strong);border-radius:var(--radius);align-items:center;gap:10px;min-height:44px;padding:0 12px;display:flex}.chat-search-field:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-ring)}.chat-search-field input{color:var(--text);background:0 0;border:0;outline:none;flex:1;min-width:0}.chat-search-results{gap:6px;max-height:min(440px,55vh);margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.chat-search-result{border:1px solid var(--border);border-radius:var(--radius);gap:4px;padding:12px;display:grid}.chat-search-result:hover,.chat-search-result:focus-visible{background:var(--accent-soft);border-color:var(--accent)}.chat-search-result strong,.chat-search-result span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-search-result span,.chat-search-result small,.chat-search-empty{color:var(--text-muted)}.chat-search-empty{text-align:center;margin:8px 0}.stack{gap:14px;display:grid}.form-grid{grid-template-columns:1fr;gap:12px;display:grid}.field{gap:7px;display:grid}.field-label{color:var(--text);font-size:13px}.field-control{background:var(--surface);border:1px solid var(--black);border-radius:var(--radius);color:var(--text);width:100%;min-height:40px;padding:9px 12px}.field-control-textarea{resize:vertical;min-height:82px;line-height:1.5}.field-hint{color:var(--text-subtle);font-size:12px}.field-error{color:var(--text);font-size:12px;font-weight:750}.project-dialog-hint{background:var(--surface-soft);color:var(--text-muted);border-radius:12px;align-items:flex-start;gap:12px;padding:14px;display:flex}.project-dialog-hint p{margin:0;line-height:1.45}.modal-actions,.panel-actions{justify-content:flex-end;align-items:center;gap:8px;display:flex}.notation-settings-form{border-top:1px solid var(--border);margin-top:18px;padding-top:18px}.notation-settings-form h3{margin:0;font-size:15px}.notation-rule-list{gap:8px;display:grid}.notation-rule-row{grid-template-columns:minmax(80px,.35fr) minmax(0,1fr);align-items:center;gap:10px;display:grid}.notation-rule-row>span{font-family:var(--font-mono);overflow-wrap:anywhere}.notation-rule-row input,.notation-identifier-add input,.notation-identifier-add select{background:var(--surface);border:1px solid var(--black);border-radius:var(--radius);color:var(--text);min-width:0;min-height:36px;padding:7px 9px}.notation-identifier-add{border:0;grid-template-columns:minmax(94px,.35fr) minmax(0,1fr) max-content;align-items:end;gap:8px;margin:0;padding:0;display:grid}.notation-identifier-add legend{margin-bottom:6px;padding:0;font-size:13px}.notice{background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);justify-content:space-between;align-items:center;gap:16px;width:calc(100% - 48px);max-width:820px;margin:0 auto 12px;padding:14px 16px;display:flex}.notice strong{display:block}.notice-body,.notice p{color:var(--text-muted);margin:4px 0 0;line-height:1.5}.notice-action{flex:none}.eyebrow{color:var(--text-muted);letter-spacing:0;text-transform:uppercase;margin:0;font-size:12px;font-weight:700}.project-chat-main{background:var(--bg)}.project-chat-grid{flex:1;grid-template-rows:minmax(0,1fr) auto auto;grid-template-columns:minmax(0,1fr);gap:14px;min-height:0;padding:0 22px 22px;display:grid}.project-thread{flex-direction:column;grid-column:1;align-items:stretch;min-height:0;display:flex}.project-landing{justify-content:center;padding-bottom:24px}.project-landing p{color:var(--text-muted);max-width:560px;margin:10px 0 0;line-height:1.5}.project-prompt,.projectless-prompt{border-radius:28px;flex-wrap:nowrap;width:100%;max-width:760px}.project-prompt{grid-column:1;margin:0 auto}.projectless-prompt{width:min(760px,100% - 48px);margin:12px auto 24px}.activity-panel-scrim{cursor:default;z-index:70;background:0 0;border:0;padding:0;position:fixed;inset:0}.activity-panel-scrim-open{pointer-events:auto}.activity-side-panel{background:var(--surface);z-index:80;flex-direction:column;min-width:min(430px,100vw);max-width:min(430px,100vw);height:100vh;transition:transform .16s;display:flex;position:fixed;top:0;right:0;transform:translate(100%);box-shadow:-18px 0 44px #00000014}.activity-side-panel-open{transform:translate(0)}.activity-panel-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;min-height:70px;padding:18px 20px;display:flex}.activity-panel-header h2{letter-spacing:0;margin:0;font-size:26px;font-weight:520}.activity-panel-header span{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;max-width:300px;margin-top:4px;font-size:13px;display:block;overflow:hidden}.activity-panel-body{gap:22px;padding:22px 24px 28px;display:grid;overflow:auto}.activity-section{gap:12px;display:grid}.activity-section-heading{color:var(--text-muted);align-items:center;gap:10px;display:flex}.activity-section-heading h3{color:var(--text-muted);letter-spacing:0;margin:0;font-size:19px;font-weight:560}.activity-feed{gap:0;margin:0;padding:0;list-style:none;display:grid}.activity-feed-item{grid-template-columns:26px minmax(0,1fr);gap:12px;min-height:84px;padding:0 0 20px;display:grid;position:relative}.activity-feed-item:after{background:var(--border-strong);content:"";width:1px;position:absolute;top:28px;bottom:0;left:12px}.activity-feed-item:last-child{min-height:auto;padding-bottom:0}.activity-feed-item:last-child:after{display:none}.activity-feed-icon{background:var(--surface);border:1px solid var(--border-strong);color:var(--text-muted);text-transform:uppercase;z-index:1;border-radius:999px;justify-content:center;align-items:center;width:24px;height:24px;font-size:10px;font-weight:750;line-height:1;display:inline-flex;position:relative}.activity-feed-item.active .activity-feed-icon{background:var(--accent);border-color:var(--accent);color:var(--white)}.activity-feed-title-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.activity-feed-title-row .badge{overflow-wrap:anywhere;white-space:normal;max-width:100%;line-height:1.35}.activity-feed-title-row strong{font-size:16px;font-weight:560;line-height:1.35}.activity-feed-item p,.activity-muted{color:var(--text-muted);margin:6px 0 0;line-height:1.45}.activity-chip-row{flex-wrap:wrap;gap:6px;margin-top:10px;display:flex}.activity-chip-row span{background:var(--surface-soft);color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;border-radius:999px;max-width:100%;padding:5px 9px;font-size:12px;overflow:hidden}.lean-code-block,.activity-diagnostics{background:var(--black);border-radius:var(--radius);color:var(--white);font-family:var(--font-mono);white-space:pre-wrap;max-height:280px;margin:0;padding:14px;font-size:12px;line-height:1.55;overflow:auto}.activity-diagnostics{max-height:180px}.artifact-uri{background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius);color:var(--text-muted);overflow-wrap:anywhere;padding:12px;font-size:12px;display:block}.tool-panel{background:var(--surface);border:1px solid var(--border);border-radius:14px;grid-area:1/2/span 3;align-self:stretch;min-height:0;padding:16px;overflow:auto}.section-heading{justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:16px;display:flex}.section-heading h2,.timeline-empty h3,.event-log h3,.diagnostics h3{margin:0;font-size:16px}.timeline-heading-meta{flex-direction:column;align-items:flex-end;gap:6px;display:flex}.job-id{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;max-width:180px;font-size:12px;overflow:hidden}.timeline-empty{background:var(--surface-soft);border-radius:var(--radius);margin-bottom:16px;padding:16px}.timeline-empty p{color:var(--text-muted);margin:5px 0 0;line-height:1.5}.timeline-steps{gap:8px;margin:0;padding:0;list-style:none;display:grid}.timeline-step{border:1px solid var(--border);border-radius:var(--radius);color:var(--text-muted);grid-template-columns:14px minmax(0,1fr);align-items:center;gap:11px;min-height:44px;padding:9px 10px;display:grid}.timeline-step div{justify-content:space-between;align-items:center;gap:8px;display:flex}.timeline-dot{background:var(--border-strong);border-radius:999px;width:9px;height:9px}.timeline-step-done,.timeline-step-active,.timeline-step-failed,.timeline-step-canceled{background:var(--surface-soft);color:var(--text)}.timeline-step-done .timeline-dot,.timeline-step-active .timeline-dot,.timeline-step-failed .timeline-dot,.timeline-step-canceled .timeline-dot{background:var(--black)}.event-log{border-top:1px solid var(--border);margin-top:16px;padding-top:16px}.event-log ul{gap:10px;margin:12px 0 0;padding:0;list-style:none;display:grid}.event-log li{background:var(--surface-soft);border-radius:var(--radius);padding:11px}.event-log li span{color:var(--text-subtle);margin-bottom:5px;font-size:12px;display:block}.event-log li p{color:var(--text-muted);margin:5px 0 0;line-height:1.5}.diagnostics{background:var(--black);border-radius:var(--radius);color:var(--white);margin-top:16px;padding:14px}.diagnostics pre{white-space:pre-wrap;margin:10px 0 0;overflow:auto}.detail-header-loading{margin:24px}.skeleton{border-radius:var(--radius);background:linear-gradient(90deg,#e7e7e7,#f5f5f5,#e7e7e7) 0 0/200% 100%;animation:1.4s ease-in-out infinite pulse;display:block}.skeleton-title{width:65%;height:28px}.skeleton-line{width:100%;height:14px;margin-top:16px}.skeleton-pill{width:130px;height:34px}@keyframes pulse{0%{background-position:200% 0}to{background-position:-200% 0}}@media (max-width:980px){.chat-app{grid-template-rows:auto minmax(0,1fr);grid-template-columns:1fr}.chat-sidebar{display:none}.mobile-workspace-bar{background:var(--sidebar);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;min-height:52px;padding:8px 14px;display:flex}.chat-main{height:calc(100vh - 52px);min-height:0}.project-chat-grid{flex-direction:column;grid-template-columns:1fr;display:flex}.tool-panel,.project-prompt{grid-column:1}.tool-panel{order:3;max-height:360px}.project-thread{order:0;min-height:180px}.project-prompt{order:1}}@media (max-width:620px){.chat-main{min-height:0}.chat-landing{justify-content:center;padding:22px 16px 18px}.chat-topbar{padding:10px 14px}.chat-topbar>div:first-child{flex-direction:column;align-items:flex-start;gap:2px}.chat-topbar .topbar-actions{flex-direction:row;align-items:center;gap:8px}.proof-history-picker{max-width:min(46vw,220px)}.prompt-input-shell{border-radius:24px;flex-wrap:wrap;width:calc(100% - 24px);margin-bottom:18px}.prompt-input-shell textarea{flex-basis:calc(100% - 54px)}.prompt-suggestions{width:min(320px,100%);display:grid}.notice{width:calc(100% - 24px)}.project-chat-grid{padding:0 12px 14px}.projectless-prompt{width:calc(100% - 24px);margin:auto 12px 14px}.activity-side-panel{min-width:100vw;max-width:100vw}}.projects-page-content{min-height:0;padding:36px clamp(20px,5vw,72px) 48px;overflow-y:auto}.project-directory-heading{max-width:720px;margin-bottom:30px}.project-directory-heading h1{margin:8px 0 12px;font-size:clamp(28px,3vw,40px)}.project-directory-heading>p:last-child{color:var(--text-muted);line-height:1.6}.project-directory-toolbar{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:24px;display:flex}.project-directory-toolbar label{font-weight:600}.project-directory-toolbar input{background:var(--surface);border:1px solid var(--border);color:var(--text);width:min(100%,360px);min-width:0;font:inherit;border-radius:10px;padding:11px 14px}.project-directory-toolbar>span{color:var(--text-muted);margin-left:auto;font-size:13px}.project-directory-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:16px;display:grid}.project-directory-card{border:1px solid var(--border);background:var(--surface);min-width:0;color:var(--text);border-radius:16px;flex-direction:column;padding:22px;text-decoration:none;display:flex}.project-directory-card:hover,.project-overview-chat-link:hover{background:var(--bg-subtle,#f6f6f6);border-color:var(--text-muted)}.project-directory-card-top{color:var(--text-muted);justify-content:space-between;display:flex}.project-directory-card h2{overflow-wrap:anywhere;margin:20px 0 8px;font-size:18px}.project-directory-card>p{color:var(--text-muted);overflow-wrap:anywhere;margin:0 0 20px;font-size:14px;line-height:1.6}.project-directory-card-meta{color:var(--text-muted);flex-wrap:wrap;gap:8px 14px;margin-top:auto;font-size:12px;display:flex}.project-directory-card-meta>span:last-child{flex-basis:100%}.project-directory-empty{text-align:center;color:var(--text-muted);flex-direction:column;align-items:center;padding:48px 16px;display:flex}.project-directory-empty h2{color:var(--text)}.project-overview{width:100%;max-width:960px;min-height:0;margin:0 auto;padding:32px 8px;overflow-y:auto}.project-overview-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:28px;display:flex}.project-overview-heading{flex:1;min-width:0}.project-overview h1{overflow-wrap:anywhere;margin:8px 0 12px;font-size:clamp(24px,3vw,36px)}.project-overview-description{color:var(--text-muted);overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.6}.project-overview-chat-list{gap:10px;padding:0;list-style:none;display:grid}.project-overview-chat-link{border:1px solid var(--border);color:var(--text);border-radius:12px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 18px;padding:16px;text-decoration:none;display:flex}.project-overview-chat-link span,.project-overview-chat-link strong{overflow-wrap:anywhere;min-width:0}.project-overview-chat-link time,.project-overview-status{color:var(--text-muted);font-size:13px}.project-overview-empty{color:var(--text-muted);background:var(--surface);border:1px dashed var(--border);border-radius:12px;padding:24px;line-height:1.6}@media (max-width:760px){.projects-page-content{padding:20px 16px 32px}.project-directory-toolbar{flex-direction:column;align-items:stretch}.project-directory-toolbar input{width:100%}.project-directory-toolbar>span{margin-left:0}.project-overview{padding:20px 0}}.sidebar-project-group{gap:2px;min-width:0;margin-bottom:12px;display:grid}.sidebar-project-row{font-weight:500}.sidebar-project-row svg{flex:none}.sidebar-project-chats{gap:2px;min-width:0;display:grid}.sidebar-project-chats .sidebar-link{min-width:0;padding-left:36px}.sidebar-project-chats .sidebar-link>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.sidebar-project-chats .sidebar-muted{padding-left:36px}.sidebar-project-more{color:var(--text-muted);cursor:pointer;text-align:left;font:inherit;background:0 0;border:0;border-radius:8px;padding:9px 10px 9px 36px}.sidebar-project-more:hover{background:var(--accent-soft);color:var(--accent-hover)}.sidebar-project-more:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.sidebar-project-header{border-radius:var(--radius);align-items:center;min-width:0;display:flex}.sidebar-project-header:hover,.sidebar-project-header:focus-within{background:var(--accent-soft)}.sidebar-project-header .sidebar-project-row{flex:1;min-width:0}.sidebar-project-create{width:30px;height:30px;color:var(--text-muted);cursor:pointer;opacity:0;pointer-events:none;background:0 0;border:0;border-radius:7px;flex:none;justify-content:center;align-items:center;margin-right:5px;display:inline-flex}.sidebar-project-header:hover .sidebar-project-create,.sidebar-project-header:focus-within .sidebar-project-create,.sidebar-project-create:focus-visible,.sidebar-project-create[aria-busy=true]{opacity:1;pointer-events:auto}.sidebar-project-create:hover{background:var(--accent-soft);color:var(--accent-hover)}.sidebar-project-create:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.sidebar-project-create:disabled{cursor:wait}@media (hover:none),(pointer:coarse){.sidebar-project-create{opacity:1;pointer-events:auto}}.mobile-workspace-project-list .sidebar-project-create{opacity:1;pointer-events:auto}.toast-viewport{z-index:1200;pointer-events:none;gap:10px;width:min(380px,100vw - 32px);display:grid;position:fixed;bottom:20px;right:20px}.toast{border:1px solid var(--border,#d9d9d9);background:var(--surface,#fff);color:var(--text,#1c1c1c);pointer-events:auto;overflow-wrap:anywhere;border-radius:12px;align-items:start;gap:16px;padding:14px 16px;display:flex;box-shadow:0 8px 28px #0002}.toast>span{flex:1;min-width:0}.toast-dismiss{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;min-width:28px;min-height:28px;font-size:22px;line-height:1}.toast-dismiss:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.ui-language-selector{margin-block:16px}.proof-job-status{flex-direction:column;align-items:flex-start;gap:8px}.proof-job-status>.notice{box-sizing:border-box;width:100%;max-width:680px;margin:0}.modal-panel:has(.account-settings){max-width:960px}.account-settings{grid-template-columns:190px minmax(0,1fr);gap:24px;min-height:380px;display:grid}.account-settings-nav{border-right:1px solid var(--border);flex-direction:column;gap:6px;padding-right:16px;display:flex}.account-settings-nav button{text-align:left;color:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px;padding:10px 12px}.account-settings-nav button[aria-current=page]{background:var(--accent-soft);color:var(--accent-hover);font-weight:600}.account-settings-content{min-width:0}.account-settings-content .modal-form{margin-top:20px}.account-settings-content .billing-card p{line-height:1.6}.account-menu{min-width:0;margin-top:auto;padding-top:12px;position:relative}.account-menu-trigger{width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;align-items:center;gap:10px;padding:10px;display:flex}.account-menu-trigger>.avatar,.account-menu-trigger>svg{flex-shrink:0}.account-menu-trigger:hover,.account-menu-trigger[aria-expanded=true]{background:var(--accent-soft)}.account-menu-identity{flex-direction:column;flex:1;min-width:0;display:flex}.account-menu-identity strong,.account-menu-identity>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.account-menu-identity>span{color:var(--text-muted);font-size:12px}.account-menu-popup{z-index:20;border:1px solid var(--border);background:var(--surface,#fff);box-shadow:var(--shadow);border-radius:12px;padding:6px;position:absolute;bottom:calc(100% + 4px);left:0;right:0}.account-menu-popup button{text-align:left;width:100%;color:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;padding:11px 9px;display:flex}.account-menu-popup button:hover{background:var(--accent-soft);color:var(--accent-hover)}.account-menu-popup small{color:var(--text-muted);margin-top:3px;font-size:12px;display:block}.account-menu button:focus-visible,.account-settings-nav button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (max-width:640px){.account-settings{grid-template-columns:minmax(0,1fr);gap:16px}.account-settings-nav{border-right:0;border-bottom:1px solid var(--border);flex-flow:wrap;padding:0 0 12px}.account-settings-nav button{white-space:nowrap;flex:1}}.account-menu-plan{color:var(--text-muted);margin:4px 9px 8px;font-size:12px}.billing-allowance progress,.billing-token-progress{width:100%;height:12px;accent-color:var(--accent)}.proof-premise-options{flex-wrap:wrap;gap:8px;margin-top:16px;display:flex}.proof-premise-options .button{border-color:var(--border);text-align:left;white-space:normal;border-radius:18px;max-width:100%;min-height:36px;padding:8px 14px;font-size:14px;font-weight:400;line-height:1.5}.proof-request-thread:empty{display:none}.proof-answer-body{flex-direction:column;flex:auto;min-width:0;display:flex}.proof-request-thread .message-list>div{gap:32px;min-width:0;display:grid}.proof-verdict{color:var(--text-muted);font-size:14px;margin-top:12px!important}.math-convention-settings h3{margin:0 0 6px}.math-convention-list{flex-direction:column;gap:14px;margin:14px 0 0;padding:0;list-style:none;display:flex}.math-convention-item .field-hint{line-height:1.5}.proof-convention-hint{color:var(--text-muted);margin:10px 0 0;font-size:13px;line-height:1.5}.proof-conventions{color:var(--text-muted);min-width:0;margin:0 0 12px;font-size:13px}.proof-conventions summary{cursor:pointer;width:fit-content;padding:4px 0}.proof-conventions summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.proof-conventions ul{flex-direction:column;gap:6px;margin:10px 0 0;padding-left:18px;display:flex}.proof-convention-source{color:var(--text-muted)}.account-menu-popup button>svg{flex-shrink:0}.account-menu-popup button>span{white-space:nowrap}.account-menu-popup .account-menu-usage-value{overflow-wrap:anywhere;text-align:right;min-width:0;margin:0 0 0 auto;font-size:12px}@media (max-width:640px){.message-list{padding:24px 16px}.chat-message.user>p,.chat-message.user>.learner-rich-text{max-width:92%;padding:10px 16px}}.billing-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.billing-plan-option{border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:10px;min-width:0;padding:16px;display:flex}.billing-plan-option h4,.billing-plan-option p{margin:0}.billing-plan-option button{margin-top:auto}@media (max-width:640px){.billing-plan-grid{grid-template-columns:minmax(0,1fr)}}.modal-panel:has(.share-chat-dialog){max-width:760px}.share-chat-dialog>p,.share-chat-dialog .stack>p{margin:0;line-height:1.65}.share-chat-actions,.shared-chat-message-heading{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.share-chat-preview{border:1px solid var(--border);border-radius:12px;padding:16px}.shared-chat-snapshot{overflow-wrap:anywhere;min-width:0}.shared-chat-snapshot h2{margin:0 0 8px;font-size:22px;line-height:1.4}.shared-chat-timestamp{color:var(--text-muted);font-size:12px}.shared-chat-message{border-top:1px solid var(--border);padding:20px 0}.shared-chat-message-heading{margin-bottom:12px;font-size:13px}.shared-chat-status{color:var(--text-muted);font-size:12px}.shared-chat-status.verified{color:#24613e}.shared-chat-plain,.shared-chat-lean pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}.shared-chat-plain{font-family:inherit;line-height:1.7}.shared-chat-lean{margin-top:16px}.shared-chat-lean summary{cursor:pointer;font-size:13px}.shared-chat-lean pre{background:#f5f5f5;border-radius:8px;padding:16px;font-size:13px}.public-shared-chat{max-width:840px;margin:0 auto;padding:32px 24px 64px}.public-shared-chat-header{justify-content:space-between;align-items:start;gap:20px;display:flex}.public-shared-chat-header h1{margin:8px 0;font-size:24px}.public-shared-chat>p{color:var(--text-muted);margin-bottom:32px;line-height:1.6}@media (max-width:520px){.public-shared-chat{padding:20px 16px 40px}.public-shared-chat-header{flex-wrap:wrap}.share-chat-preview{padding:12px}}.sidebar-link>.sidebar-chat-title{flex:auto;min-width:0}.sidebar-link>.chat-completion-dot{background:var(--accent);border-radius:50%;flex:0 0 8px;width:8px;height:8px;margin-left:auto}.prompt-input-shell{border-radius:24px;flex-direction:column;align-items:stretch;gap:8px;padding:15px 16px 10px;display:flex}.prompt-input-shell textarea{flex:none;width:100%;min-height:36px;line-height:1.6}.composer-controls{align-items:center;gap:8px;min-width:0;display:flex}.composer-controls>.prompt-icon-button{transform:translateY(4px)}.composer-controls .prompt-submit{margin-left:auto}.prompt-icon-button[aria-expanded=true]{background:var(--accent-soft);color:var(--accent-hover)}.math-keyboard{border-top:1px solid var(--border);min-width:0;padding-top:12px}.math-keyboard-header{align-items:center;gap:6px;margin-bottom:10px;display:flex}.math-keyboard-groups{flex-wrap:wrap;flex:1;gap:4px;min-width:0;display:flex}.math-keyboard-groups button,.math-keyboard-close{color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:8px;min-height:36px;padding:6px 10px;font-size:12px}.math-keyboard-groups button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent-hover)}.math-keyboard-close{flex:0 0 36px;place-items:center;padding:0;display:grid}.math-keyboard-keys{grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:6px;display:grid}.math-keyboard-keys button{background:var(--surface-soft);border:1px solid var(--border);color:var(--text);cursor:pointer;border-radius:9px;place-items:center;min-height:44px;padding:4px;font-size:20px;display:grid}.math-keyboard-keys .katex{font-size:1em}.math-keyboard button:hover:not(:disabled){background:var(--accent-soft);color:var(--accent-hover)}.math-keyboard button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.math-keyboard button:disabled{opacity:.45;cursor:not-allowed}@media (max-width:480px){.math-keyboard-groups{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.math-keyboard-close{align-self:flex-start}.math-keyboard-keys{max-height:194px;overflow-y:auto}}.composer-image-hint{color:var(--text-subtle);min-width:0;font-size:12px}.composer-image-list{gap:12px;width:100%;min-width:0;padding:6px 4px 4px;display:flex;overflow-x:auto}.composer-image{border:1px solid var(--border);background:var(--surface-soft);border-radius:14px;flex:0 0 88px;min-width:0;padding:5px;position:relative}.composer-image img{object-fit:cover;border-radius:9px;width:76px;height:68px}.composer-document{width:76px;height:68px;color:var(--text-muted);background:var(--surface);border-radius:9px;flex-direction:column;justify-content:center;align-items:center;gap:4px;display:flex}.composer-document>span{font-size:10px;font-weight:650}.composer-image>small{color:var(--text-subtle);font-size:10px;display:block}.composer-image>span{white-space:nowrap;text-overflow:ellipsis;font-size:10px;display:block;overflow:hidden}.composer-image>button{background:var(--surface);border:1px solid var(--border);cursor:pointer;border-radius:50%;place-items:center;width:23px;height:23px;display:grid;position:absolute;top:-3px;right:-3px}.composer-error,.composer-upload-state{margin:0;font-size:12px;line-height:1.6}.composer-error{color:var(--danger,#b42318)}.prompt-input-shell[data-dragging]{border-color:var(--text);background:var(--surface-soft)}.composer-drop-hint{font-size:13px}.chat-attachment-images{flex-wrap:wrap;gap:10px;max-width:100%;margin:8px 0;display:flex}.chat-attachment-image{width:min(180px,100%);min-width:0;margin:0}.chat-image-open{border:1px solid var(--border);background:var(--surface-soft);cursor:zoom-in;border-radius:16px;width:100%;padding:0;display:block;overflow:hidden}.chat-image-open img{object-fit:contain;width:100%;max-height:180px;display:block}.chat-attachment-image figcaption{white-space:nowrap;text-overflow:ellipsis;padding:4px 2px;font-size:11px;overflow:hidden}.chat-document-meta{color:var(--text-subtle);flex-direction:column;align-items:flex-start;gap:6px;font-size:11px;display:flex}.chat-image-full{object-fit:contain;width:100%;max-height:75dvh;display:block}.proof-request-thread{width:100%}.proof-request-thread .message-list{gap:18px;margin:0 0 36px}.proof-request-thread .chat-message.user{border-radius:22px;padding:13px 18px}.proof-request-thread .chat-message.assistant{padding:4px 0}.proof-request-thread [role=status]{color:var(--text-subtle);font-size:13px}@media (max-width:600px){.prompt-input-shell{padding:12px}.chat-attachment-image{width:min(136px,100%)}}.sidebar-link.active-project,.sidebar-link[aria-current=page]{background:var(--accent-soft);color:var(--accent-hover)}.timeline-step-active .timeline-dot,.processing-status-dots{color:var(--accent)}.timeline-step-active .timeline-dot{background:var(--accent)}input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:var(--accent)}
