:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--void:#f5f3ef;--void-2:#fff;--rail:#fbfaf7;--panel:#fff;--panel-2:#f4f1eb;--panel-3:#ece6dc;--line:#2925241f;--line-strong:#29252430;--line-hot:#0c0a0961;--shell-ink:#292524;--shell-muted:#706a61;--shell-faint:#a8a29e;--brand:#0d5b4d;--brand-strong:#083f36;--brand-soft:#e7f2ef;--accent:var(--brand);--accent-strong:var(--brand-strong);--accent-soft:#0d5b4d14;--action:var(--brand-strong);--action-strong:#052e28;--action-soft:#0d5b4d16;--ready:#0f8a70;--ready-soft:#0f8a701c;--warn:#b7791f;--warn-soft:#b7791f1f;--danger:#d92d20;--danger-soft:#fff1ef;--canvas:#fff;--canvas-2:#f7f4ef;--paper:#fff;--paper-2:#f7f4ef;--ink:#292524;--ink-muted:#706a61;--ink-faint:#a8a29e;--line-light:#2925241f;--line-light-strong:#29252433;--mint:#a7e5d3;--peach:#f4c5a8;--lavender:#c8b8e0;--sky:#a8c8e8;--rose:#e8b8c4;--radius-xs:4px;--radius-sm:6px;--radius:8px;--shadow-panel:0 18px 52px #2925241c, 0 1px 0 #ffffffdb inset;--shadow-paper:0 18px 42px #2925241a, 0 1px 0 #ffffffeb inset;--font-ui:"Avenir Next", "Segoe UI", Arial, sans-serif;--font-display:"Avenir Next", "Segoe UI", Arial, sans-serif;--font-mono:"JetBrains Mono", "SFMono-Regular", Consolas, monospace;--weight-regular:400;--weight-medium:500;--weight-semibold:600;font-family:var(--font-ui);font-synthesis:none;text-rendering:geometricprecision;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box;letter-spacing:0}html,body,#root{height:100%;min-height:100%}.site-root{background:#f4f2ed;grid-template-rows:minmax(0,1fr) auto;width:100%;height:100dvh;min-height:0;display:grid;overflow:hidden}.site-root>.app-shell{height:100%;min-height:0;overflow:hidden}.site-root>.legal-shell{height:100%;min-height:0;position:relative;inset:auto}body{color:var(--shell-ink);background:#f4f2ed;margin:0;overflow:hidden}button,input,select,textarea{min-width:0;max-width:100%;font:inherit}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.56}svg{flex:none;display:block}a{color:inherit}strong,b{font-weight:var(--weight-medium)}::selection{background:var(--accent);color:#fff}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app-shell{background:#f4f2ed;grid-template-columns:220px minmax(0,1fr);height:100dvh;min-height:700px;display:grid;position:relative;overflow:hidden}.lab-sidebar{min-width:0;min-height:0;color:var(--shell-ink);border-right:1px solid var(--line);background:#f8f6f1;flex-direction:column;gap:18px;padding:16px;display:flex;overflow-y:auto}.brand-block{grid-template-columns:40px minmax(0,1fr);align-items:center;gap:11px;min-width:0;padding:4px 0 8px;display:grid}.brand-block>div{min-width:0}.brand-mark{border-radius:var(--radius);background:var(--brand);color:#fff;width:40px;height:40px;font-family:var(--font-mono);font-size:.64rem;font-weight:var(--weight-semibold);border:1px solid #083f3647;place-items:center;display:grid;position:relative;overflow:hidden}.brand-mark svg{z-index:1;stroke-width:2px;position:relative}.brand-block h1,.brand-block p,.strip-title h1,.strip-title p,.setup-copy h2,.setup-copy p,.empty-state h2,.empty-state p{margin:0}.brand-block h1{color:var(--shell-ink);font-size:.94rem;font-weight:var(--weight-semibold);text-overflow:ellipsis;white-space:nowrap;line-height:1.12;overflow:hidden}.brand-block p{color:var(--brand);font-size:.71rem;font-weight:var(--weight-medium);text-overflow:ellipsis;white-space:nowrap;margin-top:4px;overflow:hidden}.rail-section{flex-direction:column;flex:1;gap:10px;min-height:0;display:flex}.thread-rail-section{border-top:1px solid var(--line);flex:1.15;padding-top:12px}.section-head{color:var(--shell-muted);font-size:.72rem;font-weight:var(--weight-medium);justify-content:space-between;align-items:center;gap:10px;display:flex}.section-head .ok{color:var(--ready)}.profile-list{flex-direction:column;gap:8px;min-height:0;padding-right:2px;display:flex;overflow-y:auto}.rail-search{border:1px solid var(--line);border-radius:var(--radius-sm);min-height:34px;color:var(--shell-muted);background:#ffffffc7;align-items:center;gap:7px;padding:0 9px;display:flex}.rail-search input,.rail-search input:focus{height:32px;box-shadow:none;background:0 0;border:0;padding:0}.thread-list{flex-direction:column;gap:7px;min-height:0;display:flex;overflow-y:auto}.thread-item{border:1px solid var(--line);border-radius:var(--radius);width:100%;min-width:0;color:var(--shell-ink);text-align:left;background:#ffffffb3;gap:5px;padding:9px;display:grid}.thread-item.active{border-color:var(--line-hot);background:#fff}.thread-item strong,.thread-item span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.thread-item strong{font-size:.78rem}.thread-item span{color:var(--shell-muted);font-size:.66rem}.thread-actions{grid-template-columns:repeat(3,30px);gap:7px;display:grid}.profile-item{border:1px solid var(--line);border-radius:var(--radius);width:100%;min-width:0;color:var(--shell-ink);text-align:left;background:#ffffffb8;gap:8px;padding:10px;transition:border-color .16s,background-color .16s,transform .16s;display:grid;position:relative}.profile-item:hover,.profile-item.active{border-color:var(--line-hot);background:#fff;transform:translateY(-1px)}.profile-item.active:after{background:var(--accent-strong);content:"";border-radius:0 4px 4px 0;width:3px;position:absolute;inset:9px auto 9px 0}.profile-topline{grid-template-columns:28px minmax(0,1fr);align-items:center;gap:8px;min-width:0;display:grid}.provider-mini{border:1px solid var(--line);border-radius:var(--radius-sm);width:28px;height:28px;color:var(--accent-strong);font-family:var(--font-mono);font-size:.58rem;font-weight:var(--weight-semibold);background:#f5efe6;place-items:center;display:grid}.profile-item strong,.profile-item>span:last-child{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.profile-item strong{color:var(--shell-ink);font-size:.82rem}.profile-item>span:last-child{color:var(--shell-muted);font-family:var(--font-mono);font-size:.67rem}.rail-footer{border-top:1px solid var(--line);gap:9px;margin-top:auto;padding-top:12px;display:grid}.rail-new-profile{justify-content:flex-start;width:100%}.rail-source-link{border:1px solid var(--line);border-radius:var(--radius-sm);min-height:46px;color:var(--shell-ink);background:#ffffff94;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:8px;padding:6px 8px;text-decoration:none;transition:border-color .16s,background-color .16s,transform .16s;display:grid}.rail-source-link>svg{justify-self:center}.rail-source-copy{gap:1px;min-width:0;display:grid}.rail-source-link strong,.rail-source-link small{min-width:0;line-height:1.3}.rail-source-link strong{color:var(--shell-ink);font-size:.68rem;font-weight:var(--weight-semibold)}.rail-source-link small{color:var(--shell-muted);font-family:var(--font-mono);text-overflow:ellipsis;white-space:nowrap;font-size:.56rem;overflow:hidden}.rail-source-link:hover{border-color:var(--line-strong);background:#fff;transform:translateY(-1px)}.rail-source-link:focus-visible{outline-offset:2px;outline:3px solid #0d5b4d38}.rail-legal{flex-wrap:wrap;gap:3px 9px;min-width:0;display:flex}.rail-legal a,.rail-legal button{color:var(--shell-muted);background:0 0;border:0;padding:2px 0;font-size:.62rem;line-height:1.35;text-decoration:none}.rail-legal a:hover,.rail-legal button:hover{color:var(--shell-ink);text-decoration:underline}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.console-main{background:var(--canvas);grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0;display:grid}.console-strip{border-top:3px solid var(--brand);border-bottom:1px solid var(--line);background:#fffffff5;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;min-height:68px;padding:10px 18px;display:grid}.mobile-brand-lockup{display:none}.strip-title{min-width:0}.eyebrow{color:var(--accent-strong);font-size:.68rem;font-weight:var(--weight-medium);align-items:center;display:inline-flex}.strip-title h1{color:var(--shell-ink);font-size:1.02rem;font-weight:var(--weight-semibold);text-overflow:ellipsis;white-space:nowrap;margin-top:3px;line-height:1.18;overflow:hidden}.strip-copy{color:var(--shell-muted);text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-size:.7rem;overflow:hidden}.strip-controls{justify-content:flex-end;align-items:center;gap:8px;min-width:0;display:flex}.strip-meter{flex-wrap:wrap;justify-content:flex-end;gap:6px;min-width:0;max-width:100%;display:flex}.strip-meter span,.badge-pill{border:1px solid var(--line);min-width:0;max-width:190px;height:28px;color:var(--shell-muted);font-size:.7rem;font-weight:var(--weight-medium);text-overflow:ellipsis;white-space:nowrap;background:#ffffffc7;border-radius:999px;align-items:center;gap:6px;padding:0 9px;line-height:1;display:inline-flex;overflow:hidden}.status-pill.ready{background:var(--ready-soft);color:var(--brand-strong);border-color:#0f8a7052}.status-pill.setup{background:var(--warn-soft);color:#8a4b0f;border-color:#f0ba636b}.deploy-pill.local{background:#ffffffd1;border-color:#29252424}.deploy-pill.staging{background:var(--warn-soft);color:#8a4b0f;border-color:#b7791f42}.deploy-pill.production{background:var(--danger-soft);color:var(--danger);border-color:#d92d203d}.strip-meter .privacy-pill{background:var(--brand-soft);color:var(--brand-strong);border-color:#0d5b4d38}.chat-frame{background:var(--canvas);min-width:0;min-height:0;box-shadow:none;border:0;border-radius:0;margin:0;display:flex;overflow:hidden}.chat-frame.disabled{background:linear-gradient(90deg,#29252409 1px,#0000 1px) 0 0/36px 36px,linear-gradient(#29252408 1px,#0000 1px) 0 0/36px 36px,#fff;justify-content:center;align-items:center;padding:22px;overflow-y:auto}.setup-state{grid-template-columns:minmax(250px,.58fr) minmax(500px,1fr);align-items:start;gap:14px;width:min(1010px,100%);display:grid}.setup-copy{border-radius:var(--radius);min-width:0;color:var(--shell-ink);background:linear-gradient(#fbfdfc,#f2f7f5);border:1px solid #0d5b4d38;flex-direction:column;justify-content:flex-start;padding:22px;display:flex;position:relative;overflow:hidden}.setup-copy:after{display:none}.setup-status-mark{background:#ffffffb8;border:1px solid #2925241f;border-radius:999px;align-items:center;gap:6px;height:26px;padding:0 10px;display:inline-flex;position:absolute;top:18px;right:18px}.setup-status-mark span{display:block}.setup-status-mark .status-dot{background:var(--warn);border-radius:50%;width:7px;height:7px}.setup-status-mark .status-line{background:#29252433;border-radius:999px;width:22px;height:2px}.setup-status-mark.ready .status-dot,.setup-status-mark.ready .status-cursor{background:var(--ready)}.setup-status-mark .status-cursor{background:var(--warn);border-radius:999px;width:2px;height:14px}.setup-copy h2{z-index:1;color:var(--shell-ink);font-family:var(--font-display);max-width:13ch;font-size:1.9rem;font-weight:var(--weight-medium);margin-top:12px;line-height:1.12;position:relative}.setup-copy p:last-of-type{z-index:1;color:var(--shell-muted);max-width:36ch;margin-top:12px;font-size:.9rem;line-height:1.48;position:relative}.setup-mode-card{z-index:1;border-radius:var(--radius);background:#ffffffb8;border:1px solid #29252421;grid-template-columns:minmax(0,.65fr) minmax(110px,1.4fr) minmax(0,1fr);align-items:center;gap:12px;margin-top:24px;padding:10px;display:grid;position:relative}.setup-mode-card>span,.setup-mode-card strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.setup-mode-card>span{color:var(--shell-ink);font-size:.72rem;font-weight:var(--weight-medium)}.setup-mode-card strong{color:var(--shell-muted);font-size:.72rem;font-weight:var(--weight-regular)}.mode-route{grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:3px;min-width:0;display:grid}.mode-route span{border-radius:var(--radius-sm);min-width:0;color:var(--shell-muted);font-size:.63rem;font-weight:var(--weight-medium);text-align:center;text-overflow:ellipsis;white-space:nowrap;background:#f7f4efd1;border:1px solid #2925241a;padding:5px 4px;line-height:1;overflow:hidden}.setup-steps{z-index:1;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:14px;display:grid;position:relative}.setup-step{border:1px solid var(--line);border-radius:var(--radius);background:#ffffffc7;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:6px;min-width:0;padding:6px;display:grid}.setup-step span{border-radius:var(--radius-sm);width:24px;height:24px;color:var(--shell-muted);font-size:.72rem;font-weight:var(--weight-semibold);background:#f4efe8;place-items:center;display:grid}.setup-step strong{color:var(--shell-muted);text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;overflow:hidden}.setup-step.complete{background:#ecfcf6bd;border-color:#4bd2b457}.setup-step.complete span{background:var(--ready);color:#fff}.setup-step.complete strong{color:#08775e}.setup-trust-list{z-index:1;border-radius:var(--radius);background:#ffffffbd;border:1px solid #0d5b4d29;gap:1px;margin-top:20px;display:grid;position:relative;overflow:hidden}.setup-trust-list>div{border-top:1px solid #0d5b4d1a;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:9px;padding:10px;display:grid}.setup-trust-list>div:first-child{border-top:0}.setup-trust-list svg{color:var(--brand);margin-top:1px}.setup-trust-list span,.setup-trust-list strong,.setup-trust-list small{min-width:0;display:block}.setup-trust-list strong{color:var(--shell-ink);font-size:.76rem;font-weight:var(--weight-semibold)}.setup-trust-list small{color:var(--shell-muted);margin-top:3px;font-size:.67rem;line-height:1.38}.setup-proof-links{z-index:1;flex-wrap:wrap;gap:7px 14px;margin-top:12px;display:flex;position:relative}.setup-proof-links a,.key-trust-note a{color:var(--brand-strong);font-size:.69rem;font-weight:var(--weight-semibold);text-underline-offset:3px}.endpoint-form{border:1px solid var(--line-strong);border-radius:var(--radius);background:linear-gradient(180deg, #e7f2ef9e, transparent 136px), var(--panel);min-width:0;color:var(--shell-ink);grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:16px;display:grid}.form-intro,.field-divider{min-width:0}.form-intro{border-bottom:1px solid var(--line);gap:4px;padding-bottom:11px;display:grid}.form-intro strong{color:var(--shell-ink);font-size:1.08rem;font-weight:var(--weight-semibold);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.form-intro span{overflow-wrap:anywhere;min-width:0;color:var(--shell-muted);font-size:.76rem;line-height:1.42}.provider-picker,.endpoint-wide,.model-fetch-row,.key-unlock-row,.workspace-param-grid,.endpoint-actions,.endpoint-status,.model-hint,.field-divider{grid-column:1/-1}.field-divider>*,.toggle-row>span,.consent-option>span{min-width:0}.provider-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.provider-chip{border:1px solid var(--line);border-radius:var(--radius);min-width:0;min-height:56px;color:var(--shell-ink);text-align:left;background:#ffffffd1;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:7px;padding:8px;transition:border-color .16s,background-color .16s,transform .16s;display:grid}.provider-chip:hover,.provider-chip.active{background:var(--action-soft);border-color:#29252452;transform:translateY(-1px)}.provider-glyph{border:1px solid var(--line);border-radius:var(--radius-sm);width:28px;height:28px;color:var(--action);font-family:var(--font-mono);font-size:.54rem;font-weight:var(--weight-semibold);background:#f4efe8;place-items:center;display:grid}.provider-copy{gap:3px;min-width:0;display:grid}.provider-copy strong,.provider-copy small{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.provider-copy strong{color:var(--shell-ink);font-size:.72rem;font-weight:var(--weight-semibold)}.provider-copy small{color:var(--shell-muted);font-size:.61rem;font-weight:var(--weight-medium)}.field-divider{justify-content:space-between;align-items:center;gap:10px;padding-top:2px;display:flex}.field-divider span,.field-divider small,.field>span,.field>small,.toggle-row small,.endpoint-status,.media-meta,.suggestion-kicker,.tool-value span{color:var(--shell-muted);font-size:.68rem;font-weight:var(--weight-medium)}.field>small,.endpoint-status,.export-safe-note,.setup-copy p,.toggle-row small{overflow-wrap:anywhere}.field-divider small{color:var(--accent-strong)}.field{gap:6px;min-width:0;display:grid}input,select,textarea{border:1px solid var(--line);border-radius:var(--radius-sm);width:100%;min-width:0;color:var(--shell-ink);background:#fff;transition:border-color .16s,box-shadow .16s,background-color .16s}input,select{height:40px;padding:0 11px}textarea{resize:vertical;padding:10px 11px}input::placeholder,textarea::placeholder{color:var(--shell-faint)}input:focus,select:focus,textarea:focus{border-color:var(--accent);outline:0;box-shadow:0 0 0 3px #2925241a}.secret-field,.search-field{align-items:center;gap:7px;min-width:0;display:flex}.secret-field input,.search-field input{flex:1}.secret-field button{border:1px solid var(--line);border-radius:var(--radius-sm);width:40px;height:40px;color:var(--shell-muted);background:#fff;flex:none;place-items:center;display:grid}.key-trust-note{border-radius:var(--radius);background:var(--brand-soft);color:var(--brand-strong);border:1px solid #0d5b4d2e;grid-template-columns:24px minmax(0,1fr);align-items:start;gap:10px;padding:11px;display:grid}.key-trust-note>svg{margin-top:1px}.key-trust-note strong,.key-trust-note p{margin:0}.key-trust-note strong{color:var(--brand-strong);font-size:.78rem;font-weight:var(--weight-semibold);display:block}.key-trust-note p{color:#47645e;margin-top:4px;font-size:.69rem;line-height:1.45}.key-trust-note a{margin-top:6px;display:inline-block}.search-field{border:1px solid var(--line);border-radius:var(--radius-sm);min-height:40px;color:var(--shell-muted);background:#fff;padding-left:10px}.search-field input,.search-field input:focus{box-shadow:none;background:0 0;border:0}.model-fetch-row,.key-unlock-row{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:9px;display:grid}.workspace-param-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.endpoint-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.needs-setup .setup-state .endpoint-actions .button.primary{min-width:132px}.export-safe-note{color:var(--shell-muted);flex:220px;align-self:center;margin:0;font-size:.7rem;line-height:1.35}.endpoint-status,.model-hint{overflow-wrap:anywhere;margin:0}.model-hint{border:1px solid var(--line);border-radius:var(--radius-sm);color:var(--shell-muted);background:#ffffffb3;padding:8px 10px;font-size:.7rem;line-height:1.35}.model-hint.ready{background:var(--ready-soft);color:#08775e;border-color:#16a34a33}.model-hint.warn{background:var(--warn-soft);color:#8a4b0f;border-color:#b7791f38}.button,.icon-button,.send-button,.scroll-button,.message-actions button,.branch-picker button{border:1px solid var(--line);border-radius:var(--radius-sm);justify-content:center;align-items:center;gap:7px;transition:border-color .16s,background-color .16s,color .16s,transform .16s;display:inline-flex}.button{max-width:100%;min-height:40px;font-size:.8rem;font-weight:var(--weight-semibold);white-space:nowrap;padding:0 12px}.button.primary{border-color:var(--action);background:var(--action);color:#fff;border-radius:999px}.button.primary:hover:not(:disabled){border-color:var(--action-strong);background:var(--action-strong)}.button.secondary{color:var(--shell-ink);background:#ffffffd1}.button.danger{background:var(--danger-soft);color:var(--danger);border-color:#d92d203d}.icon-button{width:40px;height:40px;color:var(--shell-ink);background:#ffffffd1;flex:none}.icon-button.compact{width:30px;height:30px}.danger-icon{color:var(--danger);border-color:#d92d203d}.button:hover:not(:disabled),.icon-button:hover:not(:disabled),.send-button:hover:not(:disabled),.scroll-button:hover:not(:disabled),.message-actions button:hover:not(:disabled),.branch-picker button:hover:not(:disabled){transform:translateY(-1px)}.toggle-row{border:1px solid var(--line);border-radius:var(--radius);background:#ffffffd1;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:8px;min-width:0;padding:9px;display:grid}.toggle-row input{width:20px;height:20px;accent-color:var(--accent);justify-self:center}.toggle-row strong{color:var(--shell-ink);font-size:.78rem;display:block}.toggle-row small{white-space:normal;margin-top:3px;line-height:1.35;display:block}.legal-shell{z-index:1;color:var(--shell-ink);background:linear-gradient(90deg,#29252406 1px,#0000 1px) 0 0/48px 48px,linear-gradient(#29252406 1px,#0000 1px) 0 0/48px 48px,#f8f6f1;position:fixed;inset:0;overflow-y:auto}.legal-header{z-index:2;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#f8f6f1f0;justify-content:space-between;align-items:center;gap:20px;min-width:0;padding:12px max(20px,50vw - 480px);display:flex;position:sticky;top:0}.legal-brand{min-width:0;color:inherit;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:10px;text-decoration:none;display:grid}.legal-brand>span:last-child{gap:2px;min-width:0;display:grid}.legal-brand strong,.legal-brand small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.legal-brand strong{font-size:.86rem;font-weight:var(--weight-semibold)}.legal-brand small{color:var(--shell-muted);font-size:.67rem}.legal-nav{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:5px;min-width:0;display:flex}.legal-nav a{border-radius:var(--radius-sm);color:var(--shell-muted);font-size:.72rem;font-weight:var(--weight-medium);border:1px solid #0000;padding:7px 9px;text-decoration:none}.legal-nav a:hover,.legal-nav a[aria-current=page]{border-color:var(--line);color:var(--shell-ink);background:#ffffffb8}.legal-document{width:min(780px,100% - 36px);margin:0 auto;padding:64px 0 88px}.legal-back{width:fit-content;color:var(--shell-muted);font-size:.72rem;font-weight:var(--weight-medium);align-items:center;gap:6px;margin-bottom:46px;text-decoration:none;display:flex}.legal-back:hover{color:var(--shell-ink)}.legal-document>h1{max-width:18ch;color:var(--shell-ink);font-size:clamp(2.2rem,6vw,4.4rem);font-weight:var(--weight-medium);margin:10px 0 0;line-height:.98}.legal-description{max-width:60ch;color:var(--shell-muted);margin:22px 0 0;font-size:1rem;line-height:1.65}.legal-date{color:var(--shell-faint);font-family:var(--font-mono);margin:15px 0 0;font-size:.67rem}.legal-lede{border-top:1px solid var(--line-strong);border-bottom:1px solid var(--line);color:var(--shell-ink);margin:54px 0 0;padding:25px 0;font-size:1.08rem;line-height:1.7}.legal-document section{gap:12px;min-width:0;margin-top:42px;display:grid}.legal-document section h2,.legal-document section p,.legal-document section ul{margin:0}.legal-document section h2{color:var(--shell-ink);font-size:1.05rem;font-weight:var(--weight-semibold);line-height:1.35}.legal-document section p,.legal-document section li{color:#4f4a44;overflow-wrap:anywhere;font-size:.87rem;line-height:1.75}.legal-document section ul{gap:9px;padding-left:20px;display:grid}.legal-document section a{color:var(--shell-ink);text-underline-offset:3px;text-decoration-thickness:1px}.legal-table-wrap{border:1px solid var(--line);border-radius:var(--radius);background:#ffffffb8;max-width:100%;overflow-x:auto}.legal-table-wrap table{border-collapse:collapse;text-align:left;width:100%;min-width:620px}.legal-table-wrap th,.legal-table-wrap td{border-bottom:1px solid var(--line);color:#4f4a44;vertical-align:top;padding:12px;font-size:.74rem;line-height:1.5}.legal-table-wrap th{color:var(--shell-ink);font-weight:var(--weight-semibold);background:#f4f1ebcc}.legal-table-wrap tr:last-child td{border-bottom:0}.legal-table-wrap code{color:var(--shell-ink);font-family:var(--font-mono);overflow-wrap:anywhere;font-size:.68rem}.legal-settings-button{justify-self:start;margin-top:4px}.legal-footer{border-top:1px solid var(--line);min-width:0;color:var(--shell-muted);background:#f4f1ebd6;justify-content:space-between;align-items:center;gap:18px;padding:22px max(20px,50vw - 480px);font-size:.68rem;display:flex}.legal-footer>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.legal-footer button{color:var(--shell-muted);font-size:inherit;white-space:nowrap;background:0 0;border:0;padding:6px 0}.legal-footer button:hover{color:var(--shell-ink);text-decoration:underline}.consent-banner{z-index:100;width:100%;padding:9px max(16px, calc((100vw - 1280px) / 2)) calc(9px + env(safe-area-inset-bottom));color:var(--shell-ink);background:#fffffff7;border:0;border-top:1px solid #29252438;border-radius:0;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;display:grid;position:relative;box-shadow:0 -8px 28px #29252417}.consent-icon{border-radius:var(--radius-sm);background:var(--ready-soft);color:#08775e;border:1px solid #16a34a33;place-items:center;width:34px;height:34px;display:grid}.consent-copy{gap:3px;min-width:0;display:grid}.consent-copy strong{font-size:.82rem;font-weight:var(--weight-semibold)}.consent-copy p,.consent-detail{color:var(--shell-muted);overflow-wrap:anywhere;margin:0;font-size:.7rem;line-height:1.5}.consent-links{flex-wrap:wrap;gap:4px 10px;min-width:0;display:flex}.consent-links a,.consent-links button{color:var(--shell-muted);text-underline-offset:3px;background:0 0;border:0;padding:1px 0;font-size:.66rem;text-decoration:underline}.consent-actions{grid-template-columns:repeat(2,minmax(120px,1fr));gap:7px;display:grid}.consent-actions .button{width:100%;font-size:.72rem}.consent-allow{color:#08775e!important;background:#ecfcf6e6!important;border-color:#16a34a4d!important}.consent-scrim{z-index:110;background:#0c0a0947;place-items:center;padding:18px;display:grid;position:fixed;inset:0;overflow-y:auto}.consent-dialog{border-radius:var(--radius);width:min(540px,100%);color:var(--shell-ink);background:linear-gradient(#a7e5d321,#0000 150px),#fff;border:1px solid #29252438;gap:12px;padding:18px;display:grid;box-shadow:0 28px 80px #29252440}.consent-dialog>header{border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;padding-bottom:14px;display:grid}.consent-dialog>header>div{min-width:0}.consent-dialog h2{font-size:1.35rem;font-weight:var(--weight-medium);margin:7px 0 0;line-height:1.2}.consent-option{border:1px solid var(--line);border-radius:var(--radius);background:#ffffffc7;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:10px;min-width:0;padding:11px;display:grid}.consent-option input{width:20px;height:20px;accent-color:var(--accent);justify-self:center}.consent-option-mark{background:var(--ready-soft);color:#08775e;border-radius:50%;justify-self:center;place-items:center;width:24px;height:24px;display:grid}.consent-option strong,.consent-option small{min-width:0;display:block}.consent-option strong{font-size:.78rem;font-weight:var(--weight-semibold)}.consent-option small{color:var(--shell-muted);overflow-wrap:anywhere;margin-top:4px;font-size:.68rem;line-height:1.45}.consent-option.always-on{background:#ecfcf68c}.consent-dialog-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:2px;display:flex}.endpoint-scrim{z-index:10;cursor:default;background:#0c0a091f;border:0;position:absolute;inset:0}.endpoint-drawer{z-index:11;border:1px solid var(--line-strong);border-radius:var(--radius);background:linear-gradient(#f4c5a821,#0000 150px),#fffffffa;flex-direction:column;gap:10px;width:min(368px,100vw - 32px);min-width:0;padding:14px;display:flex;position:absolute;top:12px;bottom:12px;right:12px;overflow-y:auto;box-shadow:0 26px 70px #29252433}.drawer-head{border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1fr) 30px;align-items:start;gap:10px;min-width:0;padding-bottom:12px;display:grid}.drawer-head>div{gap:4px;min-width:0;display:grid}.drawer-head strong,.drawer-head small{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.drawer-head strong{color:var(--shell-ink);font-family:var(--font-mono);font-size:.84rem;font-weight:var(--weight-semibold)}.drawer-head small{color:var(--shell-muted);font-size:.68rem}.endpoint-drawer .endpoint-form{background:0 0;border:0;grid-template-columns:1fr;padding:0}.endpoint-drawer .provider-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.endpoint-drawer .model-fetch-row{grid-template-columns:1fr}.endpoint-drawer .provider-chip{min-height:48px;padding:7px}.endpoint-drawer .endpoint-actions{margin-top:2px}.assistant-workbench,.media-root{background:linear-gradient(90deg, #29252405 1px, transparent 1px), linear-gradient(180deg, #29252404 1px, transparent 1px), var(--canvas);background-size:48px 48px,48px 48px,auto;flex-direction:column;width:100%;min-width:0;min-height:0;display:flex}.assistant-workbench{min-height:0}.workspace-toolbar{border-bottom:1px solid var(--line-light);background:#ffffffeb;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 14px;display:grid}.thread-title-edit{gap:3px;min-width:0;display:grid}.thread-title-edit input{height:30px;box-shadow:none;color:var(--ink);font-size:.94rem;font-weight:var(--weight-semibold);background:0 0;border:0;padding:0}.thread-title-edit span,.tool-state,.panel-note{color:var(--ink-muted);font-size:.7rem}.workspace-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:7px;display:flex}.workspace-actions .button{min-height:32px;font-size:.72rem}.mobile-more-trigger,.mobile-actions-backdrop,.mobile-actions-sheet{display:none}.workspace-tool-button.active,.fetch-models-control:focus-visible{border-color:var(--line-hot);background:#fffffff0}.thread-menu{display:inline-flex;position:relative}.thread-menu-popover{z-index:8;border:1px solid var(--line);border-radius:var(--radius);background:#fff;gap:3px;width:184px;padding:5px;display:grid;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 18px 44px #29252429}.thread-menu-popover button{border-radius:var(--radius-sm);width:100%;min-height:34px;color:var(--shell-ink);text-align:left;background:0 0;justify-content:flex-start;align-items:center;gap:8px;padding:0 8px;font-size:.75rem;display:flex}.thread-menu-popover button:hover{background:var(--action-soft)}.thread-menu-popover button.danger{color:var(--danger)}.toolbar-model-switcher{border:1px solid var(--line-light);border-radius:var(--radius-sm);background:#ffffffe6;align-items:center;gap:7px;width:min(260px,24vw);min-width:190px;min-height:32px;padding:0 8px;display:flex;box-shadow:inset 0 1px #ffffffd1}.toolbar-model-switcher>span{color:var(--ink-muted);font-size:.64rem;font-weight:var(--weight-medium);flex:none}.toolbar-model-switcher select{width:100%;min-width:0;height:30px;box-shadow:none;color:var(--ink);background:0 0;border:0;padding:0;font-size:.72rem}.run-control-group{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;display:grid}.run-settings-panel{width:min(420px,42vw)}.run-settings-section{border:1px solid var(--line);border-radius:var(--radius);background:#ffffffb8;gap:9px;padding:10px;display:grid}.run-settings-section h3{color:var(--ink);font-size:.76rem;font-weight:var(--weight-semibold);margin:0}.run-settings-summary{gap:3px;min-width:0;display:grid}.run-settings-summary strong,.run-settings-summary span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.run-settings-summary strong{color:var(--ink);font-size:.82rem;font-weight:var(--weight-semibold)}.run-settings-summary span{color:var(--ink-muted);font-size:.68rem}.run-field{gap:4px;min-width:0;display:grid}.run-field span,.run-model-hint{color:var(--ink-muted);font-size:.64rem;font-weight:var(--weight-medium)}.run-field input,.run-field select{border-radius:var(--radius-sm);height:36px;padding:0 9px;font-size:.76rem}.run-settings-panel .model-picker{gap:4px;display:grid}.run-status{border:1px solid var(--line);border-radius:var(--radius-sm);color:var(--ink-muted);overflow-wrap:anywhere;background:#faf8f3c7;margin:0;padding:8px 9px;font-size:.7rem;line-height:1.35}.system-control input{min-width:0}.run-settings-actions{flex-wrap:wrap;gap:8px;display:flex}.save-run-controls{flex:140px;justify-content:center;min-height:36px;font-size:.74rem}.workspace-body{flex:1;grid-template-columns:minmax(0,1fr) auto;min-width:0;min-height:0;display:grid;overflow:hidden}.custom-thread{min-width:0;min-height:0}.workspace-panel{border-left:1px solid var(--line-light);background:#faf8f3f5;flex-direction:column;gap:10px;width:min(380px,38vw);min-width:300px;min-height:0;padding:12px;display:flex;overflow-y:auto}.compare-panel{width:min(620px,52vw)}.panel-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;padding-bottom:8px;display:flex}.panel-head strong{color:var(--ink);font-size:.82rem;font-weight:var(--weight-semibold)}.panel-textarea{min-height:96px}.tool-registry-list{gap:10px;display:grid}.tool-registry-item{border:1px solid var(--line);border-radius:var(--radius-sm);background:#ffffffb8;gap:8px;margin:0;padding:10px;display:grid}.tool-registry-item legend{color:var(--ink);font-size:.8rem;font-weight:var(--weight-semibold);padding:0 4px}.tool-registry-item p{color:var(--ink-muted);margin:0;font-size:.74rem;line-height:1.4}.compact-toggle{background:0 0;border:0;padding:0}.thread-root{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.thread-viewport{scroll-behavior:smooth;scrollbar-gutter:stable;flex-direction:column;flex:1;width:100%;min-height:0;display:flex;overflow-y:auto}.message-meta-line{color:var(--ink-muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;font-size:.68rem;display:flex}.message-meta-line span{font-family:var(--font-mono)}.user-dot{background:var(--accent-strong);color:#fff;border-radius:50%;place-items:center;width:18px;height:18px;font-size:.62rem;display:grid}.assistant-dot{border-radius:var(--radius-sm);width:22px;height:22px;color:var(--accent-strong);font-family:var(--font-mono);font-size:.54rem;font-weight:var(--weight-semibold);background:linear-gradient(135deg,#a7e5d357,#f4c5a847),#fff;border:1px solid #2925241f;place-items:center;display:grid}.message-error-state .message-body{background:var(--danger-soft);border-color:#d92d2047}.tool-records{gap:8px;margin-top:10px;display:grid}.tool-card p{color:var(--ink);margin:0;font-size:.78rem}.tool-card pre{max-height:180px}.inline-media{margin-top:12px}.run-meta{color:var(--ink-muted);flex-wrap:wrap;gap:6px;display:flex}.run-meta span{border:1px solid var(--line-light);border-radius:var(--radius-sm);background:#ffffffc7;align-items:center;min-height:24px;padding:0 8px;font-size:.68rem;display:inline-flex}.run-meta.compact{margin-top:9px}.edit-banner,.undo-toast{border-radius:var(--radius-sm);color:var(--ink);background:#ebf9f4eb;border:1px solid #247c682e;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;font-size:.76rem;display:flex}.undo-toast{z-index:3;margin:10px;position:sticky;top:0}.loading-inline{color:var(--ink-muted);font-size:.82rem}.dialog-backdrop{z-index:30;background:#231f1d47;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.confirm-dialog{border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);width:min(420px,100%);box-shadow:var(--shadow-lg);gap:12px;padding:18px;display:grid}.confirm-dialog h2,.confirm-dialog p{margin:0}.confirm-dialog h2{color:var(--ink);font-size:1rem}.confirm-dialog p{color:var(--ink-muted);font-size:.86rem;line-height:1.45}.dialog-actions{justify-content:flex-end;gap:8px;display:flex}.compare-profile-list{gap:7px;display:grid}.compare-profile{border:1px solid var(--line);border-radius:var(--radius-sm);background:#ffffffb8;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:7px;padding:8px;display:grid}.compare-profile input{width:18px;height:18px}.compare-profile span,.compare-profile small{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.compare-profile small{color:var(--ink-muted)}.compare-results{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px;display:grid}.compare-prompt-context{border:1px solid var(--line);border-radius:var(--radius-sm);background:#ffffffb8;gap:5px;padding:9px;display:grid}.compare-prompt-context span{color:var(--ink-muted);font-size:.68rem;font-weight:var(--weight-medium)}.compare-prompt-context p{max-height:96px;color:var(--ink);overflow-wrap:anywhere;margin:0;font-size:.78rem;line-height:1.42;overflow-y:auto}.compare-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;gap:9px;padding:10px;display:grid}.compare-card header{gap:3px;display:grid}.compare-card header small{color:var(--ink-muted);font-family:var(--font-mono);font-size:.68rem}.compare-body{max-height:280px;overflow-y:auto}.diagnostic-row{border:1px solid var(--line);border-radius:var(--radius-sm);background:#fff;gap:4px;padding:9px;display:grid}.diagnostic-row strong{font-size:.76rem}.diagnostic-row span{color:var(--ink-muted);font-size:.72rem;line-height:1.4}.diagnostic-row.ok{border-color:#16a34a38}.diagnostic-row.warn{border-color:#b7791f47}.diagnostic-row.error{border-color:#d92d2047}.empty-state{width:min(780px,100% - 40px);min-height:360px;color:var(--ink);flex-direction:column;justify-content:center;align-items:stretch;margin:auto;padding:32px 18px;display:flex}.empty-state.compact{text-align:center;align-items:center;min-height:100%}.empty-system-card{border:1px solid var(--line-light-strong);border-radius:var(--radius);background:linear-gradient(135deg, #a7e5d31a, transparent 52%), linear-gradient(225deg, #e8b8c41a, transparent 48%), var(--paper);text-align:left;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:14px;max-width:600px;margin:0 auto;padding:16px;display:grid;position:relative;box-shadow:0 10px 28px #2925240f}.empty-copy{gap:7px;min-width:0;display:grid}.text-session-badge{border-radius:var(--radius);background:linear-gradient(135deg,#a7e5d338,#0000 48%),linear-gradient(225deg,#f4c5a838,#0000 42%),#ffffffeb;border:1px solid #2925241f;align-content:center;gap:8px;width:62px;height:62px;padding:12px;display:grid;position:relative}.text-session-badge.tools-enabled{border-color:#16a34a47}.text-line{background:#2925243d;border-radius:999px;width:78%;height:6px;display:block}.text-line.long{background:#29252457;width:100%}.text-line.short{background:#16a34a6b;width:54%}.text-cursor{background:var(--accent-strong);border-radius:999px;width:2px;height:16px;position:absolute;bottom:16px;right:15px}.empty-kicker{color:var(--shell-muted);font-size:.7rem;font-weight:var(--weight-medium)}.empty-state h2{color:var(--ink);font-family:var(--font-display);font-size:1.36rem;font-weight:var(--weight-medium);overflow-wrap:anywhere;line-height:1.18}.empty-state p{color:var(--ink-muted);font-size:.9rem;line-height:1.45}.empty-icon{border-radius:var(--radius);background:var(--accent-soft);width:44px;height:44px;color:var(--accent-strong);place-items:center;display:grid}.empty-state.compact h2{margin-top:14px}.empty-state.compact p{overflow-wrap:anywhere;margin-top:7px}.suggestion-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;margin-top:18px;display:grid}.suggestion-chip{border:1px solid var(--line-light);border-radius:var(--radius);min-height:92px;color:var(--ink);text-align:left;background:#ffffffdb;gap:7px;padding:12px;transition:border-color .16s,background-color .16s,transform .16s;display:grid}.suggestion-chip:hover{background:var(--paper);border-color:#2925244d;transform:translateY(-1px)}.suggestion-kicker{color:var(--accent-strong)}.suggestion-text{color:var(--ink-muted);font-size:.8rem;line-height:1.38}.message{grid-template-columns:32px minmax(0,1fr);gap:10px;width:min(820px,100% - 44px);margin:18px auto;display:grid}.message-editing{width:min(760px,100% - 44px)}.message-user{grid-template-columns:minmax(0,1fr) 34px}.message-user .message-avatar{grid-column:2}.message-user .message-body{max-width:min(600px,68%);color:var(--ink);background:#f2eee7;border-color:#29252433;grid-area:1/1;justify-self:end}.message-avatar{border:1px solid var(--line-light);border-radius:var(--radius);background:var(--paper);width:32px;height:32px;color:var(--accent-strong);place-items:center;display:grid}.message-user .message-avatar{color:var(--accent-strong);background:#f4f0e9;border-color:#29252433}.message-body{border-radius:var(--radius);border:1px solid #0000;min-width:0;padding:9px 11px}.message-assistant .message-body{color:var(--ink);padding-top:4px}.message-editing .message-body{background:#ffffffc7;border-color:#2925242e;width:100%;max-width:min(640px,100%);padding:0}.message-attachments,.composer-attachments{flex-wrap:wrap;gap:7px;margin-bottom:8px;display:flex}.composer-attachments:empty{display:none}.input-attachment-card{border-radius:var(--radius-sm);background:#ffffffb8;border:1px solid #29252429;align-items:center;gap:9px;min-width:min(420px,100%);max-width:100%;margin:4px 0 9px;padding:8px;display:flex}.input-attachment-card>img{border-radius:var(--radius-xs);object-fit:cover;width:54px;height:54px}.input-attachment-card>span{gap:2px;min-width:0;display:grid}.input-attachment-card strong,.input-attachment-card small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.input-attachment-card strong{font-size:.76rem}.input-attachment-card small,.input-attachment-card em{color:var(--ink-muted);font-size:.66rem;font-style:normal}.input-attachment-card em{white-space:nowrap;margin-left:auto}.message-error{border-radius:var(--radius);background:var(--danger-soft);color:#9b2821;border:1px solid #ff6b6152;gap:7px;margin-top:8px;padding:9px;font-size:.84rem;display:grid}.message-error strong,.message-error p{margin:0}.message-error p{color:#7f352f;font-size:.75rem;line-height:1.45}.error-recovery-actions{flex-wrap:wrap;gap:7px;display:flex}.error-recovery-actions button{border-radius:var(--radius-sm);color:#7f2822;min-height:36px;font-size:.72rem;font-weight:var(--weight-semibold);background:#fff;border:1px solid #9b282140;justify-content:center;align-items:center;gap:6px;padding:0 9px;display:inline-flex}.markdown-image-consent{flex-wrap:wrap;align-items:center;gap:.5rem;display:inline-flex}.markdown-content{color:inherit;overflow-wrap:anywhere;font-size:.93rem;line-height:1.58}.message-body>.markdown-content+.markdown-content{margin-top:10px}.markdown-content>:first-child{margin-top:0}.markdown-content>:last-child{margin-bottom:0}.markdown-content p,.markdown-content ul,.markdown-content ol,.markdown-content pre,.markdown-content table,.markdown-content blockquote{margin:0 0 12px}.markdown-content h1,.markdown-content h2,.markdown-content h3{color:inherit;margin:16px 0 8px;line-height:1.22}.markdown-content h1{font-size:1.28rem}.markdown-content h2{font-size:1.12rem}.markdown-content h3{font-size:1rem}.markdown-content code{border:1px solid var(--line-light);border-radius:var(--radius-xs);font-family:var(--font-mono);background:#171b2212;padding:2px 5px;font-size:.86em}.message-user .markdown-content code{background:#2925240f;border-color:#29252429}.markdown-content pre{border:1px solid var(--line-light);border-radius:var(--radius);color:var(--ink);background:#f8fafc;padding:12px;overflow-x:auto}.markdown-content pre code{color:inherit;background:0 0;border:0;padding:0}.markdown-content table{border-collapse:collapse;width:100%;font-size:.86rem}.markdown-content th,.markdown-content td{border:1px solid var(--line-light);text-align:left;padding:8px}.markdown-content blockquote{border-left:3px solid var(--accent-strong);color:var(--ink-muted);padding-left:12px}.source-citation{border:1px solid var(--line-light);background:var(--paper);max-width:100%;color:var(--ink-muted);border-radius:999px;align-items:center;gap:6px;margin:4px 6px 4px 0;padding:6px 9px;font-size:.75rem;text-decoration:none;display:inline-flex}.source-citation span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.source-citation small{color:var(--ink-faint)}.tool-card{border-radius:var(--radius);color:var(--ink);background:#f4fbf8f0;border:1px solid #247c682e;gap:8px;margin-top:10px;padding:9px;display:grid}.tool-card+.source-citation,.source-citation+.tool-card{margin-top:8px}.tool-card.error{background:var(--danger-soft);border-color:#ff6b6152}.tool-card-head,.message-controls,.composer-toolbar,.media-asset figcaption{justify-content:space-between;align-items:center;gap:10px;display:flex}.tool-card-head span{color:#1f6d5c;font-size:.76rem;font-weight:var(--weight-semibold);align-items:center;gap:6px;display:inline-flex}.tool-card-head small{color:var(--ink-muted);font-size:.72rem}.tool-card-grid{gap:8px;display:grid}.tool-summary{color:var(--ink-muted);font-size:.76rem;line-height:1.45}.tool-details{min-width:0}.tool-details summary{color:#1f6d5c;cursor:pointer;min-height:36px;font-size:.72rem;font-weight:var(--weight-semibold);align-items:center;display:inline-flex}.tool-details[open] summary{margin-bottom:8px}.tool-value{gap:5px;display:grid}.tool-value span{color:#1f6d5c}.tool-value pre{border-radius:var(--radius-sm);max-height:128px;color:var(--ink-muted);font-family:var(--font-mono);background:#ffffff9e;border:1px solid #247c682e;margin:0;padding:8px;font-size:.72rem;line-height:1.45;overflow:auto}.message-controls{min-height:28px;margin-top:8px}.message-user .message-controls{justify-content:flex-end}.branch-picker,.message-actions{align-items:center;gap:5px;display:inline-flex}.message-actions{min-height:30px}.branch-picker span{color:var(--ink-faint);font-size:.72rem}.message-user .branch-picker span{color:var(--ink-faint)}.message-actions button,.branch-picker button{border-color:var(--line-light);background:var(--paper);width:28px;height:28px;color:var(--ink-muted)}.message-actions button[data-copied=true]{background:var(--ready-soft);color:#08775e;border-color:#16a34a3d}.message-actions .copy-done,.message-actions button[data-copied=true] .copy-idle{display:none}.message-actions button[data-copied=true] .copy-done{display:block}.message-user .message-actions button,.message-user .branch-picker button{color:var(--accent-strong);background:#fff;border-color:#29252429}.thread-footer{z-index:2;background:linear-gradient(180deg, #fff0, #fffffff0 34%, var(--canvas) 100%);gap:6px;margin-top:auto;padding:10px 20px 14px;display:grid;position:sticky;bottom:0}.scroll-button{border-color:var(--line-light);width:30px;height:26px;color:var(--ink-muted);background:#ffffffeb;justify-self:center;position:absolute;top:-26px;left:50%;transform:translate(-50%);box-shadow:0 8px 20px #29252414}.scroll-button:hover:not(:disabled){transform:translate(-50%)translateY(-1px)}.composer-dropzone{justify-self:center;width:min(820px,100%);display:block}.composer-dropzone[data-dragging=true] .composer,.composer-dropzone:focus-within .composer{border-color:#247c6861}.composer{border:1px solid var(--line-light-strong);border-radius:var(--radius);background:#fffffff7;gap:6px;padding:8px;display:grid;box-shadow:0 14px 34px #2925241a}.edit-composer{box-shadow:none}.thread-root:has(.message-editing) .thread-composer{display:none}.composer-quote,.queue-item,.attachment-chip{border:1px solid var(--line-light);background:var(--paper-2);min-width:0;color:var(--ink-muted);border-radius:999px;align-items:center;gap:7px;padding:6px 9px;font-size:.76rem;display:flex}.composer-quote{border-radius:var(--radius)}.composer-quote button,.attachment-chip button{width:24px;height:24px;color:var(--ink-faint);background:0 0;border-radius:999px;place-items:center;display:grid}.queue-item span,.attachment-chip span,.composer-quote span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.attachment-thumb{border-radius:var(--radius-xs);background:var(--paper-2);width:24px;height:24px}.composer-input-shell{min-width:0}.composer-input{resize:none;min-height:50px;max-height:132px;color:var(--ink);box-shadow:none;background:0 0;border:0;padding:3px 2px;font-size:.96rem;line-height:1.46;display:block}.edit-composer .composer-input{min-height:78px}.composer-input:focus{box-shadow:none}.composer-tools,.composer-submit{align-items:center;gap:7px;display:inline-flex}.composer-tools .icon-button{border-color:var(--line-light);color:var(--ink-muted);background:#f5f1ea}.composer-toggle{border:1px solid var(--line-light);min-height:30px;color:var(--ink-muted);font-size:.68rem;font-weight:var(--weight-medium);background:#f5f1ea;border-radius:999px;align-items:center;gap:5px;padding:0 9px;display:inline-flex}.composer-toggle em{color:inherit;opacity:.72;font-size:.6rem;font-style:normal}.composer-toggle.active{color:var(--accent-strong);background:#a7e5d342;border-color:#2071594d}.composer-toggle:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.endpoint-toggle-stack{gap:8px;display:grid}.internet-key-callout{border-radius:var(--radius-sm);color:var(--ink);background:#ffeccc85;border:1px solid #c0681d47;gap:5px;padding:10px;display:grid}.internet-key-callout strong,.internet-key-callout p{margin:0}.internet-key-callout p{color:var(--ink-muted);font-size:.72rem;line-height:1.45}.send-button{border-color:var(--accent-strong);background:var(--accent-strong);color:#fff;border-radius:999px;width:40px;height:40px}.send-button.stop{background:var(--danger);border-color:#ff6b6185}.send-button:disabled{color:#8d867d;background:#eee9e1;border-color:#d8d2c8}.composer-submit .send-button.stop:disabled{display:none}.media-viewport{flex-direction:column;flex:1;min-height:0;padding:18px;display:flex;overflow-y:auto}.media-message{width:min(900px,100%);margin:0 auto 14px;display:flex}.media-message.user{justify-content:flex-end}.media-bubble{border:1px solid var(--line-light);border-radius:var(--radius);background:var(--paper);min-width:0;max-width:min(700px,82%);color:var(--ink);padding:12px}.media-message.user .media-bubble{color:var(--ink);background:#f4f0e9;border-color:#29252433}.media-message.error .media-bubble{background:var(--danger-soft);color:#9b2821;border-color:#ff6b6152}.media-bubble p{overflow-wrap:anywhere;margin:6px 0 0;font-size:.92rem;line-height:1.5}.media-composer{border-top:1px solid var(--line-light);background:#fffffff5;grid-template-columns:minmax(0,1fr) 46px;align-items:end;gap:9px;padding:14px 18px;display:grid}.media-input{resize:vertical;border-color:var(--line-light);background:var(--paper);min-height:82px;max-height:180px;color:var(--ink)}.media-input::placeholder{color:var(--ink-faint)}.media-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #2925241a}.media-send{width:46px;height:46px}.media-attachments{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;display:grid}.media-asset{border:1px solid var(--line-light);border-radius:var(--radius);background:var(--paper);min-width:0;margin:0;overflow:hidden}.media-asset img,.media-asset video{object-fit:contain;background:#f8fafc;width:100%;max-height:360px;display:block}.media-asset figcaption{color:var(--ink-muted);padding:8px 10px;font-size:.76rem}.media-asset a{border-radius:var(--radius-sm);width:28px;height:28px;color:var(--accent-strong);place-items:center;display:grid}.aui-media-asset{max-width:min(560px,100%);margin-top:12px}.message-user .aui-media-asset{background:#fff}.spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (width<=1180px){body{overflow:auto}.app-shell{grid-template-columns:204px minmax(0,1fr);height:auto;min-height:100dvh;overflow:visible}.site-root>.app-shell{height:100%;min-height:0;overflow:hidden auto}.setup-state{grid-template-columns:1fr}.setup-copy{min-height:260px}.toolbar-model-switcher{width:min(240px,32vw);min-width:180px}}@media (width<=820px){.legal-header{align-items:flex-start;padding:10px 12px}.legal-brand{grid-template-columns:34px minmax(0,1fr)}.legal-brand .brand-mark{width:34px;height:34px}.legal-brand small{display:none}.legal-nav{gap:2px}.legal-nav a{padding:7px 6px}.legal-document{width:min(100% - 28px,780px);padding:40px 0 64px}.legal-back{margin-bottom:34px}.legal-document>h1{font-size:clamp(2.15rem,12vw,3.2rem)}.legal-lede{margin-top:40px;padding:20px 0}.legal-document section{margin-top:34px}.legal-footer{padding:18px 14px calc(18px + env(safe-area-inset-bottom));flex-direction:column;align-items:flex-start;gap:7px}.legal-footer .legal-nav{justify-content:flex-start}.consent-banner{width:100%;padding:9px 12px calc(9px + env(safe-area-inset-bottom));grid-template-columns:32px minmax(0,1fr);gap:8px}.consent-icon{width:32px;height:32px}.consent-actions{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}.consent-dialog{padding:14px}.consent-dialog-actions .button{flex:150px}.app-shell{background:var(--canvas);flex-direction:column;min-height:100dvh;display:flex}.console-main{order:1;min-height:100dvh}.site-root>.app-shell .console-main{flex:0 0 100%;height:100%;min-height:0;overflow:hidden}.lab-sidebar{border-right:0;border-top:1px solid var(--line);border-bottom:0;flex:none;order:2;gap:12px;max-height:none;padding:12px}.rail-footer{margin-top:0}.needs-setup .thread-rail-section{display:none}.profile-list{max-height:88px}.thread-rail-section{max-height:220px}.thread-list{max-height:96px}.console-strip{z-index:6;grid-template-columns:1fr;align-items:start;gap:8px;padding:12px;position:relative;top:0}.mobile-brand-lockup{align-items:center;gap:8px;min-width:0;margin-bottom:7px;display:flex}.mobile-brand-mark{border-radius:var(--radius-sm);background:var(--brand);color:#fff;flex:none;place-items:center;width:30px;height:30px;display:grid}.mobile-brand-lockup>span:last-child{gap:1px;min-width:0;display:grid}.mobile-brand-lockup strong{color:var(--shell-ink);font-size:.82rem;font-weight:var(--weight-semibold)}.mobile-brand-lockup small{color:var(--brand);font-size:.64rem;font-weight:var(--weight-medium)}.strip-title h1,.strip-copy{white-space:normal}.strip-controls,.strip-meter{justify-content:flex-start}.strip-controls{width:100%}.strip-meter{flex-wrap:nowrap;flex:auto;width:100%;max-width:100%;overflow:hidden}.strip-meter span{flex:none;max-width:none}.strip-meter .model-count-pill{display:none}.inspector-toggle{width:44px;min-height:44px;padding:0}.inspector-toggle span{display:none}.chat-frame{min-height:560px;margin:0}.is-ready .chat-frame{min-height:0}.chat-frame.disabled{min-height:auto;padding:10px 12px calc(18px + env(safe-area-inset-bottom));align-items:start}.setup-copy{order:2;min-height:260px;padding:16px}.needs-setup .setup-copy{display:none}.setup-copy h2{font-size:1.48rem}.endpoint-form,.model-fetch-row,.workspace-param-grid{grid-template-columns:1fr}.setup-state>.endpoint-form{order:1}.endpoint-form{gap:9px;padding:12px}.needs-setup .setup-state .workspace-system-field,.needs-setup .setup-state .workspace-param-grid,.needs-setup .setup-state .workspace-notes-field,.needs-setup .setup-state .workspace-tags-field,.needs-setup .setup-state .model-filter-field,.needs-setup .setup-state .model-hint,.needs-setup .setup-state .endpoint-form>.toggle-row:not(.trust-row),.needs-setup:not(.provider-custom) .setup-state .base-url-field{display:none}.form-intro{order:1}.saved-profile-field{order:2}.profile-name-field,.connection-divider,.provider-field{display:none}.api-key-field{order:5}.key-unlock-row,.passphrase-field{order:8}.typed-model-field{order:9}.endpoint-actions{order:6}.key-trust-note{order:7}.workspace-system-field{order:11}.workspace-param-grid{order:12}.workspace-notes-field{order:13}.workspace-tags-field{order:14}.base-url-field{order:15}.trust-row{order:16}.provider-picker{order:4;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.provider-chip{grid-template-columns:24px minmax(0,1fr);gap:6px;min-height:48px;padding:6px}.provider-glyph{width:24px;height:24px}.provider-copy small{display:none}.needs-setup .endpoint-actions .button.primary{width:100%}.model-fetch-row{order:10}.model-filter-field{order:18}.model-hint,.endpoint-form>.toggle-row:not(.trust-row){order:19}.endpoint-status{order:20}.key-unlock-row{grid-template-columns:1fr}.endpoint-scrim,.endpoint-drawer{position:fixed}.endpoint-drawer{width:auto;max-height:calc(100dvh - 20px);inset:auto 10px 10px}.provider-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.endpoint-actions{justify-content:stretch}.endpoint-actions .button{flex:1;min-width:min(100%,132px)}.suggestion-grid{grid-template-columns:1fr}.empty-system-card{grid-template-columns:1fr;justify-items:start}.text-session-badge{width:68px;height:68px}.setup-mode-card{grid-template-columns:1fr;align-items:start}.mode-route{width:100%}.message,.message-user{grid-template-columns:30px minmax(0,1fr);gap:8px;width:calc(100% - 22px)}.workspace-toolbar{grid-template-columns:1fr;align-items:stretch;gap:8px;padding:9px 12px}.workspace-actions{justify-content:flex-start;gap:6px}.toolbar-model-switcher{flex:1 0 100%;order:-1;width:100%;min-width:0;max-width:none;min-height:44px}.toolbar-model-switcher select{height:42px}.run-control-group{grid-template-columns:1fr}.workspace-actions .desktop-workspace-action{display:none}.workspace-actions .fetch-models-control,.workspace-actions .mobile-more-trigger{width:auto;height:44px;min-height:44px;padding:0 12px;display:inline-flex}.workspace-actions .mobile-more-trigger{margin-left:auto}.workspace-actions .fetch-models-control span{display:inline}.mobile-actions-backdrop{z-index:40;background:#2925244d;width:100%;height:100%;display:block;position:fixed;inset:0}.mobile-actions-sheet{z-index:41;inset:auto 10px calc(10px + env(safe-area-inset-bottom));border:1px solid var(--line-strong);border-radius:var(--radius);background:#fff;gap:3px;max-height:min(78dvh,620px);padding:8px;display:grid;position:fixed;overflow-y:auto;box-shadow:0 24px 70px #2925243d}.mobile-actions-sheet-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;min-height:48px;padding:0 4px 7px 10px;display:flex}.mobile-actions-sheet-head strong{color:var(--shell-ink);font-size:.86rem;font-weight:var(--weight-semibold)}.mobile-actions-sheet>button:not(.icon-button),.mobile-actions-sheet-head+button{border-radius:var(--radius-sm);width:100%;min-height:48px;color:var(--shell-ink);font-size:.82rem;font-weight:var(--weight-medium);text-align:left;background:0 0;justify-content:flex-start;align-items:center;gap:10px;padding:0 11px;display:flex}.mobile-actions-sheet>button:hover{background:var(--action-soft)}.mobile-actions-sheet>button.danger{color:var(--danger)}.mobile-actions-divider{background:var(--line);height:1px;margin:4px 0}.workspace-body{grid-template-columns:1fr;overflow:visible}.workspace-panel{z-index:30;inset:auto 10px calc(10px + env(safe-area-inset-bottom)) 10px;border:1px solid var(--line-strong);border-radius:var(--radius);background:#fffffffa;width:auto;min-width:0;max-height:min(74dvh,640px);padding:12px;position:fixed;box-shadow:0 24px 70px #29252438}.workspace-panel .panel-head{z-index:1;background:#fffffffa;padding-top:2px;position:sticky;top:-12px}.message-user .message-avatar{grid-column:1}.message-user .message-body{grid-column:2;justify-self:stretch;max-width:100%}.message-avatar{width:30px;height:30px}.thread-footer{padding:10px 12px 12px}.composer-toolbar{flex-direction:column;align-items:flex-start}.composer-tools{flex-wrap:wrap}.composer-submit{align-self:flex-end}.media-composer,.media-attachments{grid-template-columns:1fr}.media-send{justify-self:end}.button,.icon-button,.icon-button.compact,.send-button,.scroll-button,.message-actions button,.branch-picker button,.composer-toggle,.secret-field button,.thread-menu-popover button,.error-recovery-actions button,.tool-details summary{min-height:44px}.icon-button,.icon-button.compact,.send-button,.message-actions button,.branch-picker button{width:44px;height:44px}.endpoint-form input,.endpoint-form select,.endpoint-form .search-field,.secret-field button{height:44px;min-height:44px}.rail-legal a,.rail-legal button,.setup-proof-links a,.key-trust-note a,.legal-nav a,.legal-footer button{align-items:center;min-height:44px;padding:0 4px;display:inline-flex}.thread-actions{grid-template-columns:repeat(3,44px)}}@media (width<=380px){.strip-meter .privacy-pill{display:none}}@media (height<=760px) and (width>=821px){.app-shell{height:100dvh;min-height:0;overflow:hidden}.console-main{min-height:0}.chat-frame.disabled{align-items:start;overflow-y:auto}.setup-copy{padding:16px}.endpoint-form{gap:9px;padding:12px}.endpoint-form input,.endpoint-form select,.endpoint-form .search-field,.secret-field button{height:38px;min-height:38px}.provider-chip{height:auto;min-height:48px;padding-block:6px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:1ms!important;animation-duration:1ms!important}}
