/* A1LPay onboarding — tokens from a1lpay.co.za assets/styles.css */
:root {
  --brand: #013985;          /* --blue */
  --brand-ink: #002A65;      /* --blue-deep */
  --brand-red: #CC0F10;      /* --red */
  --logo-bg: #0f4c81;
  --accent: #10B981;
  --accent-tint: rgba(1, 57, 133, 0.06);
  --ink: #0B0F1F;
  --ink-2: #2A2F40;
  --muted: #5A6072;          /* --ink-3 */
  --muted-2: #8A8F9E;        /* --muted */
  --line: #E7E5DF;
  --line-2: #EFEDE7;
  --bg: #FBFAF8;
  --tint: #F4F2EC;
  --card: #fff;
  --ok: #0f7a55;
  --warn: #a35f00;
  --err: #b42318;
  --radius: 14px;            /* --r-md */
  --radius-lg: 22px;         /* --r-lg */
  --shadow-sm: 0 1px 2px rgba(11, 15, 31, 0.04), 0 2px 6px rgba(11, 15, 31, 0.04);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 em, h2 em, .display em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--brand); }
h1 { font-size: 1.75rem; } h2 { font-size: 1.3rem; } h3, .h3 { font-size: 1.05rem; margin-top: 1.4em; }
p { margin: 0 0 .9em; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .right { text-align: right; } .mono { font-family: var(--mono); }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; color: var(--muted); margin: 0 0 .25em; }
.eyebrow a { color: inherit; }

/* Bar */
.bar { background: #fff; border-bottom: 1px solid var(--line); }
.bar-dark { background: var(--brand-ink); color: #fff; border: 0; }
.bar-dark a, .bar-dark .muted { color: #cfe0f0; }
.bar-in { max-width: 1320px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.logo { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.bar-dark .logo { color: #fff; }
.logo-mark { background: var(--logo-bg); color: #fff; border-radius: 6px; padding: 2px 7px; font-size: .95rem; }
.bar-dark .logo-mark { background: var(--accent); }

/* Application home hero — same values as the site's .hero (header/footer live in chrome.css) */
.pub .container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .pub .container { padding: 0 22px; } }
.pub { font-size: 16.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

.site-hero { padding: 96px 0 120px; background:
  radial-gradient(900px 420px at 12% 18%, color-mix(in srgb, var(--brand) 6%, transparent) 0%, transparent 70%),
  radial-gradient(700px 360px at 88% 8%, color-mix(in srgb, var(--brand-red) 5%, transparent) 0%, transparent 70%); }
.site-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.site-hero-copy { max-width: 620px; }
.site-hero .flash { grid-column: 1 / -1; }
@media (max-width: 1080px) { .site-hero-grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 720px) { .site-hero { padding: 56px 0 80px; } }
.display { font-weight: 600; font-size: clamp(44px, 6.2vw, 86px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 22px; color: var(--ink); text-wrap: balance; }
.site-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 13px 7px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); background: #fff; margin-bottom: 26px; }
.site-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.pub .lede { font-size: 19.5px; line-height: 1.55; color: var(--muted); max-width: 540px; margin: 0 0 32px; text-wrap: pretty; }
.ready { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; font-size: 15.5px; color: var(--ink-2); }
.ready li { display: flex; align-items: flex-start; gap: 10px; }
.tick { width: 18px; height: 18px; flex: none; margin-top: 3px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.tick svg { width: 12px; height: 12px; }
.ready-title { font-family: var(--mono); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--brand); margin: 0 0 16px; }
.kicker { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--brand); background: var(--accent-tint); padding: 6px 12px; border-radius: 999px; }


/* Layout */
.wrap { max-width: 980px; margin: 0 auto; padding: 28px 20px 40px; }
.wrap-wide { max-width: 1320px; }
.foot { max-width: 980px; margin: 0 auto; padding: 10px 20px 40px; font-size: .85rem; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.card-tight { padding: 16px; }
.card.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.span2 { grid-column: 1 / -1; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; margin-bottom: 20px; }
.lede { font-size: 1.1rem; color: var(--muted); }
.ticks { padding: 0; list-style: none; }
.ticks li { padding-left: 26px; position: relative; margin: .45em 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
@media (max-width: 760px) { .grid2, .hero { grid-template-columns: 1fr; } h1 { font-size: 1.45rem; } }

/* Forms */
.fld { display: block; margin: 0 0 16px; font-weight: 600; font-size: .9rem; }
.fld input, .fld select, .fld textarea, .inline-form input {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; font-weight: 400; color: var(--ink);
  border: 1px solid #c4ccd5; border-radius: 8px; background: #fff;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.fld input:disabled { background: var(--bg); }
.opt { font-weight: 400; color: var(--muted); font-size: .85em; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: 4px; }
.field-err { color: var(--err); font-weight: 500; font-size: .85rem; margin: 4px 0 0; }
.field-err::before { content: "⚠ "; }
.chk { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: .95rem; }
.chk input { margin-top: 4px; width: 17px; height: 17px; flex: none; }
.fs { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 4px; margin: 18px 0; }
.fs legend { font-weight: 700; padding: 0 6px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.seg label, .chip { border: 1px solid #c4ccd5; border-radius: 999px; padding: 6px 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.seg label:has(input:checked), .chip:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input { margin: 0; }
.hp { position: absolute; left: -9999px; }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.stack { margin-bottom: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--brand); background: var(--brand); color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--brand-ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-quiet { background: #fff; color: var(--brand); }
.btn-quiet:hover { background: color-mix(in srgb, var(--brand) 7%, #fff); }
.btn-danger { background: #fff; color: var(--err); border-color: var(--err); }
.btn-small { padding: 6px 12px; font-size: .85rem; }
.btn-wide { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; }
.bar-dark .linkbtn { color: #cfe0f0; }

/* Flash / notices */
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; background: #e8f6ef; color: var(--ok); border: 1px solid #bfe5d1; }
.flash-err { background: #fdecea; color: var(--err); border-color: #f5c2bd; }
.notice { background: #fff7e6; border: 1px solid #f3d9a4; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; }
.notice p:last-child { margin: 0; }
.notice-soft { background: #f0f5fb; border-color: #cfdcea; }

/* Wizard */
.apphead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 14px; }
.apptitle { margin: 0; }
.saved { font-size: .82rem; max-width: 340px; text-align: right; margin: 0; }
.steps ol { list-style: none; display: flex; padding: 0; margin: 0 0 20px; gap: 6px; overflow-x: auto; }
.steps li { flex: 1; min-width: 110px; }
.steps a { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 8px; text-decoration: none; color: var(--muted); background: #fff; border: 1px solid var(--line); font-size: .88rem; }
.steps .n { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-weight: 700; font-size: .8rem; }
.steps .done .n { background: var(--accent); color: #fff; }
.steps .cur a { border-color: var(--brand); color: var(--ink); font-weight: 600; }
.steps .cur .n { background: var(--brand); color: #fff; }
@media (max-width: 760px) { .steps .l { display: none; } .steps li { min-width: 0; } .apphead { flex-direction: column; align-items: flex-start; } .saved { text-align: left; } }

/* Tables */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.tbl-hover tbody tr { cursor: pointer; } .tbl-hover tbody tr:hover { background: #f8fafc; }
.kv { width: 100%; border-collapse: collapse; font-size: .9rem; }
.kv th { text-align: left; color: var(--muted); font-weight: 500; padding: 4px 12px 4px 0; width: 38%; vertical-align: top; }
.kv td { padding: 4px 0; }

/* Badges */
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.badge-ok { background: #e3f5ec; color: var(--ok); } .badge-warn { background: #fff1d6; color: var(--warn); }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); vertical-align: middle; }
.pill-submitted, .pill-in_review { background: #e6effa; color: var(--brand); }
.pill-info_requested { background: #fff1d6; color: var(--warn); }
.pill-capturing, .pill-compliance { background: #efe8fb; color: #5b3cc4; }
.pill-approved { background: #e3f5ec; color: var(--ok); }
.pill-rejected { background: #fdecea; color: var(--err); }

/* Documents */
.docs { list-style: none; padding: 0; margin: 0 0 10px; }
.doc { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.doc-ok { background: #f6fbf8; border-color: #cfe9db; }
.doc-head { display: flex; gap: 12px; align-items: flex-start; }
.doc-ico { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; background: var(--bg); color: var(--muted); }
.doc-ok .doc-ico { background: var(--accent); color: #fff; }
.doc-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.doc-actions form { margin: 0; }
.upl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.upl .datef input { padding: 5px 8px; border: 1px solid #c4ccd5; border-radius: 6px; font: inherit; font-size: .85rem; }
.upl.busy { opacity: .5; pointer-events: none; }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (max-width: 760px) { .doc { flex-direction: column; align-items: stretch; } .doc-actions { justify-content: flex-start; } }

/* Review / status */
.sum-sec { border-bottom: 1px solid var(--line); padding: 10px 0; }
.sum-head { display: flex; justify-content: space-between; align-items: baseline; }
.sum-head h3 { margin: .3em 0; }
.errs { color: var(--err); font-size: .88rem; margin: 0 0 8px; padding-left: 20px; }
.status-line { font-size: 1.15rem; font-weight: 600; }
.status-approved { color: var(--ok); } .status-info_requested { color: var(--warn); } .status-rejected { color: var(--err); }
.track { list-style: none; display: flex; padding: 0; margin: 20px 0; counter-reset: t; }
.track li { flex: 1; text-align: center; font-size: .8rem; color: var(--muted); position: relative; padding-top: 30px; }
.track li::before { counter-increment: t; content: counter(t); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-weight: 700; z-index: 1; }
.track li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.track li:first-child::after { display: none; }
.track .done::before { background: var(--accent); color: #fff; content: "✓"; } .track .done::after, .track .cur::after { background: var(--accent); }
.track .cur { color: var(--ink); font-weight: 600; } .track .cur::before { background: var(--brand); color: #fff; }

/* Admin */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .85rem; background: #fff; border: 1px solid var(--line); }
.tabs a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.tabs b { font-weight: 600; opacity: .8; margin-left: 2px; }
.adm-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; }
.side { position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow-y: auto; }
.side h3 { margin-top: 0; }
@media (max-width: 1000px) { .adm-grid { grid-template-columns: minmax(0, 1fr); } .side { position: static; max-height: none; } }
.big { font-size: 1.6rem; font-weight: 700; margin: 0 0 6px; }
.stepidx { list-style: none; padding: 0; margin: 0; font-size: .82rem; }
.stepidx a { display: flex; gap: 8px; padding: 3px 0; text-decoration: none; color: var(--ink); }
.stepidx span { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--bg); font-size: .7rem; font-weight: 700; }
.stepidx .done span { background: var(--accent); color: #fff; }
.stepidx .done a { color: var(--muted); }
.stepidx .auto a { font-style: italic; }
.ids { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: .82rem; margin: 0; }
.ids dt { color: var(--muted); } .ids dd { margin: 0; font-family: var(--mono); word-break: break-all; }
.reqinfo summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .9rem; margin: 6px 0 10px; }
.pf { list-style: none; padding: 0; margin: 0; }
.pf li { padding: 7px 10px 7px 30px; border-radius: 6px; margin-bottom: 5px; position: relative; font-size: .9rem; }
.pf li::before { position: absolute; left: 10px; font-weight: 700; }
.pf-error { background: #fdecea; color: var(--err); } .pf-error::before { content: "✕"; }
.pf-warn { background: #fff7e6; color: var(--warn); } .pf-warn::before { content: "!"; }
.pf-info { background: #f0f5fb; color: var(--brand-ink); } .pf-info::before { content: "i"; }
span.pf-warn { padding: 1px 6px; border-radius: 4px; }
.ok-line { color: var(--ok); font-weight: 600; }
.sheet-title { margin-top: 30px; }
.step { scroll-margin-top: 12px; }
.step-done { border-left: 4px solid var(--accent); }
.step-auto { background: #fafbfd; }
.step-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.step-head h3 { margin: 0 0 4px; font-size: 1.1rem; }
.note { font-size: .85rem; background: #f0f5fb; border-radius: 6px; padding: 6px 10px; margin: 8px 0; color: var(--brand-ink); }
.blk { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 10px; }
.blk:first-of-type { border-top: 0; }
.blk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cap { width: 100%; border-collapse: collapse; font-size: .88rem; }
.cap th { text-align: left; font-weight: 500; color: var(--muted); width: 230px; padding: 3px 12px 3px 0; vertical-align: top; }
.cap td { padding: 3px 0; }
.copy { font: inherit; background: #f4f6f9; border: 1px solid transparent; border-radius: 5px; padding: 1px 7px; cursor: copy; color: var(--ink); text-align: left; }
.copy:hover { border-color: var(--brand); background: #fff; }
.copy.mono, .secret { font-family: var(--mono); font-size: .85em; }
.capture { display: flex; gap: 10px; align-items: flex-end; margin-top: 10px; background: #fffbea; border: 1px solid #f3e3a4; border-radius: 8px; padding: 10px; }
.capture label { font-size: .85rem; font-weight: 600; flex: 1; }
.capture input { display: block; width: 100%; margin-top: 4px; padding: 7px 10px; border: 1px solid #c4ccd5; border-radius: 6px; font-size: .9rem; }
.tick { margin: 0; }
.tickbtn { display: inline-flex; gap: 8px; align-items: center; font: inherit; font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 8px; border: 1px solid #c4ccd5; background: #fff; cursor: pointer; color: var(--ink); white-space: nowrap; }
.tickbtn .box { width: 18px; height: 18px; border: 2px solid #9aa7b4; border-radius: 4px; display: grid; place-items: center; font-size: .75rem; }
.tickbtn.on { border-color: var(--accent); color: var(--ok); background: #f1faf5; }
.tickbtn.on .box { background: var(--accent); border-color: var(--accent); color: #fff; }
.log { list-style: none; padding: 0; margin: 16px 0 0; max-height: 420px; overflow-y: auto; }
.log li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.log-note { background: #fffbea; padding-left: 8px !important; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; font-size: .85rem; opacity: 0; transition: .15s; pointer-events: none; z-index: 10; }
#toast.show { opacity: 1; transform: translateX(-50%); }
span.pf-warn::before { content: none; }

/* Public pages follow the site's components (.btn, .field, .contact-form) */
.pub .btn { font-weight: 500; font-size: 15px; padding: 12px 22px; letter-spacing: -0.005em; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease; }
.pub .btn:not(.btn-quiet):not(.btn-danger):not(.btn-red) { background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 18px color-mix(in srgb, var(--brand) 28%, transparent); }
.pub .btn:not(.btn-quiet):not(.btn-danger):not(.btn-red):hover { background: var(--brand-ink); transform: translateY(-1px); }
.pub .btn-quiet { background: #fff; color: var(--ink); border-color: var(--line); }
.pub .btn.btn-red { color: #fff; background: var(--brand-red); box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 18px color-mix(in srgb, var(--brand-red) 28%, transparent); }
.pub .btn.btn-red:hover { background: #9E0B0C; }
.pub main.wrap { padding-top: 40px; padding-bottom: 72px; }
.pub .btn-quiet:hover { background: #fff; border-color: var(--muted); }
.pub .btn-danger { border-color: var(--err); }
.pub .btn-small { padding: 9px 16px; font-size: 14px; }
.pub .card { border-color: var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 30px 32px; }
.pub .card-tight { padding: 18px; }
.pub .fld { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.pub .fld input, .pub .fld select, .pub .fld textarea, .pub .inline-form input, .pub .upl .datef input {
  font-size: 15px; color: var(--ink); background: var(--tint); border: 1px solid transparent; border-radius: 10px; padding: 12px 14px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.pub .upl .datef input { padding: 6px 10px; font-size: 13px; }
.pub .fld input:focus, .pub .fld select:focus, .pub .fld textarea:focus, .pub .inline-form input:focus, .pub .upl .datef input:focus {
  outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.pub .fld input::placeholder, .pub .fld textarea::placeholder, .pub .inline-form input::placeholder { color: var(--muted-2); }
.pub .fld input:disabled { background: var(--line-2); color: var(--muted); }
.pub .fs { border-color: var(--line); border-radius: var(--radius); }
.pub .seg label, .pub .chip { border-color: var(--line); background: #fff; }
.pub .steps a { border-radius: 12px; border-color: var(--line); }
.pub .doc { border-color: var(--line); border-radius: 12px; }
.pub .notice-soft { background: var(--accent-tint); border-color: color-mix(in srgb, var(--brand) 18%, transparent); }
.pub .lede { font-size: 18px; color: var(--muted); max-width: 540px; }
.pub .ticks li::before { color: var(--brand); }
.pub h3, .pub .h3 { color: var(--ink); }
.mt0 { margin-top: 0 !important; } .mt { margin-top: 14px; margin-bottom: 0; }
.site-hero .card { margin-bottom: 18px; }
.site-hero .card h2 { font-size: 1.45rem; letter-spacing: -.02em; }


/* ============================================================
   Back-office header (.ab) and user management
   ============================================================ */
.adm { background: #f5f6f8; }
.ab { background: var(--brand-ink); color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.ab-in { max-width: 1320px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 28px; }
.ab-brand { display: flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; flex: none; }
.ab-mark { background: var(--logo-bg); border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 3px 7px; font-weight: 700; font-size: .9rem; }
.ab-name { font-weight: 700; font-size: 1.05rem; }
.ab-sub { margin-left: 6px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.25); font-size: .85rem; color: #b9c7e2; white-space: nowrap; }
.ab-nav { display: flex; align-items: stretch; gap: 4px; height: 100%; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ab-nav::-webkit-scrollbar { display: none; }
.ab-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; color: #cdd8ee; text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.ab-nav a:hover { color: #fff; }
.ab-nav a.on { color: #fff; border-bottom-color: #fff; }
.ab-nav .ab-ext { margin-left: auto; color: #9fb0cf; }
.ab-count { background: var(--brand-red); color: #fff; font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.ab-user { position: relative; flex: none; }
.ab-user summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 8px; border-radius: 8px; color: #e6ecf7; font-size: .88rem; }
.ab-user summary::-webkit-details-marker { display: none; }
.ab-user summary:hover, .ab-user[open] summary { background: rgba(255,255,255,.1); }
.ab-avatar { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-size: .78rem; }
.ab-caret { font-size: .7rem; opacity: .7; }
.ab-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 12px 32px rgba(11,15,31,.18), 0 0 0 1px rgba(11,15,31,.06); padding: 6px; z-index: 50; }
.ab-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; gap: 2px; }
.ab-menu-head span { color: var(--muted); font-size: .82rem; word-break: break-all; }
.ab-menu a, .ab-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font: inherit; font-size: .9rem; background: none; border: 0; cursor: pointer; }
.ab-menu a:hover, .ab-menu button:hover { background: var(--bg); }
.ab-menu form { margin: 0; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.ab-menu button { color: var(--err); }
@media (max-width: 900px) { .ab-sub, .ab-uname { display: none; } .ab-in { gap: 14px; padding: 0 14px; } }
@media (max-width: 560px) {
  .ab-in { flex-wrap: wrap; height: auto; padding-top: 8px; row-gap: 0; }
  .ab-brand { order: 1; } .ab-user { order: 2; margin-left: auto; }
  .ab-nav { order: 3; flex-basis: 100%; height: 44px; margin: 0 -14px; padding: 0 6px; }
}

/* Users page */
.adm .page-head h1 { margin-bottom: 4px; }
.users-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .users-grid { grid-template-columns: 1fr; } }
.u-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.u-row:last-child { border-bottom: 0; }
.u-row.off { opacity: .6; }
.u-avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.u-main { flex: 1; min-width: 0; }
.u-main b { display: block; }
.u-main span { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.u-meta { font-size: .8rem; color: var(--muted); text-align: right; white-space: nowrap; }
.u-acts { position: relative; flex: none; }
.u-acts > summary { list-style: none; cursor: pointer; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .85rem; background: #fff; }
.u-acts > summary::-webkit-details-marker { display: none; }
.u-panel { position: absolute; right: 0; top: calc(100% + 6px); width: 320px; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(11,15,31,.18), 0 0 0 1px rgba(11,15,31,.06); padding: 14px; z-index: 30; display: grid; gap: 14px; }
.u-panel form { margin: 0; }
.u-panel h4 { margin: 0 0 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.u-panel .fld { margin-bottom: 8px; }
.u-panel hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.pill-you { background: var(--accent-tint); color: var(--brand); font-size: .7rem; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.pill-off { background: #f1f1f1; color: #666; font-size: .7rem; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.seg-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.seg-row label { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-size: .88rem; display: flex; gap: 8px; align-items: flex-start; }
.seg-row label:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, #fff); }
.audit { list-style: none; padding: 0; margin: 0; font-size: .85rem; max-height: 420px; overflow-y: auto; }
.audit li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.audit li span { color: var(--muted); font-size: .78rem; display: block; }
.auth-card { max-width: 420px; margin: 40px auto; }
.auth-card .sub { color: var(--muted); margin-top: -4px; }
.auth-links { margin-top: 14px; font-size: .88rem; text-align: center; }
.card-flush { padding: 0 !important; overflow: visible; }
.add-form:has(input[value="invite"]:checked) .pw-fields { display: none; }
.seg-row { flex-direction: column; }
.pill-you, .pill-off { white-space: nowrap; }
.u-main b { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .u-row { flex-wrap: wrap; align-items: flex-start; }
  .u-main { flex: 1 1 0; min-width: 0; }
  .u-acts { margin-left: auto; }
  .u-meta { order: 3; flex-basis: 100%; text-align: left; white-space: normal; padding-left: 52px; }
  .u-panel { width: min(320px, calc(100vw - 40px)); }
  .adm .wrap { padding-left: 14px; padding-right: 14px; }
}

/* Phone widget: dialling code + national number */
.phone { display: flex; gap: 6px; margin-top: 6px; }
.fld .phone select, .fld .phone input { margin-top: 0; }
.fld .phone select { width: auto; flex: 0 0 auto; max-width: 42%; padding-right: 8px; }
.fld .phone input { flex: 1 1 auto; min-width: 0; }

/* Date field: text box in yyyy-mm-dd + calendar button (app.js) */
.datef { position: relative; display: block; margin-top: 6px; }
.fld .datef input { margin-top: 0; padding-right: 46px; font-variant-numeric: tabular-nums; }
.datef .cal { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 32px;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.datef .cal:hover, .datef .cal:focus-visible { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); outline: none; }
.datef .cal svg { width: 18px; height: 18px; }
.datef .native { position: absolute; right: 4px; bottom: 0; width: 36px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.upl .datef { display: inline-block; margin: 0 0 0 4px; vertical-align: middle; }
.upl .datef input { width: 11.5em; padding-right: 40px; }
.upl .datef .cal { width: 30px; height: 26px; }
.datef input:invalid:not(:placeholder-shown):not(:focus) { border-color: var(--err); }

/* Application links (back-office) */
.linkcard { margin-bottom: 16px; }
.linkrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; }
.linkrow .lk { flex: 0 0 9.5em; font-weight: 600; font-size: .85rem; }
.linkrow .lv { flex: 1 1 22em; min-width: 0; }
.linkrow input.lv { font-family: var(--mono); font-size: .8rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafc; color: var(--ink); }
.linkrow .lform { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.linkrow .lform label { display: flex; align-items: center; gap: 4px; color: var(--muted); }
.linkcard .hint { margin: 6px 0 0; color: var(--muted); }
.tbl td.links { white-space: nowrap; }
.lbtn { font: inherit; font-size: .75rem; padding: 3px 8px; margin: 1px 0; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--brand); cursor: copy; }
.lbtn:hover { border-color: var(--brand); }
.lbtn.off { color: var(--muted); cursor: help; display: inline-block; }
@media (max-width: 760px) { .linkrow .lk { flex-basis: 100%; } .linkrow .lform { margin-left: 0; } }

/* Back-office 2FA */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.auth-card.auth-wide { max-width: 520px; }
.mfa-steps { padding-left: 1.2em; margin: 16px 0 0; }
.mfa-steps > li { margin-bottom: 18px; line-height: 1.5; }
.qr { width: 200px; height: 200px; margin: 12px 0 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.qr svg { width: 100%; height: 100%; display: block; }
.secret-key { font-size: .9rem; letter-spacing: .04em; padding: 4px 8px; word-break: break-all; }
input.otp { font-family: var(--mono); font-size: 1.5rem; letter-spacing: .35em; text-align: center; }
.rcodes { list-style: none; padding: 14px; margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }
.mfa-acts { align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.mfa-acts .fld { margin: 0; min-width: 220px; }
.mfa-on { color: var(--ok); font-weight: 600; } .mfa-off { color: var(--warn); font-weight: 600; }

/* Address autocomplete dropdown */
.addr-street { position: relative; }
.pac { position: absolute; z-index: 30; left: 0; right: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(15, 30, 60, .14); overflow: hidden; font-weight: 400; }
.pac ul { list-style: none; margin: 0; padding: 4px 0; }
.pac li { padding: 8px 12px; cursor: pointer; display: flex; flex-direction: column; line-height: 1.3; }
.pac li b { font-weight: 600; color: var(--ink); }
.pac li span { font-size: .82rem; color: var(--muted); }
.pac li.on, .pac li:hover { background: color-mix(in srgb, var(--brand) 8%, #fff); }
.pac-attr { font-size: .7rem; color: var(--muted); text-align: right; padding: 4px 10px 6px; border-top: 1px solid var(--line); }
.qr.qr-missing { width: auto; height: auto; padding: 10px 12px; font-size: .85rem; color: var(--warn); }

/* EFT platform panel */
.eft-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.eft-head h2 { margin: 0; }
.eft-steps { margin: 12px 0; }
.eft-steps td { vertical-align: top; }
.es-pill { display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; background: #eef1f5; color: var(--muted); }
.es-done .es-pill { background: #e3f5ec; color: var(--ok); }
.es-waiting .es-pill { background: #fff1d6; color: var(--warn); }
.es-failed .es-pill { background: #fde4e4; color: var(--err); }
.es-failed td { background: #fff7f7; }
.eft-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
