/*
 * A&H Partners (2026-12-01). The look the user approved for the CRM /affiliates admin, on a phone first:
 * a white page; white rounded cards with a hairline edge and a soft neutral shadow; compact type; 36 px controls;
 * grey pills. Light only.
 * Breakpoints: 640 (link rows go side by side), 760 (top tabs replace the bottom bar), 900 (list rows become
 * table rows), 1024 (the dashboard becomes a 12-column grid).
 */

:root {
  --ink: #111111;
  --ink2: #3a3a3c;
  --ink3: #6e6e73;
  --ink4: #a1a1a6;
  --line: #ededee;
  --soft: #f2f2f3;
  --row: #f7f7f8;
  --hov: #e9e9ec;
  --edge: #e4e4e8;
  --green: #167236;
  --green-bar: #1b873c;
  --mint: #e6f4ea;
  --orange: #b4460c;
  --peach: #fdeee4;
  --hold-bar: #e9a46c;
  --red: #b42318;
  --rose: #fceae9;
  --blue: #2457d4;
  --sky: #eaf0fb;
  --violet: #6b3fc4;
  --lilac: #f1ecfb;
  --elev-1: 0 0 0 1px var(--edge), 0 1px 2px rgba(16, 24, 40, .05), 0 4px 12px -4px rgba(16, 24, 40, .08);
  --elev-2: 0 0 0 1px var(--edge), 0 2px 6px rgba(16, 24, 40, .06), 0 28px 64px -18px rgba(16, 24, 40, .32);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ctl: 36px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: var(--ink);
  font: 14px/1.45 var(--sans);
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1[tabindex="-1"]:focus, main:focus { outline: none; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.m2 { color: var(--ink2); }
.m3 { color: var(--ink3); }
.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ── skip link, mock bar, toast ─────────────────────────────────────────── */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  height: var(--ctl); padding: 0 14px; border: 0; border-radius: 999px;
  background: #111; color: #fff; font-size: 13px; font-weight: 500; cursor: pointer;
}
.skip:focus { top: 12px; }

.mockbar { background: var(--peach); color: #6e2e0c; font-size: 12.5px; box-shadow: inset 0 -1px 0 #f6dac6; }
.mockbar summary { max-width: 1120px; margin: 0 auto; padding: 7px 16px; cursor: pointer; }
.mlinks { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-bottom: 9px; }
.mlinks a { color: #6e2e0c; font-weight: 600; }
.mlinks b { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 50;
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 18px;
  background: #111; color: #fff; font-size: 13.5px; text-align: center;
  box-shadow: 0 12px 32px -10px rgba(16, 24, 40, .45);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { padding: 24px 16px; text-align: center; }

/* ── layout ─────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 640px; }
body.has-bnav { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.center { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.phead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 20px 0 12px; }
.phead h1 { font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.phead .sub { font-size: 13px; color: var(--ink3); }
.gap { height: 10px; }

/* ── header ─────────────────────────────────────────────────────────────── */
.top { padding-top: 12px; }
.bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-height: 40px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: -.02em;
}
.mark {
  width: 30px; height: 30px; flex: none; border-radius: 50%; display: inline-grid; place-items: center;
  background: #111; color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: 0; line-height: 1;
}
.mark.xl { width: 52px; height: 52px; font-size: 16px; }
.tabs { display: none; }
.idcard { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; }
.idt { flex: 1; min-width: 0; }
.nm { font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; }
.since { display: none; font-size: 12px; color: var(--ink3); line-height: 1.35; text-align: right; }
.since b { color: var(--ink); font-weight: 500; }
.note { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.note.warn { background: var(--peach); color: #6e2e0c; }
.note .ic { margin-top: 1px; }

/* ── bottom bar (phone) ─────────────────────────────────────────────────── */
.bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 -1px 0 var(--edge);
}
.bnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 52px; border-radius: 12px; color: var(--ink3); text-decoration: none;
  font-size: 10.5px; font-weight: 500; line-height: 1.1; text-align: center;
}
.bnav a.on { color: var(--ink); font-weight: 600; }
.bnav a.on .ic { stroke-width: 2.2; }

/* ── surfaces ───────────────────────────────────────────────────────────── */
.card { min-width: 0; padding: 16px; border-radius: 20px; background: #fff; box-shadow: var(--elev-1); }
.ch { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ch h2 { flex: 1; font-size: 14.5px; font-weight: 600; color: var(--ink2); letter-spacing: -.01em; }
.va { padding: 4px 2px; border-radius: 6px; color: var(--ink3); font-size: 13px; text-decoration: none; }
.va:hover { color: var(--ink); text-decoration: underline; }
.foot { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--ink3); }
.empty { padding: 12px 2px; font-size: 13.5px; color: var(--ink3); }
.err { margin-top: 10px; font-size: 13px; color: var(--red); }
.hint { margin-top: 10px; font-size: 12.5px; color: var(--ink3); }
.nudge { margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--orange); }

/* ── controls ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: var(--ctl); padding: 0 15px; border: 0; border-radius: 999px;
  background: var(--soft); color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover { background: var(--hov); }
.btn .ic { width: 17px; height: 17px; }
.btn.sm { padding: 0 12px; font-size: 13px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn.wide { width: 100%; }
.btn.dark { background: #111; color: #fff; }
.btn.dark:hover { background: #2c2c2e; }
.btn.google { background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1px #dadce0; }
.btn.google:hover { background: #f8f9fa; }
.btn .g { width: 18px; height: 18px; flex: none; }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: var(--ctl); padding: 0 13px;
  border: 0; border-radius: 999px; background: var(--soft); color: var(--ink2);
  font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer;
}
.chip:hover { background: var(--hov); }
.chip i { font-style: normal; font-size: 11.5px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.chip.on { background: #111; color: #fff; }
.chip.on i { color: #b5b5ba; }

/* ── pills, code, avatar ────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap;
}
.pill.sm { height: 22px; padding: 0 8px; font-size: 11.5px; }
.p-gray { background: var(--soft); color: var(--ink3); }
.p-blue { background: var(--sky); color: var(--blue); }
.p-violet { background: var(--lilac); color: var(--violet); }
.p-orange { background: var(--peach); color: var(--orange); }
.p-green { background: var(--mint); color: var(--green); }
.p-red { background: var(--rose); color: var(--red); }

.code {
  display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 2px 0 10px; border-radius: 999px;
  background: var(--soft); font: 500 12px/1 var(--mono); letter-spacing: .01em; white-space: nowrap;
}
.code-copy {
  width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
  display: inline-grid; place-items: center; background: transparent; color: var(--ink3); cursor: pointer;
}
.code-copy:hover { background: var(--hov); color: var(--ink); }
.code-copy .ic { width: 14px; height: 14px; }

.av {
  --h: 200;
  width: 32px; height: 32px; flex: none; border-radius: 50%; display: inline-grid; place-items: center;
  background: hsl(var(--h) 70% 94%); color: hsl(var(--h) 55% 30%);
  font-size: 11.5px; font-weight: 600; line-height: 1; letter-spacing: 0;
}
.av.lg { width: 44px; height: 44px; font-size: 14.5px; }

/* ── sign-in, problems, invite ──────────────────────────────────────────── */
.signin { width: 100%; max-width: 400px; padding: 28px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.signin h1 { margin-top: 14px; font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.signin .lead { margin-top: 8px; color: var(--ink2); }
.signin > .btn { margin-top: 20px; }
.signin .stack { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.envnote { margin-top: 16px; }

.invite { margin-top: 16px; padding: 20px; }
.invite h1 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.invite .lead { margin-top: 6px; color: var(--ink2); }
.invite h2 { margin: 20px 0 2px; font-size: 14.5px; font-weight: 600; color: var(--ink2); }
.invite .btn.lg { margin-top: 14px; }
.terms { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--row); font-size: 13px; }
.terms summary { cursor: pointer; font-weight: 500; }
.terms ul { margin-top: 8px; padding-left: 18px; color: var(--ink2); line-height: 1.5; }
.terms li + li { margin-top: 4px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: #111; cursor: pointer; }

/* ── dashboard ──────────────────────────────────────────────────────────── */
.links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lk { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: var(--row); }
.lk-t { flex: 1; min-width: 0; }
.lk .t { font-size: 13.5px; font-weight: 600; }
.url { margin-top: 2px; font: 12.5px/1.4 var(--mono); color: var(--ink2); overflow-wrap: anywhere; }
.lk-a { display: flex; gap: 8px; }
.lk-a .btn { flex: 1; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { min-width: 0; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: var(--elev-1); }
.tile .k { font-size: 12.5px; color: var(--ink3); }
.tile .v {
  margin-top: 6px; font-size: 22px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15;
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile .s { margin-top: 3px; font-size: 12px; color: var(--ink3); }

.cbar { display: flex; gap: 3px; height: 12px; border-radius: 999px; overflow: hidden; background: var(--soft); }
.cbar i { display: block; flex-basis: 0; min-width: 4px; }
.c-paid { background: #111; }
.c-appr { background: var(--green-bar); }
.c-hold { background: var(--hold-bar); }
.legend { list-style: none; padding: 0; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.legend b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.dot { width: 9px; height: 9px; flex: none; border-radius: 50%; }
.nextpay {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px;
  padding: 10px 12px; border-radius: 12px; background: var(--row); font-size: 13.5px;
}
.nextpay span { color: var(--ink3); }

.rlist, .llist, .clist, .plist, .plans { list-style: none; padding: 0; }
.rrow { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.rrow:first-child { border-top: 0; padding-top: 2px; }
.who { min-width: 0; }
.who .t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .s { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; font-size: 12px; color: var(--ink3); }
.amt { text-align: right; line-height: 1.2; }
.amt b { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.amt span { font-size: 11.5px; color: var(--ink3); }

/* ── lists ──────────────────────────────────────────────────────────────── */
.card.list { padding-top: 10px; padding-bottom: 14px; }
.more { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 12px; }
.end { padding-top: 12px; text-align: center; font-size: 12px; color: var(--ink3); }
.ierr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--rose); color: var(--red); font-size: 13.5px; }
.ierr p { flex: 1; min-width: 180px; }
.ierr .btn { background: #fff; color: var(--ink); }

/* My leads: a card per lead on a phone, a table row from 900 px. */
.lhead { display: none; }
.lrow {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 4px;
  grid-template-areas: "av who earn" "av st st" "av prod prod" "av join life" "av hold hold";
  padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px;
}
.lrow:first-child { border-top: 0; }
.lrow > .av { grid-area: av; align-self: start; }
.c-who { grid-area: who; min-width: 0; }
.c-who .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-who .s { font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .c-st { grid-area: st; }
.lrow .c-prod { grid-area: prod; min-width: 0; font-size: 12.5px; color: var(--ink2); }
.lrow .c-prod.none { display: none; }
.c-join { grid-area: join; font-size: 12px; color: var(--ink3); }
.c-life { grid-area: life; text-align: right; font-size: 12px; color: var(--ink3); }
.c-earn { grid-area: earn; align-self: start; display: flex; flex-direction: column-reverse; align-items: flex-end; line-height: 1.2; }
.c-earn b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.c-earn .lbl { font-size: 11px; color: var(--ink3); }
.c-holdnote { grid-area: hold; font-size: 12px; font-weight: 500; color: var(--orange); }
.c-earn.zero b, .c-life.zero { color: var(--ink3); font-weight: 400; }
.lrow .lbl { color: var(--ink3); }

/* Commissions */
.chead { display: none; }
.crow {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 4px;
  grid-template-areas: "lead lead amt" "prod prod date" "st note note";
  padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px;
}
.crow:first-child { border-top: 0; }
.crow .c-lead { grid-area: lead; min-width: 0; }
.crow .c-lead .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow .c-prod { grid-area: prod; min-width: 0; color: var(--ink2); font-size: 12.5px; }
.crow .c-date { grid-area: date; text-align: right; font-size: 12px; color: var(--ink3); white-space: nowrap; }
.crow .c-st { grid-area: st; }
.crow .c-amt { grid-area: amt; text-align: right; }
.crow .c-amt b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.crow .c-note { grid-area: note; min-width: 0; font-size: 12px; color: var(--ink3); }
.crow.rev .c-amt b { color: var(--ink3); text-decoration: line-through; }

/* Payouts */
.bigamt { font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.next .m2 { margin-top: 2px; font-size: 13px; }
.minbar { height: 8px; margin-top: 12px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.minbar i { display: block; height: 100%; border-radius: 999px; background: var(--green-bar); }
.prow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 6px;
  grid-template-areas: "per amt" "st ref";
  padding: 12px 0; border-top: 1px solid var(--line);
}
.prow:first-child { border-top: 0; padding-top: 2px; }
.p-per { grid-area: per; min-width: 0; }
.p-per .t { font-weight: 600; }
.p-per .s { font-size: 12px; color: var(--ink3); }
.p-st { grid-area: st; }
.p-ref { grid-area: ref; text-align: right; font: 12px var(--mono); color: var(--ink3); white-space: nowrap; }
.p-amt { grid-area: amt; text-align: right; }
.p-amt b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Profile */
.kvs { display: flex; flex-direction: column; }
.kv { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.kv:first-child { border-top: 0; padding-top: 0; }
.kv dt { color: var(--ink3); }
.kv dd { min-width: 0; overflow-wrap: anywhere; }
.plans li { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.plans li:first-child { border-top: 0; padding-top: 2px; }
.plans .t { font-weight: 600; }
.plans .s { font-size: 12px; color: var(--ink3); }
.plans .rate { font-size: 13px; color: var(--ink2); }
.signout-row { display: flex; padding: 4px 0 12px; }

/* ── loading skeletons ──────────────────────────────────────────────────── */
.sk {
  display: block; border-radius: 8px;
  background: linear-gradient(90deg, #efeff1 25%, #f7f7f8 45%, #efeff1 65%); background-size: 300% 100%;
  animation: sk 1.3s ease-in-out infinite;
}
.sk.round { border-radius: 50%; }
.sk.mx { margin: 12px auto 0; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } .toast { transition: none; } }
.skrow { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; }
.skcol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }

/* ── 640 px: link rows side by side ─────────────────────────────────────── */
@media (min-width: 640px) {
  .lk { flex-direction: row; align-items: center; gap: 16px; }
  .lk-a .btn { flex: none; }
  .plans li { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
  .plans .rate { max-width: 60%; text-align: right; }
}

/* ── 760 px: top tabs, no bottom bar ────────────────────────────────────── */
@media (min-width: 760px) {
  .wrap { padding: 0 24px; }
  .card { padding: 18px 20px; }
  .tabs { display: flex; gap: 2px; margin-left: auto; padding: 3px; border-radius: 999px; background: var(--soft); }
  .tab {
    display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px;
    color: var(--ink2); font-size: 13.5px; text-decoration: none; white-space: nowrap;
  }
  .tab:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }
  .tab.on { background: #111; color: #fff; }
  .bnav { display: none; }
  body.has-bnav { padding-bottom: 40px; }
  .toast { bottom: 24px; }
  .since { display: block; }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .prow { grid-template-columns: minmax(0, 1.4fr) 150px 150px 110px; grid-template-areas: "per st ref amt"; }
  .p-ref { text-align: left; }
  .phead { margin-top: 24px; }
  .invite { padding: 26px 28px; }
}

/* ── 900 px: table rows ─────────────────────────────────────────────────── */
@media (min-width: 900px) {
  .lhead, .lrow { grid-template-columns: 32px minmax(0, 2fr) 104px 156px minmax(0, 1.6fr) 96px 96px; column-gap: 12px; }
  .lhead { display: grid; padding: 4px 0 8px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink3); }
  .lhead .r, .chead .r { text-align: right; }
  .lrow { grid-template-areas: "av who join st prod life earn" "av . . . hold hold hold"; row-gap: 2px; padding: 10px 0; }
  .lrow:first-child { border-top: 0; }
  .lrow > .av { align-self: center; }
  .lrow .lbl, .c-earn .lbl {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .lrow .c-prod.none { display: block; }
  .c-join, .c-life { font-size: 13px; color: var(--ink2); }
  .c-earn { display: block; align-self: center; text-align: right; }
  .c-holdnote { text-align: right; }

  .chead, .crow { grid-template-columns: 112px minmax(0, 1.3fr) minmax(0, 1.3fr) 112px 104px; column-gap: 12px; }
  .chead { display: grid; padding: 4px 0 8px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink3); }
  .crow { grid-template-areas: "date lead prod st amt" ". note note note note"; row-gap: 2px; padding: 10px 0; }
  .crow .c-date { text-align: left; font-size: 13px; color: var(--ink2); }
}

/* ── 1024 px: the 12-column dashboard ───────────────────────────────────── */
@media (min-width: 1024px) {
  .dash { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .span-12 { grid-column: span 12; }
  .span-7 { grid-column: span 7; }
  .span-6 { grid-column: span 6; }
  .span-5 { grid-column: span 5; }
  .tile .v { font-size: 26px; }
  .tile { padding: 14px 16px; }
}
