/*
 * The MOT public portal (resources/views/portal/*): the landing page's
 * Anambra black and yellow, for every page after it — sign-in and the
 * other auth pages, the complaint form, the verify page, and everything
 * a signed-in portal user sees. Plain CSS (the deploy runs no npm build).
 *
 * Light, dark or the device's own setting: html[data-theme] is set
 * before first paint from localStorage 'portal-theme' (light, dark or
 * system), the same key the landing page uses, so the choice follows
 * the visitor from page to page.
 */

:root {
    --ground: #f5f3ec;
    --ground-2: #ece8dc;
    --surface: #ffffff;
    --ink: #141416;
    --ink-soft: #55534d;
    --rule: #d9d4c5;
    --yellow: #ffc20e;
    --yellow-hi: #ffd23f;
    --on-yellow: #15130f;
    --orange: #e8711a;
    --brick: #a3311f;
    --ok: #1d7a3e;
    --bar: #141416;
    --bar-ink: #f2f1ec;
    --link: #141416;
    --shadow: 0 24px 48px -30px rgba(20, 20, 22, .45);
    --font: 'Archivo', system-ui, sans-serif;
    --radius: 22px;

    /* The names older markup still reads. */
    --bg: var(--ground);
    --border: var(--rule);
    --text: var(--ink);
    --text-strong: var(--ink);
    --text-muted: var(--ink-soft);
    --hover: var(--ground-2);
    --amber-600: var(--yellow);
    --amber-700: var(--ink);
    color-scheme: light;
}

[data-theme="dark"] {
    --ground: #0d0d0f;
    --ground-2: #141417;
    --surface: #1b1b1f;
    --ink: #f2f1ec;
    --ink-soft: #b3b1a8;
    --rule: #2c2c32;
    --brick: #e2553f;
    --ok: #5fd38a;
    --bar: #0d0d0f;
    --link: #ffc20e;
    --shadow: 0 24px 48px -30px rgba(0, 0, 0, .8);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    background: var(--ground);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    caret-color: var(--yellow);
    transition: background-color .3s ease, color .3s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--yellow); color: var(--on-yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 12px; color: inherit; min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand b { font-size: 15px; font-weight: 700; white-space: nowrap; }
.brand small { font-size: 12px; opacity: .72; white-space: nowrap; }

/* ---------- Header: signed in (black, yellow strip) ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bar); color: var(--bar-ink); border-bottom: 6px solid var(--yellow); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 16px; border-radius: 999px;
    font-size: 14px; font-weight: 600; color: var(--bar-ink);
}
.nav a:hover { background: rgba(255, 255, 255, .08); }
.nav a.active { background: var(--yellow); color: var(--on-yellow); font-weight: 800; }
.nav .soon { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 11px; font-weight: 800; }
.nav a.active .soon { background: rgba(0, 0, 0, .12); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn, .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: transparent; border: 1px solid rgba(255, 255, 255, .22);
    color: var(--bar-ink); cursor: pointer; line-height: 0; position: relative;
}
.icon-btn:hover, .menu-toggle:hover { background: rgba(255, 255, 255, .08); }
.menu-toggle { display: none; border-radius: 12px; }
.avatar-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: var(--yellow); color: var(--on-yellow);
    font: 800 14px var(--font); cursor: pointer;
}

/* ---------- Header: signed out (cream) ---------- */
.guest-header { background: var(--ground); border-bottom: 1px solid var(--rule); }
.guest-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.guest-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.guest-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.guest-links a:hover { background: var(--ground-2); }
.guest-links a.cta { background: var(--ink); color: var(--ground); }

/* ---------- Light / Dark / System switch ---------- */
.theme-switch { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--ground-2); }
.theme-switch button {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 40px; height: 36px; padding: 0 10px; border: 0; border-radius: 999px;
    background: transparent; color: var(--ink-soft); font: 700 13px var(--font); cursor: pointer; line-height: 1;
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button.active { background: var(--yellow); color: var(--on-yellow); }
.theme-switch .lbl { display: none; }
.theme-switch.labelled .lbl { display: inline; }

/* ---------- Drop-down panels (account, notifications) ---------- */
.account-wrap, .notif-wrap { position: relative; }
.account-panel, .notif-panel {
    display: none; position: absolute; right: 0; top: calc(100% + 10px);
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow);
    overflow: hidden; z-index: 30;
}
.account-panel { width: 17rem; max-width: calc(100vw - 2rem); }
.notif-panel { width: 21rem; max-width: calc(100vw - 2rem); }
.account-panel.open, .notif-panel.open { display: block; }
.acct-name { padding: 14px 16px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; }
.acct-name b { font-size: 15px; }
.acct-name small { font-size: 12px; color: var(--ink-soft); }
.acct-theme { padding: 12px 16px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.acct-theme > span { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.acct-link {
    display: flex; align-items: center; gap: 10px; width: 100%;
    min-height: 48px; padding: 0 16px; border: 0; background: none;
    font: 600 15px var(--font); color: var(--ink); text-align: left; cursor: pointer;
}
.acct-link:hover { background: var(--ground-2); }
.acct-link.danger { color: var(--brick); }
.notif-badge {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
    background: var(--yellow); color: var(--on-yellow); border-radius: 999px;
    font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.notif-head { padding: 14px 16px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--rule); }
.notif-list { max-height: 20rem; overflow-y: auto; }
.notif-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--ground-2); }
.notif-item .t { font-weight: 700; }
.notif-item .m { color: var(--ink-soft); font-size: 13px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-empty { padding: 24px 16px; text-align: center; font-size: 14px; color: var(--ink-soft); }

/* ---------- Main and page head ---------- */
.main { flex: 1; padding: 36px 0 56px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.page-head p { margin-top: 10px; font-size: 17px; color: var(--ink-soft); max-width: 40rem; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 0 24px; border-radius: 999px;
    border: 2px solid transparent; background: transparent;
    font: 800 15px var(--font); color: var(--ink); cursor: pointer; white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--yellow); color: var(--on-yellow); }
.btn-primary:hover { background: var(--yellow-hi); }
.btn-dark { background: #141416; color: #ffc20e; }
.btn-dark:hover { background: #2a2925; }
[data-theme="dark"] .btn-dark { background: #f2f1ec; color: #141416; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ground-2); }
.btn-danger { border-color: var(--brick); color: var(--brick); }
.btn-danger:hover { background: var(--ground-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 16px; }
.narrow { max-width: 44rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field label .opt { font-weight: 500; color: var(--ink-soft); }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea {
    width: 100%; min-height: 52px; padding: 12px 16px;
    border: 2px solid var(--rule); border-radius: 14px;
    background: var(--surface); color: var(--ink);
    font: 500 16px var(--font);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 194, 14, .45); }
.field input[type="file"] { font: 500 14px var(--font); color: var(--ink-soft); }
.field .error { color: var(--brick); font-size: 14px; font-weight: 600; margin-top: 6px; }
.field .hint { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--yellow); }
.code-input { text-align: center; letter-spacing: .45em; font-size: 26px !important; font-weight: 800 !important; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.link { color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Alerts and badges ---------- */
.alert { padding: 14px 16px; border-radius: 16px; font-size: 15px; margin-bottom: 18px; border: 1px solid var(--rule); background: var(--surface); }
.alert-success { border-color: rgba(29, 122, 62, .35); background: rgba(29, 122, 62, .08); color: var(--ok); }
.alert-error { border-color: rgba(163, 49, 31, .35); background: rgba(163, 49, 31, .07); color: var(--brick); }
.badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.badge-open { background: var(--ground-2); color: var(--ink); }
.badge-answered { background: var(--yellow); color: var(--on-yellow); }
.badge-closed { border: 1px solid var(--rule); color: var(--ink-soft); }

/* ---------- Ticket lists and the conversation ---------- */
.ticket-row {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 16px 20px; border-radius: 18px; margin-bottom: 10px;
    background: var(--surface); border: 1px solid var(--rule);
}
.ticket-row:hover { border-color: var(--ink); }
.ticket-row .subject { font-weight: 800; }
.ticket-row .meta { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.message { max-width: 82%; padding: 14px 16px; border-radius: 18px; font-size: 15px; }
/* Only the text keeps its line breaks, not the template's own indentation. */
.message > div:not(.who):not(.when) { white-space: pre-line; }
.message.user { align-self: flex-end; background: var(--ink); color: var(--ground); border-bottom-right-radius: 6px; }
.message.staff { align-self: flex-start; background: var(--ground-2); color: var(--ink); border-bottom-left-radius: 6px; }
.message .who { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; opacity: .8; }
.message .when { font-size: 12px; margin-top: 6px; opacity: .7; }
.thread-when { text-align: center; font-size: 12px; color: var(--ink-soft); }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; }
.attachments img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; border: 1px solid var(--rule); }
.photo-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---------- Footer and back button ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 20px 0; font-size: 13px; color: var(--ink-soft); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }
.back-fab {
    position: fixed; left: 16px; bottom: 16px; z-index: 40;
    display: none; align-items: center; gap: 6px;
    min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
    background: var(--ink); color: var(--ground); border: 0;
    font: 700 14px var(--font); cursor: pointer; box-shadow: var(--shadow);
}
.back-fab.visible { display: inline-flex; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pagination nav, .pagination nav > div { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }
.pagination a, .pagination span[aria-current] span, .pagination span > span {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
    border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; color: var(--ink);
}
.pagination span[aria-current] span { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }

/* ---------- Sign-in and the other auth pages: the split route ---------- */
.auth-split { flex: 1; display: flex; flex-wrap: wrap; min-height: 100vh; }
.auth-form-side { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; padding: 24px clamp(20px, 5vw, 72px) 32px; }
.auth-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.auth-body { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; max-width: 440px; width: 100%; padding: 40px 0; }
.auth-body h1 { font-size: clamp(40px, 6vw, 56px); font-weight: 900; letter-spacing: -0.03em; line-height: .95; }
.auth-body h1 .mark { background: linear-gradient(transparent 56%, var(--yellow) 56%, var(--yellow) 90%, transparent 90%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
[data-theme="dark"] .auth-body h1 .mark { background: none; color: var(--yellow); }
.auth-body .lede { margin: 14px 0 28px; font-size: 17px; color: var(--ink-soft); }
.auth-body .alt { margin-top: 22px; font-size: 15px; color: var(--ink-soft); }
.auth-body .alt a { color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.auth-foot { font-size: 13px; color: var(--ink-soft); }
.auth-foot a { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-route {
    flex: 1 1 420px; min-width: 0; min-height: 320px; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 40px clamp(20px, 4vw, 56px);
    background: #141416; color: #f2f1ec; border-left: 1px solid var(--rule);
}
[data-theme="dark"] .auth-route { background: #141417; }
.auth-route .road { position: absolute; left: 18%; top: 0; bottom: 0; width: 10px; border-radius: 5px; background: var(--yellow); }
.auth-route .stop { position: absolute; left: calc(18% - 11px); width: 32px; height: 32px; border-radius: 50%; background: inherit; border: 6px solid var(--yellow); }
.auth-route .stop-label { position: absolute; left: calc(18% + 40px); font-size: 15px; font-weight: 700; }
.auth-route .stop-1 { top: 22%; } .auth-route .stop-2 { top: 48%; }
.auth-route .label-1 { top: calc(22% + 4px); } .auth-route .label-2 { top: calc(48% + 4px); }
.auth-route .tagline { position: relative; margin-left: calc(18% + 40px); display: flex; flex-direction: column; gap: 10px; }
.auth-route .tagline span { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.auth-route .tagline p { font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }

/* ---------- Verify: the register's answer ---------- */
.plate-form { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--surface); border: 3px solid var(--ink); max-width: 40rem; }
.plate-form input { flex-grow: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font: 700 17px var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.plate-form input:focus { outline: none; }
.plate-form:focus-within { box-shadow: 0 0 0 4px rgba(255, 194, 14, .45); }
.verdict { margin-top: 20px; max-width: 40rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); background: var(--surface); }
.verdict-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px; }
.verdict-head .mark { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.verdict-head b { font-size: 20px; font-weight: 900; letter-spacing: -0.01em; }
.verdict-head small { display: block; font-size: 14px; opacity: .85; }
.verdict.ok .verdict-head { background: var(--yellow); color: var(--on-yellow); }
.verdict.ok .verdict-head .mark { background: #141416; color: #ffc20e; }
.verdict.miss .verdict-head { background: var(--brick); color: #fff; }
.verdict.miss .verdict-head .mark { background: rgba(255, 255, 255, .18); color: #fff; }
.verdict-rows { padding: 8px 24px 20px; }
.verdict-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ground-2); font-size: 15px; }
.verdict-row:last-child { border-bottom: 0; }
.verdict-row .k { color: var(--ink-soft); }
.verdict-row .v { font-weight: 700; text-align: right; }
.verdict-row .mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing: .02em; }
.verdict-text { padding: 18px 24px 22px; font-size: 15px; }
.verdict-text a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Dashboard: My stops ---------- */
.stops-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.stops-list { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.stops-list h2 { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.stop-pick {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%;
    padding: 14px 16px; border-radius: 14px; border: 2px solid transparent;
    background: var(--ground); color: var(--ink); text-align: left; cursor: pointer; font-family: var(--font);
}
.stop-pick b { font-size: 15px; }
.stop-pick small { font-size: 13px; color: var(--ink-soft); }
.stop-pick[aria-pressed="true"] { background: rgba(255, 194, 14, .16); border-color: var(--ink); }
.stop-new { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 4px; border-radius: 999px; border: 2px dashed var(--ink); font-size: 15px; font-weight: 800; }
.stops-route { flex: 2 1 520px; min-width: 0; padding: 28px; border-radius: var(--radius); background: #141416; color: #f2f1ec; display: flex; flex-direction: column; gap: 22px; }
[data-theme="dark"] .stops-route { background: #141417; border: 1px solid var(--rule); }
.stops-route .kind { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #ffc20e; }
.stops-route h2 { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; }
.route-line { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.route-line li { display: flex; flex-direction: column; gap: 10px; }
.route-line .node { display: flex; align-items: center; }
.route-line .dot { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 6px solid #3a3a41; background: #141416; }
.route-line .seg { flex-grow: 1; height: 6px; margin-left: 4px; border-radius: 3px; background: #3a3a41; }
.route-line li:last-child .seg { visibility: hidden; }
.route-line li.done .dot { border-color: #ffc20e; }
.route-line li.done.lead .seg { background: #ffc20e; }
.route-line b { font-size: 15px; font-weight: 800; color: #8d8b83; }
.route-line li.done b { color: #f2f1ec; }
.route-reply { padding: 18px; border-radius: 16px; background: #1b1b1f; border: 1px solid #2c2c32; display: flex; flex-direction: column; gap: 8px; }
.route-reply span { font-size: 13px; font-weight: 700; color: #b3b1a8; }
.route-reply p { font-size: 16px; white-space: pre-line; }
.route-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.route-acts .btn-ghost { border-color: #f2f1ec; color: #f2f1ec; }
.route-acts .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.ticket-panel[hidden] { display: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 16px; }
.tile { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 0 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--rule); font-size: 17px; font-weight: 800; }
.tile:hover { border-color: var(--ink); }
.tile i { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 4px solid var(--c, var(--yellow)); }
.tile.soon { background: var(--ground-2); border-style: dashed; color: var(--ink-soft); }
.tile.soon small { margin-left: auto; font-size: 12px; font-weight: 800; }
.empty-board { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--rule); text-align: center; }
.empty-board p { color: var(--ink-soft); margin: 6px 0 16px; }

/* ---------- Coming soon (Book a ride) ---------- */
.coming-soon { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 48px 0; }
.coming-soon .inner { max-width: 34rem; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.coming-soon h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.coming-soon p { color: var(--ink-soft); font-size: 17px; }

/* ---------- Phones ---------- */
@media (max-width: 60rem) {
    .menu-toggle { display: inline-flex; }
    .nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: var(--bar); padding: 10px 16px 16px; border-bottom: 6px solid var(--yellow);
    }
    .nav.open { display: flex; }
    .nav a { min-height: 50px; font-size: 17px; }
    .brand small { display: none; }
    /* The road panel is decoration; on a phone it would sit under the form and crowd its own labels. */
    .auth-route { display: none; }
}
@media (max-width: 40rem) {
    .main { padding: 24px 0 88px; }
    .ticket-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .message { max-width: 94%; }
    .route-line b { font-size: 13px; }
    .auth-route { min-height: 260px; }
    .brand b { font-size: 14px; }
    /* Verify and File a complaint are in the footer and on the pages: keep the bar to one row. */
    .guest-links a:not(.cta) { display: none; }
    .guest-header .container { flex-wrap: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Cards laid side by side keep their tops in line (the stacked-card gap is for one column). */
.card-grid > .card + .card { margin-top: 0; }
.foot-theme { display: none; }
@media (max-width: 40rem) {
    /* No room beside the name for the switch: it moves to the footer. */
    .guest-header .theme-switch { display: none; }
    .foot-theme { display: block; width: 100%; margin-top: 4px; }
    /* The floating Back button covered form fields; the phone has its own back. */
    .back-fab.visible { display: none; }
}

/* ---------- Signed-in menu: one-word labels when the bar gets tight ---------- */
.nav a { white-space: nowrap; }
.nav .ns { display: none; }
@media (max-width: 82rem) and (min-width: 60.01rem) {
    .nav .nl { display: none; }
    .nav .ns { display: inline; }
    .nav a { padding: 0 12px; }
    .site-header .brand small { display: none; }
}

/* ---------- Password fields: Show / Hide (partials/password-reveal) ---------- */
.pw-wrap { position: relative; }
.field .pw-wrap input { padding-right: 84px; }
.pw-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px;
    background: var(--ground-2); color: var(--ink);
    font: 700 13px var(--font); cursor: pointer;
}
.pw-toggle:hover { background: var(--rule); }
