/* Introducer portal: the one stylesheet for the mockup and the app.

   Every value comes from Yunus's design system, CMC-Funded/cmc-funded-main-page at origin/main 17ae7ca
   (the file and line are named beside each block), or, where that repository has no value, from the
   approved account-ready page (~/workspace/launch/approved-design-29sep). Tables, form labels, selects,
   radios and the status dot are not in that repository; they are built only from its tokens.
   Font and image URLs are relative to this file: keep assets/ beside it. */

/* ---- Fonts (styles.css:5-8) ------------------------------------------------------------------ */
@font-face { font-family: "Neue Haas Display"; src: url("/assets/fonts/NHaasGroteskDisplay-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Neue Haas Text"; src: url("/assets/fonts/NHaasGroteskText-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Neue Haas Text"; src: url("/assets/fonts/NHaasGroteskText-Medium.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Austin News Deck"; src: url("/assets/fonts/AustinNewsDeck-Roman.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---- Tokens ---------------------------------------------------------------------------------- */
:root {
  /* styles.css:11-40 */
  --ink: #101626;
  --austin: "Austin News Deck", Georgia, serif;
  --sans: "Neue Haas Text", Arial, sans-serif;
  --type-display: clamp(3rem, 4.8vw, 4.75rem);
  --type-title: clamp(1.75rem, 2.35vw, 2.5rem);
  --type-body: 1rem;
  --type-small: .8125rem;
  --leading-display: .94;
  --leading-title: 1.04;
  --leading-body: 1.42;
  --content-shell: min(1320px, calc(100% - clamp(2.5rem, 7vw, 7.5rem)));
  /* landing.css:1 and 55 */
  --header-shell: min(1380px, calc(100% - clamp(40px, 7vw, 120px)));
  --azure: #325fff;
  --azure-hover: #3d67ff;
  --teal: #00c7c5;
  --hairline: rgba(255, 255, 255, .16);
  /* support-page.css:3, 6, 34, 57, 116, 120, 154, 155, 183 */
  --text: #f8faff;
  --lead: #c3ccdc;
  --muted: #aeb8ca;
  --quiet: #8e9bb2;
  --placeholder: #99a5ba;
  --line: rgba(209, 221, 255, .18);
  --rule: rgba(209, 221, 255, .14);
  --icon: #8ea5ff;
  --focus: #9fb2ff;
  /* cta.css:19-27 (eyebrow) and legal-page.css:49,100 at bf81076 (the amber "needs attention" colour) */
  --eyebrow: #93abff;
  --amber: #f0cc8c;
  /* Not in Yunus's system, which has no red: chosen at the lightness of his amber (#f0cc8c) and the
     rules page's orange (#f0a877, rules-page.css:569) so a reversed sale reads as red, not as pending. */
  --red: #f0888c;
  color-scheme: dark;
}
@media (max-width: 700px) { :root { --type-display: clamp(2.6rem, 11vw, 3.8rem); } }

/* ---- Base (styles.css:49-61, support-page.css:1-12) ------------------------------------------- */
* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  font-family: var(--sans);
  font-synthesis: none;
  background:
    radial-gradient(circle at 79% 7%, rgba(50, 95, 255, .18), transparent 30rem),
    radial-gradient(circle at 5% 48%, rgba(50, 95, 255, .08), transparent 34rem),
    var(--ink);
}
body.menu-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.shell { width: var(--content-shell); margin-inline: auto; }

/* ---- Header (landing.css:41-58 and 264-267, site-chrome.css:1-10) ------------------------------
   The portal has no hero to sit over, so the header always wears the glass Yunus gives it once the
   page scrolls (landing.css:43). */
.site-header {
  position: fixed;
  z-index: 50;
  inset: 18px 0 auto;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: var(--header-shell);
  margin-inline: auto;
  padding-inline: 20px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: linear-gradient(112deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035) 44%, rgba(50, 95, 255, .1)), rgba(8, 13, 24, .9);
  box-shadow: 0 18px 50px rgba(2, 6, 16, .28), inset 0 1px rgba(255, 255, 255, .19);
  backdrop-filter: blur(28px) saturate(145%);
}
.brand { position: relative; z-index: 2; display: inline-flex; min-height: 44px; align-items: center; gap: 12px; width: fit-content; color: #fff; text-decoration: none; }
.brand img { width: clamp(94px, 7.5vw, 108px); height: auto; }
.brand-name { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1; white-space: nowrap; }
.site-nav, .header-actions { display: flex; align-items: center; gap: 28px; }
.header-actions { justify-content: flex-end; }
/* 1rem, not landing.css's 14px: brand-typography.css:77-87 sets nav links to --type-body and loads later. */
.site-nav a, .header-link { color: rgba(255, 255, 255, .78); font-size: var(--type-body); line-height: 1; text-decoration: none; transition: color .2s ease; }
.site-nav a:hover, .header-link:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"]::after { display: block; width: 18px; height: 2px; margin: 5px auto -7px; border-radius: 999px; background: var(--azure); content: ""; }
.menu-trigger { position: relative; z-index: 2; display: none; width: 46px; height: 46px; align-items: center; justify-content: center; padding: 0; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid var(--hairline); border-radius: 50%; }
.menu-trigger svg { width: 22px; height: 22px; }
.menu-trigger .icon-close, .menu-open .menu-trigger .icon-open { display: none; }
.menu-open .menu-trigger .icon-close { display: block; }
.mobile-menu { display: none; }

/* The header collapses at 1100px rather than Yunus's 1000px: the portal name beside the logo needs
   the extra room, or the left column runs into the links between 1001 and 1100px. */
@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav, .header-actions { display: none; }
  .menu-trigger { display: inline-flex; }
  /* landing.css:222-230: an opaque full-screen sheet. A backdrop-filter on the header would trap the
     fixed sheet inside the header's box, so it comes off while the menu is open (landing.css:217). */
  .menu-open .site-header { backdrop-filter: none; }
  .menu-open .mobile-menu {
    position: fixed;
    z-index: 1;
    inset: 0;
    display: flex;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    flex-direction: column;
    padding: max(112px, calc(env(safe-area-inset-top) + 96px)) clamp(24px, 7vw, 70px) max(98px, calc(env(safe-area-inset-bottom) + 68px));
    background: radial-gradient(circle at 82% 14%, rgba(50, 95, 255, .2), transparent 31%), #080e1c;
    overscroll-behavior: contain;
  }
  .mobile-menu a { display: flex; min-height: 66px; flex: 0 0 auto; align-items: center; justify-content: space-between; color: #fff; border-bottom: 1px solid var(--hairline); text-decoration: none; font: 400 clamp(2.15rem, 8vw, 3rem)/.92 var(--austin); letter-spacing: -.025em; }
  .mobile-menu a[aria-current="page"] { color: var(--eyebrow); }
  .mobile-menu a svg { width: 22px; height: 22px; flex: 0 0 auto; }
  .mobile-menu .mobile-sign-out { min-height: 56px; margin-top: auto; justify-content: center; gap: .75rem; padding-inline: 20px; border: 1px solid rgba(255, 255, 255, .34); border-radius: 999px; background: rgba(255, 255, 255, .055); font-size: 1.3rem; line-height: 1; letter-spacing: -.015em; }
  .mobile-menu .mobile-sign-out svg { width: 18px; height: 18px; }
}
@media (max-width: 700px) {
  .site-header { inset: 12px 0 auto; width: calc(100% - 24px); height: 64px; padding-inline: 14px 9px; }
  .brand img { width: 78px; }
}

/* ---- Page frame (site-chrome.css:71,79; support-page.css:33-34) ------------------------------ */
.page { padding: 112px 0 clamp(5rem, 9vw, 8rem); }
.page-head { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { max-width: 16ch; margin: 1.2rem 0 0; font: 400 var(--type-display)/var(--leading-display) var(--austin); letter-spacing: -.025em; text-wrap: balance; }
.page-head .lead { max-width: 36rem; margin: 1.3rem 0 0; color: var(--lead); font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.48; }
.page-head .meta { margin: 1rem 0 0; color: var(--quiet); font-size: .78rem; line-height: 1.45; }
.eyebrow { display: block; margin: 0; color: var(--eyebrow); font: 500 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 700px) { .page { padding-top: 92px; } .page-head { padding-top: 2.4rem; } }

.section { margin-top: clamp(3rem, 6vw, 5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .6rem 1.5rem; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; font: 400 var(--type-title)/var(--leading-title) var(--austin); letter-spacing: -.012em; }
.section-head p { max-width: 40rem; margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }

/* ---- Status: a 6px dot and an uppercase label, never a pill (eyebrow recipe, cta.css:19-27) ---- */
.status { display: inline-flex; align-items: flex-start; gap: .55rem; color: var(--quiet); font: 500 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.status::before { width: 6px; height: 6px; flex: none; margin-top: .35em; border-radius: 50%; background: currentColor; content: ""; }
.data-table .status { white-space: nowrap; }
.status--approved, .status--active { color: var(--teal); }
.status--pending, .status--practice, .status--provisional { color: var(--amber); }
.status--reversed { color: var(--red); }

/* ---- Cards (support-page.css:95-120) ------------------------------------------------------------ */
.card {
  position: relative;
  min-width: 0;
  padding: clamp(1.5rem, 2.8vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(50, 95, 255, .14), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .025)),
    rgba(10, 17, 34, .62);
  box-shadow: 0 24px 64px rgba(2, 6, 20, .2), inset 0 1px 0 rgba(255, 255, 255, .15);
  backdrop-filter: blur(22px) saturate(135%);
}
.card h2, .card h3 { margin: 0; font: 400 clamp(1.55rem, 2.1vw, 2.2rem)/.96 var(--austin); letter-spacing: -.035em; text-wrap: balance; }
.card .eyebrow + h2, .card .eyebrow + h3 { margin-top: 1rem; }
.card p { max-width: 34rem; margin: .8rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.card-head { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: .8rem 1.5rem; }
.stack { display: grid; gap: 1rem; align-content: start; }
.section > .card + .card { margin-top: 1rem; }
.card > .data-table:not(:first-child), .card > .screen-list:not(:first-child) { margin-top: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 1040px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .card { padding: 1.3rem; border-radius: 20px; } }

/* ---- Figures: Austin numbers with tabular figures (brand-typography.css:89-94, styles.css:23) --- */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.figure-label { display: block; color: var(--quiet); font-size: .72rem; line-height: 1.3; }
.figure-value { display: block; margin-top: 1.4rem; font: 400 var(--type-title)/var(--leading-title) var(--austin); letter-spacing: -.012em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.figure-note { display: block; margin-top: .7rem; color: var(--muted); font-size: .84rem; line-height: 1.45; }
@media (max-width: 1040px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .figures { gap: .6rem; }
  .figures .card { padding: 1rem; border-radius: 18px; }
  .figure-value { margin-top: 1rem; font-size: 1.5rem; }
  .figure-note { font-size: .76rem; }
}

/* Key and value pairs (legal-page.css:103-106 at bf81076; values at account-ready's detail size). */
.pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0 1.5rem; margin: 1.6rem 0 0; }
.pairs > div { padding: .95rem 0; border-top: 1px solid rgba(209, 221, 255, .15); }
.pairs dt { color: #8290a7; font-size: .72rem; line-height: 1.3; }
.pairs dd { margin: .5rem 0 0; font: 400 clamp(1.3rem, 1.7vw, 1.7rem)/1.1 var(--austin); font-variant-numeric: tabular-nums; }

/* ---- Tables (new: built from the card meta label, the support rule line and the body sizes) ------
   On a phone each row becomes a small card of labelled values; every td carries data-label. */
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; line-height: 1.35; }
.data-table th { padding: 0 1rem .85rem 0; border-bottom: 1px solid var(--line); color: var(--quiet); font-size: .72rem; font-weight: 400; text-align: left; white-space: nowrap; }
.data-table td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.data-table :is(th, td):last-child { padding-right: 0; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .num:not(:last-child) { padding-right: 2.25rem; }
.data-table .ref { color: var(--lead); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.data-table .quiet { color: var(--quiet); }
.data-table .rank { width: 4.5rem; font: 400 1.5rem/1 var(--austin); font-variant-numeric: tabular-nums; }
.data-table--board :is(th, td):first-child { padding-left: 1rem; }
.data-table--board :is(th, td):last-child { padding-right: 1rem; }
.data-table .is-me td { background: rgba(50, 95, 255, .16); }
.data-table .is-me td:first-child { border-radius: 14px 0 0 14px; }
.data-table .is-me td:last-child { border-radius: 0 14px 14px 0; }
.you { margin-left: .6rem; color: var(--eyebrow); font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.table-foot { margin: 1.1rem 0 0; color: var(--quiet); font-size: .78rem; line-height: 1.45; }

@media (max-width: 760px) {
  .data-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .data-table--stack, .data-table--stack tbody { display: block; }
  .data-table--stack tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .85rem 1rem; margin-bottom: .6rem; padding: 1rem; border: 1px solid var(--rule); border-radius: 16px; background: rgba(255, 255, 255, .03); }
  .data-table--stack tr:last-child { margin-bottom: 0; }
  .data-table--stack td, .data-table--stack tbody tr:last-child td { display: block; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  .data-table--stack td::before { display: block; margin-bottom: .3rem; color: var(--quiet); font-size: .72rem; content: attr(data-label); }
  .data-table--stack .num { text-align: left; }
  /* Row cards sit on the page, not inside a second card. */
  .card:has(> .data-table--stack) { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; }
  .card:has(> .data-table--stack) .table-foot { padding-inline: .25rem; }
  .data-table--stack .wide { grid-column: 1 / -1; }
  .data-table--board :is(th, td):first-child { padding-left: .6rem; }
  .data-table--board :is(th, td):last-child { padding-right: .6rem; }
  .data-table .rank { width: 3rem; font-size: 1.3rem; }
}

/* ---- Forms (support-page.css:36-57, the repository's one field, at its phone height) ------------ */
.form { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.1rem 1rem; align-items: end; }
.field { display: grid; gap: .55rem; min-width: 0; }
.field-label { color: var(--lead); font-size: var(--type-small); line-height: 1.3; }
.field-help { display: block; margin: 0; color: var(--quiet); font-size: .78rem; line-height: 1.45; }
.input {
  width: 100%;
  min-height: 58px;
  padding: 0 1.25rem;
  border: 1px solid rgba(209, 221, 255, .24);
  border-radius: 999px;
  color: #fff;
  font: 400 1rem/1.2 var(--sans);
  background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035)), rgba(8, 14, 30, .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: var(--placeholder); opacity: 1; }
.input:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.input--code { max-width: 15rem; font-size: 1.25rem; letter-spacing: .4em; font-variant-numeric: tabular-nums; }
select.input {
  padding-right: 3rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b9ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1.25rem center / 18px,
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035)),
    rgba(8, 14, 30, .58);
}
select.input option { color: #fff; background: #101626; }
.choices { display: flex; flex-wrap: wrap; gap: 0 1.6rem; margin: 0; padding: 0; border: 0; }
.choices legend { margin-bottom: .2rem; padding: 0; color: var(--lead); font-size: var(--type-small); }
.choice { display: inline-flex; min-height: 44px; align-items: center; gap: .65rem; color: var(--text); font-size: .9rem; cursor: pointer; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--azure); }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .5rem 1rem; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.rules li { display: flex; align-items: center; gap: .55rem; }
.rules li::before { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--quiet); content: ""; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.form-actions > .button:only-child { margin-left: auto; }

/* ---- Buttons and links (landing.css:54-57, legal-page.css:109 at bf81076, support-page.css:121-126) */
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  color: #fff;
  background: var(--azure);
  border: 1px solid var(--azure);
  border-radius: 999px;
  font: 600 var(--type-body)/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(24, 65, 220, .2);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { background: var(--azure-hover); box-shadow: 0 16px 34px rgba(24, 65, 220, .28); transform: translateY(-2px); }
.button:active { transform: scale(.98); }
.button svg { width: 18px; height: 18px; flex: none; }
.button-quiet { display: inline-flex; min-height: 44px; align-items: center; gap: .45rem; padding: 0 .9rem; color: #fff; border: 1px solid rgba(209, 221, 255, .2); border-radius: 999px; background: rgba(255, 255, 255, .04); font: 600 .72rem/1 var(--sans); text-decoration: none; white-space: nowrap; }
.button-quiet:hover { border-color: rgba(159, 178, 255, .42); }
.button-quiet svg { width: 14px; height: 14px; }
.text-link { display: inline-flex; width: fit-content; min-height: 44px; align-items: center; gap: .65rem; color: #fff; font-size: .82rem; font-weight: 600; text-decoration: none; }
.text-link svg { width: 16px; transition: transform 180ms ease; }
.text-link:hover svg { transform: translateX(4px); }
@media (max-width: 600px) { .form-actions .button { width: 100%; } }

/* ---- Sign-in (support-page.css:19-20 hero grid) -------------------------------------------------- */
.signin-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.signin-grid .page-head { position: sticky; top: 112px; }
.signin-grid > .stack { padding-top: clamp(3rem, 6vw, 5rem); }
.signin-note { margin: .2rem 0 1.4rem; padding-inline: .25rem; color: var(--quiet); font-size: .78rem; line-height: 1.45; }
.totp { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; align-items: center; margin-top: 1.6rem; }
.qr { display: grid; width: 152px; aspect-ratio: 1; place-items: center; padding: 1rem; border: 1px dashed rgba(209, 221, 255, .34); border-radius: 18px; background: rgba(255, 255, 255, .04); color: var(--quiet); font-size: .72rem; line-height: 1.3; text-align: center; }
.setup-key { margin: .45rem 0 .8rem; font: 400 1.05rem/1.4 var(--sans); letter-spacing: .08em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 1040px) { .signin-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } .signin-grid .page-head { position: static; } .signin-grid > .stack { padding-top: 0; } }
@media (max-width: 480px) { .totp { grid-template-columns: minmax(0, 1fr); } }

/* ---- Lists: audit log and the screen index (support-page.css:153-156) ----------------------------- */
.log { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.log li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .35rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); font-size: .875rem; line-height: 1.45; }
.log time { color: var(--quiet); font-size: .78rem; font-variant-numeric: tabular-nums; }
.log .who { display: block; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
@media (max-width: 600px) { .log li { grid-template-columns: minmax(0, 1fr); } }

.screen-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(209, 221, 255, .16); }
.screen-list a { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-height: 68px; padding: .9rem 0; border-bottom: 1px solid var(--rule); color: #fff; text-decoration: none; }
.screen-list .num { color: var(--quiet); font-size: .72rem; }
.screen-list strong { display: block; font: 400 1.5rem/1.05 var(--austin); letter-spacing: -.012em; }
.screen-list small { display: block; margin-top: .35rem; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.screen-list svg { width: 18px; color: var(--icon); transition: transform 180ms ease; }
.screen-list a:hover svg { transform: translateX(4px); }

/* ---- Footer: the legal row of Yunus's footer (decision-summary.css:244-249, 309-321, 329-339) ---- */
.site-footer { padding: 1.5rem 0 2rem; border-top: 1px solid rgba(181, 196, 230, .15); background: rgba(8, 14, 29, .5); color: #8a96ae; font: 400 .68rem/1.55 var(--sans); }
.site-footer .shell { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; }
.site-footer p { max-width: 48rem; margin: 0; }
@media (max-width: 704px) { .site-footer { font-size: .75rem; } .site-footer .shell { grid-template-columns: minmax(0, 1fr); } }

/* ---- Reduced motion and transparency (styles.css:68-71, support-page.css:245-251) ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .card, .input, .site-header { background: #121c33; backdrop-filter: none; }
}

/* ==== Live page additions (app/static only) ===================================================
   Everything above this block is mockup/portal.css from main, copied as is with its font URLs
   made absolute. Everything below is what only the working page needs: hidden states, the
   messages a form answers with, the real QR code, buttons that look like the mockup's links,
   the small notes on a row, and wrapping for long words the mockup's sample data never had. === */
[hidden] { display: none !important; }
main:focus, .signin-grid h2:focus { outline: none; }
.skip { position: fixed; z-index: 100; top: 12px; left: 18px; padding: .75rem 1rem; color: var(--ink); background: #fff; transform: translateY(-160%); }
.skip:focus { transform: none; }
.header-actions { grid-column: 3; } /* stays right while a page has no nav yet */
button.header-link, button.text-link { padding: 0; border: 0; background: none; font-family: var(--sans); cursor: pointer; }
.button:disabled { cursor: wait; opacity: .6; transform: none; }
.loading { padding: clamp(3rem, 6vw, 5rem) 0; color: var(--quiet); font-size: .84rem; }
.alert, .notice { padding: .9rem 1.1rem; border-radius: 16px; font-size: .88rem; line-height: 1.45; }
.alert { border: 1px solid rgba(240, 136, 140, .4); background: rgba(240, 136, 140, .08); color: #f6d6d7; }
.notice { border: 1px solid rgba(142, 165, 255, .34); background: rgba(50, 95, 255, .1); color: var(--text); }
.page > .alert, .page > .notice { margin-bottom: 1.5rem; }
.page-head .button { margin-top: 2rem; }
.signin-grid .card { scroll-margin-top: 104px; }
.qr { width: 176px; padding: 0; overflow: hidden; border: 0; background: #fff; }
.qr svg { display: block; width: 100%; height: 100%; }
.line { display: block; }
.nowrap { white-space: nowrap; }
.tag { margin-left: .6rem; color: var(--quiet); font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.sub-note { display: block; margin-top: .35rem; color: var(--quiet); font-size: .78rem; }
/* Cells that hold emails, names, notes or products may break anywhere; the rest wrap at spaces. */
.data-table .break, .card :is(h2, h3) { overflow-wrap: anywhere; }
.card-head > div { min-width: 0; }
@media (max-width: 760px) {
  .data-table--stack td:empty { display: none; }
  .data-table .tag { display: block; margin: .3rem 0 0; }
}
.log li > div { overflow-wrap: anywhere; }
.form-grid--roomy { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); } /* room for an email or a long option in a select */
