/* The partner dashboard (rallix.io/partners/dashboard), on styles.css and
   partners.css: a monthly statement read in ten seconds, not a control
   room. Its one bold thing is the partner's own pass, the partners page's
   night card, now issued: it hangs straight, with their code and link on
   it and the buttons that copy or share them. Everything around it is
   quiet: one chalk panel, hairlines, space, and the calculator's bar.
   Lime is a fill here too, never text on white. */

:root {
  --lime-soft: #E6FFA6;      /* on hold: lime not yet yours */
  --column: #8E959D;         /* a day's visits: 3.1:1 on white */
  --pip: #E1E5E9;            /* a place still to fill on the rate meter */
  --hair: rgba(10, 12, 15, 0.1);
}

.dash [hidden] { display: none !important; }
.dash main { outline: none; }

/* --------------------------------------------------------------- head --- */

.dash-head { padding-top: 16px; }
.dash-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.dash-brand { font-size: 20px; font-weight: 700; letter-spacing: -0.035em; white-space: nowrap; }
.dash-brand span { font-weight: 500; color: var(--slate); }
.dash-links { display: flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 500; }
.dash-links a, .dash-links button {
  display: inline-flex; align-items: center; height: 44px; padding: 0 14px;
  border: 0; border-radius: 999px; background: none; color: var(--slate);
  font: inherit; cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease;
}
.dash-links a:hover, .dash-links button:hover { color: var(--ink); background: rgba(10, 12, 15, 0.05); }
.dash-links button { margin-left: 6px; background: var(--chalk); color: var(--ink); }
.dash-links button:hover { background: #E6E9ED; }

/* ---------------------------------------------------------------- top --- */

/* The greeting and the statement on the left, the pass on the right; on a
   phone the pass comes between them, as a compact card. */
.dash-top {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "hello pass" "main pass";
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 5.5vw, 80px); row-gap: 36px; align-items: start;
  padding-top: clamp(40px, 6vw, 72px);
}
.hello { grid-area: hello; }
.dash-pass { grid-area: pass; display: flex; justify-content: flex-end; }
.dash-top > .earned { grid-area: main; }

.hello h1 { font-size: clamp(38px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; outline: none; }
.hello-sub { margin-top: 14px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--slate); letter-spacing: -0.014em; max-width: 34em; text-wrap: pretty; }
/* The partnership has ended: said once, plainly, with an ink lead. */
.hello-ended {
  position: relative; margin-top: 18px; padding-left: 18px; max-width: 36em;
  font-size: 16px; line-height: 1.5; color: var(--ink);
}
.hello-ended::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 3px; background: var(--ink); }

/* --------------------------------------------------------------- pass --- */

/* The pass from partners.css, straight and still. */
.dash .pass { width: min(420px, 100%); rotate: none; animation: none; }
.dash .pass-card {
  padding: 24px 24px 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 2px 4px rgba(10, 12, 15, 0.1), 0 36px 64px -32px rgba(10, 18, 30, 0.5);
}
.dash .pass-top { margin-top: 12px; }
.dash .pass-court { margin-top: 16px; }
.dash .pass-body { margin-top: 20px; }
.dash .pass-label { font-size: 13px; }
.dash .pass-code {
  margin: 2px 0 0; padding: 0; border: 0;
  font-size: clamp(30px, 12cqi, 46px); overflow-wrap: anywhere;
}
.dash .pass-code.is-empty { color: var(--mist); font-size: 24px; font-weight: 600; }
.dash .pass-link { margin-top: 6px; color: var(--fog); }
.pass-also { margin-top: 4px; font-size: 14px; color: var(--mist); }

.pass-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pass-btn {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; padding: 0 14px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); color: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font: 600 15px/1 var(--font); letter-spacing: -0.012em; white-space: nowrap; cursor: pointer;
  transition: background-color 180ms ease, transform 160ms var(--ease);
}
.pass-btn svg { width: 17px; height: 17px; flex: none; }
.pass-btn:hover { background: rgba(255, 255, 255, 0.16); }
.pass-btn:active { transform: scale(0.97); }
.pass-btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 999px; }
.pass-btn.is-done { background: rgba(199, 255, 53, 0.16); box-shadow: inset 0 0 0 1px rgba(199, 255, 53, 0.5); }
/* Share is the pass's primary: the app's lime pill on the night. */
.pass-btn-share { background: var(--lime); color: var(--ink-on-lime); box-shadow: none; }
.pass-btn-share:hover { background: #D6FF66; }
.pass-ended { margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--fog); }
.dash .pass-terms { margin-top: 20px; padding-top: 16px; }

/* --------------------------------------------------------- statement --- */

/* The one chalk panel: what was earned, split in the calculator's bar
   language (paid in ink, payable in lime, on hold in a lighter lime), and
   what happens next, said in words. */
.earned { padding: clamp(28px, 3.4vw, 44px); border-radius: var(--r-panel); background: var(--chalk); }
.earned-label { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.014em; color: var(--slate); }
.earned-total {
  margin-top: 6px;
  font-size: clamp(54px, 6.2vw, 84px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.98;
}
.split { display: flex; gap: 3px; height: 12px; margin-top: 26px; }
.split span { flex: 0 0 auto; border-radius: 12px; }
.split-paid { background: var(--ink); }
.split-payable { background: var(--lime); box-shadow: inset 0 0 0 1px rgba(15, 20, 6, 0.1); }
.split-held { background: var(--lime-soft); box-shadow: inset 0 0 0 1px rgba(15, 20, 6, 0.12); }
.dash-motion .split { animation: fill 1100ms var(--settle) 250ms both; }
@keyframes fill { from { clip-path: inset(0 100% 0 0 round 12px); } to { clip-path: inset(0 0 0 0 round 12px); } }

.split-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 20px 0 0; }
.split-keys dt { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--slate); }
.split-keys dt::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; }
.key-paid dt::before { background: var(--ink); }
.key-payable dt::before { background: var(--lime); box-shadow: inset 0 0 0 1px rgba(15, 20, 6, 0.18); }
.key-held dt::before { background: var(--lime-soft); box-shadow: inset 0 0 0 1px rgba(15, 20, 6, 0.2); }
.split-keys dd { margin: 4px 0 0; font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.split-keys .key-hint { margin-top: 2px; font-size: 13px; font-weight: 400; letter-spacing: -0.006em; line-height: 1.35; color: var(--ash); }

.earned-next {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hair);
  font-size: 17px; font-weight: 600; letter-spacing: -0.016em; line-height: 1.4;
}
.earned-note { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ash); max-width: 60ch; }
.earned-note a, .gate-note a, .rows-empty a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* A new partner: three steps, a real sequence, so numbered. */
.start-steps { counter-reset: step; display: grid; gap: 22px; margin: 24px 0 26px; }
.start-steps li { counter-increment: step; position: relative; padding-left: 46px; }
.start-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #FFFFFF; font-size: 14px; font-weight: 600;
}
.start-steps h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
.start-steps p { margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--slate); max-width: 48ch; }
.start .earned-note { padding-top: 18px; border-top: 1px solid var(--hair); }

/* ------------------------------------------------------------ section --- */

.days h2, .rate h2, .ledger h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
.section-sub { margin-top: 8px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.45; color: var(--slate); max-width: 52ch; text-wrap: pretty; }

/* -------------------------------------------------------------- chart --- */

/* The funnel is the sentence above; the chart is its 90 days. Columns in a
   quiet grey, the busiest day setting the top line; a lime mark, ringed in
   ink, under each day a member joined. */
.days { padding-top: clamp(80px, 9vw, 120px); }
.chart { margin: 32px 0 0; }
.chart-plot { position: relative; height: 180px; margin-right: 40px; touch-action: pan-y; cursor: crosshair; }
/* The focus ring takes in the axis labels and the members' marks. */
.chart-plot:focus-visible { outline: none; }
.chart-plot:focus-visible::before { content: ""; position: absolute; inset: -12px -48px -30px -12px; border: 2px solid var(--ink); border-radius: 14px; pointer-events: none; }
.chart-plot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(10, 12, 15, 0.18); }
.chart-y { position: absolute; inset: 0; }
.chart-y span { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--rule); }
.chart-y span::after {
  content: attr(data-v); position: absolute; left: calc(100% + 8px); top: -9px;
  font-size: 13px; line-height: 18px; color: var(--ash); font-variant-numeric: tabular-nums;
}
.chart-cols {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); column-gap: clamp(1px, 0.22vw, 3px); align-items: end;
}
.chart-cols span { display: flex; align-items: flex-end; height: 100%; }
.chart-cols i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--column); transition: background-color 120ms ease; }
.chart-cols span.is-on i { background: var(--ink); }
.chart-cols span.is-on { box-shadow: inset 0 0 0 100vh rgba(10, 12, 15, 0.04); border-radius: 3px; }
.chart-marks { --dot: 10px; position: absolute; left: 0; right: 0; top: calc(100% + 9px); height: var(--dot); }
.chart-marks b {
  position: absolute; top: 0; height: var(--dot); translate: calc(var(--dot) / -2) 0;
  border-radius: var(--dot); background: var(--lime); box-shadow: inset 0 0 0 1.5px var(--ink);
}
.chart-axis { position: relative; height: 18px; margin: 30px 40px 0 0; font-size: 13px; color: var(--ash); }
.chart-axis span { position: absolute; top: 0; white-space: nowrap; }

/* One readout, beside the day it reads, values first. */
.chart-tip {
  position: absolute; top: 0; z-index: 3;
  display: grid; gap: 2px; min-width: 168px; padding: 10px 14px 11px;
  border-radius: 14px; background: var(--paper);
  box-shadow: 0 0 0 1px rgba(10, 12, 15, 0.08), 0 14px 32px -12px rgba(10, 18, 30, 0.28);
  font-size: 14px; line-height: 1.4; color: var(--slate); pointer-events: none; white-space: nowrap;
}
.chart-tip strong { margin-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--ash); }
.chart-tip b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.chart-keys { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: 14px; color: var(--slate); }
.chart-keys span { display: inline-flex; align-items: center; gap: 8px; }
.ck-visits::before { content: ""; width: 8px; height: 14px; border-radius: 2px 2px 0 0; background: var(--column); }
.ck-member::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 1.5px var(--ink); }

.chart-table { margin-top: 18px; }
.chart-table summary {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; background: var(--chalk); cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 500;
}
.chart-table summary::-webkit-details-marker { display: none; }
.chart-table summary:hover { background: #E6E9ED; }
.table-wrap { max-height: 420px; margin-top: 14px; overflow: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--rule); }
.chart-table table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.chart-table th, .chart-table td { padding: 10px 16px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.chart-table th:first-child { text-align: left; }
.chart-table thead th { position: sticky; top: 0; background: var(--paper); font-size: 13px; font-weight: 600; color: var(--slate); }
.chart-table tbody th { font-weight: 500; }

/* --------------------------------------------------------------- rate --- */

/* 30%, and one pip for each of the 25 members that would make it 35%. */
.rate {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px clamp(40px, 5.5vw, 80px);
  margin-top: clamp(72px, 8vw, 104px); padding-top: 36px; border-top: 1px solid var(--rule);
}
.rate-figure p { margin-top: 10px; font-size: clamp(52px, 5.6vw, 72px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.95; }
.rate-body { padding-top: 6px; }
.pips-head { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--slate); }
.pips-head span:first-child { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.pips { display: grid; grid-template-columns: repeat(25, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.pips i { height: 22px; border-radius: 5px; background: var(--pip); }
.pips i.on { background: var(--ink); }
.rate-text { margin-top: 18px; font-size: 17px; line-height: 1.5; color: var(--slate); max-width: 52ch; }

/* ------------------------------------------------------------- ledger --- */

/* Members are rows divided by hairlines, each opening to its payments;
   payouts are a plain list. Figures in columns are tabular. */
.ledger {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(40px, 5.5vw, 80px);
  align-items: start; margin-top: clamp(72px, 8vw, 104px); padding-bottom: clamp(80px, 9vw, 120px);
}
.rows { margin-top: 22px; border-top: 1px solid var(--rule); }
.rows > li { border-bottom: 1px solid var(--rule); }
.rows > li.is-later { display: none; }
.rows-empty { padding: 20px 0; font-size: 16px; line-height: 1.5; color: var(--slate); }

.row-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 1.5fr) 9.5em 28px;
  grid-template-areas: "name plan joined amount chev";
  align-items: center; column-gap: 16px; width: 100%; min-height: 60px; padding: 10px 2px;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  border-radius: 10px;
}
.row-head:hover .r-chev { background: #E6E9ED; }
.r-amount.is-unknown { font-size: 15px; font-weight: 500; color: var(--slate); }
.row-head:focus-visible { outline-offset: 2px; }
.r-name { grid-area: name; font-size: 17px; font-weight: 600; letter-spacing: -0.016em; }
.r-plan { grid-area: plan; font-size: 15px; color: var(--slate); }
.r-joined { grid-area: joined; font-size: 15px; color: var(--slate); }
.r-amount { grid-area: amount; justify-self: end; font-size: 17px; font-weight: 600; letter-spacing: -0.016em; font-variant-numeric: tabular-nums; text-align: right; }
.r-chev {
  grid-area: chev; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--chalk); color: var(--ink); transition: background-color 160ms ease;
}
.r-chev svg { width: 16px; height: 16px; transition: rotate 220ms var(--ease); }
.row-head[aria-expanded="true"] .r-chev svg { rotate: 180deg; }

.row-body { padding: 0 2px 18px; }
.row-note { font-size: 15px; line-height: 1.5; color: var(--slate); }
.payments { margin-top: 10px; border-radius: 14px; background: var(--chalk); padding: 4px 16px; }
.payments li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 12px; align-items: baseline;
  padding: 10px 0; font-size: 15px; font-variant-numeric: tabular-nums;
}
.payments li + li { border-top: 1px solid var(--hair); }
.p-state { color: var(--slate); }
.p-amount { justify-self: end; font-weight: 600; text-align: right; }
.p-amount.is-unknown { font-weight: 500; color: var(--slate); }
.payments .is-reversed .p-amount { font-weight: 500; color: var(--ash); text-decoration: line-through; }

.more {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; padding: 0 18px;
  border: 0; border-radius: 999px; background: var(--chalk); color: var(--ink);
  font: 500 15px var(--font); cursor: pointer;
}
.more:hover { background: #E6E9ED; }

.payouts .rows > li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name amount" "covers covers";
  row-gap: 2px; padding: 14px 2px;
}
.r-covers { grid-area: covers; font-size: 14px; color: var(--ash); }

/* --------------------------------------------------------------- gate --- */

/* No key, a key that no longer works, or a read that failed: what to do,
   in the size of the terms page's title. */
.gate { padding: clamp(72px, 12vw, 152px) 0 clamp(96px, 12vw, 160px); }
.gate h1 { max-width: 15ch; font-size: clamp(40px, 5.6vw, 72px); line-height: 1; text-wrap: balance; outline: none; }
.gate .lede { margin-top: 24px; max-width: 34em; text-wrap: pretty; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.gate-actions .btn { border: 0; font-family: inherit; cursor: pointer; }
.gate-note { margin-top: 20px; font-size: 15px; line-height: 1.5; color: var(--ash); }

/* ------------------------------------------------------------ loading --- */

/* Skeletons in the statement's own shape, so nothing jumps when it lands. */
.bone { display: block; border-radius: 10px; background: #ECEFF2; }
.dash-motion .bone, .dash-motion .bone-keys .bone {
  background: linear-gradient(90deg, #ECEFF2 0%, #F6F8F9 45%, #ECEFF2 90%) 0 0 / 220% 100%;
  animation: shimmer 1500ms linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }
.bones { padding-bottom: clamp(80px, 9vw, 120px); }
.bones .hello { padding-top: 6px; }
.bone-h1 { width: 74%; height: 50px; border-radius: 14px; }
.bone-h1 + .bone-h1 { margin-top: 12px; }
.bone-short { width: 44%; }
.bone-line { width: 62%; height: 20px; margin-top: 20px; }
.bones .earned { background: var(--chalk); }
.bones .earned .bone { background-color: #E4E8EC; }
.dash-motion .bones .earned .bone { background-image: linear-gradient(90deg, #E4E8EC 0%, #EEF1F3 45%, #E4E8EC 90%); }
.bone-label { width: 120px; height: 18px; }
.bone-figure { width: 46%; height: 70px; margin-top: 12px; border-radius: 16px; }
.bone-bar { height: 12px; margin-top: 30px; border-radius: 12px; }
.bone-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; }
.bone-keys .bone { height: 52px; }
.bone-pass { min-height: 554px; }
/* The pass's own shapes, faint on the night: the court, the code, the buttons. */
.bone-pass::before, .bone-pass::after { content: ""; position: absolute; left: 24px; right: 24px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.bone-pass::before { top: 72px; height: 44%; }
.bone-pass::after { bottom: 96px; height: 44px; border-radius: 999px; }

/* --------------------------------------------------------------- phone --- */

@media (max-width: 900px) {
  .dash-top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hello" "pass" "main"; grid-template-rows: none; row-gap: 28px; }
  .dash-pass { justify-content: flex-start; }
  .dash .pass { width: min(460px, 100%); }
  .rate { grid-template-columns: minmax(0, 1fr); }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .bone-pass { min-height: 576px; }
}
/* The pass becomes a compact card: the code, the link, the three buttons. */
@media (max-width: 680px) {
  .dash .pass { width: 100%; }
  .dash .pass-card { padding: 20px 18px 16px; border-radius: 24px; }
  .dash .pass-slot { display: none; }
  .dash .pass-top { margin-top: 0; font-size: 14px; }
  .dash .pass-top .brand-tile { width: 26px; height: 26px; border-radius: 8px; }
  .dash .pass-top .brand-tile svg { width: 14px; height: 12px; }
  .dash .pass-court { display: none; }
  .dash .pass-body { margin-top: 16px; }
  .pass-actions { margin-top: 16px; }
  .pass-btn { padding: 0 12px; font-size: 14px; }
  .dash .pass-terms { margin-top: 16px; padding-top: 14px; }
  .earned { border-radius: 24px; }
  .split-keys { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 18px; }
  .split-keys > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "dt dd" "hint hint"; align-items: baseline; padding: 10px 0; }
  .split-keys > div + div { border-top: 1px solid var(--hair); }
  .split-keys dt { grid-area: dt; }
  .split-keys dd { grid-area: dd; margin: 0; font-size: 19px; }
  .split-keys .key-hint { grid-area: hint; }
  .earned-next { margin-top: 14px; }
  .chart-plot { height: 140px; margin-right: 32px; }
  .chart-axis { margin-right: 32px; }
  .chart-plot:focus-visible::before { inset: -10px -38px -28px -8px; }
  .chart-cols i { border-radius: 1px 1px 0 0; }
  .chart-marks { --dot: 8px; }
  .chart-table th, .chart-table td { padding: 9px 10px; font-size: 14px; }
  .chart-table thead th { white-space: normal; vertical-align: bottom; }
  .row-head { grid-template-columns: minmax(0, 1fr) auto 28px; grid-template-areas: "name amount chev" "plan joined chev"; row-gap: 2px; padding: 12px 2px; }
  .r-joined { justify-self: end; text-align: right; }
  .r-plan, .r-joined { font-size: 14px; }
  .payments { padding: 2px 14px; }
  .payments li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "day amount" "state state"; row-gap: 0; }
  .p-day { grid-area: day; }
  .p-amount { grid-area: amount; }
  .p-state { grid-area: state; font-size: 14px; }
  .gate-actions .btn { flex: 1 1 100%; }
  .bones .bone-keys { grid-template-columns: 1fr; gap: 10px; }
  .bones .bone-keys .bone { height: 28px; }
  .bone-pass { min-height: 350px; }
  .bone-pass::before { top: 66px; height: 64px; right: 40%; }
  .bone-pass::after { bottom: 94px; }
}
@media (max-width: 520px) {
  .dash-brand { display: none; }
  .dash-links a, .dash-links button { padding: 0 12px; }
}
@media (max-width: 360px) {
  .pass-btn { flex-basis: calc(50% - 4px); }
  .pass-btn-share { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .dash .split, .r-chev svg, .pass-btn { animation: none; transition: none; }
}

/* ------------------------------------------------- applying, signed out --- */

/* Approved by confirming their email just now: the statement opens with
   one line saying so, the lime check the waitlist draws. */
.hello-joined { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.4; outline: none; }
.dash-motion .hello-joined .join-done-mark { animation: pop 520ms var(--settle) 120ms both; }

/* The free membership, said under the pass as the partners page says the
   pass's hint under it. */
.dash-pass { flex-direction: column; align-items: flex-end; }
.pass-note { width: min(420px, 100%); margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--slate); text-wrap: pretty; }

/* Confirm, and Email me my link: the gate's headline with the house's
   email capsule under it, the check's widget below the capsule. */
.gate-link { margin-top: 32px; }
.gate .turnstile { margin-top: 14px; }
.gate .join-note { margin-top: 10px; }
.confirm-error { margin-top: 20px; padding-left: 0; outline: none; }
.link-sent { display: flex; align-items: center; gap: 12px; margin-top: 32px; max-width: 40em; font-size: 19px; font-weight: 600; letter-spacing: -0.016em; line-height: 1.4; outline: none; overflow-wrap: anywhere; }
.gate-link + .link-sent + .gate-actions, .gate-link + .link-sent[hidden] + .gate-actions { margin-top: 28px; }

@media (max-width: 900px) {
  .dash-pass { align-items: flex-start; }
  .pass-note { width: min(460px, 100%); }
}
@media (max-width: 680px) {
  .pass-note { width: 100%; margin-top: 14px; }
  .gate-link { margin-top: 28px; }
  .link-sent { font-size: 17px; }
}

/* -------------------------------------------------------- partnership --- */

/* A creator's sponsorship (D379), under the earnings, in the statement's own
   quiet language: no second panel, no colour of its own. Four figures on a
   hairline, a sentence saying what happens next, the videos as rows that
   open small forms, and the terms and the agreement beside them. Chalk is
   kept for what sits inside a row: the submissions and the forms. */
.deals { padding-top: clamp(80px, 9vw, 120px); }
/* Not .deal: that is the partners page's own section (partners.css). */
.deal-block + .deal-block { margin-top: clamp(72px, 8vw, 104px); }
.deal-head h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }

.deal-money {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px clamp(20px, 3vw, 40px);
  margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--rule);
}
.deal-money dt { font-size: 15px; font-weight: 500; color: var(--slate); }
.deal-money dd { margin: 4px 0 0; font-size: clamp(24px, 2.3vw, 30px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.deal-money dd.is-unknown { font-weight: 500; color: var(--slate); }
.deal-money .key-hint { margin-top: 4px; font-size: 13px; font-weight: 400; letter-spacing: -0.006em; line-height: 1.35; color: var(--ash); }
.deal-next { margin-top: 24px; max-width: 60ch; font-size: 17px; font-weight: 600; letter-spacing: -0.016em; line-height: 1.4; text-wrap: pretty; }

.deal-body {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px clamp(40px, 5.5vw, 80px);
  align-items: start; margin-top: clamp(48px, 5vw, 64px);
}
.deal-body.is-plain { margin-top: 32px; }
.deal-body h3 { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.022em; }

/* A video: its number, when it is due, where it stands, and what it is
   worth; an estimate says so and sits in slate, never as a firm figure. */
.videos { margin-top: 16px; border-top: 1px solid var(--rule); }
.video { padding: 18px 2px 20px; border-bottom: 1px solid var(--rule); }
.v-head {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 2fr) 8.5em;
  grid-template-areas: "name due state pay"; column-gap: 16px; align-items: baseline;
}
.v-name { grid-area: name; margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.016em; outline: none; }
.v-due { grid-area: due; font-size: 15px; color: var(--slate); }
.v-state { grid-area: state; display: grid; gap: 2px; font-size: 15px; }
.v-state strong { font-weight: 600; }
.v-state span { font-size: 14px; color: var(--slate); font-variant-numeric: tabular-nums; }
.v-pay { grid-area: pay; display: grid; justify-items: end; gap: 2px; text-align: right; }
.v-pay strong { font-size: 17px; font-weight: 600; letter-spacing: -0.016em; font-variant-numeric: tabular-nums; }
.v-pay span { font-size: 13px; color: var(--ash); }
.v-pay.is-estimate strong { font-weight: 500; color: var(--slate); }
.v-pay.is-unknown span { font-size: 14px; line-height: 1.35; color: var(--slate); }

/* What was sent for it, as the members' payments are: a chalk inset. */
.subs { margin-top: 14px; padding: 2px 16px; border-radius: 14px; background: var(--chalk); }
.sub { padding: 12px 0 14px; }
.sub + .sub { border-top: 1px solid var(--hair); }
.s-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.s-head strong { font-weight: 600; }
.s-state { flex: none; font-size: 14px; color: var(--slate); text-align: right; }
.s-state.is-changes_requested, .s-state.is-rejected { font-weight: 600; color: var(--ink); }
.s-meta { margin-top: 2px; font-size: 14px; color: var(--ash); }
.s-link {
  display: block; max-width: 100%; margin-top: 2px; padding: 4px 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.s-note { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--slate); overflow-wrap: anywhere; }
.s-views { margin-top: 4px; font-size: 14px; color: var(--slate); font-variant-numeric: tabular-nums; }
/* Our feedback, with the ink lead the ended partnership has. */
.s-feedback { position: relative; margin-top: 10px; padding-left: 15px; font-size: 15px; line-height: 1.5; }
.s-feedback::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 3px; background: var(--ink); }
.s-feedback-label { font-size: 13px; font-weight: 600; color: var(--slate); }
.s-feedback p + p { margin-top: 1px; overflow-wrap: anywhere; }

/* The row's actions: the statement's chalk pills; the one that is open is ink. */
.v-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.v-action {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px; background: var(--chalk); color: var(--ink);
  font: 500 15px/1 var(--font); letter-spacing: -0.01em; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.v-action svg { width: 17px; height: 17px; flex: none; }
.v-action:hover { background: #E6E9ED; }
.v-action[aria-expanded="true"] { background: var(--ink); color: #FFFFFF; }
.v-action[aria-disabled="true"] { cursor: progress; }
.sub .v-actions { margin-top: 10px; }
.sub .v-action { background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.sub .v-action:hover { background: var(--paper); box-shadow: inset 0 0 0 1px rgba(10, 12, 15, 0.24); }
.sub .v-action[aria-expanded="true"] { background: var(--ink); box-shadow: none; }

/* A small form under the button that opened it. */
.deal-form { display: grid; gap: 20px; margin-top: 12px; padding: 20px; border-radius: 20px; background: var(--chalk); }
.sub .deal-form { padding: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.df-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.df-field > label, .df-field legend {
  display: block; padding: 0; margin-bottom: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
}
.df-field .optional { margin-left: 6px; font-weight: 500; color: var(--ash); }
.deal-form input:not([type="radio"]), .deal-form textarea {
  display: block; width: 100%; min-height: 48px; margin: 0; padding: 0 14px;
  border: 0; border-radius: 12px; outline: none;
  background: var(--paper); box-shadow: inset 0 0 0 1px rgba(10, 12, 15, 0.18);
  color: var(--ink); font: inherit; font-size: 17px; letter-spacing: -0.012em;
  transition: box-shadow 160ms ease;
}
.deal-form textarea { padding: 12px 14px; line-height: 1.45; resize: vertical; }
.deal-form input::placeholder, .deal-form textarea::placeholder { color: var(--ash); opacity: 1; }
.deal-form input:not([type="radio"]):hover, .deal-form textarea:hover { box-shadow: inset 0 0 0 1px rgba(10, 12, 15, 0.32); }
.deal-form input:not([type="radio"]):focus, .deal-form textarea:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.deal-form input[aria-invalid="true"]:not([type="radio"]), .deal-form textarea[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--error); caret-color: var(--error); }
.df-hint { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ash); }

/* The platform: one pill per choice, ink when chosen. */
.df-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.df-choice { position: relative; display: inline-flex; }
.df-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.df-choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--paper); box-shadow: inset 0 0 0 1px rgba(10, 12, 15, 0.18);
  font-size: 15px; font-weight: 500; transition: background-color 140ms ease, color 140ms ease;
}
.df-choice:hover span { box-shadow: inset 0 0 0 1px rgba(10, 12, 15, 0.32); }
.df-choice input:checked + span { background: var(--ink); color: #FFFFFF; box-shadow: none; }
.df-choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.df-choice input[aria-invalid="true"] + span { box-shadow: inset 0 0 0 2px var(--error); }

/* An error under its field, in the house's red with its mark. */
.df-error {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 8px;
  font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--error); outline: none;
}
.df-error::before {
  content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px;
  border-radius: 50%; background: var(--error); color: #FFFFFF; font-size: 12px; font-weight: 700;
}
.df-form-error { margin-top: -4px; }
.df-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.df-actions .btn { height: 48px; padding: 0 22px; border: 0; font-family: inherit; font-size: 16px; cursor: pointer; }
.df-actions .btn:hover { transform: none; box-shadow: none; }
.df-actions .btn-quiet { background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.df-actions .btn-quiet:hover { background: var(--paper); box-shadow: inset 0 0 0 1px rgba(10, 12, 15, 0.24); }
.sub .df-actions .btn-quiet { background: var(--chalk); box-shadow: none; }
.df-actions .btn[aria-disabled="true"] { cursor: progress; opacity: 0.8; }

/* The terms, one line each, and the agreement under them. */
.deal-terms { margin: 16px 0 0; border-top: 1px solid var(--rule); }
.deal-terms > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.deal-terms dt { font-size: 15px; line-height: 1.45; color: var(--slate); }
.deal-terms dd { margin: 0; font-size: 15px; line-height: 1.45; text-wrap: pretty; overflow-wrap: anywhere; }
.deal-agreement { margin-top: 44px; }
.deal-signed { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--slate); }
.deal-signed:empty { display: none; }
/* A test signature says so, as the invitation's dashed test panel does. */
.deal-test { margin-top: 12px; padding: 10px 14px; border: 1.5px dashed var(--slate); border-radius: 12px; font-size: 14px; font-weight: 500; line-height: 1.45; }
.deal-agreement .df-error { margin-top: 10px; }

@media (max-width: 900px) {
  .deal-body { grid-template-columns: minmax(0, 1fr); }
  .deal-money { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .deal-money { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 24px; padding-top: 0; }
  .deal-money > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "dt dd" "hint hint"; align-items: baseline; column-gap: 12px; padding: 12px 0; }
  .deal-money > div + div { border-top: 1px solid var(--hair); }
  .deal-money dt { grid-area: dt; }
  .deal-money dd { grid-area: dd; margin: 0; font-size: 21px; }
  .deal-money .key-hint { grid-area: hint; }
  .deal-next { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--hair); }
  .v-head { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name pay" "due pay" "state state"; row-gap: 2px; align-items: start; }
  .v-due { font-size: 14px; }
  .v-state { margin-top: 8px; }
  .subs { padding: 2px 14px; }
  .deal-form { padding: 16px; }
  .df-actions .btn { flex: 1 1 auto; }
  .deal-terms > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .v-action, .df-choice span, .deal-form input, .deal-form textarea { transition: none; }
}
