/*
 * Life Baker Refer: the night glass look (design handoff of 9 November 2026,
 * chosen by the owner on 10 November 2026). Dark page, translucent panels,
 * gold figures. Phones that are weak, or that ask for less transparency, get
 * the same panels without the blur (html.lbr-faux).
 */

@font-face { font-family: "Poppins"; src: url("fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "LB Naira"; src: url("fonts/lb-naira-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+20A6; }

:root {
    --ink: #FFF9EE;
    --muted: #DCCDC1;
    --soft: #F3E2C6;
    --gold: #F2D76B;
    --gold-hi: #FFE58A;
    --gold-ink: #3A2400;
    --line: rgba(255, 255, 255, 0.08);
    --field-line: rgba(255, 248, 238, 0.38);
    --field-fill: rgba(255, 255, 255, 0.06);
    --error: #FF8F8A;
    --ok: #5FCB9C;
    --caution: #F0B45C;
    --info: #A9C1FF;
    --blur: blur(22px) saturate(165%);
    --ease: cubic-bezier(0.2, 0, 0, 1);
    --font: "LB Naira", Poppins, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --pad: 16px;
    color-scheme: dark;
}

html.lbr-faux { --blur: none; }
@media (prefers-reduced-transparency: reduce) { :root { --blur: none; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.lbr {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 32px 32px,
        radial-gradient(300px 300px at 12% 30%, rgba(200, 60, 60, 0.55), transparent 70%) 0 0 / 100% 820px repeat-y,
        radial-gradient(260px 260px at 92% 62%, rgba(242, 215, 107, 0.30), transparent 70%) 0 0 / 100% 820px repeat-y,
        radial-gradient(220px 220px at 60% 92%, rgba(158, 41, 41, 0.45), transparent 70%) 0 0 / 100% 820px repeat-y,
        radial-gradient(1100px 600px at 90% -10%, rgba(158, 41, 41, 0.55), transparent 60%),
        radial-gradient(800px 500px at -15% 35%, rgba(242, 215, 107, 0.10), transparent 60%),
        radial-gradient(900px 600px at 50% 115%, rgba(123, 28, 28, 0.45), transparent 60%),
        #140909;
}

a { color: var(--gold); font-weight: 600; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
img { max-width: 100%; }
.lbr-icon { flex: none; display: block; }
.lbr-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
a.lbr-sr:focus {
    position: fixed; left: 12px; top: 12px; width: auto; height: auto; margin: 0; padding: 12px 16px; clip: auto; overflow: visible;
    z-index: 30; border-radius: 12px; background: var(--gold); color: var(--gold-ink);
}
/* Linked sections (#bank, #id) stop below the sticky header. */
[id] { scroll-margin-top: 80px; }
.lbr-num { font-variant-numeric: tabular-nums; }

/* ---------- header */
.lbr-header {
    position: sticky; top: 0; z-index: 5;
    background: rgba(20, 9, 9, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
html.lbr-faux .lbr-header { background: rgba(20, 9, 9, 0.96); }
.lbr-header__in {
    max-width: 1120px; margin: 0 auto; height: 64px; padding: 0 var(--pad);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.lbr-lockup { display: flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; color: var(--ink); flex: none; }
.lbr-lockup__disc {
    width: 44px; height: 44px; border-radius: 50%; background: #FFF9EE; display: grid; place-items: center; flex: none;
    box-shadow: 0 0 0 1px rgba(242, 215, 107, 0.4), 0 0 20px rgba(242, 215, 107, 0.28);
}
.lbr-lockup__disc img { height: 32px; width: auto; display: block; }
.lbr-lockup__word { display: block; height: 33px; width: auto; }
.lbr-lockup__rule { width: 1px; height: 32px; background: rgba(255, 255, 255, 0.12); }
.lbr-lockup__refer { font-size: 15px; font-weight: 700; color: var(--gold); }
.lbr-header__link {
    min-height: 48px; padding: 0 8px; display: flex; align-items: center; gap: 6px;
    font-size: 15px; font-weight: 700; color: var(--gold); text-decoration: none; white-space: nowrap;
}
.lbr-tabs-top { display: none; }

/* ---------- page */
.lbr-main {
    width: 100%; margin: 0 auto; padding: 20px var(--pad) 28px; flex: 1;
    display: flex; flex-direction: column; gap: 16px;
}
.lbr-title { display: flex; flex-direction: column; gap: 2px; }
.lbr-title h1 { font-size: 22px; line-height: 1.25; font-weight: 700; }
.lbr-title p { font-size: 14px; color: var(--muted); }
.lbr-cols { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.lbr-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lbr-stack { display: flex; flex-direction: column; gap: 16px; }
.lbr-foot { max-width: 1120px; width: 100%; margin: 0 auto; padding: 8px var(--pad) 24px; font-size: 13px; color: var(--muted); }
.lbr-foot a { color: var(--gold); }

/* ---------- panels */
.lbr-panel {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), inset 1px 0 0 rgba(255, 255, 255, 0.08), 0 24px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    padding: 20px;
    display: flex; flex-direction: column; gap: 14px;
}
html.lbr-faux .lbr-panel { background: linear-gradient(145deg, rgba(62, 30, 30, 0.92) 0%, rgba(34, 17, 17, 0.92) 100%); }
.lbr-panel--gold {
    background: linear-gradient(145deg, rgba(242, 215, 107, 0.16) 0%, rgba(242, 215, 107, 0.04) 100%);
    border-color: rgba(242, 215, 107, 0.28);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.30);
}
html.lbr-faux .lbr-panel--gold { background: linear-gradient(145deg, rgba(74, 52, 22, 0.94) 0%, rgba(40, 24, 14, 0.94) 100%); }
.lbr-panel--list { padding-top: 4px; padding-bottom: 4px; gap: 0; }
.lbr-panel--tight { gap: 4px; }
.lbr-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lbr-panel h2 { font-size: 18px; line-height: 1.3; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.lbr-panel h2 .lbr-icon { color: var(--gold); }
.lbr-panel p { font-size: 15px; line-height: 1.5; }
.lbr-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.lbr-muted { color: var(--muted); }
.lbr-small { font-size: 13px !important; line-height: 1.45 !important; color: var(--muted); }
.lbr-headlink {
    min-height: 48px; display: inline-flex; align-items: center; border: 0; background: none; padding: 0;
    color: var(--gold); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
}

/* the hero (code card, next payout) */
.lbr-hero {
    border-radius: 24px; padding: 20px;
    display: flex; flex-direction: column; gap: 14px; color: #FFFFFF;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 28px 28px,
        radial-gradient(700px 380px at 85% 0%, rgba(242, 215, 107, 0.22), transparent 65%),
        linear-gradient(135deg, #8A2020 0%, #5F1414 55%, #2A0A0A 100%);
    border: 1px solid rgba(242, 215, 107, 0.35);
    box-shadow: 0 24px 60px rgba(192, 58, 58, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.lbr-hero--stopped { background: linear-gradient(135deg, #3A2E2A 0%, #1E1614 100%); border-color: rgba(255, 255, 255, 0.14); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); }
.lbr-hero__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lbr-hero__status { font-size: 13px; font-weight: 600; color: var(--soft); }
.lbr-code {
    font-size: 38px; line-height: 1.1; font-weight: 800; letter-spacing: 0.08em; color: var(--gold);
    text-shadow: 0 0 28px rgba(242, 215, 107, 0.45); word-break: break-all;
}
.lbr-hero--stopped .lbr-code { text-decoration: line-through; color: var(--muted); text-shadow: none; }
.lbr-hero__help { font-size: 14px; line-height: 1.45; color: var(--soft); }
.lbr-hero__amount { font-size: 34px; line-height: 1.1; font-weight: 800; }
.lbr-hero__line { font-size: 15px; line-height: 1.5; color: var(--soft); }

/* ---------- buttons */
.lbr-btn {
    min-height: 52px; padding: 0 18px; border: 0; border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
    color: #FFFFFF; background: linear-gradient(135deg, #C03A3A 0%, #7B1C1C 100%);
    box-shadow: 0 10px 26px rgba(192, 58, 58, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    cursor: pointer; transition: transform 120ms var(--ease), opacity 200ms var(--ease);
}
.lbr-btn:hover { color: #FFFFFF; }
.lbr-btn:active { transform: scale(0.98); }
.lbr-btn--gold { background: linear-gradient(135deg, #FFE58A 0%, #F2D76B 100%); color: var(--gold-ink); box-shadow: 0 10px 26px rgba(242, 215, 107, 0.35); }
.lbr-btn--gold:hover { color: var(--gold-ink); }
.lbr-btn--wa { background: linear-gradient(135deg, #12806F 0%, #0F7266 100%); box-shadow: 0 10px 26px rgba(18, 128, 111, 0.40); }
.lbr-btn--outline { background: rgba(255, 255, 255, 0.06); border: 1.5px solid rgba(242, 215, 107, 0.65); color: var(--gold); box-shadow: none; }
.lbr-btn--outline:hover { color: var(--gold-hi); }
.lbr-btn--plain { background: rgba(255, 255, 255, 0.06); border: 1.5px solid var(--field-line); color: var(--ink); box-shadow: none; }
.lbr-btn--plain:hover { color: var(--ink); }
.lbr-btn--ghost { background: transparent; border: 1.5px solid var(--field-line); color: var(--ink); box-shadow: none; }
.lbr-btn--ghost:hover { color: var(--ink); }
.lbr-btn--sm { min-height: 48px; }
.lbr-btn--start { align-self: flex-start; }
.lbr-btn--block { width: 100%; }
.lbr-btn[disabled], .lbr-btn[aria-disabled="true"] {
    background: rgba(255, 255, 255, 0.08); color: var(--muted); box-shadow: none; border: 0; cursor: not-allowed;
}
.lbr-btn[disabled]:active { transform: none; }
.lbr-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lbr-pair .lbr-btn { padding: 4px 10px; }
.lbr-pair > form { display: contents; }

/* ---------- chips */
.lbr-chip {
    display: inline-block; font-size: 13px; font-weight: 600; line-height: 1.5; padding: 2px 10px; border-radius: 999px; white-space: nowrap;
    background: rgba(255, 255, 255, 0.08); color: var(--muted);
}
.lbr-chip--ok { background: rgba(95, 203, 156, 0.14); color: var(--ok); }
.lbr-chip--caution { background: rgba(240, 180, 92, 0.14); color: var(--caution); }
.lbr-chip--danger { background: rgba(255, 143, 138, 0.14); color: var(--error); }
.lbr-chip--info { background: rgba(169, 193, 255, 0.14); color: var(--info); }
.lbr-chip--gold { background: rgba(242, 215, 107, 0.14); color: var(--gold); }

/* ---------- banners and notices */
.lbr-banner { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); }
.lbr-banner > .lbr-icon { color: var(--muted); margin-top: 1px; }
.lbr-banner__body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.lbr-banner__body strong { font-size: 16px; line-height: 1.35; }
.lbr-banner__body span { font-size: 14px; line-height: 1.5; }
.lbr-banner .lbr-btn { align-self: flex-start; margin-top: 4px; min-height: 48px; }
.lbr-banner--ok { background: rgba(95, 203, 156, 0.14); }
.lbr-banner--ok > .lbr-icon, .lbr-banner--ok strong { color: var(--ok); }
.lbr-banner--caution { background: rgba(240, 180, 92, 0.14); }
.lbr-banner--caution > .lbr-icon { color: var(--caution); }
.lbr-banner--danger { background: rgba(255, 143, 138, 0.14); }
.lbr-banner--danger > .lbr-icon, .lbr-banner--danger strong { color: var(--error); }
.lbr-banner--info { background: rgba(169, 193, 255, 0.14); }
.lbr-banner--info > .lbr-icon, .lbr-banner--info strong { color: var(--info); }
.lbr-note { padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.lbr-note--ok { background: rgba(95, 203, 156, 0.14); color: var(--ok); }
.lbr-note--error { background: rgba(255, 143, 138, 0.14); color: var(--error); font-weight: 600; }
.lbr-note--caution { background: rgba(240, 180, 92, 0.14); color: var(--caution); }
.lbr-note ul { margin: 0; padding-left: 18px; }

/* ---------- earnings */
.lbr-figure { display: flex; flex-direction: column; gap: 2px; }
.lbr-figure span { font-size: 14px; color: var(--muted); }
.lbr-figure strong {
    font-size: 30px; line-height: 1.15; font-weight: 800; color: var(--gold);
    font-variant-numeric: tabular-nums; text-shadow: 0 0 22px rgba(242, 215, 107, 0.35);
}
.lbr-bar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; display: flex; }
.lbr-bar__conf { background: linear-gradient(90deg, #C03A3A, #F2D76B); box-shadow: 0 0 12px rgba(242, 215, 107, 0.6); border-radius: 999px; }
.lbr-bar__check { background: rgba(242, 215, 107, 0.32); }
.lbr-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.lbr-legend div { display: flex; flex-direction: column; gap: 2px; }
.lbr-legend span { display: flex; align-items: center; gap: 6px; }
.lbr-legend i { width: 10px; height: 10px; border-radius: 3px; background: rgba(242, 215, 107, 0.32); flex: none; }
.lbr-legend i.is-conf { background: var(--gold); box-shadow: 0 0 8px rgba(242, 215, 107, 0.7); }
.lbr-legend strong { font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.lbr-next { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(242, 215, 107, 0.14); }
.lbr-next > .lbr-icon { color: var(--gold); }
.lbr-next div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lbr-next strong { font-size: 14px; }
.lbr-next span { font-size: 13px; line-height: 1.4; color: var(--muted); }

/* ---------- rows (sales, payouts, checklists) */
.lbr-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.lbr-panel--list .lbr-row:first-child { border-top: 0; }
.lbr-avatar {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(192, 58, 58, 0.24); color: var(--gold);
    display: grid; place-items: center; font-weight: 700; flex: none;
}
.lbr-row__main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lbr-row__main b { font-size: 16px; font-weight: 600; }
.lbr-row__main span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.lbr-row__end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.lbr-row__amt { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lbr-row__amt.is-zero { color: var(--muted); }
.lbr-link-row {
    min-height: 56px; padding: 8px 0; border: 0; border-top: 1px solid var(--line); background: none;
    display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; font-size: 15px; color: var(--ink); text-decoration: none; font-weight: 400;
}
.lbr-link-row:hover { color: var(--ink); }
.lbr-link-row > .lbr-icon:last-child { color: var(--muted); }
.lbr-link-row span.lbr-grow { flex: 1; }
.lbr-check {
    min-height: 64px; padding: 10px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px;
    color: var(--ink); text-decoration: none; font-weight: 400;
}
.lbr-check:hover { color: var(--ink); }
.lbr-check__ring {
    width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 248, 238, 0.45); flex: none;
    display: grid; place-items: center; color: #FFFFFF;
}
.lbr-check.is-done .lbr-check__ring { background: #12806F; border-color: #12806F; }
.lbr-check__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lbr-check__text strong { font-size: 15px; }
.lbr-check__text span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.lbr-check > .lbr-icon:last-child { color: var(--muted); }
.lbr-empty { padding: 16px 0 8px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.lbr-empty p { color: var(--muted); }

/* ---------- stats and filters */
.lbr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lbr-stat {
    border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 2px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 18px 40px rgba(0, 0, 0, 0.4);
}
.lbr-stat span { font-size: 13px; line-height: 1.3; color: var(--muted); }
.lbr-stat strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.lbr-stat--flat { background: rgba(255, 255, 255, 0.05); border: 0; box-shadow: none; border-radius: 14px; padding: 10px 12px; }
.lbr-stat--flat strong { font-size: 17px; }
.lbr-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.lbr-filter {
    min-height: 48px; padding: 0 14px; border: 1.5px solid rgba(255, 248, 238, 0.3); border-radius: 999px;
    background: rgba(255, 255, 255, 0.04); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap;
    display: inline-flex; align-items: center; text-decoration: none;
}
.lbr-filter:hover { color: var(--ink); }
.lbr-filter[aria-current="page"] { border-color: var(--gold); background: rgba(242, 215, 107, 0.16); color: var(--gold); }
.lbr-more { min-height: 52px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; text-decoration: none; }

/* ---------- forms */
.lbr-form { display: flex; flex-direction: column; gap: 14px; }
.lbr-field { display: flex; flex-direction: column; gap: 8px; }
.lbr-field > label, .lbr-field > .lbr-label { font-size: 15px; font-weight: 600; }
.lbr-input {
    width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--field-line); border-radius: 14px;
    background: var(--field-fill); color: var(--ink); font: inherit; font-size: 16px;
}
select.lbr-input { padding: 0 14px; }
select.lbr-input option { color: #1A0B0B; background: #FFF9EE; }
.lbr-input:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.lbr-input.is-invalid { border-color: var(--error); }
.lbr-input--digits { letter-spacing: 0.08em; }
.lbr-error { font-size: 13px; line-height: 1.45; color: var(--error); font-weight: 600; }
.lbr-radios { display: grid; grid-template-columns: 1fr; gap: 8px; }
.lbr-radio {
    position: relative; min-height: 52px; padding: 10px 14px; border: 1.5px solid rgba(255, 255, 255, 0.14); border-radius: 14px;
    background: rgba(255, 255, 255, 0.04); display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer;
}
.lbr-radio input { position: absolute; opacity: 0; pointer-events: none; }
.lbr-radio__dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 248, 238, 0.45); display: grid; place-items: center; flex: none; }
.lbr-radio__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: transparent; }
/* .is-checked is set by refer.js, for WebViews without :has(). Kept as separate
   rules: a browser that does not know :has() drops the whole rule it is in. */
.lbr-radio.is-checked { border-color: var(--gold); background: rgba(242, 215, 107, 0.12); }
.lbr-radio.is-checked .lbr-radio__dot { border-color: var(--gold); }
.lbr-radio.is-checked .lbr-radio__dot::after { background: var(--gold); }
.lbr-radio:has(input:checked) { border-color: var(--gold); background: rgba(242, 215, 107, 0.12); }
.lbr-radio:has(input:checked) .lbr-radio__dot { border-color: var(--gold); }
.lbr-radio:has(input:checked) .lbr-radio__dot::after { background: var(--gold); }
.lbr-radio:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.lbr-file { position: relative; }
.lbr-file input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.lbr-file__face {
    min-height: 56px; padding: 10px 14px; border: 1.5px dashed var(--field-line); border-radius: 14px; background: rgba(255, 255, 255, 0.05);
    display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--gold); word-break: break-all;
}
.lbr-file:focus-within .lbr-file__face { outline: 3px solid var(--gold); outline-offset: 2px; }
.lbr-found { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-direction: column; gap: 2px; }
.lbr-found span { font-size: 13px; color: var(--muted); }
.lbr-found strong { font-size: 18px; letter-spacing: 0.02em; }
.lbr-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; line-height: 1.4; }
.lbr-dl dt { color: var(--muted); }
.lbr-dl dd { margin: 0; font-weight: 600; word-break: break-word; }
.lbr-code-box {
    font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; padding: 12px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); word-break: break-all;
}
details.lbr-reveal > summary { list-style: none; cursor: pointer; }
details.lbr-reveal > summary::-webkit-details-marker { display: none; }
details.lbr-reveal[open] > summary.lbr-hide-open { display: none; }
details.lbr-reveal > .lbr-form { margin-top: 6px; }

/* ---------- bottom tabs (phone), tab row (tablet), header tabs (desktop) */
.lbr-tabbar {
    position: sticky; bottom: 10px; z-index: 5; margin: 0 10px 10px;
    border-radius: 24px; background: rgba(30, 14, 14, 0.88); border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 6px 0 8px;
}
html.lbr-faux .lbr-tabbar { background: rgba(30, 14, 14, 0.97); }
.lbr-tab {
    min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none;
}
.lbr-tab:hover { color: var(--ink); }
.lbr-tab__pill { display: grid; place-items: center; width: 56px; height: 30px; border-radius: 999px; transition: background 200ms var(--ease); }
.lbr-tab[aria-current="page"] { color: var(--gold); font-weight: 700; }
.lbr-tab[aria-current="page"] .lbr-tab__pill { background: rgba(242, 215, 107, 0.16); }
.lbr-tabrow { display: none; }

/* ---------- toast */
.lbr-toast {
    position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(8px); z-index: 20;
    width: calc(100% - 32px); max-width: 340px; padding: 14px 16px; border-radius: 12px;
    background: rgba(255, 248, 238, 0.94); color: #1A0B0B; font-size: 15px; line-height: 1.4;
    border: 1px solid rgba(242, 215, 107, 0.35); box-shadow: 0 24px 60px rgba(192, 58, 58, 0.35);
    opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.lbr-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- sales kit */
.lbr-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.lbr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.lbr-item { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); }
.lbr-item h3 { font-size: 16px; line-height: 1.35; font-weight: 700; }
.lbr-item p { font-size: 14px; color: var(--muted); }
.lbr-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: rgba(255, 255, 255, 0.06); display: block; }
.lbr-thumb--image, .lbr-thumb--pdf { aspect-ratio: 4 / 3; object-position: top; }
.lbr-text { white-space: pre-wrap; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.10); font-size: 14px; line-height: 1.6; }
.lbr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.lbr-actions .lbr-btn { min-height: 48px; font-size: 14px; padding: 0 14px; }
.lbr-message { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.lbr-message:first-of-type { border-top: 0; }
.lbr-message h3 { font-size: 16px; font-weight: 700; }
details.lbr-qa { border-top: 1px solid var(--line); padding: 12px 0; }
details.lbr-qa > summary { cursor: pointer; font-weight: 700; color: var(--gold); min-height: 48px; display: flex; align-items: center; }
details.lbr-qa .lbr-text { margin: 10px 0; }
details.lbr-watch > summary { cursor: pointer; font-weight: 700; color: var(--gold); min-height: 48px; display: flex; align-items: center; }
details.lbr-watch video { width: 100%; margin-top: 10px; border-radius: 12px; background: #000; display: block; }

/* ---------- public pages (landing, forms, messages, errors) */
.lbr-pub { flex: 1; width: 100%; display: flex; flex-direction: column; }
.lbr-only-narrow { display: inline; }
.lbr-only-wide { display: none; }
.lbr-page { width: 100%; max-width: 560px; margin: 0 auto; padding: 20px var(--pad) 28px; display: flex; flex-direction: column; gap: 20px; }
.lbr-page__head { display: flex; flex-direction: column; gap: 8px; }
.lbr-page__head h1, .lbr-msg h1 { font-size: 26px; line-height: 1.22; font-weight: 700; }
.lbr-page__head p { font-size: 16px; line-height: 1.5; color: var(--muted); }
/* Long email addresses wrap instead of pushing the page sideways. */
.lbr-page__head p, .lbr-msg p, .lbr-found strong, .lbr-dl dd { overflow-wrap: anywhere; }
.lbr-formcard { gap: 20px; }
.lbr-summary { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: rgba(255, 143, 138, 0.14); color: var(--error); font-size: 15px; font-weight: 600; }
.lbr-error { display: flex; gap: 6px; align-items: flex-start; margin: 0; }
.lbr-error .lbr-icon { margin-top: 1px; }
.lbr-hint { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0; }
.lbr-label small, .lbr-field > label small { font-weight: 400; font-size: 15px; color: var(--muted); }
textarea.lbr-input { min-height: 104px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.lbr-input::placeholder { color: rgba(220, 205, 193, 0.6); }
.lbr-pw { position: relative; }
.lbr-pw .lbr-input { padding-right: 76px; }
.lbr-pw__toggle {
    position: absolute; right: 4px; top: 2px; min-height: 48px; padding: 0 12px; border: 0; background: none;
    color: var(--gold); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.lbr-dob { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) minmax(0, 1.1fr); gap: 8px; }
.lbr-dob .lbr-input { padding: 0 12px; }
.lbr-checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.lbr-checkbox input {
    -webkit-appearance: none; appearance: none; flex: none; width: 24px; height: 24px; margin: 1px 0 0; border-radius: 4px;
    border: 1.5px solid var(--field-line); background: var(--field-fill); display: grid; place-items: center; cursor: pointer;
}
.lbr-checkbox input:checked { background: #12806F; border-color: #12806F; }
.lbr-checkbox input:checked::after { content: ""; width: 6px; height: 11px; border: solid #FFFFFF; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.lbr-checkbox input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* A consent box inside a field is body text, not a bold field label. */
.lbr-field > .lbr-checkbox, .lbr-field > label.lbr-checkbox { font-size: 14px; font-weight: 400; }
.lbr-field > label.lbr-checkbox small { font-size: inherit; }
.lbr-msg .lbr-headlink { gap: 6px; font-size: 15px; }
.lbr-checkbox input.is-invalid, .lbr-checkbox input[aria-invalid="true"] { border-color: var(--error); }
.lbr-links { display: flex; flex-direction: column; gap: 4px; }
.lbr-links p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.lbr-links a { display: inline-block; padding: 12px 0; }
.lbr-center { text-align: center; }
.lbr-msg { gap: 16px; }
.lbr-disc { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(242, 215, 107, 0.14); color: var(--gold); }
.lbr-disc--ok { background: rgba(95, 203, 156, 0.14); color: var(--ok); }
.lbr-disc--info { background: rgba(169, 193, 255, 0.14); color: var(--info); }
.lbr-disc--caution { background: rgba(240, 180, 92, 0.14); color: var(--caution); }
.lbr-disc--danger { background: rgba(255, 143, 138, 0.14); color: var(--error); }
.lbr-msg__body { font-size: 16px; line-height: 1.5; }
.lbr-msg__actions { display: flex; flex-direction: column; gap: 10px; }
.lbr-timeline { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.lbr-timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.lbr-timeline__rail { display: flex; flex-direction: column; align-items: center; }
.lbr-timeline__dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 248, 238, 0.35); display: grid; place-items: center; color: #FFFFFF; flex: none; }
.lbr-timeline__line { flex: 1; width: 2px; min-height: 16px; background: rgba(255, 255, 255, 0.12); }
.lbr-timeline li:last-child .lbr-timeline__line { background: transparent; }
.lbr-timeline li.is-done .lbr-timeline__dot { background: #12806F; border-color: #12806F; }
.lbr-timeline li.is-next .lbr-timeline__dot { border-color: var(--gold); }
.lbr-timeline__text { display: flex; flex-direction: column; gap: 2px; padding-bottom: 18px; }
.lbr-timeline__text strong { font-size: 16px; }
.lbr-timeline__text span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.lbr-pubfoot { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.06); }
.lbr-pubfoot__in { max-width: 1120px; margin: 0 auto; padding: 20px var(--pad) 28px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.lbr-pubfoot p { margin: 0; }

/* ---------- tablet */
@media (min-width: 600px) {
    :root { --pad: 24px; }
    .lbr-main { max-width: 720px; padding: 32px var(--pad) 56px; }
    .lbr-panel { padding: 24px; }
    .lbr-panel--list { padding: 4px 24px; }
    .lbr-tabbar { display: none; }
    .lbr-tabrow {
        display: block; background: rgba(20, 9, 9, 0.6); border-bottom: 1px solid rgba(255, 255, 255, 0.10);
        position: sticky; top: 64px; z-index: 4; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    }
    .lbr-tabrow__in { max-width: 720px; margin: 0 auto; padding: 0 var(--pad); display: flex; gap: 4px; height: 52px; }
    .lbr-toptab {
        padding: 0 14px; border-bottom: 3px solid transparent; color: var(--muted); font-size: 15px; font-weight: 600;
        display: flex; align-items: center; gap: 8px; text-decoration: none;
    }
    .lbr-toptab:hover { color: var(--ink); }
    .lbr-toptab[aria-current="page"] { color: var(--gold); font-weight: 700; border-bottom-color: var(--gold); }
    .lbr-toast { bottom: 32px; }
    [id] { scroll-margin-top: 132px; }
    .lbr-radios--2 { grid-template-columns: 1fr 1fr; }
    .lbr-only-narrow { display: none; }
    .lbr-only-wide { display: inline; }
    .lbr-page { padding: 32px var(--pad) 56px; }
    .lbr-formcard { padding: 24px; }
    .lbr-foot { max-width: 720px; }
}

/* ---------- desktop */
@media (min-width: 1024px) {
    :root { --pad: 32px; }
    .lbr-main { max-width: 1120px; }
    .lbr-foot { max-width: 1120px; }
    .lbr-tabrow { display: none; }
    [id] { scroll-margin-top: 80px; }
    .lbr-tabs-top { display: flex; gap: 4px; align-self: stretch; }
    .lbr-tabs-top .lbr-toptab { padding: 0 14px; border-bottom: 3px solid transparent; color: var(--muted); font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; text-decoration: none; }
    .lbr-tabs-top .lbr-toptab[aria-current="page"] { color: var(--gold); font-weight: 700; border-bottom-color: var(--gold); }
    .lbr-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- phones under 360 px: let the lockup shrink */
/* Small phones: the signed-in "Dashboard" link must not push the page sideways. */
@media (max-width: 379px) {
    .lbr-header__in { gap: 8px; }
    .lbr-header__link { padding: 0 4px; }
    .lbr-lockup { gap: 8px; }
}

@media (max-width: 359px) {
    .lbr-lockup__word { height: 28px; }
    .lbr-lockup__rule, .lbr-lockup__refer { display: none; }
    .lbr-code { font-size: 32px; }
    .lbr-pair .lbr-btn { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .lbr-btn, .lbr-tab__pill { transition: none; }
    .lbr-btn:active { transform: none; }
    .lbr-toast { transition: opacity 200ms linear; transform: translateX(-50%); }
}
