/* Atlas CRM — sales floor CRM
   Palette: cool paper, ink, cobalt action, live-call green, podium gold. */
:root {
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #F9FAFB;
  --ink: #161A23;
  --ink-2: #545B6B;
  --ink-3: #8B92A1;
  --line: #E3E6EB;
  --line-strong: #CDD2DA;
  --brand: #2E4BF5;
  --brand-ink: #1F37C9;
  --brand-soft: #ECEFFE;
  --live: #0FA36E;
  --live-soft: #E3F6EE;
  --gold: #E9A92B;
  --gold-soft: #FDF3DC;
  --silver: #9AA3B2;
  --bronze: #C27A45;
  --danger: #DC3F45;
  --danger-soft: #FCEBEC;
  --dialer: #161A23;
  --dialer-ink: #F4F5F7;

  --font-ui: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Bricolage Grotesque", "Figtree", ui-sans-serif, system-ui, sans-serif;

  --r-lg: 16px;
  --r-md: 10px;
  --r-sm: 6px;
  --shadow-pop: 0 1px 2px rgba(22, 26, 35, .06), 0 12px 32px -8px rgba(22, 26, 35, .18);
  --sidebar: 244px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1218;
    --surface: #171B23;
    --surface-2: #1C212A;
    --ink: #EDEFF3;
    --ink-2: #A9B0BD;
    --ink-3: #737B8A;
    --line: #262C37;
    --line-strong: #353C48;
    --brand: #5C74FF;
    --brand-ink: #8193FF;
    --brand-soft: #1F2544;
    --live: #2BC48A;
    --live-soft: #12301F;
    --gold: #F2B84A;
    --gold-soft: #3A2E14;
    --danger: #F0656A;
    --danger-soft: #3A1B1D;
    --dialer: #EDEFF3;
    --dialer-ink: #0F1218;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Boot + fatal ---------- */
.boot { min-height: 100vh; display: grid; place-content: center; gap: 14px; justify-items: center; color: var(--ink-2); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line-strong); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fatal { max-width: 520px; margin: 12vh auto; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.fatal h1 { font-family: var(--font-num); font-size: 26px; margin: 0 0 8px; letter-spacing: -0.02em; }

/* ---------- Buttons + inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 14px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.danger { color: var(--danger); border-color: var(--line-strong); }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn.block { width: 100%; }

.call-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--live-soft); color: var(--live); display: inline-grid; place-items: center;
  transition: background .15s, color .15s, transform .1s;
}
.call-btn:hover { background: var(--live); color: #fff; }
.call-btn:active { transform: scale(.94); }
.call-btn .icon { width: 17px; height: 17px; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 12.5px; }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:disabled { background: var(--surface-2); color: var(--ink-3); cursor: not-allowed; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
.error-text { color: var(--danger); font-size: 13.5px; margin: 0; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 480px) 1fr; }
.auth-form { padding: 48px clamp(24px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 28px; background: var(--surface); }
.auth-form h1 { font-family: var(--font-num); font-size: 34px; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 6px; }
.auth-form form { display: grid; gap: 14px; }
.auth-switch { font-size: 14px; color: var(--ink-2); }
.auth-switch button { background: none; border: 0; padding: 0; color: var(--brand-ink); font-weight: 600; cursor: pointer; }
.auth-side {
  position: relative; overflow: hidden; background: var(--dialer); color: var(--dialer-ink);
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(32px, 6vw, 72px);
}
.auth-side { justify-content: center; background: #0E1118; color: #F4F5F7; isolation: isolate; }
.auth-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(circle at 60% 40%, #000 20%, transparent 75%); }
.auth-glow { position: absolute; inset: -20%; z-index: -2; background:
  radial-gradient(40% 35% at 70% 30%, rgba(46,75,245,.55), transparent 70%),
  radial-gradient(35% 30% at 25% 75%, rgba(15,163,110,.35), transparent 70%),
  radial-gradient(30% 25% at 85% 85%, rgba(233,169,43,.25), transparent 70%); filter: blur(10px); }
.auth-pitch { max-width: 520px; }
.auth-eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.auth-pitch h2 { font-family: var(--font-num); font-size: clamp(32px, 3.6vw, 50px); line-height: 1.05; letter-spacing: -0.035em; margin: 18px 0 32px; }
.auth-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-feats li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(8px); }
.auth-feats li > span { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.auth-feats strong { display: block; font-size: 15px; }
.auth-feats p { margin: 3px 0 0; font-size: 13.5px; opacity: .65; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 20px;
  padding: 20px 14px; border-right: 1px solid var(--line); background: var(--surface);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; text-decoration: none; color: var(--ink); font-family: var(--font-num); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.brand-mark .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.nav { display: grid; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r-md);
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14.5px;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.nav .label-short { display: none; }
.nav-sep { height: 1px; background: var(--line); margin: 8px 6px; }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.tw-pill { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: var(--r-md); border: 1px dashed var(--line-strong); font-size: 13px; color: var(--ink-2); text-decoration: none; }
.tw-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.tw-pill.on { border-style: solid; border-color: var(--line); }
.tw-pill.on .dot { background: var(--live); box-shadow: 0 0 0 3px var(--live-soft); }
.me-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-md); }
.me-chip .who { min-width: 0; flex: 1; }
.me-chip strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-chip .who span { display: block; font-size: 12.5px; color: var(--ink-3); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 700; font-size: 13px; color: #fff; background: var(--c, var(--brand));
}
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.xl { width: 72px; height: 72px; font-size: 24px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(16px, 3vw, 36px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.topbar h1 { margin: 0; font-family: var(--font-num); font-size: 24px; letter-spacing: -0.025em; font-weight: 700; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.view { padding: 8px clamp(16px, 3vw, 36px) 120px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; }
.view > * { min-width: 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 15.5px; font-weight: 700; }
.panel-body { padding: 20px; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg button { white-space: nowrap; border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- Dashboard ---------- */
.greet h2 { margin: 0; font-family: var(--font-num); font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; line-height: 1.15; font-weight: 700; }
.greet p { margin: 6px 0 0; color: var(--ink-2); }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.strip > div { padding: 22px 24px; }
.strip > div + div { border-left: 1px solid var(--line); }
.strip .label { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.strip .big { font-size: clamp(40px, 5vw, 56px); font-weight: 800; line-height: 1; margin: 10px 0 8px; }
.strip .sub { font-size: 13.5px; color: var(--ink-3); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: 6px; height: 180px; }
.bar { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; text-align: center; }
.bar-col { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.bar-fill { width: 100%; max-width: 30px; border-radius: 6px 6px 2px 2px; background: var(--line-strong); min-height: 3px; transition: height .4s ease; }
.bar.today .bar-fill { background: var(--brand); }
.bar-val { position: absolute; bottom: calc(var(--h) + 4px); font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.bar-lbl { font-size: 11.5px; color: var(--ink-3); }

.mini-board { list-style: none; margin: 0; padding: 0; }
.mini-board li { display: grid; grid-template-columns: 22px 30px 1fr auto; align-items: center; gap: 10px; padding: 10px 20px; }
.mini-board li + li { border-top: 1px solid var(--line); }
.mini-board .r { color: var(--ink-3); font-size: 13px; }
.mini-board .n { font-weight: 800; font-size: 20px; }
.mini-board .avatar { width: 30px; height: 30px; font-size: 11.5px; }
.mini-board a { color: inherit; text-decoration: none; font-weight: 600; font-size: 14px; }
.mini-board li.me { background: var(--brand-soft); }

.queue { list-style: none; margin: 0; padding: 0; }
.queue li { display: flex; align-items: center; gap: 14px; padding: 12px 20px; }
.queue li + li { border-top: 1px solid var(--line); }
.queue .who { flex: 1; min-width: 0; }
.queue .who strong { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue .who span { font-size: 13px; color: var(--ink-3); }

/* ---------- Leads table ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search input { padding-left: 38px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr.clickable { cursor: pointer; }
table.data tbody tr.clickable:hover td { background: var(--surface-2); }
table.data .name strong { display: block; font-weight: 600; }
table.data .name span { font-size: 13px; color: var(--ink-3); }
table.data td.right, table.data th.right { text-align: right; }
table.data tr.me td { background: var(--brand-soft); }
.phone { font-variant-numeric: tabular-nums; white-space: nowrap; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.new { color: var(--brand-ink); background: var(--brand-soft); border-color: transparent; }
.status.contacted { color: var(--ink-2); }
.status.follow_up_1, .status.follow_up_2, .status.follow_up_3, .status.follow_up_5 { color: #9A6A0B; background: var(--gold-soft); border-color: transparent; }
.status.follow_up_30 { color: #6B4FD8; background: color-mix(in srgb, #6B4FD8 12%, transparent); border-color: transparent; }
.status.not_interested { color: var(--ink-3); background: var(--surface-2); }
.status.disconnected { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.status.won { color: var(--live); background: var(--live-soft); border-color: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.status.follow_up_1, .status.follow_up_2, .status.follow_up_3, .status.follow_up_5) { color: var(--gold); } :root:not([data-theme="light"]) .status.follow_up_30 { color: #A994FF; } }
:root[data-theme="dark"] :is(.status.follow_up_1, .status.follow_up_2, .status.follow_up_3, .status.follow_up_5) { color: var(--gold); }
:root[data-theme="dark"] .status.follow_up_30 { color: #A994FF; }
select.status-select { appearance: none; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; padding: 0; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }

.empty { padding: 56px 24px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.empty h3 { margin: 0; font-size: 18px; }
.empty p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.empty .actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15, 18, 24, .38); z-index: 40; animation: fade .15s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); z-index: 41; background: var(--surface);
  border-left: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: var(--shadow-pop);
  animation: slide .22s cubic-bezier(.2, .8, .2, 1);
}
.drawer-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 18px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-body { padding: 22px; overflow-y: auto; flex: 1; display: grid; gap: 22px; align-content: start; }
.drawer-foot { display: flex; gap: 8px; justify-content: space-between; padding: 14px 22px; border-top: 1px solid var(--line); }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.history li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }

/* ---------- Import ---------- */
.steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.steps li + li::before { content: ""; width: 28px; height: 1px; background: var(--line-strong); margin-right: 4px; }
.steps .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-size: 12px; }
.steps li.on { color: var(--ink); }
.steps li.on .n { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.steps li.done .n { background: var(--live); border-color: var(--live); color: #fff; }

.drop {
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: 52px 24px; text-align: center;
  display: grid; justify-items: center; gap: 10px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop .icon { width: 30px; height: 30px; color: var(--brand); }
.drop h3 { margin: 0; font-size: 18px; }
.drop p { margin: 0; color: var(--ink-2); }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.map-item { padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); display: grid; gap: 6px; background: var(--surface-2); }
.map-item .col { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-item .ex { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress > div { height: 100%; background: var(--brand); width: 0; transition: width .25s; }
.result-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.result-nums div { padding: 16px; border-radius: var(--r-md); background: var(--surface-2); }
.result-nums strong { display: block; font-family: var(--font-num); font-size: 34px; line-height: 1.1; }
.inline-opts { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }

/* ---------- Leaderboard: the memorable part ---------- */
.board-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.board-head p { margin: 0; color: var(--ink-3); font-size: 13.5px; }
.podium {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: clamp(8px, 2vw, 20px);
  padding: 32px clamp(16px, 3vw, 40px) 0; background: var(--dialer); color: var(--dialer-ink); border-radius: var(--r-lg); overflow: hidden;
}
.podium-spot { display: grid; justify-items: center; text-align: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.podium-spot .who { font-weight: 600; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-spot .dials { font-family: var(--font-num); font-weight: 800; line-height: .9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; font-size: clamp(44px, 7vw, 92px); }
.podium-spot .unit { font-size: 13px; opacity: .6; margin-top: -4px; }
.podium-spot .block {
  width: 100%; border-radius: 12px 12px 0 0; display: grid; place-items: start center; padding-top: 12px;
  font-family: var(--font-num); font-weight: 800; font-size: 22px;
  background: color-mix(in srgb, var(--dialer-ink) 9%, transparent);
}
.podium-spot.p1 .dials { color: var(--gold); font-size: clamp(56px, 9vw, 120px); }
.podium-spot.p1 .block { height: 128px; background: color-mix(in srgb, var(--gold) 26%, transparent); color: var(--gold); }
.podium-spot.p2 .block { height: 92px; }
.podium-spot.p3 .block { height: 64px; }
.podium-spot .avatar { box-shadow: 0 0 0 3px var(--dialer); }
.podium-spot.empty-spot { opacity: .35; }

/* ---------- Rep page ---------- */
.rep-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rep-hero h2 { margin: 0; font-family: var(--font-num); font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.03em; line-height: 1.1; }
.rep-hero p { margin: 4px 0 0; color: var(--ink-2); }
.rep-hero .rank-badge { margin-left: auto; text-align: right; }
.rep-hero .rank-badge strong { display: block; font-family: var(--font-num); font-size: 44px; line-height: 1; font-weight: 800; }
.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; }
.pipeline div { background: var(--surface); padding: 14px; }
.pipeline strong { display: block; font-family: var(--font-num); font-size: 26px; }
.pipeline span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }

/* ---------- Settings / Twilio wizard ---------- */
.settings { display: grid; gap: 20px; max-width: 860px; }
.wizard { list-style: none; margin: 0; padding: 0; }
.wstep { display: grid; grid-template-columns: 32px 1fr; gap: 16px; padding: 20px; }
.wstep + .wstep { border-top: 1px solid var(--line); }
.wstep .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 1px solid var(--line-strong); color: var(--ink-3); }
.wstep.current .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.wstep.done .n { background: var(--live); border-color: var(--live); color: #fff; }
.wstep h3 { margin: 4px 0 0; font-size: 15.5px; }
.wstep.locked h3 { color: var(--ink-3); }
.wstep .body { display: grid; gap: 14px; margin-top: 12px; }
.wstep .body p { margin: 0; color: var(--ink-2); max-width: 68ch; }
.wstep ol.how { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; max-width: 68ch; }
.wstep ol.how b { color: var(--ink); font-weight: 600; }
.note { padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; }
.note.warn { background: var(--gold-soft); border-color: transparent; color: var(--ink); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.option { position: relative; display: grid; gap: 4px; padding: 14px 14px 14px 42px; border: 1px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; background: var(--surface); }
.option input { position: absolute; left: 14px; top: 16px; accent-color: var(--brand); width: 16px; height: 16px; }
.option strong { font-size: 14.5px; }
.option span { font-size: 13px; color: var(--ink-2); }
.option:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-soft); }
.connected-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 20px; }
.connected-card .big-num { font-family: var(--font-num); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; }

/* ---------- Dialer ---------- */
.dialer {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50;
  width: min(640px, calc(100% - 24px)); background: var(--dialer); color: var(--dialer-ink);
  border-radius: 20px; box-shadow: var(--shadow-pop); padding: 12px 12px 12px 18px;
  animation: rise .25s cubic-bezier(.2, .8, .2, 1);
}
@keyframes rise { from { transform: translate(-50%, 16px); opacity: 0; } }
.dialer-row { display: flex; align-items: center; gap: 14px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); flex: none; box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); animation: pulse 1.6s infinite; }
.live-dot.idle { background: var(--ink-3); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.d-who { flex: 1; min-width: 0; }
.d-who strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-who span { font-size: 13px; opacity: .65; font-variant-numeric: tabular-nums; }
.d-time { font-family: var(--font-num); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.d-state { font-size: 13px; opacity: .7; }
.d-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: color-mix(in srgb, var(--dialer-ink) 12%, transparent); color: inherit; }
.d-btn:hover { background: color-mix(in srgb, var(--dialer-ink) 20%, transparent); }
.d-btn[aria-pressed="true"] { background: var(--dialer-ink); color: var(--dialer); }
.d-btn.hang { background: var(--danger); color: #fff; }
.d-btn.hang:hover { filter: brightness(1.08); }
.d-btn.hang .icon { transform: rotate(135deg); }
.outcomes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--dialer-ink) 14%, transparent); }
.outcomes p { width: 100%; margin: 0 0 4px; font-size: 13px; opacity: .7; }
.outcomes button { border: 1px solid color-mix(in srgb, var(--dialer-ink) 24%, transparent); background: transparent; color: inherit; border-radius: 999px; padding: 7px 13px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.outcomes button:hover { background: var(--dialer-ink); color: var(--dialer); }
.outcomes button.good { border-color: var(--live); }
.outcomes button.skip { margin-left: auto; border-color: transparent; opacity: .7; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 60; display: grid; gap: 8px; width: min(380px, calc(100% - 32px)); }
.toast { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--shadow-pop); font-size: 14px; animation: fade .2s; }
.toast.ok { border-left-color: var(--live); }
.toast.err { border-left-color: var(--danger); }

.skeleton { background: linear-gradient(90deg, var(--line) 0%, var(--surface-2) 50%, var(--line) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Mobile ---------- */
@media (max-width: 1080px) {
  .grid-2 { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 30; flex-direction: row;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line);
  }
  .brand, .side-foot, .nav-sep, .nav a.hide-sm { display: none; }
  .nav { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
  .nav a { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 2px; text-align: center; }
  .nav a .label-long { display: none; }
  .nav a .label-short { display: inline; }
  .hide-sm { display: none !important; }
  .view { padding-bottom: 140px; }
  .dialer { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .strip > div { padding: 16px 14px; }
  .strip .big { font-size: 30px; margin: 6px 0 4px; }
  .strip .label, .strip .sub { font-size: 12.5px; }
  .bar-val { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .result-nums { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; padding-top: 14px; padding-bottom: 12px; }
  .topbar h1 { font-size: 20px; }
  .seg button { padding: 6px 10px; font-size: 13px; }
  .podium { padding: 24px 12px 0; }
  .podium-spot .dials { font-size: 36px; }
  .podium-spot.p1 .dials { font-size: 48px; }
  .podium-spot .who { font-size: 13px; }
  .podium-spot .avatar.xl { width: 56px; height: 56px; font-size: 19px; }
  .podium-spot .avatar.lg { width: 44px; height: 44px; font-size: 15px; }
  .grid-2 > *, .strip > * { min-width: 0; }
  .rep-hero .rank-badge { margin-left: 0; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Closes + AP submitted ---------- */
.rank-by { display: flex; align-items: center; gap: 10px; }
.rank-by > span { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.podium-spot .dials.money { font-size: clamp(30px, 4.6vw, 64px); letter-spacing: -0.04em; }
.podium-spot.p1 .dials.money { font-size: clamp(38px, 6vw, 84px); }
table.data th.sorted { color: var(--ink); }
table.data td.sorted { font-size: 20px; font-weight: 800; font-family: var(--font-num); }
table.data tfoot td { border-bottom: 0; font-weight: 700; background: var(--surface-2); }
table.board-table .num { font-variant-numeric: tabular-nums; }

.scorecard { display: grid; grid-template-columns: minmax(120px, .7fr) repeat(3, minmax(0, 1fr)); }
.scorecard > div { padding: 16px 24px; border-top: 1px solid var(--line); min-width: 0; }
.scorecard > div:nth-child(-n+4) { border-top: 0; padding-top: 18px; padding-bottom: 6px; }
.scorecard > div:not(:nth-child(4n+1)) { border-left: 1px solid var(--line); }
.scorecard .sc-h { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.scorecard .sc-m { display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.scorecard .sc-v { font-family: var(--font-num); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; line-height: 1.05; overflow-wrap: anywhere; }
.scorecard .sc-v small { display: block; font-family: var(--font-ui); font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); margin-top: 4px; }
.scorecard .sc-v.xl { font-size: clamp(28px, 3.3vw, 44px); color: var(--live); }
.scorecard .sc-v.lg { font-size: clamp(24px, 2.4vw, 32px); }
.scorecard .sc-v.md { font-size: 22px; }

.panel-head.wrap { flex-wrap: wrap; align-items: flex-start; }
.head-sub { margin: 3px 0 0; font-size: 13px; }
.bars.money .bar-val { font-size: 10.5px; }
.bars.money .bar.today .bar-fill, .bars.money .bar-fill { background: color-mix(in srgb, var(--live) 38%, var(--line-strong)); }
.bars.money .bar.today .bar-fill { background: var(--live); }

.sales-list { list-style: none; margin: 0; padding: 0; }
.sales-list li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); }
.sales-list li:first-child { border-top: 0; }
.sales-list .who { flex: 1; min-width: 0; display: grid; }
.sales-list .who strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sales-list .who span { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sales-list .ap { font-family: var(--font-num); font-weight: 800; font-size: 18px; color: var(--live); }

.sale-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--live-soft); color: var(--live); flex: none; }
.sale-drawer .drawer-body { display: grid; gap: 18px; align-content: start; }
.money-field { position: relative; }
.money-field > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-family: var(--font-num); font-weight: 700; font-size: 22px; color: var(--ink-3); pointer-events: none; }
.money-field .input { height: 60px; padding-left: 34px; font-family: var(--font-num); font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.outcomes button.sale { background: var(--live); border-color: var(--live); color: #fff; }
.outcomes button.sale:hover { background: color-mix(in srgb, var(--live) 85%, #000); color: #fff; }
.money-big { color: var(--live); }

@media (max-width: 860px) {
  .scorecard { grid-template-columns: 74px repeat(3, minmax(0, 1fr)); }
  .scorecard > div { padding: 12px 10px; }
  .scorecard .sc-m { font-size: 12px; }
  .scorecard .sc-h { font-size: 12px; }
  .scorecard .sc-v.xl { font-size: 18px; }
  .scorecard .sc-v.lg { font-size: 20px; }
  .scorecard .sc-v.md { font-size: 17px; }
  .scorecard .sc-v small { font-size: 11px; }
  .rank-by > span { display: none; }
  .board-head { align-items: stretch; }
  .rank-by .seg { width: 100%; }
  .rank-by .seg button { flex: 1; }
  .rank-by { width: 100%; }
  .sales-list li { padding: 12px 14px; }
  .podium-spot .dials.money { font-size: 22px; }
  .podium-spot.p1 .dials.money { font-size: 28px; }
  table.data td.sorted { font-size: 17px; }
}
.sm-only { display: none; }
@media (max-width: 860px) {
  .lg-only { display: none; }
  .sm-only { display: inline; }
  .scorecard .sc-v.xl { font-size: 19px; }
}


/* ---------- Leaderboard v2 ---------- */
.lb-hero {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; color: #F4F5F7;
  padding: 24px clamp(16px, 3vw, 32px) 28px;
  background:
    radial-gradient(60% 70% at 50% -10%, rgba(233,169,43,.20), transparent 60%),
    radial-gradient(45% 60% at 0% 0%, rgba(46,75,245,.38), transparent 65%),
    radial-gradient(45% 60% at 100% 100%, rgba(15,163,110,.20), transparent 65%),
    #0E1118;
}
.lb-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000 20%, transparent 85%); }
.lb-hero .skeleton { background: rgba(255,255,255,.06); animation: none; }
.lb-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.lb-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.lb-pulse { width: 7px; height: 7px; border-radius: 50%; background: #2BD48F; box-shadow: 0 0 0 0 rgba(43,212,143,.6); animation: lbpulse 2s infinite; }
@keyframes lbpulse { 70% { box-shadow: 0 0 0 8px rgba(43,212,143,0); } 100% { box-shadow: 0 0 0 0 rgba(43,212,143,0); } }
.lb-top h2 { margin: 10px 0 0; font-family: var(--font-num); font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.03em; font-weight: 700; }
.lb-totals { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-total { padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); min-width: 88px; }
.lb-total span { display: block; font-size: 11.5px; opacity: .6; font-weight: 600; }
.lb-total b { font-family: var(--font-num); font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.lb-podium { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr) minmax(0, 1fr); align-items: end; gap: clamp(10px, 1.6vw, 18px); margin-top: 26px; }
.lb-card {
  position: relative; display: grid; gap: 6px; min-width: 0; padding: 20px; border-radius: 20px; color: inherit; text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s;
  --medal: linear-gradient(135deg, #F2F4F8, #9AA3B2); --medal-ink: #1B2030; --ring: #B9C0CC;
}
a.lb-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.24); }
.lb-card.p1 { padding: 26px 22px; background: linear-gradient(180deg, rgba(233,169,43,.24), rgba(233,169,43,.04) 65%); border-color: rgba(233,169,43,.45); box-shadow: 0 24px 60px -24px rgba(233,169,43,.55); --medal: linear-gradient(135deg, #FFE39A, #E9A92B); --medal-ink: #3A2600; --ring: #E9A92B; }
.lb-card.p3 { --medal: linear-gradient(135deg, #F0BE95, #C27A45); --medal-ink: #2D1606; --ring: #C27A45; }
.lb-card.empty { opacity: .45; }
.lb-card-who { display: flex; align-items: center; gap: 12px; padding-right: 40px; min-width: 0; margin-bottom: 12px; }
.lb-card .avatar.lg { width: 48px; height: 48px; font-size: 17px; }
.lb-card .avatar { box-shadow: 0 0 0 2px #0E1118, 0 0 0 4px var(--ring); }
.lb-ghost { --c: transparent; border: 1.5px dashed rgba(255,255,255,.4); }
.lb-card-name { display: grid; min-width: 0; }
.lb-card-name strong { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-card-name span { font-size: 12.5px; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-medal { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--medal); color: var(--medal-ink); font-family: var(--font-num); font-weight: 800; font-size: 14px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15), 0 4px 14px -4px rgba(0,0,0,.5); }
.lb-card-val { font-family: var(--font-num); font-weight: 800; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; font-size: clamp(36px, 4.2vw, 58px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-card-val.is-money { font-size: clamp(28px, 3.3vw, 46px); }
.lb-card.p1 .lb-card-val { font-size: clamp(44px, 5.4vw, 74px); background: linear-gradient(180deg, #FFF1C9 10%, #E9A92B 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lb-card.p1 .lb-card-val.is-money { font-size: clamp(34px, 4.2vw, 58px); }
.lb-card-unit { font-size: 12.5px; opacity: .6; font-weight: 500; }
.lb-card-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lb-card-stats span { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.07); white-space: nowrap; }
.lb-card-stats b { font-weight: 700; font-variant-numeric: tabular-nums; }

.lb-list { overflow: hidden; }
.lb-row {
  display: grid; grid-template-columns: 40px minmax(200px, 1.7fr) repeat(4, minmax(64px, .55fr)) minmax(116px, .8fr);
  align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .15s;
}
a.lb-row:hover { background: var(--surface-2); }
.lb-row.head { border-top: 0; padding-top: 14px; padding-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.lb-row.head .c.on { color: var(--ink); }
.lb-row.me { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
a.lb-row.me:hover { background: color-mix(in srgb, var(--brand-soft) 80%, var(--brand) 6%); }
.lb-row.total { background: var(--surface-2); font-weight: 700; }
.lb-rank { font-family: var(--font-num); font-weight: 700; font-size: 15px; color: var(--ink-3); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.lb-rank.r1 { background: linear-gradient(135deg, #FFE39A, #E9A92B); color: #3A2600; }
.lb-rank.r2 { background: linear-gradient(135deg, #F2F4F8, #9AA3B2); color: #1B2030; }
.lb-rank.r3 { background: linear-gradient(135deg, #F0BE95, #C27A45); color: #2D1606; }
.lb-rep { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb-name { display: grid; gap: 7px; min-width: 0; flex: 1; }
.lb-name strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-name em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--brand-ink); background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }
.lb-bar { display: block; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; max-width: 260px; }
.lb-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #8C9BFF); transform-origin: left; }
.lb-list.m-ap_submitted .lb-bar i { background: linear-gradient(90deg, #0FA36E, #5ED3A4); }
.lb-list.m-closes .lb-bar i { background: linear-gradient(90deg, #E9A92B, #FFD37A); }
.lb-list.m-contacts .lb-bar i { background: linear-gradient(90deg, #6B4FD8, #A994FF); }
.lb-list.animate .lb-bar i { animation: lbgrow .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes lbgrow { from { transform: scaleX(0); } }
.lb-sub { display: none; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row .c { text-align: right; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.lb-row .c.on { color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.lb-row.head .c { font-family: var(--font-ui); font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) { .lb-list.animate .lb-bar i, .lb-pulse { animation: none; } }

@media (max-width: 1080px) {
  .lb-row { grid-template-columns: 36px minmax(160px, 1.6fr) repeat(4, minmax(56px, .5fr)) minmax(100px, .8fr); gap: 10px; padding: 12px 14px; }
  .lb-totals .lb-total { min-width: 0; }
}
@media (max-width: 860px) {
  .lb-hero { border-radius: 20px; padding: 18px 14px 16px; }
  .lb-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .lb-total { padding: 7px 10px; }
  .lb-total b { font-size: 15px; }
  .lb-total:nth-child(5) { grid-column: span 2; }
  .lb-podium { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  .lb-card.p1 { order: -1; }
  .lb-card, .lb-card.p1 { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; padding: 12px 14px; }
  .lb-card-who { grid-row: span 2; margin: 0; padding-right: 0; }
  .lb-medal { position: static; width: 24px; height: 24px; font-size: 12px; flex: none; }
  .lb-card .avatar.lg { width: 38px; height: 38px; font-size: 14px; }
  .lb-card-val, .lb-card-val.is-money, .lb-card.p1 .lb-card-val, .lb-card.p1 .lb-card-val.is-money { font-size: 24px; text-align: right; align-self: end; }
  .lb-card-unit { text-align: right; font-size: 11px; align-self: start; }
  .lb-card-stats { display: none; }
  a.lb-card:hover { transform: none; }
  .lb-row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .lb-row .c:not(.on) { display: none; }
  .lb-row.head .lb-rank { visibility: hidden; }
  .lb-sub { display: block; }
  .lb-bar { max-width: none; }
  .lb-row .c.on { font-size: 16px; }
}

/* ---------- Modern pages (dashboard, my page, admin) ---------- */
.panel { border-radius: 20px; box-shadow: 0 1px 2px rgba(22,26,35,.04), 0 10px 30px -18px rgba(22,26,35,.16); overflow: hidden; }
.panel-head { padding: 16px 20px; }
.panel-head h2 { font-size: 16px; letter-spacing: -0.01em; }
.panel-head .head-sub { margin: 2px 0 0; font-size: 12.5px; }
.lb-loading .skeleton { margin: 0; }

.hx .lb-top { align-items: center; }
.hx-title { margin: 12px 0 0; font-family: var(--font-num); font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.035em; line-height: 1.05; font-weight: 800; }
.hx-sub { margin: 8px 0 0; font-size: 14.5px; opacity: .7; }
.hx-person { display: flex; align-items: center; gap: 18px; min-width: 0; }
.hx-person .avatar.xl { width: 76px; height: 76px; font-size: 26px; box-shadow: 0 0 0 3px #0E1118, 0 0 0 5px rgba(255,255,255,.22), 0 16px 40px -12px rgba(0,0,0,.6); }
.hx-person .hx-title { margin-top: 10px; }
.hx-rank { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); }
.hx-rank .lb-rank { width: 44px; height: 44px; font-size: 18px; color: #F4F5F7; background: rgba(255,255,255,.1); }
.hx-rank .lb-rank.r1 { color: #3A2600; } .hx-rank .lb-rank.r2 { color: #1B2030; } .hx-rank .lb-rank.r3 { color: #2D1606; }
.hx-rank b { display: block; font-family: var(--font-num); font-size: 20px; letter-spacing: -0.02em; }
.hx-rank span { font-size: 12.5px; opacity: .6; }

.hx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 16px); margin-top: 24px; }
.hx-card {
  position: relative; min-width: 0; padding: 18px 20px 16px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px);
}
.hx-card.hot { background: linear-gradient(180deg, rgba(15,163,110,.22), rgba(15,163,110,.04) 70%); border-color: rgba(43,212,143,.35); box-shadow: 0 24px 60px -28px rgba(15,163,110,.6); }
.hx-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hx-label { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.hx-chip { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.08); white-space: nowrap; }
.hx-chip b { font-weight: 700; }
.hx-val { margin-top: 14px; font-family: var(--font-num); font-weight: 800; font-size: clamp(30px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-card.hot .hx-val { background: linear-gradient(180deg, #D9FFEE 10%, #2BD48F 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-unit { margin-top: 4px; font-size: 12.5px; opacity: .6; }
.hx-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.hx-mini > div { padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.06); min-width: 0; }
.hx-mini b { display: block; font-family: var(--font-num); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-mini span { font-size: 11.5px; opacity: .6; }

/* compact leaderboard list (dashboard) */
.lb-list.mini .lb-row { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 11px 20px; }
.lb-list.mini .lb-row:first-child { border-top: 0; }
.lb-list.mini .lb-bar { max-width: none; }

/* admin members */
.adm-row { grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(58px, .5fr)) minmax(110px, .8fr) 110px; }
.adm-row a.lb-rep { color: inherit; text-decoration: none; }
.adm-row a.lb-rep:hover strong { color: var(--brand-ink); }
.adm-row .c-role .select { height: 34px; width: 100%; }
.adm-row.head .c-role { font-size: 12px; }
.adm-email { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -2px; }
.lb-list.adm .lb-row.head { background: transparent; }

/* charts */
.bars { height: 200px; gap: 8px; }
.bar-col::before { content: ""; position: absolute; bottom: 0; width: 100%; max-width: 30px; height: 100%; border-radius: 9px; background: var(--surface-2); }
.bar-fill { position: relative; border-radius: 9px; min-height: 4px; --g1: #8C9BFF; --g2: var(--brand); background: linear-gradient(180deg, color-mix(in srgb, var(--g1) 55%, transparent), color-mix(in srgb, var(--g2) 35%, transparent)); transition: height .5s cubic-bezier(.2,.8,.2,1); }
.bars .bar.today .bar-fill, .bars.money .bar.today .bar-fill { background: linear-gradient(180deg, var(--g1), var(--g2)); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--g2) 70%, transparent); }
.bars.m-dials .bar-fill { --g1: #8C9BFF; --g2: #2E4BF5; }
.bars.m-contacts .bar-fill { --g1: #BDAEFF; --g2: #6B4FD8; }
.bars.m-closes .bar-fill { --g1: #FFD98A; --g2: #E9A92B; }
.bars.m-ap_submitted .bar-fill, .bars.money .bar-fill { --g1: #6EE0B0; --g2: #0FA36E; background: linear-gradient(180deg, color-mix(in srgb, var(--g1) 55%, transparent), color-mix(in srgb, var(--g2) 35%, transparent)); }
.bar-val { z-index: 1; }
.bar-fill { animation: barup .7s cubic-bezier(.2,.8,.2,1) both; transform-origin: bottom; }
@keyframes barup { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .bar-fill { animation: none; } }

/* pipeline tiles */
.pipeline { gap: 8px; background: transparent; border-radius: 0; }
.pipeline .pipe { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; }
.pipeline .pipe::before { content: ""; display: block; width: 22px; height: 4px; border-radius: 99px; background: var(--ink-3); margin-bottom: 10px; }
.pipe.st-new::before { background: var(--brand); }
.pipe.st-contacted::before { background: #8B92A1; }
.pipe.st-follow_up_1::before, .pipe.st-follow_up_2::before, .pipe.st-follow_up_3::before, .pipe.st-follow_up_5::before { background: var(--gold); }
.pipe.st-follow_up_30::before { background: #6B4FD8; }
.pipe.st-not_interested::before { background: var(--line-strong); }
.pipe.st-disconnected::before { background: var(--danger); }
.pipeline .pipe strong { font-size: 28px; letter-spacing: -0.03em; }

.queue li { padding: 12px 20px; transition: background .15s; }
.queue li:hover { background: var(--surface-2); }

@media (max-width: 1080px) {
  .adm-row { grid-template-columns: minmax(180px, 1.8fr) repeat(4, minmax(50px, .5fr)) minmax(96px, .8fr) 96px; }
}
@media (max-width: 860px) {
  .hx .lb-top { align-items: flex-start; }
  .hx-title { font-size: 28px; }
  .hx-sub { font-size: 13.5px; }
  .hx-person { gap: 14px; }
  .hx-person .avatar.xl { width: 56px; height: 56px; font-size: 19px; }
  .hx-rank { width: 100%; padding: 8px 12px 8px 8px; }
  .hx-rank .lb-rank { width: 36px; height: 36px; font-size: 15px; }
  .hx-rank b { font-size: 16px; }
  .hx-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 18px -14px 0; padding: 0 14px 4px; scrollbar-width: none; }
  .hx-cards::-webkit-scrollbar { display: none; }
  .hx-card { scroll-snap-align: start; padding: 16px; }
  .hx-val { font-size: 34px; }
  .lb-list.mini .lb-row { padding: 11px 14px; }
  .adm-row { grid-template-columns: minmax(0, 1fr) auto 92px; }
  .adm-row .c:not(.on) { display: none; }
  .adm-row .adm-email { display: none; }
  .adm-row .c-role .select { height: 32px; font-size: 13px; }
  .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pipeline .pipe { padding: 10px; }
  .pipeline .pipe strong { font-size: 22px; }
  .bars { height: 170px; gap: 4px; }
}
.hx-rank .lb-rank.r1 { background: linear-gradient(135deg, #FFE39A, #E9A92B); }
.hx-rank .lb-rank.r2 { background: linear-gradient(135deg, #F2F4F8, #9AA3B2); }
.hx-rank .lb-rank.r3 { background: linear-gradient(135deg, #F0BE95, #C27A45); }
.lb-row.head .c.on { font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: 0; }

/* ---------- Closed & client pipeline ---------- */
.cl-head { align-items: center; }
.cl-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-search { flex: 0 1 260px; }
.cl-search input { height: 36px; }
#cl-type { width: auto; height: 36px; }

.cl-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; padding: 16px; overflow-x: auto; background: var(--surface-2); }
.cl-col { --st: var(--ink-3); min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cl-col.st-submitted { --st: var(--brand); }
.cl-col.st-underwriting { --st: #6B4FD8; }
.cl-col.st-approved { --st: var(--gold); }
.cl-col.st-issued { --st: var(--live); }
.cl-col.st-declined { --st: var(--danger); }
.cl-col.st-cancelled { --st: #8B92A1; }
.cl-col-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--st); }
.cl-col-head strong { font-size: 13.5px; }
.cl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st) 18%, transparent); }
.cl-count { font-size: 12px; font-weight: 700; color: var(--ink-3); background: var(--surface-2); border-radius: 999px; padding: 1px 7px; }
.cl-sum { margin-left: auto; font-family: var(--font-num); font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cl-cards { display: grid; gap: 8px; align-content: start; max-height: 560px; overflow-y: auto; padding: 2px; }
.cl-card {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(22,26,35,.04);
  transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; overflow: hidden;
}
.cl-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--st); opacity: .8; }
.cl-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 10px 24px -14px rgba(22,26,35,.35); }
.cl-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.cl-card-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cl-card-top strong { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-owner .avatar { width: 22px; height: 22px; font-size: 9.5px; }
.cl-ap { font-family: var(--font-num); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--live); line-height: 1; }
.cl-ap small { font-family: var(--font-ui); font-size: 11px; font-weight: 600; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.cl-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cl-tag { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cl-tag.type { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.cl-date { font-size: 11.5px; color: var(--ink-3); }
.cl-empty { font-size: 12.5px; color: var(--ink-3); text-align: center; padding: 16px 0; border: 1px dashed var(--line-strong); border-radius: 14px; }

.pstatus { --st: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: var(--st); background: color-mix(in srgb, var(--st) 12%, transparent); white-space: nowrap; }
.pstatus::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pstatus.st-submitted { --st: var(--brand); }
.pstatus.st-underwriting { --st: #6B4FD8; }
.pstatus.st-approved { --st: #B7800F; }
.pstatus.st-issued { --st: var(--live); }
.pstatus.st-declined { --st: var(--danger); }
.pstatus.st-cancelled { --st: #8B92A1; }

.cl-list .cl-row { grid-template-columns: minmax(200px, 1.6fr) minmax(120px, 1fr) minmax(130px, 1fr) minmax(100px, .7fr) minmax(110px, .7fr) minmax(100px, .6fr); }
button.lb-row { all: unset; box-sizing: border-box; display: grid; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line); cursor: pointer; width: 100%; transition: background .15s; }
button.lb-row:hover { background: var(--surface-2); }
button.lb-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.cl-list .cl-row.head { border-top: 0; }
.cl-cell { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-sub { display: none; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sales-list li { padding: 0; }
.sales-open { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 20px; transition: background .15s; }
.sales-open:hover { background: var(--surface-2); }
.sales-open .who { flex: 1; min-width: 0; display: grid; }
.sales-open .who strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sales-open .who span { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 860px) {
  .cl-tools { width: 100%; }
  .cl-search { flex: 1 1 100%; max-width: none; }
  #cl-type { flex: 1; }
  .cl-board { grid-auto-columns: 78%; padding: 12px; scroll-snap-type: x mandatory; }
  .cl-col { scroll-snap-align: start; }
  .cl-list .cl-row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; }
  .cl-list .cl-row > .cl-cell, .cl-list .cl-row > :nth-child(5), .cl-list .cl-row.head > :not(:first-child):not(.on) { display: none; }
  .cl-sub { display: block; }
  .sales-open { padding: 12px 14px; }
  .nav a { padding: 6px 0; font-size: 10.5px; }
}
.cl-cards { display: flex; flex-direction: column; }
.cl-card { flex: none; }

/* ---------- Team logins ---------- */
.add-rep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.add-rep .span-all { grid-column: 1 / -1; color: var(--ink-2); font-size: 13.5px; }
.add-rep .field[hidden] { display: none; }
.pw-field { position: relative; }
.pw-field .input { padding-right: 44px; letter-spacing: .04em; }
.pw-field .btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.cred { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cred > div { display: grid; gap: 4px; padding: 12px 14px; background: var(--surface-2); }
.cred span { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.cred code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14.5px; overflow-wrap: anywhere; user-select: all; }
.cred code.pw { font-size: 20px; font-weight: 700; letter-spacing: .06em; color: var(--brand-ink); }
.adm-row { grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(58px, .5fr)) minmax(110px, .8fr) 150px; }
.adm-row .c-role { display: flex; align-items: center; gap: 6px; }
.adm-row .c-role .select { flex: 1; min-width: 0; }
.btn.icon-only { width: 34px; height: 34px; padding: 0; justify-content: center; flex: none; }
.reset-gap { width: 34px; flex: none; }
@media (max-width: 1080px) {
  .adm-row { grid-template-columns: minmax(180px, 1.8fr) repeat(4, minmax(50px, .5fr)) minmax(96px, .8fr) 136px; }
  .add-rep { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .adm-row { grid-template-columns: minmax(0, 1fr) auto 128px; }
  .add-rep { grid-template-columns: 1fr; }
}

/* ---------- Custom lead fields ---------- */
.xf-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.xf-head h3 { margin: 0; font-size: 14px; }
.xf-head a { font-size: 13px; }
.xf-money { position: relative; }
.xf-money > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 600; pointer-events: none; }
.xf-money .input { padding-left: 26px; }
.xf-cell { white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.map-new { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--live); }
.xf-list { display: grid; }
.xf-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(120px, .8fr) minmax(130px, .7fr) 84px; gap: 12px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line); }
.xf-row.head { border-top: 0; padding-top: 12px; padding-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.xf-row .input, .xf-row .select { height: 36px; }
.xf-actions { display: flex; gap: 4px; justify-content: flex-end; }
.xf-add { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(120px, .8fr) auto; gap: 12px; align-items: end; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .xf-row { grid-template-columns: minmax(0, 1fr) 96px 64px; padding: 10px 14px; }
  .xf-row > :nth-child(3) { display: none; }
  .xf-row.head > :nth-child(3) { display: none; }
  .xf-add { grid-template-columns: 1fr; }
}

/* ---------- Carriers & products ---------- */
.opt-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt-col { display: flex; flex-direction: column; min-width: 0; }
.opt-col + .opt-col { border-left: 1px solid var(--line); }
.opt-col-head { display: flex; align-items: center; gap: 8px; padding: 14px 20px 8px; }
.opt-col-head h3 { margin: 0; font-size: 14px; }
.opt-list { display: grid; gap: 6px; padding: 4px 20px 12px; max-height: 420px; overflow-y: auto; }
.opt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px; align-items: center; }
.opt-row .input { height: 36px; }
.opt-empty { margin: 4px 0; font-size: 13px; }
.opt-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 20px 16px; margin-top: auto; border-top: 1px solid var(--line); background: var(--surface-2); }
.opt-add .input { height: 38px; }
.opt-hint { margin: -4px 0 0; font-size: 12.5px; }
@media (max-width: 860px) {
  .opt-cols { grid-template-columns: 1fr; }
  .opt-col + .opt-col { border-left: 0; border-top: 1px solid var(--line); }
  .opt-list, .opt-add, .opt-col-head { padding-left: 14px; padding-right: 14px; }
}
.status.closed { color: var(--live); background: var(--live-soft); border-color: transparent; font-weight: 700; }
.pipe.st-closed::before { background: var(--live); }

/* ---------- Removing members ---------- */
.adm-row { grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(58px, .5fr)) minmax(110px, .8fr) 190px; }
.danger-ghost { color: var(--danger); }
.danger-ghost:hover { background: var(--danger-soft); color: var(--danger); }
.danger-mark { background: var(--danger-soft); color: var(--danger); }
.btn.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger-solid:hover { background: color-mix(in srgb, var(--danger) 88%, #000); }
.former-list { list-style: none; margin: 0; padding: 0; }
.former-list li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); }
.former-list li:first-child { border-top: 0; }
.former-list .avatar { filter: grayscale(1); opacity: .7; }
.former-list .who { flex: 1; min-width: 0; display: grid; }
.former-list .who span { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1080px) {
  .adm-row { grid-template-columns: minmax(180px, 1.8fr) repeat(4, minmax(50px, .5fr)) minmax(96px, .8fr) 176px; }
}
@media (max-width: 860px) {
  .adm-row { grid-template-columns: minmax(0, 1fr) auto 166px; }
  .former-list li { padding: 12px 14px; }
}
