/* Theme tokens: generated colour properties. Light values here; dark values at the end of this file.
   Names are --<role>-<light hex> (fg text, bg fill, bd border/line, sh shadow/ring); semantic names (--text, --surface...) are kept.
   Colours that look the same in both themes (white on blue buttons, dark code blocks) stay literal. */
:root{color-scheme:light dark;--bd-007e48:#007e48;--bd-196acc:#196acc;--bd-274260:#274260;--bd-6b4fd1:#6b4fd1;--bd-9e5f0f:#9e5f0f;--bd-9fb3c8:#9fb3c8;--bd-a9b4bf:#a9b4bf;--bd-bcd2ee:#bcd2ee;--bd-c2303b:#c2303b;--bd-c9d6e3:#c9d6e3;--bd-c9dfef:#c9dfef;--bd-ccdae7:#ccdae7;--bd-cde1f4:#cde1f4;--bd-cfe0f7:#cfe0f7;--bd-cfe1f3:#cfe1f3;--bd-d4e1ed:#d4e1ed;--bd-d5dde5:#d5dde5;--bd-dce8f3:#dce8f3;--bd-e0eaf3:#e0eaf3;--bd-e6eef5:#e6eef5;--bd-e7eef5:#e7eef5;--bd-ebf0f6:#ebf0f6;--bd-ecf1f5:#ecf1f5;--bd-edf1f5:#edf1f5;--bd-edf1f6:#edf1f6;--bd-eef2f6:#eef2f6;--bd-f0f3f6:#f0f3f6;--bg-a9b4bf:#a9b4bf;--bg-bcd2ee:#bcd2ee;--bg-c7d3df:#c7d3df;--bg-d5dde5:#d5dde5;--bg-dbe3eb:#dbe3eb;--bg-e3e9f0:#e3e9f0;--bg-e5f3ff:#e5f3ff;--bg-e5f7ee:#e5f7ee;--bg-e6f3ff:#e6f3ff;--bg-e6f5ff:#e6f5ff;--bg-e9f7ec:#e9f7ec;--bg-eaf3fb:#eaf3fb;--bg-ecf2f8:#ecf2f8;--bg-ecf7ff:#ecf7ff;--bg-edf1f5:#edf1f5;--bg-eef4fa:#eef4fa;--bg-eef4fb:#eef4fb;--bg-f1f5fa:#f1f5fa;--bg-f1f6fb:#f1f6fb;--bg-f1f8ff:#f1f8ff;--bg-f3f7fc:#f3f7fc;--bg-f3f8fc:#f3f8fc;--bg-f3f8fd:#f3f8fd;--bg-f4f7fb:#f4f7fb;--bg-f5f9fc:#f5f9fc;--bg-f6f8fb:#f6f8fb;--bg-f6f9fd:#f6f9fd;--bg-f7f9fb:#f7f9fb;--bg-f7fafd:#f7fafd;--bg-f7fbff:#f7fbff;--bg-f8fafc:#f8fafc;--bg-fbfcfe:#fbfcfe;--bg-fbfdff:#fbfdff;--bg-fde8ea:#fde8ea;--bg-fdeee3:#fdeee3;--bg-ffeced:#ffeced;--bg-fff3dd:#fff3dd;--bg-fff3df:#fff3df;--bg-fff6e8:#fff6e8;--bg-ffffff:#ffffff;--bg-ffffff0b:#ffffff0b;--bg-ffffff99:#ffffff99;--fg-007e48:#007e48;--fg-0471ac:#0471ac;--fg-067da8:#067da8;--fg-068368:#068368;--fg-075c9e:#075c9e;--fg-082b4b:#082b4b;--fg-0878b6:#0878b6;--fg-0a71cb:#0a71cb;--fg-0b5e9a:#0b5e9a;--fg-0f9b9b:#0f9b9b;--fg-107253:#107253;--fg-11395f:#11395f;--fg-11674e:#11674e;--fg-133c60:#133c60;--fg-146ca0:#146ca0;--fg-147d53:#147d53;--fg-17395c:#17395c;--fg-173b54:#173b54;--fg-19618c:#19618c;--fg-196acc:#196acc;--fg-1f3b57:#1f3b57;--fg-2386d5:#2386d5;--fg-24496f:#24496f;--fg-244b70:#244b70;--fg-264a6c:#264a6c;--fg-34465a:#34465a;--fg-34526b:#34526b;--fg-34536c:#34536c;--fg-385770:#385770;--fg-386787:#386787;--fg-42647f:#42647f;--fg-48647c:#48647c;--fg-4d5b69:#4d5b69;--fg-51728c:#51728c;--fg-526782:#526782;--fg-546a7f:#546a7f;--fg-556e87:#556e87;--fg-55718d:#55718d;--fg-5a7790:#5a7790;--fg-5b7790:#5b7790;--fg-5b7892:#5b7892;--fg-5d6b78:#5d6b78;--fg-5f788d:#5f788d;--fg-617789:#617789;--fg-62758c:#62758c;--fg-627689:#627689;--fg-63778c:#63778c;--fg-647686:#647686;--fg-648eaf:#648eaf;--fg-657786:#657786;--fg-687583:#687583;--fg-688bab:#688bab;--fg-6b4fd1:#6b4fd1;--fg-6d7f92:#6d7f92;--fg-845b19:#845b19;--fg-8d5c18:#8d5c18;--fg-925c20:#925c20;--fg-9b1c28:#9b1c28;--fg-9e5f0f:#9e5f0f;--fg-a03143:#a03143;--fg-b24d0c:#b24d0c;--fg-c2303b:#c2303b;--sh-020d2177:#020d2177;--sh-0c345c09:#0c345c09;--sh-1b2b3d1c:#1b2b3d1c;--sh-1b2b3d1f:#1b2b3d1f;--sh-1b2b3d24:#1b2b3d24;--sh-1b2b3d30:#1b2b3d30;--sh-1b436008:#1b436008;--sh-d9f1ff:#d9f1ff}
:root{--navy:#071d38;--navy2:#0b2b51;--blue:#0868d4;--bright:#1399f5;--cyan:#13b8d4;--text:#172c47;--muted:#62758c;--subtle:#e9eff5;--line:#dfe7ef;--paper:#f5f8fc;--white:#fff;--green:#08795c;--amber:#ad6c1c;font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;color:var(--text);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #68bdff;outline-offset:2px}a{color:inherit}.layout{display:grid;grid-template-columns:263px minmax(0,1fr);min-height:100vh}.rail{background:linear-gradient(185deg,#081e3a 5%,#06172d 95%);color:#d1e3f4;padding:24px 15px;display:flex;flex-direction:column;gap:27px;min-height:100vh;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;padding:0 8px}.brand img{border-radius:13px;object-fit:cover;background:#fff;padding:2px}.brand b{display:block;font-size:13px;letter-spacing:.7px;color:#fff}.brand small{display:block;font-size:9px;letter-spacing:1.7px;color:#72a8ce;margin-top:5px}.rail-section{color:var(--fg-648eaf);font-size:10px;font-weight:800;letter-spacing:2px;padding:0 17px;margin-bottom:-17px}.rail nav{display:grid;gap:7px}.nav{display:flex;align-items:center;gap:13px;text-align:left;width:100%;border:0;border-radius:11px;padding:13px 16px;background:transparent;color:#c1d3e6;font-size:14px;font-weight:600}.navicon{font-size:20px;font-weight:400;line-height:1;width:22px;text-align:center}.nav:hover{background:#152e4e;color:white}.nav.active{background:linear-gradient(100deg,#0869d5,#174d91);color:#fff;box-shadow:0 4px 18px var(--sh-020d2177)}.rail-card{margin-top:auto;padding:20px 18px;border:1px solid var(--bd-274260);border-radius:17px;background:var(--bg-ffffff0b)}.tagline{color:#51cce6;font-size:10px;letter-spacing:1.7px;font-weight:800}.rail-card strong{display:block;color:#fff;font-size:16px;line-height:1.35;margin-top:13px}.rail-card p{font-size:12px;line-height:1.65;color:#a4bbd3;margin-bottom:0}.rail-footer{font-size:10px;color:#82a4c5;padding:0 9px;letter-spacing:1px;line-height:1.7}.rail-footer span{letter-spacing:0;color:var(--fg-688bab)}.workspace{min-width:0}.topbar{background:var(--bg-ffffff);border-bottom:1px solid var(--line);min-height:76px;padding:0 clamp(20px,4vw,52px);display:flex;justify-content:space-between;gap:16px;align-items:center}.breadcrumb{font-size:11px;letter-spacing:1.7px;color:#8ca0b5;font-weight:800}.breadcrumb span{margin:0 11px;color:#bfd0df}.breadcrumb b{color:var(--fg-264a6c)}.top-right{display:flex;gap:19px;align-items:center}.safe-indicator{font-size:11px;color:var(--fg-11674e);white-space:nowrap}.safe-dot{display:inline-block;background:#0fac83;border-radius:50%;width:8px;height:8px;margin-right:5px;box-shadow:0 0 0 4px #0ca87c1c}.button{border-radius:10px;padding:11px 17px;border:1px solid transparent;font-size:12px;font-weight:750;white-space:nowrap}.button.primary{background:linear-gradient(115deg,#0a72d8,#075caf);color:white;box-shadow:0 6px 12px #006cca24}.button.subtle{color:var(--fg-244b70);background:var(--bg-eef4fb);border-color:var(--bd-dce8f3)}.button:hover:not(:disabled){filter:brightness(.96)}main{margin:auto;max-width:1500px;padding:28px clamp(20px,4vw,52px) 36px}.hero{background:radial-gradient(circle at 90% 9%,#1976cd 0,#10447a 20%,transparent 48%),linear-gradient(115deg,#071e3c,#0b355d);border-radius:21px;color:white;min-height:282px;padding:35px 38px;display:grid;grid-template-columns:minmax(0,1fr) 256px;align-items:center;gap:32px;overflow:hidden;position:relative}.eyebrow,.kicker{font-size:10px;font-weight:850;letter-spacing:1.9px}.eyebrow{color:#78d8f1;display:flex;align-items:center;gap:11px}.eyebrow-line{height:1px;width:30px;background:#4bc7e1}.hero h1{font-size:clamp(28px,3vw,43px);line-height:1.13;letter-spacing:-1px;margin:15px 0 12px}.hero h1 em{color:#5acefb;font-style:normal}.hero p{color:#c5deef;font-size:14px;line-height:1.6;max-width:560px}.hero-meta{display:flex;gap:14px;flex-wrap:wrap;color:#a7cfe6;font-size:11px;margin-top:24px}.hero-side{align-self:stretch;border:1px solid #ffffff3d;background:#ffffff0f;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;border-radius:15px;padding:23px}.hero-side .shield{border:1px solid #4ebee7;width:44px;height:44px;display:grid;place-items:center;border-radius:13px;color:#7ad9ee;font-size:26px;margin-bottom:13px}.hero-side strong{font-size:16px;color:#fff}.hero-side p{font-size:12px;margin:7px 0 15px}.hero-side span{font-size:9px;font-weight:800;letter-spacing:1.2px;color:#7ff0d0}.connect-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,440px);align-items:center;gap:12px 22px;background:var(--bg-ffffff);border:1px solid var(--line);border-radius:16px;padding:20px 23px;margin:20px 0 26px;box-shadow:0 8px 28px var(--sh-1b436008)}.connect-intro{display:flex;align-items:center;gap:15px}.connect-icon{display:grid;place-items:center;color:var(--blue);background:var(--bg-e6f3ff);width:43px;height:43px;border-radius:12px;font-size:24px;flex:none}.connect-intro strong{display:block;font-size:14px}.connect-intro p{font-size:11px;line-height:1.5;color:var(--muted);margin:6px 0 0}.connect-controls{display:flex;gap:9px}.connect-controls input{min-width:80px;flex:1}.connect-controls input,.formrow input,.formrow select,.tabletools input{background:var(--bg-ffffff);border:1px solid var(--bd-ccdae7);border-radius:9px;padding:11px 12px;color:var(--text);font-size:13px;outline-offset:1px}.connect-panel #connectionStatus{grid-column:1/-1;font-size:11px;color:var(--fg-5b7892);padding-left:59px;min-height:15px}.section-heading{display:flex;justify-content:space-between;gap:15px;align-items:end;margin:8px 0 18px}.section-heading h2{font-size:22px;letter-spacing:-.4px;margin:6px 0 0}.section-heading p{font-size:11px;color:var(--muted);margin:0}.kicker{color:var(--fg-067da8)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:17px}.metric{background:var(--bg-ffffff);border:1px solid var(--line);border-radius:15px;padding:19px;min-height:142px}.metric-label{display:flex;justify-content:space-between;gap:8px;color:var(--fg-546a7f);font-size:12px;font-weight:700}.metric-glyph{color:var(--fg-2386d5);font-size:19px}.metric strong{display:block;font-size:34px;letter-spacing:-1px;margin-top:9px;color:var(--fg-11395f);line-height:1.1}.metric small{display:block;font-size:11px;color:var(--fg-5f788d);margin-top:7px}.overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.panel{background:var(--bg-ffffff);border:1px solid var(--line);border-radius:15px;overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:21px 22px 16px}.panel-head h3,.panel h3{font-size:17px;letter-spacing:-.3px;margin:6px 0}.text-button{color:var(--fg-0a71cb);border:0;background:none;font-size:12px;font-weight:800;white-space:nowrap}.preview-list{padding:0 20px 17px}.preview-row{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--bd-edf1f6);padding:14px 2px;gap:12px}.preview-row button{display:block;text-align:left;background:transparent;border:none;padding:0;color:var(--fg-133c60);font-weight:700;font-size:13px}.preview-row small{display:block;font-weight:400;color:var(--fg-617789);margin-top:4px;font-size:11px}.status-chip{padding:5px 9px;font-weight:800;font-size:10px;border-radius:7px;white-space:nowrap}.status-chip.good{background:var(--bg-e5f7ee);color:var(--fg-107253)}.status-chip.warn{background:var(--bg-fff3dd);color:var(--fg-8d5c18)}.status-chip.neutral{background:var(--bg-ecf2f8);color:var(--fg-556e87)}.view{display:block}.view[hidden],.detail-panel[hidden]{display:none}.tabletools{padding:22px;display:flex;align-items:center;gap:15px;flex-wrap:wrap}.tabletools label{font-weight:750;font-size:13px}.tabletools input{width:min(400px,100%)}.tablehint{font-size:11px;color:var(--muted);margin-left:auto}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px}thead{background:var(--bg-eef4fa);text-align:left}th{font-size:10px;letter-spacing:1px;color:var(--fg-55718d);text-transform:uppercase;padding:15px 16px}td{padding:15px 16px;border-top:1px solid var(--bd-ebf0f6);color:var(--fg-34526b);word-break:break-word}tbody tr:hover{background:var(--bg-f7fbff)}.empty{text-align:center;color:var(--fg-657786);padding:24px;font-size:12px}.panel-spacious{padding:25px}.panel-spacious h3{margin:10px 0}.muted{color:var(--muted);font-size:13px;line-height:1.7}.formrow{display:flex;align-items:end;flex-wrap:wrap;gap:15px;margin-top:21px}.formrow>div{display:grid;gap:7px}.formrow label{font-size:12px;font-weight:800;color:var(--fg-48647c)}.formrow input{min-width:245px}.formrow .button{height:39px}.result-box{background:var(--bg-f3f7fc);border:1px solid var(--bd-e0eaf3);border-radius:10px;font-size:12px;color:var(--fg-42647f);margin:18px 0 10px;padding:14px;white-space:pre-wrap;overflow-wrap:anywhere}.govern-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:17px}.rules{display:grid;gap:12px;margin:22px 0}.rules span{font-size:13px;color:var(--fg-526782);border-bottom:1px solid var(--bd-edf1f6);padding-bottom:11px}.detail-panel{margin-top:20px;background:var(--bg-ffffff);border:1px solid var(--line);border-left:4px solid #159bea;border-radius:14px;padding:19px 23px}.detail-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.detail-panel h2{font-size:17px;margin:6px 0}.detail-panel pre{font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;background:#0b243f;color:#d2eaf5;border:1px solid #173e61;padding:22px;border-radius:10px;white-space:pre-wrap;word-break:break-word;max-height:400px;overflow:auto}footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:30px 1px;color:var(--fg-63778c);font-size:11px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:1250px){.layout{grid-template-columns:215px minmax(0,1fr)}.rail{padding:18px 10px}.brand small{letter-spacing:1px}.brand b{font-size:11px}.hero{grid-template-columns:1fr 210px;padding:27px}.stats{gap:10px}.metric{padding:16px}.connect-panel{grid-template-columns:1fr}.connect-panel #connectionStatus{padding-left:0}}@media(max-width:900px){.layout{grid-template-columns:1fr}.rail{height:auto;min-height:unset;position:relative;gap:13px;padding:13px 20px}.rail nav{display:flex;gap:6px;overflow-x:auto}.nav{width:auto;white-space:nowrap;padding:9px 12px;font-size:12px}.rail-section,.rail-card,.rail-footer{display:none}.topbar{min-height:62px}.hero{grid-template-columns:1fr}.hero-side{display:none}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.govern-grid,.overview-grid{grid-template-columns:1fr}}@media(max-width:520px){main{padding:15px}.topbar{padding:12px}.top-right{flex-direction:column;gap:5px;align-items:flex-end}.safe-indicator{font-size:9px}.hero{padding:24px;border-radius:15px}.hero-meta{gap:9px}.connect-panel{padding:15px}.connect-controls{flex-wrap:wrap}.connect-controls input{flex-basis:100%}.stats{grid-template-columns:1fr 1fr;gap:9px}.metric{padding:13px;min-height:117px}.metric strong{font-size:27px}.metric-label{font-size:10px}.section-heading{align-items:start;flex-direction:column}.formrow>div,.formrow input{width:100%}.rail nav .navicon{display:none}}

.page-actions{display:flex;justify-content:center;padding:16px;border-top:1px solid var(--bd-e7eef5)}.page-actions button[hidden]{display:none}
.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-bottom:17px}.admin-block{margin-bottom:17px}.admin-grid .span-2{grid-column:1/-1}.button-pair{display:flex;gap:9px;flex-wrap:wrap}.button.danger{background:linear-gradient(115deg,#b4232f,#8f1a24);box-shadow:none}.checks{border:1px solid var(--line);border-radius:10px;margin:18px 0 0;padding:12px 14px;display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;font-size:12px;color:var(--fg-48647c)}.checks legend{font-weight:800;font-size:12px;padding:0 6px}.checks label{display:flex;gap:6px;align-items:center}.checks-label{font-weight:800}.token-box{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.formrow select{min-width:160px}@media(max-width:900px){.admin-grid{grid-template-columns:minmax(0,1fr)}.layout{grid-template-columns:minmax(0,1fr)}}@media(max-width:520px){.formrow select{width:100%}.button-pair .button{flex:1}}
.detail-body{display:grid;gap:16px;margin-top:14px}.detail-section{border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--bg-ffffff)}.detail-section h4{margin:0 0 10px;font-size:14px;color:var(--fg-17395c)}.kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px 16px;font-size:12px}.kv b{display:block;color:var(--fg-62758c);font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:800}.timeline{list-style:none;margin:0;padding:0;display:grid;gap:8px;max-height:340px;overflow:auto}.timeline li{border-left:3px solid var(--bd-cfe1f3);padding:4px 0 4px 12px;font-size:12px}.timeline li small{display:block;color:var(--fg-5f788d)}.timeline li.ticket{border-color:#13b8d4}.chips{display:flex;flex-wrap:wrap;gap:6px}.status-chip.bad{background:var(--bg-fde8ea);color:var(--fg-9b1c28)}.spark{width:100%;height:70px;display:block}.spark path{fill:none;stroke-width:2}.legend{display:flex;gap:14px;font-size:11px;color:var(--fg-62758c);flex-wrap:wrap}.legend i{display:inline-block;width:10px;height:3px;margin-right:5px;vertical-align:middle}.wide-text{width:100%;min-height:110px;border:1px solid var(--bd-ccdae7);border-radius:9px;padding:11px 12px;font:inherit;font-size:13px;margin-top:6px}.block-label{display:block;font-size:12px;font-weight:800;color:var(--fg-48647c);margin-top:18px}details.raw{margin-top:14px}details.raw summary{cursor:pointer;font-size:12px;color:var(--fg-244b70);font-weight:700}.inline-form{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin-top:10px}.inline-form input,.inline-form select{border:1px solid var(--bd-ccdae7);border-radius:8px;padding:8px 10px;font-size:12px;min-width:150px}.overdue{color:var(--fg-9b1c28);font-weight:800}
/* Tickets view (merged service desk), scoped to .sd */
.sd{--navy:#071c35;--navy2:#103458;--blue:#0878ce;--sky:#37c4fa;--paper:#f4f8fc;--line:#dce6f0;--ink:#16324c;--muted:#5d768f;--white:#fff}.sd button,.sd input,.sd textarea,.sd select{font:inherit}.sd button{cursor:pointer}.sd button:disabled{opacity:.48;cursor:not-allowed}.sd .secure{color:var(--fg-068368);letter-spacing:0}.sd main{max-width:1600px;padding:30px 36px;margin:auto}.sd .eyebrow{font-size:10px;letter-spacing:2px;font-weight:900;color:#79d1ff}.sd .eyebrow.dark{color:var(--fg-0878b6)}.sd .box{background:var(--bg-ffffff);border:1px solid var(--line);box-shadow:0 5px 25px var(--sh-0c345c09);border-radius:15px;padding:24px}.sd .button{border:0;border-radius:9px;min-height:40px;padding:10px 17px;font-weight:750;font-size:12px}.sd .primary{background:#0878c9;color:white}.sd .primary:hover{background:#065b9b}.sd .metrics{margin:20px 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.sd .metric{background:var(--bg-ffffff);padding:22px;border:1px solid var(--line);border-radius:14px}.sd .metric span{display:block;font-size:11px;color:var(--fg-5b7790);font-weight:800}.sd .metric strong{font-size:32px;display:block;color:var(--fg-082b4b);margin:10px 0 3px}.sd .metric small{color:var(--fg-647686);font-size:10px}.sd .panels{display:grid;grid-template-columns:minmax(285px,.9fr) minmax(350px,1.3fr);gap:18px}.sd .sectiontop{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}.sd .sectiontop h2{font-size:19px;margin:7px 0 0}.sd .pill{border-radius:999px;background:var(--bg-ecf7ff);color:var(--fg-0471ac);font-size:10px;font-weight:900;padding:7px 12px}.sd .create form,.sd .actions form{display:grid;gap:13px}.sd .create label,.sd .actions strong{font-size:12px;font-weight:850;color:var(--fg-34536c)}.sd .create label{display:grid;gap:6px}.sd .two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sd input,.sd textarea,.sd select{background:var(--bg-fbfdff);border:1px solid var(--bd-d4e1ed);border-radius:9px;padding:10px 12px;outline:none;color:var(--fg-173b54);font-size:12px;width:100%}.sd textarea{resize:vertical;min-height:65px}.sd input:focus,.sd textarea:focus,.sd select:focus{border-color:#36a8e8;box-shadow:0 0 0 3px var(--sh-d9f1ff)}.sd .create .button{justify-self:start}.sd .status-text{font-size:11px;color:var(--fg-5a7790);line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.sd .filters{display:flex;gap:10px;margin-bottom:10px}.sd .filters select{max-width:200px}.sd .scroll{overflow-x:auto}.sd table{width:100%;border-collapse:collapse;font-size:12px}.sd thead{background:var(--bg-f1f6fb)}.sd th{text-align:left;color:var(--fg-51728c);letter-spacing:1px;font-size:9px;text-transform:uppercase;padding:13px}.sd td{border-top:1px solid var(--bd-ecf1f5);padding:13px;color:var(--fg-385770);vertical-align:middle;overflow-wrap:anywhere}.sd .placeholder{text-align:center;color:var(--fg-627689);padding:26px}.sd .ticket-id{font-weight:900;color:var(--fg-075c9e)}.sd .ticket-title{max-width:210px}.sd .state{border-radius:999px;padding:6px 9px;font-size:10px;font-weight:850;display:inline-block;background:var(--bg-eaf3fb);color:var(--fg-386787)}.sd .state.NEW,.sd .state.WAITING_USER,.sd .state.AWAITING_APPROVAL{background:var(--bg-fff3df);color:var(--fg-845b19)}.sd .state.IN_PROGRESS,.sd .state.OPEN,.sd .state.VERIFYING{background:var(--bg-e6f5ff);color:var(--fg-146ca0)}.sd .state.ESCALATED{background:var(--bg-ffeced);color:var(--fg-a03143)}.sd .state.RESOLVED,.sd .state.CLOSED{background:var(--bg-e9f7ec);color:var(--fg-147d53)}.sd .list>#moreTickets{margin-top:15px}.sd .detail{margin-top:18px}.sd .detail[hidden]{display:none}.sd .detail-grid{display:grid;grid-template-columns:1fr 350px;gap:22px}.sd .detail-grid h3{font-size:14px;margin:20px 0 10px}.sd .surface{padding:18px;background:var(--bg-f3f8fd);border-radius:10px;line-height:1.65;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.sd .timeline{display:grid;gap:10px;max-height:460px;overflow:auto}.sd .timeline-item{border-left:3px solid #44b5e8;padding:10px 15px;background:var(--bg-f5f9fc);border-radius:7px}.sd .timeline-item strong{font-size:11px;display:block}.sd .timeline-item small{font-size:10px;color:var(--muted)}.sd .timeline-item p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.sd .actions{border-left:1px solid var(--line);padding-left:20px}.sd .actions form{border-bottom:1px solid var(--bd-e6eef5);padding:14px 0}.sd .actions .button{justify-self:start}.sd .safety{padding:11px;background:var(--bg-fff6e8);color:var(--fg-925c20);border-radius:8px;font-size:11px;line-height:1.6}.sd .muted{font-size:12px;color:var(--muted);line-height:1.6}.sd .small{font-size:10px}.sd .foot{margin-top:18px}.sd .foot h2{font-size:17px}.sd .foot p{font-size:12px;color:var(--muted)}.sd .foot ul{padding-left:20px;font-size:12px;line-height:1.8}.sd .sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}.sd [hidden]{display:none!important}.sd :focus-visible{outline:2px solid #1399e2;outline-offset:2px}@media(max-width:1250px){.sd .panels{grid-template-columns:1fr}.sd .detail-grid{grid-template-columns:1fr}.sd .actions{border-left:0;border-top:1px solid var(--line);padding-left:0}}@media(max-width:900px){.sd main{padding:20px}.sd .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.sd .metrics{gap:9px}.sd .metric{padding:15px}.sd .two{grid-template-columns:1fr}.sd .box{padding:17px}.sd .filters{flex-direction:column}}.sd .box{min-width:0}.sd .scroll{max-width:100%;overflow-x:auto}.sd table{min-width:580px}.sd td,.sd th{overflow-wrap:normal;word-break:normal}.sd .detailMeta,.sd .surface,.sd .timeline-item{overflow-wrap:anywhere}.sd [hidden]{display:none!important}@media(max-width:560px){.sd .sectiontop{flex-wrap:wrap}.sd .detail h2{overflow-wrap:anywhere}}.sd .overdue{color:var(--fg-9b1c28);font-weight:800}.sd .external-links{font-size:12px;color:var(--fg-48647c);margin-top:12px}
.connected-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.connected-bar span{font-weight:600}.admin-group{border:1px solid var(--line,#dce6f0);border-radius:14px;margin:14px 0;background:var(--bg-ffffff99)}.admin-group>summary{cursor:pointer;padding:16px 20px;font-weight:700;font-size:15px;list-style-position:inside}.admin-group>summary small{font-weight:400;opacity:.7;margin-left:8px}.admin-group>.admin-grid{padding:0 14px 14px}.connect-panel.signed-in .connect-intro,.connect-panel.signed-in .connect-controls{display:none}

/* ===== Operations console theme (light, restrained): overrides the earlier dark rail and adds new screen components ===== */
:root{--bg:#f6f8fb;--surface:#fff;--line:#e3e9f0;--text:#1b2b3d;--muted:#607284;--blue:#196acc;--blue-soft:#eaf2fd;--teal:#0f9b9b;
  --ok:#007e48;--ok-soft:#e7f6ee;--warn:#9e5f0f;--warn-soft:#fff4e0;--bad:#c2303b;--bad-soft:#fdecee;--info:#196acc;--info-soft:#eaf2fd;--off:#8a96a3;--off-soft:#eef1f4;background:var(--bg)}
body{background:var(--bg)}
.layout{grid-template-columns:248px minmax(0,1fr)}
.rail{background:var(--bg-ffffff);color:var(--text);border-right:1px solid var(--line);padding:20px 12px;gap:18px}
.brand b{color:var(--text)}.brand small{color:var(--muted)}.rail-section{color:var(--fg-687583)}
.rail nav{gap:2px;overflow-y:auto}.rail-card,.rail-footer{display:none}
.nav{color:var(--fg-34465a);font-size:13.5px;font-weight:550;padding:10px 12px;border-radius:9px}
.nav .navicon{font-size:16px;color:var(--fg-6d7f92)}.nav:hover{background:var(--bg-f1f5fa);color:var(--text)}
.nav.active{background:var(--blue-soft);color:var(--blue);box-shadow:none}.nav.active .navicon{color:var(--blue)}
.topbar{min-height:64px;gap:14px;flex-wrap:wrap;padding:10px clamp(16px,3vw,32px)}
.breadcrumb{font-size:12px;letter-spacing:0;color:var(--muted);font-weight:500;white-space:nowrap}.breadcrumb b{color:var(--text);text-transform:none}
.top-search{position:relative;flex:1;max-width:460px;min-width:200px}
.top-search input{width:100%;border:1px solid var(--line);border-radius:9px;padding:9px 64px 9px 12px;font-size:13px;background:var(--bg-f8fafc)}
.top-search kbd{position:absolute;right:9px;top:8px;font:11px ui-monospace,Consolas,monospace;color:var(--muted);border:1px solid var(--line);border-radius:5px;padding:2px 5px;background:var(--bg-ffffff)}
.search-results{position:absolute;left:0;right:0;top:44px;background:var(--bg-ffffff);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 30px var(--sh-1b2b3d1f);z-index:60;max-height:420px;overflow:auto;padding:6px}
.sr-group{font-size:10px;font-weight:800;letter-spacing:1px;color:var(--muted);padding:8px 10px 4px;text-transform:uppercase}
.sr-item{display:block;width:100%;text-align:left;border:0;background:none;padding:8px 10px;border-radius:7px;font-size:13px;color:var(--text)}.sr-item:hover,.sr-item:focus{background:var(--blue-soft)}
.sr-empty{padding:12px;color:var(--muted);font-size:13px}
.top-right{gap:10px;flex-wrap:wrap}.top-right select{border:1px solid var(--line);border-radius:9px;padding:8px 10px;font-size:12.5px;background:var(--bg-ffffff);color:var(--text)}
.icon-button{border:1px solid var(--line);background:var(--bg-ffffff);border-radius:9px;width:36px;height:36px;position:relative;font-size:15px;color:var(--fg-34465a)}
#bellCount{position:absolute;top:-5px;right:-5px;background:var(--bad);color:#fff;font-size:10px;border-radius:9px;padding:1px 5px;font-weight:700}
.conn{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);white-space:nowrap}.conn-dot{width:8px;height:8px;border-radius:50%;background:var(--off)}.conn.on .conn-dot{background:var(--ok);box-shadow:0 0 0 3px var(--ok-soft)}
.avatar{width:34px;height:34px;border-radius:50%;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-size:12px;font-weight:800}
.menu-toggle{display:none}
main{max-width:1560px;padding:20px clamp(16px,3vw,32px) 32px}
.connect-panel{margin:0 0 18px;border-radius:12px;box-shadow:none;padding:16px 18px}.connect-panel.signed-in{padding:10px 16px}
.page-head{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:4px 0 16px}.page-head h1{font-size:24px;letter-spacing:-.4px;margin:0}.page-head p{margin:4px 0 0;color:var(--muted);font-size:13.5px}
.ops-root{display:grid;gap:16px;min-width:0}.slot{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(460px,100%),1fr));gap:16px;margin-top:16px}.slot:empty{display:none}
.ocard,.panel,.sd .box{background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:none}
.ocard{padding:18px 20px;min-width:0}.ocard-head{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:12px}.ocard h3{margin:0;font-size:16px}.ocard-head p{margin:3px 0 0;font-size:12.5px}
.kpi-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.kpi{display:flex;gap:12px;align-items:center;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:14px 16px;color:var(--text)}
button.kpi:hover{border-color:var(--bd-bcd2ee);background:var(--bg-fbfdff)}
.kpi-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:var(--blue-soft);color:var(--blue);font-size:17px;flex:none}
.kpi.ok .kpi-icon{background:var(--ok-soft);color:var(--ok)}.kpi.warn .kpi-icon{background:var(--warn-soft);color:var(--warn)}.kpi.bad .kpi-icon{background:var(--bad-soft);color:var(--bad)}
.kpi-label{display:block;font-size:12px;color:var(--muted)}.kpi strong{font-size:24px;letter-spacing:-.5px}
.kpi-row.small .kpi{padding:12px 14px}.kpi-row.small strong{font-size:20px}
.kpi.ok{border-left:3px solid var(--ok)}.kpi.warn{border-left:3px solid var(--warn)}.kpi.bad{border-left:3px solid var(--bad)}.kpi.info{border-left:3px solid var(--info)}
.kpi-note{grid-column:1/-1;margin:0;font-size:11.5px;color:var(--muted)}
.ov-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:16px}.ov-col{display:grid;gap:16px;align-content:start;min-width:0}
.fleet-body{display:grid;grid-template-columns:150px minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}
.donut{width:150px;height:150px}.donut-bg{fill:none;stroke:var(--bd-eef2f6);stroke-width:14}.donut-seg{fill:none;stroke-width:14;transform:rotate(-90deg);transform-origin:60px 60px}
.donut-seg.ok{stroke:var(--ok)}.donut-seg.warn{stroke:#e0a020}.donut-seg.bad{stroke:var(--bad)}.donut-seg.off{stroke:var(--bd-a9b4bf)}.donut-seg.unk{stroke:var(--bd-d5dde5)}
.donut-num{font-size:24px;font-weight:800;text-anchor:middle;fill:var(--text)}.donut-lbl{font-size:10px;text-anchor:middle;fill:var(--muted)}
.dist h4,.pressure h4{margin:0 0 8px;font-size:12.5px;color:var(--muted);font-weight:700}
.dist-row{display:grid;grid-template-columns:12px 1fr auto;gap:8px;align-items:center;width:100%;border:0;background:none;padding:6px 4px;border-radius:6px;font-size:13px;color:var(--text);text-align:left}.dist-row:hover{background:var(--bg-f4f7fb)}
.sw{width:10px;height:10px;border-radius:3px;background:var(--bg-c7d3df);display:inline-block}.sw.ok{background:var(--ok)}.sw.warn{background:#e0a020}.sw.bad{background:var(--bad)}.sw.off{background:var(--bg-a9b4bf)}.sw.unk{background:var(--bg-d5dde5)}.sw.info{background:var(--info)}
.pressure{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border-top:1px solid var(--line);margin-top:14px;padding-top:12px}.pressure h4{width:100%}
.pchip{border:1px solid var(--line);background:var(--bg-ffffff);border-radius:999px;padding:5px 11px;font-size:12px;color:var(--fg-34465a);display:inline-flex;gap:7px;align-items:center}.pchip b{font-weight:800}.pchip.hot{border-color:#f0c88a;background:var(--warn-soft);color:var(--warn)}
.otable{border-collapse:collapse;width:100%;font-size:12.5px}.otable thead{background:var(--bg-f7f9fb)}.otable th{font-size:11px;letter-spacing:.3px;text-transform:none;color:var(--muted);font-weight:700;padding:10px 12px;text-align:left;white-space:nowrap}
.otable td{padding:10px 12px;border-top:1px solid var(--bd-edf1f5);color:var(--text);vertical-align:middle}.otable tr.clickable{cursor:pointer}.otable tr.clickable:hover{background:var(--bg-f6f9fd)}.otable tr.clickable:focus{outline:2px solid #9cc3f5;outline-offset:-2px}
.meter{display:grid;gap:3px;min-width:70px}.meter-val{font-size:12px}.meter-bar{height:5px;background:var(--bg-edf1f5);border-radius:3px;overflow:hidden}.meter-fill{display:block;height:100%}.meter-fill.ok{background:var(--ok)}.meter-fill.warn{background:#e0a020}.meter-fill.bad{background:var(--bad)}
.chip{display:inline-block;border-radius:999px;padding:3px 9px;font-size:11.5px;font-weight:700;background:var(--off-soft);color:var(--fg-4d5b69);white-space:nowrap}
.chip.ok,.chip.st-healthy{background:var(--ok-soft);color:var(--ok)}.chip.warn,.chip.st-warning{background:var(--warn-soft);color:var(--warn)}.chip.bad,.chip.st-critical{background:var(--bad-soft);color:var(--bad)}
.chip.info{background:var(--info-soft);color:var(--info)}.chip.st-offline,.chip.muted,.chip.off,.chip.st-unknown,.chip.st-revoked{background:var(--off-soft);color:var(--fg-5d6b78)}
.chip.sev-critical{background:var(--bad-soft);color:var(--bad)}.chip.sev-high{background:var(--bg-fdeee3);color:var(--fg-b24d0c)}.chip.sev-medium{background:var(--warn-soft);color:var(--warn)}.chip.sev-low{background:var(--off-soft);color:var(--fg-5d6b78)}
.chip.risk-r1{background:var(--ok-soft);color:var(--ok)}.chip.risk-r2{background:var(--info-soft);color:var(--info)}.chip.risk-r3{background:var(--warn-soft);color:var(--warn)}.chip.risk-r4{background:var(--bad-soft);color:var(--bad)}
.ao-list{display:grid;gap:2px}.ao-row{display:grid;grid-template-columns:12px 1fr auto;gap:10px;align-items:center;padding:8px 2px;border-top:1px solid var(--bd-f0f3f6);font-size:13px}.ao-row:first-child{border-top:0}
.sev-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.inc-list{display:grid}.inc{display:grid;grid-template-columns:10px minmax(0,1fr) auto auto;gap:10px;align-items:center;border:0;border-top:1px solid var(--bd-f0f3f6);background:none;padding:10px 2px;text-align:left;color:var(--text)}.inc:hover{background:var(--bg-f7fafd)}
.inc b{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inc small{display:block;color:var(--muted);font-size:11.5px;margin-top:2px}
.sevdot{width:8px;height:8px;border-radius:50%;background:var(--bg-a9b4bf)}.sevdot.crit{background:var(--bad)}.sevdot.high{background:#e0701b}.sevdot.med{background:#e0a020}
.act{border-top:1px solid var(--line);padding:14px 0}.act:first-of-type{border-top:0}.act-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}.act-head small{display:block}
.lifecycle{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:relative}
.lifecycle li{display:grid;justify-items:center;text-align:center;gap:3px;position:relative;font-size:12px;padding:0 4px}
.lifecycle li::before{content:"";position:absolute;top:11px;left:-50%;width:100%;height:2px;background:var(--bg-dbe3eb);z-index:0}.lifecycle li:first-child::before{display:none}
.lifecycle li.done::before{background:var(--ok)}.lifecycle .dot{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800;color:#fff;background:var(--bg-d5dde5);z-index:1}
.lifecycle li.done .dot{background:var(--ok)}.lifecycle li.bad .dot{background:var(--bad)}.lifecycle li.warn .dot{background:#e0a020}.lifecycle small{color:var(--muted)}
.filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.filters input,.filters select{border:1px solid var(--line);border-radius:9px;padding:8px 10px;font-size:13px;background:var(--bg-ffffff)}.filters input[type=search]{min-width:220px;flex:1;max-width:340px}
.pager{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:8px}.footnote{font-size:11.5px;color:var(--muted);margin:6px 0 0;line-height:1.6}
.notice{background:var(--info-soft);border:1px solid var(--bd-cfe0f7);color:var(--fg-24496f);border-radius:10px;padding:10px 14px;font-size:13px;margin:0}
.skill-grid,.int-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.skill,.int{background:var(--bg-ffffff);border:1px solid var(--line);border-radius:12px;padding:14px 16px;display:grid;gap:8px;align-content:start}
.skill-head{display:flex;justify-content:space-between;gap:8px;align-items:start}.skill-meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.skill details summary{cursor:pointer;font-size:12.5px;color:var(--blue);font-weight:700}.skill-detail{margin-top:8px}.int p{margin:0;font-size:12.5px}
.levels{display:grid;gap:6px}.level{display:grid;grid-template-columns:40px 1fr;gap:10px;font-size:13px;padding:6px 0;border-top:1px solid var(--bd-f0f3f6)}.level b{color:var(--blue)}.level.off{color:var(--muted)}.level.off b{color:var(--muted)}
.wizard{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.wizard li{background:var(--bg-ffffff);border:1px solid var(--line);border-radius:12px;padding:14px;display:grid;gap:5px}.wizard small{color:var(--muted);font-size:12.5px;line-height:1.5}
.wstep{width:26px;height:26px;border-radius:50%;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-weight:800;font-size:13px}
.detail-panel{position:fixed;top:0;right:0;bottom:0;width:min(760px,100%);margin:0;border-radius:0;border:0;border-left:1px solid var(--line);overflow:auto;z-index:40;box-shadow:-12px 0 32px var(--sh-1b2b3d1c);padding:20px 24px}
.assistant{position:fixed;top:0;right:0;bottom:0;width:min(440px,100%);background:var(--bg-ffffff);border-left:1px solid var(--line);box-shadow:-12px 0 32px var(--sh-1b2b3d24);z-index:55;display:grid;grid-template-rows:auto auto 1fr auto}
.assistant[hidden]{display:none}.assistant-head{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:16px 18px;border-bottom:1px solid var(--line)}.assistant-head small{grid-column:1}.assistant-head .icon-button{grid-row:1/3;grid-column:2}
.assistant-sugg{display:flex;flex-wrap:wrap;gap:6px;padding:12px 16px;border-bottom:1px solid var(--line)}
.assistant-log{overflow:auto;padding:14px 16px;display:grid;gap:10px;align-content:start}
.msg{border-radius:10px;padding:10px 12px;font-size:13px;line-height:1.5}.msg.q{background:var(--blue-soft);justify-self:end;max-width:85%}.msg.a{background:var(--bg-f6f8fb);border:1px solid var(--line)}
.msg p{margin:0 0 6px}.msg .res{margin:6px 0;padding-left:18px}.msg .evidence{display:block;color:var(--muted);margin-top:6px;font-size:11.5px}
.assistant-form{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px 16px;border-top:1px solid var(--line)}.assistant-form textarea{border:1px solid var(--line);border-radius:9px;padding:9px;font:inherit;font-size:13px;resize:none}
.sd main{padding:0}.sd .box{padding:18px 20px}
@media(max-width:1200px){.ov-grid{grid-template-columns:1fr}.fleet-body{grid-template-columns:150px 1fr}.fleet-body .dist:last-child{grid-column:1/-1}}
@media(max-width:900px){
  .layout{grid-template-columns:minmax(0,1fr)}
  .rail{position:fixed;inset:0 auto 0 0;width:260px;height:100vh;transform:translateX(-105%);transition:transform .2s;z-index:70;box-shadow:12px 0 30px var(--sh-1b2b3d30)}
  .rail.open{transform:none}.rail nav{display:grid;overflow-y:auto}.nav{width:100%;font-size:14px;padding:11px 12px}.rail nav .navicon{display:inline-block}
  .menu-toggle{display:inline-block;border:1px solid var(--line);background:var(--bg-ffffff);border-radius:9px;padding:8px 12px;font-size:13px;font-weight:700;color:var(--text)}
  .top-search{order:5;flex-basis:100%;max-width:none}.top-right{gap:8px}.conn #connText{display:none}
  .lifecycle{grid-template-columns:repeat(5,minmax(56px,1fr));overflow-x:auto}
}
@media(max-width:560px){
  .breadcrumb{display:none}.top-right select{max-width:46vw}.kpi-row{grid-template-columns:1fr 1fr}.kpi{padding:10px 12px}.kpi-icon{display:none}.kpi strong{font-size:20px}
  .fleet-body{grid-template-columns:1fr;justify-items:start}.inc{grid-template-columns:10px minmax(0,1fr) auto}.inc>small{display:none}
  .lifecycle small{display:none}.lifecycle b{font-size:10.5px}.filters input[type=search]{min-width:0;max-width:none;flex-basis:100%}.filters select{flex:1}
}
@media(min-width:1201px){.kpi-row:not(.small){grid-template-columns:repeat(7,minmax(0,1fr))}.kpi-row:not(.small) .kpi{padding:12px}.kpi-row:not(.small) .kpi-icon{width:32px;height:32px;font-size:15px}.kpi-row:not(.small) strong{font-size:22px}}
.breadcrumb span{margin:0 6px}.connect-panel.signed-in{background:transparent;border:0;padding:0 2px;margin:-6px 0 10px}.connect-panel.signed-in #connectionStatus{display:none}.connected-bar span{font-weight:500;font-size:12.5px;color:var(--muted)}.connected-bar .button{padding:5px 10px;font-size:11.5px}
.otable td{word-break:normal;overflow-wrap:normal;white-space:nowrap}.otable td:first-child b{font-weight:700;color:var(--blue)}
@media(max-width:900px){.topbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.top-right{flex-direction:row!important;align-items:center!important;gap:6px;margin-left:auto}.top-right .conn,.top-right #refresh{display:none}.top-right .avatar{width:30px;height:30px}}
@media(max-width:560px){.top-right select{max-width:120px;padding:6px}.top-right #askOpen{padding:6px 9px}}
.rail [data-view][hidden],.top-right [hidden]{display:none!important}
.kpi-trend{display:block;font-size:11px;margin-top:2px;color:var(--muted)}.kpi-trend.up-good{color:var(--ok)}.kpi-trend.up-bad{color:var(--bad)}
.device-extra{display:grid;gap:16px;margin-top:14px}.perf-chart{width:100%;height:auto;display:block}.perf-chart .grid{stroke:var(--bd-edf1f5)}.perf-chart .axis{font-size:10px;fill:var(--muted)}.perf-chart .line{fill:none;stroke-width:2}
.s-cpu{stroke:var(--bd-196acc);color:var(--fg-196acc)}.s-mem{stroke:#0f9b9b;color:var(--fg-0f9b9b)}.s-disk{stroke:var(--bd-c2303b);color:var(--fg-c2303b)}.s-swap{stroke:var(--bd-9e5f0f);color:var(--fg-9e5f0f)}.s-wifi{stroke:var(--bd-6b4fd1);color:var(--fg-6b4fd1)}.s-bat{stroke:var(--bd-007e48);color:var(--fg-007e48)}
.legend .lg{font-size:12px;font-weight:700}.legend .lg::before{content:"";display:inline-block;width:12px;height:3px;background:currentColor;margin-right:5px;vertical-align:middle}

/* Dependency map */
.kind-bar{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.kind-bar input{margin:0}
.map-body{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:14px;align-items:start}
.map-wrap{overflow:auto;max-height:620px;border:1px solid var(--line);border-radius:10px;background:var(--bg-fbfcfe)}
.map-side{border:1px solid var(--line);border-radius:10px;padding:12px 14px;display:grid;gap:8px;align-content:start;max-height:620px;overflow:auto}
.map-side h4{margin:0;font-size:15px}.map-side .res{margin:0;padding-left:18px;font-size:12.5px}
.dep-map{display:block}.dep-map .col-title{font-size:11px;font-weight:700;fill:var(--muted);letter-spacing:.3px}
.dep-map .box rect{fill:var(--bg-ffffff);stroke:var(--bd-c9d6e3);stroke-width:1.2}.dep-map .box text{font-size:12px;fill:var(--text);pointer-events:none}
.dep-map .box{cursor:pointer}.dep-map .box:hover rect,.dep-map .box:focus rect{stroke:var(--blue)}.dep-map .box:focus{outline:none}
.dep-map .box.crit-high rect{stroke:#e0a020;stroke-width:2}.dep-map .box.crit-critical rect{stroke:var(--bad);stroke-width:2}
.dep-map .box.selected rect{fill:var(--blue-soft);stroke:var(--blue);stroke-width:2.2}.dep-map .box.impacted rect{fill:var(--bad-soft);stroke:var(--bad);stroke-width:2.2}
.dep-map .box.stale rect{stroke-dasharray:4 3}.dep-map .dim{opacity:.28}
.dep-map .edge{fill:none;stroke:var(--bd-9fb3c8);stroke-width:1.5}.dep-map .edge.observed{stroke-dasharray:5 4}.dep-map .edge.stale{opacity:.45}
.dep-map .edge.rel-depends_on,.dep-map .edge.rel-runs_on{stroke:var(--bd-196acc)}.dep-map .edge.rel-assigned_to,.dep-map .edge.rel-member_of{stroke:#0f9b9b}
.dep-map .edge.hot{stroke-width:2.6;opacity:1}
/* Onboarding wizard */
.wizard-card h3{margin:0 0 12px}
.wiz-steps{list-style:none;margin:0 0 16px;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.wiz-steps li{display:flex;gap:8px;align-items:center;font-size:12.5px;color:var(--muted)}.wiz-steps li.now{color:var(--text);font-weight:700}
.wiz-steps li.done .wstep{background:var(--ok);color:#fff}.wiz-steps li.now .wstep{background:var(--blue);color:#fff}
.wiz-body{display:grid;gap:12px;max-width:820px}
.wiz-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.wiz-choice{display:grid;gap:6px;text-align:left;border:1.5px solid var(--line);background:var(--bg-ffffff);border-radius:12px;padding:16px;color:var(--text)}
.wiz-choice:hover{border-color:var(--blue)}.wiz-choice.on{border-color:var(--blue);background:var(--blue-soft)}.wiz-choice b{font-size:15px}.wiz-choice small{color:var(--muted);line-height:1.5}
.wiz-field{display:grid;gap:5px;font-size:13px;font-weight:600}.wiz-field input,.wiz-field select,.wiz-body textarea{border:1px solid var(--line);border-radius:9px;padding:9px 11px;font:inherit;font-size:13px;font-weight:400;max-width:480px}
.wiz-field small{font-weight:400}.wiz-check{font-size:13px;display:flex;gap:8px;align-items:center}
.wiz-nav{display:flex;gap:10px;margin-top:4px}.wiz-err{color:var(--bad);font-size:13px;margin:0;min-height:1em}
.cmd-box{border:1px solid var(--line);border-radius:10px;padding:12px 14px;display:grid;gap:8px;background:var(--bg-fbfcfe)}
.cmd-box pre{margin:0;white-space:pre-wrap;word-break:break-all;font:12px/1.5 ui-monospace,Consolas,monospace;background:#0f2238;color:#dbe9f7;padding:12px;border-radius:8px;max-height:200px;overflow:auto}
.cmd-box .button{justify-self:start}
.wiz-live{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.wiz-live li{display:grid;grid-template-columns:24px 1fr;gap:2px 10px;align-items:center;font-size:13px}.wiz-live li small{grid-column:2}
.wiz-live .dot{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--bg-e3e9f0);color:#fff;font-weight:800;font-size:12px}
.wiz-live li.wait .dot{background:var(--bg-e3e9f0);animation:pulse 1.4s infinite}.wiz-live li.done .dot{background:var(--ok)}.wiz-live li.bad .dot{background:var(--bad)}
@keyframes pulse{50%{background:var(--bg-bcd2ee)}}@media(prefers-reduced-motion:reduce){.wiz-live li.wait .dot{animation:none}}
.wiz-done{display:flex;gap:12px;align-items:center}
@media(max-width:900px){.map-body{grid-template-columns:1fr}.wiz-steps{grid-template-columns:1fr 1fr}}
.map-wrap,.map-side{min-width:0}#depMap{min-width:0;max-width:100%}
.connected-bar[hidden]{display:none}.lab-login-wrap{display:grid;gap:6px}.lab-login-wrap details summary{cursor:pointer;font-size:11px;color:var(--muted)}.lab-login-wrap details .connect-controls{margin-top:6px}.connect-panel.signed-in .lab-login-wrap{display:none}

.inline-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
/* DevHeal Labs sign-in (account.js) */
.account-box{display:grid;gap:10px;min-width:0}.account-box[hidden],.connect-panel.signed-in .account-box,.connect-panel.signed-in .account-token{display:none}.account-title{font-size:14px}.account-form{display:grid;gap:9px}.account-field{display:grid;gap:4px;font-size:11.5px;font-weight:700;color:var(--fg-48647c)}.account-field input{background:var(--bg-ffffff);border:1px solid var(--bd-ccdae7);border-radius:9px;padding:10px 12px;color:var(--text);font-size:13px;font-weight:400}.account-check{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--muted)}.account-links{display:flex;gap:14px;flex-wrap:wrap}.button.google{background:var(--bg-ffffff);color:var(--fg-1f3b57);border-color:var(--bd-ccdae7)}.account-secret,.account-uri{display:block;background:var(--bg-f3f7fc);border:1px solid var(--bd-e0eaf3);border-radius:8px;padding:8px 10px;font:12px/1.5 ui-monospace,Consolas,monospace;overflow-wrap:anywhere}.account-secret{font-size:15px;letter-spacing:1px}.account-codes{columns:2;font:12.5px/1.8 ui-monospace,Consolas,monospace;margin:0;padding-left:22px}.account-token summary{cursor:pointer;font-size:11px;color:var(--muted)}.account-token .connect-controls{margin-top:6px}.account-company select{border:1px solid var(--bd-ccdae7);border-radius:8px;padding:4px 8px;font-size:12px}

/* ===== Dark theme: system preference unless the user picked Light; or picked Dark (theme.js) ===== */
:root[data-theme="light"]{color-scheme:light}
@media (prefers-color-scheme:dark){
:root:not([data-theme="light"]){color-scheme:dark;--bd-007e48:#6bce92;--bd-196acc:#81b5fd;--bd-274260:#b1d1f6;--bd-6b4fd1:#b0a7fe;--bd-9e5f0f:#e5a15c;--bd-9fb3c8:#5b7289;--bd-a9b4bf:#636f7b;--bd-bcd2ee:#40556f;--bd-c2303b:#fc8d8a;--bd-c9d6e3:#44515e;--bd-c9dfef:#364d5d;--bd-ccdae7:#404e5b;--bd-cde1f4:#364a5c;--bd-cfe0f7:#38485f;--bd-cfe1f3:#37495b;--bd-d4e1ed:#3b4854;--bd-d5dde5:#424a52;--bd-dce8f3:#37424d;--bd-e0eaf3:#374049;--bd-e6eef5:#353d43;--bd-e7eef5:#363c43;--bd-ebf0f6:#353a41;--bd-ecf1f5:#343a41;--bd-edf1f5:#343940;--bd-edf1f6:#343940;--bd-eef2f6:#333940;--bd-f0f3f6:#32383f;--bg-a9b4bf:#5d6b79;--bg-bcd2ee:#314a68;--bg-c7d3df:#3a4856;--bg-d5dde5:#333c45;--bg-dbe3eb:#2d363f;--bg-e3e9f0:#292f37;--bg-e5f3ff:#192835;--bg-e5f7ee:#162a22;--bg-e6f3ff:#1a2834;--bg-e6f5ff:#172732;--bg-e9f7ec:#1a291e;--bg-eaf3fb:#1e272f;--bg-ecf2f8:#21272e;--bg-ecf7ff:#19242c;--bg-edf1f5:#21272f;--bg-eef4fa:#1f252d;--bg-eef4fb:#1f252c;--bg-f1f5fa:#1e242b;--bg-f1f6fb:#1d232a;--bg-f1f8ff:#1b2129;--bg-f3f7fc:#1c2229;--bg-f3f8fc:#1b2129;--bg-f3f8fd:#1b2129;--bg-f4f7fb:#1c2229;--bg-f5f9fc:#1a2028;--bg-f6f8fb:#1b2028;--bg-f6f9fd:#1a2027;--bg-f7f9fb:#1a2027;--bg-f7fafd:#191f26;--bg-f7fbff:#181e26;--bg-f8fafc:#191f26;--bg-fbfcfe:#171d24;--bg-fbfdff:#161c23;--bg-fde8ea:#382325;--bg-fdeee3:#322317;--bg-ffeced:#332022;--bg-fff3dd:#2e2107;--bg-fff3df:#2d210a;--bg-fff6e8:#281f10;--bg-ffffff:#141a21;--bg-ffffff0b:#141a210b;--bg-ffffff99:#141a2199;--fg-007e48:#6bce92;--fg-0471ac:#66bdfd;--fg-067da8:#5cbbe9;--fg-068368:#63c7a9;--fg-075c9e:#90c6fc;--fg-082b4b:#d4e8fe;--fg-0878b6:#5db9fb;--fg-0a71cb:#76b5fb;--fg-0b5e9a:#8dc6fc;--fg-0f9b9b:#3cb5b5;--fg-107253:#7bd0ac;--fg-11395f:#c0deff;--fg-11674e:#88d5b7;--fg-133c60:#bcddfe;--fg-146ca0:#72c1fa;--fg-147d53:#6fcb9d;--fg-17395c:#c1deff;--fg-173b54:#bbe0fd;--fg-19618c:#84c8f9;--fg-196acc:#81b5fd;--fg-1f3b57:#beddfe;--fg-2386d5:#4fabfd;--fg-24496f:#acd3fd;--fg-244b70:#a7d2fe;--fg-264a6c:#aad3fb;--fg-34465a:#bdd3eb;--fg-34526b:#abcdeb;--fg-34536c:#aacdea;--fg-385770:#a7cae7;--fg-386787:#90c2e5;--fg-42647f:#9cc1e0;--fg-48647c:#a1c0db;--fg-4d5b69:#b3c3d3;--fg-51728c:#94b7d4;--fg-526782:#a3bad9;--fg-546a7f:#a2bad1;--fg-556e87:#9cb8d3;--fg-55718d:#98b6d4;--fg-5a7790:#94b3ce;--fg-5b7790:#95b2cd;--fg-5b7892:#93b2ce;--fg-5d6b78:#a8b8c6;--fg-5f788d:#97b1c8;--fg-617789:#9ab2c5;--fg-62758c:#9cb1ca;--fg-627689:#9cb1c6;--fg-63778c:#9bb0c7;--fg-647686:#9eb1c2;--fg-648eaf:#7ba6c8;--fg-657786:#9db1c1;--fg-687583:#a2b0bf;--fg-688bab:#82a6c7;--fg-6b4fd1:#b0a7fe;--fg-6d7f92:#98abbf;--fg-845b19:#deb072;--fg-8d5c18:#e1ab6c;--fg-925c20:#e3a76e;--fg-9b1c28:#fdaba7;--fg-9e5f0f:#e5a15c;--fg-a03143:#fba0a6;--fg-b24d0c:#fd905b;--fg-c2303b:#fc8d8a;--sh-020d2177:#00000099;--sh-0c345c09:#00000028;--sh-1b2b3d1c:#00000061;--sh-1b2b3d1f:#0000006a;--sh-1b2b3d24:#00000079;--sh-1b2b3d30:#00000099;--sh-1b436008:#00000025;--sh-d9f1ff:#273f4d;--paper:#0e1217;--subtle:#1f262e;--white:#141a21;--green:#5cc58b;--amber:#e3a24f;--bg:#0e1217;--surface:#141a21;--line:#2a333e;--text:#e2e8ef;--muted:#9eacbc;--blue:#6aa5f8;--blue-soft:#182a42;--teal:#3cb5b5;--ok:#5cc58b;--ok-soft:#12291e;--warn:#e3a24f;--warn-soft:#2c2110;--bad:#f08a8a;--bad-soft:#351c1f;--info:#6aa5f8;--info-soft:#182a42;--off:#7b8794;--off-soft:#232b34;--bright:#4fb3f8;--cyan:#3cc4dc}
:root:not([data-theme="light"]) .sd{--blue:#6aa5f8;--paper:#0e1217;--line:#2a333e;--ink:#dbe6f0;--muted:#9eacbc;--white:#141a21}
:root:not([data-theme="light"]) .wiz-steps li.done .wstep,:root:not([data-theme="light"]) .wiz-steps li.now .wstep,:root:not([data-theme="light"]) #bellCount,:root:not([data-theme="light"]) .lifecycle li.done .dot,:root:not([data-theme="light"]) .lifecycle li.bad .dot,:root:not([data-theme="light"]) .lifecycle li.warn .dot,:root:not([data-theme="light"]) .wiz-live li.done .dot,:root:not([data-theme="light"]) .wiz-live li.bad .dot{color:#0e1217}
}
:root[data-theme="dark"]{color-scheme:dark;--bd-007e48:#6bce92;--bd-196acc:#81b5fd;--bd-274260:#b1d1f6;--bd-6b4fd1:#b0a7fe;--bd-9e5f0f:#e5a15c;--bd-9fb3c8:#5b7289;--bd-a9b4bf:#636f7b;--bd-bcd2ee:#40556f;--bd-c2303b:#fc8d8a;--bd-c9d6e3:#44515e;--bd-c9dfef:#364d5d;--bd-ccdae7:#404e5b;--bd-cde1f4:#364a5c;--bd-cfe0f7:#38485f;--bd-cfe1f3:#37495b;--bd-d4e1ed:#3b4854;--bd-d5dde5:#424a52;--bd-dce8f3:#37424d;--bd-e0eaf3:#374049;--bd-e6eef5:#353d43;--bd-e7eef5:#363c43;--bd-ebf0f6:#353a41;--bd-ecf1f5:#343a41;--bd-edf1f5:#343940;--bd-edf1f6:#343940;--bd-eef2f6:#333940;--bd-f0f3f6:#32383f;--bg-a9b4bf:#5d6b79;--bg-bcd2ee:#314a68;--bg-c7d3df:#3a4856;--bg-d5dde5:#333c45;--bg-dbe3eb:#2d363f;--bg-e3e9f0:#292f37;--bg-e5f3ff:#192835;--bg-e5f7ee:#162a22;--bg-e6f3ff:#1a2834;--bg-e6f5ff:#172732;--bg-e9f7ec:#1a291e;--bg-eaf3fb:#1e272f;--bg-ecf2f8:#21272e;--bg-ecf7ff:#19242c;--bg-edf1f5:#21272f;--bg-eef4fa:#1f252d;--bg-eef4fb:#1f252c;--bg-f1f5fa:#1e242b;--bg-f1f6fb:#1d232a;--bg-f1f8ff:#1b2129;--bg-f3f7fc:#1c2229;--bg-f3f8fc:#1b2129;--bg-f3f8fd:#1b2129;--bg-f4f7fb:#1c2229;--bg-f5f9fc:#1a2028;--bg-f6f8fb:#1b2028;--bg-f6f9fd:#1a2027;--bg-f7f9fb:#1a2027;--bg-f7fafd:#191f26;--bg-f7fbff:#181e26;--bg-f8fafc:#191f26;--bg-fbfcfe:#171d24;--bg-fbfdff:#161c23;--bg-fde8ea:#382325;--bg-fdeee3:#322317;--bg-ffeced:#332022;--bg-fff3dd:#2e2107;--bg-fff3df:#2d210a;--bg-fff6e8:#281f10;--bg-ffffff:#141a21;--bg-ffffff0b:#141a210b;--bg-ffffff99:#141a2199;--fg-007e48:#6bce92;--fg-0471ac:#66bdfd;--fg-067da8:#5cbbe9;--fg-068368:#63c7a9;--fg-075c9e:#90c6fc;--fg-082b4b:#d4e8fe;--fg-0878b6:#5db9fb;--fg-0a71cb:#76b5fb;--fg-0b5e9a:#8dc6fc;--fg-0f9b9b:#3cb5b5;--fg-107253:#7bd0ac;--fg-11395f:#c0deff;--fg-11674e:#88d5b7;--fg-133c60:#bcddfe;--fg-146ca0:#72c1fa;--fg-147d53:#6fcb9d;--fg-17395c:#c1deff;--fg-173b54:#bbe0fd;--fg-19618c:#84c8f9;--fg-196acc:#81b5fd;--fg-1f3b57:#beddfe;--fg-2386d5:#4fabfd;--fg-24496f:#acd3fd;--fg-244b70:#a7d2fe;--fg-264a6c:#aad3fb;--fg-34465a:#bdd3eb;--fg-34526b:#abcdeb;--fg-34536c:#aacdea;--fg-385770:#a7cae7;--fg-386787:#90c2e5;--fg-42647f:#9cc1e0;--fg-48647c:#a1c0db;--fg-4d5b69:#b3c3d3;--fg-51728c:#94b7d4;--fg-526782:#a3bad9;--fg-546a7f:#a2bad1;--fg-556e87:#9cb8d3;--fg-55718d:#98b6d4;--fg-5a7790:#94b3ce;--fg-5b7790:#95b2cd;--fg-5b7892:#93b2ce;--fg-5d6b78:#a8b8c6;--fg-5f788d:#97b1c8;--fg-617789:#9ab2c5;--fg-62758c:#9cb1ca;--fg-627689:#9cb1c6;--fg-63778c:#9bb0c7;--fg-647686:#9eb1c2;--fg-648eaf:#7ba6c8;--fg-657786:#9db1c1;--fg-687583:#a2b0bf;--fg-688bab:#82a6c7;--fg-6b4fd1:#b0a7fe;--fg-6d7f92:#98abbf;--fg-845b19:#deb072;--fg-8d5c18:#e1ab6c;--fg-925c20:#e3a76e;--fg-9b1c28:#fdaba7;--fg-9e5f0f:#e5a15c;--fg-a03143:#fba0a6;--fg-b24d0c:#fd905b;--fg-c2303b:#fc8d8a;--sh-020d2177:#00000099;--sh-0c345c09:#00000028;--sh-1b2b3d1c:#00000061;--sh-1b2b3d1f:#0000006a;--sh-1b2b3d24:#00000079;--sh-1b2b3d30:#00000099;--sh-1b436008:#00000025;--sh-d9f1ff:#273f4d;--paper:#0e1217;--subtle:#1f262e;--white:#141a21;--green:#5cc58b;--amber:#e3a24f;--bg:#0e1217;--surface:#141a21;--line:#2a333e;--text:#e2e8ef;--muted:#9eacbc;--blue:#6aa5f8;--blue-soft:#182a42;--teal:#3cb5b5;--ok:#5cc58b;--ok-soft:#12291e;--warn:#e3a24f;--warn-soft:#2c2110;--bad:#f08a8a;--bad-soft:#351c1f;--info:#6aa5f8;--info-soft:#182a42;--off:#7b8794;--off-soft:#232b34;--bright:#4fb3f8;--cyan:#3cc4dc}
:root[data-theme="dark"] .sd{--blue:#6aa5f8;--paper:#0e1217;--line:#2a333e;--ink:#dbe6f0;--muted:#9eacbc;--white:#141a21}
:root[data-theme="dark"] .wiz-steps li.done .wstep,:root[data-theme="dark"] .wiz-steps li.now .wstep,:root[data-theme="dark"] #bellCount,:root[data-theme="dark"] .lifecycle li.done .dot,:root[data-theme="dark"] .lifecycle li.bad .dot,:root[data-theme="dark"] .lifecycle li.warn .dot,:root[data-theme="dark"] .wiz-live li.done .dot,:root[data-theme="dark"] .wiz-live li.bad .dot{color:#0e1217}
/* Theme switch in the header */
.theme-switch{display:inline-flex;align-items:center}.theme-switch select{border:1px solid var(--line);border-radius:9px;padding:8px 10px;font-size:12.5px;background:var(--surface);color:var(--text)}

/* Signed out: only a sign-in page. The menu, top bar and every view appear after sign-in (console.js removes the class). */
.login-brand{display:none}
body.signed-out .rail,body.signed-out .topbar,body.signed-out #main>:not(.connect-panel):not(footer){display:none!important}
body.signed-out .layout{display:block;min-height:100vh;background:linear-gradient(185deg,#081e3a 5%,#0b355d 95%)}
body.signed-out main{max-width:none;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 16px}
body.signed-out .connect-panel{display:grid;grid-template-columns:1fr;width:min(440px,100%);margin:0;padding:30px 28px;border-radius:18px;box-shadow:0 24px 60px #0006}
body.signed-out .connect-intro{display:none}
body.signed-out .connect-panel #connectionStatus{padding-left:0;text-align:center}
body.signed-out .login-brand{display:grid;justify-items:center;text-align:center;gap:6px;margin-bottom:6px}
body.signed-out .login-brand>div b{display:block;font-size:13px;letter-spacing:.7px;color:var(--text)}
body.signed-out .login-brand>div small{display:block;font-size:9px;letter-spacing:1.7px;color:var(--muted);margin-top:4px}
body.signed-out .login-brand img{border-radius:14px;background:#fff;padding:2px;box-shadow:0 4px 14px #0002}
body.signed-out .login-brand h1{font-size:19px;letter-spacing:-.3px;margin:12px 0 0}
body.signed-out .login-brand p{font-size:12px;color:var(--muted);margin:0}
body.signed-out footer{color:#a4bbd3;justify-content:center;text-align:center}
body.signed-out footer span{display:block;width:100%}

/* Employees signed in by mistake: only a pointer to the tray (console.js employeeOnly). */
body.employee-only .rail,body.employee-only .topbar,body.employee-only #main>:not(#employeeNote):not(footer){display:none!important}
body.employee-only .layout{display:block}
.employee-note{max-width:560px;margin:12vh auto 0;padding:28px;background:var(--bg-ffffff);border:1px solid var(--line);border-radius:16px}
.employee-note h1{font-size:22px;margin:0 0 10px}.employee-note p{color:var(--muted);line-height:1.6}
/* Sign-in card: one form, secondary options as quiet links (2026-11-05) */
body.signed-out .connect-panel{gap:14px}
body.signed-out .account-box{margin-top:4px}
body.signed-out .account-form .button{width:100%;justify-content:center;padding:11px 14px}
body.signed-out .account-links{justify-content:space-between;font-size:12.5px}
body.signed-out .account-token,body.signed-out .lab-login-more{border-top:1px solid var(--bd-e0eaf3);padding-top:10px}
body.signed-out .account-token summary,body.signed-out .lab-login-more>summary{list-style:none;text-align:center;font-size:12px;color:var(--muted)}
body.signed-out .account-token summary::-webkit-details-marker,body.signed-out .lab-login-more>summary::-webkit-details-marker{display:none}
body.signed-out .account-token summary:hover,body.signed-out .lab-login-more>summary:hover{color:var(--text);text-decoration:underline}
body.signed-out .account-token+.account-token,body.signed-out .account-token~.lab-login-more{border-top:0;padding-top:0}
body.signed-out .lab-login-wrap .lab-login{display:grid;grid-template-columns:1fr;gap:8px;margin-top:10px}
body.signed-out .lab-login-wrap .lab-login .button{justify-content:center}
body.signed-out .lab-login-wrap small{display:block;text-align:center;margin-top:6px}
body.signed-out .account-token .connect-controls{display:grid;grid-template-columns:1fr;gap:8px;margin-top:10px}
body.signed-out .connect-panel #connectionStatus{font-size:11.5px;color:var(--muted)}
.connect-panel.signed-in .lab-login-more{display:none}
/* Ask Healstead: floating button bottom-right on every page, chat panel above it (2026-11-05) */
.ask-fab{position:fixed;right:22px;bottom:22px;z-index:56;display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;padding:14px 22px;font-size:14px;font-weight:800;color:#fff;background:linear-gradient(115deg,#0b2f5c,#0a6fd6);box-shadow:0 10px 26px #0a5cb84d,0 2px 6px #0003;transition:transform .15s ease,box-shadow .15s ease}
.ask-fab span{font-size:16px}.ask-fab:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 14px 30px #0a5cb866,0 2px 6px #0003}
.ask-fab.open{background:linear-gradient(115deg,#24384f,#3a536e)}
.ask-fab[hidden],body.signed-out .ask-fab,.ask-fab:disabled{display:none}
.assistant{top:auto;left:auto;right:22px;bottom:86px;width:min(410px,calc(100vw - 32px));height:min(620px,calc(100vh - 120px));border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 60px #0b1d3340,0 4px 12px #0b1d331f;overflow:hidden}
.assistant-head{background:linear-gradient(115deg,#0b2f5c,#0a6fd6);color:#fff;border-bottom:0}.assistant-head small{color:#cfe3f7}
.assistant-head .icon-button{background:#ffffff1f;color:#fff;border-color:transparent}
@media(max-width:520px){.ask-fab{right:14px;bottom:14px;padding:12px 18px}.assistant{right:0;bottom:0;width:100vw;height:100vh;border-radius:0}}
/* Enrollment: installer card instead of a raw command (2026-11-05) */
.install-ready{display:grid;gap:10px;margin-top:16px;padding:18px 20px;border:1px solid var(--bd-cde1f4);border-radius:14px;background:var(--bg-f1f8ff)}
.install-ready>b{font-size:15px}.install-ready p{margin:0}.install-how{font-size:12.5px;color:var(--fg-0b5e9a);font-weight:600}
.install-cmd summary{cursor:pointer;font-size:12px;color:var(--muted)}.install-cmd pre{margin:8px 0 0;max-height:160px;overflow:auto;white-space:pre-wrap;word-break:break-all;font:11px/1.5 ui-monospace,Consolas,monospace;background:var(--bg-ffffff);border:1px solid var(--bd-e0eaf3);border-radius:8px;padding:10px}
.install-status{font-size:13px;font-weight:700;color:var(--fg-8d5c18)}.install-status.ok{color:var(--fg-107253)}.install-status.bad{color:#b42318}
.cmd-box .install-cmd pre{max-height:160px}
/* Ticket workspace: Fix this device (2026-11-05) */
.fix-panel{margin:14px 0;padding:16px 18px;border:1px solid var(--bd-cde1f4);border-radius:12px;background:var(--bg-f1f8ff)}
.fix-panel h4{margin:0 0 6px;font-size:15px}.fix-list{display:grid;gap:10px;margin-top:10px}
.fix-item{display:grid;gap:6px;padding:12px 14px;background:var(--bg-ffffff);border:1px solid var(--bd-e0eaf3);border-radius:10px}
.fix-item .button{justify-self:start}.fix-item small{color:var(--muted)}.fix-why{color:var(--fg-8d5c18)!important}.fix-result{color:var(--fg-0b5e9a)!important;font-weight:600}
/* Device/case detail: sections stay within the panel; wide tables scroll inside their own section (2026-11-05) */
.detail-body{grid-template-columns:minmax(0,1fr)}.detail-section{min-width:0;overflow-x:auto}
.inline-result{display:block;margin-top:6px;font-size:12px;color:var(--fg-8d5c18)}

/* Device page: summary card, Chart.js performance chart, problems-first findings (2026-11-05) */
.device-hero{border-left:4px solid #159bea}.device-hero h4{font-size:18px}.hero-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.detail-section.flash{box-shadow:0 0 0 3px #68bdff;transition:box-shadow .3s}
.perf-wrap{position:relative;height:260px;margin:8px 0 6px}.all-checks summary{cursor:pointer;font-size:12px;color:var(--muted);margin-top:10px}
.danger-zone{border-color:#f3c7c7}.danger-zone h4{color:#b42318}
.detail-section select,.device-extra select{border:1px solid var(--bd-ccdae7);border-radius:8px;padding:6px 10px;font-size:13px;background:var(--bg-ffffff);color:var(--text)}
.device-hero{margin-bottom:16px}
/* Onboard devices card (2026-11-05) */
.site-onboard{display:grid;gap:10px}.site-row{display:flex;gap:14px;flex-wrap:wrap}.site-row .wiz-field{flex:1 1 180px}
.site-onboard input,.site-onboard select,.ocard td input{border:1px solid var(--bd-ccdae7);border-radius:8px;padding:8px 10px;font-size:13px;background:var(--bg-ffffff);color:var(--text)}
.ocard td input{width:140px;padding:5px 8px}

/* ---- Pop-up windows and approvals (2026-11-05) ---- */
.hs-modal-back{position:fixed;inset:0;z-index:2000;background:rgba(6,20,38,.48);backdrop-filter:blur(3px);display:flex;align-items:flex-start;justify-content:center;padding:6vh 16px;overflow:auto;animation:hsFade .14s ease-out}
.hs-modal{width:min(720px,100%);background:var(--bg-ffffff,#fff);color:var(--text,#16324c);border:1px solid var(--line,#dce6f0);border-radius:16px;box-shadow:0 24px 70px rgba(6,20,38,.35);animation:hsRise .16s ease-out}
.hs-modal-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:20px 22px 12px;border-bottom:1px solid var(--line,#dce6f0)}
.hs-modal-head h2{margin:0;font-size:18px}.hs-modal-head p{margin:6px 0 0}
.hs-modal-body{padding:16px 22px 22px;display:grid;gap:12px;max-height:72vh;overflow:auto}
.hs-modal-x{border:0;background:transparent;font-size:18px;line-height:1;cursor:pointer;color:var(--muted,#5d768f);border-radius:8px;padding:6px 8px}
.hs-modal-x:hover{background:var(--blue-soft,#e6f3ff);color:var(--text,#16324c)}
@keyframes hsFade{from{opacity:0}to{opacity:1}}@keyframes hsRise{from{transform:translateY(10px);opacity:.6}to{transform:none;opacity:1}}
.appr-btn{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line,#dce6f0);background:var(--bg-ffffff,#fff);color:var(--text,#16324c);border-radius:999px;padding:6px 10px 6px 12px;font-weight:700;font-size:12px;cursor:pointer}
.appr-btn .appr-count{min-width:20px;text-align:center;border-radius:999px;padding:2px 6px;background:var(--off-soft,#eef2f6);font-size:11px}
.appr-btn.has{border-color:var(--warn,#c47a12)}.appr-btn.has .appr-count{background:var(--warn,#c47a12);color:#fff}
.appr-card{border:1px solid var(--line,#dce6f0);border-radius:12px;padding:14px 16px;display:grid;gap:8px;background:var(--surface,#fbfdff)}
.appr-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.appr-top b{display:block;font-size:14px}.appr-top small{display:block;margin-top:3px}
.appr-risk{font-size:10px;font-weight:800;border-radius:999px;padding:4px 9px;background:var(--info-soft,#e6f3ff);color:var(--info,#146ca0);white-space:nowrap}
.appr-risk.r-R3{background:var(--warn-soft,#fff3df);color:var(--fg-8d5c18,#8d5c18)}
.appr-facts{display:flex;flex-wrap:wrap;gap:8px;font-size:11px}.appr-facts span{border-radius:999px;padding:3px 9px;background:var(--off-soft,#eef2f6)}
.appr-facts .ok{background:var(--ok-soft,#e9f7ec);color:var(--ok,#147d53)}.appr-facts .wait{background:var(--warn-soft,#fff3df);color:var(--fg-8d5c18,#8d5c18)}
.appr-row{display:flex;gap:8px}.appr-row input{flex:1;min-width:0;border:1px solid var(--line,#dce6f0);border-radius:9px;padding:8px 10px;font:inherit;font-size:12px;background:var(--bg-ffffff,#fff);color:inherit}
.appr-msg{margin:0;font-size:12px;min-height:0}.appr-msg.ok{color:var(--ok,#147d53)}.appr-msg.bad{color:var(--bad,#b4233a)}
.appr-inline{display:grid;gap:10px;margin:6px 0 14px;padding:14px;border-radius:12px;background:var(--warn-soft,#fff8ec);border:1px solid var(--line,#dce6f0)}
.appr-inline h3{margin:0;font-size:14px}
/* Tickets page: shorter — list first; new ticket, notifications and the ticket workspace open as pop-up windows */
.sd .panels{grid-template-columns:1fr}
.sd .sd-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}
.sd .box.create:not(.sd-pop),.sd .box.foot:not(.sd-pop){display:none}
.sd .box.sd-pop,.sd .detail:not([hidden]){position:fixed;z-index:1900;top:5vh;left:50%;transform:translateX(-50%);width:min(980px,calc(100vw - 32px));
  max-height:90vh;overflow:auto;margin:0;box-shadow:0 0 0 100vmax rgba(6,20,38,.48),0 24px 70px rgba(6,20,38,.35);animation:hsRise .16s ease-out}
.sd .box.create.sd-pop,.sd .box.foot.sd-pop{width:min(620px,calc(100vw - 32px))}
.sd .sd-pop-x{position:sticky;top:0;float:right;margin:-10px -10px 0 0;z-index:2}
body.sd-modal-open{overflow:hidden}
@media(max-width:560px){.sd .box.sd-pop,.sd .detail:not([hidden]){top:0;max-height:100vh;border-radius:0;width:100vw}.appr-row{flex-direction:column}}
/* Page tabs: one section at a time on long pages */
.pt-bar{display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:6px;margin:4px 0 16px;padding:6px;border:1px solid var(--line,#dce6f0);border-radius:12px;background:var(--bg-ffffff,#fff);position:sticky;top:0;z-index:5}
.pt-tab{display:flex;align-items:center;justify-content:center;text-align:center;min-height:38px;border:0;background:transparent;color:var(--muted,#5d768f);font:inherit;font-size:12px;font-weight:700;line-height:1.25;padding:7px 10px;border-radius:9px;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.pt-tab:hover{background:var(--blue-soft,#e6f3ff);color:var(--text,#16324c)}
.pt-tab.on{background:var(--blue,#0878ce);color:#fff}
.pt-tab.pt-all{border:1px dashed var(--line,#dce6f0)}
.pt-off{display:none!important}
@media(max-width:560px){.pt-bar{display:flex;flex-wrap:nowrap;overflow-x:auto}.pt-tab{white-space:nowrap;flex:none}}

/* ================================================================ Healstead UI system (2026-11-05)
   One layer that every page inherits: spacing scale, one control height, one text size for forms, aligned action rows,
   and the sidebar "about" block. Owner: "make UI simple, aligned, same on all pages". */
:root{--hs-space-1:4px;--hs-space-2:8px;--hs-space-3:12px;--hs-space-4:16px;--hs-space-5:24px;--hs-radius:12px;--hs-control-h:38px;--hs-text-sm:12.5px;--hs-text:13.5px}
/* forms: same height, same text size, aligned with the buttons next to them */
.ops-root input:not([type=checkbox]):not([type=radio]):not([type=range]),.ops-root select,.panel input:not([type=checkbox]):not([type=radio]),.panel select,
.ops-root .button,.panel .button,.inline-actions .button,.inline-actions input,.inline-actions select{min-height:var(--hs-control-h);box-sizing:border-box;font-size:var(--hs-text)}
.ops-root input:not([type=checkbox]):not([type=radio]):not([type=range]),.ops-root select,.panel input:not([type=checkbox]):not([type=radio]),.panel select{padding:8px 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface,#fff);color:var(--text)}
.ops-root textarea,.panel textarea{font-size:var(--hs-text);border:1px solid var(--line);border-radius:9px;padding:9px 11px}
.inline-actions,.button-pair,.filters,.formrow{display:flex;flex-wrap:wrap;align-items:center;gap:var(--hs-space-2)}
.inline-actions input:not([type=checkbox]),.filters input{flex:1 1 260px;max-width:460px}
.ops-root .button,.panel .button{display:inline-flex;align-items:center;justify-content:center;padding:0 16px;border-radius:9px;white-space:nowrap}
/* cards: one padding, one heading size, one description style */
.ocard,section.panel.panel-spacious{padding:var(--hs-space-5)}
.ocard h3,.panel h3{font-size:16px;line-height:1.3;margin:0 0 var(--hs-space-1)}
.ocard>p.muted,.ocard-head p,.panel>p.muted{font-size:var(--hs-text-sm);line-height:1.55;margin:0 0 var(--hs-space-3)}
.ops-root{gap:var(--hs-space-4)}
.footnote{font-size:var(--hs-text-sm);color:var(--muted)}
/* sidebar: brand on top, DevHeal Labs about block pinned to the bottom-left */
.rail{display:flex;flex-direction:column}
.rail nav{flex:1 1 auto;min-height:0}
.rail-about{display:grid;gap:3px;margin-top:auto;padding:14px 12px 4px;border-top:1px solid var(--line);font-size:12.5px;color:var(--muted);line-height:1.5}
.rail-about span:first-child{color:var(--text);font-weight:600}
.rail-links{display:flex;gap:14px;margin-top:4px}.rail-links a{color:var(--blue);text-decoration:none;font-weight:600}.rail-links a:hover{text-decoration:underline}
main>footer{display:none}

/* account menu: the signed-in line is a pop-up under the avatar */
.connect-panel.signed-in{margin:0!important;padding:0!important}
.connect-panel.signed-in .connected-bar{display:none}
body.acct-open .connect-panel.signed-in .connected-bar{display:grid;gap:10px;justify-items:start;position:fixed;top:68px;right:20px;z-index:90;width:min(340px,calc(100vw - 32px));background:var(--surface,#fff);border:1px solid var(--line);border-radius:12px;padding:16px;box-shadow:0 12px 32px rgba(15,35,60,.18)}
body.acct-open .connected-bar #whoami{font-weight:600;line-height:1.5;overflow-wrap:anywhere}
#avatar{cursor:pointer}

/* long lists stay inside their card: a fixed-height window that scrolls, table headers stay visible */
.ocard .table-scroll,.panel .table-scroll,.sd .scroll,.scroll-box,.preview-list{max-height:min(62vh,620px);overflow:auto;overscroll-behavior:contain}
.ocard .table-scroll thead th,.panel .table-scroll thead th,.sd .scroll thead th{position:sticky;top:0;z-index:1;background:var(--bg-f7f9fb,#f7f9fb)}
.scroll-box{border-top:1px solid var(--line);margin-top:var(--hs-space-2)}
.role-help{margin-top:var(--hs-space-4)}.role-help summary{cursor:pointer;font-weight:600;color:var(--blue)}

.navicon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block}
.nav .navicon{display:inline-flex;align-items:center;justify-content:center;width:22px;flex:none}

/* record drawer: header stays put, content scrolls; long sections fold */
.detail-panel{padding:0 24px 24px;overscroll-behavior:contain}
.detail-panel>.detail-head{position:sticky;top:0;z-index:3;background:var(--surface,#fff);padding:18px 0 12px;margin:0 0 4px;border-bottom:1px solid var(--line)}
.fold-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.fold-head h4{margin:0}
.fold-toggle{border:1px solid var(--line);background:var(--bg-f3f7fc,#f3f7fc);color:var(--blue);font:inherit;font-size:12px;font-weight:700;border-radius:8px;padding:5px 12px;cursor:pointer}
.detail-section.folded>:not(.fold-head){display:none!important}
.detail-section.folded{padding-top:12px;padding-bottom:12px}
.detail-section .table-scroll{max-height:360px}
.detail-panel{padding-bottom:96px}
/* Notifications and profile settings (profile.js, 2026-11-05) */
.pf-check{display:inline-flex;gap:6px;align-items:center;font-size:12px;margin:6px 14px 6px 0}.pf-who{display:flex;flex-wrap:wrap;gap:0 4px;max-width:520px}.pf-who .pf-check{margin:3px 10px 3px 0}
.notify-pop{position:fixed;top:64px;right:20px;z-index:95;width:min(380px,calc(100vw - 32px));max-height:min(560px,calc(100vh - 90px));display:flex;flex-direction:column;background:var(--surface,#fff);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(15,35,60,.18)}
.notify-head,.notify-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px}.notify-head{border-bottom:1px solid var(--line)}.notify-foot{border-top:1px solid var(--line)}
.notify-list{overflow:auto;padding:4px 0}.notify-list .muted{padding:10px 14px;margin:0}.notify-item{display:grid;gap:3px;width:100%;text-align:left;border:0;background:none;padding:10px 14px 10px 22px;font-size:12.5px;color:var(--text);position:relative}
.notify-item:hover{background:var(--bg-f6f9fd)}.notify-item small{color:var(--muted);font-size:11px}.notify-item.unread span{font-weight:700}.notify-item.unread::before{content:'';position:absolute;left:9px;top:15px;width:7px;height:7px;border-radius:50%;background:var(--blue)}
.result-box.bad{border-color:#f0c4c8;color:var(--fg-9b1c28)}

/* UI review P1 (2026-11-05): one icon style, aligned form rows, wrapping tables, toast, missing classes */
.hs-ico{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:inline-block;vertical-align:middle;flex:none}
.kpi-icon{display:inline-flex;align-items:center;justify-content:center}.kpi-icon .hs-ico{width:20px;height:20px}
#bell{display:inline-flex;align-items:center;justify-content:center;gap:4px}
.appr-btn,.top-right button{display:inline-flex;align-items:center;gap:6px}
.formrow{align-items:flex-end}
.formrow .button{height:var(--hs-control-h)}
.otable td{white-space:normal;overflow-wrap:anywhere}
.otable td:first-child,.otable td.nowrap{white-space:nowrap}
table .inline-actions input,td .inline-actions input{flex:0 1 160px}
.result-box.bad{border-color:#f3c2c7;background:#fdf1f2;color:#9b1c28}
.danger-text{color:#b3261e}
.detail-section h5{margin:10px 0 6px;font-size:13px;color:var(--text)}
label.inline{display:inline-flex;align-items:center;gap:6px;font-size:var(--hs-text-sm)}
.hs-toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:120;background:#0f2742;color:#fff;padding:11px 18px;border-radius:10px;font-size:13px;box-shadow:0 10px 26px rgba(10,30,60,.25);transition:opacity .2s,transform .2s;max-width:min(560px,calc(100vw - 32px))}
.hs-toast.on{opacity:1;transform:translate(-50%,0)}
/* Connections (integrations.js) */
.cx-item{display:flex;flex-direction:column;gap:8px}.cx-head{display:flex;flex-direction:column;gap:2px}.cx-chips{display:flex;flex-wrap:wrap;gap:6px}
.cx-form{margin-top:16px;display:flex;flex-direction:column;gap:10px}.cx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px 16px}
.cx-field{display:flex;flex-direction:column;gap:4px;min-width:0}.cx-field input,.cx-field select,.cx-reason{border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-size:13px;background:var(--surface);color:var(--text);max-width:100%}
.cx-reason{min-width:min(420px,100%)}.cx-multi{display:flex;flex-wrap:wrap;gap:4px 12px}.cx-label{font-size:13px}

/* sign-in page: product message beside the sign-in card (2026-11-05) */
.login-hero{display:none}
body.signed-out #main>section.login-hero.login-hero{display:block!important}
body.signed-out main{display:grid!important;grid-template-columns:minmax(0,560px) minmax(320px,440px);gap:56px;align-items:center;justify-content:center;align-content:center}
.login-hero{color:#dbe8f5;max-width:560px}
.login-hero-brand{display:flex;align-items:center;gap:12px;margin-bottom:28px}
.login-hero-brand img{border-radius:12px;background:#fff;padding:2px}
.login-hero-brand b{display:block;color:#fff;font-size:14px;letter-spacing:.8px}.login-hero-brand small{display:block;color:#8fb6d8;font-size:10px;letter-spacing:1.8px;margin-top:4px}
.login-hero h2{color:#fff;font-size:clamp(28px,3.2vw,40px);line-height:1.15;letter-spacing:-.8px;margin:0 0 14px}
.login-hero-lead{font-size:15px;line-height:1.6;color:#bcd3ea;margin:0 0 26px}
.login-points{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.login-points li{display:grid;grid-template-columns:36px 1fr;gap:12px;align-items:start}
.login-points svg{width:36px;height:36px;padding:8px;border-radius:10px;background:#ffffff14;border:1px solid #ffffff22;fill:none;stroke:#7fd3f5;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;box-sizing:border-box}
.login-points b{display:block;color:#fff;font-size:14px;margin:1px 0 3px}.login-points span{display:block;font-size:13px;line-height:1.5;color:#a9c3dd}
.login-hero-foot{margin:28px 0 0;font-size:12px;color:#7fa3c6}
@media(max-width:960px){body.signed-out main{grid-template-columns:1fr;gap:28px;justify-items:center}
  .login-hero{text-align:left;width:min(440px,100%)}.login-hero h2{font-size:26px}.login-points li:nth-child(n+4){display:none}.login-hero-brand{display:none}}
@media(max-width:960px){body.signed-out .connect-panel{order:-1}.login-hero-foot{display:none}}

/* UI review round 2: long text and loose tables stay inside a scrolling window */
.result-box{max-height:320px;overflow:auto}
.ops-root>.table-scroll,.ops-root>div>.table-scroll{max-height:min(62vh,620px);overflow:auto}
.ops-root>.table-scroll thead th{position:sticky;top:0;z-index:1;background:var(--bg-f7f9fb,#f7f9fb)}

/* Bulk select on every list (bulk.js, 2026-11-06) */
th.bulk-col,td.bulk-col{width:34px;text-align:center;padding-left:8px!important;padding-right:4px!important}
th.bulk-col input,td.bulk-col input{width:16px;height:16px;cursor:pointer;accent-color:var(--blue)}
.bulk-bar{position:sticky;top:0;z-index:4;display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg-ffffff);box-shadow:0 4px 14px rgba(15,40,70,.08)}
.bulk-bar strong{margin-right:6px}
.bulk-bar .button{padding:6px 12px;min-height:0}
.bulk-confirm{display:flex;flex-wrap:wrap;gap:8px;align-items:center;width:100%}
.bulk-confirm input{flex:1 1 240px;min-width:200px}
.bulk-errors{width:100%;font-size:13px}.bulk-errors ul{margin:6px 0 0 18px;max-height:180px;overflow:auto}

/* Script library (script-library.js) */
#scriptLibrary{margin-bottom:18px}
.sl-form{display:grid;gap:10px}
.sl-field{display:grid;gap:4px;font-size:13px}.sl-field>span{font-weight:700}
.sl-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-weight:700;font-size:13px}
.sl-code,.sl-pre{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12.5px;line-height:1.45}
.sl-code{width:100%;resize:vertical;white-space:pre;tab-size:4}
.sl-pre{max-height:320px;overflow:auto;background:var(--bg-f3f7fc);border:1px solid var(--line);border-radius:8px;padding:10px;white-space:pre}
.inline-result.bad{color:#b3261e}
.kb-import{margin-top:18px;padding-top:14px;border-top:1px solid var(--line);display:grid;gap:8px;justify-items:start}

/* Clean stacked forms: batch onboarding and discovery (2026-11-06) */
.bo-form{display:grid;gap:14px;max-width:880px}
.bo-form .site-row,.disc-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;align-items:end}
.bo-field,.disc-field{display:grid;gap:6px;min-width:0}
.bo-field>span,.disc-field>span{font-weight:700;font-size:13px;color:var(--text)}
.bo-field input,.bo-field select,.bo-field textarea,.disc-field input,.disc-field select{width:100%;box-sizing:border-box}
.bo-field textarea{min-height:130px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;resize:vertical}
.bo-field small{font-size:12px}
.bo-file{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.bo-form>.button{justify-self:start}
.disc-form{max-width:640px;margin:6px 0 10px}
.disc-fallback{margin-top:14px}.disc-install{margin-top:12px;display:grid;gap:8px}
/* UI review P3 (2026-11-09): one secondary button style, wide inputs from CSS, in-page confirm and prompt */
.sd .button.subtle{border:1px solid var(--bd-dce8f3)}
.wide-input{min-width:min(320px,100%)}
.hs-ask{display:grid;gap:10px}.hs-ask input{width:100%}

/* Masked secret that browsers must not treat as a password (no save-password prompt on every page, 2026-11-09). */
.secret-input{-webkit-text-security:disc;text-security:disc}

/* How Healstead handled this ticket (demo path 2026-11-18). */
.sd-handling{white-space:normal;margin:10px 0 16px;border-left:3px solid #147d53}.sd-handling h4{font-size:12px;margin:10px 0 2px}.sd-handling p{margin:0 0 2px}.sd-handling ul{margin:2px 0 0;padding-left:18px}.sd-handling-policy{margin-top:10px!important;font-weight:700}
/* Ticket detail polish (2026-11-18): rows instead of monospace, one card style, muted reason badges. */
.sd-handling{padding:16px 18px}.sd-handling .sd-handling-title{margin:0 0 6px;font-size:15px}.sd-handling-row{padding:8px 0;border-top:1px solid var(--bd-e6eef5)}.sd-handling-row:first-of-type{border-top:0}.sd-handling-row h4{text-transform:uppercase;letter-spacing:.06em;font-size:10px;color:var(--muted);margin:0 0 4px}
.sd .detail-grid h3,.fix-panel h3,.sd-handling h3{font-size:15px;font-weight:800;color:var(--fg-082b4b,#082b4b);margin:22px 0 10px}.fix-panel h3{margin:0 0 6px}
.sd-card .surface{white-space:normal}.sd-rows{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 16px;margin:0;font-family:inherit}.sd-rows dt{font-weight:800;color:var(--fg-34536c,#34536c)}.sd-rows dd{margin:0;overflow-wrap:anywhere}.sd-rows ul,.sd-support ul{margin:0;padding-left:18px}.sd-rows li,.sd-support li{margin:2px 0}
.sd-support p{margin:0 0 6px}.sd-support .sd-support-lead{font-weight:800}.sd-support small{display:block;margin-top:8px}
.sd-badge-muted{display:inline-block;justify-self:start;padding:4px 10px;border-radius:999px;background:var(--bg-f1f6fb,#f1f6fb);border:1px solid var(--bd-e0eaf3,#e0eaf3);color:var(--muted)!important;font-size:11px;line-height:1.5}
#sd-detailBody{white-space:normal}.sd-body-status{display:flex;align-items:center;gap:10px;margin-bottom:8px}.sd-body-label{font-weight:800;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.sd-body-text{white-space:pre-wrap;margin:0 0 8px}
@media(max-width:560px){.sd-rows{grid-template-columns:1fr;gap:2px}.sd-rows dd{margin-bottom:8px}}

/* Tables: whole words stay together (a column grows to its longest word and the table scrolls sideways);
   column headings can be dragged wider or narrower (bulk.js). */
.otable td{white-space:normal;overflow-wrap:break-word;word-break:normal}
table thead th{position:relative}
.col-grip{position:absolute;top:0;right:-4px;bottom:0;width:9px;cursor:col-resize;z-index:2;touch-action:none}
.col-grip::after{content:"";position:absolute;top:25%;bottom:25%;left:4px;width:1px;background:var(--bd-ccdae7,#ccdae7)}
.col-grip:hover::after,body.col-resizing .col-grip::after{background:var(--blue,#0868d4);width:2px;left:3px}
body.col-resizing{cursor:col-resize;user-select:none}
table[data-col-resize] td{overflow:hidden;text-overflow:ellipsis}

/* External AI card (2026-11-18, enterprise/static/ai-provider.js): status strip, one card per provider, labelled form. */
.cx-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin:10px 0}
.cx-strip-cell{border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:var(--bg-ffffff);min-width:0}
.cx-strip-k{display:block;font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:800;color:var(--fg-62758c)}
.cx-strip-v{display:block;font-size:13px;font-weight:700;overflow-wrap:anywhere}.cx-strip-v.warn{color:var(--warn)}
.cx-details{margin:8px 0}.cx-details summary{cursor:pointer;font-size:12px;font-weight:700;color:var(--fg-244b70)}
.cx-details p{font-size:12px;margin:6px 0}.cx-details b{display:block;font-size:11px;margin-top:10px;color:var(--fg-48647c)}
.cx-reason-box{margin:10px 0}.cx-reason-box label{font-size:12px;font-weight:800;color:var(--fg-48647c)}
.cx-reason-box input{width:min(520px,100%);border:1px solid var(--bd-ccdae7);border-radius:8px;padding:8px 10px;font-size:12px;margin:4px 0}
.cx-list{display:grid;gap:10px;margin:10px 0}
.cx-card{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:var(--bg-ffffff);min-width:0}
.cx-card-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.cx-card-name{font-weight:800;font-size:14px;overflow-wrap:anywhere}
.cx-card-meta{font-size:12px;color:var(--fg-5f788d);margin:4px 0;overflow-wrap:anywhere}
.cx-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.cx-ack{font-size:12px;margin-top:8px}
.cx-test{font-size:12px;font-weight:700;margin:6px 0 0;padding:6px 10px;border-radius:8px}
.cx-test.ok{background:var(--ok-soft);color:var(--ok)}.cx-test.bad{background:var(--bad-soft);color:var(--bad)}
.cx-inline-msg{font-size:12px;margin:6px 0}
.cx-tiles{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.cx-tile{border:1px solid var(--bd-ccdae7);border-radius:999px;padding:6px 12px;font-size:12px;font-weight:700;background:var(--bg-ffffff);cursor:pointer}
.cx-tile.on{border-color:var(--info);background:var(--info-soft);color:var(--info)}
.cx-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin:8px 0}
.cx-field{display:flex;flex-direction:column;gap:4px;min-width:0}.cx-field label{font-size:12px;font-weight:800;color:var(--fg-48647c)}
.cx-field input,.cx-field select{border:1px solid var(--bd-ccdae7);border-radius:8px;padding:8px 10px;font-size:12px;width:100%;box-sizing:border-box}
@media (max-width:640px){.cx-actions .button{flex:1 1 auto}.cx-form{grid-template-columns:1fr}}
/* What Healstead learned (learning.js) */
.learn-card{margin-bottom:16px}
.learn-bar{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px}
.learn-bar .button[aria-pressed="true"]{font-weight:800;border-color:currentColor}
.learn-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:12px}
.learn-stat{border:1px solid var(--bd-ccdae7);border-radius:10px;padding:10px 12px}
.learn-val{font-size:22px;font-weight:800}
.learn-label{font-size:12px;font-weight:700}
.learn-hint{font-size:11px;margin-top:4px}
.learn-section{margin:14px 0}
.learn-section h4{margin:0 0 6px;font-size:14px}
.learn-table{width:100%;border-collapse:collapse;font-size:12px}
.learn-table th,.learn-table td{text-align:left;padding:6px 8px;border-bottom:1px solid var(--bd-ccdae7);vertical-align:top}
.learn-table td.num{text-align:right;font-variant-numeric:tabular-nums}
.learn-list{margin:4px 0;padding-left:18px;font-size:13px}
.learn-list li{margin:3px 0}
.learn-list .chip{margin-left:6px}
.learn-statement{font-weight:700;margin-top:12px}

/* Remote support readiness checklist (remote.js, 2026-11-18) */
.remote-checklist{list-style:none;margin:.4rem 0 .8rem;padding:0}
.remote-checklist li{display:flex;gap:.4rem;padding:.2rem 0;line-height:1.35}
.remote-checklist li.ok strong{color:var(--ok)}
.remote-checklist li.blocked strong{color:var(--bad,#c62828)}
.remote-checklist li.later strong{color:var(--muted,#6b7280)}

/* ---- "Fix this" and fleet problems (fleet-fix.js) ---- */
.fixfix-cell{display:flex;flex-direction:column;gap:4px;min-width:9rem}
.fixfix-status{font-size:.85rem}
.fixfix-status.busy{color:var(--muted,#667)}
.fixfix-status.ok{color:var(--ok,#1a7f37)}
.fixfix-status.bad{color:var(--bad,#b42318)}
.fixfix-ticket{font-size:.85rem}
.fixfix-facts{display:grid;grid-template-columns:max-content 1fr;gap:6px 14px;margin:0 0 12px}
.fixfix-facts dt{font-weight:600}
.fixfix-facts dd{margin:0}
.fixfix-reason{width:100%;margin:0 0 12px}
.fixfix-waves{margin:6px 0 10px;padding-left:1.2rem}
.fixfix-bar{height:8px;border-radius:4px;background:var(--line,#e4e7ec);overflow:hidden;margin:6px 0}
.fixfix-bar>span{display:block;height:100%;background:var(--blue)}
@media (max-width:640px){.fixfix-facts{grid-template-columns:1fr}}
.fixfix-campaign{border-top:1px solid var(--line,#e4e7ec);padding:8px 0}

/* Device panel: this computer's tickets. */
.dev-tickets{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:6px}
.dev-tickets li{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:12.5px}
.dev-tickets .text-button{text-align:left;white-space:normal}
/* Service levels report and SLA targets (service-levels.js) */
.sl-controls{flex-wrap:wrap;gap:8px;margin:10px 0}
.sl-controls select{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:9px;padding:8px 10px;max-width:100%}
.sl-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
.sl-tab-body[hidden]{display:none}
.sl-chart-box{position:relative;height:240px;margin:8px 0 12px}
.sl-table{overflow-x:auto;max-width:100%}
.sl-table tr.clickable{cursor:pointer}
.sl-table td{word-break:normal;overflow-wrap:normal}
.sl-list .data-table{min-width:1180px}
.sl-list th,.sl-list td{white-space:nowrap}
.sl-list td:nth-child(4),.sl-list td:nth-child(5),.sl-list td:nth-child(6){white-space:normal;min-width:180px;max-width:260px}
.sl-chip{display:inline-block;padding:3px 8px;border-radius:7px;font-size:11px;font-weight:700;white-space:nowrap;background:var(--off-soft);color:var(--text)}
.sl-chip.sl-met{background:var(--ok-soft);color:var(--ok)}
.sl-chip.sl-breached,.sl-chip.sl-open_breached{background:var(--bad-soft);color:var(--bad)}
.sl-chip.sl-open{background:var(--info-soft);color:var(--info)}
.sl-defs{margin-top:14px}.sl-defs summary{cursor:pointer;font-weight:700;color:var(--text)}
.sl-defs dt{font-weight:700;margin-top:8px;color:var(--text)}.sl-defs dd{margin:2px 0 0;color:var(--muted);font-size:13px;line-height:1.6}
.sl-targets input[type=number]{width:96px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:6px 8px}
.sl-targets .wide-input{min-width:min(420px,100%)}
/* Floats above the open ticket (.sd pop, z 1900) and below dialogs (z 2000), so the way back is always visible. */
.sl-backbar{position:fixed;left:16px;bottom:16px;z-index:1950;background:var(--surface,#fff);border:1px solid var(--line);border-radius:10px;padding:6px;box-shadow:0 8px 24px rgba(15,35,60,.18)}.sl-backbar[hidden]{display:none}
@media print{.sl-backbar{display:none}}
.sl-printbar{display:none;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
@media(max-width:560px){.sl-controls>*{flex:1 1 140px}.sl-chart-box{height:200px}}
/* Print layout: "Print view" switches the page to this; only its own Print button opens the browser's print dialog. */
body.sl-print-mode .rail,body.sl-print-mode .topbar,body.sl-print-mode footer,body.sl-print-mode .connect-panel,body.sl-print-mode .view:not(#view-reports),
body.sl-print-mode #view-reports>:not(.sl-card),body.sl-print-mode .sl-controls,body.sl-print-mode .sl-tabs,body.sl-print-mode .pt-bar,body.sl-print-mode #askOpen{display:none!important}
body.sl-print-mode .layout{display:block}body.sl-print-mode main{max-width:960px}body.sl-print-mode .sl-tab-body{display:block!important}
body.sl-print-mode .sl-printbar{display:flex}body.sl-print-mode .sl-table{overflow:visible}body.sl-print-mode .sl-list .data-table{min-width:0}
body.sl-print-mode .sl-list th,body.sl-print-mode .sl-list td{white-space:normal}
body.sl-print-mode .sl-defs>:not(summary){display:block}
@media print{body.sl-print-mode .sl-printbar{display:none}body.sl-print-mode main{padding:0;max-width:none}body.sl-print-mode .sl-card{border:0;padding:0}
body.sl-print-mode tr{break-inside:avoid}body.sl-print-mode .sl-card .kpi-row{break-inside:avoid}}
/* Mac deployment kit (apple-business.js): long links and SHA-256 values wrap on narrow screens instead of scrolling the page sideways */
#appleBusinessRoot code{overflow-wrap:anywhere;word-break:break-all;white-space:normal}
#appleBusinessRoot .cx-row{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;min-width:0}
#appleBusinessRoot .ab-step{min-width:0;max-width:100%}

/* ---------------------------------------------------------------------------------------------------------------
   Console UI standards (2026-11-19, docs/plans/CONSOLE_UI_STANDARDS_PLAN.md). The last word on data tables,
   label/value lists and hidden elements; earlier blocks above were layered one-off fixes.
   --------------------------------------------------------------------------------------------------------------- */
/* S0 Hidden means hidden, whatever display a class sets (the empty bar under "Fix jobs" was a hidden .bulk-bar). */
[hidden]{display:none!important}
/* S1 Tables: words never break in the middle; headings stay on one line; the table scrolls sideways inside its card. */
table th{white-space:nowrap;vertical-align:bottom}
table td{word-break:normal;overflow-wrap:break-word;vertical-align:middle}
.otable td{overflow-wrap:break-word}
/* bulk.js tags cells by content: short values (IDs, device names, dates, numbers, status chips) stay on one line with
   the full text on hover; long sentences wrap at word boundaries but keep a readable width. */
table td.cell-short{white-space:nowrap}
table td.cell-long{min-width:16em;white-space:normal}
table td.cell-token{max-width:20em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
table th[style*="max-width"]{overflow:hidden;text-overflow:ellipsis}
.table-scroll,.table-wrap{max-width:100%;overflow-x:auto}
/* S2 A card whose table has six or more columns takes the whole row of a two-column page grid. */
.slot>:has(table th:nth-child(6)),.admin-grid>:has(table th:nth-child(6)){grid-column:1/-1}
/* S3 Label/value lists: one label column wide enough for the longest label, never overlapping the value. */
.levels{gap:0}
.level{grid-template-columns:9.5em minmax(0,1fr);gap:4px 20px;align-items:baseline;padding:10px 0}
.level b{white-space:nowrap}
.kv>div{overflow-wrap:anywhere}
@media(max-width:560px){.level{grid-template-columns:1fr;gap:2px}}
/* Grid children may shrink below their content's width, so a wide table scrolls inside its card instead of pushing the card off screen. */
.slot>*,.admin-grid>*,.ops-root>*{min-width:0}
/* Review 2026-11-19: bulk-select wrappers and report/learning tables scroll inside their card; visible keyboard focus everywhere. */
.bulk-wrap{min-width:0;max-width:100%}
.roi-card .table-wrap,.learn-card .table-wrap{overflow-x:auto}
.learn-table td.num,.learn-table th{white-space:nowrap}
.nav:focus-visible,.button:focus-visible,.pt-tab:focus-visible,.text-button:focus-visible,.fold-toggle:focus-visible,[role=button]:focus-visible,summary:focus-visible{outline:3px solid #68bdff;outline-offset:2px}
/* Tab strips that scroll sideways on phones show a fade at the edge, so more tabs are noticed. */
@media(max-width:560px){.pt-bar{-webkit-mask-image:linear-gradient(90deg,#000 92%,transparent);mask-image:linear-gradient(90deg,#000 92%,transparent)}}
/* Integrations -> Connections (2026-11-19): own cn- classes (the .cx-form grid of the External AI card no longer
   spreads this form into columns), numbered setup steps, help under each field, one status per card, inline results. */
.cn-reason{display:grid;gap:4px;margin:4px 0 8px;max-width:560px}.cn-reason label{font-size:12px;font-weight:800;color:var(--fg-48647c)}
.cn-help{font-size:12px;color:var(--muted);line-height:1.5}
.cn-sub{font-size:14px;margin:18px 0 8px}
.cn-msg{font-size:12.5px;margin:4px 0;min-height:0}.cn-msg:empty{display:none}.cn-msg.ok{color:var(--ok,#08795c)}.cn-msg.bad{color:var(--bad,#b3261e)}
.cn-card{display:flex;flex-direction:column;gap:8px}
.cn-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.cn-names{display:grid;gap:2px;min-width:0}.cn-names b{overflow-wrap:anywhere}
.cn-card-head .cn-state{flex:none}
.cn-actions .cn-remove{margin-left:auto}
.cn-group{margin:10px 0}.cn-group h5{margin:0 0 6px;font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.cn-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}
.cn-tile{display:grid;gap:2px;text-align:left;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:var(--bg-ffffff);color:var(--text);font:inherit;cursor:pointer}
.cn-tile b{font-size:13px}.cn-tile small{font-size:11.5px;color:var(--muted)}
.cn-tile:hover:not(:disabled){border-color:var(--blue);background:var(--bg-f7fbff)}.cn-tile:disabled{opacity:.55}
.cn-tile:focus-visible{outline:3px solid #68bdff;outline-offset:2px}
.cn-form{margin-top:16px;border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--bg-ffffff);display:flex;flex-direction:column;gap:12px}
.cn-form-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.cn-form-head h4{margin:0;font-size:15px}
.cn-note{font-size:12.5px;color:var(--fg-8d5c18,#8d5c18);background:var(--bg-fff3dd,#fff3dd);border-radius:8px;padding:8px 10px;margin:0}
.cn-step{border-top:1px solid var(--line);padding-top:12px;display:grid;gap:8px}
.cn-step h5{margin:0;font-size:13px;display:flex;align-items:center;gap:8px}
.cn-step-n{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--blue);color:#fff;font-size:11px;font-weight:800;flex:none}
.cn-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px 16px}
.cn-req{font-weight:400;color:var(--muted)}
@media(max-width:560px){.cn-actions .button{flex:1 1 auto}.cn-actions .cn-remove{margin-left:0}.cn-grid{grid-template-columns:1fr}}

/* Integrations review round 2 (2026-11-19, owner's recording of the pilot) */
/* Page tabs take the width of their words and sit on one row where they fit (they were fixed 176 px pills). */
@media(min-width:561px){.pt-bar{display:flex;flex-wrap:wrap;gap:4px}.pt-tab{flex:0 0 auto;padding:8px 16px;white-space:nowrap}}
/* Check boxes sit right next to their words, in one list. */
.cn-options{display:grid;gap:8px}
.cx-field .cn-check,.cn-check{display:flex;align-items:flex-start;gap:8px;font-size:13px;font-weight:600;color:var(--text);cursor:pointer;text-align:left}
.cn-check input{margin:2px 0 0;flex:none;width:16px;height:16px;accent-color:var(--blue)}
.cn-keyform{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}.cn-keyform .cx-field{min-width:200px}
.cn-keyform input{border:1px solid var(--bd-ccdae7);border-radius:8px;padding:8px 10px;font-size:13px}
/* SLA targets: number boxes in a compact table instead of very wide columns. */
.sl-targets table{width:auto;min-width:min(620px,100%)}.sl-targets td input[type=number]{width:7em}
/* AI transparency: one block per kind of question; long lists folded. */
.ai-order{border:1px solid var(--line);border-radius:10px;padding:10px 14px;margin:8px 0}.ai-order ol{margin:6px 0;padding-left:20px}
.ai-fold summary{cursor:pointer;font-size:12.5px;font-weight:700;color:var(--blue);margin:4px 0}.ai-fold ul{font-size:12.5px;margin:6px 0}
/* The floating "Ask Healstead" button never covers the last lines of a page. */
main{padding-bottom:110px}
/* Compact row action menu (platform companies table, 2026-11-19) */
.row-actions{position:relative;display:inline-block}
.row-actions>summary{list-style:none;cursor:pointer;white-space:nowrap}
.row-actions>summary::-webkit-details-marker{display:none}
.row-actions-list{margin-top:4px;display:flex;flex-direction:column;gap:4px;min-width:12rem;padding:6px;background:var(--bg-ffffff);border:1px solid var(--bd-ccdae7);border-radius:8px}
.row-actions-list .button{justify-content:flex-start;text-align:left;width:100%}
/* Company sign-in page links wrap on phones (2026-11-19) */
.account-links a.text-button{white-space:normal;overflow-wrap:anywhere;text-align:left;min-width:0}

/* Tables in a card that should be as wide as their content, not the card (e.g. AI model hosts). */
.fit-table table{width:auto;min-width:min(560px,100%)}.fit-table td:last-child{text-align:right}

/* Integrations round 3: saved connections get the whole row, so their buttons sit on one line. */
.cn-list{grid-template-columns:1fr}
.ai-cap{font-weight:700;font-size:13px;min-width:12em}
.field-label{display:block;font-size:12px;font-weight:800;color:var(--fg-48647c);margin-top:10px}

/* Resolve / Close / Reopen at the top of the ticket workspace (2026-11-19) */
.sd-statusbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0 12px}
.sd-statusbar form{display:flex;flex-wrap:wrap;gap:8px;width:100%;align-items:flex-start}
.sd-statusbar form label{width:100%}
.sd-statusbar textarea{flex:1 1 280px;min-width:0}
.sd-statusbar p{width:100%;margin:0}
.sd-formmsg{margin:4px 0 0}

/* SIEM destination form: fields never wider than the card, 375 px included (e2e 2026-11-20) */
.roi-siem-add,.roi-siem-add .sl-form,.roi-siem-add .sl-field{min-width:0;max-width:100%}
.roi-siem-add .sl-form{grid-template-columns:minmax(0,1fr)}
.roi-siem-add .sl-field>input,.roi-siem-add .sl-field>select,.roi-siem-add .sl-field>textarea{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.roi-siem-add .inline-actions{flex-wrap:wrap}
.cn-redirect{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px}.cn-redirect code{overflow-wrap:anywhere;min-width:0}
.cn-adv{border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:grid;gap:10px}.cn-adv>summary{cursor:pointer;font-weight:700;font-size:13px}.cn-adv>summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.cn-adv[open]>summary{margin-bottom:6px}

/* Sign-in links: plain text links, no underline; the sign-up note sits on its own line (2026-11-21). */
body.signed-out .account-links a.text-button,body.signed-out .account-note a.text-button{text-decoration:none}
.account-note{margin:0;font-size:12.5px;text-align:center}.account-note a.text-button{white-space:normal}
.host-neutral h1{font-size:24px;line-height:1.3;margin:0 0 8px}
body.signed-out .account-box .button{white-space:normal;max-width:100%}body.signed-out .connect-panel #connectionStatus:empty{display:none}
/* The "no company at this address" page replaces the sign-in layout (body.signed-out main is a two-column grid). */
body.signed-out main.host-neutral{display:block!important;min-height:0;max-width:36rem;margin:15vh auto 0;padding:0 16px}
