/* Design notes: Brevo-inspired product styling with blue as the primary.
   Pale blue navigation rail with a soft active capsule, flat white cards separated by hairline borders, pill buttons,
   Inter throughout (Brevo's interface face), near-black ink (#1B1B1B) and grey secondary text (#696969). */
:root {
  --bg: #fafafa; --surface: #ffffff; --surface-2: #f7f8fc; --surface-3: #f0f2f9;
  --ink: #1b1b1b; --ink-2: #474747; --muted: #696969; --line: #e3e3e3; --line-2: #d4d4d4;
  --brand: #4361ee; --brand-ink: #2f4bd6; --brand-soft: #eaf0ff; --brand-glow: rgba(67, 97, 238, .16);
  --signal: #e5484d; --signal-soft: #ffecee;
  --ok: #0b996f; --ok-soft: #e3f6ee; --warn: #a96a00; --warn-soft: #fff4d9; --bad: #d92d3f; --bad-soft: #ffecee;
  --side: #f4f7ff; --side-2: #ffffff; --side-ink: #1b1b1b; --side-line: #dde5fb; --side-grp: #8a8f9c; --side-hover: #e9efff; --side-on: #d9e4ff;
  --hero-bg: #edf2ff; --hero-ink: #1b1b1b; --hero-sub: #474747; --hero-card: #ffffff;
  --banner-bg: #e8efff; --banner-ink: #1b1b1b; --banner-sub: #474747; --banner-pill: #ffffff;
  --plate: #fffbea; --plate-ink: #111111; --plate-band: #00794d; --on-brand: #ffffff;
  --term-bg: #0f1730; --term-line: #1f2a4d; --term-ink: #9df2c4; --term-k: #8fa6ff; --term-v: #eef3ff; --term-fl: #ff8a98; --term-lbl: #7d8bb6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 1px 2px rgba(0,0,0,.035);
  --shadow-lg: 0 18px 48px -14px rgba(20,24,40,.20);
  --r-sm: 8px; --r: 16px; --r-lg: 24px;
  --f-display: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --side-w: 272px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f14; --surface: #15181f; --surface-2: #1a1e27; --surface-3: #20252f;
    --ink: #ececec; --ink-2: #c4c4c4; --muted: #9a9a9a; --line: #2a2f3a; --line-2: #353b48;
    --brand: #7b93ff; --brand-ink: #9aaeff; --brand-soft: #1d2645; --brand-glow: rgba(123,147,255,.22);
    --signal: #ff6369; --signal-soft: #3a1a1e;
    --ok: #3cc98f; --ok-soft: #10302a; --warn: #f0a83a; --warn-soft: #33270f; --bad: #ff6676; --bad-soft: #3a1a1e;
    --side: #12172a; --side-2: #171d33; --side-ink: #ececec; --side-line: #232a45; --side-grp: #8c93a8; --side-hover: #1b2240; --side-on: #26325f;
    --hero-bg: #10162b; --hero-ink: #ececec; --hero-sub: #b8bfd6; --hero-card: #171d33;
    --banner-bg: #18213f; --banner-ink: #ececec; --banner-sub: #c0c7de; --banner-pill: #202a4d;
    --plate: #f6efc9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.35); --shadow-lg: 0 24px 64px -16px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0f14; --surface: #15181f; --surface-2: #1a1e27; --surface-3: #20252f;
  --ink: #ececec; --ink-2: #c4c4c4; --muted: #9a9a9a; --line: #2a2f3a; --line-2: #353b48;
  --brand: #7b93ff; --brand-ink: #9aaeff; --brand-soft: #1d2645; --brand-glow: rgba(123,147,255,.22);
  --signal: #ff6369; --signal-soft: #3a1a1e;
  --ok: #3cc98f; --ok-soft: #10302a; --warn: #f0a83a; --warn-soft: #33270f; --bad: #ff6676; --bad-soft: #3a1a1e;
  --side: #12172a; --side-2: #171d33; --side-ink: #ececec; --side-line: #232a45; --side-grp: #8c93a8; --side-hover: #1b2240; --side-on: #26325f;
  --hero-bg: #10162b; --hero-ink: #ececec; --hero-sub: #b8bfd6; --hero-card: #171d33;
  --banner-bg: #18213f; --banner-ink: #ececec; --banner-sub: #c0c7de; --banner-pill: #202a4d;
  --plate: #f6efc9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.35); --shadow-lg: 0 24px 64px -16px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
#root { min-height: 100%; }
html, body { height: 100%; }
body { margin: 0; font: 500 14px/1.5 var(--f-body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .display { font-family: var(--f-display); letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 600; }
h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-family: var(--f-body); }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--f-mono); font-size: .92em; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.num, .tabular { font-variant-numeric: tabular-nums; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 24px; height: 24px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ================= buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font: 700 13.5px/1 var(--f-body); cursor: pointer; transition: background .15s, border-color .15s, transform .08s, box-shadow .15s; white-space: nowrap; color: var(--ink); background: var(--surface); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 16px -6px var(--brand-glow); }
.btn.primary:hover { background: var(--brand-ink); }
.btn.ghost { background: transparent; border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.subtle { background: var(--surface-3); }
.btn.subtle:hover { background: var(--line); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { width: 40px; padding: 0; }
.btn.icon.sm { width: 32px; }
.btn:disabled { opacity: .55; cursor: default; }
.input { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
.input input, .input select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 14px var(--f-body); color: var(--ink); height: 100%; }
.input input.mono { font: 600 15px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.input input::placeholder { color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; }
.input .i { color: var(--muted); }
label.lbl { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font: 700 12.5px var(--f-body); color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font: 600 12px var(--f-body); color: var(--ink-2); cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.mono { font-family: var(--f-mono); font-size: 11.5px; }
.chip.on { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ================= badges */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font: 700 11px/1 var(--f-body); letter-spacing: .02em; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.info { background: var(--brand-soft); color: var(--brand); }
.badge.live .dot { animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.spinner { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 700 11px var(--f-display); color: var(--on-brand); flex: none; letter-spacing: 0; }
.persona .avatar, .who .avatar, .me .avatar, .sample .avatar, .row .avatar { color: var(--on-brand); display: grid; font-size: 11px; overflow: visible; }
.persona .avatar.lg { font-size: 14px; }
.avatar.lg { width: 44px; height: 44px; border-radius: 12px; font-size: 14px; }

/* ================= cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; flex-wrap: wrap; }
.card-h .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card-b { padding: 16px 20px 20px; }
.card.flat { box-shadow: none; }
.card.hover { transition: transform .15s, box-shadow .15s, border-color .15s; cursor: pointer; }
.card.hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.grid { display: grid; gap: 18px; }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.cols-12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.stack { display: grid; gap: 18px; align-content: start; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.mt { margin-top: 18px; }

/* KPI */
.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi .top { display: flex; align-items: center; justify-content: space-between; }
.kpi .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.kpi .ico.ok { background: var(--ok-soft); color: var(--ok); }
.kpi .ico.bad { background: var(--bad-soft); color: var(--bad); }
.kpi .ico.warn { background: var(--warn-soft); color: var(--warn); }
.kpi .label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-top: 14px; }
.kpi .value { font: 700 30px/1.15 var(--f-display); letter-spacing: -.03em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .value.good { color: var(--ok); } .kpi .value.bad { color: var(--bad); }
.kpi .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); gap: 8px; }
.kpi svg.spark { width: 92px; height: 30px; overflow: visible; flex: none; }

/* ================= login */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); }
.login-hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink); padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
.login-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.login-hero > :not(canvas) { position: relative; }
.logo-lock { display: inline-flex; align-items: center; gap: 12px; }
.logo-lock img { height: 42px; width: 42px; object-fit: contain; background: #fff; border-radius: 11px; padding: 5px; }
.logo-lock b { font: 700 16px var(--f-display); display: block; }
.logo-lock small { color: var(--hero-sub); font-size: 12px; }
.login-hero h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.07; font-weight: 700; max-width: 15ch; margin-top: 10px; }
.login-hero h1 em { font-style: normal; color: #8fb0ff; }
.login-hero p.lead { color: var(--hero-sub); font-size: 15.5px; max-width: 52ch; margin-top: 16px; line-height: 1.65; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 580px; }
.hero-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px 16px; backdrop-filter: blur(6px); }
.hero-stat b { font: 700 22px var(--f-display); display: block; }
.hero-stat span { font-size: 12px; color: var(--hero-sub); }
.login-hero .fine { font-size: 12px; color: #8494bf; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-card { width: 100%; max-width: 470px; }
.login-card h2 { font-size: 26px; font-weight: 700; }
.mode-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; margin-bottom: 16px; }
.mode-pill.offline { background: var(--warn-soft); color: var(--warn); }
.personas { display: grid; gap: 10px; margin-top: 18px; }
.persona { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: .15s; width: 100%; }
.persona:hover { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); transform: translateX(2px); }
.persona b { display: block; font-size: 14px; }
.persona span { font-size: 12.5px; color: var(--muted); }
.persona .go { margin-left: auto; color: var(--muted); }
.form { display: grid; gap: 14px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.info { background: var(--brand-soft); color: var(--brand); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 800; margin: 22px 0 4px; text-transform: uppercase; letter-spacing: .1em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ================= shell */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .2s; background: linear-gradient(to right, var(--side) var(--side-w), var(--bg) var(--side-w)); }
.shell.collapsed { --side-w: 78px; }
.side { position: sticky; top: 0; height: 100vh; background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 18px 14px; gap: 14px; overflow: hidden; }
.side .brand { display: flex; align-items: center; gap: 12px; padding: 2px 4px; }
.side .brand img { height: 38px; width: 38px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; flex: none; }
.side .brand b { color: var(--side-ink); font: 700 15px var(--f-display); display: block; white-space: nowrap; }
.side .brand small { font-size: 11.5px; color: rgba(0,0,0,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.side .brand > div { min-width: 0; }
.env { display: flex; align-items: center; gap: 10px; background: var(--side-2); border: 1px solid var(--side-line); border-radius: 12px; padding: 10px 12px; font-size: 11.5px; }
.env b { color: var(--side-ink); display: block; font-size: 12.5px; white-space: nowrap; }
.env span { white-space: nowrap; }
.env .led { width: 8px; height: 8px; border-radius: 50%; background: #3cc98f; box-shadow: 0 0 0 4px rgba(60,201,143,.15); flex: none; }
.env.offline .led { background: #f0a83a; box-shadow: 0 0 0 4px rgba(240,168,58,.15); }
.nav { display: grid; gap: 3px; overflow-y: auto; align-content: start; }
.nav .grp { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--side-grp); padding: 12px 12px 6px; white-space: nowrap; }
.nav button { display: flex; align-items: center; gap: 13px; height: 46px; padding: 0 14px; border-radius: 11px; border: 0; background: transparent; color: var(--side-ink); font: 700 16.5px var(--f-body); letter-spacing: -.005em; cursor: pointer; text-align: left; white-space: nowrap; position: relative; }
.nav button:hover { background: var(--side-hover); color: var(--side-ink); }
.nav button.on { background: var(--side-on); color: var(--side-ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.nav button.on::before { content: ""; position: absolute; left: -14px; top: 11px; bottom: 11px; width: 4px; border-radius: 0 3px 3px 0; background: #000000; }
.nav button .count { margin-left: auto; background: var(--signal); color: #fff; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--side-2); border: 1px solid var(--side-line); }
.side .me b { color: var(--side-ink); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .me span { font-size: 11.5px; white-space: nowrap; }
.side .me > div { min-width: 0; flex: 1; }
.side .me .btn { background: transparent; color: var(--side-ink); }
.side .me .btn:hover { background: var(--side-hover); color: var(--side-ink); }
.shell.collapsed .side .hide-c { display: none; }
.shell.collapsed .nav button { justify-content: center; padding: 0; }
.shell.collapsed .nav .grp { visibility: hidden; height: 14px; padding: 0; }
.shell.collapsed .side .me { justify-content: center; padding: 8px; }
.shell.collapsed .env { justify-content: center; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; align-items: center; gap: 10px; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; min-width: 0; }
.crumbs b { color: var(--ink); white-space: nowrap; }
.search-pill { margin-left: auto; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 14px; width: min(400px, 38vw); border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font: 600 13px var(--f-body); cursor: pointer; }
.search-pill:hover { border-color: var(--brand); }
.search-pill kbd { margin-left: auto; font: 700 11px var(--f-mono); background: var(--surface-3); border-radius: 6px; padding: 3px 6px; color: var(--ink-2); }
.tb-wrap { position: relative; }
.bell .n { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; border-radius: 99px; background: var(--signal); color: #fff; font: 800 10px/13px var(--f-body); text-align: center; padding: 0 4px; border: 2px solid var(--bg); }
.content { padding: 26px 28px 56px; max-width: 1560px; width: 100%; }
.content.enter { animation: enter .35s ease-out; }
@keyframes enter { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-h p { color: var(--ink-2); margin-top: 6px; max-width: 78ch; }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }

/* ================= hero banner (control centre) */
.banner { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 24px 26px; color: var(--hero-ink); background: radial-gradient(120% 160% at 100% 0%, #3b6cff 0%, #1d3fb8 40%, #0b1838 100%); box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.banner::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.045) 0 1px, transparent 1px 22px); pointer-events: none; }
.banner > * { position: relative; z-index: 1; }
.banner h1 { font-size: 26px; }
.banner p { color: #c9d6ff; margin-top: 6px; max-width: 70ch; }
.banner .facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.banner .fact { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); padding: 7px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; }
.banner .fact .led { width: 7px; height: 7px; border-radius: 50%; background: #5ff0b1; }
.banner .donut { width: 128px; height: 128px; display: grid; place-items: center; position: relative; flex: none; }
.banner .donut svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.banner .donut b { font: 700 24px var(--f-display); display: block; text-align: center; }
.banner .donut span { font-size: 11px; color: #c9d6ff; font-weight: 700; display: block; text-align: center; }

/* ================= pipeline */
.pipe { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding: 24px 12px 6px; position: relative; }
.pnode { display: grid; justify-items: center; text-align: center; gap: 6px; position: relative; padding: 0 6px; }
.pnode .orb { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-2); position: relative; z-index: 1; transition: .25s; }
.pnode.active .orb { background: var(--brand); color: var(--on-brand); border-color: transparent; box-shadow: 0 0 0 6px var(--brand-glow); animation: breathe 1.6s ease-in-out infinite; }
.pnode.warn .orb { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pnode.good .orb { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
@keyframes breathe { 50% { box-shadow: 0 0 0 12px transparent; } }
.pnode b { font-size: 13px; margin-top: 4px; }
.pnode small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.pnode .n { font: 700 18px var(--f-display); font-variant-numeric: tabular-nums; }
.pnode:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: calc(50% + 34px); right: calc(-50% + 34px); height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.pnode.flow:not(:last-child)::after { background: repeating-linear-gradient(90deg, var(--brand) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: flow .6s linear infinite; }
@keyframes flow { to { background-position: 24px 0; } }

/* ================= tables */
.tbl-wrap { overflow: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
th { text-align: left; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
tr.fresh td { animation: fresh 3s ease-out; }
@keyframes fresh { from { background: var(--brand-soft); } to { background: transparent; } }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
td.nw { white-space: nowrap; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who > div { min-width: 0; }
.who b { display: block; font-size: 13px; white-space: nowrap; }
.who span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.meter { display: flex; align-items: center; gap: 10px; }
.meter .track { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; min-width: 70px; }
.meter .fill { height: 100%; border-radius: 99px; background: var(--ok); transition: width .6s ease; }
.meter .fill.mid { background: var(--warn); }
.meter .fill.low { background: var(--bad); }
.meter span { font: 700 12px var(--f-mono); width: 54px; text-align: right; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 8px; }
.empty .i { width: 30px; height: 30px; color: var(--line-2); }

/* ================= activity feed */
.feed { display: grid; max-height: 470px; overflow: auto; padding: 4px 20px 16px; }
.ev { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 10px 0; position: relative; }
.ev:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 40px; bottom: -6px; width: 2px; background: var(--line); }
.ev .dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.ev .dot.ok { background: var(--ok-soft); color: var(--ok); }
.ev .dot.bad { background: var(--bad-soft); color: var(--bad); }
.ev .dot.info { background: var(--brand-soft); color: var(--brand); }
.ev b { font-size: 13px; }
.ev p { font-size: 12.5px; color: var(--ink-2); }
.ev time { font-size: 11.5px; color: var(--muted); }

/* ================= submit */
.drop { border: 2px dashed var(--line-2); border-radius: var(--r); padding: 34px 24px; text-align: center; display: grid; justify-items: center; gap: 10px; background: var(--surface-2); cursor: pointer; transition: .2s; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop .big { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.sample { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: .15s; width: 100%; }
.sample:hover { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
.sample b { font-size: 13px; }
.sample p { font-size: 12px; color: var(--muted); }
.stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.step { display: grid; gap: 6px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); transition: .25s; }
.step .st { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; }
.step .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.step small { color: var(--muted); font-size: 12px; }
.step.run { border-color: var(--brand); background: var(--brand-soft); }
.step.run .ic { background: var(--brand); color: var(--on-brand); }
.step.done .ic { background: var(--ok); color: var(--on-brand); }
.step.fail { border-color: var(--bad); background: var(--bad-soft); }
.step.fail .ic { background: var(--bad); color: var(--on-brand); }
.progress { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin: 16px 0 4px; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-ink)); border-radius: 99px; transition: width .6s ease; }

/* ================= lookup */
.lookup-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(200px, 250px) auto; gap: 12px; align-items: center; }
.plate { display: inline-flex; align-items: stretch; border: 2px solid var(--plate-ink); border-radius: 7px; background: var(--plate); color: var(--plate-ink); font: 800 19px/1 var(--f-mono); letter-spacing: .08em; overflow: hidden; }
.plate .za { background: var(--plate-band); color: #fff; font: 800 9px/1 var(--f-body); display: grid; place-items: center; padding: 0 5px; letter-spacing: .06em; writing-mode: vertical-rl; transform: rotate(180deg); }
.plate span { padding: 8px 12px; }
.veh-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.veh-head .car { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.ring { width: 116px; height: 116px; position: relative; flex: none; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring .bgc { stroke: var(--surface-3); }
.ring .fgc { transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1); }
.ring b { font: 700 32px var(--f-display); line-height: 1; }
.ring small { position: absolute; bottom: 26px; font-size: 9.5px; font-weight: 800; color: var(--muted); letter-spacing: .14em; }
.flag { display: grid; grid-template-columns: 4px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.flag:last-child { border-bottom: 0; }
.flag .bar { border-radius: 4px; background: var(--warn); }
.flag.HIGH .bar { background: var(--bad); }
.flag code { font-size: 12px; font-weight: 700; }
.flag p { font-size: 12.5px; color: var(--ink-2); }
.terminal { background: var(--term-bg); color: var(--term-ink); border-radius: var(--r); padding: 16px 18px; font: 500 12.5px/1.75 var(--f-mono); word-break: break-all; position: relative; border: 1px solid var(--term-line); box-shadow: var(--shadow); }
.terminal .tl-h { color: var(--term-lbl); font: 800 11px var(--f-body); letter-spacing: .12em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 10px; }
.terminal .k { color: var(--term-k); } .terminal .v { color: var(--term-v); } .terminal .fl { color: var(--term-fl); } .terminal .sep { color: var(--term-lbl); }
.terminal button { background: rgba(255,255,255,.08); color: #d7e2ff; border: 1px solid rgba(255,255,255,.14); }
.terminal button:hover { background: rgba(255,255,255,.14); }
.tl-i { display: grid; grid-template-columns: 92px 22px minmax(0, 1fr); gap: 12px; position: relative; }
.tl-i .date { font: 600 12px var(--f-mono); color: var(--muted); padding-top: 13px; text-align: right; }
.tl-i .node { position: relative; display: flex; justify-content: center; }
.tl-i .node::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-i:first-child .node::before { top: 18px; }
.tl-i:last-child .node::before { bottom: calc(100% - 18px); }
.tl-i .node i { width: 14px; height: 14px; border-radius: 50%; margin-top: 14px; background: var(--brand); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); position: relative; }
.tl-i.claim .node i { background: var(--signal); }
.tl-i .body { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--surface-2); margin-bottom: 8px; display: grid; gap: 2px; }
.tl-i.claim .body { border-color: color-mix(in srgb, var(--signal) 32%, var(--line)); }
.tl-i .body b { font-size: 13px; }
.tl-i .body p { font-size: 12.5px; color: var(--ink-2); }
dl.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 13px; }
dl.kv dt { color: var(--muted); font-weight: 600; }
dl.kv dd { margin: 0; font-weight: 700; }

/* ================= case cards (hotlist) */
.case { padding: 18px; display: grid; gap: 12px; border-left: 4px solid var(--bad); }
.case .vin { font: 700 14px var(--f-mono); letter-spacing: .04em; }
.case .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.case .stats div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.case .stats b { font: 700 17px var(--f-display); display: block; font-variant-numeric: tabular-nums; }
.case .stats span { font-size: 11px; color: var(--muted); font-weight: 700; }

/* ================= overlays */
.scrim { position: fixed; inset: 0; background: rgba(6, 12, 28, .45); backdrop-filter: blur(3px); z-index: 50; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(980px, 94vw); background: var(--surface); z-index: 51; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .25s ease-out; border-left: 1px solid var(--line); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer header { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer .body { padding: 20px 24px; overflow: auto; display: grid; gap: 16px; align-content: start; }
.palette { position: fixed; top: 12vh; left: 50%; transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; z-index: 51; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .18s ease-out; }
@keyframes pop { from { transform: translate(-50%, 8px) scale(.98); opacity: 0; } }
.palette .input { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); height: 58px; box-shadow: none; }
.palette ul { list-style: none; margin: 0; padding: 8px; max-height: 360px; overflow: auto; }
.palette li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.palette li small { margin-left: auto; color: var(--muted); font-size: 12px; }
.palette li.sel { background: var(--brand-soft); color: var(--brand); }
.palette .hint { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; gap: 14px; }
.pop { position: absolute; top: 50px; right: 0; width: 390px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); z-index: 30; animation: pop2 .16s ease-out; }
@keyframes pop2 { from { transform: translateY(-6px); opacity: 0; } }
.pop header { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.pop .feed { max-height: 400px; padding: 4px 16px 12px; }
.toasts { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; z-index: 60; width: min(390px, calc(100vw - 40px)); }
.toast { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-lg); animation: tin .3s cubic-bezier(.2,.9,.3,1.2); position: relative; overflow: hidden; }
@keyframes tin { from { transform: translateY(16px) scale(.97); opacity: 0; } }
.toast .ti { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.toast.ok .ti { background: var(--ok-soft); color: var(--ok); }
.toast.bad .ti { background: var(--bad-soft); color: var(--bad); }
.toast b { font-size: 13px; display: block; }
.toast p { font-size: 12.5px; color: var(--ink-2); }
.toast .tbar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--brand); animation: shrink 6s linear forwards; }
.toast.ok .tbar { background: var(--ok); } .toast.bad .tbar { background: var(--bad); }
@keyframes shrink { from { width: 100%; } to { width: 0; } }
.toast .x { background: transparent; border: 0; color: var(--muted); cursor: pointer; padding: 2px; }

.skel { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.note .i { color: var(--brand); margin-top: 1px; }
.chart { position: relative; height: 290px; }
.arch svg { width: 100%; height: auto; display: block; min-width: 860px; }
.arch .box rect { fill: var(--surface); stroke: var(--line-2); transition: .15s; }
.arch .box:hover rect { stroke: var(--brand); fill: var(--brand-soft); }
.arch .t1 { fill: var(--ink); font: 700 13px var(--f-body); }
.arch .t2 { fill: var(--muted); font: 600 11px var(--f-body); }
.arch .lane { fill: var(--muted); font: 800 10.5px var(--f-body); letter-spacing: .1em; }
.arch .frame { fill: var(--surface-2); stroke: var(--line-2); }
.arch .edge { stroke: var(--brand); stroke-width: 2; fill: none; stroke-dasharray: 5 6; animation: dash 1.2s linear infinite; opacity: .75; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.arch .head { fill: var(--brand); opacity: .85; }

@media (max-width: 1200px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-21, .cols-12, .cols-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 980px) { .login { grid-template-columns: minmax(0, 1fr); } .login-hero { padding: 32px 24px; } .pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; } .pnode:nth-child(3)::after { display: none; } }
@media (max-width: 820px) {
  .shell, .shell.collapsed { grid-template-columns: minmax(0, 1fr); --side-w: 270px; background: var(--bg); }
  .side { position: fixed; z-index: 45; width: 270px; left: 0; transform: translateX(-100%); transition: transform .25s; }
  .shell.mobile-open .side { transform: none; box-shadow: var(--shadow-lg); }
  .shell.collapsed .side .hide-c { display: initial; }
  .topbar { padding: 10px 16px; } .content { padding: 18px 16px 48px; }
  .search-pill { width: auto; } .search-pill .lbl-t, .search-pill kbd { display: none; }
  .cols-2, .cols-4 { grid-template-columns: minmax(0, 1fr); } .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: minmax(0, 1fr); } .lookup-bar { grid-template-columns: minmax(0, 1fr); }
  .tl-i { grid-template-columns: 74px 18px minmax(0, 1fr); gap: 8px; }
  .crumbs .hide-m { display: none; }
}
.only-m { display: none !important; }
@media (max-width: 820px) { .only-m { display: inline-flex !important; } .hide-m { display: none !important; } }

.nav button svg.i { width: 20px; height: 20px; stroke-width: 2; }
.nav button.on { font-weight: 800; }


/* ===================================================================== Brevo-style layer (blue primary) */
h1 { font-weight: 600; letter-spacing: -.025em; }
h2 { font-weight: 600; letter-spacing: -.01em; }
.kpi .value { font-weight: 600; letter-spacing: -.03em; }
.card { box-shadow: none; }
.card.hover:hover { box-shadow: var(--shadow-lg); }
.btn { border-radius: 999px; font-weight: 600; }
.btn.sm { border-radius: 999px; }
.btn.icon { border-radius: 12px; }
.btn.primary { box-shadow: none; }
.btn.ghost { border-color: var(--line-2); }
.seg { border-radius: 999px; padding: 4px; background: var(--surface-3); }
.seg button { border-radius: 999px; padding: 8px 16px; font-weight: 600; }
.seg button.on { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.input { border-radius: 12px; border-color: var(--line-2); }
.badge { font-weight: 600; }
.alert, .note { border-radius: 14px; }

/* side navigation - pale blue rail, capsule active state */
.side { background: var(--side); color: var(--side-ink); border-right: 1px solid var(--side-line); padding: 20px 14px 16px; gap: 16px; }
.side .brand { gap: 10px; padding: 0 4px 0 6px; align-items: center; }
.side .brand img { height: 34px; width: 34px; border: 1px solid var(--side-line); border-radius: 10px; }
.side .brand b { color: var(--brand); font: 700 19px/1.15 var(--f-display); letter-spacing: -.03em; }
.side .brand small { color: var(--muted); font-size: 12px; }
.side .brand .collapse { margin-left: auto; background: transparent; border: 0; color: var(--side-ink); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; flex: none; }
.side .brand .collapse:hover { background: var(--side-hover); }
.side .brand .collapse svg.i { width: 22px; height: 22px; stroke-width: 2; }
.env { background: var(--side-2); border: 1px solid var(--side-line); color: var(--muted); }
.env b { color: var(--side-ink); }
.nav { gap: 4px; }
.nav .grp { color: var(--side-grp); font: 600 11.5px var(--f-body); letter-spacing: .08em; padding: 14px 16px 6px; }
.nav button { height: 54px; padding: 0 16px; gap: 16px; border-radius: 16px; color: var(--side-ink); font: 500 17px var(--f-body); letter-spacing: -.01em; }
.nav button svg.i { width: 24px; height: 24px; stroke-width: 1.9; }
.nav button:hover { background: var(--side-hover); color: var(--side-ink); }
.nav button.on { background: var(--side-on); color: var(--side-ink); font-weight: 700; box-shadow: none; }
.nav button.on::before { display: none; }
.nav button .count { font-size: 11px; }
.side .me { background: var(--side-2); border: 1px solid var(--side-line); border-radius: 16px; }
.side .me b { color: var(--side-ink); }
.side .me span { color: var(--muted); }
.side .me .btn { color: var(--side-ink); }
.side .me .btn:hover { background: var(--side-hover); color: var(--side-ink); }
.shell.collapsed { --side-w: 84px; }
.shell.collapsed .side .brand { flex-direction: column; gap: 12px; padding: 0; }
.shell.collapsed .side .brand .collapse { margin-left: 0; }
.shell.collapsed .nav button { padding: 0; justify-content: center; }
.topbar { background: color-mix(in srgb, var(--surface) 88%, transparent); }

/* control centre banner - pale accent block, like Brevo's tinted panels */
.banner { background: var(--banner-bg); color: var(--banner-ink); box-shadow: none; border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent); }
.banner::after { background: radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%); }
.banner h1 { color: var(--banner-ink); font-size: 27px; }
.banner p { color: var(--banner-sub); }
.banner .eyebrow { color: var(--brand); }
.banner .fact { background: var(--banner-pill); border: 1px solid color-mix(in srgb, var(--brand) 16%, transparent); color: var(--banner-ink); font-weight: 600; }
.banner .fact .led { background: var(--ok); }
.banner .donut b { color: var(--banner-ink); }
.banner .donut span { color: var(--banner-sub); }

/* sign-in - pale blue hero */
.login-hero { background: var(--hero-bg); color: var(--hero-ink); border-right: 1px solid var(--side-line); }
.login-hero h1 { font-weight: 700; letter-spacing: -.035em; color: var(--hero-ink); }
.login-hero h1 em { color: var(--brand); }
.login-hero .eyebrow { color: var(--brand); }
.logo-lock img { border: 1px solid var(--side-line); }
.logo-lock b { color: var(--brand); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.hero-stat { background: var(--hero-card); border: 1px solid var(--side-line); backdrop-filter: none; }
.hero-stat b { font-weight: 700; color: var(--hero-ink); }
.hero-stat span { color: var(--hero-sub); }
.login-hero .fine { color: var(--muted); }
.persona { border-radius: 16px; }
.persona:hover { transform: none; }
.mode-pill { border-radius: 999px; }
.case { border-left-width: 1px; border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); background: color-mix(in srgb, var(--bad-soft) 55%, var(--surface)); }
.pnode .orb { border-radius: 16px; }
.pnode b { font-weight: 600; }
.pnode .n { font-weight: 600; }

.who { max-width: 240px; }
td { padding: 11px 12px; }
th { padding: 10px 12px; }
.side .me .avatar, .side .me span.avatar { color: var(--on-brand); font-size: 11px; }

/* ===== IDS portal additions: import journey, monitor, onboarding, query, APIs, data flow ===== */
.badge.ch { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.kpi.click { cursor: pointer; transition: .15s; }
.kpi.click:hover { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
.sample[disabled] { opacity: .6; cursor: not-allowed; }
.sample[disabled]:hover { border-color: var(--line); box-shadow: none; }
.drawer.wide { width: min(820px, 96vw); }
.alert.ok-soft { background: var(--ok-soft); color: var(--ok); border: 1px solid transparent; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13px; }
.note.ok { background: var(--ok-soft); border-color: transparent; color: var(--ink); }
.note.ok .i { color: var(--ok); }
dl.kv.tight { grid-template-columns: minmax(90px, auto) minmax(0, 1fr); gap: 4px 12px; font-size: 12px; }
dl.kv.tight dd { font-weight: 600; overflow-wrap: anywhere; }

/* eight-stage journey */
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 4px; }
.jstep { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); transition: .25s; min-height: 74px; }
.jstep .jdot { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.jstep .jtxt { display: grid; gap: 2px; min-width: 0; }
.jstep b { font-size: 12.5px; font-weight: 700; }
.jstep small { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.jstep time { font: 600 10.5px var(--f-mono); color: var(--muted); }
.jstep.run { border-color: var(--brand); background: var(--brand-soft); }
.jstep.run .jdot { background: var(--brand); color: var(--on-brand); }
.jstep.run .spinner { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.jstep.done .jdot { background: var(--ok); color: var(--on-brand); }
.jstep.fail { border-color: var(--bad); background: var(--bad-soft); }
.jstep.fail .jdot { background: var(--bad); color: var(--on-brand); }
.jstep.skip { opacity: .45; }
.mj { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; width: 140px; margin-bottom: 3px; }
.mj i { height: 6px; border-radius: 3px; background: var(--surface-3); }
.mj i.done { background: var(--ok); }
.mj i.run { background: var(--brand); animation: pulse 1.2s infinite; }
.mj i.fail { background: var(--bad); }
.mj + small { font-size: 11.5px; }

/* value tiles */
.vtile { display: grid; gap: 6px; text-align: left; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: inherit; transition: .15s; }
.vtile:hover { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
.vtile .vi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.vtile .vi.bad { background: var(--bad-soft); color: var(--bad); }
.vtile .vt { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.vtile b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.vtile small { font-size: 12px; color: var(--muted); }
.vtile .vgo { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--brand); margin-top: 4px; }

/* templates, channels, record journey */
.tpl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; color: inherit; text-align: left; }
.tpl:hover { border-color: var(--brand); color: var(--brand); }
.tpl span { display: grid; } .tpl b { font-size: 12.5px; } .tpl small { font-size: 11.5px; color: var(--muted); }
.chan { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.chan.on { border-color: var(--brand); background: var(--brand-soft); }
.chan > .i { color: var(--brand); margin-top: 2px; }
.chan b { font-size: 13px; } .chan p { font-size: 12.5px; color: var(--ink-2); margin: 2px 0 0; }
.rj { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rjc { position: relative; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); display: grid; gap: 6px; align-content: start; }
.rjc:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 12px; color: var(--brand); font-weight: 800; z-index: 1; }
.rjc.ok { border-color: var(--ok); background: var(--ok-soft); }
.rjc > small { font-size: 11px; color: var(--muted); }
.rjh { display: flex; align-items: center; gap: 8px; } .rjh b { font-size: 13px; }
.rjh .n, .wzh .n { width: 22px; height: 22px; border-radius: 99px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-size: 11.5px; font-weight: 800; flex: none; }
.rjbad { margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--bad); background: var(--bad-soft); }
.rjbad > .row { color: var(--bad); margin-bottom: 8px; }

/* code blocks */
.code { border-radius: 14px; background: var(--term-bg); border: 1px solid var(--term-line); overflow: hidden; min-width: 0; }
.code-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--term-line); color: var(--term-lbl); font: 700 11.5px var(--f-body); letter-spacing: .02em; }
.code-h .btn { color: var(--term-v); border-color: var(--term-line); background: transparent; }
.code pre { margin: 0; padding: 14px; color: var(--term-v); font: 500 12px/1.6 var(--f-mono); white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto; }

/* monitor */
.exl { display: grid; gap: 10px; }
.exc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); border-left: 4px solid var(--line-2); }
.exc.open.sev-HIGH { border-left-color: var(--bad); }
.exc.open.sev-MEDIUM { border-left-color: var(--warn); }
.exc-main { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.exc-t p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.exh { display: grid; gap: 2px; margin-top: 6px; } .exh span { font-size: 11.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.exc-a { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 380px; }
.feedrow { padding: 12px 0; border-bottom: 1px solid var(--line); } .feedrow:last-child { border-bottom: 0; }
.hm { display: grid; grid-template-columns: repeat(14, 14px); gap: 4px; }
.hc { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: var(--surface-3); }
.hc.success { background: var(--ok); } .hc.late, .hc.recovered { background: var(--warn); } .hc.failed, .hc.missed { background: var(--bad); }
.hc.running { background: var(--brand); animation: pulse 1.2s infinite; }

/* onboarding */
.wz { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 12px; }
.wzh { display: flex; align-items: center; gap: 10px; } .wzh b { font-size: 15px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.opt input { margin-top: 3px; accent-color: var(--brand); }
.opt span { display: grid; } .opt b { font-size: 13px; } .opt small { font-size: 12px; color: var(--muted); }
.opt.sm { padding: 8px 12px; }
.cred { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface-2); }
.cred h3 { font-size: 14px; display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }

/* query & APIs */
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.qgrid .seg { width: 100%; } .qgrid .seg button { flex: 1; }
.method { display: inline-block; min-width: 46px; text-align: center; padding: 2px 6px; border-radius: 6px; font: 800 10.5px var(--f-mono); background: var(--brand-soft); color: var(--brand); }
.method.POST { background: var(--ok-soft); color: var(--ok); }
tr.dim td { opacity: .45; }
.tryrow { display: grid; grid-template-columns: minmax(200px, 320px) minmax(0, 1fr) auto; gap: 10px; }
textarea.code-in { width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; background: var(--surface-2); color: var(--ink); font-size: 12px; line-height: 1.5; resize: vertical; }
.alert-card { cursor: pointer; border-left: 4px solid var(--warn); }
.alert-card.sev-HIGH { border-left-color: var(--bad); }
.alert-card:hover { box-shadow: 0 0 0 4px var(--brand-glow); }
.rank { width: 22px; height: 22px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 11.5px; font-weight: 800; }
.hbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; min-width: 120px; }
.hbar i { height: 8px; border-radius: 4px; background: var(--signal); opacity: .8; justify-self: start; }

/* plain data-flow diagram */
.flow svg { width: 100%; height: auto; display: block; min-width: 900px; }
.flow .fb rect { fill: var(--surface); stroke: var(--line-2); }
.flow .fb.soft rect { fill: var(--surface-2); stroke-dasharray: 4 4; }
.flow .fb.bad rect { fill: var(--bad-soft); stroke: var(--bad); }
.flow .fb.core rect { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 2; }
.flow .fi { fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow .fb.bad .fi { stroke: var(--bad); }
.flow .t1 { fill: var(--ink); font: 700 13.5px var(--f-body); }
.flow .t1.big { font-size: 18px; }
.flow .t2 { fill: var(--muted); font: 600 11.5px var(--f-body); }
.flow .lane { fill: var(--muted); font: 800 10.5px var(--f-body); letter-spacing: .1em; }
.flow .fe { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 5 6; animation: dash 1.2s linear infinite; }
.flow .fe.bad { stroke: var(--bad); }
.flow .fh { fill: var(--brand); }
.flow .band { fill: var(--surface-2); stroke: var(--line); }

@media (max-width: 1200px) { .journey, .rj { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rjc::after { display: none; } .exc-main { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .journey, .rj { grid-template-columns: 1fr; } .exc { grid-template-columns: 1fr; } .exc-a { justify-content: flex-start; } .tryrow { grid-template-columns: 1fr; } }
.rj { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rjc::after { display: none; }
.rjc dl.kv.tight, .rjbad dl.kv.tight { grid-template-columns: minmax(0, 1fr); gap: 0; }
.rjc dl.kv.tight dt { font-size: 10.5px; margin-top: 5px; text-transform: none; }
.rjbad dl.kv.tight { grid-template-columns: 130px minmax(0, 1fr); gap: 2px 10px; }
.sample b { overflow-wrap: anywhere; }
@media (max-width: 820px) { .rj { grid-template-columns: 1fr; } }
/* SAIA home: needs-attention list; run report */
.attn { display: grid; gap: 8px; }
.attn-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; color: inherit; text-align: left; }
.attn-row:hover { border-color: var(--brand); }
.vtile.static { cursor: default; }
.vtile.static:hover { border-color: var(--line); box-shadow: none; }
.vtile.static .vgo { color: var(--signal); }
.cols { display: flex; flex-wrap: wrap; gap: 6px; }
.cols code { padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; }
.cols code.miss { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); font-weight: 700; }
ol.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; }
.alert.bad { display: flex; gap: 10px; align-items: flex-start; }
/* member logos in place of initials */
.avatar.logo { background: #ffffff; padding: 0; overflow: hidden; border: 1px solid var(--line); }
.avatar.logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- vehicle check: risk alert, search context ---------- */
.risk-alert { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; margin-bottom: 14px; border-radius: 16px; background: var(--bad-soft); border: 1.5px solid var(--bad); color: var(--ink); animation: pop2 .25s ease-out; }
.risk-alert > .i { width: 28px; height: 28px; color: var(--bad); flex: none; margin-top: 2px; }
.risk-alert b { color: var(--bad); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.risk-alert p { font-size: 18px; font-weight: 700; margin-top: 2px; }
.risk-alert small { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 4px; }
.searched { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin: 0 0 12px 2px; }
.searched b { color: var(--ink-2); }
.lookup-bar select { border: 0; background: transparent; font: inherit; color: var(--ink); width: 100%; outline: none; cursor: pointer; }

/* ---------- prototype role switcher ---------- */
.pop.roles { width: 360px; }
.pop.roles .feed { padding: 8px; max-height: 460px; overflow: auto; }
.role-it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 12px; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.role-it:hover { background: var(--surface-2); }
.role-it.on { background: var(--brand-soft); cursor: default; }
.role-it > div { flex: 1; min-width: 0; }
.role-it b { display: block; font-size: 13px; }
.role-it span:not(.badge):not(.avatar) { display: block; font-size: 11.5px; color: var(--muted); }

/* ---------- operator view ---------- */
.ops-stage { display: inline-flex; gap: 4px; align-items: center; font-size: 11.5px; }
.ops-stage i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.ops-stage i.d { background: var(--ok); }
.ops-stage i.r { background: var(--brand); animation: pulse 1s infinite; }
.ops-stage i.f { background: var(--bad); }
.uptime { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; height: 34px; }
.uptime i { border-radius: 3px; background: var(--ok); }
.uptime i.b { background: var(--warn); }
.comp { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.comp:last-child { border-bottom: 0; }
.comp span { color: var(--muted); font-size: 12px; }

/* ---------- fraud-first home ---------- */
.donut.fraud-total { width: auto; height: auto; min-width: 220px; }
.fraud-total .ft { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); text-align: left; }
.fraud-total .ft span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fraud-total .ft b { font-size: 34px; color: var(--bad); font-family: var(--f-display); }
.fraud-total .ft small { font-size: 12px; color: var(--muted); max-width: 220px; }
.attn-row .who > div > span { display: block; white-space: normal; overflow: visible; }
.attn-row .who { min-width: 0; flex: 1 1 auto; max-width: none; }
.attn-row .who > div { flex: 1; min-width: 0; max-width: none; }
.banner > div:first-child { flex: 1 1 0; min-width: 300px; }

/* ---------- fraud cases ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.board .col { background: var(--surface-2); border-radius: 16px; padding: 10px; min-height: 160px; }
.board .col-h { display: flex; justify-content: space-between; align-items: flex-start; padding: 6px 6px 10px; }
.board .col-h b { font-size: 13.5px; display: block; }
.board .col-h span { font-size: 11.5px; color: var(--muted); }
.board .col-h .count { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; font-weight: 700; color: var(--ink); }
.board .col-b { display: grid; gap: 8px; max-height: 620px; overflow: auto; }
.case-card { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; box-shadow: var(--shadow-sm); }
.case-card:hover { border-color: var(--brand); }
.case-card.late { border-left: 0; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 45%, transparent); }
.case-card b { font-size: 13px; line-height: 1.3; }
.case-card .sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.cico { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--bad-soft); color: var(--bad); flex: none; }
.case-head .ind { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.ring.sm { width: 72px; height: 72px; border-radius: 50%; border: 6px solid var(--bad-soft); display: grid; place-items: center; align-content: center; }
.ring.sm b { font: 700 22px var(--f-display); line-height: 1; }
.ring.sm small { font-size: 9px; font-weight: 700; color: var(--muted); }
svg.net { width: 100%; height: auto; }
svg.net .nl { stroke: var(--line-2); stroke-width: 1.5; }
svg.net .nb { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.25; }
svg.net .nb.subj { fill: var(--bad-soft); stroke: var(--bad); stroke-width: 1.5; }
svg.net .nb.own { fill: var(--brand-soft); stroke: var(--brand); }
svg.net .nt { fill: var(--ink); font-size: 12px; font-family: var(--f-body); }
svg.net .nt.b { font-weight: 700; }
i.lg { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
label.chk { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; cursor: pointer; }
label.chk input { margin-top: 3px; accent-color: var(--brand); }
label.chk.done span { color: var(--muted); text-decoration: line-through; }
label.opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
label.opt small { display: block; color: var(--muted); font-size: 12px; }
label.opt input { margin-top: 4px; accent-color: var(--brand); }
@media (max-width: 1200px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ring.sm small { position: static; }

/* ---------- Fraud engine: tabs, engine flow, investigation process ---------- */
.etabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-top: 4px; overflow-x: auto; }
.etabs button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 10px 16px 12px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; text-align: left; font: inherit; }
.etabs button span { display: flex; flex-direction: column; }
.etabs button b { font-size: 14px; color: var(--ink-2); }
.etabs button small { font-size: 11.5px; color: var(--muted); }
.etabs button:hover b { color: var(--ink); }
.etabs button.on { border-bottom-color: var(--brand); color: var(--brand); }
.etabs button.on b { color: var(--brand); }
.eflow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 6px; }
.eflow .ef-arr { display: grid; place-items: center; color: var(--muted); }
.eflow .ef-step { display: flex; flex-direction: column; gap: 4px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 16px; font: inherit; color: inherit; box-shadow: var(--shadow-sm); min-width: 0; }
.eflow .ef-step.link { cursor: pointer; }
.eflow .ef-step.link:hover { border-color: var(--brand); }
.eflow .ef-step .ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.eflow .ef-step.ok .ico { background: var(--ok-soft); color: var(--ok); }
.eflow .ef-step .lbl { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.eflow .ef-step b { font: 700 24px var(--f-display); }
.eflow .ef-step.ok b { color: var(--ok); }
.eflow .ef-step small { font-size: 11.5px; color: var(--muted); }
@media (max-width: 1100px) { .eflow { grid-template-columns: 1fr 1fr; } .eflow .ef-arr { display: none; } }
.proc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; padding-top: 16px; border-top: 1px solid var(--line); }
.proc .ps { display: flex; gap: 10px; align-items: flex-start; position: relative; padding-right: 10px; }
.proc .ps .dot { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--muted); border: 2px solid transparent; }
.proc .ps.done .dot { background: var(--ok); color: #fff; }
.proc .ps.cur .dot { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.proc .ps b { display: block; font-size: 13.5px; }
.proc .ps.cur b { color: var(--brand); }
.proc .ps small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.proc .ps time { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.proc .ps:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: 36px; right: 4px; height: 2px; background: var(--line); z-index: 0; display: none; }
@media (max-width: 900px) { .proc { grid-template-columns: 1fr; gap: 12px; } }
.next { display: flex; gap: 12px; align-items: center; background: var(--brand-soft); border-radius: 12px; padding: 12px 16px; }
.next .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.next p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink); }
.seg { flex-wrap: wrap; max-width: 100%; }
.seg button { white-space: nowrap; }
.etabs + * { margin-top: 18px; }
/* ---------- Responsibilities ---------- */
.duty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 18px; font-size: 12.5px; }
.duty .dl { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; margin-right: 2px; }
.duty .dc { background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; color: var(--ink-2); }
.duty .dc b { color: var(--ink); margin-right: 4px; }
.duty .dc.me { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.duty .dc.me b { color: var(--brand); }
.duty .dlink { border: 0; background: none; color: var(--brand); font: 700 12.5px var(--f-body); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1200px) { .cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.resp-sum .card-b { display: flex; flex-direction: column; gap: 8px; position: relative; padding-top: 18px; }
.resp-sum b { font-size: 14.5px; }
.resp-sum small { color: var(--muted); font-size: 12px; }
.resp-sum .card.me { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.resp-sum .you { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
table.resp td, table.resp th { vertical-align: top; }
table.resp th.me, table.resp td.me { background: color-mix(in srgb, var(--brand) 6%, transparent); }
table.resp tr.grp td { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--surface-2); padding-top: 10px; padding-bottom: 10px; }
table.resp .rc { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 12px; }
table.resp .rc.do { color: var(--ok); }
table.resp .rc.see { color: var(--muted); }
table.resp small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
