/* WellDesk web - the desktop's brand and themes (founder, 9 Oct 2026: "I don't want all the screens black, only the
   home screen; keep the WellDesk brand the same as the desktop").
   Work screens = the desktop's LIGHT theme (app.THEMES["light"]) under the dark product bar (app.HEADER);
   the home = the desktop's dark cockpit. The wordmark is the desktop's (OCR A Extended letters, see wordmark.svg). */
:root, body.work {
  --bg: #EEF2F6; --panel: #FFFFFF; --panel2: #F6F8FB; --line: #D5DEE7; --line2: #C9D4DE; --hover: #E4EBF1;
  --ink: #22313F; --ink2: #33465A; --head: #101C28; --muted: #6B7E8F; --dim: #93A3B1;
  --brand: #146C82; --brand-l: #1A87A2; --neon: #146C82; --neon2: #1A87A2; --glow: #C6DEE7;
  --copper: #C4701A; --accent: #C4701A;
  --ok: #178A4C; --warn: #B57508; --bad: #CC4437; --info: #1D8FB5;
  --ok-bg: #E2F3EA; --warn-bg: #FBF0DC; --bad-bg: #FBE6E3; --info-bg: #E3F1F7; --dim-bg: #EEF2F6;
  --card-grad: #FFFFFF; --shadow: 0 1px 2px rgba(16,28,40,.06), 0 6px 18px rgba(16,28,40,.06);
  --hd-bg: #0B121B; --hd-ink: #DCEDF5; --hd-muted: #6C8496; --hd-line: #1E3242; --hd-neon: #2FD4F2; --hd-glow: #0E4356; --hd-head: #F2FAFF;
  --wm-lead: #146C82; --wm-ink: #101C28; --wm-glow: #C6DEE7;
  --f-display: "Segoe UI Semibold", "Segoe UI", -apple-system, "SF Pro Display", system-ui, sans-serif;
  --f-body: "Segoe UI", -apple-system, "SF Pro Text", system-ui, Roboto, sans-serif;
  --f-mono: Consolas, "SF Mono", ui-monospace, Menlo, monospace;
}
body.home {
  --bg: #0A111A; --panel: #0D1620; --panel2: #0B121B; --line: #1E3242; --line2: #22333F; --hover: #16242F;
  --ink: #DCEDF5; --ink2: #B9CCD8; --head: #F2FAFF; --muted: #6C8496; --dim: #4E6577;
  --neon: #2FD4F2; --neon2: #7FD9EC; --glow: #0E4356; --accent: #F2B705;
  --ok: #3DDC84; --warn: #F5B54A; --bad: #FF6B60; --info: #4CC3E6;
  --ok-bg: rgba(61,220,132,.14); --warn-bg: rgba(245,181,74,.14); --bad-bg: rgba(255,107,96,.14); --info-bg: rgba(47,212,242,.12); --dim-bg: rgba(108,132,150,.14);
  --card-grad: linear-gradient(160deg, #101B27, #0B121B); --shadow: none;
  --wm-lead: #2FD4F2; --wm-ink: #F2FAFF; --wm-glow: #0E4356;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--f-body); }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
#app { min-height: 100vh; display: flex; flex-direction: column; }

@keyframes wd-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes wd-live { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes wd-ring { from { stroke-dashoffset: 264; } to { stroke-dashoffset: var(--off); } }
@keyframes wd-trace { from { stroke-dashoffset: 4000; } to { stroke-dashoffset: 0; } }
@keyframes wd-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wd-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.in { animation: wd-in .45s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .1s; } .d3 { animation-delay: .15s; } .d4 { animation-delay: .2s; } .d5 { animation-delay: .25s; } .d6 { animation-delay: .3s; } .d7 { animation-delay: .35s; } .d8 { animation-delay: .4s; }
.live { animation: wd-live 1.6s ease-in-out infinite; }
.coast { stroke-dasharray: 4000; animation: wd-trace 2.6s ease-out both; }
.ring { stroke-dasharray: 264; animation: wd-ring 1.2s .3s cubic-bezier(.2,.7,.2,1) both; }
.bar { transform-origin: left; animation: wd-grow 1s .2s cubic-bezier(.2,.7,.2,1) both; display: block; height: 100%; border-radius: inherit; }
.mark-pulse { animation: wd-blink 2.2s ease-in-out infinite; }

/* the wordmark (wordmark.svg inlined) */
.wm { display: inline-flex; align-items: center; line-height: 0; }
.wm svg { height: 20px; width: auto; overflow: visible; }
.wm .lead { fill: var(--wm-lead); } .wm .ink { fill: var(--wm-ink); } .wm .glow { fill: var(--wm-glow); }
.top .wm { --wm-lead: var(--hd-neon); --wm-ink: var(--hd-head); --wm-glow: var(--hd-glow); }
.gate .wm svg { height: 26px; }

/* the product bar: dark on every screen, as the desktop's */
.top { display: flex; align-items: center; gap: 20px; padding: 10px 28px; background: var(--hd-bg); color: var(--hd-ink); border-bottom: 2px solid var(--hd-line); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
body.home .top { background: linear-gradient(180deg, #0f151c, #0A111A); border-bottom-color: var(--line); }
.top .back { width: 36px; height: 34px; border-radius: 9px; border: 1px solid var(--hd-line); display: grid; place-items: center; background: transparent; color: var(--hd-ink); cursor: pointer; }
.top .back:hover { border-color: var(--hd-neon); color: var(--hd-neon); }
.top .co { border-left: 1px solid var(--hd-line); padding-left: 16px; line-height: 1.15; }
.top .co b { font-weight: 600; font-size: 14px; display: block; color: var(--hd-head); }
.top .co span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--hd-muted); }
.top .screen { display: flex; align-items: center; gap: 12px; font: 600 13px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--hd-neon); }
.top .screen i { width: 28px; height: 2px; background: currentColor; display: inline-block; }
.top .sp { flex: 1; }
.top .sync { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--hd-muted); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.top .sync i { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; display: inline-block; }
.top .clock { font: 13px var(--f-mono); color: var(--hd-ink); white-space: nowrap; }
.top .clock b { font-size: 20px; color: #fff; font-weight: 400; }
.top .clock span { color: var(--hd-muted); }
.top .who { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid var(--hd-line); }
.top .who .nm { text-align: right; line-height: 1.15; }
.top .who .nm b { font-weight: 600; font-size: 13.5px; display: block; color: var(--hd-head); }
.top .who .nm span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--hd-muted); }
.top .who .av { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font: 600 12.5px var(--f-body); color: #fff; cursor: pointer; }
.notices { display: flex; gap: 10px; padding: 10px 28px 0; flex-wrap: wrap; }
.notice { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; border: 1px solid; }

/* the sign-in card */
.gate { flex: 1; display: grid; place-items: center; padding: 20px; background: var(--bg); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; width: 380px; max-width: 100%; box-shadow: var(--shadow); }
.card .sub { color: var(--muted); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 20px; }
.card label { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 12px 0 5px; }
.card input { width: 100%; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); border-radius: 9px; padding: 10px 12px; font: 15px var(--f-body); }
.card input.pin { font: 20px var(--f-mono); letter-spacing: .5em; text-align: center; }
.card .go { width: 100%; margin-top: 18px; border: 0; background: var(--brand); color: #fff; border-radius: 10px; padding: 12px; font: 600 14px var(--f-body); letter-spacing: .06em; cursor: pointer; }
.card .go:hover { background: var(--brand-l); }
.card .msg { min-height: 20px; color: var(--bad); font-size: 13px; margin-top: 10px; }

/* panels and grids */
.wrap { padding: 16px 28px 0; }
.g2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.g2b { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.g6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .g2, .g2b, .g3, .g4 { grid-template-columns: 1fr; } .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wrap, .top, .notices, .foot { padding-left: 16px; padding-right: 16px; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px 14px; position: relative; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow); }
.ph { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ph i.tick { width: 3px; height: 15px; background: var(--copper); display: inline-block; align-self: center; }
.ph i.tick.red { background: var(--bad); } .ph i.tick.gold { background: var(--copper); }
.ph .lab { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ph .sub { font-size: 12px; color: var(--dim); }
.ph .sp { flex: 1; }
.ph .kpis { display: flex; gap: 18px; font: 600 12.5px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.ph .kpis b { color: var(--neon); font-size: 15px; }
.foot-note { position: absolute; right: 20px; bottom: 12px; font-size: 11px; color: var(--dim); }

/* the map (home) */
.mapgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; margin-top: 8px; }
@media (max-width: 1000px) { .mapgrid { grid-template-columns: 1fr; } }
.map { width: 100%; height: auto; display: block; border-radius: 10px; }
.prog-list { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.prog-list .lab { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.prow { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; transition: background .18s; }
.prow:hover { background: var(--hover); }
.prow .u { font: 12.5px var(--f-mono); color: var(--neon); }
.prow .w { font-size: 13px; line-height: 1.25; } .prow .w b { font-weight: 600; } .prow .w span { color: var(--muted); } .prow .w small { font-size: 11.5px; color: var(--muted); display: block; }
.prow .st { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.yardline { font-size: 11.5px; color: var(--dim); margin-top: 6px; } .yardline a { color: var(--muted); text-decoration: underline; }
.empty { color: var(--muted); font-size: 13.5px; padding: 10px 0; }

/* the numbers */
.nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 26px; margin-top: 14px; }
.num { border-bottom: 1px solid var(--line); padding: 6px 0 8px; }
.num small { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.num b { font: 600 36px/1.05 var(--f-display); color: var(--head); }
.num b span { font-size: 16px; color: var(--dim); font-weight: 400; }
.num b.cyan { color: var(--neon); } .num b.ok { color: var(--ok); } .num b.warn { color: var(--warn); } .num b.bad { color: var(--bad); } .num b.info { color: var(--neon2); }
.rings { display: flex; gap: 26px; margin-top: 18px; align-items: center; flex-wrap: wrap; }
.rings .t { line-height: 1.3; } .rings .t small { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); } .rings .t span { font-size: 13px; color: var(--ink2); }
.ringtrack { stroke: var(--line); } .ringtext { fill: var(--head); }
.cta { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: 16px; padding: 9px 15px; border-radius: 10px; border: 1px solid var(--accent); color: var(--accent); font: 600 12.5px var(--f-body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; background: none; }
.cta:hover { background: var(--hover); }

/* the doors (home) */
.svcs { display: flex; align-items: center; gap: 14px; margin: 22px 0 12px; }
.svcs i { width: 34px; height: 3px; background: var(--copper); display: inline-block; }
.svcs b { font: 600 13px var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: var(--ink2); }
.svcs span { flex: 1; } .svcs small { font-size: 11.5px; color: var(--dim); }
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-bottom: 30px; }
@media (max-width: 1000px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.door { display: block; position: relative; overflow: hidden; min-height: 150px; padding: 16px 18px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-grad); text-align: left; cursor: pointer; transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s; }
.door:hover { transform: translateY(-4px); border-color: #3b4e63; box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(242,183,5,.25); }
.door .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.door .n { display: flex; justify-content: space-between; align-items: center; font: 11px var(--f-mono); color: var(--dim); }
.door .n i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.door .t { display: block; font: 600 20px/1.15 var(--f-display); margin-top: 6px; color: var(--head); }
.door .d { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.door .k { display: flex; gap: 18px; margin-top: 14px; font-size: 10.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.door .k b { display: block; font: 600 18px var(--f-display); color: var(--head); letter-spacing: 0; }
.door .m { position: absolute; right: 14px; bottom: 4px; font: 700 52px/1 var(--f-display); opacity: .12; letter-spacing: -.02em; }

/* tiles, lists, tables, forms */
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; min-width: 0; box-shadow: var(--shadow); }
.tile small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tile .big { font: 600 32px/1.1 var(--f-display); margin-top: 6px; color: var(--head); }
.tile .big span { font-size: 14px; color: var(--muted); font-weight: 400; }
.tile .note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.track { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 10px; display: flex; }
.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.list .row { display: grid; gap: 12px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; border-radius: 6px; transition: background .18s; }
.list .row:hover { background: var(--hover); }
.list .row .u { font: 12.5px var(--f-mono); color: var(--brand); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pill { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; font-weight: 600; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.info { background: var(--info-bg); color: var(--info); } .pill.dim { background: var(--dim-bg); color: var(--muted); }
.tabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line2); background: var(--panel); color: var(--ink2); border-radius: 999px; padding: 7px 16px; font: 600 12.5px var(--f-body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.tab:hover { border-color: var(--brand); }
.tab.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn { padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line2); font-size: 13px; color: var(--ink2); background: var(--panel); cursor: pointer; }
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--brand-l); color: #fff; }
.btn.copper { background: var(--copper); border-color: var(--copper); color: #fff; font-weight: 600; }
.btn.danger { color: var(--bad); border-color: var(--bad-bg); }
.btn[disabled] { opacity: .5; cursor: default; }
.ucard { display: block; position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 12px 14px; overflow: hidden; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; min-width: 0; box-shadow: var(--shadow); }
.ucard:hover { transform: translateY(-2px); border-color: var(--brand); }
.ucard .h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ucard .h .u { font: 600 13px var(--f-mono); color: var(--brand); }
.ucard .who { display: block; font: 600 16px/1.15 var(--f-display); color: var(--head); }
.ucard .wh { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ucard .cut { display: block; font-size: 11.5px; margin-top: 6px; }
.ucard svg { display: block; width: 100%; height: 56px; margin: 8px 0 6px; }
.wire { display: block; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 10px 12px; cursor: pointer; transition: transform .2s, border-color .2s; }
.wire:hover { transform: translateY(-2px); border-color: var(--brand); }
.wire .h { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--muted); }
.wire .h .u { font: 600 12.5px var(--f-mono); color: var(--head); }
.wire .tr { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 8px; }
.wire .f { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; } .wire .f b { font-weight: 600; } .wire .f span { color: var(--dim); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 9px 8px 7px 0; border-bottom: 1px solid var(--line2); position: sticky; top: 0; background: var(--panel); }
.table td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr.r { cursor: pointer; } .table tr.r:hover td { background: var(--hover); }
.table td.u { font: 600 12.5px var(--f-mono); color: var(--brand); white-space: nowrap; }
.table td.mono { font: 12px var(--f-mono); white-space: nowrap; }
.table td small { display: block; font-size: 11.5px; color: var(--muted); }
.form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.form.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form label { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.form input, .form select, .form textarea, input.field, select.field { width: 100%; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); border-radius: 8px; padding: 8px 10px; font: 13.5px var(--f-body); }
.form textarea { min-height: 64px; resize: vertical; }
.form .full { grid-column: 1 / -1; }
.formbar { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.formbar .msg { font-size: 12.5px; }
.sheet { position: fixed; inset: 0; background: rgba(16,28,40,.35); display: grid; place-items: center; z-index: 30; padding: 20px; }
.sheet .panel { width: 720px; max-width: 100%; max-height: calc(100vh - 40px); overflow: auto; }
.foot { margin-top: auto; display: flex; align-items: center; gap: 18px; padding: 9px 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); flex-wrap: wrap; background: var(--panel); }
body.home .foot { background: transparent; }
.foot .sp { flex: 1; } .foot .mono { font-family: var(--f-mono); }
.foot i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 8px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 120px); background: var(--head); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 13.5px; visibility: hidden; transition: transform .25s, visibility .25s; z-index: 40; }
.toast.on { transform: translate(-50%, 0); visibility: visible; }

/* ---- parts & store (the desktop's PartsStore) */
.psearch { display: flex; align-items: center; gap: 8px; border: 1px solid var(--brand); background: var(--panel); border-radius: 999px; padding: 5px 14px; margin-left: 10px; color: var(--muted); }
.psearch input { border: 0; outline: 0; background: transparent; font: 13.5px var(--f-body); color: var(--ink); width: 250px; }
.psearch span { font-size: 11.5px; color: var(--brand); font-weight: 600; white-space: nowrap; }
.pscope { font-size: 12px; color: var(--muted); }
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.pside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 70px; }
.psec { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; font-size: 12.5px; color: var(--muted); }
.psec i { width: 3px; height: 14px; background: var(--brand); }
.psec b { color: var(--brand); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.kgrid { columns: 300px; column-gap: 12px; margin-bottom: 6px; }
.kgrid .kcard { break-inside: avoid; margin-bottom: 12px; }
.kcard { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.kcard:hover { border-color: var(--brand); box-shadow: 0 2px 4px rgba(16,28,40,.06), 0 10px 26px rgba(20,108,130,.12); }
.kbar { display: block; height: 3px; }
.khd { display: flex; align-items: center; gap: 10px; padding: 10px 12px 6px; cursor: pointer; }
.khd img { width: 80px; height: auto; flex: none; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.kcard:hover .khd img { transform: translateX(3px); }
.kname { flex: 1; min-width: 0; }
.kname b { display: block; font: 700 14.5px var(--f-mono); color: var(--head); }
.kname small, .kdue small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kdue { text-align: right; flex: none; }
.kdue b { font: 600 14px var(--f-display); }
.kkit { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2,.7,.2,1); }
.kkit > div { overflow: hidden; padding: 0 12px; }
.kcard.open .kkit { grid-template-rows: 1fr; }
.kcard.open .kkit > div { padding-bottom: 4px; }
.kln, .sln { display: grid; grid-template-columns: 18px 10px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 4px 0; font-size: 12.5px; border-top: 1px dashed var(--line); cursor: pointer; }
.sln { grid-template-columns: 18px 10px 130px minmax(0, 1fr) auto 130px; padding: 7px 0; border-top: 1px solid var(--line); }
.sln:first-child { border-top: 0; }
.sln small { display: block; font-size: 11.5px; color: var(--muted); }
.sln.dim { cursor: default; opacity: .75; }
.kln input, .sln input { accent-color: var(--brand); width: 15px; height: 15px; margin: 0; }
.kno { font: 600 12px var(--f-mono); color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kdesc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.kq { font: 12px var(--f-mono); color: var(--muted); white-space: nowrap; }
.kst { font-size: 11px; white-space: nowrap; text-align: right; }
.kft { display: flex; align-items: center; gap: 10px; padding: 8px 12px 11px; border-top: 1px solid var(--line); }
.kmute { font-size: 11.5px; color: var(--muted); }
.klink { border: 0; background: none; padding: 0; font: 600 12px var(--f-body); color: var(--muted); cursor: pointer; }
.klink.on, .klink:hover { color: var(--brand); }
.psend .pcount { font: 600 30px var(--f-display); color: var(--head); margin-top: 6px; }
.psend .pcount b { font-weight: 600; }
.psend .note, .pside .note { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.plist { margin-top: 8px; font-size: 12px; }
.plist div { padding: 3px 0; border-bottom: 1px dashed var(--line); }
.plist span { color: var(--muted); margin-left: 6px; }
.mono { font-family: var(--f-mono); }
.lowst { background: var(--bad-bg); color: var(--bad); font-weight: 600; padding: 2px 6px; border-radius: 5px; }
.padd { border: 1px solid var(--brand); background: var(--panel); color: var(--brand); border-radius: 7px; padding: 4px 10px; font: 600 11.5px var(--f-body); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.padd:hover, .padd.on { background: var(--brand); color: #fff; }
.ugrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 14px; align-items: start; }
.cov { display: inline-block; width: 46px; height: 5px; border-radius: 3px; background: var(--line); margin-right: 8px; vertical-align: middle; overflow: hidden; }
.cov i { display: block; height: 100%; background: var(--c); border-radius: inherit; }
.ubars { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.ubar { display: grid; grid-template-columns: 70px 1fr 44px; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 5px 4px; border-radius: 6px; transition: background .15s; }
.ubar:hover { background: var(--hover); }
.ubar b { font: 600 12.5px var(--f-mono); color: var(--head); grid-row: 1; }
.ubar small { grid-column: 1; grid-row: 2; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ubar .utrack { grid-column: 2; grid-row: 1 / span 2; }
.ubar em { grid-column: 3; grid-row: 1 / span 2; font: 600 12px var(--f-body); font-style: normal; text-align: right; }
.utrack { position: relative; height: 10px; border-radius: 5px; background: var(--panel2); border: 1px solid var(--line); }
.utrack .bar { border-radius: 5px; }
.utrack i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--head); border-radius: 1px; }
.ustory { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--warn); background: var(--warn-bg); font-size: 12.5px; color: var(--ink); border-radius: 0 8px 8px 0; }
.mbars { display: flex; align-items: flex-end; gap: 14px; height: 150px; margin-top: 10px; padding: 0 6px; }
.mbars > div { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.mbars em { font: 600 11.5px var(--f-body); font-style: normal; color: var(--head); margin-bottom: 4px; }
.mbars .mb { width: 70%; border-radius: 6px 6px 2px 2px; transform-origin: bottom; animation: wd-rise .9s .15s cubic-bezier(.2,.7,.2,1) both; }
.mbars small { font-size: 11px; color: var(--muted); margin-top: 5px; }
@keyframes wd-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (max-width: 1200px) { .pgrid, .ugrid { grid-template-columns: 1fr; } .pside { position: static; } }
.kpart { min-width: 0; line-height: 1.25; }
.kpart b { display: block; font: 600 12px var(--f-mono); color: var(--head); }
.kpart small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .big span.cnt { font-size: inherit; color: inherit; font-weight: inherit; }

/* ---- readings (the desktop's Readings: one dial per engine) */
.rlab { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-left: 4px; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; margin-bottom: 16px; grid-auto-flow: dense; }
.rcard { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 8px 10px; text-align: center; transition: border-color .2s, transform .2s; }
.rcard:hover { border-color: var(--brand); }
.rcard.wide { grid-column: span 2; }
.rcard .beacon { position: absolute; top: 10px; right: 12px; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 3px var(--panel2); }
.rhd b { display: block; font: 700 14px var(--f-mono); color: var(--head); }
.rhd small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 16px; }
.rmeters { display: flex; justify-content: space-around; gap: 6px; margin-top: 2px; }
.meter { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.meter .mlab { font-size: 10.5px; color: var(--muted); max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.meter .dial { display: block; margin-top: 2px; }
.darc { animation: wd-dial 1.1s .2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes wd-dial { from { stroke-dasharray: 0 var(--c); } }
.meter .mleft { font: 600 13px var(--f-display); margin-top: 2px; }
.meter:not(.big) .mleft { font-size: 12px; }
.meter .mnext { font-size: 11px; color: var(--muted); max-width: 180px; }
.mbox { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.mbox input { width: 112px; text-align: center; border: 1px solid var(--line2); border-radius: 8px; padding: 6px 8px; font: 700 13.5px var(--f-mono); color: var(--head); background: var(--panel2); }
.meter:not(.big) .mbox input { width: 86px; }
.mbox input::placeholder { font: 12px var(--f-body); color: var(--dim); }
.mbox input:focus { outline: 0; border-color: var(--brand); background: var(--panel); }
.mbox input.bad { border-color: var(--bad); color: var(--bad); }
.msave { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel); color: var(--dim); display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.msave.armed { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--glow); }
.msave.red { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.meter .mnote { font-size: 10.5px; min-height: 14px; margin-top: 3px; }

/* ---- operations dashboard */
.oprow i { width: 4px; height: 30px; border-radius: 2px; display: block; }
.ychips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ychip { font: 12px var(--f-mono); border: 1px solid var(--line2); border-radius: 6px; padding: 4px 9px; color: var(--ink2); transition: border-color .15s, background .15s; }
.ychip:hover { border-color: var(--brand); background: var(--hover); }
.ychip.warn { border-color: var(--warn); color: var(--warn); }
.ychip span { color: inherit; opacity: .85; }
.otable td { vertical-align: middle; padding-top: 12px; padding-bottom: 12px; }
.svcname { display: flex; align-items: center; gap: 10px; font: 600 14px var(--f-display); color: var(--head); white-space: nowrap; }
.svcname i { width: 4px; height: 26px; border-radius: 2px; }
.big2 { font: 600 22px var(--f-mono); color: var(--head); }
.mtrack { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 5px; width: 120px; }
.spark { width: 140px; height: 32px; display: block; overflow: visible; }
.hbars { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.hb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px; gap: 10px; align-items: center; font-size: 12.5px; }
.hb span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb .mtrack { width: auto; margin: 0; height: 7px; border-radius: 4px; }
.hb b { font: 600 12px var(--f-mono); text-align: right; color: var(--head); }
.panel > .kmute { display: block; }

/* ---- service homes */
.svhero { display: flex; align-items: center; gap: 18px; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--acc); border-radius: 14px; padding: 18px 22px; box-shadow: var(--shadow); flex-wrap: wrap; }
.svhero .mono2 { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; font: 700 20px var(--f-mono); color: #fff; background: var(--acc); letter-spacing: .04em; }
.svhero h1 { margin: 0; font: 600 24px var(--f-display); color: var(--head); }
.svhero p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.svk { display: flex; gap: 22px; }
.svk span { display: flex; flex-direction: column; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.svk b { font: 600 24px var(--f-mono); color: var(--head); letter-spacing: 0; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.app { text-align: left; display: flex; flex-direction: column; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 14px; cursor: pointer; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.app::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--acc); transform: scaleY(0); transform-origin: top; transition: transform .25s; }
.app:not(.off):hover { transform: translateY(-3px); border-color: var(--acc); box-shadow: 0 2px 4px rgba(16,28,40,.06), 0 14px 30px rgba(16,28,40,.12); }
.app:not(.off):hover::before { transform: scaleY(1); }
.app .ai { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--panel2); color: var(--acc); border: 1px solid var(--line); margin-bottom: 6px; }
.app b { font: 600 16px var(--f-display); color: var(--head); }
.app small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.app em { font-style: normal; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); font-weight: 700; margin-top: 8px; }
.app.off { cursor: default; opacity: .62; box-shadow: none; background: var(--panel2); }
.app.off em { color: var(--dim); }
.app.off .ai { color: var(--dim); }
.door.locked { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }
/* ---- a service's board */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 14px; }
.bunit { text-align: left; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 10px 12px 12px; cursor: pointer; transition: transform .2s, border-color .2s; }
.bunit:hover:not([disabled]) { transform: translateY(-2px); border-color: var(--brand); }
.bunit[disabled] { cursor: default; }
.bunit img { width: 100%; max-width: 170px; height: auto; margin-bottom: 4px; }
.bunit img.parked { filter: grayscale(1) opacity(.5); }
.bunit b { font: 700 14px var(--f-mono); color: var(--head); }
.bunit .bw { font: 600 14px var(--f-display); color: var(--brand); }
.bunit small { font-size: 11.5px; color: var(--muted); }
.ychip[disabled] { cursor: default; }
button.ychip { background: var(--panel); cursor: pointer; }
.act { display: grid; grid-template-columns: 70px repeat(var(--n), minmax(0, 1fr)); gap: 3px; margin-top: 12px; align-items: center; }
.act small { font-size: 10px; color: var(--muted); text-align: center; }
.act small.fri { color: var(--copper); font-weight: 700; }
.act b { font: 600 11.5px var(--f-mono); color: var(--head); }
.act i { height: 16px; border-radius: 3px; background: var(--panel2); border: 1px solid var(--line); transition: transform .15s; }
.act i.on { border-color: transparent; animation: wd-in .4s both; }
.act i:hover { transform: scale(1.15); }
.notice-s { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--info-bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }
.notice-s .btn { margin-left: auto; }
/* ---- maintenance status */
.srows { display: flex; flex-direction: column; margin-top: 6px; }
.srow { display: grid; grid-template-columns: 210px minmax(0, 1fr) 210px; gap: 16px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.sl { display: grid; grid-template-columns: 4px 1fr; column-gap: 10px; }
.sl .sbar { grid-row: 1 / span 3; border-radius: 2px; }
.sl .u { font: 700 13.5px var(--f-mono); color: var(--brand); }
.sl small { font-size: 11.5px; color: var(--muted); }
.sl b { font-size: 11px; letter-spacing: .08em; }
.sm > div { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 2px 0; }
.sm em { font-style: normal; width: 66px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.spill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel2); border-radius: 999px; padding: 3px 10px 3px 8px; font-size: 11.5px; color: var(--ink); cursor: pointer; transition: border-color .15s; }
.spill:hover { border-color: var(--brand); }
.spill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.spill span { color: var(--muted); }
.spill.red { background: var(--bad-bg); border-color: transparent; } .spill.red i { background: var(--bad); }
.spill.amber { background: var(--warn-bg); border-color: transparent; } .spill.amber i { background: var(--warn); }
.spill.info i { background: var(--info); } .spill.dim i { background: var(--dim); }
.sn { display: flex; flex-direction: column; text-align: right; }
.sn b { font: 600 13px var(--f-display); }
.sn small { font-size: 11.5px; color: var(--muted); }
/* ---- who sees what, members */
.stiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stiles div { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.stiles small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stiles b { font: 600 20px var(--f-mono); color: var(--head); }
.scomp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.sc { display: grid; grid-template-columns: 8px 1fr; column-gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; transition: border-color .15s; }
.sc:hover { border-color: var(--brand); }
.sc i { grid-row: 1 / span 2; width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; }
.sc b { font-size: 12.5px; font-weight: 600; color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc small { font-size: 11px; color: var(--muted); }
.sc.dimmed { opacity: .45; border-style: dashed; }
.mav { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--glow); color: var(--brand); font: 700 11px var(--f-body); }

.suprow { display: grid; grid-template-columns: 1fr 1fr 36px; gap: 8px; margin-top: 6px; }
.suprow .btn { padding: 6px 0; }
.app em, .app .ai { color: color-mix(in srgb, var(--acc) 72%, #0B121B); }

/* ---- the company home, polished (9 Oct 2026) */
.hhero { display: flex; align-items: flex-end; gap: 20px; margin: 6px 0 16px; flex-wrap: wrap; }
.hhero small { font: 600 11px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hhero h1 { margin: 4px 0 2px; font: 600 34px/1.1 var(--f-display); color: var(--head); letter-spacing: -.01em; }
.hhero p { margin: 0; color: var(--muted); font-size: 13px; }
.hlive { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.hlive span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(47,212,242,.05); border-radius: 999px; padding: 7px 14px; font: 600 12px var(--f-body); color: var(--ink2); }
.hlive i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.hgrid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(330px, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1100px) { .hgrid { grid-template-columns: 1fr; } }
.hmap { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(120% 90% at 32% 45%, #0e1d2b 0%, #08111a 55%, #04080d 100%); height: 600px; box-shadow: 0 0 0 1px rgba(47,212,242,.04), 0 20px 60px rgba(0,0,0,.45); }
.hmap .map { border-radius: 0; width: 100%; height: 100%; display: block; }
.hmap .dt { fill: #1f3d51; }
.hmap .dt.fl { fill: #2c5873; }
.hmap .dt.on { fill: #2fd4f2; filter: drop-shadow(0 0 2px rgba(47,212,242,.9)); }
.hmap .dt.tw { animation: wd-tw 5s ease-in-out infinite; }
@keyframes wd-tw { 0%, 100% { fill: #1f3d51; } 50% { fill: #7fd9ec; } }
.hmap .dots { animation: wd-fade 1.6s ease-out both; }
@keyframes wd-fade { from { opacity: 0; } to { opacity: 1; } }
.fpulse { animation: wd-breathe 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes wd-breathe { 0%, 100% { opacity: .65; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
.sweep { transform-box: view-box; animation: wd-spin 11s linear infinite; }
@keyframes wd-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.flab text { fill: #5a7487; }
.flab.on > text { fill: #dcedf5; }
.map .pulse { transform-box: fill-box; transform-origin: center; animation: wd-ping 2.4s ease-out infinite; }
@keyframes wd-ping { 0% { transform: scale(.4); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }
.map .mk { animation: wd-in .6s cubic-bezier(.2,.7,.2,1) both; }
.glass { position: absolute; background: rgba(9,17,26,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(47,212,242,.16); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.gprog { top: 50%; transform: translateY(-50%); right: 16px; width: 262px; padding: 14px 14px 12px; max-height: calc(100% - 64px); overflow: auto; }
.glab { font: 600 10.5px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--neon); margin-bottom: 8px; }
.gprow { display: grid; grid-template-columns: 54px 1fr 8px; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 9px; transition: background .15s; }
.gprow:hover { background: rgba(47,212,242,.08); }
.gprow .u { font: 700 12px var(--f-mono); color: var(--neon); }
.gprow .w b { display: block; font-size: 13px; font-weight: 600; color: var(--head); }
.gprow .w small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gprow i { width: 8px; height: 8px; border-radius: 50%; }
.gmore, .gempty { font-size: 12px; color: var(--muted); padding: 6px 8px; }
.gyard { border-top: 1px solid rgba(47,212,242,.12); margin-top: 8px; padding-top: 8px; font-size: 11.5px; color: var(--dim); }
.mapcap { position: absolute; left: 18px; bottom: 12px; font: 600 10px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #4e6577; }
.hside { background: var(--card-grad); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; }
.hnums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.hnum { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,.015); transition: border-color .2s, transform .2s; }
.hnum:hover { border-color: rgba(47,212,242,.35); transform: translateY(-1px); }
.hnum small { display: block; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.hnum b { font: 600 32px/1.1 var(--f-display); color: var(--head); }
.hnum b span { font-size: 15px; color: var(--dim); font-weight: 400; }
.hnum b.cyan { color: var(--neon); } .hnum b.ok { color: var(--ok); } .hnum b.warn { color: var(--warn); } .hnum b.bad { color: var(--bad); } .hnum b.info { color: var(--neon2); }
.hrings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.hring { display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px 10px; }
.hring b { font: 600 12px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); margin-top: 4px; }
.hring small { font-size: 11.5px; color: var(--muted); }
.hcta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.hcta .cta { margin-top: 0; }

@media (max-width: 1100px) { .hmap { height: 520px; } }

/* the wire rings */
.wire.wr { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 10px 12px; }
.wire.wr .h { width: 100%; }
.wire.wr .wring { margin: 6px 0 2px; }
.wire.wr .f { width: 100%; justify-content: center; gap: 8px; }
.wring .ring { filter: drop-shadow(0 0 3px rgba(0,0,0,.08)); }
/* the map with its tags in the margins, the program under it (9 Oct 2026) */
.hmap { height: auto; display: flex; flex-direction: column; }
.hmap .mapbox { position: relative; }
.hmap .map { height: auto; }
.gstrip { border-top: 1px solid rgba(47,212,242,.12); background: rgba(9,17,26,.6); padding: 12px 16px 14px; }
.gstrip .glab { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.gstrip .glab span { font: 500 11px var(--f-body); letter-spacing: 0; text-transform: none; color: var(--dim); margin-left: auto; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.gcards .gprow { border: 1px solid rgba(47,212,242,.12); background: rgba(47,212,242,.03); }
.map .lead { stroke-dasharray: 600; animation: wd-lead 1.2s .5s ease-out both; }
@keyframes wd-lead { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
/* the Slick Line board: the desktop's unit drawings instead of the first placeholder trucks */
.ucard .utruck { display: block; width: 100%; max-width: 230px; height: auto; margin: 6px auto 8px; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.ucard:hover .utruck { transform: translateX(4px); }
.ytruck { width: 48px; height: auto; flex: none; opacity: .75; filter: grayscale(.4); }
/* ---- the program builder */
.cgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .cgrid { grid-template-columns: 1fr; } }
.ctable th { white-space: nowrap; }
.ctable td { padding: 3px 4px 3px 0; border-bottom: 0; vertical-align: middle; }
.ctable input.field { padding: 6px 8px; font-size: 12.5px; min-width: 70px; }
.ctable td:nth-child(2) input { font-family: var(--f-mono); font-weight: 700; min-width: 90px; }
.ctable td:nth-child(3) input { min-width: 130px; }
.ctable td:nth-child(10) input { min-width: 170px; }
.ctable .cnum { width: 26px; text-align: right; padding-right: 8px; }
.ctable .btn { padding: 5px 9px; }
.ctable td:nth-child(7) input, .ctable td:nth-child(8) input { min-width: 104px; }

/* ---- the asset page, technical */
.apgrid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 28px; }
@media (max-width: 1100px) { .apgrid { grid-template-columns: 1fr; } }
.apleft { display: flex; flex-direction: column; gap: 12px; }
.appic { padding: 10px; display: grid; place-items: center; min-height: 190px; background-image: linear-gradient(var(--panel2) 1px, transparent 1px), linear-gradient(90deg, var(--panel2) 1px, transparent 1px); background-size: 32px 32px; }
.appic img { max-width: 100%; max-height: 210px; height: auto; animation: wd-in .6s cubic-bezier(.2,.7,.2,1) both; }
.apcat { font: 600 22px var(--f-display); color: var(--line2); letter-spacing: .1em; }
.aptitle { font: 600 22px/1.2 var(--f-display); color: var(--head); margin-top: 8px; }
.apsub { font-size: 12.5px; color: var(--muted); margin-top: 2px; } .apsub a { color: var(--brand); }
.kv { display: flex; flex-direction: column; margin-top: 8px; }
.kvr { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 13px; align-items: baseline; }
.kvr:last-child { border-bottom: 0; }
.kvr span { color: var(--muted); font-size: 12px; }
.kvr b { font-weight: 600; color: var(--head); } .kvr b a { color: var(--brand); }
.apdocs { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.apdocs a { display: grid; grid-template-columns: 20px 1fr; column-gap: 6px; padding: 6px 8px; border-radius: 8px; color: var(--brand); transition: background .15s; }
.apdocs a:hover { background: var(--hover); }
.apdocs b { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apdocs small { grid-column: 2; font-size: 11px; color: var(--muted); }
.apbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); position: sticky; bottom: 10px; }
.aprq { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; margin-top: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; font-size: 13px; }
.plancard { position: relative; margin-bottom: 10px; padding-left: 24px; overflow: hidden; }
.plancard .pbar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.plancard .ptitle { font: 600 16px var(--f-display); color: var(--head); }
.pmeta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.pmeta b { color: var(--head); font-weight: 600; }
.ptasks { margin-top: 8px; font-size: 12.5px; color: var(--ink2); white-space: pre-line; line-height: 1.5; }
.tsimg { width: 100%; height: auto; display: block; margin-top: 10px; border-radius: 8px; border: 1px solid var(--line); }
.lab2 { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.sprow { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; margin-top: 4px; }
.cnrow { display: grid; grid-template-columns: 1.3fr 1fr 60px 1.1fr; gap: 6px; margin-top: 4px; }
.pk3 { align-items: start; }
.pkready { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.rdy { display: grid; grid-template-columns: 54px 1fr; gap: 8px; font-size: 12.5px; line-height: 1.4; }
.rdy b { font-size: 11px; letter-spacing: .08em; }
.pkmid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 14px; margin-top: 14px; align-items: start; }
@media (max-width: 1300px) { .pkmid { grid-template-columns: 1fr; } }
.pksubs { margin-top: 8px; max-height: 560px; overflow: auto; }
.pksubs details { border-bottom: 1px solid var(--line); }
.pksubs summary { display: grid; grid-template-columns: 1fr auto 30px; gap: 10px; padding: 9px 4px; cursor: pointer; list-style: none; font-size: 13px; }
.pksubs summary::-webkit-details-marker { display: none; }
.pksubs summary b { font-weight: 600; color: var(--head); } .pksubs summary em { font-style: normal; color: var(--muted); text-align: right; font-size: 12px; }
.pkpart { display: grid; grid-template-columns: 130px 1fr 44px 60px; gap: 8px; padding: 6px 4px 6px 14px; font-size: 12.5px; cursor: pointer; border-radius: 6px; align-items: center; }
.pkpart:hover { background: var(--hover); } .pkpart.sel { background: var(--glow); }
.pkpart .mono { font-size: 12px; color: var(--brand); }
.pkdwg { position: sticky; top: 70px; }
.dwtabs { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0; }
.dwt { border: 1px solid var(--line2); background: var(--panel); border-radius: 999px; padding: 3px 10px; font: 11.5px var(--f-mono); color: var(--ink2); cursor: pointer; }
.dwt.on { background: var(--brand); border-color: var(--brand); color: #fff; } .dwt.off { opacity: .45; }
.dwbox { border: 1px solid var(--line); border-radius: 10px; background: #fff; min-height: 360px; display: grid; place-items: center; overflow: auto; max-height: 640px; }
.dwbox img { width: 100%; height: auto; transition: opacity .2s; }
.ckbody { columns: 2; column-gap: 28px; margin-top: 12px; }
@media (max-width: 1000px) { .ckbody { columns: 1; } }
.ckstep { display: flex; gap: 8px; break-inside: avoid; padding: 5px 0; font-size: 13px; line-height: 1.45; cursor: pointer; }
.ckstep input { accent-color: var(--brand); margin-top: 3px; }
.ckstep em { font-style: normal; color: var(--muted); font-family: var(--f-mono); font-size: 11.5px; }
