/* RSmart Login Monitor v2 – data colours follow the validated reference palette (both modes selected). */
:root {
  color-scheme: light;
  --page: #eef0f4; --page-glow: radial-gradient(1200px 500px at 10% -10%, rgba(42,120,214,.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(98,80,214,.08), transparent 60%);
  --surface: #ffffff; --surface-2: #f4f5f7; --surface-3: #e9ebef; --ring: rgba(11,11,11,.08);
  --ink: #0b0b0b; --ink-2: #52514e; --muted: #85837d; --grid: #e6e5df; --axis: #c3c2b7;
  --web: #2a78d6; --mob: #eb6834; --web-soft: rgba(42,120,214,.13); --mob-soft: rgba(235,104,52,.13);
  --neutral: #c3c2b7;
  --good: #0ca30c; --good-ink: #006300; --warn: #fab219; --serious: #ec835a; --crit: #d03b3b;
  --brand-a: #2a4fd6; --brand-b: #6250d6;
  --seq-0: #eef4fd; --seq-1: #cde2fb; --seq-2: #9ec5f4; --seq-3: #6da7ec; --seq-4: #3987e5; --seq-5: #256abf; --seq-6: #184f95;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 18px rgba(16,24,40,.06);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0b0c0e; --page-glow: radial-gradient(1200px 500px at 10% -10%, rgba(57,135,229,.16), transparent 60%),
      radial-gradient(900px 500px at 100% 0%, rgba(144,133,233,.12), transparent 60%);
    --surface: #17181a; --surface-2: #1f2023; --surface-3: #292a2e; --ring: rgba(255,255,255,.08);
    --ink: #f0efec; --ink-2: #c3c2b7; --muted: #8d8b85; --grid: #2a2b2e; --axis: #3a3b3f;
    --web: #3987e5; --mob: #d95926; --web-soft: rgba(57,135,229,.20); --mob-soft: rgba(217,89,38,.20);
    --neutral: #4a4a47; --good-ink: #0ca30c;
    --seq-0: #1b2533; --seq-1: #104281; --seq-2: #184f95; --seq-3: #256abf; --seq-4: #3987e5; --seq-5: #6da7ec; --seq-6: #b7d3f6;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0b0c0e; --page-glow: radial-gradient(1200px 500px at 10% -10%, rgba(57,135,229,.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(144,133,233,.12), transparent 60%);
  --surface: #17181a; --surface-2: #1f2023; --surface-3: #292a2e; --ring: rgba(255,255,255,.08);
  --ink: #f0efec; --ink-2: #c3c2b7; --muted: #8d8b85; --grid: #2a2b2e; --axis: #3a3b3f;
  --web: #3987e5; --mob: #d95926; --web-soft: rgba(57,135,229,.20); --mob-soft: rgba(217,89,38,.20);
  --neutral: #4a4a47; --good-ink: #0ca30c;
  --seq-0: #1b2533; --seq-1: #104281; --seq-2: #184f95; --seq-3: #256abf; --seq-4: #3987e5; --seq-5: #6da7ec; --seq-6: #b7d3f6;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); background-image: var(--page-glow); background-attachment: fixed; color: var(--ink);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; min-height: 100vh; }
button, select, input { font: inherit; color: inherit; }
.hidden { display: none !important; }
.shell { max-width: 1680px; margin: 0 auto; padding: 0 22px 30px; }
.num, .tabnum { font-variant-numeric: tabular-nums; }

/* ---------------- header ---------------- */
.top { position: sticky; top: 0; z-index: 10; margin: 0 -22px; padding: 14px 22px 0;
  background: color-mix(in srgb, var(--page) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--ring); }
.top-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; box-shadow: 0 6px 18px rgba(42,79,214,.35); }
.logo.big { width: 56px; height: 56px; font-size: 30px; margin: 0 auto; }
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: .1px; }
.brand-sub { color: var(--muted); font-size: 12px; }
.live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--ring); font-size: 12.5px; color: var(--ink-2); }
.live .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); position: relative; }
.live.ok .dot { background: var(--good); }
.live.ok .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--good); opacity: 0; animation: ping 2s ease-out infinite; }
.live.err .dot { background: var(--crit); }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.controls { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ctl { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.ctl select { background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px var(--ring); border-radius: 10px; padding: 8px 10px; min-width: 200px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--ring); cursor: pointer; font-size: 16px; }
.icon-btn:hover { background: var(--surface-2); }
.tabs { display: flex; gap: 4px; margin-top: 12px; overflow-x: auto; }
.tab { border: 0; background: transparent; padding: 10px 14px; border-radius: 10px 10px 0 0; cursor: pointer; color: var(--ink-2);
  font-weight: 500; position: relative; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); }
.tab.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b)); }
.tab .cnt { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); }
.tab .cnt.alert { background: var(--crit); color: #fff; }
main { padding-top: 18px; }
.view { display: none; } .view.on { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------------- cards ---------------- */
.card { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow), inset 0 0 0 1px var(--ring); padding: 18px 20px 16px; min-width: 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-title { font-weight: 650; font-size: 15px; }
.card-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.grid2 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid2e { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.stack16 > * + * { margin-top: 16px; }
.legend { display: flex; gap: 14px; color: var(--ink-2); font-size: 12.5px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: 0 0 auto; }
.sw.web { background: var(--web); } .sw.mob { background: var(--mob); } .sw.neu { background: var(--neutral); } .sw.crit { background: var(--crit); }
.sw.line { width: 14px; height: 3px; border-radius: 2px; }

/* ---------------- hero ---------------- */
.hero { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.4fr; gap: 16px; margin-bottom: 16px; }
.hero-main { position: relative; overflow: hidden; padding: 22px 24px; color: #fff; border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-a) 0%, var(--brand-b) 100%); box-shadow: 0 14px 40px rgba(42,79,214,.32); }
.hero-main::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); }
.hero-main .lbl { font-size: 13px; opacity: .85; letter-spacing: .3px; text-transform: uppercase; }
.hero-main .big { font-size: 64px; font-weight: 700; letter-spacing: -2px; line-height: 1; margin: 8px 0 4px; }
.hero-main .of { font-size: 15px; opacity: .9; }
.hero-main .bar { height: 7px; border-radius: 4px; background: rgba(255,255,255,.22); margin-top: 14px; overflow: hidden; }
.hero-main .bar span { display: block; height: 100%; background: #fff; border-radius: 4px; transition: width .7s ease; }
.hero-main .spark { width: 100%; height: 46px; margin-top: 12px; display: block; }
.hero-main .cap { font-size: 11.5px; opacity: .8; }
.gauge-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.gauge { width: 136px; height: 136px; position: relative; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .track { fill: none; stroke: var(--surface-3); stroke-width: 12; }
.gauge .val { fill: none; stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.gauge .center { position: absolute; inset: 0; display: grid; place-content: center; }
.gauge .g-num { font-size: 28px; font-weight: 700; letter-spacing: -.5px; line-height: 1; }
.gauge .g-of { font-size: 12px; color: var(--muted); margin-top: 3px; }
.gauge-title { font-weight: 600; display: flex; align-items: center; gap: 7px; }
.gauge-foot { color: var(--muted); font-size: 12px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--ring); }
.stat .s-lbl { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.stat .s-num { font-size: 26px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; margin-top: 2px; }
.stat .s-foot { font-size: 11.5px; color: var(--muted); }
.stat.alert { box-shadow: inset 0 0 0 1.5px var(--crit); background: color-mix(in srgb, var(--crit) 10%, var(--surface-2)); }
.stat.alert .s-num { color: var(--crit); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(12,163,12,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(12,163,12,.55); } 70% { box-shadow: 0 0 0 8px rgba(12,163,12,0); } 100% { box-shadow: 0 0 0 0 rgba(12,163,12,0); } }
@media (prefers-reduced-motion: reduce) { .pulse, .live.ok .dot::after { animation: none; } }

/* ---------------- charts ---------------- */
.chart { position: relative; height: 280px; }
.chart.sm { height: 200px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.gridline { stroke: var(--grid); stroke-width: 1; }
.axis { stroke: var(--axis); stroke-width: 1; }
.tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dlabel { font-size: 11.5px; fill: var(--ink-2); font-weight: 600; }
.cross { stroke: var(--axis); stroke-width: 1; stroke-dasharray: 3 3; }
.hit { fill: transparent; cursor: crosshair; }
.tip { position: absolute; pointer-events: none; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--ring);
  border-radius: 10px; padding: 8px 11px; font-size: 12.5px; min-width: 160px; z-index: 4; }
.tip .tt { color: var(--muted); font-size: 11.5px; margin-bottom: 4px; }
.tip .tr { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.tip .tr span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.tip b { font-variant-numeric: tabular-nums; }
.empty-chart { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }

/* heatmap */
.heat { display: grid; grid-template-columns: 44px repeat(24, 1fr); gap: 3px; font-size: 11px; color: var(--muted); }
.heat .hc { aspect-ratio: 1.6 / 1; border-radius: 4px; background: var(--seq-0); position: relative; cursor: default; }
.heat .hc:hover { outline: 2px solid var(--ink); outline-offset: 1px; z-index: 2; }
.heat .hd { display: flex; align-items: center; }
.heat .hh { text-align: center; }
.heat-legend { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 11.5px; }
.heat-legend i { width: 22px; height: 10px; border-radius: 3px; display: inline-block; }

/* feed */
.feed { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 280px; }
.feed li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--grid); align-items: start; }
.feed li.new { animation: flash 1.2s ease; }
@keyframes flash { from { background: var(--web-soft); } to { background: transparent; } }
.ev-ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; color: #fff; font-weight: 700; }
.ev-ic.login { background: var(--good); } .ev-ic.logout { background: var(--muted); } .ev-ic.failed { background: var(--crit); }
.ev-main { font-size: 13px; min-width: 0; } .ev-main .who { font-weight: 600; overflow-wrap: anywhere; }
.ev-main .meta { color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.ev-time { color: var(--muted); font-size: 11.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 1px 8px; font-size: 11.5px; font-weight: 500; }
.badge.W { background: var(--web-soft); } .badge.M { background: var(--mob-soft); }
.badge .sw { width: 7px; height: 7px; border-radius: 50%; }

/* tenant cards */
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tcard { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow), inset 0 0 0 1px var(--ring); padding: 14px 16px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease; }
.tcard:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.12), inset 0 0 0 1px var(--ring); }
.tcard.sel { box-shadow: var(--shadow), inset 0 0 0 2px var(--web); }
.tc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tc-name { font-weight: 650; font-size: 15px; text-transform: capitalize; }
.tc-live { font-size: 11.5px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.tc-big { font-size: 30px; font-weight: 700; letter-spacing: -.6px; margin: 6px 0 0; }
.tc-big span { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.tc-rows { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.tc-row { display: grid; grid-template-columns: 58px 1fr 64px; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-2); }
.tc-row b { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.mbar { height: 7px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.mbar i { display: block; height: 100%; border-radius: 4px; }
.mbar i.web { background: var(--web); } .mbar i.mob { background: var(--mob); }
.tc-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.tc-spark { width: 100%; height: 30px; margin-top: 8px; display: block; }

/* tables */
.table-wrap { overflow-x: auto; }
.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.grid th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 9px 10px; border-bottom: 1px solid var(--axis); white-space: nowrap; }
.grid td { padding: 10px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
.grid tr.click { cursor: pointer; } .grid tr.click:hover td { background: var(--surface-2); }
.grid tr.sel td { background: var(--web-soft); }
.grid .num, .grid th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cov { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.cov-top { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.cov-top b { font-weight: 600; } .cov-top span { color: var(--muted); font-size: 12px; }
.stackbar { display: flex; height: 9px; border-radius: 5px; background: var(--surface-3); overflow: hidden; gap: 2px; }
.stackbar i { display: block; height: 100%; }
.stackbar i.web { background: var(--web); } .stackbar i.mob { background: var(--mob); } .stackbar i.neu { background: var(--neutral); }
.stackbar i:first-child { border-radius: 5px 0 0 5px; } .stackbar i:last-child { border-radius: 0 5px 5px 0; }
.dash { color: var(--muted); }
.fail { color: var(--crit); font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status.on i { background: var(--good); } .status.idle i { background: var(--warn); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; box-shadow: inset 0 0 0 1px var(--ring); }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 8px; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.18); }

/* bar lists */
.blist { display: flex; flex-direction: column; gap: 9px; }
.bl-row { display: grid; grid-template-columns: minmax(90px, 1.2fr) 2fr 54px; gap: 10px; align-items: center; font-size: 12.5px; }
.bl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-name small { color: var(--muted); }
.bl-bar { height: 9px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.bl-bar i { display: block; height: 100%; border-radius: 5px; background: var(--web); }
.bl-bar i.crit { background: var(--crit); } .bl-bar i.mob { background: var(--mob); }
.bl-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* alerts / insights */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; font-size: 13px; }
.banner.ok { background: color-mix(in srgb, var(--good) 12%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--good) 40%, transparent); }
.banner.crit { background: color-mix(in srgb, var(--crit) 12%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crit) 45%, transparent); }
.banner .b-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; flex: 0 0 22px; }
.banner.ok .b-ic { background: var(--good); } .banner.crit .b-ic { background: var(--crit); }
.insights { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.insight { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--ring); font-size: 13px; }
.insight b { font-size: 18px; display: block; margin-bottom: 2px; }
.insight .i-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }

.foot { color: var(--muted); font-size: 12px; line-height: 1.6; padding: 6px 4px 0; }
.foot b { color: var(--ink-2); font-weight: 600; }

/* sign-in + loading */
.modal { position: fixed; inset: 0; background: color-mix(in srgb, var(--page) 70%, transparent); backdrop-filter: blur(12px);
  display: grid; place-items: center; z-index: 30; padding: 16px; }
.modal-card { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow), inset 0 0 0 1px var(--ring);
  padding: 30px; width: 380px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.m-title { font-size: 19px; font-weight: 650; } .m-sub { color: var(--muted); font-size: 13px; }
.modal-card input { height: 44px; border-radius: 11px; border: 0; box-shadow: inset 0 0 0 1px var(--ring); background: var(--surface-2); padding: 0 12px; }
.modal-card button { height: 44px; border-radius: 11px; border: 0; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); color: #fff; font-weight: 650; cursor: pointer; }
.m-err { color: var(--crit); font-size: 12.5px; min-height: 16px; }
.loading { text-align: center; color: var(--muted); padding: 80px 0; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--web); margin: 0 auto 12px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1280px) { .hero { grid-template-columns: 1fr 1fr; } .grid2, .grid3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .shell { padding: 0 16px 20px; } .top { margin: 0 -16px; padding: 12px 16px 0; }
  .hero, .grid2e { grid-template-columns: 1fr; } .controls { margin-left: 0; width: 100%; } .ctl, .ctl select { flex: 1; min-width: 0; }
  .hero-main .big { font-size: 50px; } .heat { grid-template-columns: 34px repeat(24, 1fr); gap: 2px; font-size: 9px; }
}

/* daily reports */
.btn { border: 0; cursor: pointer; padding: 8px 14px; border-radius: 10px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #2a4fd6, #6250d6); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.btn:disabled { opacity: .6; cursor: progress; }
.lnk { color: var(--web); font-weight: 600; text-decoration: none; }
.lnk:hover { text-decoration: underline; }
.rep-msg { color: var(--crit); font-size: 12.5px; min-height: 0; }
.rep-msg:not(:empty) { margin-bottom: 10px; }
.muted { color: var(--muted); }

/* logo */
.logo-img { height: 40px; width: auto; border-radius: 10px; background: #fff; padding: 4px 8px; box-shadow: inset 0 0 0 1px var(--ring); }
.logo-img.big { height: 64px; display: block; margin: 0 auto 6px; }
/* table view */
.tv-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 14px; }
.tv-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.chip { border: 0; cursor: pointer; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--ring); font-size: 12.5px; }
.chip span { color: var(--muted); margin-left: 2px; }
.chip.on { background: var(--web); color: #fff; box-shadow: none; }
.chip.on span { color: rgba(255,255,255,.8); }
#tvSearch { min-width: 260px; padding: 8px 12px; border-radius: 10px; border: 0; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ring); color: var(--ink); }
.tv-card { margin-bottom: 16px; }
.tv-n { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.tv-wrap { max-height: 560px; overflow: auto; }
table.tv th { cursor: pointer; user-select: none; position: sticky; top: 0; background: var(--surface); z-index: 1; }
table.tv th:hover, table.tv th.sorted { color: var(--ink); }
table.tv td { padding: 8px 10px; white-space: nowrap; }
table.tv tbody tr:hover td { background: var(--surface-2); }
table.tv tr.hl td { background: color-mix(in srgb, var(--web) 12%, transparent); font-weight: 600; }
.tv-more { color: var(--muted); font-size: 12px; margin-top: 8px; }
.tv-more a { color: var(--web); }
.btn.ghost { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ring); font-weight: 500; }
@media (max-width: 700px) { #tvSearch { min-width: 0; width: 100%; } }
