
:root{color-scheme:dark;font-family:Inter,Segoe UI,system-ui,sans-serif;background:#101416;color:#e9eff0;--muted:#94a5aa;--line:#2a3438;--accent:#a8efd6}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea{outline-offset:4px}button{min-height:44px;cursor:pointer;border:1px solid var(--line);background:#20292d;color:inherit;border-radius:10px;padding:10px 16px}button:hover{background:#2d393d}button:disabled{opacity:.45;cursor:wait}input,textarea,select{width:100%;background:#151c20;color:#edf3f4;border:1px solid #3c494e;border-radius:9px;padding:13px;min-width:0}textarea{resize:vertical}label{display:block;font-size:14px;color:#b9c7cc;margin:17px 0}label input,label textarea{margin-top:8px}h1,h2,p{margin-top:0}h1{font-weight:550;letter-spacing:-1.5px;font-size:36px;margin-bottom:10px}h2{font-size:23px;font-weight:550;letter-spacing:-.5px}.muted,.fine,.empty p{color:var(--muted);line-height:1.6}.fine{font-size:12px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:var(--muted)}.primary{background:var(--accent);color:#173c30;border:0;font-weight:650}.primary:hover{background:#c6ffe9}.small{font-size:13px}.quiet{background:transparent}.full{width:100%}.brandmark{display:inline-grid;place-items:center;background:var(--accent);color:#163b2e;width:40px;height:43px;border-radius:11px;font-size:27px;font-weight:750}.brand{text-decoration:none;color:inherit;display:flex;align-items:center;gap:12px;font-size:10px;letter-spacing:1.6px;margin-bottom:32px}.brand b{font-size:18px;letter-spacing:3px}.login{min-height:100dvh;display:grid;place-items:center;background:radial-gradient(ellipse at 65% 30%,#19372f 0,transparent 52%);padding:24px}.login-card{max-width:410px;width:100%}.login-card>.brandmark{margin-bottom:30px}.login h1{font-size:44px;line-height:1.15}.login form{margin:32px 0 20px}.login form>button{width:100%;display:flex;justify-content:space-between;margin-top:25px}.login label[for="password"]{margin-bottom:8px}.password-field{position:relative}.password-field input{padding-right:60px}.password-toggle{position:absolute;right:4px;top:3px;width:44px;height:44px;padding:10px;display:grid;place-items:center;background:transparent;border:0}.password-toggle .eye-slash{display:none}#qrPanel{margin:24px 0}#mfaQr{max-width:100%;height:auto;background:white;border-radius:10px}#qrPanel details{margin-top:14px;color:var(--muted);font-size:13px}#mfaSecret{display:block;overflow-wrap:anywhere;margin-top:12px;line-height:1.8}#mfaPanel .muted{font-size:14px}#mfaCancel{margin-top:14px}.password-toggle[aria-pressed="true"] .eye-slash{display:block}.shell{display:grid;grid-template-columns:200px 1fr;min-height:100dvh}.sidebar{padding:24px 16px 16px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#131a1d}.sidebar nav{display:grid;gap:9px}.sidebar nav button{text-align:left;background:transparent;border-color:transparent;overflow-wrap:anywhere}.sidebar nav button.active{background:#233d34;color:#c2f7e3;border-color:#36574a}.sidebar-bottom{margin-top:auto;padding-top:32px;display:grid;gap:15px;font-size:13px;color:var(--muted)}main{min-width:0;padding:20px 24px 16px;width:100%;margin:0}header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:12px}header .eyebrow{margin-bottom:6px}header h1{margin-bottom:0}.pill{border:1px solid #354941;border-radius:30px;font-size:11px;color:#a7c1b6;padding:9px 13px;white-space:nowrap}.toolbar{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:12px}.tabs{display:flex;gap:6px;padding:4px;background:#192125;border-radius:12px}.tabs button{background:none;border:0;color:var(--muted);font-size:13px;min-height:36px}.tabs .selected{background:#344047;color:white}.knowledge,.conversations{display:grid;grid-template-columns:minmax(230px,32%) 1fr;border:1px solid var(--line);border-radius:15px;overflow:hidden;min-height:65dvh;background:#151c1f}.knowledge{height:calc(100dvh - 174px);min-height:360px}.note-list,.chat-list{border-right:1px solid var(--line);padding:12px;max-height:72dvh;overflow:auto}.note-list{max-height:none}#noteCount{margin:0 0 6px}.search{display:flex;gap:6px;margin-bottom:8px}.search input{font-size:13px;padding:10px 12px;min-height:44px}.search button{padding:6px 12px}.note-item{border-bottom:1px solid var(--line);padding:6px 0;display:grid;grid-template-columns:1fr auto;gap:8px}.note-open{min-width:0;min-height:40px;background:transparent;border:0;text-align:left;padding:0;overflow-wrap:anywhere;font-size:13px;font-weight:600;display:block}.note-open small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:3px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.source{width:19px;height:19px;accent-color:var(--accent);cursor:pointer;align-self:start;margin-top:4px}.reader{padding:20px;overflow:auto;min-width:0;min-height:0}.reader pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:14px;line-height:1.8;color:#c8d5d9}.reader .path{overflow-wrap:anywhere}.empty{height:100%;min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px}.empty p{font-size:13px;max-width:380px}.symbol{font-size:58px;color:#749c8d;margin-bottom:22px}.chat-list>div{margin-top:16px;display:grid;gap:8px}.chat-list>div button{text-align:left;background:transparent;overflow-wrap:anywhere;font-size:13px}.chat-main{min-width:0;display:flex;flex-direction:column;min-height:65dvh}.model-controls{padding:16px 24px;display:flex;flex-wrap:wrap;align-items:center;gap:10px;border-bottom:1px solid var(--line)}.model-controls label{margin:0;font-size:12px}.model-controls select{flex:1;min-width:150px;max-width:100%;min-height:44px;background:#151c20;color:#edf3f4;border:1px solid #3c494e;border-radius:9px;padding:10px}.model-controls p{margin:0;flex-basis:100%;overflow-wrap:anywhere}.model-controls a{color:var(--accent);display:inline-block;padding:12px 0}#openaiPending{flex-basis:100%;font-size:13px;overflow-wrap:anywhere}.chat-meta{padding:18px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted)}.messages{padding:24px;flex:1;max-height:48dvh;overflow:auto}.message{margin:0 0 24px;padding:16px 19px;border:1px solid var(--line);border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:14px}.message.user{background:#20352e;border-color:#345247;margin-left:auto;margin-right:0}.message.assistant{margin-left:0;margin-right:auto}.messages .message{width:max-content;max-width:min(80%,850px)}.messages .message-body{white-space:pre-wrap}.message b{display:block;color:var(--accent);font-size:11px;letter-spacing:1px;margin-bottom:10px}.message small{display:block;color:var(--muted);font-size:11px;margin-top:15px}.composer{padding:18px 24px;border-top:1px solid var(--line)}.composer textarea{border:none;background:#202a2f;min-height:80px;max-height:200px}.composer>div{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:10px}dialog{border:1px solid #46534f;background:#182124;border-radius:18px;color:inherit;max-width:650px;width:calc(100% - 30px);padding:30px}dialog::backdrop{background:#000a}.dialog-actions{display:flex;justify-content:flex-end;gap:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#status{position:fixed;top:12px;left:50%;transform:translateX(-50%);background:#30483e;border:1px solid #769788;border-radius:10px;padding:14px 22px;z-index:10;max-width:calc(100vw - 24px);box-shadow:0 5px 30px #0006;font-size:14px}[hidden]{display:none!important}@media(max-width:1000px){main{padding:20px 16px}.shell{grid-template-columns:190px 1fr}.sidebar{padding:25px 16px}.knowledge,.conversations{grid-template-columns:240px 1fr}.pill{display:none}}@media(max-width:760px){.shell{display:block}.sidebar{border-right:0;border-bottom:1px solid var(--line);padding:18px}.brand{margin-bottom:18px}.sidebar>.eyebrow{display:none}.sidebar nav{display:flex;flex-wrap:wrap;gap:4px}.sidebar nav button{flex:1;font-size:12px;padding:9px}.sidebar-bottom{margin-top:12px;padding-top:0;display:flex;align-items:center;justify-content:space-between}.sidebar-bottom button{min-height:36px;padding:6px 12px}main{padding:16px 12px}h1{font-size:29px}header{margin-bottom:12px}.knowledge,.conversations{grid-template-columns:1fr}.knowledge{height:auto;min-height:65dvh}.note-list{border-right:0;border-bottom:1px solid var(--line);max-height:320px}.note-open{min-height:44px}.reader{min-height:320px;max-height:72dvh;padding:16px}.chat-list{max-height:170px;border-bottom:1px solid var(--line)}.chat-list>div{display:flex;overflow:auto}.chat-list>div button{min-width:170px}.messages{max-height:55dvh}.composer{padding:14px}.composer .fine{max-width:160px}.login h1{font-size:38px}}
.main-heading{display:flex;align-items:center;gap:10px;min-width:0}.icon-button{width:36px;min-width:36px;min-height:36px;padding:5px;font-size:18px}.logout-icon{display:none}
.shell{grid-template-columns:188px minmax(0,1fr)}.shell.areas-collapsed{grid-template-columns:62px minmax(0,1fr)}.areas-collapsed .sidebar{padding:18px 8px}.areas-collapsed .brand{justify-content:center}.areas-collapsed .brandmark{width:36px;height:38px;font-size:22px}.areas-collapsed .brand-name,.areas-collapsed .sidebar>.eyebrow,.areas-collapsed .area-label,.areas-collapsed #person,.areas-collapsed .logout-label{display:none}.areas-collapsed .sidebar nav button{padding:8px;text-align:center}.areas-collapsed .sidebar nav button:before{content:attr(data-short);font-weight:650}.areas-collapsed .logout-icon{display:inline}.areas-collapsed .sidebar-bottom{padding-top:12px}.sidebar nav button{min-height:40px}
.conversations{grid-template-columns:260px minmax(0,1fr);height:calc(100dvh - 174px);min-height:400px}.conversations.chats-collapsed{grid-template-columns:44px minmax(0,1fr)}.chat-main{grid-column:2;min-width:0;min-height:0;overflow:hidden}.chat-list{max-height:none;min-width:0;padding:8px}.chat-list>.chat-list-heading{display:flex;margin-top:0;align-items:center;justify-content:space-between;gap:8px;font-size:12px;padding:2px 3px 8px}.chat-list-heading select{width:auto;max-width:140px;padding:6px;font-size:12px;min-height:32px}.chat-list #newChat{min-height:36px;font-size:13px;padding:6px 10px}.chat-list #chats{display:grid;margin-top:6px;gap:2px}.chat-row{display:flex;align-items:center;min-width:0;border-radius:8px}.chat-row.active{background:#263b34}.chat-row:hover{background:#202b2d}.chat-row .chat-open{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:0;background:transparent;font-size:13px;font-weight:400;min-height:36px;padding:7px 9px;text-align:left}.chat-row .chat-more{min-width:32px;width:32px;min-height:36px;border:0;padding:3px;background:transparent;font-size:20px}.chat-meta{padding:6px 12px;min-height:45px;align-items:center;gap:8px}.chat-heading{display:flex;align-items:center;gap:6px;min-width:0}.chat-meta #chatTitle{font-size:13px;color:#d6e3e2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.chat-meta #sourceCount{white-space:nowrap;font-size:10px}.messages{max-height:none;min-height:0;padding:14px 20px;overscroll-behavior:contain}.messages>.empty{min-height:100px}.message{padding:12px 15px;margin-bottom:12px;line-height:1.6}.message b{margin-bottom:5px}.message small{margin-top:8px}.composer{padding:10px 16px}.model-controls #modelEffort{flex:0 1 185px;min-width:120px}#toolPreview{max-height:50dvh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.6 system-ui}#toolCatalog{max-height:55dvh;overflow:auto}.tool-catalog-row{padding:12px 0;border-bottom:1px solid var(--line)}.tool-catalog-row>span{display:block}.tool-catalog-row p{margin:4px 0}#answerPhase{overflow-wrap:anywhere}.composer-status{display:grid;gap:2px;min-width:0}.composer #answerTime{font-variant-numeric:tabular-nums;color:var(--accent);white-space:nowrap}.composer textarea{min-height:64px;max-height:160px;resize:vertical;padding:12px}.composer .model-controls{padding:4px 0 0;border:0;margin-top:4px;justify-content:flex-start;gap:7px}.model-controls select{flex:0 1 330px;width:auto;min-width:120px;max-width:100%;min-height:34px;padding:6px 9px;font-size:12px}.model-controls button{min-height:34px;padding:5px 9px}.model-controls #tokenUsage{margin-left:auto;white-space:nowrap;font-size:11px}.model-controls #modelHint:empty{display:none}.model-controls #modelHint{line-height:1.35}.composer .composer-footer{margin-top:6px}.composer-footer .fine{font-size:10px}.composer #send{min-height:36px;padding:7px 14px}#restoreCurrent{white-space:nowrap;min-height:32px;padding:5px 8px;font-size:11px}.chat-menu-popup{background:#1b2529;color:#e9eff0;border:1px solid #43534f;border-radius:10px;box-shadow:0 12px 40px #0008;padding:5px;position:fixed;inset:auto;width:280px;max-width:calc(100vw - 20px)}.chat-menu-popup button{display:block;text-align:left;width:100%;background:transparent;border:0;border-radius:6px;min-height:38px;padding:9px 10px;font-size:12px}.chat-menu-popup button:hover{background:#30433d}.chat-menu-popup .danger{color:#ffb5ac}.action-error{color:#ffb5ac;font-size:13px}#chatActionDialog{max-height:calc(100dvh - 30px);overflow:auto;padding:24px}#exportPreview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto;font:12px/1.5 inherit;color:#aec0bd}#transcriptDetails{font-size:13px;margin:12px 0}.dialog-actions{flex-wrap:wrap}
@media(max-width:1000px){.shell{grid-template-columns:170px minmax(0,1fr)}.conversations{grid-template-columns:225px minmax(0,1fr)}.chat-meta #sourceCount{display:none}.messages{padding:12px}.model-controls select{flex-basis:240px}}
@media(max-width:760px){.shell,.shell.areas-collapsed{display:block}.sidebar,.areas-collapsed .sidebar{padding:8px 12px}.sidebar .brand{display:none}.sidebar>.eyebrow{display:none}.sidebar nav{gap:3px}.sidebar nav button{min-height:36px;font-size:12px;padding:6px}.sidebar-bottom{margin-top:4px;gap:8px;font-size:11px}.sidebar-bottom button{min-height:32px}.areas-collapsed .sidebar nav,.areas-collapsed .sidebar-bottom{display:none}.areas-collapsed .sidebar{padding:0;border:0}header .eyebrow{display:none}header h1{font-size:24px}header{margin-bottom:8px}.toolbar{margin-bottom:8px}.conversations{height:calc(100dvh - 215px);min-height:420px;display:flex;flex-direction:column}.areas-collapsed .conversations{height:calc(100dvh - 127px)}.chat-list{flex:0 0 auto;max-height:180px;border-right:0;border-bottom:1px solid var(--line);padding:6px 8px}.chat-list #chats{display:grid;max-height:100px;overflow:auto;gap:1px}.chat-row .chat-open{min-width:0;min-height:40px}.chat-row .chat-more{min-height:40px}.chat-list-heading{padding-bottom:5px}.chat-list #newChat{display:none}.chat-main{flex:1;min-height:0}.chat-meta{padding:5px 8px}.chat-meta .icon-button{min-height:36px}.messages{padding:10px}.message{font-size:13px;padding:10px 12px}.composer{padding:8px 10px}.composer textarea{min-height:60px}.model-controls select{flex:1 1 150px;font-size:11px}.model-controls #tokenUsage{font-size:10px}.model-controls #refreshModels{width:32px;min-width:32px}.composer .fine{max-width:none}.composer .model-controls{gap:5px}.chat-menu-popup button{min-height:44px}.dialog-actions button{min-height:44px}}

.message a{color:var(--accent);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.message a:hover{color:#d1fff0}
.chat-view .message a{color:#78adff}.chat-view .message a:hover{color:#a9cdff}.chat-view .message a:focus-visible{outline:2px solid #a9cdff;border-radius:3px}
.chat-view .message.assistant .message-body{white-space:normal;line-height:1.65}.chat-view .message-body p{margin:0 0 14px}.chat-view .message-body p:last-child{margin-bottom:0}.chat-view .message-body h2,.chat-view .message-body h3,.chat-view .message-body h4,.chat-view .message-body h5{font-size:1.1em;font-weight:650;letter-spacing:0;margin:12px 0 14px}.chat-view .message-body strong{font-weight:700;color:inherit}.chat-view .message-body code{padding:2px 5px;border-radius:5px;background:#303030;font:0.9em Consolas,monospace}.chat-view .message-body pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;border-radius:10px;background:#292929}.chat-view .message-body ul,.chat-view .message-body ol{margin:0 0 14px;padding-left:22px}
.chat-view .markdown-table-wrap{max-width:100%;overflow-x:auto;margin:14px 0 18px;border:1px solid #484848;border-radius:10px}.chat-view .markdown-table{width:100%;border-collapse:collapse;font-size:0.94em;white-space:normal}.chat-view .markdown-table th,.chat-view .markdown-table td{padding:9px 12px;text-align:left;border-bottom:1px solid #424242;vertical-align:top}.chat-view .markdown-table tbody tr:last-child td{border-bottom:0}.chat-view .markdown-table tbody tr:nth-child(even){background:#282828}.chat-view .markdown-table th{background:#303030;color:#e9e9e9;white-space:nowrap}.chat-view .markdown-table .number{text-align:right;white-space:nowrap}.chat-view .markdown-table .table-sort{min-height:28px;padding:3px 4px;border:0;border-radius:4px;background:transparent;color:inherit;font-weight:650;text-align:left}.chat-view .markdown-table .table-sort:hover,.chat-view .markdown-table .table-sort:focus-visible{color:#a9cdff;background:#414141}.chat-view .markdown-table th[aria-sort=ascending] .table-sort:after{content:" ↑"}.chat-view .markdown-table th[aria-sort=descending] .table-sort:after{content:" ↓"}
.message-actions{display:flex;gap:4px;margin-top:8px}.message-actions .message-icon{min-height:30px;min-width:30px;width:30px;height:30px;display:grid;place-items:center;padding:0;font-size:16px;background:transparent;border:0;color:var(--muted)}.message-actions .message-icon:hover{color:var(--accent);background:#2d393d}.composer-footer{flex-wrap:wrap}.composer-status{flex:1 1 150px}#dictate{white-space:nowrap;min-height:36px}#dictate[aria-pressed="true"]{color:#ffb5ac;border-color:#ffb5ac}#speechStatus{color:var(--accent);overflow-wrap:anywhere}#speechDialog p{line-height:1.6}
/* Collapse controls stay with their own pane, including its collapsed rail. */
.sidebar-brand{display:grid;grid-template-columns:minmax(0,1fr) 32px;align-items:center;gap:6px;margin-bottom:24px}.sidebar-brand>.brand{min-width:0;gap:6px;margin:0}.sidebar-brand .brandmark{width:32px;height:34px;font-size:22px;flex-shrink:0}.sidebar-brand .brand-name{font-size:9px;letter-spacing:1px}.sidebar-brand .icon-button{width:32px;min-width:32px}.areas-collapsed .sidebar-brand{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}.areas-collapsed .sidebar-brand>.brand{flex:none}
.note-list{display:flex;flex-direction:column;overflow:hidden;min-width:0;min-height:0}.note-list-controls{display:flex;align-items:center;gap:6px;flex-shrink:0}.note-list-controls .search{flex:1;min-width:0;margin:0}.note-list-controls .search input{min-width:0}.note-list-controls .icon-button{flex:none}.note-list-content{min-height:0;overflow:auto;flex:1}.knowledge.notes-collapsed{grid-template-columns:44px minmax(0,1fr)}.notes-collapsed .note-list{padding:4px}.notes-collapsed .note-list-controls{justify-content:center}
.chat-list{display:flex;flex-direction:column;min-height:0;overflow:hidden}.chat-list>.chat-list-heading{flex-shrink:0}#chatList{display:block;margin:0;min-height:0;overflow:auto;flex:1}.chat-list-heading>span{white-space:nowrap}.chat-list-heading select{min-width:0;max-width:110px}.chat-list-heading .icon-button{flex:none;width:32px;min-width:32px}.chats-collapsed .chat-list{padding:4px}.chats-collapsed .chat-list-heading{justify-content:center;padding:0}.chats-collapsed .chat-list-heading>span,.chats-collapsed .chat-list-heading>select{display:none}
@media(max-width:1000px){.chat-list-heading select{max-width:85px}}
@media(max-width:760px){.sidebar{position:relative}.sidebar-brand,.areas-collapsed .sidebar-brand{position:absolute;right:12px;top:4px;display:flex;margin:0}.sidebar nav{padding-right:40px}.areas-collapsed .sidebar{min-height:44px;padding:4px 12px;border-bottom:1px solid var(--line)}.areas-collapsed .conversations{height:calc(100dvh - 171px)}.note-list{max-height:320px}.knowledge.notes-collapsed{grid-template-columns:1fr}.notes-collapsed .note-list{height:44px;padding:4px 8px;min-height:44px}.notes-collapsed .note-list-controls{justify-content:flex-end}.chats-collapsed .chat-list{min-height:44px;height:44px;max-height:44px;padding:4px 8px}.chats-collapsed .chat-list-heading{justify-content:flex-end}}
.shell.notes-view main{padding-left:12px}
.knowledge:not(.notes-collapsed){grid-template-columns:minmax(220px,var(--notes-width,32%)) 8px minmax(0,1fr)}
.knowledge .note-list{border-right:0}
.knowledge-divider{position:relative;cursor:col-resize;touch-action:none;background:#1b282b}
.knowledge-divider::before{content:"";position:absolute;inset:0 3px;background:#405458;border-radius:3px}
.knowledge-divider:hover::before,.knowledge-divider:focus-visible::before{background:var(--accent)}
.knowledge.notes-collapsed .knowledge-divider{display:none}
.note-list-content{scrollbar-gutter:stable;padding-right:14px}
.note-list-content .note-item{padding-right:4px}
@media(max-width:760px){.knowledge:not(.notes-collapsed){grid-template-columns:1fr}.knowledge-divider{display:none}.note-list-content{padding-right:10px}}

main>header{justify-content:flex-end;min-height:44px}.top-model{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:7px;width:100%}.top-model #modelChoice{width:min(340px,100%);min-height:38px;padding:7px 10px;font-size:13px}.top-model button{min-height:38px;padding:7px 10px}.top-model #modelHint,.top-model #openaiPending{flex-basis:100%;text-align:right;margin:0}.top-model #modelHint:empty{display:none}.top-model #openaiPending a{color:var(--accent)}#dictate{width:38px;min-width:38px;padding:5px;display:grid;place-items:center;font-size:18px}
@media(max-width:760px){main>header{min-height:38px}.top-model{gap:5px}.top-model #modelChoice{flex:1 1 160px;width:auto;min-width:140px;font-size:12px}.top-model button{font-size:11px;padding:5px 8px}}

/* Chat view: one navigation rail, one open conversation canvas and a floating composer. */
.shell{--chat-bg:#212121;--chat-side:#171717;--chat-card:#303030;--chat-text:#f4f4f4;--chat-muted:#b4b4b4}
.sidebar-actions{display:grid;gap:10px;margin-bottom:18px}.sidebar-actions #newChat{text-align:left;border:0;min-height:40px;padding:8px 10px;font-size:14px;font-weight:600}.sidebar-actions #newChat:hover,.sidebar-tabs button:hover{background:#303030}.sidebar-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px}.sidebar-tabs button{background:transparent;border:0;min-height:36px;padding:6px 8px;font-size:13px}.sidebar-tabs button.selected{background:#303030;color:#fff}
#mobileSidebarToggle{display:none}#mobileBackdrop{display:none}
.chat-view{grid-template-columns:260px minmax(0,1fr);height:100dvh;overflow:hidden;color:var(--chat-text);background:var(--chat-bg)}
.chat-view.areas-collapsed{grid-template-columns:62px minmax(0,1fr)}
.chat-view .sidebar{height:100dvh;padding:16px 12px;overflow:hidden;background:var(--chat-side);border-right:0;gap:0}.chat-view .sidebar-brand{margin-bottom:14px}.chat-view .sidebar>.eyebrow{margin:4px 10px 8px;color:#939393}.chat-view .sidebar nav{gap:2px}.chat-view .sidebar nav button{padding:8px 10px;min-height:36px;font-size:13px;border:0;border-radius:9px}.chat-view .sidebar nav button.active{background:#303030;color:#fff}.chat-view .sidebar-bottom{padding-top:12px;gap:6px}.chat-view .sidebar-bottom #person{padding:0 10px;color:#ddd}.chat-view .sidebar-bottom button{border:0;text-align:left}.chat-view.areas-collapsed .sidebar-actions,.chat-view.areas-collapsed .chat-list{display:none!important}
.chat-view .chat-list{flex:1;min-height:0;max-height:none;margin-top:18px;padding:0;border:0;display:flex;flex-direction:column;background:transparent}.chat-view .chat-list>.chat-list-heading{padding:0 8px 8px;gap:5px;color:var(--chat-muted)}.chat-view .chat-list-heading select{max-width:85px;border:0;background:#252525;color:#ddd}.chat-view .chat-list-heading .icon-button{width:30px;min-width:30px;border:0}.chat-view #chatList{overflow:auto;scrollbar-color:#505050 transparent}.chat-view .chat-list #chats{display:grid;gap:2px;margin:0}.chat-view .chat-row{border-radius:9px}.chat-view .chat-row.active,.chat-view .chat-row:hover{background:#303030}.chat-view .chat-row .chat-open{font-size:13px;min-height:35px}.chat-view .chat-row .chat-more{color:#aaa}.chat-view .chat-row .chat-more:hover{color:#fff}
.chat-view .sidebar.chats-collapsed .chat-list{flex:0 0 auto}.chat-view .sidebar.chats-collapsed .chat-list-heading{justify-content:flex-end}
.chat-view main{height:100dvh;min-height:0;padding:0;display:flex;flex-direction:column;background:var(--chat-bg)}.chat-view main>header{flex:0 0 auto;min-height:62px;margin:0;padding:10px 22px;border:0;justify-content:flex-end}.chat-view .top-model{width:auto;max-width:100%}.chat-view .top-model #modelChoice{background:transparent;color:#f4f4f4;border:0;font-size:14px;font-weight:600;max-width:330px}.chat-view .top-model #refreshModels{border:0}.chat-view .top-model #modelHint{max-width:600px}.chat-view .toolbar{display:none}.chat-view .conversations{flex:1;min-height:0;height:auto;display:flex;border:0;border-radius:0;background:transparent;overflow:hidden}.chat-view .chat-main{flex:1;min-height:0;grid-column:auto;overflow:hidden}.chat-view .chat-meta{width:100%;min-height:38px;padding:3px max(24px,calc((100% - 800px)/2));border:0;color:var(--chat-muted)}.chat-view .chat-meta #chatTitle{font-size:13px;color:#c9c9c9}.chat-view .chat-meta #sourceCount{font-size:11px}.chat-view .chat-meta .icon-button{border:0}.chat-view .messages{flex:1;min-height:0;max-height:none;padding:24px max(24px,calc((100% - 800px)/2)) 36px;overflow:auto;scrollbar-color:#555 transparent}.chat-view .messages>.empty{min-height:100%;color:#d7d7d7;font-size:23px}.chat-view .messages .message{max-width:100%;margin-bottom:24px;font-size:15px;line-height:1.65}.chat-view .message.user{width:max-content;max-width:min(78%,650px);margin-left:auto;margin-right:0;padding:11px 17px;border:0;border-radius:22px;background:var(--chat-card);color:var(--chat-text)}.chat-view .message.assistant{width:100%;margin-left:0;margin-right:0;padding:4px 0;border:0;background:transparent;color:var(--chat-text)}.chat-view .message-actions .message-icon{color:#aaa}.chat-view .message-actions .message-icon:hover{color:#fff;background:#3b3b3b}
.chat-view .composer{position:relative;flex:0 0 auto;align-self:center;width:min(800px,calc(100% - 48px));margin:0 0 20px;padding:8px 11px 9px;border:1px solid #474747;border-radius:25px;background:var(--chat-card);box-shadow:0 8px 28px #0002}.chat-view .composer textarea{display:block;width:100%;min-height:42px;max-height:180px;padding:10px 12px 3px;border:0;border-radius:15px;background:transparent;color:var(--chat-text);font-size:15px;line-height:1.5;resize:vertical}.chat-view .composer textarea::placeholder{color:#b7b7b7}.chat-view .composer .composer-footer{display:flex;align-items:center;gap:8px;margin:4px 0 0;padding:0 3px}.chat-view .composer-status{flex:1;display:flex;gap:8px;align-items:center;min-width:0}.chat-view .composer-status .fine{font-size:11px;line-height:1.3}.chat-view #dictate,.chat-view #send,.chat-view #stopAnswer{width:35px;min-width:35px;height:35px;min-height:35px;padding:4px;border:0;border-radius:50%;display:grid;place-items:center}.chat-view #dictate{font-size:19px;background:transparent;color:#eee}.chat-view #dictate:hover{background:#484848}.chat-view #send{font-size:23px;background:#f4f4f4;color:#252525}.chat-view #send:hover{background:#d9d9d9}.chat-view #stopAnswer{width:auto;border-radius:18px;padding:4px 12px;background:#444;color:#fff}
.composer-options{position:relative;flex:0 0 auto}.composer-options>summary{list-style:none;display:grid;place-items:center;width:35px;height:35px;border-radius:50%;cursor:pointer;font-size:25px;line-height:1;color:#eee}.composer-options>summary::-webkit-details-marker{display:none}.composer-options>summary:hover,.composer-options[open]>summary{background:#484848}.composer-options .model-controls{position:absolute;left:0;bottom:42px;z-index:8;width:min(350px,calc(100vw - 40px));display:grid!important;gap:9px;margin:0;padding:14px;border:1px solid #555;border-radius:16px;background:#303030;box-shadow:0 12px 30px #0007}.composer-options:not([open]) .model-controls{display:none!important}.composer-options .model-controls select,.composer-options .model-controls button{width:100%;max-width:none;min-height:38px;background:#222;color:#f4f4f4;border:1px solid #555}.composer-options .model-controls #tokenUsage{margin:0;white-space:normal;color:#bbb}.composer-options .model-controls #showTools{text-align:left}
.chat-view .sr-only#messageKeys{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.chat-view .message.user .message-body{white-space:pre-wrap}
@media(max-width:1000px){.chat-view{grid-template-columns:230px minmax(0,1fr)}.chat-view.areas-collapsed{grid-template-columns:62px minmax(0,1fr)}}
@media(max-width:760px){.chat-view,.chat-view.areas-collapsed{display:block;height:100dvh}.chat-view .sidebar,.chat-view.areas-collapsed .sidebar{position:fixed;z-index:32;inset:0 auto 0 0;width:min(300px,86vw);height:100dvh;padding:16px 12px;transform:translateX(-105%);transition:transform .2s ease;box-shadow:10px 0 35px #0007}.chat-view.mobile-sidebar-open .sidebar{transform:translateX(0)}.chat-view.areas-collapsed .sidebar-actions,.chat-view.areas-collapsed .chat-list,.chat-view.areas-collapsed .sidebar nav,.chat-view.areas-collapsed .sidebar-bottom,.chat-view.areas-collapsed .area-label,.chat-view.areas-collapsed #person{display:initial!important}.chat-view.areas-collapsed .sidebar nav,.chat-view.areas-collapsed .chat-list{display:flex!important}.chat-view.areas-collapsed .sidebar-actions{display:grid!important}.chat-view.areas-collapsed .sidebar-brand{display:grid;grid-template-columns:1fr 32px}.chat-view.areas-collapsed .brand-name{display:initial}.chat-view.areas-collapsed .sidebar nav button:before{display:none}.chat-view.areas-collapsed .sidebar nav button{text-align:left}.chat-view #mobileBackdrop:not([hidden]){display:block;position:fixed;z-index:31;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:#0009}.chat-view #mobileSidebarToggle{display:grid;place-items:center;flex:0 0 38px;border:0}.chat-view main>header{min-height:56px;padding:6px 12px;gap:8px}.chat-view .top-model{flex:1;min-width:0;justify-content:flex-end}.chat-view .top-model #modelChoice{flex:1 1 150px;min-width:90px;max-width:210px;font-size:12px}.chat-view .top-model #connectOpenai{font-size:11px}.chat-view .chat-meta{padding:4px 16px}.chat-view .messages{padding:18px 16px 24px}.chat-view .messages .message{font-size:14px}.chat-view .message.user{max-width:90%}.chat-view .composer{width:calc(100% - 20px);margin-bottom:10px;padding:6px 8px}.chat-view .composer textarea{min-height:40px;max-height:135px}.chat-view .composer-status #answerPhase,.chat-view .composer-status #speechStatus{font-size:10px}.chat-view .chat-list{max-height:none}.chat-view .sidebar nav{display:grid;padding:0}.chat-view .sidebar-bottom{display:grid;margin-top:auto}.chat-view .sidebar-brand>.brand{display:flex}.chat-view .sidebar-brand{position:static}.chat-view .sidebar .brand{display:flex}}

.chat-view .composer.drag-target{border-color:#a8efd6;box-shadow:0 0 0 3px #a8efd655}
.chat-view .attach-button{width:35px;min-width:35px;height:35px;min-height:35px;padding:2px;border:0;border-radius:50%;font-size:23px;line-height:1;background:transparent;color:#eee}
.chat-view .attach-button:hover{background:#484848}
.pending-attachments:empty{display:none}.pending-attachments{display:flex;flex-wrap:wrap;gap:7px;padding:4px 10px 2px;max-height:150px;overflow:auto}
.pending-file,.message-file{display:flex;align-items:center;gap:7px;max-width:100%;min-width:0;background:#414141;border:1px solid #666;border-radius:10px;padding:5px 7px;color:#f5f5f5;font-size:12px}
.pending-file img,.message-file img{width:38px;height:38px;object-fit:contain;border-radius:5px;background:#222}.pending-file span,.message-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}
.pending-file button{min-width:25px;width:25px;min-height:25px;height:25px;padding:0;border:0;background:#555;border-radius:50%}.message-files{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.message-file{text-decoration:none}.message-file:hover{background:#555}

/* Schlagberger identity: clear white surfaces, deep blue navigation and red actions. */
:root{color-scheme:light;background:#f5f6fa;color:#25294d;--muted:#667089;--line:#dce1eb;--accent:#e4262d}
button{background:#fff;color:#282d59;border-color:#d7dce8;border-radius:7px}button:hover{background:#eef0f8}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #e4262d;outline-offset:2px}
input,textarea,select{background:#fff;color:#25294d;border-color:#c9cfdd;border-radius:7px}label{color:#38405b}.eyebrow{color:#e4262d}.muted,.fine,.empty p{color:var(--muted)}
.primary{background:#e4262d;color:#fff;border:1px solid #e4262d}.primary:hover{background:#c51920;border-color:#c51920;color:#fff}
.logo-tile{display:grid;place-items:center;flex:none;width:49px;height:49px;padding:6px;background:#fff;border-radius:7px}.logo-tile img{display:block;width:100%;height:100%;object-fit:contain}
.login{grid-template-columns:minmax(320px,44%) minmax(0,1fr);gap:0;padding:0;background:#fff;align-items:stretch}.login-intro{display:flex;flex-direction:column;justify-content:space-between;min-height:100dvh;padding:clamp(30px,5vw,88px);background:linear-gradient(145deg,#292a75,#353f8d 60%,#262871);color:#fff;position:relative;overflow:hidden}.login-intro:after{content:"";position:absolute;width:55vw;height:55vw;border:1px solid #ffffff28;border-radius:50%;right:-34vw;bottom:-35vw;pointer-events:none}.login-brand{display:flex;align-items:center;gap:16px;font-size:20px;line-height:1.12;font-weight:600;letter-spacing:.01em;z-index:1}.login-brand strong{font-size:16px;font-weight:450}.login-intro>div:nth-child(2){position:relative;z-index:1}.login-intro .eyebrow{color:#ff888c;letter-spacing:2px}.login-intro h2{font-size:clamp(32px,3.2vw,54px);line-height:1.12;letter-spacing:-.03em;font-weight:650;margin:18px 0 22px}.login-intro p:not(.eyebrow){color:#e4e6fb;max-width:370px;line-height:1.6}.login-intro-line{height:5px;width:84px;background:#e4262d;border-radius:4px}
.login-card{align-self:center;justify-self:center;max-width:480px;padding:40px;width:min(100%,500px)}.login-card-kicker{display:block;color:#e4262d;font-size:11px;font-weight:750;letter-spacing:2px;margin-bottom:20px}.login h1{font-size:clamp(34px,3.2vw,49px);line-height:1.1;color:#292b72;letter-spacing:-.04em;margin-bottom:16px}.login-card>.muted{font-size:15px}.login form{margin-top:34px}.login label{font-weight:600}.login input{min-height:50px}.login .primary{min-height:52px}.login .password-toggle{color:#31377b}.login #mfaPanel{border-top:1px solid var(--line);padding-top:24px}
.shell{background:#f5f6fa}.sidebar{background:#292b72;color:#fff;border-right:0}.sidebar .brand{color:#fff}.sidebar .brand-name{font-size:9px;letter-spacing:1.2px}.sidebar .brand b{font-size:17px;letter-spacing:1.6px}.sidebar>.eyebrow{color:#abb4e5}.sidebar nav button,.sidebar-bottom button{color:#eef0ff}.sidebar nav button:hover,.sidebar-bottom button:hover{background:#ffffff19}.sidebar nav button.active{background:#ffffff1c;color:#fff;border-color:#ffffff3a;box-shadow:inset 3px 0 #e4262d}.sidebar-bottom{color:#d7dbf5}.sidebar-bottom #person{color:#fff}.sidebar-brand .icon-button{color:#fff;border-color:#ffffff3a}.sidebar-actions #newChat{border:1px solid #ffffff5c;color:#fff;background:#ffffff14}.sidebar-actions #newChat:hover{background:#ffffff26}.sidebar-tabs button{color:#d1d7f4}.sidebar-tabs button.selected{background:#fff;color:#292b72}.sidebar-tabs button:hover{background:#ffffff22}
.areas-collapsed:not(.mobile-sidebar-open) .sidebar-actions,.areas-collapsed:not(.mobile-sidebar-open) .sidebar-bottom #manageUsers,.areas-collapsed:not(.mobile-sidebar-open) .sidebar-bottom #enableMfa{display:none!important}
.knowledge,.conversations{background:#fff;border-color:var(--line);box-shadow:0 10px 30px #282b7010}.note-list{background:#fafbfe}.note-open{color:#292b72}.note-open small{color:#667089}.reader pre{color:#333b5b}.knowledge-divider{background:#e6e8f1}.knowledge-divider::before{background:#c6cbe0}.empty .symbol{color:#353f8d}.chat-row.active{background:#eceef9}.chat-row:hover{background:#f3f4fa}.chat-meta #chatTitle{color:#353f8d}.message.user{background:#e9ecfb;border-color:#cfd5ef}.message.assistant{background:#fff;border-color:#dce1eb}.composer textarea{background:#f5f6fa;color:#25294d}.model-controls select{background:#fff;color:#25294d;border-color:#c9cfdd}
.chat-view{--chat-bg:#f5f6fa;--chat-side:#292b72;--chat-card:#fff;--chat-text:#25294d;--chat-muted:#cbd0ee;color:#25294d}.chat-view .sidebar{background:#292b72}.chat-view .sidebar>.eyebrow{color:#abb4e5}.chat-view .sidebar nav button.active{background:#ffffff20;color:#fff}.chat-view .sidebar-bottom #person{color:#fff}.chat-view .chat-list>.chat-list-heading{color:#cbd0ee}.chat-view .chat-list-heading select{background:#ffffff1d;color:#fff;border:1px solid #ffffff30}.chat-view .chat-row.active,.chat-view .chat-row:hover{background:#ffffff1b}.chat-view .chat-row .chat-more{color:#e0e2f7}.chat-view .chat-row .chat-more:hover{color:#fff}.chat-view #chatList{scrollbar-color:#848fd0 transparent}
.chat-view main>header{background:#fff;border-bottom:1px solid var(--line)}.chat-view .top-model #modelChoice{color:#292b72}.chat-view .chat-meta{color:#65708b}.chat-view .chat-meta #chatTitle{color:#535e7b}.chat-view .messages{scrollbar-color:#b8bfd4 transparent}.chat-view .messages>.empty{color:#353f8d}.chat-view .message.user{background:#e3e7f8;color:#272e60;border:1px solid #d5daf0}.chat-view .message.assistant{background:#fff;color:#25294d;border:1px solid #e2e5ee;border-radius:15px;padding:16px 20px;box-shadow:0 4px 16px #282b7009}.chat-view .message-actions .message-icon{color:#667089}.chat-view .message-actions .message-icon:hover{color:#e4262d;background:#f9eaec}
.chat-view .composer{border-color:#c9cfdf;background:#fff;box-shadow:0 10px 32px #282b701c}.chat-view .composer textarea{color:#25294d}.chat-view .composer textarea::placeholder{color:#7a8297}.chat-view #dictate,.chat-view .attach-button,.composer-options>summary{color:#353f8d}.chat-view #dictate:hover,.chat-view .attach-button:hover,.composer-options>summary:hover,.composer-options[open]>summary{background:#eef0f8}.chat-view #send{background:#e4262d;color:#fff}.chat-view #send:hover{background:#c51920}.chat-view #stopAnswer{background:#353f8d}.composer-options .model-controls{background:#fff;border-color:#cdd2df;box-shadow:0 14px 32px #292b722b}.composer-options .model-controls select,.composer-options .model-controls button{background:#fff;color:#25294d;border-color:#cdd2df}.composer-options .model-controls #tokenUsage{color:#667089}
.chat-view .message a,.message a{color:#2c348e}.chat-view .message a:hover,.message a:hover{color:#e4262d}.chat-view .message-body code{background:#f0f1f7}.chat-view .message-body pre{background:#f3f4f9}.chat-view .markdown-table-wrap{border-color:#dce1eb}.chat-view .markdown-table th,.chat-view .markdown-table td{border-color:#e0e3eb}.chat-view .markdown-table tbody tr:nth-child(even){background:#f8f9fc}.chat-view .markdown-table th{background:#eceefa;color:#292b72}.chat-view .markdown-table .table-sort:hover,.chat-view .markdown-table .table-sort:focus-visible{color:#e4262d;background:#e2e5f2}
dialog{background:#fff;color:#25294d;border-color:#d6dbe7;box-shadow:0 20px 70px #1d225766}dialog::backdrop{background:#1a2059a8}.chat-menu-popup{background:#fff;color:#25294d;border-color:#d4d9e5;box-shadow:0 18px 45px #1d225740}.chat-menu-popup button{color:#25294d}.chat-menu-popup button:hover{background:#f0f1f8}.chat-menu-popup .danger,.action-error{color:#b61720}#exportPreview{color:#4d5671}#status{background:#292b72;color:#fff;border-color:#353f8d;box-shadow:0 8px 28px #1d225744}.pending-file,.message-file{background:#f0f1f8;border-color:#d9deeb;color:#25294d}.pending-file img,.message-file img{background:#fff}.pending-file button{background:#e0e3ee}.message-file:hover{background:#e4e7f2}
#usersDialog{max-width:760px;max-height:calc(100dvh - 28px);overflow:auto}.users-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:16px}.users-header h2{color:#292b72}.users-header p{margin-bottom:6px}.user-rows{display:grid;gap:8px;margin:18px 0}.user-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 14px;background:#f5f6fa;border:1px solid var(--line);border-radius:9px}.user-row-info{min-width:0;display:grid;gap:4px}.user-row-info strong{overflow-wrap:anywhere}.user-row-info small{color:var(--muted);overflow-wrap:anywhere}.users-form{border-top:1px solid var(--line);padding-top:18px}.users-form h3{font-size:19px;color:#292b72;margin:0 0 12px}.users-form label{margin:12px 0}.users-form .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.users-form fieldset{border:1px solid var(--line);border-radius:8px;margin:16px 0;padding:8px 14px}.users-form legend{color:#38405b;font-size:14px;font-weight:600}.users-form .check-label{display:flex;align-items:center;gap:10px;font-weight:500}.users-form .check-label input{width:18px;height:18px;min-height:18px;margin:0;accent-color:#e4262d}.users-form .fine{margin:-3px 0 8px}
@media(max-width:760px){.login{display:block;width:100vw;max-width:none;margin:0}.login-intro{min-height:190px;width:100%;padding:24px;gap:22px}.login-intro h2{font-size:26px;margin:8px 0}.login-intro p:not(.eyebrow),.login-intro-line{display:none}.login-brand{font-size:16px}.login-brand strong{font-size:13px}.login-brand .logo-tile{width:40px;height:40px}.login-card{max-width:520px;padding:32px 24px 40px}.login h1{font-size:34px}.chat-view .sidebar{background:#292b72}.chat-view main>header{background:#fff}.chat-view .message.assistant{padding:12px 14px}.user-row{align-items:flex-start;flex-direction:column}.user-row button{width:100%}.users-form .form-grid{grid-template-columns:1fr;gap:0}#usersDialog{padding:20px}.chat-view.mobile-sidebar-open.areas-collapsed .sidebar-actions{display:grid!important}.chat-view.mobile-sidebar-open.areas-collapsed .sidebar-bottom #manageUsers:not([hidden]),.chat-view.mobile-sidebar-open.areas-collapsed .sidebar-bottom #enableMfa:not([hidden]){display:block!important}}
