:root {
  /* Neutral slate surfaces (less blue), with a TCS-cyan brand accent */
  --bg: #0b0f14;
  --bg-2: #10151c;
  --panel: #151b23;
  --panel-2: #1c232d;
  --panel-3: #232c38;
  --border: #2a333f;
  --border-light: #333e4c;
  --text: #eef2f6;
  --text-muted: #9aa7b4;
  --text-dim: #69757f;

  /* Brand: TCS cyan */
  --brand: #29abe2;
  --brand-2: #1f93c6;
  --brand-soft: rgba(41, 171, 226, 0.14);
  --accent: #29abe2;
  --accent-2: #1f93c6;

  /* Category accents (used across tiles, tags, badges) */
  --c-total: #29abe2;      /* cyan */
  --c-progressive: #4f8bf0; /* blue */
  --c-agentless: #22c58a;   /* emerald */
  --c-manual: #f0a13a;      /* amber */
  --c-automated: #9b7bf0;   /* violet */

  --ok: #22c58a;
  --warn: #f0a13a;
  --danger: #ef5b52;
  --agentless: #22c58a;
  --progressive: #4f8bf0;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.36);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Topbar ---- */
.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 15, 20, 0.86);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand-icon { flex: none; display: block; filter: drop-shadow(0 2px 6px rgba(41, 171, 226, 0.35)); }
.brand-name { letter-spacing: 0.2px; font-weight: 600; }
.brand-name strong { color: var(--brand); font-weight: 800; }
.topnav { display: flex; gap: 6px; margin-left: 8px; }
.topnav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.topnav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.topnav a.is-active { background: var(--panel-2); color: var(--text); }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.user-chip { display: flex; align-items: center; gap: 8px; }
.user-name { font-size: 14px; color: var(--text); }
.link-muted { color: var(--text-muted); font-size: 13px; }
.inline { display: inline; margin: 0; }

/* ---- Layout ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 28px 24px 60px; }
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
}
.page-title { font-size: 24px; margin: 0 0 4px; font-weight: 700; }
.page-sub { color: var(--text-muted); margin: 0; font-size: 14px; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.span-2 { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
}

/* ---- Panel ---- */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.panel-title { font-size: 16px; margin: 0; font-weight: 650; }
.panel-sub { color: var(--text-muted); font-size: 13px; margin: 4px 0 16px; }

/* ---- Tables ---- */
.table-scroll { overflow-x: auto; border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table thead th {
  text-align: left;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table tbody td { padding: 11px 12px; border-bottom: 1px solid rgba(42, 58, 82, 0.5); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(32, 45, 64, 0.5); }
.table-compact tbody td { padding: 8px 12px; font-size: 13px; }
.cell-name { font-weight: 600; color: var(--text); }
.cell-time { font-variant-numeric: tabular-nums; color: var(--text); }
.cell-muted { color: var(--text-dim); }
.cell-details { color: var(--text-muted); max-width: 460px; }
.cell-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---- Tags / pills ---- */
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; text-transform: capitalize;
}
.tag-progressive { background: rgba(79, 139, 240, 0.16); color: #9dbcf7; }
.tag-agentless { background: rgba(34, 197, 138, 0.16); color: #6fe0b0; }
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.pill-ok { background: rgba(52, 201, 138, 0.16); color: #6fe0a8; }
.pill-warn { background: rgba(240, 178, 58, 0.16); color: #f3c96f; }
.pill-muted { background: var(--panel-2); color: var(--text-muted); }
.count-chip {
  margin-left: auto; background: var(--panel-2); color: var(--text-muted);
  border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600;
}
.action-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: var(--text); background: var(--panel-2);
  padding: 2px 7px; border-radius: 6px;
}

/* ---- Summary stat tiles ---- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat-tile {
  --tile: var(--text-muted);
  position: relative;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px 16px 20px;
  display: flex; flex-direction: column; gap: 6px;
  overflow: hidden;
}
/* colored accent bar down the left edge of each tile */
.stat-tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--tile);
}
.stat-head { display: flex; align-items: center; gap: 8px; }
.stat-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--tile); flex: none; }
.stat-value { font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.stat-label { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }

.stat-total { --tile: var(--c-total); }
.stat-progressive { --tile: var(--c-progressive); }
.stat-agentless { --tile: var(--c-agentless); }
.stat-manual { --tile: var(--c-manual); }
.stat-automated { --tile: var(--c-automated); }
.stat-total .stat-value { color: #fff; }
.stat-total {
  border-color: rgba(41, 171, 226, 0.4);
  background: linear-gradient(180deg, rgba(41, 171, 226, 0.10), var(--panel));
}
@media (max-width: 860px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ---- Manual start (hero card grid, start/stop) ---- */
.panel-primary { border-color: rgba(41, 171, 226, 0.42); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(41, 171, 226, 0.1) inset; }
.pill-accent { background: var(--brand-soft); color: #7fd3f4; }
.running-tally { margin-left: auto; font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.manual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.manual-card {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
  display: flex; flex-direction: column; gap: 11px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.manual-card.is-running {
  border-color: rgba(52, 201, 138, 0.55);
  box-shadow: 0 0 0 1px rgba(52, 201, 138, 0.25) inset;
}
.manual-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.manual-name { font-weight: 600; }
.manual-card-status { color: #aab7c6; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.manual-card-status .status-verb {
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
}
/* running cards: tint the timeline green; stopped: keep it clean and neutral */
.is-running .manual-card-status .status-verb { color: #5fdca8; }
.is-stopped .manual-card-status .status-verb { color: #7fb8dc; }

/* running / stopped badge */
.state-badge {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.state-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.is-stopped .state-badge { background: var(--panel); color: var(--text-muted); }
.is-stopped .state-dot { background: var(--text-dim); }
.is-running .state-badge { background: rgba(52, 201, 138, 0.16); color: #6fe0a8; }
.is-running .state-dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 201, 138, 0.7); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 201, 138, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(52, 201, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 201, 138, 0); }
}

/* toggle button reflects state: start=green, stop=red */
.btn-toggle { background: var(--ok); color: #06281c; }
.btn-toggle:hover { background: #2bb47c; }
.is-running .btn-toggle { background: var(--danger); color: #2a0a09; }
.is-running .btn-toggle:hover { background: #d84842; }

/* time-zone suffix on automated times */
.tz-suffix { color: var(--text-dim); font-size: 12px; font-weight: 600; margin-left: 2px; }

/* ---- Holidays (compact chips) ---- */
.holiday-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.holiday-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 14px; font-size: 14px;
}
.holiday-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex: none; }

/* ---- Forms ---- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.hint { color: var(--text-dim); font-weight: 400; font-size: 12px; }
.input {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; font-family: var(--font);
  width: 100%;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.2); }
.input-sm { padding: 7px 10px; font-size: 13px; }
select.input { appearance: none; }
.threshold-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.meta-line { color: var(--text-dim); font-size: 12px; margin: 2px 0 0; }
.save-status { font-size: 13px; }
.save-status.ok { color: var(--ok); }
.save-status.err { color: var(--danger); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: var(--font); transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  background: var(--panel-2); color: var(--text);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #052430; }
.btn-primary:hover { background: #34badd; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-muted); }
.btn-ghost:hover { background: var(--panel-2); color: var(--text); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-start { background: var(--ok); color: #06281c; flex: none; }
.btn-start:hover { background: #2bb47c; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn[data-busy] { opacity: 0.6; cursor: progress; }

/* ---- Reset password popover ---- */
.reset-pop summary { list-style: none; }
.reset-pop summary::-webkit-details-marker { display: none; }
.reset-form { display: flex; gap: 8px; margin-top: 8px; align-items: center; }

/* ---- Alerts ---- */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; }
.alert-error { background: rgba(240, 85, 79, 0.14); color: #f6a19d; border: 1px solid rgba(240, 85, 79, 0.3); }
.alert-success { background: rgba(52, 201, 138, 0.14); color: #7fe3b3; border: 1px solid rgba(52, 201, 138, 0.3); }

/* ---- TCS partner logo ---- */
.tcs-logo { display: block; }
.tcs-logo-topbar { height: 22px; width: auto; }
.topbar-divider { width: 1px; height: 22px; background: var(--border); flex: none; }
.tcs-logo-login { height: 30px; width: auto; margin: 0 auto 16px; }
@media (max-width: 700px) {
  .tcs-logo-topbar, .topbar-divider { display: none; }
}

/* ---- Auth pages ---- */
.auth-wrap { min-height: 82vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card {
  width: 100%; max-width: 400px; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 20px; margin-bottom: 18px; }
.auth-title { font-size: 22px; margin: 0 0 4px; text-align: center; }
.auth-sub { color: var(--text-muted); font-size: 14px; margin: 0 0 22px; text-align: center; }

/* ---- Roles ---- */
.user-role { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.4px; }
.role-admin { background: var(--brand-soft); color: #7fd3f4; }
.role-user { background: var(--panel-2); color: var(--text-muted); }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state h1 { font-size: 22px; margin: 0 0 8px; }
.empty-state p { color: var(--text-muted); margin: 0 0 20px; }

/* ---- Footer ---- */
.footer {
  max-width: 1180px; margin: 0 auto; padding: 24px; color: var(--text-dim);
  font-size: 13px; display: flex; gap: 10px; align-items: center;
}
.footer-sep { opacity: 0.5; }

/* =========================================================================
   Campaign table dashboard, RBAC, holidays, scheduling (v6)
   ========================================================================= */
.container-wide { max-width: 1400px; }
.head-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.refresh-note { color: var(--text-dim); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 1.8s infinite; }
.panel-flush { padding: 8px; }

.table-campaigns th.num, .table-campaigns td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-campaigns td.num { color: var(--text); font-weight: 600; }
.table-campaigns .cell-name { display: flex; align-items: center; gap: 9px; }
.pull-scheduled { background: rgba(79, 139, 240, 0.16); color: #9dbcf7; }
.pull-manual { background: rgba(240, 161, 58, 0.16); color: #f3c072; }
.camp-row.is-running .state-dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(34, 197, 138, 0.7); animation: pulse 1.8s infinite; }
.camp-row.is-stopped .state-dot { background: var(--text-dim); animation: none; box-shadow: none; }

/* Quick links */
.quicklinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 20px; }
.quicklink { display: flex; flex-direction: column; gap: 4px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.quicklink:hover { border-color: var(--brand); text-decoration: none; }
.quicklink-title { font-weight: 700; color: var(--text); }
.quicklink-sub { color: var(--text-muted); font-size: 13px; }

/* Forms: two-column and permission grids */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .two-col { grid-template-columns: 1fr; } }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 10px 0 8px; }
.perm-group-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-dim); font-weight: 700; margin-bottom: 8px; }
.perm-item { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14px; color: var(--text-muted); }
.perm-item input { width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 4px 18px; margin: 10px 0; }

/* Scheduling */
.switch-row { display: flex; align-items: center; gap: 10px; }
.switch-row input { width: 18px; height: 18px; accent-color: var(--brand); }
.switch-label { font-weight: 600; }
.schedule-table input[type="time"] { max-width: 140px; }
.schedule-table td.num, .schedule-table th.num { text-align: center; }

/* Role badge (arbitrary role names) */
.role-badge { background: var(--brand-soft); color: #7fd3f4; }

/* Danger ghost button */
.btn-danger-ghost { color: #f0908a; border-color: rgba(239, 91, 82, 0.4); }
.btn-danger-ghost:hover { background: rgba(239, 91, 82, 0.12); color: #f6b3ae; }
.role-form { margin: 0; }

/* =========================================================================
   Scheduled green light, pull time, add-campaign, holiday exclusions (v7)
   ========================================================================= */
/* Scheduled campaigns: steady green "always running" light */
.camp-row.is-scheduled .state-dot {
  background: var(--ok);
  box-shadow: 0 0 6px 1px rgba(34, 197, 138, 0.55);
  animation: none;
}
.pull-cell { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.pull-time { font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.control-auto { color: var(--text-dim); font-size: 12px; font-style: italic; }

/* Add-campaign choices */
.choice-row { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 14px; cursor: pointer; }
.choice input { width: 16px; height: 16px; accent-color: var(--brand); flex: none; }

/* Holidays: exclusions design */
.add-holiday-row { display: flex; gap: 12px; align-items: center; }
.add-holiday-row .input { flex: 1; }
.holiday-list-panel { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.holiday-card .panel-title { display: inline-flex; align-items: center; gap: 9px; }
.excl-block { margin-top: 6px; }
.excl-label { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-bottom: 10px; }
.excl-empty { color: var(--text-dim); font-size: 13px; margin: 4px 0 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.excl-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(240, 161, 58, 0.14); color: #f3c072;
  border: 1px solid rgba(240, 161, 58, 0.3);
  border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13px; font-weight: 500;
}
.chip-x {
  background: rgba(0,0,0,0.25); color: inherit; border: none; cursor: pointer;
  width: 18px; height: 18px; border-radius: 50%; font-size: 14px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.chip-x:hover { background: var(--danger); color: #fff; }
.excl-add { display: flex; gap: 8px; align-items: center; max-width: 480px; }
.excl-add .input { flex: 1; }

/* Danger zone / solid danger button (delete campaign) */
.btn-danger { background: var(--danger); color: #2a0a09; }
.btn-danger:hover { background: #d84842; }
.danger-zone { border-color: rgba(239, 91, 82, 0.35); margin-top: 20px; }
.danger-zone .panel-title { color: #f0908a; }

/* =========================================================================
   Role campaign scope + cleaner Add Campaign (v9)
   ========================================================================= */
.scope-choice { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.scope-list { margin-top: 8px; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.scope-list[hidden] { display: none; }
.scope-pill { margin-left: 6px; }

/* Selectable option cards (Add Campaign) */
.option-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .option-cards { grid-template-columns: 1fr; } }
.option-card {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.option-card:hover { border-color: var(--border-light); }
.option-card input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.option-card:has(input:checked) { border-color: var(--brand); background: rgba(41, 171, 226, 0.08); }
.option-card-body { display: flex; flex-direction: column; gap: 3px; }
.option-card-title { font-weight: 650; color: var(--text); }
.option-card-desc { font-size: 12.5px; color: var(--text-muted); }
.field-block { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.zoom-toggle { margin-top: 4px; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* Scheduled but outside its run window: dim the light (v10) */
.camp-row.is-scheduled.is-off .state-dot {
  background: var(--text-dim);
  box-shadow: none;
}

/* Campaign monitor (v11) */
.table-monitor td.num, .table-monitor th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-monitor .mon-remaining { font-weight: 700; color: var(--text); }
.mon-row.mon-needs { background: rgba(240, 161, 58, 0.06); }
.mon-row.mon-needs .mon-remaining { color: #f3c072; }
.mon-row.mon-ok .mon-remaining { color: #6fe0b0; }
.mon-row.mon-idle .mon-remaining { color: var(--text-dim); }
.table-monitor .cell-actions { gap: 6px; }
.table-monitor .reset-form { flex-wrap: wrap; align-items: center; }
.table-monitor .reset-form .hint { align-self: center; }

/* Monitor totals: 3-up summary (v12) */
.stat-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 620px) { .stat-row-3 { grid-template-columns: 1fr; } }

/* Version footer + changelog (v13) */
.footer-version { color: var(--brand); font-weight: 600; }
.changelog { display: flex; flex-direction: column; gap: 14px; }
.release { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.release-current { border-color: rgba(41, 171, 226, 0.4); }
.release-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.release-ver { font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.release-title { font-weight: 650; color: var(--text); }
.release-date { margin-left: auto; color: var(--text-dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.release-list { margin: 0; padding-left: 20px; color: var(--text-muted); font-size: 14px; }
.release-list li { margin: 5px 0; }

/* Monitor explanatory note (v14) */
.monitor-note { color: var(--text-muted); font-size: 13px; margin: -8px 0 18px; }
.monitor-note code { background: var(--panel-2); padding: 1px 6px; border-radius: 6px; font-size: 12px; }

/* Monitor apply-all row (v16) */
.apply-all-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.apply-all-row .field { max-width: 120px; }

/* Monitor passive banner + mono key field (v17) */
.mon-banner { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: var(--surface-2, #12203a); border: 1px solid var(--border, #26334d); color: var(--text-muted, #b8c4d8); font-size: 14px; line-height: 1.5; }
.mon-banner strong { color: var(--text, #eaf0fa); }
.mon-banner a { color: var(--accent, #6ea8fe); text-decoration: none; white-space: nowrap; }
.mon-banner a:hover { text-decoration: underline; }
.input.mono, input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
