/* Shofo contributor portal - white bg, brand purple, Space Grotesk */

:root {
  --purple: #9F1BFE;
  --purple-dark: #7d0fd1;
  --purple-tint: #f7edff;
  --ink: #1c1e21;
  --dim: #6a7178;
  --border: #e7e4ee;
  --surface: #ffffff;
  --surface-soft: #faf9fc;
  --green: #1e8e4b;
  --amber: #b26a00;
  --blue: #2467c7;
  --red: #c23c3a;
  --radius-card: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); text-decoration: none; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: default; }

.btn-ghost {
  background: #efeff4;
  color: var(--ink);
  font-weight: 500;
  padding: 9px 20px;
  font-size: 14px;
}
.btn-ghost:hover { background: #e4e2ea; text-decoration: none; }

.btn-big { padding: 15px 36px; font-size: 17px; }

/* ---------- login page ---------- */

.login-wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 24px 8px;
}

.login-card .logo { width: 56px; height: 56px; margin-bottom: 24px; }

.login-card h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.login-card .sub { color: var(--dim); margin-bottom: 32px; }

.login-card form { display: flex; flex-direction: column; gap: 14px; }

.code-input {
  font-family: inherit;
  font-size: 17px;
  text-align: center;
  letter-spacing: 0.06em;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.code-input::placeholder { color: #b4b0bf; letter-spacing: 0.06em; }
.code-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(159, 27, 254, 0.12);
}

.login-error {
  color: var(--red);
  font-size: 14px;
  min-height: 21px;
}

.login-foot {
  padding: 0 16px;
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
}

/* ---------- app shell (nav + page) ---------- */

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
}

.nav .logo { width: 30px; height: 30px; }

.nav .brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav .brand:hover { text-decoration: none; }

.nav .spacer { flex: 1; }

.nav .navlink {
  color: var(--dim);
  font-weight: 500;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 8px;
}
.nav .navlink:hover { color: var(--ink); text-decoration: none; }
.nav .navlink.active { color: var(--purple); }

.uid-chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.page h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 36px 0 6px;
}

.page .lede { color: var(--dim); margin-bottom: 36px; }






/* ---------- clips table ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.section-head .meta { color: var(--dim); font-size: 13.5px; }

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow-x: auto;
}

table.clips {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

table.clips th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dim);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
  white-space: nowrap;
}

table.clips td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.clips tr:last-child td { border-bottom: none; }

table.clips .clip-id { font-weight: 500; white-space: nowrap; }
table.clips .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.clips .note { color: var(--dim); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.badge.submitted .dot { background: #8b8797; }
.badge.reviewed .dot { background: var(--blue); }
.badge.payable .dot { background: var(--green); }
.badge.paid .dot { background: var(--purple); }
.badge.rejected .dot { background: var(--red); }
.badge.review .dot { background: var(--amber); }

.empty {
  text-align: center;
  color: var(--dim);
  padding: 30px 24px;
}
.empty .big { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }

/* ---------- download page ---------- */

.steps { list-style: none; counter-reset: step; max-width: 720px; }

.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: none; }

.steps li::before {
  content: counter(step);
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple-tint);
  color: var(--purple);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.steps .t { font-weight: 600; }
.steps .d { color: var(--dim); font-size: 14.5px; }

/* notes: the same card format as the steps, a "!" marker instead of a number */
.steps.notes { margin-top: 4px; }
.steps.notes li::before { content: "!"; }

.callout {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--dim);
  font-size: 14.5px;
  max-width: 720px;
  margin-top: 28px;
}
.callout b { color: var(--ink); font-weight: 600; }

/* Hour tiles on the home page (back by owner request, 2026-09-04). */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.tile {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px 16px;
}
.tile .value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.tile .value .unit { font-size: 17px; font-weight: 500; color: var(--dim); margin-left: 2px; }
.tile .label { font-weight: 600; font-size: 14px; margin-top: 2px; color: var(--ink); }
.tile .hint { color: var(--dim); font-size: 12.5px; margin-top: 1px; }
.tile.accent { background: var(--purple-tint); border-color: #ecd6ff; }
.tile.accent .value { color: var(--purple); }
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { padding: 14px 14px 12px; }
  .tile .value { font-size: 26px; }
}
/* Recorder banner (owner pick C, 2026-09-04): the payment banner's shape
   in the calm purple tint. Shown only once the person has clips. */
/* Both classes: .payment-banner is declared later in this file with the
   same specificity, so a single-class rule here loses on colour. */
.payment-banner.recorder-banner {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink);
  text-decoration: none;
  box-sizing: border-box;
}
.payment-banner.recorder-banner:hover { border-color: var(--purple); color: var(--purple); text-decoration: none; }

/* Sign-in email card on the home page (2026-09-04). */
.signin-email-card { margin: 0 0 16px; color: var(--ink); }
.signin-email-title { font-weight: 600; margin-bottom: 4px; }
.signin-email-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.signin-email-row input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.signin-email-row input:focus { outline: 2px solid var(--purple); outline-offset: 1px; }
.signin-email-status { margin-top: 8px; font-size: 13.5px; color: var(--dim); }

.callout.tip {
  background: var(--purple-tint);
  border-color: #ecd6ff;
  color: var(--ink);
  margin: 0 0 36px;
}

/* ---------- welcome (first run) ---------- */

.welcome-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 12px 28px 28px;
}

.welcome-steps { max-width: none; margin-bottom: 22px; }
.welcome-steps li:last-child { border-bottom: 1px solid var(--border); }

/* ---------- admin ---------- */

.page-wide { max-width: 1320px; }

table.clips.compact th { padding: 11px 12px; }
table.clips.compact td { padding: 12px 12px; }

.add-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  margin-bottom: 24px;
}
.add-card .t { font-weight: 700; margin-bottom: 10px; }
.add-card .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.add-card .err { color: var(--red); font-size: 14px; min-height: 0; margin-top: 6px; }
.add-card.ok { background: var(--purple-tint); border-color: #ecd6ff; }
.add-card.ok p { color: var(--dim); font-size: 14.5px; margin-bottom: 12px; }

.code-show {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  user-select: all;
}

.row-btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--dim);
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.row-btn:hover { color: var(--ink); background: var(--surface-soft); }
.row-btn.danger {
  color: var(--red);
  border-color: var(--red);
  background: #fff;
}
.row-btn.danger:hover { color: var(--red); border-color: var(--red); }

.role-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-tint);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: 1px;
}
.role-chip.owner { color: #fff; background: var(--purple); }

.code-text { letter-spacing: 0.04em; white-space: nowrap; margin-right: 6px; }
.code-text.masked { color: var(--dim); }

.icon-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 7px 1px;
  cursor: pointer;
  color: var(--dim);
  vertical-align: middle;
  margin-right: 4px;
}
.icon-btn:hover { color: var(--purple); border-color: var(--purple); }

.admin-legend {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}
.admin-legend summary {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.admin-legend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 16px 16px;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.55;
}
.admin-legend-grid div { display: grid; gap: 3px; }
.admin-legend-grid strong,
.admin-legend-grid b { color: var(--ink); }

#apps-section .section-head {
  justify-content: space-between;
  align-items: flex-end;
}
.filter-chips {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
}
.filter-chip {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
}
.filter-chip.on {
  color: #fff;
  background: var(--purple);
}
.before-approve {
  max-width: 880px;
  margin: 0 0 8px;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.5;
}
.before-approve strong { color: var(--ink); }
.queue-order {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 600;
}
.admin-toast {
  margin: 0 0 12px;
  padding: 10px 13px;
  border: 1px solid #b8dfc8;
  border-radius: 10px;
  color: #186b39;
  background: #f0fbf4;
  font-size: 14px;
  font-weight: 600;
}
.admin-toast:empty { display: none; }

/* System section (ops engine, 2026-09-01): module descriptions and error
   notes stay quiet; the mode chips reuse the filter-chip pills. */
.ops-desc { color: var(--dim); font-size: 13px; max-width: 340px; }
#ops-modules-table .filter-chips { display: inline-flex; }
#ops-toast { border-color: #e4b9b9; color: #8f2020; background: #fdf2f2; }

#apps-table tr:focus { outline: none; }
#apps-table tr.is-focused td { background: var(--purple-tint); }
.decision-cell { min-width: 250px; }
.decision-buttons { display: flex; gap: 5px; }
.inline-confirm {
  width: 300px;
  margin-top: 7px;
  padding: 10px;
  border: 1px solid #d8c3eb;
  border-radius: 10px;
  background: var(--purple-tint);
  color: var(--ink);
  text-align: left;
  white-space: normal;
}
.inline-confirm[hidden] { display: none; }
.inline-confirm.danger-confirm {
  border-color: #efb4b4;
  background: #fff5f5;
}
.inline-confirm p {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.45;
}
.inline-confirm label {
  display: grid;
  gap: 5px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
}
.decline-reason {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 9px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
}
.inline-confirm-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.decision-error-help {
  max-width: 220px;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.4;
}
.auto-chip {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  color: var(--purple);
  background: var(--purple-tint);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}
.reason-cell { min-width: 140px; }

.admin-table-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -18px 0 14px;
}
.admin-table-tools label {
  font-size: 13px;
  font-weight: 700;
}
.admin-table-tools .input {
  width: min(420px, 100%);
  padding: 9px 12px;
}
.admin-table-tools .meta {
  color: var(--dim);
  font-size: 12.5px;
  white-space: nowrap;
}
.sort-head {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.sort-head:hover { color: var(--ink); }
.sort-head span { color: var(--purple); }
.contributor-display-name {
  max-width: 200px;
  margin-top: 3px;
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 400;
  white-space: normal;
}
.payment-account {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}
.payment-account .note {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.payment-copy { padding: 2px 8px; }
.copy-feedback {
  min-width: 46px;
  color: var(--green);
  font-size: 11.5px;
}
.payment-missing { color: var(--dim); }
.empty-cell {
  padding: 32px !important;
  color: var(--dim);
  text-align: center;
}
.copy-now { margin-top: 12px; }
.foot span { float: right; }

/* ---------- misc ---------- */

.foot {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
  color: var(--dim);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

.skeleton { color: transparent; background: #efedf3; border-radius: 6px; animation: pulse 1.2s ease infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--purple-tint);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-small { padding: 7px 16px; font-size: 13.5px; font-weight: 600; }

@media (max-width: 760px) {
  .page h1 { font-size: 28px; }
  .nav { flex-wrap: wrap; }
}

/* ---------- simplicity redesign (2026-08-26) ----------
 * Merged home page, help card, recorder section, phone-first pass.
 * Everything here is scoped to body.contrib (login + home) or to the
 * clip-cards table so the admin page renders exactly as before. */

body.contrib { font-size: 17px; }

.login-card .code-input, .login-card .btn { min-height: 52px; }
.contrib .login-wrap { padding-bottom: 84px; }

.recorder-section { margin-top: 32px; }
.recorder-section h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.callout.notwin {
  background: var(--purple-tint);
  border-color: #ecd6ff;
  color: var(--ink);
  margin: 0 0 18px;
}

.dl-cta { margin: 4px 0 10px; }
.dl-note { color: var(--dim); font-size: 14.5px; margin-top: 8px; }
.download-status { color: var(--green); font-size: 14px; min-height: 21px; margin-top: 7px; }

.step-pic { margin: 12px 0 2px; max-width: 340px; }
.step-pic svg { display: block; width: 100%; height: auto; }
.pic-note { margin-top: 8px; }

.welcome-steps .t { font-size: 19px; }
.welcome-steps .d { font-size: 15px; }
.welcome-steps li { padding: 16px 0; }
.welcome-steps li::before { width: 34px; height: 34px; font-size: 16px; margin-top: 2px; }

/* phones: full-width buttons, big tap targets, no sideways scrolling */
@media (max-width: 620px) {
  .contrib .btn { width: 100%; min-height: 48px; }
  .contrib .nav .btn { width: auto; min-height: 48px; }
  .contrib .nav .navlink { padding: 12px 10px; }
  .contrib .page h1 { font-size: 26px; }
  .contrib .steps li { gap: 12px; }
  .contrib .note { overflow-wrap: anywhere; }

  /* the home clips table becomes stacked cards, one card per clip */
  table.clip-cards thead { display: none; }
  table.clip-cards, table.clip-cards tbody { display: block; width: 100%; }
  table.clip-cards tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 12px;
    row-gap: 3px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }
  table.clip-cards tr:last-child { border-bottom: none; }
  table.clip-cards td { display: block; border: none; padding: 0; }
  table.clip-cards td.c-date { order: 1; font-weight: 600; }
  table.clip-cards td.c-dur { order: 2; }
  table.clip-cards td.c-pay { order: 3; }
  table.clip-cards td.c-status { order: 4; margin-left: auto; }
  table.clip-cards td.c-note { order: 5; flex-basis: 100%; white-space: normal; }
  table.clip-cards td.c-date { flex-basis: 100%; }
}

/* ---------- paid-to-you stat + per-clip pay (Alex, 2026-08-26) ---------- */

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 18px;
}
.page-head .ph-left .lede { margin-bottom: 6px; }
.page-head h1 { margin-bottom: 4px; }

/* desktop: the money is typography in the header row, not a floating card */
.paystat { text-align: right; }
.paystat .pv {
  font-size: 34px;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.paystat .pl { font-size: 13.5px; font-weight: 600; margin-top: 1px; color: var(--ink); }

.c-pay .pend { color: var(--dim); font-weight: 400; }

/* phones: the header stacks and the money becomes a full-width tinted card */
@media (max-width: 620px) {
  .contrib .page-head { flex-direction: column; align-items: stretch; }
  .contrib .paystat {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--purple-tint);
    border: 1px solid #ecd6ff;
    border-radius: 16px;
    padding: 14px 22px;
  }
}

/* ---------- self-serve funnel (2026-08-26) ----------
 * Landing page, email sign-in, and the apply journey (stages 2-5).
 * Layout and copy follow the approved journey mock. Brand tokens stay
 * the set at the top of this file; a few tint literals come from the
 * mock (green/red circles) because they have no token yet. */

/* landing */
.land-wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 84px;
  text-align: center;
}
.land-hero { width: 100%; max-width: 420px; }
.land-hero .logo { width: 56px; height: 56px; }
.land-hero .wordmark { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.land-hero h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 18px 0 6px; }

.gameplay-preview { width: 100%; max-width: 520px; margin: 18px auto 20px; }
.gameplay-window {
  overflow: hidden;
  border: 1px solid #e0d5e9;
  border-radius: 16px;
  background: #160d20;
  box-shadow: 0 14px 34px rgba(45, 25, 66, 0.16);
}
.gameplay-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  background: #21142d;
  color: #dcd2e4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.window-controls { display: flex; gap: 5px; justify-self: start; }
.window-controls i { width: 7px; height: 7px; border-radius: 50%; background: #675a70; }
.window-controls i:first-child { background: #9f1bfe; }
.gameplay-title { justify-self: center; }
.rec-label { display: inline-flex; align-items: center; gap: 5px; justify-self: end; color: #f3d9dc; }
.rec-label i { width: 7px; height: 7px; border-radius: 50%; background: #e05252; box-shadow: 0 0 0 4px rgba(224, 82, 82, 0.12); }
.gameplay-scene {
  position: relative;
  height: 108px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 112%, rgba(159, 27, 254, 0.48) 0 13%, transparent 14%),
    radial-gradient(circle at 18% 25%, rgba(199, 151, 255, 0.16) 0 12%, transparent 13%),
    linear-gradient(145deg, #321743 0%, #171124 48%, #0c111d 100%);
}
.scene-moon { position: absolute; top: 16px; left: 18%; width: 27px; height: 27px; border-radius: 50%; background: #eadfff; box-shadow: 0 0 28px rgba(234, 223, 255, 0.42); }
.scene-gate { position: absolute; left: 50%; bottom: 11px; width: 82px; height: 72px; transform: translateX(-50%); border: 4px solid rgba(205, 155, 255, 0.42); border-bottom: 0; border-radius: 44px 44px 0 0; box-shadow: inset 0 0 24px rgba(159, 27, 254, 0.22), 0 0 26px rgba(159, 27, 254, 0.2); }
.scene-player { position: absolute; left: 50%; bottom: 12px; width: 13px; height: 28px; transform: translateX(-50%); border-radius: 8px 8px 3px 3px; background: #f1eaf7; box-shadow: 0 0 16px rgba(241, 234, 247, 0.65); }
.record-timer { position: absolute; top: 10px; right: 11px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background: rgba(9, 8, 14, 0.62); color: #fff; padding: 3px 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; }
.upload-track { height: 4px; background: #30243a; }
.upload-track span { display: block; width: 72%; height: 100%; background: linear-gradient(90deg, #7d0fd1, #b85cff); }

.lines { max-width: 330px; margin: 0 auto 8px; text-align: left; }
.line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 16.5px; }
.line svg { flex: none; }

.btn-hero {
  width: 100%;
  min-height: 58px;
  font-size: 18px;
  font-weight: 700;
  margin-top: 12px;
  box-shadow: 0 10px 24px rgba(159, 27, 254, 0.28);
}

.link-sub {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--purple);
  font-weight: 600;
  font-size: 15.5px;
  padding: 8px 0;
}
.discord-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 4px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #5865F2;
  color: #fff;
  font-weight: 700;
}
.discord-link:hover { color: #fff; text-decoration: none; }
.discord-link svg { flex: none; }

.home-discord { display: flex; justify-content: center; margin: 8px 0 22px; }

.page-tight { padding-bottom: 12px; }
.steps-head { font-size: 18px; font-weight: 700; margin: 14px 0 6px; }
.step-code-chip {
  display: inline-flex;
  align-items: baseline;
  margin-left: 2px;
  padding: 2px 10px 3px;
  border: 1px solid #ecd6ff;
  border-radius: 8px;
  background: var(--purple-tint);
  vertical-align: baseline;
}
.step-code-chip code {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
}

@media (min-width: 760px) {
  .land-hero { max-width: 860px; }
  .land-hero h1 { font-size: 40px; }
  .lines {
    /* Content-sized columns: every bullet renders on one line at desktop
       widths - equal 1fr columns squeezed the longest bullet onto two
       lines at 1280px (persona QA, 2026-09-03). */
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 40px;
    max-width: 860px;
    margin: 0 auto 8px;
  }
  .line { justify-content: center; padding: 0; }
  .land-hero .btn-hero { width: auto; display: inline-flex; padding: 15px 44px; }
}

/* sign-in: email link section */
.or-line { color: var(--dim); font-size: 15px; margin: 30px 0 14px; }
.magic-ok { color: var(--green); font-size: 14.5px; min-height: 21px; }
.magic-ok a { display: inline-block; margin-top: 4px; padding: 6px 0; }
.magic-sent { margin-top: 8px; }
.magic-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.magic-link-action, .inline-link {
  border: none;
  background: none;
  color: var(--purple);
  padding: 2px 0;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.magic-link-action:disabled, .inline-link:disabled { color: var(--dim); cursor: default; }
.inline-status { display: inline; margin-left: 6px; color: var(--green); }

/* apply journey */
.apply-page { max-width: 560px; }
.apply-page .nav { padding: 14px 0 4px; }
.apply-page .page-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 18px 0 16px;
}
.apply-lede { color: var(--dim); font-size: 17px; margin: -8px 0 22px; }
.app-state { max-width: 560px; margin: 0 auto; }

.field { margin-bottom: 18px; }
.field .lab {
  display: block;
  color: var(--dim);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.field .hint { color: var(--dim); font-size: 13.5px; margin-top: 6px; }

input.input, select.input {
  display: block;
  width: 100%;
  min-height: 54px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 17px;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236a7178' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}
input.input:focus, select.input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(159, 27, 254, 0.12);
}
/* Text inputs keep the red border on a miss; chip groups get one short
   line instead of red borders on every chip (design-fix D16). */
.field.missing input.input, .field.missing select.input {
  border-color: var(--red);
}
.chip-note { display: none; color: var(--red); font-size: 13.5px; margin-top: 6px; }
.field.missing .chip-note { display: block; }
/* text and select fields get the same helper line as chip groups */
.field.missing:not(:has(.chips)):has(input.input, select.input)::after {
  content: attr(data-error); display: block; color: var(--red);
  font-size: 13.5px; margin-top: 6px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gpu-choice { margin-top: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.chip.on { background: var(--purple); border-color: var(--purple); color: #fff; }

.apply-actions { display: flex; flex-direction: column; align-items: center; margin-top: 6px; }
.apply-actions .apply-error { width: 100%; }
.apply-error { color: var(--red); font-size: 14.5px; min-height: 21px; margin-top: 10px; text-align: center; }
.btn-sub { text-align: center; color: var(--dim); font-size: 14px; margin-top: 10px; }
/* Signing stage (Alex, 2026-09-02): the whole column - title, lede, doc
   card, button, sub lines - starts at the rail's "1", not centered. The
   sub line gets more air under the button (his follow-up, same day). */
#st-signing { margin-left: 0; }
#st-signing .btn-sub { text-align: left; margin-top: 18px; }
@media (min-width: 760px) {
  .apply-page, .apply-page #app-form-state { max-width: 880px; }
  .apply-form { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 32px; }
  .apply-form .span2 { grid-column: 1 / -1; }
  .apply-form #field-gpu { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  #chips-exp, #chips-week { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #chips-exp .chip, #chips-week .chip { width: 100%; justify-content: center; padding-inline: 10px; }
}

/* instant answer */
.result { text-align: center; padding-top: 14px; }
.bigcheck {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #e7f5ec;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 16px;
}
.bigcheck.wait { background: #f2f0f6; }
.bigcheck.no { background: #fdeeee; }
.result h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.result .sub { color: var(--dim); font-size: 16.5px; max-width: 320px; margin: 0 auto 20px; }

/* signing */
.doc {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 16px;
  margin-bottom: 10px;
  min-height: 56px;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--ink);
}
a.doc:hover { border-color: var(--purple); text-decoration: none; }
.doc svg { flex: none; }
.doc .ds { display: block; color: var(--dim); font-size: 13.5px; font-weight: 500; margin-top: 1px; }

/* welcome aboard */
.dl-line { text-align: center; color: var(--dim); font-size: 16px; max-width: 330px; margin: 20px auto 4px; }

/* ---------- required-answer markers (Alex, 2026-08-27) ---------- */
/* Muted light red on purpose: the passive legend must not compete with the
   strong --red used by submit-time validation. */

.req { color: #cf7a78; margin-left: 3px; font-weight: 600; }
.req-note { color: #cf7a78; font-size: 13px; margin: 0 0 2px; }

/* step rail (apply journey) */
.rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  list-style: none;
  max-width: 560px;
  margin: 18px auto 6px;
}
.rail-step {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.rail-step .n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 12px;
}
.rail-step.current { color: var(--purple); }
.rail-step.current .n { background: var(--purple); border-color: var(--purple); color: #fff; }
.rail-step.done { color: var(--ink); }
.rail-step.done .n { background: var(--purple-tint); border-color: #ecd6ff; color: var(--purple); }
@media (min-width: 760px) {
  .rail { max-width: none; justify-content: flex-start; gap: 28px; }
}
@media (max-width: 400px) {
  .rail-step { font-size: 12.5px; gap: 5px; }
  .rail-step .n { width: 22px; height: 22px; font-size: 11.5px; }
}

/* soft state transitions */
@media (prefers-reduced-motion: no-preference) {
  .app-state { animation: state-fade 0.2s ease-out; }
  @keyframes state-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- design-fix round (2026-08-28) ---------- */

/* D2 + D11: per-document state on the signing cards. A signed card is a
   quiet done-state; an unsigned card carries a Sign link affordance. */
.doc .doc-state {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--purple);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.doc .doc-state.signed { color: var(--green); }
.doc.done { background: var(--surface-soft); }

/* D4: the expired-state email field */
#st-expired .expired-input { max-width: 340px; margin: 0 auto 6px; text-align: center; }

/* D8: the continue card above the apply form */
.resume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--purple-tint);
  border: 1px solid #ecd6ff;
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(45, 25, 66, 0.07);
}
.resume-card .t { font-weight: 700; }
.resume-card-copy { flex: 1 1 230px; line-height: 1.45; }

.back-btn { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #6a7178; text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.back-btn:hover { color: #9F1BFE; background: #f7edff; }
/* phones: the apply nav starts below the back button so the two never overlap */
@media (max-width: 600px) { .apply-page .nav { padding-top: 52px; } }

.code-toggle { display: block; margin: 18px auto 0; background: none; border: none; padding: 4px; font: inherit; font-size: 14px; color: #6a7178; cursor: pointer; text-decoration: underline; }
.code-toggle:hover { color: #9F1BFE; }
#login-form { margin-top: 14px; }
.login-card .sub-code { margin-bottom: 14px; font-size: 14.5px; }

/* D15: the money transport line on the clips page */
.money-line { color: var(--dim); font-size: 14px; margin-bottom: 6px; }

/* D17: the top bar stays on one line on small phones */
@media (max-width: 480px) {
  .nav { flex-wrap: nowrap; gap: 8px; }
  .nav .navlink { padding: 6px 6px; }
  .uid-chip {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* D18: desktop funnel buttons are pills, never page-wide bars */
@media (min-width: 760px) {
  .btn-hero { width: auto; min-width: 320px; }
}

/* the Welcome-aboard CTA column: button and link center together */
#st-active .btn-hero { display: flex; align-items: center; justify-content: center; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) { #st-active .btn-hero { width: fit-content; min-width: 320px; padding-left: 44px; padding-right: 44px; } }

/* D19: admin action cells wrap instead of clipping */
table.clips td.actions { white-space: normal; }
table.clips td.actions .row-btn { margin: 2px 0; }
table.clips td.actions .row-note { font-size: 12.5px; margin-top: 4px; }

@media (max-width: 700px) {
  .admin-legend-grid { grid-template-columns: 1fr; }
  #apps-section .section-head,
  .admin-table-tools { align-items: flex-start; flex-direction: column; }
  .foot span { display: block; float: none; margin-top: 5px; }
}

/* ---------- portal flow and payment tabs (2026-08-29) ---------- */

/* Sign-in uses one deliberate column and one action format. */
.signin-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}
.signin-column form { display: block; }
.signin-entry { display: flex; flex-direction: column; gap: 14px; }
.signin-column .code-input { width: 100%; }
.signin-column .login-error:empty { display: none; }
.signin-action {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid #d9d4e3;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 12px 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.signin-action:hover { border-color: var(--purple); }
.signin-action:focus-visible { outline: 3px solid rgba(159, 27, 254, 0.18); outline-offset: 2px; }
.signin-action:disabled { opacity: 0.5; cursor: default; }

.email-pill {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  border: 1.5px solid #d9d4e3;
  border-radius: 999px;
  background: #fff;
  padding-right: 5px;
}
.email-pill:focus-within { border-color: var(--purple); }
.email-pill .email-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 10px 0 22px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}
.email-pill .email-input::placeholder { color: #b4b0bf; }
.email-pill-send {
  flex: none;
  border: 0;
  border-radius: 999px;
  background: var(--purple);
  min-height: 42px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
}
.email-pill-send:hover { background: var(--purple-dark); }
.email-pill-send:active { transform: scale(0.98); }
.email-pill-send:focus-visible { outline: 3px solid rgba(159, 27, 254, 0.18); outline-offset: -4px; }
.email-pill-send:disabled { opacity: 0.5; cursor: default; }

.expired-column { display: flex; flex-direction: column; gap: 14px; max-width: 404px; margin: 20px auto 4px; }
.google-action-content {
  display: grid;
  grid-template-columns: 18px auto 18px;
  align-items: center;
  column-gap: 10px;
}
.google-action-content::after { content: ""; width: 18px; height: 18px; }
.code-input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(194, 60, 58, 0.1); }
.input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(194, 60, 58, 0.1); }
.field-error { color: var(--red); font-size: 13.5px; margin-top: 4px; }
.field-error:empty { display: none; }
#st-expired .expired-signin-action { display: flex; max-width: 340px; margin: 12px auto 0; }
.oauth-divider {
  color: #9d98a8;
  font-size: 13px;
  font-weight: 500;
}
.field-label {
  display: block;
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 14px 0 5px;
}
/* OAuth no-user return */
.no-user-card { border-color: #f0dfb2; background: #fff7e6; }

/* Welcome uses one flat instruction list. */
#st-active { text-align: center; }
#st-active .page-title { margin-bottom: 4px; }
#st-active .apply-lede { margin: 0 0 14px; }
#st-active .welcome-steps { text-align: left; margin-bottom: 4px; }
#st-active .welcome-steps li > div { flex: 1; min-width: 0; }
.welcome-download {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  background: var(--purple);
  color: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-top: 9px;
}
.welcome-download svg { flex: none; }
.welcome-download-name .label {
  color: #ead5ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.welcome-download-name .name { font-size: 13px; font-weight: 700; }
.welcome-download-btn {
  margin-left: auto;
  flex: none;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: var(--purple);
  padding: 9px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.welcome-download-btn:hover { text-decoration: none; }
.welcome-download-btn:disabled { opacity: 0.65; cursor: default; }
.welcome-download.phone { align-items: center; }
.welcome-phone-copy { font-size: 14px; font-weight: 600; line-height: 1.4; }
.welcome-link-status { color: var(--green); font-size: 14px; margin-top: 7px; }
.welcome-desktop-note {
  margin-top: 9px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 14px;
}
.access-code-box {
  max-width: 420px;
  margin: 0 0 22px;
  border: 1px solid #ecd6ff;
  border-radius: 12px;
  background: var(--purple-tint);
  padding: 14px 18px;
}
.access-code-label { color: var(--dim); font-size: 13px; font-weight: 600; }
.access-code-value {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}
#st-active .access-code-box { margin: 18px auto; }
.recorder-section > .welcome-download { max-width: 720px; margin-bottom: 18px; }

/* Home tabs */
.home-tabs { display: flex; gap: 7px; padding: 8px 0 22px; }
.home-tab {
  min-height: 40px;
  border: none;
  border-radius: 999px;
  background: #f4f2f8;
  color: var(--dim);
  padding: 9px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.home-tab.on { background: var(--purple); color: #fff; }

/* The total is the first item in the clips tab, as in the approved frame. */
.contrib #clips-panel .paystat {
  width: 100%;
  text-align: left;
  background: var(--purple-tint);
  border: none;
  border-radius: 14px;
  padding: 15px 18px;
  margin-bottom: 12px;
}
.contrib #clips-panel .paystat .pl {
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.contrib #clips-panel .paystat .pv {
  color: var(--ink);
  font-size: 30px;
  margin-top: 1px;
}
.payment-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid var(--red);
  border-radius: 12px;
  background: #fff5f5;
  color: var(--red);
  padding: 11px 14px;
  margin-bottom: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.clips-meta {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  color: var(--dim);
  font-size: 13.5px;
  margin: 0 2px 10px;
}
.clips-meta .meta { white-space: nowrap; }

/* Payment tab */
#payment-panel { max-width: 640px; }
.payment-content h1 { font-size: 26px; margin: 12px 0 15px; }
.payment-method {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #d9d4e3;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  padding: 11px 14px;
  margin-top: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.payment-method.on { border-color: var(--purple); background: var(--purple-tint); }
.payment-method .check { display: none; margin-left: auto; color: var(--purple); }
.payment-method.on .check { display: inline; }
.payment-form { margin-top: 15px; }
.payment-form .field-label { margin-top: 14px; }
.payment-form select.input { max-width: 460px; }
.payment-form .input { max-width: 460px; }
.payment-form .btn { margin-top: 10px; min-width: 140px; }
.field-help { color: var(--dim); font-size: 13.5px; margin-top: 6px; }
.typo-warning { color: #a85f00; font-size: 13.5px; min-height: 20px; margin-top: 3px; }
.form-status { color: var(--green); font-size: 14px; min-height: 21px; margin-top: 8px; }
.form-status.error { color: var(--red); }

.tax-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-top: 24px;
}
.tax-chip {
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
}
.tax-chip.signed { color: var(--green); }
.tax-chip.progress { color: #315ca8; }
.docs-card { margin-top: 26px; }
.payment-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.payment-progress .pp-count {
  flex: none;
  min-width: 52px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--purple);
  background: var(--purple-tint);
  border-radius: 999px;
  padding: 5px 10px;
}
.payment-progress .pp-copy { color: var(--dim); font-size: 14.5px; }
.payment-progress.done { border-color: #cde8d6; }
.payment-progress.done .pp-count { background: #e7f5ec; color: var(--green); }
.payment-progress.done .pp-copy { color: var(--ink); font-weight: 600; }
.doc-row { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 12px; }
.doc-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.doc-name { font-weight: 700; }
.form-status:empty { display: none; }
.tax-card .title { font-weight: 700; margin-top: 7px; }
.tax-card .detail { color: var(--dim); font-size: 14px; margin-top: 2px; max-width: 520px; }
.tax-card .tax-action {
  min-height: 46px;
  border: 1.5px solid #d9d4e3;
  background: #fff;
  color: var(--ink);
  margin-top: 13px;
}
.tax-pending { color: var(--dim); font-size: 14px; margin-top: 12px; }
.tax-email { margin-top: 12px; }
.tax-email p { color: var(--dim); font-size: 14px; margin-bottom: 7px; }
.tax-email .field-label { margin-top: 0; }
.tax-email-row { display: flex; align-items: center; gap: 9px; }
.tax-email-row .input { flex: 1; }
.tax-email-row .btn { flex: none; min-height: 52px; }

@media (max-width: 620px) {
  .welcome-download.phone { align-items: stretch; flex-direction: column; }
  .welcome-download.phone .welcome-download-btn { width: 100%; margin-left: 0; }
  .home-tabs { padding-bottom: 16px; }
  .home-tab { flex: 1; }
  .clips-meta { flex-direction: column; gap: 2px; }
  .clips-meta .meta { white-space: normal; }
  .tax-email-row { flex-direction: column; align-items: stretch; }
  .tax-email-row .btn { width: 100%; }
}

/* ---- final UX round (2026-09-03) ---- */
/* Clip rows lead with the human recorded time; the raw id is support text. */
table.clips .clip-when { font-weight: 600; white-space: nowrap; }
.clip-id-sub { color: var(--dim); font-size: 12px; font-weight: 400; white-space: normal; overflow-wrap: anywhere; margin-top: 2px; }
/* The two recorder files, one line each, under the download button. */
.dl-files { margin-top: 8px; display: grid; gap: 3px; color: var(--dim); font-size: 13.5px; }
/* The recorder setup instructions fold away once recordings exist. */
.recorder-details > summary { cursor: pointer; font-weight: 600; font-size: 16px; padding: 6px 0; }
.recorder-details[open] > summary { margin-bottom: 6px; }
/* A saved payment method collapses to one line with a Change button. */
.payment-saved {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 18px;
}
.payment-saved-line { font-weight: 600; overflow-wrap: anywhere; }
/* The uid chip is support information at the page bottom, small and grey. */
.uid-chip-foot { display: inline-block; margin-top: 10px; font-size: 12px; }
