:root {
  --bg: #f3f4f6;
  --bg-gradient: radial-gradient(1200px 600px at 20% -10%, #e9ecf5 0%, #f3f4f6 55%);
  --bar: rgba(20, 20, 22, .97);
  --bar-text: #fafafa;
  --bar-muted: #a6a9af;
  --bar-border: #000;
  --bar-btn: #26272a;
  --bar-btn-border: #3a3c40;
  --bar-btn-hover: #313235;
  --tabs-bg: #1b1c1e;
  --tabs-border: #000;
  --panel: #ffffff;
  --panel-2: #f6f7f9;
  --panel-3: #e9ebef;
  --border: #e3e5e9;
  --border-strong: #cfd2d8;
  --text: #141416;
  --text-2: #4b4f56;
  --muted: #7d828c;
  --blue: #3751cb;
  --blue-hover: #2f45b0;
  --blue-soft: rgba(55, 81, 203, .12);
  --ok: #178a4f;
  --ok-strong: #22a45d;
  --ok-soft: rgba(34, 164, 93, .13);
  --ok-glow: rgba(34, 164, 93, .35);
  --warn: #b4650a;
  --warn-strong: #e59f0c;
  --warn-soft: rgba(229, 159, 12, .15);
  --warn-glow: rgba(229, 159, 12, .35);
  --off: #d43636;
  --off-strong: #e04848;
  --off-soft: rgba(212, 54, 54, .12);
  --off-glow: rgba(212, 54, 54, .4);
  --inactive: #6b7079;
  --inactive-strong: #9aa0aa;
  --inactive-soft: rgba(154, 160, 170, .18);
  --v-ok: linear-gradient(135deg, #1a8f52, #22a45d);
  --v-bad: linear-gradient(135deg, #b42b2b, #d43636);
  --v-warn: linear-gradient(135deg, #a45c05, #e59f0c);
  --v-border: transparent;
  --shadow-sm: 0 1px 2px rgba(20, 20, 22, .05);
  --shadow-md: 0 2px 4px rgba(20, 20, 22, .06), 0 12px 32px rgba(20, 20, 22, .10);
  --radius: 18px;
  --font: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d0e10;
  --bg-gradient: radial-gradient(1200px 600px at 20% -10%, #1a1d26 0%, #0d0e10 55%);
  --bar: rgba(13, 14, 16, .88);
  --bar-text: #f3f4f6;
  --bar-muted: #7d828c;
  --bar-border: #272a31;
  --bar-btn: #1e2025;
  --bar-btn-border: #353942;
  --bar-btn-hover: #262930;
  --tabs-bg: #121316;
  --tabs-border: #272a31;
  --panel: #17181c;
  --panel-2: #1e2025;
  --panel-3: #262930;
  --border: #272a31;
  --border-strong: #353942;
  --text: #f3f4f6;
  --text-2: #b9bcc4;
  --muted: #7d828c;
  --blue: #5b74ff;
  --blue-hover: #4b63f0;
  --blue-soft: rgba(91, 116, 255, .16);
  --ok: #2ed47a;
  --ok-strong: #2ed47a;
  --ok-soft: rgba(46, 212, 122, .14);
  --ok-glow: rgba(46, 212, 122, .6);
  --warn: #f6b23c;
  --warn-strong: #f6b23c;
  --warn-soft: rgba(246, 178, 60, .14);
  --warn-glow: rgba(246, 178, 60, .55);
  --off: #ff5a5a;
  --off-strong: #ff5a5a;
  --off-soft: rgba(255, 90, 90, .16);
  --off-glow: rgba(255, 90, 90, .7);
  --inactive: #8a8f99;
  --inactive-strong: #8a8f99;
  --inactive-soft: rgba(138, 143, 153, .16);
  --v-ok: linear-gradient(135deg, #123a26 0%, #0f1a14 60%, #17181c 100%);
  --v-bad: linear-gradient(135deg, #4a1515 0%, #22100f 60%, #17181c 100%);
  --v-warn: linear-gradient(135deg, #4a3410 0%, #231a0c 60%, #17181c 100%);
  --v-border: rgba(255, 255, 255, .08);
  --shadow-sm: none;
  --shadow-md: 0 14px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg-gradient) fixed, var(--bg); color: var(--text); font-family: var(--font); font-size: 13.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; transition: background .2s, color .2s; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: -.01em; }
h2 { font-size: 19px; font-weight: 600; }
h3 { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); }
code { font-family: var(--mono); font-size: 11.5px; background: var(--panel-3); padding: 1px 6px; border-radius: 6px; color: var(--text-2); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.lic { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.c-ok { color: var(--ok); } .c-warn { color: var(--warn); } .c-off { color: var(--off); } .c-inactive { color: var(--inactive); }

.appbar { position: sticky; top: 0; z-index: 50; background: var(--bar); backdrop-filter: blur(12px); border-bottom: 1px solid var(--bar-border); color: var(--bar-text); }
.appbar-inner { max-width: 1500px; margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 16px; color: var(--bar-text); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 20px; width: auto; display: block; }
.brand-mark { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: .24em; text-transform: uppercase; display: inline-flex; align-items: center; }
.brand-mark .e { display: inline-flex; flex-direction: column; gap: 2.5px; margin: 0 .24em 0 .05em; }
.brand-mark .e i { display: block; width: 11px; height: 2.5px; background: var(--bar-text); border-radius: 1px; }
.brand-mark .e i:nth-child(2) { width: 8px; }
.brand-title { font-family: var(--font-head); font-weight: 500; font-size: 13px; color: var(--bar-muted); border-left: 1px solid var(--bar-btn-border); padding-left: 16px; }
.appbar .spacer { flex: 1; }
.appbar .gen { font-size: 12px; color: var(--bar-muted); font-variant-numeric: tabular-nums; }
.appbar .gen .c-warn { color: #f0b35a; }
.btn { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text); background: var(--panel); border: 1px solid var(--border-strong); border-radius: 10px; padding: 7px 13px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--panel-2); border-color: var(--muted); text-decoration: none; }
.appbar .btn { background: var(--bar-btn); border-color: var(--bar-btn-border); color: var(--bar-text); }
.appbar .btn:hover { background: var(--bar-btn-hover); }
.btn-primary, .appbar .btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover, .appbar .btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn:active { transform: translateY(.5px); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-icon { padding: 7px 9px; font-size: 15px; line-height: 1; }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

.tabs-bar { background: var(--tabs-bg); border-bottom: 1px solid var(--tabs-border); }
.tabs { max-width: 1500px; margin: 0 auto; padding: 0 28px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; color: #a6a9af; font-weight: 600; font-size: 13px; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .12s, border-color .12s; }
.tab:hover { color: #fafafa; text-decoration: none; }
.tab.active { color: #fafafa; border-bottom-color: var(--blue); }
.tab .mini-logo { width: 22px; height: 22px; border-radius: 7px; object-fit: contain; background: #fff; padding: 2px; }
.tab .mini-initials { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: #fff; }
.tab .badge { min-width: 19px; height: 19px; padding: 0 6px; border-radius: 999px; background: var(--off-strong); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.tab .badge.ok { background: var(--ok-strong); color: #06301a; }

.wrap { max-width: 1500px; margin: 0 auto; padding: 24px 28px 90px; }
.err { background: var(--off-soft); border: 1px solid var(--off); color: var(--off); padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; }
.callout { background: var(--warn-soft); border: 1px solid var(--warn-strong); border-left: 3px solid var(--warn); padding: 11px 15px; border-radius: 10px; font-size: 12.5px; margin: 0 0 10px; color: var(--text); }
.callout.red { background: var(--off-soft); border-color: var(--off); border-left-color: var(--off); }

.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 16px; margin-bottom: 26px; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } }
.verdict { border-radius: var(--radius); padding: 30px 32px; display: flex; align-items: center; gap: 26px; position: relative; overflow: hidden; color: #fff; background: var(--v-ok); border: 1px solid var(--v-border); box-shadow: var(--shadow-md); }
.verdict.bad { background: var(--v-bad); }
.verdict.warn { background: var(--v-warn); }
.verdict::after { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .07); pointer-events: none; }
.verdict .v-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .22); color: #fff; box-shadow: 0 0 0 10px rgba(255, 255, 255, .08); }
.verdict.bad .v-icon { animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.verdict .v-icon svg { width: 38px; height: 38px; }
.verdict .v-head { font-family: var(--font-head); font-size: 30px; font-weight: 600; line-height: 1.12; }
.verdict .v-sub { color: rgba(255, 255, 255, .88); margin-top: 8px; font-size: 13.5px; }
.verdict .v-sub b { color: #fff; font-weight: 700; }
.verdict .v-sub .c-off, .verdict .v-sub .c-warn, .verdict .v-sub .c-inactive { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); }
.cust-hero .logo-big { width: 104px; height: 104px; border-radius: 24px; background: #fff; display: grid; place-items: center; flex: none; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.cust-hero .logo-big img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.cust-hero .logo-big .initials { font-family: var(--font-head); font-weight: 700; font-size: 34px; color: #fff; width: 100%; height: 100%; display: grid; place-items: center; }
.cust-hero .crumbs { font-size: 12px; color: rgba(255, 255, 255, .85); margin-bottom: 6px; }
.cust-hero .crumbs a { color: #fff; text-decoration: underline; }

.overview { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; display: flex; gap: 22px; align-items: center; box-shadow: var(--shadow-sm); }
.donut { width: 140px; height: 140px; flex: none; position: relative; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 13; }
.donut .track { stroke: var(--panel-3); }
.donut .center { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 2px; }
.donut .center b { font-family: var(--font-head); font-size: 34px; font-weight: 600; line-height: 1; }
.donut .center span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); line-height: 1; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; flex: 1; }
.legend .li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; cursor: pointer; background: var(--panel-2); border: 1px solid transparent; transition: border-color .12s, background .12s; }
.legend .li:hover { border-color: var(--border-strong); }
.legend .li.active { border-color: var(--blue); background: var(--blue-soft); }
.legend .sw { width: 10px; height: 26px; border-radius: 4px; flex: none; }
.legend .n { font-family: var(--font-head); font-size: 24px; font-weight: 600; line-height: 1; min-width: 30px; }
.legend .l { font-size: 10.5px; color: var(--text-2); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.sw.reporting, .seg.reporting { background: var(--ok-strong); }
.sw.alert, .seg.alert { background: var(--off-strong); }
.sw.cleanup, .seg.cleanup { background: var(--inactive-strong); }
.sw.held, .seg.held { background: var(--warn-strong); }

.note-sync { display: flex; align-items: center; gap: 12px; margin: -10px 0 4px; padding: 10px 16px; border-radius: 12px; background: var(--blue-soft); color: var(--text-2); font-size: 12.5px; }
.note-sync svg { width: 18px; height: 18px; flex: none; color: var(--blue); }
.note-sync b { color: var(--text); }
.section { margin-top: 30px; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head .count { font-size: 12.5px; color: var(--muted); }
.section-head .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.cust-rows { display: grid; gap: 10px; }
.cust-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 200px 24px; align-items: center; gap: 18px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 20px 14px 16px; color: inherit; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.cust-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ok-strong); box-shadow: 0 0 14px var(--ok-glow); }
.cust-row.bad::before { background: var(--off-strong); box-shadow: 0 0 14px var(--off-glow); }
.cust-row.warn::before { background: var(--warn-strong); box-shadow: 0 0 14px var(--warn-glow); }
.cust-row:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.cust-row .name { font-family: var(--font-head); font-size: 18px; font-weight: 600; line-height: 1.2; }
.cust-row .say { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.cust-row .say b { color: var(--text); font-weight: 700; }
.cust-row .say .c-off, .cust-row .say .c-warn, .cust-row .say .c-inactive { font-weight: 700; }
.cust-row .score { font-family: var(--font-head); font-size: 26px; font-weight: 600; text-align: right; line-height: 1; white-space: nowrap; }
.cust-row .score small { font-size: 12px; color: var(--muted); font-weight: 500; }
.cust-row .arrow { color: var(--muted); font-size: 20px; text-align: right; }
@media (max-width: 800px) { .cust-row { grid-template-columns: 52px 1fr auto; } .cust-row .stack, .cust-row .arrow { display: none; } }
.logo { width: 64px; height: 64px; border-radius: 16px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; flex: none; box-shadow: var(--shadow-sm); }
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.logo .initials { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 21px; }
.stack { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--panel-3); gap: 2px; }
.stack .seg { height: 100%; }

.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 8px; }
.chipcam { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 13px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .12s, background .12s; }
.chipcam:hover { border-color: var(--border-strong); background: var(--panel-2); }
.chipcam .sem { width: 12px; height: 12px; margin: 0; }
.chipcam .t { font-weight: 600; font-size: 12.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chipcam .t small { display: block; color: var(--muted); font-weight: 500; font-size: 10.5px; margin-top: 2px; }
.chipcam .v { font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip-detail { grid-column: 1 / -1; }

.cam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.cam { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 13px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.cam:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.cam.alert { border-color: var(--off-strong); box-shadow: 0 0 0 1px var(--off-soft) inset, 0 10px 30px var(--off-soft); }
.cam.held { border-color: var(--warn-strong); }
.cam.cleanup { opacity: .85; }
.cam-head { display: flex; align-items: flex-start; gap: 13px; }
.sem { width: 16px; height: 16px; border-radius: 50%; flex: none; margin-top: 5px; background: var(--inactive-strong); box-shadow: 0 0 0 4px var(--inactive-soft); }
.sem.g { background: var(--ok-strong); box-shadow: 0 0 0 4px var(--ok-soft), 0 0 14px var(--ok-glow); }
.sem.r { background: var(--off-strong); box-shadow: 0 0 0 4px var(--off-soft), 0 0 16px var(--off-glow); animation: pulse 1.5s ease-in-out infinite; }
.sem.a { background: var(--warn-strong); box-shadow: 0 0 0 4px var(--warn-soft), 0 0 14px var(--warn-glow); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px var(--off-soft), 0 0 16px var(--off-glow); } 50% { box-shadow: 0 0 0 8px var(--off-soft), 0 0 26px var(--off-glow); } }
.cam-title { flex: 1; min-width: 0; }
.cam-branch { font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1.25; }
.cam-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.locid { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--text); background: var(--panel-3); border-radius: 6px; padding: 0 6px; margin-right: 4px; white-space: nowrap; text-decoration: none; transition: background .12s, color .12s; }
a.locid:hover { background: var(--blue); color: #fff; text-decoration: none; }
.cam.alert .locid { background: var(--off-soft); color: var(--off); }
.chipcam .locid { font-size: 10px; padding: 0 5px; }
.cam-cust { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--blue); font-weight: 700; margin-bottom: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; flex: none; }
.pill.reporting { background: var(--ok-soft); color: var(--ok); }
.pill.alert { background: var(--off-soft); color: var(--off); }
.pill.cleanup { background: var(--inactive-soft); color: var(--inactive); }
.pill.held { background: var(--warn-soft); color: var(--warn); }
.cam-why { font-size: 12.5px; color: var(--text-2); background: var(--panel-2); border-radius: 12px; padding: 9px 12px; }
.cam.alert .cam-why { background: var(--off-soft); color: var(--off); }
.cam.held .cam-why { background: var(--warn-soft); color: var(--warn); }
.meters { display: grid; gap: 8px; }
.meter { display: grid; grid-template-columns: 100px 1fr 112px; align-items: center; gap: 10px; font-size: 12px; }
.meter .m-val small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); line-height: 1.2; }
.meter .m-label { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-weight: 600; }
.meter .m-label svg { width: 14px; height: 14px; flex: none; opacity: .8; }
.meter .m-bar { height: 9px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.meter .m-bar i { display: block; height: 100%; border-radius: 999px; background: var(--ok-strong); box-shadow: 0 0 10px var(--ok-glow); transition: width .4s; }
.meter .m-bar i.a { background: var(--warn-strong); box-shadow: 0 0 10px var(--warn-glow); }
.meter .m-bar i.r { background: var(--off-strong); box-shadow: 0 0 10px var(--off-glow); }
.meter .m-bar i.n { background: transparent; box-shadow: none; }
.meter .m-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.meter .m-val.g { color: var(--ok); } .meter .m-val.a { color: var(--warn); } .meter .m-val.r { color: var(--off); } .meter .m-val.n { color: var(--inactive); }
.cam-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-alert { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9px; font-size: 11px; font-weight: 700; background: var(--off-soft); color: var(--off); border: 1px solid var(--off-strong); }
.badge-alert.info { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-strong); }
.badge-alert .ago { font-weight: 500; opacity: .85; }
.cam-foot { font-size: 11.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; border-top: 1px dashed var(--border-strong); padding-top: 10px; }
.cam-foot b { color: var(--text-2); font-weight: 600; }

.ok-banner { border-radius: var(--radius); padding: 24px 26px; background: var(--ok-soft); border: 1px solid var(--ok-strong); color: var(--text-2); display: flex; align-items: center; gap: 18px; font-size: 14px; }
.ok-banner svg { width: 34px; height: 34px; flex: none; color: var(--ok); }
.ok-banner b { font-family: var(--font-head); font-size: 17px; font-weight: 600; display: block; color: var(--text); }

.group-head { display: flex; align-items: center; gap: 12px; margin: 22px 0 12px; }
.group-head h3 { color: var(--text); font-size: 12.5px; letter-spacing: .08em; }
.group-head .count { font-size: 11.5px; color: var(--muted); }
.group-head .line { flex: 1; height: 1px; background: var(--border); }

.qa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.qa-card { background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--off-strong); border-radius: 14px; padding: 13px 16px; display: grid; gap: 4px; box-shadow: var(--shadow-sm); }
.qa-card.info { border-left-color: var(--warn-strong); }
.qa-card .t { font-weight: 700; font-size: 13.5px; }
.qa-card .w { font-size: 12px; color: var(--text-2); }
.qa-card .s { font-size: 11.5px; color: var(--muted); }
.timeline { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.tl-axis { display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 14px; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.tl-days { display: flex; justify-content: space-between; }
.tl-row { display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 14px; padding: 8px 0; border-top: 1px solid var(--border); }
.tl-row .who { font-size: 12.5px; min-width: 0; }
.tl-row .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-row .who span { color: var(--muted); font-size: 11px; }
.tl-row svg { width: 100%; height: 26px; display: block; }
.tl-row line { stroke: var(--border-strong); }
.tl-row circle.open { stroke: var(--panel); }
.tl-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.tl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

.legend-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; margin-top: 12px; }
.ls { display: flex; gap: 12px; align-items: flex-start; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; }
.ls .sem { margin-top: 3px; animation: none; }
.ls b { display: block; font-weight: 700; }
.ls span { color: var(--text-2); }

details.tech { margin-top: 30px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 22px; box-shadow: var(--shadow-sm); }
details.tech summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; color: var(--text-2); }
details.tech summary::-webkit-details-marker { display: none; }
details.tech summary::after { content: "▸"; margin-left: auto; color: var(--muted); }
details.tech[open] summary::after { content: "▾"; }
.tech-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.tbl-wrap { overflow: auto; max-height: 560px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { text-align: left; padding: 8px 11px; border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: top; }
th { font-size: 10.5px; letter-spacing: .08em; color: var(--muted); font-weight: 700; text-transform: uppercase; position: sticky; top: 0; background: var(--panel-2); z-index: 1; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: var(--panel-2); }
.tech-note { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.alerts-table { font-size: 12px; }
.alerts-table th, .alerts-table td { padding: 7px 10px; white-space: nowrap; vertical-align: middle; line-height: 1.3; }
.alerts-table td.clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.alerts-table td.clip small { color: var(--muted); font-size: 10.5px; margin-left: 6px; }
.alerts-table tbody tr:nth-child(even) { background: var(--panel-2); }
.alerts-table tbody tr:hover { background: var(--blue-soft); }
.alerts-table .pill { padding: 2px 9px; font-size: 10.5px; }
.alerts-table .locid { font-size: 10.5px; }
.alerts-table .when { font-variant-numeric: tabular-nums; }
.alerts-table .when .ago { color: var(--muted); margin-left: 6px; }
.alerts-table .when.r .ago { color: var(--off); font-weight: 700; }
.alerts-table .when.a .ago { color: var(--warn); font-weight: 700; }
.alerts-table .why-short { display: inline-flex; gap: 6px; }
.alerts-table .tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 700; background: var(--panel-3); color: var(--text-2); }
.alerts-table .tag.r { background: var(--off-soft); color: var(--off); }
.alerts-table .tag.a { background: var(--warn-soft); color: var(--warn); }
.alerts-table .tag.n { background: var(--inactive-soft); color: var(--inactive); }
.alerts-table .badge-alert { padding: 1px 8px; font-size: 10.5px; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--blue); }
th.sortable.sorted-asc::after { content: " ▲"; font-size: 9px; }
th.sortable.sorted-desc::after { content: " ▼"; font-size: 9px; }
.filter-row th { padding: 4px 6px; top: 31px; background: var(--panel-2); }
.filter-row input { font: inherit; font-size: 11.5px; padding: 5px 8px; width: 100%; min-width: 80px; border: 1px solid var(--border); border-radius: 7px; outline: none; background: var(--panel); color: var(--text); }
.filter-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.tbl-count { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.tbl-count.none { color: var(--off); }

footer { margin-top: 40px; color: var(--muted); font-size: 11.5px; text-align: center; }
.skeleton { height: 130px; border-radius: var(--radius); background: linear-gradient(90deg, var(--panel), var(--panel-2), var(--panel)); background-size: 200% 100%; animation: shimmer 1.3s infinite; margin-bottom: 16px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
