/* V10: configure from the dashboard. Column search, policy builder, live traffic, VxSure's policies, the AI switch.
   Same look as the rest: pure black, hairlines, one accent, red and amber only for risk. */

/* ---------- Column headings with search ---------- */
#col-heads { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 6; pointer-events: none; }
#col-heads::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 52px;
  background: linear-gradient(to bottom, #000 70%, rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: -1;
}
#map-bottom-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  background: linear-gradient(to top, #000 60%, rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: 5;
}
.ch { position: absolute; left: 0; top: 8px; width: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; gap: 2px; }
.ch > * { pointer-events: auto; }
.ch-lbl {
  color: var(--c-ink-3); font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; margin-right: 2px;
}
.ch-btn, .ch-set {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none; padding: 0; border: 0; border-radius: 6px;
  background: none; color: #9ca3af; cursor: pointer; transition: color .15s, background .15s;
}
.ch-btn svg, .ch-set svg { display: block; opacity: .85; }
.ch-btn:hover, .ch-set:hover { background: rgba(255, 255, 255, 0.08); color: #f3f4f6; }
.ch-btn:hover svg, .ch-set:hover svg { opacity: 1; }
.ch-btn:focus-visible, .ch-set:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.45); }
.ch.open .ch-lbl, .ch.open .ch-btn, .ch.open .ch-set { display: none; }
.ch-find {
  display: flex; align-items: center; gap: 7px; width: 250px; height: 30px; margin-top: -3px; padding: 0 6px 0 10px; flex: none;
  border: 1px solid #5886bd; border-radius: 9px; background: #07090c; color: var(--c-ink-3); box-shadow: 0 10px 28px #000c;
}
.ch-find input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--c-ink); font: inherit; font-size: 12px; }
.ch-find input::placeholder { color: #6b7482; }
.ch-x { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; color: var(--c-ink-3); }
.ch-x:hover { color: var(--c-ink); background: var(--c-hover); }
.ch-list {
  position: absolute; top: 32px; left: -150px; width: 300px; max-height: 360px; overflow: auto; padding: 5px;
  background: #111419; border: 1px solid #353b45; border-radius: 10px; box-shadow: 0 18px 44px #000c;
}
.ch-list .ask-row { height: auto; min-height: 40px; padding: 5px 9px; }
.ch-list .ask-row .nm { display: flex; flex-direction: column; min-width: 0; font-size: var(--fs-12, 12px); }
.ch-list .ask-row .nm small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.ch-list .ask-row .ic { display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--ink-2); }
body.in-journey #col-heads, body.in-policy #col-heads,
body.in-journey #map-bottom-band, body.in-policy #map-bottom-band,
body.in-journey #hints, body.in-journey #iso-chip { display: none !important; }

/* ---------- Policy builder (left) ---------- */
#pbuild {
  position: fixed; top: 116px; right: 14px; bottom: 14px; width: 346px; z-index: 28;
  display: flex; flex-direction: column; overflow: hidden;
  background: #111419; border: 1px solid #323841; border-radius: 14px; box-shadow: -8px 12px 36px #0006;
  animation: pb-in .22s cubic-bezier(.2, .8, .2, 1);
}
@keyframes pb-in { from { opacity: 0; transform: translateX(14px); } }
#pbuild .p-tab { display: inline-flex; align-items: center; gap: 6px; }
/* The ask bar sits between the zoom controls and the right sidebar, whatever the sidebar holds. */
body.has-panel #ask, body.in-build #ask { left: calc(360px + (100vw - 360px - 386px) / 2); width: min(700px, calc(100vw - 360px - 400px)); min-width: 0; }
.pb-back { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 9px 0 5px; margin-left: -8px; border-radius: 9px; color: var(--ink-2); font-size: 12px; font-weight: 500; }
.pb-back:hover { color: var(--ink); background: var(--surface-2); }
#pbuild .p-h { margin: 15px 0 7px; }
.pb-f { display: grid; gap: 5px; margin-bottom: 8px; font-size: var(--fs-11, 11px); color: var(--ink-3); }
.pb-f > span { font-weight: 500; }
.pb-f select, .pb-f input {
  width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--c-line-2); border-radius: 9px; background: #08090b; color: var(--c-ink);
  font: inherit; font-size: var(--fs-12, 12px); outline: 0; transition: border-color .15s;
}
.pb-f select:focus, .pb-f input:focus { border-color: #5886bd; }
.pb-f input::placeholder { color: #6b7482; }
.pb-hint { margin: -2px 0 8px; font-size: var(--fs-11, 11px); line-height: 1.45; color: var(--ink-3); }
.pb-risk { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: #0b0e13; }
.pb-risk.b-high { border-color: var(--red-line); }
.pb-risk.b-mid { border-color: #5a4520; }
.pb-risk .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--ink-2); }
.pb-risk.b-high .ic { background: var(--red-soft); color: var(--red); }
.pb-risk.b-mid .ic { background: var(--amber-soft); color: var(--amber); }
.pb-risk > div { flex: 1; min-width: 0; }
.pb-risk small { display: block; font-size: var(--fs-11, 11px); color: var(--ink-3); letter-spacing: .03em; text-transform: uppercase; }
.pb-risk b { display: block; font-size: 13px; font-weight: 600; }
.pb-risk span:not(.ic):not(.score) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-11, 11px); color: var(--ink-3); }
.pb-risk .score { font-size: 20px; }
.pb-acts { gap: 4px; }
.pb-seg { margin-top: 2px; }
.pb-seg button { font-size: var(--fs-11, 11px); padding: 0 6px; }
.pb-name { margin: -2px 0 8px; font-size: var(--fs-12, 12px); font-weight: 500; color: var(--ink); line-height: 1.4; }
.pb-saves { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--c-line); }
.pb-saves li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--c-line); font-size: 12px; color: var(--ink-2); }
.pb-saves small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--ink-3); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Make-a-policy link under the panel actions */
.p-more {
  display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; height: 36px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: var(--fs-12, 12px); font-weight: 600;
  min-width: 0; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-more svg { color: var(--blue-text); flex: none; }
.p-more:hover { background: var(--surface-2); border-color: #5886bd; }

/* ---------- Bandwidth choke panel ---------- */
.ck-big { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.ck-big b { font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ck-big b.hot { color: var(--amber-text); }
.ck-big b.ok { color: var(--blue-text); }
.ck-big span { font-size: var(--fs-11, 11px); line-height: 1.45; color: var(--ink-3); }
.ck-bar { position: relative; height: 6px; margin-top: 12px; border-radius: 3px; background: #1a1f27; overflow: hidden; }
.ck-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.ck-fill.hot { background: var(--amber); }
.ck-fill.ok { background: var(--blue-line); }
.ck-legend { display: flex; justify-content: space-between; margin-top: 5px; font-size: 11px; color: var(--ink-3); }
.ck-legend b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.ck-path { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); font-size: var(--fs-11, 11px); color: var(--ink-3); }
.ck-path b { color: var(--amber-text); font-weight: 600; }
.ck-path svg { color: var(--ink-3); opacity: .6; }
.ck-users { display: grid; border-top: 1px solid var(--line); }
.ck-user { position: relative; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 5px 2px; border-bottom: 1px solid var(--line); text-align: left; overflow: hidden; }
.ck-user:hover { background: var(--surface-2); }
.ck-user .t { flex: 1; min-width: 0; }
.ck-user .t b { display: block; font-size: var(--fs-12, 12px); font-weight: 500; }
.ck-user .t small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--ink-3); }
.ck-mb { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-pc { width: 34px; text-align: right; font-size: 12px; font-weight: 600; color: var(--amber-text); font-variant-numeric: tabular-nums; }
.ck-user i { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--amber); opacity: .55; }
.ck-fix { display: grid; gap: 6px; }
.ck-fix label { margin-top: 4px; font-size: var(--fs-11, 11px); font-weight: 500; color: var(--ink-3); }
.ck-seg button { font-size: var(--fs-11, 11px); padding: 0 6px; }
.ck-after { margin-top: 6px; padding: 10px 12px 11px; border-radius: 12px; border: 1px solid var(--line); background: #0b0e13; }
.ck-after .ck-bar { margin-top: 0; }
.ck-after p { margin-top: 8px; font-size: var(--fs-11, 11px); line-height: 1.45; color: var(--ink-3); }
.ck-after p b { color: var(--blue-text); }

/* Live requests inside the panel */
.p-h-act { display: flex; align-items: center; justify-content: space-between; }
.p-h-act button { display: inline-flex; align-items: center; gap: 3px; color: var(--blue-text); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.p-h-act button:hover { text-decoration: underline; text-underline-offset: 2px; }
.reqs { display: grid; border-top: 1px solid var(--line); }
.req {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; min-height: 32px; padding: 0 2px;
  border-bottom: 1px solid var(--line); text-align: left; font-size: var(--fs-11, 11px); color: var(--ink-2);
}
.req:hover { background: var(--surface-2); }
.req .tn { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.req .u { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req i, .tr-tbl i { font-style: normal; font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .03em; color: var(--ink-3); margin-right: 5px; }
.res { white-space: nowrap; color: var(--ink-3); font-size: 11px; }
.res.bad { color: var(--red-text); }
.res.stop { color: var(--ink); }
.res.ok { color: var(--blue-text); }

/* ---------- Live traffic tray ---------- */
#traffic {
  position: fixed; left: 14px; right: 14px; bottom: 76px; height: 268px; z-index: 24;
  display: flex; flex-direction: column; overflow: hidden;
  background: #07090c; border: 1px solid #2a3039; border-radius: 14px; box-shadow: 0 -10px 40px #000c;
  animation: tr-in .22s cubic-bezier(.2, .8, .2, 1);
}
@keyframes tr-in { from { opacity: 0; transform: translateY(14px); } }
.tr-head { flex: none; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--c-line); }
.tr-head > b { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-12, 12px); font-weight: 600; white-space: nowrap; }
.tr-head > b svg { color: var(--c-ink-3); }
.tr-scope { display: inline-flex; align-items: center; gap: 4px; max-width: 260px; height: 24px; padding: 0 8px; border-radius: 12px; color: var(--c-ink-3); font-size: var(--fs-11, 11px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: inset 0 0 0 1px var(--c-line-2); }
.tr-scope.on { color: var(--c-ink); box-shadow: inset 0 0 0 1px #5886bd; }
.tr-scope button { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 4px; color: var(--c-ink-3); }
.tr-scope button:hover { color: var(--c-ink); background: var(--c-hover); }
.tr-find { display: flex; align-items: center; gap: 7px; width: 240px; height: 28px; padding: 0 9px; border: 1px solid var(--c-line); border-radius: 8px; color: var(--c-ink-3); }
.tr-find:focus-within { border-color: #5886bd; }
.tr-find input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--c-ink); font: inherit; font-size: 12px; }
.tr-find input::placeholder { color: #6b7482; }
.tr-kind { padding: 2px; border-radius: 9px; }
.tr-kind button { flex: none; height: 22px; padding: 0 9px; border-radius: 7px; font-size: var(--fs-11, 11px); font-weight: 500; }
.tr-count { font-size: var(--fs-11, 11px); color: var(--c-ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tr-sp { flex: 1; }
.tr-logs { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; color: var(--c-ink-3); white-space: nowrap; }
.tr-logs a { color: var(--c-ink-2); text-decoration: none; }
.tr-logs a:hover { color: var(--c-ink); text-decoration: underline; text-underline-offset: 2px; }
.tr-body { flex: 1; min-height: 0; overflow: auto; }
.tr-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tr-tbl th { position: sticky; top: 0; z-index: 1; padding: 7px 10px; text-align: left; font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-ink-3); background: #07090c; box-shadow: inset 0 -1px 0 var(--c-line); white-space: nowrap; }
.tr-tbl td { padding: 6px 10px; border-bottom: 1px solid #12151a; color: var(--c-ink-2); white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.tr-tbl tr[data-f] { cursor: pointer; }
.tr-tbl tr[data-f]:hover td { background: #0e1116; color: var(--c-ink); }
.tr-tbl tr.sel td { background: #0f1724; }
.tr-tbl .tn { font-variant-numeric: tabular-nums; color: var(--c-ink-3); }
.tr-tbl .r { text-align: right; }
.tr-tbl .u { max-width: 320px; color: var(--c-ink); }
.tr-tbl td:nth-child(9) { max-width: 150px; }
body.has-panel .tr-tbl .u { max-width: 210px; }
body.has-panel .tr-tbl th:nth-child(4), body.has-panel .tr-tbl td:nth-child(4), body.has-panel .tr-tbl th:nth-child(3), body.has-panel .tr-tbl td:nth-child(3) { display: none; }
.tr-none { padding: 26px 10px !important; text-align: center; color: var(--c-ink-3) !important; }
body.in-traffic #zoom { display: none; }

/* ---------- New policy button and the AI switch ---------- */
.ask-new {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px;
  color: var(--ink-2); font-size: var(--fs-12, 12px); font-weight: 500; white-space: nowrap; box-shadow: inset 0 0 0 1px #30353e;
}
.ask-new:hover { color: var(--ink); background: var(--surface-2); }
body.in-build .ask-new { color: var(--ink); box-shadow: inset 0 0 0 1px #5886bd; }
body.ai-off .ask-spark { display: none; }
/* AI on/off, always visible at the start of the ask bar */
.ask-ai {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 10px 0 11px; border-radius: 10px;
  color: var(--ink-3); font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .04em; box-shadow: inset 0 0 0 1px #30353e;
}
.ask-ai:hover { color: var(--ink); background: var(--surface-2); }
.ask-ai[aria-checked="true"] { color: var(--ui-ink); }
.ask-ai-sw { position: relative; width: 26px; height: 15px; border-radius: 8px; background: rgba(255, 255, 255, 0.16); transition: background .15s; }
.ask-ai-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #8f8f8f; transition: transform .15s, background .15s; }
.ask-ai[aria-checked="true"] .ask-ai-sw { background: #f3f4f6; }
.ask-ai[aria-checked="true"] .ask-ai-sw::after { transform: translateX(11px); background: #0a0a0a; }
body.ai-off #ask .ask-field { padding-left: 12px; }
#acct-pop {
  position: fixed; top: 58px; right: 16px; z-index: 60; width: 292px; padding: 6px;
  background: #15191f; border: 1px solid #353b45; border-radius: 12px; box-shadow: 0 18px 44px #000c;
}
.ac-who { padding: 8px 10px 10px; border-bottom: 1px solid var(--c-line); margin-bottom: 4px; }
.ac-who b { display: block; font-size: 13px; font-weight: 600; }
.ac-who span { font-size: var(--fs-11, 11px); color: var(--c-ink-3); }
.ac-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 8px; text-align: left; }
.ac-row:hover { background: var(--c-hover); }
.ac-row > span:first-child { flex: 1; min-width: 0; }
.ac-row b { display: block; font-size: var(--fs-12, 12px); font-weight: 500; }
.ac-row small { display: block; margin-top: 1px; font-size: 11px; line-height: 1.4; color: var(--c-ink-3); }
.ac-row[data-ac="wizard"] svg { color: var(--c-ink-3); transition: transform .15s, color .15s; }
.ac-row[data-ac="wizard"]:hover svg { color: var(--c-ink); transform: translateX(2px); }
.ac-h { margin: 8px 10px 3px; padding-top: 8px; border-top: 1px solid var(--c-line); font-size: var(--fs-11, 11px); font-weight: 500; color: var(--c-ink-3); }
.ac-link { display: block; padding: 6px 10px; border-radius: 7px; color: var(--c-ink-2); font-size: var(--fs-12, 12px); text-decoration: none; }
.ac-link:hover { background: var(--c-hover); color: var(--c-ink); }

/* ---------- Timeline lens ---------- */
.tl-lens { flex: none; display: inline-flex; padding: 2px; border: 1px solid var(--c-line-2); border-radius: 8px; }
.tl-lens button { height: 20px; padding: 0 8px; border-radius: 6px; color: var(--c-ink-3); font-size: var(--fs-11, 11px); font-weight: 500; }
.tl-lens button:hover { color: var(--c-ink); }
.tl-lens button.on { background: #2a3039; color: var(--c-ink); }
.tl-hist.bw .tl-bar i { background: #3a4a62; }
.tl-hist.bw .tl-bar.tb-mid i { background: #9b7c43; }
.vtl { max-width: 640px; }

/* ---------- VxSure's policies ---------- */
#pview {
  position: fixed; top: 104px; left: 0; right: 0; bottom: 0; z-index: 23; overflow: hidden;
  display: grid; grid-template-columns: 230px 250px minmax(0, 1fr); column-gap: 0;
  background: var(--bg) url('assets/flow-lines.svg') center / cover no-repeat;
}
#pview[data-enter="1"] { animation: j-fade .22s ease-out; }
#pview[data-enter="1"] .pv-hub { animation: pv-slide .42s cubic-bezier(.2, .8, .2, 1) backwards; }
#pview[data-enter="1"] .pv-areas, #pview[data-enter="1"] .pv-main { animation: j-in .38s .08s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes pv-slide { from { opacity: .2; transform: translateX(38vw) scale(.9); } }
#pview .j-back { top: 18px; }
.pv-lines { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.pv-lines path { fill: none; stroke: rgba(200, 214, 235, .14); stroke-width: 1; }
.pv-lines path.on { stroke: rgba(200, 214, 235, .5); }
.pv-hub { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 16px 60px; text-align: center; }
.pv-disc {
  width: 112px; height: 112px; margin-bottom: 10px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 28%, #222C3D 0%, #0E131C 70%, #090C12 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 -10px 20px rgba(0, 0, 0, .45), 0 14px 34px rgba(0, 0, 0, .75), 0 0 80px rgba(61, 139, 255, .2);
}
.pv-hub > b { font-size: 15px; font-weight: 600; }
.pv-sum { font-size: 12px; color: var(--c-ink-3); font-variant-numeric: tabular-nums; }
.pv-open { font-size: var(--fs-11, 11px); color: var(--red-text); }
.pv-areas { position: relative; z-index: 1; min-height: 0; overflow-y: auto; padding: 64px 14px 90px 10px; scrollbar-width: none; }
.pv-areas::-webkit-scrollbar { display: none; }
.pv-fam { margin: 14px 10px 4px; font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--c-ink-3); }
.pv-fam:first-child { margin-top: 0; }
.pv-area { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 31px; padding: 5px 10px; border-radius: 8px; text-align: left; color: var(--c-ink-2); font-size: var(--fs-12, 12px); transition: background .12s, color .12s; }
.pv-area:hover { background: var(--c-hover); color: var(--c-ink); }
.pv-area.on { background: #1a1e24; color: var(--c-ink); font-weight: 500; box-shadow: inset 2px 0 0 var(--c-ink); }
.pv-area.off .pv-an { opacity: .55; }
.pv-an { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-area em { flex: none; font-style: normal; font-size: var(--fs-11, 11px); font-weight: 500; color: var(--red-text); }
.pv-area small { flex: none; font-size: 11px; color: var(--c-ink-3); font-variant-numeric: tabular-nums; font-weight: 400; }
.pv-main { position: relative; z-index: 1; min-width: 0; min-height: 0; overflow-y: auto; padding: 56px 36px 110px 28px; border-left: 1px solid var(--c-line); background: rgba(0, 0, 0, .78); user-select: text; }
.pv-main > * { max-width: 1000px; }
.pv-main .c-title .vbtn.ghost { text-decoration: none; }
.pv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.pv-stat { min-width: 0; padding: 12px 16px 12px 0; }
.pv-stat + .pv-stat { padding-left: 16px; border-left: 1px solid var(--c-line); }
.pv-stat span { display: block; font-size: 11px; color: var(--c-ink-3); }
.pv-stat b { display: block; margin-top: 3px; font-size: var(--fs-20, 20px); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pv-stat.hot b { color: var(--red-text); }
.pv-stat.ok b { color: var(--blue-text); }
.pv-stat small { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--c-ink-3); }
.pv-lead { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: #0b0e13; box-shadow: inset 0 0 0 1px var(--c-line-2); }
.pv-lead.b-high { box-shadow: inset 0 0 0 1px var(--red-line); }
.pv-lead.b-mid { box-shadow: inset 0 0 0 1px #5a4520; }
.pv-lead .pv-sc { font-size: var(--fs-20, 20px); width: 40px; }
.pv-lead .pv-rk-t b { font-size: var(--fs-13, 13px); }
.pv-lead .pv-rk-t span { white-space: normal; }
.pv-rules-h { display: flex; align-items: baseline; gap: 12px; margin-top: 26px; }
.pv-rules-h .hub-h { margin: 0; }
.pv-rules-h span { font-size: var(--fs-11, 11px); color: var(--c-ink-3); }
.pv-main .pv-rules-h + .c-tabs { margin-top: 8px; }
.pv-risks { margin-top: 18px; }
.pv-risks .hub-h { margin: 0 0 6px; }
.pv-rk { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 4px; border-top: 1px solid var(--c-line); }
.pv-rk:last-child { border-bottom: 1px solid var(--c-line); }
.pv-sc { flex: none; width: 34px; text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--blue-text); }
.pv-sc.b-high { color: var(--red-text); }
.pv-sc.b-mid { color: var(--amber-text); }
.pv-rk-t { flex: 1; min-width: 0; }
.pv-rk-t b { display: block; font-size: var(--fs-12, 12px); font-weight: 500; }
.pv-rk-t span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-11, 11px); color: var(--c-ink-3); }
.pv-main .c-tabs { margin-top: 20px; }
.pv-main .c-tab { background: none; border: 0; cursor: pointer; }
body.in-policy #zoom, body.in-policy #iso-chip, body.in-policy #hints { display: none !important; }
@media (max-width: 1100px) {
  #pview { grid-template-columns: 0 230px minmax(0, 1fr); }
  .pv-hub, .pv-lines { display: none; }
}

/* ---------- Settings: where the map and Settings meet ---------- */
.row-src { margin-left: 8px; font-style: normal; font-size: var(--fs-11, 11px); font-weight: 500; color: var(--blue-text); }
.on-map { margin-left: 6px; font-size: var(--fs-11, 11px); color: var(--c-ink-3); letter-spacing: .02em; }
.browse-note { margin: -6px 0 14px; max-width: 760px; font-size: var(--fs-12, 12px); line-height: 1.5; color: var(--c-ink-3); }
.c-onmap { margin-top: 14px; }
.cn-crumb { display: flex; align-items: center; color: var(--c-ink-3); margin: 0 -6px 0 -4px; }
.cn-item.sub.on::after { display: none; }
.cn-item.sub.on { color: var(--c-ink-2); }
.j-ip { color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* The user view starts under the nav too, so its Overview button is not hidden behind it. */
#journey { top: 104px; }
.ch-find, .ch-list { translate: var(--nudge, 0) 0; }

/* V11: no wires in the policy view; bigger rule tools */
.pv-lines { display: none; }
.row-tools { gap: 2px; }
.row-tools button { width: 32px; height: 32px; border-radius: 8px; color: var(--c-ink-2); }
.row-tools button:hover { background: #1c2129; color: var(--c-ink); }

/* V11 policy view: VxSure heads the area rail, rules read as cards */
#pview { grid-template-columns: 280px minmax(0, 1fr); }
.pv-areas { padding: 64px 14px 90px 16px; border-right: 1px solid var(--c-line); background: rgba(0, 0, 0, .6); }
.pv-areas > .pv-hub { flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; padding: 4px 10px 16px; margin-bottom: 10px; border-bottom: 1px solid var(--c-line); text-align: left; }
.pv-areas > .pv-hub .pv-disc { width: 46px; height: 46px; margin: 0; flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 0 30px rgba(61, 139, 255, .18); }
.pv-areas > .pv-hub b { display: block; font-size: 14px; }
.pv-areas > .pv-hub .pv-sum, .pv-areas > .pv-hub .pv-open { display: block; font-size: 11px; line-height: 1.4; }
.pv-hub-t { min-width: 0; }
.pv-main { border-left: 0; padding: 30px 40px 110px; }
#pview[data-enter="1"] .pv-areas { animation: pv-rail .4s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes pv-rail { from { opacity: 0; transform: translateX(-24px); } }
.pv-main .c-title h1 { font-size: 24px; }
.pv-main .vrows { border-top: 0; gap: 8px; }
.pv-main .vrow { border: 1px solid var(--c-line-2); border-bottom: 1px solid var(--c-line-2); border-radius: 12px; background: #0a0c10; padding: 2px 10px 2px 6px; transition: border-color .15s, background .15s; }
.pv-main .vrow:hover { border-color: #3a414c; background: #0d1015; }
.pv-main .vrow .row-head { min-height: 58px; gap: 14px; }
.pv-main .row-main b { font-size: var(--fs-13, 13px); font-weight: 500; }
.pv-main .row-main span { margin-top: 3px; font-size: 12px; }
.pv-main .row-tools { opacity: .35; }
.pv-main .vrow:hover .row-tools { opacity: 1; }
.pv-main .vrow .form-card { margin: 4px 0 12px 34px; }
.pv-main .c-bar { margin-bottom: 14px; }
@media (max-width: 1100px) { #pview { grid-template-columns: 240px minmax(0, 1fr); } .pv-hub { display: flex !important; } }

/* V11: the choking link */
#choke-tags { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 6; pointer-events: none; }
.ck-tag {
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 11px 0 9px; border-radius: 13px; white-space: nowrap;
  background: #120d03; border: 1px solid var(--amber-line); color: var(--amber-text); font-size: var(--fs-11, 11px);
  box-shadow: 0 0 0 4px rgba(242, 181, 68, .08), 0 8px 22px rgba(0, 0, 0, .7);
}
.ck-tag:hover { background: #1d1505; }
.ck-tag b { font-weight: 600; letter-spacing: .01em; }
.ck-tag span { color: #d9b573; }
.ck-tag i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.ck-tag i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--amber); animation: ck-pulse 1.4s ease-out infinite; }
@keyframes ck-pulse { from { opacity: .9; transform: scale(.5); } to { opacity: 0; transform: scale(1.6); } }
.n.choking { filter: drop-shadow(0 0 12px rgba(242, 181, 68, .45)); }
#nodes.moving .n.choking { filter: none; }
.pv-main > * { max-width: 1240px; }
/* V11: Make a policy is a blue button */
.p-more { background: var(--blue); border-color: var(--blue); color: #0A0F1A; }
.p-more svg { color: #0A0F1A; }
.p-more:hover { background: var(--blue-ink); border-color: var(--blue-ink); }

/* V11: nested rule and the mitigation range */
.pb-tree { display: grid; gap: 2px; }
.pb-lvl { position: relative; margin-left: calc(var(--d) * 12px); padding-left: 12px; }
.pb-lvl::before { content: ''; position: absolute; left: 0; top: -2px; bottom: 50%; width: 9px; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); border-bottom-left-radius: 6px; }
.pb-lvl[style*="--d:0"]::before { display: none; }
.pb-lvl[style*="--d:0"] { padding-left: 0; }
.pb-lvl-h { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 0 4px; font-size: var(--fs-11, 11px); font-weight: 500; color: var(--ink-2); }
.pb-lvl-h em { font-style: normal; font-weight: 500; font-size: var(--fs-11, 11px); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pb-lvl .pb-f { margin-bottom: 4px; }
.pb-lvl .pb-f > span:empty, .pb-hide { display: none; }
.pb-ladder-h { display: flex; justify-content: space-between; margin: -2px 2px 6px; font-size: var(--fs-11, 11px); color: var(--ink-3); }
.pb-meter { flex: none; display: flex; align-items: flex-end; gap: 1.5px; height: 14px; }
.pb-meter i { width: 3px; height: 5px; border-radius: 1px; background: #262c36; }
.pb-meter i:nth-child(2) { height: 6px; } .pb-meter i:nth-child(3) { height: 7px; } .pb-meter i:nth-child(4) { height: 9px; }
.pb-meter i:nth-child(5) { height: 10px; } .pb-meter i:nth-child(6) { height: 12px; } .pb-meter i:nth-child(7) { height: 14px; }
.pb-meter i.f { background: var(--blue-line); }
.ag-opt.on .pb-meter i.f { background: var(--blue-text); }
.ug-net { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 1px; font-size: var(--fs-11, 11px); font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.ug-net svg { opacity: .8; }

/* V11: VxSure Cloud above, integrations below, the firewall on the way out */
#hub-extras { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; }
#hub-extras[hidden] { display: none; }
.hx-cloud, .hx-chip { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); border: 1px solid var(--line-2); background: #07090d; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 24px rgba(0, 0, 0, .6); transition: border-color .15s, background .15s; }
.hx-cloud:hover, .hx-chip:hover { border-color: #5886bd; background: #0c1119; }
.hx-cloud { position: absolute; transform-origin: 50% 100%; padding: 8px 14px 8px 11px; border-radius: 12px; white-space: nowrap; }
.hx-cloud svg { color: var(--blue-text); }
.hx-cloud b, .hx-chip b { display: block; font-size: 12px; font-weight: 600; }
.hx-cloud small, .hx-chip small { display: block; font-size: var(--fs-11, 11px); color: var(--ink-3); }
.hx-up, .hx-down { position: absolute; width: 0; border-left: 1px dashed rgba(200, 214, 235, .28); }
.hx-up span { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: var(--fs-11, 11px); color: var(--ink-3); }
.hx-int { position: absolute; transform-origin: 50% 0; display: grid; grid-template-columns: repeat(2, 148px); gap: 6px; }
.hx-int-h { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: center; gap: 6px; font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.hx-int-h small { letter-spacing: 0; text-transform: none; font-weight: 400; }
.hx-chip { padding: 7px 10px; border-radius: 10px; }
.hx-chip svg { flex: none; color: var(--ink-2); }
.hx-fw { position: absolute; width: 0; pointer-events: none; }
.hx-fw-line { position: absolute; left: -1px; top: 0; bottom: 0; border-left: 2px dashed rgba(200, 214, 235, .34); }
.hx-fw-tag { position: absolute; left: 0; bottom: 100%; margin-bottom: 6px; transform-origin: 50% 100%; display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px; border-radius: 10px; border: 1px solid var(--line-2); background: #07090d; white-space: nowrap; color: var(--ink-2); }
.hx-fw-tag b { display: block; font-size: 11px; font-weight: 600; color: var(--ink); }
.hx-fw-tag small { display: block; font-size: var(--fs-11, 11px); color: var(--ink-3); }

/* V11: user view modes, and the forensic timeline */
.j-modes { position: absolute; left: 50%; top: 18px; z-index: 3; transform: translateX(-50%); display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 12px; background: #000; }
.j-modes button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 9px; color: var(--ink-3); font-size: var(--fs-12, 12px); font-weight: 500; }
.j-modes button:hover { color: var(--ink); }
.j-modes button.on { background: #1d232d; color: var(--ink); }
.fx-scroll { position: absolute; inset: 64px 0 0 0; overflow-y: auto; }
.fx-wrap { max-width: 1320px; margin: 0 auto; padding: 4px 32px 120px; }
.fx-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fx-who { display: flex; align-items: center; gap: 14px; }
.fx-who h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.fx-who p { margin-top: 2px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fx-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 600; color: var(--blue-text); box-shadow: inset 0 0 0 2px var(--blue-line); }
.fx-av.b-mid { color: var(--amber-text); box-shadow: inset 0 0 0 2px var(--amber); }
.fx-av.b-high { color: var(--red-text); box-shadow: inset 0 0 0 2px var(--red); }
.fx-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fx-stats > div { padding: 11px 14px; min-width: 0; }
.fx-stats > div + div { border-left: 1px solid var(--line); }
.fx-stats span { display: block; font-size: 11px; color: var(--ink-3); }
.fx-stats b { display: block; margin-top: 3px; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-stats em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--red-text); }
.fx-axis { position: relative; height: 74px; margin: 22px 14px 6px; }
.fx-line { position: absolute; left: 0; right: 0; top: 30px; border-top: 1px solid var(--line-2); }
.fx-tick { position: absolute; top: 52px; transform: translateX(-50%); font-size: var(--fs-11, 11px); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fx-tick::before { content: ''; position: absolute; left: 50%; top: -22px; height: 6px; border-left: 1px solid var(--line-2); }
.fx-mark { position: absolute; top: 30px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(77, 143, 230, .35); border: 1.5px solid var(--blue-line); transition: transform .12s; }
.fx-mark.b-mid { background: rgba(242, 181, 68, .3); border-color: var(--amber); }
.fx-mark.b-high { background: rgba(255, 92, 105, .3); border-color: var(--red); }
.fx-mark.cut { background: transparent; border-style: dashed; border-color: var(--ink-3); }
.fx-mark:hover, .fx-mark.hot { transform: translate(-50%, -50%) scale(1.25); z-index: 2; }
.fx-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; margin-top: 14px; }
.fx-h { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fx-list { position: relative; }
.fx-list::before { content: ''; position: absolute; left: 75px; top: 8px; bottom: 8px; border-left: 1px solid var(--line-2); }
.fx-ev { position: relative; display: grid; grid-template-columns: 62px 26px minmax(0, 1fr) auto 34px; align-items: start; column-gap: 0; padding: 8px 0; border-bottom: 1px solid #10141b; }
.fx-ev.sel .fx-main b, .fx-ev.hot .fx-main b { color: var(--blue-text); }
.fx-t { padding-top: 3px; font-size: var(--fs-11, 11px); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fx-dot { position: relative; z-index: 1; width: 11px; height: 11px; margin: 5px 0 0 8px; border-radius: 50%; background: #000; border: 2px solid var(--blue-line); }
.fx-ev.b-mid .fx-dot { border-color: var(--amber); }
.fx-ev.b-high .fx-dot { border-color: var(--red); background: var(--red-soft); }
.fx-main { min-width: 0; text-align: left; padding-right: 14px; }
.fx-act { display: block; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.fx-main b { display: flex; align-items: baseline; gap: 8px; margin-top: 1px; font-size: var(--fs-13, 13px); font-weight: 600; }
.fx-main b small { font-size: var(--fs-11, 11px); font-weight: 500; color: var(--ink-3); }
.fx-path { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-11, 11px); color: var(--ink-3); }
.fx-path i { font-style: normal; color: var(--ink-2); }
.fx-main .j-alert { display: block; margin-top: 2px; font-size: var(--fs-11, 11px); }
.fx-res { padding-top: 3px; text-align: right; }
.fx-sc { padding-top: 1px; text-align: right; font-size: 13px; }
.fx-xs-btn { grid-column: 3 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; height: 22px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line); color: var(--ink-3); font-size: 11px; }
.fx-xs-btn b { color: var(--red-text); font-weight: 600; }
.fx-xs-btn:hover { color: var(--ink); border-color: var(--line-2); }
.fx-xs { grid-column: 3 / -1; display: none; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.fx-ev.open .fx-xs { display: flex; }
.fx-xs span { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 8px; border-radius: 7px; background: #0b0e13; border: 1px solid var(--line); font-size: var(--fs-11, 11px); color: var(--ink-2); }
.fx-xs span.bad { border-color: var(--red-line); color: var(--red-text); }
.fx-xs i { font-style: normal; font-size: var(--fs-11, 11px); color: var(--ink-3); }
.fx-xs small { font-size: var(--fs-11, 11px); color: var(--ink-3); }
.fx-note { margin: -2px 0 10px; font-size: var(--fs-11, 11px); line-height: 1.45; color: var(--ink-3); }
.fx-xl { border-top: 1px solid var(--line); }
.fx-xr { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.fx-xr b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-12, 12px); font-weight: 500; }
.fx-xr small { grid-column: 2 / 3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--ink-3); }
.fx-xr > span:last-child { grid-row: 1; grid-column: 3; font-size: var(--fs-11, 11px); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-xk { font-size: var(--fs-11, 11px); color: var(--ink-3); }
.fx-xr.bad .fx-xk, .fx-xr.bad b { color: var(--red-text); }
@media (max-width: 1200px) { .fx-cols { grid-template-columns: minmax(0, 1fr); } .fx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.p-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; height: 30px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line-2); color: var(--ink); font-size: 12px; font-weight: 500; }
.p-link svg { color: var(--blue-text); }
.p-link:hover { border-color: #5886bd; background: var(--surface-2); }
body.has-panel .fx-scroll { right: 386px; }

.fx-ev.bg .fx-main b { font-weight: 500; color: var(--ink-2); }
.fx-ev.bg .fx-dot { width: 7px; height: 7px; margin: 7px 0 0 10px; border-width: 1.5px; border-color: var(--ink-3); }
.fx-ev.bg .fx-main { cursor: default; }
.fx-mark.bg { background: #1a202a; border-color: #3a4352; }

/* V11: places on the map, each with its own head */
.pv-disc.icon { color: var(--blue-text); background: radial-gradient(circle at 50% 28%, #1b2433 0%, #0b0f16 75%); }
.pv-main .tiles, .pv-main .kv-grid, .pv-main .tbl-wrap, .pv-main .chart { max-width: 1240px; }
.pv-main .log { max-height: calc(100vh - 360px); }
button.ug-net { margin: 1px auto 0; padding: 1px 6px; border-radius: 6px; cursor: pointer; }
button.ug-net:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
a.hx-fw-tag { pointer-events: auto; text-decoration: none; }
a.hx-fw-tag:hover { border-color: #5886bd; background: #0c1119; }

/* V12: engines under VxSure */
.hx-eng { position: absolute; transform-origin: 50% 0; display: flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 12px; border: 1px solid var(--line-2); background: #07090d; white-space: nowrap; box-shadow: 0 10px 24px rgba(0, 0, 0, .6); }
.hx-eng-h { margin-right: 4px; font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.hx-eng-h b { color: var(--ink-2); font-weight: 600; }
.hx-e { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 7px; color: var(--ink-3); font-size: 11px; text-decoration: none; }
.hx-e i { width: 6px; height: 6px; border-radius: 50%; background: #3a414c; }
.hx-e.on { color: var(--ink-2); }
.hx-e.on i { background: var(--blue-text); box-shadow: 0 0 6px rgba(125, 176, 255, .6); }
.hx-e:hover { background: #121823; color: var(--ink); }
.hx-ok { font-style: normal; color: var(--blue-text); }

/* V12: investigations by file and by site, and the time range */
.j-subj { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; font-size: var(--fs-12, 12px); font-weight: 500; color: var(--ink-2); }
.fx-kind { display: block; font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fx-av.icon { color: var(--blue-text); box-shadow: inset 0 0 0 1px var(--line-2); background: #0b0f16; }
.fx-axis { cursor: crosshair; user-select: none; }
.fx-brush { position: absolute; top: 4px; height: 52px; border-radius: 8px; background: rgba(77, 143, 230, .12); box-shadow: inset 0 0 0 1px rgba(125, 176, 255, .5); pointer-events: none; }
.fx-mark.out { opacity: .2; }
.fx-range { display: flex; align-items: center; gap: 10px; margin: 0 14px 8px; font-size: var(--fs-11, 11px); color: var(--ink-3); }
.fx-clear { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 11px; }
.fx-clear:hover { color: var(--ink); border-color: #5886bd; }
.fx-piv { grid-column: 3 / -1; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.fx-piv button { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line); color: var(--ink-3); font-size: 11px; }
.fx-piv button:hover { color: var(--ink); border-color: #5886bd; }
.fx-piv svg { opacity: .8; }
.fx-ev .fx-xs-btn { grid-column: 3 / -1; }
.fx-trail-s { margin: 6px 0 18px; }
.fx-trail { list-style: none; display: flex; padding: 0; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fx-trail li { flex: 1; min-width: 0; padding: 10px 12px; position: relative; }
.fx-trail li + li { border-left: 1px solid var(--line); }
.fx-trail li .tn { display: block; font-size: var(--fs-11, 11px); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fx-trail li b { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-12, 12px); font-weight: 600; }
.fx-trail li > span:last-child { display: block; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--ink-3); }
.fx-trail li.bad > span:last-child { color: var(--red-text); }
.fx-trail li.warn > span:last-child { color: var(--amber-text); }
.fx-trail li.stop b { color: var(--ink); }
.fx-trail li.gone { opacity: .45; }
.p-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.p-links .p-link { margin-top: 0; }

/* V13: remote users */
.fx-conn { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: var(--fs-11, 11px); color: var(--ink-3); }
.fx-conn.remote { color: var(--blue-text); }
.tr-rem { margin-left: 5px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-2); font-size: var(--fs-11, 11px); color: var(--blue-text); }

/* V13: evidence and around-this-event */
.fx-evd { grid-column: 3 / -1; display: none; margin-top: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #080b10; }
.fx-ev.open-ev .fx-evd { display: block; }
.fx-evd-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fx-evd-h svg { color: var(--blue-text); align-self: center; }
.fx-evd-h b { font-size: var(--fs-12, 12px); }
.fx-evd-h small { font-size: 11px; color: var(--ink-3); }
.fx-evd-g { display: grid; grid-template-columns: 1fr; margin-top: 8px; border-top: 1px solid var(--line); }
.fx-evd-g > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 5px 0; border-bottom: 1px solid #10141b; font-size: var(--fs-11, 11px); }
.fx-evd-g span { color: var(--ink-3); }
.fx-evd-g b { font-weight: 500; color: var(--ink-2); overflow-wrap: anywhere; }
.fx-evd-g code { font-family: var(--c-mono); font-size: var(--fs-11, 11px); color: var(--ink); }
.fx-evd-a { margin-top: 8px; }
.fx-ev.anchor { background: linear-gradient(90deg, rgba(77, 143, 230, .08), transparent 60%); }
.fx-ev.anchor .fx-dot { box-shadow: 0 0 0 4px rgba(125, 176, 255, .18); }
.fx-ev.flash { animation: fxflash 1.2s ease-out; }
@keyframes fxflash { 0%, 50% { background: rgba(125, 176, 255, .14); } 100% { background: transparent; } }
.fx-around { margin: 0 14px 14px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(125, 176, 255, .35); background: #070b12; }
.fx-around-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.fx-around-h span { color: var(--ink-3); font-size: var(--fs-11, 11px); }
.fx-step { display: inline-flex; gap: 2px; margin-left: auto; }
.fx-step button { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--line-2); color: var(--ink-2); }
.fx-step button:hover { color: var(--ink); border-color: #5886bd; }
.fx-strip { display: grid; grid-template-columns: repeat(61, minmax(0, 1fr)); gap: 2px; margin-top: 10px; }
.fx-min { height: 18px; border-radius: 3px; background: #10141b; }
.fx-min.a { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.fx-min.b { background: var(--ink); }
.fx-min.anc { outline: 2px solid var(--blue-text); outline-offset: 1px; }
.fx-min:hover { background: #2a3140; }
.fx-strip-k { display: flex; gap: 14px; margin-top: 6px; font-size: var(--fs-11, 11px); color: var(--ink-3); }
.fx-strip-k span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
.fx-strip-k i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 2px; vertical-align: -1px; }
.fx-strip-k i.b { background: var(--ink); }
.fx-strip-k i.a { box-shadow: inset 0 0 0 1.5px var(--ink-2); }

/* V13: what the agent made, and its sources */
.row-src.agent { color: #c3a6ff; }
.ag-cite { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.ag-cite button { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 9px; text-align: left; }
.ag-cite button:hover { background: var(--surface); }
.ag-cite .n { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 5px; border: 1px solid var(--line-2); font-size: var(--fs-11, 11px); color: var(--ink-2); }
.ag-cite b { display: block; font-size: 12px; font-weight: 500; }
.ag-cite small { display: block; font-size: var(--fs-11, 11px); color: var(--ink-3); line-height: 1.4; }

/* V13: log streaming */
.st-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 22px; }
.st-fields { border-top: 1px solid var(--c-line); }
.st-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 80px auto; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--c-line); }
.st-row .inp { height: 30px; font-family: var(--c-mono); font-size: 12px; }
.st-row small { font-size: var(--fs-11, 11px); color: var(--c-ink-3); }
.st-row.off .inp { opacity: .45; }
.st-prev { max-height: 420px; white-space: pre-wrap; word-break: break-all; }
@media (max-width: 1200px) { .st-cols { grid-template-columns: minmax(0, 1fr); } }

#xs-tags { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 6; pointer-events: none; }
.xs-tag {
  position: absolute; transform: translate(calc(-100% + 5px), -50%); pointer-events: auto; display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 0 0 10px; border-radius: 13px; white-space: nowrap;
  background: var(--red-soft); border: 1px solid var(--red); color: #fff; font-size: var(--fs-11, 11px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .7);
}
.xs-tag:hover { background: #4a1d27; }
.xs-tag .xs-k { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-11, 11px); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #ff8d96; }
.xs-tag b { font-weight: 600; }
.xs-tag .xs-v { color: #f3b8be; }
.xs-tag i { flex: none; width: 10px; height: 10px; margin: 0 7px 0 1px; border-radius: 50%; background: var(--red); }
.xs-tag.fresh { animation: xs-in .42s cubic-bezier(.2, .85, .3, 1.12) both; }
@keyframes xs-in { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
.xs-tag.done { background: #0b0e13; border-color: var(--line-2); color: var(--ink-2); }
.xs-tag.done .xs-k { color: var(--ink-3); }
.xs-tag.done i { background: var(--ink-3); }
.xs-story { margin-top: 12px; }
.xs-story .xs-host { color: var(--red); }
.xs-path b { color: var(--red); font-weight: 600; }
.xs-list { display: grid; border-top: 1px solid var(--line); }
.xs-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 34px; border-bottom: 1px solid var(--line); font-size: 12px; }
.xs-row i { font-style: normal; font-size: var(--fs-11, 11px); color: var(--ink-3); }
.xs-row b { font-weight: 500; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xs-row small { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.xs-row.bad i { color: var(--red); }
.xs-row.on { background: linear-gradient(90deg, rgba(255, 92, 105, .1), transparent 70%); }
.xs-row.on b { color: var(--ink); font-weight: 600; }
.rf-row.rf-xs { border-bottom: 1px solid var(--line); }

/* ---------- V14: apps as icons in one container ---------- */
.n.f-bubble-group.c-clients, .n.f-bubble-group.c-clients:hover, .n.f-bubble-group.c-clients.b-high, .n.f-bubble-group.c-clients.b-mid { background: none !important; box-shadow: none !important; border: 0 !important; }
.ci-wrap { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.ci-disc { position: relative; flex: none; border-radius: 50%; background: #0E131B; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); cursor: pointer; }
.ci-disc .ubg-ring { position: absolute; inset: 0; }
.ci-disc.b-high .ubg-ring > * { stroke: var(--red); }
.ci-disc.b-mid .ubg-ring > * { stroke: var(--amber); }
.ci-logo { width: 46%; height: 46%; display: grid; place-items: center; color: var(--ink-2); }
.ci-logo img, .ci-logo svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.ci-name { margin-top: 7px; display: flex; align-items: baseline; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.ci-name b { font-weight: 620; font-variant-numeric: tabular-nums; }
.ci-name b.b-high { color: var(--red-text); }
.ci-name b.b-mid { color: var(--amber-text); }
.ci-name b.b-low { color: var(--blue-text); }
.c-clients .ubg-head { bottom: calc(100% + 2px); }
.n.c-clients:hover .ci-disc { background: #141A24; }
#apps-box { position: absolute; z-index: 0; border: 1px solid var(--line); border-radius: 22px; background: rgba(20, 20, 20, .55); pointer-events: none; }
.calm-line { position: absolute; height: 0; border-top: 1px dashed var(--line-2); pointer-events: none; }
.calm-line span { position: absolute; left: 50%; top: -9px; transform: translateX(-50%); padding: 0 10px; background: var(--bg); color: var(--ink-3); font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

/* ---------- V14: metrics strip ---------- */
#mstrip { position: fixed; top: 62px; left: 372px; height: 42px; z-index: 30; display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--ink-3); pointer-events: none; white-space: nowrap; }
#mstrip em { font-style: normal; color: var(--ink-2); font-weight: 500; max-width: 170px; overflow: hidden; text-overflow: ellipsis; padding: 3px 9px; border-radius: 10px; border: 1px solid var(--line); }
#mstrip em.on { color: var(--blue-ink); border-color: #23406c; background: rgba(61, 139, 255, .08); }
#mstrip span { display: inline-flex; align-items: baseline; gap: 4px; }
#mstrip span svg { align-self: center; color: var(--ink-3); }
#mstrip b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
#mstrip small { font-size: 11px; }
#mstrip .ms-stop b { color: var(--red-text); }
body.in-console #mstrip { display: none; }
@media (max-width: 1360px) { #mstrip small { display: none; } #mstrip { gap: 10px; } }
@media (max-width: 1180px) { #mstrip { display: none; } }

/* ---------- V14: full-canvas views (app, VxSure, policies, history) ---------- */
.v14-view { position: fixed; top: 104px; left: 0; right: 0; bottom: 0; z-index: 24; background: var(--bg); overflow: auto; animation: j-fade .18s ease-out; }
body.in-view #stage, body.in-view #zoom, body.in-view #hints, body.in-view #col-heads, body.in-view #map-bottom-band, body.in-view #iso-chip, body.in-view:not(:has(#summary:not([hidden]))) #ask, body.in-view:not(:has(#summary:not([hidden]))) #panel, body.in-view #pol-tab, body.in-view #polside { display: none !important; }
body.in-view #traffic, body.in-console #traffic, body.in-history #traffic { display: none !important; }
.v-top { position: relative; height: 62px; display: flex; align-items: center; gap: 14px; padding: 0 26px; }
.v-top .j-back { position: static; }
.v-crumb { color: var(--ink-3); font-size: var(--fs-12, 12px); }
.v-crumb b { color: var(--ink); font-weight: 600; }
.av-h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; color: var(--ink-3); font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.av-h small { letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 11px; }
.av-h button { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--blue-ink); font-size: var(--fs-11, 11px); font-weight: 500; letter-spacing: 0; text-transform: none; }
.av-none { color: var(--ink-3); font-size: 12px; padding: 6px 0; }
.av-grid { display: grid; grid-template-columns: 270px minmax(520px, 1fr) 320px; gap: 30px; padding: 4px 26px 110px; align-items: start; }
.av-col { min-width: 0; }
.vchip { height: 24px; padding: 0 9px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-11, 11px); font-weight: 500; }
.vchip:hover { color: var(--ink); border-color: var(--line-2); }
.vchip.on { background: var(--blue-soft); border-color: #23406c; color: var(--blue-ink); }
.av-filt { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 9px; }
.av-filt > span { width: 100%; color: var(--ink-3); font-size: 11px; }
.av-list { margin-top: 12px; display: grid; gap: 2px; }
.av-row, .av-r { width: 100%; display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 10px; text-align: left; }
.av-row:hover { background: var(--surface-2); }
.av-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--blue-line); }
.b-high > .av-dot, .av-r.risky > .av-dot { background: var(--red); }
.b-mid > .av-dot { background: var(--amber); }
.av-dot.dash { background: none; border: 1.5px dashed var(--ink-3); }
.av-t { flex: 1; min-width: 0; display: grid; }
.av-t b { color: var(--ink); font-size: var(--fs-12, 12px); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-t small { color: var(--ink-3); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-m { color: var(--ink-2); font-size: var(--fs-11, 11px); font-variant-numeric: tabular-nums; }
.av-r em { font-style: normal; color: var(--ink-3); font-size: 11px; }
.av-r.off b { text-decoration: line-through; color: var(--ink-3); }
.av-x { height: 24px; padding: 0 9px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-2); font-size: 11px; font-weight: 500; }
.av-r.risky .av-x { border-color: var(--red-line); color: var(--red-text); }
.av-r.off .av-x { border-color: var(--line); color: var(--ink-3); }
.av-app { display: flex; align-items: center; gap: 14px; }
.av-logo { position: relative; width: 64px; height: 64px; border-radius: 50%; background: #0E131B; display: grid; place-items: center; flex: none; }
.av-logo .ubg-ring { position: absolute; inset: 0; }
.av-logo img, .av-logo > svg:not(.ubg-ring) { width: 28px; height: 28px; object-fit: contain; }
.av-app.b-high .ubg-ring > * { stroke: var(--red); }
.av-app.b-mid .ubg-ring > * { stroke: var(--amber); }
.av-id { display: grid; flex: 1; }
.av-id small { color: var(--ink-3); font-size: var(--fs-11, 11px); }
.av-id b { color: var(--ink); font-size: 20px; font-weight: 620; letter-spacing: -.015em; }
.av-app > .score { font-size: 26px; font-weight: 300; }
.av-stats { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0 22px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; font-size: 12px; color: var(--ink-3); width: 520px; max-width: 100%; }
.av-stats span { display: inline-flex; align-items: baseline; gap: 4px; }
.av-stats span svg { align-self: center; }
.av-stats b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.av-stats .ms-stop b { color: var(--red-text); }
.tm { position: relative; width: 520px; max-width: 100%; }
.tm-t { position: absolute; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 4px; padding: 9px 10px; border-radius: 10px; overflow: hidden; text-align: left; background: #0F1520; border: 1px solid #1D2738; }
.tm-t.b-high { background: #241119; border-color: var(--red-line); }
.tm-t.b-mid { background: #231B0D; border-color: #4a3712; }
.tm-t.b-cut { background: repeating-linear-gradient(135deg, #0D1118 0 6px, #0A0D13 6px 12px); border-style: dashed; }
.tm-t:hover { border-color: var(--line-2); }
.tm-t.sel { box-shadow: 0 0 0 2px var(--blue); }
.tm-n { display: flex; align-items: center; gap: 6px; color: var(--ink); min-width: 0; max-width: calc(100% - 30px); }
.tm-n svg { flex: none; color: var(--ink-3); }
.tm-n b { font-size: var(--fs-12, 12px); font-weight: 580; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-v { color: var(--ink-3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tm-s { position: absolute; right: 10px; top: 8px; font-size: var(--fs-16, 16px); font-weight: 300; font-variant-numeric: tabular-nums; color: var(--blue-text); }
.tm-t.b-high .tm-s { color: var(--red-text); }
.tm-t.b-mid .tm-s { color: var(--amber-text); }
.tm-ctl { position: absolute; right: 8px; top: 8px; padding: 2px 7px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-11, 11px); font-weight: 600; }
.av-tip { margin-top: 12px; color: var(--ink-3); font-size: 12px; }
.av-ctl { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; width: 520px; max-width: 100%; }
.av-ctl-h { color: var(--ink-2); font-size: var(--fs-12, 12px); margin-bottom: 9px; display: grid; }
.av-ctl-h b { color: var(--ink); }
.av-ctl-h small { color: var(--ink-3); font-size: 11px; }
.av-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.av-br { position: relative; padding-left: 16px; margin-bottom: 22px; border-left: 2px solid var(--line-2); }
.av-br.xs { border-left-color: var(--red-line); }
.av-br.pol { border-left-color: #23406c; }
.av-br .av-r { padding: 6px 4px; }
.pm-act { flex: none; display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: var(--fs-11, 11px); font-weight: 600; white-space: nowrap; }
.pm-act.t-ok { background: var(--blue-soft); color: var(--blue-ink); }
.pm-act.t-warn { background: var(--amber-soft); color: var(--amber-text); }
.pm-act.t-stop { background: var(--red-soft); color: var(--red-text); }

/* VxSure view */
.hv-grid { display: grid; grid-template-columns: 200px 300px minmax(440px, 1fr); padding: 0 26px 110px; align-items: start; }
.hv-core { display: grid; justify-items: center; gap: 4px; padding-top: 110px; }
.hv-disc { position: relative; width: 132px; height: 132px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #142037, #0A0E16 70%); display: grid; place-items: center; }
.hv-disc .ubg-ring { position: absolute; inset: 0; }
.hv-disc .ubg-ring > * { stroke: var(--blue-line); }
.hv-disc .vx-mark { width: 70px; height: 70px; }
.hv-core b { margin-top: 8px; color: var(--ink); font-size: 17px; font-weight: 620; }
.hv-core small { color: var(--ink-3); font-size: var(--fs-11, 11px); }
.hv-core.on .hv-disc { box-shadow: 0 0 0 2px var(--blue); }
.hv-branches { position: relative; padding: 0 22px 0 56px; }
.hv-lines { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.hv-lines path { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.hv-lines path.on { stroke: var(--blue-line); stroke-width: 1.6; }
.hv-grp { margin-bottom: 16px; }
.hv-node { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; }
.hv-node:hover { border-color: var(--line-2); background: var(--surface-2); }
.hv-node.on { border-color: var(--blue); background: #0F1A2E; }
.hv-node.add { border-style: dashed; }
.hv-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex: none; }
.hv-node.on .hv-ic { color: var(--blue-ink); }
.hv-t { flex: 1; min-width: 0; display: grid; text-align: left; }
.hv-t b { color: var(--ink); font-size: var(--fs-12, 12px); font-weight: 580; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-t small { color: var(--ink-3); font-size: 11px; }
.hv-detail { padding: 0 0 0 30px; border-left: 1px solid var(--line); min-height: 420px; }
.hv-dh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 14px; }
.hv-dh h2 { width: 100%; color: var(--ink); font-size: var(--fs-16, 16px); font-weight: 620; letter-spacing: -.015em; }
.hv-dh p { flex: 1; color: var(--ink-3); font-size: var(--fs-12, 12px); }
.hv-dh p b { color: var(--ink); }
.hv-dh .btn { height: 32px; padding: 0 12px; gap: 5px; width: auto; }
.hv-table { display: grid; gap: 8px; }
.hv-tr { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; }
.hv-tr.sel { border-color: var(--blue); }
.hv-tr em { font-style: normal; color: var(--ink-3); font-size: var(--fs-11, 11px); }
.hv-link:hover b { text-decoration: underline; text-underline-offset: 2px; }
.hv-seg { width: 190px; flex: none; }
.hv-a { color: var(--blue-ink); font-size: var(--fs-11, 11px); text-decoration: none; }
.hv-a-btn { background: none; border: 1px solid transparent; color: var(--blue-ink); font-size: var(--fs-11, 11px); font-family: inherit; font-weight: 500; cursor: pointer; padding: 4px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; transition: all .15s; flex: none; }
.hv-a-btn:hover { background: rgba(61, 139, 255, 0.12); color: #fff; }
.hv-a-btn.open { background: rgba(61, 139, 255, 0.18); border-color: rgba(61, 139, 255, 0.35); color: #60a5fa; }
.hv-mod-card { border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 13, 20, .9); transition: border-color .15s, background .15s; overflow: hidden; }
.hv-mod-card:hover { border-color: rgba(255, 255, 255, 0.12); }
.hv-mod-card.open { border-color: rgba(61, 139, 255, 0.45); background: #080D17; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35); }
.hv-mod-card .hv-tr { border: none; border-radius: 0; padding: 10px 14px; background: transparent !important; }
.hv-mod-card.open .hv-tr { border-bottom: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.02) !important; }
.hv-mod-drawer { padding: 14px 16px 16px; background: #070B14; display: grid; gap: 13px; animation: hvDrawerSlide .18s ease-out; }
@keyframes hvDrawerSlide { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.hv-mod-desc { color: var(--ink-3); font-size: 12px; line-height: 1.45; }
.hv-mod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 16px; align-items: start; }
.hv-mod-field { display: flex; flex-direction: column; gap: 5px; }
.hv-mod-label { font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .03em; color: var(--ink-2); text-transform: uppercase; }
.hv-mod-inp { height: 32px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-size: 12px; padding: 0 10px; font-family: inherit; outline: none; transition: border-color .15s; }
.hv-mod-inp:focus { border-color: var(--blue); }
.hv-mod-inp-row { display: flex; align-items: center; gap: 8px; }
.hv-mod-inp-unit { font-size: 12px; color: var(--ink-3); }
.hv-mod-seg { display: inline-flex; padding: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; gap: 2px; width: fit-content; }
.hv-mod-seg button { height: 26px; padding: 0 10px; border: none; background: transparent; color: var(--ink-3); font-size: var(--fs-11, 11px); font-family: inherit; font-weight: 500; border-radius: 6px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.hv-mod-seg button:hover { color: var(--ink); }
.hv-mod-seg button.on { background: var(--blue); color: #fff; font-weight: 600; }
.hv-check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 14px; }
.hv-check-line { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); cursor: pointer; user-select: none; }
.hv-check-line input[type="checkbox"] { accent-color: var(--blue); width: 14px; height: 14px; cursor: pointer; }
.hv-mod-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.05); margin-top: 2px; flex-wrap: wrap; }
.hv-mod-status { font-size: 11px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.hv-mod-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #10B981; }
.hv-ca-btn { height: 30px; padding: 0 12px; gap: 6px; font-size: 12px; }
.sw-mini { position: relative; width: 30px; height: 18px; border-radius: 9px; background: var(--line-2); flex: none; }
.sw-mini::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #8B97AB; transition: transform .15s; }
.sw-mini[aria-checked="true"] { background: var(--blue); }
.sw-mini[aria-checked="true"]::after { transform: translateX(12px); background: #fff; }
.hv-skip { margin-top: 6px; color: var(--ink-2); font-size: var(--fs-11, 11px); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hv-skip small { color: var(--ink-3); font-size: var(--fs-11, 11px); }
.hv-skip select { height: 24px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-11, 11px); padding: 0 6px; }
.hv-form { margin-top: 14px; padding: 14px; border: 1px solid #23406c; border-radius: 14px; background: #0B1220; max-width: 520px; }
.hv-fh { display: flex; align-items: center; margin-bottom: 10px; color: var(--ink); font-size: 13px; }
.hv-2 { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.hv-add { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.hv-addc { display: grid; gap: 4px; justify-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; text-align: left; color: var(--ink-2); }
.hv-addc:hover { border-color: var(--blue); }
.hv-addc b { color: var(--ink); font-size: 13px; font-weight: 580; }
.hv-addc small { color: var(--ink-3); font-size: var(--fs-11, 11px); }
.hv-perf { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.hv-perf svg { width: 100%; height: 150px; display: block; }
.hv-perf path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.hv-perf .p1 { stroke: var(--blue-line); }
.hv-perf .p2 { stroke: var(--amber); opacity: .8; }
.hv-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; color: var(--ink-3); font-size: var(--fs-11, 11px); }
.hv-legend .l1::before, .hv-legend .l2::before { content: ""; display: inline-block; width: 10px; height: 2px; margin-right: 5px; vertical-align: middle; background: var(--blue-line); }
.hv-legend .l2::before { background: var(--amber); }

/* Policy matrix */
.pm-wrap { padding: 0 26px 110px; }
.pm-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pm-bar .tr-find { width: 320px; }
.pm-bar .btn { height: 32px; padding: 0 12px; gap: 5px; width: auto; }
.pm-endl { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12px; }
.pm-endl .seg button { padding: 0 10px; }
.pm-head, .pm-row { display: grid; grid-template-columns: 34px 170px 130px minmax(220px, 1fr) 230px 150px; gap: 12px; align-items: center; }
.pm-head { padding: 0 14px 8px; color: var(--ink-3); font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.pm-row { padding: 11px 14px; border-bottom: 1px solid #10151F; font-size: var(--fs-12, 12px); color: var(--ink-2); }
.pm-row .pm-act { justify-self: start; }
.pm-row.mine { background: rgba(61, 139, 255, .04); }
.pm-row.end { margin-top: 10px; border: 1px dashed var(--line-2); border-radius: 12px; }
.pm-i { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 12px; }
.pm-c { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-c.w { white-space: normal; }
.pm-note { grid-column: 4 / 6; grid-row: 2; color: var(--ink-3); font-size: var(--fs-11, 11px); margin-top: -4px; }
.pm-tag { font-style: normal; color: var(--ink-3); font-size: 11px; text-align: right; }

/* Policies side tab */
#pol-tab { position: fixed; right: 0; top: 50%; z-index: 27; transform: translateY(-50%); writing-mode: vertical-rl; display: flex; align-items: center; gap: 7px; padding: 14px 8px; border: 1px solid var(--line-2); border-right: 0; border-radius: 12px 0 0 12px; background: #0E131C; color: var(--ink-2); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
#pol-tab svg { transform: rotate(90deg); }
#pol-tab:hover { color: var(--ink); background: var(--surface-2); }
body.pol-open #pol-tab { right: 358px; }
body.in-console #pol-tab, body.in-console #polside { display: none; }
#polside { position: fixed; top: 116px; right: 8px; bottom: 78px; width: 350px; z-index: 33; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, #10151E 0%, #090C12 100%); border: 1px solid #323841; border-radius: 14px; box-shadow: -8px 12px 36px #0009; }
.ps-scope { display: grid; gap: 1px; margin-bottom: 14px; }
.ps-scope small { color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.ps-scope b { color: var(--ink); font-size: 17px; font-weight: 620; }
.ps-scope span { color: var(--ink-3); font-size: 12px; }
.ps-list { display: grid; gap: 2px; }
.ps-row { display: flex; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #141A24; }
.ps-row.end { border: 1px dashed var(--line-2); border-radius: 10px; padding: 8px; margin-top: 6px; }
.ps-t { display: grid; gap: 3px; min-width: 0; }
.ps-t .pm-act { justify-self: start; white-space: normal; }
.ps-t small { color: var(--ink-3); font-size: var(--fs-11, 11px); }

/* Journey: the group is a small chip, each hop shows its numbers */
.j-gchip { position: absolute; display: grid; gap: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.j-gchip .ubg-title { font-size: 12px; }
.j-gchip .j-swap { justify-content: flex-start; }
.j-stat { display: grid; gap: 1px; margin-top: 3px; color: var(--ink-3); font-size: var(--fs-11, 11px); line-height: 1.35; white-space: nowrap; text-align: center; }
.j-stat b { color: var(--ink-2); font-weight: 600; }

/* Hub area on the map */
.hx-int .hx-add { border-style: dashed; }
.hx-cloud small .hx-ok { font-style: normal; }

/* Live traffic: sortable, filterable */
.tr-tbl th.sort { cursor: pointer; user-select: none; }
.tr-tbl th.sort:hover { color: var(--ink); }
.tr-tbl th.sort.on { color: var(--blue-ink); }
.tr-tbl th.sort.on::after { content: " ↓"; }
.tr-tbl th.sort.on.asc::after { content: " ↑"; }
.tr-res { width: 260px; }
.tr-act { height: 30px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; padding: 0 8px; }

/* Filter menu sections */
.rf-sec { padding: 8px 12px 4px; color: var(--ink-3); font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* Builder: time, limits, advanced */
.pb-custom { display: grid; gap: 8px; margin-top: 8px; }
.pb-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pb-months { display: flex; flex-wrap: wrap; gap: 4px; }
.pb-months button { height: 24px; min-width: 34px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-3); font-size: 11px; }
.pb-months button.on { background: var(--blue-soft); border-color: #23406c; color: var(--blue-ink); }
.pb-adv { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; }
.pb-adv > summary { list-style: none; cursor: pointer; padding: 10px 12px; color: var(--ink-2); font-size: var(--fs-12, 12px); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.pb-adv > summary::-webkit-details-marker { display: none; }
.pb-adv > summary::after { content: "+"; margin-left: auto; color: var(--ink-3); }
.pb-adv[open] > summary::after { content: "–"; }
.pb-adv-b { padding: 0 12px 12px; display: grid; gap: 10px; }
.pb-adv-h { color: var(--ink-3); font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.pb-chk { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 12px; }
.pb-chk input { accent-color: var(--blue); }
.pb-adv .seg button { font-size: var(--fs-11, 11px); }
.tm-t.sm { padding: 7px 8px; justify-content: center; }
.tm-t.sm .tm-v, .tm-t.sm .tm-s { display: none; }
.tm-t.sm .tm-n { max-width: 100%; }
.tm-t.sm .tm-n b { font-size: var(--fs-11, 11px); }
.rf-menu { max-height: calc(100vh - 80px); overflow-y: auto; }
.pm-endl .seg button { white-space: nowrap; flex: none; }
#polside .p-tab { display: inline-flex; align-items: center; gap: 5px; }
body.has-panel #pol-tab, body.in-build #pol-tab { right: 358px; }
body.in-view #pol-tab { top: 60%; }
.wz-tpl-x { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; color: var(--ink-2); font-size: var(--fs-12, 12px); }
.wz-tpl-x input[type=time] { height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: #0b0f16; color: var(--ink); padding: 0 8px; }

/* V14: the VxSure and app views sit on the map, not on a page */
#hubview, #appview { background: var(--bg) url('assets/flow-lines.svg') center / cover no-repeat; animation: none; }
#hubview .v-top, #appview .v-top { position: absolute; left: 0; top: 0; z-index: 2; height: 62px; }
#hubview .hv-grid { min-height: calc(100vh - 104px); padding: 56px 26px 84px; align-items: start; grid-template-columns: 210px 290px minmax(440px, 1fr); }
#hubview .hv-core { padding-top: 18px; align-self: start; position: sticky; top: 76px; }
#hubview .hv-branches { padding-top: 18px; align-self: start; position: sticky; top: 76px; }
#hubview .hv-detail { align-self: start; border-left: 0; padding-left: 36px; min-height: 0; }
#hubview .hv-grp { margin-bottom: 10px; }
#hubview .hv-grp .av-h { margin-bottom: 6px; }
#hubview .hv-node { padding: 5px 9px; margin-bottom: 5px; border-radius: 11px; background: rgba(20, 20, 20, .92); }
#hubview .hv-ic { width: 26px; height: 26px; }
#hubview .hv-tr, #hubview .hv-form, #hubview .hv-perf, #hubview .hv-addc { background: rgba(10, 13, 20, .9); }

#appview .av-br .av-r, #appview .av-row { background: none; }
#hubview .hv-node.feed { cursor: default; }
#hubview .hv-node.feed:hover { background: rgba(20, 20, 20, .92); border-color: var(--line); }
.hv-date { flex: none; color: var(--ink-2); font-size: var(--fs-11, 11px); font-variant-numeric: tabular-nums; }
#hubview .hv-grid:has(.hv-node.feed) { grid-template-columns: 210px 380px minmax(320px, 1fr); }
.hv-all { height: 32px; padding: 0 12px; gap: 5px; width: auto; margin-top: 4px; }
.hv-dh p br + b, .hv-dh p b { color: var(--ink); }
.j-node { position: absolute; right: 18px; top: 64px; z-index: 3; width: 452px; max-height: calc(100% - 150px); overflow: auto; padding: 14px; border: 1px solid var(--line-2); border-radius: 16px; background: #0B0F16; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
.j-node.b-high { border-color: var(--red-line); }
.jn-h { display: flex; align-items: center; gap: 10px; }
.av-logo.sm { width: 44px; height: 44px; }
.av-logo.sm img, .av-logo.sm > svg:not(.ubg-ring) { width: 20px; height: 20px; }
.j-node.b-high .av-logo .ubg-ring > * { stroke: var(--red); }
.j-node.b-mid .av-logo .ubg-ring > * { stroke: var(--amber); }
.j-node .av-id b { font-size: 16px; }
.j-node .av-stats { width: auto; margin: 12px 0; gap: 12px; font-size: var(--fs-11, 11px); }
.j-node .tm { width: 420px; }
.j-node .av-ctl { width: auto; }
.j-node .av-seg button { font-size: 11px; }
.jn-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.jn-cols .av-br { margin-bottom: 0; padding-left: 12px; }
.jn-cols .av-r { padding: 5px 2px; }
.j-link { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.j-link path { fill: none; stroke: var(--blue-line); stroke-width: 1.6; }
.j-link circle { fill: var(--blue-line); }
#journey .j-card.open { box-shadow: 0 0 0 2px var(--blue); }
.row.pol-row .pm-act { white-space: normal; max-width: 130px; text-align: center; }

/* V14: app view as nodes on the map */
.ag-wrap { position: relative; display: grid; grid-template-columns: 250px 200px 470px minmax(260px, 330px); gap: 0 44px; align-items: center; justify-content: center; min-height: calc(100vh - 104px); padding: 62px 26px 84px; }
.ag-lines { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 0; }
.ag-lines path { fill: none; stroke: var(--line-2); stroke-width: 1.3; }
.ag-lines path.l-in { stroke-width: 1.8; }
.ag-lines path.l-in.b-high { stroke: var(--red); }
.ag-lines path.l-in.b-mid { stroke: var(--amber); }
.ag-lines path.l-in.b-low { stroke: var(--blue-line); }
.ag-lines path.l-xs { stroke: #3a4a63; stroke-dasharray: none; }
.ag-lines path.l-risk { stroke: var(--red); stroke-width: 1.6; }
.ag-lines path.l-off { stroke: var(--ink-3); stroke-dasharray: 4 5; }
.ag-node { position: relative; z-index: 1; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(10, 13, 20, .94); }
.ag-people { max-height: calc(100vh - 260px); display: flex; flex-direction: column; }
.ag-people .av-list { overflow: auto; margin-top: 6px; }
.ag-people .av-filt > span { display: none; }
.ag-core { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; text-align: center; }
.ag-disc { width: 112px; height: 112px; }
.ag-disc img, .ag-disc > svg:not(.ubg-ring) { width: 44px; height: 44px; }
.ag-core.b-high .ubg-ring > * { stroke: var(--red); }
.ag-core.b-mid .ubg-ring > * { stroke: var(--amber); }
.ag-core > b { margin-top: 8px; color: var(--ink); font-size: 16px; font-weight: 620; }
.ag-core > b .score { font-weight: 400; margin-left: 4px; }
.ag-core.b-high > b .score { color: var(--red-text); }
.ag-core > small { color: var(--ink-3); font-size: var(--fs-11, 11px); }
.ag-stats { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: var(--fs-11, 11px); color: var(--ink-3); text-align: left; }
.ag-stats span { display: inline-flex; align-items: baseline; gap: 4px; }
.ag-stats span svg { align-self: center; }
.ag-stats b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ag-stats .ms-stop b { color: var(--red-text); }
.ag-mid { display: grid; gap: 14px; position: relative; z-index: 1; }
.ag-act .tm { width: 440px; }
.ag-act .av-ctl { width: auto; }
.ag-act .av-tip { margin-top: 8px; }
.ag-doms { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.ag-doms .av-r { padding: 4px 2px; }
.ag-xs { position: relative; z-index: 1; display: grid; gap: 8px; }
.ag-xs .av-h { margin-bottom: 0; }
.xs-n { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 13, 20, .94); }
.xs-n.risky { border-color: var(--red-line); background: rgba(36, 14, 20, .94); }
.xs-n.risky .av-x { border-color: var(--red-line); color: var(--red-text); }
.xs-n.off { opacity: .6; }
.xs-n.off b { text-decoration: line-through; }
.xs-n em { font-style: normal; color: var(--red-text); }
.ag-stats { grid-template-columns: repeat(2, auto); justify-content: center; }
.ag-stats span { white-space: nowrap; }
.ag-stats small { font-size: var(--fs-11, 11px); }

/* V14: people as a graph in the app view */
.ag-wrap { grid-template-columns: 190px 84px 190px 450px minmax(250px, 300px); gap: 0 34px; }
.ag-groups, .ag-apps { position: relative; z-index: 1; display: grid; gap: 6px; align-content: center; }
.ag-apps { justify-items: center; gap: 12px; }
.gn { display: flex; align-items: center; gap: 9px; width: 100%; padding: 3px 0; text-align: left; transition: opacity .15s; }
.gn.dim { opacity: .35; }
.gn-c { flex: none; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-12, 12px); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); background: #10151F; box-shadow: inset 0 0 0 1.5px var(--blue-line); }
.gn.b-high .gn-c { background: #2a1219; box-shadow: inset 0 0 0 1.5px var(--red); color: var(--red-text); }
.gn.b-mid .gn-c { background: #261d0d; box-shadow: inset 0 0 0 1.5px var(--amber); color: var(--amber-text); }
.gn.on .gn-c { box-shadow: inset 0 0 0 1.5px currentColor, 0 0 0 3px rgba(61, 139, 255, .35); }
.gn-t { display: grid; min-width: 0; }
.gn-t b { color: var(--ink); font-size: var(--fs-12, 12px); font-weight: 580; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gn-t small { color: var(--ink-3); font-size: 11px; white-space: nowrap; }
.gn.more .gn-c { width: 30px; height: 30px; font-size: 11px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.gn:hover .gn-t b { text-decoration: underline; text-underline-offset: 2px; }
.gp-list { display: grid; gap: 1px; margin: 0 0 6px 18px; padding-left: 10px; border-left: 1px solid var(--line-2); }
.gp { display: flex; align-items: center; gap: 6px; padding: 3px 4px; border-radius: 8px; font-size: var(--fs-11, 11px); color: var(--ink-2); text-align: left; }
.gp:hover { background: var(--surface-2); color: var(--ink); }
.gp span:not(.av-dot) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp small { color: var(--ink-3); font-size: var(--fs-11, 11px); }
.gp b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--blue-text); }
.gp.b-high b { color: var(--red-text); }
.gp.b-mid b { color: var(--amber-text); }
.cn { display: grid; justify-items: center; gap: 4px; transition: opacity .15s; }
.cn.dim { opacity: .35; }
.cn-c { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #0E131B; box-shadow: inset 0 0 0 1.5px var(--blue-line); color: var(--ink-2); }
.cn.b-high .cn-c { box-shadow: inset 0 0 0 1.5px var(--red); }
.cn.b-mid .cn-c { box-shadow: inset 0 0 0 1.5px var(--amber); }
.cn.on .cn-c { box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 3px rgba(61, 139, 255, .35); }
.cn-c img { width: 20px; height: 20px; object-fit: contain; }
.cn small { color: var(--ink-2); font-size: 11px; white-space: nowrap; }
.ag-lines path.dim { opacity: .18; }
.ag-wrap.empty .ag-mid, .ag-wrap.empty .ag-xs { opacity: .5; }

/* what happened in an activity */
.ai-h { margin: 12px 0 6px; color: var(--ink-3); font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ai-list { display: grid; gap: 2px; max-height: 210px; overflow: auto; }
.ai-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 6px; border-radius: 9px; text-align: left; }
.ai-row:hover { background: var(--surface-2); }
.ai-ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--ink-2); }
.ai-row.b-high .ai-ic { background: var(--red-soft); color: var(--red-text); }
.ai-row.b-mid .ai-ic { background: var(--amber-soft); color: var(--amber-text); }
.ai-row .av-t em { font-style: normal; color: var(--red-text); }
.ai-s { flex: none; color: var(--ink-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.ai-st { flex: none; color: var(--ink-3); font-size: 11px; min-width: 56px; text-align: right; }
.ai-st.stop { color: var(--red-text); }
.av-seg button { white-space: nowrap; font-size: 11px; padding: 0 4px; }

/* panel: one link to the policies instead of a list */
.p-pols { display: flex; align-items: center; gap: 7px; width: 100%; margin: 14px 0 4px; }
.p-pols svg:last-child { margin-left: auto; }

/* policy matrix rows from map traffic */
.pm-head, .pm-row { grid-template-columns: 34px 150px 170px minmax(220px, 1fr) 200px 150px; }
.pm-row.alert .pm-note { color: var(--red-text); }
.ag-stats { grid-template-columns: auto; justify-items: start; gap: 3px; }
.hv-side { position: fixed; top: 116px; right: 8px; bottom: 78px; width: 350px; z-index: 33; overflow: auto; padding: 4px; border: 1px solid #323841; border-radius: 14px; background: linear-gradient(180deg, #10151E 0%, #090C12 100%); box-shadow: -8px 12px 36px #0009; animation: hv-side-in .22s ease-out; }
.hv-side .hv-form { margin: 0; border: 0; background: none; max-width: none; }
@keyframes hv-side-in { from { opacity: 0; transform: translateX(24px); } }
#hubview.side .hv-detail { padding-right: 370px; }
#hubview.side #pol-tab { display: none; }
.hv-sub { margin-top: 18px; }
#hubview .hv-detail .hv-perf svg { height: 120px; }
#hubview .hv-detail { max-height: calc(100vh - 120px); overflow-y: auto; padding-bottom: 24px; scrollbar-width: thin; }
.hv-sub2 { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.hv-tr.hv-none { border-style: dashed; padding: 6px 8px 6px 12px; }
.hv-add1 { height: 26px; padding: 0 10px; gap: 4px; width: auto; font-size: var(--fs-11, 11px); }
.hv-cnt { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-ink); font-style: normal; font-size: 11px; font-weight: 600; }
.hv-plus { flex: none; color: var(--ink-3); }
.hv-node:hover .hv-plus { color: var(--blue-ink); }
#hubview .hv-grid { grid-template-columns: 210px 330px minmax(420px, 1fr); }

/* V14: the site view is a canvas you can drag and zoom */
#appview { overflow: hidden; cursor: grab; touch-action: none; }
#appview.dragging { cursor: grabbing; }
#appview.dragging * { pointer-events: none; }
.cv-world { position: absolute; left: 0; top: 0; z-index: 1; transform-origin: 0 0; }
.cv-col { position: absolute; top: 0; }
.cv-groups { display: flex; flex-direction: column; gap: 64px; padding-top: 48px; }
.cv-groups > .av-h, .cv-apps > .av-h { position: absolute; top: 0; left: 0; }
.cv-apps > .av-h { left: 22px; top: 14px; }
.cv-slot { position: relative; cursor: pointer; }
.cv-card.n { position: relative; left: auto; top: auto; transform: none; }
.cv-card.n.cv-dim { opacity: .3; }
.cv-apps { display: flex; flex-direction: column; align-items: center; gap: 34px; padding: 72px 26px 22px; border: 1px solid var(--line); border-radius: 22px; background: rgba(20, 20, 20, .55); }
.cv-site { width: 230px; }
.cv-site .ag-disc { width: 132px; height: 132px; }
.cv-site .ag-disc img, .cv-site .ag-disc > svg:not(.ubg-ring) { width: 52px; height: 52px; }
.cv-site .ag-core > b { font-size: var(--fs-16, 16px); }
.cv-mid { width: 570px; display: grid; gap: 18px; }
.cv-mid .ag-act .tm { width: 520px; }
.cv-mid .ag-node { padding: 14px 16px; }
.cv-xs { width: 310px; }
.cv-help { margin-left: auto; color: var(--ink-3); font-size: var(--fs-11, 11px); }
.v-top .cv-fit { position: static; }
#appview .v-top { right: 0; padding-right: 70px; background: linear-gradient(180deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0)); }
.cv-groups { padding-top: 96px; gap: 70px; }
.cv-groups > .av-h { top: 4px; }
.hv-addc { position: relative; align-content: start; min-height: 132px; background: rgba(10, 13, 20, .9); }
.hv-addc.on { border-color: var(--blue); background: #0F1A2E; }
.hv-addc-h { display: flex; align-items: center; justify-content: space-between; width: 100%; color: var(--ink-2); margin-bottom: 4px; }
.hv-addc-h .hv-cnt { width: auto; }
.hv-addc-go { margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 9px; border: 1px solid var(--line-2); color: var(--blue-ink); font-size: var(--fs-11, 11px); font-weight: 600; }
.hv-addc:hover .hv-addc-go { border-color: var(--blue); }
#appview { user-select: none; -webkit-user-select: none; }
.cv-groups, .cv-apps { display: block; padding: 0; gap: 0; }
.cv-groups > .av-h { top: 8px; left: 0; }
.cv-apps > .av-h { top: 18px; left: 22px; }
.cv-more { height: 26px; padding: 0 10px; border-radius: 13px; border: 1px dashed var(--line-2); color: var(--ink-2); font-size: var(--fs-11, 11px); }
.cv-more:hover { color: var(--ink); border-color: var(--blue); }
.cv-more.static { border: 0; text-align: center; color: var(--ink-3); }

/* V14: hover lights the path, everything else steps back */
.cv-world .cv-slot, .cv-world .tm-t, .cv-world .xs-n, .cv-world .ag-lines path { transition: opacity .16s ease-out; }
.cv-hover .cv-slot:not(.hl), .cv-hover .tm-t:not(.hl), .cv-hover .xs-n:not(.hl), .cv-hover .ag-lines path:not(.hl) { opacity: .18; }
.cv-hover .ag-lines path.hl { stroke-width: 2.2; }
.cv-apps .ubg-head { display: none; }

/* V14: zooming in shows people and items */
.cv-ppl { display: none; position: absolute; right: calc(100% + 18px); top: 50%; transform: translateY(-50%); width: 190px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 13, 20, .94); }
.cv-deep .cv-ppl { display: grid; gap: 1px; }
.tm-items { display: none; }
.cv-deep .tm-t:not(.sm) .tm-items { display: grid; gap: 2px; margin-top: 4px; width: 100%; }
.cv-deep .tm-t:not(.sm) .tm-v { display: none; }
.tm-items i { font-style: normal; color: var(--ink-2); font-size: var(--fs-11, 11px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-deep .tm-t:not(.sm) { justify-content: flex-start; }
.ag-det { position: absolute; z-index: 2; width: 400px; padding: 14px 16px; border-color: #23406c; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.ag-det .det-t { display: flex; align-items: center; gap: 8px; }
.ag-det .det-t b { flex: 1; font-size: 14px; }
.ag-det .av-ctl-h { margin-bottom: 10px; }
.ag-det .ai-list { max-height: 260px; }
.ag-lines path.l-det { stroke: var(--blue-line); stroke-width: 1.6; }
.ag-lines .l-dot { fill: var(--blue-line); }
.cv-hover .ag-det { opacity: .35; }

/* 18 Nov: setup wizard, console access addresses and the country picker */
.wz-tpl-x input.wz-ips, .wz-cc input[type=text] { height: 30px; min-width: 260px; border-radius: 8px; border: 1px solid var(--line-2); background: #0b0f16; color: var(--ink); padding: 0 10px; font: inherit; font-size: var(--fs-12, 12px); margin: 0; }
.wz-cc { display: flex; flex-direction: column; gap: 8px; }
.wz-cc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.choice .wz-cc-chip, .wz-cc-chip { display: inline-flex; align-items: center; gap: 4px; margin: 0; height: 24px; padding: 0 4px 0 10px; border-radius: 999px; background: #121822; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font-size: 12px; }
.wz-cc-chip button { width: 18px; height: 18px; border: 0; border-radius: 50%; background: none; color: var(--ink-3); cursor: pointer; font-size: 13px; line-height: 1; }
.wz-cc-chip button:hover { background: #1e2633; color: var(--ink); }
.choice .wz-cc-none { margin: 0; color: var(--ink-3); }
/* V14: the site view reads as columns: one band per stage, headings on one line */
#appview .cv-col { position: absolute; display: block; padding: 0; gap: 0; border: 1px solid var(--ui-line, var(--line)); border-radius: 22px; background: rgba(20, 20, 20, .55); }
#appview .cv-col > .av-h { position: absolute; top: 20px; left: 22px; right: 22px; margin: 0; white-space: nowrap; font-size: 12px; }
#appview .cv-body { position: absolute; left: 22px; top: 54px; }
#appview .cv-site, #appview .cv-mid, #appview .cv-xs { width: auto; }
#appview .cv-site .cv-body { width: 230px; }
#appview .cv-mid .cv-body { width: 570px; display: grid; gap: 18px; }
#appview .cv-detc .cv-body { width: 400px; }
#appview .cv-detc .ag-det { position: relative; z-index: 1; box-shadow: none; width: 400px; }
#appview .cv-xs .cv-body { width: 310px; display: grid; gap: 8px; }
#appview .cv-people .cv-body { width: 230px; display: grid; gap: 6px; }
#appview .cv-more.static { display: block; line-height: 26px; }
.cv-pp { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 13, 20, .94); text-align: left; }
.cv-pp:hover { border-color: var(--line-2); background: var(--surface-2); }
.cv-pp .pp-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-line); }
.cv-pp.b-mid .pp-dot { background: var(--amber); }
.cv-pp.b-high .pp-dot { background: var(--red); }
.cv-pp .pp-n { flex: 1; min-width: 0; display: grid; color: var(--ink); font-size: var(--fs-12, 12px); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-pp .pp-n small { color: var(--ink-3); font-size: 11px; font-weight: 500; }
.cv-pp b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--blue-text); }
.cv-pp.b-mid b { color: var(--amber-text); }
.cv-pp.b-high b { color: var(--red-text); }
.wz-factors, .wz-ways { display: grid; gap: 0; }
.wz-mfa { display: flex; gap: 10px; max-width: 780px; margin-top: 4px; padding: 10px 14px; border-radius: 12px; background: #0b0f16; color: var(--c-ink-3); font-size: 12px; line-height: 1.45; }
.wz-mfa svg { flex: none; margin-top: 2px; }
.wz-mfa b { display: block; color: var(--c-ink); font-size: var(--fs-12, 12px); font-weight: 500; }
.wz-mfa.on { box-shadow: inset 0 0 0 1px #5886bd; }
.wz-mfa.on svg { color: var(--blue-ink); }
.wz-rows { display: grid; gap: 6px; max-width: 780px; margin-bottom: 10px; }
.wz-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px; gap: 8px; align-items: center; }
.wz-listen .wz-row { grid-template-columns: 22px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 28px; }
.wz-out .wz-row { grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1.3fr) 28px; }
.wz-row-h span { font-size: 11px; color: var(--c-ink-3); }
.wz-row input[type=text], .wz-row input[type=password], .wz-in { height: 30px; min-width: 0; width: 100%; border-radius: 8px; border: 1px solid var(--c-line-2); background: #0b0f16; color: var(--c-ink); padding: 0 10px; font: inherit; font-size: var(--fs-12, 12px); margin: 0; box-sizing: border-box; }
.wz-tpl-x .wz-in { width: auto; }
.wz-row.off .wz-cell { color: var(--c-ink-3); }
.wz-cell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-12, 12px); color: var(--c-ink-2); }
.wz-cell.mono { font-family: var(--c-mono); font-size: 12px; }
.wz-x { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--c-ink-3); cursor: pointer; }
.wz-x:hover { background: var(--c-hover); color: var(--c-ink); }
.wz-add { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 90px auto; gap: 8px; max-width: 780px; margin-top: 4px; }
.wz-pchips { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--fs-11, 11px); color: var(--c-ink-3); }
.wz-pchip { height: 22px; padding: 0 9px; border: 0; border-radius: 999px; background: #121822; box-shadow: inset 0 0 0 1px var(--c-line-2); color: var(--c-ink-2); font: inherit; font-size: var(--fs-11, 11px); cursor: pointer; }
.wz-pchip:hover { color: var(--c-ink); }
.wz-way-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #0f141b; color: var(--c-ink-2); }
.wz-way.on .wz-way-ic { color: var(--blue-ink); }
.wz-env-part { padding-bottom: 14px; }
.wz-env { max-width: 780px; border-radius: 14px; background: #07090c; box-shadow: inset 0 0 0 1px var(--c-line); padding: 8px 6px 2px; }
.wz-env-svg { display: block; width: 100%; height: auto; }
.wz-env-svg text { font-family: inherit; text-anchor: middle; }
.wz-env-svg .wz-col { font-size: var(--fs-11, 11px); fill: var(--c-ink-3); letter-spacing: .02em; }
.wz-env-svg .wz-lb { font-size: var(--fs-11, 11px); fill: var(--c-ink); }
.wz-env-svg .wz-sub { font-size: var(--fs-11, 11px); fill: var(--c-ink-3); }
.wz-env-svg .l { text-anchor: end; }
.wz-env-svg .wz-tag { font-size: var(--fs-11, 11px); fill: var(--blue-ink); }
.wz-env-svg .wz-ln { fill: none; stroke: var(--blue-line); stroke-opacity: .55; stroke-width: 1.4; }
.wz-env-svg .wz-ln.thin { stroke-opacity: .3; stroke-dasharray: 2 4; }
.wz-env-svg .wz-ln.adm { stroke: var(--amber-line); stroke-opacity: .6; stroke-dasharray: 5 4; }
.wz-env-svg .wz-node { fill: #0f141b; stroke: var(--c-line-2); }
.wz-env-svg .wz-node.adm { stroke: var(--amber-line); stroke-opacity: .6; }
.wz-env-svg .wz-ic { color: var(--c-ink-2); }
.wz-env-svg .wz-ic.adm { color: var(--amber); }
.wz-env-svg .wz-chip { fill: #0f1724; stroke: var(--blue-line); stroke-opacity: .7; }
.wz-env-svg .wz-chip.dim { stroke-dasharray: 3 3; stroke-opacity: .45; }
.wz-env-svg .wz-chip.adm { fill: #17130a; stroke: var(--amber-line); stroke-opacity: .7; stroke-dasharray: 5 4; }
.wz-env-svg .wz-ct { font-size: 11px; fill: var(--c-ink); font-family: var(--c-mono); }
.wz-env-svg .wz-ct.adm { fill: var(--amber); }
.wz-hints { display: grid; gap: 6px; max-width: 780px; margin-top: 10px; }
.wz-hint { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border-radius: 10px; background: #0d1118; color: var(--c-ink-2); font-size: 12px; line-height: 1.45; }
.wz-hint svg { flex: none; color: var(--blue-ink); }
.wz-hint span { flex: 1; }
.wz-hint .vbtn { height: 28px; flex: none; }
.wz-test { max-width: 780px; }
.wz-res { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #0b0f16; font-size: 12px; line-height: 1.45; color: var(--c-ink-3); }
.wz-res b { display: block; color: var(--c-ink); font-size: var(--fs-12, 12px); font-weight: 500; }
.wz-res svg { flex: none; margin-top: 2px; }
.wz-res.ok svg { color: #5fc58a; }
.wz-res.bad { box-shadow: inset 0 0 0 1px var(--red-line); }
.wz-res.bad svg { color: var(--red-text, #ff8a94); }
.wz-spin { flex: none; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--c-line-2); border-top-color: var(--blue-ink); animation: wzspin .8s linear infinite; }
@keyframes wzspin { to { transform: rotate(360deg); } }
.wz-tree { margin-top: 10px; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--c-line); font-size: var(--fs-12, 12px); }
.wz-tree-root { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--c-ink-2); }
.wz-tree-g { margin-left: 14px; padding-left: 10px; border-left: 1px solid var(--c-line); }
.wz-tree-g summary { display: flex; align-items: center; gap: 7px; min-height: 28px; cursor: pointer; list-style: none; color: var(--c-ink); }
.wz-tree-g summary::-webkit-details-marker { display: none; }
.wz-tree-g[open] summary > svg:first-child { transform: rotate(90deg); }
.wz-tree-g summary small { margin-left: auto; color: var(--c-ink-3); font-size: 11px; }
.wz-tree-p { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 10px 24px; }
.wz-tree-p span { padding: 2px 9px; border-radius: 999px; background: #121822; color: var(--c-ink-2); font-size: var(--fs-11, 11px); }
.wz-doc { display: flex; align-items: center; gap: 12px; max-width: 780px; padding: 12px 14px; border-radius: 12px; background: var(--c-card); box-shadow: inset 0 0 0 1px var(--c-line-2); font-size: 12px; color: var(--c-ink-3); }
.wz-doc > div { flex: 1; }
.wz-doc b { display: block; color: var(--c-ink); font-size: 13px; font-weight: 500; }
.checkline input:disabled + span { color: var(--c-ink-3); }
.wz-lock { display: block; margin: -6px 0 0 24px; font-size: var(--fs-11, 11px); color: var(--c-ink-3); }
.wz-keyhelp { max-width: 780px; margin-top: 12px; font-size: var(--fs-12, 12px); line-height: 1.5; color: var(--c-ink-2); }
.wz-keyhelp p { margin: 0 0 6px; }
.wz-keyhelp ul { margin: 0; padding-left: 18px; color: var(--c-ink-3); font-size: 12px; }
.wz-modal-shade { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .7); }
.wz-modal { display: flex; flex-direction: column; width: min(880px, 100%); height: min(88vh, 1000px); border-radius: 14px; background: #0b0d10; box-shadow: inset 0 0 0 1px var(--c-line-2); overflow: hidden; }
.wz-modal-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--c-line); font-size: var(--fs-13, 13px); }
.wz-pdf { flex: 1; width: 100%; border: 0; background: #fff; }
.wz-modal-foot { padding: 9px 18px; border-top: 1px solid var(--c-line); font-size: 12px; color: var(--c-ink-3); }
@media (max-width: 700px) { .wz-add, .wz-out .wz-row { grid-template-columns: minmax(0, 1fr); } }
.wz-wccp .wz-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 70px 80px 28px; }
.wz-wccp { margin-bottom: 8px; }
.wz-pdf-scroll { flex: 1; min-height: 0; overflow-y: auto; background: #3a3d42; overscroll-behavior: contain; }
.wz-pdf-scroll .wz-pdf { display: block; width: 100%; border: 0; background: #3a3d42; }
.wz-pdf-end { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; color: #d8dce2; font-size: 12px; }
.wz-modal-foot { display: flex; align-items: center; gap: 8px; }
.wz-modal-note { font-size: 12px; color: var(--c-ink-3); }
.vbtn:disabled { opacity: .45; cursor: not-allowed; }
.wz-doc.ok { box-shadow: inset 0 0 0 1px #2f6b4a; }
.wz-doc.ok > svg { color: #5fc58a; }
.wz-ferr:empty { display: none; }
.wz-ferr { margin-top: 8px; font-size: 12px; }
.wz-part.wz-bad .choice.on, .wz-part.wz-bad .wz-doc { box-shadow: inset 0 0 0 1px var(--red-line); }
.wz-pdf-scroll:focus { outline: none; }
.wz-hl { box-shadow: 0 0 0 1px var(--red-line), 0 0 0 4px rgba(255, 92, 105, .12) !important; border-radius: 12px; }
.drop.wz-hl { border-color: var(--red); box-shadow: none !important; background: rgba(255, 92, 105, .05); }
.wz-rows.wz-hl, .wz-ways.wz-hl, .wz-factors.wz-hl { outline: 1px solid var(--red-line); outline-offset: 6px; box-shadow: none !important; }
.wz-part.wz-bad .choice.on, .wz-part.wz-bad .wz-doc { box-shadow: inset 0 0 0 1px var(--red-line); }
#btn-history { display: none; }
.cn-hist { gap: 6px; }
.cn-btn.cn-hist svg { flex: none; }
.cn-btn.cn-hist.active { background: var(--c-hover, rgba(255, 255, 255, .08)); color: var(--c-ink, #EEF3FB); border-color: var(--c-blue, #5886BD); }
#hist-pop .hist-sec { display: flex; align-items: center; gap: 8px; margin: 10px 4px 6px; font-size: 11px; color: var(--ink-3); }
#hist-pop .hist-sec span { flex: 1; }
#hist-pop .hist-save { height: 26px; padding: 0 10px; border: 0; border-radius: 7px; background: var(--blue); color: #fff; font: inherit; font-size: var(--fs-11, 11px); cursor: pointer; }
#hist-pop .hist-save:disabled { opacity: .4; cursor: default; }
#hist-pop .hist-row.draft .hist-t b::after { content: 'Draft'; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font-size: var(--fs-11, 11px); font-weight: 500; }
#hist-pop .hist-t em.rb { color: var(--blue-ink); font-style: normal; }
.hist-draft { margin-left: 6px; font-style: normal; font-size: var(--fs-11, 11px); color: var(--amber); }
.ubg-score .sc-n, .ubg-score .sc-w { font-style: normal; }
.ubg-score .sc-n { display: none; }
body.show-scores .ubg-score .sc-n { display: inline; }
body.show-scores .ubg-score .sc-w { display: none; }
body:not(.show-scores) .cap-row > b, body:not(.show-scores) .ci-name b, body:not(.show-scores) .lbl .score, body:not(.show-scores) .score.big { display: none; }
.p-rbi { display: flex; align-items: center; gap: 6px; margin: 2px 0 6px; font-size: var(--fs-11, 11px); color: var(--ink-3); text-decoration: none; }
.p-rbi:hover { color: var(--blue-ink); }
#impact { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .62); }
#impact[hidden] { display: none; }
#impact .im-card { width: min(520px, 100%); max-height: 86vh; overflow: auto; padding: 20px 22px 18px; border-radius: 16px; background: #0c0f14; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
#impact h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 15px; font-weight: 600; }
#impact .im-t { margin: 0 0 14px; font-size: var(--fs-12, 12px); color: var(--ink-2); }
#impact .im-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
#impact .im-stats div { padding: 10px; border-radius: 10px; background: #121722; }
#impact .im-stats b { display: block; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
#impact .im-stats span { font-size: 11px; color: var(--ink-3); }
#impact .im-h { margin: 0 0 8px; font-size: var(--fs-12, 12px); color: var(--ink-2); }
#impact .im-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
#impact .im-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 8px; background: #10141b; font-size: 12px; }
#impact .im-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); }
#impact .im-list i { font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }
#impact .im-more { margin: 6px 0 0; font-size: var(--fs-11, 11px); color: var(--ink-3); }
#impact .im-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 9px 11px; border-radius: 10px; background: #0f1520; font-size: var(--fs-11, 11px); line-height: 1.45; color: var(--ink-2); }
#impact .im-note svg { flex: none; margin-top: 1px; color: var(--blue-ink); }
#impact .im-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
#hub-extras .hx-in { position: absolute; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; pointer-events: auto; }
#hub-extras .hx-out { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 5px; pointer-events: auto; }
#hub-extras .hx-out small { font-size: var(--fs-11, 11px); color: var(--ink-3); background: #05070a; padding: 0 4px; }
#hub-extras .hx-dev { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: #0d1219; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); text-decoration: none; font-size: 11px; white-space: nowrap; }
#hub-extras .hx-dev b { display: block; font-weight: 500; color: var(--ink); font-size: var(--fs-11, 11px); }
#hub-extras .hx-dev small { display: block; color: var(--ink-3); font-size: var(--fs-11, 11px); }
#hub-extras .hx-ip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: #0f1724; box-shadow: inset 0 0 0 1px rgba(77, 143, 230, .5); color: var(--ink); font-family: ui-monospace, Consolas, monospace; font-size: var(--fs-11, 11px); text-decoration: none; white-space: nowrap; }
#hub-extras .hx-ip i { font-style: normal; font-family: inherit; color: var(--ink-3); margin-left: 4px; font-family: system-ui, sans-serif; font-size: var(--fs-11, 11px); }
#hub-extras .hx-ip.adm { background: #17130a; box-shadow: inset 0 0 0 1px rgba(215, 154, 46, .55); color: var(--amber); }
#hub-extras .hx-dev:hover, #hub-extras .hx-ip:hover { box-shadow: inset 0 0 0 1px var(--blue-line); }
#hub-extras .hx-cl { position: absolute; display: flex; align-items: center; gap: 7px; padding: 4px 9px; border-radius: 999px; color: var(--ink-3); text-decoration: none; font-size: var(--fs-11, 11px); white-space: nowrap; pointer-events: auto; }
#hub-extras .hx-cl:hover { color: var(--ink); background: #0d1219; }
#hub-extras .hx-cl.on { background: #0d1219; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
#hub-extras .hx-cl b { display: block; color: var(--ink); font-weight: 500; font-size: 11px; }
#hub-extras .hx-cl small { display: block; font-size: var(--fs-11, 11px); color: var(--ink-3); }
#hub-extras .hx-stack { position: relative; width: 22px; height: 18px; }
#hub-extras .hx-stack i { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--blue-line); background: #0d1219; }
#hub-extras .hx-stack i:first-child { left: 0; top: 0; }
#hub-extras .hx-stack i:last-child { left: 7px; top: 4px; }
.net-pop { position: fixed; z-index: 85; display: flex; flex-direction: column; max-height: calc(100vh - 90px); border-radius: 14px; background: #0b0d10; box-shadow: inset 0 0 0 1px var(--c-line-2), 0 18px 50px rgba(0, 0, 0, .55); color: var(--c-ink); }
.net-pop-h { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 18px; border-bottom: 1px solid var(--c-line); font-size: var(--fs-13, 13px); }
.net-pop .net-form { flex: 1; min-height: 0; overflow: auto; max-width: none; padding: 16px 18px 4px; }
.net-pop-f { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--c-line); }
.net-pop-f .f-err { margin: 0; }
.n.f-bubble-group.c-users, .n.f-bubble-group.c-users.b-high, .n.f-bubble-group.c-users:hover, .n.f-bubble-group.c-users.sel { border-radius: 0; background: none; box-shadow: none; }
.n.c-users:hover .cap-spine { width: 3px; }
.n.c-users.sel .cap-spine { background: var(--blue); width: 3px; }
.wz-yt { gap: 6px; }
.wz-pchip.on { background: #15264A; color: var(--blue-ink); box-shadow: inset 0 0 0 1px var(--blue-line); }
.wz-geo .wm-legend { padding: 8px 12px; }
.og-card, #other-groups, #other-apps, #other-services {
  position: absolute;
  z-index: 3;
  width: 230px;
  max-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 8px;
  border-radius: 14px;
  background: rgba(20, 20, 20, .97);
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, .45);
  box-sizing: border-box;
}
.og-card[hidden], #other-groups[hidden], #other-apps[hidden], #other-services[hidden] {
  display: none !important;
}
.og-card .og-h, #other-groups .og-h, #other-apps .og-h, #other-services .og-h {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}
.og-card .og-h small, #other-groups .og-h small, #other-apps .og-h small, #other-services .og-h small {
  margin-left: auto;
  font-weight: 500;
  color: var(--ink-3);
  background: rgba(255, 255, 255, .06);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: var(--fs-11, 11px);
}
.og-card .og-list, #other-groups .og-list, #other-apps .og-list, #other-services .og-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .15) transparent;
}
.og-card .og-list::-webkit-scrollbar {
  width: 4px;
}
.og-card .og-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .15);
  border-radius: 4px;
}
.og-card .og-g, #other-groups .og-g, #other-apps .og-g, #other-services .og-g {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 6px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: var(--fs-11, 11px);
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  box-sizing: border-box;
}
.og-card .og-g:hover, #other-groups .og-g:hover, #other-apps .og-g:hover, #other-services .og-g:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
}
.og-card .og-g i, #other-groups .og-g i, #other-apps .og-g i, #other-services .og-g i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  opacity: .85;
}
.og-card .og-g.b-low i, #other-groups .og-g.b-low i, #other-apps .og-g.b-low i, #other-services .og-g.b-low i {
  background: #38bdf8;
}
.og-card .og-g.b-mid i, #other-groups .og-g.b-mid i, #other-apps .og-g.b-mid i, #other-services .og-g.b-mid i {
  background: var(--amber);
}
.og-card .og-g.b-high i, #other-groups .og-g.b-high i, #other-apps .og-g.b-high i, #other-services .og-g.b-high i {
  background: var(--red);
}
.og-card .og-g span, #other-groups .og-g span, #other-apps .og-g span, #other-services .og-g span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.og-card .og-g small, #other-groups .og-g small, #other-apps .og-g small, #other-services .og-g small {
  color: var(--ink-3);
  font-size: var(--fs-11, 11px);
  font-weight: 400;
  white-space: nowrap;
}
#impact .im-foot { gap: 10px; } #impact .im-foot .btn { flex: none; width: auto; height: 36px; padding: 0 18px; display: inline-flex; align-items: center; gap: 6px; }
.im-side .im-t { margin: 2px 0 14px; font-size: 13px; font-weight: 500; color: var(--ink); }
.im-side .im-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.im-side .im-stats div { padding: 10px 12px; border-radius: 10px; background: #121722; }
.im-side .im-stats b { display: block; font-size: var(--fs-16, 16px); font-weight: 600; font-variant-numeric: tabular-nums; }
.im-side .im-stats span { font-size: 11px; color: var(--ink-3); }
.im-side .im-h { margin: 0 0 8px; font-size: var(--fs-12, 12px); line-height: 1.45; color: var(--ink-2); }
.im-side .im-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.im-side .im-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 8px 10px; border-radius: 8px; background: #10141b; font-size: 12px; }
.im-side .im-list b { grid-column: 1; font-weight: 500; }
.im-side .im-list span { grid-column: 1 / -1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); font-size: var(--fs-11, 11px); }
.im-side .im-list i { grid-column: 2; grid-row: 1; font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.im-side .im-more { margin: 6px 0 0; font-size: var(--fs-11, 11px); color: var(--ink-3); }
.im-side .im-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 9px 11px; border-radius: 10px; background: #0f1520; font-size: var(--fs-11, 11px); line-height: 1.45; color: var(--ink-2); }
.im-side .im-note svg { flex: none; margin-top: 1px; color: var(--blue-ink); }
.im-side .im-steps { margin: 8px 0 0; padding: 0 0 0 18px; display: grid; gap: 4px; font-size: var(--fs-11, 11px); line-height: 1.45; color: var(--ink-2); }
.im-side .im-steps b { color: var(--ink); font-weight: 500; }
.p-foot .im-watch { display: flex; gap: 10px; align-items: center; width: 100%; margin: 0 0 3px; padding: 9px 12px; border: 0; border-radius: 10px; background: #10141b; box-shadow: inset 0 0 0 1px var(--c-line, #232a36); color: var(--ink-2); font: inherit; text-align: left; cursor: pointer; }
.p-foot .im-watch:hover { background: #141a24; }
.p-foot .im-watch svg { flex: none; color: var(--blue-ink); }
.p-foot .im-watch span { min-width: 0; }
.p-foot .im-watch b { display: block; font-size: var(--fs-12, 12px); font-weight: 500; color: var(--ink); }
.p-foot .im-watch small { display: block; font-size: 11px; line-height: 1.4; color: var(--ink-3); }
.wz-form.wz-imm { max-width: none; padding: 22px 32px 26px; }
.wz-form.wz-imm > .wz-why { max-width: 760px; margin-bottom: 16px; }
.wz-imm-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.wz-imm-step { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 10px 12px; border: 0; border-radius: 12px; background: #0c1016; box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-ink); font: inherit; text-align: left; cursor: pointer; }
.wz-imm-step:hover { background: #111620; }
.wz-imm-step i { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--c-line-2); font-style: normal; font-size: var(--fs-11, 11px); color: var(--c-ink-3); }
.wz-imm-step.done i { background: var(--c-blue); color: #fff; box-shadow: none; }
.wz-imm-step.next { box-shadow: inset 0 0 0 1px #5886bd; }
.wz-imm-step.next i { box-shadow: inset 0 0 0 1px var(--c-ink); color: var(--c-ink); }
.wz-imm-step span { min-width: 0; }
.wz-imm-step b { display: block; font-size: var(--fs-12, 12px); font-weight: 500; }
.wz-imm-step small { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--c-ink-3); font-family: var(--c-mono); }
.wz-imm-canvas { position: relative; }
.wz-imm .wz-env { max-width: none; padding: 14px 10px 6px; }
.wz-imm .wz-env-svg { max-height: calc(100vh - 360px); min-height: 380px; margin: 0 auto; }
.wz-imm .wz-hints { max-width: none; }
.wz-imm-tip { position: absolute; left: 16px; bottom: 12px; display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--fs-11, 11px); color: var(--c-ink-3); pointer-events: none; }
.wz-env-svg .wz-hit { fill: transparent; stroke: transparent; stroke-width: 1.2; cursor: pointer; transition: stroke .15s, fill .15s; }
.wz-env-svg .wz-hit:hover { stroke: rgba(125, 176, 255, .55); fill: rgba(61, 139, 255, .05); }
.wz-env-svg .wz-hit.next { stroke: rgba(255, 255, 255, .55); stroke-dasharray: 5 4; animation: wzdash 1.2s linear infinite; }
@keyframes wzdash { to { stroke-dashoffset: -18; } }
.wz-env-svg .wz-node.ghost { fill: transparent; stroke: var(--c-line-2); stroke-dasharray: 3 3; }
.wz-env-svg .wz-ic.ghost { color: var(--c-ink-3); }
@media (prefers-reduced-motion: reduce) { .wz-env-svg .wz-hit.next { animation: none; } }
.wz-main:has(> .wz-form.wz-imm) { overflow: hidden; }
.wz-form.wz-imm { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; padding: 16px 28px 14px; }
.wz-form.wz-imm > .wz-kicker, .wz-form.wz-imm > h2, .wz-form.wz-imm > .wz-why, .wz-imm-steps { flex: none; }
.wz-form.wz-imm > h2 { margin-bottom: 2px; }
.wz-form.wz-imm > .wz-why { margin-bottom: 10px; font-size: 13px; }
.wz-imm-canvas { flex: 1; min-height: 0; display: flex; position: relative; }
.wz-imm .wz-env { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px 10px 34px; }
.wz-imm .wz-env-svg { width: 100%; height: 100%; max-height: none; min-height: 0; margin: 0; }
.wz-imm-canvas .wz-hints { position: absolute; right: 12px; bottom: 8px; max-width: 55%; margin: 0; gap: 4px; }
.wz-imm-canvas .wz-hint { padding: 4px 6px 4px 10px; font-size: var(--fs-11, 11px); background: rgba(13, 17, 24, .94); box-shadow: inset 0 0 0 1px var(--c-line); }
.wz-imm-canvas .wz-hint .vbtn { height: 26px; font-size: var(--fs-11, 11px); }
.wz-imm-steps { margin-bottom: 10px; }
.wz-env-svg .wz-lb, .wz-env-svg .wz-sub, .wz-env-svg .wz-col, .wz-env-svg .wz-tag { paint-order: stroke; stroke: #07090c; stroke-width: 4px; stroke-linejoin: round; }
.wz-env-svg .wz-node.ghost { fill: #07090c; }
.wz-env-svg .wz-node.on { stroke: rgba(255, 255, 255, .5); }
.wz-env-svg .wz-node.hub { fill: #0d1420; stroke: rgba(77, 143, 230, .6); }
.wz-env-svg .wz-lb.st, .wz-env-svg .wz-sub.st { text-anchor: start; }
.wz-env-svg .wz-chip.mfa { fill: #0f1724; stroke: var(--blue-line); }
.wz-env-svg .wz-day { fill: #121722; }
.wz-env-svg .wz-day.on { fill: rgba(61, 139, 255, .22); stroke: var(--blue-line); stroke-opacity: .7; }
.wz-env-svg .wz-ln.stop { stroke: var(--red); stroke-opacity: .55; stroke-dasharray: 3 3; }
.wz-env-svg .wz-sub.stop { fill: #ff8a94; }
.net-pop .wz-wccp .wz-row { grid-template-columns: minmax(100px, 1fr) minmax(120px, 1.2fr) 52px 72px 28px; }
.net-pop .choice > input { align-self: flex-start; margin-top: 3px; }
.net-pop .wz-part:last-child { margin-bottom: 8px; }
.wz-form.wz-wide { max-width: none; }
.wz-env.wz-static { max-width: none; margin-bottom: 18px; }
.wz-static .wz-hit { display: none; }
.wz-static .wz-env-svg { max-height: 300px; margin: 0 auto; }
.wz-wide .wz-geo .wm-svg { max-height: calc(100vh - 400px); width: auto; max-width: 100%; margin: 0 auto; }
.wz-gl { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 18px; }
.wz-gl .wz-env.wz-static { margin: 0; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 10px; }
.wz-gl .wz-static .wz-env-svg { width: 100%; height: 100%; max-height: 100%; }
.wz-gl-side { min-height: 0; overflow: auto; }
.wz-gl-side .wz-part { margin-bottom: 14px; padding-bottom: 14px; }
.wz-gl-side .choice { padding: 10px 12px; margin-bottom: 6px; }
.wz-gl-side .wz-review div { min-height: 34px; }
.wz-geo-step .wz-geo { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0; padding: 0; border: 0; }
.wz-geo-step .wz-geo > h3 { flex: none; }
.wz-geo-step .wz-geo .wm-host { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wz-geo-step .wz-geo .wm-svg { flex: 1; min-height: 0; width: 100%; height: 100%; max-height: none; }
.wz-geo-step .wz-geo .wm-legend { flex: none; }
.wz-geo-step .wz-geo > .wz-have { flex: none; margin: 8px 0 4px !important; }
.wz-geo-step .wz-geo .wz-cc { flex-direction: row; flex-wrap: wrap; align-items: center; }
.wz-geo-step .wz-geo .wz-cc input[type=text] { min-width: 220px; }
.wz-story { flex: none; margin: 0 0 10px; padding: 9px 14px; border-radius: 10px; background: #0c1220; box-shadow: inset 3px 0 0 var(--c-blue); font-size: 13px; line-height: 1.5; color: var(--c-ink); max-width: none; }
.wz-env-svg .pt { transition: opacity .18s; }
.wz-env[data-focus="way"] .pt:not(.p-way):not(.p-all), .wz-env[data-focus="listen"] .pt:not(.p-listen):not(.p-all), .wz-env[data-focus="console"] .pt:not(.p-console):not(.p-all), .wz-env[data-focus="out"] .pt:not(.p-out):not(.p-all) { opacity: .16; }
.wz-env[data-focus] .p-all .wz-node, .wz-env[data-focus] .p-all .wz-lb, .wz-env[data-focus] .p-all .wz-sub { opacity: .6; }
.wz-env-svg .wz-tag { font-size: var(--fs-11, 11px); }
#preview-bar { position: fixed; top: 74px; left: 50%; z-index: 45; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 7px 8px 7px 14px; border-radius: 999px; background: #1a1508; box-shadow: inset 0 0 0 1px var(--amber-line), 0 10px 30px rgba(0, 0, 0, .5); color: var(--ink); font-size: var(--fs-12, 12px); }
#preview-bar[hidden] { display: none; }
#preview-bar b { color: var(--amber); margin-right: 6px; font-weight: 600; }
#preview-bar .pv-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pvpulse 1.4s ease-in-out infinite; }
@keyframes pvpulse { 50% { opacity: .35; } }
#preview-bar button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
#preview-bar button.pri { background: var(--blue); border-color: var(--blue); color: #fff; }
body.previewing #stage { box-shadow: inset 0 0 0 2px rgba(242, 181, 68, .35); }
#preview-bar { top: auto; bottom: 80px; padding: 8px 16px 8px 14px; }
.hub-moved { margin: 6px 0 18px; color: var(--c-ink-2); } .hub-movedlist { margin-top: 18px; opacity: .85; }

/* 19 Nov: Show risk numbers sits at the foot of the All risks menu */
.rf-menu { width: 252px; }
.rf-opt { position: sticky; bottom: -6px; display: flex; align-items: center; gap: 12px; margin: 6px -6px -6px; padding: 11px 12px 12px 16px; border-top: 1px solid var(--line); background: #15191f; cursor: pointer; }
.rf-opt span { flex: 1; min-width: 0; }
.rf-opt b { display: block; color: var(--ink); font-size: var(--fs-12, 12px); font-weight: 500; }
.rf-opt small { display: block; margin-top: 1px; color: var(--ink-3); font-size: 11px; line-height: 1.35; }
.rf-opt input { flex: none; appearance: none; -webkit-appearance: none; position: relative; width: 28px; height: 16px; margin: 0; border-radius: 8px; background: #2a2f38; cursor: pointer; transition: background .15s; }
.rf-opt input::before { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #c9ced6; transition: transform .15s, background .15s; }
.rf-opt input:checked { background: var(--blue); }
.rf-opt input:checked::before { transform: translateX(12px); background: #fff; }
.rf-opt input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* 19 Nov: Policy History as a plain list (no thumbnails, no blue card) */
#hist-pop { width: 320px; padding: 6px; border-radius: 10px; }
#hist-pop h3 { padding: 9px 10px 2px; }
#hist-pop .hist-sec { margin: 12px 10px 4px; font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
#hist-pop .hist-row { position: relative; gap: 11px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; }
#hist-pop .hist-row:hover { background: var(--surface-2); }
#hist-pop .hist-row.on { background: none; border: 0; }
#hist-pop .hist-row + .hist-row::before { content: ''; position: absolute; left: 13.5px; top: -9px; height: 15px; width: 1px; background: var(--line); }
#hist-pop .hist-dot { flex: none; width: 8px; height: 8px; margin-left: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
#hist-pop .hist-row.on .hist-dot { background: var(--ink); box-shadow: none; }
#hist-pop .hist-row.draft .hist-dot { box-shadow: inset 0 0 0 1.5px var(--amber); }
#hist-pop .hist-row.draft .hist-t b::after { content: none; }
#hist-pop .hist-t b { color: var(--ink-2); font-weight: 500; }
#hist-pop .hist-row.on .hist-t b { color: var(--ink); font-weight: 600; }
#hist-pop .hist-tag { flex: none; color: var(--ink-3); font-size: 11px; }
#hist-pop .hist-tag.cur { color: var(--ink-2); }
#hist-pop .hist-row:hover .hist-tag:not(.cur) { color: var(--blue-ink); }

/* 19 Nov: setup wizard. Editors and step panels sit in a right sidebar column (third column of .wz-body). */
#wiz .wz-body:has(> .wz-dock), #wiz .wz-body:has(> .wz-side:not([hidden])) { grid-template-columns: 260px minmax(0, 1fr) 420px; }
#wiz .wz-body > .wz-dock, #wiz .wz-body > .wz-side { position: relative; inset: auto; z-index: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; max-height: none; width: auto !important; margin: 0; border-radius: 0; background: #07090c; box-shadow: inset 1px 0 0 var(--c-line); color: var(--c-ink); }
#wiz .wz-body > .wz-side[hidden] { display: none; }
#wiz .wz-body > .wz-dock > .net-form, #wiz .wz-body > .wz-side > .net-form { flex: 1; min-height: 0; overflow: auto; max-width: none; margin: 0; padding: 16px 20px 22px; }
#wiz .wz-body > .wz-side > .net-pop-h, #wiz .wz-body > .wz-dock > .net-pop-h { flex: none; min-height: 52px; box-sizing: border-box; }
#wiz .wz-body > .wz-dock .wz-part:last-child { border-bottom: 0; }
@media (max-width: 1280px) {
  #wiz .wz-body:has(> .wz-dock), #wiz .wz-body:has(> .wz-side:not([hidden])) { grid-template-columns: minmax(0, 1fr) 390px; }
  #wiz .wz-body:has(> .wz-dock) > .wz-steps, #wiz .wz-body:has(> .wz-side:not([hidden])) > .wz-steps { display: none; }
}
@media (max-width: 860px) {
  #wiz .wz-body:has(> .wz-dock), #wiz .wz-body:has(> .wz-side:not([hidden])) { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1.2fr); }
}
.wz-chg { height: 28px; padding: 0 10px; font-size: 12px; }

/* Sign people in: the way cards */
.wz-waycard { display: flex; gap: 12px; width: 100%; margin: 0 0 10px; padding: 14px; border: 0; border-radius: 12px; background: #0c1016; box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-ink); font: inherit; text-align: left; cursor: pointer; }
.wz-waycard:hover { background: #10151d; box-shadow: inset 0 0 0 1px var(--c-line-2); }
.wz-waycard.on { box-shadow: inset 0 0 0 1px #5886bd; }
.wz-waycard:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.wz-wc-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--c-line-2); color: var(--c-ink-2); }
.wz-wc-t { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.wz-wc-t > b { display: flex; align-items: center; gap: 8px; font-size: var(--fs-13, 13px); font-weight: 600; }
.wz-wc-t > b em { font-style: normal; font-size: var(--fs-11, 11px); font-weight: 500; color: var(--blue-text, #7db0ff); }
.wz-wc-t > span { font-size: var(--fs-12, 12px); line-height: 1.45; color: var(--c-ink-2); }
.wz-wc-t dl { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 3px 10px; margin: 2px 0 0; font-size: 12px; line-height: 1.4; }
.wz-wc-t dt { color: var(--c-ink-3); }
.wz-wc-t dd { margin: 0; color: var(--c-ink-2); }
.wz-wc-t i { font-size: var(--fs-11, 11px); color: var(--c-ink-3); }

/* Long lists: count, search, paste */
.wz-count { margin-left: auto; font-size: var(--fs-11, 11px); font-weight: 400; color: var(--c-ink-3); }
.wz-find { margin: 0 0 8px; }
.wz-find[hidden] { display: none; }
.wz-pastebox { margin-top: 10px; padding: 12px; border-radius: 10px; background: #0c1016; box-shadow: inset 0 0 0 1px var(--c-line); }
.wz-pastebox[hidden] { display: none; }
textarea.wz-in.wz-paste { height: auto; min-height: 96px; padding: 8px 10px; resize: vertical; font-family: var(--c-mono); font-size: 12px; line-height: 1.5; }
.wz-tree-root small { margin-left: auto; font-size: 11px; color: var(--c-ink-3); }
.wz-tree .wz-find { margin: 2px 0 6px; }
.wz-tree-l { max-height: 360px; overflow: auto; }
.wz-tree-p em { flex-basis: 100%; font-style: normal; font-size: var(--fs-11, 11px); color: var(--c-ink-3); }

/* Connect your tools: lists and add forms */
.wz-tlist { display: flex; flex-direction: column; border-top: 1px solid var(--c-line); }
.wz-trow { display: flex; align-items: center; gap: 10px; min-height: 46px; border-bottom: 1px solid var(--c-line); }
.wz-trow > span { flex: 1; min-width: 0; }
.wz-trow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--c-mono); font-size: 12px; font-weight: 500; }
.wz-trow small { display: block; font-size: var(--fs-11, 11px); color: var(--c-ink-3); }
.wz-tadd { display: flex; flex-direction: column; gap: 8px; }
.wz-tadd .choice { margin: 0; }
.wz-fl { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0 0 8px; font-size: var(--fs-12, 12px); color: var(--c-ink-2); }
.wz-fl input[type=range] { width: 100%; accent-color: var(--c-blue); }
.wz-th { min-width: 34px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }

/* YouTube categories: the API key */
.wz-ytbox { display: flex; flex-direction: column; gap: 8px; cursor: default; }
.wz-ytkey { grid-template-columns: 150px minmax(0, 1fr); margin: 2px 0 0; }
.wz-ytkey .wz-in { font-family: var(--c-mono); }

/* Block countries: map shows the result, the sidebar does the work */
.wz-geo-map { padding: 8px 10px 30px !important; }
.wz-geo-map .wm-host { width: 100%; height: 100%; min-height: 0; display: flex; flex-direction: column; }
.wz-geo-map .wm-svg { flex: 1; min-height: 0; width: 100%; height: 100%; }
.wm-svg .wm-b { pointer-events: none; fill: rgba(255, 255, 255, .22); stroke: rgba(255, 255, 255, .6); stroke-width: .8; }
.wm-svg .wm-b.blk { display: none; }
.wm-c.pick { fill: #24406a; stroke: #7db0ff; stroke-width: 1; }
.wm-wside { font-size: var(--fs-12, 12px); }
.wm-find { margin: 0 0 4px; }
.wm-wside .wm-h { margin: 16px 0 6px; font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-3); }
.wm-row { display: flex; align-items: center; gap: 8px; min-height: 44px; border-bottom: 1px solid var(--c-line); }
.wm-name { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 5px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.wm-name b { font-size: var(--fs-12, 12px); font-weight: 500; }
.wm-name small { font-size: 11px; color: var(--c-ink-3); }
.wm-row.on .wm-name b { color: #7db0ff; }
.wm-row.blk .wm-name b::after { content: ' · blocked'; font-weight: 400; font-size: 11px; color: #ff8a94; }
.wm-act { flex: none; height: 26px; padding: 0 11px; border: 1px solid var(--c-line-2); border-radius: 7px; background: none; color: var(--c-ink-2); font: inherit; font-size: var(--fs-11, 11px); cursor: pointer; }
.wm-act:hover { border-color: #6d2a33; color: #ff8a94; }
.wm-row.blk .wm-act:hover { border-color: var(--c-line-2); color: var(--c-ink); }
.wm-wside .wm-pick { margin: 10px 0 0; padding: 12px; border: 0; border-radius: 10px; background: #0c1016; box-shadow: inset 0 0 0 1px var(--c-line); }
.wm-pick em { font-style: normal; font-size: 11px; font-weight: 500; color: #ff8a94; }
.wm-pick .wm-tog { width: 100%; margin-top: 4px; }
.wm-note { margin: 16px 0 0; font-size: var(--fs-11, 11px); line-height: 1.5; color: var(--c-ink-3); }
.wz-imm-canvas:has(.wz-hints .wz-hint) .wz-imm-tip { max-width: calc(44% - 16px); }
.ck-tag small { font-size: inherit; }
.ck-tag.compact small { display: none; }
/* 19 Nov bug fix: the right-edge Policies tab sat on the last column of the Policies page, which lists every policy anyway */
body:has(#matrix:not([hidden])) #pol-tab { display: none; }
/* 19 Nov bug fix: keep the VxSure view's lists clear of the right-edge Policies tab */
#hubview .hv-detail { margin-right: 24px; }

/* 19 Nov: breadcrumbs are links */
.v-crumb { display: inline-flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; color: var(--ink-3); font-size: var(--fs-12, 12px); white-space: nowrap; }
.v-crumb .v-sep { opacity: .55; }
.v-crumb b { overflow: hidden; text-overflow: ellipsis; }
.v-crumb-t { color: var(--ink-3); }
.v-cr { flex: none; margin: 0 -5px; padding: 3px 5px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); font: inherit; cursor: pointer; }
.v-cr:hover { color: var(--ink); background: var(--surface-2); }
.v-cr:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.j-crumbs { position: absolute; left: 140px; top: 18px; z-index: 3; height: 32px; display: flex; align-items: center; max-width: calc(50% - 260px); }
/* 19 Nov (Mukund): the metrics strip moved to the bottom left, level with the ask bar */
#mstrip { top: auto; bottom: 16px; left: 20px; }

/* 19 Nov: guided sidebar, one question at a time (Sign people in, Route traffic) */
.wz-guide .wz-ghead { padding-top: 12px; padding-bottom: 12px; }
.wz-ghead > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wz-ghead small { font-size: 11px; color: var(--c-ink-3); }
.wz-ghead b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.wz-gsteps { flex: none; display: flex; gap: 4px; margin: 0; padding: 8px 12px; list-style: none; border-bottom: 1px solid var(--c-line); }
.wz-gsteps li { flex: 1; min-width: 0; }
.wz-gsteps button { display: flex; align-items: center; gap: 6px; width: 100%; padding: 5px 6px; border: 0; border-radius: 8px; background: none; color: var(--c-ink-3); font: inherit; font-size: var(--fs-11, 11px); text-align: left; cursor: pointer; }
.wz-gsteps button:hover { background: #10151d; color: var(--c-ink); }
.wz-gsteps i { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--c-line-2); font-style: normal; font-size: var(--fs-11, 11px); }
.wz-gsteps li.done i { background: var(--c-blue); color: #fff; box-shadow: none; }
.wz-gsteps li.on button { background: #10151d; color: var(--c-ink); }
.wz-gsteps li.on i { box-shadow: inset 0 0 0 1px var(--c-ink); color: var(--c-ink); background: none; }
.wz-gsteps span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
p.wz-gask { margin: 0 0 14px; font-size: var(--fs-12, 12px); line-height: 1.5; color: var(--c-ink-2); }
.wz-guide > .net-pop-f { flex: none; }
.wz-env[data-faint~="way"] .pt.p-way, .wz-env[data-faint~="listen"] .pt.p-listen, .wz-env[data-faint~="console"] .pt.p-console, .wz-env[data-faint~="out"] .pt.p-out { opacity: .14; }
.wz-try { display: grid; grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 14px 0 0; font-size: var(--fs-12, 12px); color: var(--c-ink-2); }
.wz-guided .wz-story { margin-bottom: 10px; }
/* on guided steps the sidebar's Next / Save and continue moves forward; the footer keeps Back and Skip */
#wiz:has(.wz-form.wz-guided) .wz-foot .vbtn.primary { display: none; }
/* the numbered section heading repeats the question title */
.wz-routeq > div > .wz-part:first-child > h3 { display: none; }

/* 19 Nov: Sign people in, first question: the ways fill the main area, ticked like checkboxes, no picture */
.wz-choose { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 16px; padding: 2px 2px 4px; }
.wz-choose[hidden], .wz-imm-canvas[hidden] { display: none; }
.wz-ch-head h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.wz-ch-head p { margin: 0; max-width: 720px; font-size: 13px; line-height: 1.5; color: var(--c-ink-2); }
.wz-ch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.wz-wcard { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px; border-radius: 14px; background: #0c1016; box-shadow: inset 0 0 0 1px var(--c-line); cursor: pointer; transition: box-shadow .15s, background .15s; }
.wz-wcard:hover { background: #10151d; box-shadow: inset 0 0 0 1px var(--c-line-2); }
.wz-wcard.on { background: #0e1520; box-shadow: inset 0 0 0 1.5px #5886bd; }
.wz-wcard.off { opacity: .5; cursor: not-allowed; }
.wz-wcard:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.wz-wc-top { display: flex; align-items: center; justify-content: space-between; }
.wz-wc-box { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--c-line-2); color: #fff; }
.wz-wcard.on .wz-wc-box { background: var(--c-blue); box-shadow: none; }
.wz-wc-name { font-size: 14.5px; font-weight: 600; }
.wz-wc-how { font-size: var(--fs-12, 12px); line-height: 1.5; color: var(--c-ink-2); }
.wz-wcard dl { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px 10px; margin: 2px 0 0; font-size: 12px; line-height: 1.45; }
.wz-wcard dt { color: var(--c-ink-3); }
.wz-wcard dd { margin: 0; color: var(--c-ink-2); }
.wz-wcard > i { font-size: var(--fs-11, 11px); color: var(--c-ink-3); }
.wz-wc-why { font-style: normal; font-size: var(--fs-11, 11px); color: var(--amber-text, #f2b544); }
.wz-wc-sub { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--c-line); cursor: default; }
.wz-wc-sub .checkline { margin: 6px 0 0; }
.wz-wc-sub .checkline b { display: block; font-weight: 500; color: var(--c-ink); }
.wz-wc-sub .checkline small { display: block; margin-top: 1px; font-size: var(--fs-11, 11px); color: var(--c-ink-3); }
.wz-wc-q { font-size: 12px; font-weight: 500; color: var(--c-ink); }
.wz-wc-note { margin-top: 8px; font-size: var(--fs-11, 11px); line-height: 1.45; color: var(--c-ink-3); }
.wz-ch-foot { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--c-line); }
.wz-ch-sumbox { flex: 1; min-width: 0; }
.wz-ch-sum { font-size: 13px; color: var(--c-ink); }
p.wz-modes { margin: 0 0 14px; line-height: 1.5; }
@media (max-width: 1100px) { .wz-ch-grid { grid-template-columns: minmax(0, 1fr); } }
.wz-ch-foot { position: sticky; bottom: 0; z-index: 2; padding-bottom: 2px; background: #000; }
.wz-tech { margin-left: 8px; padding: 1px 7px; border-radius: 6px; background: #121722; color: var(--c-ink-3); font-size: var(--fs-11, 11px); font-weight: 500; letter-spacing: .01em; vertical-align: 1px; }
.wz-good { display: block; margin-top: 4px; font-size: var(--fs-11, 11px); color: var(--c-ink-3); }
.wz-good em { font-style: normal; color: var(--c-ink-2); }
.wz-ports, .wz-gloss { margin-top: 12px; }
.wz-gloss { margin: 0 0 14px; }
.wz-terms { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 10px 0 0; font-size: 12px; line-height: 1.45; }
.wz-terms dt { color: var(--c-ink); font-weight: 500; }
.wz-terms dd { margin: 0; color: var(--c-ink-3); }
.wz-cip { display: grid; gap: 6px; }
.wz-cip-row { display: flex; gap: 8px; align-items: center; }
.wz-cip-row .wz-ips { flex: 1; min-width: 0; }
.wz-cip-row .vbtn { flex: none; }
.wz-me { font-size: var(--fs-11, 11px); color: var(--c-ink-3); }
.wz-readback { display: grid; gap: 2px; }
.wz-readback small { font-size: var(--fs-11, 11px); color: var(--c-ink-2); }
.wz-lockout { display: flex; gap: 10px; align-items: flex-start; margin-top: 4px; padding: 10px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--amber-line); background: #120d03; font-size: 12px; line-height: 1.45; color: var(--c-ink-2); }
.wz-lockout[hidden] { display: none; }
.wz-lockout > svg { flex: none; margin-top: 2px; color: var(--amber-text); }
.wz-lockout b { display: block; color: var(--amber-text); font-weight: 500; }
.wz-lockout-a { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 8px; }
.wz-chk { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.wz-chk li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px; border-radius: 8px; font-size: 12px; line-height: 1.45; color: var(--c-ink-3); }
.wz-chk li b { display: block; color: var(--c-ink-2); font-weight: 500; }
.wz-chk li span:empty { display: none; }
.wz-chk-i { flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--c-line); font-style: normal; }
.wz-chk li.run .wz-chk-i { box-shadow: inset 0 0 0 1.5px var(--c-blue); }
.wz-chk li.ok .wz-chk-i { background: #12301f; color: #5fc58a; box-shadow: none; }
.wz-chk li.warn .wz-chk-i { background: #2a2108; color: var(--amber-text); box-shadow: none; }
.wz-chk li.bad { background: #1a0b0e; }
.wz-chk li.bad .wz-chk-i { background: #3a1218; color: var(--red-text, #ff8a94); box-shadow: none; }
.wz-chk li.bad b { color: var(--red-text, #ff8a94); }
.wz-chk li.bad span { color: var(--c-ink); }
.wz-chk li.skip { opacity: .5; }
.wz-plain { margin: 0 0 14px; font-size: var(--fs-12, 12px); line-height: 1.5; color: var(--c-ink-2); }
.wz-plain p { margin: 0; }
.wz-safe { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px !important; font-size: 12px; color: var(--c-ink-3); }
.wz-safe svg { flex: none; margin-top: 2px; color: #5fc58a; }
.wz-fh { display: block; margin: -4px 0 10px; font-size: var(--fs-11, 11px); color: var(--c-ink-3); }
.choice > div:has(> .wz-cip) { flex: 1; min-width: 0; }
.wz-cip { width: 100%; min-width: 0; }
.wz-tpl-x .wz-cip-row input.wz-ips { min-width: 0; }
.wz-lockout > div { min-width: 0; }
body:has(#matrix:not([hidden])) #mstrip,
body:has(#history:not([hidden])) #mstrip,
body:has(#summary:not([hidden])) #mstrip,
body.in-view #mstrip,
body.in-console #mstrip { display: none !important; }
#matrix::after { display: none !important; }
#matrix:has(.pm-body)::after { content: ''; position: sticky; bottom: 0; display: block; height: 104px; margin-top: -104px; background: linear-gradient(to bottom, transparent, var(--bg, #000) 62%); pointer-events: none; }
.p-foot .im-unsaved { display: block; text-align: right; font-size: 11px; color: var(--ink-3); margin-top: -2px; }
#state-pop { position: fixed; z-index: 60; width: 380px; max-height: calc(100vh - 120px); overflow: auto; padding: 16px; border-radius: 14px; background: var(--surface, #0b0e13); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
#state-pop[hidden] { display: none; }
#state-pop h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
#state-pop h3 small { margin-left: 8px; font-size: var(--fs-11, 11px); font-weight: 500; color: var(--amber-text); }
#state-pop p { margin: 0 0 12px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
#state-pop .sp-h { margin: 0 0 8px; }
.sp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sp-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: #10141b; font-size: 12px; }
.sp-list li span { flex: 1; min-width: 0; }
.sp-list b { display: block; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-list small { color: var(--amber-text); font-size: 11px; }
.sp-list button, .pm-enf { flex: none; height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-11, 11px); cursor: pointer; }
.sp-list button:hover, .pm-enf:hover { background: var(--surface-2, #141a24); }
.sp-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.sp-foot .btn { width: auto; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; }
.sp-note { display: block; margin-top: 6px; text-align: right; font-size: 11px; color: var(--ink-3); }
.pm-tag { display: grid; justify-items: end; gap: 4px; }
.pm-stl { display: inline-flex; align-items: center; gap: 6px; }
.pm-st { font-style: normal; font-size: var(--fs-11, 11px); font-weight: 600; padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.pm-st.st-live { color: #5fc58a; background: rgba(95, 197, 138, .1); }
.pm-st.st-draft { color: var(--blue-ink); background: var(--blue-soft); }
.pm-st.st-obs { color: var(--amber-text); box-shadow: inset 0 0 0 1px var(--amber-line); cursor: help; }
.pm-enf { height: 22px; padding: 0 8px; font-size: 11px; }
.pm-row.obs .pm-act { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.res.warn { color: var(--amber-text); }
.sp-list { grid-template-columns: minmax(0, 1fr); }
.sp-list li { min-width: 0; }
#why-pop { position: fixed; z-index: 62; width: 420px; max-height: calc(100vh - 110px); overflow: auto; padding: 14px 16px 16px; border-radius: 14px; background: var(--surface, #0b0e13); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); font-size: 12px; color: var(--ink-2); }
#why-pop[hidden] { display: none; }
.wy-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wy-h b { font-size: 14px; font-weight: 600; color: var(--ink); }
.wy-sub { margin: 4px 0 10px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wy-lead { margin: 0 0 8px; color: var(--ink-2); }
.wy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.wy-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 9px; border-radius: 8px; min-width: 0; }
.wy-list li > i { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: var(--fs-11, 11px); font-weight: 600; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.wy-list li > span { min-width: 0; }
.wy-list b { display: block; font-weight: 500; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wy-list b small { font-weight: 400; color: var(--ink-3); font-size: 11px; }
.wy-list em { display: block; font-style: normal; font-size: var(--fs-11, 11px); color: var(--ink-3); }
.wy-list li.wy-skip { opacity: .72; }
.wy-list li.wy-obs em { color: var(--amber-text); }
.wy-list li.wy-obs > i { box-shadow: inset 0 0 0 1px var(--amber-line); color: var(--amber-text); }
.wy-list li.wy-win { background: rgba(255, 255, 255, 0.06) !important; border: 1px solid rgba(255, 255, 255, 0.28) !important; box-shadow: none !important; }
.wy-list li.wy-win > i { background: rgba(255, 255, 255, 0.12) !important; color: var(--ui-ink) !important; box-shadow: none !important; }
.wy-list li.wy-win b, .wy-list li.wy-win em { color: var(--ink); }
.wy-more { margin: 6px 0 0 9px; color: var(--ink-3); font-size: var(--fs-11, 11px); }
.wy-tls { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--ui-raised, #141414); color: var(--ui-ink-2, #d1d5db); }
.wy-tls svg { flex: none; color: var(--ui-ink-3); }
.wy-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.wy-foot .btn { width: auto; height: 32px; padding: 0 14px; }
.why-b { margin-left: 8px; height: 20px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-3); font: inherit; font-size: var(--fs-11, 11px); cursor: pointer; opacity: 0; }
tr:hover .why-b, .why-b:focus-visible { opacity: 1; }
.why-b:hover { color: var(--ink); background: var(--surface-2, #141a24); }
.pm-hits { display: block; font-size: var(--fs-11, 11px); color: var(--ink-3); }
.pm-hits.none { color: var(--ink-3); opacity: .7; }
.pm-sh { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; color: var(--amber-text); }
.pm-row.shadowed { box-shadow: inset 3px 0 0 var(--amber); }
.pm-row.pm-flash { background: rgba(255, 255, 255, 0.08); transition: background .6s; }
.pb-place { margin: 0 0 12px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
body:has(#trust:not([hidden])) #mstrip { display: none; }
#trust::after { content: ''; position: sticky; bottom: 0; display: block; height: 104px; margin-top: -104px; background: linear-gradient(to bottom, transparent, var(--bg, #000) 62%); pointer-events: none; }
.tr2-wrap { max-width: 1180px; margin: 0 auto; padding: 14px 26px 120px; }
.tr2-tabs { display: inline-flex; margin-bottom: 18px; }
.tr2-body h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; color: var(--ink); }
.tr2-body h3 { display: flex; align-items: center; gap: 8px; margin: 22px 0 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.tr2-body h3 svg { color: var(--blue-ink); }
.tr2-body p { margin: 0 0 8px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.trs-sub { color: var(--ink-3) !important; max-width: 860px; }
.trs-top { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 13px; line-height: 1.55; color: var(--ink-2); max-width: 900px; }
.trs-top b { color: var(--red-text); font-weight: 600; margin-right: 4px; }
.trs-t, .trl-t { width: 100%; border-collapse: collapse; font-size: var(--fs-12, 12px); }
.trs-t { max-width: 760px; }
.trs-t th, .trl-t th { text-align: left; padding: 6px 10px; color: var(--ink-3); font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.trs-t td, .trl-t td { padding: 8px 10px; border-bottom: 1px solid #10151F; color: var(--ink-2); vertical-align: top; }
.trs-bad { color: var(--red-text); }
.trs-comp { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 900px; }
.trs-comp li { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; padding: 10px 12px; border-radius: 10px; background: #0d1117; font-size: var(--fs-12, 12px); line-height: 1.5; }
.trs-comp b { color: var(--ink); font-weight: 600; }
.trs-comp span { color: var(--ink-2); }
.trs-note { font-size: 12px !important; color: var(--ink-3) !important; }
.trs-foot { margin-top: 18px; }
.trs-foot .btn, .trl-bar .btn, .trp-ask .btn { width: auto; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; }
.trp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.trp-grid section { padding: 14px 16px; border-radius: 12px; background: #0b0f15; box-shadow: inset 0 0 0 1px var(--line); }
.trp-grid h3 { margin-top: 0; }
.trp-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.trp-list li { display: grid; gap: 2px; font-size: var(--fs-12, 12px); line-height: 1.45; }
.trp-list b { font-weight: 500; color: var(--ink); }
.trp-list span { color: var(--ink-3); font-size: 12px; }
.trp-ask { display: grid; gap: 10px; margin-top: 6px; padding: 10px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--amber-line); background: #120d03; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.trp-ask b { color: var(--amber-text); font-weight: 500; }
.trp-ask .btn { justify-self: start; }
@media (max-width: 1200px) { .trp-grid { grid-template-columns: minmax(0, 1fr); } }
.trl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 10px; }
.trl-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #5fc58a; }
.trl-t td b { display: block; font-weight: 500; color: var(--ink); }
.trl-t td small { display: block; margin-top: 3px; font-size: var(--fs-11, 11px); color: var(--ink-3); line-height: 1.45; }
.trl-t td.mono { font-family: ui-monospace, Consolas, monospace; font-size: var(--fs-11, 11px); color: var(--ink-3); }
.trl-none { font-style: normal; color: var(--ink-3); opacity: .7; }
.trl-st { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: var(--fs-11, 11px); font-weight: 600; white-space: nowrap; color: #5fc58a; background: rgba(95, 197, 138, .1); }
.trl-draft .trl-st { color: var(--blue-ink); background: var(--blue-soft); }
.trl-current .trl-st { color: var(--ink); background: #1a2232; }
.trl-rolled { opacity: .55; }
.trl-rolled .trl-st { color: var(--ink-3); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.save-why { display: grid; gap: 6px; margin: 0 0 12px; font-size: 12px; color: var(--ink-2); }
.save-why .wz-in { width: 100%; }
.tr2-tabs button { white-space: nowrap; padding-left: 12px; padding-right: 12px; }
body:has(#summary:not([hidden])) #mstrip { display: none; }
#summary::after { content: ''; position: sticky; bottom: 0; display: block; height: 104px; margin-top: -104px; background: linear-gradient(to bottom, transparent, var(--bg, #000) 62%); pointer-events: none; }
.sm-wrap { max-width: 1180px; margin: 0 auto; padding: 18px 26px 130px; }
.sm-wrap h2 { margin: 0 0 6px; font-size: 24px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.sm-sub { margin: 0 0 22px; font-size: 13px; color: var(--ink-3); }
.sm-leaks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.sm-leak { padding: 14px 16px; border-radius: 14px; background: #0b0f15; box-shadow: inset 0 0 0 1px var(--line); }
.sm-say { display: grid; gap: 3px; margin-bottom: 12px; font-size: var(--fs-13, 13px); line-height: 1.5; color: var(--ink-2); }
.sm-say b { font-size: 13px; font-weight: 600; color: var(--red-text); }
.sm-chain { display: flex; align-items: stretch; gap: 8px; }
.sm-chain > em { align-self: center; font-style: normal; color: var(--ink-3); }
.sm-c { flex: 1 1 0; min-width: 0; display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; background: #10141b; }
.sm-c small { font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.sm-c b, .sm-c i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-c b { font-size: var(--fs-12, 12px); font-weight: 600; color: var(--ink); }
.sm-c i { font-style: normal; font-size: var(--fs-11, 11px); color: var(--ink-3); }
.sm-c.sm-bad { box-shadow: inset 0 0 0 1px var(--red-line); }
.sm-c.sm-bad b { color: var(--red-text); }
.sm-c.sm-warn { box-shadow: inset 0 0 0 1px var(--amber-line); }
.sm-c.sm-warn b { color: var(--amber-text); }
.sm-c.sm-stop b { color: var(--red-text); }
.sm-chain .btn { flex: none; align-self: center; width: auto; height: 32px; padding: 0 12px; margin-left: 6px; white-space: nowrap; }
.sm-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.sm-row h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.sm-row p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.sm-bars { width: auto; height: 64px; flex: none; }
.sm-bars rect { fill: #2a3445; }
.sm-bars rect.now { fill: var(--red, #ff5c69); }
.sm-bars text { font-size: var(--fs-11, 11px); fill: var(--ink-3, #8b97aa); text-anchor: middle; }
.sm-acts { display: flex; gap: 8px; flex: none; }
.sm-acts .btn { width: auto; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; }
#hub-extras .hx-ip.adm.open { background: #1a0b0e; box-shadow: inset 0 0 0 1px var(--red-line); color: var(--red-text); }
#hub-extras .hx-ip.adm.open i { color: var(--red-text); opacity: .85; }
.wz-gwait { max-width: 260px; margin-right: 10px; font-size: var(--fs-11, 11px); line-height: 1.4; color: var(--amber-text); text-align: right; }
.vbtn.primary.wz-wait { background: #1b2433; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.wy-fold { margin: 10px 0 0; }
.wy-fold summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; color: var(--ink-2); list-style: none; }
.wy-fold summary::-webkit-details-marker { display: none; }
.wy-fold summary svg { transition: transform .15s; }
.wy-fold[open] summary svg { transform: rotate(90deg); }
.wy-fold .wy-list { margin-top: 8px; }
.pm-endc { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #1a0b0e; box-shadow: inset 0 0 0 1px var(--red-line); }
.pm-endc-ic { flex: none; color: var(--red-text); }
.pm-endc > div:nth-child(2) { flex: 1; min-width: 0; }
.pm-endc p { margin: 0; font-size: var(--fs-12, 12px); line-height: 1.5; color: var(--ink-2); }
.pm-endc p b { color: var(--ink); font-weight: 600; }
.pm-endc .pm-endc-n { margin-top: 4px; font-size: var(--fs-11, 11px); color: var(--ink-3); }
.pm-endc-a { display: flex; gap: 8px; flex: none; }
.pm-endc-a .btn { width: auto; height: 32px; padding: 0 14px; }

/* WP1: List / Observatory switch */
.view-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  background: var(--surface-2, #111622);
  border: 1px solid var(--line, #1c2434);
  border-radius: 9px;
  gap: 2px;
}
.view-switch button {
  height: 24px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2, #94a3b8);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: all .15s;
}
.view-switch button:hover {
  color: var(--ink, #f1f5f9);
}
.view-switch button.on {
  background: var(--blue, #3d8bff);
  color: #fff;
}
#map-view-switch {
  position: absolute;
  top: 14px;
  left: 24px;
  z-index: 20;
}
body.in-view #map-view-switch,
body.in-console #map-view-switch,
body.in-policy #map-view-switch {
  display: none !important;
}

/* WP2: List view (Summary mode) */
.lv-top {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line, #1b2433);
}
.lv-mode-switch {
  display: inline-flex;
  padding: 2px;
  background: var(--surface-2, #111622);
  border: 1px solid var(--line, #1c2434);
  border-radius: 9px;
  gap: 2px;
}
.lv-mode-switch button {
  height: 24px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: var(--fs-11, 11px);
  font-weight: 500;
  color: var(--ink-2, #94a3b8);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: all .15s;
}
.lv-mode-switch button.on {
  background: var(--blue, #3d8bff);
  color: #fff;
}
.lv-sp { flex: 1; }
.lv-dl-btn {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
}
.lv-wrap {
  width: 100%;
  max-width: none !important;
  margin: 0;
  box-sizing: border-box;
  padding: 24px 32px 120px !important;
}
.lv-wrap h2 {
  margin: 0 0 16px;
  font-size: var(--fs-20, 20px);
  font-weight: 600;
  color: var(--ink, #edf1f8);
  letter-spacing: -.01em;
}
.lv-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #141c2c;
  border: 1px solid #233b66;
  color: var(--blue-ink, #7db0ff);
  font-size: 12px;
  font-weight: 500;
}
.lv-filter-chip button {
  background: none;
  border: 0;
  color: var(--blue-ink, #7db0ff);
  font-size: 12px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.lv-filter-chip button:hover {
  color: #fff;
}
.lv-paused-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
}
.lv-paused-bar:hover {
  background: rgba(245, 158, 11, 0.16);
}
.lv-rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line, #1b2433);
  border: 1px solid var(--line, #1b2433);
  border-radius: 10px;
  overflow: hidden;
}
.lv-row {
  background: var(--bg, #000);
  transition: background .12s;
}
.lv-row.fresh {
  animation: lv-fade .18s ease-out;
}
@keyframes lv-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lv-main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  min-height: 44px;
  cursor: pointer;
}
.lv-row:hover .lv-main {
  background: rgba(255, 255, 255, 0.02);
}
.lv-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #374151;
}
.lv-dot.high { background: var(--red, #ff5c69); }
.lv-dot.medium { background: var(--amber, #f59e0b); }
.lv-dot.clean { background: #22c55e; }
.lv-sentence {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink, #edf1f8);
  font-weight: 400;
}
.lv-file-risky {
  color: var(--red-text, #ff5c69);
  font-weight: 500;
}
.lv-file {
  color: var(--ink, #edf1f8);
  font-weight: 500;
}
.tm-presets {
  display: inline-flex !important;
  align-items: center !important;
  flex: none !important;
}
.tm-presets button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: 24px !important;
  line-height: 24px !important;
  padding: 0 10px !important;
  font-size: var(--fs-11, 11px) !important;
}
.tm-presets button svg {
  flex: none;
  width: 12px;
  height: 12px;
}

.lv-acts {
  flex: none;
  display: flex;
  align-items: center;
}
.lv-acts-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2px 3px;
  border-radius: 8px;
}
.lv-act-btn {
  height: 25px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink-2, #94a3b8);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .14s cubic-bezier(0.16, 1, 0.3, 1);
}
.lv-act-btn svg {
  flex: none;
  opacity: .8;
  transition: opacity .14s;
}
.lv-act-btn:hover:not(:disabled) svg {
  opacity: 1;
}
.lv-act-btn.lv-act-block:hover:not(:disabled) {
  color: #ff6b77;
  background: rgba(255, 92, 105, 0.14);
  border-color: rgba(255, 92, 105, 0.35);
}
.lv-act-btn.lv-act-block-file:hover:not(:disabled) {
  color: #ff8a93;
  background: rgba(255, 92, 105, 0.12);
  border-color: rgba(255, 92, 105, 0.3);
}
.lv-act-btn.lv-act-warn:hover:not(:disabled) {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
}
.lv-act-btn.lv-act-iso:hover:not(:disabled) {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.3);
}
.lv-act-btn.disabled, .lv-act-btn:disabled {
  opacity: .32;
  cursor: not-allowed;
}
.lv-expand {
  padding: 14px 22px 18px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #070B14;
  display: grid;
  gap: 12px;
  animation: lvExpandSlide .18s ease-out;
}
@keyframes lvExpandSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.lv-exp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.lv-exp-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3, #71809a);
  margin-bottom: 0;
}
.lv-exp-path span {
  color: var(--ink-2, #a3b0c4);
}
.lv-exp-path em {
  font-style: normal;
  color: var(--ink-3, #71809a);
}
.lv-exp-time {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--ui-raised, #141414);
  font-size: 11px;
  color: var(--ui-ink-2, #d1d5db);
}
.lv-exp-pol {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--ui-raised, #141414);
  color: var(--ui-ink, #f3f4f6);
  font-size: 11px;
}
.lv-exp-res {
  font-size: var(--fs-11, 11px);
  font-weight: 500;
}
.lv-exp-res.stop { color: var(--red-text, #ff5c69); }
.lv-exp-res.warn { color: var(--amber-text, #f59e0b); }
.lv-exp-res.ok { color: #22c55e; }
.lv-exp-res.bad { color: var(--red-text, #ff5c69); }
.lv-exp-top-acts {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lv-exp-top-acts .btn {
  height: 28px;
  padding: 0 10px;
  font-size: var(--fs-11, 11px);
  gap: 5px;
}
.lv-exp-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.lv-exp-seg {
  display: inline-flex;
  padding: 2px;
  background: #0b0f19;
  border: 1px solid var(--line);
  border-radius: 8px;
  gap: 2px;
}
.lv-tab-btn {
  height: 26px;
  padding: 0 12px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: var(--fs-11, 11px);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
}
.lv-tab-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}
.lv-tab-btn.on {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(61, 139, 255, 0.35);
}
.lv-exp-sub-desc {
  font-size: var(--fs-11, 11px);
  color: var(--ink-3);
}
.lv-inline-why {
  display: block;
}
.lv-both-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.25fr);
  gap: 16px;
  align-items: start;
}
.lv-dec-box, .lv-trace-box {
  padding: 14px 16px;
  border: 1px solid var(--ui-line, rgba(255,255,255,.12));
  border-radius: 10px;
  background: var(--ui-bg, #000);
  display: grid;
  gap: 10px;
}
.lv-dec-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}
.lv-dec-h b {
  font-size: var(--fs-13, 13px);
  font-weight: 600;
  color: var(--ink);
}
.lv-dec-h small {
  font-size: 11px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lv-dec-box .wy-list li.wy-win {
  padding: 9px 12px;
}
.lv-dec-box .wy-tls {
  margin: 4px 0 0;
}
.lv-dec-box .wy-foot, .lv-trace-box .wy-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
.lv-dec-box .wy-foot .btn, .lv-trace-box .wy-foot .btn {
  height: 28px;
  padding: 0 12px;
  font-size: var(--fs-11, 11px);
}
.lv-trace-box .dt-steps {
  margin-bottom: 4px;
}
body.has-panel #summary,
body.previewing #summary,
body:has(#panel:not([hidden])) #summary {
  right: 370px;
}

/* =========================================================================
   WP3: Notion Database & Bottom Dock (prefix db-)
   ========================================================================= */

.db-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--surface, #0b0f17);
  color: var(--ink, #edf1f8);
  font-size: var(--fs-12, 12px);
  overflow: hidden;
}

.db-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line, #1c2434);
  background: var(--surface-2, #111622);
  flex-wrap: wrap;
  min-height: 44px;
}

.db-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  height: 28px;
  background: #0d121c;
  border: 1px solid var(--line, #1e293b);
  border-radius: 6px;
  color: var(--ink, #f1f5f9);
}
.db-search input {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink, #f1f5f9);
  font-size: 12px;
  width: 130px;
}

.db-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  background: #141c2c;
  border: 1px solid var(--line, #1e293b);
  border-radius: 6px;
  color: var(--ink-2, #94a3b8);
  font-size: var(--fs-11, 11px);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.db-btn:hover, .db-btn.active {
  background: #1b263b;
  color: var(--ink, #f1f5f9);
  border-color: #2b3a55;
}

.db-select {
  height: 28px;
  padding: 0 8px;
  background: #141c2c;
  border: 1px solid var(--line, #1e293b);
  border-radius: 6px;
  color: var(--ink-2, #94a3b8);
  font-size: var(--fs-11, 11px);
  cursor: pointer;
  outline: 0;
}
.db-select:hover {
  color: var(--ink, #f1f5f9);
}

.db-sp { flex: 1; }

.db-filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 16px;
  background: #0e131d;
  border-bottom: 1px solid var(--line, #1c2434);
  font-size: var(--fs-11, 11px);
  flex-wrap: wrap;
}
.db-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 5px;
  background: #162032;
  border: 1px solid #233b66;
  color: var(--blue-ink, #7db0ff);
}
.db-chip button {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font-size: 11px;
}

.db-popover {
  position: absolute;
  z-index: 1000;
  padding: 12px;
  background: #111724;
  border: 1px solid #233149;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  font-size: 12px;
  color: var(--ink, #f1f5f9);
}

.db-table-wrap {
  flex: 1;
  overflow: auto;
  position: relative;
  padding-bottom: 96px;
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}
.db-table th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface-2, #111622);
  padding: 8px 10px;
  text-align: left;
  font-weight: 500;
  color: var(--ink-3, #71809a);
  border-bottom: 1px solid var(--line, #1c2434);
  user-select: none;
  white-space: nowrap;
}
.db-table th.sortable { cursor: pointer; }
.db-table th.sortable:hover { color: var(--ink, #f1f5f9); }
.db-table th.sorted { color: var(--blue-ink, #7db0ff); }

.db-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #141c2c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.db-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}
.db-table tr.db-row-exp td {
  background: #0f1623;
  border-bottom: 0;
}

.db-group-row td {
  background: #141b29 !important;
  font-weight: 600;
  color: var(--ink, #f1f5f9);
  padding: 8px 14px;
}

/* Row Expansion Detail Card */
.db-exp-card {
  padding: 16px 20px;
  background: #0c121d;
  border-bottom: 1px solid #1c2434;
}
.db-exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.db-exp-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.db-exp-lbl {
  font-size: var(--fs-11, 11px);
  font-weight: 600;
  color: var(--ink-3, #71809a);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.db-exp-val {
  font-size: 12px;
  color: var(--ink, #f1f5f9);
  word-break: break-all;
}
.db-exp-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #192233;
}

/* Bottom dock on Observatory */
.db-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--db-dock-h, 340px);
  max-height: 70vh;
  min-height: 180px;
  background: var(--surface, #0b0f17);
  border-top: 1px solid var(--line, #1c2434);
  z-index: 120;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.db-dock.dock-hidden {
  transform: translateY(100%);
  pointer-events: none;
}
.db-dock-handle {
  height: 6px;
  background: #141c2a;
  cursor: ns-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.db-dock-handle:hover {
  background: #233552;
}
.db-dock-handle::after {
  content: '';
  width: 36px;
  height: 2px;
  background: #3b4e6d;
  border-radius: 2px;
}

#btn-map-table {
  display: none !important;
}
#traffic {
  display: none !important;
}


/* =========================================================================
   WP5: Decision Trace from VxSure Extended Log (prefix dt-)
   ========================================================================= */

.dt-wrap {
  margin-top: 12px;
  padding: 14px;
  background: var(--ui-bg, #000);
  border: 1px solid var(--ui-line, rgba(255,255,255,.12));
  border-radius: 10px;
  font-size: 12px;
}
.dt-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dt-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.dt-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 0;
  color: var(--ui-ink, #f3f4f6);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.dt-body {
  flex: 1;
}
.dt-body b {
  color: var(--ui-ink, #f3f4f6);
  font-size: 13px;
  font-weight: 600;
}
.dt-desc {
  color: var(--ui-ink-2, #d1d5db);
  font-size: var(--fs-12, 12px);
  margin-top: 3px;
  line-height: 1.45;
}
.dt-desc .mono, .dt-desc b.mono { color: var(--ui-ink, #f3f4f6); }
.dt-chip {
  display: inline-block;
  padding: 1px 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ui-line, rgba(255,255,255,.12));
  border-radius: 6px;
  font-size: var(--fs-11, 11px);
  color: var(--ui-ink-2, #d1d5db);
  margin: 1px 2px;
}
.dt-chips {
  margin-top: 4px;
}
.dt-inf {
  display: inline-block;
  padding: 1px 4px;
  border-radius: 4px;
  background: none;
  border: 1px solid var(--ui-line, rgba(255,255,255,.12));
  color: var(--ui-ink-3, #8f8f8f);
  font-size: var(--fs-11, 11px);
  text-transform: uppercase;
  margin-left: 4px;
  vertical-align: middle;
}
.dt-fold {
  margin-top: 10px;
  border-top: 1px solid var(--ui-line-soft, rgba(255,255,255,.07));
  padding-top: 8px;
}
.dt-fold summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #d1d5db;
  font-size: var(--fs-11, 11px);
  font-weight: 500;
  user-select: none;
  list-style: none;
}
.dt-fold summary::-webkit-details-marker {
  display: none;
}
.dt-fold summary svg {
  flex-shrink: 0;
  transform: rotate(-90deg);
  transition: transform .15s ease;
}
.dt-fold[open] summary svg {
  transform: rotate(0deg);
}
.dt-params-wrap {
  margin-top: 8px;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--ui-line, rgba(255,255,255,.12));
  border-radius: 8px;
}
.dt-params-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.dt-params-tbl th, .dt-params-tbl td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--ui-line-soft, rgba(255,255,255,.07));
  text-align: left;
}
.dt-params-tbl th {
  background: var(--ui-raised, #141414);
  color: var(--ui-ink-3, #8f8f8f);
  position: sticky;
  top: 0;
}


/* =========================================================================
   WP6: Policy History Full Page (prefix ph-)
   ========================================================================= */

.ph-layout {
  display: flex;
  gap: 24px;
  max-width: 1400px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 24px 28px 120px;
}
.ph-main, .ph-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  box-sizing: border-box;
}
.ph-sidebar, .ph-left {
  flex: 0 0 380px;
  max-width: 380px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ph-head-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  width: 100%;
  box-sizing: border-box;
}
.ph-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  background: var(--surface-2, #111622);
  border: 1px solid var(--line, #1c2434);
  border-radius: 8px;
  font-size: 12px;
  overflow-x: hidden;
}
.ph-restore-card {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  scrollbar-width: thin;
}
.ph-v-item {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: #0f1522;
  border: 1px solid #1a2335;
  border-radius: 7px;
  margin-bottom: 8px;
  overflow: hidden;
}
.ph-v-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}
.ph-v-title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: var(--ink, #edf1f8);
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}
.ph-v-sub {
  font-size: 11px;
  color: var(--ink-3, #71809a);
  word-break: break-word;
  line-height: 1.3;
}
.ph-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: var(--fs-11, 11px);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: .02em;
}
.ph-badge.current { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.ph-badge.saved { background: rgba(61, 139, 255, 0.15); color: #7db0ff; border: 1px solid rgba(61, 139, 255, 0.3); }
.ph-badge.draft { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.ph-badge.rollback { background: rgba(148, 163, 184, 0.1); color: #94a3b8; border: 1px solid #233149; }

.ph-tabs {
  display: flex;
  gap: 2px;
  background: #0d121c;
  padding: 2px;
  border-radius: 7px;
  border: 1px solid var(--line, #1c2434);
  width: fit-content;
}
.ph-tabs button {
  height: 26px;
  padding: 0 12px;
  border-radius: 5px;
  border: 0;
  background: transparent;
  color: var(--ink-2, #94a3b8);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.ph-tabs button.on {
  background: var(--blue, #3d8bff);
  color: #fff;
}


/* =========================================================================
   WP8: Observatory Restructure (prefix ob-)
   ========================================================================= */

.ob-dest-card {
  background: #111624;
  border: 1px solid #1f2b40;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.ob-dest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #151d2e;
  border-bottom: 1px solid #1f2b40;
  font-size: 12px;
  font-weight: 600;
}
.ob-act-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px 6px 20px;
  border-bottom: 1px solid #141c2c;
  font-size: var(--fs-11, 11px);
  position: relative;
}
.ob-act-row::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3b4e6d;
}
.ob-act-row.risky::before {
  background: var(--red, #ef4444);
}
.ob-ring-wrap {
  position: absolute;
  pointer-events: none;
  z-index: 25;
}
.ob-ring-icon {
  position: absolute;
  pointer-events: auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #121929;
  border: 1px solid #233b66;
  color: var(--blue-ink, #7db0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: all .15s;
}
.ob-ring-icon:hover {
  background: var(--blue, #3d8bff);
  color: #fff;
  border-color: #5ea0ff;
  transform: scale(1.1);
}
.ob-ring-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: var(--fs-11, 11px);
  font-weight: 700;
  border-radius: 6px;
  padding: 0 4px;
  height: 12px;
  line-height: 12px;
}


/* =========================================================================
   WP9: Integrations Button & Panel (prefix ig-)
   ========================================================================= */

/* =========================================================================
   Integrations consolidated inside VxSure; Map elements & Notification bell hidden
   ========================================================================= */

#btn-map-integ,
.hx-int,
#btn-bell,
#bell-pop,
#btn-search,
.ask-ic {
  display: none !important;
}

/* Inside VxSure: Integrations Grid & Cards */
.hv-int-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.hv-int-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: all 0.15s ease;
  user-select: none;
}
.hv-int-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}
.hv-int-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex: none;
}
.hv-int-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hv-int-info b {
  font-size: var(--fs-13, 13px);
  font-weight: 600;
  color: #f1f5f9;
}
.hv-int-info small {
  font-size: var(--fs-11, 11px);
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hv-int-stat {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}
.hv-int-stat.on {
  color: #38bdf8;
  font-weight: 500;
}
.hv-int-act {
  flex: none;
}
.hv-int-act .btn {
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
}

/* Custom Time Range Popover */
.tm-custom-pop {
  position: absolute;
  top: 52px;
  left: 200px;
  width: 350px;
  background: #0d121c;
  border: 1px solid #1f2d45;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeIn 0.15s ease-out;
}
.tm-cp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 10px;
}
.tm-cp-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-13, 13px);
  font-weight: 600;
  color: #f1f5f9;
}
.tm-cp-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tm-cp-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tm-cp-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tm-cp-f {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tm-cp-f label {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tm-date-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tm-cp-f input[type="date"],
.tm-cp-f input[type="time"] {
  height: 32px;
  background: #141b29;
  border: 1px solid #23314a;
  border-radius: 6px;
  color: #f1f5f9;
  padding: 0 10px;
  font-size: var(--fs-12, 12px);
  outline: none;
  font-family: inherit;
  width: 100%;
}
.tm-cp-f input[type="date"]:focus,
.tm-cp-f input[type="time"]:focus {
  border-color: #38bdf8;
}
.tm-day-tag {
  flex: none;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  padding: 0 10px;
  height: 32px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
}
.tm-cp-quick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.tm-cp-quick small {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tm-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tm-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s;
}
.tm-chip:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #e2e8f0;
}
.tm-cp-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.tm-cp-foot .btn {
  height: 30px;
  font-size: 12px;
  padding: 0 14px;
}

.ig-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 620px;
  max-width: 90vw;
  max-height: 85vh;
  background: #0d121c;
  border: 1px solid #1f2d45;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
  z-index: 150;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ig-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #192336;
  background: #111724;
}
.ig-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.ig-list {
  padding: 14px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ig-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #111724;
  border: 1px solid #1c273c;
  border-radius: 7px;
  cursor: pointer;
  transition: all .15s;
}
.ig-item:hover {
  background: #162032;
  border-color: #2b3d5c;
}
.ig-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #162136;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-ink, #7db0ff);
  flex-shrink: 0;
}
.ig-info {
  flex: 1;
  min-width: 0;
}
.ig-name {
  font-size: var(--fs-12, 12px);
  font-weight: 600;
  color: var(--ink, #edf1f8);
}
.ig-status {
  font-size: 11px;
  color: var(--ink-3, #71809a);
  margin-top: 1px;
}


/* =========================================================================
   WP10: Settings pass (prefix st-)
   ========================================================================= */

.st-plain-label {
  font-size: var(--fs-13, 13px);
  font-weight: 600;
  color: var(--ink, #edf1f8);
  margin-bottom: 2px;
}
.st-raw-field {
  font-family: var(--font-mono, monospace);
  font-size: var(--fs-11, 11px);
  color: var(--ink-3, #71809a);
  margin-bottom: 6px;
}
.c-main, .c-form {
  font-size: var(--fs-13, 13px) !important;
}
.c-form label {
  font-size: 13px !important;
}
.c-help, .c-form .f-sub {
  font-size: var(--fs-12, 12px) !important;
}

.hv-net-wrap {
  padding: 12px 0;
}
.st-card {
  background: #111624;
  border: 1px solid #1f2b40;
  border-radius: 8px;
  padding: 12px 14px;
}
.st-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.st-card-h b {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #edf1f8);
}
.st-card-b {
  font-size: 12px;
  color: var(--ink-2, #94a3b8);
  line-height: 1.45;
}

/* =========================================================================
   Responsive Desktop Pass (1280px, 1366px, 1526px, 1920px)
   ========================================================================= */

/* Prevent ask-bar from covering content in scrolling views */
#summary, #history, .ph-layout, .lv-wrap, #lv-db-root {
  box-sizing: border-box;
}
.ph-layout {
  padding-bottom: 120px !important;
}
.lv-wrap {
  padding-bottom: 120px !important;
}
.db-table-wrap {
  padding-bottom: 100px !important;
}

/* Database More Menu styling */
.db-more-wrap {
  display: none;
  position: relative;
}
.db-more-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #141c2c;
  border: 1px solid #233149;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  padding: 6px;
  min-width: 160px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.db-more-menu[hidden] {
  display: none !important;
}
.db-menu-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: none;
  border: none;
  border-radius: 5px;
  color: var(--ink-2, #94a3b8);
  font-size: var(--fs-11, 11px);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.db-menu-item:hover {
  background: #1e2b42;
  color: #fff;
}
.db-menu-raw {
  font-size: 11px;
  color: var(--ink-3, #71809a);
  padding: 6px 10px;
  border-top: 1px solid #1f2b40;
  margin-top: 2px;
}
.db-menu-raw a {
  color: var(--blue-ink, #7db0ff);
  text-decoration: none;
}
.db-menu-raw a:hover {
  text-decoration: underline;
}

/* 1366px breakpoint adjustments */
@media (max-width: 1366px) {
  /* Collapse database toolbar into more menu */
  .db-toolbar {
    flex-wrap: nowrap !important;
    overflow: visible !important;
    gap: 6px !important;
    padding: 6px 12px !important;
  }
  .db-actions {
    display: none !important;
  }
  .db-more-wrap {
    display: inline-flex !important;
    position: relative;
  }
  .db-search input {
    width: 95px !important;
  }
  
  /* List view row responsiveness */
  .lv-main {
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
    padding: 10px 14px !important;
  }
  .lv-sentence {
    min-width: 300px !important;
  }
  .lv-acts {
    flex-wrap: wrap !important;
    margin-left: auto !important;
    gap: 4px !important;
  }
  .lv-act-btn {
    font-size: 11px !important;
    padding: 0 7px !important;
    height: 25px !important;
  }
}

/* 1280px breakpoint adjustments */
@media (max-width: 1280px) {
  /* Policy history 2-column stacks into 1 column */
  .ph-layout {
    flex-direction: column !important;
    padding: 18px 18px 120px !important;
  }
  .ph-main, .ph-left {
    width: 100% !important;
  }
  .ph-sidebar, .ph-right {
    flex: 0 0 auto !important;
    width: 100% !important;
  }
  
  /* Header search input removed per design */
  .cn-search {
    display: none !important;
  }
  
  /* Top-bar segmented switches */
  .lv-top {
    gap: 8px !important;
    padding: 10px 16px !important;
  }
  .lv-dl-btn {
    font-size: 11px !important;
    padding: 0 8px !important;
  }
}

/* Destination Capsule Sub-Row File Chips */
.cap-file-row {
  display: flex !important;
  align-items: center !important;
  flex: none !important;
  margin: -1px 0 4px 18px !important;
  position: relative !important;
  z-index: 4 !important;
}

.cap-file-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 20px !important;
  max-width: 220px !important;
  padding: 0 7px 0 5px !important;
  border-radius: 6px !important;
  font-size: var(--fs-11, 11px) !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  background: rgba(255, 92, 105, 0.12) !important;
  border: 1px solid rgba(255, 92, 105, 0.32) !important;
  color: #FFC4C9 !important;
  cursor: pointer !important;
  transition: all .15s ease !important;
  user-select: none !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

.cap-file-chip.b-high {
  background: rgba(255, 92, 105, 0.14) !important;
  border-color: rgba(255, 92, 105, 0.38) !important;
  color: #FFC4C9 !important;
}

.cap-file-chip.b-mid {
  background: rgba(242, 181, 68, 0.12) !important;
  border-color: rgba(242, 181, 68, 0.35) !important;
  color: #F8D58A !important;
}

.cap-file-chip.b-low,
.cap-file-chip.b-norm {
  background: rgba(125, 176, 255, 0.1) !important;
  border-color: rgba(125, 176, 255, 0.25) !important;
  color: var(--blue-text, #7DB0FF) !important;
}

.cap-file-chip:hover {
  background: rgba(255, 92, 105, 0.25) !important;
  border-color: rgba(255, 92, 105, 0.7) !important;
  box-shadow: 0 2px 8px rgba(255, 92, 105, 0.3) !important;
  transform: translateY(-1px) !important;
}

.cap-file-chip.b-mid:hover {
  background: rgba(242, 181, 68, 0.22) !important;
  border-color: rgba(242, 181, 68, 0.65) !important;
  box-shadow: 0 2px 8px rgba(242, 181, 68, 0.3) !important;
}

.cap-file-chip.is-blocked {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: var(--ink-3, #788296) !important;
  box-shadow: none !important;
}

.cap-file-chip.is-blocked:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  transform: none !important;
}

.cap-file-chip.is-blocked .cap-file-name {
  text-decoration: line-through !important;
  opacity: 0.75 !important;
}

.cap-file-ico {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
}

.cap-file-ico svg {
  width: 10px !important;
  height: 10px !important;
  stroke-width: 2.2 !important;
}

.cap-file-name {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 110px !important;
  font-weight: 500 !important;
}

.cap-file-more {
  font-size: var(--fs-11, 11px) !important;
  opacity: 0.75 !important;
  margin-left: -2px !important;
  flex: none !important;
}

.cap-file-act {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1px 4px !important;
  border-radius: 3px !important;
  font-size: 8.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  background: rgba(255, 92, 105, 0.3) !important;
  color: #fff !important;
  transition: all .12s ease !important;
  flex: none !important;
}

.cap-file-chip:hover .cap-file-act {
  background: #ff5c69 !important;
  color: #0A0F1A !important;
}

.cap-file-chip.b-mid .cap-file-act {
  background: rgba(242, 181, 68, 0.3) !important;
  color: #fff !important;
}

.cap-file-chip.b-mid:hover .cap-file-act {
  background: #F2B544 !important;
  color: #0A0F1A !important;
}

.cap-file-chip.is-blocked .cap-file-act.done {
  background: rgba(61, 139, 255, 0.15) !important;
  color: var(--blue-text, #7db0ff) !important;
}






/* ========================================================
   V14 2D Policy Matrix Grid (User Groups x Web Resources)
   ======================================================== */
.pm-wrap .pm-bar {
  margin-bottom: 18px;
}
.pm-grp-select {
  height: 32px;
  padding: 0 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #e5e7eb;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.pm-grp-select:focus {
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
}

.pm-grid-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #000;
  box-shadow: none;
  overflow: hidden;
  margin-top: 0;
}

.pm-grid-scroll {
  max-height: calc(100vh - 225px);
  overflow: auto;
  position: relative;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #000;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.pm-grid-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  text-align: left;
}

/* Sticky top header */
.pm-grid-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #141414;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 0;
  padding: 16px 18px;
  vertical-align: bottom;
  color: var(--c-ink, #eef0f3);
  font-weight: 600;
  white-space: nowrap;
}

/* Sticky first column (Applications & Services) */
.pm-grid-table thead th:first-child,
.pm-grid-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 11;
  background: #141414;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  width: 260px;
  min-width: 260px;
  max-width: 280px;
}
.pm-grid-table thead th:first-child {
  z-index: 20; /* top-left intersection */
  background: #141414;
}

.pm-col-grp-head {
  min-width: 240px;
  max-width: 260px;
}
.pm-grp-name {
  font-size: var(--fs-12, 12px);
  font-weight: 600;
  color: #f3f4f6;
  display: flex;
  align-items: center;
  gap: 7px;
}
.pm-grp-name svg {
  opacity: .55;
}
.pm-grp-sub {
  font-size: 11px;
  color: #8f8f8f;
  font-weight: normal;
  margin-top: 4px;
  padding-left: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-res-title {
  font-size: 13px;
  font-weight: 600;
  color: #f3f4f6;
}
.pm-res-sub {
  font-size: 11px;
  color: #8f8f8f;
  font-weight: normal;
  margin-top: 4px;
}

/* Table body rows & clean row spacing */
.pm-grid-table tbody tr {
  transition: background .12s;
}
.pm-grid-table tbody td {
  background-color: #000 !important;
  border-bottom: 1px solid var(--ui-line-soft) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.04) !important;
  padding: 22px 20px !important;
  vertical-align: top !important;
}
.pm-grid-table tbody tr:last-child td {
  border-bottom: 0 !important;
}
.pm-grid-table tbody td:first-child {
  background-color: #141414 !important;
}
.pm-grid-table tbody tr:hover td {
  background-color: #0a0a0a !important;
}
.pm-grid-table tbody tr:hover td:first-child {
  background-color: #1a1a1a !important;
}

.pm-cell-res {
  padding: 16px 18px !important;
  vertical-align: top !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.pm-res-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 4px !important;
}
.pm-res-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #f3f4f6 !important;
  line-height: 1.35 !important;
}
.pm-res-domain {
  font-size: 11px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  color: #8f8f8f !important;
  opacity: 1 !important;
  margin-top: 0 !important;
}

/* Interactive Cell */
.pm-cell-data {
  cursor: pointer;
  position: relative;
  transition: background-color .15s, box-shadow .15s;
  outline: none;
}
.pm-grid-table tbody tr td.pm-cell-data:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
  background-color: #0d0d0d !important;
}
.pm-grid-table tbody tr td.pm-cell-data:focus {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45) !important;
}

.pm-cell-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important; /* clearly more than a wrapped line, so separate items never read as one */
  align-items: flex-start !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 24px !important;
}

.pm-cell-edit-hint {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  background: #000;
  color: #9ca3af;
  font-size: var(--fs-11, 11px);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}
.pm-cell-data:hover .pm-cell-edit-hint {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Badge styling: Plain text in Policies matrix */
.pm-badge {
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  word-break: break-word !important;
  white-space: normal !important;
  max-width: 100% !important;
  overflow: visible !important;
  text-overflow: clip !important;
  color: var(--ui-ink-2) !important;
  box-shadow: none !important;
}
.pm-badge svg {
  display: none !important;
}

.pm-badge-dot {
  display: none !important;
}

.badge-deny {
  background: transparent !important;
  border: 0 !important;
  color: var(--ui-red) !important;
  font-weight: 600 !important;
}
.badge-rbi {
  background: transparent !important;
  border: 0 !important;
  color: var(--ui-ink) !important;
  font-weight: 500 !important;
}
.badge-allow, .badge-full, .badge-ssl, .badge-warn, .badge-schedule, .badge-auth, .badge-dl, .badge-ul, .badge-dlp, .badge-readonly, .badge-neutral {
  background: transparent !important;
  border: 0 !important;
  color: var(--ui-ink-2) !important;
  font-weight: 400 !important;
}

.pm-cell-flash {
  animation: pmFlash 1.6s ease-out;
}
@keyframes pmFlash {
  0% { background-color: rgba(16, 185, 129, 0.45) !important; }
  100% { background-color: transparent; }
}

/* Modal styling */
.pm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pm-modal-dialog {
  box-sizing: border-box;
  background: #111620;
  border: 1px solid #2e384d;
  border-radius: 14px;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  animation: pmModalIn .2s cubic-bezier(.16, 1, .3, 1);
}
@keyframes pmModalIn {
  from { opacity: 0; transform: scale(.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.pm-modal-header {
  box-sizing: border-box;
  padding: 16px 20px;
  border-bottom: 1px solid #222a38;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pm-modal-title b {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  display: block;
}
.pm-modal-title span {
  font-size: 12px;
  color: #7b8fa7;
  display: block;
  margin-top: 2px;
}
.pm-modal-close {
  background: none;
  border: 0;
  color: #7b8fa7;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.pm-modal-close:hover {
  color: #fff;
  background: #1e2633;
}

.pm-modal-body {
  box-sizing: border-box;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pm-form-row {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pm-form-label {
  font-size: var(--fs-11, 11px);
  font-weight: 600;
  color: #c5d2e3;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pm-form-sub {
  font-size: 11px;
  color: #7b8fa7;
  margin-top: -3px;
  margin-bottom: 3px;
  display: block;
}

.pm-seg-radio {
  box-sizing: border-box;
  display: flex;
  gap: 6px;
  background: #090c12;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #222a38;
}
.pm-seg-btn {
  box-sizing: border-box;
  flex: 1;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: var(--fs-11, 11px);
  font-weight: 600;
  text-align: center;
  border: 0;
  background: none;
  color: #8fa0b5;
  cursor: pointer;
  transition: all .15s;
}
.pm-seg-btn.on {
  background: #253347;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.pm-seg-btn.on.deny {
  background: #7f1d1d;
  color: #fecaca;
}
.pm-seg-btn.on.rbi {
  background: #581c87;
  color: #e9d5ff;
}

.pm-form-select, .pm-form-input {
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  background: #090c12;
  border: 1px solid #283244;
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-size: 12px;
}
.pm-form-select:focus, .pm-form-input:focus {
  border-color: #3d8bff;
  outline: none;
}

.pm-checks-grid {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}
.pm-check-item {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: #090c12;
  border: 1px solid #202736;
  border-radius: 8px;
  cursor: pointer;
  font-size: var(--fs-11, 11px);
  color: #c5d2e3;
  transition: border-color .15s;
}
.pm-check-item:hover {
  border-color: #3d8bff;
}
.pm-check-item input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #3d8bff;
}

.pm-modal-footer {
  box-sizing: border-box;
  padding: 14px 20px;
  border-top: 1px solid #222a38;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #0d1219;
}


/* ==========================================================================
   20 Nov 2026: Sophisticated Dark-Mode Policy Matrix & Balanced Apps Column
   ========================================================================== */

/* Completely hide the unnecessary background container around browsers */
#apps-box {
  display: none !important;
}

/* Enhanced 210px App Cards in APPS Column */
.n.f-bubble-group.c-clients {
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
.ci-card {
  width: 210px !important;
  height: 52px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 4px 12px 4px 6px !important;
  background: rgba(14, 19, 29, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 26px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
  cursor: pointer;
}
.ci-card:hover {
  background: rgba(22, 30, 46, 0.9) !important;
  border-color: rgba(61, 139, 255, 0.4) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(61, 139, 255, 0.15) !important;
}
.ci-card .ci-disc {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0d121c;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.ci-card .ci-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.ci-card .ci-name {
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: var(--fs-12, 12px) !important;
  font-weight: 600 !important;
  color: #f1f5f9 !important;
  line-height: 1.2 !important;
}
.ci-card .ci-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ci-card .ci-name b {
  font-size: 11px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
  padding: 1px 5px !important;
  border-radius: 10px !important;
}
.ci-card .ci-sub {
  font-size: var(--fs-11, 11px) !important;
  color: #94a3b8 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Modal styling for Create New Policy Modal */
.pm-new-policy-card {
  max-width: 640px !important;
}
.pm-form-grid-3 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
}
.pm-custom-res-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(61, 139, 255, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
}


/* Override .ci-wrap flex-direction for wide horizontal app cards */
.n.c-clients .ci-card.ci-wrap {
  flex-direction: row !important;
  width: 230px !important;
  height: 54px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 6px 14px 6px 8px !important;
  background: rgba(14, 19, 29, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 27px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
  box-sizing: border-box !important;
}
.n.c-clients .ci-card.ci-wrap:hover {
  background: rgba(20, 28, 44, 0.95) !important;
  border-color: rgba(61, 139, 255, 0.45) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6), 0 0 14px rgba(61, 139, 255, 0.2) !important;
}
.n.c-clients .ci-card .ci-disc {
  flex: none !important;
  width: 42px !important;
  height: 42px !important;
}
.n.c-clients .ci-card .ci-info {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  text-align: left !important;
}
.n.c-clients .ci-card .ci-name {
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #f8fafc !important;
}
.n.c-clients .ci-card .ci-name span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.n.c-clients .ci-card .ci-name b {
  font-size: 11px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
  padding: 1px 6px !important;
  border-radius: 10px !important;
}
.n.c-clients .ci-card .ci-sub {
  font-size: var(--fs-11, 11px) !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Modal styling for new policy dialog */
.pm-new-policy-dialog {
  max-width: 660px !important;
  max-height: 88vh !important;
}

/* =========================================================================
   WCAG 2.1 AA/AAA Button Color Contrast Rules
   Ensures all button text meets minimum 4.5:1 (AA) and 7:1 (AAA) contrast ratios
   ========================================================================= */

/* Primary Buttons: Deep Blue background (#1d64d8) with pure white (#ffffff) text
   Contrast Ratio: 5.9:1 (Passes WCAG AA)
   Hover Background: #1e40af with pure white text
   Contrast Ratio: 8.2:1 (Passes WCAG AAA) */
.btn.pri,
.vbtn.primary,
.pm-btn-pri,
#btn-new-policy,
#btn-save-cfg,
.btn-pri,
button.pri,
[data-pm="new"],
[data-ps="new"],
.wz-act.pri,
.pb-foot .btn.pri,
.pm-foot .btn.pri {
  background: #1d64d8 !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

.btn.pri:hover,
.vbtn.primary:hover,
.pm-btn-pri:hover,
#btn-new-policy:hover,
#btn-save-cfg:hover,
.btn-pri:hover,
button.pri:hover,
[data-pm="new"]:hover,
[data-ps="new"]:hover,
.wz-act.pri:hover,
.pb-foot .btn.pri:hover,
.pm-foot .btn.pri:hover {
  background: #1e40af !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

/* Secondary / Default Buttons: Raised container with neutral border and text
   WCAG compliant */
.btn:not(.pri):not(.danger),
.vbtn:not(.primary):not(.danger):not(.ghost),
.btn-ghost,
[data-pm="export"],
[data-ps="matrix"],
[data-ps="export"],
[data-pm="close-new-modal"],
[data-pm="close-modal"],
.lv-dl-btn,
.db-btn,
.p-back,
.j-back,
.pb-back,
.cn-btn:not(.primary) {
  background: var(--ui-raised, #141414) !important;
  border: 1px solid var(--ui-line, rgba(255,255,255,0.12)) !important;
  color: var(--ui-ink, #f3f4f6) !important;
  border-radius: 8px !important;
}

.btn:not(.pri):not(.danger):hover,
.vbtn:not(.primary):not(.danger):not(.ghost):hover,
.btn-ghost:hover,
[data-pm="export"]:hover,
[data-ps="matrix"]:hover,
[data-ps="export"]:hover,
[data-pm="close-new-modal"]:hover,
[data-pm="close-modal"]:hover,
.lv-dl-btn:hover,
.db-btn:hover,
.p-back:hover,
.j-back:hover,
.pb-back:hover,
.cn-btn:not(.primary):hover {
  background: var(--ui-raised-2, #1a1a1a) !important;
  border-color: var(--ui-line, rgba(255,255,255,0.12)) !important;
  color: var(--ui-ink, #f3f4f6) !important;
}

/* Danger / Destructive Buttons: Deep Crimson (#b91c1c) with white (#ffffff) text
   Contrast Ratio: 5.8:1 (Passes WCAG AA)
   Hover Background: #991b1b
   Contrast Ratio: 7.5:1 (Passes WCAG AAA) */
.btn.danger,
.vbtn.danger,
.btn-red,
button.danger {
  background: #b91c1c !important;
  border: 1px solid #dc2626 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.btn.danger:hover,
.vbtn.danger:hover,
.btn-red:hover,
button.danger:hover {
  background: #991b1b !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

/* Segmented and Toggle Buttons */
.seg,
.vseg,
.view-sw,
.pm-seg,
.ph-tabs {
  background: var(--ui-bg, #000) !important;
  border: 1px solid var(--ui-line, rgba(255,255,255,0.12)) !important;
  border-radius: 8px !important;
}

.seg button,
.vseg button,
.view-sw button,
.pm-seg-btn,
.ph-tabs button,
.lv-tab-btn {
  color: var(--ui-ink-3, #8f8f8f) !important;
  background: transparent !important;
  border: 0 !important;
}

.seg button:hover,
.vseg button:hover,
.view-sw button:hover,
.pm-seg-btn:hover,
.ph-tabs button:hover,
.lv-tab-btn:hover {
  color: var(--ui-ink, #f3f4f6) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.seg button.on,
.seg button.active,
.vseg button.on,
.vseg button.active,
.view-sw button.on,
.view-sw button.active,
.pm-seg-btn.active,
.pm-seg-btn.on:not(.deny):not(.rbi),
.ph-tabs button.active,
.ph-tabs button.on,
.lv-tab-btn.on,
.lv-tab-btn.active {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Deny in segmented controls keeps red meaning */
.pm-seg-btn.deny.on {
  background: rgba(248, 113, 113, 0.2) !important;
  color: var(--ui-red, #f87171) !important;
  border: 1px solid rgba(248, 113, 113, 0.4) !important;
}

/* Zoom Controls Pill Buttons */
#zoom,
.zoom-pill {
  background: var(--ui-raised, #141414) !important;
  border: 1px solid var(--ui-line, rgba(255,255,255,0.12)) !important;
  border-radius: 8px !important;
}
#zoom button,
.zoom-pill button,
.zoom-fit {
  color: var(--ui-ink-3, #8f8f8f) !important;
  background: transparent !important;
  border: 0 !important;
}
#zoom button:hover,
.zoom-pill button:hover,
.zoom-fit:hover {
  color: var(--ui-ink, #f3f4f6) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

/* ===== UI uniformity tokens (20 Nov 2026) ===== */
:root {
  --ui-bg: #000;
  --ui-raised: #141414;
  --ui-raised-2: #1a1a1a;
  --ui-hover: #0a0a0a;
  --ui-line: rgba(255,255,255,0.12);
  --ui-line-soft: rgba(255,255,255,0.07);
  --ui-ink: #f3f4f6;
  --ui-ink-2: #d1d5db;
  --ui-ink-3: #8f8f8f;
  --ui-accent: #f3f4f6;
  --ui-accent-2: #ffffff;
  --ui-red: #f87171;
  --ui-amber: #fbbf24;
  --ui-green: #4ade80;
}

/* 1. Primary action buttons (Monochrome light-on-dark) */
.btn.pri,
.vbtn.primary,
.pm-btn-pri,
#btn-new-policy,
#btn-save-cfg,
.btn-pri,
button.pri,
[data-pm="new"],
[data-ps="new"],
.wz-act.pri,
.pb-foot .btn.pri,
.pm-foot .btn.pri,
[data-pm="create-policy"],
[data-pm="save-cell"],
[data-im="yes"],
button[data-im="yes"],
#tm-cr-apply,
.cn-btn.cn-save.primary,
.tl-play {
  background: var(--ui-accent) !important;
  border-color: var(--ui-accent) !important;
  color: #0a0a0a !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

.btn.pri:hover,
.vbtn.primary:hover,
.pm-btn-pri:hover,
#btn-new-policy:hover,
#btn-save-cfg:hover,
.btn-pri:hover,
button.pri:hover,
[data-pm="new"]:hover,
[data-ps="new"]:hover,
.wz-act.pri:hover,
.pb-foot .btn.pri:hover,
.pm-foot .btn.pri:hover,
[data-pm="create-policy"]:hover,
[data-pm="save-cell"]:hover,
[data-im="yes"]:hover,
button[data-im="yes"]:hover,
#tm-cr-apply:hover,
.cn-btn.cn-save.primary:hover,
.tl-play:hover {
  background: var(--ui-accent-2) !important;
  border-color: var(--ui-accent-2) !important;
  color: #0a0a0a !important;
}

.btn.pri:disabled,
.vbtn.primary:disabled,
button.pri:disabled,
#btn-save-cfg:disabled {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--ui-ink-3) !important;
}

/* 2. Secondary buttons */
.btn:not(.pri):not(.danger),
.vbtn:not(.primary):not(.danger):not(.ghost),
.btn-ghost,
[data-pm="export"],
[data-ps="matrix"],
[data-ps="export"],
[data-pm="close-new-modal"],
[data-pm="close-modal"],
.lv-dl-btn,
.db-btn,
.p-back,
.j-back,
.pb-back,
.cn-btn:not(.primary),
.wy-foot .btn,
.lv-exp-top-acts .btn,
.ph-ctrls .btn,
.db-more-btn,
[data-im="back"],
button[data-im="back"],
.tm-cp-foot .btn.sub {
  background: var(--ui-raised) !important;
  border: 1px solid var(--ui-line) !important;
  color: var(--ui-ink) !important;
  border-radius: 8px !important;
}

.btn:not(.pri):not(.danger):hover,
.vbtn:not(.primary):not(.danger):not(.ghost):hover,
.btn-ghost:hover,
[data-pm="export"]:hover,
[data-ps="matrix"]:hover,
[data-ps="export"]:hover,
[data-pm="close-new-modal"]:hover,
[data-pm="close-modal"]:hover,
.lv-dl-btn:hover,
.db-btn:hover,
.p-back:hover,
.j-back:hover,
.pb-back:hover,
.cn-btn:not(.primary):hover,
.wy-foot .btn:hover,
.lv-exp-top-acts .btn:hover,
.ph-ctrls .btn:hover,
.db-more-btn:hover,
[data-im="back"]:hover,
button[data-im="back"]:hover,
.tm-cp-foot .btn.sub:hover {
  background: var(--ui-raised-2) !important;
  border-color: var(--ui-line) !important;
  color: var(--ui-ink) !important;
}

/* 3. Segmented controls, tabs and chips */
.seg,
.vseg,
.view-sw,
.view-switch,
.lv-mode-switch,
.lv-exp-seg,
.ph-tabs,
.pm-seg,
.pm-modal-tabs,
.db-seg {
  background: var(--ui-bg) !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: 8px !important;
  padding: 2px !important;
  box-sizing: border-box !important;
}

.seg button,
.vseg button,
.view-sw button,
.view-switch button,
.lv-mode-switch button,
.lv-exp-seg button,
.ph-tabs button,
.pm-seg-btn,
.lv-tab-btn,
.tm-chip,
.vchip:not(.on),
.db-preset-btn {
  background: transparent !important;
  color: var(--ui-ink-3) !important;
  border: 0 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all .12s ease !important;
}

.seg button:hover,
.vseg button:hover,
.view-sw button:hover,
.view-switch button:hover,
.lv-mode-switch button:hover,
.lv-exp-seg button:hover,
.ph-tabs button:hover,
.pm-seg-btn:hover,
.lv-tab-btn:hover,
.tm-chip:hover,
.vchip:not(.on):hover,
.db-preset-btn:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--ui-ink) !important;
}

.seg button.on,
.seg button.active,
.vseg button.on,
.vseg button.active,
.view-sw button.on,
.view-sw button.active,
.view-switch button.on,
.view-switch button.active,
.lv-mode-switch button.on,
.lv-mode-switch button.active,
.lv-exp-seg button.on,
.lv-exp-seg button.active,
.ph-tabs button.on,
.ph-tabs button.active,
.pm-seg-btn.on:not(.deny):not(.rbi),
.pm-seg-btn.active:not(.deny):not(.rbi),
.lv-tab-btn.on,
.lv-tab-btn.active,
.vchip.on,
.tm-presets button.on,
.db-btn.active {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

/* Filter chips */
.lv-filter-chip,
.db-chip {
  background: var(--ui-raised) !important;
  border: 1px solid var(--ui-line) !important;
  color: var(--ui-ink-2) !important;
  border-radius: 8px !important;
}
.lv-filter-chip button,
.db-chip button {
  color: var(--ui-ink-3) !important;
}
.lv-filter-chip button:hover,
.db-chip button:hover {
  color: var(--ui-ink) !important;
}

/* 4. Inputs and selects (height 32px, radius 8px, no blue glow) */
input[type="text"],
input[type="search"],
input[type="date"],
input[type="time"],
select,
.db-select,
.pm-grp-select,
.pm-form-select,
.pm-form-input,
.tr-find input,
.db-search input,
.wz-in,
#tm-cr-date,
#tm-cr-start,
#tm-cr-end,
.tm-date-wrap input {
  height: 32px !important;
  background: var(--ui-bg) !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: 8px !important;
  color: var(--ui-ink) !important;
  box-sizing: border-box !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 12px !important;
}

input::placeholder,
.db-search input::placeholder,
.tr-find input::placeholder,
.wz-in::placeholder {
  color: var(--ui-ink-3) !important;
}

input:focus,
select:focus,
.db-select:focus,
.pm-grp-select:focus,
.pm-form-select:focus,
.pm-form-input:focus,
.tr-find:focus-within,
.db-search:focus-within {
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* 5. Toolbar rows: every control 32px tall */
.lv-top,
.db-toolbar,
.v-top,
.pm-bar {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}

.pm-bar .tr-find,
.v-top .tr-find,
.tr-find,
.db-search {
  height: 32px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  background: var(--ui-bg) !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: 8px !important;
  padding: 0 8px !important;
}
.tr-find input,
.db-search input {
  height: 28px !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 4px !important;
}

.lv-top .seg,
.db-toolbar .seg,
.v-top .seg,
.pm-bar .seg {
  height: 32px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
}
.lv-top .seg button,
.db-toolbar .seg button,
.v-top .seg button,
.pm-bar .seg button {
  height: 26px !important;
  line-height: 26px !important;
}

.lv-dl-btn,
.db-btn,
.db-select,
.pm-grp-select,
.v-top .btn,
.pm-bar .btn,
.db-more-btn {
  height: 32px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

/* 6. Text links: --ui-ink-2, underlined, not blue */
.db-raw-links,
.db-menu-raw {
  display: inline-flex !important;
  align-items: center !important;
  height: 32px !important;
  color: var(--ui-ink-3) !important;
  font-size: var(--fs-11, 11px) !important;
}
.db-raw-links a,
.db-menu-raw a,
.ac-link,
.hub-link,
.c-back,
.lv-exp-sub-desc a {
  color: var(--ui-ink-2) !important;
  text-decoration: underline !important;
}
.db-raw-links a:hover,
.db-menu-raw a:hover,
.ac-link:hover,
.hub-link:hover,
.c-back:hover,
.lv-exp-sub-desc a:hover {
  color: var(--ui-ink) !important;
}

/* 7. Status colours mean status only */
.b-high,
.res.stop,
.res.bad,
.st-deny,
.pm-st.st-deny,
.lv-dot.high {
  color: var(--ui-red) !important;
}
.lv-dot.high { background: var(--ui-red) !important; }
.lv-dot.medium { background: var(--ui-amber) !important; }
.lv-dot.clean { background: var(--ui-green) !important; }

.b-mid,
.res.warn,
.st-obs,
.pm-st.st-obs,
.lv-dot.medium {
  color: var(--ui-amber) !important;
}

.lv-dot.clean,
.res.ok {
  color: var(--ui-green) !important;
}

/* Low risk in tables shows as --ui-ink-3, not green text */
.db-table td .res.ok,
.db-table td [data-risk="Low"],
.db-table td span:has(+ em:empty) {
  color: var(--ui-ink-3) !important;
}

/* 8. Neutral surfaces & removal of navy/slate tints across scope */
body,
#summary,
#matrix,
#history,
#console,
.v14-view,
.db-container {
  background: var(--ui-bg) !important;
  color: var(--ui-ink) !important;
}

/* Header & nav */
#cnav {
  background: var(--ui-bg) !important;
  border-bottom: 1px solid var(--ui-line) !important;
}
.cn-item {
  color: var(--ui-ink-3) !important;
}
.cn-item:hover {
  color: var(--ui-ink) !important;
}
.cn-item.on {
  color: var(--ui-ink) !important;
}
.cn-item.on::after {
  background: #ffffff !important;
}

/* Profile menu */
#acct-pop {
  background: var(--ui-raised) !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6) !important;
}
.ac-row {
  color: var(--ui-ink) !important;
}
.ac-row:hover {
  background: var(--ui-raised-2) !important;
}
.ac-h {
  color: var(--ui-ink-3) !important;
  border-top-color: var(--ui-line-soft) !important;
}

/* Modals */
.pm-modal-dialog {
  background: var(--ui-raised) !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7) !important;
}
.pm-modal-header {
  border-bottom: 1px solid var(--ui-line-soft) !important;
}
.pm-modal-footer {
  border-top: 1px solid var(--ui-line-soft) !important;
}
.pm-modal-close {
  color: var(--ui-ink-3) !important;
}
.pm-modal-close:hover {
  color: var(--ui-ink) !important;
}

/* History page */
.ph-card,
.ph-main,
.ph-sidebar {
  background: var(--ui-bg) !important;
  border-color: var(--ui-line) !important;
}
.ph-h {
  border-bottom-color: var(--ui-line-soft) !important;
}

/* Settings pages */
.hub-wrap,
.pv-wrap,
.wz-wrap,
.wz-card {
  background: var(--ui-bg) !important;
  border-color: var(--ui-line) !important;
}
.pv-rules-box {
  background: var(--ui-bg) !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: 10px !important;
}

/* Traffic strip & ask bar */
#traffic {
  background: var(--ui-bg) !important;
  border-top: 1px solid var(--ui-line) !important;
}
#ask {
  background: var(--ui-raised) !important;
  border: 1px solid var(--ui-line) !important;
}

/* =========================================================================
   Part B: List Summary and Detailed uniform UI
   ========================================================================= */

/* Top bar (identical in both modes) */
.lv-top {
  height: 56px !important;
  padding: 0 32px !important;
  border-bottom: 1px solid var(--ui-line) !important;
  background: var(--ui-bg) !important;
}

/* Wrapper */
.lv-wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  padding: 24px 32px 120px !important;
  background: var(--ui-bg) !important;
}

/* Headline */
.lv-wrap h2 {
  margin: 0 0 16px !important;
  font-size: var(--fs-20, 20px) !important;
  font-weight: 600 !important;
  color: var(--ui-ink) !important;
  letter-spacing: -0.01em !important;
  line-height: 1.25 !important;
}

/* Detailed container */
.lv-db-container {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Detailed toolbar: sits between headline and frame, aligned to left & right edges */
.lv-db-container .db-toolbar {
  width: 100% !important;
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  min-height: 32px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

/* Frame in both modes: 1px solid var(--ui-line), radius 10px, background --ui-bg, overflow hidden */
.lv-rows,
.db-frame {
  width: 100% !important;
  box-sizing: border-box !important;
  background: var(--ui-bg) !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

/* Summary rows */
.lv-row {
  background: var(--ui-bg) !important;
  border-bottom: 1px solid var(--ui-line-soft) !important;
}
.lv-row:last-child {
  border-bottom: 0 !important;
}
.lv-main {
  min-height: 40px !important;
  padding: 8px 16px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  transition: background .12s ease !important;
}
.lv-row:hover .lv-main {
  background: var(--ui-hover) !important;
}
.lv-sentence {
  font-size: var(--fs-12, 12px) !important;
  color: var(--ui-ink-2) !important;
}
.lv-sentence b,
.lv-sentence strong {
  color: var(--ui-ink) !important;
}

/* Summary row actions */
.lv-acts-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
.lv-act-btn {
  height: 28px !important;
  padding: 0 10px !important;
  border-radius: 6px !important;
  font-size: var(--fs-11, 11px) !important;
  font-weight: 500 !important;
  color: var(--ui-ink-2) !important;
  background: var(--ui-raised) !important;
  border: 1px solid var(--ui-line) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: all .12s ease !important;
}
.lv-act-btn.lv-act-block:hover:not(:disabled),
.lv-act-btn.lv-act-block-file:hover:not(:disabled) {
  color: var(--ui-red) !important;
  background: rgba(248, 113, 113, 0.12) !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
}
.lv-act-btn.lv-act-warn:hover:not(:disabled) {
  color: var(--ui-amber) !important;
  background: rgba(251, 191, 36, 0.12) !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
}
.lv-act-btn.lv-act-iso:hover:not(:disabled) {
  color: var(--ui-ink) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.lv-act-btn:disabled,
.lv-act-btn.disabled {
  color: var(--ui-ink-3) !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  background: var(--ui-raised) !important;
  border-color: var(--ui-line) !important;
}

/* Detailed table styling */
.db-frame .db-table-wrap {
  width: 100% !important;
  max-height: calc(100vh - 240px) !important;
  overflow: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: var(--ui-bg) !important;
}
.db-table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  font-size: var(--fs-12, 12px) !important;
  background: var(--ui-bg) !important;
}

/* Detailed header: sticky, --ui-raised, 11.5px 600 --ui-ink-3, padding matching cells, bottom border */
.db-table th {
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  background: var(--ui-raised) !important;
  color: var(--ui-ink-3) !important;
  font-size: var(--fs-11, 11px) !important;
  font-weight: 600 !important;
  padding: 10px 16px !important;
  border-bottom: 1px solid var(--ui-line) !important;
  border-top: 0 !important;
  text-align: left !important;
  user-select: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
.db-table th.sortable:hover {
  color: var(--ui-ink) !important;
}
.db-table th.sorted {
  color: var(--ui-ink) !important;
}

/* Detailed rows: 40px min-height, 16px horizontal padding, 12.5px --ui-ink-2, divider, hover */
.db-table tr {
  min-height: 40px !important;
  height: 40px !important;
  background: var(--ui-bg) !important;
}
.db-table td {
  height: 40px !important;
  padding: 8px 16px !important;
  box-sizing: border-box !important;
  color: var(--ui-ink-2) !important;
  font-size: var(--fs-12, 12px) !important;
  border-bottom: 1px solid var(--ui-line-soft) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  vertical-align: middle !important;
}
.db-table tr:hover td {
  background: var(--ui-hover) !important;
}
.db-table td.db-cell-pri,
.db-table td:nth-child(2),
.db-table td:nth-child(6) {
  color: var(--ui-ink) !important;
}

/* Expanded rows in Summary */
.lv-expand {
  background: var(--ui-bg) !important;
  border-top: 1px solid var(--ui-line-soft) !important;
  padding: 16px 20px !important;
}
.lv-exp-tabs-bar {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}
.lv-dec-box,
.lv-trace-box {
  background: var(--ui-raised) !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
}

/* Expanded card in Detailed */
.db-exp-card {
  background: var(--ui-bg) !important;
  border-top: 1px solid var(--ui-line-soft) !important;
  padding: 16px !important;
}
.db-exp-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
}

/* Panel impact styling */
#panel {
  background: var(--ui-raised) !important;
  border: 1px solid var(--ui-line) !important;
}
#panel .p-top {
  border-bottom: 1px solid var(--ui-line-soft) !important;
}
#panel .p-foot {
  border-top: 1px solid var(--ui-line-soft) !important;
}
#preview-bar {
  background: var(--ui-raised) !important;
  border: 1px solid var(--ui-line) !important;
  color: var(--ui-ink) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}
#preview-bar b {
  color: var(--ui-amber) !important;
}
#preview-bar .pv-dot {
  background: var(--ui-amber) !important;
}

/* =========================================================================
   Part C: UI polish, Popover pressed states, Version switcher, Policy History
   ========================================================================= */

/* BEFORE YOU APPLY icon and text inline alignment */
.p-tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  vertical-align: middle !important;
}
.p-tab svg {
  flex: none !important;
  display: block !important;
  margin: 0 !important;
}

/* Button & popover active/pressed states */
#btn-user.is-pressed,
#btn-user[aria-expanded="true"],
.rf-btn.is-pressed,
.rf-btn[aria-expanded="true"],
.ver-toggle.is-pressed,
.ver-toggle[aria-expanded="true"],
.ch-btn.is-pressed,
.ch-btn[aria-expanded="true"],
.ch-props-btn.is-pressed,
.ch-props-btn[aria-expanded="true"],
.db-btn.is-pressed,
.db-btn[aria-expanded="true"],
.db-more-btn.is-pressed,
.db-more-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
}

/* Profile menu (Account popover) raised surface & uniform rows */
#acct-pop {
  background: var(--ui-raised) !important;
  border: 1px solid var(--ui-line) !important;
}
#acct-pop .ac-who {
  border-bottom-color: var(--ui-line-soft) !important;
}
#acct-pop .ac-h {
  border-top-color: var(--ui-line-soft) !important;
  color: var(--ui-ink-3) !important;
}
#acct-pop .ac-link,
#acct-pop .ac-link:link,
#acct-pop .ac-link:visited {
  color: var(--ui-ink-2) !important;
  font-size: var(--fs-12, 12px) !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}
#acct-pop .ac-link:hover {
  background: var(--ui-hover) !important;
  color: var(--ui-ink) !important;
}

/* Version switcher inside Profile menu */
.ac-ver-slot {
  position: relative;
}
.ac-ver-slot #ver {
  display: block !important;
  position: relative !important;
}
.ac-ver-slot .ver-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: auto !important;
  padding: 9px 10px !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: none !important;
  color: var(--ui-ink) !important;
  font-size: var(--fs-12, 12px) !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  text-align: left !important;
  box-sizing: border-box !important;
}
.ac-ver-slot .ver-toggle:hover {
  background: var(--ui-hover) !important;
}
.ac-ver-slot .ver-toggle::before {
  content: 'Design version';
  display: block;
  font-weight: 500;
  color: var(--ui-ink);
}
.ac-ver-slot .ver-toggle span {
  margin-left: auto;
  margin-right: 6px;
  color: var(--ui-ink-2);
  font-size: 12px;
}
.ac-ver-slot .ver-toggle svg {
  color: var(--ui-ink-3);
  transform: rotate(-90deg);
  transition: transform .15s;
}
.ac-ver-slot .ver-toggle[aria-expanded="true"] svg {
  transform: rotate(0deg);
}
.ac-ver-slot .ver-menu {
  position: absolute !important;
  top: 0 !important;
  right: calc(100% + 8px) !important;
  width: 140px !important;
  max-height: 440px !important;
  overflow-y: auto !important;
  background: var(--ui-raised) !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: 10px !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65) !important;
  padding: 4px !important;
  z-index: 70 !important;
}
.ac-ver-slot .ver-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  color: var(--ui-ink-2) !important;
  font-size: 12px !important;
  text-decoration: none !important;
}
.ac-ver-slot .ver-item:hover {
  background: var(--ui-hover) !important;
  color: var(--ui-ink) !important;
}
.ac-ver-slot .ver-item.on {
  color: var(--ui-blue) !important;
  font-weight: 600 !important;
}

/* Policy History full width and uniform alignment */
#history .v-top {
  padding: 0 32px !important;
}
#history .ph-layout {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  padding: 24px 32px 120px !important;
}

/* Header & toolbar height alignment (32px uniform) */
.top-right .ico-btn {
  width: 32px !important;
  height: 32px !important;
}
.db-actions {
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
}
.v-top .v-crumb {
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Preview bar padding in list view */
body.previewing .lv-wrap {
  padding-bottom: 160px !important;
}

/* ===== Detailed Database Rows & Toolbar Polish (21 Nov 2026) ===== */

/* 1. Narrow 28px chevron column for row expand/collapse */
th.db-col-exp,
td.db-col-exp {
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  padding: 0 !important;
  text-align: center !important;
  vertical-align: middle !important;
}
.db-row-chev {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 14px !important;
  height: 14px !important;
  color: #8f8f8f !important;
  transition: color 0.15s ease !important;
}
.db-table tr:hover .db-row-chev {
  color: #f3f4f6 !important;
}

/* 2. Expanded row and detail panel: --ui-raised (#141414) background and 2px left edge in rgba(255,255,255,0.35) */
.db-table tr.db-row-exp {
  background: var(--ui-raised, #141414) !important;
}
.db-table tr.db-row-exp td {
  background: var(--ui-raised, #141414) !important;
  border-bottom: 0 !important;
}
.db-table tr.db-row-exp td:first-child {
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.35) !important;
}
.db-table tr.db-row-detail {
  background: var(--ui-raised, #141414) !important;
  height: auto !important;
  min-height: 0 !important;
}
.db-table tr.db-row-detail td {
  background: var(--ui-raised, #141414) !important;
  padding: 0 !important;
  border-top: 0 !important;
  height: auto !important;
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.35) !important;
}
.db-exp-card {
  background: var(--ui-raised, #141414) !important;
  padding: 16px 20px !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--ui-line, #1c2434) !important;
}

/* 3. Expanded panel action row secondary buttons and Collapse button */
.db-exp-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  padding-top: 10px !important;
  margin-bottom: 12px !important;
  border-top: 1px solid var(--ui-line-soft, #192233) !important;
}
.db-exp-actions .btn.db-btn-sub,
.db-exp-actions .btn.db-btn-collapse {
  height: 28px !important;
  padding: 0 10px !important;
  border-radius: 6px !important;
  font-size: var(--fs-11, 11px) !important;
  font-weight: 500 !important;
  color: var(--ui-ink-2, #d1d5db) !important;
  background: var(--ui-raised, #141414) !important;
  border: 1px solid var(--ui-line, #1c2434) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all .12s ease !important;
}
.db-exp-actions .btn.db-btn-sub:hover,
.db-exp-actions .btn.db-btn-collapse:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--ui-ink, #ffffff) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* 4. Preset chips: 32px segmented control style from --ui-* tokens, neutral active state */
.db-seg {
  display: inline-flex !important;
  align-items: center !important;
  height: 32px !important;
  padding: 2px !important;
  background: var(--ui-bg, #0b0f17) !important;
  border: 1px solid var(--ui-line, #1c2434) !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  gap: 2px !important;
  flex: none !important;
}
.db-seg button {
  height: 26px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  font-size: var(--fs-11, 11px) !important;
  font-weight: 500 !important;
  color: var(--ui-ink-3, #94a3b8) !important;
  background: transparent !important;
  border: 0 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all .12s ease !important;
}
.db-seg button:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--ui-ink, #ffffff) !important;
}
.db-seg button.on,
.db-seg button.active {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

/* 5. Request profiles matched: neutral step chips */
.dt-chip {
  display: inline-block !important;
  padding: 2px 7px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 5px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: var(--ui-ink-2, #d1d5db) !important;
  margin: 1px 2px !important;
}

/* 6. Row logs & toolbar wrapping: never cut off */
.db-toolbar {
  flex-wrap: wrap !important;
  row-gap: 8px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.lv-db-container .db-toolbar {
  flex-wrap: wrap !important;
  row-gap: 8px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.db-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: auto;
}
.db-raw-links {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* ===== Type and spacing system (21 Nov 2026) ===== */
:root {
  --fs-11: 11px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-20: 20px;
  --fs-24: 24px;
  color-scheme: dark;
}

/* 1. Global Font and Weights */
body, button, input, select, textarea, .btn, .vbtn, h1, h2, h3, h4, h5, h6, table, .seg button, .db-seg button {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

code, pre, .mono, [data-mono], .f-mono, .pm-res-domain, .ag-hash, .raw-log, .log-view, .ct-r input.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

/* Enforce allowed font weights (400, 500, 600 only) */
body, p, span, td, .lv-sentence, small, .f-desc {
  font-weight: 400;
}
.btn, .vbtn, select, input, .seg button, .db-seg button, .p-tab, [role="tab"], .vchip, .badge, .dt-chip, .ch-lbl, .f-name, .ac-row-body b {
  font-weight: 500;
}
b, strong, h1, h2, h3, h4, .btn.pri, .vbtn.primary, .badge-deny, .tl-when b, .pm-res-name {
  font-weight: 600 !important;
}

/* 2. Type Scale Mapping & Line Heights (1.35 for 11-14px, 1.25 for 16px+) */
/* 11px: meta, uppercase headings with 0.06em tracking, chips, sublabels */
small,
.tl-when span,
.av-h,
.ch-lbl,
.pm-res-domain,
.ph-single-hint,
.ph-v-sub,
.ac-who span,
.f-desc,
.dt-chip,
.ph-badge,
.ck-tag,
.cap-file-chip,
.rf-chip,
.lv-filter-chip,
.db-chip,
.wz-why,
.vb-h,
.ct-h span,
.ct-limnote {
  font-size: var(--fs-11) !important;
  line-height: 1.35 !important;
}
.av-h, .ch-lbl, .f-cat-title {
  letter-spacing: 0.06em !important;
}

/* 12px: secondary, table cells in dense tables, matrix items */
.db-table td,
.db-table th,
.lv-sentence,
.pm-badge,
.tl-state,
.wy-list em,
.wy-list b small,
.db-seg button,
.seg button,
.db-exp-actions .btn,
.ct-r input,
.ct-r select,
.vb-res dl {
  font-size: var(--fs-12) !important;
  line-height: 1.35 !important;
}

/* 13px: body, rows, buttons, inputs, selects */
body,
button,
.btn,
.vbtn,
select,
input[type="text"],
input[type="search"],
input[type="date"],
input[type="time"],
.f-name,
.f-col-ctrl input,
.f-col-ctrl select,
.pm-form-label,
.pm-form-select,
.pm-form-input,
.db-select,
.pm-grp-select,
.tl-when b,
.ac-who-row b,
.pm-res-name,
.wy-list b,
.lv-dec-h b {
  font-size: var(--fs-13) !important;
  line-height: 1.35 !important;
}

/* 14px: emphasised body, card titles */
h4,
.wz-part h3,
.ct-top > b,
.vb-res b,
.p-h,
.av-ctl-h b {
  font-size: var(--fs-14) !important;
  line-height: 1.35 !important;
}

/* 16px: section titles */
h3,
.c-head h2,
.pm-res-title,
.ph-layout h2 {
  font-size: var(--fs-16) !important;
  line-height: 1.25 !important;
}

/* 20px: page titles */
h1,
h2,
.c-head h1,
.tr2-body h2 {
  font-size: var(--fs-20) !important;
  line-height: 1.25 !important;
}

/* 24px: headline numbers */
.headline-num,
.pv-sc,
.stat-num,
.top-risk-num {
  font-size: var(--fs-24) !important;
  line-height: 1.25 !important;
}

/* Chrome floor: nothing below 11px */
* {
  min-font-size: 11px;
}

/* 3. Spacing and Radius Scale */
/* Radius: 6px (chips, small buttons), 8px (buttons, inputs, segmented controls), 10px (cards, frames), 12px (menus, modals, panels) */
.vchip, .badge, .dt-chip, .db-chip, .lv-filter-chip, .db-exp-actions .btn {
  border-radius: 6px !important;
}
.btn, .vbtn, select, input, .seg, .db-seg, .pm-grp-select, .db-select, .pm-form-select, .pm-form-input {
  border-radius: 8px !important;
}
.c-card, .wz-card, .pm-grid-container, .db-table-frame, .f-card, .ct-page {
  border-radius: 10px !important;
}
#acct-pop, .pm-modal-dialog, #hist-pop, #content-ed, .popover, .net-pop {
  border-radius: 12px !important;
}

/* 4. Controls: 32px tall in toolbars, 12px horizontal padding */
.lv-top button,
.lv-top .btn,
.db-toolbar button,
.db-toolbar .btn,
.v-top button,
.v-top .btn,
.pm-bar button,
.pm-bar .btn,
.pm-grp-select,
.db-select,
.pm-form-select,
.pm-form-input,
.f-col-ctrl select,
.f-col-ctrl input.inp {
  height: 32px !important;
  box-sizing: border-box !important;
}

.btn:not(.p-x):not(.pm-modal-close):not(.tl-play):not(.ch-btn):not(#btn-user),
.vbtn:not(.p-x):not(.pm-modal-close):not(.tl-play):not(.ch-btn):not(#btn-user) {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

/* Row-level actions inside list: 28px tall */
.lv-act-btn,
.db-exp-actions .btn {
  height: 28px !important;
  line-height: 26px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

/* 5. Dropdown (<select>) Unification */
select,
.pm-grp-select,
.db-select,
.pm-form-select,
select.inp,
select.wz-in,
.pb-f select,
.pb-dial select,
.pe-row select,
.ag-more,
.ag-sim-f select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: var(--ui-bg) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none' stroke='%238f8f8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 12px 12px !important;
  padding: 0 32px 0 12px !important;
  height: 32px !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: 8px !important;
  color: var(--ui-ink) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  min-width: 180px;
}

select:hover,
.pm-grp-select:hover,
.db-select:hover,
.pm-form-select:hover,
select.inp:hover,
select.wz-in:hover {
  border-color: rgba(255, 255, 255, 0.22) !important;
}

select:focus,
.pm-grp-select:focus,
.db-select:focus,
.pm-form-select:focus,
select.inp:focus,
select.wz-in:focus {
  border-color: rgba(255, 255, 255, 0.35) !important;
  outline: none !important;
  box-shadow: none !important;
}

.pm-grp-select {
  min-width: 220px !important;
}

option {
  background-color: #141414 !important;
  color: var(--ui-ink) !important;
  padding: 6px 12px !important;
}

/* 6. Icon-Only Buttons Pixel Centering */
.tl-play,
#btn-user,
#zoom button,
.zoom-pill button,
.zoom-fit,
#ask .ask-spark,
#ask .ask-go,
.ch-btn,
.p-x,
.pm-modal-close {
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  line-height: 0 !important;
  padding: 0 !important;
}

.tl-play svg,
#btn-user svg,
#zoom button svg,
.zoom-pill button svg,
.zoom-fit svg,
#ask .ask-spark svg,
#ask .ask-go svg,
.ch-btn svg,
.p-x svg,
.pm-modal-close svg {
  display: block !important;
  margin: 0 auto !important;
  flex-shrink: 0 !important;
}

#zoom button,
.zoom-pill button,
.zoom-fit {
  width: 32px !important;
  height: 32px !important;
}

#ask .ask-spark,
#ask .ask-go {
  width: 32px !important;
  height: 32px !important;
}

/* 7. Fit & Desktop Responsiveness */
html, body {
  overflow-x: hidden !important;
}

.pm-grid-scroll,
.db-scroll,
.db-table-wrap {
  overflow-x: auto !important;
  max-width: 100% !important;
}

/* Floating ask bar bottom clearance */
.lv-container,
.lv-db-container,
.c-main,
.pm-wrap,
.ph-wrap,
#sum-view {
  padding-bottom: 84px !important;
}

/* 2560x1440 widescreen consistency */
@media (min-width: 2000px) {
  .c-main,
  .pm-wrap,
  .ph-wrap,
  .lv-top,
  .db-toolbar {
    padding-left: 32px !important;
    padding-right: 32px !important;
    max-width: 100% !important;
  }
}

/* 8. Monochrome UI links, inputs & selection */
/* Only links inside running text are underlined; nav, map chips and buttons keep their own styles. */
p a, li a, small a, .c-desc a, .c-inline-note a, .wy-lead a, .trs-sub a, .hv-mod-desc a, .im-note a {
  color: var(--ui-ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.6) !important;
  outline-offset: 2px !important;
}
input[type="checkbox"],
input[type="radio"],
input[type="range"] {
  accent-color: #f3f4f6 !important;
}
::selection {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}


/* ===== Final pass (21 Nov 2026): last blue accents outside the map ===== */
#ask .ask-spark, #ask .ask-go { color: var(--ui-ink-2, #d1d5db) !important; background: var(--ui-raised, #141414) !important; }
#ask .ask-spark:hover, #ask .ask-go:hover { color: var(--ui-ink, #f3f4f6) !important; background: var(--ui-raised-2, #1a1a1a) !important; }

/* ===== Persona review fixes (21 Nov 2026): state button, owner value strip, copy ===== */
.cn-btn.cn-state {
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 0 12px !important;
  background: var(--ui-raised, #141414) !important;
  border: 1px solid var(--ui-line, rgba(255, 255, 255, 0.12)) !important;
  color: var(--ui-ink, #f3f4f6) !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}
.cn-btn.cn-state:hover {
  background: var(--ui-raised-2, #1a1a1a) !important;
}
.cn-btn.cn-state i {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: var(--ui-amber, #fbbf24) !important;
  display: inline-block !important;
  flex: none !important;
}

/* Owner value strip on List */
.lv-value-strip {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 6px 0 16px;
}
.lv-val-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.lv-val-lbl {
  font-size: var(--fs-12, 12px);
  color: var(--ui-ink-3, #94a3b8);
  font-weight: 400;
}
.lv-val-num {
  font-size: var(--fs-20, 20px);
  font-weight: 600;
  color: var(--ui-ink, #f3f4f6);
  font-variant-numeric: tabular-nums;
}
.lv-val-sep {
  width: 1px;
  height: 18px;
  background: var(--ui-line, #1c2434);
}

/* Change log: inline Add a reason */
.trl-add-why {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ui-ink-3, #94a3b8);
  font-size: var(--fs-11, 11px);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px dashed var(--ui-line, #1c2434);
}
.trl-add-why:hover {
  color: var(--ui-ink, #f3f4f6);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}
.trl-why {
  cursor: pointer;
}

/* Restore points: neutral state chip style, no green or blue chip */
.ph-badge {
  background: var(--ui-raised, #141414) !important;
  color: var(--ui-ink-2, #d1d5db) !important;
  border: 1px solid var(--ui-line, #1c2434) !important;
  border-radius: 6px !important;
}
.ph-badge.current {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--ui-ink, #ffffff) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.ph-badge.saved, .ph-badge.draft, .ph-badge.rollback {
  background: var(--ui-raised, #141414) !important;
  color: var(--ui-ink-2, #d1d5db) !important;
  border: 1px solid var(--ui-line, #1c2434) !important;
}



/* ===== 21 Nov (Claude): detail views look like the main map ===== */
/* No boxed column panels: content floats on the map background, headings like the map's column headings. */
#appview .cv-col, #appview .cv-apps, .cv-apps { border: 0 !important; background: none !important; border-radius: 0 !important; box-shadow: none !important; }
#appview .cv-col > .av-h, #appview .cv-groups > .av-h, #appview .cv-apps > .av-h { font-size: 11px !important; font-weight: 600 !important; letter-spacing: .08em !important; text-transform: uppercase; color: var(--ui-ink-3, #8f8f8f) !important; }
.cv-ppl { background: var(--ui-raised, #141414) !important; border-color: var(--ui-line, rgba(255,255,255,.12)) !important; }
.hv-addc { background: var(--ui-raised, #141414) !important; }
.hv-addc.on { border-color: rgba(255,255,255,.28) !important; background: var(--ui-raised-2, #1a1a1a) !important; }
.ag-det { border-color: var(--ui-line, rgba(255,255,255,.12)) !important; }

/* ===== 21 Nov (Claude): search fields are ONE box ===== */
/* The wrapper draws the border; the input inside has none (the global input style gave it a second box). */
.c-field, .tr-find, .ch-find, .db-search, .hub-search, .db-toolbar label:has(> input) { height: 32px !important; border: 1px solid var(--ui-line, rgba(255,255,255,.12)) !important; border-radius: 8px !important; background: var(--ui-bg, #000) !important; box-sizing: border-box !important; }
.c-field:focus-within, .tr-find:focus-within, .ch-find:focus-within, .db-search:focus-within, .hub-search:focus-within, .db-toolbar label:has(> input):focus-within { border-color: rgba(255,255,255,.35) !important; box-shadow: none !important; }
.c-field input, .tr-find input, .ch-find input, .db-search input, .hub-search input, .db-toolbar label:has(> input) input { border: 0 !important; background: none !important; box-shadow: none !important; outline: none !important; height: 100% !important; padding: 0 !important; min-height: 0 !important; border-radius: 0 !important; }
.c-field input::placeholder, .tr-find input::placeholder, .ch-find input::placeholder, .db-search input::placeholder { color: var(--ui-ink-3, #8f8f8f) !important; }

/* ===== 21 Nov (Claude): VxSure hub view, no blue ===== */
.sw-mini[aria-checked="true"] { background: #f3f4f6 !important; }
.sw-mini[aria-checked="true"]::after { background: #0a0a0a !important; }
.hv-mod-seg button.on { background: rgba(255,255,255,.12) !important; color: #fff !important; }
.hv-a-btn { color: var(--ui-ink-2, #d1d5db) !important; }
.hv-a-btn:hover { background: rgba(255,255,255,.06) !important; color: #fff !important; }
.hv-a-btn.open { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.22) !important; color: #fff !important; }
.hv-mod-card.open { border-color: rgba(255,255,255,.22) !important; background: var(--ui-bg, #000) !important; }
.hv-tr.sel { border-color: rgba(255,255,255,.28) !important; }
.hv-core.on .hv-disc { box-shadow: 0 0 0 2px rgba(255,255,255,.5) !important; }
.hv-disc { background: radial-gradient(circle at 50% 40%, #1c1c1c, #0a0a0a 70%) !important; }
.hv-disc .ubg-ring > * { stroke: rgba(255,255,255,.45) !important; }
.hv-addc-go { color: var(--ui-ink-2, #d1d5db) !important; }
.hv-addc:hover .hv-addc-go, .cv-more:hover { border-color: rgba(255,255,255,.35) !important; }

/* ===== 21 Nov (Claude): site view centre block, balanced under the disc ===== */
#appview .cv-site .ag-stats { display: grid !important; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: center; column-gap: 22px; row-gap: 12px; margin: 16px auto 0; text-align: center; }
#appview .cv-site .ag-stats > span { display: flex !important; flex-direction: column; align-items: center; gap: 2px; white-space: nowrap; }
#appview .cv-site .ag-stats > span svg { display: none; }
#appview .cv-site .ag-stats > span b { font-size: var(--fs-16, 16px); font-weight: 600; color: var(--ui-ink, #f3f4f6); }
#appview .cv-site .ag-stats > span small { font-size: var(--fs-11, 11px); color: var(--ui-ink-3, #8f8f8f); text-transform: uppercase; letter-spacing: .06em; }
#appview .cv-site .ag-stats > span.ms-stop b { color: var(--ui-red, #f87171); }
#appview .cv-site .av-loc { width: 100%; box-sizing: border-box; margin: 14px auto 0; padding: 10px 12px; border: 1px solid var(--ui-line, rgba(255,255,255,.12)); border-radius: 10px; background: var(--ui-raised, #141414); text-align: left; }
#appview .cv-site .av-loc button { width: 100%; margin-top: 8px; height: 32px; }

/* ===== 21 Nov (Claude): site view, compact activity list, cross-site under Domains, side panel ===== */
#appview .cv-mid .cv-body { width: 460px !important; display: grid; gap: 14px; }
#appview .ag-actlist { display: grid; gap: 0; padding: 4px 0 !important; }
#appview .ag-actlist .tm-t.ag-ar { position: static !important; left: auto !important; top: auto !important; width: auto !important; height: 40px !important; display: grid !important; grid-template-columns: 16px auto 1fr auto; align-items: center; column-gap: 10px; padding: 0 14px !important; border: 0 !important; border-bottom: 1px solid var(--ui-line-soft, rgba(255,255,255,.07)) !important; border-radius: 0 !important; background: none !important; text-align: left; cursor: pointer; }
#appview .ag-actlist .tm-t.ag-ar:last-of-type { border-bottom: 0 !important; }
#appview .ag-actlist .tm-t.ag-ar:hover { background: var(--ui-hover, #0a0a0a) !important; }
#appview .ag-actlist .tm-t.ag-ar.sel { background: rgba(255,255,255,.06) !important; box-shadow: inset 2px 0 0 rgba(255,255,255,.6) !important; }
#appview .ag-actlist .tm-t.ag-ar svg { color: var(--ui-ink-3, #8f8f8f); }
#appview .ag-actlist .tm-t.ag-ar b { font-size: 13px; font-weight: 600; color: var(--ui-ink, #f3f4f6); white-space: nowrap; }
#appview .ag-actlist .tm-t.ag-ar span { font-size: 12px; color: var(--ui-ink-3, #8f8f8f); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#appview .ag-actlist .tm-t.ag-ar i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--ui-ink-2, #d1d5db); }
#appview .ag-actlist .tm-t.ag-ar.b-high i { color: var(--ui-red, #f87171); }
#appview .ag-actlist .tm-t.ag-ar.b-mid i { color: var(--ui-amber, #fbbf24); }
#appview .ag-actlist .tm-t.ag-ar em { font-style: normal; font-size: 11px; color: var(--ui-ink-2, #d1d5db); border: 1px solid var(--ui-line, rgba(255,255,255,.12)); border-radius: 6px; padding: 1px 6px; }
#appview .ag-xsn { display: grid; gap: 6px; }
#appview .ag-xsn .xs-n { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--ui-line, rgba(255,255,255,.12)); border-radius: 8px; background: var(--ui-bg, #000); }
#appview .av-side { position: absolute; top: 56px; right: 0; bottom: 0; z-index: 6; width: 380px; box-sizing: border-box; overflow: auto; padding: 16px; border-left: 1px solid var(--ui-line, rgba(255,255,255,.12)); background: var(--ui-bg, #000); }
#appview .av-side .ag-det { position: static !important; width: auto !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; background: none !important; }
#appview .av-side .av-seg { flex-wrap: wrap; }

/* ===== 21 Nov (Claude): AI switch keeps a blue accent (Mukund's one exception); ask input is one box ===== */
.ask-ai[aria-checked="true"] .ask-ai-sw { background: #2563eb !important; }
.ask-ai[aria-checked="true"] .ask-ai-sw::after { background: #ffffff !important; }
#ask .ask-field { display: flex; align-items: center; }
#ask #ask-input, #ask .ask-field input { border: 0 !important; background: none !important; box-shadow: none !important; outline: none !important; height: 100% !important; padding: 0 14px !important; border-radius: 0 !important; }

/* 21 Nov (Claude): sparkle button removed from the ask bar (submitting still opens the agent) */
#ask .ask-spark { display: none !important; }


/* 21 Nov (Claude): Other groups / apps / web services show their full list; the map drags, so no inner scroll */
.og-card, #other-groups, #other-apps, #other-services { max-height: none !important; overflow: visible !important; }
.og-card .og-list, #other-groups .og-list, #other-apps .og-list, #other-services .og-list { max-height: none !important; overflow: visible !important; scrollbar-width: none !important; }
.og-card .og-list::-webkit-scrollbar { display: none !important; }


/* ===== 21 Nov (Claude): expanded row, one frame and one "Open in Policies" ===== */
.lv-expand .lv-dec-box .wy-foot, .lv-expand .lv-trace-box .wy-foot { display: none !important; } /* the row header already has Open in Policies */
.lv-trace-box .dt-wrap { margin-top: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }

/* ===== 21 Nov (Claude): VxSure sits in a box; its options stay outside; Threat Intelligence joins the box ===== */
#nodes .n.hub::before { content: ''; position: absolute; left: -26px; right: -26px; top: -18px; bottom: -40px; border: 1px solid var(--ui-line, rgba(255,255,255,.14)); border-radius: 16px; background: rgba(12, 12, 12, .92); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); z-index: -1; pointer-events: none; }
#nodes .n.hub { isolation: isolate; }
#hub-extras .hx-tilink { position: absolute; width: 1px; background: var(--ui-line, rgba(255,255,255,.22)); transform: translateX(-50%); pointer-events: none; }

/* 21 Nov (Claude): the VxSure hub view is monochrome; the blue variables are neutral inside it */
#hubview { --blue: #f3f4f6; --blue-ink: #d1d5db; --blue-text: #d1d5db; --blue-line: rgba(255,255,255,.4); --blue-soft: rgba(255,255,255,.06); --c-blue: #f3f4f6; --c-blue-2: #ffffff; }


#hubview .hv-int-icon { color: var(--ui-ink-2, #d1d5db) !important; border-color: var(--ui-line, rgba(255,255,255,.12)) !important; background: var(--ui-raised, #141414) !important; }
#hubview .hv-int-icon svg { color: inherit !important; stroke: currentColor !important; }
#hubview .hv-int-stat.on { color: var(--ui-ink-2, #d1d5db) !important; border-color: var(--ui-line, rgba(255,255,255,.12)) !important; }
#hubview svg circle[stroke], #hubview svg rect[stroke] { stroke: rgba(255,255,255,.45) !important; }


/* ===== 21 Nov (Claude): Decision order on the Access Profiles page ===== */
.c-order { margin: 14px 0 6px; border: 1px solid var(--ui-line, rgba(255,255,255,.12)); border-radius: 10px; background: var(--ui-bg, #000); }
.c-order > summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; list-style: none; color: var(--ui-ink-2, #d1d5db); font-size: 12px; }
.c-order > summary::-webkit-details-marker { display: none; }
.c-order > summary svg { transition: transform .15s; color: var(--ui-ink-3, #8f8f8f); }
.c-order[open] > summary svg { transform: rotate(90deg); }
.c-order > summary b { color: var(--ui-ink, #f3f4f6); font-size: 13px; font-weight: 600; }
.c-order > summary span { color: var(--ui-ink-3, #8f8f8f); }
.c-order-list { max-height: 520px; overflow: auto; border-top: 1px solid var(--ui-line-soft, rgba(255,255,255,.07)); }
.c-order-list .pm-row.shadowed { box-shadow: inset 2px 0 0 var(--ui-amber, #fbbf24); }

/* ===== 21 Nov (Claude): review of run A (state button, value strip, history chips) ===== */
.cn-btn.cn-state[hidden] { display: none !important; }
.cn-btn.cn-save b { margin-left: 6px; font-weight: 500; color: var(--ui-ink-3, #8f8f8f); }
.lv-value-strip { display: flex; align-items: center; gap: 20px; margin: 4px 0 18px; }
.lv-value-item { display: inline-flex; align-items: baseline; gap: 8px; }
.lv-value-num { order: -1; font-size: var(--fs-20, 20px); font-weight: 600; color: var(--ui-ink, #f3f4f6); font-variant-numeric: tabular-nums; }
.lv-value-label { font-size: var(--fs-12, 12px); color: var(--ui-ink-3, #8f8f8f); }
.lv-value-div { width: 1px; height: 18px; background: var(--ui-line, rgba(255,255,255,.12)); }
.trl-st, .trl-draft .trl-st, .trl-current .trl-st { color: var(--ui-ink-2, #d1d5db) !important; background: none !important; box-shadow: inset 0 0 0 1px var(--ui-line, rgba(255,255,255,.12)) !important; font-weight: 500 !important; }
.trl-current .trl-st { color: var(--ui-ink, #f3f4f6) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28) !important; }
.ph-card { background: var(--ui-bg, #000) !important; border-color: var(--ui-line, rgba(255,255,255,.12)) !important; }
.ph-v-item { background: var(--ui-raised, #141414) !important; border-color: var(--ui-line, rgba(255,255,255,.12)) !important; }
.im-stats > div { background: var(--ui-raised, #141414) !important; border-color: var(--ui-line, rgba(255,255,255,.12)) !important; }
.im-note { background: var(--ui-raised, #141414) !important; color: var(--ui-ink-2, #d1d5db) !important; }
.im-note svg { color: var(--ui-ink-3, #8f8f8f) !important; }
[data-ph-clear-ask] { text-decoration: none !important; border: 0 !important; background: none !important; box-shadow: none !important; height: auto !important; padding: 4px 0 !important; color: var(--ui-ink-3, #8f8f8f) !important; font-size: var(--fs-12, 12px) !important; font-weight: 500 !important; }
[data-ph-clear-ask]:hover { color: var(--ui-ink, #f3f4f6) !important; }
.p-top .p-tab { text-transform: none !important; letter-spacing: 0 !important; white-space: nowrap !important; font-size: var(--fs-12, 12px) !important; }
.im-watch svg { color: var(--ui-ink-3, #8f8f8f) !important; stroke: currentColor; }

/* ===== 21 Nov (Claude): zoom control, one box for the pill and a matching box for Fit ===== */
#zoom { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; display: flex !important; align-items: center !important; gap: 8px !important; }
#zoom .zoom-pill { display: flex !important; align-items: center !important; height: 38px !important; padding: 0 3px !important; gap: 2px !important; box-sizing: border-box !important; background: var(--ui-raised, #141414) !important; border: 1px solid var(--ui-line, rgba(255,255,255,.12)) !important; border-radius: 8px !important; }
#zoom .zoom-pill button { border-radius: 6px !important; }
#zoom #z-val { min-width: 48px; text-align: center; }
#zoom .zoom-fit { width: 38px !important; height: 38px !important; background: var(--ui-raised, #141414) !important; border: 1px solid var(--ui-line, rgba(255,255,255,.12)) !important; border-radius: 8px !important; }

/* ===== 21 Nov (Claude): demo sign-in, approvals, appliance log, decision record ===== */
#appr-pop { position: fixed; z-index: 60; width: 400px; max-height: calc(100vh - 120px); overflow: auto; padding: 16px; border-radius: 12px; background: var(--ui-raised, #141414); border: 1px solid var(--ui-line, rgba(255,255,255,.12)); box-shadow: 0 16px 40px rgba(0,0,0,.6); }
#appr-pop[hidden], #btn-appr[hidden] { display: none !important; }
#appr-pop h3 { margin: 0 0 6px; font-size: var(--fs-14, 14px); font-weight: 600; color: var(--ui-ink, #f3f4f6); }
#appr-pop p { margin: 0 0 12px; font-size: var(--fs-12, 12px); line-height: 1.5; color: var(--ui-ink-3, #8f8f8f); }
#appr-pop .sp-list li { flex-direction: column; align-items: stretch; gap: 8px; background: var(--ui-bg, #000); border: 1px solid var(--ui-line, rgba(255,255,255,.12)); padding: 10px 12px; }
#appr-pop .sp-list b { white-space: normal; }
#appr-pop .sp-list small { color: var(--ui-ink-3, #8f8f8f); }
#appr-pop .ap-acts { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
#appr-pop .ap-acts .btn { height: 28px; padding: 0 12px; font-size: var(--fs-12, 12px); }
#appr-pop .ap-wait { color: var(--ui-ink-3, #8f8f8f) !important; }
#state-pop, #state-pop .sp-list li { background: var(--ui-raised, #141414) !important; }
.im-side + .p-foot .btn.pri[disabled], .p-foot .btn.pri[disabled] { opacity: .45; cursor: not-allowed; }
.ac-who-row { display: flex; align-items: center; gap: 8px; }
.ac-role { font-size: var(--fs-11, 11px); color: var(--ui-ink-2, #d1d5db); border: 1px solid var(--ui-line, rgba(255,255,255,.12)); border-radius: 6px; padding: 1px 6px; }
.ac-demo { display: block; margin-top: 2px; font-size: var(--fs-11, 11px); color: var(--ui-ink-3, #8f8f8f); }
.ac-users { display: grid; gap: 2px; padding: 4px 6px 2px; }
.ac-user { display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--ui-ink-2, #d1d5db); font: inherit; font-size: var(--fs-12, 12px); cursor: pointer; text-align: left; }
.ac-user:hover { background: rgba(255,255,255,.06); color: var(--ui-ink, #f3f4f6); }
.ac-user.on { background: rgba(255,255,255,.08); color: var(--ui-ink, #f3f4f6); }
.ac-user i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 600; background: var(--ui-raised-2, #1a1a1a); border: 1px solid var(--ui-line, rgba(255,255,255,.12)); }
.ac-user span { flex: 1; }
.ac-user small { color: var(--ui-ink-3, #8f8f8f); font-size: var(--fs-11, 11px); }
.trl-sync { margin-left: 12px; font-size: var(--fs-12, 12px); color: var(--ui-ink-3, #8f8f8f); }
.trl-ok { color: var(--ui-ink-2, #d1d5db) !important; }
.trl-ok svg { color: #4ade80; }
.dr-card { margin: 10px 0 12px; padding: 10px 12px; border: 1px solid var(--ui-line, rgba(255,255,255,.12)); border-radius: 8px; background: var(--ui-raised, #141414); font-size: var(--fs-12, 12px); }
.dr-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--ui-ink, #f3f4f6); }
.dr-top .mono { color: var(--ui-ink-2, #d1d5db); font-size: var(--fs-11, 11px); }
.dr-meta { margin-top: 4px; color: var(--ui-ink-3, #8f8f8f); }
.dr-ok { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--ui-ink-2, #d1d5db); }
.dr-ok svg { color: #4ade80; flex: none; }

/* ===== 21 Nov: "Why it's risky" on Summary rows and expanded row ===== */
.lv-row { border-bottom: 1px solid rgba(255, 255, 255, 0.11) !important; }
.lv-row:last-child { border-bottom: 0 !important; }
.lv-main {
  min-height: 80px !important;
  padding: 20px 24px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}
.lv-text-col .lv-sentence { min-width: 0 !important; font-size: var(--fs-13, 13px) !important; color: var(--ui-ink, #f3f4f6) !important; }
.lv-left { align-items: flex-start !important; gap: 14px !important; }
.lv-left .lv-dot { margin-top: 6px !important; flex: none !important; }
.lv-text-col { gap: 5px !important; }
.lv-text-col .lv-why { line-height: 1.5 !important; max-width: 1000px; white-space: normal !important; display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden !important; }
.lv-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.lv-text-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.lv-sentence {
  font-size: var(--fs-12, 12px) !important;
  color: var(--ui-ink-2, #d1d5db) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.4 !important;
}
.lv-why {
  font-size: var(--fs-12, 12px) !important;
  color: var(--ui-ink-3, #8f8f8f) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.4 !important;
}
.lv-why-lvl {
  font-weight: 500 !important;
  color: var(--ui-ink-3, #8f8f8f) !important;
}
.lv-why-lvl::after {
  content: " · ";
  color: var(--ui-ink-3, #8f8f8f);
  font-weight: 400;
}
.lv-why-lvl.lv-why-high {
  color: var(--red-text, #ff5c69) !important;
}
.lv-why-lvl.lv-why-medium {
  color: var(--amber-text, #f59e0b) !important;
}
.lv-why-lvl.lv-why-low {
  color: var(--ui-ink-3, #8f8f8f) !important;
}
.lv-why-txt {
  color: var(--ui-ink-3, #8f8f8f) !important;
}
.lv-acts {
  flex: none !important;
  display: flex !important;
  align-items: center !important;
  margin-left: 16px !important;
}

/* Part B4: Map file chip action button */
.cap-file-act:not(.done) {
  display: none !important;
}
.cap-file-chip:hover .cap-file-act:not(.done),
.cap-file-chip:focus-visible .cap-file-act:not(.done) {
  display: inline-flex !important;
  background: transparent !important;
  color: var(--ui-ink-2, #d1d5db) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
}
.cap-file-act.done,
.cap-file-chip.is-blocked .cap-file-act.done {
  display: inline-flex !important;
  background: rgba(255, 92, 105, 0.25) !important;
  color: var(--red-text, #ff8c96) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* ===== 21 Nov (Antigravity): Cross-persona fixes (owner strip, rule order, traffic groups, detailed cols, isolation fallback) ===== */

/* 1. Owner value strip styling and comparisons */
.lv-value-num-wrap {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  line-height: 1.15 !important;
}
.lv-value-unit {
  font-size: var(--fs-12, 12px) !important;
  font-weight: 400 !important;
  color: var(--ui-ink-3, #8f8f8f) !important;
}
.lv-value-comp {
  font-size: var(--fs-11, 11px) !important;
  color: var(--ui-ink-3, #8f8f8f) !important;
  margin-top: 2px !important;
}

/* 2. Policies Order view & segmented button */
.pm-bar .seg {
  margin-left: 4px !important;
}

/* 3. Matrix view: traffic group columns, folding & inherited cells */
.pm-col-fold {
  vertical-align: bottom !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid var(--ui-line, rgba(255, 255, 255, 0.12)) !important;
}
.pm-btn-expand-groups {
  height: 28px !important;
  line-height: 26px !important;
  font-size: var(--fs-11, 11px) !important;
  white-space: nowrap !important;
  color: var(--ui-ink-2, #d1d5db) !important;
  background: var(--ui-raised, #141414) !important;
  border: 1px solid var(--ui-line, rgba(255, 255, 255, 0.12)) !important;
}
.pm-btn-expand-groups:hover {
  color: var(--ui-ink, #f3f4f6) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}
.cell-is-inherited {
  color: var(--ui-ink-3, #8f8f8f) !important;
}
.pm-inherited {
  color: var(--ui-ink-3, #8f8f8f) !important;
  font-size: var(--fs-12, 12px) !important;
}

/* 4. Detailed table: column ellipsis and expanded row action padding */
.db-table-wrap,
.db-frame .db-table-wrap {
  padding-bottom: 110px !important;
}
.db-exp-item {
  min-width: 0 !important;
  overflow: hidden !important;
}
.db-exp-val {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* 5. Isolate setup button styling & RBI fallback */
.lv-act-btn.lv-act-iso-setup {
  color: var(--ui-ink-2, #d1d5db) !important;
  opacity: 1 !important;
  cursor: pointer !important;
  border: 1px solid var(--ui-line, rgba(255, 255, 255, 0.12)) !important;
  background: var(--ui-raised, #141414) !important;
}
.lv-act-btn.lv-act-iso-setup:hover {
  color: var(--ui-ink, #f3f4f6) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
.pm-rbi-fallback {
  color: var(--amber-text, #f59e0b) !important;
  font-weight: 400 !important;
  font-size: var(--fs-11, 11px) !important;
}





/* 21 Nov (Claude): Isolate is inactive until browser isolation is set up; hovering shows how to set it up */
.lv-iso-wrap { position: relative; display: inline-flex; }
.lv-act-btn.lv-act-iso.is-off,
.lv-act-btn.lv-act-iso.is-off:hover {
  opacity: 0.4 !important;
  cursor: default !important;
  background: transparent !important;
  color: var(--ui-ink-3, #8f8f8f) !important;
  border-color: var(--ui-line, rgba(255, 255, 255, 0.12)) !important;
}
.lv-iso-pop { position: absolute; right: 0; top: 100%; padding-top: 6px; display: none; z-index: 40; }
.lv-iso-wrap:hover .lv-iso-pop,
.lv-iso-wrap:focus-within .lv-iso-pop { display: block; }
.lv-iso-pop-in {
  display: flex; flex-direction: column; gap: 4px; width: 240px; padding: 12px;
  background: var(--ui-raised, #141414); border: 1px solid var(--ui-line, rgba(255, 255, 255, 0.12));
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  font-size: var(--fs-12, 12px); line-height: 1.45; color: var(--ui-ink-3, #8f8f8f); text-align: left; white-space: normal;
}
.lv-iso-pop-in b { color: var(--ui-ink, #f3f4f6); font-weight: 500; }
.lv-iso-pop-in .btn { margin-top: 6px; align-self: flex-start; height: 28px; font-size: var(--fs-12, 12px); }

/* 21 Nov (Claude): owner strip as three one-line items: number, label, quiet comparison */
.lv-vs2 { display: flex !important; align-items: baseline !important; gap: 24px !important; margin: 6px 0 22px !important; flex-wrap: wrap; }
.lv-vs2 .lv-vi2 { display: inline-flex !important; align-items: baseline !important; gap: 8px !important; }
.lv-vi-num { font-size: var(--fs-20, 20px); font-weight: 600; color: var(--ui-ink, #f3f4f6); font-variant-numeric: tabular-nums; }
.lv-vi-label { font-size: var(--fs-13, 13px); color: var(--ui-ink-2, #d1d5db); }
.lv-vi-comp { font-size: var(--fs-12, 12px); color: var(--ui-ink-3, #8f8f8f); }
.lv-vi-comp::before { content: "·"; margin-right: 8px; }
.lv-vs2 .lv-value-div { align-self: center; height: 16px; }
