/* towne Booth styles */

:root {
    --bg: #eceef1;
    --card: #ffffff;

    --brand: #1f18db;          /* primary blue (buttons, accents, plate text) */
    --brand-navbar: #1c14d6;   /* navbar background */
    --brand-ink: #2a24e6;      /* blue text on light surfaces */
    --brand-soft: #e7e8fd;     /* soft indigo icon/badge background */

    --green: #21a63a;
    --green-dark: #1b9333;
    --green-ink: #177a37;      /* green text on the soft green surface */
    --green-soft: #e4f6e8;

    --amber: #e8a417;

    --ink: #16182b;            /* headings / primary text */
    --body: #3b3f52;           /* body text */
    --muted: #8b90a1;          /* secondary / labels */

    --line: #e7e9ef;           /* hairline borders */
    --field: #f3f4f8;          /* input / keypad surfaces */
    --field-line: #e2e5ee;

    --radius-lg: 22px;
    --radius: 16px;
    --radius-sm: 12px;

    --shadow-card: 0 18px 40px -24px rgba(22, 24, 43, 0.28);
    --shadow-cta: 0 14px 26px -12px rgba(33, 166, 58, 0.55);

    --font: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--body);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* navbar */
.booth-nav {
    background: var(--brand-navbar);
    color: #fff;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.booth-brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #fff;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.5px;
}
.booth-brand:hover { text-decoration: none; color: #fff; }
.booth-brand .brand-sub {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    opacity: 0.72;
    text-transform: uppercase;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.28);
}
.nav-pill:hover { text-decoration: none; color: #fff; background: rgba(255, 255, 255, 0.18); }

.nav-spacer { flex: 1; }

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    background: #fff;
    color: var(--brand-ink);
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    font-family: var(--font);
}
.btn-logout:hover { text-decoration: none; color: var(--brand-ink); background: #f2f2ff; }

/* layout */
.page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 28px 80px;
}
.page-narrow { max-width: 760px; }

.page-header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 28px;
}
.page-header .ph-icon {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
}
.page-header h1 {
    margin: 0 0 6px;
    font-size: 34px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.5px;
}
.page-header p {
    margin: 0;
    max-width: 640px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 22px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 15px;
    padding: 0;
}
.back-link:hover { color: var(--ink); text-decoration: none; }

/* card */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 34px;
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 26px;
    align-items: start;
}
@media (max-width: 900px) {
    .two-col { grid-template-columns: 1fr; }
}

/* search */
.search-layout { max-width: 780px; margin: 0 auto; }
.search-card { text-align: center; padding-bottom: 60px; }
.search-badge {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid; place-items: center;
    margin: 6px auto 20px;
}
.search-card h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    color: var(--ink);
}
.search-card .hint { color: var(--muted); margin: 0 0 26px; font-size: 15px; }

.search-card form { max-width: 420px; margin: 0 auto; }
.search-card .btn { padding: 14px 20px; font-size: 15px; }

.plate-input {
    width: 100%;
    background: var(--field);
    border: 1.5px solid var(--field-line);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 4px;
    color: var(--ink);
    text-transform: uppercase;
    margin-bottom: 12px;
    font-family: var(--font);
}
.plate-input::placeholder { color: #c2c6d4; letter-spacing: 4px; }
.plate-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(31, 24, 219, 0.12);
}

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 14px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 17px;
    padding: 18px 24px;
    cursor: pointer;
    width: 100%;
    transition: transform .05s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #1a13c2; }

.btn-green {
    background: var(--green);
    color: #fff;
    box-shadow: var(--shadow-cta);
}
.btn-green:hover { background: var(--green-dark); }
.btn-green:disabled {
    background: #d7dbe2;
    color: #9aa0b0;
    box-shadow: none;
}

.btn-block { width: 100%; }

/* results list */
.results-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}
.results-head h3 { margin: 0; font-size: 22px; font-weight: 800; color: var(--ink); }
.results-head .count { color: var(--muted); font-size: 15px; }

.session-row {
    display: flex;
    align-items: center;
    gap: 22px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 20px 24px;
    margin-bottom: 16px;
    color: inherit;
    transition: transform .08s ease;
}
.session-row:hover { text-decoration: none; color: inherit; transform: translateY(-1px); }
.session-row .row-main { flex: 1; min-width: 0; }
.session-row .veh { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.session-row .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}
.session-row .meta span { display: inline-flex; align-items: center; gap: 6px; }

.row-right { text-align: right; }
.row-right .status {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--muted);
    text-transform: uppercase;
}
.row-right .dur { font-size: 24px; font-weight: 800; color: var(--ink); }

.row-chevron {
    flex: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid; place-items: center;
}

.empty-state {
    text-align: center;
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 48px 40px;
}
.empty-state .badge {
    width: 64px; height: 64px; border-radius: 18px;
    background: var(--field); color: var(--muted);
    display: grid; place-items: center; margin: 0 auto 18px;
}
.empty-state h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; color: var(--ink); }
.empty-state p { margin: 0 0 22px; color: var(--muted); }

/* plate chip */
.plate-chip {
    border: 2px solid var(--ink);
    border-radius: 10px;
    padding: 8px 14px;
    text-align: center;
    background: #fff;
    flex: none;
    min-width: 128px;
}
.plate-chip .num {
    font-size: 26px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: 1px;
    line-height: 1.1;
}
.plate-chip.sm { min-width: 108px; }
.plate-chip.sm .num { font-size: 22px; }

/* session detail */
.detail-head {
    display: flex;
    gap: 18px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
}
.detail-head .veh { font-size: 22px; font-weight: 800; color: var(--ink); }
.detail-head .ref { color: var(--muted); font-size: 14px; margin-top: 2px; }

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.detail-row .label {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--muted); font-size: 15px;
}
.detail-row .value { font-weight: 700; color: var(--ink); font-size: 15px; }

.amount-owed {
    background: var(--field);
    border-radius: 14px;
    padding: 20px 22px;
    margin-top: 18px;
}
.amount-owed .owed-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.amount-owed .label { font-weight: 800; color: var(--ink); font-size: 17px; }
.amount-owed .amount { font-weight: 800; color: var(--brand); font-size: 26px; }
.amount-owed .calc { color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }

/* fee breakdown, once a validation has taken something off */
.fee-lines {
    margin-bottom: 14px;
    border-bottom: 1px solid var(--field-line);
}
.fee-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14.5px;
    padding: 9px 0;
}
.fee-line + .fee-line { border-top: 1px solid var(--field-line); }
.fee-line .lbl { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.fee-line .amt { font-weight: 700; color: var(--body); }
.fee-line .amt.struck { text-decoration: line-through; color: var(--muted); font-weight: 600; }
.fee-line.discount .lbl { color: var(--green-ink); font-weight: 700; }
.fee-line.discount .amt { color: var(--green); }

/* calculating state */
.calc-panel { text-align: center; padding: 40px 20px; display: grid; place-items: center; min-height: 320px; }
.calc-panel .badge {
    width: 64px; height: 64px; border-radius: 18px;
    background: var(--brand-soft); color: var(--brand);
    display: grid; place-items: center; margin: 0 auto 20px;
}
.calc-panel h3 { margin: 0 0 8px; font-size: 21px; font-weight: 800; color: var(--ink); }
.calc-panel p { margin: 0 auto; max-width: 320px; color: var(--muted); font-size: 15px; line-height: 1.5; }

.zero-state { text-align: center; padding: 36px 16px 8px; }
.zero-state .state-badge.round {
    width: 80px;
    height: 80px;
}
.zero-state .state-badge.round i {
    font-size: 40px;
}
.zero-state h3 { margin: 0 0 10px; font-size: 21px; font-weight: 800; color: var(--ink); }
.zero-state p { margin: 0 auto 22px; max-width: 340px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* method tabs */
.method-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--field);
    border-radius: 14px;
    padding: 8px;
    margin-bottom: 22px;
}
.method-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-family: var(--font);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}
.method-tab.active {
    background: #fff;
    color: var(--brand);
    box-shadow: 0 6px 16px -10px rgba(22,24,43,.4);
}

/* cash keypad */
.tender-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}
.tender-box {
    background: var(--field);
    border-radius: 14px;
    padding: 16px 20px;
}
.tender-box .cap {
    font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
    color: var(--muted); text-transform: uppercase;
    margin-bottom: 6px;
}
.tender-box .val { font-size: 28px; font-weight: 800; color: var(--ink); }
.tender-box.change-active { background: var(--green-soft); }
.tender-box.change-active .val { color: var(--green); }

.denoms {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.denom {
    padding: 14px 0;
    border-radius: 12px;
    border: 1.5px solid var(--field-line);
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    font-family: var(--font);
}
.denom:hover { border-color: var(--brand); }
.denom.active { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(232,164,23,.16); }

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}
.key {
    padding: 14px 0;
    border-radius: 14px;
    border: 1.5px solid var(--field-line);
    background: var(--field);
    color: var(--ink);
    font-family: var(--font);
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    display: grid; place-items: center;
}
.key:hover { background: #e9ebf2; }
.key:active { background: #e1e4ee; }

#cash-complete { border: 1.5px solid var(--field-line); }

/* card panel */
.info-banner {
    display: flex;
    gap: 12px;
    background: var(--brand-soft);
    border-radius: 14px;
    padding: 16px 18px;
    color: #3b3f7a;
    font-size: 14.5px;
    line-height: 1.45;
    margin-bottom: 18px;
}
.info-banner .ib-icon {
    flex: none;
    color: var(--brand);
    font-size: 22px;
    line-height: 1.2;
}

.charge-box {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--field);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 20px;
}
.charge-box .cap {
    font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
    color: var(--muted); text-transform: uppercase;
}
.charge-box .amt { font-size: 28px; font-weight: 800; color: var(--ink); }

.field-label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: 15px; }
.field-label .opt { color: var(--muted); font-weight: 500; }
.text-input {
    width: 100%;
    background: var(--field);
    border: 1.5px solid var(--field-line);
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 16px;
    font-family: var(--font);
    color: var(--ink);
    margin-bottom: 20px;
}
.text-input::placeholder { color: #b6bac8; }
.text-input:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(31, 24, 219, 0.10);
}

/* login */
.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(31,24,219,.12), transparent 60%),
        var(--bg);
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 40px 36px;
}
.auth-brand {
    display: flex; align-items: baseline; gap: 8px; justify-content: center;
    color: var(--brand); font-weight: 800; font-size: 30px; margin-bottom: 6px;
    letter-spacing: -0.5px;
}
.auth-brand .brand-sub {
    font-size: 12px; font-weight: 700; letter-spacing: 3px;
    color: var(--muted); text-transform: uppercase;
}
.auth-card h1 { text-align: center; font-size: 22px; font-weight: 800; color: var(--ink); margin: 14px 0 4px; }
.auth-card .sub { text-align: center; color: var(--muted); margin: 0 0 26px; font-size: 15px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: 14.5px; }

.field-error { color: #d13b3b; font-size: 13.5px; margin-top: 6px; display: block; }
.text-danger { color: #d13b3b; }

.alert {
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14.5px;
    margin-bottom: 20px;
    display: flex; gap: 10px; align-items: flex-start;
}
.alert-danger { background: #fdeaea; color: #b23636; }
.alert-success { background: var(--green-soft); color: #1b7a2e; }
.alert-validation { background: #fdeaea; color: #b23636; }
.alert-validation ul { margin: 0; padding-left: 18px; }

/* access denied + confirmation */
.state-card {
    max-width: 560px;
    margin: 60px auto 0;
    text-align: center;
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 44px 40px;
}
.state-badge {
    width: 76px; height: 76px; border-radius: 22px;
    display: grid; place-items: center; margin: 0 auto 22px;
}
.state-badge.warn { background: #fdeee0; color: var(--amber); }
.state-badge.ok { background: var(--green-soft); color: var(--green); }
.state-card h1 { font-size: 26px; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.state-card p { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 0 auto 26px; max-width: 420px; }

.state-badge.round { width: 62px; height: 62px; border-radius: 50%; }
.state-badge.round i { font-size: 24px; }

.confirm-summary {
    text-align: left;
    background: var(--field);
    border-radius: 16px;
    padding: 8px 20px;
    margin: 0 auto 22px;
}
.confirm-summary .detail-row:last-child { border-bottom: none; }
.confirm-summary .value.lead { font-size: 21px; font-weight: 800; }
.confirm-summary .value.paid { color: var(--green); }

.receipt-send { text-align: left; margin-bottom: 16px; }
.receipt-row { display: flex; align-items: stretch; gap: 10px; }
.receipt-row .text-input { margin-bottom: 0; }
.receipt-row .btn { width: auto; padding: 0 24px; font-size: 15px; white-space: nowrap; }

.receipt-note {
    display: flex; gap: 8px;
    /* A refusal can run to two lines, and the icon belongs beside the first of them. */
    align-items: flex-start;
    margin-top: 10px;
    font-size: 14.5px;
}
.receipt-note i { margin-top: 3px; }
.receipt-note.ok { color: var(--green-ink); }
.receipt-note.bad { color: #b23636; }

.btn-inline {
    display: inline-flex;
    width: auto;
    padding: 16px 30px;
}

.util-mt { margin-top: 14px; }
.hidden { display: none !important; }

/* the session column: summary card with the validation panel beneath it */
.col-stack { display: grid; gap: 26px; align-content: start; }

/* validation panel */
.validation-card { padding: 28px 30px; }
.val-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.val-head h3 { margin: 0; font-size: 19px; font-weight: 800; color: var(--ink); }
.val-badge {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid; place-items: center;
    flex: 0 0 auto;
}
.val-hint { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0 0 20px; }

.btn-outline-brand {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #c9cdf5;
    background: #f7f8ff;
    color: var(--brand-ink);
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 15.5px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
}
.btn-outline-brand:hover { border-color: var(--brand); background: #f5f5ff; }
.btn-outline-brand .plus { font-size: 17px; }

.val-applied {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--green-soft);
    border-radius: 14px;
    padding: 15px 16px;
}
.val-tick {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: grid; place-items: center;
    flex: 0 0 auto;
}
.val-applied-text { flex: 1 1 auto; min-width: 0; }
.val-applied-text .code { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: 0.5px; }
.val-applied-text .meta { font-size: 13px; font-weight: 700; color: var(--green-ink); margin-top: 2px; }
.val-remove {
    width: 44px; height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    border-radius: 14px;
    cursor: pointer;
    display: grid; place-items: center;
    flex: 0 0 auto;
}
.val-remove:hover { color: #b23636; background: #fff; }

.val-add-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: none;
    background: transparent;
    color: var(--brand-ink);
    font-family: var(--font);
    font-size: 14.5px;
    font-weight: 700;
    padding: 14px 2px 0;
    cursor: pointer;
}
.val-add-link:hover { text-decoration: underline; }

/* validation code modal */
body.modal-open { overflow: hidden; }

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(22, 24, 43, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
    overflow-y: auto;
    z-index: 40;
}
.modal-card {
    background: var(--card);
    border-radius: 26px;
    box-shadow: 0 30px 70px -30px rgba(22, 24, 43, 0.6);
    padding: 28px 30px 30px;
    width: 100%;
    max-width: 580px;
    margin: auto;
}
.modal-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; }
.modal-title { flex: 1 1 auto; min-width: 0; }
.modal-title h3 { margin: 0; font-size: 21px; font-weight: 800; color: var(--ink); }
.modal-title p { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }
.modal-close {
    border: none;
    background: var(--field);
    color: var(--body);
    width: 38px; height: 38px;
    border-radius: 11px;
    display: grid; place-items: center;
    cursor: pointer;
    flex: 0 0 auto;
}
.modal-close:hover { background: #e6e8ef; color: var(--ink); }

.code-boxes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}
.code-box {
    width: 58px; height: 66px;
    border: 2px solid var(--field-line);
    border-radius: 14px;
    background: #fcfcfe;
    display: grid; place-items: center;
    font-size: 27px;
    font-weight: 800;
    color: var(--ink);
    text-transform: uppercase;
}
.code-box.filled { border-color: var(--brand); background: #fbfbff; }
.code-box.active { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31, 24, 219, 0.12); }
.code-sep { font-size: 22px; font-weight: 700; color: var(--muted); }

.code-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fdeaea;
    color: #b23636;
    border-radius: 12px;
    padding: 13px 15px;
    font-size: 14.5px;
    margin-bottom: 18px;
}
.code-error .err-icon {
    color: #c0392b;
    font-size: 19px;
    flex: 0 0 auto;
}

.touch-keys { display: grid; gap: 9px; margin-bottom: 20px; }
.key-row { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.key-row.indent-1 { grid-template-columns: repeat(9, minmax(0, 1fr)); margin: 0 5%; }
.key-row.indent-2 { grid-template-columns: repeat(7, minmax(0, 1fr)) 1.5fr minmax(0, 1fr); }
.code-key {
    height: 54px;
    border: 1.5px solid var(--field-line);
    background: var(--field);
    color: var(--ink);
    border-radius: 12px;
    font-family: var(--font);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: grid; place-items: center;
    padding: 0;
}
.code-key:hover { border-color: var(--brand); background: #f7f7ff; }
.code-key:active { background: var(--brand-soft); }
.code-key.wide { font-size: 14.5px; }

@media (max-width: 820px) {
    .code-box { width: 46px; height: 56px; font-size: 23px; }
    .code-key { height: 48px; font-size: 15.5px; }
    .modal-card { padding: 22px 18px 24px; border-radius: 20px; }
    .touch-keys { gap: 7px; }
    .key-row { gap: 6px; }
    .key-row.indent-1 { margin: 0 3%; }
}

.spinner { font-size: 30px; }
.spinner.sm { font-size: 15px; }

/* Font Awesome icons take their size from font-size, so each slot sets its own. */
.nav-pill i { font-size: 15px; }
.btn-logout i { font-size: 16px; }
.page-header .ph-icon i { font-size: 24px; }
.back-link i { font-size: 15px; }
.search-badge i { font-size: 31px; }
.btn i { font-size: 17px; }
.session-row .meta i { font-size: 15px; }
.row-chevron i { font-size: 18px; }
.empty-state .badge i { font-size: 31px; }
.detail-row .label i { font-size: 17px; }
.fee-line .lbl i { font-size: 13px; }
.method-tab i { font-size: 17px; }
.val-badge i { font-size: 18px; }
.val-tick i { font-size: 15px; }
.val-remove i { font-size: 16px; }
.modal-close i { font-size: 17px; }
.state-badge i { font-size: 32px; }

/* keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.key:focus-visible,
.denom:focus-visible,
.method-tab:focus-visible,
.session-row:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}
.btn-green:focus-visible { outline-color: var(--green-dark); }

.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;
}
