/* Shared palette, typography, and theme controls for every workspace. */
:root{--bg:#070c16;--surface:#101a2a;--surface2:#152236;--text:#e5edf8;--muted:#96a8c1;--quiet:#8095b0;--line:#263750;--purple:#6b9ce8;--purple2:#9ec4ff;--violet:#6b9ce8;--violet2:#9ec4ff;--green:#68dfc9;--red:#ff88a3;--ob-bg:#070c16;--ob-surface:#101a2a;--ob-surface2:#152236;--ob-text:#e5edf8;--ob-muted:#96a8c1;--ob-line:#263750;--ob-purple:#6b9ce8;--ob-purple2:#9ec4ff;--ob-green:#68dfc9;--ob-red:#ff88a3;--ink:#e5edf8;--canvas:#070c16;--paper:#101a2a;color-scheme:dark}
html[data-theme=light]{--bg:#f0f4fa;--surface:#fff;--surface2:#eaf0f8;--text:#23354e;--muted:#5d728d;--quiet:#627995;--line:#cddaea;--purple:#3b6daa;--purple2:#315f96;--violet:#3b6daa;--violet2:#315f96;--green:#176e70;--red:#b53259;--redbg:#fbe6ed;--ob-bg:#f0f4fa;--ob-surface:#fff;--ob-surface2:#eaf0f8;--ob-text:#23354e;--ob-muted:#5d728d;--ob-line:#cddaea;--ob-purple:#3b6daa;--ob-purple2:#315f96;--ob-green:#176e70;--ob-red:#b53259;--ob-greenbg:#e1f3ef;--ob-redbg:#fbe6ed;--ink:#23354e;--canvas:#f0f4fa;--paper:#fff;color-scheme:light}
[hidden]{display:none!important}.shared-theme-switch{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--surface2)}.shared-theme-switch button{font:13px/1.3 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;border:0;border-radius:6px;padding:9px 12px;background:transparent;color:var(--muted);cursor:pointer;min-height:36px}.shared-theme-switch button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 5px #0001}.shared-theme-switch button:focus-visible{outline:3px solid #78aee3;outline-offset:2px}
.shell,.gateway{font-size:15px}.shell .main{background:radial-gradient(ellipse at 5% 0%,#36778d12,transparent 50%),var(--bg)!important}.shell .side{background:var(--surface)!important;border-color:var(--line)!important;color:var(--text)!important}.shell .brand b{color:var(--text)}.shell .nav,.shell .profile span,.shell .brand small{color:var(--muted)!important}.shell .nav.active{background:var(--surface2)!important;color:var(--text)!important;box-shadow:inset 2px 0 #6ba7df}.shell .top{flex-wrap:wrap;padding-block:18px;gap:14px}.shell .top h1{font-size:27px}.shell .topactions,.shell .actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.shell .button,.shell .btn,.shell .rowaction,.shell .tab{font-size:14px;min-height:42px}.shell .intro p,.shell .panelhead p,.shell .notice,.shell .subtle,.shell .help,.shell .status,.shell .event p{font-size:14px;line-height:1.65}.shell .panelhead h3{font-size:17px}.shell th{font-size:12px}.shell td{font-size:14px}.shell .identity small,.shell .badge,.shell .event time,.shell .event b,.shell .stat span,.shell .profile b,.shell .logout{font-size:12px}.shell .formgrid label,.shell label{font-size:14px!important}.shell input,.shell select,.shell textarea{font-size:16px!important}.shell .stat{background:var(--surface);color:var(--text)}.shell .stat b{font-size:23px}.shell .section{font-size:11px}.shell .event{grid-template-columns:160px minmax(0,1fr);gap:12px}.shell .event time{grid-column:2}.shell .nav{font-size:14px}.shell .modal h2{font-size:26px}.gateway .state{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.gateway .shared-theme-switch button{width:auto}.gateway .form input{background:var(--surface2);color:var(--text);border-color:var(--line)}html[data-theme=light] .gateway .card,html[data-theme=light] .gateway .formcard{background:var(--surface);border-color:var(--line)}
#importOverlay .modal{width:min(780px,100%);padding:30px}#importOverlay .modal h2{font-size:28px}#importOverlay .subtle,#importOverlay .drop,#importOverlay .notice,#importOverlay .status,#importOverlay label,#importOverlay .event,#importOverlay .event small{font-size:15px!important;line-height:1.65}#importOverlay input:not([type=checkbox]){font-size:16px!important;min-height:44px;width:100%;margin-top:8px}#importOverlay input[type=checkbox]{width:20px!important;height:20px;flex-shrink:0}#importOverlay button{font-size:15px!important;min-height:44px}#importOverlay .previewgrid{font-size:14px;gap:12px}#importOverlay .previewgrid b{font-size:24px}#importOverlay .notice{padding:16px}#importOverlay .status:not(:empty){padding:12px 0;color:var(--text);font-weight:500}#importOverlay .modalactions{position:sticky;bottom:-30px;padding:18px 0;background:var(--surface);border-top:1px solid var(--line)}#importOverlay .close{font-size:23px!important;min-width:44px}.import-success{padding:16px 20px;margin-top:20px;border:1px solid #45897b;border-radius:9px;background:#184339;color:#d4f8ec;font-size:15px;line-height:1.5}html[data-theme=light] .import-success{background:#e1f3ef;color:#155b4e}#freshness{font-size:14px;line-height:1.6;color:var(--muted)}
@media(max-width:760px){.shell .side .nav[href="/"]{display:block!important}.shell .event{grid-template-columns:1fr}.shell .event time{grid-column:1}.shell .top h1{font-size:24px}.shell .topactions,.shell .actions{width:100%}.shell .main{padding-inline:15px}.gateway .top{flex-wrap:wrap;gap:18px}#importOverlay .modal{padding:20px}#importOverlay .modalactions{bottom:-20px}#importOverlay .drop>div{grid-template-columns:1fr!important}#importOverlay .modalactions button{flex:1}#freshness{font-size:13px}}
.shell .top h1,.shell .event b{color:var(--text)}.gateway .copy h1{color:var(--text)}.gateway .copy h1 span{color:var(--muted)}.gateway .auth{background:var(--surface);border-color:var(--line);box-shadow:0 24px 70px #0003}.gateway .auth h2{color:var(--text)}.gateway .auth>p,.gateway .form label,.gateway .private,.gateway .copy>p{color:var(--muted);font-size:14px;line-height:1.6}.gateway .form input{font-size:16px}.gateway .form input::placeholder{color:var(--quiet)}.gateway .signals .signal span{color:var(--muted)}.gateway .eyebrow{color:var(--violet2)}html[data-theme=light] .gateway .auth{box-shadow:0 20px 60px #3e527b20}#importOverlay .drop>b{display:block;margin-bottom:5px}
