/* Anomaly alerts — Trust & Safety page. 16 Oct: the Claude Design redesign (glass surfaces on the brand band). */
:root, [data-theme="light"] {
  --bg:#F2F2F6; --surface:rgba(255,255,255,.78); --solid:#FFFFFF; --surface2:rgba(120,120,128,.07); --ink:#1D1D3A; --ink2:#3A3A58;
  --muted:#6B6B85; --line:rgba(60,60,90,.12); --line2:rgba(60,60,90,.08); --band:#29294C; --bandLine:rgba(255,255,255,.14);
  --bandMuted:#C2C2DC; --accentText:#B34D00; --accent:#E06000; --indigo:#3D3D9E; --track:rgba(120,120,128,.14); --okFg:#127547;
  --okBg:rgba(18,117,71,.1); --badFg:#C8261D; --badBg:rgba(200,38,29,.1); --warnBg:rgba(224,96,0,.1); --selBg:#FFFFFF;
  --blueFg:#2F5BB7; --blueBg:rgba(47,91,183,.1); --segTrack:rgba(120,120,128,.12); --segOn:#FFFFFF; --chip:rgba(255,255,255,.7);
  --chipBd:rgba(60,60,90,.14); --spread:#C9C9EC;
  --glassSh:0 1px 0 rgba(255,255,255,.9) inset, 0 8px 30px rgba(30,30,70,.08), 0 0 0 .5px rgba(30,30,70,.08);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg:#121224; --surface:rgba(40,40,66,.62); --solid:#24243E; --surface2:rgba(255,255,255,.05); --ink:#F2F2F7; --ink2:#D4D4E6;
  --muted:#A3A3C2; --line:rgba(255,255,255,.1); --line2:rgba(255,255,255,.06); --band:#0C0C1C; --bandLine:rgba(255,255,255,.1);
  --bandMuted:#A3A3C2; --accentText:#FFB27A; --accent:#F06A0A; --indigo:#B3B3F7; --track:rgba(255,255,255,.1); --okFg:#7DDCAA;
  --okBg:rgba(125,220,170,.12); --badFg:#FF8A80; --badBg:rgba(255,138,128,.12); --warnBg:rgba(255,178,122,.12);
  --selBg:rgba(70,70,110,.7); --blueFg:#9DB8F2; --blueBg:rgba(157,184,242,.12); --segTrack:rgba(255,255,255,.08);
  --segOn:rgba(255,255,255,.18); --chip:rgba(255,255,255,.06); --chipBd:rgba(255,255,255,.12); --spread:#5A5A92;
  --glassSh:0 1px 0 rgba(255,255,255,.08) inset, 0 10px 30px rgba(0,0,0,.35), 0 0 0 .5px rgba(255,255,255,.08);
}
*, *::before, *::after { box-sizing: border-box; }
html { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif; font-size: 14px;
  line-height: 1.5; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; background: var(--bg); color: var(--ink);
  transition: background-color .35s ease, color .35s ease; }
body { margin: 0; background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accentText); } a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
input::placeholder, textarea::placeholder { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: "SF Mono", ui-monospace, Menlo, monospace; }
.muted { color: var(--muted); }
.glass { background: var(--surface); box-shadow: var(--glassSh); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); }
.press { transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease, opacity .18s; }
.press:active, .btn:active, .seg button:active, .tabs button:active { transform: scale(.97); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -48%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(125,220,170,.55); } 70% { box-shadow: 0 0 0 7px rgba(125,220,170,0); } 100% { box-shadow: 0 0 0 0 rgba(125,220,170,0); } }
@keyframes sheen { from { background-position: -120px 0; } to { background-position: 220px 0; } }
@keyframes checkPop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
/* The fixed toast is centred by translateX(-50%), so its own entrance keeps it (toastIn ends at `none`, for in-flow pills such as .flash). */
@keyframes toastCenterIn { from { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(.98); } to { opacity: 1; transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Header band ---------- */
.band { color: #FFFFFF; background: var(--band); }
header.band { background: radial-gradient(1200px 400px at 85% -10%, rgba(224,96,0,.28), transparent 60%),
  radial-gradient(900px 400px at 0% 120%, rgba(110,110,220,.25), transparent 60%), var(--band); }
.strip { height: 60px; display: flex; align-items: center; gap: 14px; border-bottom: .5px solid var(--bandLine); }
/* The logo asset rendered white on the band in both themes. */
.logo { display: block; height: 22px; width: auto; filter: brightness(0) invert(1); }
.logo.small { height: 16px; opacity: .85; }
.divider { width: 1px; height: 18px; background: var(--bandLine); }
.product { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--bandMuted); white-space: nowrap; }
.theme { margin-left: auto; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.theme button { width: 36px; height: 28px; border: 0; border-radius: 999px; background: transparent; color: #B8B8D8; font-size: 14px;
  transition: background .18s ease, color .18s ease; }
.theme button[aria-pressed="true"] { background: #FFFFFF; color: #29294C; }
.hero { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; padding: 28px 0 24px; }
.hero-text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
h1 { margin: 0; font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.mode-pill { height: 26px; display: flex; align-items: center; white-space: nowrap; padding: 0 12px; border-radius: 999px; background: #E06000;
  color: #FFFFFF; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(224,96,0,.4), inset 0 1px 0 rgba(255,255,255,.25); }
.mode-pill.live { background: #127547; box-shadow: 0 2px 10px rgba(18,117,71,.4), inset 0 1px 0 rgba(255,255,255,.25); }
.tagline { margin: 0; font-family: Caveat, "Bradley Hand", "Segoe Print", cursive; font-size: 24px; font-weight: 500; line-height: 1.1; color: #FFD3B0; }
.run-card { flex: 0 1 380px; display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 .5px rgba(255,255,255,.16); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); }
.run-labels { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--bandMuted); }
.run-labels b { color: #FFFFFF; font-weight: 600; }
.run-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
.run-bar span { display: block; width: 0; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #FF8A3D, #E06000); position: relative; overflow: hidden;
  transform-origin: left; animation: growX 1s cubic-bezier(.2,.8,.2,1) both; transition: width .6s ease; }
.run-bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent) no-repeat;
  background-size: 80px 100%; animation: sheen 2.4s ease-in-out infinite; }
.run-eta { font-size: 13px; color: var(--bandMuted); } .run-eta b { color: #FFFFFF; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-radius: 18px; background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 .5px rgba(255,255,255,.12); margin-bottom: 22px; overflow: hidden; }
.stat { padding: 14px 18px; display: flex; flex-direction: column; gap: 3px; box-shadow: -.5px 0 0 rgba(255,255,255,.12); animation: fadeUp .5s cubic-bezier(.2,.8,.2,1) both; }
.stat:nth-child(2) { animation-delay: 60ms; } .stat:nth-child(3) { animation-delay: 120ms; } .stat:nth-child(4) { animation-delay: 180ms; }
.stat:nth-child(5) { animation-delay: 240ms; } .stat:nth-child(6) { animation-delay: 300ms; }
.stat .value { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: #FFFFFF; }
.stat .value.open { color: #FFB27A; } .stat .value.fraud { color: #FF8A80; } .stat .value.legit { color: #7DDCAA; }
.stat .label { font-size: 12.5px; color: var(--bandMuted); }
.stats-note { margin: -12px 0 14px; font-size: 12.5px; color: var(--bandMuted); }
.tabs-row { display: flex; padding-bottom: 20px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.1); max-width: 100%; overflow-x: auto;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.2), 0 4px 20px rgba(0,0,0,.2); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); scrollbar-width: none; }
.tabs button { height: 38px; border: 0; border-radius: 999px; padding: 0 18px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500;
  white-space: nowrap; color: #FFFFFF; background: transparent; transition: background .15s, color .15s; }
.tabs button:hover { background: rgba(255,255,255,.12); }
.tabs .tab-short { display: none; }
.tabs button[aria-selected="true"] { background: #FFFFFF; color: #1D1D3A; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.tabs .ic { font-size: 12px; opacity: .7; }
.badge { min-width: 20px; height: 20px; border-radius: 10px; background: #E06000; color: #FFFFFF; font-size: 12px; font-weight: 700; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 6px; animation: checkPop .4s ease both; }

/* ---------- Main ---------- */
main.wrap { flex: 1; padding: 20px 32px 28px; }
.canonical { margin: 0 0 12px; font-size: 13px; color: var(--muted); } .canonical a { font-weight: 500; }
/* A region the central view could not read: above the tabs' content, never hidden by a filter. */
.unreachable { margin: 0 0 16px; padding: 10px 16px; border-radius: 14px; background: var(--badBg); color: var(--badFg); font-size: 13.5px; font-weight: 500;
  box-shadow: inset 0 0 0 .5px var(--badFg); }

/* Toolbar: status, category, instance, search */
.menu-scrim { position: fixed; inset: 0; z-index: 10; }
.toolbar { position: relative; z-index: 11; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar-right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; }
.seg button { height: 30px; border: 0; border-radius: 999px; padding: 0 14px; font-size: 13px; background: transparent; color: var(--ink);
  display: flex; align-items: center; gap: 6px; white-space: nowrap; transition: background .18s ease, box-shadow .18s ease; }
.seg button .n { font-size: 11.5px; color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--segOn); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
.seg button[aria-checked="true"] .n { color: var(--accentText); }
.menu-wrap { position: relative; }
.menu-btn { height: 34px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 .5px var(--chipBd); padding: 0 14px; font-size: 13px;
  display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.menu-btn .k { color: var(--muted); } .menu-btn b { font-weight: 600; } .menu-btn .caret { font-size: 10px; opacity: .6; }
.menu-btn.set { background: var(--warnBg); color: var(--accentText); } .menu-btn.set .k { color: var(--accentText); }
.menu { position: absolute; top: 40px; left: 0; z-index: 20; min-width: 230px; padding: 6px; border-radius: 16px; display: flex; flex-direction: column;
  background: var(--surface); box-shadow: var(--glassSh), 0 18px 50px rgba(20,20,50,.22); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  animation: popIn .18s cubic-bezier(.2,.8,.2,1) both; transform-origin: top left; }
.menu-wrap.end .menu { left: auto; right: 0; transform-origin: top right; }
.menu .opt { height: 32px; border: 0; border-radius: 9px; background: transparent; padding: 0 10px; font-size: 13.5px; display: flex; align-items: center; gap: 10px;
  text-align: left; transition: background .18s ease; }
.menu .opt:hover { background: var(--segTrack); }
.menu .opt.dim { opacity: .55; }
.menu .check { width: 14px; color: var(--accent); font-weight: 700; }
.menu .lab { flex: 1; white-space: nowrap; } .menu .cnt { font-size: 12px; color: var(--muted); }
.menu hr { border: 0; height: .5px; background: var(--line); margin: 4px 8px; }
.search { width: 260px; height: 34px; border-radius: 999px; display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.search.soft { width: auto; background: var(--segTrack); }
.search .mag { color: var(--muted); font-size: 14px; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 13.5px; }
.tokens { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.token { height: 24px; border: 0; border-radius: 999px; background: var(--warnBg); color: var(--accentText); padding: 0 6px 0 10px; font-size: 12px; font-weight: 500;
  display: flex; align-items: center; gap: 6px; white-space: nowrap; animation: popIn .2s ease both; }
.token .x { width: 16px; height: 16px; border-radius: 50%; background: rgba(224,96,0,.18); display: flex; align-items: center; justify-content: center; font-size: 10px; }
.link { border: 0; background: none; padding: 0 4px; color: var(--accentText); font-size: 12.5px; font-weight: 500; }

/* Panes */
.panes { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.list-pane { position: sticky; top: 12px; height: var(--list-h, calc(100vh - 24px)); max-height: calc(100vh - 24px); display: flex; flex-direction: column; gap: 8px;
  padding: 8px; border-radius: 22px; overflow: hidden; }
.list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; overscroll-behavior: contain; }
.load-more { flex: none; }
.detail-pane { min-width: 0; }

/* List rows */
.row { text-align: left; border: 0; background: transparent; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px;
  animation: fadeUp .4s cubic-bezier(.2,.8,.2,1) both; transition: background .15s, box-shadow .15s; color: var(--ink); }
.row:hover { background: var(--selBg); }
.row[aria-current="true"] { background: var(--selBg); box-shadow: inset 0 0 0 1.5px var(--accent), 0 4px 14px rgba(224,96,0,.12); }
.row-1 { display: flex; align-items: center; gap: 7px; width: 100%; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; }
.row-1 .id { margin-left: auto; font-family: "SF Mono", ui-monospace, Menlo, monospace; font-weight: 400; letter-spacing: 0; font-size: 11.5px; color: var(--muted); }
.row-2 { font-size: 14.5px; font-weight: 600; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.row-2 .co { font-size: 12px; font-weight: 400; color: var(--muted); }
.row .headline { font-size: 13px; line-height: 1.4; color: var(--ink2); text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row-3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--muted); width: 100%; min-width: 0; }
.row-3 .jev { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row-3 .when { margin-left: auto; white-space: nowrap; }
.list .note { padding: 28px 16px; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Severity, category, status */
.sev { display: inline-flex; align-items: center; gap: 7px; color: var(--sev); }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.bars i { display: block; width: 3px; border-radius: 1px; background: var(--line); }
.bars i:nth-child(1) { height: 5px; } .bars i:nth-child(2) { height: 8px; } .bars i:nth-child(3) { height: 11px; }
.bars i.on { background: var(--sev); }
.sev-critical { --sev: var(--badFg); } .sev-high { --sev: var(--accentText); } .sev-medium { --sev: var(--indigo); } .sev-low { --sev: var(--muted); }
.sev.big { font-size: 11px; font-weight: 700; letter-spacing: .08em; background: var(--surface2); border-radius: 999px; padding: 4px 10px; }
.sev.big .bars { height: 12px; } .sev.big .bars i:nth-child(3) { height: 12px; }
.cat { color: var(--blueFg); background: var(--blueBg); border-radius: 999px; padding: 2px 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.cat.big { font-size: 11px; letter-spacing: .08em; padding: 4px 10px; }
.status { font-weight: 600; border-radius: 999px; padding: 2px 9px; font-size: 12px; white-space: nowrap; }
.status.big { padding: 3px 11px; }
.status.open { color: var(--accentText); background: var(--warnBg); } .status.legit { color: var(--okFg); background: var(--okBg); }
.status.confirmed_fraud { color: var(--badFg); background: var(--badBg); } .status.false_positive { color: var(--muted); background: var(--surface2); }
.inst { font-size: 11px; font-weight: 500; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }

/* Detail */
.detail { border-radius: 22px; overflow: clip; display: flex; flex-direction: column; animation: fadeUp .35s cubic-bezier(.2,.8,.2,1) both; }
.d-head { padding: 22px 28px 20px; display: flex; flex-direction: column; gap: 12px; }
.d-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.d-meta .id { margin-left: auto; font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 12px; }
.d-head h2 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; max-width: 34ch; text-wrap: pretty; }
.verdict { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; padding: 14px 28px; background: var(--surface2);
  border-top: .5px solid var(--line); border-bottom: .5px solid var(--line); }
.verdict .who { display: flex; align-items: center; gap: 14px; flex: 1 1 220px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #29294C; color: #FFFFFF; font-size: 15px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; flex: none; }
.verdict .k { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.verdict .v { font-size: 20px; font-weight: 700; color: var(--ink); }
.verdict .v.jev-likely_fraud { color: var(--badFg); } .verdict .v.jev-likely_legitimate { color: var(--okFg); } .verdict .v.jev-needs_review { color: var(--indigo); }
.vstat { display: flex; flex-direction: column; gap: 2px; } .vstat .n { font-size: 22px; } .vstat .n small { font-size: 13px; color: var(--muted); }
.vstat .c { font-size: 12px; color: var(--muted); }
.d-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: .5px; background: var(--line); }
.d-body > section { padding: 22px 28px; background: var(--solid); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cap-h { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.sig-head { display: flex; flex-direction: column; gap: 6px; }
.axis { display: flex; justify-content: space-between; font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 11px; color: var(--muted); }
.sig { display: flex; flex-direction: column; gap: 7px; padding-bottom: 14px; border-bottom: .5px solid var(--line2); }
.sig-1 { display: flex; align-items: baseline; gap: 8px; font-size: 14px; } .sig-1 .name { text-wrap: pretty; }
.sig-1 .ratio { margin-left: auto; font-weight: 700; white-space: nowrap; }
.sig.quiet .sig-1 .name, .sig.quiet .ratio { color: var(--muted); }
.hard { font-size: 10px; font-weight: 700; color: var(--badFg); border: 1px solid var(--badFg); border-radius: 3px; padding: 0 4px; flex: none; }
.bar { position: relative; height: 8px; border-radius: 4px; background: var(--track); }
.bar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--muted); }
.bar span { position: absolute; top: 0; bottom: 0; border-radius: 4px; transform-origin: left; animation: growX .7s .15s cubic-bezier(.2,.8,.2,1) both; }
.sig-3 { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); line-height: 1.45; } .sig-3 b { color: var(--ink); font-weight: 500; }
.sig-info { font-size: 13px; color: var(--ink); line-height: 1.45; }
.footnote { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.side { gap: 18px !important; }
.block { display: flex; flex-direction: column; gap: 8px; }
.jev-body { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink2); text-wrap: pretty; }
.checks { display: flex; flex-direction: column; gap: 6px; padding: 2px 0 0; margin: 0; list-style: none; }
.checks li { display: flex; gap: 9px; font-size: 13.5px; line-height: 1.45; }
.checks li::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--muted); border-radius: 3px; flex: none; margin-top: 2px; }
.jev-meta { margin: 0; font-size: 12px; color: var(--muted); }
.entities { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.entity { border: .5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.entity .k { font-size: 12px; color: var(--muted); }
.entity .idk { display: inline-block; white-space: nowrap; margin-left: 6px; font-size: 10.5px; color: var(--muted); border: .5px solid var(--chipBd); border-radius: 4px; padding: 0 4px; }
.entity .v { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 12.5px; line-height: 1.45; word-break: break-word; }
.entity .more { font-size: 11.5px; color: var(--muted); }
.entity.warn { border-color: var(--accent); background: var(--warnBg); } .entity.warn .k { color: var(--accentText); }
/* 26 Oct: Evidence (Claude Design export) — the reviewer's checks, answered after the run; rows open on demand. */
.evidence { padding: 22px 28px; border-top: .5px solid var(--line); background: var(--solid); display: flex; flex-direction: column; gap: 14px; }
.ev-head { display: flex; flex-direction: column; gap: 4px; }
.ev-meta { font-size: 12.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.ev-items { display: flex; flex-direction: column; gap: 8px; }
.ev-item { animation: fadeUp .4s cubic-bezier(.2,.8,.2,1) both; border-radius: 14px; background: var(--surface2); box-shadow: inset 0 0 0 .5px var(--line);
  padding: 12px 16px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ev-q { font-size: 12.5px; line-height: 1.4; color: var(--muted); text-wrap: pretty; }
.ev-a { font-size: 14px; line-height: 1.5; color: var(--ink); text-wrap: pretty; overflow-wrap: anywhere; }
.ev-a.withheld { color: var(--muted); }
.ev-toggle { align-self: flex-start; border: 0; background: transparent; padding: 4px 0 0; color: var(--accentText); font: inherit; font-size: 12.5px;
  font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.ev-toggle .chev { display: inline-block; font-size: 15px; line-height: 1; transition: transform .2s ease; }
.ev-toggle.open .chev { transform: rotate(90deg); }
.ev-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ev-rows { animation: fadeUp .25s ease both; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; min-width: 0; }
.ev-rows[hidden] { display: none; }
.ev-scroll { overflow-x: auto; border-radius: 10px; background: var(--solid); box-shadow: inset 0 0 0 .5px var(--chipBd); }
.ev-table { border-collapse: collapse; min-width: 100%; font-size: 12.5px; }
.ev-table th, .ev-table td { padding: 7px 12px; text-align: left; line-height: 1.4; overflow-wrap: anywhere; }
.ev-table th { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .03em; }
.ev-table th:not(.ev-num) { min-width: 150px; }
.ev-table td { color: var(--ink); border-top: .5px solid var(--line2); }
.ev-table .ev-num { text-align: right; white-space: nowrap; }
.ev-more, .ev-failed { font-size: 12px; color: var(--muted); }
.ev-failed { font-size: 12.5px; line-height: 1.5; }
.history { padding: 18px 28px; border-top: .5px solid var(--line); background: var(--solid); display: flex; flex-direction: column; gap: 10px; }
.history ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.history li { display: flex; gap: 12px; font-size: 13.5px; line-height: 1.45; }
.history .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--dot, var(--muted)); flex: none; margin-top: 4px; }
.decide { padding: 18px 28px 22px; border-top: .5px solid var(--line); background: var(--surface2); display: flex; flex-direction: column; gap: 12px; }
.decide .head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .decide .head .sub { font-size: 12.5px; color: var(--muted); }
.decide .note { height: 40px; border: 0; border-radius: 12px; background: var(--solid); box-shadow: inset 0 0 0 .5px var(--chipBd); padding: 0 14px; font-size: 14px; outline: none; }
.decide .note:focus-visible { box-shadow: inset 0 0 0 1.5px var(--accent); outline: none; }
.decide .buttons { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.decided { padding: 18px 28px 22px; border-top: .5px solid var(--line); background: var(--surface2); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.decided .cap-h { flex-basis: 100%; } .decided .by { font-size: 13px; color: var(--muted); min-width: 0; flex: 1; }

/* Buttons */
.btn { height: 36px; border: 0; border-radius: 999px; padding: 0 18px; font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; white-space: nowrap; text-decoration: none; transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease, opacity .18s; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.accent { background: #E06000; color: #FFFFFF; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.accent:hover { background: #C65400; color: #FFFFFF; }
.btn.fraud { background: #D7372B; color: #FFFFFF; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.2); }
.btn.fraud:hover { background: #B82A20; }
.btn.legit { background: var(--okBg); color: var(--okFg); font-weight: 600; box-shadow: inset 0 0 0 1px var(--okFg); }
.btn.soft { background: var(--segTrack); color: var(--ink); } .btn.soft:hover { background: var(--track); }
.btn.yes { height: 26px; padding: 0 10px; font-size: 12px; font-weight: 600; background: #D7372B; color: #FFFFFF; }
.btn.no { height: 26px; padding: 0 10px; font-size: 12px; background: var(--segTrack); }

/* Empty states */
.empty { min-height: 460px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 48px 32px;
  text-align: center; animation: fadeUp .35s ease both; }
.empty .circle { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700;
  background: var(--segTrack); color: var(--muted); }
.empty .circle.ok { background: var(--okBg); color: var(--okFg); animation: checkPop .55s cubic-bezier(.2,.9,.3,1.2) both; }
.empty .circle.bad { background: var(--badBg); color: var(--badFg); }
.empty h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.empty p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 48ch; }
.flash { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--okBg); color: var(--okFg);
  font-size: 13px; font-weight: 500; animation: toastIn .3s ease both; }

/* Tab heads (Campaign windows, Baselines) */
.tab-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.tab-title { display: flex; flex-direction: column; gap: 2px; flex: 1 1 420px; min-width: 0; }
.tab-title h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.tab-title p { margin: 0; font-size: 13px; color: var(--muted); max-width: 90ch; text-wrap: pretty; }
#tab-campaigns > .flash { margin-bottom: 14px; }

/* Campaign windows: a 14-day timeline */
.cw-card { border-radius: 22px; overflow: hidden; }
.cw-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: .5px solid var(--line); }
.seg-mini { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--segTrack); }
.seg-mini button { min-width: 30px; height: 26px; border: 0; border-radius: 999px; background: transparent; padding: 0 10px; font-size: 12.5px; transition: background .18s; }
.seg-mini button:hover { background: var(--segOn); }
.cw-range { font-size: 14px; font-weight: 600; white-space: nowrap; }
.legend { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sw { display: inline-block; width: 16px; height: 8px; border-radius: 4px; }
.sw.declared { background: #3D3D9E; }
.sw.standing { background: repeating-linear-gradient(135deg, rgba(224,96,0,.5) 0 3px, rgba(224,96,0,.15) 3px 6px); }
.sw.spread { height: 6px; border-radius: 3px; background: var(--spread); }
.sw.tick { width: 2px; height: 12px; border-radius: 0; background: var(--ink); } .sw.tick.alert { background: var(--accent); }
.grid-wrap { overflow-x: auto; }
.cw-grid { min-width: 760px; }
.cw-row { display: grid; grid-template-columns: 200px repeat(14, minmax(0, 1fr)) 110px; align-items: center; min-height: 64px; border-bottom: .5px solid var(--line2); }
.cw-row:last-child { border-bottom: 0; }
.cw-row.head { min-height: 0; border-bottom: .5px solid var(--line); align-items: stretch; }
.cw-row.head .co-h { padding: 10px 16px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.cw-day { padding: 6px 0; text-align: center; font-size: 10.5px; font-weight: 500; color: var(--muted); box-shadow: -.5px 0 0 var(--line2); }
.cw-day .dn { font-size: 14px; display: block; }
.cw-day.weekend { background: var(--surface2); } .cw-day.today { background: var(--warnBg); color: var(--accentText); font-weight: 700; }
.cw-row:not(.head) { animation: fadeUp .35s ease both; }
.cw-who { grid-column: 1; padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cw-who .co { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-who .co .id { font-weight: 400; color: var(--muted); font-size: 12px; }
.cw-who .sub { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.cw-bar { grid-row: 1; height: 32px; margin: 0 3px; border-radius: 10px; font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  white-space: nowrap; overflow: hidden; background: linear-gradient(180deg, #5656B8, #3D3D9E); color: #FFFFFF; box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
  transform-origin: left; animation: growX .6s cubic-bezier(.2,.8,.2,1) both; min-width: 0; }
.cw-bar b { font-weight: 600; } .cw-bar .reason { opacity: .85; overflow: hidden; text-overflow: ellipsis; }
.cw-bar.standing { background: repeating-linear-gradient(135deg, rgba(224,96,0,.28) 0 6px, rgba(224,96,0,.1) 6px 12px); color: var(--accentText); box-shadow: none; }
.cw-out { grid-row: 1; grid-column: 2 / 16; padding: 0 12px; font-size: 12px; color: var(--muted); }
.cw-act { grid-row: 1; grid-column: 16; display: flex; justify-content: flex-end; align-items: center; gap: 4px; padding-right: 12px; font-size: 12px; }
.cw-act .q { color: var(--muted); }
.icon-btn { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--segTrack); color: var(--muted); display: flex; align-items: center;
  justify-content: center; padding: 0; transition: background .18s, color .18s; }
.icon-btn:hover { background: var(--badBg); color: var(--badFg); }
.cw-empty { padding: 28px 16px; font-size: 13.5px; color: var(--muted); margin: 0; }

/* Declare window: a centred dialog */
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(20,20,45,.32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fadeIn .2s ease both; }
.dialog { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 32px); z-index: 31;
  overflow-y: auto; border-radius: 22px; display: flex; flex-direction: column; margin: 0; padding: 0;
  box-shadow: var(--glassSh), 0 24px 70px rgba(20,20,50,.3); background: var(--surface); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  animation: modalIn .28s cubic-bezier(.2,.9,.25,1.05) both; }
[data-theme="dark"] .dialog { background: rgba(36,36,62,.94); }
.dialog-head { padding: 16px 22px; border-bottom: .5px solid var(--line); display: flex; align-items: center; position: sticky; top: 0; z-index: 6; background: inherit; font-size: 16px; font-weight: 700; }
.dialog-head .close { margin-left: auto; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--segTrack); font-size: 13px; }
.dialog-body { padding: 18px 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px 24px; align-items: start; }
.dialog-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dialog-foot { padding: 14px 22px; border-top: .5px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; position: sticky; bottom: 0; background: inherit; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; position: relative; }
.cap, .cap-row .cap { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.cap-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; } .cap-row b { font-size: 13px; font-weight: 600; }
.input { height: 36px; border: 0; border-radius: 10px; background: var(--solid); padding: 0 12px; font-size: 13.5px; outline: none; width: 100%;
  box-shadow: inset 0 0 0 .5px var(--chipBd); }
.input:focus-visible { box-shadow: inset 0 0 0 1.5px var(--accent); outline: none; }
.input.bad { box-shadow: inset 0 0 0 1px var(--badFg); }
select.input { cursor: pointer; }
textarea.input { height: auto; padding: 9px 12px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.err { font-size: 12px; color: var(--badFg); } .hint { font-size: 12px; color: var(--muted); line-height: 1.45; }
.cw-options { position: absolute; top: 62px; left: 0; right: 0; z-index: 5; padding: 5px; border-radius: 14px; background: var(--solid); max-height: 264px; overflow-y: auto;
  box-shadow: var(--glassSh), 0 14px 40px rgba(20,20,50,.2); animation: popIn .16s ease both; scrollbar-width: thin; }
.cw-options .opt { height: 32px; border-radius: 9px; padding: 0 10px; font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.cw-options .opt:hover, .cw-options .opt[aria-selected="true"] { background: var(--segTrack); }
.cw-options .opt .muted { font-size: 12px; white-space: nowrap; } .cw-options .none { padding: 8px 10px; font-size: 13px; color: var(--muted); }
.rules { border-radius: 12px; background: var(--solid); box-shadow: inset 0 0 0 .5px var(--chipBd); padding: 2px 12px; }
.rule { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; text-align: left; box-shadow: 0 .5px 0 var(--line2); }
.rule:last-child { box-shadow: none; }
.rule .names { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rule .key { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 10.5px; color: var(--muted); overflow-wrap: anywhere; }
.rules .none { padding: 10px 0; font-size: 12.5px; color: var(--muted); }
.switch { width: 34px; height: 20px; border-radius: 10px; background: var(--track); position: relative; flex: none; transition: background .15s; }
.switch i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
[aria-pressed="true"] > .switch, [aria-checked="true"] > .switch { background: var(--accent); }
[aria-pressed="true"] > .switch i, [aria-checked="true"] > .switch i { left: 16px; }
input[type="range"] { width: 100%; accent-color: #E06000; }
.cw-error { margin: 0 22px 12px; color: var(--badFg); font-size: 13px; font-weight: 500; }

/* Baselines: company list + a normal day's cards */
.toggle-pill { margin-left: auto; border: 0; border-radius: 999px; height: 34px; padding: 0 8px 0 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.toggle-pill .n { color: var(--muted); }
.bl-panes { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.bl-side { position: relative; min-height: 420px; }
.bl-list-box { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; }
.bl-search { padding: 10px; border-bottom: .5px solid var(--line); }
.bl-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.bl-sec { padding: 10px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.bl-item { width: 100%; border: 0; text-align: left; border-radius: 12px; padding: 9px 12px; background: transparent; display: flex; flex-direction: column; gap: 2px;
  transition: background .18s, box-shadow .18s; }
.bl-item:hover { background: var(--selBg); }
.bl-item[aria-current="true"] { background: var(--selBg); box-shadow: inset 0 0 0 1.5px var(--accent); }
.bl-item .name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-item .meta { font-size: 12px; color: var(--muted); }
.bl-foot { padding: 10px 14px; border-top: .5px solid var(--line); font-size: 12px; color: var(--muted); }
.bl-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bl-card { border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 18px; animation: fadeUp .35s ease both; }
.bl-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; font-size: 12px; color: var(--muted); }
.bl-card-head .t { font-size: 17px; font-weight: 700; color: var(--ink); }
.bl-card-head .legend { margin-left: auto; }
.bl-group { display: flex; flex-direction: column; gap: 8px; }
.bl-group-head { display: flex; align-items: baseline; gap: 8px; } .bl-group-head .d { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.bl-group-head .note { font-size: 12px; color: var(--muted); }
.bl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.metric { background: var(--solid); border-radius: 16px; box-shadow: inset 0 0 0 .5px var(--chipBd); padding: 12px 14px; display: flex; flex-direction: column; gap: 7px;
  animation: fadeUp .4s cubic-bezier(.2,.8,.2,1) both; transition: transform .2s ease, box-shadow .2s ease; }
.metric:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 .5px var(--chipBd), 0 8px 24px rgba(30,30,70,.1); }
.metric .name { font-size: 13px; min-height: 32px; line-height: 1.25; color: var(--ink2); }
.metric .med { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.metric .chart { position: relative; height: 10px; }
.metric .chart .track { position: absolute; left: 0; right: 0; top: 4px; height: 2px; border-radius: 1px; background: var(--track); }
.metric .chart .band { position: absolute; top: 1px; height: 8px; background: var(--spread); border-radius: 4px; animation: growX .6s .1s cubic-bezier(.2,.8,.2,1) both; }
.metric .chart .tick { position: absolute; top: -1px; height: 12px; width: 2px; background: var(--ink); }
.metric .chart .tick.thr { background: var(--accent); }
.metric .sub { font-size: 12px; color: var(--muted); }
.metric .cohort { font-size: 11px; color: var(--accentText); }
.cur-card { background: var(--solid); border-radius: 16px; box-shadow: inset 0 0 0 .5px var(--chipBd); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.cur-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; } .cur-head .d { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.cur-head .t { font-size: 13.5px; font-weight: 600; } .cur-head .note { margin-left: auto; font-size: 12px; color: var(--muted); }
.cur-bars { display: flex; gap: 6px; align-items: flex-end; height: 74px; }
.cur-bars .c { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.cur-bars .b { width: 100%; max-width: 40px; background: linear-gradient(180deg, #8D8DCC, #6A6AB8); border-radius: 5px 5px 2px 2px; transform-origin: bottom;
  animation: growY .6s cubic-bezier(.2,.8,.2,1) both; }
.cur-bars .code { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 10.5px; color: var(--muted); }
.bl-none { flex: 1; justify-content: center; border-radius: 22px; padding: 48px 32px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.bl-none .t { font-size: 17px; font-weight: 700; } .bl-none p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 46ch; line-height: 1.5; }

/* Footer: hourly checks */
.foot { margin-top: 8px; }
.foot .wrap { padding-top: 14px; padding-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.foot-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.foot-title { font-size: 15px; font-weight: 600; }
.foot-ok { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #7DDCAA; }
.foot-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s ease-out infinite; }
.foot-ok.warn { color: #FFB27A; } .foot-ok.warn::before { animation: none; }
.foot-next { margin-left: auto; font-size: 12.5px; color: var(--bandMuted); }
.runs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.run { min-width: 0; overflow: hidden; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.07); display: flex; align-items: baseline; gap: 6px;
  white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 .5px rgba(255,255,255,.12); }
.run .r { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--bandMuted); }
.run .t { font-size: 15px; font-weight: 600; } .run .tz { font-size: 11px; font-weight: 500; color: var(--bandMuted); }
.run .ist { margin-left: auto; font-size: 11px; color: var(--bandMuted); overflow: hidden; text-overflow: ellipsis; }
.run.down .t { color: #FF8A80; font-size: 13px; }
.foot-read { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--bandMuted); } .foot-read b { color: #FFFFFF; font-weight: 600; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 12px; margin-top: 2px; border-top: .5px solid var(--bandLine);
  font-size: 12px; color: var(--bandMuted); }
.foot-legal .right { margin-left: auto; }

/* Gate, toast */
.gate { max-width: 520px; margin: 40px auto; text-align: center; border-radius: 22px; padding: 28px; }
.gate h2 { margin: 0 0 8px; font-size: 20px; } .gate p { margin: 0; color: var(--muted); }
.gate-form { display: flex; gap: 10px; margin-top: 16px; } .gate-form .search { flex: 1; width: auto; background: var(--segTrack); }
.gate-signin { margin-top: 14px; }
.toast { position: fixed; left: 50%; top: 20px; transform: translateX(-50%); z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--okBg);
  width: max-content; max-width: min(680px, calc(100vw - 32px)); text-align: center;
  color: var(--okFg); font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s;
  box-shadow: var(--glassSh); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
.toast::before { content: "✓ "; }
.toast.show { opacity: 1; animation: toastCenterIn .3s ease both; }
.toast.err { color: var(--badFg); } .toast.err::before { content: "⚠ "; }
[data-theme="light"] .toast { background: rgba(225,244,234,.94); } [data-theme="dark"] .toast { background: rgba(21,49,38,.94); }
[data-theme="light"] .toast.err { background: rgba(252,234,232,.96); } [data-theme="dark"] .toast.err { background: rgba(60,28,35,.96); }

/* Narrow screens */
/* Rules tab (16 Oct, Claude Design export): how an alert is raised, a rule list beside one rule's detail, the manual checks. */
.rules-head { align-items: flex-end; }
.rules-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sum-chip { height: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 999px; background: var(--surface);
  box-shadow: inset 0 0 0 .5px var(--chipBd); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.sum-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink2); }
.sum-chip b { color: var(--ink); font-weight: 600; }
.sum-chip.on i { background: var(--okFg); } .sum-chip.off i { background: var(--muted); } .sum-chip.nc i { background: var(--blueFg); }
.sum-chip.ov i { background: var(--accent); } .sum-chip.missing i { background: var(--badFg); } .sum-chip.differs i { background: var(--indigo); }
.rules-region { background: var(--segTrack); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.rules-body { display: flex; flex-direction: column; gap: 16px; }
.rules-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.rules-card-head .t { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.rules-card-head .note { font-size: 13px; color: var(--muted); }
.link-btn { margin-left: auto; border: 0; background: transparent; color: var(--accentText); font-size: 13px; font-weight: 600; padding: 4px 0; }
.link-btn:hover { color: var(--accent); }
.rules-how { gap: 16px; animation: fadeUp .45s cubic-bezier(.2,.8,.2,1) both; }
.rules-acts { display: flex; flex-direction: column; gap: 8px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.steps li { background: var(--solid); border-radius: 16px; box-shadow: inset 0 0 0 .5px var(--chipBd); padding: 14px 16px; display: flex;
  flex-direction: column; gap: 6px; animation: fadeUp .4s cubic-bezier(.2,.8,.2,1) both; }
.step-head { display: flex; align-items: center; gap: 10px; } .step-head b { font-size: 14.5px; font-weight: 600; }
.steps .x { font-size: 13px; line-height: 1.5; color: var(--ink2); text-wrap: pretty; }
.num { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--warnBg); color: var(--accentText); font-size: 12px; font-weight: 700;
  display: inline-grid; place-items: center; }
.rd-k { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.ladder-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ladder { flex: 1 1 420px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 .5px var(--chipBd); }
.rung { height: 30px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.rung b { font-weight: 700; }
.rung.logged { background: var(--surface2); color: var(--muted); } .rung.logged b { color: var(--ink); font-weight: 600; }
.rung.medium { background: var(--blueBg); color: var(--blueFg); }
.rung.high { background: var(--warnBg); color: var(--accentText); }
.rung.critical { background: var(--badFg); color: var(--solid); }
.ladder-note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.hard-tag { height: 20px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 6px; background: var(--badBg); color: var(--badFg);
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; flex: none; }
.terms { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 24px; padding-top: 14px;
  border-top: .5px solid var(--line); animation: fadeUp .3s ease both; }
.terms div { display: flex; flex-direction: column; gap: 3px; } .terms dt { font-size: 13px; font-weight: 600; }
.terms dd { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
/* The list beside the detail; the list box fills its column and scrolls (the Baselines list's pattern). */
.rules-panes { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.rules-side { min-height: 600px; }
.rules-tools { display: flex; flex-direction: column; gap: 8px; }
.rules-filter { display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--segTrack); }
.rules-filter button { flex: 1; min-width: 0; height: 28px; border: 0; border-radius: 8px; background: transparent; font-size: 12px; font-weight: 500;
  white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 4px; transition: background .18s ease, transform .12s ease; }
.rules-filter button:active { transform: scale(.97); }
.rules-filter button[aria-checked="true"] { background: var(--segOn); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.rules-filter .n { color: var(--muted); } .rules-filter [aria-checked="true"] .n { color: var(--accentText); }
.hard-only { align-self: flex-start; border: 0; background: transparent; padding: 2px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink2); }
.switch.sm { width: 30px; height: 18px; border-radius: 9px; } .switch.sm i { width: 14px; height: 14px; }
[aria-pressed="true"] > .switch.sm i { left: 14px; }
.rl-sec { padding: 10px 10px 4px; display: flex; align-items: baseline; gap: 8px; }
.rl-sec .d { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.rl-sec .note { font-size: 11.5px; color: var(--muted); }
.rl-item { width: 100%; border: 0; text-align: left; border-radius: 12px; padding: 9px 12px; background: transparent; display: flex; align-items: center;
  gap: 10px; transition: background .18s ease, box-shadow .18s ease, transform .12s ease; }
.rl-item:hover { background: var(--selBg); } .rl-item:active { transform: scale(.98); }
.rl-item[aria-current="true"] { background: var(--selBg); box-shadow: inset 0 0 0 1.5px var(--accent); }
.rl-item.off, .rl-item.nc, .rl-item.missing { opacity: .72; } .rl-item[aria-current="true"] { opacity: 1; }
.rl-item .dot, .rule-link .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.rl-item.on > .dot, .rule-link.on > .dot { background: var(--okFg); } .rl-item.nc > .dot, .rule-link.nc > .dot { background: var(--blueFg); }
.rl-item.missing > .dot, .rule-link.missing > .dot { background: var(--badFg); }
.rl-item .names { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rl-item .name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-item .meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rules-empty { padding: 24px 10px; font-size: 13px; color: var(--muted); text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.rules-empty button { border: 0; background: transparent; color: var(--accentText); font-weight: 600; font-size: 13px; }
/* One rule's detail. */
.rule-detail { min-width: 0; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 16px; }
.rule-detail.in { animation: fadeUp .35s cubic-bezier(.2,.8,.2,1) both; }
.rd-head { padding: 22px 28px 18px; display: flex; flex-direction: column; gap: 12px; border-bottom: .5px solid var(--line); }
.rd-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rd-dom { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.rd-key { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.rd-nav { margin-left: auto; display: flex; gap: 4px; }
.rd-nav button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--segTrack); font-size: 15px; transition: background .18s ease, transform .12s ease; }
.rd-nav button:hover { background: var(--track); } .rd-nav button:active { transform: scale(.94); }
.rd-head h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.rd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-state, .rd-type, .rd-tag { height: 24px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.rd-state { font-weight: 600; } .rd-state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rd-state.on { background: var(--okBg); color: var(--okFg); } .rd-state.off { background: var(--surface2); color: var(--muted); }
.rd-state.nc { background: var(--blueBg); color: var(--blueFg); } .rd-state.missing { background: var(--badBg); color: var(--badFg); }
.rd-type { font-weight: 600; background: var(--surface2); color: var(--ink2); } .rd-type.is-hard { background: var(--badBg); color: var(--badFg); }
.rd-tag { background: var(--surface2); box-shadow: inset 0 0 0 .5px var(--chipBd); color: var(--ink2); }
.rd-sec { padding: 20px 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rd-sec + .rd-sec { border-top: .5px solid var(--line); }
.rd-fires { margin: 0; font-size: 17px; line-height: 1.55; max-width: 64ch; text-wrap: pretty; }
.rd-why { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 68ch; text-wrap: pretty; }
.rd-note { margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: var(--warnBg); box-shadow: inset 0 0 0 .5px var(--accent); display: flex;
  gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--accentText); }
.rd-note b { flex: none; font-weight: 700; }
.rd-note.bad { background: var(--badBg); box-shadow: inset 0 0 0 .5px var(--badFg); color: var(--badFg); }
.rd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 28px; }
.rd-grid > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rd-txt { font-size: 13px; line-height: 1.5; color: var(--ink2); text-wrap: pretty; } .rd-txt.muted { color: var(--muted); }
.wdots { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.wdots span { width: 28px; height: 10px; border-radius: 5px; background: var(--track); transform-origin: left; animation: growX .45s cubic-bezier(.2,.8,.2,1) both; }
.wdots .lit { background: var(--accent); } .wdots.is-hard .lit { background: var(--badFg); } .wdots .mark { box-shadow: inset 0 0 0 1px var(--chipBd); }
.ov-rows { display: flex; flex-direction: column; gap: 6px; }
.ov-row { padding: 8px 12px; border-radius: 12px; background: var(--solid); box-shadow: inset 0 0 0 .5px var(--chipBd); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ov-top { display: flex; align-items: center; gap: 10px; font-size: 13.5px; min-width: 0; }
.ov-top b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ov-top .id { color: var(--muted); white-space: nowrap; }
.ov-top .v { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ov-row .x { font-size: 12.5px; color: var(--muted); line-height: 1.45; text-wrap: pretty; }
.params { display: flex; flex-wrap: wrap; gap: 8px; }
.param { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; min-width: 88px; border-radius: 12px; background: var(--surface2); box-shadow: inset 0 0 0 .5px var(--chipBd); }
.param .pk { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 11px; color: var(--muted); }
.param .pv { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.rd-auto { background: var(--surface2); padding-top: 16px; }
.auto-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; } .auto-row .num { width: 20px; height: 20px; font-size: 11px; }
/* The manual checks, each linked to its rules. */
.rules-manual { gap: 4px; }
.manual { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.manual li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; padding: 12px 0; border-top: .5px solid var(--line); }
.manual li:first-child { border-top: 0; }
.manual .q { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 24px; min-width: 0; }
.manual .qa { flex: 1 1 380px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.manual .qa b { font-size: 14.5px; font-weight: 600; } .manual .qa .x { font-size: 13px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.manual .every { font-size: 12.5px; color: var(--muted); }
.rule-links { display: flex; flex-wrap: wrap; gap: 6px; }
.rule-link { height: 28px; border: 0; border-radius: 999px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px;
  background: var(--solid); box-shadow: inset 0 0 0 .5px var(--chipBd); color: var(--ink); white-space: nowrap; transition: box-shadow .18s ease, transform .12s ease; }
.rule-link .dot { width: 6px; height: 6px; }
.rule-link:hover { box-shadow: inset 0 0 0 1.5px var(--accent); } .rule-link:active { transform: scale(.97); }
.rule-link:disabled { opacity: .6; cursor: default; box-shadow: inset 0 0 0 .5px var(--chipBd); }
.rule-link .st { color: var(--muted); }
.rules-foot { margin: 0; font-size: 12px; color: var(--muted); }
@media (max-width: 899px) {
  .rules-panes { grid-template-columns: minmax(0, 1fr); }
  .rules-side .bl-list-box { max-height: 56vh; }
}
@media (max-width: 560px) {
  .rd-head, .rd-sec { padding-left: 18px; padding-right: 18px; }
  .rd-head h2 { font-size: 22px; } .rd-fires { font-size: 15.5px; }
  .ladder { grid-template-columns: 1fr 1fr; border-radius: 12px; }
  .rule-link { white-space: normal; height: auto; min-height: 28px; padding: 4px 12px; text-align: left; }
  /* Four tabs fit a phone's width without the icons. */
  .tabs button { padding: 0 11px; gap: 6px; font-size: 13.5px; } .tabs button .ic { display: none; }
  .tabs .tab-full { display: none; } .tabs .tab-short { display: inline; }
}
@media (max-width: 899px) {
  .panes, .bl-panes { grid-template-columns: minmax(0, 1fr); }
  .list-pane { position: static; height: auto; max-height: 60vh; }
  .bl-side { min-height: 0; } .bl-list-box { position: static; max-height: 50vh; }
  .toolbar-right { margin-left: 0; width: 100%; } .search { flex: 1 1 220px; width: auto; }
}
@media (max-width: 560px) {
  .wrap, main.wrap { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 32px; } .tagline { font-size: 21px; }
  .strip { gap: 10px; } .logo { height: 18px; } .product { font-size: 11px; letter-spacing: .04em; }
  .run-card { flex-basis: 100%; }
  .d-head, .verdict, .d-body > section, .history, .decide, .decided { padding-left: 18px; padding-right: 18px; }
  .stat { padding: 12px 14px; } .stat .value { font-size: 24px; }
  .foot-next, .foot-legal .right { margin-left: 0; }
}

/* 26 Oct: decide an hour alert and its day's alert together */
.decide .also { display: flex; gap: 8px; align-items: center; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.decided .same-day { flex-basis: 100%; font-size: 12px; color: var(--muted); }

/* 26 Oct: the page refreshes itself (the alert e-mail stays off) */
.run-updated { margin-top: 6px; font-size: 11px; color: var(--muted); }
.row .new-tag { margin-left: auto; padding: 1px 7px; border-radius: 999px; background: #E06000; color: #FFFFFF; font-size: 10px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#list.no-anim .row { animation: none; }

/* ---------- share links (2026-10-17 plan; Claude Design export, 26 Oct) ---------- */
.share-btn { height: 28px; border: 0; border-radius: 999px; background: var(--segTrack); color: var(--ink); padding: 0 12px 0 10px; font-size: 12.5px;
  font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .18s ease, transform .12s ease; }
.share-btn:hover { background: var(--track); }
.share-btn:active { transform: scale(.97); }

.share-dialog { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  z-index: 31; overflow-y: auto; overscroll-behavior: contain; border-radius: 22px; background: var(--surface); -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%); box-shadow: var(--glassSh), 0 24px 70px rgba(20,20,50,.3); display: flex; flex-direction: column;
  animation: modalIn .28s cubic-bezier(.2,.9,.25,1.05) both; }
.share-dialog[hidden] { display: none; }
.sd-head { padding: 16px 22px 14px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 0; z-index: 2; background: var(--surface);
  border-bottom: .5px solid var(--line); }
.sd-grip { display: none; align-self: center; width: 36px; height: 5px; border-radius: 3px; background: var(--track); margin: -6px 0 2px; }
.sd-top { display: flex; align-items: flex-start; gap: 12px; }
.sd-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sd-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.sd-sub { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.sd-close { width: 30px; height: 30px; flex: none; border: 0; border-radius: 50%; background: var(--segTrack); cursor: pointer; font-size: 13px; color: var(--ink); }
.sd-close:hover { background: var(--track); }
.sd-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.sd-make, .sd-made { display: flex; flex-direction: column; gap: 10px; }
.sd-made { animation: fadeUp .3s ease both; }
.sd-field { display: flex; flex-direction: column; gap: 6px; }
.sd-lab { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.sd-opt { font-weight: 400; letter-spacing: 0; }
.sd-field input, .sd-row input { height: 40px; border: 0; border-radius: 12px; background: var(--solid); box-shadow: inset 0 0 0 .5px var(--chipBd);
  padding: 0 14px; font-size: 14px; outline: none; width: 100%; color: var(--ink); transition: box-shadow .15s ease; }
.sd-field input:focus, .sd-row input:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.sd-row { display: flex; gap: 8px; }
.sd-row input { flex: 1; min-width: 0; padding: 0 12px; font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 12.5px; text-overflow: ellipsis; }
.sd-primary { flex: none; height: 40px; border: 0; border-radius: 999px; background: #E06000; color: #FFFFFF; padding: 0 18px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.25); transition: background .18s ease, transform .12s ease; }
.sd-primary:hover { background: #C65400; }
.sd-primary:active { transform: scale(.97); }
.sd-primary:disabled { opacity: .6; cursor: default; }
.sd-create { align-self: flex-end; height: 36px; padding: 0 20px; }
.sd-note { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--warnBg); color: var(--accentText); font-size: 13px; line-height: 1.5; }
.sd-note b { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--accent); color: #FFFFFF; font-size: 11px;
  display: flex; align-items: center; justify-content: center; }
.sd-again { align-self: flex-start; border: 0; background: transparent; padding: 2px 0; color: var(--accentText); font-size: 13px; font-weight: 600; cursor: pointer; }
.sd-links { padding: 0 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.sd-links-head { display: flex; align-items: baseline; gap: 8px; padding-top: 16px; border-top: .5px solid var(--line); }
.sd-links-k { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.sd-links-n { font-size: 12px; color: var(--muted); }
.sd-list { display: flex; flex-direction: column; gap: 8px; }
.share-item { animation: fadeUp .3s ease both; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface2); box-shadow: inset 0 0 0 .5px var(--line); }
.si-text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.si-label { font-size: 14px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.si-label.none { color: var(--muted); }
.si-meta { font-size: 12.5px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.si-side { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.si-chip { height: 22px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.si-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-active { color: var(--okFg); background: var(--okBg); }
.chip-expired { color: var(--muted); background: var(--track); }
.chip-revoked { color: var(--badFg); background: var(--badBg); }
/* 29 Oct: an alert that blocked accounts — in the list row and the detail head. */
.blocked-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 9px; font-size: 11px; font-weight: 700;
  color: var(--badFg); background: var(--badBg); }
.blocked-line { margin: 6px 0 0; color: var(--badFg); font-weight: 600; font-size: 13px; }
.campaign-line { margin: 6px 0 0; color: var(--accentText); font-weight: 600; font-size: 13px; }
.unblock { margin: 8px 0 0; }
.unblock-form { margin: 8px 0 0; display: grid; gap: 8px; }
.unblock-ids { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.si-revoke { height: 28px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 .5px var(--chipBd); color: var(--badFg); padding: 0 12px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; }
.si-revoke:hover { background: var(--badBg); }
.share-none { padding: 10px 0 2px; font-size: 13px; color: var(--muted); }

/* the shared view */
.shared-banner { animation: fadeUp .35s ease both; margin-bottom: 14px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px;
  background: var(--surface); box-shadow: var(--glassSh); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); }
.shared-banner[hidden] { display: none; }
.sb-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--warnBg); color: var(--accentText); display: flex; align-items: center; justify-content: center; flex: none; }
.sb-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sb-k { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--accentText); }
.sb-v { font-size: 14px; line-height: 1.45; color: var(--ink2); }
.sb-v b { font-weight: 600; color: var(--ink); }
.shared-gate { animation: fadeUp .35s ease both; max-width: 560px; margin: 24px auto; min-height: 340px; border-radius: 22px; background: var(--surface);
  box-shadow: var(--glassSh); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; padding: 44px 28px; text-align: center; }
.shared-gate[hidden] { display: none; }
.sg-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--segTrack); color: var(--muted); display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 600; animation: checkPop .5s cubic-bezier(.2,.9,.3,1.2) both; }
.sg-icon.blue { background: var(--blueBg); color: var(--blueFg); }
.sg-icon.warn { background: var(--warnBg); color: var(--accentText); }
.sg-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.sg-body { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 44ch; }
.sg-btn { margin-top: 4px; height: 38px; display: inline-flex; align-items: center; border-radius: 999px; background: #E06000; color: #FFFFFF; padding: 0 22px;
  font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.25); }
.sg-btn:hover { background: #C65400; }
.sg-btn[hidden] { display: none; }
.shared-loading { display: flex; flex-direction: column; gap: 14px; }
.shared-loading[hidden] { display: none; }
.sk-card { border-radius: 22px; background: var(--surface); box-shadow: var(--glassSh); padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.sk-row { flex-direction: row; align-items: center; gap: 14px; border-radius: 18px; padding: 16px 18px; }
.sk-col { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sk { display: block; border-radius: 6px; background: var(--track) linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent) no-repeat;
  background-size: 80px 100%; animation: skel 1.5s ease-in-out infinite; }
.sk-dot { width: 36px; height: 36px; border-radius: 50%; flex: none; }
@keyframes skel { from { background-position: -80px 0; } to { background-position: calc(100% + 80px) 0; } }
.read-only .ro-head { font-weight: 700; }
.ro-legit { color: var(--okFg); }
.ro-confirmed_fraud { color: var(--badFg); }
.ro-false_positive { color: var(--ink); }
.ro-open { color: var(--accentText); }
body.shared-mode .run-card, body.shared-mode .stats, body.shared-mode .stats-note, body.shared-mode .tabs-row, body.shared-mode .tagline,
body.shared-mode #tab-alerts .toolbar, body.shared-mode .list-pane, body.shared-mode .foot-head, body.shared-mode .runs,
body.shared-mode .foot-read { display: none !important; }
body.shared-mode .panes { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 699px) {
  .share-dialog { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 88vh; border-radius: 22px 22px 0 0;
    animation: sheetUp .32s cubic-bezier(.2,.9,.25,1) both; }
  .sd-grip { display: block; }
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Gift Card Vendors tab (Vendor Guard); 26 Nov: the redesign's own rules are at the end of this file ---------- */
.vg-reason { border-radius: 12px; padding: 10px 12px; background: var(--badBg); color: var(--badFg); font-size: 12.5px; }
ul.ev { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
ul.ev li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; } ul.ev time { color: var(--muted); font-variant-numeric: tabular-nums; }
ul.ev .k { font-weight: 700; font-size: 11px; letter-spacing: .04em; } .k.stop { color: var(--badFg); } .k.alert { color: var(--accentText); } .k.resume { color: var(--okFg); } .k.mode, .k.would { color: var(--indigo); }

.vg-ctx { border-radius: 12px; padding: 10px 12px; background: var(--surface2); display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.vg-ctx .facts { color: var(--ink2); } .vg-ctx .facts b { color: var(--ink); }
.jev { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 6px; border-top: .5px solid var(--line2); }
.jev .tag { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--indigo); }
.jev .adv { font-size: 10.5px; color: var(--muted); border: 1px solid var(--chipBd); border-radius: 6px; padding: 0 5px; }
.risk { font-weight: 700; border-radius: 999px; padding: 1px 8px; font-size: 11px; } .risk.high { color: var(--badFg); background: var(--badBg); } .risk.medium { color: var(--accentText); background: var(--surface); } .risk.low { color: var(--okFg); background: var(--surface); }
.vg-modal-bg { position: fixed; inset: 0; background: rgba(10,10,30,.45); display: flex; align-items: center; justify-content: center; z-index: 50; }
.vg-modal { width: min(460px, calc(100vw - 32px)); border-radius: 18px; padding: 20px; background: var(--solid); box-shadow: var(--glassSh); display: flex; flex-direction: column; gap: 12px; }
.vg-modal h3 { margin: 0; } .vg-modal p { margin: 0; color: var(--muted); font-size: 13px; }
.vg-modal textarea { width: 100%; min-height: 84px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); padding: 10px; }
.vg-modal .vg-m-row { display: flex; gap: 8px; justify-content: flex-end; }
.vg-scope { display: flex; gap: 6px; flex-wrap: wrap; } .vg-scope label { font-size: 12.5px; display: flex; gap: 5px; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--surface2); }
.vg-modal-bg[hidden] { display: none; }
.vg-m-err { color: var(--badFg) !important; }
.vg-modal .vg-m-row .btn[disabled] { opacity: .6; cursor: default; }
.vg-empty { padding: 18px; color: var(--muted); }
.vg-res { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.vg-res .bad { color: var(--badFg); } .vg-res .ok { color: var(--okFg); }
.vg-x { background: none; border: 0; color: var(--muted); font-size: 16px; line-height: 1; padding: 2px 4px; }

/* Vendor Guard v2: balance line, all-regions row actions, per-region results, the two-step code dialog */
ul.ev small.ev-why { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; line-height: 1.4; }

.vg-results { margin: 0 0 14px; padding: 12px 16px; border-radius: 16px; display: flex; flex-direction: column; gap: 8px;
  border-left: 4px solid var(--muted); outline: none; }
.vg-results[hidden] { display: none; }
.vg-results:focus-visible { box-shadow: var(--glassSh), 0 0 0 2px var(--accent); }
.vg-results.ok { border-left-color: var(--okFg); } .vg-results.partial { border-left-color: var(--accent); }
.vg-results.bad { border-left-color: var(--badFg); } .vg-results.same { border-left-color: var(--muted); }
.vr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.vr-head b { font-size: 14px; } .vr-line { display: block; font-size: 12.5px; color: var(--ink2); }
.vg-results.partial .vr-line { color: var(--accentText); font-weight: 600; } .vg-results.bad .vr-line { color: var(--badFg); font-weight: 600; }
.vr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; }
.vr-list li { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); }
.vr-list li b { font-weight: 700; color: var(--ink); }
.vr-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.vr-list li.ok .vr-dot { background: var(--okFg); } .vr-list li.bad .vr-dot { background: var(--badFg); }
.vr-list li.bad { color: var(--badFg); } .vr-list li.bad b { color: var(--badFg); }
.vr-note { margin: 0; font-size: 12px; color: var(--accentText); }

.vg-m-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.vg-m-stepno { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.vg-m-step { display: flex; flex-direction: column; gap: 10px; }
.vg-m-step[hidden] { display: none; }
.vg-modal p.vg-m-note { font-size: 12px; }
.vg-modal p.vg-m-sent { color: var(--ink); font-size: 14px; font-weight: 600; }
.vg-modal p.vg-m-for { font-size: 12.5px; }
.vg-modal p.vg-m-why { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -6px; }
.vg-modal p.vg-m-note.off { color: var(--accentText); font-weight: 600; }
.vg-modal textarea:disabled, .vg-code:disabled, .vg-scope input:disabled { opacity: .6; cursor: progress; }
.vg-m-label { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: -4px; }
.vg-code { width: 100%; height: 54px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); color: var(--ink);
  font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 26px; font-weight: 600; letter-spacing: .45em; text-align: center; padding: 0 0 0 .45em; }
.vg-code:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--warnBg); }
.vg-m-resend { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: 12.5px; color: var(--muted); }
.vg-m-resend .link { padding: 0; font-size: 12.5px; }
.vg-m-resend .link[disabled] { color: var(--muted); cursor: default; font-weight: 400; }
.vg-scope input { accent-color: var(--accent); }

/* ---------- 26 Nov: Gift Card Vendors redesign (Claude Design canvas "Gift Card Vendors redesign"): the run card's balance
   line, Balances cards with Tahoe-style lines, the order guard's ring matrix and its detail strip, the vendor drawer.
   Every new colour is a token here, with its dark-theme value; the header's own CSS above is unchanged. ---------- */
:root, [data-theme="light"] {
  --stOk:#1F9D5C; --stSoon:#E06000; --stLow:#D7372B; --ringTrack:rgba(120,120,128,.16); --ringEmpty:rgba(60,60,90,.3);
  --chartGrid:rgba(60,60,90,.10); --chartInk:#6B6B85; --enfBg:rgba(61,61,158,.12); --vgScrim:rgba(10,10,30,.22);
  --vgDrawerSh:-18px 0 50px rgba(18,18,36,.18); --selGlow:rgba(224,96,0,.12); --logoSh:rgba(0,0,0,.08);
  --balInk:#FFFFFF; --balPillBg:rgba(255,255,255,.14); --balPillRing:rgba(255,255,255,.22); --balRule:rgba(255,255,255,.16);
  --balDot:#7DDCAA; --balDotStale:#FFB27A;
}
[data-theme="dark"] {
  --stOk:#4CC98A; --stSoon:#FF9A4D; --stLow:#FF6B5E; --ringTrack:rgba(255,255,255,.12); --ringEmpty:rgba(255,255,255,.28);
  --chartGrid:rgba(255,255,255,.10); --chartInk:#A3A3C2; --enfBg:rgba(179,179,247,.14); --vgScrim:rgba(0,0,0,.45);
  --vgDrawerSh:-18px 0 50px rgba(0,0,0,.5); --selGlow:rgba(240,106,10,.22); --logoSh:rgba(0,0,0,.3);
  --balInk:#FFFFFF; --balPillBg:rgba(255,255,255,.12); --balPillRing:rgba(255,255,255,.18); --balRule:rgba(255,255,255,.12);
  --balDot:#7DDCAA; --balDotStale:#FFB27A;
}

/* run card: the balance watch's line (Gift Card Vendors tab only) */
.run-bal { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; padding-top: 10px;
  border-top: .5px solid var(--balRule); font-size: 13px; color: var(--bandMuted); }
.run-bal b { color: var(--balInk); font-weight: 600; }
.bal-pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--balPillBg); color: var(--balInk);
  font-size: 12.5px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 .5px var(--balPillRing); }
.bal-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--balDot); animation: pulse 2.2s infinite; }
.bal-pill.stale .dot { background: var(--balDotStale); animation: none; }

#tab-vendors .tab-title p.one { max-width: none; }
#tab-vendors .sec-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 20px 0 10px; }
#tab-vendors .sec-head h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
#tab-vendors .sec-head .k { font-size: 12.5px; color: var(--muted); }
#tab-vendors .vg-defs + .sec-head { margin-top: 4px; }
.vg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.vg-defs .ok stop { stop-color: var(--stOk); } .vg-defs .soon stop { stop-color: var(--stSoon); } .vg-defs .low stop { stop-color: var(--stLow); }

/* logos (our own assets) or initials */
#tab-vendors .logo-slot { width: 26px; height: 26px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 10.5px;
  font-weight: 700; letter-spacing: -.02em; color: var(--indigo); background: var(--solid); box-shadow: inset 0 0 0 .5px var(--chipBd), 0 1px 2px var(--logoSh); }
#tab-vendors .logo-slot.big { width: 36px; height: 36px; border-radius: 11px; font-size: 14px; }
#tab-vendors .logo-slot.has-img { background: transparent; box-shadow: 0 0 0 .5px var(--chipBd), 0 1px 3px var(--logoSh); overflow: hidden; }
#tab-vendors .logo-slot img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }

/* status pills and mode chips: always text, never colour alone */
#tab-vendors .st { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
#tab-vendors .st.ok { color: var(--okFg); background: var(--okBg); } #tab-vendors .st.soon { color: var(--accentText); background: var(--warnBg); }
#tab-vendors .st.low { color: var(--badFg); background: var(--badBg); } #tab-vendors .st.wait { color: var(--muted); background: var(--track); }
#tab-vendors .mode { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
#tab-vendors .mode.enf { color: var(--indigo); background: var(--enfBg); } #tab-vendors .mode.sh { color: var(--muted); background: var(--track); }
#tab-vendors .mode.off { color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--chipBd); }
#tab-vendors .mode.mix { color: var(--ink2); background: var(--surface2); box-shadow: inset 0 0 0 .5px var(--chipBd); }

/* Balances cards */
#tab-vendors .tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1180px) { #tab-vendors .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { #tab-vendors .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { #tab-vendors .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { #tab-vendors .tiles { grid-template-columns: minmax(0, 1fr); } }
#tab-vendors .tile { border: 0; text-align: left; border-radius: 18px; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 6px; cursor: pointer;
  color: inherit; font: inherit; min-width: 0; transition: box-shadow .18s ease; }
#tab-vendors .tile:hover { box-shadow: var(--glassSh), 0 0 0 1px var(--chipBd); }
#tab-vendors .tile-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
#tab-vendors .tile-name { font-size: 13.5px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tab-vendors .amt { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
#tab-vendors .amt.low { color: var(--badFg); } #tab-vendors .amt.none { color: var(--muted); } #tab-vendors .amt.big { font-size: 28px; }
#tab-vendors .tile .sub { font-size: 11.5px; color: var(--muted); } #tab-vendors .sub.stale, #tab-vendors .d-sub.stale { color: var(--accentText); }
#tab-vendors .tile .wait-box { height: 42px; display: flex; align-items: center; font-size: 11.5px; color: var(--muted); border-radius: 10px; background: var(--surface2); padding: 0 10px; }
#tab-vendors svg.spark { width: 100%; height: auto; display: block; overflow: visible; }

/* Tahoe-style lines (cards and the drawer): the status colour drives the curve, area, low line and the end dot */
#tab-vendors svg.ok { --vgLine: var(--stOk); } #tab-vendors svg.soon { --vgLine: var(--stSoon); } #tab-vendors svg.low { --vgLine: var(--stLow); }
#tab-vendors svg .line { fill: none; stroke: var(--vgLine); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
#tab-vendors svg .lowline { stroke: var(--vgLine); stroke-opacity: .45; stroke-width: 1; stroke-dasharray: 2 4; stroke-linecap: round; }
#tab-vendors svg .halo { fill: var(--vgLine); fill-opacity: .18; }
#tab-vendors svg .dot { fill: var(--vgLine); stroke: var(--solid); stroke-width: 1.5; } #tab-vendors svg .dot.big { stroke-width: 2; }
#tab-vendors svg .grid { fill: none; stroke: var(--chartGrid); stroke-width: 1; }
#tab-vendors svg .ax { fill: var(--chartInk); font-size: 10.5px; }
#tab-vendors svg .now { stroke: var(--vgLine); stroke-opacity: .35; stroke-width: 1; }
#tab-vendors svg .tip { fill: var(--solid); stroke: var(--chipBd); } #tab-vendors svg .tip-t { fill: var(--ink); font-size: 11px; font-weight: 600; }
#tab-vendors svg.big-chart { width: 100%; height: auto; display: block; overflow: visible; }
#tab-vendors svg.big-chart .line { stroke-width: 2.5; }

/* order guard: the ring matrix */
#tab-vendors .ring-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 12.5px; color: var(--ink2); margin: -2px 0 10px; }
#tab-vendors .ring-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
#tab-vendors .ring-legend i.g { background: var(--stOk); } #tab-vendors .ring-legend i.o { background: var(--stSoon); }
#tab-vendors .ring-legend i.r { background: var(--stLow); } #tab-vendors .ring-legend i.e { box-shadow: inset 0 0 0 1.5px var(--ringEmpty); }
#tab-vendors .og { border-radius: 18px; padding: 6px; overflow-x: auto; }
#tab-vendors .og-in { min-width: 1100px; }
#tab-vendors .rm-row { display: grid; gap: 6px; align-items: center; padding: 5px 10px; }
#tab-vendors .rm-head { font-size: 12px; font-weight: 600; color: var(--muted); padding-top: 10px; padding-bottom: 2px; }
#tab-vendors .rm-head .right { text-align: right; }
#tab-vendors .og-sep { border-top: .5px solid var(--line2); }
#tab-vendors .rm-v { border: 0; background: transparent; color: inherit; font: inherit; text-align: left; padding: 2px; display: flex; align-items: center; gap: 9px;
  min-width: 0; border-radius: 10px; cursor: pointer; }
#tab-vendors .rm-v:hover .nm { text-decoration: underline; text-underline-offset: 2px; }
#tab-vendors .rm-txt { min-width: 0; display: flex; flex-direction: column; }
#tab-vendors .rm-v .nm { font-size: 13.5px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab-vendors .rm-v .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 1px; }
#tab-vendors .rm-v .note { font-size: 11px; color: var(--muted); } #tab-vendors .note.warn { color: var(--accentText); } #tab-vendors .note.bad { color: var(--badFg); }
#tab-vendors .rc { border: 1px solid transparent; border-radius: 14px; padding: 5px 7px; background: transparent; color: inherit; font: inherit; display: flex; align-items: center;
  gap: 8px; text-align: left; cursor: pointer; min-width: 0; }
#tab-vendors button.rc:hover { background: var(--surface2); border-color: var(--line); }
#tab-vendors .rc.sel { border-color: var(--accent); background: var(--solid); box-shadow: 0 2px 10px var(--selGlow); }
#tab-vendors .rc.stop { background: var(--badBg); }
#tab-vendors .rc.unreach { cursor: default; border: 1px dashed var(--line); }
#tab-vendors .rc.none { cursor: default; opacity: .55; }
#tab-vendors .rc svg { width: 34px; height: 34px; flex: none; }
#tab-vendors .rc .track { fill: none; stroke: var(--ringTrack); stroke-width: 5; }
#tab-vendors .rc .arc { fill: none; stroke-width: 5; stroke-linecap: round; }
#tab-vendors .rc .arc.g { stroke: var(--stOk); } #tab-vendors .rc .arc.o { stroke: var(--stSoon); } #tab-vendors .rc .arc.r { stroke: var(--stLow); }
#tab-vendors .rc .t { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; gap: 2px; }
#tab-vendors .rc .t b { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 13px; color: var(--ink); }
#tab-vendors .rc .t b.r, #tab-vendors .rc .t b.bad { color: var(--badFg); } #tab-vendors .rc .t b.o { color: var(--accentText); } #tab-vendors .rc .t b.idle { color: var(--muted); }
#tab-vendors .rc .t .w { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab-vendors .rc .mode { font-size: 9.5px; padding: 0 6px; align-self: flex-start; }
#tab-vendors .og-all { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
#tab-vendors .btn.sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
#tab-vendors .btn.stop { background: var(--badBg); color: var(--badFg); font-weight: 600; }
#tab-vendors .btn.resume { background: var(--okBg); color: var(--okFg); font-weight: 600; }
#tab-vendors .foot-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); }

/* the strip under a row: one region's three windows, its mode and the region-only actions */
#tab-vendors .vg-detail { margin: 0 8px 10px; padding: 14px 16px; border-radius: 16px; background: var(--solid); box-shadow: var(--glassSh);
  display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-start; }
#tab-vendors .vg-detail .d-main { flex: 1 1 250px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#tab-vendors .vg-detail .d-title { font-size: 16px; font-weight: 700; }
#tab-vendors .vg-detail .d-mode { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
#tab-vendors .vg-detail .d-sub { font-size: 12.5px; color: var(--muted); } #tab-vendors .vg-detail .d-hint { font-size: 12.5px; color: var(--ink2); }
#tab-vendors .vg-detail .d-wins { flex: 2 1 380px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#tab-vendors .vg-detail .w { display: grid; grid-template-columns: 64px minmax(0, 1fr) 170px; gap: 10px; align-items: center; font-size: 12.5px; }
#tab-vendors .vg-detail .w .k { font-weight: 600; } #tab-vendors .vg-detail .w .n { color: var(--ink2); } #tab-vendors .vg-detail .w .n.bad { color: var(--badFg); }
#tab-vendors .vg-detail .wbar { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
#tab-vendors .vg-detail .wbar i { display: block; height: 100%; border-radius: 999px; }
#tab-vendors .vg-detail .wbar i.g { background: var(--stOk); } #tab-vendors .vg-detail .wbar i.o { background: var(--stSoon); } #tab-vendors .vg-detail .wbar i.r { background: var(--stLow); }
#tab-vendors .vg-detail .acts { flex: 1 1 190px; display: flex; flex-direction: column; gap: 8px; }
#tab-vendors .vg-detail .d-ctx { flex: 1 1 100%; }
#tab-vendors .vg-detail h4, #tab-vendors .vg-drawer h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { #tab-vendors .vg-detail .w { grid-template-columns: 60px minmax(0, 1fr); } #tab-vendors .vg-detail .w .n { grid-column: 1 / -1; } }

/* the vendor drawer: a right-hand overlay above the page, under the OTP dialog */
@keyframes vgDrawerIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
#tab-vendors .vg-scrim { position: fixed; inset: 0; background: var(--vgScrim); z-index: 40; animation: fadeIn .2s ease both; }
#tab-vendors .vg-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); overflow-y: auto; overscroll-behavior: contain; background: var(--solid);
  box-shadow: var(--vgDrawerSh); padding: 22px; display: flex; flex-direction: column; gap: 14px; z-index: 41; animation: vgDrawerIn .25s cubic-bezier(.2,.8,.2,1) both; }
#tab-vendors .vg-drawer .hd { display: flex; align-items: center; gap: 10px; }
#tab-vendors .vg-drawer .hd .nm { margin: 0; font-size: 22px; font-weight: 700; flex: 1; min-width: 0; overflow-wrap: anywhere; }
#tab-vendors .vg-drawer .pills { display: flex; gap: 6px; flex-wrap: wrap; }
#tab-vendors .vg-drawer .d-sub { font-size: 12.5px; color: var(--muted); margin-top: -8px; }
#tab-vendors .vg-drawer .d-note { margin: 0; font-size: 12.5px; color: var(--muted); }
#tab-vendors .vg-drawer .d-guard { margin: 0 0 4px; font-size: 12.5px; color: var(--ink2); }
#tab-vendors .vg-drawer .fig { margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--solid); box-shadow: var(--glassSh); display: flex; flex-direction: column; gap: 6px; }
#tab-vendors .vg-drawer .fig-cap { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink2); }
#tab-vendors .vg-drawer .fig-cap .k { font-weight: 400; color: var(--muted); }
#tab-vendors .vg-drawer .cur-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
#tab-vendors .vg-drawer .cur-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; font-size: 12.5px; padding: 3px 0; border-bottom: .5px solid var(--line2); }
#tab-vendors .vg-drawer .cur-list .c { font-weight: 700; } #tab-vendors .vg-drawer .cur-list .u { color: var(--muted); text-align: right; }
#tab-vendors .vg-drawer ul.ev li { grid-template-columns: minmax(0, 1fr); gap: 1px; padding-bottom: 7px; border-bottom: .5px solid var(--line2); }
#tab-vendors .vg-drawer ul.ev time { order: 2; font-size: 12px; }
#tab-vendors .vg-drawer .d-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
