:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #edf2f7;
  --text: #172033;
  --muted: #6f7d92;
  --border: #dfe5ee;
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-soft: #e8efff;
  --success: #16885b;
  --success-soft: #e7f7ef;
  --warning: #b56a00;
  --warning-soft: #fff4d9;
  --danger: #c13b4a;
  --danger-soft: #fff0f2;
  --purple: #7c3aed;
  --sidebar: #111827;
  --sidebar-text: #d8dfeb;
  --sidebar-muted: #8491a4;
  --shadow: 0 12px 36px rgba(23, 32, 51, 0.08);
  --shadow-sm: 0 4px 18px rgba(23, 32, 51, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-w: 244px;
}

html.dark {
  --bg: #0d1320;
  --surface: #121a2a;
  --surface-2: #182235;
  --surface-3: #202c40;
  --text: #eef3fb;
  --muted: #98a6ba;
  --border: #26344a;
  --brand: #6c9cff;
  --brand-strong: #8ab0ff;
  --brand-soft: #1d2f55;
  --success: #57c998;
  --success-soft: #15382c;
  --warning: #f3bb5d;
  --warning-soft: #44321a;
  --danger: #ff7a8a;
  --danger-soft: #451f28;
  --purple: #a78bfa;
  --sidebar: #090f19;
  --sidebar-text: #d9e2ee;
  --sidebar-muted: #7f8ba0;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--sidebar);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  z-index: 40;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  padding: 2px 8px 22px;
}
.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
}
.brand-mark.small { width: 38px; height: 38px; border-radius: 12px; font-size: 13px; }
.brand strong { display: block; font-size: 15px; line-height: 1.15; }
.brand small { display: block; font-size: 11px; color: var(--sidebar-muted); margin-top: 3px; }
.side-nav { display: grid; gap: 6px; margin-top: 10px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  color: var(--sidebar-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: .18s ease;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: rgba(108,156,255,.16); box-shadow: inset 3px 0 0 #6c9cff; }
.nav-icon { width: 22px; text-align: center; font-size: 16px; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding: 16px 8px 0; }
.mini-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mini-user img, .avatar-fallback { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.avatar-fallback { display: grid; place-items: center; background: #26334a; color: #fff; font-weight: 800; }
.mini-user div { min-width: 0; }
.mini-user strong, .mini-user small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mini-user strong { font-size: 12px; color: #fff; }
.mini-user small { font-size: 11px; color: var(--sidebar-muted); margin-top: 2px; }
.sign-out { display: inline-block; margin-top: 11px; font-size: 12px; color: var(--sidebar-muted); text-decoration: none; }
.sign-out:hover { color: #fff; }

.main-shell { grid-column: 2; min-width: 0; }
.topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 30px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
}
.topbar-title { font-weight: 800; font-size: 15px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.icon-button:hover { background: var(--surface-2); }
.mobile-menu { display: none; }
.content { padding: 28px 30px 48px; max-width: 1660px; margin: 0 auto; }

.eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 900; }
.hero-panel, .page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero-panel { background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--brand-soft) 55%, var(--surface))); }
.hero-panel h1, .page-heading h1 { font-size: clamp(28px, 4vw, 42px); margin: 4px 0 8px; letter-spacing: -.035em; }
.hero-panel p, .page-heading p { margin: 0; color: var(--muted); max-width: 780px; line-height: 1.6; }
.hero-status { display: inline-flex; align-items: center; gap: 9px; padding: 10px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 12px; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-dot.online { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.split-heading { align-items: flex-end; }

.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.compact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.module-card {
  min-height: 180px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.module-card:hover:not(.disabled-card) { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); box-shadow: var(--shadow); }
.module-card.primary { background: linear-gradient(140deg, var(--surface), var(--brand-soft)); }
.module-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--surface-3); color: var(--brand); display: grid; place-items: center; font-size: 22px; font-weight: 900; }
.module-card.primary .module-icon { background: var(--brand); color: #fff; }
.module-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; color: var(--muted); }
.module-body h2 { margin: 5px 0 8px; font-size: 20px; }
.module-body p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 13px; }
.module-arrow { color: var(--brand); font-size: 22px; }
.disabled-card { opacity: .7; }
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.info-strip > div { background: var(--surface); padding: 17px 20px; }
.info-strip strong, .info-strip span { display: block; }
.info-strip strong { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 5px; }
.info-strip span { font-weight: 800; font-size: 13px; }

.role-pill, .status-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 6px 9px; font-size: 11px; font-weight: 900; }
.role-user { background: var(--surface-3); color: var(--muted); }
.role-manager { background: var(--brand-soft); color: var(--brand); }
.role-admin { background: color-mix(in srgb, var(--purple) 16%, var(--surface)); color: var(--purple); }
.status-active { background: var(--success-soft); color: var(--success); }
.status-disabled { background: var(--danger-soft); color: var(--danger); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  margin-bottom: 20px;
}
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-header h2 { margin: 3px 0 0; font-size: 19px; }
.muted { color: var(--muted); font-size: 12px; }
.notice { border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px; margin-bottom: 18px; font-size: 13px; }
.notice-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, var(--border)); }
.notice-danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.hidden { display: none !important; }
.empty-state { padding: 34px 20px; text-align: center; color: var(--muted); background: var(--surface-2); border-radius: var(--radius-sm); }

.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.form-grid label, .inline-edit-form label { display: grid; gap: 6px; font-size: 11px; font-weight: 800; color: var(--muted); }
input, select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 9px;
  padding: 10px 11px;
  outline: none;
}
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.check-label { display: flex !important; align-items: center; gap: 8px !important; }
.check-label input { width: auto; }
.form-actions { grid-column: 1 / -1; }
.button {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 13px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.button:hover { background: var(--surface-2); }
.primary-button { background: var(--brand); color: #fff; border-color: var(--brand); }
.primary-button:hover { background: var(--brand-strong); }
.danger-button { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); background: var(--danger-soft); }
.small-button { padding: 7px 10px; font-size: 11px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th, .data-table td { padding: 12px 11px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; font-size: 12px; }
.data-table th { color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-size: 10px; }
.data-table tr:last-child td { border-bottom: none; }
.users-table td:first-child strong, .users-table td:first-child small { display: block; }
.users-table td:first-child small { color: var(--muted); margin-top: 3px; }
.row-actions summary { cursor: pointer; color: var(--brand); font-weight: 800; }
.inline-edit-form { display: grid; grid-template-columns: 1fr 130px auto; gap: 10px; margin: 12px 0; min-width: 500px; }
.inline-actions { display: flex; align-items: end; }

/* Login */
.login-page { min-height: 100vh; background: radial-gradient(circle at top left, #1d4ed8 0, #111827 42%, #070b12 100%); display: grid; place-items: center; padding: 28px; }
.login-shell { width: min(460px, 100%); }
.login-card { background: rgba(255,255,255,.97); color: #172033; border-radius: 24px; padding: 38px; box-shadow: 0 30px 80px rgba(0,0,0,.32); }
.login-card .eyebrow { margin-top: 20px; }
.login-card h1 { font-size: 33px; margin: 7px 0 10px; letter-spacing: -.035em; }
.login-copy { color: #6f7d92; line-height: 1.6; margin: 0 0 24px; }
.google-button { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid #d8dee8; border-radius: 11px; text-decoration: none; background: #fff; color: #172033; font-weight: 800; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.google-button:hover { background: #f8fafc; }
.google-button.disabled { opacity: .45; pointer-events: none; }
.google-g { font-size: 20px; color: #4285f4; font-family: Arial, sans-serif; font-weight: 900; }
.login-hint { color: #b45309; font-size: 12px; margin: 12px 0 0; }
.security-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e3e7ee; font-size: 11px; color: #7a8698; line-height: 1.5; }

/* Dial Control */
.dial-heading { margin-bottom: 20px; }
.dial-heading h1 { margin-bottom: 5px; }
.quick-status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quick-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 999px; padding: 7px 10px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 800; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .45fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }
.stat-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.section-head h2 { margin: 3px 0 4px; font-size: 18px; }
.section-meta { color: var(--muted); font-size: 11px; }
.inline-metric { font-weight: 900; color: var(--brand); font-size: 12px; margin-top: 5px; }
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.stat-tile { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); padding: 14px 12px; min-width: 0; }
.stat-tile.alert { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.stat-label { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; min-height: 22px; }
.stat-value { font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: -.04em; margin-top: 4px; }
.sub-stats { margin-top: 11px; color: var(--muted); font-size: 11px; font-weight: 700; }
.sub-stats strong { color: var(--text); }
.stats-error { display: none; margin-top: 10px; color: var(--danger); font-size: 11px; }

.leaderboard { display: grid; gap: 9px; }
.rank-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: 11px; padding: 10px 11px; background: var(--surface-2); }
.rank-icon { font-size: 18px; }
.rank-name { min-width: 0; font-size: 12px; font-weight: 900; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rank-value { font-size: 12px; font-weight: 900; color: var(--brand); }

.control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.control-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; }
.control-card h2 { margin: 3px 0 5px; font-size: 18px; }
.control-copy { color: var(--muted); font-size: 11px; line-height: 1.5; }
.current-level-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); padding: 12px 14px; margin: 15px 0; }
.current-level { font-size: 26px; font-weight: 900; letter-spacing: -.04em; }
.current-level-meta { color: var(--muted); font-size: 10px; text-align: right; }
.level-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.level-button { min-height: 36px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 10px; font-weight: 900; cursor: pointer; }
.level-button:hover { border-color: var(--brand); color: var(--brand); }
.level-button.active-level { background: var(--brand); border-color: var(--brand); color: #fff; }
.control-status { min-height: 18px; margin-top: 10px; font-size: 10px; color: var(--muted); }
.action-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 14px; }
.action-button { border: 0; border-radius: 9px; padding: 10px 13px; color: #fff; font-weight: 900; font-size: 11px; cursor: pointer; }
.action-on { background: var(--success); }
.action-off { background: var(--danger); }
.action-neutral { background: var(--brand); }
.timeout-row { display: flex; gap: 9px; margin-top: 14px; }
.timeout-row input { max-width: 130px; }
.admin-note { margin-top: 10px; color: var(--warning); font-size: 10px; font-weight: 800; }
.locked-panel { padding: 17px; border-radius: 11px; background: var(--surface-2); color: var(--muted); font-size: 11px; border: 1px dashed var(--border); }

.hourly-panel {
  margin-top: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-soft) 24%, var(--surface)), var(--surface) 150px);
}
.hourly-panel .table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: auto;
  background: var(--surface-2);
}
.hourly-table {
  min-width: 620px;
  table-layout: fixed;
}
.hourly-table th,
.hourly-table td {
  text-align: right;
}
.hourly-table td:first-child {
  text-align: left;
  width: 16%;
}
.hourly-table th.hour-heading {
  text-align: left;
  width: 16%;
  background: var(--surface-3);
  color: var(--text);
}
.hourly-table thead tr:nth-child(2) th {
  text-align: center;
}
.hourly-table th.server-group {
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 900;
  padding-top: 11px;
  padding-bottom: 11px;
}
.hourly-table th.group-avatar {
  background: #2563eb;
  border-bottom-color: #2563eb;
}
.hourly-table th.group-live {
  background: #16885b;
  border-bottom-color: #16885b;
  border-left: 3px solid color-mix(in srgb, #16885b 65%, var(--border));
}
.hourly-table th.col-avatar {
  background: color-mix(in srgb, #2563eb 24%, var(--surface));
  color: color-mix(in srgb, #60a5fa 82%, var(--text));
}
.hourly-table td.col-avatar {
  background: color-mix(in srgb, #2563eb 10%, var(--surface));
  text-align: center;
}
.hourly-table th.col-live {
  background: color-mix(in srgb, #16885b 24%, var(--surface));
  color: color-mix(in srgb, #34d399 82%, var(--text));
}
.hourly-table td.col-live {
  background: color-mix(in srgb, #16885b 10%, var(--surface));
  text-align: center;
}
.hourly-table th.col-live:first-of-type,
.hourly-table td.col-live:first-of-type {
  border-left: 3px solid color-mix(in srgb, #16885b 55%, var(--border));
}
.hourly-table tbody tr:hover td.col-avatar {
  background: color-mix(in srgb, #2563eb 16%, var(--surface));
}
.hourly-table tbody tr:hover td.col-live {
  background: color-mix(in srgb, #16885b 16%, var(--surface));
}
.hourly-table tr.current-hour td {
  font-weight: 900;
  border-top: 2px solid color-mix(in srgb, var(--warning) 75%, var(--border));
  border-bottom: 2px solid color-mix(in srgb, var(--warning) 75%, var(--border));
}
.hourly-table tr.current-hour td:first-child {
  background: var(--warning-soft);
  color: var(--text);
  box-shadow: inset 4px 0 0 var(--warning);
}

@media (max-width: 1180px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(0,0,0,.24); }
  .sidebar.open { transform: translateX(0); }
  .main-shell { min-width: 0; }
  .mobile-menu { display: inline-grid; place-items: center; }
  .topbar { padding: 0 18px; }
  .content { padding: 20px 18px 38px; }
  .module-grid, .control-grid, .compact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-panel, .page-heading { align-items: flex-start; flex-direction: column; padding: 23px; }
  .info-strip { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar-title { display: none; }
  .role-pill { display: none; }
  .content { padding-left: 12px; padding-right: 12px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .level-grid { grid-template-columns: repeat(4, 1fr); }
  .module-card { grid-template-columns: 46px minmax(0,1fr); padding: 19px; }
  .module-arrow { display: none; }
  .module-icon { width: 46px; height: 46px; }
  .timeout-row { flex-direction: column; }
  .timeout-row input { max-width: none; }
}

/* Leads on Ytel report */
.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.report-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  min-width: 0;
}
.report-summary-card span,
.report-summary-card small,
.report-summary-card strong { display: block; }
.report-summary-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.report-summary-card strong {
  margin-top: 7px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.04em;
}
.report-summary-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.report-summary-card.available-summary {
  background: linear-gradient(145deg, var(--surface), var(--warning-soft));
  border-color: color-mix(in srgb, var(--warning) 26%, var(--border));
}
.ytel-leads-panel { overflow: hidden; }
.ytel-leads-table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: auto;
}
.ytel-leads-table {
  min-width: 1080px;
  font-variant-numeric: tabular-nums;
}
.ytel-leads-table th,
.ytel-leads-table td {
  white-space: nowrap;
  text-align: center;
}
.ytel-leads-table th:nth-child(2),
.ytel-leads-table td:nth-child(2) { text-align: left; }
.ytel-leads-table th {
  background: var(--surface-3);
  color: var(--text);
  font-weight: 900;
  position: sticky;
  top: 0;
  z-index: 2;
}
.ytel-leads-table .numeric-cell { text-align: right; }
.ytel-leads-table .list-id-cell {
  font-weight: 900;
  color: var(--brand);
}
.ytel-leads-table .list-name-cell { font-weight: 800; }
.ytel-leads-table .available-col {
  background: color-mix(in srgb, var(--warning-soft) 78%, var(--surface));
}
.ytel-leads-table th.available-col {
  background: color-mix(in srgb, var(--warning-soft) 72%, var(--surface-3));
  color: var(--warning);
}
.ytel-leads-table td.available-col strong {
  display: block;
  color: var(--text);
}
.ytel-leads-table td.available-col small {
  display: block;
  margin-top: 2px;
  color: var(--warning);
  font-size: 9px;
  font-weight: 900;
}
.ytel-leads-table tbody tr:hover td {
  background-color: color-mix(in srgb, var(--brand-soft) 30%, var(--surface));
}
.ytel-leads-table tbody tr:hover td.available-col {
  background-color: color-mix(in srgb, var(--warning-soft) 88%, var(--surface));
}
.ytel-leads-table tr.report-group-start td {
  border-top: 2px solid color-mix(in srgb, var(--brand) 35%, var(--border));
}
.empty-report-cell {
  padding: 34px !important;
  text-align: center !important;
  color: var(--muted);
}

@media (max-width: 1050px) {
  .report-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .report-summary-grid { grid-template-columns: 1fr; }
}
