/* ===========================================================================
   clickbait. Meta Hub
   Restrained, dense, neutral. Brand yellow earns its place as an accent —
   the mark's full stop, the active tab, a focus ring — and nothing else.
   =========================================================================== */

:root {
  /* warm neutrals, one hue family so nothing clashes */
  --ink:        #15130F;
  --ink-2:      #4D4740;
  --ink-3:      #8A837A;
  --ink-4:      #ADA69C;
  --line:       #E7E3DC;
  --line-2:     #F1EEE8;
  --line-3:     #F8F6F2;
  --paper:      #FFFFFF;
  --bg:         #FBFAF8;

  --accent:     #FFC400;
  --accent-ink: #6B4E00;
  --accent-bg:  #FFF8E0;

  --green:      #16704A;
  --green-bg:   #E9F4EE;
  --red:        #A52019;
  --red-bg:     #FBECEA;
  --amber:      #8A5D00;
  --amber-bg:   #FFF4D9;
  --blue:       #1A4C85;
  --blue-bg:    #ECF2F9;

  --r-sm: 6px;
  --r:    8px;
  --r-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(21, 19, 15, .04);
  --shadow:    0 1px 2px rgba(21, 19, 15, .04), 0 8px 24px -12px rgba(21, 19, 15, .10);
  --shadow-lg: 0 24px 60px -16px rgba(21, 19, 15, .22);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --nums: tabular-nums;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ------------------------------------------------------------------- brand */
.logo {
  font-weight: 760;
  font-size: 17px;
  letter-spacing: -.035em;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1;
}
.logo .dot { color: var(--accent); }

/* ------------------------------------------------------------------- shell */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 0 22px; height: 56px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; gap: 1px; }
.nav button {
  background: none; border: 0; cursor: pointer;
  padding: 6px 11px; border-radius: var(--r-sm);
  font-weight: 500; font-size: 13.5px; color: var(--ink-3);
  white-space: nowrap;
  transition: color .12s, background .12s;
}
.nav button:hover { color: var(--ink); background: var(--line-2); }
.nav button.on { color: var(--ink); font-weight: 600; background: var(--line-2); }
.spacer { flex: 1; }

main { padding: 28px 22px 72px; max-width: 1360px; margin: 0 auto; }

/* ----------------------------------------------------------------- controls */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); color: var(--ink);
  cursor: pointer; font-weight: 500; font-size: 13px;
  white-space: nowrap; text-decoration: none;
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.chip:hover { border-color: var(--ink-4); background: var(--line-3); }
.chip:active { background: var(--line-2); }
.chip.solid {
  background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 560;
}
.chip.solid:hover { background: #000; border-color: #000; }
.chip.warn { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.chip:disabled { opacity: .45; cursor: default; }
.bell { position: relative; padding: 0 10px; }
.bell .dot {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--paper);
}
select.chiplike, .topbar select {
  height: 32px; padding: 0 28px 0 11px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); font-size: 13px; font-weight: 500;
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238A837A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}

/* ------------------------------------------------------------------ typing */
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
h1 { font-size: 23px; font-weight: 680; margin: 0; letter-spacing: -.025em; line-height: 1.2; }
h2 { font-size: 15px; font-weight: 620; margin: 0 0 14px; letter-spacing: -.015em; }
h3 {
  font-size: 11px; font-weight: 600; margin: 0 0 10px;
  text-transform: uppercase; letter-spacing: .085em; color: var(--ink-3);
}
.sub { color: var(--ink-3); font-size: 13px; }
.muted { color: var(--ink-3); }
.dash { color: var(--ink-4); }
.pos { color: var(--green); font-weight: 560; }
.neg { color: var(--red); font-weight: 560; }

/* ------------------------------------------------------------------- cards */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
.card-pad { padding: 20px 22px; }
.grid { display: grid; gap: 16px; }
.grid.clients { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px 20px; }
.grid.stats > * { min-width: 0; }

/* ------------------------------------------------------------------- stats */
.stat { min-width: 0; }
.stat .k {
  font-size: 10.5px; font-weight: 600; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .075em; margin-bottom: 5px;
}
.stat .v {
  font-size: 20px; font-weight: 620; letter-spacing: -.03em;
  font-variant-numeric: var(--nums); overflow-wrap: anywhere; line-height: 1.15;
}
.stat .v.sm { font-size: 15px; }
.stat .v.text { font-size: 13.5px; font-weight: 560; letter-spacing: -.005em; line-height: 1.45; }
.stat .n { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.4; }
.stat.big .v { font-size: 27px; letter-spacing: -.035em; }

/* ------------------------------------------------------------ client cards */
.client-card {
  padding: 18px 20px; cursor: pointer;
  display: flex; flex-direction: column;
  transition: border-color .14s, box-shadow .14s, transform .14s;
}
.client-card:hover {
  border-color: var(--ink-4);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.client-card .head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.client-card .name { font-weight: 620; font-size: 15px; letter-spacing: -.02em; }
.client-card .acct {
  color: var(--ink-4); font-size: 11.5px; font-family: var(--mono);
  letter-spacing: -.02em; margin-top: 2px;
}
.client-card .grid.stats { margin-bottom: 16px; }

.fundbar {
  margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-2);
}
.fundbar .dotm { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot-ok { background: var(--green); }
.dot-low, .dot-soon { background: var(--accent); box-shadow: 0 0 0 2px var(--accent-bg); }
.dot-empty, .dot-disabled { background: var(--red); }
.dot-unknown { background: var(--ink-4); }

/* -------------------------------------------------------------------- tags */
.tag {
  font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 7px; border-radius: var(--r-sm); white-space: nowrap;
  background: var(--line-2); color: var(--ink-2);
}
.tag.d2c  { background: var(--blue-bg);  color: var(--blue); }
.tag.lead { background: var(--accent-bg); color: var(--accent-ink); }
.tag.ok   { background: var(--green-bg); color: var(--green); }
.tag.warn { background: var(--amber-bg); color: var(--amber); }
.tag.bad  { background: var(--red-bg);   color: var(--red); }
.tag.mute { background: var(--line-2);   color: var(--ink-3); }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: right; font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3);
  padding: 11px 12px; border-bottom: 1px solid var(--line);
  white-space: nowrap; background: var(--paper);
}
th:first-child, td:first-child { text-align: left; }
td {
  padding: 12px; border-bottom: 1px solid var(--line-2); text-align: right;
  font-variant-numeric: var(--nums); white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: var(--line-3); }
tr.expandable td:first-child { cursor: pointer; }
.tw { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caret { display: inline-block; width: 15px; color: var(--ink-4); font-size: 9px; }
.indent-1 td:first-child { padding-left: 34px; }
.indent-2 td:first-child { padding-left: 56px; }
.sublabel {
  font-size: 9.5px; font-weight: 600; color: var(--ink-4);
  text-transform: uppercase; letter-spacing: .06em; margin-top: 2px;
}

/* ------------------------------------------------------------------- forms */
label.f { display: block; margin-bottom: 16px; }
label.f .lb {
  display: block; font-size: 12px; font-weight: 560;
  color: var(--ink-2); margin-bottom: 6px;
}
label.f .hint { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
input[type=text], input[type=email], input[type=password], input[type=date],
input[type=number], select, textarea {
  width: 100%; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); font-size: 13.5px;
  transition: border-color .12s, box-shadow .12s;
}
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:hover, select:hover, textarea:hover { border-color: var(--ink-4); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(255, 196, 0, .22);
}
textarea { min-height: 76px; resize: vertical; line-height: 1.55; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------ modals */
.scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(21, 19, 15, .38);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 24px; overflow-y: auto;
}
.modal {
  background: var(--paper); border-radius: var(--r-lg);
  width: min(620px, 100%); max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal header {
  display: flex; align-items: center; gap: 12px; padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--paper); z-index: 2;
}
.modal header h2 { margin: 0; flex: 1; font-size: 16px; }
.modal .body { padding: 22px; }
.modal footer {
  padding: 14px 22px; border-top: 1px solid var(--line);
  display: flex; gap: 8px; justify-content: flex-end;
  position: sticky; bottom: 0; background: var(--paper); z-index: 2;
}
.x {
  background: none; border: 0; font-size: 20px; line-height: 1;
  cursor: pointer; color: var(--ink-3); padding: 2px 4px; border-radius: var(--r-sm);
}
.x:hover { color: var(--ink); background: var(--line-2); }

/* ------------------------------------------------------------------- login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.login-card { width: min(372px, 100%); padding: 30px 30px 28px; }
.login-card .logo { display: inline-block; margin-bottom: 22px; font-size: 19px; }
.gbtn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 42px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); font-weight: 560; font-size: 14px;
  text-decoration: none; color: var(--ink); cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
}
.gbtn:hover { border-color: var(--ink-4); box-shadow: var(--shadow-sm); }
.gbtn svg { flex: none; }
.or {
  display: flex; align-items: center; gap: 12px; margin: 22px 0 18px;
  color: var(--ink-4); font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
}
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* -------------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  padding: 10px 13px; font-weight: 500; font-size: 13.5px; color: var(--ink-3);
  margin-bottom: -1px; transition: color .12s, border-color .12s;
}
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }

/* ------------------------------------------------------------------- leads */
.lead-row {
  border-bottom: 1px solid var(--line-2); padding: 16px 20px;
  display: flex; gap: 16px; align-items: flex-start;
}
.lead-row:last-child { border-bottom: 0; }
.lead-row:hover { background: var(--line-3); }
.lead-main { flex: 1; min-width: 0; }
.lead-name { font-weight: 620; font-size: 14.5px; letter-spacing: -.015em; }
.lead-meta { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.lead-fields { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.pill {
  font-size: 11px; padding: 3px 8px; border-radius: var(--r-sm);
  background: var(--line-2); color: var(--ink-2);
}
.lead-actions { display: flex; gap: 6px; flex: none; }
.btn-q, .btn-d {
  border: 1px solid var(--line); background: var(--paper); border-radius: var(--r);
  padding: 7px 11px; cursor: pointer; font-weight: 540; font-size: 12.5px;
  transition: border-color .12s, background .12s, color .12s;
}
.btn-q:hover, .btn-q.on { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.btn-d:hover, .btn-d.on { background: var(--red-bg); border-color: var(--red); color: var(--red); }

/* ------------------------------------------------------------- empty/banner */
.empty { text-align: center; padding: 56px 24px; color: var(--ink-3); }
.empty .big { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.banner {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 16px; border-radius: var(--r); margin-bottom: 16px;
  font-size: 13px; line-height: 1.55; border: 1px solid transparent;
}
.banner.warn { background: var(--accent-bg); color: var(--accent-ink); border-color: #F3E3B0; }
.banner.bad  { background: var(--red-bg);   color: var(--red);   border-color: #F2D5D2; }
.banner.info { background: var(--blue-bg);  color: var(--blue);  border-color: #D7E3F1; }
.banner b { font-weight: 650; }

/* ----------------------------------------------------------- notifications */
.notif { padding: 14px 18px; border-bottom: 1px solid var(--line-2); display: flex; gap: 12px; }
.notif:last-child { border-bottom: 0; }
.notif.unread { background: var(--accent-bg); }
.notif .bar { width: 3px; border-radius: 2px; flex: none; }
.notif .bar.info { background: var(--blue); }
.notif .bar.warn { background: var(--accent); }
.notif .bar.critical { background: var(--red); }
.notif .t { font-weight: 600; font-size: 13.5px; letter-spacing: -.01em; }
.notif .b { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; }
.notif .when { font-size: 11px; color: var(--ink-4); margin-top: 5px; }

/* ------------------------------------------------------------------ toasts */
.toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r);
  box-shadow: var(--shadow-lg); font-size: 13px; max-width: 390px; line-height: 1.5;
  animation: pop .18s cubic-bezier(.2,.8,.3,1);
}
.toast.bad { background: var(--red); }
.toast.good { background: var(--green); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ----------------------------------------------------------- column picker */
.colgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px 14px; }
.colopt {
  display: flex; align-items: center; gap: 9px; padding: 7px 9px;
  border-radius: var(--r-sm); cursor: pointer; font-size: 13.5px;
}
.colopt:hover { background: var(--line-2); }
.colopt input { width: 15px; height: 15px; accent-color: var(--ink); flex: none; cursor: pointer; }

code.k { font-family: var(--mono); font-size: 12px; background: var(--line-2); padding: 2px 5px; border-radius: 4px; }
.spark { display: block; width: 100%; height: 52px; }

/* ------------------------------------------------------------------ report */
.sheet {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 40px 44px 30px; max-width: 900px; margin: 16px auto 0;
}
.sheet section { margin-top: 32px; }
.sheet-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding-bottom: 22px; border-bottom: 1.5px solid var(--ink);
}
.sheet-head .logo { display: inline-block; margin-bottom: 16px; font-size: 16px; }
.sheet-title { font-size: 27px; font-weight: 700; letter-spacing: -.035em; line-height: 1.12; }
.sheet-sub { color: var(--ink-3); font-size: 12.5px; margin-top: 6px; }
.sheet-meta { text-align: right; font-size: 11px; color: var(--ink-3); line-height: 1.8; white-space: nowrap; }
.sh {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3);
  font-weight: 650; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.headline { display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: 22px 18px; }
.hl { min-width: 0; }
.hl .k { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.hl .v {
  font-size: 24px; font-weight: 680; letter-spacing: -.035em;
  margin: 5px 0 3px; font-variant-numeric: var(--nums); overflow-wrap: anywhere;
}
.hl .n { font-size: 11.5px; color: var(--ink-3); }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 36px; }
.kvrow {
  display: flex; align-items: baseline; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--line-2); min-width: 0;
}
.kvk { flex: 1; color: var(--ink-2); font-size: 13px; min-width: 0; }
.kvv { font-weight: 620; font-variant-numeric: var(--nums); overflow-wrap: anywhere; min-width: 0; }
.kvd { font-size: 11.5px; min-width: 72px; text-align: right; }

.funnel { display: flex; flex-direction: column; gap: 9px; }
.fstep { display: grid; grid-template-columns: 168px 1fr 70px 150px; align-items: center; gap: 14px; }
.flabel { font-size: 13px; color: var(--ink-2); }
.ftrack { background: var(--line-2); border-radius: 3px; height: 16px; overflow: hidden; }
.fbar { background: var(--accent); height: 100%; border-radius: 3px; }
.fval { font-weight: 620; text-align: right; font-variant-numeric: var(--nums); }
.fdrop { font-size: 11.5px; color: var(--ink-3); }

.note { white-space: pre-wrap; font-size: 14px; line-height: 1.7; margin: 0; color: var(--ink-2); }
.foot { font-size: 11.5px; color: var(--ink-3); margin: 12px 0 0; line-height: 1.6; }
.axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-4); margin-top: 6px; }
table.rtable { font-size: 12.5px; }
table.rtable th { background: transparent; padding: 9px 10px; }
table.rtable td { padding: 9px 10px; }
table.rtable tbody tr:hover { background: none; }
.sheet-foot {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 38px;
  padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--ink-3);
}
.foot-mark { font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.foot-mark .dot { color: var(--accent); }

/* ------------------------------------------------------------------- print */
@media print {
  .topbar, .no-print, .toast-wrap, #modalHost, .tabs, .page-head { display: none !important; }
  body { background: #fff; font-size: 11px; }
  main { padding: 0; max-width: none; }
  .sheet { border: 0; box-shadow: none; border-radius: 0; margin: 0; padding: 0; max-width: none; width: 100%; }
  .sheet section { margin-top: 22px; break-inside: avoid; }
  .sheet section.break { break-before: page; }
  .sheet-title { font-size: 21px; }
  .hl .v { font-size: 18px; }
  table.rtable { font-size: 10px; }
  table.rtable th, table.rtable td { padding: 5px 7px; }
  tbody tr:hover { background: none; }
  .table-wrap { overflow: visible; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  .pos { color: #16704A !important; }
  .neg { color: #A52019 !important; }
  .logo .dot, .foot-mark .dot { color: #FFC400 !important; }
  .fbar { background: #FFC400 !important; }
  .logo .dot, .foot-mark .dot, .fbar, svg rect {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  @page { margin: 14mm 12mm; }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .fstep { grid-template-columns: 130px 1fr 60px; }
  .fdrop { display: none; }
  .sheet { padding: 26px 22px 22px; }
  .sheet-head { flex-direction: column; gap: 14px; }
  .sheet-meta { text-align: left; }
}
@media (max-width: 720px) {
  .topbar { gap: 10px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
  .topbar::-webkit-scrollbar { display: none; }
  main { padding: 18px 14px 56px; }
  .row2 { grid-template-columns: 1fr; }
  .card-pad { padding: 16px; }
  .lead-row { flex-direction: column; gap: 12px; }
  .lead-actions { width: 100%; }
  .btn-q, .btn-d { flex: 1; text-align: center; }
  .scrim { padding: 0; align-items: flex-end; }
  .modal { max-height: 92vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
}
