/* =====================================================================
   workspace.css — map-first fraud investigation workspace
   Fluid grid: collapsible filter rail · map canvas · detail drawer,
   with a synced activity timeline. Scales laptop → large monitor.
   ===================================================================== */

:root { --blue-50: #F2F6FE; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg-app);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
#root { height: 100vh; }

/* ── Shell grid ─────────────────────────────────────────────── */
.ws-shell {
  --rail-l: clamp(252px, 18.5vw, 304px);
  --rail-r: clamp(330px, 24vw, 408px);
  --topbar-h: 60px;
  --timeline-h: clamp(150px, 18vh, 196px);
  height: 100vh;
  display: grid;
  grid-template-columns: var(--rail-l) minmax(0, 1fr) var(--rail-r);
  grid-template-rows: var(--topbar-h) minmax(0, 1fr) var(--timeline-h);
  grid-template-areas:
    "topbar topbar   topbar"
    "railL  map      railR"
    "railL  timeline railR";
}
.ws-shell[data-rail-l="false"] { --rail-l: 0px; }
.ws-shell[data-rail-r="false"] { --rail-r: 0px; }
.ws-shell[data-timeline="false"] { --timeline-h: 0px; }
.ws-shell[data-focus="true"] { --rail-l: 0px; --rail-r: 0px; --timeline-h: 0px; }

/* ── Topbar ─────────────────────────────────────────────────── */
.ws-topbar {
  grid-area: topbar;
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px 0 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--divider-strong);
  z-index: 40;
}
.tb-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tb-logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--blue-600); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
  letter-spacing: -.04em;
}
.tb-crumbs { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-3); }
.tb-crumbs b { color: var(--text); font-weight: 600; }
.tb-crumbs .sep { color: var(--neutral-400); }

.tb-subject {
  display: flex; align-items: center; gap: 12px;
  padding-left: 16px; margin-left: 2px;
  border-left: 1px solid var(--divider-strong);
  min-width: 0;
}
.tb-avatar {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px;
  background: linear-gradient(140deg, #2B323B, #4E5B68);
}
.tb-avatar.user { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-200); }
.tb-id-main { display: flex; flex-direction: column; min-width: 0; }
.tb-id-line { display: flex; align-items: center; gap: 8px; }
.tb-id-line .name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.tb-id-line .name.mono { font-family: var(--font-mono); letter-spacing: 0; }
.tb-id-line .uid { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.type-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  padding: 2px 8px 2px 6px; border-radius: 999px; text-transform: uppercase;
}
.type-chip.user { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-200); }
.type-chip.device { background: var(--cyan-100); color: var(--cyan-800); border: 1px solid var(--cyan-300); }
.tb-id-sub { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }

.tb-spacer { flex: 1; }

.tb-stat {
  display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
  padding: 0 14px; border-left: 1px solid var(--divider); flex-shrink: 0;
}
.tb-stat .k { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); font-weight: 700; }
.tb-stat .v { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tb-stat .v.bad { color: var(--red-500); }
.tb-queue-nav { display: inline-flex; gap: 2px; margin-left: 4px; }

.tb-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding-left: 6px; }

/* risk pill in topbar */
.risk-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 11px 0 7px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.risk-pill .score {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px;
  background: rgba(255,255,255,.25);
}

/* ── Rails ──────────────────────────────────────────────────── */
.ws-rail {
  background: var(--surface);
  overflow: hidden auto;
  display: flex; flex-direction: column;
  min-width: 0;
}
.ws-rail.left  { grid-area: railL; border-right: 1px solid var(--divider-strong); }
.ws-rail.right { grid-area: railR; border-left: 1px solid var(--divider-strong); }
.ws-rail::-webkit-scrollbar { width: 9px; }
.ws-rail::-webkit-scrollbar-thumb { background: var(--neutral-300); border-radius: 9px; border: 2px solid var(--surface); }

.rail-section { padding: 14px 16px; border-bottom: 1px solid var(--divider); }
.rail-section:last-child { border-bottom: 0; }
.rail-h {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.rail-h .t { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.rail-h .right { margin-left: auto; }
.rail-h .clearbtn {
  font-size: 11px; font-weight: 600; color: var(--blue-600);
  background: none; border: 0; cursor: pointer; padding: 0;
}
.rail-h .clearbtn:hover { text-decoration: underline; }

/* segmented control */
.seg {
  display: flex; background: var(--surface-2); border: 1px solid var(--divider-strong);
  border-radius: 9px; padding: 3px; gap: 3px;
}
.seg button {
  flex: 1; border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2);
  padding: 6px 4px; border-radius: 7px; transition: all .14s;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.seg button[data-on="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.seg button .cnt { font-variant-numeric: tabular-nums; opacity: .55; font-weight: 700; }
.seg button[data-on="true"] .dotp { color: var(--green-500); }
.seg button[data-on="true"] .dotf { color: var(--red-500); }

/* filter list rows (operators / devices) */
.filter-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 9px; border-radius: 9px; cursor: pointer;
  border: 1px solid transparent; transition: background .13s, border-color .13s;
}
.filter-row:hover { background: var(--bg-hover); }
.filter-row[data-on="false"] { opacity: .42; }
.filter-row .swatch-ring {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 3px solid var(--neutral-400); background: #fff;
}
.filter-row .dev-ico {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--surface-2); color: var(--text-2);
}
.filter-row .fr-body { flex: 1; min-width: 0; }
.filter-row .fr-title { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.filter-row .fr-sub { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.filter-row .fr-count {
  font-size: 11.5px; font-weight: 700; color: var(--text-2);
  font-variant-numeric: tabular-nums; background: var(--surface-2);
  border-radius: 6px; padding: 2px 7px;
}
.filter-row .fr-count .f { color: var(--red-500); }
.filter-row .check {
  width: 18px; height: 18px; border-radius: 6px; flex-shrink: 0;
  border: 1.5px solid var(--neutral-400); display: grid; place-items: center;
  color: #fff; transition: all .12s;
}
.filter-row[data-on="true"] .check { background: var(--blue-600); border-color: var(--blue-600); }

/* "view device" affordance on a device row */
.filter-row .go {
  opacity: 0; color: var(--text-3); transition: opacity .12s; flex-shrink: 0;
}
.filter-row:hover .go { opacity: 1; }

/* solo-filter chip showing active device focus */
.solo-banner {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  background: var(--blue-50); border: 1px solid var(--blue-200);
  border-radius: 9px; padding: 8px 10px; font-size: 12px; color: var(--blue-700);
}
.solo-banner b { font-weight: 700; }
.solo-banner .x { margin-left: auto; cursor: pointer; color: var(--blue-600); display: grid; place-items: center; }

/* mini risk block (left rail bottom) */
.mini-risk { display: flex; align-items: center; gap: 14px; }
.mini-risk .meta .lvl { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.mini-risk .meta .trend { font-size: 12px; color: var(--text-2); margin-top: 1px; }
.mini-risk .meta .pop { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.risk-bars { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }

/* ── Map area ───────────────────────────────────────────────── */
.ws-map { grid-area: map; position: relative; min-width: 0; min-height: 0; background: #e6ecf3; }
.txmap-wrap { position: absolute; inset: 0; }
.txmap { position: absolute; inset: 0; }
.leaflet-container { background: #e6ecf3 !important; font-family: var(--font-sans) !important; }

/* rail toggle tabs that ride the map edges */
.rail-toggle {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 22px; height: 60px; z-index: 30;
  background: var(--surface); border: 1px solid var(--divider-strong);
  display: grid; place-items: center; cursor: pointer; color: var(--text-3);
  box-shadow: var(--shadow-2); transition: color .14s, background .14s;
}
.rail-toggle:hover { color: var(--blue-600); background: var(--bg-hover); }
.rail-toggle.left  { left: 0;  border-left: 0; border-radius: 0 10px 10px 0; }
.rail-toggle.right { right: 0; border-right: 0; border-radius: 10px 0 0 10px; }

/* summary HUD */
.map-hud {
  position: absolute; top: 14px; left: 14px; z-index: 500;
  display: flex; gap: 0; background: rgba(255,255,255,.94);
  border: 1px solid var(--divider-strong); border-radius: 12px;
  box-shadow: var(--shadow-3); backdrop-filter: blur(8px); overflow: hidden;
}
.map-hud .cell { padding: 9px 15px; border-right: 1px solid var(--divider); }
.map-hud .cell:last-child { border-right: 0; }
.map-hud .k { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.map-hud .v { font-size: 19px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; margin-top: 1px; }
.map-hud .v.bad { color: var(--red-500); }
.map-hud .v.ok { color: var(--green-600); }

/* toolstack (zoom etc.) — top-right */
.map-toolstack {
  position: absolute; top: 14px; right: 14px; z-index: 500;
  display: flex; flex-direction: column; gap: 6px;
}
.mt-btn {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,.96); border: 1px solid var(--divider-strong);
  color: var(--text-2); font-size: 18px; font-weight: 600; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-2);
  transition: all .13s; font-family: inherit;
}
.mt-btn:hover { background: #fff; color: var(--text); border-color: var(--neutral-400); }
.mt-btn svg { display: block; }
/* MUI alignment: icons in interactive buttons sit centered (no inline baseline drift) */
.tesla .MuiButton svg, .tesla .pill svg, .tesla .opchip svg, .tesla .pill-seg button svg, .tesla .view-seg button svg, .tesla .txr-nav svg, .tesla .txr-back svg, .tesla .tp-collapse svg, .tesla .tp-icon svg, .tesla .txr-blocked-act svg, .tesla .tdock-item svg, .tesla .gtop-bell svg, .tesla .pager button svg, .tesla .txd-ghost svg, .tesla .txr-subj > svg { display: block; flex-shrink: 0; }
.mt-btn.on { background: var(--blue-600); color: #fff; border-color: var(--blue-700); }

/* legend — bottom-left */
.map-legend {
  position: absolute; bottom: 16px; left: 14px; z-index: 500;
  display: flex; gap: 14px; align-items: stretch;
  background: rgba(255,255,255,.96); border: 1px solid var(--divider-strong);
  border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-3);
  backdrop-filter: blur(8px); font-size: 12px;
}
.map-legend .lg-block { display: flex; flex-direction: column; gap: 5px; }
.map-legend .lg-h { font-size: 9.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1px; }
.map-legend .lg-row { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 11.5px; }
.map-legend .lg-core { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.map-legend .lg-ring { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid; box-sizing: border-box; }
.map-legend .lg-sep { width: 1px; background: var(--divider); align-self: stretch; }
.map-legend .lg-toggle { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-2); cursor: pointer; align-self: center; }

/* transaction pins */
.leaflet-marker-icon.tx-pin { background: transparent; border: 0; cursor: pointer; transition: transform .12s; }
.leaflet-marker-icon.tx-pin:hover { transform: scale(1.18); z-index: 700 !important; }
.leaflet-marker-icon.tx-pin svg { display: block; overflow: visible; }
.leaflet-marker-icon.tx-pin.fail .tx-halo { opacity: .16; }
@keyframes txpulse { 0% { opacity: .35; transform: scale(.7); } 70% { opacity: 0; transform: scale(1.5); } 100% { opacity: 0; } }
.leaflet-marker-icon.tx-pin.fail.focused .tx-halo { animation: txpulse 1.9s ease-out infinite; transform-origin: 12px 12px; }
@media (prefers-reduced-motion: reduce) { .leaflet-marker-icon.tx-pin.fail.focused .tx-halo { animation: none; } }

.leaflet-marker-icon.tx-cluster-pin { background: transparent; border: 0; }
.linked-node {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--red-300);
  border-radius: 999px; padding: 4px 10px 4px 7px; white-space: nowrap;
  font-size: 11px; font-weight: 600; color: var(--red-600);
  box-shadow: var(--shadow-2);
}

.leaflet-tooltip.tx-tip {
  background: #fff; border: 1px solid var(--divider-strong); border-radius: 10px;
  box-shadow: var(--shadow-4); color: var(--text);
  font-family: var(--font-sans); padding: 9px 11px;
}
.leaflet-tooltip.tx-tip::before { display: none; }

/* ── Detail drawer (right rail body) ───────────────────────── */
.drawer-empty { padding: 22px 18px; }
.tx-detail { padding: 16px 18px; }
.txd-h { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.txd-status {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
}
.txd-h .ttl { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.txd-h .sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.kv { display: grid; grid-template-columns: 124px 1fr; gap: 0; }
.kv .k { font-size: 13px; color: var(--text-3); font-weight: 500; padding: 9px 0; border-bottom: 1px solid var(--divider); display: flex; align-items: center; }
.kv .v { font-size: 13px; font-weight: 600; color: var(--text); text-align: left; padding: 9px 0; border-bottom: 1px solid var(--divider); font-variant-numeric: tabular-nums; display: flex; align-items: center; min-width: 0; }
.kv .v.mono { font-family: var(--font-mono); }
.kv .v:last-child, .kv .k:nth-last-of-type(1) { border-bottom: 0; padding-bottom: 0; }

.txd-device {
  margin-top: 16px; border: 1px solid var(--divider-strong); border-radius: 12px;
  padding: 12px; display: flex; align-items: center; gap: 11px;
  background: var(--surface-1);
}
.txd-device .di { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: #fff; border: 1px solid var(--divider-strong); color: var(--blue-700); }
.txd-device .body { flex: 1; min-width: 0; }
.txd-device .m { font-size: 13px; font-weight: 700; }
.txd-device .s { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.txd-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

.section-label { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin: 18px 0 10px; }

/* devices-on-account list in drawer default */
.acct-device.blocked { background: color-mix(in srgb, var(--red-500) 6%, transparent); }
.acct-device.blocked .s { color: var(--red-600); }
.acct-blocked { display: inline-flex; align-items: center; gap: 3px; margin-left: 7px; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--red-600); background: color-mix(in srgb, var(--red-500) 14%, transparent); padding: 1px 5px 1px 3px; border-radius: 5px; vertical-align: middle; }
.dev-blockbanner { display: flex; gap: 11px; align-items: flex-start; padding: 12px 13px; margin-bottom: 14px; border-radius: 12px; background: color-mix(in srgb, var(--red-500) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--red-500) 28%, transparent); }
.dev-blockbanner-ic { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--red-500) 15%, transparent); color: var(--red-600); }
/* shared status-banner atom — used for device-block AND transaction verdict (one component) */
.statbanner { display: flex; gap: 11px; align-items: flex-start; padding: 12px 13px; margin-bottom: 14px; border-radius: 12px; border: 1px solid; }
.statbanner-ic { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; }
.statbanner-body { min-width: 0; flex: 1; }
.statbanner-body .t { font-size: 13px; font-weight: 800; }
.statbanner-body .s { font-size: 11.5px; font-weight: 600; margin-top: 1px; }
.statbanner-body .r { font-size: 12px; color: var(--text-2); margin-top: 5px; line-height: 1.45; }
.statbanner.bad { background: color-mix(in srgb, var(--red-500) 7%, var(--surface)); border-color: color-mix(in srgb, var(--red-500) 24%, transparent); }
.statbanner.bad .statbanner-ic { background: color-mix(in srgb, var(--red-500) 15%, transparent); color: var(--red-600); }
.statbanner.bad .t { color: var(--red-700); } .statbanner.bad .s { color: var(--red-600); }
.statbanner.ok { background: color-mix(in srgb, var(--green-500) 8%, var(--surface)); border-color: color-mix(in srgb, var(--green-500) 24%, transparent); }
.statbanner.ok .statbanner-ic { background: color-mix(in srgb, var(--green-500) 14%, transparent); color: var(--green-600); }
.statbanner.ok .t { color: var(--green-700); } .statbanner.ok .s { color: var(--green-700); }
.dev-blockbanner-body .t { font-size: 13px; font-weight: 800; color: var(--red-700); }
.bkx-idlink { cursor: pointer; }
.bkx-idlink:hover { text-decoration: underline; }
.dev-blockbanner-body .s { font-size: 11.5px; font-weight: 600; color: var(--red-600); margin-top: 1px; }
.dev-blockbanner-body .r { font-size: 12px; color: var(--text-2); margin-top: 5px; line-height: 1.45; }
.dev-unblock-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; width: 100%; border: 1px solid #BE3220; background: #BE3220; color: #fff; font-family: inherit; font-size: 12.5px; font-weight: 700; height: 38px; padding: 0 18px; border-radius: var(--r-pill); cursor: pointer; justify-content: center; }
.dev-unblock-btn:focus { outline: none; }
.dev-unblock-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--red-600) 30%, transparent); outline-offset: 1px; }.5px; font-weight: 700; padding: 7px 13px; border-radius: 8px; cursor: pointer; }
.dev-unblock-btn:hover { background: var(--red-700); border-color: var(--red-700); box-shadow: 0 2px 8px color-mix(in srgb, var(--red-600) 35%, transparent); }
.subj-head .line .acct-blocked { vertical-align: middle; }
.subj-id .line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* merged device identity + blocked banner */
.dev-idblock { border: 1px solid color-mix(in srgb, var(--red-500) 24%, transparent); border-radius: 14px; overflow: hidden; margin-bottom: 14px; background: var(--surface); }
.dev-idblock .subj-head { padding: 13px 14px; background: var(--surface-1); align-items: flex-start; }
.dev-idblock .subj-head .MuiChip { margin-top: 1px; }
.dev-idblock-body { padding: 12px 14px; background: color-mix(in srgb, var(--red-500) 7%, var(--surface)); border-top: 1px solid color-mix(in srgb, var(--red-500) 18%, transparent); }
.dev-idblock-body .t { font-size: 12px; font-weight: 700; color: var(--red-600); }
.dev-idblock-body .t .acct-blocked { font-size: 10px; }
.dc-blockico { flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--red-500) 14%, transparent); color: var(--red-600); }
.dev-idblock-body .s { font-size: 11.5px; font-weight: 600; color: var(--red-600); margin-top: 1px; }
.dev-idblock-body .r { font-size: 12px; color: var(--text-2); margin-top: 5px; line-height: 1.45; }
/* transaction verdict variant of the merged card (green for pass) */
.txv-idblock.is-pass { border-color: color-mix(in srgb, var(--green-500) 24%, transparent); }
.txv-idblock.is-pass .dev-idblock-body { background: color-mix(in srgb, var(--green-500) 8%, var(--surface)); border-top-color: color-mix(in srgb, var(--green-500) 18%, transparent); }
.txv-idblock.is-pass .dev-idblock-body .t { color: var(--green-700); }
.txv-idblock.is-pass .dev-idblock-body .s { color: var(--green-700); }
.txv-idblock .dev-idblock-body .s { color: var(--red-600); }
.acct-device {
  display: flex; align-items: center; gap: 10px; padding: 9px 8px;
  border-radius: 10px; cursor: pointer; transition: background .12s;
}
.acct-device:hover { background: var(--bg-hover); }
.acct-device .di { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.acct-device .body { flex: 1; min-width: 0; }
.acct-device .m { font-size: 13px; font-weight: 600; }
.acct-device .s { font-size: 11px; color: var(--text-3); }

.flag-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.bkx-sig { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 7px; background: color-mix(in srgb, #F15A0E 11%, transparent); color: #B4540C; border: 1px solid color-mix(in srgb, #F15A0E 22%, transparent); }
/* ── decision queue (restrictions-native attention widget) ── */
.bkx-queue { background: var(--surface); border: 1px solid var(--divider); border-radius: 14px; padding: 13px 16px 6px; }
.bkx-queue-h { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.bkx-queue-t { font-size: 13px; font-weight: 700; color: var(--text); }
.bkx-queue-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red-500); color: #fff; font-size: 11px; font-weight: 800; }
.bkx-queue-rows { display: flex; flex-direction: column; }
.bkx-qrow { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid var(--divider); }
.bkx-qrow:first-child { border-top: 0; }
.bkx-qdot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.bkx-qrow[data-urg="crit"] .bkx-qdot { background: var(--red-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red-500) 18%, transparent); }
.bkx-qrow[data-urg="warn"] .bkx-qdot { background: #F15A0E; box-shadow: 0 0 0 3px color-mix(in srgb, #F15A0E 18%, transparent); }
.bkx-qrow[data-urg="info"] .bkx-qdot { background: var(--blue-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-600) 16%, transparent); }
.bkx-qic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-2); color: var(--text-2); }
.bkx-qrow[data-urg="crit"] .bkx-qic { background: color-mix(in srgb, var(--red-500) 12%, transparent); color: var(--red-600); }
.bkx-qrow[data-urg="warn"] .bkx-qic { background: color-mix(in srgb, #F15A0E 13%, transparent); color: #B4540C; }
.bkx-qrow[data-urg="info"] .bkx-qic { background: var(--blue-50); color: var(--blue-700); }
.bkx-qbody { flex: 1; min-width: 0; }
.bkx-qbody .t { font-size: 12.5px; color: var(--text); }
.bkx-qbody .t b { font-weight: 800; }
.bkx-qbody .s { font-size: 11px; color: var(--text-3); margin-top: 1px; line-height: 1.35; }
.bkx-sla { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.bkx-sla-bar { flex-shrink: 0; width: 56px; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.bkx-sla-bar i { display: block; height: 100%; border-radius: 3px; background: var(--red-500); }
.bkx-qrow[data-urg="warn"] .bkx-sla-bar i { background: #F15A0E; }
.bkx-sla-t { font-size: 10.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bkx-sla-t b { color: var(--red-600); font-weight: 700; }
.bkx-qrow[data-urg="warn"] .bkx-sla-t b { color: #B4540C; }
.bkx-qbtn { flex-shrink: 0; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text); font-family: inherit; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 8px; cursor: pointer; }
.bkx-qbtn:hover { border-color: var(--neutral-400); background: var(--surface-2); }
.bkx-qbtn.primary { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.bkx-qbtn.primary:hover { background: var(--blue-700); }
/* ── analytics board (live breakdowns from filtered set) ── */
.bkx-analytics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bkx-an-c { background: var(--surface); border: 1px solid var(--divider); border-radius: 13px; padding: 12px 13px; display: flex; flex-direction: column; gap: 7px; }
.bkx-an-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.bkx-an-h span { font-size: 12px; font-weight: 700; color: var(--text); }
.bkx-an-h b { font-size: 11px; font-weight: 600; color: var(--text-3); }
.bkx-an-row { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; padding: 1px 0; font-family: inherit; cursor: pointer; text-align: left; }
.bkx-an-row:not(button) { cursor: default; }
.bkx-an-lbl { flex: 0 0 78px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bkx-an-track { flex: 1; height: 7px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.bkx-an-track i { display: block; height: 100%; border-radius: 4px; min-width: 3px; transition: width .3s; }
.bkx-an-val { flex: 0 0 auto; min-width: 26px; text-align: right; font-size: 12px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
button.bkx-an-row:hover .bkx-an-lbl { color: var(--blue-700); }
.bkx-an-spark { display: flex; align-items: flex-end; gap: 3px; flex: 1; min-height: 56px; margin-top: 2px; }
.bkx-an-bar { flex: 1; background: var(--blue-500); border-radius: 3px 3px 0 0; min-height: 4px; opacity: .85; }
.bkx-an-bar:last-child { background: var(--blue-600); opacity: 1; }
.bkx-an-spark-x { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-3); margin-top: 4px; }

/* ── Timeline ───────────────────────────────────────────────── */
.ws-timeline {
  grid-area: timeline; background: var(--surface);
  border-top: 1px solid var(--divider-strong);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.tl-head {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  border-bottom: 1px solid var(--divider); flex-shrink: 0;
}
.tl-head .t { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.tl-head .sub { font-size: 12px; color: var(--text-3); }
.tl-head .spacer { flex: 1; }
.tl-legend-hint { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }

.tl-scroll { flex: 1; overflow-x: auto; overflow-y: hidden; display: flex; align-items: stretch; padding: 12px 16px; gap: 10px; }
.tl-scroll::-webkit-scrollbar { height: 9px; }
.tl-scroll::-webkit-scrollbar-thumb { background: var(--neutral-300); border-radius: 9px; border: 2px solid var(--surface); }

.tl-day { display: flex; flex-direction: column; flex-shrink: 0; }
.tl-day-label {
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-3); padding: 0 4px 8px; position: sticky; left: 0;
}
.tl-cards { display: flex; gap: 9px; align-items: stretch; flex: 1; min-height: 0; }
.tl-day + .tl-day { padding-left: 10px; border-left: 1px dashed var(--divider-strong); margin-left: 2px; }

.tx-card {
  width: 178px; flex-shrink: 0; min-height: 134px; border: 1px solid var(--divider-strong);
  border-radius: 12px; padding: 12px; cursor: pointer; background: var(--surface);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .13s, box-shadow .13s, transform .13s;
  position: relative; overflow: hidden;
}
.tx-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
}
.tx-card { transition: border-color .14s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease; }
.tx-card:hover { border-color: var(--neutral-400); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.tx-card[data-sel="true"] {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-600) 16%, transparent), 0 10px 24px -6px color-mix(in srgb, var(--blue-600) 32%, transparent);
  transform: translateY(-2px);
}
.tx-card[data-sel="true"]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue-600) 45%, transparent);
}
.tx-card[data-dim="true"] { opacity: .34; }
.tx-card .tc-top { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.tx-card .tc-status {
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 2px 7px;
  border-radius: 6px; color: #fff;
}
.tx-card .tc-time { margin-left: auto; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; font-family: var(--font-sans); }
.tx-card .tc-loc { font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.tx-card .tc-meta { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 11px; color: var(--text-3); }
.tx-card .tc-op { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.tx-card .tc-op .ring { width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2.5px solid; box-sizing: border-box; }
.tx-card .tc-bet { margin-left: auto; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tx-card .tc-reason { font-size: 10.5px; color: var(--red-600); margin-top: 7px; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tl-empty { display: grid; place-items: center; flex: 1; color: var(--text-3); font-size: 13px; gap: 4px; }

/* =====================================================================
   PRODUCT CHROME — nav rail + global topbar
   ===================================================================== */
.chrome { display: flex; height: 100vh; width: 100%; }
.chrome-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chrome-main { flex: 1; min-height: 0; }

/* nav rail (slim, hover-expands as overlay) */
.pnav { flex: 0 0 60px; position: relative; z-index: 60; }
.pnav-panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: 60px;
  background: var(--surface); border-right: 1px solid var(--divider-strong);
  display: flex; flex-direction: column; overflow: hidden;
  transition: width .2s cubic-bezier(.4,0,.2,1), box-shadow .2s;
}
.pnav.open .pnav-panel { width: 234px; box-shadow: var(--shadow-8); }

.pnav-product { display: flex; align-items: center; gap: 11px; padding: 13px 14px; height: 53px; border-bottom: 1px solid var(--divider); flex-shrink: 0; }
.pnav-logo { width: 36px; height: 36px; border-radius: 10px; background: var(--blue-600); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.pnav-product-text { white-space: nowrap; min-width: 0; }
.pnav-product-text .pn { font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.pnav-product-text .ps { font-size: 11px; color: var(--text-3); }
.pnav-pin { margin-left: auto; background: var(--surface-2); border: 1px solid var(--divider-strong); border-radius: 7px; width: 24px; height: 24px; display: grid; place-items: center; color: var(--text-3); cursor: pointer; flex-shrink: 0; }
.pnav-pin:hover { color: var(--blue-600); }

.pnav-scroll { flex: 1; overflow: hidden auto; padding: 8px 10px; }
.pnav-scroll::-webkit-scrollbar { width: 0; }
.pnav-group { margin-bottom: 10px; }
.pnav-group-label { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 6px 8px 5px; white-space: nowrap; opacity: 0; transition: opacity .18s; }
.pnav.open .pnav-group-label { opacity: 1; }
.pnav-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 8px; border: 0; background: transparent; border-radius: 9px;
  cursor: pointer; color: var(--text-2); font-family: inherit; font-size: 13.5px; font-weight: 500;
  white-space: nowrap; transition: background .12s, color .12s; margin-bottom: 2px;
}
.pnav-item:hover { background: var(--bg-hover); color: var(--text); }
.pnav-item[data-active="true"] { background: var(--blue-50); color: var(--blue-700); font-weight: 700; }
.pni-icon { width: 24px; display: grid; place-items: center; flex-shrink: 0; position: relative; }
.pni-live { position: absolute; top: -1px; right: 1px; width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); border: 1.5px solid var(--surface); animation: lpulse 1.8s infinite; }
.pni-label { flex: 1; text-align: left; }
.pni-count { font-size: 11px; font-weight: 700; color: var(--text-3); background: var(--surface-2); border-radius: 6px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.pni-count.error { color: var(--red-600); background: var(--red-100); }
.pnav-foot { padding: 10px; border-top: 1px solid var(--divider); flex-shrink: 0; }
.pnav-env { display: flex; align-items: center; gap: 12px; padding: 8px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.pnav-env .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); flex-shrink: 0; margin-left: 7px; box-shadow: 0 0 0 3px var(--green-100); }

/* global topbar */
.gtop { height: 53px; flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--divider-strong); z-index: 50; }
.gtop-crumbs { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-3); flex-shrink: 0; }
.gtop-crumbs b { color: var(--text); font-weight: 600; }
.gtop-crumbs .sep { color: var(--neutral-400); }
.gtop-spacer { flex: 1; }

.gsearch { display: flex; align-items: center; gap: 8px; width: clamp(280px, 32vw, 460px); height: 36px; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--divider-strong); border-radius: 10px; color: var(--text-3); position: relative; transition: border-color .14s, background .14s; }
.gsearch[data-open="true"] { background: #fff; border-color: var(--blue-400); box-shadow: 0 0 0 3px var(--blue-100); }
.gsearch input { flex: 1; border: 0; background: transparent; outline: none; font-family: inherit; font-size: 13.5px; color: var(--text); }
.gsearch input::placeholder { color: var(--text-3); }
.gsearch kbd { font-size: 11px; font-weight: 600; color: var(--text-3); background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 5px; padding: 1px 6px; font-family: var(--font-sans); }
.gsearch-pop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 12px; box-shadow: var(--shadow-8); padding: 8px; z-index: 80; }
.gsp-label { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 4px 8px 6px; }
.gsp-item { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 9px; cursor: pointer; }
.gsp-item:hover { background: var(--bg-hover); }
.gsp-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex-shrink: 0; }
.gsp-ic.act { background: var(--blue-600); color: #fff; }
.gsp-body .t { font-size: 13px; font-weight: 600; }
.gsp-body .s { font-size: 11.5px; color: var(--text-3); }

.gtop-bell { position: relative; width: 36px; height: 36px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.gtop-bell:hover { background: var(--bg-hover); }
.bell-dot { position: absolute; top: 4px; right: 4px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: var(--red-500); color: #fff; font-size: 9.5px; font-weight: 800; display: grid; place-items: center; border: 1.5px solid var(--surface); }
.gtop-profile { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border-radius: 10px; cursor: pointer; }
.gtop-profile:hover { background: var(--bg-hover); }
.gtop-profile .av { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(140deg,#2B323B,#4E5B68); color: #fff; font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.gtop-profile .who .n { font-size: 12.5px; font-weight: 700; line-height: 1.15; }
.gtop-profile .who .r { font-size: 11px; color: var(--text-3); }

/* role / scope switch */
.rolesw { position: relative; }
.rolesw-btn { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 10px; cursor: pointer; font-family: inherit; color: var(--text); }
.rolesw-btn:hover { border-color: var(--neutral-400); }
.rolesw-ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; }
.rolesw-ico.internal { background: var(--blue-50); color: var(--blue-700); }
.rolesw-ico.client { background: var(--orange-100); color: var(--orange-600); }
.rolesw-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.rolesw-txt .l { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.rolesw-txt .s { font-size: 10.5px; color: var(--text-3); }
.rolesw-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 290px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 12px; box-shadow: var(--shadow-8); padding: 8px; z-index: 80; }
.rsm-label { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 4px 8px 6px; }
.rsm-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 8px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; font-family: inherit; text-align: left; color: var(--text); }
.rsm-item:hover { background: var(--bg-hover); }
.rsm-item[data-on="true"] { background: var(--blue-50); }
.rsm-item .t { font-size: 13px; font-weight: 600; }
.rsm-item .s { font-size: 11px; color: var(--text-3); }
.rsm-item svg:last-child { margin-left: auto; color: var(--blue-600); }

/* =====================================================================
   INVESTIGATION GRID
   ===================================================================== */
.inv {
  --guide-w: clamp(272px, 20vw, 344px);
  --detail-w: clamp(316px, 22vw, 396px);
  --timeline-h: clamp(142px, 17vh, 188px);
  height: 100%;
  display: grid;
  grid-template-columns: var(--guide-w) minmax(0,1fr) var(--detail-w);
  grid-template-rows: auto minmax(0,1fr) var(--timeline-h);
  grid-template-areas:
    "header header   header"
    "guide  map      detail"
    "guide  timeline detail";
  background: var(--bg-app);
}
.inv[data-rail-l="false"] { --guide-w: 0px; }
.inv[data-rail-r="false"] { --detail-w: 0px; }
.inv[data-timeline="false"] { --timeline-h: 0px; }
.inv[data-focus="true"] { --guide-w: 0px; --detail-w: 0px; --timeline-h: 0px; }

.inv-guide { grid-area: guide; background: var(--surface); border-right: 1px solid var(--divider-strong); overflow: hidden auto; min-width: 0; }
.inv-detail { grid-area: detail; background: var(--surface); border-left: 1px solid var(--divider-strong); overflow: hidden auto; min-width: 0; }
.inv-map { grid-area: map; position: relative; min-width: 0; min-height: 0; background: #e6ecf3; }
.inv-timeline { grid-area: timeline; background: var(--surface); border-top: 1px solid var(--divider-strong); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.inv-guide::-webkit-scrollbar, .inv-detail::-webkit-scrollbar { width: 9px; }
.inv-guide::-webkit-scrollbar-thumb, .inv-detail::-webkit-scrollbar-thumb { background: var(--neutral-300); border-radius: 9px; border: 2px solid var(--surface); }

/* investigation header */
.inv-header { grid-area: header; display: flex; align-items: center; gap: 18px; padding: 0 16px; height: 64px; background: var(--surface); border-bottom: 1px solid var(--divider-strong); z-index: 30; }
.ih-id { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.ih-avatar { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-200); display: grid; place-items: center; flex-shrink: 0; }
.ih-id-line { display: flex; align-items: center; gap: 8px; }
.ih-uid { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.ih-id-sub { font-size: 11px; color: var(--text-3); margin-top: 1px; white-space: nowrap; }
.inv-header .risk-pill { height: 28px; font-size: 12px; }
.inv-header .risk-pill .score { width: 20px; height: 20px; font-size: 10.5px; }

.ih-case { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.ih-case-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.ih-case-meta .sep { color: var(--neutral-400); }
.ih-case-meta .bad { color: var(--red-500); }
.ih-caseid { font-weight: 700; color: var(--text); }
.ih-queue { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.ih-queue .qnav { display: inline-flex; gap: 1px; }
.ih-actions { display: flex; align-items: center; gap: 4px; }

/* stage bar */
.stagebar { display: flex; align-items: center; gap: 3px; flex: 1; justify-content: center; min-width: 0; overflow: hidden; }
.stage { display: flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.stage-dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--surface-3); color: var(--text-3); flex-shrink: 0; }
.stage-label { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.stage[data-state="done"] .stage-dot { background: var(--green-500); color: #fff; }
.stage[data-state="done"] .stage-label { color: var(--text-2); }
.stage[data-state="current"] { background: var(--blue-50); }
.stage[data-state="current"] .stage-dot { background: var(--blue-600); color: #fff; box-shadow: 0 0 0 3px var(--blue-100); }
.stage[data-state="current"] .stage-label { color: var(--blue-700); font-weight: 700; }
.stage-link { width: 18px; height: 2px; background: var(--surface-3); border-radius: 2px; flex-shrink: 0; }
.stage-link.done { background: var(--green-300); }
/* compact stepper: only the current stage shows its label */
.stage:not([data-state="current"]) .stage-label { display: none; }

/* =====================================================================
   GUIDE RAIL
   ===================================================================== */
.guide-section { padding: 14px 15px; border-bottom: 1px solid var(--divider); }
.guide-h { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; color: var(--text-3); }
.guide-h .t { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.guide-h .prog { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* recommended action / verdict */
.verdict { border: 1px solid var(--orange-300); background: linear-gradient(180deg, var(--orange-100), #fff); border-radius: 14px; padding: 13px 14px; }
.vd-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--orange-700); background: #fff; border: 1px solid var(--orange-300); border-radius: 999px; padding: 3px 9px; margin-bottom: 8px; }
.vd-title { font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.vd-body { font-size: 12px; color: var(--text-2); line-height: 1.5; margin: 5px 0 11px; }
.vd-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.verdict.resolved { background: var(--surface-1); }
.verdict.resolved.error { border-color: var(--red-300); background: linear-gradient(180deg, var(--red-100), #fff); }
.verdict.resolved.warning { border-color: var(--orange-300); }
.verdict.resolved.success { border-color: var(--green-300); background: linear-gradient(180deg, var(--green-100), #fff); }
.verdict .vd-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.verdict.resolved.error .vd-h { color: var(--red-600); }
.verdict.resolved.success .vd-h { color: var(--green-700); }

/* guided steps */
.step-prog { height: 5px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-bottom: 11px; }
.step-prog span { display: block; height: 100%; background: var(--green-500); border-radius: 4px; transition: width .4s cubic-bezier(.4,0,.2,1); }
.steps { display: flex; flex-direction: column; gap: 3px; }
.step { display: flex; gap: 10px; padding: 7px 8px; border-radius: 9px; cursor: pointer; border: 1px solid transparent; transition: background .12s; }
.step:hover { background: var(--bg-hover); }
.step.current { background: var(--blue-50); border-color: var(--blue-200); }
.step-check { width: 19px; height: 19px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; border: 1.5px solid var(--neutral-400); color: var(--text-3); margin-top: 1px; }
.step.done .step-check { background: var(--green-500); border-color: var(--green-500); color: #fff; }
.step.current .step-check { border-color: var(--blue-600); color: var(--blue-600); }
.step-body { flex: 1; min-width: 0; }
.step-label { font-size: 12.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.step.done .step-label { color: var(--text-3); text-decoration: line-through; }
.step-go { font-size: 10.5px; font-weight: 700; color: var(--blue-600); margin-left: auto; }
.step-hint { font-size: 11px; color: var(--blue-700); margin-top: 3px; line-height: 1.4; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-600); animation: lpulse 1.6s infinite; }

/* signals */
.signals { display: flex; flex-direction: column; gap: 8px; }
.signal { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; }
.sig-name { font-size: 12px; color: var(--text-2); order: 2; }
.sig-val { font-size: 12px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; order: 3; }
.sig-bar { grid-column: 1 / 3; order: 1; height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.sig-bar span { display: block; height: 100%; border-radius: 4px; }

/* =====================================================================
   FILTER BAR (map overlay)
   ===================================================================== */
.filterbar {
  position: absolute; top: 12px; left: 12px; right: 58px; z-index: 500;
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  background: rgba(255,255,255,.96); border: 1px solid var(--divider-strong);
  border-radius: 12px; padding: 7px 11px; box-shadow: var(--shadow-3); backdrop-filter: blur(8px);
}
.fb-div { width: 1px; height: 22px; background: var(--divider-strong); }
.fb-spacer { flex: 1; }
.fb-live { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--green-300); background: var(--green-100); color: var(--green-700); font-family: inherit; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; cursor: pointer; }
.fb-live:not(.on) { border-color: var(--divider-strong); background: var(--surface-2); color: var(--text-3); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }
.fb-live.on .live-dot { animation: lpulse 1.5s infinite; }
.fb-live:not(.on) .live-dot { background: var(--neutral-500); }
@keyframes lpulse { 0% { box-shadow: 0 0 0 0 rgba(29,165,52,.5); } 70% { box-shadow: 0 0 0 6px rgba(29,165,52,0); } 100% { box-shadow: 0 0 0 0 rgba(29,165,52,0); } }

.fb-seg { display: flex; gap: 3px; background: var(--surface-2); border: 1px solid var(--divider-strong); border-radius: 9px; padding: 3px; }
.fb-seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; border-radius: 6px; padding: 5px 10px; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--text-3); cursor: pointer; }
.fb-seg button[data-on="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.fb-seg button .d { width: 8px; height: 8px; border-radius: 50%; opacity: .35; }
.fb-seg button[data-on="true"] .d { opacity: 1; }

.fb-ops { display: flex; align-items: center; gap: 5px; }
.fb-op { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-2); font-family: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.fb-op[data-on="true"] { background: var(--surface); border-color: var(--neutral-400); color: var(--text); }
.fb-op[data-on="false"] { opacity: .4; }
.fb-op.locked { cursor: default; background: var(--orange-100); border-color: var(--orange-300); color: var(--orange-700); }
.fb-op .ring { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 3px solid; box-sizing: border-box; flex-shrink: 0; }

.fb-device { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-2); }
.fb-device select { border: 0; background: transparent; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--text); outline: none; cursor: pointer; max-width: 150px; }
.fb-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); cursor: pointer; }
.fb-reset { background: transparent; border: 0; color: var(--blue-600); font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.fb-reset:hover { text-decoration: underline; }
.fb-stats { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; padding-right: 4px; }
.fb-stats b { color: var(--text); font-weight: 800; }
.fb-stats .ok b { color: var(--green-600); }
.fb-stats .bad b { color: var(--red-500); }

/* timeline live + fresh card */
.tl-live { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--green-700); }
.tx-card.fresh { animation: cardin .5s cubic-bezier(.34,1.2,.4,1); }
@keyframes cardin { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.tc-new { font-size: 9px; font-weight: 800; letter-spacing: .05em; color: var(--green-700); background: var(--green-100); border: 1px solid var(--green-300); border-radius: 5px; padding: 1px 5px; }

/* drawer title + link row + tx reason */
.drawer-title { display: flex; align-items: baseline; gap: 8px; padding: 4px 0 14px; }
.drawer-title .dt-t { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.drawer-title .dt-hint { font-size: 11px; color: var(--text-3); margin-left: auto; }
.link-row { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--divider-strong); border-radius: 10px; background: var(--surface-1); color: var(--blue-700); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.link-row:hover { border-color: var(--blue-400); background: var(--blue-50); }
.link-row svg:last-child { margin-left: auto; }
.txd-reason { display: flex; gap: 8px; align-items: flex-start; background: var(--red-100); border: 1px solid var(--red-300); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; color: var(--red-700); font-size: 12.5px; font-weight: 500; }

/* live pins do not pulse — only clusters do (see .cm-glow). New ones gently fade/scale in once. */
.leaflet-marker-icon.tx-pin.live { overflow: visible; animation: tx-appear .6s cubic-bezier(.34,1.4,.5,1) both; }
@keyframes tx-appear { 0% { opacity: 0; transform: scale(.2); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .leaflet-marker-icon.tx-pin.live { animation: none !important; } .pulse-dot, .live-dot, .pni-live, .tx-clustermark .cm-glow, .tx-clustermark .cm-glass::before { animation: none !important; } }

/* MUI-style Snackbar */
.toast-host { position: fixed; bottom: 24px; left: 24px; z-index: 9000; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; pointer-events: none; }
.snack { pointer-events: auto; display: flex; align-items: center; gap: 10px; min-width: 300px; max-width: 480px; background: var(--neutral-900); color: #fff; border-radius: 6px; padding: 10px 8px 10px 14px; box-shadow: 0 3px 5px -1px rgba(0,0,0,.2), 0 6px 10px 0 rgba(0,0,0,.14), 0 1px 18px 0 rgba(0,0,0,.12); animation: snack-in .2s cubic-bezier(.4,0,.2,1); }
@keyframes snack-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.snack-ic { flex-shrink: 0; display: inline-flex; }
.snack-success .snack-ic { color: #66BB6A; }
.snack-error   .snack-ic { color: #F44336; }
.snack-warning .snack-ic { color: #FFA726; }
.snack-info    .snack-ic { color: #42A5F5; }
.snack-text { flex: 1; font-size: 13.5px; font-weight: 500; line-height: 1.43; letter-spacing: .01em; }
.snack-action { border: 0; background: transparent; color: #90CAF9; font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; padding: 4px 8px; border-radius: 4px; flex-shrink: 0; }
.snack-action:hover { background: rgba(144,202,249,.08); }
.snack-close { border: 0; background: transparent; color: rgba(255,255,255,.7); cursor: pointer; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.snack-close:hover { background: rgba(255,255,255,.08); color: #fff; } 8px; animation: cardin .3s ease; }

/* responsive */
@media (max-width: 1200px) {
  .inv-header { gap: 12px; }
  .ih-id-sub { display: none; }
  .stagebar .stage:not([data-state="current"]) .stage-label { display: none; }
}
@media (max-width: 1040px) {
  .inv { --guide-w: 0px; }
  .ih-case-meta .ih-queue { display: none; }
}

/* =====================================================================
   TESLA-STYLE SHELL — full-bleed map + floating glass panels
   ===================================================================== */
.tesla {
  position: fixed; inset: 0; background: #e6ecf3; font-family: var(--font-sans);
  --dockw: 58px; --panelw: clamp(326px, 25vw, 392px); --edge: 14px;
}
.tesla .txmap-wrap { position: absolute; inset: 0; }
.tesla[data-focus="true"] .tdock,
.tesla[data-focus="true"] .tctrl,
.tesla[data-focus="true"] .tpanel,
.tesla[data-focus="true"] .tsheet,
.tesla[data-focus="true"] .panel-restore { display: none !important; }

.tdock, .tsearch, .tchips, .tpanel, .tsheet, .panel-restore {
  background: rgba(255,255,255,.93); backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.65); box-shadow: var(--shadow-12);
}

/* nav dock */
.tdock { position: absolute; left: var(--edge); top: var(--edge); bottom: var(--edge); width: var(--dockw); z-index: 600; display: flex; flex-direction: column; align-items: center; gap: 8px; border-radius: 22px; padding: 10px 0; }
.tdock-logo { width: 40px; height: 40px; border-radius: 13px; background: var(--blue-600); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.tdock-items { display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: flex-start; flex: 1; padding-top: 8px; }
.tdock-sep { width: 22px; height: 1px; background: var(--divider-strong); margin: 7px 0; flex-shrink: 0; }
.tdock-item { position: relative; width: 42px; height: 42px; border-radius: 13px; border: 0; background: transparent; color: var(--text-2); display: grid; place-items: center; cursor: pointer; transition: background .13s, color .13s; }
.tdock-item:hover { background: var(--bg-hover); color: var(--text); }
.tdock-item[data-disabled="true"] { opacity: .38; cursor: not-allowed; }
.tdock-item[data-disabled="true"]:hover { background: transparent; color: var(--text-2); }
.tdock-item[data-active="true"] { background: var(--blue-50); color: var(--blue-700); }
.tdock-tip { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); background: var(--neutral-900); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .13s; z-index: 5; }
.tdock-item:hover .tdock-tip { opacity: 1; }
.dock-live { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); animation: lpulse 1.8s infinite; }
.dock-badge { position: absolute; top: 5px; right: 5px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: var(--red-500); color: #fff; font-size: 9px; font-weight: 800; display: grid; place-items: center; }
.tdock-foot { flex-shrink: 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 10px; }
.tdock-foot::before { content: ""; width: 22px; height: 1px; background: var(--divider-strong); }
.tdock-theme { position: relative; width: 42px; height: 42px; border-radius: 13px; border: 0; padding: 0; background: transparent; color: var(--text-2); display: grid; place-items: center; cursor: pointer; transition: background .13s, color .13s; }
.tdock-theme:hover { background: var(--bg-hover); color: var(--text); }
.tdock-theme .tdock-tip { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); background: var(--neutral-900); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .13s; z-index: 5; }
.tdock-theme:hover .tdock-tip { opacity: 1; }
.tdock-profile { width: 42px; height: 42px; border: 0; padding: 0; cursor: pointer; background: transparent; position: relative; display: grid; place-items: center; }
.tdock-profile .av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(140deg,#2B323B,#4E5B68); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; margin: 0 auto; }
.scope-dot { position: absolute; bottom: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--surface); }
.scope-dot.internal { background: var(--blue-600); }
.scope-dot.client { background: var(--orange-500); }
.role-pop { position: absolute; left: calc(100% + 12px); bottom: 0; width: 252px; background: #fff; border: 1px solid var(--divider-strong); border-radius: 14px; box-shadow: var(--shadow-12); padding: 8px; z-index: 700; }
.rp-who { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; }
.rp-who .av { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(140deg,#2B323B,#4E5B68); color: #fff; font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.rp-who .n { font-size: 13px; font-weight: 700; }
.rp-who .r { font-size: 11px; color: var(--text-3); }
.rp-label { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 4px 8px; }
.rp-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; text-align: left; font-family: inherit; color: var(--text); }
.rp-item:hover { background: var(--bg-hover); }
.rp-item[data-on="true"] { background: var(--blue-50); }
.rp-item .t { font-size: 12.5px; font-weight: 600; }
.rp-item .s { font-size: 11px; color: var(--text-3); }
.rp-item svg:last-child { margin-left: auto; color: var(--blue-600); }
.rolesw-ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; }
.rolesw-ico.internal { background: var(--blue-50); color: var(--blue-700); }
.rolesw-ico.client { background: var(--orange-100); color: var(--orange-600); }

/* top controls */
.tctrl { position: absolute; top: var(--edge); left: calc(var(--edge) + var(--dockw) + var(--edge)); right: var(--edge); z-index: 560; display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; pointer-events: none; }
.tctrl > * { pointer-events: auto; }
.tsearch { display: flex; align-items: center; gap: 9px; min-height: 46px; width: var(--panelw); flex-shrink: 0; padding: 0 14px; border-radius: 14px; color: var(--text-3); position: relative; }
.tesla[data-page="livemap"] .tsearch { width: clamp(360px, 26vw, 500px); }
.tsearch[data-open="true"] { background: #fff; }
.tsearch input { flex: 1; border: 0; background: transparent; outline: none; font-family: inherit; font-size: 14px; color: var(--text); }
.tsearch input::placeholder { color: var(--text-3); }
.tsearch-body { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; flex: 1; min-width: 0; padding: 4px 0; }
.tsearch-body input { min-width: 100px; flex: 1; height: 26px; }
.sp-chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--blue-50); border: 1px solid var(--blue-200); color: var(--blue-700); font-size: 12px; font-weight: 600; font-family: var(--font-mono, monospace); white-space: nowrap; flex-shrink: 0; }
.sp-chip-x { width: 18px; height: 18px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--blue-400); border-radius: 50%; padding: 0; flex-shrink: 0; }
.sp-chip-x:hover { background: var(--blue-100); color: var(--blue-700); }
.tsearch kbd { font-size: 11px; font-weight: 600; color: var(--text-3); background: var(--surface-2); border: 1px solid var(--divider-strong); border-radius: 6px; padding: 2px 6px; font-family: var(--font-sans); }
.tsearch-enter { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.tsearch-ret { font-size: 12px; line-height: 1; }
.tsearch-pop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--divider-strong); border-radius: 14px; box-shadow: var(--shadow-12); padding: 8px; z-index: 80; }
.sp-label { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 4px 8px 6px; }
.sp-item { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 10px; cursor: pointer; }
.sp-item:hover { background: var(--bg-hover); }
.sp-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex-shrink: 0; }
.sp-ic.act { background: var(--blue-600); color: #fff; }
.sp-item .t { font-size: 13px; font-weight: 600; }
.sp-item .s { font-size: 11.5px; color: var(--text-3); }
.sp-label-row { display: flex; align-items: center; justify-content: space-between; padding-right: 8px; }
.sp-clear-all { border: 0; background: transparent; font-size: 11px; font-weight: 700; color: var(--text-3); cursor: pointer; padding: 0; }
.sp-clear-all:hover { color: var(--text); }
.sp-recent { position: relative; padding-right: 40px; }
.sp-recent-txt { flex: 1; min-width: 0; }
.sp-recent-txt .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-recent-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--text-3); cursor: pointer; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; }e; place-items: center; border-radius: 5px; }
.sp-recent-x:hover { background: var(--surface-3); color: var(--text); }

.tchips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; border-radius: 14px; padding: 0 11px; height: 46px; }
.tesla[data-page="livemap"] .tchips { gap: 6px; }
.tesla[data-page="livemap"] .tchips .pill, .tesla[data-page="livemap"] .tchips .pill-seg button, .tesla[data-page="livemap"] .tchips .view-seg button, .tesla[data-page="livemap"] .tchips .opchip { padding-left: 9px; padding-right: 9px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-2); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pill:hover { border-color: var(--neutral-400); }
.pill.live { border-color: var(--green-300); background: var(--green-100); color: var(--green-700); font-weight: 800; }
.pill.live.on { background: var(--green-100); border-color: var(--green-300); color: var(--green-700); }
.pill.live.on .live-dot { background: var(--green-600); animation: lpulse 1.5s infinite; }
.pill.live:not(.on) { border-color: var(--divider-strong); background: var(--surface-2); color: var(--text-3); }
.pill.live:not(.on) .live-dot { background: var(--neutral-500); }
.pill.live.historical { border-color: var(--blue-200); background: var(--blue-50); color: var(--blue-700); font-weight: 800; cursor: default; }
.pill.live.historical .live-dot { background: var(--blue-500); animation: none; }
/* dark mode: same light-green pill + dark-green pulsing dot — ONLY when live/on */
.tesla[data-theme="dark"] .pill.live.on,
.tesla[data-theme="dark"] .lm-livepill:not(.off) { background: color-mix(in srgb, #1F8A5B 26%, var(--surface)) !important; border-color: color-mix(in srgb, #2FB37A 45%, transparent) !important; color: #6FE6A8 !important; }
.tesla[data-theme="dark"] .pill.live.on .live-dot,
.tesla[data-theme="dark"] .lm-livepill:not(.off) .live-dot { background: #2FB37A !important; }
.pill.toggle.on { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-700); }
.pill.ghost { border-color: transparent; background: transparent; color: var(--blue-600); font-weight: 700; }
.pill-seg { display: flex; gap: 3px; background: var(--surface-2); border: 1px solid var(--divider-strong); border-radius: 10px; padding: 3px; height: 32px; box-sizing: border-box; align-items: stretch; }
.pill-seg button { flex: 1; justify-content: center; min-width: 66px; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; border-radius: 7px; padding: 0 12px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-3); cursor: pointer; }
.pill-seg button[data-on="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.pill-seg .d { width: 8px; height: 8px; border-radius: 50%; opacity: .35; flex-shrink: 0; box-sizing: border-box; }
.pill-seg button[data-on="true"] .d { opacity: 1; }
.pill-ops { display: flex; gap: 5px; }
.opchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-2); font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.opchip[data-on="false"] { opacity: .4; }
.opchip.dev[data-on="false"] { opacity: .5; text-decoration: line-through; text-decoration-color: var(--neutral-500); }
.opchip.dev[data-on="false"] .dot { background: transparent !important; box-shadow: inset 0 0 0 2px var(--neutral-400); }
.opchip.dev[data-on="true"] { border-color: var(--neutral-400); }
.opchip.locked { cursor: default; background: var(--orange-100); border-color: var(--orange-300); color: var(--orange-700); }
.opchip .ring { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 3px solid; box-sizing: border-box; flex-shrink: 0; }
.opchip .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }

/* operator filter popover (scales to many, searchable) */
.op-search { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--divider-strong); border-radius: 9px; margin-bottom: 6px; color: var(--text-3); }
.op-search input { border: 0; background: transparent; outline: none; font-family: inherit; font-size: 13px; color: var(--text); width: 100%; }
.op-list { max-height: 248px; overflow: auto; }
.op-swatch { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid; box-sizing: border-box; flex-shrink: 0; }
.op-empty { padding: 14px; text-align: center; color: var(--text-3); font-size: 12px; }

/* fixed-width counts so live ticking doesn't shift tabs */
.sheet-tabs .n { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.pill.live { min-width: 78px; justify-content: center; }
.pill.device select { border: 0; background: transparent; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--text); outline: none; cursor: pointer; max-width: 142px; }

/* device multi-select popover */
.pill-wrap { position: relative; }
.pill.device.active { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-700); }
.pill.device .dev-label { font-weight: 700; }
.dev-pop { position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px; background: #fff; border: 1px solid var(--divider-strong); border-radius: 14px; box-shadow: var(--shadow-12); padding: 8px; z-index: 90; }
.dev-pop-h { display: flex; align-items: center; padding: 4px 8px 8px; }
.dev-pop-h span { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.dev-pop-h button { margin-left: auto; border: 0; background: transparent; color: var(--blue-600); font-family: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.dev-pop-h button:disabled { color: var(--neutral-400); cursor: default; }
.dev-row { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 10px; cursor: pointer; }
.dev-row:hover { background: var(--bg-hover); }
.dev-row[data-on="false"] { opacity: .5; }
.dev-row .dev-check { width: 18px; height: 18px; border-radius: 6px; flex-shrink: 0; border: 1.5px solid var(--neutral-400); display: grid; place-items: center; color: #fff; }
.dev-row[data-on="true"] .dev-check { background: var(--blue-600); border-color: var(--blue-600); }
.dev-row .di { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.dev-row .dev-body { flex: 1; min-width: 0; }
.dev-row .dev-body .m { font-size: 13px; font-weight: 600; }
.dev-row .dev-body .s { font-size: 11px; color: var(--text-3); }
.dev-quick { display: flex; gap: 4px; opacity: 0; transition: opacity .12s; }
.dev-row:hover .dev-quick { opacity: 1; }
.dev-quick button { border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-2); font-family: inherit; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 7px; cursor: pointer; }
.dev-quick button:hover { border-color: var(--blue-400); color: var(--blue-600); background: var(--blue-50); }

/* view toggle (map / table) */
.view-seg { margin-left: auto; display: flex; gap: 3px; background: var(--surface-2); border: 1px solid var(--divider-strong); border-radius: 10px; padding: 3px; }
.view-seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; border-radius: 7px; padding: 5px 11px; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-3); cursor: pointer; }
.view-seg button[data-on="true"] { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-1); }

/* subject Compliance / Antifraud tabs */
.subj-tabs { display: flex; gap: 4px; background: var(--surface-2); border-radius: 11px; padding: 4px; margin-bottom: 14px; }
.cg-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(16,24,40,.5); display: grid; place-items: center; padding: 32px; }
.cg-modal { width: min(1000px, 94vw); height: min(720px, 88vh); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-12); display: flex; flex-direction: column; overflow: hidden; }
.cg-modal-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--divider); font-size: 14px; font-weight: 700; color: var(--text); }
.cg-modal-h span { display: inline-flex; align-items: center; gap: 8px; }
.cg-x { width: 30px; height: 30px; border: 0; background: transparent; border-radius: 8px; font-size: 20px; color: var(--text-3); cursor: pointer; }
.cg-x:hover { background: var(--surface-3); color: var(--text); }
.subj-graphwrap { position: relative; height: 460px; border: 1px solid var(--divider); border-radius: 12px; overflow: hidden; background: var(--surface-1); }
.graph-overlay { position: absolute; inset: 0; z-index: 380; background: var(--surface-1); }
.graph-overlay > * { position: absolute; inset: 0; }
.subj-graphwrap > * { position: absolute; inset: 0; }
.cg-modal-b { flex: 1; min-height: 0; overflow: auto; position: relative; }
.subj-graphbtn { flex-shrink: 0; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--blue-300); background: var(--blue-50); color: var(--blue-700); border-radius: 9px; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.subj-graphbtn:hover { background: var(--blue-100); border-color: var(--blue-400); }
.subj-tabs button { flex: 1; border: 0; background: transparent; border-radius: 8px; padding: 7px; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--text-3); cursor: pointer; }
.subj-tabs button[data-on="true"] { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-1); }

/* stat grid (compliance) */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { border: 1px solid var(--divider-strong); border-radius: 11px; padding: 9px 11px; background: var(--surface-1); }
.stat .k { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); }
.stat .v { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; color: var(--text); }
.stat .v.sm { font-size: 12.5px; font-weight: 600; }
.stat .v.bad { color: var(--red-500); }

/* error breakdown */
.err-breakdown { display: flex; flex-direction: column; gap: 9px; }
.err-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; }
.err-name { font-size: 12px; color: var(--text-2); }
.err-pct { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.err-track { grid-column: 1 / 3; height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.err-track span { display: block; height: 100%; border-radius: 4px; }

/* activity chart — clean smooth area + line */
.act-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; font-size: 12px; color: var(--text-2); }
.act-summary .as-item { display: inline-flex; align-items: center; gap: 6px; }
.act-summary .as-item b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.act-summary .dot { width: 9px; height: 9px; border-radius: 3px; }
.act-summary .dot.pass { background: var(--green-500); }
.act-summary .dot.fail { background: var(--red-500); }
.act-summary .as-rate { margin-left: auto; font-weight: 700; color: var(--text-2); }
.actx-plot { position: relative; }
.actx-svg { width: 100%; height: 116px; display: block; overflow: visible; }
.actx-pass { fill: none; stroke: var(--green-500); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.actx-fail { fill: none; stroke: var(--red-500); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.actx-grid { stroke: var(--divider); stroke-width: 1; vector-effect: non-scaling-stroke; }
.actx-cross { stroke: var(--neutral-400); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.actx-ymax { position: absolute; top: -3px; left: 0; font-size: 9.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.actx-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid; transform: translate(-50%, -50%); pointer-events: none; }
.actx-dot.pass { border-color: var(--green-500); }
.actx-dot.fail { border-color: var(--red-500); }
.actx-tip { position: absolute; bottom: calc(100% - 8px); transform: translateX(-50%); background: var(--neutral-900); color: #fff; border-radius: 9px; padding: 7px 10px; font-size: 10.5px; white-space: nowrap; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow-6); pointer-events: none; z-index: 6; }
.actx-tip b { font-size: 11.5px; }
.actx-tip span { display: inline-flex; align-items: center; gap: 5px; color: #C9CFDA; }
.actx-tip .dot { width: 7px; height: 7px; border-radius: 2px; }
.actx-tip .dot.pass { background: var(--green-500); }
.actx-tip .dot.fail { background: var(--red-500); }
.actx-x { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-3); margin-top: 6px; }

/* full-width device grid in the sheet (cards stretch evenly) */
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; padding: 4px 16px 14px; overflow: auto; align-content: start; flex: 1; min-height: 0; }
.sheet-grid .dev-card { width: auto; }

/* connection tree (user → device → linked users) */
.conn-tree { display: flex; flex-direction: column; gap: 8px; }
.ct-device { border: 1px solid var(--divider-strong); border-radius: 12px; overflow: hidden; }
.ct-device.blocked { border-color: color-mix(in srgb, var(--red-500) 40%, transparent); background: color-mix(in srgb, var(--red-500) 5%, transparent); }
.ct-blocked { display: inline-flex; align-items: center; gap: 3px; margin-left: 7px; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--red-600); background: color-mix(in srgb, var(--red-500) 14%, transparent); padding: 1px 5px 1px 3px; border-radius: 5px; vertical-align: middle; }
.ct-device.blocked .ct-dev-row .s { color: var(--red-600); }
.ct-dev-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; cursor: pointer; }
.ct-dev-row:hover { background: var(--bg-hover); }
.ct-dev-row .di { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.ct-dev-row .body { flex: 1; min-width: 0; }
.ct-dev-row .m { font-size: 13px; font-weight: 600; }
.ct-dev-row .s { font-size: 11px; color: var(--text-3); }
.ct-users { background: var(--surface-1); border-top: 1px solid var(--divider); padding: 4px 10px 8px 16px; }
.ct-user { display: flex; align-items: center; gap: 8px; padding: 5px 0; position: relative; }
.ct-user .branch { width: 10px; height: 10px; border-left: 1.5px solid var(--divider-strong); border-bottom: 1.5px solid var(--divider-strong); border-radius: 0 0 0 3px; flex-shrink: 0; margin-left: 2px; }
.ct-user .ci { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; }
.ct-user .name { font-size: 12px; font-weight: 600; }
.ct-user .role { font-size: 11px; color: var(--text-3); margin-left: auto; }
.ct-user .flagdot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-500); flex-shrink: 0; }

/* bottom sheet tabs + show pass + devices */
.sheet-tabs { display: flex; gap: 2px; }
.sheet-tabs button { border: 0; background: transparent; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-3); cursor: pointer; padding: 5px 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 7px; }y: inline-flex; align-items: center; gap: 6px; }
.sheet-tabs button[data-on="true"] { background: var(--blue-50); color: var(--blue-700); }
.sheet-tabs .n { font-size: 11px; font-weight: 700; background: var(--surface-2); border-radius: 6px; padding: 0 6px; }
.sheet-tabs button[data-on="true"] .n { background: #fff; }
.show-pass { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.show-pass .tgl { width: 32px; height: 18px; border-radius: 999px; background: var(--neutral-300); position: relative; transition: background .15s; }
.show-pass .tgl.on { background: var(--blue-600); }
.show-pass .tgl .knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.show-pass .tgl.on .knob { left: 16px; }
.sheet-chev { border: 0; background: var(--surface-2); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--text-3); cursor: pointer; }

.dev-card { width: 200px; flex-shrink: 0; min-height: 132px; border: 1px solid var(--divider-strong); padding: 12px; cursor: pointer; transition: border-color .12s, box-shadow .12s; display: flex; flex-direction: column; justify-content: space-between; gap: 7px; border-radius: 12px; }
.sheet-grid .dev-card { width: auto; min-height: 146px; height: 146px; }
.dev-card:hover { border-color: var(--neutral-400); box-shadow: var(--shadow-2); }
.dev-card { position: relative; transition: border-color .14s ease, box-shadow .16s ease, transform .16s ease; }
.dev-card[data-sel="true"] { border-color: var(--blue-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-600) 16%, transparent), 0 10px 24px -6px color-mix(in srgb, var(--blue-600) 32%, transparent); transform: translateY(-2px); }
.dev-card[data-sel="true"]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue-600) 45%, transparent); }
.dc-top { display: flex; align-items: center; gap: 9px; }
.dc-top .di { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.dc-id { flex: 1; min-width: 0; }
.dc-top .m { font-size: 13px; font-weight: 700; }
.dc-top .s { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-stats { display: flex; gap: 12px; font-size: 11.5px; color: var(--text-3); }
.dc-stats b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.dc-stats .bad b { color: var(--red-500); }
.dc-bar { display: flex; height: 7px; border-radius: 4px; overflow: hidden; background: var(--surface-3); }
.dc-bar .pass { background: var(--green-500); }
.dc-bar .fail { background: var(--red-500); }
.dc-empty { font-size: 11px; color: var(--text-3); }
.dc-flags { display: flex; flex-wrap: nowrap; gap: 5px; overflow: hidden; }
.dc-more { font-size: 10px; font-weight: 700; color: var(--text-3); background: var(--surface-2); border: 1px solid var(--divider-strong); border-radius: 6px; padding: 2px 7px; flex-shrink: 0; }
.dc-flag { font-size: 10px; font-weight: 700; color: var(--red-600); background: var(--red-100); border: 1px solid var(--red-300); border-radius: 6px; padding: 2px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-noflag { font-size: 11px; color: var(--green-700); }
.dev-card.devblocked { border-color: color-mix(in srgb, var(--red-500) 45%, transparent); background: color-mix(in srgb, var(--red-500) 5%, transparent); }
.dc-blocked { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-size: 9px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--red-600); background: color-mix(in srgb, var(--red-500) 14%, transparent); padding: 1px 5px 1px 3px; border-radius: 5px; vertical-align: middle; }
.dc-bottom { display: flex; align-items: center; gap: 8px; }
.dc-bottom .dc-flags { flex: 1; min-width: 0; }
.dc-switch { flex-shrink: 0; width: 30px; height: 18px; border-radius: 999px; border: 0; background: var(--neutral-300); position: relative; cursor: pointer; padding: 0; transition: background .15s; }
.dc-switch span { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.dc-switch.on { background: var(--green-500); }
.dc-switch.on span { transform: translateX(12px); }
.dev-card[data-off] { opacity: .5; }
.dev-card[data-off] .dc-switch { background: var(--neutral-300); }
.dc-foot { font-size: 10.5px; color: var(--text-3); }
.sheet-grid { grid-auto-rows: max-content; }

/* transactions table */
.ttable { position: absolute; top: 74px; bottom: var(--edge); left: calc(var(--edge) + var(--dockw) + var(--edge) + var(--panelw) + var(--edge)); right: var(--edge); z-index: 530; background: #fff; border: 1px solid var(--divider-strong); border-radius: 18px; box-shadow: var(--shadow-12); overflow: hidden; display: flex; flex-direction: column; }
.ttable-scroll { overflow: auto; flex: 1; min-height: 0; }
.ttable-foot { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-top: 1px solid var(--divider-strong); background: var(--surface-1); font-size: 12.5px; color: var(--text-2); }
.ttable-foot b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.ttable-foot .pager { display: flex; align-items: center; gap: 12px; }
.ttable-foot .pager button { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 9px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.ttable-foot .pager button:hover:not(:disabled) { border-color: var(--neutral-400); color: var(--text); }
.ttable-foot .pager button:disabled { opacity: .4; cursor: default; }
.ttable-foot .pager .pg { font-variant-numeric: tabular-nums; }
.txtable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.txtable thead th { position: sticky; top: 0; background: var(--surface-1); z-index: 2; text-align: left; padding: 12px 10px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--divider-strong); white-space: nowrap; }
.txtable thead th.tt-sort { cursor: pointer; user-select: none; }
.txtable thead th.tt-sort:hover { color: var(--text); }
.txtable tbody td { padding: 11px 10px; border-bottom: 1px solid var(--divider); white-space: nowrap; }
.txtable td.mono.dim { max-width: 116px; overflow: hidden; text-overflow: ellipsis; }
.txtable tbody tr { cursor: pointer; transition: background .1s; }
.txtable tbody tr:hover { background: var(--bg-hover); }
.txtable tbody tr[data-sel="true"] { background: var(--blue-50); }
.txtable td.dim { color: var(--text-3); }
.txtable td.err { color: var(--red-600); white-space: normal; max-width: 220px; }
.txtable .st-pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: capitalize; color: #fff; padding: 3px 11px; border-radius: 999px; }
.txtable .op-cell { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.txlink { color: var(--blue-600); cursor: pointer; font-weight: 600; }
.txlink:hover { text-decoration: underline; }
.txtable .op-cell .ring { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 3px solid; box-sizing: border-box; }

/* hide map chrome in table / graph view */
.tesla[data-view="table"] .map-toolstack,
.tesla[data-view="table"] .tsheet,
.tesla[data-view="graph"] .map-toolstack,
.tesla[data-view="graph"] .tsheet { display: none; }

/* cluster legend */
.cluster-legend { position: absolute; top: 72px; right: 16px; z-index: 540; display: inline-flex; align-items: center; gap: 8px; max-width: 320px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border: 1px solid var(--divider-strong); border-radius: 999px; box-shadow: var(--shadow-3); padding: 7px 14px 7px 11px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.cluster-legend .cl-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--red-500); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--red-300); flex-shrink: 0; }
.tesla[data-theme="dark"] .cluster-legend { background: rgba(23,27,34,.95); border-color: var(--divider-strong); }
.tgraph { position: absolute; top: 74px; bottom: var(--edge); left: calc(var(--edge) + var(--dockw) + var(--edge) + var(--panelw) + var(--edge)); right: var(--edge); z-index: 530; background: #fff; border: 1px solid var(--divider-strong); border-radius: 18px; box-shadow: var(--shadow-12); overflow: hidden; display: flex; }
.tgraph .graph-host { flex: 1; min-width: 0; height: 100%; position: relative; }
.tgraph .cg-host { flex: 1; min-width: 0; height: 100%; position: relative; display: flex; }
.cg-svg { width: 100%; height: 100%; display: block; }
.cg-zoom { position: absolute; right: 16px; bottom: 16px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.cg-zoom button { width: 36px; height: 36px; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 10px; font-size: 19px; font-weight: 600; line-height: 1; color: var(--text-2); cursor: pointer; box-shadow: var(--shadow-2); display: grid; place-items: center; }
.cg-zoom button:hover { border-color: var(--neutral-400); color: var(--text); }
.cg-zoom-reset { font-size: 15px !important; margin-top: 2px; }
.cg-card { position: absolute; top: 58px; right: 16px; z-index: 4; width: 264px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 14px; box-shadow: var(--shadow-12); padding: 14px 16px; animation: cgcard .16s ease; }
@keyframes cgcard { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cg-card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cg-card-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.cg-card-x { border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--text-3); cursor: pointer; }
.cg-card-title { font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--text); margin-bottom: 11px; font-family: var(--font-mono, inherit); }
.cg-card-rows { display: flex; flex-direction: column; gap: 8px; }
.cg-card-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.cg-card-row .k { color: var(--text-3); font-weight: 600; flex-shrink: 0; }
.cg-card-row .v { color: var(--text); font-weight: 600; text-align: right; }
.cg-card-act { margin-top: 13px; width: 100%; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--blue-700); border-radius: 9px; padding: 8px; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.cg-card-act:hover { border-color: var(--blue-400); background: var(--blue-50); }
/* ===================================================================
   Live map page
   =================================================================== */
.lm { display: flex; flex-direction: column; height: 100%; min-height: 0; gap: 14px; }
.lm [hidden], .lm-tool[hidden], .lm-kpi[hidden], .lm-statseg[hidden], .lm-search[hidden] { display: none !important; }
.lm-live { display: inline-flex; align-items: center; gap: 5px; color: var(--green-700); font-weight: 700; }
.lm-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); animation: lpulse 1.8s infinite; }
.lm-kpi { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.lm-kpi-c { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--divider); border-radius: 13px; padding: 12px 14px; }
.lm-kpi-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.lm-kpi-tx { flex: 1; min-width: 0; }
.lm-kpi-c .k { font-size: 11px; font-weight: 600; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-kpi-c .v { font-size: 21px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lm-kpi-d { font-size: 11px; font-weight: 700; flex-shrink: 0; }
.lm-kpi-d.up { color: #1A7F45; } .lm-kpi-d.down { color: #BE3220; }
.lm-tool { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.lm-statseg { height: 38px; }
.lm-search { height: 38px; flex: 1 1 120px; min-width: 110px; max-width: 320px; margin-left: auto; }
@media (max-width: 1280px) { .lm-search { max-width: none; } }
.lm-body { flex: 1; min-height: 0; display: flex; }
.lm-body .lm-mapwrap { flex: 1; min-height: 0; height: auto; }
.lm-mapwrap { position: relative; border: 1px solid var(--divider); border-radius: 16px; overflow: hidden; min-height: 0; }
.lm-layers { position: absolute; top: auto; right: 24px; left: auto; bottom: 24px; z-index: 500; background: rgba(255,255,255,.95); border: 1px solid var(--divider-strong); border-radius: 12px; padding: 7px; box-shadow: var(--shadow-4); backdrop-filter: blur(6px); width: 188px; }
.tesla[data-theme="dark"] .lm-layers { background: rgba(20,26,38,.92); }
/* Filters chip in the top toolbar */
.tc-filters { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: 1px solid var(--divider-strong); background: var(--surface); }
.tc-filters:hover { border-color: var(--neutral-400); }
.tc-filters[data-on] { border-color: var(--blue-500); color: var(--blue-700); background: var(--blue-50); }
.tc-filtbadge { background: var(--blue-600); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; min-width: 17px; height: 17px; display: inline-grid; place-items: center; padding: 0 5px; }
/* page-header time-range control */
.tc-range { position: relative; }
.tc-range-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 50; width: 232px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 12px; box-shadow: var(--shadow-8); padding: 6px; }
.tc-range-preset { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: transparent; border-radius: 8px; padding: 8px 10px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text); cursor: pointer; text-align: left; }
.tc-range-preset:hover { background: var(--bg-hover); }
.tc-range-preset[data-on] { color: var(--blue-700); }
.tc-range-preset svg { color: var(--blue-600); }
.tc-range-custom { border-top: 1px solid var(--divider); margin-top: 6px; padding: 10px 4px 4px; }
.tc-range-h { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.tc-range-fields { display: flex; align-items: center; gap: 7px; }
.tc-range-fields input { flex: 1; min-width: 0; border: 1px solid var(--divider-strong); border-radius: 8px; padding: 6px 8px; font-family: inherit; font-size: 12px; color: var(--text); background: var(--surface); }
.tc-range-fields input:focus { outline: none; border-color: var(--blue-500); }
.tc-range-fields span { color: var(--text-3); }
.tc-range-note { font-size: 11px; color: var(--text-3); margin: 8px 0; }
.tc-range-note.err { color: #CC0000; font-weight: 600; }
.tc-range-apply { width: 100%; border: 0; background: var(--blue-600); color: #fff; border-radius: 8px; padding: 8px; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.tc-range-apply:disabled { opacity: .45; cursor: not-allowed; }
/* Live-map Filters button + slide-over panel */
.lm-filtbtn { position: absolute; top: 16px; right: 16px; left: auto; z-index: 500; display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.96); border: 1px solid var(--divider-strong); border-radius: 10px; padding: 8px 13px; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; box-shadow: 0 2px 8px rgba(16,24,40,.1); }
.lm-filtbtn:hover { border-color: var(--neutral-400); }
.lm-filtbtn[data-on] { border-color: var(--blue-500); color: var(--blue-700); }
.lm-filtbadge { background: var(--blue-600); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; }
.lmf-scrim { position: fixed; inset: 0; z-index: 1300; background: rgba(16,24,40,.32); display: flex; justify-content: flex-end; }
.lmf-panel { width: 380px; max-width: 92vw; background: var(--surface); height: 100%; display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(16,24,40,.18); animation: lmf-in .18s ease; }
@keyframes lmf-in { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.lmf-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid var(--divider); }
.lmf-title { font-size: 17px; font-weight: 700; color: var(--text); font-family: var(--font-base); display: flex; align-items: center; gap: 8px; }
.lmf-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; border-radius: 999px; background: var(--blue-600); color: #fff; font-size: 11px; font-weight: 800; padding: 0 5px; }
.lmf-reset { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 8px; padding: 6px 11px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.lmf-reset:hover { background: var(--surface-2); }
.lmf-b { flex: 1; overflow-y: auto; padding: 6px 16px; }
/* accordion sections */
.lmf-acc { border-bottom: 1px solid var(--divider); }
.lmf-acc-h { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: transparent; padding: 14px 4px; font-family: inherit; cursor: pointer; }
.lmf-acc-t { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.lmf-acc-n { background: var(--blue-600); color: #fff; font-size: 10.5px; font-weight: 800; border-radius: 999px; min-width: 17px; height: 17px; display: inline-grid; place-items: center; padding: 0 5px; }
.lmf-acc-h > svg { color: var(--text-3); transition: transform .18s ease; }
.lmf-acc[data-open] .lmf-acc-h > svg { transform: rotate(90deg); }
.lmf-acc-b { padding: 2px 4px 16px; }
/* checkbox rows */
.lmf-section { padding: 14px 20px 10px; border-bottom: 1px solid var(--divider); }
.lmf-sec-h { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.lmf-cbrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; user-select: none; }
.lmf-cbrow:hover .lmf-cb { border-color: var(--blue-500); }
.lmf-cb { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--divider-strong); background: var(--surface); display: grid; place-items: center; flex-shrink: 0; transition: background .1s, border-color .1s; }
.lmf-cb.on { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.lmf-cblbl { font-size: 13.5px; color: var(--text); font-weight: 500; }
/* chip multi-select */
.lmf-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.lmf-chipgroup { display: flex; flex-direction: column; gap: 9px; }
.lmf-selall { align-self: flex-start; margin-bottom: 9px; border: 0; background: transparent; color: var(--blue-600); font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; }
.lmf-selall:hover { text-decoration: underline; }
.lmf-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 999px; padding: 6px 13px; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.lmf-chip:hover { border-color: var(--neutral-400); }
.lmf-chip[data-on] { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.lmf-lbl { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin: 4px 0 7px; }
.lmf-lbl + .lmf-input + .lmf-lbl { margin-top: 12px; }
.lmf-tgrow { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; padding: 7px 0; font-family: inherit; font-size: 13px; color: var(--text); cursor: pointer; text-align: left; }
.lmf-switch { width: 34px; height: 20px; border-radius: 999px; background: var(--neutral-300); position: relative; flex-shrink: 0; transition: background .15s; }
.lmf-switch span { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.lmf-switch.on { background: var(--blue-600); }
.lmf-switch.on span { transform: translateX(14px); }
.lmf-input { display: flex; align-items: center; border: 1px solid var(--divider-strong); border-radius: 10px; padding: 0 10px; }
.lmf-input input { flex: 1; border: 0; outline: none; background: transparent; font-family: inherit; font-size: 13.5px; color: var(--text); padding: 10px 0; }
.lmf-input button { border: 0; background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.lmf-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--divider); }
.lmf-save { background: var(--blue-600); color: #fff; border: 0; border-radius: 9px; padding: 9px 20px; font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.lmf-save:hover { background: var(--blue-700); }
.lmf-cancel { border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 9px; padding: 9px 18px; color: var(--text-2); font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.lmf-cancel:hover { background: var(--surface-2); }
.lm-layers-h { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 3px 7px 6px; }
.lm-layer { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; border-radius: 8px; padding: 7px 8px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.lm-layer:hover { background: var(--bg-hover); }
.lm-layer[data-on] { color: var(--text); }
.lm-layer-ic { color: var(--text-3); display: inline-flex; }
.lm-layer[data-on] .lm-layer-ic { color: var(--blue-600); }
.lm-layer-tg { margin-left: auto; width: 30px; height: 18px; border-radius: 999px; background: var(--neutral-300); position: relative; flex-shrink: 0; transition: background .15s; }
.lm-layer-tg span { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.lm-layer-tg.on { background: var(--blue-600); }
.lm-layer-tg.on span { transform: translateX(12px); }
.lm-scrubber { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.95); border: 1px solid var(--divider-strong); border-radius: 999px; padding: 7px 14px; box-shadow: var(--shadow-4); backdrop-filter: blur(6px); }
.tesla[data-theme="dark"] .lm-scrubber { background: rgba(20,26,38,.92); }
.lm-scrub-l { font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.lm-scrubber input[type="range"] { width: 260px; accent-color: var(--blue-600); }
.lm-scrub-v { font-size: 11.5px; font-weight: 700; color: var(--blue-700); font-variant-numeric: tabular-nums; min-width: 38px; }
.lm-rail { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: auto; }
.lm-card { background: var(--surface); border: 1px solid var(--divider); border-radius: 14px; padding: 14px; }
.lm-card-h { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.lm-card-sub { font-size: 11px; font-weight: 500; color: var(--text-3); }
.lm-spark { display: flex; align-items: flex-end; gap: 5px; height: 78px; }
.lm-bar { flex: 1; display: flex; flex-direction: column-reverse; height: 100%; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.lm-bar-pass { background: var(--green-500); display: block; }
.lm-bar-fail { background: var(--red-500); display: block; }
.lm-spark-leg { display: flex; gap: 14px; margin-top: 9px; font-size: 11px; color: var(--text-3); }
.lm-spark-leg span { display: inline-flex; align-items: center; gap: 5px; }
.lm-spark-leg .d { width: 8px; height: 8px; border-radius: 2px; }
.lm-spark-leg .d.pass { background: var(--green-500); } .lm-spark-leg .d.fail { background: var(--red-500); }
.lm-ops { display: flex; flex-direction: column; gap: 9px; }
.lm-op { display: grid; grid-template-columns: 10px 96px 1fr auto; align-items: center; gap: 9px; border: 0; background: transparent; padding: 3px 0; font-family: inherit; cursor: pointer; text-align: left; }
.lm-op:hover .lm-op-name { color: var(--blue-700); }
.lm-op-dot { width: 9px; height: 9px; border-radius: 50%; }
.lm-op-name { font-size: 11.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; flex-direction: column; }
.lm-op-name i { font-style: normal; font-size: 9.5px; font-weight: 500; color: var(--text-3); }
.lm-op-bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.lm-op-bar span { display: block; height: 100%; border-radius: 3px; }
.lm-op-n { font-size: 12px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.lm-op-n em { font-style: normal; color: var(--red-600); font-size: 10.5px; margin-left: 5px; }
.lm-report { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--blue-600); background: var(--blue-600); color: #fff; border-radius: 11px; padding: 11px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.lm-report:hover { background: var(--blue-700); }
@media (max-width: 1240px) { .lm-kpi { grid-template-columns: repeat(3, 1fr); } }
.lm-tablewrap { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--divider); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; }
.lm-table { width: 100%; }
.lm-table thead th { position: sticky; top: 0; background: var(--surface-1); text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); padding: 11px 16px; border-bottom: 1px solid var(--divider-strong); }
.lm-table tbody td { padding: 11px 16px; border-bottom: 1px solid var(--divider); font-size: 13px; }
.lm-table tbody tr { cursor: pointer; }
.lm-table tbody tr:hover { background: var(--bg-hover); }
.lm-foot { padding: 12px 16px; border-top: 1px solid var(--divider); margin-top: auto; }
.lm-modeseg, .lm-statseg2 { height: 34px; }
.lm-topbar { display: flex; align-items: center; gap: 12px; }
.lm-title { font-size: 16px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px; }
.lm-title .lm-sub { font-size: 12px; font-weight: 500; color: var(--text-3); }
.lm-topbar .lm-modeseg { margin-left: auto; }
/* full-bleed live map (map fills the page like the user view) */
.dash-page .main:has(.lm-bleed) { padding: 0; overflow: hidden; }
/* live map topbar */
.lm-topnav { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--divider); background: var(--surface); flex-shrink: 0; }
.lm-bar-n { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: var(--bkx-soft,#EDF1FD); color: var(--bkx-ink,#1a3fa8); border-radius: 999px; padding: 0 6px; height: 18px; min-width: 18px; }
.lm-bleed { display: flex; flex-direction: column; height: 100%; position: relative; }
.lm-bleed .lm-body { flex: 1; min-height: 0; display: flex; position: relative; }
.lm-bleed .lm-mapwrap { flex: 1; min-height: 0; border: 0; border-radius: 0; }
.lm-bleed .lm-tablewrap { flex: 1; min-height: 0; border: 0; border-radius: 0; }
.lm-float { position: absolute; top: 14px; right: 14px; z-index: 600; display: flex; gap: 8px; }
.lm-float .seg { background: var(--surface); box-shadow: var(--shadow-6); }
/* table mode = split: map left (1/3), table right (2/3) */
.lm-bleed .lm-split { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 2fr; }
.lm-split-map { min-height: 0; border: 0 !important; border-radius: 0 !important; border-right: 1px solid var(--divider) !important; }
.lm-split-table { min-height: 0; border: 0 !important; border-radius: 0 !important; display: flex; flex-direction: column; }
.tx-measure { background: var(--blue-600); color: #fff; border: 0; font-weight: 700; font-size: 11.5px; padding: 3px 7px; border-radius: 6px; box-shadow: var(--shadow-2); }
.tx-measure::before { display: none; }
.mt-btn.on { background: var(--blue-600); color: #fff; }
/* active-filter tokens + saved views */
.lm-filterbar { position: absolute; top: 72px; left: 84px; z-index: 595; display: flex; align-items: center; gap: 8px; max-width: 460px; flex-wrap: wrap; }
.lm-views { position: relative; }
.lm-views-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 9px; padding: 6px 10px; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--text); cursor: pointer; box-shadow: var(--shadow-1); }
.lm-views-btn:hover { background: var(--bg-hover); }
.lm-views-btn svg:first-child { color: var(--text-3); }
.lm-views-scrim { position: fixed; inset: 0; z-index: 40; }
.lm-views-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; width: 240px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 11px; box-shadow: var(--shadow-8); padding: 6px; }
.lm-views-empty { padding: 10px; text-align: center; font-size: 11.5px; color: var(--text-3); }
.lm-views-row { display: flex; align-items: center; gap: 2px; }
.lm-topcluster .lm-daterange .lm-views-btn { background: var(--surface); border: 1px solid var(--divider-strong); box-shadow: var(--shadow-2); border-radius: 999px; padding: 6px 11px; }
.lm-date-menu { width: 232px; padding: 6px; }
.lm-date-preset { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: transparent; border-radius: 8px; padding: 8px 10px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text); cursor: pointer; text-align: left; }
.lm-date-preset:hover { background: var(--bg-hover); }
.lm-date-preset[data-on] { color: var(--blue-700); }
.lm-date-preset svg { color: var(--blue-600); }
.lm-date-custom { border-top: 1px solid var(--divider); margin-top: 6px; padding: 10px 4px 4px; }
.lm-date-custom-h { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.lm-date-fields { display: flex; align-items: center; gap: 7px; }
.lm-date-fields input { flex: 1; min-width: 0; border: 1px solid var(--divider-strong); border-radius: 8px; padding: 6px 8px; font-family: inherit; font-size: 12px; color: var(--text); background: var(--surface); }
.lm-date-fields input:focus { outline: none; border-color: var(--blue-500); }
.lm-date-fields span { color: var(--text-3); }
.lm-date-note { font-size: 11px; color: var(--text-3); margin: 8px 0; }
.lm-date-note.err { color: #CC0000; font-weight: 600; }
.lm-date-apply { width: 100%; border: 0; background: var(--blue-600); color: #fff; border-radius: 8px; padding: 8px; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.lm-date-apply:disabled { opacity: .45; cursor: not-allowed; }
.lmf-daterow { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.lmf-daterow input { flex: 1; min-width: 0; border: 1px solid var(--divider-strong); border-radius: 8px; padding: 7px 9px; font-family: inherit; font-size: 12.5px; color: var(--text); background: var(--surface); }
.lmf-daterow input:focus { outline: none; border-color: var(--blue-500); }
.lmf-daterow span { color: var(--text-3); }
.lmf-datenote { font-size: 11px; color: var(--text-3); margin-top: 7px; }
.lmf-datenote.err { color: #CC0000; font-weight: 600; }
.lmf-dateapply { margin-top: 9px; width: 100%; border: 1px solid var(--blue-300); background: var(--blue-50); color: var(--blue-700); border-radius: 8px; padding: 8px; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.lm-views-apply { flex: 1; text-align: left; border: 0; background: transparent; border-radius: 7px; padding: 8px 10px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.lm-views-apply:hover { background: var(--bg-hover); }


.lm-views-save { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; border-top: 1px solid var(--divider); margin-top: 4px; padding: 9px 10px 6px; background: transparent; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--blue-600); cursor: pointer; }
.lm-tokens { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lm-token { display: inline-flex; align-items: center; gap: 5px; background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: 8px; padding: 5px 8px; font-family: inherit; font-size: 11.5px; font-weight: 700; color: var(--blue-700); cursor: pointer; }
.lm-token:hover { background: color-mix(in srgb, var(--blue-500) 14%, transparent); }
.lm-token svg { color: var(--blue-600); }
.lm-token-clear { border: 0; background: transparent; font-family: inherit; font-size: 11.5px; font-weight: 700; color: var(--text-3); cursor: pointer; padding: 4px 6px; }
.lm-token-clear:hover { color: #CC0000; }
.lm-area-save { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; background: var(--blue-600); color: #fff; border-radius: 11px; padding: 0 16px; height: 42px; font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 6px rgba(30,84,231,.28), 0 1px 2px rgba(0,0,0,.12); transition: background .12s, transform .08s, box-shadow .12s; }
.lm-area-save:hover { background: var(--blue-700); box-shadow: 0 4px 12px rgba(30,84,231,.34), 0 1px 3px rgba(0,0,0,.14); }
.lm-area-save:active { transform: translateY(1px); }
.lm-area-save svg { color: #fff; }
.lm-areaname { display: flex; align-items: center; gap: 6px; background: var(--surface-1); border: 1px solid var(--divider-strong); border-radius: 11px; padding: 5px 5px 5px 12px; box-shadow: 0 6px 20px rgba(15,23,42,.16), 0 1px 3px rgba(0,0,0,.1); height: 42px; }
.lm-areaname input { border: 0; outline: none; background: transparent; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-1); width: 168px; }
.lm-areaname input::placeholder { color: var(--text-3); font-weight: 500; }
.lm-areaname-save { border: 0; background: var(--blue-600); color: #fff; border-radius: 8px; height: 32px; padding: 0 13px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .12s; }
.lm-areaname-save:hover { background: var(--blue-700); }
.lm-areaname-x { border: 0; background: transparent; color: var(--text-3); width: 28px; height: 32px; display: grid; place-items: center; border-radius: 8px; cursor: pointer; }
.lm-areaname-x:hover { background: var(--surface-2); color: var(--text-1); }e: 11px; font-weight: 700; cursor: pointer; }
.lm-area-save:hover { background: color-mix(in srgb, var(--blue-500) 14%, transparent); }
.lm-area-save svg { color: var(--blue-600); }
/* the Save chip is itself the primary button — strip the wrapper card chrome */
.lm-areachip.lm-areafilter { background: transparent; border: 0; box-shadow: none; padding: 0; gap: 0; white-space: nowrap; flex-wrap: nowrap; max-width: none; }
/* dock the Save chip in line with the top of the round map toolstack */
.lm-areachip.lm-areafilter { top: 14px; right: 70px; left: auto; bottom: auto; transform: none; }
.lm-area-lbl { font-size: 12.5px; font-weight: 700; color: var(--blue-700); }
.lm-area-n { font-size: 11.5px; color: var(--text-3); padding-right: 2px; border-right: 1px solid var(--divider); padding-right: 9px; }
.lm-area-clear { width: 24px; height: 24px; flex-shrink: 0; border: 0; background: var(--surface-2); border-radius: 7px; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.lm-area-clear:hover { background: var(--red-50); color: #CC0000; }
/* breadcrumb drill + jump-to-state */
.lm-focuschip { left: auto !important; right: 14px; top: 112px !important; }
.lm-crumb { gap: 6px; padding: 5px 6px 5px 12px; border-color: var(--divider-strong); color: var(--text); }
.lm-crumb-l { border: 0; background: transparent; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--blue-700); cursor: pointer; padding: 0; }
.lm-crumb-l:hover { text-decoration: underline; }
.lm-crumb-sep { color: var(--text-3); }
.lm-crumb-cur { font-size: 12.5px; font-weight: 800; color: var(--text); }
.lm-crumb-n { font-size: 11px; color: var(--text-3); margin-left: 2px; }
.lm-crumb-x { width: 20px; height: 20px; border: 0; background: var(--surface-2); border-radius: 50%; color: var(--text-3); cursor: pointer; font-size: 13px; line-height: 1; }
.lm-crumb-x:hover { background: var(--red-50); color: #CC0000; }
.lm-jump-menu { max-height: 320px; overflow-y: auto; }
.lm-jump-row { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: transparent; border-radius: 7px; padding: 7px 10px; font-family: inherit; cursor: pointer; }
.lm-jump-row:hover { background: var(--bg-hover); }
.lm-jump-row[data-on] { background: var(--blue-50); }
.lm-jump-st { font-size: 12.5px; font-weight: 700; color: var(--text); }
.lm-jump-n { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
/* table multi-select + locate */
.txtable th.tt-chk, .txtable td.tt-chk { width: 34px; text-align: center; padding-left: 10px; }
.txtable input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--blue-600); }
.txtable tr[data-picked] { background: var(--blue-50); }
.txtable td.tt-loc { width: 36px; text-align: center; }
.tt-locbtn { width: 26px; height: 26px; border: 0; background: transparent; border-radius: 7px; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.tt-locbtn:hover { background: var(--blue-50); color: var(--blue-700); }
.ttable-bulk { display: flex; align-items: center; gap: 14px; padding: 9px 14px; background: var(--blue-50); border-bottom: 1px solid var(--blue-200); }
.ttb-n { font-size: 12.5px; color: var(--text-2); }
.ttb-n b { color: var(--text); font-weight: 800; }
.ttb-acts { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.ttb-b { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 8px; padding: 6px 11px; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--text); cursor: pointer; }
.ttb-b:hover { background: var(--bg-hover); }
.ttb-b.danger { border-color: var(--red-300); color: #CC0000; }
.ttb-b.danger:hover { background: var(--red-50); }
.ttb-clear { border: 0; background: transparent; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--text-3); cursor: pointer; padding: 4px 8px; }
.ttb-clear:hover { color: var(--text); }
.lm-areachip { position: absolute; top: calc(var(--edge) + 46px + 10px); left: auto; right: 14px; z-index: 600; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--blue-300); border-radius: 10px; padding: 5px 8px 5px 12px; box-shadow: var(--shadow-6); white-space: nowrap; }
.lm-areachip .lm-area-clear { width: 24px; height: 24px; border: 0; background: var(--surface-2); border-radius: 7px; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.lm-sampling { position: absolute; right: 14px; top: calc(var(--edge) + 46px + 56px); z-index: 590; display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 999px; padding: 5px 11px; font-size: 11px; font-weight: 600; color: var(--text-3); box-shadow: var(--shadow-2); }
.lm-samp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); }
.lm-scrubber { position: absolute; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 590; display: flex; align-items: center; gap: 12px; width: min(460px, 52vw); background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 12px; box-shadow: var(--shadow-6); padding: 8px 14px 8px 8px; }
.lm-scrub-play { width: 30px; height: 30px; flex-shrink: 0; border: 0; border-radius: 8px; background: var(--blue-600); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lm-scrub-play:hover { background: var(--blue-700); }
.lm-playtri { width: 0; height: 0; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }
.lm-pause { display: flex; gap: 3px; }
.lm-pause i { width: 3px; height: 11px; background: #fff; border-radius: 1px; }
.lm-scrub-range { flex: 1; accent-color: var(--blue-600); cursor: pointer; }
.lm-scrub-t { font-size: 11.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
/* investigation-only variant: smaller, pinned to the right edge */
.lm-bulkbar { position: absolute; top: 112px; left: 50%; transform: translateX(-50%); z-index: 600; display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 12px; box-shadow: var(--shadow-6); padding: 8px 8px 8px 14px; }
.lm-bulk-n { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.lm-bulk-n b { color: var(--text); font-weight: 800; }
.lm-bulk-acts { display: flex; gap: 6px; }
.lm-bulk-b { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 8px; padding: 6px 11px; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--text); cursor: pointer; white-space: nowrap; }
.lm-bulk-b:hover { background: var(--bg-hover); }
.lm-bulk-b.danger { border-color: var(--red-300); color: #CC0000; }
.lm-bulk-b.danger:hover { background: var(--red-50); }
.lm-bulk-b svg { flex-shrink: 0; }
/* fraud-analyst triage rail */
.lm-triage { position: absolute; left: 84px; top: calc(var(--edge) + 46px + 10px); bottom: 14px; width: 256px; z-index: 590; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 14px; box-shadow: var(--shadow-4); overflow: hidden; }
.lm-tri-sig { padding: 12px; border-bottom: 1px solid var(--divider); display: flex; flex-direction: column; }
.lm-tri-fresh { align-self: flex-end; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--green-700); background: var(--green-100); border: 1px solid var(--green-300); border-radius: 999px; padding: 4px 11px 4px 9px; margin-bottom: 11px; cursor: pointer; font-family: inherit; }
.lm-tri-fresh:not(.on) { color: var(--text-3); background: var(--surface-2); border-color: var(--divider-strong); }
.lm-tri-fresh:not(.on) .lm-tri-live { background: var(--neutral-500); animation: none; }
.lm-tri-live { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 0 rgba(31,138,91,.5); animation: lmpulse 2s infinite; }
@keyframes lmpulse { 0% { box-shadow: 0 0 0 0 rgba(31,138,91,.5); } 70% { box-shadow: 0 0 0 6px rgba(31,138,91,0); } 100% { box-shadow: 0 0 0 0 rgba(31,138,91,0); } }
.lm-spark { width: 100%; height: 16px; margin-top: 4px; color: var(--text-3); opacity: .7; }
.lm-tri-kpi[data-tone="bad"] .lm-spark { color: #CC0000; opacity: .8; }
.lm-tri-alerts { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--divider); }
.lm-tri-alert { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 8px; width: 100%; border: 1px solid var(--red-200); background: var(--red-50); border-radius: 9px; padding: 7px 9px; font-family: inherit; cursor: pointer; text-align: left; }
.lm-tri-alert:hover { background: color-mix(in srgb, var(--red-500) 12%, var(--surface)); }
.lm-tri-alert[data-kind="proxy"] { border-color: var(--orange-200, #FCD9B6); background: var(--orange-50, #FFF3E8); }
.lm-tri-alert > svg { color: #CC0000; }
.lm-tri-alert[data-kind="proxy"] > svg { color: #B45309; }
.lm-tri-alert .at { font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-tri-alert .at b { color: var(--text); font-weight: 800; }
.lm-tri-alert .ax { font-size: 12px; font-weight: 800; color: #CC0000; font-variant-numeric: tabular-nums; }
.lm-tri-alert[data-kind="proxy"] .ax { color: #B45309; }
.lm-tri-sig-row { display: flex; gap: 8px; }
.lm-tri-kpi { flex: 1; display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--surface-1); border: 1px solid var(--divider); }
.lm-tri-kpi .v { font-size: 19px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1.1; }
.lm-tri-kpi .k { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.lm-tri-kpi[data-tone="bad"] { background: var(--red-50); border-color: var(--red-200); }
.lm-tri-kpi[data-tone="bad"] .v { color: #CC0000; }
.lm-tri-kpi[data-tone="warn"] .v { color: #B45309; }
.lm-tri-reason { display: flex; flex-direction: column; gap: 1px; margin-top: 8px; }
.lm-tri-reason .k { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.lm-tri-reason .v { font-size: 12.5px; font-weight: 700; color: var(--text); }
.lm-tri-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.lm-tri-h span { font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text-3); }
.lm-tri-segtab { display: flex; gap: 3px; margin: 0 12px 6px; padding: 3px; background: var(--surface-2); border-radius: 9px; }
.lm-tri-segtab button { flex: 1; border: 0; background: transparent; border-radius: 7px; padding: 5px 4px; font-family: inherit; font-size: 11px; font-weight: 700; color: var(--text-3); cursor: pointer; white-space: nowrap; }
.lm-tri-tx { display: flex; align-items: center; gap: 2px; }
.lm-tri-txopen { flex: 1; min-width: 0; display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; border: 0; background: transparent; border-radius: 8px; padding: 6px 8px; font-family: inherit; cursor: pointer; text-align: left; }
.lm-tri-txopen:hover { background: var(--bg-hover); }
.lm-tri-star { flex-shrink: 0; width: 26px; height: 26px; border: 0; background: transparent; border-radius: 7px; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.lm-tri-star:hover { background: var(--bg-hover); }
.lm-tri-star.on { color: #B45309; }
.lm-tri-watch { display: flex; align-items: center; gap: 2px; }
.lm-watch-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; border-radius: 8px; padding: 7px 8px; font-family: inherit; cursor: pointer; text-align: left; }
.lm-watch-open:hover { background: var(--bg-hover); }
.lm-watch-body { display: flex; flex-direction: column; min-width: 0; }
.lm-watch-id { font-size: 11.5px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-watch-sub { font-size: 10.5px; color: var(--text-3); }
.lm-watch-x { flex-shrink: 0; width: 26px; height: 26px; border: 0; background: transparent; border-radius: 7px; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.lm-watch-x:hover { background: var(--red-50); color: #CC0000; }
.lm-tri-segtab button[data-on] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
/* Search feedback banner */
.lm-searchfb { position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%); z-index: 620; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 12px; padding: 9px 14px; box-shadow: var(--shadow-6); font-size: 12.5px; color: var(--text-2); max-width: 520px; white-space: nowrap; }
.lm-searchfb svg { flex-shrink: 0; color: var(--blue-600); }
.lm-searchfb[data-empty] { border-color: #FECACA; background: #FFF5F5; }
.lm-searchfb[data-empty] svg { color: #CC0000; }
.lm-sfb-clear { margin-left: 4px; border: 0; background: var(--surface-2); border-radius: 6px; font-size: 11.5px; font-weight: 700; color: var(--text-3); cursor: pointer; padding: 3px 8px; white-space: nowrap; }
.lm-sfb-clear:hover { background: var(--surface-3); color: var(--text); }
/* Tracked users pill + dropdown */
.lm-tracked-pill { gap: 5px; }
.lm-tracked-ring { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue-500) 30%, transparent); animation: pulse-ring 2s infinite; flex-shrink: 0; }
@keyframes pulse-ring { 0%,100% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue-500) 30%, transparent); } 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue-500) 12%, transparent); } }
.lm-tracked-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; border-radius: 999px; background: var(--blue-600); color: #fff; font-size: 11px; font-weight: 800; padding: 0 5px; }
.lm-tracked-menu { padding-bottom: 0 !important; }
.lm-tracked-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--divider); }
.lm-tracked-row:first-of-type { border-top: 0; }
.lm-tracked-row[data-risk="high"] { background: #FFF5F5; }
.lm-tracked-row[data-risk="med"] { background: #FFFDF0; }
.lm-tracked-av { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-100); color: var(--blue-700); font-size: 12px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.lm-tracked-row[data-risk="high"] .lm-tracked-av { background: #FEE2E2; color: #CC0000; }
.lm-tracked-row[data-risk="med"] .lm-tracked-av { background: #FEF3C7; color: #92400E; }
.lm-tracked-uid { font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.lm-tracked-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.lm-tracked-sig { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); color: var(--text-2); }
.lm-tracked-sig[data-sev="high"] { background: #FEF3C7; color: #92400E; }
.lm-tracked-sig[data-sev="critical"], .lm-tracked-sig[data-sev="high"][data-risk="high"] { background: #FEE2E2; color: #CC0000; }
.lm-tracked-state { font-size: 11px; font-weight: 700; color: var(--text-3); }
.lm-tracked-risk { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 4px 8px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); }
.lm-tracked-risk[data-risk="high"] { background: #FEE2E2; color: #CC0000; }
.lm-tracked-risk[data-risk="med"] { background: #FEF3C7; color: #92400E; }
.usm-foot { padding: 8px 14px; border-top: 1px solid var(--divider); display: flex; justify-content: flex-end; }
.lm-tracked { position: absolute; top: calc(var(--edge) + 46px + 10px); left: 84px; right: 14px; z-index: 596; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lm-tracked-label { font-size: 11px; font-weight: 700; color: var(--text-3); background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 8px; padding: 4px 9px; white-space: nowrap; box-shadow: var(--shadow-2); }
.lm-tracked-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 9px; padding: 4px 6px 4px 7px; box-shadow: var(--shadow-2); }
.lm-tracked-chip[data-risk="high"] { border-color: #FECACA; background: #FFF5F5; }
.lm-tracked-chip[data-risk="med"] { border-color: #FDE68A; background: #FFFBEB; }
.lm-tracked-av { width: 20px; height: 20px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font-size: 10px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.lm-tracked-chip[data-risk="high"] .lm-tracked-av { background: #FEE2E2; color: #CC0000; }
.lm-tracked-name { font-size: 12px; font-weight: 700; color: var(--text); }
.lm-tracked-sig { font-size: 11px; color: var(--text-3); border-left: 1px solid var(--divider); padding-left: 6px; white-space: nowrap; }
.lm-tracked-x { border: 0; background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; }
.lm-tracked-x:hover { background: var(--surface-2); color: var(--text); }
.lm-area-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 12px 8px; border-bottom: 1px solid var(--divider); }
.lm-area-stat-row { display: flex; flex-direction: column; gap: 2px; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.lm-area-sk { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); }
.lm-area-sv { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.lm-area-acts { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-bottom: 1px solid var(--divider); }
.lm-area-acts .lm-qact { justify-content: center; }
.lm-area-txhead { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); padding: 10px 12px 4px; }
.lm-qitem-mid { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: transparent; border-radius: 6px; padding: 5px 8px; cursor: pointer; text-align: left; font-family: inherit; }
.lm-qitem-mid:hover { background: var(--bg-hover); }
.lm-qitem:hover { box-shadow: var(--shadow-4); }
.lm-qitem[data-sev="critical"] { border-color: #FECACA; background: #FFF5F5; }
.lm-qitem[data-sev="high"] { border-color: #FDE68A; background: #FFFBEB; }
.lm-qitem-top { display: flex; align-items: center; gap: 7px; }
.lm-qsev { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; border: 1px solid; flex-shrink: 0; }
.lm-qtype { font-size: 12.5px; font-weight: 700; color: var(--text); flex: 1; }
.lm-qtime { font-size: 11px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lm-qitem-mid { display: flex; align-items: center; gap: 8px; }
.lm-qid { font-size: 11.5px; color: var(--text-2); }
.lm-qst { font-size: 11px; color: var(--text-3); }
.lm-qitem-acts { display: flex; gap: 5px; }
.lm-qact { display: inline-flex; align-items: center; gap: 5px; font-family: inherit; font-size: 11.5px; font-weight: 700; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-2); border-radius: 7px; padding: 4px 10px; cursor: pointer; }
.lm-qact:hover { background: var(--bg-hover); border-color: var(--neutral-400); }
.lm-qact.danger { color: #CC0000; border-color: #FECACA; background: #FFF5F5; }
.lm-qact.danger:hover { background: #FEE2E2; }
.lm-qact.ghost { color: var(--text-3); border-color: transparent; background: transparent; }
.lm-qact.ghost:hover { background: var(--bg-hover); color: var(--text-2); }
.lm-tri-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px 16px; color: var(--text-3); font-size: 13px; text-align: center; }
.lm-tri-ring { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; border-radius: 9px; padding: 7px 8px; font-family: inherit; cursor: pointer; text-align: left; }
.lm-tri-ring:hover { background: var(--bg-hover); }
.lm-ring-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.lm-ring-ic.device { background: var(--blue-50); color: var(--blue-700); }
.lm-ring-ic.ip { background: color-mix(in srgb, var(--orange-500, #F15A0E) 13%, transparent); color: #B45309; }
.lm-ring-body { display: flex; flex-direction: column; min-width: 0; }
.lm-ring-id { font-size: 11.5px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-ring-sub { font-size: 10.5px; color: var(--text-3); }
.lm-ring-n { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.lm-ring-n b { color: #CC0000; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.lm-legend { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--divider); display: flex; flex-direction: column; gap: 5px; }
.lm-legend-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-2); }
.lm-leg-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.lm-leg-grad { width: 16px; height: 9px; border-radius: 3px; flex-shrink: 0; background: linear-gradient(90deg, rgba(229,72,77,.15), #E5484D); }
.lm-leg-zone { width: 16px; height: 9px; border-radius: 3px; flex-shrink: 0; background: color-mix(in srgb, #1F8A5B 22%, transparent); border: 1px solid #1F8A5B; }
.lm-tri-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 2px; }
.lm-tri-row { display: grid; grid-template-columns: 22px 62px 1fr 46px; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; border-radius: 9px; padding: 10px 10px; font-family: inherit; cursor: pointer; text-align: left; }
.lm-tri-dev { font-size: 11.5px; font-weight: 800; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lm-tri-dev[data-hot] { color: #CC0000; }
.lm-tri-row:hover { background: var(--bg-hover); }
.lm-tri-row[data-on] { background: var(--blue-50); }
.lm-tri-rank { font-size: 11px; font-weight: 800; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lm-tri-st { font-size: 12.5px; font-weight: 700; color: var(--text); white-space: nowrap; display: flex; align-items: center; gap: 4px; flex-shrink: 0; min-width: 52px; }
.lm-tri-alert-dot { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; background: #CC0000; color: #fff; font-size: 9px; font-weight: 900; flex-shrink: 0; }
.lm-tri-alert-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; border-radius: 999px; background: #CC0000; color: #fff; font-size: 10px; font-weight: 800; padding: 0 4px; margin-left: 4px; }
.lm-tri-bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.lm-tri-bar span { display: block; height: 100%; border-radius: 999px; }
.lm-tri-n { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.lm-tri-n b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.lm-tri-item { display: flex; flex-direction: column; }
.lm-tri-sub { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 4px; padding-left: 8px; border-left: 2px solid var(--divider-strong); margin-left: 16px; }
.lm-tri-tx { display: grid; grid-template-columns: 10px 1fr auto 12px; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; border-radius: 8px; padding: 6px 8px; font-family: inherit; cursor: pointer; text-align: left; }
.lm-tri-tx:hover { background: var(--bg-hover); }
.lm-tri-tx > svg { color: var(--text-3); }
.lm-tri-dot { width: 8px; height: 8px; border-radius: 50%; }
.lm-tri-dot.f { background: var(--red-500); } .lm-tri-dot.p { background: var(--green-500); }
.lm-tri-txid { font-size: 11.5px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-tri-txcity { font-size: 10.5px; color: var(--text-3); white-space: nowrap; max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
.tesla[data-theme="dark"] .lm-triage { background: rgba(20,26,38,.95); }
.lm-topcluster { position: absolute; top: 16px; left: 84px; z-index: 600; display: inline-flex; align-items: center; gap: 8px; }
.lm-livepill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; background: var(--green-100); color: var(--green-700); border: 1px solid var(--green-300);500) 30%, transparent); border-radius: 999px; font-size: 12.5px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-2); }
.lm-livepill .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); animation: lmpulse 2s infinite; }
.lm-livepill.off { background: var(--surface-2); color: var(--text-3); border-color: var(--divider-strong); }
.lm-livepill.off .live-dot { background: var(--neutral-500); animation: none; }
.lm-mapwrap .lm-statseg { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 600; height: auto; display: inline-flex; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 12px; box-shadow: var(--shadow-4); }
.lm-mapwrap .lm-statseg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 116px; border: 0; background: transparent; border-radius: 9px; padding: 7px 13px; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-2); cursor: pointer; }
.lm-mapwrap .lm-statseg button:hover { background: var(--bg-hover); }
.lm-mapwrap .lm-statseg button[data-on] { background: var(--blue-600); color: #fff; }
.lm-mapwrap .lm-statseg button b { font-variant-numeric: tabular-nums; opacity: .85; font-weight: 700; }
.lm-mapwrap .lm-statseg button .d { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; box-sizing: border-box; }
.lm-mapwrap .lm-statseg button[data-k="pass"] .d { background: #1DA534; }
.lm-mapwrap .lm-statseg button[data-k="fail"] .d { background: #CC0000; }
.lm-mapwrap .lm-statseg button[data-on] .d { box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
/* live-map table = the SAME component as the user page, repositioned for this layout */
.lm-realtable { flex: 1; min-height: 0; position: relative; }
.lm-realtable .ttable { position: absolute; inset: 0; left: calc(var(--dockw) + var(--edge) * 2); top: calc(var(--edge) + 108px); right: var(--edge); bottom: var(--edge); }
.lm-realtable--nobar .ttable { top: calc(var(--edge) + 56px); }
/* standard filter bar above the live-map table — sits below the page toolbar, covers the investigation panel */
.lm-tblbar { position: absolute; left: calc(var(--dockw) + var(--edge) * 2); right: var(--edge); top: calc(var(--edge) + 56px); height: 44px; display: flex; align-items: center; gap: 12px; z-index: 575; }
.lm-tblbar-search { flex: 1; max-width: 480px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 10px; box-shadow: var(--shadow-1); color: var(--text-3); }
.lm-tblbar-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-family: inherit; font-size: 13.5px; color: var(--text); }
.lm-tblbar-search input::placeholder { color: var(--text-4); }
.lm-tblbar-clear { border: 0; background: transparent; cursor: pointer; color: var(--text-4); display: grid; place-items: center; padding: 2px; border-radius: 5px; }
.lm-tblbar-clear:hover { background: var(--bg-hover); color: var(--text-2); }
.lm-tblseg { display: flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--divider); border-radius: 9px; padding: 3px; flex-shrink: 0; }
.lm-tblseg button { border: 0; background: transparent; cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-3); padding: 7px 14px; border-radius: 7px; transition: background .12s, color .12s; }
.lm-tblseg button[data-on] { background: #fff; box-shadow: var(--shadow-1); color: var(--text); }
.lm-tblseg button[data-on][data-tone="pass"] { color: var(--green-700); }
.lm-tblseg button[data-on][data-tone="fail"] { color: var(--red-600); }
.lm-tblbar-count { font-size: 12.5px; color: var(--text-3); margin-left: auto; flex-shrink: 0; }
.lm-tblbar-count b { color: var(--text); font-weight: 700; }
/* standalone transaction detail page */
.lm-detail { position: absolute; left: var(--dockw); top: 0; right: 0; bottom: 0; z-index: 560; background: var(--bg-app); }
/* ===== Transaction record — product card design ===== */
.txr { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg-app); }
.txr-top { display: flex; align-items: center; gap: 16px; padding: 12px 26px; background: var(--surface); border-bottom: 1px solid var(--divider); flex-shrink: 0; }
.txr-back { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--blue-600); font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; }
.txr-top-mid { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); }
.txr-top-mid .mono { color: var(--text); font-weight: 600; }
.txr-top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.txr-nav { width: 32px; height: 32px; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 9px; display: grid; place-items: center; cursor: pointer; color: var(--text-2); }
.txr-nav:hover { border-color: var(--neutral-400); color: var(--text); }
.txr-navbig { display: inline-flex; flex-direction: row; align-items: center; width: auto; height: 32px; padding: 0 11px; gap: 6px; font-family: inherit; font-size: 12.5px; font-weight: 600; }
.txr-navbig { min-width: 82px; justify-content: center; }
.txr-navbig svg { display: block; flex-shrink: 0; }
.txr-navdot { width: 8px; height: 8px; border-radius: 50%; }
.txr-navdot.p { background: var(--green-500); }
.txr-navdot.f { background: var(--red-500); }
.txr-scroll { flex: 1; min-height: 0; overflow: auto; padding: 22px 24px 60px; }
.txr-top-id { font-size: 13px; color: var(--text-3); }
.txr-top-id b { color: var(--text); }
.txr-hero-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
/* full-bleed map background + floating panels */
.txr-stage { flex: 1; min-height: 0; position: relative; }
.txr-mapbg { position: absolute; inset: 0; z-index: 0; }
.txr-overlay { z-index: 400; }
.txr-srcfloat { z-index: 400; }
.txr-mapbg .txmap-wrap, .txr-mapbg .geomap-wrap, .txr-mapbg .leaflet-container { width: 100%; height: 100%; }
.txr-overlay { position: absolute; top: var(--edge); left: calc(var(--edge) * 2); bottom: var(--edge); width: 516px; overflow: hidden; z-index: 400; display: flex; flex-direction: column; gap: 14px; }
.txr { background: transparent; }
.txr-top { background: transparent; border-bottom: 0; }
.txr-stage .txr-mapbg::after { content: none; }
.txr-hero { background: var(--surface); border: 1px solid var(--divider); border-radius: 16px; padding: 15px 18px; box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.08); }
.txr-hero-title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.txr-hero-sub { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.txr-subjects { display: flex; flex-direction: column; gap: 10px; }
.txr-card { background: var(--surface); border: 1px solid var(--divider); border-radius: 16px; padding: 16px 18px; margin: 0; box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.08); }
.txr-card-h { display: flex; align-items: baseline; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.txr-fgrid.one { display: grid; grid-template-columns: 1fr; gap: 0; }
.txr-srcfloat { position: absolute; top: 20px; right: 20px; width: 300px; z-index: 400; background: var(--surface); border: 1px solid var(--divider); border-radius: 16px; box-shadow: var(--shadow-8); padding: 14px 16px; max-height: calc(100% - 40px); overflow: auto; }
.txr-srcfloat-h { display: flex; align-items: baseline; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.txr-srcfloat-h span { font-size: 11px; font-weight: 500; color: var(--text-3); }
@media (max-width: 1080px) { .txr-overlay { width: 392px; } .txr-srcfloat { display: none; } }
.txr-hero { margin: 0 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.txr-hero-l { display: flex; align-items: center; gap: 14px; }
.txr-statusdot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.txr-statusdot.p { background: var(--green-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green-500) 20%, transparent); }
.txr-statusdot.f { background: var(--red-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red-500) 20%, transparent); }
.txr-hero-title { font-size: 23px; font-weight: 800; letter-spacing: -.025em; }
.txr-hero-sub { font-size: 13px; color: var(--text-3); margin-top: 3px; }
.st-pill { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: #fff; padding: 4px 10px; border-radius: 6px; }
.txr-subjects { margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.txr-subj { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--divider); border-radius: 13px; padding: 13px 15px; cursor: pointer; font-family: inherit; text-align: left; transition: border-color .12s, box-shadow .12s; }
.txr-subj:not(.static):hover { border-color: var(--neutral-400); box-shadow: var(--shadow-2); }
.txr-subj.static { cursor: default; }
.txr-subj-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.txr-subj-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.txr-subj-k { font-size: 11px; font-weight: 600; color: var(--text-3); }
.txr-subj-v { font-size: 13px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txr-subj > svg { color: var(--text-3); flex-shrink: 0; }
.txr-body { margin: 0; display: grid; grid-template-columns: minmax(380px,1fr) minmax(0,1.9fr); gap: 16px; align-items: start; }
.txr-card { background: var(--surface); border: 1px solid var(--divider); border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow-1); }
.txr-card-h { display: flex; align-items: baseline; justify-content: space-between; font-size: 14px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.txr-card-sub { font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.txr-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.txr-f { display: grid; grid-template-columns: 138px 1fr; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--divider); font-size: 13px; }
.txr-f:last-child { border-bottom: 0; padding-bottom: 0; }
.txr-fk { color: var(--text-3); font-weight: 500; }
.txr-fv { color: var(--text); font-weight: 600; line-height: 1.4; }
.txr-bad { color: var(--red-600); }
.txr-note { margin-top: 12px; }
.txr-note .txr-fk { font-size: 12px; }
.txr-note p { margin: 5px 0 0; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.txr-tabs { display: flex; flex-wrap: nowrap; gap: 0; border-bottom: 1px solid var(--divider); margin: 0 -20px 16px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); }
.txr-tabs::-webkit-scrollbar { display: none; }
.txr-tabs button { position: relative; border: 0; background: transparent; font-family: inherit; font-size: 13.5px; font-weight: 500; letter-spacing: .01em; color: var(--text-2); padding: 12px 14px; cursor: pointer; white-space: nowrap; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; transition: color .15s; }
.txr-tabs button:hover { color: var(--text); }
.txr-tabs button[data-on] { color: var(--blue-600); font-weight: 600; }
.txr-tabs button[data-on]::after { content: ""; position: absolute; bottom: -1px; left: 10px; right: 10px; height: 3px; background: var(--blue-600); border-radius: 3px 3px 0 0; }
.txr-tabn { font-size: 11px; font-weight: 500; background: var(--surface-3); color: var(--text-2); border-radius: 999px; padding: 2px 7px; }
.txr-tabs button[data-on] .txr-tabn { background: var(--blue-50); color: var(--blue-700); }
.txr-rule { display: flex; gap: 12px; align-items: flex-start; }
.txr-rule p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.txr-empty { display: flex; align-items: center; gap: 8px; color: var(--green-700); font-size: 13px; font-weight: 600; }
.txr-mapcard { padding: 0; background: transparent; border: 0; box-shadow: none; }
.txr-mapcard .txr-card-h { padding: 0 2px 10px; }
.txr-side { position: relative; align-self: stretch; margin: -22px -26px -60px 0; min-height: calc(100vh - 150px); }
.txr-side .txr-mapcard { position: absolute; inset: 0; padding: 0; margin: 0; }
.txr-mapcard .txr-card-h { display: none; }
.txr-mapwrap { position: absolute; inset: 0; height: auto; min-height: 0; border-radius: 0; overflow: hidden; border: 0; box-shadow: none; }
.txr-side .txr-card:not(.txr-mapcard) { position: absolute; top: 16px; left: 16px; width: 304px; z-index: 6; margin: 0; max-height: calc(100% - 32px); overflow: auto; box-shadow: var(--shadow-6); background: var(--surface); }
.txr-toggle { width: 34px; height: 20px; border-radius: 999px; border: 0; background: var(--neutral-300); position: relative; cursor: pointer; flex-shrink: 0; transition: background .15s; padding: 0; }
.txr-toggle.on { background: var(--blue-600); }
.txr-toggle span { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.txr-toggle.on span { transform: translateX(14px); }
.txr-toggle:disabled { cursor: not-allowed; opacity: .45; }
.txr-src .txr-toggle { margin-left: auto; }
/* blocked-device alert + badge */
.txr-blocked { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; background: color-mix(in srgb, var(--red-500) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--red-500) 26%, transparent); }
.txr-blocked-ic { width: 30px; height: 30px; border-radius: 8px; background: color-mix(in srgb, var(--red-500) 16%, transparent); color: var(--red-600); display: grid; place-items: center; flex-shrink: 0; }
.txr-blocked-tx { flex: 1; min-width: 0; }
.txr-blocked-tx b { font-size: 13px; color: var(--red-700); display: block; }
.txr-blocked-tx p { margin: 2px 0 0; font-size: 11.5px; color: var(--red-600); line-height: 1.4; }
.txr-blocked-act { flex-shrink: 0; border: 1px solid color-mix(in srgb, var(--red-500) 35%, transparent); background: var(--surface); color: var(--red-700); font-family: inherit; font-weight: 700; font-size: 12px; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.txr-blocked-act:hover { background: color-mix(in srgb, var(--red-500) 12%, transparent); }
.txr-blk-badge { margin-left: 6px; font-size: 9px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--red-600); background: color-mix(in srgb, var(--red-500) 14%, transparent); padding: 1px 5px; border-radius: 4px; vertical-align: middle; }
.txr-side { position: sticky; top: 0; }
.txr-sources { display: flex; flex-direction: column; gap: 7px; }
.txr-src { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--divider); border-radius: 11px; }
.txr-src[data-off] { opacity: .55; }
.txr-src-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; flex-shrink: 0; }
.txr-src-tx { flex: 1; min-width: 0; }
.txr-src-top { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.txr-src-tag { font-size: 9.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; }
.txr-src-tag.pri { background: var(--blue-50); color: var(--blue-700); }
.txr-src-tag.sec { background: var(--surface-3); color: var(--text-2); }
.txr-src-off { font-size: 10px; font-weight: 700; color: var(--text-3); text-transform: uppercase; margin-left: auto; }
.txr-src-acc { font-size: 11.5px; margin-top: 2px; font-weight: 600; }
.txr-src-acc.ok { color: var(--green-700); }
.txr-src-acc.bad { color: var(--red-600); }
.txr-src-acc.na { color: var(--text-3); }
/* richer source rows: top-aligned MUI list item with resolved address + coords */
.txr-src { align-items: flex-start; }
.txr-src-ic { margin-top: 1px; }
.txr-src .txr-toggle { margin-left: auto; margin-top: 3px; }
.txr-src-addr { font-size: 11px; color: var(--text-2); line-height: 1.35; }
.txr-src-coords { font-size: 10.5px; color: var(--text-3); margin: 1px 0 3px; }
/* reason url + troubleshooters */
.txr-reason { font-size: 11px; word-break: break-all; line-height: 1.4; }
.txr-trouble { display: grid; gap: 10px; }
.txr-tr-col { border: 1px solid var(--divider); border-radius: 11px; padding: 11px 12px; background: var(--surface-1); }
.txr-tr-h { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.txr-tr-col p { margin: 0; font-size: 12px; color: var(--text-2); line-height: 1.5; }
.txr-tr-col p b { color: var(--text); font-weight: 700; }
.txr-tr-retry { font-size: 9.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #fff; background: var(--green-500); padding: 1px 6px; border-radius: 4px; }
@media (max-width: 1080px) { .txr-body { grid-template-columns: 1fr; } .txr-side { position: static; } .txr-subjects { grid-template-columns: 1fr; } }

/* ── Unified single-card detail panel ───────────────────────────── */
.txr-overlay { gap: 0; }
/* floating control bar over the map — source toggles + nav (matches the workspace top bar) */
.txr-bar { position: absolute; top: var(--edge); left: auto; right: var(--edge); z-index: 410; display: flex; align-items: center; gap: 10px; }
.txr-bar .tchips { flex: 0 0 auto; flex-wrap: nowrap; gap: 6px; }
.txr-bar .pill-ops { flex-wrap: nowrap; }
.txr-navchips { order: -1; }
.txr-srcchips { margin-left: auto; }
/* header nav (Prev/Next) */
.txr-recnav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.txr-srcall { font-weight: 700; }
/* copyable id — click the value to copy (no icon) */
.copyid { cursor: pointer; border-radius: 5px; position: relative; transition: color .12s; }
.copyid:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--neutral-400); }
.copyid[data-copied] { color: inherit; }
.copyid[data-copied]::after { content: "Copied"; position: absolute; left: 50%; top: calc(100% + 5px); transform: translateX(-50%); font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--neutral-900); padding: 2px 7px; border-radius: 5px; white-space: nowrap; pointer-events: none; z-index: 5; }
.copyid:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 2px; }
/* breathing room — looser composition rhythm */
.txr-panel .txr-card-h { margin-bottom: 13px; }
.txr-sources { gap: 11px; }
.txr-src { padding: 13px 14px; }
.txr-src-tx { display: flex; flex-direction: column; gap: 3px; }
.txr-src-addr { line-height: 1.5; }
.txr-panel .txr-subjects { padding: 0 20px 18px; gap: 12px; }
.txr-panel .txr-hero { padding: 18px 20px 16px; }
/* zoom controls at the bottom of the transaction map; center the graphic by default */
.tesla .txr-mapbg .map-toolstack { top: auto; bottom: 20px; right: 20px; transform: none; }
.txr-src-state { margin-left: auto; align-self: center; font-size: 11px; font-weight: 700; color: var(--text-3); white-space: nowrap; flex-shrink: 0; }
.txr-src-state.on { color: var(--green-700); }
.txr-src-state.na { opacity: .6; }
.txr-panel {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 10px 30px rgba(16,24,40,.10);
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}
/* fixed toolbar header + inner scroll region (matches the user-profile panel) */
.txr-panel-scroll { flex: 1; min-height: 0; overflow: hidden auto; }
.txr-panel-scroll::-webkit-scrollbar { width: 8px; }
.txr-panel-scroll::-webkit-scrollbar-thumb { background: var(--neutral-300); border-radius: 8px; border: 2px solid var(--surface); }
.txr-panel-scroll::-webkit-scrollbar-thumb:hover { background: var(--neutral-400); }
/* ── transaction panel reuses the profile subject composition ── */
.txr-panel-scroll > .subject { padding: 16px; }
.txr-vring { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 3px solid; }
.txr-vring.p { color: var(--green-600); border-color: color-mix(in srgb, var(--green-500) 38%, transparent); background: color-mix(in srgb, var(--green-500) 10%, var(--surface)); }
.txr-vring.f { color: var(--red-600); border-color: color-mix(in srgb, var(--red-500) 38%, transparent); background: color-mix(in srgb, var(--red-500) 10%, var(--surface)); }
.txr-idrows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.txr-idrows .txd-device { margin-top: 0; width: 100%; min-width: 0; padding: 10px; gap: 9px; }
.txr-idrows .txd-device .di { width: 34px; height: 34px; }
.txd-device.as-link { width: 100%; box-sizing: border-box; cursor: pointer; font-family: inherit; text-align: left; transition: border-color .12s ease, box-shadow .12s ease; }
.txd-device.as-link:hover { border-color: var(--neutral-400); box-shadow: var(--shadow-1); }
.txd-device.as-link > svg:last-child { color: var(--text-3); flex-shrink: 0; }
.txr-idrows .txd-device .m { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txr-idrow { width: 100%; min-width: 0; border: 1px solid var(--divider-strong); cursor: pointer; font-family: inherit; text-align: left; }
.txr-idrow:hover { border-color: var(--neutral-400); }
.txr-idrow.conn-row .m { font-size: 11.5px; font-weight: 600; color: var(--text-3); display: flex; align-items: center; gap: 6px; margin-bottom: 1px; }
.txr-idrow.conn-row .s { font-size: 13px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txr-idrow > svg { color: var(--text-3); flex-shrink: 0; align-self: center; }
/* merged identity + verdict block */
.txr-idcard { border: 1px solid var(--divider-strong); border-radius: 14px; background: var(--surface-1); margin-bottom: 14px; overflow: hidden; }
.txr-idmain { display: flex; align-items: center; gap: 11px; padding: 13px 14px; }
.txr-idmain .subj-id { flex: 1; min-width: 0; }
.txr-idmain .subj-id .line { min-width: 0; }
.txr-idmain .subj-id .uid { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txr-idmain .subj-id .uid .copyid { overflow: hidden; text-overflow: ellipsis; }
/* clickable transaction id in the preview — opens the full record */
.txd-idlink { font: inherit; font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--text); background: none; border: 0; padding: 0; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; text-align: left; }
.txd-idlink:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: 2px; }
.txr-idmain .MuiChip { flex-shrink: 0; }
.txr-idverdict { display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-top: 1px solid var(--divider); font-size: 12.5px; font-weight: 700; }
.txr-idverdict span { font-weight: 600; }
.txr-idverdict svg { flex-shrink: 0; }
.txr-idverdict[data-st="p"] { color: var(--green-700); background: color-mix(in srgb, var(--green-500) 7%, var(--surface)); border-top-color: color-mix(in srgb, var(--green-500) 22%, transparent); }
.txr-idverdict[data-st="p"] span { color: var(--green-700); }
.txr-idverdict[data-st="f"] { color: var(--red-700); background: color-mix(in srgb, var(--red-500) 7%, var(--surface)); border-top-color: color-mix(in srgb, var(--red-500) 22%, transparent); }
.txr-idverdict[data-st="f"] span { color: var(--red-600); }
/* redesigned source rows: status chip (top-right) + accuracy pill footer */
.txr-src-top { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.txr-src-state { margin-left: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; padding: 3px 8px 3px 7px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.txr-src-state .sdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.txr-src-state.on { color: var(--green-700); background: color-mix(in srgb, var(--green-500) 13%, transparent); }
.txr-src-state.off { color: var(--text-3); background: var(--surface-3); }
.txr-src-state.na { color: var(--text-3); background: var(--surface-3); opacity: .85; }
.txr-src-foot { display: flex; align-items: center; gap: 9px; margin-top: 6px; flex-wrap: wrap; }
.txr-src-acc { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin: 0; }
.txr-src-acc.ok { color: var(--green-700); background: color-mix(in srgb, var(--green-500) 12%, transparent); }
.txr-src-acc.bad { color: var(--red-600); background: color-mix(in srgb, var(--red-500) 12%, transparent); }
.txr-src-acc.na { color: var(--text-3); background: var(--surface-3); }
.txr-src-coords { font-size: 10.5px; color: var(--text-3); margin: 0; }
/* floating-bar action buttons */
.txr-actions .opchip.ic { padding: 0; width: 32px; justify-content: center; }
/* sources view toggle (Consensus / Detailed) */
.txr-srchead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.txr-viewtog { display: inline-flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--divider-strong); border-radius: 8px; padding: 2px; }
.txr-viewtog button { border: 0; background: transparent; font-family: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: var(--text-3); padding: 3px 9px; border-radius: 6px; cursor: pointer; text-transform: none; }
.txr-viewtog button[data-on] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
/* consensus-first view */
.txr-consensus { display: flex; flex-direction: column; gap: 10px; }
/* connected assessment — quiet grouped subsections an analyst reads top-to-bottom */
.txr-flow { display: flex; flex-direction: column; gap: 16px; }
.txr-grp { display: flex; flex-direction: column; gap: 9px; }
.txr-grp + .txr-grp { padding-top: 16px; border-top: 1px solid var(--divider); }
.txr-grp-t { font-size: 12.5px; font-weight: 700; color: var(--text-2); letter-spacing: -.01em; }
.txr-cons-verdict { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; font-size: 12.5px; line-height: 1.4; }
.txr-cons-verdict b { font-weight: 700; }
.txr-cons-verdict svg { flex-shrink: 0; }
.txr-cons-verdict[data-st="ok"] { background: color-mix(in srgb, var(--green-500) 10%, transparent); color: var(--green-700); }
.txr-cons-verdict[data-st="warn"] { background: color-mix(in srgb, #F15A0E 11%, transparent); color: #b4540c; }
.txr-cons-resolved { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid var(--divider-strong); border-radius: 11px; background: var(--surface-1); }
.txr-cons-resolved .ci { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--green-500) 12%, transparent); color: var(--green-600); flex-shrink: 0; }
.txr-cons-resolved .rk { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); }
.txr-cons-resolved .rv { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 1px; }
.txr-cons-resolved .rv em { font-style: normal; color: var(--text-3); font-weight: 500; }
.txr-consensus > .txr-media { margin: 0; }
.txr-cons-scale { border: 0; border-radius: 0; padding: 2px 0 0; }
.txr-cons-scale-h { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 9px; }
.txr-cons-scale-h span { font-weight: 500; opacity: .8; text-transform: none; letter-spacing: 0; }
.txr-cons-bar { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 10px; padding: 4px 0; }
.txr-cons-bar[data-off] { opacity: .42; }
.txr-cons-bar .lbl { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; min-width: 0; }
.txr-cons-bar .lbl span { overflow: hidden; text-overflow: ellipsis; }
.txr-cons-bar .bdot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.txr-cons-bar .track { height: 7px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.txr-cons-bar .fill { display: block; height: 100%; border-radius: 4px; min-width: 6px; }
.txr-cons-bar .val { font-size: 11px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.txr-cons-bar .val.bad { color: var(--red-600); }
.txr-cons-bar[data-hov] { cursor: pointer; border-radius: 7px; transition: background .12s; }
.txr-cons-bar[data-hov]:hover { background: var(--surface-2); }
.txr-src[data-hov] { cursor: pointer; transition: border-color .12s; }
.txr-src[data-hov]:hover { border-color: var(--neutral-400); }
/* ── Media molecule: icon box + title + supporting line (one atom, tone variants) ── */
.txr-media { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid; }
.txr-media-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.txr-media-t { font-size: 13px; font-weight: 700; color: var(--text); }
.txr-media-s { font-size: 12px; color: var(--text-3); line-height: 1.45; margin-top: 4px; }
.txr-media-s b { color: var(--text-2); font-weight: 600; }
.txr-media[data-tone="neutral"] { background: var(--surface-1); border-color: var(--divider-strong); }
.txr-media[data-tone="neutral"] .txr-media-ic { background: color-mix(in srgb, var(--green-500) 12%, transparent); color: var(--green-600); }
.txr-media[data-tone="warn"] { background: color-mix(in srgb, #F15A0E 7%, var(--surface)); border-color: color-mix(in srgb, #F15A0E 24%, transparent); }
.txr-media[data-tone="warn"] .txr-media-ic { background: color-mix(in srgb, #F15A0E 14%, transparent); color: #b4540c; }
.txr-media[data-tone="ok"] { background: color-mix(in srgb, var(--green-500) 7%, var(--surface)); border-color: color-mix(in srgb, var(--green-500) 24%, transparent); }
.txr-media[data-tone="ok"] .txr-media-ic { background: color-mix(in srgb, var(--green-500) 14%, transparent); color: var(--green-600); }
.txr-media[data-tone="crit"] { background: color-mix(in srgb, var(--red-500) 7%, var(--surface)); border-color: color-mix(in srgb, var(--red-500) 24%, transparent); }
.txr-media[data-tone="crit"] .txr-media-ic { background: color-mix(in srgb, var(--red-500) 13%, transparent); color: var(--red-600); }
/* plain variant — white elevated card (used inside the tinted AI panel) */
.txr-media[data-variant="plain"] { background: var(--surface); border: 0; box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.07); align-items: center; transition: box-shadow .12s; }
.txr-media[data-variant="plain"]:hover { box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 2px 6px rgba(16,24,40,.12); }
.txr-media[data-variant="plain"][data-tone="ok"] .txr-media-ic { background: var(--green-100); color: var(--green-600); }
.txr-media[data-variant="plain"][data-tone="warn"] .txr-media-ic { background: var(--orange-100); color: var(--orange-600); }
.txr-media[data-variant="plain"][data-tone="crit"] .txr-media-ic { background: var(--red-100); color: var(--red-600); }
.txr-gauge { padding: 20px 0 2px; }
.txr-gauge-track { position: relative; }
.txr-gauge-bar { position: relative; height: 14px; border-radius: 7px; overflow: hidden; display: flex; }
.txr-gauge-bar .seg { height: 100%; }
.txr-gauge-bar .seg.in { flex: 0 0 50%; background: color-mix(in srgb, var(--green-500) 26%, var(--surface-2)); }
.txr-gauge-bar .seg.buf { flex: 0 0 20%; background: color-mix(in srgb, #F0728F 34%, var(--surface-2)); }
.txr-gauge-bar .seg.out { flex: 0 0 30%; background: color-mix(in srgb, var(--red-500) 26%, var(--surface-2)); }
.txr-gauge-bar .border { position: absolute; left: 70%; top: -5px; bottom: -5px; border-left: 2px dashed var(--text-2); }
.txr-gauge-bar .border .blbl { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); font-size: 9px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.txr-gauge-track .marker { position: absolute; top: -16px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.txr-gauge-track .marker .mlbl { font-size: 9.5px; font-weight: 800; color: var(--text); white-space: nowrap; margin-bottom: 2px; }
.txr-gauge-track .marker .pin { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.txr-gauge-track .marker[data-st="p"] .pin { background: var(--green-600); }
.txr-gauge-track .marker[data-st="f"] .pin { background: var(--red-600); }
.txr-gauge-key { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; margin-bottom: 14px; font-size: 10.5px; color: var(--text-3); }
.txr-gauge-key span { display: inline-flex; align-items: center; gap: 5px; }
.txr-gauge-key .d { width: 9px; height: 9px; border-radius: 2px; }
.txr-gauge-key .d.in { background: color-mix(in srgb, var(--green-500) 50%, transparent); }
.txr-gauge-key .d.buf { background: color-mix(in srgb, #F0728F 65%, transparent); }
.txr-gauge-key .d.out { background: color-mix(in srgb, var(--red-500) 50%, transparent); }
.txr-gauge-meta { font-size: 12px; color: var(--text-2); margin-top: 0; line-height: 1.5; }
.txr-gauge-meta b { color: var(--text); font-weight: 700; }
/* map zone labels — crisp legal demarcation */
.geo-zone-lbl { font-family: var(--font-sans); font-weight: 800; font-size: 10px; letter-spacing: .06em; white-space: nowrap; transform: translate(-50%, -50%); text-shadow: 0 1px 2px rgba(255,255,255,.9), 0 0 3px rgba(255,255,255,.9); pointer-events: none; }
.geo-zone-lbl.in { color: #15734a; }
.geo-zone-lbl.out { color: #c0343a; }
.txr-gauge-meta .ok { color: var(--green-700); font-weight: 600; }
.txr-gauge-meta .bad { color: var(--red-600); font-weight: 600; }
.txr-ref { border: 1px solid var(--divider-strong); border-radius: 11px; background: var(--surface); margin-top: 8px; overflow: hidden; }
.txr-ref summary { cursor: pointer; list-style: none; padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.txr-ref summary::-webkit-details-marker { display: none; }
.txr-ref summary > svg { color: var(--text-3); flex-shrink: 0; transition: transform .15s ease; }
.txr-ref[open] summary > svg { transform: rotate(90deg); }
.txr-ref summary:hover { background: var(--surface-2); }
.txr-ref summary:hover > svg { color: var(--text-2); }
.txr-ref > .kv { grid-template-columns: 156px 1fr; column-gap: 18px; padding: 0 13px 6px; }
.txr-ref > .kv .v { word-break: break-word; }
/* one consistent value size across all transaction stat boxes (atomic token) */
.txr-panel .stat .v { font-size: 16px; line-height: 1.3; }
/* AI block: kill every grey border/line; star centered on the text.
   Use .ai-insights.txr-ai so it outranks the base .ai-insights / .ai-find rules. */
.ai-insights.txr-ai { border: 0; background: color-mix(in srgb, #1E54E7 6%, var(--surface)); margin-bottom: 0; }
.ai-insights.txr-ai .ai-h { margin-bottom: 8px; border: 0; border-bottom: 0; box-shadow: none; }
.ai-insights.txr-ai .ai-h svg { display: block; flex-shrink: 0; transform: translateY(2px); }
.ai-insights.txr-ai .ai-find { border: 0; box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.07); }
.ai-insights.txr-ai .ai-find:hover { box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 2px 6px rgba(16,24,40,.12); }
/* diagnostics blocks → contained, scannable cards */
.txr-secbox { background: var(--surface-1); border: 1px solid var(--divider-strong); border-radius: 12px; padding: 2px 13px; }
.txr-secbox .txr-note { margin-top: 0; padding: 11px 0 4px; border-top: 1px solid var(--divider); }
.txr-secbox .kv { grid-template-columns: 130px 1fr; column-gap: 16px; }
.txr-secbox .kv .v { word-break: break-word; }
/* ── card-grouped panel (matches the user-profile composition) ── */
.txr-panel-scroll.txr-cards { padding: 12px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-app); }
.txr-cards > * { flex: 0 0 auto; }
.txr-cards .MuiCard { box-shadow: var(--shadow-1); }
/* identity card */
.txr-idhead { display: flex; align-items: center; gap: 13px; padding: 16px 18px; border-bottom: 1px solid var(--divider); }
.txr-idhead .txr-hero-main { flex: 1; min-width: 0; }
.txr-stpill { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 4px 10px; border-radius: 6px; flex-shrink: 0; }
.txr-stpill.p { background: color-mix(in srgb, var(--green-500) 14%, transparent); color: var(--green-700); }
.txr-stpill.f { background: color-mix(in srgb, var(--red-500) 14%, transparent); color: var(--red-600); }
.txr-idsubjects { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.txr-idsubjects .txr-subj { width: 100%; }
/* AI findings */
.txr-finds { display: flex; flex-direction: column; gap: 8px; }
.txr-finds .ai-find { margin: 0; }
/* details tabs inside a flush card */
.txr-tabwrap { padding: 0; }
.txr-tabwrap .MuiTabs { position: static; padding: 0 10px; box-shadow: none; }
/* details tabs — segmented control (matches the user-profile Compliance/Antifraud) */
.txr-segtabs { margin: 0; overflow-x: auto; scrollbar-width: none; }
.txr-segtabs::-webkit-scrollbar { display: none; }
.txr-segtabs button { flex: 1 0 auto; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.txr-segtabs .qn { font-size: 10.5px; font-weight: 700; color: var(--text-3); background: var(--surface-3); border-radius: 999px; padding: 0 6px; min-width: 18px; height: 17px; display: inline-grid; place-items: center; }
.txr-segtabs button[data-on="true"] .qn { background: var(--blue-50); color: var(--blue-700); }
.txr-segtabs .qn[data-alert="true"] { background: var(--red-100); color: var(--red-700); }
.txr-tabbody { padding: 14px 0 0; }
/* strip per-section card chrome → seamless interior */
.txr-panel .txr-hero,
.txr-panel .txr-subjects,
.txr-panel .txr-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
/* verdict-led hero: status avatar + outcome + reason */
.txr-panel .txr-hero { display: flex; gap: 13px; align-items: center; padding: 16px 20px 15px; }
.txr-verdict-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid transparent; }
.txr-verdict-ic.p { background: color-mix(in srgb, var(--green-500) 12%, var(--surface)); color: var(--green-600); border-color: color-mix(in srgb, var(--green-500) 26%, transparent); }
.txr-verdict-ic.f { background: color-mix(in srgb, var(--red-500) 12%, var(--surface)); color: var(--red-600); border-color: color-mix(in srgb, var(--red-500) 26%, transparent); }
.txr-hero-main { flex: 1; min-width: 0; }
.txr-panel .txr-hero-title { font-size: 18px; line-height: 1.15; }
.txr-verdict-line { font-size: 12.5px; font-weight: 700; margin-top: 3px; }
.txr-verdict-line.p { color: var(--green-700); }
.txr-verdict-line.f { color: var(--red-600); }
.txr-panel .txr-hero-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.txr-hero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.txr-hchip { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; padding: 3px 8px; border-radius: 6px; }
.txr-hchip.warn { background: color-mix(in srgb, var(--orange-500, #F15A0E) 13%, transparent); color: var(--orange-700, #b4540c); }
.txr-hchip.ok { background: color-mix(in srgb, var(--green-500) 13%, transparent); color: var(--green-700); }
.txr-hchip svg { display: block; }

.txr-panel .txr-subjects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px 16px;
}
.txr-panel .txr-subj {
  border: 1px solid var(--divider);
  border-radius: 12px;
  background: var(--surface);
  padding: 11px 13px;
  min-width: 0;
}

/* sections separated by a chunky tinted band for clear block separation */
.txr-panel .txr-card { padding: 18px 20px; border-top: 9px solid var(--surface-2); box-shadow: inset 0 1px 0 var(--divider-strong); }
.txr-panel .txr-card-ai { border-top: 9px solid var(--surface-2); box-shadow: inset 0 1px 0 var(--divider-strong); padding-top: 18px; }
.txr-panel .txr-card-h {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
/* fixed toolbar header at the top of the card */
.txr-panel .txr-cardbar {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  border-radius: 18px 18px 0 0;
}
.txr-panel .txr-cardbar .txr-back { display: inline-flex; align-items: center; gap: 3px; padding: 4px 6px; border-radius: 8px; }
.txr-panel .txr-cardbar .txr-back:hover { background: color-mix(in srgb, var(--blue-600) 8%, transparent); }
.txr-panel .txr-cardbar-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tesla[data-page="livemap"] .global-search:has(~ * .txd), .lm-detail ~ .global-search { display: none; }
.lm-detail { z-index: 560; }
.txr-top { padding: 11px 24px; border-bottom: 1px solid var(--divider); background: var(--surface); }
/* location source cards + boundary on tx detail */
.txd-map-sec { margin-top: 22px; }
.txd-mapwrap { position: relative; height: 460px; border: 1px solid var(--divider); border-radius: 14px; overflow: hidden; }
.txd-mapwrap .txmap-wrap, .txd-mapwrap .txmap { position: absolute; inset: 0; }
.txd-loccards { position: absolute; top: 14px; right: 14px; z-index: 500; display: flex; flex-direction: column; gap: 10px; width: 250px; max-height: calc(100% - 28px); overflow: auto; }
.txd-loc { background: var(--surface); border: 1px solid var(--divider); border-radius: 12px; padding: 13px 14px; box-shadow: var(--shadow-2); }
.txd-loc[data-off] { opacity: .6; }
.txd-loc-h { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.txd-tgl { width: 26px; height: 15px; border-radius: 999px; background: var(--neutral-300); flex-shrink: 0; position: relative; }
.txd-tgl.on { background: var(--blue-600); }
.txd-tgl::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .15s; }
.txd-tgl.on::after { transform: translateX(11px); }
.txd-loc-tag { margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.txd-loc-tag.blue { background: var(--blue-50); color: var(--blue-700); }
.txd-loc-tag.orange { background: var(--orange-100); color: var(--orange-700); }
.txd-loc-addr { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.txd-loc-acc { margin-top: 9px; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 7px; display: inline-block; }
.txd-loc-acc.ok { background: var(--blue-50); color: var(--blue-700); }
.txd-loc-acc.fail { background: #FCEBEA; color: #BE3220; }
.txd-loc-acc.na { background: var(--surface-3); color: var(--text-3); }
.txd-mapnote { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); background: var(--surface-1); border: 1px solid var(--divider); border-radius: 10px; padding: 11px 14px; }
.txd-boundary { margin-top: 26px; }
.txd-boundary h2 { font-size: 17px; font-weight: 800; margin: 0 0 14px; }
.txd-bgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.txd-bcol { display: flex; flex-direction: column; gap: 5px; }
.txd-bk { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.txd-bv { font-size: 13px; color: var(--text); line-height: 1.45; }
@media (max-width: 980px) { .txd-loccards, .txd-bgrid { grid-template-columns: 1fr 1fr; } }
.txd { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg-app); overflow: auto; }
.txd-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 26px; border-bottom: 1px solid var(--divider); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.txd-back { border: 0; background: transparent; color: var(--blue-600); font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; }
.txd-bar-r { display: flex; gap: 8px; }
.txd-ghost { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 9px; padding: 7px 12px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.txd-main { max-width: 1100px; width: 100%; margin: 0 auto; padding: 24px 26px 60px; }
.txd-head { display: flex; align-items: center; justify-content: space-between; }
.txd-head h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.txd-nav { display: flex; gap: 8px; }
.txd-pn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 9px; padding: 6px 12px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.txd-id { margin: 14px 0 16px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.st-pill { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #fff; padding: 3px 8px; border-radius: 6px; }
.txd-subjects { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.txd-subj { background: var(--surface); border: 1px solid var(--divider); border-radius: 12px; padding: 13px 16px; font-size: 13.5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.txd-link { color: var(--blue-600); text-decoration: none; font-weight: 600; }
.txd-link:hover { text-decoration: underline; }
.txd-loc { color: var(--text-3); font-size: 12px; }
.txd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; padding: 18px 0; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.txd-field { display: grid; grid-template-columns: 150px 1fr; align-items: baseline; gap: 12px; padding: 8px 0; font-size: 13.5px; }
.txd-k { color: var(--text-3); font-weight: 500; }
.txd-v { color: var(--text); }
.txd-v .dim, .txd-reason { color: var(--text-3); }
.txd-bad { color: var(--red-600); }
.op-cell { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.op-cell .ring { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 3px solid; box-sizing: border-box; }
.txd-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--divider); margin: 26px 0 0; }
.txd-tabs button { border: 0; background: transparent; padding: 12px 2px; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-3); cursor: pointer; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 7px; }
.txd-tabs button[data-on] { color: var(--blue-700); border-bottom-color: var(--blue-600); }
.txd-tabn { font-size: 11px; font-weight: 700; background: var(--surface-3); color: var(--text-2); border-radius: 999px; padding: 1px 7px; }
.txd-panel { padding: 20px 0; }
.txd-trouble { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.txd-tlabel { font-size: 12px; font-weight: 700; color: var(--text-3); margin-bottom: 8px; }
.txd-tcard { display: flex; gap: 12px; border-radius: 12px; padding: 14px; font-size: 13px; line-height: 1.5; }
.txd-tcard.cs { background: #FCEBEA; color: #7A2018; } .txd-tcard.cs .num { font-weight: 800; }
.txd-tcard.pl { background: var(--blue-50); color: var(--blue-800, #1A3A8A); flex-direction: column; }
.txd-retry { font-weight: 700; margin-bottom: 6px; } .txd-retry .yes { background: var(--green-500); color: #fff; border-radius: 6px; padding: 1px 7px; font-size: 11px; }
.txd-rule { font-size: 13.5px; display: flex; align-items: center; gap: 10px; }
.txd-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.txd-snapscrim { position: fixed; inset: 0; background: var(--bg-overlay); z-index: 800; display: flex; justify-content: flex-end; }
.txd-snap { width: 480px; max-width: 92vw; height: 100%; background: var(--surface); box-shadow: var(--shadow-12); display: flex; flex-direction: column; }
.txd-snap-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--divider); font-size: 16px; font-weight: 800; }
.txd-snap-h button { border: 0; background: transparent; font-size: 22px; color: var(--text-3); cursor: pointer; }
.txd-snap-b { flex: 1; overflow: auto; padding: 8px 20px 20px; }
.txd-snap-row { padding: 11px 0; border-bottom: 1px solid var(--divider); font-size: 13px; color: var(--text-2); }
.txd-snap-row a { color: var(--blue-600); text-decoration: none; }
@media (max-width: 980px) { .txd-grid, .txd-trouble, .txd-kv { grid-template-columns: 1fr; } }
/* live-map table aligned to the TOP PANEL (not full page) — MUI data-table card */
.lm-fulltable { flex: 1; min-height: 0; display: flex; flex-direction: column; border: 0 !important; border-radius: 0 !important; padding: calc(var(--edge) + 56px) var(--edge) var(--edge) calc(var(--dockw) + var(--edge) * 2); box-sizing: border-box; gap: 0; }
.lm-fulltable .lm-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--divider); border-radius: 14px 14px 0 0; overflow: hidden; }
.lm-fulltable .lm-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-1); text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); padding: 0 18px; height: 46px; border-bottom: 1px solid var(--divider-strong); white-space: nowrap; user-select: none; }
.lm-fulltable .lm-foot { border: 1px solid var(--divider); border-top: 0; border-radius: 0 0 14px 14px; background: var(--surface); }
.lm-fulltable .mtbl-sort { cursor: pointer; }
.lm-fulltable .mtbl-sort:hover { color: var(--text); }
.lm-fulltable .mtbl-sort[data-on] { color: var(--blue-700); }
.lm-fulltable .lm-table tbody td { padding: 0 18px; height: 52px; border-bottom: 1px solid var(--divider); font-size: 13.5px; color: var(--text); vertical-align: middle; }
.lm-fulltable .lm-table tbody tr { cursor: pointer; transition: background .12s; }
.lm-fulltable .lm-table tbody tr:hover { background: var(--bg-hover); }
.lm-statseg2[hidden] { display: none !important; }
.tesla[data-page="dash"] .tctrl, .tesla[data-page="blocks"] .tctrl, .tesla[data-page="directory"] .tctrl { display: none; }
/* dashboards page */
.dash-page { position: absolute; left: calc(var(--edge) + var(--dockw) + var(--edge)); top: var(--edge); right: var(--edge); bottom: var(--edge); z-index: 555; background: var(--bg-app); border: 1px solid var(--divider-strong); border-radius: 18px; box-shadow: var(--shadow-12); overflow: hidden; display: flex; flex-direction: column; }
.dash-bar { padding: 12px 26px; border-bottom: 1px solid var(--divider); flex-shrink: 0; background: var(--surface); display: flex; align-items: center; gap: 12px; }
.dash-bar-crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.dash-bar-crumb svg { color: var(--text-3); }
.dash-bar-crumb b { color: var(--text); font-weight: 700; }
.dash-bar button { display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 0; background: transparent; color: var(--blue-600); font-weight: 700; cursor: pointer; font-family: inherit; font-size: 13px; }
.dash-page .main { flex: 1; min-height: 0; overflow: auto; padding: 18px 26px 26px; }
/* Directory: grey canvas + white top band that holds the page identity & actions */
.dash-page.is-flat { background: var(--bg-app); }
.dash-page.is-flat .main { background: var(--bg-app); padding: 18px 26px 26px; scrollbar-gutter: stable; }
.dash-page.is-flat .ulist .page-header,
.dash-page.is-flat .bkx .page-header,
.dash-page.is-flat .main > .page-header { background: var(--surface); border-bottom: 1px solid var(--divider); margin: -18px -26px 16px; padding: 18px 26px; }
.ulist-crumbs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; margin-bottom: 14px; }
.ulist-crumbs svg { color: var(--text-3); }
.ulist-crumbs .ucb-root { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--blue-600); cursor: pointer; padding: 0; }
.ulist-crumbs .ucb-root:hover { text-decoration: underline; }
.ulist-crumbs .ucb-mid { color: var(--text-3); font-weight: 600; }
.ulist-crumbs b { color: var(--text); font-weight: 700; }
/* live map = full-bleed like the user view (no card chrome / back bar) */
.dash-page:has(.lm-bleed) { border: 0; border-radius: 0; box-shadow: none; background: transparent; left: 0; top: 0; right: 0; bottom: 0; }
.dash-page:has(.lm-bleed) .dash-bar { display: none; }
/* block management (premium) */
.bk { display: flex; flex-direction: column; height: 100%; }
.dash-page .main:has(.bk) { overflow: hidden; }
.dash-page .main:has(.rpb),
.dash-page .main:has(.report-page),
.dash-page.is-flat .main:has(.rpb),
.dash-page.is-flat .main:has(.report-page) { overflow: hidden !important; display: flex; flex-direction: column; scrollbar-gutter: auto !important; }
.bk-top { display: flex; align-items: flex-start; gap: 16px; }
.bk-top h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.bk-top .sub { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.bk-top-actions { margin-left: auto; display: flex; gap: 8px; }
.bk-split { position: relative; display: flex; }
.bk-split-main { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--blue-600); color: #fff; font-family: inherit; font-size: 13px; font-weight: 600; padding: 0 12px; height: 34px; border-radius: 9px 0 0 9px; cursor: pointer; }
.bk-split-main:hover { background: var(--blue-700); }
.bk-split-caret { display: grid; place-items: center; width: 30px; height: 34px; border: 0; border-left: 1px solid rgba(255,255,255,.25); background: var(--blue-600); color: #fff; border-radius: 0 9px 9px 0; cursor: pointer; }
.bk-split-caret:hover { background: var(--blue-700); }
.bk-create-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; min-width: 210px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 11px; box-shadow: var(--shadow-6); padding: 5px; display: flex; flex-direction: column; }
.bk-create-menu button { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--text); padding: 9px 10px; border-radius: 8px; cursor: pointer; text-align: left; }
.bk-create-menu button:hover { background: var(--bg-hover); }
.bk-scrim { position: fixed; inset: 0; background: var(--bg-overlay); display: grid; place-items: center; z-index: 700; }
/* MUI-style confirm dialog atom */
.confirm-dialog { width: 420px; max-width: 92vw; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-12); overflow: hidden; }
.confirm-h { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 12px; }
.confirm-ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--red-500) 13%, transparent); color: var(--red-600); }
.confirm-t { font-size: 16px; font-weight: 700; color: var(--text); }
.confirm-id { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.confirm-b { padding: 0 20px 18px; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.confirm-b b { color: var(--text); font-weight: 700; }
.confirm-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--divider); }
.confirm-f .bk-btn { border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text); font-family: inherit; font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: var(--r-pill); 9px; cursor: pointer; }
.confirm-f .bk-btn:hover { background: var(--bg-hover); }
.confirm-f .bk-btn.primary { border-color: var(--red-600); background: var(--red-600); color: #fff; }
.confirm-f .bk-btn.primary:hover { background: var(--red-700); border-color: var(--red-700); }
.bk-modal { width: 560px; max-width: 92vw; max-height: 84vh; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-12); display: flex; flex-direction: column; overflow: hidden; }
.bk-modal-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--divider); font-size: 16px; font-weight: 700; }
.bk-modal-x { border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--text-3); cursor: pointer; }
.bk-modal-search { display: flex; align-items: center; gap: 8px; margin: 14px 18px 4px; height: 38px; padding: 0 12px; border: 1px solid var(--divider-strong); border-radius: 10px; color: var(--text-3); }
.bk-modal-search input { flex: 1; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 13.5px; color: var(--text); }
.bk-op-all { display: flex; align-items: center; gap: 9px; margin: 8px 18px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.bk-op-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; padding: 4px 18px 8px; overflow: auto; }
.bk-op { display: flex; align-items: center; gap: 9px; padding: 8px 6px; border-radius: 8px; font-size: 13px; color: var(--text); cursor: pointer; }
.bk-op:hover { background: var(--bg-hover); }
.bk-modal-f { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--divider); }
.bk-modal-count { font-size: 12.5px; color: var(--text-3); margin-right: auto; }
.bk-btn { border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-2); border-radius: var(--r-pill); padding: 8px 16px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.bk-btn.primary { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.usm-save, .ulist-clear, .bkc-foot-btns .bk-btn, .bk-create-menu button, .mng-del { border-radius: var(--r-pill) !important; }
.bk-btn.primary:hover { background: var(--blue-700); }
.bk-btn.ghost:hover { background: var(--bg-hover); }
.bk-toolbar { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; flex-wrap: wrap; }
.bk-tabs { display: flex; gap: 3px; background: var(--surface-2); border: 1px solid var(--divider-strong); border-radius: 11px; padding: 3px; }
.bk-tabs button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; border-radius: 8px; padding: 6px 12px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.bk-tabs button[data-on="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.bk-tabs .n { font-size: 11px; font-weight: 700; color: var(--text-3); background: var(--surface-3); border-radius: 6px; padding: 0 6px; }
.bk-tabs button[data-on="true"] .n { background: var(--blue-50); color: var(--blue-700); }
.bk-search { display: flex; align-items: center; gap: 8px; height: 38px; flex: 1; min-width: 220px; max-width: 360px; padding: 0 12px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 10px; color: var(--text-3); }
.bk-search input { flex: 1; border: 0; background: transparent; outline: none; font-family: inherit; font-size: 13.5px; color: var(--text); }
.bk-bulk { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 9px 14px; background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: 11px; font-size: 13px; color: var(--blue-700); }
.bk-bulk b { font-weight: 800; }
.bk-bulk button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--blue-200); background: var(--surface); color: var(--blue-700); border-radius: 8px; padding: 5px 11px; font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.bk-bulk button:hover { border-color: var(--blue-400); }
.bk-bulk .clear { margin-left: auto; border: 0; background: transparent; color: var(--text-2); }
.bk-tablewrap { border: 1px solid var(--divider-strong); border-radius: 14px; overflow: auto; background: var(--surface); flex: 1; min-height: 0; }
.bk-table { width: 100%; min-width: 1120px; border-collapse: collapse; font-size: 13px; }
.bk-table thead th { position: sticky; top: 0; background: var(--surface-1); text-align: left; padding: 11px 14px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--divider-strong); white-space: nowrap; }
.bk-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--divider); white-space: nowrap; vertical-align: top; }
.bk-stack > div { padding: 3px 0; }
.bk-andmore { color: var(--blue-600); font-size: 11.5px; font-weight: 600; }
.bk-andmore-sp { height: 21px; }
.bk-table tbody tr:last-child td { border-bottom: 0; }
.bk-table tbody tr:hover { background: var(--bg-hover); }
.bk-table tbody tr[data-sel="true"] { background: var(--blue-50); }
.bk-cb { width: 18px; }
.bk-filter th { position: sticky; top: 37px; background: var(--surface-1); padding: 5px 14px 7px; border-bottom: 1px solid var(--divider-strong); z-index: 1; }
.bk-filter select, .bk-filter input { width: 100%; min-width: 90px; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 7px; padding: 5px 7px; font-family: inherit; font-size: 12px; font-weight: 500; color: var(--text-2); outline: none; }
.bk-filter input::placeholder { color: var(--text-3); font-weight: 400; }
.bk-filter select:focus, .bk-filter input:focus { border-color: var(--blue-400); }
.bk-datecell { position: relative; }
.bk-datebtn { display: inline-flex; align-items: center; gap: 5px; width: 100%; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 7px; padding: 5px 7px; font-family: inherit; font-size: 12px; font-weight: 500; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.bk-datebtn[data-on="true"] { border-color: var(--blue-400); color: var(--blue-700); }
.bk-datepop { position: absolute; top: calc(100% + 5px); right: 0; z-index: 30; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 12px; box-shadow: var(--shadow-6); padding: 10px; }
.bk-datepop-row { display: flex; gap: 10px; }
.bk-presets { display: flex; flex-direction: column; gap: 2px; min-width: 134px; border-right: 1px solid var(--divider); padding-right: 8px; }
.bk-presets button { text-align: left; border: 0; background: transparent; border-radius: 7px; padding: 7px 9px; font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.bk-presets button:hover { background: var(--bg-hover); }
.bk-presets button[data-on="true"] { background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.bk-cal { width: 212px; }
.bk-cal-h { font-size: 12.5px; font-weight: 700; text-align: center; padding: 2px 0 8px; }
.bk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.bk-cal-wd { font-size: 10px; color: var(--text-3); text-align: center; font-weight: 700; padding-bottom: 3px; }
.bk-cal-d { font-size: 11.5px; text-align: center; padding: 5px 0; border-radius: 6px; cursor: pointer; color: var(--text-2); }
.bk-cal-d:hover { background: var(--blue-50); color: var(--blue-700); }
.bk-datepop-f { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--divider); margin-top: 10px; padding-top: 10px; }
.bk-datepop-f button { border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 8px; padding: 6px 16px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.bk-datepop-f button.primary { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

/* ===================================================================
   Block management — fraud-console redesign (indigo accent, KPIs, pills)
   =================================================================== */
.bk { --bkx: var(--blue-600); --bkx-soft: #EDF1FD; --bkx-ink: var(--blue-700); }
.tesla[data-theme="dark"] .bk { --bkx: #5980EE; --bkx-soft: #1A2747; --bkx-ink: #A3B9F5; }
.bk h1 { letter-spacing: -.03em; font-size: 24px; }
.bk-top .sub { color: var(--text-3); }

.bkx-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 6px; }
.bkx-kpi { background: var(--surface); border: 1px solid var(--divider); border-radius: 14px; padding: 13px 16px; }
.bkx-kpi .k { font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.bkx-kpi .v { font-size: 27px; font-weight: 800; letter-spacing: -.03em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.bkx-kpi .t { font-size: 11.5px; font-weight: 600; margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.bkx-kpi .t span { color: var(--text-3); font-weight: 500; }
.bkx-kpi .t.up { color: #1A7F45; }
.bkx-kpi .t.down { color: var(--text-2); }
.bkx-kpi .t.flat { color: var(--text-3); }

.bk-tabs { background: transparent; border: 0; padding: 0; gap: 6px; }
.bk-tabs button { border: 1px solid var(--divider-strong); border-radius: 999px; padding: 7px 14px; background: var(--surface); }
.bk-tabs button[data-on="true"] { background: var(--bkx); border-color: var(--bkx); color: #fff; box-shadow: none; }
.bk-tabs button[data-on="true"] .n { background: rgba(255,255,255,.22); color: #fff; }
.bk-search:focus-within { border-color: var(--bkx); }

.bk-split-main, .bk-split-caret { background: var(--bkx); }
.bk-split-main:hover, .bk-split-caret:hover { background: var(--bkx-ink); }
.bk-btn.primary, .bk-datepop-f button.primary { background: var(--bkx); border-color: var(--bkx); }
.bk-btn.primary:hover, .bk-datepop-f button.primary:hover { background: var(--bkx-ink); }

.bk-tablewrap { border-radius: 16px; box-shadow: var(--shadow-2); border-color: var(--divider); }
.bk-table thead th { background: var(--surface); border-bottom: 1.5px solid var(--divider-strong); font-size: 10.5px; letter-spacing: .07em; color: var(--text-3); padding: 13px 16px; }
.bk-table tbody td { padding: 14px 16px; }
.bk-table tbody tr:hover { background: var(--bkx-soft); }
.bk-table tbody tr[data-sel="true"] { background: var(--bkx-soft); }
.bk-filter th { background: var(--surface); top: 39px; }

.bk-check.on { background: var(--bkx); border-color: var(--bkx); }
.bk-exp[data-open="true"] { background: var(--bkx-soft); color: var(--bkx-ink); }
.bk-idchip { background: var(--bkx-soft); color: var(--bkx-ink); }
.bk-idchip button { color: var(--bkx-ink); }
.bk-presets button[data-on="true"] { background: var(--bkx-soft); color: var(--bkx-ink); }
.bk-cal-d:hover { background: var(--bkx-soft); color: var(--bkx-ink); }
.bk-datebtn[data-on="true"] { border-color: var(--bkx); color: var(--bkx-ink); }
.bk-more, .bk-hist { color: var(--bkx-ink); }
.bk-unblock:hover { border-color: var(--bkx); color: var(--bkx-ink); }
.bp-av { background: var(--bkx-soft); color: var(--bkx-ink); border-radius: 9px; }

.bk-status { padding: 4px 10px 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .01em; }
.bk-status.bad { background: #FCEBEA; color: #BE3220; }
.bk-status.warn { background: #FBF0DD; color: #93580A; }
.bk-status.ok { background: #E5F6EA; color: #1A7F45; }
.bk-status.mute { background: var(--surface-3); color: var(--text-3); }
.tesla[data-theme="dark"] .bk-status.bad { background: rgba(214,55,61,.18); color: #F0A6A0; }
.tesla[data-theme="dark"] .bk-status.warn { background: rgba(241,90,14,.18); color: #F3B27A; }
.tesla[data-theme="dark"] .bk-status.ok { background: rgba(29,165,52,.18); color: #7BD495; }
.bk-dur { background: var(--surface); border-color: var(--divider-strong); }
.bk-idcol { display: flex; flex-direction: column; gap: 4px; }
.bk-statuscell { position: relative; }
.bk-msbtn { width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 5px; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 7px; padding: 5px 7px; font-family: inherit; font-size: 12px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.bk-msbtn[data-on="true"] { border-color: var(--bkx); color: var(--bkx-ink); }
.bk-msmenu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 30; min-width: 178px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 10px; box-shadow: var(--shadow-6); padding: 5px; display: flex; flex-direction: column; }
.bk-msmenu label { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 7px; font-size: 12.5px; color: var(--text); cursor: pointer; }
.bk-msmenu label:hover { background: var(--bg-hover); }
.bk-msmenu .bk-check.on { background: var(--bkx); border-color: var(--bkx); }
.bk-row-act { white-space: nowrap; }
.bk-rowdetails { opacity: 0; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-2); border-radius: 8px; padding: 5px 10px; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; margin-right: 6px; transition: opacity .12s; }
.bk-table tbody tr:hover .bk-rowdetails { opacity: 1; }
.bk-rowdetails:hover { border-color: var(--bkx); color: var(--bkx-ink); }
.bk-dscrim { position: fixed; inset: 0; background: var(--bg-overlay); z-index: 700; display: flex; justify-content: flex-end; }
.bk-drawer { width: 420px; max-width: 94vw; background: var(--surface); height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; display: flex; flex-direction: column; box-shadow: var(--shadow-12); animation: bkslide .2s ease; }
@keyframes bkslide { from { transform: translateX(24px); opacity: .5; } to { transform: none; opacity: 1; } }
.bk-drawer-h { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--divider); }
.bk-drawer-id { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.bk-drawer-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.bk-drawer-b { flex: 1; min-height: 0; overflow: auto; padding: 0; }
.bk-drawer-b .subject { padding: 15px 16px 16px; }
.bk-drow { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--divider); font-size: 13px; }
.bk-drow .k { width: 124px; flex-shrink: 0; color: var(--text-3); font-weight: 600; }
.bk-drow .v { color: var(--text); }
/* ===================================================================
   Block management — security-ops console (table + drawer)
   =================================================================== */
.bkx { display: flex; flex-direction: column; min-height: 0; gap: 11px; }
.bkx .page-header { margin-bottom: 4px; }
.bkx-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bkx-head .dash-title { margin: 0; }
.bkx-sub { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.bkx-head-act { display: flex; gap: 8px; flex-shrink: 0; }
.bkx-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bkx-kpi-c { display: flex; flex-direction: column; justify-content: center; gap: 4px; background: var(--surface); border: 1px solid var(--divider); border-radius: 13px; padding: 15px 18px; transition: box-shadow .15s, border-color .15s; width: 100%; text-align: left; font-family: inherit; cursor: pointer; }
.bkx-kpi-c:hover { border-color: var(--neutral-300); box-shadow: var(--shadow-2); }
.bkx-kpi-c[data-on] { border-color: var(--blue-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-600) 14%, transparent); }color .15s; }
.bkx-kpi-c:hover { border-color: var(--neutral-300); box-shadow: var(--shadow-2); }
.bkx-kpi-ic { width: 42px; align-self: stretch; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.bkx-kpi-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bkx-kpi-tx { display: contents; }
.bkx-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bkx-kpi-c .k { font-size: 11.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bkx-kpi-c .v { font-size: 32px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.05; color: var(--text); }
.bkx-kpi-c .v.warn { color: var(--orange-600); }
.bkx-kpi-trend { flex-shrink: 0; align-self: flex-start; display: inline-flex; align-items: center; gap: 3px; height: 21px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bkx-kpi-trend.pos { background: #E5F6EA; color: #1A7F45; }
.bkx-kpi-trend.neg { background: #FCEBEA; color: #BE3220; }
.tesla[data-theme="dark"] .bkx-kpi-trend.pos { background: rgba(29,165,52,.18); color: #7BD495; }
.tesla[data-theme="dark"] .bkx-kpi-trend.neg { background: rgba(214,55,61,.18); color: #F0A6A0; }
.bkx-kpi-c .ProgressRing { margin-left: auto; flex-shrink: 0; }
/* table fills available height, no internal scroll (pagination handles overflow) */
.bkx-tablewrap { flex: 1; min-height: 0; overflow: hidden; border: 1px solid var(--divider); border-radius: 14px; background: var(--surface); }
/* visible reject button */
.bk-btn.danger { background: #FCEBEA; border-color: var(--red-200); color: var(--red-600); }
.bk-btn.danger:hover { background: #F8D7D4; border-color: var(--red-400); }
.tesla[data-theme="dark"] .bk-btn.danger { background: rgba(214,55,61,.16); border-color: rgba(214,55,61,.35); color: #F0A6A0; }
/* linked-via-device box */
.bkx-devbox { border: 1px solid var(--divider); border-radius: 11px; overflow: hidden; }
.bkx-devhead { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--surface-1); border-bottom: 1px solid var(--divider); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.bkx-devhead svg { color: var(--text-3); }
.bkx-devcount { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.bkx-devbox .bkx-linked { padding: 10px 12px; gap: 7px; }
.bkx-lav { background: var(--surface-3); color: var(--text-3); }
.bkx-tool { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 4px; }
.bkx-tool-div { width: 1px; align-self: center; height: 24px; background: var(--divider-strong); margin: 0 3px; flex-shrink: 0; }
.bkx-tool .bk-search { height: 38px; flex: 1; min-width: 220px; max-width: none; }
.bkx-tool .bkx-clearall { margin-left: auto; }
.bkx-f { height: 38px; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 9px; padding: 0 30px 0 12px; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer; outline: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.bkx-f:hover { border-color: var(--neutral-400); }
.bkx-f:focus { border-color: var(--bkx, var(--blue-600)); }
.bkx-count { margin-left: auto; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bkx-clearall + .bkx-count { margin-left: 0; }
.bkx-resbar { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 -2px; }
.bkx-resbar-n { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.bkx-resbar-n b { color: var(--text); font-weight: 700; }
/* custom dropdown filters (best-practice) */
.bkx-drop { position: relative; }
.bkx-dropbtn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 11px; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 9px; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; white-space: nowrap; }
.bkx-dropbtn svg:first-child { color: var(--text-3); }
.bkx-dropbtn:hover { border-color: var(--neutral-400); }
.bkx-dropbtn[data-open] { border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-50); }
.bkx-dropbtn[data-active] { border-color: var(--blue-400); color: var(--blue-700); background: var(--blue-50); }
.bkx-dropbtn[data-active] svg:first-child, .bkx-dropbtn[data-active] > svg:last-child { color: var(--blue-600); }
.bkx-clearall { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 11px; border: 0; background: transparent; color: var(--text-2); border-radius: 9px; font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.bkx-clearall:hover { background: var(--surface-2); color: var(--red-600); }
.bkx-clearall svg { color: currentColor; }
/* MUI-style calendar range picker — presets rail (left) + calendar (right) */
.bkx-dropmenu.bkx-datemenu { min-width: 0; width: auto; display: flex; flex-direction: row; padding: 0; overflow: hidden; left: auto; right: 0; }
.bkx-date-presets { display: flex; flex-direction: column; gap: 1px; padding: 8px; min-width: 184px; border-right: 1px solid var(--divider); background: var(--surface-1); }
.bkx-date-presets .bkx-dropitem { border-radius: 8px; white-space: nowrap; }
.bkx-date-presets .bkx-dropitem span { white-space: nowrap; }
.bkx-cal { padding: 12px 12px 8px; }
.bkx-cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bkx-cal-mon { font-size: 13px; font-weight: 700; color: #0F172A; }
.bkx-cal-nav { display: flex; gap: 2px; }
.bkx-cal-nav button { width: 26px; height: 26px; border: 0; background: transparent; border-radius: 7px; display: grid; place-items: center; cursor: pointer; color: var(--text-2); }
.bkx-cal-nav button:hover { background: var(--surface-2); color: #0F172A; }
.bkx-cal-nav button.prev .ico { transform: rotate(180deg); }
.bkx-cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 2px; }
.bkx-cal-dow span { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--text-3); padding: 4px 0; }
.bkx-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.bkx-cal-empty { width: 34px; height: 32px; }
.bkx-cal-day { width: 34px; height: 32px; border: 0; background: transparent; border-radius: 8px; font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--text); cursor: pointer; transition: background .1s; }
.bkx-cal-day:hover { background: var(--blue-50); color: var(--blue-700); }
.bkx-cal-day[data-in] { background: var(--blue-50); color: var(--blue-700); border-radius: 0; }
.bkx-cal-day[data-edge] { background: var(--blue-600); color: #fff; font-weight: 700; }
.bkx-cal-day[data-from] { border-radius: 8px 0 0 8px; }
.bkx-cal-day[data-to] { border-radius: 0 8px 8px 0; }
.bkx-cal-day[data-from][data-to] { border-radius: 8px; }
.bkx-cal-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--divider); margin-top: 8px; padding-top: 9px; }
.bkx-cal-sel { font-size: 11.5px; font-weight: 600; color: var(--text-2); margin-right: auto; }
.bkx-cal-btns { display: flex; gap: 6px; }
.bkx-cal-clear { border: 0; background: transparent; color: var(--text-2); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: 7px; }
.bkx-cal-clear:hover { background: var(--surface-2); }
.bkx-cal-apply { border: 0; background: var(--blue-600); color: #fff; border-radius: 8px; padding: 6px 14px; font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.bkx-cal-apply:hover:not(:disabled) { background: var(--blue-700); }
.bkx-cal-apply:disabled { opacity: .45; cursor: not-allowed; }
.bkx-dropbtn .bkx-dropval { font-weight: 600; }
.bkx-dropbtn > svg:last-child { color: var(--text-3); margin-left: 1px; }
.bkx-dropmenu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 200px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 12px; box-shadow: var(--shadow-6); padding: 6px; display: flex; flex-direction: column; }
.bkx-dropmenu.wide { min-width: 280px; }
.bkx-dropitem { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; background: transparent; border-radius: 8px; padding: 9px 11px; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer; text-align: left; }
.bkx-dropitem:hover { background: var(--bg-hover); }
.bkx-dropitem[data-on] { color: var(--blue-700); font-weight: 600; }
.bkx-dropitem svg { color: var(--blue-600); }
.bkx-dropsearch { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 11px; margin-bottom: 5px; border: 1px solid var(--divider-strong); border-radius: 9px; color: var(--text-3); }
.bkx-dropsearch input { flex: 1; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 13.5px; color: var(--text); }
.bkx-dropall { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; border-radius: 8px; padding: 8px 11px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; border-bottom: 1px solid var(--divider); margin-bottom: 4px; border-radius: 0; }
.bkx-opscroll { display: flex; flex-direction: column; max-height: 260px; overflow: auto; }
.bkx-opitem { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; border-radius: 8px; padding: 8px 11px; font-family: inherit; cursor: pointer; text-align: left; }
.bkx-opitem:hover { background: var(--bg-hover); }
.bkx-cbox { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--neutral-400); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.bkx-cbox.on { background: var(--blue-600); border-color: var(--blue-600); }
.bkx-opring { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid; flex-shrink: 0; }
.bkx-optx { display: flex; flex-direction: column; line-height: 1.25; }
.bkx-opcode { font-size: 12.5px; font-weight: 700; color: var(--text); }
.bkx-opname { font-size: 11.5px; color: var(--text-3); }
/* dark-mode: operator popup text must stay readable */
.tesla[data-theme="dark"] .bkx-opcode, .tesla[data-theme="dark"] .bkx-dropall { color: var(--text) !important; }
.tesla[data-theme="dark"] .bkx-opname { color: var(--text-2) !important; }
.tesla[data-theme="dark"] .op-name, .tesla[data-theme="dark"] .op-list .opt-code { color: var(--text) !important; }
.tesla[data-theme="dark"] .op-list .opt-sub, .tesla[data-theme="dark"] .op-sub { color: var(--text-2) !important; }
.tesla[data-theme="dark"] .dev-pop .dev-body .m { color: var(--text) !important; }
.tesla[data-theme="dark"] .dev-pop .dev-body .s { color: var(--text-2) !important; }
.bkx-tablewrap { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--divider); border-radius: 14px; background: var(--surface); min-height: 620px; }
.bkx-tablewrap .dt { overflow: visible; }
.bkx-tablewrap .dt-wrap { border: 0; border-radius: 0; overflow: visible; background: transparent; }
.bkx-tablewrap .dt-pager { border-radius: 0 0 14px 14px; background: var(--surface-1); }
.bkx-tablewrap .dt-pager { flex: 0 0 auto; }
.bkx-table tbody tr { cursor: pointer; }
.bkx-table tbody tr[data-active="true"] { background: var(--blue-50); box-shadow: inset 3px 0 0 var(--blue-600); }
.bkx-id { display: flex; flex-direction: column; line-height: 1.35; }
.bkx-id-main { font-size: 13px; font-weight: 700; color: var(--text); }
.bkx-id-sub { font-size: 11px; color: var(--text-3); }
.bkx-src { font-size: 12px; font-weight: 600; color: var(--text-2); }
.bkx-src[data-s="auto"], .bkx-src[data-s="auto-pp"] { color: var(--text-2); }
.bk-opchip[data-all] { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-200); }
.bkx-when { font-size: 12px; white-space: nowrap; }
/* reason cell: lead-signal chip + text */
.bkx-reason { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bkx-reason .rr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bkx-sigchip { flex-shrink: 0; font-size: 10px; font-weight: 800; letter-spacing: .02em; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.bkx-sigchip[data-lvl="crit"] { background: color-mix(in srgb, var(--red-500) 13%, transparent); color: var(--red-700, #B3261E); }
.bkx-sigchip[data-lvl="high"] { background: color-mix(in srgb, #F15A0E 14%, transparent); color: #B4540C; }
.bkx-sigchip[data-lvl="med"] { background: var(--surface-3); color: var(--text-2); }
.bkx-riskcell { width: 56px; }
.bkx-riskcell .ProgressRing { margin: 0 auto; }
.bkx-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; justify-content: center; padding: 48px 24px; color: var(--text-3); text-align: center; }
.bkx-empty-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); color: var(--text-3); display: grid; place-items: center; margin-bottom: 8px; }
.bkx-empty-t { font-size: 14px; font-weight: 700; color: var(--text); }
.bkx-empty-s { font-size: 12.5px; color: var(--text-3); }
.bkx-empty-btn { margin-top: 12px; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--blue-600); font-family: inherit; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 9px; cursor: pointer; }
.bkx-empty-btn:hover { border-color: var(--blue-400); background: var(--blue-50); }
.bkx-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--text-2); }
.bkx-foot b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
/* drawer specifics */
.bkx-dh { display: flex; align-items: center; gap: 13px; }
.bkx-riskbadge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 50px; height: 46px; border-radius: 11px; flex-shrink: 0; }
.bkx-riskbadge .rl { font-size: 8.5px; font-weight: 800; letter-spacing: .08em; opacity: .8; }
.bkx-riskbadge .rv { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.bkx-riskbadge[data-lvl="crit"] { background: #FCEBEA; color: #BE3220; }
.bkx-riskbadge[data-lvl="high"] { background: #FBF0DD; color: #93580A; }
.bkx-riskbadge[data-lvl="med"] { background: var(--surface-3); color: var(--text-2); }
.bkx-riskbadge[data-lvl="low"] { background: var(--surface-3); color: var(--text-3); }
.tesla[data-theme="dark"] .bkx-riskbadge[data-lvl="crit"] { background: rgba(214,55,61,.2); color: #F0A6A0; }
.tesla[data-theme="dark"] .bkx-riskbadge[data-lvl="high"] { background: rgba(241,90,14,.2); color: #F3B27A; }
.bkx-idgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--divider); border: 1px solid var(--divider); border-radius: 10px; overflow: hidden; }
.bkx-idc { background: var(--surface); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.bkx-idc .t { font-size: 11px; color: var(--text-3); font-weight: 600; }
.bkx-idc .v { font-size: 12.5px; color: var(--text); font-weight: 600; }
.bkx-idc.clickable { cursor: pointer; transition: background .12s; }
.bkx-idc.clickable:hover { background: var(--blue-50); }
.bkx-idc.clickable:hover .v { color: var(--blue-700); }
.tesla[data-theme="dark"] .bkx-idc.clickable:hover { background: rgba(89,128,238,.14); }
.bkx-linked { display: flex; flex-wrap: wrap; gap: 7px; }
.bkx-lchip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 999px; padding: 4px 11px 4px 4px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.bkx-lchip:hover { border-color: var(--blue-400); color: var(--blue-700); }
.bkx-lav { width: 22px; height: 22px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; font-size: 9px; font-weight: 800; font-family: var(--font-sans, inherit); }
.bk-riskv.lg { font-size: 17px; }
.bk-riskv.lg .dot { width: 11px; height: 11px; }
.bkx-dstatus { display: flex; align-items: center; gap: 10px; padding: 4px 0 14px; }
.bkx-dwhen { font-size: 12px; color: var(--text-3); margin-left: auto; }
.bkx-sigs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; }
.bkx-sigs .sig { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; background: var(--red-100); color: var(--red-700); font-size: 11px; font-weight: 600; }
.tesla[data-theme="dark"] .bkx-sigs .sig { background: rgba(214,55,61,.18); color: #F0A6A0; }
.bkx-warn { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; background: #FFF6ED; border: 1px solid var(--orange-200); font-size: 12px; line-height: 1.45; color: #7A3E06; }
.bkx-warn svg { flex-shrink: 0; margin-top: 1px; color: var(--orange-600); }
.tesla[data-theme="dark"] .bkx-warn { background: rgba(241,90,14,.12); border-color: rgba(241,90,14,.3); color: #F3B27A; }
.bkx-dsec { margin-top: 18px; }
.bkx-dsec-t { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.bkx-link { border: 0; background: transparent; color: var(--blue-700); font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer; }
.bkx-hist { border: 1px solid var(--divider); border-radius: 10px; overflow: hidden; }
.bkx-hrow { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 12.5px; color: var(--text-2); border-bottom: 1px solid var(--divider); }
.bkx-hrow:last-child { border-bottom: 0; }
.bkx-hrow[data-cur="true"] { background: var(--blue-50); }
.tesla[data-theme="dark"] .bkx-hrow[data-cur="true"] { background: rgba(89,128,238,.14); }
.bkx-hrow .d { width: 7px; height: 7px; border-radius: 50%; background: var(--neutral-400); flex-shrink: 0; }
.bkx-hrow[data-cur="true"] .d { background: var(--red-500); }
.bkx-hrow .t { flex: 1; min-width: 0; }
.bkx-hrow .w { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.bkx-decide { padding: 12px 20px 14px; border-top: 1px solid var(--divider); background: var(--surface); display: flex; flex-direction: column; gap: 7px; flex-shrink: 0; position: sticky; bottom: 0; z-index: 2; }
.bkx-f.wide { width: 100%; height: 38px; }
.bkx-note { width: 100%; height: 38px; border: 1px solid var(--divider-strong); border-radius: 9px; padding: 0 12px; font-family: inherit; font-size: 13px; color: var(--text); background: var(--surface); outline: none; box-sizing: border-box; }
.bkx-note:focus { border-color: var(--blue-600); }
.bkx-decide-btns { display: flex; gap: 8px; }
.bkx-decide-btns .bk-btn.primary { background: var(--blue-600) !important; border-color: var(--blue-600) !important; color: #fff !important; }
.bkx-decide-btns .bk-btn.primary:hover { background: var(--blue-700) !important; }
.bkx-decide-btns .bk-btn.danger { background: var(--red-500) !important; border-color: var(--red-500) !important; color: #fff !important; }
.bkx-decide-btns .bk-btn.danger:hover { background: var(--red-600) !important; }
.bkx-decide-btns .bk-btn:not(.primary):not(.danger) { background: var(--surface); border-color: var(--divider-strong); color: var(--text); }
.bk-btn.wide { width: 100%; }
.bk-dsection { margin-top: 18px; }
.bk-dsection-t { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.bk-dop { border: 1px solid var(--divider-strong); border-radius: 11px; padding: 11px 13px; margin-bottom: 9px; }
.bk-dop-h { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 12.5px; font-family: var(--font-mono); margin-bottom: 6px; }
.bk-dop-r { font-size: 12.5px; color: var(--text-2); }
.bk-dop-m { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.bk-drawer-f { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--divider); }
.bp-sub { display: flex; align-items: center; gap: 7px; }
.bp-risk { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.bp-risk[data-lvl="crit"] { background: #FCEBEA; color: #BE3220; }
.bp-risk[data-lvl="high"] { background: #FBF0DD; color: #93580A; }
.bp-risk[data-lvl="med"] { background: var(--surface-3); color: var(--text-2); }
.bp-risk[data-lvl="low"] { background: var(--surface-3); color: var(--text-3); }
.tesla[data-theme="dark"] .bp-risk[data-lvl="crit"] { background: rgba(214,55,61,.2); color: #F0A6A0; }
.tesla[data-theme="dark"] .bp-risk[data-lvl="high"] { background: rgba(241,90,14,.2); color: #F3B27A; }
.bk-exp-tag { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700; color: var(--text-3); background: var(--surface-2); border-radius: 5px; padding: 2px 6px; }
.bk-exp-tag[data-sla="true"] { background: #FBF0DD; color: #93580A; }
.bk-sortable { cursor: pointer; user-select: none; }
.bk-sortable:hover { color: var(--text); }
.bk-caret { margin-left: 4px; font-size: 8px; color: var(--bkx); }
.bk-timeline { display: flex; flex-direction: column; }
.bk-tl { display: flex; gap: 11px; padding-bottom: 14px; position: relative; }
.bk-tl:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: 0; width: 2px; background: var(--divider-strong); }
.bk-tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bkx); border: 2px solid var(--surface); box-shadow: 0 0 0 1.5px var(--bkx); margin-top: 3px; flex-shrink: 0; z-index: 1; }
.bk-tl-t { font-size: 13px; font-weight: 600; }
.bk-tl-s { font-size: 12px; color: var(--text-3); margin-top: 1px; }

/* ===================================================================
   Block management — 3-zone analyst console (R1+R2+R3)
   =================================================================== */
.dash-page .main:has(.bkc) { overflow: hidden; padding: 0; }
.bkc { --bkx: var(--blue-600); --bkx-soft: #EDF1FD; --bkx-ink: var(--blue-700); display: grid; grid-template-columns: minmax(0,1fr) 384px; height: 100%; min-height: 0; background: var(--surface); color: var(--text); }
.tesla[data-theme="dark"] .bkc { --bkx: #5980EE; --bkx-soft: #1A2747; --bkx-ink: #A3B9F5; }

.bkc-q { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; border-right: 1px solid var(--divider); background: var(--surface-1); overflow: auto; }
.bkc-q-brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 800; letter-spacing: -.02em; padding: 4px 8px 10px; }
.bkc-q-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--bkx); color: #fff; display: grid; place-items: center; }
.bkc-q-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); padding: 14px 9px 6px; }
.bkc-q-item { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; border-radius: 9px; padding: 9px 10px; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-2); cursor: pointer; text-align: left; }
.bkc-q-item:hover { background: var(--bg-hover); }
.bkc-q-item[data-on="true"] { background: var(--bkx-soft); color: var(--bkx-ink); }
.bkc-q-item .ql { flex: 1; }
.bkc-q-item .qn { font-size: 11.5px; font-weight: 700; color: var(--text-3); background: var(--surface-3); border-radius: 7px; padding: 1px 7px; min-width: 22px; text-align: center; }
.bkc-q-item[data-on="true"] .qn { background: var(--bkx); color: #fff; }
.bkc-q-item .qn[data-alert="true"] { background: var(--orange-100); color: var(--orange-700); }
.bkc-q-grow { flex: 1; }
.bkc-q-sla { border: 1px solid var(--divider-strong); border-radius: 12px; padding: 12px; margin: 8px 4px 0; background: var(--surface); }
.bkc-q-sla .k { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.bkc-q-sla .v { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; display: flex; align-items: baseline; gap: 8px; }
.bkc-q-sla .v span { font-size: 11px; font-weight: 600; color: var(--text-3); }
.bkc-q-sla .bar { height: 5px; border-radius: 3px; background: var(--surface-3); margin: 8px 0 6px; overflow: hidden; }
.bkc-q-sla .bar span { display: block; height: 100%; background: var(--orange-500); border-radius: 3px; }
.bkc-q-sla .s { font-size: 11.5px; color: var(--text-3); }

.bkc-c { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.bkc-qbar { display: flex; align-items: center; gap: 6px; padding: 13px 20px; border-bottom: 1px solid var(--divider); flex-wrap: wrap; }
.bkc-qseg { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.bkc-qseg:hover { border-color: var(--neutral-400); }
.bkc-qseg[data-on="true"] { background: var(--bkx); border-color: var(--bkx); color: #fff; }
.bkc-qseg .qn { font-size: 11px; font-weight: 700; color: var(--text-3); background: var(--surface-3); border-radius: 6px; padding: 0 6px; }
.bkc-qseg[data-on="true"] .qn { background: rgba(255,255,255,.22); color: #fff; }
.bkc-qseg .qn[data-alert="true"] { background: var(--orange-100); color: var(--orange-700); }
.bkc-qseg[data-on="true"] .qn[data-alert="true"] { background: rgba(255,255,255,.22); color: #fff; }
.bkc-qbar-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bkc-sla { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.bkc-sla b { color: var(--orange-700); }
.bkc-c-h { display: flex; align-items: flex-start; gap: 18px; padding: 18px 24px 16px; border-bottom: 1px solid var(--divider); background: var(--bg-app); }
.bkc-c-h .dash-head-l { flex: 1; min-width: 0; }
.bkc-c-h .seg { flex-wrap: wrap; }
.bkc-c-title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px; }
.bkc-c-count { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.bkc-c-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding-top: 2px; }
.bkc-c-actions .bk-search { height: 36px; width: 250px; flex: none; max-width: none; }
.bkc-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 11px 20px; border-bottom: 1px solid var(--divider); }
.bkc-f { height: 34px; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 9px; padding: 0 10px; font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; outline: none; }
.bkc-f:focus { border-color: var(--bkx); }
.bkc-f-grow { flex: 1; min-width: 140px; cursor: text; }
.bkc-idchips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 34px; min-width: 150px; padding: 3px 8px; border: 1px solid var(--divider-strong); border-radius: 9px; background: var(--surface); }
.bkc-idchips input { border: 0; outline: 0; flex: 1; min-width: 70px; font-size: 12.5px; font-family: inherit; background: transparent; color: var(--text); }
.bkc-filters .bk-msbtn, .bkc-filters .bk-datebtn { height: 34px; width: auto; border-radius: 9px; }

.bkc-list, .mtbl-wrap { flex: 1; min-height: 0; overflow: auto; }
/* MUI-style data table */
.mtbl { width: 100%; border-collapse: collapse; }
.mtbl thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-1); text-align: left; font-size: 12px; font-weight: 600; color: var(--text-3); padding: 0 16px; height: 44px; border-bottom: 1px solid var(--divider-strong); white-space: nowrap; user-select: none; }
.mtbl thead th.mtbl-num { text-align: center; }
.mtbl-sort { cursor: pointer; }
.mtbl-sort:hover { color: var(--text); }
.mtbl-sort[data-on="true"] { color: var(--bkx-ink); }
.mtbl-arw { display: inline-block; width: 10px; color: var(--bkx); font-weight: 700; }
.mtbl tbody td { padding: 0 16px; height: 56px; border-bottom: 1px solid var(--divider); font-size: 13.5px; color: var(--text); vertical-align: middle; }
/* =========================================================================
   DataTable organism — single source of truth for every product table
   ========================================================================= */
.tesla { --dt-row-h: 56px; --dt-cell-pad: 14px; --dt-header-fs: 11px; }
.dt-wrap { border: 1px solid var(--divider-strong); border-radius: 14px; overflow: auto; background: var(--surface); }
.dt { width: 100%; border-collapse: collapse; }
.dt thead th {
  position: sticky; top: 0; z-index: 2; background: var(--surface-1);
  text-align: left; padding: 11px var(--dt-cell-pad);
  font-size: var(--dt-header-fs); font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-3); white-space: nowrap; border-bottom: 1px solid var(--divider);
}
.dt thead th.dt-right { text-align: right; }
.dt thead th.dt-right .dt-th-in { justify-content: flex-end; }
.dt-th-in { display: inline-flex; align-items: center; gap: 5px; }
.dt-sortable { cursor: pointer; user-select: none; }
.dt-sortable:hover { color: var(--blue-600); }
.dt-arrow { color: var(--neutral-400); font-size: 11px; opacity: 0; transition: opacity .12s; }
.dt-sortable:hover .dt-arrow { opacity: .6; }
.dt-arrow.on { color: var(--blue-600); opacity: 1; }
.dt tbody td { height: var(--dt-row-h); padding: 0 var(--dt-cell-pad); border-bottom: 1px solid var(--divider); font-size: 13.5px; color: var(--text); vertical-align: middle; }
.dt tbody tr:last-child td { border-bottom: 0; }
.dt tbody tr[data-clickable] { cursor: pointer; }
.dt tbody tr:hover { background: var(--bg-hover); }
.dt tbody tr.is-sel { background: var(--blue-50); }
.dt tbody td.dt-right { text-align: right; }
.dt-check-col { width: 44px; text-align: center; }
/* checkbox atom — rounded square, blue when checked (Restrictions style) */
.dt-check { display: inline-grid; place-items: center; cursor: pointer; position: relative; }
.dt-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.dt-check > span { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--neutral-400); background: var(--surface); display: grid; place-items: center; transition: background .12s, border-color .12s; }
.dt-check > span::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .12s; margin-top: -1px; }
.dt-check input:checked + span { background: var(--blue-600); border-color: var(--blue-600); }
.dt-check input:checked + span::after { transform: rotate(45deg) scale(1); }
.dt-check input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-600) 25%, transparent); }
/* ── table atoms ── */
.dt-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0; padding: 3px 11px 3px 9px; border-radius: 999px; white-space: nowrap; }
.dt-status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dt-idcell { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.dt-idav { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.dt-idtx { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dt-idmain { font-size: 13px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-idsub { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-optag { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.dt-opdot { width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 3px solid var(--text-3); box-sizing: border-box; flex-shrink: 0; }
.dt-optag-all { font-family: var(--font-mono); font-weight: 600; font-size: 12px; color: var(--blue-700); background: var(--blue-50); border-radius: 7px; padding: 3px 9px; }

/* best-practice responsive columns: fixed layout, proportional widths, no wrap */
.bkx-table { table-layout: fixed; width: 100%; }
.bkx-table thead th:first-child, .bkx-table tbody td:first-child { padding-left: 18px; width: 46px; }
.bkx-table thead th:last-child, .bkx-table tbody td:last-child { padding-right: 18px; width: 56px; }
.bkx-table thead th:nth-child(2), .bkx-table tbody td:nth-child(2) { width: 66px; }
.bkx-table thead th:nth-child(3), .bkx-table tbody td:nth-child(3) { width: 17%; }
.bkx-table thead th:nth-child(4), .bkx-table tbody td:nth-child(4) { width: auto; }
.bkx-table thead th:nth-child(5), .bkx-table tbody td:nth-child(5) { width: 13%; }
.bkx-table thead th:nth-child(6), .bkx-table tbody td:nth-child(6) { width: 9%; }
.bkx-table thead th:nth-child(7), .bkx-table tbody td:nth-child(7) { width: 12%; }
.bkx-table thead th:nth-child(8), .bkx-table tbody td:nth-child(8) { width: 12%; }
.bkx-table tbody td { white-space: nowrap; }
.bkx-table tbody td:nth-child(3), .bkx-table tbody td:nth-child(4) { overflow: hidden; text-overflow: ellipsis; }
.bkx-table .bkx-id-main, .bkx-table .bkx-id-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bkx-table .mtbl-reason .rr { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bkx-table .bkx-riskcell { text-align: center; }
.bkx-table .bkx-riskcell svg { display: block; margin: 0 auto; }
.bkx-wl-ring { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 3px solid color-mix(in srgb, var(--blue-600) 35%, transparent); background: var(--blue-50); color: var(--blue-700); }
.mtbl tbody tr { cursor: pointer; transition: background .12s; }
.mtbl tbody tr:hover { background: var(--bg-hover); }
.mtbl tbody tr[data-active="true"] { background: var(--bkx-soft); box-shadow: inset 3px 0 0 var(--bkx); }
.mtbl tbody tr[data-sel="true"] { background: var(--bkx-soft); }
.mtbl-cb { width: 44px; text-align: center; }
.mtbl-cb .bk-check { display: inline-grid; }
.mtbl-num { width: 64px; text-align: center; }
.mtbl-num .bkc-risk { margin: 0 auto; }
.mtbl-reason { max-width: 300px; }
.mtbl-reason .rr { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtbl-act { width: 52px; text-align: center; position: relative; }
.mtbl-kebab { width: 30px; height: 30px; border: 0; background: transparent; border-radius: 8px; color: var(--text-3); cursor: pointer; display: inline-grid; place-items: center; opacity: 0; transition: opacity .12s, background .12s; }
.mtbl tbody tr:hover .mtbl-kebab, .mtbl-kebab[data-on="true"] { opacity: 1; }
.mtbl-kebab:hover, .mtbl-kebab[data-on="true"] { background: var(--surface-3); color: var(--text); }
.mtbl-menu { position: absolute; top: 44px; right: 12px; z-index: 20; min-width: 168px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 11px; box-shadow: var(--shadow-6); padding: 5px; display: flex; flex-direction: column; }
.mtbl-menu button { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--text); padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: left; }
.mtbl-menu button:hover { background: var(--bg-hover); }
.bk-ops { display: inline-flex; align-items: center; gap: 6px; }
.bk-opchip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--divider-strong); font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.bk-opmore { font-size: 11px; font-weight: 700; color: var(--text-3); }
.mtbl-dur { line-height: 1.3; }
.dur-main { display: block; font-size: 13px; color: var(--text); }
.dur-sub { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.dur-sub[data-sla] { color: var(--orange-700); font-weight: 600; }
.tesla[data-theme="dark"] .dur-sub[data-sla] { color: var(--orange-400); }
/* risk score — severity dot + number (not an avatar) */
.bk-riskv { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.bk-riskv .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.bk-riskv[data-lvl="crit"] { color: #BE3220; } .bk-riskv[data-lvl="crit"] .dot { background: #E0392B; }
.bk-riskv[data-lvl="high"] { color: #93580A; } .bk-riskv[data-lvl="high"] .dot { background: #E8870E; }
.bk-riskv[data-lvl="med"] .dot { background: var(--neutral-400); }
.bk-riskv[data-lvl="low"] .dot { background: var(--neutral-300); }
.tesla[data-theme="dark"] .bk-riskv[data-lvl="crit"] { color: #F0A6A0; }
.tesla[data-theme="dark"] .bk-riskv[data-lvl="high"] { color: #F3B27A; }
/* identifier-type tag */
.bk-typetag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--divider-strong); font-size: 11px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
/* linked accounts */
.bk-linked { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-linked[data-hi] { background: #FCEBEA; color: #BE3220; }
.tesla[data-theme="dark"] .bk-linked[data-hi] { background: rgba(214,55,61,.2); color: #F0A6A0; }
.bk-by { font-size: 13px; color: var(--text-2); }
/* ===================================================================
   Responsive case-row list — replaces the wide table (Iteration 1)
   reflows from laptop to wide monitor, no horizontal scroll
   =================================================================== */
.caselist { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); align-content: start; gap: 12px; padding: 16px 20px 20px; }
.caselist-bar { grid-column: 1 / -1; position: sticky; top: -16px; z-index: 2; display: flex; align-items: center; gap: 16px; margin: -16px -20px 0; padding: 11px 20px; background: var(--surface-1); border-bottom: 1px solid var(--divider-strong); }
.cl-selall { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.cl-sort { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); }
.cl-sort button { display: inline-flex; align-items: center; gap: 3px; border: 1px solid transparent; background: transparent; border-radius: 7px; padding: 4px 9px; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.cl-sort button:hover { background: var(--bg-hover); }
.cl-sort button[data-on="true"] { background: var(--bkx-soft); color: var(--bkx-ink); }
.cl-sort button i { font-style: normal; color: var(--bkx); font-weight: 700; }
.cl-density { display: inline-flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--divider-strong); border-radius: 8px; padding: 2px; }
.cl-density button { display: grid; place-items: center; width: 28px; height: 24px; border: 0; background: transparent; border-radius: 6px; color: var(--text-3); cursor: pointer; }
.cl-density button[data-on="true"] { background: var(--surface); color: var(--bkx-ink); box-shadow: var(--shadow-1); }
/* compact density */
.caselist[data-density="compact"] .case { padding: 8px 20px; gap: 12px; align-items: center; }
.caselist[data-density="compact"] .case-body { flex-direction: row; align-items: center; gap: 14px; }
.caselist[data-density="compact"] .case-top { flex: 0 0 auto; gap: 9px; }
.caselist[data-density="compact"] .case-reason { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; order: 2; }
.caselist[data-density="compact"] .case-meta { flex: 0 0 auto; order: 3; }
.caselist[data-density="compact"] .case-meta > span:not(.cm-when):not(.cm-ops) { display: none; }
.caselist[data-density="compact"] .case-meta .cm-when::after { display: none; }
.caselist[data-density="compact"] .case-spacer { display: none; }
.caselist[data-density="compact"] .case-risk { min-width: 38px; padding-top: 0; }

.case { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid var(--divider); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .12s, box-shadow .12s, background .12s; }
.case:hover { border-color: var(--neutral-400); box-shadow: var(--shadow-2); }
.case[data-active="true"] { border-color: var(--bkx); box-shadow: 0 0 0 1px var(--bkx); background: var(--surface); }
.case[data-sel="true"] { background: var(--bkx-soft); border-color: var(--bkx); }
.case-cb { flex-shrink: 0; padding-top: 4px; }
.case-cb .bk-check { display: grid; }
.case-risk { flex-shrink: 0; padding-top: 1px; min-width: 48px; }
.case-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.case-top { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.case-id { font-size: 14.5px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.bk-dupe { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--orange-100); color: var(--orange-700); font-size: 11px; font-weight: 700; white-space: nowrap; }
.tesla[data-theme="dark"] .bk-dupe { background: rgba(241,90,14,.2); color: #F3B27A; }
.case-unblock { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-2); border-radius: 8px; padding: 5px 11px; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; opacity: 0; transition: opacity .12s, border-color .12s, color .12s; }
.case:hover .case-unblock { opacity: 1; }
.case-unblock:hover { border-color: var(--bkx); color: var(--bkx-ink); }
.bk-dupe-warn { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; margin-bottom: 10px; border-radius: 10px; background: var(--orange-50, #FFF6ED); border: 1px solid var(--orange-200); font-size: 12px; line-height: 1.45; color: var(--orange-800, #7A3E06); }
.bk-dupe-warn svg { flex-shrink: 0; margin-top: 1px; color: var(--orange-600); }
.bk-dupe-warn b { font-weight: 700; }
.tesla[data-theme="dark"] .bk-dupe-warn { background: rgba(241,90,14,.12); border-color: rgba(241,90,14,.3); color: #F3B27A; }
.bk-dsection-t-row { display: flex; align-items: center; justify-content: space-between; }
.bk-modal-hint { display: flex; align-items: flex-start; gap: 8px; margin: 0 18px; padding: 9px 11px; background: var(--bkx-soft); border-radius: 9px; font-size: 12px; line-height: 1.45; color: var(--bkx-ink); }
.bk-modal-hint svg { flex-shrink: 0; margin-top: 1px; }
.bk-op-allrow { display: flex; align-items: center; justify-content: space-between; margin: 10px 18px 4px; }
.bk-op-clear { border: 0; background: transparent; color: var(--bkx-ink); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.bk-op-clear:hover { text-decoration: underline; }
.case-id-link { border: 0; background: transparent; padding: 0; cursor: pointer; font-family: var(--font-mono); }
.case-id-link:hover { color: var(--bkx-ink); text-decoration: underline; }
.bk-bhist { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--divider); border-radius: 10px; overflow: hidden; }
.bk-bh-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 12.5px; color: var(--text-2); border-bottom: 1px solid var(--divider); }
.bk-bh-row:last-child { border-bottom: 0; }
.bk-bh-row[data-cur="true"] { background: var(--bkx-soft); }
.bk-bh-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neutral-400); flex-shrink: 0; }
.bk-bh-row[data-cur="true"] .bk-bh-dot { background: var(--red-500); }
.bk-bh-main { flex: 1; min-width: 0; }
.bk-bh-main b { color: var(--text); font-weight: 700; }
.bk-bh-when { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.bk-bh-foot { font-size: 11.5px; color: var(--text-3); margin-top: 7px; }
.case-handle { font-size: 12.5px; color: var(--text-3); }
.case-spacer { flex: 1; min-width: 8px; }
.case-act { position: relative; flex-shrink: 0; }
.case-act .mtbl-kebab { opacity: .55; }
.case:hover .case-act .mtbl-kebab, .case-act .mtbl-kebab[data-on="true"] { opacity: 1; }
.case-act .mtbl-menu { top: 34px; right: 0; }
.case-reason { font-size: 14px; color: var(--text); line-height: 1.5; }
.case-assignee { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: .02em; background: var(--surface-3); color: var(--text-2); flex-shrink: 0; }
.case-assignee[data-me] { background: var(--bkx); color: #fff; }
.case-assignee.unassigned { background: transparent; border: 1.5px dashed var(--divider-strong); color: var(--text-3); }
.case-signals { display: flex; flex-wrap: wrap; gap: 6px; }
.case-signals .sig { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; background: var(--bkx-soft); color: var(--bkx-ink); font-size: 11px; font-weight: 600; white-space: nowrap; }
.caselist[data-density="compact"] .case-signals { display: none; }
.sla-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.sla-badge.urgent { background: #FBF0DD; color: #93580A; }
.sla-badge.over { background: #FCEBEA; color: #BE3220; }
.tesla[data-theme="dark"] .sla-badge.urgent { background: rgba(241,90,14,.2); color: #F3B27A; }
.tesla[data-theme="dark"] .sla-badge.over { background: rgba(214,55,61,.2); color: #F0A6A0; }
.case-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 0; font-size: 11.5px; color: var(--text-3); padding-top: 1px; }
.case-meta > span { display: inline-flex; align-items: center; }
.case-meta > span:not(:last-child)::after { content: "·"; margin: 0 9px; color: var(--divider-strong); }
.case-meta b { color: var(--text-2); font-weight: 700; }
.case-meta .cm-ops::after { margin-left: 9px; }
.case-meta .cm-exp[data-sla] { color: var(--orange-700); font-weight: 600; }
.case-meta .cm-when { margin-left: auto; }
.tesla[data-theme="dark"] .case-meta .cm-exp[data-sla] { color: var(--orange-400); }
/* wide screens: reason and meta share a line for denser scanning */
@media (min-width: 1500px) {
  .bkc { grid-template-columns: minmax(0,1fr) 420px; }
}
@media (max-width: 1180px) {
  .case-meta .cm-when { margin-left: 0; }
  .bkc { grid-template-columns: minmax(0,1fr); }
  .bkc-d { position: absolute; top: 0; right: 0; bottom: 0; width: 400px; max-width: 88%; z-index: 40; transform: translateX(100%); transition: transform .22s ease; box-shadow: var(--shadow-12); }
  .bkc[data-detail="true"] .bkc-d { transform: none; }
  .bkc[data-detail="true"]::after { content: ""; position: absolute; inset: 0; background: var(--bg-overlay); z-index: 35; }
}
.bkc-row-id { display: flex; align-items: center; gap: 10px; }
.bkc-risk { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.bkc-risk[data-lvl="crit"] { background: #FCEBEA; color: #BE3220; }
.bkc-risk[data-lvl="high"] { background: #FBF0DD; color: #93580A; }
.bkc-risk[data-lvl="med"] { background: var(--surface-3); color: var(--text-2); }
.bkc-risk[data-lvl="low"] { background: var(--surface-3); color: var(--text-3); }
.tesla[data-theme="dark"] .bkc-risk[data-lvl="crit"] { background: rgba(214,55,61,.2); color: #F0A6A0; }
.tesla[data-theme="dark"] .bkc-risk[data-lvl="high"] { background: rgba(241,90,14,.2); color: #F3B27A; }
.bkc-risk.lg { width: 44px; height: 44px; border-radius: 13px; font-size: 17px; }
.bkc-idtext { display: flex; flex-direction: column; min-width: 0; }
.bkc-idtext .bp-id { font-weight: 700; font-size: 13px; }
.bkc-idtext .bp-h { font-size: 11px; color: var(--text-3); }
.bkc-row-reason { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.bkc-row-reason .rr { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bkc-row-reason .ro { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bkc-when { font-size: 12px; }
.bkc-go { color: var(--text-3); display: grid; place-items: center; }
.bkc-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--divider); font-size: 12.5px; color: var(--text-2); }

.bkc-d { border-left: 1px solid var(--divider); background: var(--surface-1); min-height: 0; display: flex; flex-direction: column; }
.bkc-d-empty { margin: auto; text-align: center; padding: 40px; max-width: 280px; }
.bkc-d-empty-ic { width: 60px; height: 60px; border-radius: 16px; background: var(--surface-3); color: var(--text-3); display: grid; place-items: center; margin: 0 auto 14px; }
.bkc-d-empty .be-t { font-size: 15px; font-weight: 700; }
.bkc-d-empty .be-s { font-size: 13px; color: var(--text-3); margin-top: 6px; line-height: 1.5; }
.bkc-d-in { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.bkc-d-h { display: flex; align-items: center; gap: 12px; padding: 18px 20px 12px; }
.bkc-d-id { flex: 1; min-width: 0; }
.bkc-d-status { display: flex; align-items: center; gap: 10px; padding: 0 20px 14px; border-bottom: 1px solid var(--divider); }
.bkc-d-assign { display: flex; align-items: center; gap: 9px; padding: 12px 20px; border-bottom: 1px solid var(--divider); }
.case-assignee.sm { width: 24px; height: 24px; font-size: 9.5px; }
.bkc-d-assign-t { font-size: 12.5px; color: var(--text-2); }
.bkc-d-assign-t b { color: var(--text); font-weight: 700; }
.bkc-claim { margin-left: auto; border: 1px solid var(--bkx); background: transparent; color: var(--bkx-ink); border-radius: 8px; padding: 5px 12px; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.bkc-claim:hover { background: var(--bkx-soft); }
.bk-tl[data-kind="approve"] .bk-tl-dot { background: var(--green-500); }
.bk-tl[data-kind="reject"] .bk-tl-dot { background: var(--red-500); }
.bk-tl[data-kind="note"] .bk-tl-dot { background: var(--bkx); }
.bk-tl[data-kind="assign"] .bk-tl-dot { background: var(--neutral-400); }
.bkc-d-note { padding: 12px 20px; border-top: 1px solid var(--divider); display: flex; flex-direction: column; gap: 8px; }
.bkc-d-note textarea { width: 100%; resize: none; border: 1px solid var(--divider-strong); border-radius: 10px; padding: 9px 11px; font-family: inherit; font-size: 13px; color: var(--text); background: var(--surface); outline: none; box-sizing: border-box; }
.bkc-d-note textarea:focus { border-color: var(--bkx); }
.bkc-note-add { align-self: flex-end; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-2); border-radius: 8px; padding: 6px 13px; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.bkc-note-add:disabled { opacity: .45; cursor: default; }
.bkc-reason-sel { width: 100%; height: 36px; border: 1px solid var(--divider-strong); border-radius: 9px; padding: 0 10px; font-family: inherit; font-size: 13px; color: var(--text); background: var(--surface); outline: none; box-sizing: border-box; }
.bkc-reason-sel:focus { border-color: var(--bkx); }
.bkc-reason-sel[value=""] { color: var(--text-3); }
.bk-btn.danger { border-color: var(--red-200); color: var(--red-600); }
.bk-btn.danger:hover { background: #FCEBEA; border-color: var(--red-400); }
.bk-bulk button.danger { border-color: var(--red-200); color: var(--red-600); }
.bk-bulk button.danger:hover { background: #FCEBEA; border-color: var(--red-400); }
.bkc-kbd { display: inline-flex; align-items: center; gap: 14px; }
.bkc-keys { color: var(--text-3); font-size: 11.5px; display: inline-flex; align-items: center; gap: 4px; }
.bkc-keys kbd { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border: 1px solid var(--divider-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); font-family: var(--font-mono); font-size: 10px; color: var(--text-2); }
@media (max-width: 1180px) { .bkc-keys { display: none; } }
/* ===================================================================
   Blocks — Reports mode (analytics board, click-to-drill)
   =================================================================== */
.bkc[data-mode="reports"] { grid-template-columns: minmax(0,1fr); }
.bkc-mode { flex-shrink: 0; }
.report-board { flex: 1; min-height: 0; overflow: auto; padding: 20px 24px 28px; }
.report-page { --bkx: var(--blue-600); --bkx-soft: #EDF1FD; --bkx-ink: var(--blue-700); height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 0; }
.tesla[data-theme="dark"] .report-page { --bkx: #5980EE; --bkx-soft: #1A2747; --bkx-ink: #A3B9F5; }
.report-page .page-header { background: var(--surface); border-bottom: 1px solid var(--divider); margin: -18px -26px 16px; padding: 18px 26px; }
.rb-intro { display: flex; align-items: center; gap: 14px; background: var(--bkx-soft); border: 1px solid var(--divider); border-radius: 12px; padding: 11px 16px; margin-bottom: 16px; }
.rb-intro-t { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); line-height: 1.4; }
.rb-intro-t b { color: var(--text); font-weight: 700; }
.rb-intro-t svg { color: var(--bkx-ink); flex-shrink: 0; }
.rb-records-link { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; border: 1px solid var(--bkx); background: var(--surface); color: var(--bkx-ink); border-radius: 8px; padding: 7px 12px; font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.rb-records-link:hover { background: var(--surface-2); }
.rb-bar { display: grid; grid-template-columns: 150px 1fr auto 16px; align-items: center; gap: 14px; border: 0; background: transparent; padding: 7px 6px; margin: 0 -6px; border-radius: 8px; font-family: inherit; cursor: pointer; text-align: left; }ly: inherit; cursor: pointer; text-align: left; }
.rb-bar:hover { background: var(--bkx-soft); }
.rb-bar:hover .rb-bar-l { color: var(--bkx-ink); }
.rb-bar:hover .rb-bar-go { opacity: 1; }
.rb-bar-l { font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-bar-track { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.rb-bar-fill { display: block; height: 100%; border-radius: 999px; background: color-mix(in srgb, var(--bkx) 50%, var(--surface)); transition: width .4s cubic-bezier(.22,1,.36,1); min-width: 3px; }
.rb-bar:hover .rb-bar-fill { background: color-mix(in srgb, var(--bkx) 70%, var(--surface)); }
.rb-bar-fill[data-tone="slate"] { background: color-mix(in srgb, var(--neutral-400) 60%, var(--surface)); }
.rb-bar-fill[data-tone="status"] { background: color-mix(in srgb, var(--red-500) 55%, var(--surface)); }
.rb-bar-n { font-size: 13px; font-weight: 700; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 8px; justify-content: flex-end; min-width: 84px; }
.rb-bar-pct { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--text-3); min-width: 30px; text-align: right; }
.rb-bar-go { opacity: 0; color: var(--bkx); transition: opacity .12s; display: grid; place-items: center; }
.rb-empty { font-size: 12.5px; color: var(--text-3); padding: 8px 0; }
.rb-card-sub { font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.rb-leader .rb-bars { gap: 4px; }
.rb-leader .rb-bars { gap: 9px; }
.rb-lead { display: grid; grid-template-columns: 26px 130px 1fr 60px 70px; align-items: center; gap: 14px; border: 0; background: transparent; padding: 7px 6px; margin: 0 -6px; border-radius: 8px; font-family: inherit; cursor: pointer; text-align: left; }
.rb-lead:hover { background: var(--bkx-soft); }
.rb-lead-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 800; background: var(--bkx); color: #fff; }
.rb-lead-av[data-sys] { background: var(--neutral-400); font-size: 8.5px; }
.rb-lead-name { font-size: 12.5px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-lead-b { font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.rb-lead-u { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.rb-lead-u i { font-style: normal; opacity: .7; }
.rb-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.rb-kpi { background: var(--surface); border: 1px solid var(--divider); border-radius: 14px; padding: 14px 16px; }
.rb-kpi .k { font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.rb-kpi .v { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.rb-kpi .v.warn { color: var(--orange-600); }
.rb-kpi .t { font-size: 11.5px; font-weight: 600; color: var(--text-3); margin-top: 3px; }
.rb-kpi .t.up { color: #1A7F45; } .rb-kpi .t.up span { color: var(--text-3); font-weight: 500; }
.rb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rb-card { background: var(--surface); border: 1px solid var(--divider); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.rb-card.rb-wide { grid-column: 1 / -1; }
.rb-card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.rb-link { border: 0; background: transparent; color: var(--bkx-ink); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.rb-link:hover { text-decoration: underline; }
.rb-bars { display: flex; flex-direction: column; gap: 13px; }
@media (max-width: 1100px) { .rb-kpis { grid-template-columns: repeat(2, 1fr); } .rb-grid { grid-template-columns: 1fr; } }

/* ===================================================================
   Reports — management console (table cells, create modal, drawer)
   =================================================================== */
.report-page .bkx-tablewrap { margin-top: 4px; }
/* report name cell */
.rpt-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.rpt-ic { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; color: var(--bkx-ink); background: var(--bkx-soft); }
.rpt-ic[data-type="restrictions"] { color: var(--red-600); background: color-mix(in srgb, var(--red-500) 12%, var(--surface)); }
.rpt-ic[data-type="regulatory"]   { color: #7A5AF0; background: color-mix(in srgb, #7A5AF0 12%, var(--surface)); }
.rpt-ic[data-type="operator"]     { color: var(--green-700); background: color-mix(in srgb, var(--green-500) 13%, var(--surface)); }
.rpt-ic[data-type="analyst"]      { color: var(--orange-700); background: color-mix(in srgb, var(--orange-500) 13%, var(--surface)); }
.rpt-name-tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rpt-name-tx .m { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpt-name-tx .s { font-size: 11px; color: var(--text-3); }
.rpt-freq { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.rpt-freq svg { color: var(--text-3); }
/* generating spinner inside status pill */
.rpt-spin { width: 9px; height: 9px; border-radius: 50%; border: 1.6px solid currentColor; border-right-color: transparent; display: inline-block; animation: rpt-spin .7s linear infinite; }
@keyframes rpt-spin { to { transform: rotate(360deg); } }
/* historical download button */
.rpt-dl-btn { width: 30px; height: 30px; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-2); border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.rpt-dl-btn:hover { border-color: var(--bkx); color: var(--bkx-ink); background: var(--bkx-soft); }
.rpt-hist-intro { display: flex; align-items: center; gap: 9px; background: var(--bkx-soft); border: 1px solid var(--divider); border-radius: 11px; padding: 10px 14px; margin-bottom: 14px; font-size: 12.5px; color: var(--text-2); }
.rpt-hist-intro b { color: var(--text); font-weight: 700; } .rpt-hist-intro svg { color: var(--bkx-ink); flex-shrink: 0; }
/* drawer */
.report-page .bk-drawer-b { padding: 18px 20px; display: flex; flex-direction: column; gap: 18px; }
.rpt-dh { display: flex; align-items: center; gap: 12px; }
.rpt-ic.lg { width: 40px; height: 40px; border-radius: 11px; }
.rpt-dh-name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--text); line-height: 1.25; text-wrap: pretty; }
.rpt-dh-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.rpt-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--divider); border: 1px solid var(--divider); border-radius: 12px; overflow: hidden; }
.rpt-kv > div { background: var(--surface); padding: 11px 13px; }
.rpt-kv .k { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.rpt-kv .v { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 3px; }
.rpt-runs-h { font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 10px; }
.rpt-runs-empty { font-size: 12.5px; color: var(--text-3); }
.rpt-run { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-top: 1px solid var(--divider); }
.rpt-run:first-of-type { border-top: 0; }
.rpt-run-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.rpt-run-tx .w { font-size: 12.5px; font-weight: 600; color: var(--text); }
.rpt-run-tx .p { font-size: 11px; color: var(--text-3); }
.rpt-run-dl { margin-left: auto; width: 28px; height: 28px; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-2); border-radius: 7px; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.rpt-run-dl:hover { border-color: var(--bkx); color: var(--bkx-ink); }
.rpt-d-f { display: flex; gap: 8px; padding: 13px 20px; border-top: 1px solid var(--divider); background: var(--surface); }
.rpt-d-f .bk-btn { flex: 1; justify-content: center; gap: 6px; }
.rpt-d-f .bk-btn.primary { flex: 1.4; }

/* ===================================================================
   Reports — Report Builder (palette · live canvas · settings · library)
   =================================================================== */
.rpb { flex: 1; min-height: 0; overflow: hidden; display: grid; grid-template-columns: 252px minmax(0, 1fr) 304px; gap: 0; margin: 4px -4px 0; }
.rpb.is-preview { grid-template-columns: 1fr; }
.rpb-side { min-height: 0; overflow-y: auto; padding: 4px 16px 24px; display: flex; flex-direction: column; gap: 10px; }
.rpb-left { border-right: 1px solid var(--divider); }
.rpb-right { border-left: 1px solid var(--divider); overflow: hidden; display: flex; flex-direction: column; padding: 0; gap: 0; }
.rpb-right-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.rpb-set-actions { padding: 12px 16px 16px; border-top: 1px solid var(--divider); background: var(--bg-app); display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.rpb-side-h { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin: 6px 2px 2px; }
.rpb-side-h:first-child { margin-top: 0; }
/* templates */
.rpb-templates { display: flex; flex-direction: column; gap: 6px; }
.rpb-tpl, .rpb-pal { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--divider); background: var(--surface); border-radius: 10px; padding: 9px 11px; font-family: inherit; cursor: pointer; transition: border-color .12s, background .12s; }
.rpb-tpl:hover, .rpb-pal:hover { border-color: var(--bkx); background: var(--bkx-soft); }
.rpb-tpl-ic, .rpb-pal-ic { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; color: var(--bkx-ink); background: var(--bkx-soft); }
.rpb-pal:hover .rpb-pal-ic { background: var(--surface); }
.rpb-tpl-tx, .rpb-pal-tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; flex: 1; }
.rpb-tpl-tx b, .rpb-pal-tx b { font-size: 12.5px; font-weight: 600; color: var(--text); }
.rpb-tpl-tx i, .rpb-pal-tx i { font-style: normal; font-size: 11px; color: var(--text-3); }
.rpb-palette { display: flex; flex-direction: column; gap: 5px; }
.rpb-pal-add { width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; display: grid; place-items: center; color: var(--text-3); }
.rpb-pal:hover .rpb-pal-add { color: var(--bkx); background: var(--surface); }
/* canvas */
.rpb-canvas-scroll { min-height: 0; overflow-y: auto; background: var(--bg-app); padding: 8px 24px 60px; }
.rpb.is-preview .rpb-canvas-scroll { background: var(--bg-app); }
.rpb-paper { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--divider); border-radius: 6px; box-shadow: var(--shadow-3); padding: 40px 44px 28px; }
.rpb-cover { border-bottom: 2px solid var(--text); padding-bottom: 16px; margin-bottom: 22px; }
.rpb-cover-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rpb-cover-brand { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--text-2); }
.rpb-conf { font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--divider-strong); border-radius: 6px; padding: 3px 8px; }
.rpb-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--bkx); color: #fff; display: grid; place-items: center; }
.rpb-title-input { width: 100%; border: 0; background: transparent; font-family: inherit; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--text); padding: 2px 4px; margin: 0 -4px; border-radius: 6px; }
.rpb-title-input:hover { background: var(--surface-2); }
.rpb-title-input:focus { outline: 2px solid var(--bkx); background: var(--surface); }
.rpb-cover-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.rpb-cover-meta .dot { opacity: .5; }
/* blocks */
.rpb-block { position: relative; padding: 14px 14px 6px; margin: 9px -14px; border-radius: 10px; border: 1.5px solid transparent; }
.rpb:not(.is-preview) .rpb-block { cursor: pointer; }
.rpb:not(.is-preview) .rpb-block:hover { background: var(--surface-2); }
.rpb-block[data-selected] { border-color: var(--bkx); background: var(--bkx-soft); }
.rpb-block-bar { position: absolute; top: -11px; right: 10px; display: none; align-items: center; gap: 8px; background: var(--text); color: #fff; border-radius: 7px; padding: 3px 4px 3px 6px; box-shadow: var(--shadow-2); z-index: 2; }
.rpb-block:hover .rpb-block-bar, .rpb-block[data-selected] .rpb-block-bar { display: flex; }
.rpb-grip { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; color: #fff; cursor: grab; opacity: .85; }
.rpb-grip:hover { background: rgba(255,255,255,.2); opacity: 1; }
.rpb-grip:active { cursor: grabbing; }
.rpb-block[data-dragging] { opacity: .4; }
/* drop indicator + insert-between affordance */
.rpb-dropline { height: 0; border-top: 2px solid var(--bkx); margin: 2px -14px; border-radius: 2px; position: relative; }
.rpb-dropline::before { content: ""; position: absolute; left: -4px; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--bkx); }
.rpb-insert { position: relative; height: 12px; margin: -3px -14px; display: flex; align-items: center; justify-content: center; }
.rpb-insert::before { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 1px; background: var(--bkx); opacity: 0; transition: opacity .12s; }
.rpb-insert:hover::before, .rpb-insert.open::before { opacity: .35; }
.rpb-insert-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-3); border-radius: 999px; font-family: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; opacity: 0; transition: opacity .12s, color .12s, border-color .12s; }
.rpb-insert:hover .rpb-insert-btn, .rpb-insert.open .rpb-insert-btn { opacity: 1; }
.rpb-insert-btn:hover { color: var(--bkx-ink); border-color: var(--bkx); background: var(--bkx-soft); }
.rpb-insert.end { height: auto; margin: 14px -14px 0; }
.rpb-insert.end::before { display: none; }
.rpb-insert.end .rpb-insert-btn { opacity: 1; height: 32px; padding: 0 16px; border-style: dashed; font-size: 12.5px; }
.rpb-insert-menu { position: absolute; top: calc(50% + 10px); left: 50%; transform: translateX(-50%); z-index: 20; width: 280px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 12px; box-shadow: var(--shadow-4); padding: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.rpb-insert.end .rpb-insert-menu { top: calc(100% + 6px); }
.rpb-insert-menu button { display: flex; align-items: center; gap: 8px; text-align: left; border: 0; background: transparent; border-radius: 8px; padding: 8px 9px; font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.rpb-insert-menu button:hover { background: var(--bkx-soft); color: var(--bkx-ink); }
.rpb-insert-menu button .ic { display: grid; place-items: center; color: var(--text-3); flex-shrink: 0; }
.rpb-insert-menu button:hover .ic { color: var(--bkx); }
.rpb-block-type { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; opacity: .85; }
.rpb-block-tools { display: flex; gap: 1px; }
.rpb-block-tools button { width: 24px; height: 22px; border: 0; background: transparent; color: #fff; border-radius: 5px; display: grid; place-items: center; cursor: pointer; }
.rpb-block-tools button:hover:not(:disabled) { background: rgba(255,255,255,.2); }
.rpb-block-tools button:disabled { opacity: .3; cursor: default; }
.rpb-block-title { margin: 0 0 12px; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.rpb-block-title[contenteditable]:focus { outline: 2px solid var(--bkx); border-radius: 4px; }
.rpb-block-body { min-width: 0; }
.rpb-foot { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--divider); font-size: 10.5px; color: var(--text-3); text-align: center; letter-spacing: .02em; }
.rpb-empty { text-align: center; padding: 50px 20px; color: var(--text-3); }
.rpb-empty-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--surface-3); color: var(--text-3); margin-bottom: 14px; }
.rpb-empty-t { font-size: 15px; font-weight: 700; color: var(--text-2); }
.rpb-empty-s { font-size: 12.5px; margin-top: 4px; }
/* block bodies */
.rpb-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rpb-kpi { border: 1px solid var(--divider); border-radius: 10px; padding: 11px 12px; }
.rpb-kpi .k { font-size: 10.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpb-kpi .v { font-size: 23px; font-weight: 800; letter-spacing: -.03em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.rpb-kpi .v.warn { color: var(--orange-600); }
.rpb-kpi .d { font-size: 10.5px; font-weight: 600; color: var(--text-3); margin-top: 2px; }
.rpb-kpi .d.up { color: #1A7F45; }
.rpb-bars { display: flex; flex-direction: column; gap: 11px; }
.rpb-bar { display: grid; grid-template-columns: 155px 1fr 96px; align-items: center; gap: 14px; }
.rpb-bar .l { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpb-bar .track { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.rpb-bar .fill { display: block; height: 100%; border-radius: 999px; background: color-mix(in srgb, var(--blue-600) 55%, var(--surface)); transition: width .5s cubic-bezier(.22,1,.36,1); min-width: 3px; }
.rpb-bar .fill[data-tone="slate"] { background: color-mix(in srgb, var(--neutral-400) 60%, var(--surface)); }
.rpb-bar .fill[data-tone="bad"] { background: var(--red-500); }
.rpb-bar .fill[data-tone="warn"] { background: var(--orange-500); }
.rpb-bar .fill[data-tone="ok"] { background: var(--green-500); }
.rpb-bar .n { text-align: right; font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.rpb-bar .n i { font-style: normal; font-weight: 500; font-size: 11px; color: var(--text-3); margin-left: 7px; }
.rpb-donut { display: flex; align-items: center; gap: 24px; }
.rpb-legend { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rpb-legend-row { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-2); }
.rpb-legend-row .dot { width: 10px; height: 10px; border-radius: 3px; }
.rpb-legend-row .n { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.rpb-leads { display: flex; flex-direction: column; gap: 9px; }
.rpb-lead { display: grid; grid-template-columns: 26px 130px 1fr 56px 52px; align-items: center; gap: 13px; }
.rpb-lead .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 800; background: var(--blue-600); color: #fff; }
.rpb-lead .av[data-sys] { background: var(--neutral-400); font-size: 8px; }
.rpb-lead .nm { font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpb-lead .track { height: 7px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.rpb-lead .fill { display: block; height: 100%; border-radius: 999px; background: color-mix(in srgb, var(--blue-600) 55%, var(--surface)); transition: width .5s cubic-bezier(.22,1,.36,1); }
.rpb-lead .fill[data-sys] { background: color-mix(in srgb, var(--neutral-400) 60%, var(--surface)); }
.rpb-lead .b { text-align: right; font-size: 12.5px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.rpb-lead .u { text-align: right; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rpb-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rpb-table th { text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); padding: 0 10px 8px 0; border-bottom: 1px solid var(--divider); }
.rpb-table td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--divider); color: var(--text-2); }
.rpb-table td.dim { color: var(--text-3); }
.rpb-table tr:last-child td { border-bottom: 0; }
.rpb-risk { display: inline-grid; place-items: center; min-width: 30px; height: 21px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 700; background: var(--surface-3); color: var(--text-2); }
.rpb-risk.bad { background: #FCEBEA; color: #BE3220; }
.rpb-risk.warn { background: #FBF0DD; color: #93580A; }
.rpb-risk.ok { background: #E5F6EA; color: #1A7F45; }
.rpb-text { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }
/* trend chart */
.rpb-trend { display: grid; grid-template-columns: 42px 1fr; gap: 8px; }
.rpb-trend-y { display: flex; flex-direction: column; justify-content: space-between; padding: 12px 0 30px; text-align: right; font-size: 10.5px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rpb-trend-plot { min-width: 0; }
.rpb-trend-x { display: flex; justify-content: space-between; margin-top: 5px; font-size: 10.5px; font-weight: 600; color: var(--text-3); }
.rpb-trend-x span { flex: 1; text-align: center; }
.rpb-trend-x span:first-child { text-align: left; } .rpb-trend-x span:last-child { text-align: right; }
/* right-panel settings */
.rpb-set { display: flex; flex-direction: column; gap: 7px; }
.rpb-set > label { font-size: 12px; font-weight: 700; color: var(--text-2); display: flex; align-items: center; justify-content: space-between; }
.rpb-set-val { font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rpb-range { width: 100%; accent-color: var(--bkx); }
.rpb-toggle { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-2); cursor: pointer; padding: 2px; }
.rpb-toggle input { width: 16px; height: 16px; accent-color: var(--bkx); }
.rpb-textarea { width: 100%; resize: vertical; border: 1px solid var(--divider-strong); border-radius: 9px; padding: 9px 11px; font-family: inherit; font-size: 12.5px; line-height: 1.5; color: var(--text); background: var(--surface); }
.rpb-textarea:focus { outline: none; border-color: var(--bkx); box-shadow: 0 0 0 3px var(--bkx-soft); }
.rpb-set-divider { height: 1px; background: var(--divider); margin: 4px 0; }
.rpb-set-foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.rpb-del { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--red-200); background: var(--surface); color: var(--red-600); border-radius: 9px; padding: 9px; font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.rpb-del:hover { background: #FCEBEA; }
.rpb-link-btn { border: 0; background: transparent; color: var(--bkx-ink); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; text-align: left; padding: 2px; }
.rpb-outline { display: flex; flex-direction: column; gap: 2px; }
.rpb-outline-empty { font-size: 12px; color: var(--text-3); padding: 4px 2px; }
.rpb-outline-row { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 7px; padding: 7px 8px; font-family: inherit; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.rpb-outline-row:hover { background: var(--surface-2); color: var(--text); }
.rpb-outline-row .ic { color: var(--text-3); display: grid; place-items: center; }
.rpb-outline-row .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpb-set-actions .bk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.rpb-set-actions .bk-btn svg { flex-shrink: 0; }
.rpb-summary-set { flex: 1; min-height: 0; }
/* header ghost buttons */
.rpb-ghost { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-2); border-radius: var(--r-pill); padding: 7px 14px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rpb-ghost:hover { border-color: var(--neutral-400); color: var(--text); }
/* library */
.rpb-library { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 0 40px; }
/* library in-page nav */
/* library in-page nav — matches bk-tabs pattern from Restrictions */
.rpb-lib-nav { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.rpb-lib-nav button { border: 1px solid transparent; background: transparent; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-3); padding: 6px 13px; border-radius: var(--r-pill); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .12s, color .12s, border-color .12s; white-space: nowrap; }
.rpb-lib-nav button span { font-size: 11px; font-weight: 700; background: var(--surface-3); border-radius: 999px; padding: 1px 7px; color: var(--text-3); min-width: 18px; text-align: center; }
.rpb-lib-nav button:hover { color: var(--text); background: var(--surface-2); }
.rpb-lib-nav button[data-active] { background: var(--surface); color: var(--text); border-color: var(--divider-strong); box-shadow: var(--shadow-1); }
.rpb-lib-nav button[data-active] span { background: var(--bkx-soft); color: var(--bkx-ink); }
.rpb-back { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-2); border-radius: var(--r-pill); padding: 7px 14px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rpb-back:hover { border-color: var(--neutral-400); color: var(--text); }
.rpb-lib-stats { margin: 0 0 16px; }
.rpb-lib-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.rpb-stat { border: 1px solid var(--divider); border-radius: 12px; background: var(--surface); padding: 13px 15px; }
.rpb-stat .k { font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.rpb-stat .v { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--text); margin-top: 2px; font-variant-numeric: tabular-nums; }
.rpb-stat .d { font-size: 11px; font-weight: 600; color: var(--text-3); margin-top: 1px; }
.bk-status { white-space: nowrap; }
.rpb-lib-count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rpb-lib-empty { text-align: center; padding: 40px 20px; color: var(--text-3); }
.rpb-lib-empty .rpb-empty-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--surface-3); color: var(--text-3); margin-bottom: 12px; }
.rpb-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.rpb-lib-card { border: 1px solid var(--divider); border-radius: 14px; background: var(--surface); padding: 15px 16px; display: flex; flex-direction: column; gap: 9px; transition: border-color .12s, box-shadow .12s; }
.rpb-lib-card:hover { border-color: var(--neutral-400); box-shadow: var(--shadow-2); }
.rpb-lib-top { display: flex; align-items: center; justify-content: space-between; }
.rpb-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--bkx-ink); background: var(--bkx-soft); }
.rpb-ic[data-type="restrictions"] { color: var(--red-600); background: color-mix(in srgb, var(--red-500) 12%, var(--surface)); }
.rpb-ic[data-type="regulatory"] { color: #7A5AF0; background: color-mix(in srgb, #7A5AF0 12%, var(--surface)); }
.rpb-ic[data-type="operator"] { color: var(--green-700); background: color-mix(in srgb, var(--green-500) 13%, var(--surface)); }
.rpb-ic[data-type="analyst"] { color: var(--orange-700); background: color-mix(in srgb, var(--orange-500) 13%, var(--surface)); }
.rpb-lib-name { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.rpb-lib-sub { font-size: 11.5px; color: var(--text-3); margin-top: -4px; }
.rpb-lib-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rpb-chip { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 11px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--divider); border-radius: 999px; padding: 3px 9px; }
.rpb-chip svg { color: var(--text-3); }
.rpb-chip.next { color: var(--bkx-ink); background: var(--bkx-soft); border-color: color-mix(in srgb, var(--bkx) 24%, transparent); }
.rpb-chip.next svg { color: var(--bkx); }
.rpb-lib-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--divider); margin-top: auto; }
.rpb-lib-when { font-size: 11.5px; color: var(--text-3); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rpb-lib-when .by { font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpb-lib-when .when { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpb-lib-acts { display: flex; gap: 2px; }
.rpb-lib-acts button { width: 30px; height: 30px; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-2); border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.rpb-lib-acts button:hover { border-color: var(--bkx); color: var(--bkx-ink); background: var(--bkx-soft); }
.rpb-hist-h { margin-top: 26px; display: flex; align-items: center; gap: 9px; }
.rpb-hist-n { font-size: 11px; font-weight: 700; color: var(--text-3); background: var(--surface-3); border-radius: 999px; padding: 1px 8px; }
.rpb-hist { border: 1px solid var(--divider); border-radius: 12px; overflow: hidden; }
.rpb-hist-head { display: grid; grid-template-columns: 30px minmax(0,1.5fr) 1fr 1fr .8fr auto 36px; align-items: center; gap: 14px; padding: 9px 14px; background: var(--surface-2); border-bottom: 1px solid var(--divider); }
.rpb-hist-head span { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.rpb-hist-row { display: grid; grid-template-columns: 30px minmax(0,1.5fr) 1fr 1fr .8fr auto 36px; align-items: center; gap: 14px; padding: 11px 14px; border-top: 1px solid var(--divider); }
.rpb-hist-row:first-of-type { border-top: 0; }
.rpb-hist-by { font-size: 12px; }
.rpb-hist-row:hover { background: var(--surface-2); }
.rpb-hist-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--bkx-soft); color: var(--bkx-ink); display: grid; place-items: center; }
.rpb-hist-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpb-hist-period, .rpb-hist-on, .rpb-hist-size { font-size: 12px; }
.dim { color: var(--text-3); }
.rpb-hist-dl { width: 30px; height: 30px; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-2); border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.rpb-hist-dl:hover { border-color: var(--bkx); color: var(--bkx-ink); }
@media (max-width: 1180px) {
  .rpb { grid-template-columns: 220px minmax(0,1fr); }
  .rpb-right { display: none; }
}
@media (max-width: 880px) {
  .rpb { grid-template-columns: 1fr; }
  .rpb-left { display: none; }
  .rpb-kpis { grid-template-columns: repeat(2, 1fr); }
}
/* ===================================================================
   Focus Triage Cockpit — one-case-at-a-time review (small-screen first)
   =================================================================== */
.bkc-focus-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--bkx); color: #fff; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.bkc-focus-btn:hover { background: var(--bkx-ink); }
.cockpit { position: absolute; inset: 0; z-index: 60; background: var(--bg-app); display: flex; flex-direction: column; }
.cockpit-bar { display: flex; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--divider); background: var(--surface); flex-shrink: 0; }
.cockpit-q { font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.cockpit-q b { color: var(--text); font-weight: 800; }
.cockpit-progress { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; max-width: 420px; }
.cockpit-progress span { display: block; height: 100%; background: var(--bkx); border-radius: 3px; transition: width .2s; }
.cockpit-exit { margin-left: auto; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-2); border-radius: 8px; padding: 7px 13px; font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cockpit-exit:hover { border-color: var(--neutral-400); }
.cockpit-stage { flex: 1; min-height: 0; overflow: auto; display: flex; justify-content: center; padding: 28px 22px; }
.cockpit-card { width: 100%; max-width: 680px; background: var(--surface); border: 1px solid var(--divider); border-radius: 20px; box-shadow: var(--shadow-3); padding: 26px 28px; height: max-content; }
.cc-head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--divider); }
.cc-head .bkc-risk.lg { width: 54px; height: 54px; border-radius: 15px; font-size: 21px; }
.cc-idblock { flex: 1; min-width: 0; }
.cc-id { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.cc-handle { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.cc-status { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cc-reason { font-size: 17px; line-height: 1.5; color: var(--text); margin: 18px 0 14px; font-weight: 500; }
.cockpit-card .case-signals { margin-bottom: 20px; }
.cockpit-card .case-signals .sig { height: 26px; padding: 0 11px; font-size: 12px; border-radius: 7px; }
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.cc-field { display: flex; flex-direction: column; gap: 3px; }
.cc-field .k { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.cc-field .v { font-size: 14px; color: var(--text); }
.cc-ops { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.cockpit-actions { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 22px; border-top: 1px solid var(--divider); background: var(--surface); flex-shrink: 0; }
.cc-prev { width: 44px; height: 48px; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 12px; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.cc-prev:disabled { opacity: .4; cursor: default; }
.cc-btn { display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 26px; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 12px; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--text); cursor: pointer; transition: transform .1s, box-shadow .12s; }
.cc-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.cc-btn kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: rgba(0,0,0,.07); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.cc-btn.approve { background: var(--bkx); border-color: var(--bkx); color: #fff; }
.cc-btn.approve:hover { background: var(--bkx-ink); }
.cc-btn.approve kbd { background: rgba(255,255,255,.25); color: #fff; }
.cc-btn.reject { color: var(--red-600); border-color: var(--red-200); }
.cc-btn.reject:hover { background: #FCEBEA; }
.cc-btn.skip { color: var(--text-2); }
.cockpit-done { margin: auto; text-align: center; max-width: 320px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cockpit-done-ic { width: 72px; height: 72px; border-radius: 20px; background: #E5F6EA; color: #1A7F45; display: grid; place-items: center; margin-bottom: 8px; }
.tesla[data-theme="dark"] .cockpit-done-ic { background: rgba(29,165,52,.18); color: #7BD495; }
.cockpit-done .be-t { font-size: 19px; font-weight: 800; }
.cockpit-done .be-s { font-size: 14px; color: var(--text-3); margin-bottom: 10px; }
@media (max-width: 560px) {
  .cc-grid { grid-template-columns: 1fr; }
  .cc-btn { padding: 0 16px; font-size: 14px; }
  .cockpit-card { padding: 20px 18px; }
}
.bkc-d-when { font-size: 12px; color: var(--text-3); margin-left: auto; }
.bkc-d-b { flex: 1; overflow: auto; padding: 6px 20px 18px; }
.bkc-d-f { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--divider); background: var(--surface); }

/* ===================================================================
   Canonical segmented tabs — ONE component across the whole product
   covers: dashboards (.seg-tabs), map toggle (.view-seg), blocks (.seg),
   user panel (.subj-tabs), bottom sheet (.sheet-tabs), insights (.ai-tabs)
   =================================================================== */
.seg-tabs, .view-seg, .seg, .bk-tabs, .sheet-tabs {
  display: inline-flex; align-items: stretch; gap: 3px;
  background: var(--surface-2); border: 1px solid var(--divider-strong);
  border-radius: 10px; padding: 3px; box-sizing: border-box;
}
.seg-tabs button, .view-seg button, .seg button,
.bk-tabs button, .sheet-tabs button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; background: transparent; border-radius: 7px; height: 28px; padding: 0 13px;
  font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1;
  color: var(--text-2); cursor: pointer; white-space: nowrap; box-sizing: border-box;
  transition: background .15s, color .15s;
}
.seg-tabs button:hover, .view-seg button:hover, .seg button:hover,
.bk-tabs button:hover, .sheet-tabs button:hover { color: var(--text); background: transparent; }
.seg-tabs button[data-active="true"], .view-seg button[data-on="true"],
.seg button[data-on="true"],
.bk-tabs button[data-on="true"], .sheet-tabs button[data-on="true"] {
  background: var(--blue-600); color: #fff; box-shadow: var(--shadow-1);
}
/* uniform count badge inside any tab */
.seg .qn, .seg-tabs .n, .view-seg .n, .sheet-tabs .n, .bk-tabs .n {
  font-size: 11px; font-weight: 700; color: var(--text-3);
  background: var(--surface-3); border-radius: 999px; padding: 0 7px; min-width: 20px; height: 18px; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; line-height: 1;
}
.seg button[data-on="true"] .qn, .sheet-tabs button[data-on="true"] .n,
.bk-tabs button[data-on="true"] .n { background: rgba(255,255,255,.24); color: #fff; }
.seg button .qn[data-alert="true"] { background: var(--orange-100); color: var(--orange-700); }
.seg button[data-on="true"] .qn[data-alert="true"] { background: rgba(255,255,255,.24); color: #fff; }
.tesla[data-theme="dark"] .seg-tabs, .tesla[data-theme="dark"] .seg,
.tesla[data-theme="dark"] .view-seg { background: var(--surface-2); border-color: var(--divider-strong); }
/* dashboards header → tabs top-left, actions top-right (consistent with blocks) */
.dash-header { align-items: flex-start; }
.dash-head-l { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
/* unified PageHeader component (atomic) — identical title/sub/actions on every page */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.page-header-l { min-width: 0; }
.page-header-r { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.page-header-tabs { margin-left: auto; display: flex; align-items: center; flex-shrink: 0; }
.page-header-tabs + .page-header-r { margin-left: 12px; }
.page-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.page-sub { font-size: 13px; font-weight: 400; color: var(--text-3); margin-top: 4px; line-height: 1.4; }
.dash-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.dash-sub { font-size: 13px; color: var(--text-3); }
/* block queue scope filters — Tesla-style mono pill chips (distinct from the Reports|Records tabs) */
.bkc-queues { display: inline-flex; flex-wrap: wrap; gap: 7px; }
.bkc-queues button { border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 999px; padding: 7px 15px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s; }
.bkc-queues button:hover { border-color: var(--neutral-400); color: var(--text); }
.bkc-queues button[data-on="true"] { background: var(--text); color: var(--bg-app); border-color: var(--text); box-shadow: var(--shadow-2); }
/* MUI-aligned table elements (status / duration / chips) */
.bk-status { height: 24px; padding: 0 10px 0 8px; gap: 6px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.bk-status .d { width: 7px; height: 7px; }
.bk-dur { height: 24px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--divider-strong); border-radius: 8px; font-size: 12px; font-weight: 500; color: var(--text-2); background: var(--surface); }
.bk-exp-tag { height: 22px; display: inline-flex; align-items: center; margin-left: 6px; padding: 0 8px; border-radius: 7px; font-size: 11px; font-weight: 600; }
.bk-andmore { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 11px; font-weight: 700; }
.bk-stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.bk-rowstat { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.bk-opsnote { font-size: 10.5px; font-weight: 600; color: var(--text-3); padding-left: 2px; }
.bk-check { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--neutral-400); display: grid; place-items: center; color: #fff; cursor: pointer; }
.bk-check.on { background: var(--blue-600); border-color: var(--blue-600); }
.bk-player { display: flex; align-items: center; gap: 9px; }
.bp-av { width: 30px; height: 30px; border-radius: 8px; background: var(--red-100); color: var(--red-600); display: grid; place-items: center; flex-shrink: 0; }
.bp-id { font-weight: 700; font-size: 12.5px; }
.bp-h { font-size: 11px; color: var(--text-3); }
.bk-reason { white-space: normal; width: 300px; max-width: 300px; color: var(--text-2); line-height: 1.4; }
.bk-more { border: 0; background: transparent; color: var(--blue-600); font-family: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; padding: 0; white-space: nowrap; }
.bk-more:hover { text-decoration: underline; }
.bk-dur { font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--divider-strong); border-radius: 7px; padding: 3px 8px; }
.bk-auto { font-size: 9.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); border-radius: 5px; padding: 1px 5px; margin-left: 6px; }
.bk-hist { display: block; margin-top: 2px; border: 0; background: transparent; color: var(--blue-600); font-family: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; padding: 0; }
.bk-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.bk-status .d { width: 8px; height: 8px; border-radius: 50%; }
.bk-status.bad { color: var(--red-600); } .bk-status.bad .d { background: var(--red-500); }
.bk-status.warn { color: var(--orange-700); } .bk-status.warn .d { background: var(--orange-600); }
.bk-status.ok { color: var(--green-700); } .bk-status.ok .d { background: var(--green-500); }
.bk-status.mute { color: var(--text-3); } .bk-status.mute .d { background: var(--neutral-400); }
/* blocks table — soft tinted status pills with dot, consistent with the user-page table */
.bkx .bk-status, .bkc .bk-status { border-radius: 999px; padding: 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 6px; }
.bkx .bk-status .d, .bkc .bk-status .d { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.bkx .bk-status.bad, .bkc .bk-status.bad { background: #FCEBEA; color: #BE3220; } .bkx .bk-status.bad .d, .bkc .bk-status.bad .d { background: var(--red-500); }
.bkx .bk-status.warn, .bkc .bk-status.warn { background: #FBF0DD; color: #93580A; } .bkx .bk-status.warn .d, .bkc .bk-status.warn .d { background: var(--orange-500); }
.bkx .bk-status.ok, .bkc .bk-status.ok { background: #E5F6EA; color: #1A7F45; } .bkx .bk-status.ok .d, .bkc .bk-status.ok .d { background: var(--green-500); }
.bkx .bk-status.mute, .bkc .bk-status.mute { background: var(--surface-3); color: var(--text-3); } .bkx .bk-status.mute .d, .bkc .bk-status.mute .d { background: var(--neutral-400); }
.bkx .bk-status.wl, .bkc .bk-status.wl { background: var(--blue-50); color: var(--blue-700); } .bkx .bk-status.wl .d, .bkc .bk-status.wl .d { background: var(--blue-500); }
/* New-list split menu */
.bkx-newwrap { position: relative; }
.bkx-newscrim { position: fixed; inset: 0; z-index: 40; }
.bkx-newmenu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 50; width: 264px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 12px; box-shadow: var(--shadow-8); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.bkx-newmenu button { display: flex; align-items: flex-start; gap: 11px; width: 100%; border: 0; background: transparent; border-radius: 9px; padding: 9px 10px; cursor: pointer; font-family: inherit; text-align: left; }
.bkx-newmenu button:hover { background: var(--bg-hover); }
.bkx-newmenu .ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(15,23,42,.06); }
.bkx-newmenu .ic.block { background: color-mix(in srgb, var(--red-500) 13%, transparent); color: var(--red-600); }
.bkx-newmenu .ic.unblock { background: color-mix(in srgb, var(--green-500) 14%, transparent); color: var(--green-600); }
.bkx-newmenu .ic.wl { background: color-mix(in srgb, var(--blue-600) 13%, transparent); color: var(--blue-700); }
.bkx-newmenu button b, .bkx-newmenu button b *, .bkx-newmenu button:hover b, .bkx-newmenu button:hover b * { display: block; font-size: 13px; color: #000 !important; font-weight: 700; margin-bottom: 1px; line-height: 1.25; }
.bkx-newmenu div > span { font-size: 11.5px; color: var(--text-3); line-height: 1.3; }
/* Create-list modal */
.bkc-modal { width: 620px; max-width: 94vw; max-height: 90vh; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-12); display: flex; flex-direction: column; overflow: hidden; }
.bkc-h { display: flex; align-items: center; gap: 13px; padding: 16px 20px; border-bottom: 1px solid var(--divider); }
.bkc-h-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(15,23,42,.06); }
.bkc-h-ic.block { background: color-mix(in srgb, var(--red-500) 13%, transparent); color: var(--red-600); }
.bkc-h-ic.unblock { background: color-mix(in srgb, var(--green-500) 14%, transparent); color: var(--green-600); }
.bkc-h-ic.whitelist { background: color-mix(in srgb, var(--blue-600) 13%, transparent); color: var(--blue-700); }
.bkc-h-tx { flex: 1; min-width: 0; }
.bkc-h-t { font-size: 16px; font-weight: 700; color: #0F172A; }
.bkc-h-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.bkc-b { padding: 20px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 26px; }
.bkc-callout { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 12px; line-height: 1.45; }
.bkc-callout svg { flex-shrink: 0; margin-top: 1px; }
.bkc-callout b { font-weight: 700; }
.bkc-callout.warn { background: color-mix(in srgb, #F59E0B 11%, var(--surface)); color: #7A4A05; border: 1px solid color-mix(in srgb, #F59E0B 28%, transparent); }
.bkc-callout.info { background: var(--blue-50); color: var(--blue-800, #1B3A8A); border: 1px solid color-mix(in srgb, var(--blue-600) 18%, transparent); }
.bkc-step { display: flex; flex-direction: column; gap: 16px; }
.bkc-step + .bkc-step { padding-top: 24px; border-top: 1px solid var(--divider); }
.bkc-step-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); margin-bottom: 2px; }
.bkc-step-h .n { width: 19px; height: 19px; box-sizing: border-box; border-radius: 50%; background: var(--neutral-800, #2B323B); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; letter-spacing: 0; line-height: 1; padding-top: 1px; font-variant-numeric: tabular-nums; }
.bkc-field { display: flex; flex-direction: column; gap: 8px; }
.bkc-modal .bkc-field > label { font-size: 12px; font-weight: 700; color: #0F172A !important; display: flex; align-items: center; gap: 8px; }
.bkc-req { font-weight: 600; color: var(--red-600); font-size: 10.5px; letter-spacing: .02em; text-transform: uppercase; }
.bkc-hint { font-weight: 500; color: var(--text-3); }
/* segmented control */
.bkc-seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--divider-strong); border-radius: 10px; padding: 3px; gap: 2px; }
.bkc-seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; background: transparent; border-radius: 7px; padding: 7px 12px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: background .12s, color .12s, box-shadow .12s; }
.bkc-seg button:hover { color: #0F172A; }
.bkc-seg button[data-on="true"] { background: var(--surface); color: #0F172A; box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 0 0 1px rgba(16,24,40,.04); }
.bkc-note { min-height: 56px; resize: vertical; border: 1px solid var(--divider-strong); border-radius: 10px; padding: 9px 12px; font-family: inherit; font-size: 13px; color: var(--text); background: var(--surface); outline: none; line-height: 1.5; }
.bkc-note:focus, .bkc-area:focus { border-color: var(--blue-600); }
.bkc-check { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text); cursor: pointer; }
.bkc-check input { width: 16px; height: 16px; accent-color: var(--blue-600); cursor: pointer; }
.bkc-area { min-height: 92px; resize: vertical; border: 1px solid var(--divider-strong); border-radius: 10px; padding: 10px 12px; font-family: var(--font-mono); font-size: 13px; color: var(--text); background: var(--surface); outline: none; line-height: 1.6; }
.bkc-entries { display: flex; flex-direction: column; max-height: 168px; overflow-y: auto; border: 1px solid var(--divider); border-radius: 10px; background: var(--surface-1); }
.bkc-ent { display: flex; align-items: center; gap: 9px; padding: 7px 11px; border-top: 1px solid var(--divider); font-size: 12.5px; }
.bkc-ent:first-child { border-top: 0; }
.bkc-ent .ic { display: grid; place-items: center; flex-shrink: 0; }
.bkc-ent[data-ok="true"] .ic { color: var(--green-600); }
.bkc-ent[data-ok="false"] .ic { color: var(--red-500); }
.bkc-ent[data-ok="false"] .v { color: var(--text-3); text-decoration: line-through; }
.bkc-ent .v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bkc-ent .msg { font-size: 11px; font-weight: 700; color: var(--red-600); flex-shrink: 0; }
.bkc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bkc-row2 .bkc-field:only-child { grid-column: 1 / -1; }
.bkc-foot { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--divider); }
.bkc-summary { font-size: 12.5px; color: var(--text-3); margin-right: auto; }
.bkc-summary b { color: var(--text); font-weight: 700; }
.bkc-foot-btns { display: flex; gap: 8px; }
.bkc-foot-btns .bk-btn:disabled { opacity: .5; cursor: not-allowed; }
/* CTA matches the profile's solid Block button (MuiButton contained error) */
.bkc-foot-btns .bk-btn.danger { background: var(--red-500); border-color: transparent; color: #fff; box-shadow: 0 1px 2px rgba(122,0,0,.20), 0 8px 18px -6px rgba(204,0,0,.35); }
.bkc-foot-btns .bk-btn.danger:hover:not(:disabled) { background: var(--red-600); border-color: transparent; }
.bkc-foot-btns .bk-btn.primary { background: var(--blue-600); border-color: transparent; color: #fff; }
.bkc-foot-btns .bk-btn.primary:hover:not(:disabled) { background: var(--blue-700); }
.bkc-modal .bkx-drop, .bkc-modal .bkx-f { width: 100%; }
.bkc-modal .bkx-dropbtn { width: 100%; justify-content: flex-start; }
.bkc-modal .bkx-dropbtn > svg:last-child { margin-left: auto; }
/* bulk review */
.bkc-counts { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.bkc-review-h { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.bkc-tally { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; }
.bkc-tally .ok { display: inline-flex; align-items: center; gap: 4px; color: var(--green-700); }
.bkc-tally .warn { color: #93580A; }
.bkc-tally .bad { color: var(--red-600); }
.bkc-clean { margin-left: auto; border: 0; background: transparent; color: var(--blue-600); font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 2px 4px; }
.bkc-clean:hover { text-decoration: underline; }
.bkc-entries[data-scroll] { max-height: 224px; }
.bkc-ent .bkc-x { flex-shrink: 0; width: 22px; height: 22px; border: 0; background: transparent; color: var(--text-3); border-radius: 6px; display: grid; place-items: center; cursor: pointer; }
.bkc-ent .bkc-x:hover { background: var(--surface-3); color: var(--red-600); }
.bkc-ent .msg { margin-left: 0; }
/* inline-editable entry value + row actions */
.bkc-ent .bkc-ent-v { flex: 1; min-width: 0; text-align: left; border: 0; background: transparent; font-family: var(--font-mono); font-size: 12.5px; color: inherit; cursor: text; padding: 3px 6px; margin: -3px 0 -3px -2px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bkc-ent .bkc-ent-v:hover { background: var(--surface-3); }
.bkc-ent[data-ok="false"] .bkc-ent-v { color: var(--text-3); text-decoration: line-through; }
.bkc-ent-acts { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-shrink: 0; }
.bkc-edit { width: 22px; height: 22px; border: 0; background: transparent; color: var(--text-3); border-radius: 6px; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .12s; }
.bkc-ent:hover .bkc-edit, .bkc-ent[data-ok="false"] .bkc-edit { opacity: 1; }
.bkc-edit:hover { background: var(--surface-3); color: var(--blue-600); }
.bkc-ent-edit { flex: 1; min-width: 0; height: 28px; border: 1px solid var(--blue-600); border-radius: 7px; padding: 0 9px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text); background: var(--surface); box-shadow: 0 0 0 3px var(--blue-50); outline: none; }
.bkc-save, .bkc-cancel { width: 26px; height: 26px; border: 0; background: transparent; border-radius: 6px; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.bkc-save { color: var(--green-600); }
.bkc-save:hover { background: color-mix(in oklab, var(--green-600) 14%, white); }
.bkc-cancel { color: var(--text-3); }
.bkc-cancel:hover { background: var(--surface-3); color: var(--red-600); }
.bk-row-act { text-align: right; }
.bk-exp { width: 20px; height: 20px; border: 0; background: var(--surface-2); border-radius: 6px; display: grid; place-items: center; cursor: pointer; color: var(--text-2); margin-right: 4px; flex-shrink: 0; transition: transform .15s, background .15s; }
.bk-exp[data-open="true"] { transform: rotate(90deg); background: var(--blue-50); color: var(--blue-700); }
.bk-subrow { background: var(--surface-1); }
.bk-subrow td { border-bottom: 1px solid var(--divider); white-space: nowrap; }
.bk-subop { padding-left: 46px !important; color: var(--text-2); font-family: var(--font-mono); font-size: 12px; }
.bk-subdot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--neutral-400); margin-right: 9px; vertical-align: middle; }
.bk-unblock { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-2); border-radius: 8px; padding: 5px 10px; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.bk-unblock:hover { border-color: var(--blue-400); color: var(--blue-600); }
.bk-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px 0; font-size: 12.5px; color: var(--text-2); flex-shrink: 0; }
.bk-foot b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-pager { display: flex; align-items: center; gap: 12px; }
.bk-pager button { border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 9px; padding: 6px 12px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.bk-pager button:disabled { opacity: .4; cursor: default; }
.bk-pager .pg { font-variant-numeric: tabular-nums; }
.bk-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; justify-content: center; padding: 40px; color: var(--text-3); font-size: 13px; }
/* block management */
.blk-h h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.blk-h .sub { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.blk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.blk-stat { text-align: left; border: 1px solid var(--divider-strong); background: var(--surface); border-radius: 13px; padding: 12px 14px; cursor: pointer; font-family: inherit; transition: border-color .12s; }
.blk-stat:hover { border-color: var(--neutral-400); }
.blk-stat[data-on="true"] { border-color: var(--blue-600); box-shadow: 0 0 0 1px var(--blue-600); }
.blk-stat .k { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.blk-stat .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.blk-stat .v.warn { color: var(--orange-600); }
.blk-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.blk-search { display: flex; align-items: center; gap: 8px; height: 38px; flex: 1; max-width: 380px; padding: 0 12px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 10px; color: var(--text-3); }
.blk-search input { flex: 1; border: 0; background: transparent; outline: none; font-family: inherit; font-size: 13.5px; color: var(--text); }
.blk-count { margin-left: auto; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.blk-tablewrap { border: 1px solid var(--divider-strong); border-radius: 14px; overflow: hidden; background: var(--surface); }
.blk-table td, .blk-table th { white-space: nowrap; }
.blk-table .blk-reason { white-space: normal; max-width: 280px; color: var(--text-2); }
.blk-player { display: flex; align-items: center; gap: 9px; }
.bp-av { width: 30px; height: 30px; border-radius: 8px; background: var(--red-100); color: var(--red-600); display: grid; place-items: center; flex-shrink: 0; }
.bp-id { font-weight: 700; }
.bp-h { font-size: 11px; color: var(--text-3); }
.blk-auto { font-size: 9.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); border-radius: 5px; padding: 1px 5px; margin-left: 6px; }
.blk-unblock { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-2); border-radius: 8px; padding: 5px 10px; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.blk-unblock:hover { border-color: var(--blue-400); color: var(--blue-600); }
.blk-empty { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 24px; color: var(--text-3); font-size: 13px; }
.dash-page .dash-header { padding-left: 0 !important; padding-right: 0 !important; }
.dash-page .dash-header h1 { font-size: 22px !important; font-weight: 700 !important; }
.dash-page .tab-content { padding-left: 0 !important; padding-right: 0 !important; }
.cg-legend { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; gap: 14px; flex-wrap: wrap; background: rgba(255,255,255,.92); border: 1px solid var(--divider-strong); border-radius: 11px; padding: 8px 12px; font-size: 11.5px; color: var(--text-2); box-shadow: var(--shadow-2); }
.cg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cg-leg-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; padding: 2px 5px; border-radius: 6px; }
.cg-leg-btn:hover { background: var(--bg-hover); }
.cg-leg-btn[data-off] { opacity: .42; text-decoration: line-through; }
.cg-dot.leaf { background: #fff; border: 2px solid var(--orange-500); }
.cg-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; box-sizing: border-box; }
.cg-dot.user { background: var(--blue-600); }
.cg-dot.dev { background: #fff; border: 3px solid #7C5CE0; }
.cg-dot.link { background: #fff; border: 2px solid var(--neutral-500); }
.cg-dot.flag { background: var(--red-500); }
.tesla[data-theme="dark"] .cg-legend { background: rgba(28,34,43,.95); border-color: var(--divider-strong); }
.tesla[data-theme="dark"] .cg-svg circle[fill="#fff"], .tesla[data-theme="dark"] .cg-svg rect[fill="#fff"] { fill: var(--surface-2); }
.tgraph .conn-svg { width: 100%; height: 100%; display: block; }
.tgraph .cg-host, .tgraph .graph-host { background: var(--surface-2); background-image: radial-gradient(circle, var(--neutral-300) 1px, transparent 1px); background-size: 24px 24px; }
.tesla[data-theme="dark"] .tgraph .cg-host, .tesla[data-theme="dark"] .tgraph .graph-host, .tesla[data-theme="dark"] .graph-host { background: var(--surface-1); background-image: radial-gradient(circle, var(--divider-strong) 1.1px, transparent 1.1px); background-size: 24px 24px; }

/* maximized sheet — content fills the whole screen */
.tsheet.max { top: 74px; left: calc(var(--edge) + var(--dockw) + var(--edge)); right: var(--edge); bottom: var(--edge); max-height: none; }
.tesla[data-sheetmax="true"] .tpanel,
.tesla[data-sheetmax="true"] .panel-restore,
.tesla[data-sheetmax="true"] .map-toolstack { display: none; }
.tsheet.max .tsheet-scroll { flex-direction: column; overflow-x: hidden; overflow-y: auto; gap: 16px; }
.tsheet.max .tl-cards { flex-wrap: wrap; }
.tsheet.max .tl-day + .tl-day { border-left: 0; padding-left: 0; margin-left: 0; }
.tsheet.max .sheet-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); align-content: start; }

/* =====================================================================
   DARK THEME — applies across the whole product
   ===================================================================== */
.tesla[data-theme="dark"] {
  --bg-app: #14181F; --surface: #1B212B; --surface-1: #212834; --surface-2: #29313E; --surface-3: #333D4C;
  --text: #EAEEF4; --text-2: #B4BECC; --text-3: #8593A4;
  --divider: #2C343F; --divider-strong: #3A4451; --bg-hover: #262E39;
  --blue-50: #18263F; --blue-100: #1B2C4A; --blue-200: #25375B;
  /* slightly-lighter, less-saturated semantics read better on dark */
  --red-500: #E5484D; --red-600: #D93D42; --red-100: #2A1619; --red-300: #5A2B2E; --red-700: #F0888A;
  --green-500: #35C46B; --green-600: #49D27C; --green-100: #14271C; --green-300: #2D5B3B; --green-700: #74E2A4;
  --neutral-100: #262E39; --neutral-200: #303a47; --neutral-300: #3A4451;
  --orange-600: #F5823E; --orange-100: #2C1C12; --orange-300: #5B3B23; --orange-700: #F2A468;
  --error: var(--red-500); --success: var(--green-500); --warning: var(--orange-600);
  /* override the design-system (styles.css) tokens so dashboard/profile cards go dark too */
  --bg: #14181F; --bg-app: #14181F; --bg-surface: #1B212B; --bg-hover: #262E39; --bg-sunken: #11151B;
  --surface-soft: #212834;
  --text-primary: #EAEEF4; --text-secondary: #B4BECC; --text-tertiary: #8593A4;
  --border-subtle: #2C343F; --border-default: #3A4451;
  --grey-0: #1B212B; --grey-25: #212834; --grey-50: #212834; --grey-100: #29313E; --grey-150: #333D4C; --grey-300: #3A4451; --grey-400: #4A5563;
  background: #14181F;
}
.tesla[data-theme="dark"] .MuiCard,
.tesla[data-theme="dark"] .kpi-card,
.tesla[data-theme="dark"] .now-strip,
.tesla[data-theme="dark"] .stat-card,
.tesla[data-theme="dark"] .bar-chart,
.tesla[data-theme="dark"] .panel,
.tesla[data-theme="dark"] .dash-kpi { background: var(--surface); border-color: var(--divider); }
.tesla[data-theme="dark"] .leaflet-container { background: #5d6e8c !important; }
.tesla[data-theme="dark"] .leaflet-tile-pane { filter: brightness(1.35); opacity: 0.45; }
.tesla[data-theme="dark"] .leaflet-tile { mix-blend-mode: luminosity; }
.tesla[data-theme="dark"] .pill, .tesla[data-theme="dark"] .lm-range, .tesla[data-theme="dark"] .lm-filtbtn, .tesla[data-theme="dark"] .pill.ctx { color: var(--text); }
.tesla[data-theme="dark"] .MuiButton.outlined { background: var(--surface-2); border-color: var(--divider-strong); color: var(--text); }
.tesla[data-theme="dark"] .MuiButton.outlined:hover { background: var(--bg-hover); }
.tesla[data-theme="dark"] .conn-row > svg, .tesla[data-theme="dark"] .uchev, .tesla[data-theme="dark"] .acct-device > svg:last-child { color: var(--text-2); }
.tesla[data-theme="dark"] .txn-row > svg:last-child, .tesla[data-theme="dark"] .actx-row > svg:last-child, .tesla[data-theme="dark"] .recent-tx > svg:last-child { color: #E6ECF5; }
/* dark net: bold name/title elements that only inherit color → force light */
.tesla[data-theme="dark"] .acct-device .m,
.tesla[data-theme="dark"] .ct-dev-row .m,
.tesla[data-theme="dark"] .conn-row .m,
.tesla[data-theme="dark"] .txd-device .m,
.tesla[data-theme="dark"] .dc-id .m,
.tesla[data-theme="dark"] .tc-name,
.tesla[data-theme="dark"] .lm-place,
.tesla[data-theme="dark"] .ct-acct .m,
.tesla[data-theme="dark"] .txr-src-top b,
.tesla[data-theme="dark"] .dev-idblock .subj-id .uid,
.tesla[data-theme="dark"] .stat .v.sm { color: var(--text) !important; }
.tesla[data-theme="dark"] .tc-loc { color: var(--text); }
/* consistent icon-tile tint in dark: medium-bright, never pure-light or near-black */
.tesla[data-theme="dark"] .subj-av,
.tesla[data-theme="dark"] .conn-row .ci,
.tesla[data-theme="dark"] .dt-idav,
.tesla[data-theme="dark"] .uan-av { background: color-mix(in srgb, var(--blue-500) 26%, var(--surface)) !important; color: #BcD2FF !important; border-color: color-mix(in srgb, var(--blue-500) 38%, transparent) !important; }
.tesla[data-theme="dark"] .subj-head .subj-av { background: color-mix(in srgb, currentColor 20%, var(--surface)) !important; border-color: color-mix(in srgb, currentColor 32%, transparent) !important; }
/* segmented tab controls — uniform in dark: track surface, inactive transparent, active blue */
.tesla[data-theme="dark"] .seg-tabs, .tesla[data-theme="dark"] .seg, .tesla[data-theme="dark"] .pill-seg,
.tesla[data-theme="dark"] .sheet-tabs, .tesla[data-theme="dark"] .bk-tabs, .tesla[data-theme="dark"] .ulist-tabs,
.tesla[data-theme="dark"] .subj-tabs, .tesla[data-theme="dark"] .view-seg { background: var(--surface-3); border-color: var(--divider-strong); }
.tesla[data-theme="dark"] .seg-tabs button[data-active="false"], .tesla[data-theme="dark"] .seg button[data-on="false"],
.tesla[data-theme="dark"] .pill-seg button[data-on="false"], .tesla[data-theme="dark"] .sheet-tabs button[data-on="false"],
.tesla[data-theme="dark"] .bk-tabs button[data-on="false"], .tesla[data-theme="dark"] .ulist-tabs button[data-on="false"],
.tesla[data-theme="dark"] .subj-tabs button[data-on="false"], .tesla[data-theme="dark"] .view-seg button[data-on="false"] { background: transparent !important; color: var(--text-2) !important; }
.tesla[data-theme="dark"] .seg-tabs button[data-active="true"], .tesla[data-theme="dark"] .seg button[data-on="true"],
.tesla[data-theme="dark"] .pill-seg button[data-on="true"], .tesla[data-theme="dark"] .sheet-tabs button[data-on="true"],
.tesla[data-theme="dark"] .bk-tabs button[data-on="true"], .tesla[data-theme="dark"] .ulist-tabs button[data-on="true"],
.tesla[data-theme="dark"] .subj-tabs button[data-on="true"], .tesla[data-theme="dark"] .view-seg button[data-on="true"] { background: var(--blue-600) !important; color: #fff !important; }
.tesla[data-theme="dark"] .dc-top .di,
.tesla[data-theme="dark"] .ct-dev-row .di,
.tesla[data-theme="dark"] .acct-device .di { background: color-mix(in srgb, currentColor 22%, var(--surface)) !important; border-color: color-mix(in srgb, currentColor 32%, transparent) !important; }
/* dark-mode contrast (WCAG AA): amber chip uses dark text; status text & alerts lightened */
.tesla[data-theme="dark"] .MuiChip.warning.filled { background: color-mix(in srgb, #E0A52E 18%, var(--surface)); color: #E8B45C; }
.tesla[data-theme="dark"] .dt-status[data-s="restricted"], .tesla[data-theme="dark"] .lvl.restricted { color: #B49BFB !important; }
.tesla[data-theme="dark"] .dt-status[data-s="review"] { color: #E8B45C !important; }
.tesla[data-theme="dark"] .dt-status[data-s="neutral"], .tesla[data-theme="dark"] .dt-status[data-s="expired"] { background: var(--surface-3) !important; color: var(--text-2) !important; }
.tesla[data-theme="dark"] .uan-alert, .tesla[data-theme="dark"] .err-pct.bad { color: #F26D6D !important; }
.tesla[data-theme="dark"] .dt-pager-btns .pg, .tesla[data-theme="dark"] .ulist-pager-n { color: var(--text-2); }
/* dark-mode legibility fixes for tinted light-mode elements */
.tesla[data-theme="dark"] .now-alert.crit { background: color-mix(in srgb, var(--red-500) 16%, var(--surface)); border-color: color-mix(in srgb, var(--red-500) 32%, transparent); }
.tesla[data-theme="dark"] .now-alert.crit:hover { background: color-mix(in srgb, var(--red-500) 24%, var(--surface)); }
.tesla[data-theme="dark"] .now-alert.warn { background: color-mix(in srgb, #F15A0E 15%, var(--surface)); border-color: color-mix(in srgb, #F15A0E 30%, transparent); }
.tesla[data-theme="dark"] .now-alert.warn:hover { background: color-mix(in srgb, #F15A0E 23%, var(--surface)); }
.tesla[data-theme="dark"] .now-alert.info { background: color-mix(in srgb, var(--blue-600) 18%, var(--surface)); border-color: color-mix(in srgb, var(--blue-600) 34%, transparent); }
.tesla[data-theme="dark"] .now-alert.info:hover { background: color-mix(in srgb, var(--blue-600) 26%, var(--surface)); }
/* hotspot / triage alert rows */
.tesla[data-theme="dark"] .lm-tri-alert { background: color-mix(in srgb, var(--red-500) 14%, var(--surface)); border-color: color-mix(in srgb, var(--red-500) 28%, transparent); }
.tesla[data-theme="dark"] .lm-tri-alert[data-kind="proxy"] { background: color-mix(in srgb, #F15A0E 14%, var(--surface)); border-color: color-mix(in srgb, #F15A0E 28%, transparent); }
.tesla[data-theme="dark"] .lm-tri-alert .at { color: var(--text-2); }
/* dashboard tables: ensure dark text flips to light */
.tesla[data-theme="dark"] .MuiTable th, .tesla[data-theme="dark"] .MuiTable td { color: var(--text); }
.tesla[data-theme="dark"] .MuiTable thead th { color: var(--text-3); background: var(--surface-1); }
.tesla[data-theme="dark"] .MuiTable tbody tr:hover { background: var(--bg-hover); }
.tesla[data-theme="dark"] .MuiTableRow:hover, .tesla[data-theme="dark"] .tfu-row:hover { background: var(--bg-hover); }
/* create-list dropdown menu */
.tesla[data-theme="dark"] .bk-create-menu, .tesla[data-theme="dark"] .bkx-newmenu { background: var(--surface); border-color: var(--divider-strong); }
.tesla[data-theme="dark"] .bk-create-menu button:hover, .tesla[data-theme="dark"] .bkx-newmenu button:hover { background: var(--bg-hover); }
/* dark safety net: hardcoded near-black titles flip to light */
.tesla[data-theme="dark"] .bkc-h-t,
.tesla[data-theme="dark"] .bkx-cal-mon,
.tesla[data-theme="dark"] .bkc-modal .bkc-field > label,
.tesla[data-theme="dark"] .bkc-seg button[data-on="true"],
.tesla[data-theme="dark"] .subj-id .uid,
.tesla[data-theme="dark"] .stat .v { color: var(--text) !important; }
.tesla[data-theme="dark"] .bkx-newmenu b { color: var(--text) !important; }
/* dark: transaction record legibility */
.tesla[data-theme="dark"] .txr-idmain .subj-id .uid, .tesla[data-theme="dark"] .txr-idmain .copyid, .tesla[data-theme="dark"] .txd-idlink { color: var(--text) !important; }
.tesla[data-theme="dark"] .txr-gauge-bar .seg.in { background: color-mix(in srgb, var(--green-500) 55%, var(--surface-3)); }
.tesla[data-theme="dark"] .txr-gauge-bar .seg.buf { background: color-mix(in srgb, #F0728F 55%, var(--surface-3)); }
.tesla[data-theme="dark"] .txr-gauge-bar .seg.out { background: color-mix(in srgb, var(--red-500) 55%, var(--surface-3)); }
.tesla[data-theme="dark"] .opchip { color: var(--text); }
.tesla[data-theme="dark"] .opchip[data-on="false"] { opacity: .55; }
.tesla[data-theme="dark"] .tdock,
.tesla[data-theme="dark"] .tsearch,
.tesla[data-theme="dark"] .tchips,
.tesla[data-theme="dark"] .tpanel,
.tesla[data-theme="dark"] .tsheet,
.tesla[data-theme="dark"] .panel-restore { background: rgba(28,34,43,.97); border-color: rgba(255,255,255,.10); }
.tesla[data-theme="dark"] .mt-btn { background: rgba(23,27,34,.92); border-color: rgba(255,255,255,.12); color: var(--text-2); }
.tesla[data-theme="dark"] .mt-btn:hover { background: #222834; color: var(--text); }
.tesla[data-theme="dark"] .dev-pop,
.tesla[data-theme="dark"] .tsearch-pop,
.tesla[data-theme="dark"] .role-pop,
.tesla[data-theme="dark"] .rolesw-menu,
.tesla[data-theme="dark"] .ttable { background: var(--surface); border-color: var(--divider-strong); }
.tesla[data-theme="dark"] .tdock-tip,
.tesla[data-theme="dark"] .toast { background: #000; }
.tesla[data-theme="dark"] .tdock-item[data-active="true"] { background: color-mix(in srgb, var(--blue-500) 26%, var(--surface)); color: #AFC4F2; }
.tesla[data-theme="dark"] .tdock-item { color: var(--text-2); }
.tesla[data-theme="dark"] .tdock-item:hover { background: var(--surface-3); color: var(--text); }
/* notifications popover */
.notif-anchor { position: relative; }
.notif-pop { position: absolute; left: calc(100% + 12px); bottom: -6px; top: auto; transform: none; width: 340px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 14px; box-shadow: var(--shadow-12); padding: 6px; z-index: 700; }
.np-h { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px; }
.np-h .np-title { font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.np-h .np-count { font-size: 12px; font-weight: 800; color: #fff; background: var(--blue-600); border-radius: 999px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.tesla[data-theme="dark"] .np-h .np-count { background: var(--blue-500); color: #fff; }
.np-h .np-mark { margin-left: auto; border: 0; background: transparent; color: var(--blue-600); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 7px; border-radius: 6px; }
.np-h .np-mark:hover { background: var(--blue-50); }
.np-list { display: flex; flex-direction: column; gap: 4px; max-height: 380px; overflow: auto; padding: 6px 8px 8px; }
.np-item { display: flex; align-items: center; gap: 11px; padding: 10px 10px; cursor: pointer; position: relative; transition: background .12s; border-radius: 10px; border: 0; background: transparent; }
.np-item:last-child { border-bottom: 0; }
.np-item:hover { background: var(--bg-hover); box-shadow: none; }
.np-item[data-unread="true"] { background: color-mix(in srgb, #1E54E7 8%, transparent); }
.np-item[data-unread="true"]:hover { background: color-mix(in srgb, #1E54E7 12%, transparent); }
.np-item[data-unread="true"] .np-body .t { font-weight: 700; }
.np-item + .np-item::after { display: none; }
.np-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-2); color: var(--text-2); }
.tesla[data-theme="dark"] .np-ic { background: var(--surface-3); color: var(--text-2); }
.np-ic.error { background: color-mix(in srgb, var(--red-500) 12%, var(--surface)); color: var(--red-600); }
.np-ic.warn { background: color-mix(in srgb, var(--orange-500, #F15A0E) 12%, var(--surface)); color: var(--orange-600, #c2540c); }
.tesla[data-theme="dark"] .np-ic.error { background: color-mix(in srgb, var(--red-500) 22%, var(--surface)); color: #F08A8A; }
.tesla[data-theme="dark"] .np-ic.warn { background: color-mix(in srgb, #F15A0E 22%, var(--surface)); color: #F0A868; }
.np-body { flex: 1; min-width: 0; padding-top: 1px; }
.np-body .t { font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.3; }
.np-body .s { font-size: 11px; color: var(--text-3); margin-top: 2px; line-height: 1.35; }
.np-body .s .mono { font-family: var(--font-mono); color: var(--text-2); }
.np-time { font-size: 11px; color: var(--text-3); flex-shrink: 0; white-space: nowrap; min-width: 30px; text-align: right; padding-right: 16px; align-self: flex-start; padding-top: 2px; }
.np-item[data-unread="true"] .np-time::before { content: ""; position: absolute; top: 17px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-600); }
.np-foot { width: 100%; margin-top: 4px; padding: 11px 9px; border: 0; border-top: 1px solid var(--divider); background: transparent; color: var(--blue-600); font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; text-align: center; }
.np-foot:hover { color: var(--blue-700); }
/* map marker clusters */
.leaflet-marker-icon.tx-clustermark { background: transparent; border: 0; overflow: visible; }
.tx-clustermark .cm { border-radius: 50%; display: grid; place-items: center; box-shadow: 0 2px 7px rgba(12,20,48,.35); }
/* glass cluster — pass/fail ring + frosted translucent core */
.tx-clustermark .cm-glass { position: relative; border-radius: 50%; box-shadow: 0 8px 18px -8px rgba(12,20,48,.4); }
/* the donut stays still; an aureole ring expands + fades outward behind it */
.tx-clustermark .cm-glass::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ring); z-index: -1; pointer-events: none; transform-origin: 50% 50%; animation: cm-aureole var(--pdur, 3s) cubic-bezier(.22,.61,.36,1) infinite; animation-delay: var(--pd, 0s); }
@keyframes cm-aureole { 0% { transform: scale(1); opacity: .55; } 70% { transform: scale(1.9); opacity: 0; } 100% { transform: scale(1.9); opacity: 0; } }
.tx-clustermark .cm-glow { display: none; }
.leaflet-marker-icon.tx-clustermark, .tx-clustermark .cm, .tx-clustermark .cm-glass { overflow: visible; }
.tx-clustermark .cm-track { position: absolute; inset: 0; border-radius: 50%; z-index: 1; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.45); }
.tx-clustermark .cm-disc { position: absolute; inset: 6px; border-radius: 50%; z-index: 2; display: grid; place-items: center; background: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 3px rgba(12,20,48,.06); }
.tx-clustermark .cm-disc .cm-in { background: transparent; box-shadow: none; width: auto; height: auto; color: #14181D; font-family: var(--font-sans); font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; text-shadow: 0 1px 1px rgba(255,255,255,.6); }
.tx-clustermark .cm-in { background: #fff; border-radius: 50%; width: calc(100% - 7px); height: calc(100% - 7px); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #1A1E23; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pill.ctx { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); color: var(--text-2); font-weight: 600; cursor: default; }
.pill.ctx svg { color: var(--text-3); }
.pill.ctx b { color: var(--text); font-weight: 700; margin-left: 2px; font-variant-numeric: tabular-nums; }
.tesla[data-theme="dark"] .tgraph { background: var(--surface); border-color: var(--divider-strong); }
.tesla[data-theme="dark"] .txtable thead th { background: var(--surface-1); border-color: var(--divider-strong); }
.tesla[data-theme="dark"] .txtable tbody td { border-color: var(--divider); }
.tesla[data-theme="dark"] .txtable tbody tr[data-sel="true"] { background: var(--blue-50); }
.tesla[data-theme="dark"] .ttable-foot { background: var(--surface-1); border-color: var(--divider-strong); }
.tesla[data-theme="dark"] .tp-icon, .tesla[data-theme="dark"] .tp-collapse, .tesla[data-theme="dark"] .sheet-chev, .tesla[data-theme="dark"] .pnav-pin { background: var(--surface-2); }
.tesla[data-theme="dark"] .ttable-foot .pager button, .tesla[data-theme="dark"] .dev-quick button { background: var(--surface-2); border-color: var(--divider-strong); color: var(--text-2); }
.tesla[data-theme="dark"] .subj-tabs { background: var(--surface-2); }
.tesla[data-theme="dark"] .show-pass .tgl { background: var(--surface-3); }
.tesla[data-theme="dark"] .conn-row, .tesla[data-theme="dark"] .ct-users { background: var(--surface-2); }
.tesla[data-theme="dark"] .ct-dev-row .m, .tesla[data-theme="dark"] .ct-user .m, .tesla[data-theme="dark"] .ct-user .mono { color: var(--text); }
.tesla[data-theme="dark"] .ct-dev-row .s, .tesla[data-theme="dark"] .ct-user .s { color: var(--text-2); }
.tesla[data-theme="dark"] .pill,
.tesla[data-theme="dark"] .opchip,
.tesla[data-theme="dark"] .pill-seg,
.tesla[data-theme="dark"] .view-seg,
.tesla[data-theme="dark"] .subj-tabs,
.tesla[data-theme="dark"] .stat,
.tesla[data-theme="dark"] .subj-risk,
.tesla[data-theme="dark"] .ct-device,
.tesla[data-theme="dark"] .sim-row,
.tesla[data-theme="dark"] .tx-card,
.tesla[data-theme="dark"] .subj-risk { background: var(--surface-3); border-color: var(--divider-strong); }
.tesla[data-theme="dark"] .dev-card { background: var(--surface-2); border-color: var(--divider-strong); }
.tesla[data-theme="dark"] .pill-seg button[data-on="true"],
.tesla[data-theme="dark"] .subj-tabs button[data-on="true"] { background: var(--surface); color: var(--text); }
.tesla[data-theme="dark"] .view-seg { background: var(--surface-3); }
.tesla[data-theme="dark"] .view-seg button[data-on="false"] { background: transparent; color: var(--text-2); }
.tesla[data-theme="dark"] .view-seg button[data-on="true"] { background: var(--blue-600); color: #fff; }
.tesla[data-theme="dark"] .leaflet-control-attribution { background: rgba(20,24,30,.6) !important; color: #888 !important; }
.tesla[data-theme="dark"] .ProgressRing, .tesla[data-theme="dark"] .conn-row { background: var(--surface-2); }

/* context panel */
.tpanel { position: absolute; left: calc(var(--edge) + var(--dockw) + var(--edge)); top: 74px; width: var(--panelw); height: calc(100vh - 74px - var(--edge)); z-index: 540; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; }
.tpanel-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 14px; border-bottom: 1px solid var(--divider); flex-shrink: 0; }
.tp-crumb { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.tp-back { display: inline-flex; align-items: center; gap: 3px; border: 0; background: transparent; color: var(--blue-600); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 0; }
.tp-collapse { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; border: 0; background: var(--surface-2); color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.tp-collapse:hover { color: var(--blue-600); }
.tp-icon { width: 28px; height: 28px; border-radius: 8px; border: 0; background: var(--surface-2); color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.tp-icon:hover { color: var(--blue-600); }
.tpanel-scroll { overflow: hidden auto; flex: 1; }
.tpanel-scroll::-webkit-scrollbar { width: 8px; }
.tpanel-scroll::-webkit-scrollbar-thumb { background: var(--neutral-300); border-radius: 8px; border: 2px solid #fff; }
.panel-restore { position: absolute; left: calc(var(--edge) + var(--dockw) + var(--edge)); top: 74px; z-index: 540; display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px; border-radius: 14px; color: var(--blue-700); cursor: pointer; font-weight: 700; }

.subject { padding: 15px 16px 16px; }
.ai-insights { margin-bottom: 14px; border: 0; background: color-mix(in srgb, #1E54E7 6%, var(--surface)); border-radius: 14px; padding: 10px; }
.ai-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--blue-700); margin-bottom: 8px; padding: 0 1px; line-height: 1; }
.ai-insights .ai-h { border-bottom: 0; padding: 0 1px; }
.ai-h svg { display: block; flex-shrink: 0; }
.ai-insights .ai-h svg { transform: translateY(2px); }
.ai-find { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--surface); border: 0; box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.07); border-radius: 11px; padding: 9px 10px; margin-bottom: 7px; cursor: pointer; font-family: inherit; transition: box-shadow .12s; }
.ai-find:last-child { margin-bottom: 0; }
.ai-find:hover { box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 2px 6px rgba(16,24,40,.12); }
.af-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.ai-find[data-sev="crit"] .af-ic { background: var(--red-100); color: var(--red-600); }
.ai-find[data-sev="warn"] .af-ic { background: var(--orange-100); color: var(--orange-600); }
.ai-find[data-sev="ok"] .af-ic { background: var(--green-100); color: var(--green-600); }
.af-body { flex: 1; min-width: 0; }
.af-body .t { font-size: 12.5px; font-weight: 700; color: var(--text); }
.af-body .s { font-size: 11px; color: var(--text-3); line-height: 1.4; }
.ai-find > svg:last-child { color: var(--text-3); flex-shrink: 0; }
.subj-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.subj-av { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-200); display: grid; place-items: center; flex-shrink: 0; }
.subj-id .line { display: flex; align-items: center; gap: 8px; }
.subj-id .uid { font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.subj-id .sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subj-risk { display: flex; align-items: center; gap: 13px; padding: 10px 13px; border: 1px solid var(--divider-strong); border-radius: 14px; background: var(--surface-1); margin-bottom: 14px; }
.subj-risk-meta { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.subj-risk-side { margin-left: auto; align-self: center; flex-shrink: 0; }
.actx-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.actx-rng { display: inline-flex; gap: 2px; background: var(--surface-3); border-radius: 8px; padding: 2px; }
.actx-rng button { border: 0; background: transparent; font-family: inherit; font-size: 11px; font-weight: 700; color: var(--text-3); padding: 3px 9px; border-radius: 6px; cursor: pointer; }
.actx-rng button[data-on] { background: var(--surface); color: var(--blue-700); box-shadow: var(--shadow-1); }
.subj-risk-meta .lvl { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.subj-risk-meta .trend { font-size: 11.5px; color: var(--text-3); margin: 2px 0 7px; }
.subj-risk-meta .trend:last-child { margin-bottom: 0; }
.resolved-note { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 11px; font-size: 12px; font-weight: 500; margin-bottom: 14px; }
.resolved-note button { margin-left: auto; border: 0; background: transparent; color: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; font-family: inherit; }
.resolved-note.error { background: var(--red-100); color: var(--red-700); border: 1px solid var(--red-300); }
.resolved-note.warning { background: var(--orange-100); color: var(--orange-700); border: 1px solid var(--orange-300); }
.resolved-note.success { background: var(--green-100); color: var(--green-700); border: 1px solid var(--green-300); }
.subj-sec { padding: 6px 0 13px; border-top: 0; }
.subj-sec-h { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.subj-sec-h:has(.bkx-link) { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bkx-link { display: inline-flex; align-items: center; gap: 4px; }
.bkx-link svg { display: block; }
.conn-row { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 9px; background: var(--surface-1); margin-bottom: 6px; }
.conn-row .ci { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; }
.conn-row .body { flex: 1; min-width: 0; }
.conn-row .m { font-size: 12.5px; font-weight: 600; }
.conn-row .s { font-size: 11px; color: var(--text-3); }
.similar { margin-top: 10px; }
.sim-h { font-size: 11px; color: var(--text-3); margin-bottom: 6px; }
.sim-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--divider-strong); border-radius: 10px; margin-bottom: 6px; cursor: pointer; }
.sim-row:hover { border-color: var(--blue-400); background: var(--blue-50); }
.sim-row .m { font-size: 12px; font-weight: 700; }
.sim-row .s { font-size: 11px; color: var(--text-3); }
.sim-row .out { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--text-2); text-align: right; max-width: 116px; }
.subj-actions { padding: 18px 0 6px; border-top: 1px solid var(--divider); display: flex; flex-direction: column; gap: 10px; }
.subj-actions .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.subj-actions .MuiButton { height: 42px; }
.subj-actions .MuiButton.contained.error { background: var(--red-600); box-shadow: none; }
.subj-actions .MuiButton.contained.error:hover { background: var(--red-700); }
.subj-minor { display: flex; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--divider); }
.subj-minor .MuiButton { flex: 1; }

/* bottom activity sheet */
.tsheet { position: absolute; bottom: var(--edge); left: calc(var(--edge) + var(--dockw) + var(--edge) + var(--panelw) + var(--edge)); right: var(--edge); z-index: 520; border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; max-height: 232px; }
.tsheet.open:not(.max) { height: 240px; }
.tsheet[data-panel="false"] { left: calc(var(--edge) + var(--dockw) + var(--edge)); }
.tsheet-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; flex-shrink: 0; }
.tsheet-head .t { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); }
.sheet-live { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; color: var(--green-700); }
.sheet-stats { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sheet-stats b { color: var(--text); font-weight: 800; }
.sheet-stats span { display: inline-flex; gap: 3px; align-items: center; }
.sheet-stats .ok b { color: var(--green-600); }
.sheet-stats .bad b { color: var(--red-500); }
.sheet-hint { font-size: 11px; color: var(--text-3); }
.tsheet .spacer { flex: 1; }
.sheet-chev { display: inline-grid; place-items: center; color: var(--text-3); }
.tsheet-scroll { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 4px 16px 14px; align-items: stretch; flex: 1; min-height: 0; }
.tsheet-scroll::-webkit-scrollbar { height: 8px; }
.tsheet-scroll::-webkit-scrollbar-thumb { background: var(--neutral-300); border-radius: 8px; }
.sheet-empty { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 18px; color: var(--text-3); font-size: 13px; }
/* ── Directory (Users / Devices work queue) ── */
.ulist { display: flex; flex-direction: column; gap: 14px; }
.ulist-crumbs { display: flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--divider); border-radius: 10px; padding: 9px 14px; font-size: 12.5px; }
.ulist-crumbs > svg { color: var(--text-3); }
.ulist-crumbs .uc-root { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-weight: 600; }
.ulist-crumbs .uc-cur { color: var(--text); font-weight: 700; }
.ulist-tabs { display: inline-flex; gap: 2px; background: var(--surface-2); border-radius: 10px; padding: 3px; align-self: flex-start; margin-bottom: 0; box-sizing: border-box; }
.ulist-seg { margin-right: 2px; flex-shrink: 0; }
.ulist-seg button { display: inline-flex; align-items: center; gap: 6px; }
.ulist-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; border-radius: 7px; height: 28px; padding: 0 13px; font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1; color: var(--text-2); cursor: pointer; white-space: nowrap; box-sizing: border-box; transition: background .15s, color .15s; }
.ulist-tabs button[data-on] { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-1); }
.ulist-an { margin-bottom: 2px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.ulist-an .bkx-an-c { display: flex; flex-direction: column; }
.ulist-an .uan-qrows, .ulist-an .uan-list { flex: 1; justify-content: space-between; }
.ulist-an .uan-row, .ulist-an .uan-qrow { padding-left: 0; padding-right: 0; }
.ulist-an .uan-row:hover, .ulist-an .uan-qrow:hover { padding-left: 6px; padding-right: 6px; margin: 0 -6px; }
/* review-queue segmented bar */
.uan-seg { display: flex; height: 8px; border-radius: 999px; overflow: hidden; gap: 2px; margin: 4px 0 10px; }
.uan-seg i { display: block; border-radius: 2px; }
.uan-qrows { display: flex; flex-direction: column; gap: 2px; }
.uan-qrow { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; font-family: inherit; cursor: pointer; padding: 6px 8px; border-radius: 8px; text-align: left; }
.uan-qrow:hover, .uan-qrow[data-on] { background: var(--bg-hover); }
.uan-qrow .d { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.uan-qrow .l { flex: 1; font-size: 12.5px; color: var(--text-2); }
.uan-qrow b { font-size: 13px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.uan-alert { color: #CC0000 !important; }
/* rising-risk + cluster mini-lists */
.uan-list { display: flex; flex-direction: column; gap: 2px; }
.uan-row { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; font-family: inherit; cursor: pointer; padding: 6px 8px; border-radius: 8px; text-align: left; }
.uan-row:hover { background: var(--bg-hover); }
.uan-av { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; }
.uan-rtx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.uan-rtx .mono { font-size: 12.5px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uan-sub { font-size: 11px; color: var(--text-3); }
.uan-delta { font-size: 11.5px; font-weight: 800; color: #CC0000; background: var(--red-50); border-radius: 6px; padding: 1px 6px; flex-shrink: 0; }
.uan-score { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; flex-shrink: 0; min-width: 24px; text-align: right; }
.uan-cluster { font-size: 11.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; flex-shrink: 0; }
.uan-mls { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; color: var(--blue-600); white-space: nowrap; flex-shrink: 0; }
.uan-row:hover .uan-mls { text-decoration: underline; }
.uan-find { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; line-height: 1.2; text-align: right; }
.uan-find b { font-size: 14px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.uan-find span { font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); }
.uan-h-link { border: 0; background: transparent; color: var(--blue-600); font-family: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; padding: 0; }
.uan-h-link:hover { text-decoration: underline; }
.uan-list.mls-scroll { max-height: 132px; overflow-y: auto; justify-content: flex-start; margin-right: -4px; padding-right: 2px; }
.ulist-kpi-card { cursor: pointer; font-family: inherit; text-align: left; transition: border-color .12s, box-shadow .12s; }
.ulist-kpi-card:hover { box-shadow: var(--shadow-3); }
.ulist-kpi-card.is-on { border-color: var(--blue-500); box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue-600) 16%, transparent); }
.ulist-table .ucheck-col { width: 36px; text-align: center; padding-left: 12px; padding-right: 0; }
.ulist-table .ucheck-col input { width: 15px; height: 15px; cursor: pointer; accent-color: var(--blue-600); }
.ulist-table input[type="checkbox"], .txtable input[type="checkbox"], .bkx-table input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--blue-600); border-radius: 4px; }
.ulist-table tbody tr.is-sel { background: var(--blue-50); }
.ulist-table tbody td { height: 56px; padding: 0 12px; border-bottom: 1px solid var(--divider); font-size: 13.5px; color: var(--text); vertical-align: middle; }
.txtable tbody td { height: 52px; vertical-align: middle; }
.ulist-kc { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border: 1px solid var(--divider-strong); border-radius: 12px; background: var(--surface); cursor: pointer; font-family: inherit; text-align: left; transition: box-shadow .12s, border-color .12s; }
.ulist-kc:hover { box-shadow: var(--shadow-2); }
.ulist-kc-ic { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); }
.ulist-kc-ic.warn { background: var(--orange-50, #FFF3E8); color: var(--orange-600, #C2570C); }
.ulist-kc-ic.bad { background: var(--red-50); color: var(--red-600); }
.ulist-kc-b { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ulist-kc-b .k { font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.ulist-kc-b .v { font-size: 23px; font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ulist-kc[data-on] { border-color: var(--blue-500); box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue-600) 14%, transparent); }
.ulist-kc[data-tone="warn"] .v { color: #B4540C; }
.ulist-kc[data-tone="bad"] .v { color: #CC0000; }
.ulist-tool { display: flex; align-items: center; gap: 10px; }
.ulist-statustabs { display: flex; gap: 4px; border-bottom: 1px solid var(--divider); margin-bottom: 14px; }
.ulist-statustabs button { border: 0; background: transparent; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-3); padding: 9px 4px; margin-right: 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ulist-statustabs button:hover { color: var(--text); }
.ulist-statustabs button[data-on] { color: var(--blue-700); border-bottom-color: var(--blue-600); }
.ulist-tool-sp { flex: 1; }
/* prominent global-style search at the top of the directory */
.ulist-globalsearch { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border: 1px solid var(--divider-strong); border-radius: 12px; background: var(--surface); color: var(--text-3); box-shadow: var(--shadow-1); }
.ulist-globalsearch:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-600) 12%, transparent); }
.ulist-globalsearch > svg { color: var(--text-3); flex-shrink: 0; }
.ulist-globalsearch input { flex: 1; border: 0; background: transparent; outline: none; font-family: inherit; font-size: 14.5px; color: var(--text); }
.ulist-globalsearch kbd { font-family: var(--font-sans); font-size: 11px; font-weight: 600; color: var(--text-3); background: var(--surface-2); border: 1px solid var(--divider); border-radius: 6px; padding: 2px 7px; }
.ulist-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--divider-strong); border-radius: 10px; background: var(--surface); color: var(--text-3); }
.ulist-search input { flex: 1; border: 0; background: transparent; outline: none; font-family: inherit; font-size: 13.5px; color: var(--text); }
.ulist-sel { height: 38px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--divider-strong); border-radius: 10px; background: var(--surface); font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text); padding: 0 11px; cursor: pointer; white-space: nowrap; }
.ulist-sel > svg:first-child { color: var(--text-3); flex-shrink: 0; }
.ulist-sel .ulist-sel-v { color: var(--text); }
.ulist-sel > svg:last-child { color: var(--text-3); margin-left: 2px; }
.ulist-sel:hover, .ulist-sel[data-open] { border-color: var(--neutral-400); }
.ulist-selmenu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 100%; white-space: nowrap; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 11px; box-shadow: var(--shadow-8); padding: 5px; display: flex; flex-direction: column; gap: 1px; }
.ulist-selitem { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--text); padding: 7px 10px 7px 8px; border-radius: 7px; cursor: pointer; text-align: left; }
.ulist-selitem > svg { color: var(--blue-600); flex-shrink: 0; }
.ulist-selitem:not([data-on]) { padding-left: 29px; }
.ulist-selitem:hover { background: var(--bg-hover); }
.ulist-selitem[data-on] { color: var(--blue-700); font-weight: 700; }g: 0 30px 0 14px; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; box-shadow: var(--shadow-1); }
.ulist-sel:hover { border-color: var(--neutral-400); }
.ulist-selwrap { position: relative; display: inline-flex; align-items: center; }
.ulist-selwrap .ulist-sel { padding-left: 11px; }
.ulist-clear { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 13px; border: 1px solid var(--divider-strong); border-radius: 10px; background: var(--surface); font-family: inherit; font-size: 13px; font-weight: 700; color: var(--blue-600); cursor: pointer; box-shadow: var(--shadow-1); }
.ulist-clear:hover { background: var(--blue-50); border-color: var(--blue-300); }
.ulist-savewrap { position: relative; }
.ulist-dot { position: absolute; top: 1px; right: 1px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-600); border: 1.5px solid var(--surface); z-index: 2; pointer-events: none; }
.ulist-savescrim { position: fixed; inset: 0; z-index: 40; }
.ulist-savemenu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 50; width: 320px; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 13px; box-shadow: var(--shadow-8); padding: 14px; }
.usm-saved { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.usm-savedlist { display: flex; flex-direction: column; gap: 0; max-height: 200px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.usm-savedh { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; display: flex; align-items: center; justify-content: space-between; }
.usm-savedh span { background: var(--surface-2); color: var(--text-3); border-radius: 999px; padding: 1px 8px; font-size: 11px; }
.usm-manage { display: flex; align-items: center; gap: 7px; width: 100%; border: 0; border-top: 1px solid var(--divider); background: transparent; color: var(--blue-600); font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 10px 8px 2px; text-align: left; margin-top: 4px; }
.usm-manage > svg { color: var(--blue-600); }
.usm-manage:hover { color: var(--blue-700); }
.usm-savedrow { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text); padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.usm-savedrow:hover { background: var(--bg-hover); }
.usm-savedrow > svg:first-child { color: var(--blue-600); flex-shrink: 0; }
.usm-savedrow span { flex: 1; }
.usm-savedrow > svg:last-child { color: var(--text-3); }
.usm-sep { height: 1px; background: var(--divider); margin: 8px 0 11px; }
.usm-saverow { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text); padding: 7px 8px; border-radius: 8px; cursor: pointer; text-align: left; }
.usm-saverow:hover:not(:disabled) { background: var(--bg-hover); }
.usm-saverow > svg { color: var(--blue-600); flex-shrink: 0; }
.usm-saverow:disabled { opacity: .45; cursor: default; }
.usm-saverow-wrap { display: block; }
.usm-saverow-wrap:has(:disabled) { cursor: default; }
.usm-savedrow { display: flex; align-items: center; gap: 2px; padding: 1px 0; border-radius: 8px; }
.usm-star { border: 0; background: transparent; cursor: pointer; line-height: 0; color: var(--text-3); padding: 6px 3px 6px 5px; flex-shrink: 0; display: inline-flex; }
.usm-star.on { color: var(--blue-600); }
.usm-star:hover { color: var(--blue-500); }
/* manage saved views modal */
.mng-modal { width: 400px; max-width: 94vw; }
.mng-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.5; margin-bottom: 12px; }
.mng-desc b { color: var(--text); font-weight: 700; }
.mng-modal .bkc-b { gap: 7px; }
.mng-modal .bkc-h { display: flex; align-items: center; justify-content: space-between; }
.mng-modal .bk-modal-x { margin-left: auto; }
.mng-row { display: flex; align-items: center; gap: 8px; padding: 1px 0; }
.mng-confirm { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.mng-confirm > span { font-size: 12px; font-weight: 700; color: var(--red-600); }
.mng-confirm button { border: 1px solid var(--divider-strong); background: var(--surface); font-family: inherit; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 7px; cursor: pointer; }
.mng-confirm .mc-cancel { color: var(--text-2); }
.mng-confirm .mc-cancel:hover { background: var(--bg-hover); }
.mng-confirm .mc-del { border-color: var(--red-600); background: var(--red-600); color: #fff; }
.mng-confirm .mc-del:hover { background: var(--red-700); }
.mng-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 1px solid var(--divider-strong); border-radius: 8px; padding-right: 7px; }
.mng-field:focus-within { border-color: var(--blue-500); }
.mng-field.is-def { border-color: var(--blue-300); background: color-mix(in srgb, var(--blue-500) 4%, transparent); }
.mng-field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 7px 11px; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--text); outline: none; }
.mng-def { font-size: 10px; font-weight: 700; color: var(--blue-700); background: var(--blue-50); border-radius: 5px; padding: 2px 7px; flex-shrink: 0; }
.mng-del { border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text-3); border-radius: 8px; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.mng-del:hover { border-color: color-mix(in srgb, var(--red-500) 35%, transparent); color: var(--red-600); background: var(--red-50); }
.usm-apply { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; border: 0; background: transparent; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--text); padding: 7px 8px; border-radius: 8px; cursor: pointer; text-align: left; }
.usm-apply:hover { background: var(--bg-hover); }
.usm-apply > svg { color: var(--blue-600); flex-shrink: 0; }
.usm-apply span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usm-apply em { font-style: normal; font-size: 10px; font-weight: 700; color: #B07D12; background: #FBF1D9; border-radius: 5px; padding: 1px 6px; flex-shrink: 0; }
.usm-defck { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); margin-bottom: 10px; cursor: pointer; }
.usm-defck input { width: 14px; height: 14px; accent-color: var(--blue-600); }
.usm-h { font-size: 14px; font-weight: 700; color: var(--text); }
.usm-desc { font-size: 12px; color: var(--text-3); line-height: 1.45; margin: 4px 0 10px; }
.usm-active { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }
.usm-chip { font-size: 11px; font-weight: 700; color: var(--blue-700); background: var(--blue-50); border-radius: 6px; padding: 3px 8px; }
.usm-chip.dim { color: var(--text-3); background: var(--surface-2); font-weight: 600; }
.usm-input { width: 100%; border: 1px solid var(--divider-strong); border-radius: 9px; padding: 8px 11px; font-family: inherit; font-size: 13px; color: var(--text); outline: none; margin-bottom: 9px; }
.usm-input:focus { border-color: var(--blue-500); }
.usm-save { width: 100%; border: 0; background: var(--blue-600); color: #fff; font-family: inherit; font-size: 13px; font-weight: 700; padding: 9px; border-radius: 9px; cursor: pointer; }
.usm-save:hover { background: var(--blue-700); }ursor: pointer; }
.ulist-count { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.ulist-tablewrap { border: 1px solid var(--divider-strong); border-radius: 14px; overflow: hidden; background: var(--surface); min-height: 540px; }
.ulist-tablewrap .dt-wrap { border: 0; border-radius: 0; overflow: visible; background: transparent; }
.ulist-tablewrap .dt { overflow: visible; }
.ulist-tablewrap .dt-pager { border-radius: 0 0 14px 14px; }
.ulist-pager { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-top: 1px solid var(--divider); background: var(--surface-1); }
.dt-pager { display: flex; align-items: center; justify-content: flex-end; gap: 22px; padding: 8px 16px; border-top: 1px solid var(--divider); background: var(--surface-1); }
.dt-pp { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }
.dt-pp select { border: 1px solid var(--divider-strong); border-radius: 8px; padding: 4px 9px; font-family: inherit; font-size: 13px; background: var(--surface); cursor: pointer; }
.dt-pager-n { font-size: 12.5px; color: var(--text-3); }
.dt-pager-btns { display: flex; align-items: center; gap: 10px; }
.dt-pager-btns .pg { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.dt-pager-btns button { border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text); font-family: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: var(--r-pill); cursor: pointer; }
.dt-pager-btns button:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--neutral-400); }
.dt-pager-btns button:disabled { opacity: .4; cursor: not-allowed; }
.dt-pager-btns button { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); }
.dt-pager-btns button:hover:not(:disabled) { background: var(--bg-hover); }
.dt-pager-btns button:disabled { opacity: .32; }
.dt-pager-btns .pg { display: none; }
.dt-pager-n { font-size: 13px; color: var(--text-2); }
.ulist-pager-n { font-size: 12.5px; color: var(--text-3); }
.ulist-pager-btns { display: flex; align-items: center; gap: 10px; }
.ulist-pager-btns .pg { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ulist-pager-btns button { border: 1px solid var(--divider-strong); background: var(--surface); color: var(--text); font-family: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: var(--r-pill); cursor: pointer; }
.ulist-pager-btns button:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--neutral-400); }
.ulist-pager-btns button:disabled { opacity: .4; cursor: not-allowed; }
.ulist-bulkbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--blue-50); border-bottom: 1px solid var(--blue-200); }
.ulist-bulkbar .ubb-n { font-size: 13px; color: var(--blue-700); }
.ulist-bulkbar .ubb-n b { font-weight: 800; }
.ulist-bulkbar .ubb-act { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--blue-300); background: var(--surface); color: var(--blue-700); font-family: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.ulist-bulkbar .ubb-act:hover { background: var(--blue-100); }
.ulist-bulkbar .ubb-act.danger { border-color: color-mix(in srgb, var(--red-500) 40%, transparent); color: var(--red-600); }
.ulist-bulkbar .ubb-act.danger:hover { background: var(--red-50); }
.ulist-bulkbar .ubb-clear { margin-left: auto; border: 0; background: transparent; color: var(--text-3); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ulist-bulkbar .ubb-clear:hover { color: var(--text); }
.ulist-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ulist-table thead th { position: sticky; top: 0; background: var(--surface-1); text-align: left; padding: 12px 10px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--divider); white-space: nowrap; }
.ulist-table th.sortable { cursor: pointer; user-select: none; }
.ulist-table th.sortable:hover { color: var(--text); }
.ulist-table tbody tr { border-bottom: 1px solid var(--divider); cursor: pointer; transition: background .1s; }
.ulist-table tbody tr:last-child { border-bottom: 0; }
.ulist-table tbody tr:hover { background: var(--surface-1); }
.ulist-table tbody tr.is-primary { background: color-mix(in srgb, var(--blue-500) 5%, transparent); }
.ulist-table td { padding: 9px 14px; vertical-align: middle; }
.ucell { display: flex; align-items: center; gap: 10px; }
.uav { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.utx { display: flex; flex-direction: column; line-height: 1.25; }
.utx .uid { font-size: 12.5px; font-weight: 700; color: var(--text); }
.utx .uhandle { font-size: 11px; color: var(--text-3); }
.urisk { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; padding: 3px 8px; border-radius: 7px; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.uflags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.uflag-chip { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: color-mix(in srgb, #F15A0E 12%, transparent); color: #B4540C; }
.tesla[data-theme="dark"] .uflag-chip { background: color-mix(in srgb, #F15A0E 20%, var(--surface)); color: #F3B27A; }
.umore { font-size: 10.5px; font-weight: 700; color: var(--text-3); }
.udash { color: var(--text-3); }
.ulinked { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.udim { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.uchev { color: var(--text-3); text-align: right; }
.ulist-empty { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--text-3); font-size: 13px; }
.ulist-empty button { border: 0; background: transparent; color: var(--blue-600); font-family: inherit; font-weight: 700; cursor: pointer; }
.dash-page .main:has(.ulist) { padding: 18px 26px 26px; overflow: auto; }

/* round map controls (Tesla) */
.tesla .map-toolstack { top: 50%; right: 16px; transform: translateY(-50%); gap: 8px; }
.tesla .mt-btn { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.65); box-shadow: var(--shadow-6); font-size: 20px; color: var(--text-2); }
.tesla .mt-btn:hover { background: #fff; color: var(--text); }
.tesla .mt-btn.on { background: var(--blue-600); color: #fff; border-color: var(--blue-700); }

.leaflet-control-attribution { background: rgba(255,255,255,.7) !important; font-size: 9px !important; }

@media (max-width: 1280px) { .tesla { --panelw: clamp(300px, 24vw, 360px); } }
@media (max-width: 1080px) {
  .opchip span:last-child { display: none; }
  .opchip { padding: 0 8px; }
}




/* MUI group + label */
.mui-filt-group { padding: 16px 20px 12px; }
.mui-filt-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.mui-filt-2col .mui-filt-group { padding: 16px 12px 12px; }
.mui-filt-2col .mui-filt-group:first-child { padding-left: 20px; }
.mui-filt-2col .mui-filt-group:last-child { padding-right: 20px; }
.mui-filt-2col .mui-tbg { width: 100%; }
.mui-filt-2col .mui-tb { flex: 1; padding: 7px 8px; font-size: 12px; }
.mui-filt-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.mui-filt-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mui-filt-val { font-size: 13px; font-weight: 600; color: var(--blue-700); background: var(--blue-50,#EFF6FF); border-radius: 6px; padding: 2px 8px; }

/* MUI ToggleButtonGroup */
.mui-tbg { display: flex; width: 100%; border: 1px solid var(--divider-strong); border-radius: 6px; overflow: hidden; }
.mui-tb { border: 0; border-right: 1px solid var(--divider-strong); background: var(--surface); padding: 7px 14px; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: background .12s, color .12s; white-space: nowrap; }
.mui-tb:last-child { border-right: 0; }
.mui-tb:hover { background: var(--bg-hover); }
.mui-tb.sel { background: color-mix(in srgb, var(--blue-600) 10%, transparent); color: var(--blue-700); font-weight: 600; }

/* MUI Chip multi-select */
.mui-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mui-chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; border: 1px solid var(--divider-strong); border-radius: 16px; padding: 0 12px; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--text-2); background: var(--surface); cursor: pointer; transition: all .12s; }
.mui-chip:hover { background: var(--bg-hover); border-color: var(--neutral-400); }
.mui-chip.sel { font-weight: 600; }
.mui-chip-check { font-size: 11px; }

/* MUI Slider */
.mui-slider-track-wrap { padding: 8px 2px 4px; }
.mui-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--blue-600) 0%, var(--blue-600) var(--pct, 0%), var(--divider-strong) var(--pct, 0%)); outline: none; cursor: pointer; }
.mui-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-600); box-shadow: 0 2px 6px rgba(0,0,0,.18); cursor: pointer; border: 2px solid #fff; }
.mui-slider-labels { display: flex; justify-content: space-between; }
.mui-slider-labels span { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* MUI outlined TextField */
.mui-tf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mui-textfield { position: relative; }
.mui-tf-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-3); margin-bottom: 5px; }
.mui-tf-wrap { display: flex; align-items: center; border: 1px solid var(--divider-strong); border-radius: 6px; background: var(--surface); transition: border-color .15s; }
.mui-tf-wrap:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue-600) 16%, transparent); }
.mui-tf-input { flex: 1; border: 0; background: transparent; font-family: inherit; font-size: 13px; color: var(--text); padding: 8px 10px; outline: none; min-width: 0; }
.mui-tf-input::placeholder { color: var(--text-3); }
.mui-tf-clear { border: 0; background: transparent; color: var(--text-3); cursor: pointer; padding: 0 8px; display: grid; place-items: center; }

/* MUI Buttons */
.mui-btn-text { border: 0; background: transparent; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--blue-700); cursor: pointer; padding: 8px 12px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.mui-btn-text:hover:not(:disabled) { background: color-mix(in srgb, var(--blue-600) 8%, transparent); }
.mui-btn-text:disabled { color: var(--text-3); cursor: default; }
.mui-btn-contained { border: 0; background: var(--blue-600); font-family: inherit; font-size: 14px; font-weight: 600; color: #fff; cursor: pointer; padding: 8px 22px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.mui-btn-contained:hover { background: var(--blue-700); }



/* Header */
.vf-head { display: flex; align-items: center; gap: 10px; padding: 0 20px; height: 56px; flex-shrink: 0; }
.vf-title { font-size: 15px; font-weight: 700; color: var(--text); flex: 1; }
.vf-active-badge { font-size: 11.5px; font-weight: 700; color: var(--blue-700); background: color-mix(in srgb, var(--blue-600) 10%, transparent); border-radius: 999px; padding: 2px 9px; }
.vf-close { border: 0; background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; margin-right: -6px; }
.vf-close:hover { background: var(--bg-hover); color: var(--text); }

/* Impact bar */
.vf-impact { padding: 10px 20px 12px; background: var(--surface-2); }
.vf-impact-empty { background: color-mix(in srgb, #D32F2F 6%, transparent); }
.vf-impact-track { height: 3px; background: var(--divider-strong); border-radius: 2px; margin-bottom: 8px; overflow: hidden; }
.vf-impact-track span { display: block; height: 100%; background: var(--blue-600); border-radius: 2px; transition: width .35s cubic-bezier(.4,0,.2,1); }
.vf-impact-empty .vf-impact-track span { background: #D32F2F; }
.vf-impact-meta { display: flex; align-items: baseline; gap: 4px; }
.vf-impact-n { font-size: 20px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.vf-impact-txt { font-size: 13px; color: var(--text-3); flex: 1; }
.vf-impact-pct { font-size: 12px; font-weight: 700; color: var(--blue-700); }
.vf-impact-pct.red { color: #D32F2F; }
.vf-impact-hint { font-size: 12px; color: #D32F2F; margin-top: 4px; font-weight: 500; }

/* Quick scenarios */
.vf-presets { padding: 12px 20px; }
.vf-presets-lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.vf-presets-row { display: flex; flex-wrap: wrap; gap: 6px; }
.vf-preset { display: inline-flex; align-items: center; gap: 5px; height: 28px; border: 1px solid var(--divider-strong); border-radius: 6px; padding: 0 10px; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface); cursor: pointer; transition: all .12s; }
.vf-preset:hover { border-color: var(--blue-400); color: var(--blue-700); background: color-mix(in srgb, var(--blue-600) 6%, transparent); }

/* Divider */
.vf-divider { height: 1px; background: var(--divider); flex-shrink: 0; }
.vf-sep { height: 1px; background: var(--divider); margin: 2px 0; }

/* Scrollable body */
.vf-body { flex: 1; overflow-y: auto; padding: 4px 0 8px; }

/* Row = label + control */
.vf-row { padding: 12px 20px; }
.vf-row-lbl { font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.vf-note { font-size: 11px; font-weight: 400; color: var(--text-3); margin-left: auto; }

/* Segment control — MUI ToggleButtonGroup feel */
.vf-seg { display: flex; border: 1px solid var(--divider-strong); border-radius: 8px; overflow: hidden; background: var(--surface-2); padding: 3px; gap: 2px; }
.vf-seg-btn { flex: 1; border: 0; background: transparent; border-radius: 6px; padding: 6px 8px; font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: all .12s; white-space: nowrap; }
.vf-seg-btn:hover { background: var(--surface); }
.vf-seg-btn.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* Multi-chip group */
.vf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vf-chip { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 13px; border: 1.5px solid var(--divider-strong); border-radius: 8px; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--text-2); background: var(--surface); cursor: pointer; transition: all .12s; }
.vf-chip:hover { border-color: var(--neutral-400); background: var(--surface-2); }
.vf-chip.on { font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* Footer */
.vf-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; flex-shrink: 0; }
.vf-reset { border: 0; background: transparent; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-3); cursor: pointer; padding: 8px 4px; }
.vf-reset:hover:not(:disabled) { color: var(--text); }
.vf-reset:disabled { opacity: .4; cursor: default; }
.vf-apply { border: 0; background: var(--blue-600); color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; padding: 9px 20px; border-radius: 9px; box-shadow: 0 2px 8px rgba(25,84,230,.28); transition: background .15s, box-shadow .15s; }
.vf-apply:hover { background: var(--blue-700); box-shadow: 0 3px 12px rgba(25,84,230,.36); }


/* ===== LmFilters v3 — portfolio quality ===== */
.lmf3-panel { width: 400px; max-width: 96vw; height: 100%; background: var(--surface); display: flex; flex-direction: column; box-shadow: -1px 0 0 var(--divider), -20px 0 60px rgba(0,0,0,.12); animation: lmf-in .2s cubic-bezier(.4,0,.2,1); }

/* Header */
.lmf3-head { display: flex; align-items: center; padding: 0 20px; height: 60px; flex-shrink: 0; gap: 12px; }
.lmf3-title { flex: 1; font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
.lmf3-badge { font-size: 11px; font-weight: 800; color: #fff; background: var(--blue-600); border-radius: 999px; padding: 2px 8px; min-width: 22px; text-align: center; letter-spacing: 0; }
.lmf3-reset { border: 0; background: transparent; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--blue-600); cursor: pointer; padding: 7px 0; transition: opacity .15s; }
.lmf3-reset:disabled { color: var(--text-3); cursor: default; }
.lmf3-divider { height: 1px; background: var(--divider); flex-shrink: 0; }
.lmf3-body { flex: 1; overflow-y: auto; }

/* Section */
.lmf3-plain-sec { padding: 16px 20px 14px; }
.lmf3-plain-h { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }

/* Segmented status control */
.lmf3-seg3 { display: flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.lmf3-seg3-btn { flex: 1; border: 0; background: transparent; border-radius: 8px; padding: 7px 0; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: all .15s; }
.lmf3-seg3-btn.on { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.10); }

/* Collapsible section */
.lmf3-sec { }
.lmf3-sec-h { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 20px; background: transparent; border: 0; cursor: pointer; font-family: inherit; transition: background .12s; }
.lmf3-sec-h:hover { background: var(--bg-hover); }
.lmf3-sec-t { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.lmf3-sec-n { font-size: 11px; font-weight: 800; color: var(--blue-600); background: color-mix(in srgb, var(--blue-600) 10%, transparent); border-radius: 999px; padding: 1px 8px; text-transform: none; letter-spacing: 0; }
.lmf3-sec-b { padding: 2px 20px 16px; }

/* Premium chips */
.lmf3-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lmf3-chip { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 13px; border: 1.5px solid var(--divider-strong); border-radius: 999px; background: var(--surface); font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: all .15s; user-select: none; }
.lmf3-chip:hover { border-color: var(--blue-400); color: var(--blue-700); background: color-mix(in srgb, var(--blue-600) 4%, transparent); }
.lmf3-chip.on { background: var(--blue-600); border-color: var(--blue-600); color: #fff; font-weight: 600; box-shadow: 0 2px 8px color-mix(in srgb, var(--blue-600) 30%, transparent); }
.lmf3-chip.on:hover { background: var(--blue-700); border-color: var(--blue-700); }

/* Input fields */
.lmf3-field-lbl { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-3); margin-bottom: 6px; letter-spacing: .01em; }
.lmf3-input { display: flex; align-items: center; border: 1.5px solid var(--divider-strong); border-radius: 9px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.lmf3-input:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-600) 14%, transparent); }
.lmf3-input input { flex: 1; border: 0; background: transparent; font-family: inherit; font-size: 13px; color: var(--text); padding: 9px 12px; outline: none; min-width: 0; }
.lmf3-input input::placeholder { color: var(--text-3); }
.lmf3-input button { border: 0; background: transparent; color: var(--text-3); cursor: pointer; padding: 0 10px; display: flex; align-items: center; justify-content: center; transition: color .1s; }
.lmf3-input button:hover { color: var(--text); }

/* Footer */
.lmf3-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; flex-shrink: 0; background: var(--surface); }
.lmf3-cancel { border: 1.5px solid var(--divider-strong); background: var(--surface); border-radius: 10px; padding: 9px 20px; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: all .15s; }
.lmf3-cancel:hover { background: var(--surface-2); border-color: var(--neutral-400); }
.lmf3-save { border: 0; background: var(--blue-600); border-radius: 10px; padding: 9px 24px; font-family: inherit; font-size: 13.5px; font-weight: 700; color: #fff; cursor: pointer; box-shadow: 0 2px 10px color-mix(in srgb, var(--blue-600) 35%, transparent); transition: all .15s; }
.lmf3-save:hover { background: var(--blue-700); box-shadow: 0 4px 16px color-mix(in srgb, var(--blue-600) 45%, transparent); transform: translateY(-1px); }
.lmf3-save:active { transform: translateY(0); }

/* Selectable cards — Primary & Sec sources */
.lmf3-cards { display: flex; flex-direction: column; gap: 8px; }
.lmf3-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 1.5px solid var(--divider-strong); border-radius: 10px; background: var(--surface); cursor: pointer; text-align: left; transition: all .15s; }
.lmf3-card:hover { border-color: var(--blue-300); background: color-mix(in srgb,var(--blue-600) 3%,transparent); }
.lmf3-card.on { border-color: var(--blue-600); background: color-mix(in srgb,var(--blue-600) 6%,transparent); }
.lmf3-card-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); color: var(--text-3); display: grid; place-items: center; flex-shrink: 0; transition: all .15s; }
.lmf3-card.on .lmf3-card-ic { background: color-mix(in srgb,var(--blue-600) 12%,transparent); color: var(--blue-600); }
.lmf3-card-body { flex: 1; min-width: 0; }
.lmf3-card-t { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.lmf3-card-s { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.lmf3-card.on .lmf3-card-t { color: var(--blue-700); }
.lmf3-card-check { width: 20px; height: 20px; flex-shrink: 0; color: var(--blue-600); display: grid; place-items: center; }

/* USM list alignment fixes — MUI list best practices */
.usm-savedlist { scrollbar-width: thin; scrollbar-color: var(--divider-strong) transparent; }
.usm-savedrow { min-height: 40px; transition: background .1s; }
.usm-savedrow:hover { background: var(--bg-hover) !important; }
.usm-apply { min-height: 40px; transition: background .1s; }
.usm-apply:hover { background: var(--bg-hover) !important; }
.usm-savedh { padding: 8px 4px 4px; }
/* lm-views-del — single clean definition */
.lm-views-del { flex-shrink: 0; min-width: 44px; height: 28px; padding: 0 10px; border: 0; background: var(--surface-2); color: var(--text-3); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 7px; line-height: 1; transition: all .12s; }
.lm-views-del:hover { background: #FEE2E2; color: #CC0000; }

/* ===== INVESTIGATION PANEL (design-system) ===== */
.inv-drawer, .inv-drawer * { font-family: var(--font-sans); }
.inv-drawer button svg, .inv-drawer .ai-block-h svg { display: block; }
.inv-drawer { position: absolute; left: calc(var(--edge) + var(--dockw) + var(--edge)); top: 74px; width: var(--panelw); height: calc(100% - 74px - var(--edge)); z-index: 570; background: var(--surface); border: 1px solid var(--divider-strong); border-radius: 18px; box-shadow: var(--shadow-12); display: flex; flex-direction: column; overflow: hidden; }
.tesla[data-page="livemap"] .inv-drawer { width: clamp(360px, 26vw, 500px); }
.inv-hd { justify-content: space-between; padding: 14px 16px; flex-shrink: 0; gap: 0; }
.inv-hd-left { display: flex; flex-direction: column; gap: 11px; }
.inv-avatar-row { display: flex; gap: 7px; }
.inv-av { width: 30px; height: 30px; padding: 0; margin: 0; box-sizing: border-box; -webkit-appearance: none; appearance: none; border: 2px solid; border-radius: 9px; display: grid; place-items: center; cursor: pointer; transition: opacity .14s; position: relative; background: transparent; line-height: 0; }
.inv-av > span:not(.inv-av-flag) { display: grid; place-items: center; line-height: 0; width: 100%; height: 100%; }
.inv-av > span svg { display: block; }
.inv-av .ico, .inv-av svg { width: 14px !important; height: 14px !important; display: block; vertical-align: top; flex-shrink: 0; }
.inv-av.dim { opacity: .3; }
.inv-av-flag { position: absolute; top: -3px; right: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--red-500); border: 1.5px solid var(--surface); }
.inv-hd-btn { width: 26px; height: 26px; border: 1px solid var(--divider); border-radius: 7px; background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; padding: 0; line-height: 0; transition: all .12s; }
.inv-hd-btn svg { display: block; }
.inv-hd-btn:hover { background: var(--bg-hover); color: var(--text); }
.inv-hd-close:hover { background: var(--red-50,#FFF5F5); color: var(--red-600); border-color: var(--red-200,#FECACA); }
.inv-drawer-empty { box-shadow: var(--shadow-12); }

/* ── Empty-state geo-transaction hero — pins dropping onto the map ── */
.inv-hero { position: relative; width: 132px; height: 132px; margin: 2px auto 12px; display: grid; place-items: center; }
.inv-hero-grid { position: absolute; inset: 0; border-radius: 50%; background:
    radial-gradient(circle, color-mix(in srgb, #2563EB 9%, transparent) 0%, transparent 70%),
    repeating-linear-gradient(0deg, color-mix(in srgb, #2563EB 7%, transparent) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, color-mix(in srgb, #2563EB 7%, transparent) 0 1px, transparent 1px 22px);
  -webkit-mask: radial-gradient(circle, #000 56%, transparent 72%); mask: radial-gradient(circle, #000 56%, transparent 72%); }
/* dropping location pins */
.inv-hero-drop { position: absolute; left: 50%; top: 50%; }
.inv-hero-drop.d1 { transform: translate(-24px, -36px); }
.inv-hero-drop.d2 { transform: translate(40px, 4px); }
.inv-hero-drop.d3 { transform: translate(-34px, 30px); }
.inv-hero-drop .pin { position: absolute; left: 0; top: 0; width: 15px; height: 15px; margin: -24px 0 0 -7.5px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: currentColor; box-shadow: 0 4px 8px -2px rgba(31,41,55,.35); transform-origin: 50% 50%; }
.inv-hero-drop .pin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5.5px; height: 5.5px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.inv-hero-drop .ripple { position: absolute; left: 0; top: 0; width: 22px; height: 8px; margin: -4px 0 0 -11px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0; }
.inv-hero-drop.d1 { color: #2563EB; } .inv-hero-drop.d1 .pin { background: #2563EB; }
.inv-hero-drop.d2 { color: #6D5AE6; } .inv-hero-drop.d2 .pin { background: #6D5AE6; }
.inv-hero-drop.d3 { color: #E8833A; } .inv-hero-drop.d3 .pin { background: #E8833A; }
.inv-hero-drop .pin  { animation: invPinDrop 3.6s cubic-bezier(.5,0,.4,1) infinite; }
.inv-hero-drop .ripple { animation: invPinRipple 3.6s ease-out infinite; }
.inv-hero-drop.d2 .pin, .inv-hero-drop.d2 .ripple { animation-delay: 1.2s; }
.inv-hero-drop.d3 .pin, .inv-hero-drop.d3 .ripple { animation-delay: 2.4s; }
/* glass tile — circular geo "lens" */
.inv-hero-tile { position: relative; z-index: 2; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #fff, color-mix(in srgb, #2563EB 10%, #fff)); border: 1px solid color-mix(in srgb, #2563EB 24%, transparent); box-shadow: 0 14px 30px -12px color-mix(in srgb, #2563EB 55%, transparent), 0 0 0 6px color-mix(in srgb, #2563EB 6%, transparent), inset 0 1px 0 rgba(255,255,255,.8); animation: invTileFloat 5s ease-in-out infinite; }
@keyframes invPinDrop {
  0%      { transform: rotate(-45deg) translate(0, -46px); opacity: 0; }
  14%     { opacity: 1; }
  26%     { transform: rotate(-45deg) translate(0, 0); }
  33%     { transform: rotate(-45deg) translate(0, -7px); }
  40%     { transform: rotate(-45deg) translate(0, 0); }
  82%     { transform: rotate(-45deg) translate(0, 0); opacity: 1; }
  96%,100%{ transform: rotate(-45deg) translate(0, 0); opacity: 0; }
}
@keyframes invPinRipple {
  0%, 24%  { transform: scale(.3); opacity: 0; }
  30%      { transform: scale(.5); opacity: .9; }
  52%      { transform: scale(1.8); opacity: 0; }
  100%     { opacity: 0; }
}
@keyframes invTileFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .inv-hero-drop .pin, .inv-hero-drop .ripple, .inv-hero-tile { animation: none !important; }
  .inv-hero-drop .pin { opacity: 1 !important; transform: rotate(-45deg) !important; }
}
.inv-step-ic svg, .inv-step-ic .ico { width: var(--ic-size, 16px) !important; height: var(--ic-size, 16px) !important; display: block; vertical-align: top; transform: translateY(var(--ic-nudge, 0)); }
.inv-step-ic svg { stroke-width: var(--ic-sw, 1.75); }
.inv-step-ic svg * { stroke-width: var(--ic-sw, 1.75); }
.inv-minimized { height: auto !important; overflow: visible; }
/* tabs */
.inv-tabs-bar { border-bottom: 1px solid var(--divider); padding: 4px 14px 0; flex-shrink: 0; overflow-x: auto; scrollbar-width: none; }
.inv-tabs-inner button { outline: none; }
.inv-tabs-inner button:focus { outline: none; }
.inv-tabs-inner button:focus-visible { outline: 2px solid var(--blue-300); outline-offset: -2px; }
.inv-tabs-bar .subj-tabs { margin-bottom: 8px; gap: 2px; padding: 4px 3px; }
.inv-tabs-bar .subj-tabs button { padding: 7px 7px; font-size: 12px; white-space: nowrap; }
.inv-tabs-bar .subj-tabs button .inv-tab-n { margin-left: 4px; }
.inv-tabs-bar::-webkit-scrollbar { display: none; }
.inv-tabs-inner { flex-wrap: nowrap; overflow: visible; }
.inv-tab-n { font-size: 10px; font-weight: 800; background: var(--surface-3); border-radius: 999px; padding: 1px 5px; margin-left: 4px; color: var(--text-3); }
.inv-tabs-inner button[data-on] .inv-tab-n { background: color-mix(in srgb,var(--blue-600) 18%,transparent); color: var(--blue-700); }
/* body */
.inv-body { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--divider-strong) transparent; }
.inv-body::-webkit-scrollbar { width: 3px; }
.inv-body::-webkit-scrollbar-thumb { background: var(--divider-strong); border-radius: 2px; }
.inv-sect { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.inv-tz { font-size: 10.5px; font-weight: 700; color: var(--text-4); letter-spacing: .03em; }
/* entity row — extends txd-device */
.inv-ent-row { cursor: default !important; }
.inv-ent-row .body .s { font-size: 11px; }
.inv-risk { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
/* add row button */
.inv-add-row { display: flex; align-items: center; gap: 7px; width: 100%; padding: 9px 12px; border: 1.5px dashed var(--divider-strong); border-radius: 10px; background: transparent; font-family: var(--font-sans); font-size: 12.5px; font-weight: 700; color: var(--text-3); cursor: pointer; transition: all .12s; }
.inv-add-row:hover, .inv-add-row.active { border-color: var(--blue-500); color: var(--blue-600); background: var(--blue-50); }
.inv-hint { display: flex; align-items: center; gap: 7px; padding: 8px 12px; background: var(--blue-50); border: 1px solid var(--blue-200,#BFDBFE); border-radius: 9px; font-size: 12px; font-weight: 600; color: var(--blue-700); }
/* timeline */
.inv-tl-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--divider); }
.inv-tl-item:last-child { border-bottom: 0; }
.inv-tl-item.susp { background: color-mix(in srgb,var(--red-500) 4%,transparent); border-radius: 9px; padding: 9px 8px; margin: 0 -8px; }
.inv-tl-item.gap  { background: color-mix(in srgb,#F97316 5%,transparent); border-radius: 9px; padding: 9px 8px; margin: 0 -8px; }
.inv-tl-stripe { width: 3px; border-radius: 2px; flex-shrink: 0; min-height: 20px; align-self: stretch; }
.inv-tl-main { flex: 1; min-width: 0; }
.inv-tl-row1 { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.inv-tl-time { font-size: 10.5px; font-weight: 700; color: var(--text-3); }
.inv-tl-sid  { font-size: 10px; font-weight: 700; display: flex; align-items: center; gap: 3px; }
.inv-tl-label { font-size: 12.5px; font-weight: 600; color: var(--text); }
.inv-tl-note { font-size: 11.5px; color: var(--text-2); margin-top: 4px; padding: 4px 8px; background: var(--surface-2); border-radius: 6px; border-left: 2px solid var(--divider-strong); }
.inv-tl-note.warn { border-left-color: var(--red-500); background: var(--red-50,#FFF5F5); color: var(--red-700,var(--red-d)); }
.inv-tl-note.gap  { border-left-color: #F97316; background: #FFF7ED; }
.inv-fly { width: 20px; height: 20px; border: 1px solid var(--divider); border-radius: 5px; background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--blue-600); transition: all .1s; margin-left: auto; }
.inv-fly:hover { background: var(--blue-50); border-color: var(--blue-400); }
/* locations */
.inv-loc-card { border: 1px solid var(--divider); border-radius: 11px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.inv-loc-top { display: flex; align-items: center; gap: 9px; }
.inv-loc-ic { font-size: 18px; flex-shrink: 0; }
.inv-loc-name { font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.inv-loc-coord { font-size: 10.5px; color: var(--text-4); }
.inv-unconf { font-size: 10px; font-weight: 700; background: #FFF7ED; color: #C2410C; border: 1px solid #FED7AA; border-radius: 5px; padding: 1px 6px; }
.inv-loc-sids { display: flex; flex-wrap: wrap; gap: 4px; }
.inv-loc-note { font-size: 11.5px; color: var(--text-2); }
.inv-sid-chip { font-size: 10.5px; font-weight: 700; border: 1px solid; border-radius: 999px; padding: 1px 8px; font-family: var(--font-mono); line-height: 18px; height: 20px; display: inline-flex; align-items: center; }
/* gaps */
.inv-gap-card { border: 1px solid var(--divider); border-radius: 11px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.inv-gap-card.is-high { border-color: #FECACA; }
.inv-gap-head { display: flex; align-items: flex-start; gap: 10px; }
.inv-gap-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.inv-gap-title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; margin-bottom: 2px; }
.inv-gap-time { font-size: 11px; font-weight: 600; color: var(--text-3); }
.inv-gap-note { font-size: 11.5px; color: var(--text-2); }
.inv-sev-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border-radius: 5px; padding: 1px 6px; border: 1px solid currentColor; opacity: .9; }
/* connections */
.inv-conn-lbl { margin-bottom: 2px; }
.inv-conn-card { border: 1px solid var(--divider); border-radius: 11px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; }
.inv-conn-card.crit { border-left: 3px solid var(--red-500); }
.inv-conn-card.high { border-left: 3px solid #F97316; }
.inv-conn-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.inv-conn-label { font-size: 13px; font-weight: 700; color: var(--text); }
.inv-conn-val { font-size: 11.5px; color: var(--text-2); }
.inv-conn-ids { display: flex; flex-wrap: wrap; gap: 4px; }
/* notes */
.inv-notes-ta { border: 1.5px solid var(--divider-strong); border-radius: 10px; padding: 10px 12px; font-family: var(--font-sans); font-size: 13px; color: var(--text); background: var(--surface); resize: none; outline: none; transition: border-color .14s; width: 100%; }
.inv-notes-ta:focus { border-color: var(--blue-500); }
.inv-notes-submit { align-self: flex-end; height: 30px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--blue-600); font-family: var(--font-sans); font-size: 12.5px; font-weight: 700; color: #fff; cursor: pointer; transition: background .12s; }
.inv-notes-submit:disabled { opacity: .4; cursor: default; }
.inv-notes-submit:not(:disabled):hover { background: var(--blue-700); }
.inv-note-card { border: 1px solid var(--divider); border-radius: 10px; padding: 10px 12px; }
.inv-note-time { font-size: 10.5px; font-weight: 700; color: var(--text-4); margin-bottom: 4px; }
.inv-note-text { font-size: 12.5px; color: var(--text); line-height: 1.55; }
/* footer */
.inv-foot { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-top: 1px solid var(--divider); background: var(--surface-2); flex-shrink: 0; }
.inv-foot-stat { font-size: 12px; color: var(--text-3); font-weight: 600; }
.inv-export-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 14px; border: 1px solid var(--blue-600); border-radius: 8px; background: var(--blue-600); font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; color: #fff; cursor: pointer; transition: all .12s; }
.inv-export-btn svg { display: block; }
.inv-export-btn:hover { background: var(--blue-700); border-color: var(--blue-700); }
/* lm trigger pill */
.lm-inv-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 1px solid var(--divider-strong); border-radius: 999px; background: var(--surface); font-family: var(--font-sans); font-size: 12px; font-weight: 700; color: var(--text-2); cursor: pointer; transition: all .14s; }
.lm-inv-btn:hover { border-color: var(--blue-400); color: var(--blue-600); }
.lm-inv-btn.on { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

/* search → investigate */
.sp-inv-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px; background: var(--blue-50); border-bottom: 1px solid var(--blue-100,#DBEAFE); margin: 0 -6px; }
.sp-inv-hint { font-size: 11.5px; font-weight: 700; color: var(--blue-700); }
.sp-inv-btn { height: 26px; padding: 0 12px; border: 1px solid var(--blue-400); border-radius: 999px; background: var(--blue-600); font-family: var(--font-sans); font-size: 11.5px; font-weight: 700; color: #fff; cursor: pointer; transition: background .12s; display: flex; align-items: center; gap: 5px; }
.sp-inv-btn:hover { background: var(--blue-700); }
.sp-item-inv { padding-right: 6px; }
.sp-inv-single { width: 26px; height: 26px; border: 1px solid var(--divider); border-radius: 7px; background: var(--surface); font-size: 13px; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; transition: all .12s; }
.sp-inv-single:hover { background: var(--blue-50); border-color: var(--blue-400); }

/* investigation empty state */
.inv-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 24px; gap: 10px; }
.inv-empty-ic { font-size: 36px; }
.inv-empty-title { font-size: 15px; font-weight: 700; color: var(--text); }
.inv-empty-sub { font-size: 13px; color: var(--text-3); line-height: 1.55; }
.inv-empty-example { background: var(--surface-2); border: 1px solid var(--divider); border-radius: 10px; padding: 12px 16px; width: 100%; margin-top: 8px; }
.inv-empty-ex-label { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-4); margin-bottom: 6px; }
.inv-empty-ex-ids { font-size: 13px; font-weight: 700; color: var(--blue-700); background: var(--blue-50); border-radius: 6px; padding: 6px 10px; }

