@font-face {
  font-family: 'Inter';
  src: url('assets/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #000000;
  --dot: #10151F;
  --surface: #0C1018;
  --surface-2: #151B27;
  --line: #1B2433;
  --line-2: #273245;
  --ink: #EDF1F8;
  --ink-2: #A3B0C4;
  --ink-3: #71809A;
  --blue: #3D8BFF;
  --blue-ink: #7DB0FF;
  --blue-soft: #15264A;
  --blue-line: #4D8FE6;
  --pill: #EEF3FB;
  --pill-ink: #0A0F1A;
  --red: #FF5C69;
  --red-soft: #3A1820;
  --red-tint: #0F0A0F;
  --red-line: #5A2530;
  --amber: #F2B544;
  --amber-line: #D79A2E;
  --amber-soft: #33270F;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-up: 0 10px 30px rgba(0, 0, 0, .5);
  --ring: 0 0 0 2px var(--blue), 0 0 0 7px rgba(61, 139, 255, .2);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; overflow: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 13px/1.4 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss03';
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { display: block; flex: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

#top {
  position: fixed; inset: 0 0 auto 0; height: 62px; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px 0 26px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 16px; }
.logo { height: 32px; width: auto; }
.brand-sep { width: 1px; height: 22px; background: var(--line-2); }
.brand h1 { font-size: var(--fs-16, 16px); font-weight: 600; letter-spacing: -.015em; }
.top-right { display: flex; align-items: center; gap: 6px; }
.date-pill {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; margin-right: 8px;
  border: 1px solid var(--line); border-radius: 18px; color: var(--ink-2); font-size: 13px; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.ico-btn {
  position: relative; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; color: var(--ink-2);
}
.ico-btn:hover { background: var(--surface-2); color: var(--ink); }
.avatar { border: 1px solid var(--line); border-radius: 50%; margin-left: 6px; }
.bell-dot {
  position: absolute; top: 5px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--red); color: #fff; font-size: var(--fs-11, 11px); font-weight: 700; line-height: 16px;
  text-align: center; font-variant-numeric: tabular-nums; border: 0;
}
.bell-dot { color: #1a0a0d; }

#stage {
  position: fixed; top: 62px; left: 0; right: 0; bottom: 0; overflow: hidden;
  cursor: grab; touch-action: none; user-select: none;
}
#stage.panning { cursor: grabbing; }
#grid {
  position: absolute; left: -24px; top: -24px; right: -24px; bottom: -24px;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.3px);
  background-size: 24px 24px;
  will-change: transform; pointer-events: none;
}
#world { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
#edges { position: absolute; left: 0; top: 0; pointer-events: none; }
#tokens, #nodes { position: absolute; left: 0; top: 0; width: 0; height: 0; }
#tokens { pointer-events: none; transition: opacity .22s; }
#tokens.off { opacity: 0; }

.n { position: absolute; left: 0; top: 0; cursor: pointer; color: var(--ink); transform-origin: 23px 50%; }
#nodes.moving *, #world.moving * {
  transition: none !important;
}
#nodes.moving .n { will-change: transform; }
.n.dim { opacity: .22; }
.n:hover { z-index: 5; }
.n.sel { z-index: 6; }

.ic {
  display: grid; place-items: center; flex: none; border-radius: 30%;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink-2);
}
.ic img { display: block; width: 62%; height: 62%; object-fit: contain; pointer-events: none; }
.b-high .ic { color: var(--red); border-color: var(--red-line); background: var(--red-tint); }
.b-mid .ic { color: var(--amber); }
.b-low .ic { color: var(--blue-ink); }
.n:hover .ic { border-color: var(--line-2); }
.n.b-high:hover .ic { border-color: var(--red); }
.n.sel .ic { box-shadow: var(--ring); border-color: transparent; }

.score { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.015em; }
.b-high .score { color: var(--red); }
.b-mid .score { color: var(--amber); }
.b-low .score { color: var(--blue-ink); }

.nm { font-weight: 500; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { color: var(--ink-3); font-size: var(--fs-11, 11px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

.f-card, .f-detail, .f-compact, .f-chip { display: flex; align-items: center; }
.f-card { gap: 10px; }
.f-card .ic { width: 42px; height: 42px; }
.f-card .nm { font-size: var(--fs-13, 13px); line-height: 1.25; }
.f-card .tx, .f-detail .tx { min-width: 0; flex: 1; }

.f-detail { gap: 14px; }
.f-detail .ic { width: 62px; height: 62px; border-radius: 19px; }
.f-detail .nm { font-size: 15px; line-height: 1.25; }
.f-detail .score { font-size: var(--fs-20, 20px); line-height: 1.2; }

.f-compact { gap: 7px; }
.f-compact .ic { width: 32px; height: 32px; }
.f-compact .score { font-size: var(--fs-12, 12px); padding-right: 5px; }

.f-chip { gap: 7px; }
.f-chip .ic { width: 24px; height: 24px; box-shadow: none; }
.f-chip .ic svg { width: 13px; height: 13px; }
.f-chip .nm { font-size: var(--fs-11, 11px); flex: 1; min-width: 0; font-weight: 500; }
.f-chip .score { font-size: var(--fs-11, 11px); }

.f-tile { display: grid; place-items: center; }
.f-tile .ic { width: 100%; height: 100%; }
.f-tile.top .ic { border: 2px solid var(--red); }
.lbl {
  position: absolute; left: calc(100% + 9px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 12px; font-weight: 500; display: none; gap: 6px; pointer-events: none;
  color: var(--ink); line-height: 1.2;
}
.f-tile.lab .lbl { display: flex; }
.f-tile.hasr .lbl { top: calc(50% - 21px); transform: none; }

.rk {
  position: absolute; left: 0; top: calc(100% + 5px); height: 22px;
  display: flex; align-items: center; gap: 4px; padding: 0 8px 0 6px;
  background: var(--red-soft); border: 0; border-radius: 11px;
  color: var(--red); font-size: 11px; font-weight: 600; white-space: nowrap; z-index: 2; transform-origin: left center;
}
.rk span { overflow: hidden; text-overflow: ellipsis; }
.rk:hover, .rk.sel { background: var(--pill); border-color: var(--pill); color: var(--pill-ink); }
.rk.fresh { background: var(--red); border-color: var(--red); color: #fff; }
.rk.fresh { color: #1a0a0d; }
.rk.watch { background: var(--amber-soft); border-color: var(--amber-soft); color: var(--amber); }
.rk.done { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--blue-ink); }
.f-compact .rk { left: 0; top: calc(100% - 3px); height: 19px; font-size: var(--fs-11, 11px); padding: 0 6px 0 4px; }
.f-compact .rk svg { width: 11px; height: 11px; }
.f-chip .rk { left: 0; top: calc(100% + 1px); height: 19px; font-size: var(--fs-11, 11px); padding: 0 6px 0 4px; }
.f-chip .rk svg { width: 11px; height: 11px; }
.f-detail .rk { left: 0; top: calc(100% + 5px); }
.f-tile .rk {
  right: auto; left: calc(100% + 8px); bottom: auto; top: calc(50% - 3px); height: 21px;
  font-size: var(--fs-11, 11px); padding: 0 7px 0 5px; max-width: none; display: none;
}
.f-tile.lab .rk { display: flex; }

.files {
  position: absolute; left: 30px; top: calc(100% + 28px); display: flex; flex-direction: column; gap: 5px;
  padding-left: 15px; border-left: 2px dotted var(--blue-line);
}
.file {
  display: flex; align-items: center; gap: 6px; height: 27px; width: max-content; max-width: 210px;
  padding: 0 10px 0 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  font-size: var(--fs-11, 11px); font-weight: 500; color: var(--ink);
}
.file b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file i { font-style: normal; color: var(--ink-3); font-size: var(--fs-11, 11px); flex: none; font-variant-numeric: tabular-nums; }
.file:hover { border-color: var(--blue); }
.file .st { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--blue); color: #fff; }
.file .st.bad { background: var(--red); }
.file .st.warn { background: var(--amber-line); }
.file .st.stop { background: var(--ink-3); }
.file .st { color: #0A0F1A; }

.chev { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-3); }
.chev:hover { background: var(--surface-2); color: var(--ink); }
.chev svg { transition: transform .16s; }

.tok { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.tok.streak i {
  position: absolute; left: -38px; top: -2px; width: 38px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--tc) 62%, #fff 100%);
}
.tok.streak i::before {
  content: ''; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; border-radius: 6px;
  background: linear-gradient(90deg, transparent, var(--tc) 100%); opacity: .3;
}
.tok.streak i::after {
  content: ''; position: absolute; right: 0; top: 0; width: 14px; height: 4px; border-radius: 2px;
  box-shadow: 0 0 9px 3px var(--tc);
}
.tok.chip div {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 7px; border-radius: 13px;
  background: var(--pill); color: var(--pill-ink); font-size: 11px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(11, 26, 51, .28);
}
.ripple {
  position: absolute; left: 0; top: 0; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%;
  border: 1.5px solid var(--red); opacity: 0; will-change: transform, opacity;
}

#hints { position: absolute; inset: 0; pointer-events: none; }
.hint {
  position: absolute; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 8px;
  background: var(--pill); color: var(--pill-ink); border-radius: 15px; font-size: 12px; font-weight: 500;
  pointer-events: auto; white-space: nowrap; box-shadow: var(--shadow-up);
}
.hint .d { width: 16px; height: 16px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; }

#tip {
  position: absolute; left: 0; top: 0; pointer-events: none; z-index: 15; padding: 5px 10px; border-radius: 10px;
  background: var(--pill); color: var(--pill-ink); font-size: 12px; font-weight: 500; white-space: nowrap;
}
#tip b { font-weight: 600; margin-left: 6px; }

#zoom { position: fixed; left: 26px; bottom: 18px; z-index: 25; display: flex; gap: 10px; }
.zoom-pill, .zoom-fit {
  height: 44px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; align-items: center;
}
.zoom-pill { border-radius: 22px; padding: 0 5px; }
.zoom-pill button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.zoom-pill button:hover { background: var(--surface-2); color: var(--ink); }
#z-val { width: 52px; text-align: center; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.zoom-fit { width: 44px; justify-content: center; border-radius: 14px; color: var(--ink-2); }
.zoom-fit:hover { color: var(--ink); border-color: var(--line-2); }

#ask {
  position: fixed; left: 50%; bottom: 14px; width: min(760px, calc(100vw - 500px)); min-width: 340px; transform: translateX(-50%); z-index: 25;
  display: flex; align-items: center; gap: 10px; padding: 7px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-up);
}
.ask-spark {
  width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: var(--blue); color: #fff;
}
.ask-field {
  flex: 1; display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 5px 0 12px;
  background: var(--surface-2); border-radius: 13px; min-width: 0;
}
.ask-ic { color: var(--ink-3); }
#ask-input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: var(--fs-13, 13px); }
#ask-input::placeholder { color: var(--ink-3); }
.ask-go { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: var(--blue); }
.ask-go:hover { background: var(--blue-soft); }
#ask-list {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); max-height: 320px; overflow: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-up);
}
.ask-row {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 10px; border-radius: 12px; text-align: left;
}
.ask-row:hover, .ask-row.on { background: var(--surface-2); }
.ask-row .ic { width: 28px; height: 28px; border-radius: 9px; }
.ask-row .nm { flex: 1; font-size: 13px; }
.ask-row small { color: var(--ink-3); font-size: var(--fs-11, 11px); }
.ask-row .score { font-size: 13px; }
.ask-none { padding: 12px; color: var(--ink-3); font-size: 13px; }

#panel {
  position: fixed; top: 74px; right: 14px; bottom: 14px; width: 346px; z-index: 28;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-up);
  display: flex; flex-direction: column; overflow: hidden;
}
.p-top { display: flex; align-items: center; gap: 8px; padding: 14px 14px 0 18px; }
.p-tab {
  padding: 5px 12px; border-radius: 13px; background: var(--surface-2); color: var(--ink-2);
  font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
}
.p-tab.red { background: var(--red-soft); color: var(--red); }
.p-when { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; margin-left: 2px; }
.p-x { margin-left: auto; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-3); }
.p-x:hover { background: var(--surface-2); color: var(--ink); }
.p-body { flex: 1; min-height: 0; overflow: auto; padding: 14px 18px 16px; }
.p-title { display: flex; align-items: center; gap: 11px; }
.p-title .ic { width: 42px; height: 42px; }
.p-title h2 { font-size: 16px; font-weight: 620; letter-spacing: -.015em; line-height: 1.2; }
.p-title p { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.p-title .score { margin-left: auto; font-size: 24px; }
.p-title > div { min-width: 0; }
.p-sum { margin-top: 11px; color: var(--ink-2); font-size: var(--fs-12, 12px); line-height: 1.5; }
.p-h { margin: 16px 0 9px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }

.tl { list-style: none; padding: 0; position: relative; }
.tl li { position: relative; padding: 0 0 13px 32px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before {
  content: ''; position: absolute; left: 10px; top: 22px; bottom: -1px; border-left: 2px dotted var(--blue-line);
}
.tl li:last-child::before { display: none; }
.tl li.stop::before { border-left-color: var(--line-2); }
.tl .m {
  position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff;
}
.tl .bad .m, .tl li.bad .m { background: var(--red); }
.tl li.warn .m { background: var(--amber-line); }
.tl li.stop .m { background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line-2); }
.tl li.halt .m { background: var(--pill); color: var(--pill-ink); }
.tl .m { color: #0A0F1A; }
.tl li.stop .m { color: var(--ink-3); }
.tl b { display: block; font-size: var(--fs-12, 12px); font-weight: 500; line-height: 1.3; }
.tl span { display: block; color: var(--ink-3); font-size: var(--fs-11, 11px); margin-top: 1px; }
.tl li.bad > span:not(.m) { color: var(--red); }
.tl li.warn > span:not(.m) { color: var(--amber); }
.tl li.stop b { color: var(--ink-3); font-weight: 500; }

.seg { display: flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 15px; }
.seg button { flex: 1; height: 28px; border-radius: 12px; font-size: 12px; font-weight: 500; color: #cbd5e1; }
.seg button:hover { color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.seg button.on { background: rgba(255, 255, 255, 0.12); color: #ffffff; }
.p-n { margin-top: 7px; color: var(--ink-3); font-size: var(--fs-11, 11px); }

.p-foot { padding: 12px 18px 16px; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.btn {
  height: 38px; border-radius: 12px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid #334460; background: #161f30; color: #f1f5f9;
}
.btn:hover { background: #1e293b; border-color: #475569; color: #ffffff; }
.btn.pri { background: var(--ui-accent, #f3f4f6); border-color: var(--ui-accent, #f3f4f6); color: #0a0a0a; }
.btn.pri:hover { background: #ffffff; border-color: #ffffff; color: #0a0a0a; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.btn-row.three { grid-template-columns: 1fr 1.25fr 1fr; }
.btn-row .btn { font-size: 12px; gap: 5px; height: 34px; }
.done-bar {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 14px; margin-top: 12px;
  background: var(--blue-soft); color: var(--blue-ink); font-size: var(--fs-12, 12px); font-weight: 500;
}
.done-bar.w { background: var(--amber-soft); color: var(--amber); }
.done-bar button { margin-left: auto; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.rows { display: grid; gap: 5px; }
.row {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 46px; padding: 7px 10px 7px 8px; border-radius: 14px; text-align: left;
  border: 1px solid transparent;
}
.row:hover { background: var(--surface-2); }
.row.on { background: var(--pill); color: var(--pill-ink); }
.row.on small { color: inherit; opacity: .7; }
.row .ric { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--ink-2); }
.row.b-high .ric { background: var(--red-soft); color: var(--red); }
.row.b-mid .ric { background: var(--amber-soft); color: var(--amber); }
.row.b-low .ric { background: var(--blue-soft); color: var(--blue-ink); }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; font-size: var(--fs-12, 12px); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t small { display: block; color: var(--ink-3); font-size: var(--fs-11, 11px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row svg.go { color: var(--ink-3); }

#bell-pop {
  position: fixed; top: 58px; right: 60px; width: 340px; max-height: 420px; overflow: auto; z-index: 40; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-up);
}
#bell-pop h3 { padding: 8px 10px 8px; font-size: 13px; font-weight: 600; }
#bell-pop .ask-none { padding: 6px 10px 12px; }

#fps {
  position: fixed; left: 8px; top: 70px; z-index: 99; padding: 3px 8px; border-radius: 8px;
  background: #000; color: #5f5; font: 600 12px/1.4 monospace;
}

@media (prefers-reduced-motion: reduce) { .chev svg { transition: none; } }

.ver-btn {
  display: flex; align-items: center; height: 32px; padding: 0 13px; margin-right: 10px; border-radius: 16px;
  border: 1px solid var(--line-2); color: var(--ink-2); font-size: var(--fs-12, 12px); font-weight: 500; text-decoration: none;
}
.ver-btn:hover { color: var(--ink); background: var(--surface-2); }

.hist-btn {
  display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 6px 0 11px; margin-left: 6px; border-radius: 16px;
  border: 1px solid var(--line-2); color: var(--ink-2); font-size: var(--fs-12, 12px); font-weight: 500;
}
.hist-btn:hover { color: var(--ink); background: var(--surface-2); }
.hist-btn b {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2);
  font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums;
}
.hist-btn.back { border-color: rgba(255, 255, 255, 0.28); color: var(--ui-ink); }
.hist-btn.back b { background: rgba(255, 255, 255, 0.12); color: #ffffff; }
#hist-pop {
  position: fixed; top: 58px; width: 372px; max-width: calc(100vw - 16px); max-height: min(560px, calc(100vh - 80px)); overflow-y: auto; overflow-x: hidden; box-sizing: border-box; z-index: 40; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-up);
}
#hist-pop h3 { padding: 8px 10px; font-size: 13px; font-weight: 600; box-sizing: border-box; }
.hist-row {
  display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 8px; border-radius: 14px; border: 1px solid transparent; text-align: left;
}
.hist-row:hover { background: var(--surface-2); }
.hist-row.on { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.06); }
.hist-thumb { flex: none; width: 128px; height: 66px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.hist-thumb svg { display: block; width: 100%; height: 100%; }
.hist-t { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.hist-t b { font-size: var(--fs-12, 12px); font-weight: 500; line-height: 1.3; }
.hist-t small { color: var(--ink-3); font-size: var(--fs-11, 11px); }
.hist-t em { margin-top: 3px; padding: 1px 7px; border-radius: 9px; background: rgba(255, 255, 255, 0.12); color: #ffffff; font-size: 11px; font-style: normal; font-weight: 600; }

#ask-list.bubbles { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
.bubble { display: flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 15px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-size: var(--fs-12, 12px); text-align: left; }
.bubble svg { color: var(--blue-ink); }
.bubble:hover { border-color: var(--blue); }
.ask-spark:hover { filter: brightness(1.12); }
#toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 10px); max-width: 620px; padding: 10px 16px; border-radius: 14px; z-index: 45;
  background: var(--pill); color: var(--pill-ink); font-size: 13px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s; box-shadow: var(--shadow-up);
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.p-tab.ag { display: flex; align-items: center; gap: 5px; background: var(--blue-soft); color: var(--blue-ink); }
.ag-title { font-size: 17px; font-weight: 620; letter-spacing: -.015em; }
.ag-phases { list-style: none; padding: 0; margin: 8px 0 14px; display: flex; gap: 3px; }
.ag-phases li { flex: 1; font-size: var(--fs-11, 11px); font-weight: 600; color: var(--ink-3); padding-top: 6px; border-top: 2px solid var(--line-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-phases li.done { border-color: var(--blue); color: var(--ink-2); }
.ag-phases li.now { border-color: var(--blue); color: var(--blue-ink); }
.ag-thread { display: grid; gap: 8px; margin-bottom: 12px; }
.ag-msg { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.ag-msg b { color: var(--ink); font-weight: 600; }
.ag-msg.me { justify-self: end; max-width: 88%; padding: 7px 11px; border-radius: 13px 13px 3px 13px; background: var(--blue); color: #0A0F1A; font-weight: 500; }
.ag-msg.bot { display: flex; gap: 8px; }
.ag-av { width: 22px; height: 22px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-ink); }
.ag-ent { display: inline-block; margin: 1px 2px 1px 0; padding: 1px 8px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); font-size: 11.5px; }
.ag-gen { display: grid; gap: 10px; }
.ag-card { padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.ag-card h4 { font-size: 12px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.ag-card h5 { margin: 9px 0 3px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.ag-card ul { padding-left: 15px; font-size: 12px; color: var(--ink-2); display: grid; gap: 2px; }
.ag-score { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); }
.ag-badge { display: inline-grid; place-items: center; min-width: 30px; height: 21px; padding: 0 6px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); font-size: 11.5px; flex: none; }
.ag-rec, .ag-note, .ag-rule { font-size: 12px; color: var(--ink-2); }
.ag-rec b { color: var(--ink); font-weight: 600; }
.ag-rule { color: var(--ink); font-weight: 550; margin-bottom: 9px; }
.ag-note { margin-top: 8px; color: var(--ink-3); }
.ag-tag { padding: 1px 7px; border-radius: 8px; background: var(--blue-soft); color: var(--blue-ink); font-size: 10px; font-weight: 600; flex: none; }
.ag-tag.stop { background: var(--red-soft); color: var(--red); }
.ag-tag.go { background: var(--blue-soft); color: var(--blue-ink); }
.ag-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ag-stats div { padding: 9px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.ag-card .ag-stats div { background: var(--surface); }
.ag-stats span { display: block; font-size: 10.5px; color: var(--ink-3); }
.ag-stats b { display: block; margin-top: 2px; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.c-hi { color: var(--red); } .c-el { color: var(--amber); } .c-ok { color: var(--blue-ink); }
.ag-steps { list-style: none; padding: 0; display: grid; gap: 9px; }
.ag-steps li { display: flex; gap: 9px; font-size: 12px; }
.ag-steps .m { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #1d64d8; color: #ffffff; font-size: 10.5px; font-weight: 700; }
.ag-steps.pipe li .m { background: var(--surface); color: var(--ink-3); border: 1px solid var(--line-2); }
.ag-steps.pipe li.done .m { background: #1d64d8; color: #ffffff; border-color: #2563eb; }
.ag-steps.pipe li.now .m { border-color: var(--blue); color: var(--blue-ink); }
.ag-steps div { min-width: 0; flex: 1; display: grid; gap: 3px; justify-items: start; }
.ag-steps b { font-weight: 550; }
.ag-steps span:not(.m), .ag-steps small { color: var(--ink-2); font-size: 11.5px; }
.ag-steps em { font-style: normal; color: var(--ink-3); font-size: 10.5px; }
.ag-steps .btn { margin-top: 3px; padding: 0 12px; height: 32px; width: 100%; font-size: 12px; }
.ag-link { color: var(--blue-ink); font-size: 11.5px; text-decoration: underline; text-underline-offset: 2px; }
.ag-ev { display: flex; gap: 8px; width: 100%; padding: 7px 0; text-align: left; font-size: 11.5px; color: var(--ink-2); border-top: 1px solid var(--line); }
.ag-ev:first-of-type { border-top: 0; }
.ag-ev b { display: block; color: var(--ink); font-weight: 550; font-size: 12px; }
.ag-ev em { display: block; font-style: normal; color: var(--ink-3); font-size: 10.5px; }
.ag-mit { padding: 12px; border-radius: 14px; background: var(--blue-soft); display: grid; gap: 8px; font-size: 12px; color: var(--ink-2); }
.ag-mit > b { display: flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; font-size: 13px; }
.ag-risk { display: flex; gap: 9px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 12px; }
.ag-risk:first-of-type { border-top: 0; padding-top: 0; }
.ag-risk .rank { width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 10.5px; color: var(--ink-2); }
.ag-risk > div { flex: 1; min-width: 0; }
.ag-risk .rr { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.ag-risk b { font-weight: 550; line-height: 1.3; }
.ag-risk small { color: var(--ink-3); font-size: 11px; overflow-wrap: anywhere; }
.ag-risk .rf { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 5px; color: var(--ink-2); font-size: 11px; }
.ag-risk .rf span { display: flex; align-items: center; gap: 4px; }
.ag-risk .btn { height: 26px; padding: 0 9px; font-size: 11px; border-radius: 9px; flex: none; }
.ag-types { display: flex; flex-wrap: wrap; gap: 5px; }
.ag-types span { display: flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 9px; background: var(--red-soft); color: var(--red); font-size: 11px; }
.ag-types b { font-weight: 700; }
.ag-q { margin-top: 10px; }
.ag-q label { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.ag-q label i { font-style: normal; color: var(--amber); font-weight: 500; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ag-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 11.5px; }
.ag-chip:hover { border-color: var(--blue); }
.ag-chip.on { background: var(--blue); border-color: var(--blue); color: #0A0F1A; font-weight: 550; }
.ag-more, .ag-sim-f input, .ag-sim-f select { padding: 3px 6px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 11.5px; max-width: 110px; }
.ag-opts { display: grid; gap: 4px; }
.ag-opt { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; margin: 0 !important; }
.ag-opt:hover { border-color: var(--line-2); }
.ag-opt.on { border-color: var(--blue); background: var(--blue-soft); }
.ag-opt input { accent-color: var(--blue); flex: none; margin: 0; }
.ag-opt .t { flex: 1; min-width: 0; }
.ag-opt b { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; color: var(--ink); }
.ag-opt em { padding: 0 6px; border-radius: 7px; background: var(--blue); color: #0A0F1A; font-size: 9.5px; font-style: normal; font-weight: 650; line-height: 15px; }
.ag-opt small { display: block; font-size: 10.5px; font-weight: 400; color: var(--ink-3); line-height: 1.3; }
.ag-opt .aft { font-size: 12.5px; flex: none; }
.ag-sim-f { display: grid; gap: 6px; width: 100%; margin-top: 2px; }
.ag-sim-f label { display: grid; gap: 3px; font-size: 11px; color: var(--ink-3); }
.ag-sim-f input, .ag-sim-f select { max-width: none; width: 100%; padding: 6px 8px; color: var(--ink); }
.ag-sim-r { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 5px 0; border-top: 1px solid var(--line); font-size: 12px; }
.ag-sim-r:first-of-type { border-top: 0; }
.ag-sim-r b { display: block; font-weight: 550; color: var(--ink); overflow-wrap: anywhere; }
.ag-sim-r small { display: block; color: var(--ink-3); font-size: 11px; }
.ag-dial { display: grid; gap: 4px; justify-items: start; }
.ag-dial span { font-size: 11px; color: var(--ink-3); }
.ag-dial b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ag-dial .btn { width: 100%; margin-top: 6px; padding: 0 12px; }
.ag-fold { border-radius: 12px; border: 1px solid var(--line); padding: 8px 11px; font-size: 12px; }
.ag-fold summary { cursor: pointer; font-weight: 550; color: var(--ink-2); font-size: 11.5px; }
.ag-fold[open] summary { margin-bottom: 8px; }
.ag-fold > * + * { margin-top: 8px; }
.ag-json { margin: 0; padding: 9px; border-radius: 9px; background: var(--bg); color: var(--ink-2); font: 500 10.5px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.btn[disabled] { opacity: .45; cursor: default; }

.view-sw { display: flex; align-items: center; gap: 2px; height: 32px; padding: 2px; margin-right: 8px; border: 1px solid var(--line-2); border-radius: 16px; }
.view-sw button { height: 26px; padding: 0 11px; border-radius: 13px; color: var(--ink-2); font-size: 12.5px; font-weight: 550; }
.view-sw button:hover { color: var(--ink); }
.view-sw button.on { background: var(--surface-2); color: var(--ink); }



.n.f-tile:not(.lab) > .rk {
  display: flex; align-items: center; justify-content: center; left: auto; right: -6px; top: -6px; width: 22px; height: 22px; padding: 0;
  border-radius: 50%; border: 2px solid var(--bg); box-shadow: none;
}
.n.f-tile:not(.lab) > .rk span { display: none; }
.n.f-tile:not(.lab) > .rk svg { width: 11px; height: 11px; }
.n.f-tile:not(.lab) > .rk:not(.watch):not(.done):not(.sel):not(:hover) { background: var(--red); color: #1a0a0d; }

.tip-s { color: #5A6A85; margin-right: 6px; }
.tip-s::after { content: '·'; margin-left: 6px; }
.tip-r { margin-left: 8px; color: #C42D3B; font-weight: 600; }

#top { background: var(--bg); border-bottom-color: var(--line); }
.brand h1 { font-size: 16px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.date-pill { border-color: transparent; padding: 0 6px; color: var(--ink-3); font-size: var(--fs-12, 12px); }
.ver-btn, .hist-btn, .view-sw { border-color: var(--line); }

.ic { position: relative; background: var(--bg); box-shadow: none; border-color: var(--line-2); }
.b-high .ic { background: var(--red-tint); }

.nm { font-weight: 500; letter-spacing: -.005em; }
.score { font-weight: 500; letter-spacing: -.01em; }
.chev { color: var(--line-2); }

.rk { background: var(--bg); box-shadow: inset 0 0 0 1px var(--red-line); font-weight: 500; }
.rk.fresh { box-shadow: none; }
.rk.watch { background: var(--bg); box-shadow: inset 0 0 0 1px var(--amber-soft); }
.rk.done { background: var(--bg); box-shadow: inset 0 0 0 1px var(--blue-soft); }
.rk:hover, .rk.sel { box-shadow: none; }

.zoom-pill, .zoom-fit { background: var(--surface); border-color: var(--line); box-shadow: none; }
#ask { background: var(--surface); border-color: var(--line); padding: 5px; border-radius: 18px; }
.ask-field { background: none; }
.ask-spark { background: var(--surface-2); color: var(--blue-ink); box-shadow: none; }
#panel { border-color: var(--line); }

.tok.streak i { top: -1.5px; height: 3px; }
.tok.streak i::before { opacity: .22; }
.tok.streak i::after { top: 0; height: 3px; box-shadow: 0 0 7px 2px var(--tc); }

.tok.chip.mini div { height: 18px; padding: 0 6px; gap: 0; border-radius: 5px; font-size: var(--fs-11, 11px); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.risk-filter { position: relative; margin-right: 8px; }
.rf-btn {
  display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 11px; border-radius: 16px;
  border: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-12, 12px); font-weight: 500; white-space: nowrap;
}
.rf-btn:hover, .rf-btn[aria-expanded="true"] { color: var(--ink); background: var(--surface-2); }
.rf-btn b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.rf-btn.active { border-color: var(--red-line); color: var(--ink); }
.rf-btn.active svg:first-child, .rf-btn.active b { color: var(--red); }
.rf-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 232px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-up);
}
.rf-row {
  display: flex; align-items: center; gap: 9px; width: 100%; height: 34px; padding: 0 10px; border-radius: 9px;
  color: var(--ink-2); font-size: 13px; font-weight: 500; text-align: left;
}
.rf-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-row b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.rf-row:hover { color: var(--ink); background: var(--surface-2); }
.rf-row.on { color: var(--ink); background: var(--surface-2); }

.f-tile { transform-origin: 50% 50%; }
.f-tile .ic, .f-tile.b-high .ic, .f-tile.b-mid .ic, .f-tile.b-low .ic {
  --rc: var(--blue-line); --ring-w: 3px;
  border: 0; border-radius: 50%; box-shadow: none; color: var(--rc);
  background: conic-gradient(var(--rc) calc(var(--p) * 1%), #202A3B 0);
}
.f-tile.b-mid .ic { --rc: var(--amber); }
.f-tile.b-high .ic { --rc: var(--red); }
.lead.f-tile .ic { --ring-w: 4px; }
.f-tile .ic::after { content: ''; position: absolute; inset: var(--ring-w); border-radius: 50%; background: var(--surface); }
.f-tile .ic > * { position: relative; z-index: 1; }
.f-tile .ic img { width: 54%; height: 54%; }
.n.f-tile:hover .ic::after { background: var(--surface-2); }
.n.f-tile:hover .ic, .n.f-tile.b-high:hover .ic, .n.f-tile.b-mid:hover .ic, .n.f-tile.b-low:hover .ic { border: 0; }
.n.f-tile.sel .ic { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue); }

.nb {
  position: absolute; right: -5px; top: -5px; z-index: 2; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #1a0a0d; border: 2px solid var(--bg); pointer-events: none;
}
.nb.watch { background: var(--amber); }
.nb.done { background: var(--blue); }

.f-tile .lbl, .f-tile.hasr .lbl, .lead.f-tile .lbl {
  position: absolute; top: 50%; transform: translateY(-50%); display: none; width: var(--lw, 120px);
  flex-direction: column; align-items: flex-start; gap: 0; text-align: left; line-height: 1.25; pointer-events: auto; white-space: normal; font-weight: 400;
}
.f-tile.lab .lbl { display: flex; }
.lbl .ln { display: flex; flex-wrap: wrap; align-items: center; column-gap: 5px; width: 100%; }
.lbl .nm { flex-basis: 100%; min-width: 0; font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: normal; overflow-wrap: break-word; }
.lead .lbl .nm { font-size: 13px; color: var(--ink); flex-basis: auto; }
.lbl .ln .score { font-size: 12px; font-weight: 600; flex: none; }
.lbl .score.big { font-size: var(--fs-20, 20px); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.lbl .chev { width: 15px; height: 15px; flex: none; color: var(--ink-3); }
.lbl .sub { font-size: 11px; }
.lbl .files { position: absolute; left: 0; top: calc(100% + 6px); margin: 0; padding: 0; border: 0; width: max-content; align-items: stretch; }
.n.f-tile.lab .lbl .rk {
  position: static; display: flex; align-items: flex-start; justify-content: flex-start; gap: 4px; max-width: 100%; height: auto; margin-top: 2px; padding: 0;
  background: none; box-shadow: none; border: 0; border-radius: 0; color: #F2737D; font-size: 11px; font-weight: 500; text-align: left; line-height: 1.25;
}
.lbl .rk svg { display: none; }
.lbl .rk span { white-space: normal; overflow: visible; overflow-wrap: break-word; }
.n.f-tile.lab .lbl .rk:hover span, .n.f-tile.lab .lbl .rk.sel span { text-decoration: underline; text-underline-offset: 2px; }
.n.f-tile.lab .lbl .rk.fresh { color: #FF8F97; font-weight: 600; }
.n.f-tile.lab .lbl .rk.watch { color: var(--amber); }
.n.f-tile.lab .lbl .rk.done { color: var(--blue-ink); }
#nodes.narrow .n.dim .lbl { visibility: hidden; }
#nodes.narrow .lbl .chev { display: none; }


.f-row .chev svg { transform: rotate(90deg); }
.g-t { position: absolute; left: calc(50% - 7px); top: 100%; width: 190px; height: 0; overflow: hidden; }
.g-t::before { content: ''; position: absolute; left: 6.5px; top: 0; bottom: 11px; width: 1px; background: var(--line-2); }
.p-row {
  position: absolute; left: 2px; width: 178px; height: 22px; display: flex; align-items: center; gap: 9px; padding: 0 8px 0 0;
  border-radius: 7px; color: var(--ink-2); font-size: 12px; font-weight: 400; text-align: left;
}
.p-row:hover { background: var(--surface-2); color: var(--ink); }
.pd { flex: none; width: 9px; height: 9px; margin-left: 0; border-radius: 50%; background: var(--blue-line); box-shadow: 0 0 0 2px var(--bg); }
.p-row:hover .pd { box-shadow: 0 0 0 2px var(--surface-2); }
.p-row.b-mid .pd { background: var(--amber); }
.p-row.b-high .pd { background: var(--red); }
.pn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.ps { flex: none; min-width: 18px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--blue-ink); }
.p-row.b-mid .ps { color: var(--amber); }
.p-row.b-high .ps { color: var(--red); }
.p-row.sel { color: var(--ink); background: var(--surface-2); }
.p-row.sel .pn { font-weight: 600; }
.p-row.sel .pd { box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 3.5px var(--blue); }
.p-row.more { color: var(--ink-3); }
.p-row.more .pd { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 2px var(--bg); }

.vx-mark { display: block; width: 66%; aspect-ratio: 1; background: url('assets/VxSure-Icon.png') center / contain no-repeat; }
.g-t { width: 206px; }
.p-row { width: 198px; }

.tok.grab { pointer-events: auto; cursor: grab; }
.tok.grab div { pointer-events: auto; }
.tok.grab div::before { content: ''; position: absolute; inset: -8px; }
.tok.grab:hover div { background: var(--blue); color: #05070C; }
.tok-caught { position: absolute; left: 0; top: 0; z-index: 12; pointer-events: none; }
.tok-caught div {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px 0 7px; border-radius: 12px;
  background: var(--blue); color: #05070C; font-size: 11px; font-weight: 600; white-space: nowrap; text-transform: uppercase; letter-spacing: .02em;
}
.tok-caught div { height: 18px; padding: 0 6px; gap: 3px; border-radius: 5px; background: var(--pill); color: var(--pill-ink); font-size: var(--fs-11, 11px); letter-spacing: .04em; }
.tok-caught.done div { height: 24px; padding: 0 10px 0 7px; border-radius: 12px; background: var(--blue); color: #05070C; font-size: 11px; }

#pkt-menu {
  position: fixed; left: 0; top: 0; z-index: 45; width: 228px; padding: 8px; display: flex; flex-direction: column; gap: 3px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-up);
}
.pk-file { display: flex; flex-direction: column; gap: 1px; padding: 3px 6px 5px; }
.pk-file b { font-size: var(--fs-12, 12px); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-file span { color: var(--ink-3); font-size: 11px; }
.pk-risk { padding: 0 6px 7px; color: #F2737D; font-size: 11px; font-weight: 500; line-height: 1.3; }
.pk-act { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 5px 9px; border-radius: 9px; color: var(--ink); font-size: var(--fs-12, 12px); font-weight: 500; text-align: left; }
.pk-act svg { color: var(--ink-2); }
.pk-act:hover { background: var(--surface-2); }
.pk-act.pri { background: var(--blue); color: #05070C; font-weight: 600; }
.pk-act.pri svg { color: #05070C; }
.pk-act.pri:hover { background: var(--blue-ink); }

/* =========================================================
   Canvas: quiet surfaces, colour only for risk
   ========================================================= */
:root { --red-text: #FF8791; --amber-text: #F5C872; --blue-text: #9CC2FF; }

#stage::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), var(--bg) 82%);
}
#hints { z-index: 2; }
.n.dim { transition: opacity .16s; }

.n.f-bubble-group {
  display: block; border-radius: 50%; overflow: visible; cursor: pointer; contain: layout style;
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(150, 175, 215, .1) 0%, rgba(150, 175, 215, 0) 62%),
    linear-gradient(180deg, #10151E 0%, #07090E 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .05), inset 0 -18px 30px rgba(0, 0, 0, .4),
    0 20px 40px rgba(0, 0, 0, .7), 0 3px 8px rgba(0, 0, 0, .5);
  transition: box-shadow .16s, opacity .16s;
}
.n.f-bubble-group.c-clients { border-radius: calc(26px * var(--ubg-scale, 1)); }
.n.f-bubble-group.c-services { border-radius: calc(18px * var(--ubg-scale, 1)); }
.n.f-bubble-group.b-high {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .05), inset 0 -18px 30px rgba(0, 0, 0, .4),
    0 20px 40px rgba(0, 0, 0, .7), 0 12px 34px rgba(255, 92, 105, .09);
}
.n.f-bubble-group:hover {
  z-index: 10;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .11), inset 0 -18px 30px rgba(0, 0, 0, .4),
    0 22px 44px rgba(0, 0, 0, .75);
}
.n.f-bubble-group.sel {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px var(--blue), 0 0 0 4px rgba(61, 139, 255, .18), 0 20px 40px rgba(0, 0, 0, .7);
}

.ubg-wrap {
  position: absolute; left: 50%; top: 50%;
  width: var(--base-w, 150px); height: var(--base-h, 150px);
  margin-left: calc(var(--base-w, 150px) / -2); margin-top: calc(var(--base-h, 150px) / -2);
  transform-origin: 50% 50%; transform: scale(var(--ubg-scale, 1));
}
.ubg-ring { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ubg-ring > * { fill: none; stroke: var(--blue-line); stroke-linecap: round; }
.b-mid > .ubg-wrap > .ubg-ring > *, .b-mid > .ic > .ubg-ring > * { stroke: var(--amber); }
.b-high > .ubg-wrap > .ubg-ring > *, .b-high > .ic > .ubg-ring > * { stroke: var(--red); }

.ubg-head {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 1px; z-index: 5;
}
.ubg-line { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.ubg-title { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: var(--fs-12, 12px); font-weight: 500; letter-spacing: -.01em; }
.ubg-title svg { color: var(--ink-3); }
.ubg-ico { width: 14px; height: 14px; object-fit: contain; flex: none; }
.ubg-score { font-size: var(--fs-12, 12px); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ubg-score.b-high { color: var(--red-text); }
.ubg-score.b-mid { color: var(--amber-text); }
.ubg-score.b-low { color: var(--blue-text); }

.ubg-body { position: absolute; inset: 0; }

.u-bubble {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0;
  border-radius: 50%; cursor: pointer; color: var(--ink); z-index: 6;
  background: linear-gradient(165deg, rgba(125, 176, 255, .17), rgba(60, 90, 150, .09));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(125, 176, 255, .2), 0 5px 12px rgba(0, 0, 0, .45);
  transition: transform .16s cubic-bezier(.2, .85, .3, 1.1), filter .16s, box-shadow .16s;
}
.u-bubble:hover { transform: scale(1.05); z-index: 9; filter: brightness(1.18); }
.u-bubble.b-mid {
  background: linear-gradient(165deg, rgba(242, 181, 68, .2), rgba(150, 105, 25, .1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(242, 181, 68, .3), 0 5px 12px rgba(0, 0, 0, .45);
}
.u-bubble.b-high {
  background: linear-gradient(165deg, rgba(255, 110, 122, .27), rgba(150, 40, 55, .16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 92, 105, .38), 0 5px 12px rgba(0, 0, 0, .45);
}
.u-bubble.b-high.top-threat {
  background: linear-gradient(165deg, rgba(255, 110, 122, .46), rgba(170, 40, 58, .26));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(255, 92, 105, .6), 0 7px 16px rgba(0, 0, 0, .5), 0 3px 12px rgba(255, 92, 105, .14);
}
.u-bubble.sel { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px var(--blue), 0 0 0 3px rgba(61, 139, 255, .28), 0 5px 12px rgba(0, 0, 0, .45); }


.ub-score { font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.02em; color: var(--blue-text); text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.b-mid > .ub-score { color: var(--amber-text); }
.b-high > .ub-score { color: var(--red-text); }
.top-threat.b-high > .ub-score { color: #FFD3D6; }
.ub-name {
  max-width: 88%; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: rgba(237, 241, 248, .72); font-weight: 500; line-height: 1.1; letter-spacing: -.005em;
}
.top-threat > .ub-name { color: rgba(237, 241, 248, .92); }
.ub-dot { position: absolute; top: 9%; right: 9%; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.b-high > .ub-dot { display: none; }

.u-bubble.more {
  display: grid; place-items: center; background: rgba(255, 255, 255, .03); box-shadow: none;
  color: var(--ink-3); font-size: var(--fs-11, 11px); font-weight: 500; font-variant-numeric: tabular-nums; pointer-events: none;
}

.ubg-pill .rk {
  position: static; display: flex; align-items: center; gap: 5px; height: 18px; max-width: 214px; padding: 0;
  background: none; box-shadow: none; border-radius: 0; color: var(--ink-2); font-size: 11px; font-weight: 400;
}
.ubg-pill .rk svg { width: 12px; height: 12px; flex: none; color: var(--red-text); }
.ubg-pill .rk span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ubg-pill .rk:hover, .ubg-pill .rk.sel { background: none; color: var(--ink); }
.ubg-pill .rk:hover span, .ubg-pill .rk.sel span { text-decoration: underline; text-underline-offset: 2px; }
.ubg-pill .rk.fresh { height: 20px; padding: 0 9px 0 7px; border-radius: 10px; background: var(--red-soft); color: #FFC2C7; }
.ubg-pill .rk.watch { background: none; box-shadow: none; }
.ubg-pill .rk.watch svg { color: var(--amber); }
.ubg-pill .rk.done { background: none; box-shadow: none; }
.ubg-pill .rk.done svg { color: var(--blue-ink); }

/* Hub */
.n.hub .ic, .n.hub.b-high .ic, .n.hub.b-mid .ic, .n.hub.b-low .ic {
  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);
}
.n.hub .ic::after { display: none; }
.n.hub .ic::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .06); pointer-events: none; }
.n.hub .ic > .ubg-ring { position: absolute; z-index: 2; }
.n.hub:hover .ic { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 1px rgba(255, 255, 255, .14), 0 14px 34px rgba(0, 0, 0, .75), 0 0 80px rgba(61, 139, 255, .28); }
.n.hub.sel .ic { box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 4px rgba(61, 139, 255, .18), 0 14px 34px rgba(0, 0, 0, .75), 0 0 80px rgba(61, 139, 255, .28); }
.n.hub .lbl {
  top: calc(100% + 9px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 230px; align-items: center; text-align: center;
}
.n.hub .lbl .ln { flex-wrap: nowrap; justify-content: center; column-gap: 6px; width: auto; }
.n.hub .lbl .nm { flex-basis: auto; font-size: 13px; color: var(--ink); }
.n.hub .lbl .score { font-size: 13px; }
.n.hub.b-high .lbl .score { color: var(--red-text); }
.n.hub .g-t { left: calc(50% - 103px); top: calc(100% + 54px); }

/* Moving packets */
.tok.streak i { left: -26px; top: -1px; width: 26px; height: 2px; border-radius: 1px; background: linear-gradient(90deg, transparent, var(--tc)); }
.tok.streak i::before { display: none; }
.tok.streak i::after { right: -2px; top: -1px; width: 4px; height: 4px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 6px 1px var(--tc); }
.tok.chip div { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--tc), 0 4px 12px rgba(0, 0, 0, .4); }

/* Floating chrome */
.hint {
  height: 28px; background: var(--surface-2); color: var(--ink); font-size: var(--fs-11, 11px); font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 22px rgba(0, 0, 0, .45);
}
.hint .d { width: 15px; height: 15px; background: var(--red-soft); color: var(--red-text); }
#tip {
  background: var(--surface-2); color: var(--ink); font-size: var(--fs-11, 11px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 22px rgba(0, 0, 0, .45);
}
.tip-s { color: var(--ink-3); }
.tip-r { color: var(--red-text); font-weight: 500; }

/* Pure black: only hairlines define regions */
#grid { display: none; }
#stage { background: url('assets/flow-lines.svg') center / cover no-repeat; }
#top { background: var(--bg); border-bottom: 1px solid var(--line); }
.zoom-pill, .zoom-fit, #ask { background: var(--bg); }
.ask-spark { background: none; }

/* User focus view: group, user, browser, data, VxSure, destination */
#journey { position: fixed; top: 62px; left: 0; right: 0; bottom: 0; z-index: 22; overflow: hidden; background: var(--bg) url('assets/flow-lines.svg') center / cover no-repeat; animation: j-fade .22s ease-out; }
body.in-journey #zoom, body.in-journey #hints, body.in-journey #iso-chip { display: none !important; }
@keyframes j-fade { from { opacity: 0; } }
@keyframes j-in { from { opacity: 0; transform: translateX(-12px); } }
.j-back {
  position: absolute; left: 26px; top: 18px; z-index: 3; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px 0 9px;
  border: 1px solid var(--ui-line, var(--line)); border-radius: 16px; color: var(--ui-ink-2, var(--ink-2)); font-size: var(--fs-12, 12px); font-weight: 500;
}
.j-back:hover { color: var(--ui-ink, var(--ink)); background: var(--ui-hover, var(--surface-2)); }
.j-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.j-lines { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.j-col { position: absolute; }
#journey[data-enter="all"] .j-col, #journey[data-enter="user"] .j-col:not(.j-group) { animation: j-in .38s cubic-bezier(.2, .8, .2, 1) backwards; }
#journey .j-user { animation-delay: .04s !important; }
#journey .j-browser { animation-delay: .09s !important; }
#journey .j-hub { animation-delay: .19s !important; }

.j-seg { fill: none; stroke: var(--ui-line, rgba(200, 214, 235, .26)); stroke-width: 1; stroke-linecap: round; transition: opacity .15s; }
.j-seg.cut { stroke-dasharray: 4 5; }
.j-pk { fill: var(--blue-ink); transition: opacity .15s; }
.j-pk.c-mid { fill: var(--amber); }
.j-pk.c-high { fill: var(--red); }
.has-hot .j-seg[data-fs]:not(.hot), .has-hot .j-pk:not(.hot) { opacity: .1; }
.has-hot .j-seg.hot { stroke: var(--blue-line); stroke-width: 1.6; }
.has-hot .j-seg.hot.c-mid { stroke: var(--amber); }
.has-hot .j-seg.hot.c-high { stroke: var(--red); }
.has-hot .j-seg.hot.cut { stroke: var(--ink-3); }
.j-dim { transition: opacity .15s, border-color .15s, background .15s; }
.has-hot .j-dim:not(.hot) { opacity: .32; }

.j-disc {
  display: grid; place-items: center; border-radius: 50%;
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, var(--ui-raised-2, #1a1a1a) 0%, var(--ui-raised, #141414) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px var(--ui-line-soft, rgba(255, 255, 255, .06)), inset 0 -18px 30px rgba(0, 0, 0, .4),
    0 20px 40px rgba(0, 0, 0, .7), 0 3px 8px rgba(0, 0, 0, .5);
}
.j-disc > .ubg-ring > * { stroke: var(--blue-line); }
.j-disc.b-mid > .ubg-ring > * { stroke: var(--amber); }
.j-disc.b-high > .ubg-ring > * { stroke: var(--red); }
.j-head {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
.j-head .ubg-title, .j-head .ubg-score { font-size: var(--fs-13, 13px); }
.j-under {
  position: absolute; left: 50%; top: calc(100% + 9px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px; white-space: nowrap;
  color: var(--ui-ink-3, var(--ink-3)); font-size: var(--fs-11, 11px); font-variant-numeric: tabular-nums;
}
.j-name { color: var(--ui-ink, var(--ink)); font-size: 13px; font-weight: 500; }
.j-alert { color: var(--red-text); font-style: normal; }
.j-swap { display: flex; align-items: center; gap: 3px; color: var(--ui-ink-3, var(--ink-3)); font-size: var(--fs-11, 11px); font-variant-numeric: tabular-nums; }
.j-swap button { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: var(--ui-ink-2, var(--ink-2)); }
.j-swap button:hover { color: var(--ui-ink, var(--ink)); background: var(--ui-hover, var(--surface-2)); }

.j-user { align-content: center; gap: 3px; justify-items: center; }
.j-big { font-size: 38px; font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--blue-text); }
.j-user.b-mid .j-big { color: var(--amber-text); }
.j-user.b-high .j-big { color: var(--red-text); }
.j-first { color: var(--ui-ink, var(--ink)); font-size: 13px; font-weight: 500; }
.j-browser { border-radius: 24px; }
.j-browser img { width: 54%; height: 54%; object-fit: contain; }
.j-browser svg { color: var(--ui-ink-2, var(--ink-2)); }
.j-hub {
  background: radial-gradient(circle at 50% 28%, var(--ui-raised-2, #1a1a1a) 0%, var(--ui-raised, #141414) 70%, #090C12 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px var(--ui-line-soft, 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);
}
.j-hub::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--ui-line-soft, rgba(255, 255, 255, .06)); pointer-events: none; }

.j-card {
  height: 66px; min-height: 66px; padding: 8px 12px 8px 9px; align-items: center;
  background: var(--ui-raised, #141414); border: 1px solid var(--ui-line-soft, rgba(255, 255, 255, .07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 12px 26px rgba(0, 0, 0, .65);
}
.j-card:hover { background: var(--ui-raised-2, #1a1a1a); border-color: var(--ui-line, rgba(255, 255, 255, .13)); }
.j-card.sel { border-color: var(--ui-accent, var(--blue)); }
.j-card .ric img { width: 62%; height: 62%; object-fit: contain; }
.j-card .t em { display: block; overflow: hidden; color: var(--ui-ink-3, var(--ink-3)); font-size: 11px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.j-card .t em.j-alert { color: var(--ui-red, var(--red-text)); }
.j-card > .score { flex: none; font-size: 14px; }
.n.hub.f-tile.lab .lbl .rk { justify-content: center; text-align: center; }

/* Browser and app column: app cards with data tags */

/* Web services column: ranked list cards */

/* Isolated view: way back to everything */
#iso-chip {
  position: fixed; left: 226px; bottom: 18px; z-index: 25; display: flex; align-items: center; gap: 7px; height: 44px; max-width: 320px; padding: 0 14px 0 11px;
  border-radius: 22px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink); font-size: var(--fs-12, 12px); font-weight: 500; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 10px 28px rgba(0, 0, 0, .7);
}
#iso-chip:hover { background: var(--surface-2); }
#iso-chip em { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); font-style: normal; font-weight: 500; }
@media (max-width: 1500px) { #iso-chip em { display: none; } }

/* Depth on floating chrome */
.zoom-pill, .zoom-fit, #ask { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 10px 28px rgba(0, 0, 0, .7); }
#panel { background: linear-gradient(180deg, #10151E 0%, #090C12 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), -10px 18px 44px rgba(0, 0, 0, .75); }
.ag-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
#bell-pop, #hist-pop, .rf-menu, .ver-menu { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 18px 44px rgba(0, 0, 0, .75); }

/* =========================================================================
   Profile menu (Account popover) redesign & Keyboard shortcuts dialog
   ========================================================================= */

#acct-pop {
  position: fixed !important;
  top: 58px !important;
  right: 16px !important;
  z-index: 60 !important;
  width: 296px !important;
  padding: 6px !important;
  background: var(--ui-raised, #141414) !important;
  border: 1px solid var(--ui-line, rgba(255, 255, 255, 0.12)) !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.75) !important;
  box-sizing: border-box !important;
}
#acct-pop[hidden] {
  display: none !important;
}

/* 1. Identity block */
#acct-pop .ac-who {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px 10px !important;
  border-bottom: 1px solid var(--ui-line-soft, rgba(255, 255, 255, 0.07)) !important;
  margin-bottom: 4px !important;
}
#acct-pop .ac-avatar {
  flex: none !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: var(--ui-raised-2, #1a1a1a) !important;
  border: 1px solid var(--ui-line, rgba(255, 255, 255, 0.12)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--ui-ink, #f3f4f6) !important;
  letter-spacing: 0.5px !important;
  user-select: none !important;
}
#acct-pop .ac-who-body {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
#acct-pop .ac-who-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
#acct-pop .ac-who-row b {
  display: inline-block !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ui-ink, #f3f4f6) !important;
  line-height: 1.3 !important;
}
#acct-pop .ac-role-chip {
  display: inline-flex !important;
  align-items: center !important;
  padding: 1px 6px !important;
  font-size: var(--fs-11, 11px) !important;
  font-weight: 500 !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid var(--ui-line-soft, rgba(255, 255, 255, 0.07)) !important;
  color: var(--ui-ink-2, #d1d5db) !important;
  line-height: 1.2 !important;
}
#acct-pop .ac-who-sub {
  font-size: var(--fs-11, 11px) !important;
  color: var(--ui-ink-3, #8f8f8f) !important;
  margin-top: 2px !important;
  line-height: 1.3 !important;
}

/* Dividers */
#acct-pop .ac-divider {
  height: 0 !important;
  border: none !important;
  border-top: 1px solid var(--ui-line-soft, rgba(255, 255, 255, 0.07)) !important;
  margin: 4px 6px !important;
}

/* Action Rows */
#acct-pop .ac-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 40px !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  text-align: left !important;
  box-sizing: border-box !important;
  color: var(--ui-ink, #f3f4f6) !important;
  transition: background 0.15s ease !important;
  font-family: inherit !important;
}
#acct-pop .ac-row:hover,
#acct-pop .ac-row:focus-visible {
  background: var(--ui-raised-2, #1a1a1a) !important;
  outline: none !important;
}
#acct-pop .ac-row .ac-row-ic,
#acct-pop .ac-row > span.ac-row-ic:first-child {
  flex: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  color: var(--ui-ink-3, #8f8f8f) !important;
}
#acct-pop .ac-row:hover .ac-row-ic,
#acct-pop .ac-row:focus-visible .ac-row-ic {
  color: var(--ui-ink, #f3f4f6) !important;
}
#acct-pop .ac-row .ac-row-body {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
#acct-pop .ac-row .ac-row-body b {
  display: block !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: var(--ui-ink, #f3f4f6) !important;
}
#acct-pop .ac-row .ac-row-body small {
  display: block !important;
  margin-top: 2px !important;
  font-size: var(--fs-11, 11px) !important;
  line-height: 1.35 !important;
  color: var(--ui-ink-3, #8f8f8f) !important;
}
#acct-pop .ac-row .ac-row-tail {
  flex: none !important;
  display: flex !important;
  align-items: center !important;
  color: var(--ui-ink-3, #8f8f8f) !important;
  transition: transform 0.15s, color 0.15s !important;
}
#acct-pop .ac-row:hover .ac-row-tail,
#acct-pop .ac-row:focus-visible .ac-row-tail {
  color: var(--ui-ink, #f3f4f6) !important;
  transform: translateX(2px) !important;
}

/* Sign out button & inline note */
#acct-pop .ac-signout {
  color: var(--ui-ink-2, #d1d5db) !important;
}
#acct-pop .ac-signout-note {
  margin: 4px 6px 4px !important;
  padding: 8px 10px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--ui-line-soft, rgba(255, 255, 255, 0.07)) !important;
  border-radius: 8px !important;
  font-size: var(--fs-11, 11px) !important;
  line-height: 1.4 !important;
  color: var(--ui-ink-3, #8f8f8f) !important;
}
#acct-pop .ac-signout-note[hidden] {
  display: none !important;
}

/* Design version row styling alignment */
#acct-pop .ac-ver-slot {
  position: relative !important;
}
#acct-pop .ac-ver-slot .ver-toggle {
  min-height: 40px !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  transition: background 0.15s ease !important;
}
#acct-pop .ac-ver-slot .ver-toggle::before {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ui-ink, #f3f4f6) !important;
}
#acct-pop .ac-ver-slot .ver-toggle:hover,
#acct-pop .ac-ver-slot .ver-toggle:focus-visible {
  background: var(--ui-raised-2, #1a1a1a) !important;
  outline: none !important;
}

/* Profile button pressed state */
#btn-user.is-pressed,
#btn-user[aria-expanded="true"] {
  background: var(--ui-raised-2, #1a1a1a) !important;
  color: var(--ui-ink, #f3f4f6) !important;
  border-color: var(--ui-line, rgba(255, 255, 255, 0.12)) !important;
}

/* Keyboard shortcuts dialog */
.ks-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
}
.ks-backdrop[hidden] {
  display: none !important;
}
.ks-dialog {
  background: var(--ui-raised, #141414) !important;
  border: 1px solid var(--ui-line, rgba(255, 255, 255, 0.12)) !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8) !important;
  width: 440px !important;
  max-width: 92vw !important;
  box-sizing: border-box !important;
  color: var(--ui-ink, #f3f4f6) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.ks-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid var(--ui-line-soft, rgba(255, 255, 255, 0.07)) !important;
}
.ks-title {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: var(--ui-ink, #f3f4f6) !important;
}
.ks-title svg {
  color: var(--ui-ink-3, #8f8f8f) !important;
}
.ks-title h3 {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--ui-ink, #f3f4f6) !important;
}
.ks-close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  border: none !important;
  background: transparent !important;
  color: var(--ui-ink-3, #8f8f8f) !important;
  cursor: pointer !important;
  transition: background 0.15s, color 0.15s !important;
}
.ks-close:hover {
  background: var(--ui-raised-2, #1a1a1a) !important;
  color: var(--ui-ink, #f3f4f6) !important;
}
.ks-body {
  padding: 14px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}
.ks-group-title {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--ui-ink-3, #8f8f8f) !important;
  margin-bottom: 8px !important;
}
.ks-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 5px 0 !important;
  gap: 12px !important;
}
.ks-desc {
  font-size: var(--fs-12, 12px) !important;
  color: var(--ui-ink-2, #d1d5db) !important;
}
.ks-keys {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex: none !important;
}
.ks-keys kbd {
  display: inline-block !important;
  padding: 2px 7px !important;
  font-family: inherit !important;
  font-size: var(--fs-11, 11px) !important;
  font-weight: 500 !important;
  color: var(--ui-ink, #f3f4f6) !important;
  background: var(--ui-raised-2, #1a1a1a) !important;
  border: 1px solid var(--ui-line, rgba(255, 255, 255, 0.12)) !important;
  border-radius: 5px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}
.ks-or {
  font-size: 11px !important;
  color: var(--ui-ink-3, #8f8f8f) !important;
  margin: 0 2px !important;
}
.ks-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding: 10px 18px 14px !important;
  border-top: 1px solid var(--ui-line-soft, rgba(255, 255, 255, 0.07)) !important;
}
.ks-btn-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 32px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  border: 1px solid var(--ui-line, rgba(255, 255, 255, 0.12)) !important;
  background: var(--ui-raised-2, #1a1a1a) !important;
  color: var(--ui-ink, #f3f4f6) !important;
  font-size: var(--fs-12, 12px) !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
}
.ks-btn-close:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}
