/* =====================================================================
   FundRapido app: sign-in pages, application wizard, "My applications".
   Loaded by the App template pages that use it (head_extra). Real data, no demo.
   ===================================================================== */
:root {
  --bg: #f5f7fb; --surface: #fff; --surface-2: #eef2f7;
  --ink: #0b1f3a; --ink-2: #1f2d4a; --muted: #5a6a85; --line: #dfe5ee;
  --primary: #1456f1; --primary-ink: #0a3bb3; --primary-soft: #e8efff;
  --accent: #00a878; --accent-soft: #e3f8f0; --warn: #8a4a00; --warn-soft: #fff4e0; --danger: #b8322a; --danger-soft: #fde8e6;
  --radius: 14px; --shadow: 0 8px 24px rgba(11,31,58,.07);
  --font: "Source Sans 3", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Source Sans 3", "Helvetica Neue", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.fr-app { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.fr-app a { color: var(--primary); }
.fr-app h1, .fr-app h2, .fr-app h3 { font-family: var(--display); letter-spacing: -.02em; margin: 0 0 8px; text-wrap: balance; }
.fr-app h1 { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.12; }
.fr-app h2 { font-size: 1.2rem; }
.fr-app h3 { font-size: 1rem; }
.fr-app p { margin: 0 0 12px; color: var(--ink-2); }
.muted { color: var(--muted); font-size: .88rem; }
/* GDPR first-layer lines under forms (links to the privacy policy and the terms): small, links underlined */
.muted.fa-legal, .auth .muted.fa-legal { font-size: .82rem; line-height: 1.5; }   /* beats .auth .muted further down */
.fa-legal a { color: inherit; text-decoration: underline; }
[hidden] { display: none !important; }
.sr, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* ---------- top bar ---------- */
.fa-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
/* the same logo as the site header (site.css .nav__logo + refresh.css): 38×32 mark, Instrument Sans 1.12rem/750 */
.fa-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-family: "Source Sans 3", "Helvetica Neue", system-ui, sans-serif; font-weight: 750; font-size: 1.12rem; letter-spacing: -.02em; color: var(--ink) !important; text-decoration: none; }
.fa-brand svg.fr-brand-mark { width: 38px; height: 32px; display: block; flex: none; color: #0047ff; }
.fa-top__right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: .88rem; }
.fa-user { color: var(--muted); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.lang-switch a { display: inline-block; text-decoration: none; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 650; color: var(--muted); }
.lang-switch a[aria-current] { background: var(--ink); color: #fff; }
.lang-switch:empty { display: none; }
.fa-top__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink) !important; font-weight: 650; font-size: .9rem; text-decoration: none; white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.fa-top__err { color: var(--danger); font-weight: 600; font-size: .85rem; }
.fa-top__btn:hover { border-color: var(--primary); color: var(--primary) !important; }
.fa-top__btn--primary { background: var(--primary); border-color: var(--primary); color: #fff !important; box-shadow: 0 8px 18px -10px var(--primary); }
.fa-top__btn--primary:hover { background: var(--primary-ink); border-color: var(--primary-ink); color: #fff !important; }
.fa-top__link { color: var(--muted) !important; text-decoration: none; font-weight: 600; white-space: nowrap; }
.fa-top__link:hover { color: var(--ink) !important; text-decoration: underline; }

/* ---------- layout ---------- */
.fa-shell { display: grid; gap: 24px; max-width: 1160px; margin: 0 auto; padding: 28px 20px 64px; }
@media (min-width: 960px) { .fa-shell { grid-template-columns: 230px minmax(0, 1fr); gap: 48px; } }
.fa-main { min-width: 0; max-width: 680px; }
.fa-main--wide { max-width: none; }

/* ---------- cards, fields, buttons ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card + .card, .card + .stack, .stack + .card { margin-top: 16px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row--end { justify-content: flex-end; }
.row--between { justify-content: space-between; }
.grid2 { display: grid; gap: 12px; }
@media (min-width: 620px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }   /* a taller neighbour (hint, error) must not stretch the control */
.field label, .field .label { font-weight: 650; font-size: .88rem; }
/* one height for every control: inputs match the site dropdown (button.fr-select in refresh.css, 48px) */
.field input, .field select, .field textarea { width: 100%; box-sizing: border-box; min-height: 48px; font: 500 .95rem/1.45 var(--font); padding: 11px 14px; border: 1px solid #d5dfec; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 2px 4px rgba(11,31,58,.025); }
.field input[type="checkbox"], .field input[type="radio"] { width: auto; min-height: 0; box-shadow: none; }
/* fallback while selects.js is not loaded: native select drawn like the others */
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2364758c' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field.has-err button.fr-select { border-color: var(--danger); }
.field button.fr-select:focus-visible { outline: 2px solid var(--primary); outline-offset: 0; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
.field .hint { font-size: .8rem; color: var(--muted); }
.field .err, .card > .err { font-size: .8rem; color: var(--danger); }
.card > .err { font-size: .88rem; font-weight: 600; }
.field.has-err input, .field.has-err select { border-color: var(--danger); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font: 650 .92rem/1.2 var(--font); border: 1px solid transparent; cursor: pointer; text-decoration: none !important; }
.btn--primary { background: var(--primary); color: #fff !important; }
.btn--primary:hover { background: var(--primary-ink); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink) !important; }
.btn--ghost:hover { border-color: #bfd0ec; }
.btn--link { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; }
.btn--danger { background: #fff; border-color: #f1c7c2; color: var(--danger) !important; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--block { width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill--ok { background: var(--accent-soft); color: #0a6d4f; }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--bad { background: var(--danger-soft); color: var(--danger); }
.pill--info { background: var(--primary-soft); color: var(--primary-ink); }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--primary-soft); color: var(--ink-2); font-size: .9rem; }
.notice--warn { background: var(--warn-soft); }
.notice--bad { background: var(--danger-soft); }
.notice--ok { background: var(--accent-soft); }
.notice b { color: var(--ink); }

/* ---------- choice lists (platforms, banks) ---------- */
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.choice:hover { border-color: #bfd0ec; }
.choice__txt { flex: 1; min-width: 0; display: grid; }
.choice__txt small { color: var(--muted); font-size: .8rem; }
.mark { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--pm, var(--ink)); color: #fff; font-weight: 800; font-family: var(--display); }
.mark--bank { background: var(--primary-soft); color: var(--primary); }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item__txt { flex: 1; min-width: 0; display: grid; }
.item__txt small { color: var(--muted); font-size: .8rem; }
.files { display: grid; gap: 6px; margin: 8px 0 0 46px; }
.file { display: flex; align-items: center; gap: 10px; font-size: .85rem; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; }
.file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload { display: grid; gap: 8px; margin: 8px 0 0 46px; padding: 12px; border: 1px dashed #c6d3e8; border-radius: 10px; }
.upload .grid2 { gap: 8px; }

/* ---------- review / status ---------- */
.kv { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 6px 16px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.hero-amt { border-radius: var(--radius); padding: 22px; background: linear-gradient(135deg, #0b1f3a, #17357a); color: #fff; text-align: center; }
.hero-amt small { display: block; opacity: .8; font-size: .8rem; }
.hero-amt b { display: block; font-family: var(--display); font-size: 2rem; letter-spacing: -.02em; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 12px 1fr; gap: 12px; font-size: .9rem; }
.timeline li::before { content: ""; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--primary); }
.timeline time { display: block; color: var(--muted); font-size: .78rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tabs a { text-decoration: none; color: inherit; font: inherit; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.tabs a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .9rem; z-index: 50; }

/* ---------- sign-in pages (Login extra forms) ---------- */
.auth { min-height: calc(100vh - 57px); display: grid; align-items: center; padding: 48px 24px 64px; background: radial-gradient(ellipse at 10% 10%, #e8efff 0, transparent 55%), #f5f7fb; }
.auth__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; max-width: 1080px; margin: 0 auto; align-items: stretch; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: 0 24px 70px -35px #0b1f3a40; overflow: hidden; }
.auth__box.card { width: 100%; min-width: 0; padding: 44px 48px; border: 0; border-radius: 0; align-content: center; gap: 16px; }
.auth .auth__box h1 { font-size: clamp(1.75rem, 2.5vw, 2.2rem); letter-spacing: -.035em; line-height: 1.12; margin: 0; }
.auth .muted { color: #5a6a85; font-size: .94rem; line-height: 1.6; margin: 0; }
.auth__brand { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 40px; background: #0b1f3a; color: #fff; min-width: 0; }
.auth .auth__eyebrow { color: #7fe6c0; font-size: .66rem; letter-spacing: .13em; font-weight: 700; margin: 0 0 18px; }
.auth .auth__brand h2 { font-family: var(--display); font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.08; letter-spacing: -.04em; color: #fff; white-space: pre-line; margin: 0; }
.auth__art { display: block; width: calc(100% + 32px); max-width: none; height: auto; margin: 10px -16px 4px; }
.auth__benefits { list-style: none; display: grid; gap: 14px; padding: 0; margin: 0; font-size: .9rem; }
.auth__benefits li { display: flex; gap: 12px; align-items: baseline; }
.auth__benefits li::before { content: "✓"; flex: none; color: #7fe6c0; font-weight: 700; }
.auth .auth__trust { color: #d2dff0; font-size: .77rem; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid #ffffff26; }
.auth .auth__inbox { display: block; width: 144px; height: auto; margin: 0 auto 24px; }
.auth__sent > h1 { margin-bottom: 20px !important; }
.auth__sent > .muted { margin: 18px 0 !important; }
.auth__box .auth__form.stack { gap: 16px; }
.auth .field input { font-size: 16px; border-color: #8595ad; }
.auth .btn { min-height: 48px; white-space: normal; text-align: center; }
.auth .check { display: flex; align-items: flex-start; gap: 10px; font-size: .82rem; line-height: 1.5; }
.auth .check input { accent-color: #1456f1; width: 18px; height: 18px; flex: none; margin: 2px 0 0; }
.auth a:not(.btn) { text-underline-offset: 3px; }
.auth a:focus-visible, .auth button:focus-visible, .auth input:focus-visible { outline: 3px solid #1456f1; outline-offset: 3px; }
.auth .auth__forgot { font-size: .88rem; margin: 0; }
.auth .auth__msg { color: #a12620; }
.auth .auth__msg--ok { color: #0a6d4f; }
@media (max-width: 860px) {
  .auth { padding: 24px 16px 40px; align-items: start; }
  .auth__layout { grid-template-columns: minmax(0, 1fr); max-width: 520px; border-radius: 22px; }
  .auth__box.card { padding: 32px; }
  .auth__brand { padding: 28px 32px; }
  .auth .auth__brand h2 { font-size: 1.8rem; }
  .auth__art { display: none; }
  .auth__benefits { margin-top: 24px; }
}
@media (max-width: 400px) {
  .auth__box.card, .auth__brand { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth *, .auth *::before, .auth *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.auth__box form { display: grid; gap: 14px; }
.auth__box fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.auth__box legend { display: none; }
.auth__msg:empty { display: none; }
.auth__msg { padding: 12px 14px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: .88rem; }
.auth__msg--ok { background: var(--accent-soft); color: #0a6d4f; }
.auth__alt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.error { color: var(--danger); font-size: .8rem; }
@media (max-width: 520px) { .fa-user { display: none; } .kv { grid-template-columns: 1fr; } .files, .upload { margin-left: 0; } }
/* Register: after a successful sign-up only the "check your e-mail" note is shown */
.auth__box[data-sent="1"] > .auth__form, .auth__box[data-sent=""] > .auth__sent { display: none; }
.auth__box .error:empty { display: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
.auth__fp { display: grid; gap: 14px; }
.auth__fp[data-sent="1"] > .auth__form, .auth__fp:not([data-sent="1"]) > .auth__sent { display: none; }
/* partner sign-up: the form has two parts (company / access) */
.auth__section { margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font: 700 .78rem/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.auth__section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.auth__box .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .auth__box .grid2 { grid-template-columns: 1fr; } }
.field button.fr-select .fr-select-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* one line: same 48px as the inputs */
.choice--radio { cursor: pointer; }
.choice--radio input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.choice--radio:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.fa-discard { margin-top: 10px; font-size: .82rem; color: var(--muted); justify-content: flex-start; }

/* =====================================================================
   Cabinets as an app (phones, installed PWA) — 2026-09-28
   Tab bar, dashboard, status/offer screens, sticky actions, wizard progress.
   ===================================================================== */
body.fr-app-page { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body.fr-app-page h1, body.fr-app-page h2, body.fr-app-page h3 { font-family: var(--display); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
body.fr-app-page h1:not(.authx__seam) { font-size: clamp(1.7rem, 6vw, 2.1rem); line-height: 1.08; font-weight: 800; }
body.fr-app-page h2 { font-size: 1.2rem; font-weight: 700; }
/* no iOS zoom on focus: every editable control at 16px */
.field input, .field select, .field textarea, .fr-app-page input, .fr-app-page textarea { font-size: 16px !important; }
.desk-only { display: none !important; }
@media (min-width: 960px) { .desk-only { display: inline-flex !important; } }
.btn { min-height: 48px; }
.btn--link { min-height: 44px; }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.btn--go { font-size: 1.05rem; min-height: 56px; border-radius: 16px; box-shadow: 0 18px 36px -14px rgba(20,86,241,.6); }

/* ---------- top bar: compact on phones, app chrome in the installed app ---------- */
.fa-top { padding-top: max(12px, env(safe-area-inset-top)); padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.lang-switch a { min-height: 32px; display: inline-flex; align-items: center; }
@media (max-width: 959px) {
  body.fa-tabs .fa-top__right { display: none; }                 /* account + language live in the tab bar's Account sheet */
  body.fa-tabs .fa-top { justify-content: center; border-bottom: 0; background: rgba(245,247,251,.9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
}
@media (max-width: 420px) { .fa-top__right { gap: 8px; font-size: .82rem; } .fa-top__btn { min-height: 36px; padding: 0 12px; font-size: .84rem; } }
/* 320–380px (small phones, 400% zoom): the word "FundRapido" yields its room to the buttons and the language switch
   (the mark stays, the name stays for screen readers: font-size 0 keeps the text node) — no sideways scroll, no cut "EN" */
@media (max-width: 380px) {
  .fa-brand { font-size: 0; gap: 0; }
  .fa-top__right { gap: 6px; }
  .fa-top__btn { padding: 0 10px; }
  .lang-switch a { padding: 4px 8px; }
}

/* ---------- bottom tab bar ---------- */
.fa-tabbar { display: none; }
.fa-tabbar--2 { grid-template-columns: 1fr 1fr !important; }
@media (max-width: 959px) {
  /* what the bar covers above the safe area: 68px of bar + the "+" button rising 22px above it + its 6px ring.
     Content ends 16px above that; the sticky action bar (.fa-actions) keeps its buttons 16px above it too */
  body.fa-tabs { --fa-tabbar-cover: 96px; padding-bottom: calc(var(--fa-tabbar-cover) + 16px + env(safe-area-inset-bottom)); }
  .fa-tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; justify-items: center;
    padding: 8px max(28px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); border-top: 1px solid #e3e8f1;
    backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); }
  .fa-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 72px; min-height: 52px; justify-content: center; padding: 0; border: 0; background: none;
    font: 600 .74rem/1 var(--font); color: var(--muted) !important; text-decoration: none; cursor: pointer; }
  .fa-tab[aria-current="page"] { color: var(--primary) !important; font-weight: 700; }
  .fa-tab--new { margin-top: -30px; width: 64px; height: 64px; min-width: 0; border-radius: 22px; background: var(--primary); color: #fff !important; box-shadow: 0 16px 30px -12px rgba(20,86,241,.65), 0 0 0 6px #f5f7fb; }
  .fa-tab--new:active { transform: scale(.96); }
  .toast { bottom: calc(110px + env(safe-area-inset-bottom)); }
}
.toast { bottom: calc(24px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); }

/* ---------- account sheet ---------- */
.fa-sheet { margin: auto auto 0; width: 100%; max-width: 520px; border: 0; border-radius: 26px 26px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); background: #fff; color: var(--ink); display: grid; gap: 14px; }
.fa-sheet[open] { animation: fa-up .22s var(--ease-out, ease-out); }
.fa-sheet::backdrop { background: rgba(7,22,52,.45); }
@media (min-width: 900px) { .fa-sheet { margin: auto; border-radius: 26px; } }
@keyframes fa-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.fa-sheet__grip { width: 42px; height: 5px; border-radius: 3px; background: #d5dfec; margin: 0 auto 4px; }
.fa-sheet__head { display: flex; align-items: center; gap: 12px; }
.fa-sheet__head div { display: grid; min-width: 0; }
.fa-sheet__head small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.fa-sheet__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 4px; border-top: 1px solid #edf1f7; color: var(--ink) !important; text-decoration: none; font-weight: 600; }
.fa-sheet__row--link { justify-content: flex-start; color: var(--danger) !important; }
.fa-langs { display: flex; gap: 6px; }
.fa-lang { min-width: 52px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); color: var(--ink) !important; text-decoration: none; font-weight: 700; }
.fa-lang.is-on { background: var(--ink); color: #fff !important; border-color: var(--ink); }
.fa-avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; }
.fa-avatar--soft { width: 38px; height: 38px; font-size: .8rem; background: var(--primary-soft); color: var(--primary); }

/* ---------- dashboard ---------- */
.dash { gap: 18px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 4px; }
.dash-head__hi { display: block; color: var(--muted); font-size: .92rem; margin-bottom: 2px; }
.list-head { margin-bottom: -6px; }
.apps2 { display: grid; gap: 12px; }
@media (min-width: 900px) { .apps2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.app2 { display: grid; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid transparent; border-radius: 20px; color: var(--ink) !important; text-decoration: none;
  box-shadow: 0 2px 6px rgba(11,31,58,.05); transition: transform .15s, box-shadow .15s; }
.app2:hover { box-shadow: var(--shadow); }
.app2:active { transform: scale(.985); }
.app2--ok { border-color: #00c389; }
.app2--warn { border-color: #f3c27a; }
.app2__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.app2__who { display: grid; min-width: 0; }
.app2__who b { overflow-wrap: anywhere; }
.app2__who small, .app2__foot small { color: var(--muted); font-size: .82rem; }
.app2__amt { font-family: var(--display); font-weight: 800; font-size: 1.35rem; white-space: nowrap; }
.app2__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.empty { display: grid; gap: 12px; justify-items: start; padding: 24px; }

/* ---------- 4-part progress ---------- */
.fa-prog { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.fa-prog__bar { display: block; height: 5px; border-radius: 3px; background: #e3e8f1; }
.fa-prog li.is-on .fa-prog__bar { background: var(--primary); }
.fa-prog li.is-ok .fa-prog__bar { background: #00c389; }
.fa-prog li.is-warn .fa-prog__bar { background: #d9822b; }
.fa-prog li.is-bad .fa-prog__bar { background: var(--danger); }
.fa-prog--labels li { display: grid; gap: 7px; font-size: .74rem; color: #aebcd8; }
.fa-prog--labels .fa-prog__bar { height: 6px; background: rgba(255,255,255,.18); }
.fa-prog--labels li.is-on, .fa-prog--labels li.is-ok { color: #dbe5f8; }
.fa-prog--labels li.is-warn { color: #ffcf8a; font-weight: 700; }
.fa-prog--labels li.is-warn .fa-prog__bar { background: #ffcf8a; }
.fa-prog--labels li.is-ok .fa-prog__bar { background: #00c389; }
.fa-prog--labels li.is-bad { color: #ffb4ac; }

/* ---------- status screen ---------- */
.fa-status { gap: 16px; }
.fa-topline { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.fa-iconbtn { width: 44px; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--ink) !important; box-shadow: 0 2px 6px rgba(11,31,58,.06); }
.st-hero { display: grid; gap: 18px; padding: 20px; border-radius: 24px; color: #fff; background: linear-gradient(140deg, #071634 0%, #0b1f3a 45%, #17357a 100%); }
.st-hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.st-hero__top > div { display: grid; gap: 4px; min-width: 0; }
.st-hero__co { color: #c9d6f2; font-size: .92rem; overflow-wrap: anywhere; }
.st-hero__amt { font-family: var(--display); font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.st-hero .pill--warn { background: #ffcf8a; color: #3d2200; }
.st-hero .pill--info { background: rgba(255,255,255,.16); color: #fff; }
.st-hero .pill--ok { background: #7fe6c0; color: #04291f; }
.notice svg { flex: none; margin-top: 1px; }
.req2 { gap: 14px; border: 0; border-radius: 22px; box-shadow: 0 8px 24px rgba(11,31,58,.07); }
.req2__who { display: flex; align-items: center; gap: 10px; }
.req2__who div { display: grid; }
.req2__who small { color: var(--muted); font-size: .8rem; }
.req2__msg { margin: 0 !important; padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: #f3f6fb; color: var(--ink) !important; font-size: 1rem; }
.dropzone { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 16px; border: 1.5px dashed #9db4e8;
  background: #f6f8fd; color: var(--primary); font-weight: 700; text-align: center; cursor: pointer; overflow-wrap: anywhere; }
.dropzone:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
.timeline li { font-size: .95rem; }
.timeline li.tl--approved::before { background: #00c389; }
.timeline li.tl--needs_information::before, .timeline li.tl--info::before { background: #d9822b; }
.timeline li.tl--rejected::before { background: var(--danger); }

/* ---------- offer ---------- */
.offer2 { gap: 14px; }
.offer2__hero { position: relative; overflow: hidden; display: grid; gap: 6px; padding: 22px 20px 24px; border-radius: 24px; color: #fff; background: linear-gradient(160deg, #04291f 0%, #0b1f3a 55%, #17357a 100%); }
.offer2__hero::before { content: ""; position: absolute; left: -80px; top: 20px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(0,195,137,.5), transparent 65%); pointer-events: none; }
.offer2__hero > * { position: relative; }
.offer2__ok { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #7fe6c0; color: #04291f; font-size: .82rem; font-weight: 700; margin-bottom: 6px; }
.offer2__lbl { color: #c9d6f2; font-size: .95rem; }
.offer2__amt { font-family: var(--display); font-size: clamp(2.8rem, 14vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: .95; }
.offer2__card { position: relative;   /* under the hero, not over it (it read as a layout fault on wide screens) */ border: 0; border-radius: 22px; box-shadow: 0 8px 24px rgba(11,31,58,.08); display: grid; gap: 14px; }
.offer-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #00c389; }
.offer-bar__p { background: var(--primary); }
.offer2__kv { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 0; }
.offer2__kv dt { padding-right: 8px; }   /* no column gap: the line over the total runs through */
.offer2__kv dt { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.offer2__kv dd { margin: 0; text-align: right; font-weight: 700; }
.offer2__kv .tot { padding-top: 12px; border-top: 1px solid #e3e8f1; color: var(--ink); font-weight: 700; }
.offer2__kv dd.tot { font-family: var(--display); font-size: 1.3rem; font-weight: 800; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw--p { background: var(--primary); } .sw--f { background: #00c389; }
.offer2__share { display: flex; align-items: center; gap: 14px; border: 0; border-radius: 22px; }
.offer2__share p { margin: 0 !important; }
.offer2__pct { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-family: var(--display); font-weight: 800; font-size: .95rem; }
.offer2__steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.offer2__steps li { counter-increment: st; display: flex; align-items: center; gap: 12px; }
.offer2__steps li::before { content: counter(st); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; }

/* ---------- wizard on phones: progress header + sticky actions ---------- */
.fa-progress { display: none; }
@media (max-width: 959px) {
  .fa-shell { padding: 16px max(16px, env(safe-area-inset-left)) 40px; gap: 16px; }
  .fa-progress { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 6px 12px; }
  .fa-progress__close { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--ink) !important; box-shadow: 0 2px 6px rgba(11,31,58,.06); }
  .fa-progress__txt { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: .82rem; color: var(--muted); font-weight: 600; }
  .fa-progress__txt b { color: var(--ink); }
  .fa-progress__bar { display: block; height: 6px; border-radius: 3px; background: #e3e8f1; overflow: hidden; }
  .fa-progress__bar span { display: block; height: 100%; border-radius: 3px; background: var(--primary); transition: width .3s; }
  .fa-discard { margin-top: 6px; }
  .card { padding: 18px; border-radius: 20px; }
  .fa-actions { position: sticky; bottom: 0; z-index: 5; margin: 4px -18px -18px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff 28%); flex-wrap: nowrap; }
  .fa-main > .stack > .fa-actions, .fa-status .fa-actions { margin: 0 -16px; padding-left: 16px; padding-right: 16px; background: linear-gradient(180deg, rgba(245,247,251,0), var(--bg) 28%); }
  body.fa-tabs .fa-actions { bottom: calc(var(--fa-tabbar-cover) + 16px - 14px + env(safe-area-inset-bottom)); padding-bottom: 14px; }   /* 14px: the bar's own bottom padding; the safe area is the tab bar's */
  .fa-actions .btn { flex: 1; min-height: 54px; border-radius: 16px; font-size: 1rem; }
  .fa-actions .btn--ghost { flex: 0 0 auto; }
  .row--end.fa-actions .btn--primary { width: 100%; }
  .upload .row { flex-direction: column; align-items: stretch; }
  .upload input[type="file"] { min-height: 48px; font-size: 16px; }
}
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } }

/* ---------- installed app (display-mode: standalone) ---------- */
@media (display-mode: standalone) {
  html, body { overscroll-behavior-y: none; }
  .skip-link { display: none; }
}
.fa-loading { min-height: 60vh; display: grid; place-items: center; }
.fa-loading__dot { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--primary-soft); border-top-color: var(--primary); animation: fa-spin .8s linear infinite; }
@keyframes fa-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fa-loading__dot { animation-duration: 2.4s; } }
.item > div, .upload, .files { min-width: 0; max-width: 100%; }
.upload input[type="file"] { max-width: 100%; }
/* "Install the app" card */
.inst { display: grid; gap: 12px; padding: 16px; border-radius: 20px; background: #fff; border: 1px solid #dbe5fb; box-shadow: 0 2px 6px rgba(11,31,58,.05); }
.inst__top { display: flex; gap: 12px; align-items: center; }
.inst__top div { display: grid; gap: 2px; }
.inst__top small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.inst__icon { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.inst__steps { margin: 0; padding: 0 0 0 4px; list-style: none; counter-reset: i; display: grid; gap: 8px; font-size: .92rem; }
.inst__steps li { counter-increment: i; display: flex; gap: 10px; align-items: flex-start; }
.inst__steps li::before { content: counter(i); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: .78rem; font-weight: 700; }
.inst__act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inst__act .btn--primary, .inst__act .btn--ghost { flex: 1; }
@media (max-width: 520px) { .fa-top { padding: 0 14px; } }
/* bank statements: period as month + year selects, the file uploads on choice */
.ym { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; }
.ym select { min-width: 0; }
.upload .field { display: grid; gap: 6px; }
input.sr:focus-visible + .dropzone { outline: 3px solid var(--primary); outline-offset: 2px; }
.upload.is-busy .dropzone { opacity: .6; pointer-events: none; }
.btn--primary.is-soft { opacity: .55; }
/* grids never grow wider than the screen because of a long option / file name inside */
.stack { grid-template-columns: minmax(0, 1fr); }
.upload { grid-template-columns: minmax(0, 1fr); }
.files { grid-template-columns: minmax(0, 1fr); }
/* date of birth: day · month · year */
.dob { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.8fr) minmax(0, 1fr); gap: 8px; max-width: 520px; }
.dob select { min-width: 0; padding-left: 12px; padding-right: 30px; background-position: calc(100% - 10px) 50%; text-overflow: ellipsis; }
/* a field in error shows the error, not the same hint twice */
.field.has-err .hint { display: none; }
.auth .field.has-err input, .field.has-err input:focus, .field.has-err select:focus { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(184, 50, 42, .14); }

/* contact checks (e-mail / phone): an informative card, never a blocker */
.verify { border: 1px solid #f0c36d; background: #fffaf0; }
.verify__head { display: flex; align-items: center; gap: 10px; color: #8a5200; }
.verify__head h2 { margin: 0; font-size: 1.05rem; color: inherit; }
.verify .row { flex-wrap: wrap; }
.verify + .verify { margin-top: 0; }
/* (removed stale dark-mode verify override — it reintroduced the gold accent; the cabinet renders light) */
.verify__part + .verify__part { border-top: 1px solid #f0d9a8; padding-top: 16px; }
.verify__part .field { max-width: 360px; }

/* ---------- e-mail code window (2026-09-30): six boxes, one per digit ---------- */
.cm { gap: 16px; }
.cm__head { display: flex; align-items: center; gap: 12px; }
.cm__head h2 { margin: 0; font-size: 1.25rem; }
.cm__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); flex: none; }
.cm__lead { margin: 0; }
.cm__lead b { overflow-wrap: anywhere; }
.cm__lead .btn--link { padding: 0; min-height: 0; font-weight: 650; }
.cm__boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 360px; }
.cm__d { width: 100%; min-width: 0; height: 56px; padding: 0; text-align: center; font: 700 1.6rem/1 var(--font); font-variant-numeric: tabular-nums; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; caret-color: var(--primary); }
.cm__d:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); outline: none; }
.cm__d:disabled { background: #f5f7fb; color: var(--muted); }
/* a question before an action (window.confirm() is blocked in webviews): the same sheet, the action's button first */
.ask .cm__head h2 { font-size: 1.1rem; line-height: 1.35; }
.ask__btns { display: grid; gap: 10px; }
.ask--plain { position: fixed; inset: auto 0 0; z-index: 1000; box-shadow: 0 -10px 40px rgba(7,22,52,.35); }   /* no <dialog> support */
.ask-veil { position: fixed; inset: 0; z-index: 999; background: rgba(7,22,52,.45); }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff !important; }
.btn--danger:hover { background: #9c2a23; border-color: #9c2a23; }
.cm__msg { min-height: 1.4em; margin: 0; font-size: .92rem; color: var(--muted); }
.cm__msg--bad { color: var(--danger); font-weight: 600; }
.cm__msg--ok { color: var(--accent); font-weight: 600; }
.cm__resend { justify-self: start; padding: 0; min-height: 32px; }
.cm__resend:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.cm__ok { display: grid; justify-items: center; gap: 10px; padding: 20px 0 8px; color: var(--accent); text-align: center; }
.cm__ok span { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); }
.cm__ok b { color: var(--ink); font-size: 1.15rem; }
.cm--shake .cm__boxes { animation: cm-shake .32s ease-in-out; }
@keyframes cm-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
@media (max-width: 380px) { .cm__boxes { gap: 6px; } .cm__d { height: 50px; font-size: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { .cm--shake .cm__boxes { animation: none; } }

/* =====================================================================
   CABINET v2 — "worlds" (client = navy/mint, partner = green), echoing
   the Dos mundos sign-in. Focus hero + financing route on the dashboard.
   ===================================================================== */
.fr-w-client  { --w-a:#0b1f3a; --w-b:#17357a; --w-hi:#7fe6c0; --w-accent:#00a878; }
.fr-w-partner { --w-a:#053c2c; --w-b:#0a6e50; --w-hi:#d7fff0; --w-accent:#0b7555; }   /* deep emerald: white text ≥ 4.5:1 */

/* shared hero buttons */
.btn--light { background:#fff; color: var(--w-a, #0b1f3a) !important; border:0; font-weight:700; box-shadow:0 10px 24px -14px rgba(0,0,0,.5); }
.btn--light:hover { background:#f2f5fb; }
.btn--glass { background: rgba(255,255,255,.14); color:#fff !important; border:1px solid rgba(255,255,255,.28); }
.btn--glass:hover { background: rgba(255,255,255,.22); }

/* ---- the focus hero (dashboard) ---- */
.hero2 { position:relative; overflow:hidden;
  display:grid; gap:18px; padding:28px; border-radius:26px; color:#fff;
  background: radial-gradient(135% 135% at 12% 0%, var(--w-b,#17357a), var(--w-a,#0b1f3a) 72%);
  box-shadow: 0 34px 70px -40px var(--w-a,#0b1f3a); }
.hero2::after { content:""; position:absolute; right:-70px; top:-80px; width:230px; height:230px; border-radius:50%;
  background: radial-gradient(circle, var(--w-hi,#7fe6c0), transparent 62%); opacity:.22; pointer-events:none; }
.hero2 > * { position:relative; z-index:1; }
.hero2__eyebrow { display:inline-flex; align-items:center; gap:9px; font-size:.72rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--w-hi,#7fe6c0); }
.hero2__eyebrow i { width:8px; height:8px; border-radius:50%; background:var(--w-hi,#7fe6c0); box-shadow:0 0 0 4px color-mix(in srgb, var(--w-hi,#7fe6c0) 30%, transparent); }
.hero2__row { display:flex; justify-content:space-between; align-items:flex-end; gap:18px; }
.hero2__co { font-family:var(--display); font-weight:750; font-size:1.55rem; line-height:1.08; letter-spacing:-.025em; display:block; overflow-wrap:anywhere; }
.hero2__id small { color:rgba(255,255,255,.66); font-size:.82rem; }
.hero2__amt { font-family:var(--display); font-weight:800; font-size:clamp(1.9rem,4vw,2.7rem); letter-spacing:-.02em; white-space:nowrap; line-height:1; }
.hero2__amts { display:grid; justify-items:end; gap:6px; }
.hero2__req { font-size:.82rem; font-weight:500; color:rgba(255,255,255,.72); white-space:nowrap; }
.hero2 .hero2__say { margin:0; color:rgba(255,255,255,.82); font-size:.95rem; max-width:54ch; }   /* scoped to beat .fr-app p */
.hero2__cta { align-self:flex-start; }

/* financing route: colour the stepper with the active world accent */
.hero2 .fa-prog li.is-on .fa-prog__bar, .hero2 .fa-prog li.is-ok .fa-prog__bar,
.st-hero .fa-prog li.is-on .fa-prog__bar, .st-hero .fa-prog li.is-ok .fa-prog__bar { background: var(--w-hi,#7fe6c0); }
.hero2 .fa-prog li.is-on, .hero2 .fa-prog li.is-ok { color:#fff; }
.hero2 .fa-prog--labels li, .st-hero .fa-prog--labels li { font-size:.72rem; }

/* status screen adopts the partner world when relevant */
.fr-w-partner .st-hero { background: radial-gradient(135% 135% at 12% 0%, #0a6e50, #053c2c 72%); }
.fr-w-partner .st-hero .pill--ok { background:#d7fff0; color:#063d2c; }
/* hero buttons keep a visible focus ring on dark backgrounds */
.hero2 .btn:focus-visible, .pcode__copy:focus-visible { outline:3px solid #fff; outline-offset:2px; }

/* ---- partner hero: code + portfolio ---- */
.hero2--partner .pcode { display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.24); border-radius:16px; padding:12px 16px; }
.pcode small { display:block; color:var(--w-hi); font-size:.7rem; letter-spacing:.1em; text-transform:uppercase; margin-bottom:2px; }
.pcode b { font-family:var(--display); font-size:1.7rem; letter-spacing:.14em; overflow-wrap:anywhere; }
.pcode__copy { flex:none; width:40px; height:40px; border-radius:11px; border:1px solid rgba(255,255,255,.28); background:rgba(255,255,255,.1); color:#fff; display:grid; place-items:center; cursor:pointer; }
.pcode__copy:hover { background:rgba(255,255,255,.2); }
.pstats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.pstat { background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); border-radius:16px; padding:14px 12px; display:grid; gap:2px; }
.pstat b { font-family:var(--display); font-size:1.7rem; line-height:1.1; }
.pstat small { color:rgba(255,255,255,.72); font-size:.76rem; overflow-wrap:anywhere; }
.pstat--ok b { color:var(--w-hi); }

/* ---- application cards: quieter, world accent on hover (keeps the status border) ---- */
.app2 { border-radius:18px; box-shadow:0 1px 2px rgba(11,31,58,.04); transition:box-shadow .18s, transform .18s, border-color .18s; }
.app2:hover { box-shadow:0 18px 40px -24px var(--w-a, #0b1f3a); border-color:color-mix(in srgb, var(--w-accent, #00a878) 45%, var(--line)); transform:translateY(-2px); }
.app2--ok:hover { border-color:#00c389; }
.app2--warn:hover { border-color:#f3c27a; }
@media (prefers-reduced-motion: reduce) { .app2 { transition:none; } .app2:hover { transform:none; } }
.list-head h2 { font-family:var(--display); font-weight:750; letter-spacing:-.02em; }

/* ---- verification: a quiet strip, not a shouting block ---- */
.verify { border:1px solid var(--line); border-radius:18px; padding:16px 18px; background:#fff; box-shadow:none; gap:14px; }
.verify h2 { font-size:1rem; }
.verify p { font-size:.86rem; color:var(--muted); }
.verify__head { gap:10px; color:var(--ink); }                 /* was gold (#8a5200) — align with the brand */
.verify__head svg { color:var(--accent); }                    /* a small green brand accent instead */
.verify__part + .verify__part { border-top-color:var(--line); }

/* ---- greeting ---- */
.dash-head h1 { font-family:var(--display); font-weight:750; letter-spacing:-.03em; }

/* ---- responsive: mobile / PWA ---- */
@media (max-width: 620px) {
  .hero2 { padding:22px; border-radius:22px; gap:16px; }
  .hero2__row { flex-direction:column; align-items:flex-start; gap:4px; }
  .hero2__amts { justify-items:start; }
  .hero2 .fa-prog--labels li, .st-hero .fa-prog--labels li { font-size:.6rem; }
  .pcode b { font-size:1.45rem; }
  .pstat b { font-size:1.45rem; }
}
@media (max-width: 400px) {
  .hero2 .fa-prog--labels li { font-size:0; gap:5px; }     /* bars only when there's no room for stage labels */
}

/* ---- client dashboard footer: "how it works" + help (fills the page, reassures) ---- */
.dash-extra { gap:16px; margin-top:6px; }
.howto { background:#fff; border:1px solid var(--line); border-radius:22px; padding:24px; }
.howto h2 { font-family:var(--display); font-weight:750; letter-spacing:-.02em; margin:0 0 18px; font-size:1.15rem; }
.howto__list { list-style:none; margin:0; padding:0; display:grid; gap:18px; }
@media (min-width:760px){ .howto__list { grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px; } }
.howto__step { display:grid; grid-template-columns:auto minmax(0,1fr); gap:14px; align-items:start; }
.howto__n { width:34px; height:34px; border-radius:11px; display:grid; place-items:center; flex:none;
  font-family:var(--display); font-weight:800; font-size:1.05rem; background:#06795a; color:#fff; }   /* deep green: white ≥ 4.5:1 */
.howto__step b { display:block; font-size:1rem; margin-bottom:4px; overflow-wrap:anywhere; }
.howto .howto__step p { margin:0; color:var(--muted); font-size:.9rem; line-height:1.5; overflow-wrap:anywhere; }
.help2 { display:flex; align-items:center; justify-content:space-between; gap:16px 20px; flex-wrap:wrap;
  background:var(--w-a,#0b1f3a); color:#fff; border-radius:20px; padding:18px 22px; }
.help2 h2 { margin:0; font-family:var(--display); font-weight:750; font-size:1.1rem; }
.help2 p { margin:3px 0 0; color:rgba(255,255,255,.75); font-size:.9rem; }
.help2 .btn { background:#fff; color:var(--w-a,#0b1f3a) !important; border:0; flex:none; font-weight:700; }
.help2 .btn:hover { background:#f2f5fb; }
.help2 .btn:focus-visible { outline:3px solid #fff; outline-offset:2px; }

/* ---- cabinet side menu (desktop ≥960px; phones use the bottom tab bar) ---- */
.fa-nav { display:none; }
@media (min-width:960px){ .fa-nav { display:flex; flex-direction:column; gap:18px; position:sticky; top:84px; align-self:start; min-height:calc(100vh - 160px); } }
.fa-nav__items { display:flex; flex-direction:column; gap:4px; }
.fa-nav__item { display:flex; align-items:center; gap:12px; width:100%; padding:11px 13px; border:0; border-radius:12px; background:none; color:var(--ink-2) !important; text-decoration:none !important; font:inherit; font-weight:600; font-size:.95rem; text-align:left; cursor:pointer; transition:background .15s, color .15s; }
.fa-nav__item svg { flex:none; color:var(--muted); transition:color .15s; }
.fa-nav__item:hover { background:var(--surface-2); color:var(--ink) !important; }
.fa-nav__item:hover svg { color:var(--ink-2); }
.fa-nav__item.is-on { background:color-mix(in srgb, var(--w-accent,#00a878) 13%, #fff); color:var(--w-a,#0b1f3a) !important; }
.fa-nav__item.is-on svg { color:var(--w-accent,#00a878); }
.fa-nav__item:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
.fa-nav__foot { margin-top:auto; padding-top:16px; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:4px; }
.fa-nav__acct { display:flex; align-items:center; gap:10px; padding:4px 6px 10px; min-width:0; }
.fa-nav__acct > div { min-width:0; flex:1; }
.fa-nav__acct .fa-avatar { width:38px; height:38px; flex:none; }
.fa-nav__acct b { display:block; font-size:.9rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fa-nav__acct small { display:block; color:var(--muted); font-size:.78rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fa-nav__item--out { color:var(--danger) !important; }
.fa-nav__item--out svg { color:var(--danger); }
.fa-nav__item--out:hover { background:var(--danger-soft); }

/* ---- partner statistics page ---- */
.sstats { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; }
.sstat { background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px; display:grid; gap:2px; }
.sstat b { font-family:var(--display); font-size:1.7rem; line-height:1.05; }
.sstat small { color:var(--muted); font-size:.78rem; }
.sstat--ok b { color:var(--w-accent,#0b7555); }
.statrow { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:14px; }
@media (max-width:720px){ .statrow { grid-template-columns:1fr; } }
.statconv { display:grid; gap:3px; align-content:center; color:#fff; border:0;
  background:radial-gradient(130% 130% at 15% 0%, var(--w-b,#0a6e50), var(--w-a,#053c2c) 75%); }
.statconv__big { font-family:var(--display); font-weight:800; font-size:clamp(2.4rem,5vw,3.4rem); line-height:1; }
.statconv__t { font-weight:700; }
.statconv .muted { color:rgba(255,255,255,.78) !important; }
.skvs { margin:0; display:grid; gap:10px; }
.skv { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 12px; border-bottom:1px solid var(--line); padding-bottom:10px; margin:0; }
.skvs .skv:last-child { border-bottom:0; padding-bottom:0; }
.skv dt { color:var(--muted); font-size:.9rem; margin:0; }
.skv dd { margin:0; font-family:var(--display); font-weight:750; font-size:1.15rem; }
.barchart { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:12px; align-items:end; height:190px; }
.barchart__col { display:grid; grid-template-rows:auto 1fr auto; gap:6px; align-items:end; justify-items:center; height:100%; }
.barchart__n { font-family:var(--display); font-weight:700; font-size:.85rem; color:var(--ink-2); }
.barchart__track { display:flex; align-items:flex-end; width:100%; max-width:48px; height:100%; }
.barchart__bar { width:100%; min-height:0; border-radius:7px 7px 0 0; background:linear-gradient(var(--w-b,#0a6e50), var(--w-a,#053c2c)); }
.barchart__bar.is-pos { min-height:5px; }
.barchart__col small { color:var(--muted); font-size:.74rem; text-transform:capitalize; }
/* clickable portfolio stats in the partner hero → statistics page */
a.pstats { text-decoration:none !important; cursor:pointer; color:#fff; }
a.pstats:hover .pstat { border-color:rgba(255,255,255,.42); background:rgba(255,255,255,.2); }
a.pstats:focus-visible { outline:3px solid #fff; outline-offset:3px; border-radius:16px; }

/* ---- wizard step header (horizontal; the cabinet menu keeps the left column on every step) ---- */
.wizbar { display:flex; flex-direction:column; gap:12px; }
.wizbar__head { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:28px; }
.wizbar__txt { display:flex; flex-wrap:wrap; gap:0 8px; font-size:.82rem; font-weight:600; color:var(--muted); }
.wizbar__txt b { color:var(--ink); }
.wizbar__bar { display:block; height:6px; border-radius:3px; background:#e3e8f1; overflow:hidden; }
.wizbar__bar span { display:block; height:100%; border-radius:3px; background:var(--w-accent,var(--primary)); transition:width .3s; }
.wizbar__steps { display:none; }
/* one row of equal columns whatever the number of steps; a long label wraps inside its own button */
@media (min-width:620px){ .wizbar__steps { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:6px; list-style:none; margin:0; padding:0; } }
.wizbar__steps li { min-width:0; display:flex; }
@media (min-width:620px){ .wizbar__steps .wizstep { white-space:normal; line-height:1.2; text-align:left; min-height:44px; } }
.wizstep { display:flex; align-items:center; gap:8px; width:100%; padding:8px 12px; border:1px solid var(--line); border-radius:11px; background:#fff; color:var(--ink-2); font:inherit; font-size:.9rem; white-space:nowrap; cursor:pointer; transition:border-color .15s, box-shadow .15s, color .15s; }
.wizstep:hover { border-color:color-mix(in srgb, var(--w-accent,var(--primary)) 45%, var(--line)); color:var(--ink); }
.wizstep i { width:16px; height:16px; flex:none; border-radius:50%; border:2px solid var(--line); background:#fff; }
.wizstep.is-current { border-color:var(--w-accent,var(--primary)); box-shadow:var(--shadow); color:var(--ink); font-weight:650; }
.wizstep.is-current i { border-color:var(--w-accent,var(--primary)); background:var(--w-accent,var(--primary)); box-shadow:inset 0 0 0 3px #fff; }
.wizstep.is-done i { border-color:var(--w-accent,var(--primary)); background:var(--w-accent,var(--primary)); box-shadow:inset 0 0 0 3px #fff; }
.wizstep:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }

/* ---- compact button ---- */
.btn--sm { padding:7px 13px; font-size:.86rem; min-height:0; }

/* ---- profile / account settings ---- */
.pf-card h2 { font-size:1rem; }
.pf-item { display:flex; align-items:center; justify-content:space-between; gap:10px 16px; flex-wrap:wrap; padding:12px 0; border-top:1px solid var(--line); }
.pf-card h2 + .pf-item { border-top:0; padding-top:2px; }
.pf-item__main { display:flex; align-items:center; gap:12px; min-width:0; }
.pf-item__main > svg { flex:none; color:var(--muted); }
.pf-item__txt { min-width:0; }
.pf-item__l { display:block; color:var(--muted); font-size:.78rem; }
.pf-item__txt b { word-break:break-word; }
.pf-item__side { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.pf-prefs { gap:0; }
.pf-prefs h2 { margin-bottom:4px; }
.pf-prefs .fa-sheet__row:first-of-type { border-top:0; }

/* ---- referral share: several channels ---- */
.sharebar { display:flex; flex-wrap:wrap; gap:8px; }
.shareb { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:12px; border:1px solid rgba(255,255,255,.28); background:rgba(255,255,255,.12); color:#fff !important; font:inherit; font-weight:650; font-size:.9rem; text-decoration:none !important; cursor:pointer; transition:background .15s, border-color .15s; }
.shareb:hover { background:rgba(255,255,255,.22); border-color:rgba(255,255,255,.52); }
.shareb > svg { flex:none; }
.shareb:focus-visible { outline:3px solid #fff; outline-offset:2px; }
.shareb--wa { background:#25d366; border-color:#25d366; color:#06231a !important; }
.shareb--wa:hover { background:#20c15d; border-color:#20c15d; }
/* 2026-10-08: revenue sources — one per platform; Amazon regions right under the Amazon button */
.choice.is-added { cursor: default; background: #f6f9fc; color: var(--muted); }
.choice.is-added:hover { border-color: var(--line); }
.choice.is-added .choice__txt small { color: #0a8f63; font-weight: 600; }
.src-regions { margin: -2px 0 6px 18px; border-left: 3px solid var(--primary); }
/* 2026-10-08: sign-up code form (FrSignupCode) */
.auth__code { margin-top: 6px; }
.auth__code-input { font: 700 1.6rem/1 var(--font) !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.auth__code-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 4px; }
.auth__msg:empty { display: none; }
.auth__msg .ok { color: #0a8f63; }

/* review v2: the offer's contribution first, the amount asked small under it */
.st-hero__amts { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.st-hero__req, .app2__req { display: block; font-size: .78rem; font-weight: 500; color: var(--muted, #5a6a85); }
.app2__amt { text-align: right; }
/* what the client sent, read-only, under the status */
.fa-summary > summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.fa-summary[open] > summary { margin-bottom: 8px; }
/* a copy of the application: the browser's print to PDF shows only the status and what was sent */
@media print {
  .fa-nav, .fa-tabs, .tabbar, .fa-top, .fa-topline .fa-iconbtn, .toast, .notice, .fa-activity, .btn, .dash-extra, .site-header, .site-footer, header.top { display: none !important; }
  details.fa-summary > *:not(summary) { display: block; }
  .fa-shell { display: block !important; }
  .fa-summary > summary { list-style: none; }
  .fa-summary .card { break-inside: avoid; box-shadow: none; border: 1px solid #ccd3df; }
  body { background: #fff !important; }
}

/* a bank whose statement was refused: the reason under its upload button, the card outlined (staging review 31.10) */
.item.item--bad { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.upload .up-err { flex-basis: 100%; margin: .4rem 0 0; color: var(--danger); font-size: .9rem; }
