/* app.css - the agents + lenders app on the portal's tokens (oblq-website/client.html
   :root, .card, .btn, .field, .status, the 900px mobile layer and its binding rules in
   docs/mobile-design.md). Dark surface, Inter body, Manrope display. ASCII only. */
:root {
  --line: rgba(140,179,255,.15);
  --text: #f6f8fb;
  --muted: rgba(246,248,251,.62);
  --faint: rgba(246,248,251,.45);
  --blue: #5B8DEF;
  --blue2: #8CB3FF;
  --green: #25C27A;
  --amber: #f3b84a;
  --red: #ff6b6b;
  --body: 'Inter', sans-serif;
  --display: 'Manrope', sans-serif;
  --card: rgba(14,23,38,.82);
  --radius: 20px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #07111e; height: auto; min-height: 0; overflow-x: hidden; overflow-y: auto; touch-action: manipulation; }
body {
  font-family: var(--body); color: var(--text);
  background: radial-gradient(circle at 15% 10%, rgba(91,141,239,.14), transparent 28%),
              linear-gradient(180deg, #03060d, #07111e);
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font-family: inherit; }
a { color: var(--blue2); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* shell: left rail on desktop, bottom tab bar on a phone */
.app { display: grid; grid-template-columns: 180px 1fr; min-height: 100vh; }
.rail { border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.rail .logo { display: flex; align-items: center; gap: 10px; padding: 4px 6px 18px; }
.rail .logo img { height: 28px; width: auto; }
.rail .logo span { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: -.02em; }
.nav button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 10px; border: none; background: transparent; color: rgba(246,248,251,.62); font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; min-height: 44px; }
.nav button svg { width: 18px; height: 18px; flex: none; }
.nav button:hover { background: rgba(255,255,255,.04); color: var(--text); }
.nav button.active { background: rgba(91,141,239,.14); color: var(--blue2); }
.rail .spacer { flex: 1; }
.rail .me { font-size: 12px; color: var(--muted); padding: 8px 10px; border-top: 1px solid var(--line); line-height: 1.4; }
.rail .me strong { color: var(--text); display: block; }
.rail .rail-out { display: block; margin-top: 8px; padding: 8px 0; font-size: 12px; color: rgba(246,248,251,.62); }
.rail .rail-out:hover { color: var(--blue2); }
.m-only { display: none; }
@media (max-width: 900px) { .m-only { display: inline-block; } }
.main { padding: 26px 30px 40px; max-width: 1080px; width: 100%; }
.env { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); padding: 2px 6px; border: 1px solid rgba(243,184,74,.35); border-radius: 6px; margin-left: 6px; }

/* type */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue2); }
h1 { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 4px; }
h2 { font-family: var(--display); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.sub { color: var(--muted); font-size: 13px; line-height: 1.5; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.sec-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-row .sec-label { margin-bottom: 10px; }
.sec-row .link-btn { font-size: 12px; }
.nudge { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; }
.nudge .btn { flex: 0 0 auto; }
@media (max-width: 600px) { .nudge { flex-direction: column; align-items: stretch; } }

/* cards, grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 24px 80px rgba(0,0,0,.18); }
.card + .card { margin-top: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric { font-family: var(--display); font-size: 30px; font-weight: 800; margin-top: 8px; letter-spacing: -.02em; }
.label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.empty { color: var(--muted); font-size: 13px; line-height: 1.6; padding: 26px 8px; text-align: center; }
.empty strong { color: var(--text); display: block; font-size: 15px; margin-bottom: 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(140,179,255,.18); background: linear-gradient(180deg, rgba(69,118,186,.96), rgba(32,75,130,.95)); color: #fff; border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; transition: opacity .12s; min-height: 38px; }   /* 44 -> 38 (Jason 10-16: "very large buttons") */
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.secondary { background: rgba(255,255,255,.045); color: rgba(246,248,251,.78); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--blue2); }
.btn.wide { width: 100%; }
.btn.danger { background: rgba(255,107,107,.12); border-color: rgba(255,107,107,.3); color: #ffb5b5; }
.link-btn { background: none; border: none; color: var(--blue2); font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px 0; }

/* forms */
/* LABELS: Title Case, the first letter of every word (ui.js titleCase, applied by field() - Jason 10-12). */
/* THE SPACING GUIDE (Jason 10-12, one 4px scale, applied by the components, never by hand):
   label -> its input 6px; input 44px tall; input -> the next label 14px (the form / .fields grid
   gap); two-up column gap 16px; help text 6px under the input; a section title block -> the first
   field 16px; checkbox rows 12px; card padding 20px, 16px between cards; the primary button 20px
   above. Rows read as groups because 14 is more than twice 6. */
.form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid rgba(140,179,255,.16); background: rgba(255,255,255,.045); color: #fff; border-radius: 11px; padding: 12px 12px; outline: 0; font-size: 14px; min-height: 44px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(140,179,255,.45); }
.field select option { color: #07111e; }
.field .help { font-size: 11.5px; color: var(--faint); margin-top: 6px; line-height: 1.4; }
.pw { position: relative; }
.pw input { padding-right: 44px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: none; background: transparent; color: rgba(246,248,251,.55); cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--blue2); }
.pw-eye svg { width: 18px; height: 18px; }
.field.err input, .field.err select { border-color: rgba(255,107,107,.6); }
.msg { font-size: 13px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.msg.err { border-color: rgba(255,107,107,.35); color: #ffb5b5; background: rgba(255,107,107,.08); }
.msg.ok { border-color: rgba(37,194,122,.3); color: #baffdd; background: rgba(37,194,122,.08); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: rgba(246,248,251,.8); }
.check.small { font-size: 11.5px; color: var(--muted); }
.check.small input { width: 15px; height: 15px; margin-top: 1px; }
.form hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.ts:empty { display: none; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.choice { display: grid; gap: 10px; }
.choice label { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: rgba(255,255,255,.02); }
.choice label:has(input:checked) { border-color: rgba(140,179,255,.5); background: rgba(91,141,239,.08); }
.choice input { margin-top: 3px; accent-color: var(--blue); }
.choice strong { display: block; font-size: 14px; }
.choice span { font-size: 12px; color: var(--muted); line-height: 1.4; }
/* the sign-up form: a tighter rhythm than the app's forms */
.form.tight { gap: 14px; }
.form.tight .choice { gap: 8px; }
.form.tight .choice label { padding: 11px 13px; }
.form.tight .field label { margin-bottom: 6px; }
.form.tight .field input, .form.tight .field select { padding: 10px 12px; min-height: 44px; font-size: 14px; }
.form.tight hr { margin: 2px 0; }
/* a multi-step form: each step card is a grid that owns the row rhythm */
.form.steps { gap: 16px; }
.form.steps .card { display: grid; gap: 14px; }
.form.steps .card + .card { margin-top: 0; }
.form.steps .card > div:empty { display: none; }
.form.steps .step-head { margin-bottom: 2px; }
.form.steps .btn.wide { margin-top: 6px; }
.pref > .row, .pref > .field { margin-top: 12px; }
.auth .card.wide { max-width: 480px; padding: 26px 28px 24px; }
.auth .card.wide .card-sub { margin-bottom: 14px; }

/* status badges */
.status { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; border-radius: 999px; padding: 6px 9px; border: 1px solid rgba(140,179,255,.16); color: rgba(246,248,251,.68); white-space: nowrap; }
.status.ok { border-color: rgba(37,194,122,.22); color: #baffdd; background: rgba(37,194,122,.08); }
.status.warn { border-color: rgba(243,184,74,.3); color: #ffe1a3; background: rgba(243,184,74,.08); }
.status.bad { border-color: rgba(255,107,107,.20); color: #ffb5b5; background: rgba(255,107,107,.08); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: rgba(140,179,255,.12); color: var(--blue2); }

/* sign-in */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.auth .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth .logo img { height: 36px; width: auto; }
.auth .card { width: 100%; max-width: 420px; padding: 34px 32px; }
.auth .card-title { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.04em; margin-bottom: 6px; }
.auth .card-sub { font-size: 13px; color: var(--muted); margin-bottom: 22px; line-height: 1.5; }
.auth .foot { margin-top: 18px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; }
.auth .foot a { font-weight: 700; }

/* bottom tab bar (phone) */
.mnav { display: none; align-items: stretch; justify-content: space-around; gap: 4px; border-top: 1px solid var(--line); background: rgba(4,8,15,.96); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.mnav button { flex: 1; min-height: 50px; background: transparent; border: none; cursor: pointer; color: rgba(246,248,251,.55); font-family: var(--body); font-size: 11px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 10px; }
.mnav button.active { color: var(--blue2); background: rgba(91,141,239,.14); }
.mnav svg { width: 20px; height: 20px; }

/* sample banner (staging) */
.banner { border: 1px solid rgba(243,184,74,.4); background: rgba(243,184,74,.1); color: #ffe1a3; border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.banner .link-btn { color: #ffe1a3; text-decoration: underline; padding: 0; }

/* home: the period bar above the tiles */
/* the portal's Activity header, byte for byte in spirit: client.html .home-pill / .home-trend-btn /
   .home-range-date / .home-range-preset and the Range popover */
.period-bar { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 10px; }
.period-group { display: flex; align-items: center; position: relative; }
.home-pill { padding: 4px 11px; font-size: 11px; font-weight: 700; border-radius: 20px; cursor: pointer; border: 1px solid transparent; color: rgba(246,248,251,.6); transition: all .12s; background: none; font-family: var(--body); }
.home-pill.active { background: rgba(91,141,239,.18); color: #8CB3FF; border-color: rgba(91,141,239,.28); }
.home-pill:hover:not(.active) { color: #f6f8fb; background: rgba(255,255,255,.04); }
.home-trend-btn { padding: 4px 11px; font-size: 11px; font-weight: 700; border-radius: 20px; cursor: pointer; border: 1px solid rgba(140,179,255,.15); color: rgba(246,248,251,.6); background: none; transition: all .12s; margin-left: 4px; font-family: var(--body); }
.home-trend-btn.active { background: rgba(246,248,251,.06); color: #f6f8fb; border-color: rgba(140,179,255,.28); }
.range-pop { position: absolute; top: 34px; right: 0; z-index: 60; background: #0d1526; border: 1px solid rgba(140,179,255,.25); border-radius: 10px; padding: 12px; box-shadow: 0 10px 34px rgba(0,0,0,.55); width: 252px; }
.range-presets { display: flex; gap: 6px; margin-bottom: 10px; }
.home-range-preset { font-size: 10.5px; font-weight: 700; padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(140,179,255,.22); cursor: pointer; background: rgba(91,141,239,.12); color: #8CB3FF; font-family: var(--body); flex: 1; }
.home-range-preset:hover { background: rgba(91,141,239,.25); }
.range-dates { display: flex; flex-direction: column; gap: 7px; margin-bottom: 11px; }
.range-dates label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: rgba(246,248,251,.55); }
.home-range-date { background: rgba(0,0,0,.3); border: 1px solid rgba(140,179,255,.25); color: #f6f8fb; border-radius: 6px; padding: 4px 7px; font-family: var(--body); font-size: 12px; color-scheme: dark; }
.range-actions { display: flex; justify-content: flex-end; gap: 8px; }
.range-cancel { font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 7px; border: none; cursor: pointer; background: none; color: rgba(246,248,251,.6); font-family: var(--body); }
.range-apply { font-size: 11px; font-weight: 800; padding: 5px 14px; border-radius: 7px; border: none; cursor: pointer; background: #5B8DEF; color: #fff; font-family: var(--body); }
.trend-card { margin-top: 12px; }
@media (max-width: 900px) {
  .home-pill, .home-trend-btn { min-height: 40px; display: inline-flex; align-items: center; font-size: 13px; }
}
.range-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.range-pick input { border: 1px solid rgba(140,179,255,.16); background: rgba(255,255,255,.045); color: #fff; border-radius: 8px; padding: 5px 8px; font-size: 12px; min-height: 30px; color-scheme: dark; }
/* the trend card */
.trend-head { justify-content: space-between; margin-bottom: 6px; }
.legend { display: flex; gap: 14px; font-size: 11px; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin: 0 6px 2px 0; vertical-align: middle; }
.lg.req::before { background: var(--blue2); }
.lg.bnd::before { background: var(--green); }
.trend-svg { width: 100%; height: auto; display: block; }
.trend-svg .tg { stroke: rgba(140,179,255,.10); stroke-width: 1; }
.trend-svg .tt { fill: rgba(246,248,251,.5); font-size: 11px; font-family: var(--body); }
.trend-svg .tl { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend-svg .tl.req { stroke: var(--blue2); }
.trend-svg .tl.bnd { stroke: var(--green); }
.trend-svg .td.req { fill: var(--blue2); }
.trend-svg .td.bnd { fill: var(--green); }

/* home: two counts + the wide rank tile (the portal's Trending / Top 5 shape) */
.home-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr) minmax(250px, 1fr); gap: 12px; }
.tile-head { display: flex; align-items: center; min-height: 24px; }   /* every tile title sits on the same line */
.rank-tile { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 16px 20px 12px; min-width: 0; overflow: hidden; }
.rank-l { flex: 0 1 auto; min-width: 0; }
.rank-l .label { white-space: nowrap; }
.count-tile .pills button { font-size: 9.5px; padding: 3px 5px; min-height: 0; }
.count-tile { padding: 16px 18px 14px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.count-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.count-when { font-size: 12px; color: var(--muted); font-weight: 600; text-align: right; line-height: 1.3; padding-bottom: 2px; }
.count-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: nowrap; }
.count-head .label { white-space: nowrap; }
.count-tile .metric { margin-top: 8px; }
.count-tile .sub { margin-top: 4px; }
.count-tile .pills { flex: none; gap: 1px; }
.count-tile .pills button { font-size: 9.5px; padding: 3px 5px; min-height: 0; }
.count-head .label { font-size: 10.5px; letter-spacing: .06em; }
/* the portal's October Premium tiles: 26px / 800 numbers (client.html .sp-tile .n), 11px caps labels;
   the number sits 12px in from the title (Jason 10-06, the second image), the line under it at the edge */
.rank-l .metric, .count-tile .metric { font-size: 26px; line-height: 1; letter-spacing: -.02em; margin-top: 10px; margin-left: 12px; }
.rank-l .sub { margin-top: 4px; }
.rank-l .link-btn { padding: 8px 0 0; font-size: 12px; display: block; text-align: left; }
.top5 { flex: 1 1 200px; max-width: 320px; min-width: 0; }
.top5-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
/* the header and the rows start ~5 characters in; the counts keep the block's right edge (Jason 10-06) */
.top5-head, .t5 { padding-left: 32px; }
.top5 .pills button { font-size: 10px; padding: 3px 8px; min-height: 0; }
.t5 { display: grid; grid-template-columns: 16px minmax(0, 1fr) max-content; column-gap: 10px; }
.t5-row { display: contents; }
.t5-row > span { font-size: 11.5px; padding: 3px 0; border-bottom: 1px solid rgba(140,179,255,.07); color: rgba(246,248,251,.8); white-space: nowrap; }
.t5-row.cur > span { color: var(--green); font-weight: 700; }
.t5-rank { color: rgba(246,248,251,.45); font-weight: 700; }
.t5-lab { overflow: hidden; text-overflow: ellipsis; }
.t5-lab em { font-style: normal; font-size: 10px; color: rgba(246,248,251,.5); font-weight: 600; }
.t5-row.cur .t5-lab em { color: rgba(37,194,122,.8); }
.t5-val { font-weight: 700; text-align: right; }
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr 1fr; }
  .rank-tile { grid-column: 1 / -1; flex-direction: column; gap: 14px; }
  .top5 { width: 100%; flex: none; }
}

/* request cards */
.card.req { cursor: pointer; padding: 16px 18px; }
.card.req:hover { border-color: rgba(140,179,255,.35); }
.req-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.req-name { font-family: var(--display); font-size: 16px; font-weight: 800; }
.req-addr { color: var(--muted); font-size: 13px; margin-top: 3px; }
.req-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.chips { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.badge.rush { background: rgba(243,184,74,.16); color: #ffe1a3; }
.req-close { display: inline-flex; align-items: center; gap: 10px; }
/* the four-step progress strip */
.prog { display: inline-flex; align-items: flex-start; }
.prog-step { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 80px; }
.prog-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(246,248,251,.22); background: transparent; }
.prog-lab { font-size: 10.5px; font-weight: 600; color: rgba(246,248,251,.38); letter-spacing: .02em; white-space: nowrap; }
.prog-step.done .prog-dot { background: var(--blue); border-color: var(--blue); }
.prog-step.done .prog-lab { color: rgba(246,248,251,.62); }
.prog-step.cur .prog-dot { background: #fff; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.14); }
.prog-step.cur .prog-lab { color: #fff; font-weight: 800; }
.prog-line { width: 26px; height: 2px; background: rgba(246,248,251,.14); margin: 4px -18px 0; }
.prog-line.on { background: var(--blue); }
@media (max-width: 900px) {
  .req-top { flex-direction: column; }
  .chips { justify-content: flex-start; }
  .prog-step { width: 64px; }
  .prog-line { width: 18px; margin: 4px -14px 0; }
}
.req-grid { align-items: stretch; margin-bottom: 12px; }   /* the same 12px the cards keep between themselves */
.req-grid > .card { margin-top: 0; }   /* the stacked-card margin never applies inside the row */
.grid-2 > .card, .grid-3 > .card, .home-grid > .card { margin-top: 0; }
.grid-2, .grid-3, .home-grid { margin-bottom: 12px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.kv span { color: var(--muted); }
.kv strong { text-align: right; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.bound-line { font-size: 14px; margin: 8px 0 4px; }
.fine { font-size: 11.5px; color: var(--faint); line-height: 1.45; margin-top: 10px; }

/* journey */
.journey { list-style: none; margin-top: 10px; }
.journey li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; position: relative; }
.journey li + li::before { content: ""; position: absolute; left: 10px; top: -10px; height: 18px; border-left: 2px solid var(--line); }
.journey .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; color: #07111e; }
.journey .dot svg { width: 12px; height: 12px; }
.journey li.done .dot { background: var(--green); border-color: var(--green); }
.journey .jl { font-size: 13.5px; font-weight: 700; }
.journey li.todo .jl { color: var(--faint); font-weight: 600; }
.jt { font-size: 11.5px; color: var(--faint); white-space: nowrap; }

/* the quote table: ONE grid for header and rows, so the columns share their widths */
.est { display: grid; grid-template-columns: 1fr max-content max-content; column-gap: 18px; margin-top: 10px; }
.est-h, .est-r { display: contents; }
.est-h > span, .est-r > span { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.est-h > span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.est-h > span:nth-child(2), .est-h > span:nth-child(3), .est-r > span:nth-child(2), .est-r > span:nth-child(3) { text-align: right; }
.est-r > span:nth-child(2) { font-weight: 800; }
.est-r.low > span:nth-child(2) { color: var(--green); }
.est-r > span:nth-child(3) { color: var(--muted); }

/* skeleton rows while quotes are pending */
.skel .est-r > span { text-align: right; }
.skel .est-r > span:first-child { text-align: left; }
.sk { display: inline-block; height: 12px; border-radius: 6px; vertical-align: middle; background: linear-gradient(90deg, rgba(140,179,255,.10) 25%, rgba(140,179,255,.22) 50%, rgba(140,179,255,.10) 75%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* new request */
.step-head { margin-bottom: 12px; }
.step-head h2 { margin-top: 2px; }
.rush-row strong { display: block; }
.pref summary { cursor: pointer; font-size: 13px; color: var(--blue2); font-weight: 700; }
.form .card + .card { margin-top: 12px; }

/* board */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tabs button { background: none; border: none; color: var(--muted); font-weight: 800; font-size: 13px; padding: 10px 12px; cursor: pointer; border-bottom: 2px solid transparent; min-height: 44px; }
.tabs button.active { color: var(--blue2); border-bottom-color: var(--blue2); }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
/* the leaderboard's top row: scope tabs left, category pills right, one underline across */
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.lb-top .tabs { border-bottom: none; margin-bottom: 0; }
.lb-top .pills { margin: 6px 4px 6px 0; }
.pills { display: inline-flex; gap: 2px; background: rgba(0,0,0,.25); border-radius: 8px; padding: 2px; }
.pills button { font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 6px; border: none; cursor: pointer; background: none; color: rgba(246,248,251,.6); min-height: 32px; }
.pills button.active { background: rgba(140,179,255,.18); color: var(--blue2); }
.lb { display: grid; }
.lb-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 9px 16px; border-bottom: 1px solid rgba(140,179,255,.07); font-size: 13px; }   /* 16px side margins: the rank in from the left edge, the count in from the right (Jason 10-09) */
.lb-rank { color: var(--faint); font-weight: 800; }
.lb-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lb-sub { color: var(--muted); font-size: 11.5px; }
.lb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-city { font-weight: 400; font-size: 12px; margin-left: 10px; color: var(--muted); }   /* one size down, two spaces off the name, the muted tone so it never reads as bold */
.lb-row.me .lb-city { color: rgba(37,194,122,.8); }
.lb-badge { margin-left: 10px; vertical-align: 1px; font-size: 9px; padding: 2px 6px; }
.lb-badges { display: flex; gap: 4px; margin-top: 3px; }
.lb-val { font-weight: 800; font-size: 15px; }
.lb-row.me { color: var(--green); }
.lb-row.me .lb-rank, .lb-row.me .lb-sub { color: rgba(37,194,122,.8); }
.lb-gap { color: var(--faint); padding: 4px 0 4px 14px; letter-spacing: .2em; }
.lb-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* notifications */
.notif { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13.5px; }
.notif:last-child { border-bottom: 0; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(14,23,38,.96); border: 1px solid var(--line); color: var(--text); font-size: 13px; padding: 10px 14px; border-radius: 12px; z-index: 300; box-shadow: 0 10px 40px rgba(0,0,0,.4); }

@media (max-width: 900px) {
  input, textarea, select { font-size: 16px !important; }
  .app { display: block; }
  .rail { display: none; }
  .main { padding: calc(18px + env(safe-area-inset-top)) 16px calc(28px + 62px + env(safe-area-inset-bottom)); }
  .mnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 250; }
  .grid-3, .grid-2, .row { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .metric { font-size: 22px; }
  h1 { font-size: 24px; }
  .head { flex-direction: column; align-items: flex-start; }
}

/* the quote rows a rep can pick for the buyer (workflow step 3, 10-16): a tick box on the left,
   the picked rows lit, the buyer's choice marked */
.est.pick .est-r { cursor: pointer; }
.est.pick .est-r .tick { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line); margin-right: 8px; vertical-align: -2px; }
.est.pick .est-r.sel .tick { background: var(--blue); border-color: var(--blue); }
.est.pick .est-r.sel { background: rgba(91, 141, 239, 0.08); }
.est .est-r.chosen > span:first-child { color: var(--green); font-weight: 700; }
.est:not(.pick) .est-r .tick { display: none; }

/* the work-with person's fields are required once chosen (10-16): a quiet mark on the label */
.field.req > label::after { content: " *"; color: var(--blue2); }

/* the request page (Jason 10-16): the back chip above the address, Rush beside the name, the
   people sections, the Bind panel up top, the quote-document links */
.back-chip { display: inline-flex; align-items: center; gap: 1px; font-size: 10px; font-weight: 700; letter-spacing: .03em; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px 2px 4px; cursor: pointer; margin-bottom: 8px; }
.back-chip svg { width: 11px; height: 11px; }
.back-chip:hover { color: var(--text); border-color: rgba(140,179,255,.35); }
.req-head h1 .badge { font-size: 10px; }
.bind-top { border-color: rgba(37,194,122,.35); margin-bottom: 12px; }
.bind-top-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.bind-top-pick { font-size: 15px; margin-top: 4px; }
.person-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.035); color: var(--muted); cursor: pointer; }
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn:hover { color: var(--text); border-color: rgba(140,179,255,.35); }
.kv-toggle { cursor: pointer; align-items: center; }
.kv-toggle input { width: 16px; height: 16px; accent-color: var(--blue); margin: 0; }
.est-pdf { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(140,179,255,.45); }
.est-pdf svg { width: 12px; height: 12px; margin-left: 5px; vertical-align: -1px; color: var(--blue2); }
.est-pdf:hover { color: var(--blue2); }
.notes-ro { font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; margin: 8px 0; }
