:root{--ink:#202e46;--muted:#61728b;--accent:#4568ee;--line:#e1e7f1;--paper:#f6f8fc}
body{background:var(--paper);color:var(--ink);font-size:15px}
body #workspaceSidebar{width:280px;background:linear-gradient(155deg,#172840,#101b30);border:0;color:#e6edf9;padding:24px 14px 14px}
body #workspaceSidebar .brand{display:block;color:white;font-size:27px;letter-spacing:-1px;padding:0 12px 24px}
body #workspaceSidebar .brand:before{content:'L';display:inline-grid;place-items:center;width:38px;height:38px;border-radius:13px;margin-right:12px;background:linear-gradient(135deg,#728fff,#5061df);font-size:24px;box-shadow:0 5px 20px #07102066}
body #workspaceSidebar .brand small{display:block;margin:5px 0 0 52px;color:#aabbd6;font-size:9px;letter-spacing:1.8px}
body #workspaceNav .nav-button,body #sidebarFooter .nav-button{color:#bfcee3;border-radius:11px;padding:10px 12px;margin:3px 0;transition:background .15s,color .15s}
body #workspaceNav .nav-button:hover,body #sidebarFooter .nav-button:hover{background:#ffffff10;color:white;filter:none}
body #workspaceNav .nav-button[aria-current=page]{background:#324777;color:#fff;box-shadow:inset 3px 0 #8fa7ff}
body #workspaceNav .nav-button:first-child{background:#5b74ee;color:white;margin-bottom:12px;box-shadow:0 4px 14px #07122230}
body .nav-icon{color:inherit;opacity:.9}
body #sidebarFooter{border-color:#ffffff16}
body #sidebarHistory>input{background:#ffffff08;border-color:#ffffff19;color:#f0f4ff;border-radius:11px;padding:11px}
body #sidebarHistory>input::placeholder{color:#a7b6cf}
body #projectTree h3{color:#96aac8;font-size:10px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;margin:24px 12px 10px}
body #projectTree summary{color:#e3ebfa;font-size:13px;padding:10px 9px;border-radius:9px}
body #projectTree summary:before{color:#9db0cf}
body #projectTree summary small{color:#aabbd6;background:#ffffff0b;padding:2px 6px;border-radius:6px}
body #projectTree .history-row a{color:#b8c8de;font-size:12px;line-height:1.5;padding:9px}
body #projectTree .history-row small{color:#8da3c0;font-size:10px}
body #projectTree summary:hover,body #projectTree .history-row:hover{background:#ffffff0b}
body #projectTree .history-row[aria-current=true]{background:#334676;box-shadow:inset 2px 0 #8fa7ff}
body #projectTree .history-row[aria-current=true] a{color:#fff}
body #projectTree button,body #projectTree .history-note{color:#aabbd6}
body #projectTree .history-menu{opacity:.6}
body #projectTree .history-row:hover .history-menu,body #projectTree .history-menu:focus-visible{opacity:1;color:#fff}
body #projectTree .project-contents{margin-left:13px;border-left:1px solid #ffffff20;padding-left:5px}
body #projectTree details .history-row{margin-left:0}
body #projectTree .project-folder>div{margin-left:12px;border-left:1px solid #ffffff20;padding-left:5px}
body #projectTree .project-folder>summary{color:#adbfec;font-size:12px}
body #workspaceMain{margin-left:280px;padding:88px 36px 24px;background:radial-gradient(ellipse at 65% 0,#eaf0ff66,transparent 45%),var(--paper)}
body #workspaceTopbar{left:280px;height:68px;background:#f6f8fceF;backdrop-filter:blur(16px);border-color:var(--line);padding:0 34px}
body #workspaceTitle{font-size:15px;color:#344966;letter-spacing:.2px}
body #workspaceTitle:before{content:'';display:inline-block;width:7px;height:7px;background:#627ff2;border-radius:50%;margin-right:10px;vertical-align:middle}
body #status{background:#f6f8fc;padding:6px 10px;border-radius:8px;color:#52627b;top:13px;max-width:34%}
body #workspaceMain>section:not(#chatPanel){background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px;box-shadow:0 8px 30px #24385b05}
body h2{letter-spacing:-.6px;font-size:26px;margin-top:0;color:#20324e}
body button{border-radius:10px;background:#4665dd;transition:background .15s,box-shadow .15s}
body button:hover{filter:brightness(1.07)}body button:disabled{cursor:not-allowed;filter:none}
body input:not([type=checkbox]),body textarea,body select{border-color:#dbe3f0;border-radius:10px}
body input:focus-visible,body textarea:focus-visible,body select:focus-visible{outline:2px solid #617dec;outline-offset:2px}
body .secondary{background:#edf1fc;color:#415cae}
body #chatEmpty{font-size:36px;line-height:1.3;color:#253958;font-weight:600;letter-spacing:-1.2px}
body #chatEmpty:before{content:'L';display:grid;place-items:center;margin:0 auto 24px;width:66px;height:66px;border-radius:23px;background:linear-gradient(135deg,#526ee8,#899cfa);color:#fff;font-size:39px;box-shadow:0 14px 35px #526ee82b}
body #chatEmpty small{color:#62738e;font-size:14px;line-height:1.8;max-width:460px;align-self:center}
body .starter-actions{gap:10px;margin-top:28px}
body .starter-actions button{background:#fff;border:1px solid #dfe6f3;color:#425779;font-size:12px;border-radius:12px;padding:12px 16px;box-shadow:0 3px 8px #21375a04}
body .starter-actions button:hover{border-color:#93a8fa;box-shadow:0 5px 16px #4265bd10}
body .composer{border-radius:23px;border:1px solid #d5def0;background:#fff;box-shadow:0 10px 40px #2f477614;padding:12px}
body .composer:focus-within{border-color:#7892f1;box-shadow:0 0 0 3px #6685ed13,0 10px 40px #2f477614}
body .composer #ask{background:#5472eb;box-shadow:0 4px 12px #4568df30}
body .composer #attachDocument{color:#607599}
body .chat-message.user{background:#e8eefc;color:#243956;border:1px solid #dce5f8;border-radius:20px 20px 5px 20px}
body .chat-message.assistant .message-label{color:#4869bc;font-weight:700;letter-spacing:.3px}
body .message-text{line-height:1.8}
body .message-time{color:#78869b}
body .attachment-card{border-color:#dae3f3;background:#fff;box-shadow:0 3px 12px #273e6006}
body .source-card{background:#f8faff;border-color:#dee6f5}
body .source-reference{background:#e7edff;color:#3458b6;border-color:#cfdbff}
body #admin>details,body #trainingDevelopment>details{border:1px solid var(--line);border-radius:15px;padding:16px;margin:14px 0}
body summary{cursor:pointer;font-weight:600}
body progress{accent-color:#5574ed;height:10px;border-radius:8px}
body #conversationDialog{border-color:#dfe6f3;border-radius:20px;box-shadow:0 24px 90px #182d4a33}
body #conversationDialog::backdrop{background:#12244055;backdrop-filter:blur(3px)}
body #conversationActions button{background:#f2f5fb;color:#344969;border-radius:10px}
body #attachMenu{border-color:#dbe3f1;box-shadow:0 18px 60px #24385b24}
@media(min-width:1400px){body #workspaceMain>#chatPanel{max-width:860px}}
@media(max-width:1000px) and (min-width:761px){body #workspaceSidebar{width:240px}body #workspaceMain{margin-left:240px;padding-left:24px;padding-right:24px}body #workspaceTopbar{left:240px}}
@media(max-width:760px){body #workspaceSidebar{width:min(300px,88vw)}body #workspaceMain{margin-left:0;padding:80px 16px 16px}body #workspaceTopbar{left:0;padding:0 12px;height:64px}body #workspaceMain>section:not(#chatPanel){padding:18px;border-radius:18px}body #chatEmpty{font-size:28px}body #chatEmpty:before{width:52px;height:52px;border-radius:18px;font-size:32px;margin-bottom:18px}body .starter-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}body .starter-actions button{font-size:11px;margin:0;padding:10px 8px;max-width:100%}body .composer{padding:8px;border-radius:19px}body #status{top:48px;right:12px;max-width:80%;font-size:10px;padding:2px 5px}body #mobileAdmin{background:#e8edfb;color:#40588e}body .chat-message{font-size:14px}body #mobileMenu{color:#34496c}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Lisa system console: deliberately scoped to administration's first two panels. */
body #admin .lisa-console{--console-ink:#e4f5ff;--console-muted:#9fb9cc;color:var(--console-ink);background:radial-gradient(ellipse at 100% 0,#10344b88,transparent 55%),linear-gradient(145deg,#0b1726,#07101c);border:1px solid #285269;border-radius:20px;padding:26px;margin:0 0 24px;box-shadow:0 16px 40px #03101e24;position:relative;overflow:hidden;color-scheme:dark}
body #admin .lisa-console :is(h2,h3){color:#e4f5ff;font-size:25px;letter-spacing:-.5px;margin:4px 0 10px}
body #admin .lisa-console p,body #admin .lisa-console small{color:var(--console-muted);line-height:1.65}
body #admin .lisa-console button{background:#123149;color:#bcefff;border:1px solid #32627b;border-radius:9px;box-shadow:none;font-size:13px;padding:10px 15px}
body #admin .lisa-console button:hover:not(:disabled){background:#19475f;border-color:#69d9ee;color:#fff}
body #admin .lisa-console button:disabled{opacity:.45;cursor:not-allowed}
body #admin .lisa-console :is(button,input,select,summary):focus-visible{outline:2px solid #73e4f6;outline-offset:4px}
body #admin .lisa-console :is(input:not([type=checkbox]),select,textarea){background:#0a1a2b;color:#e4f5ff;border:1px solid #365367}
body #admin .console-header{display:flex;align-items:center;gap:20px;padding-bottom:24px;border-bottom:1px solid #254152;margin-bottom:20px;flex-wrap:wrap}
body #admin .console-identity{flex:1;min-width:170px}
body #admin .console-identity>small,body #admin .console-kicker{display:block;color:#66d9ee;font-size:10px;font-weight:700;letter-spacing:2.4px;margin-bottom:8px}
body #admin .console-environment{margin:0;font-size:12px}
body #admin .console-orb{width:76px;height:76px;border:1px solid #65d7ef;border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-size:27px;color:#b4f5ff;box-shadow:inset 0 0 20px #29b5e02c,0 0 0 7px #35bdd110,0 0 0 8px #266278; background:radial-gradient(circle,#17455d,#081724 70%)}
body #admin .console-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:12px;margin:20px 0}
body #admin .console-grid>p{grid-column:1/-1;margin:0;font-size:12px}
body #admin .lisa-console details{background:#0c1c2c;border:1px solid #264151;border-radius:10px;margin:10px 0;padding:14px}
body #admin .lisa-console summary{color:#d9effa;font-weight:600;cursor:pointer;line-height:1.6}
body #admin .console-grid>.console-service{margin:0;align-self:start;border-top:2px solid #476074;min-width:0}
body #admin .console-service summary{display:flex;flex-direction:column;gap:12px;font-size:14px;list-style:none}
body #admin .console-service summary::after{content:'Visa detaljer +';font-size:10px;font-weight:400;color:#91adbf}
body #admin .console-service[open] summary::after{content:'Dölj detaljer −'}
body #admin .console-badge{font-size:11px;font-weight:500;display:flex;align-items:center;gap:8px;color:#b2c5d2}
body #admin .console-badge::before{content:'';width:6px;height:6px;background:#8299ac;border-radius:50%;flex-shrink:0}
body #admin .console-service[data-state=ok]{border-top-color:#54d5bd}
body #admin .console-service[data-state=ok] .console-badge{color:#84e4ce}
body #admin .console-service[data-state=ok] .console-badge::before{background:#54d5bd}
body #admin .console-service[data-state=error] .console-badge{color:#ffaaa5}
body #admin .console-service[data-state=error]{border-top-color:#ef8682}
body #admin .console-service[data-state=stale]{border-top-color:#d6b576}
body #admin .console-service[data-state=stale] .console-badge{color:#e3c58e}
body #admin #modelTrainingConsole>summary{font-size:25px;letter-spacing:-.4px;margin-bottom:16px}
body #admin .training-metric{padding:18px;border:1px solid #294b60;border-radius:12px;background:linear-gradient(145deg,#10263a,#0b1a2a);min-width:0;overflow-wrap:anywhere}
body #admin .training-metric>strong{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#8ad9ea}
body #admin .training-metric>div{color:#e5f7ff;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
body #admin .training-metric>p{color:#b1cada!important;font-size:12px;font-weight:400!important}
body #admin .training-metric small{display:block;font-size:11px}
body #admin .training-metric button{display:block;width:100%;margin:10px 0 0}
body #admin .lisa-console progress{appearance:none;height:7px;border:0;border-radius:10px;overflow:hidden;background:#233b4b;accent-color:#60daeb;margin:14px 0}
body #admin .lisa-console progress::-webkit-progress-bar{background:#233b4b}
body #admin .lisa-console progress::-webkit-progress-value{background:linear-gradient(90deg,#307cbd,#6ce5e7)}
body #admin .lisa-console progress::-moz-progress-bar{background:#60daeb}
body #admin .console-footnote{font-size:11px}
@media(max-width:760px){body #admin .lisa-console{padding:18px}body #admin .console-grid{grid-template-columns:1fr}body #admin .console-orb{width:48px;height:48px;font-size:21px}body #admin .console-header{gap:15px}body #admin .console-header>button{width:100%}}

body #admin #sourceMonitorConsole>summary{font-size:25px;letter-spacing:-.4px;margin-bottom:16px}
body #admin #sourceMonitorStatus{white-space:pre-wrap;overflow-wrap:anywhere;color:#a9c6d8;background:transparent;font:12px/1.7 inherit}

.console-card{min-width:0}.console-actions{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0 14px}.lisa-console .console-actions button{font-size:12px;padding:7px 9px;white-space:normal}
