/* FAuto Mobile Companion — dark / neon-cyan theme */

:root {
    --bg: #050608;
    --card: #15171a;
    --card-2: #1c1f24;
    --border: #25292f;
    --text: #e8edf3;
    --text-dim: #8b929c;
    --accent: #5ce5e8;
    --accent-glow: rgba(92, 229, 232, 0.45);
    --good: #6cf09e;
    --warn: #ffb74d;
    --bad: #ff6b6b;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
html,
body {
    margin: 0;
    padding: 0;
    background: #000;
    color: var(--text);
    font-family: -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    /* Lock to mobile viewport — page should NEVER scroll on a phone. */
    height: 100dvh;
    overflow: hidden;
}

.phone {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 10px 12px 12px;
    height: 100dvh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

/* ── connection status + device badge ─────────────────────────── */
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
.device-badge {
    /* Now anchored at top-right of the status row. Right-aligned content
       keeps the friendly name and VIN flush against the screen edge. */
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 6px 12px;
    background: rgba(92, 229, 232, 0.12);
    border: 1px solid rgba(92, 229, 232, 0.4);
    border-radius: 12px;
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s;
    max-width: 65%;
    text-align: right;
    box-shadow: 0 0 12px rgba(92, 229, 232, 0.15);
}
.device-badge:hover {
    background: rgba(92, 229, 232, 0.2);
    border-color: rgba(92, 229, 232, 0.6);
}
.device-badge-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.15;
}
.device-badge-vin {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.6px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.conn-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(92, 229, 232, 0.08);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--accent);
}
.conn-pill .conn-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}
.conn-pill.disconnected {
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
}
.conn-pill.disconnected .conn-dot {
    background: var(--text-dim);
    box-shadow: none;
}

/* ── hero ───────────────────────────────────────────────────── */
/* Tightened vertical footprint: previously .hero stretched with
   flex:1 1 auto and ate ~45 % of phone height. Now it sits at a
   fixed ~155 px envelope so the cards below get the breathing
   room instead. Stats pill remains below the image. */
.hero {
    position: relative;
    background: radial-gradient(ellipse at center, #0e1318 0%, #050608 80%);
    border-radius: 20px;
    overflow: hidden;
    padding: 8px 0 10px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    height: 360px;
}
.hero-img {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}
.hero-img img {
    max-width: 80%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.75));
}
.rail {
    position: absolute;
    width: 3px;
    height: 28%;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 10px var(--accent-glow);
    border-radius: 3px;
}
.rail-tl {
    top: 10%;
    left: 14%;
}
.rail-bl {
    bottom: 16%;
    left: 8%;
}
.rail-tr {
    top: 8%;
    right: 12%;
}
.rail-br {
    bottom: 16%;
    right: 10%;
}
.chev {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 36px;
    transform: translateY(-50%);
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    opacity: 0.7;
    box-shadow: -2px 2px 8px var(--accent-glow);
}
.chev-l {
    left: 4px;
    transform: translateY(-50%) rotate(45deg);
}
.chev-r {
    right: 4px;
    transform: translateY(-50%) rotate(-135deg);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 auto;
    width: fit-content;
    padding: 6px 18px;
    background: rgba(20, 24, 30, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    border: 1px solid var(--border);
    position: relative;
    flex: 0 0 auto;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-label {
    font-size: 9px;
    letter-spacing: 1.2px;
    color: var(--text-dim);
}
.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 3px;
    line-height: 1.1;
}
.stat-unit {
    font-size: 10px;
    color: var(--text-dim);
    font-weight: 500;
}
.divider {
    width: 1px;
    height: 22px;
    background: #2a2e35;
}

/* Charging icon next to the battery %: dim when idle, green + glow + pulse
   while charging. Self-aligns within the baseline-aligned .stat-value. */
.charge-icon {
    color: var(--text-dim);
    opacity: 0.3;
    align-self: center;
    transition: 0.2s;
}
.charge-icon.charging {
    color: #34d399;
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.8));
    animation: chargePulse 1.4s ease-in-out infinite;
}
@keyframes chargePulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.45;
    }
}

/* ── lock card ──────────────────────────────────────────────── */
.lock-card {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    background: var(--card);
    border-radius: 18px;
    border: 1px solid var(--border);
    flex: 0 0 auto;
    gap: 8px;
}
.lock-row-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lock-doors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.door-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.door-name {
    font-size: 11px;
    color: var(--text-dim);
}
/* Read-only per-door Lock/Unlock icon. Amber/open = unlocked, green/closed
   = locked. Display only — reflects the IsLocked signal. */
.door-lock {
    display: inline-flex;
    align-items: center;
    color: #f5a524;
    transition: color 0.2s;
}
.door-lock svg {
    width: 18px;
    height: 18px;
}
.door-lock.locked {
    color: #34d399;
}

/* Lock All / Unlock All buttons (replace the master toggle). */
.lock-btns {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.lock-btn {
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    transition: 0.15s;
}
.lock-btn:active {
    transform: scale(0.96);
}
.lock-btn-lock {
    border-color: rgba(52, 211, 153, 0.5);
    color: #34d399;
}
.lock-btn-lock:hover {
    background: rgba(52, 211, 153, 0.12);
}
.lock-btn-unlock {
    border-color: rgba(245, 165, 36, 0.5);
    color: #f5a524;
}
.lock-btn-unlock:hover {
    background: rgba(245, 165, 36, 0.12);
}
.lock-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lock-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}
.lock-icon svg {
    width: 18px;
    height: 18px;
}
.lock-title {
    font-weight: 700;
    letter-spacing: 0.3px;
    font-size: 13px;
}
.lock-sub {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 1px;
}

/* ── switch ────────────────────────────────────────────────── */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #2a2e35;
    border-radius: 999px;
    transition: 0.2s;
}
.slider:before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #5b6168;
    border-radius: 50%;
    transition: 0.2s;
}
.switch input:checked + .slider {
    background: rgba(92, 229, 232, 0.18);
}
.switch input:checked + .slider:before {
    transform: translateX(20px);
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}
.switch-sm {
    width: 38px;
    height: 22px;
}
.switch-sm .slider:before {
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
}
.switch-sm input:checked + .slider:before {
    transform: translateX(16px);
}

/* ── 2-col card grid ───────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 0 0 auto;
}
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 10px 12px;
    min-height: 105px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
}
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-icon {
    color: var(--text-dim);
    width: 18px;
    height: 18px;
}
.dot-online {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent-glow);
}
.card-label {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 8px;
}
.card-value {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 3px;
    line-height: 1;
}
.card-unit {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 400;
}
.card-value-sm {
    font-size: 15px;
    font-weight: 600;
}
.climate-card .switch {
    position: absolute;
    right: 10px;
    bottom: 10px;
}

/* 3-column climate grid (DriverTemp | Fan | PassengerTemp) — view only */
.climate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    margin-top: 4px;
}
.climate-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.climate-cell-label {
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}
.climate-cell-value {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 2px;
    line-height: 1;
}
.climate-cell-unit {
    font-size: 9px;
    color: var(--text-dim);
    font-weight: 400;
}

/* Seatbelt driver-seat FSM indicator.
 * Mapping: data-state on .seatbelt-card →
 *   init   → gray solid
 *   ready  → green solid
 *   nr1    → yellow, slow blink (low-speed warn)
 *   nr2    → red, fast blink   (high-speed warn) */
.seatbelt-indicator {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    margin-top: 6px;
    background: #353a42;
    transition: background 0.15s ease;
}
.seatbelt-card[data-state='init'] .seatbelt-indicator {
    background: #5a606b;
}
.seatbelt-card[data-state='ready'] .seatbelt-indicator {
    background: #3ddc84;
    box-shadow: 0 0 6px rgba(61, 220, 132, 0.6);
}
.seatbelt-card[data-state='nr1'] .seatbelt-indicator {
    background: #f5c842;
    box-shadow: 0 0 8px rgba(245, 200, 66, 0.7);
    animation: belt-blink-slow 0.8s steps(1, end) infinite;
}
.seatbelt-card[data-state='nr2'] .seatbelt-indicator {
    background: #ff4757;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.8);
    animation: belt-blink-fast 0.35s steps(1, end) infinite;
}
.seatbelt-card[data-state='nr1'] .card-value-sm {
    color: #f5c842;
}
.seatbelt-card[data-state='nr2'] .card-value-sm {
    color: #ff4757;
    animation: belt-blink-fast 0.35s steps(1, end) infinite;
}
@keyframes belt-blink-slow {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0.25;
    }
}
@keyframes belt-blink-fast {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0.2;
    }
}

/* ── info rows ─────────────────────────────────────────────── */
.info-row {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 9px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    flex: 0 0 auto;
}
.info-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.info-icon svg {
    width: 16px;
    height: 16px;
}
.info-label {
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.4px;
}
.info-value {
    font-size: 13px;
    font-weight: 600;
    margin-top: 1px;
}
.tire-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0 14px;
    font-size: 11px;
    color: var(--text-dim);
    text-align: right;
}
.tire-grid b {
    color: var(--text);
    font-weight: 600;
    margin-left: 3px;
}

/* DTC row reuses .info-row layout but renders the 4 indices as a 2×2 grid */
.dtc-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0 14px;
    font-size: 11px;
    color: var(--text-dim);
    text-align: right;
}
.dtc-grid b {
    color: var(--text);
    font-weight: 600;
    margin-left: 3px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.dtc-count {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background: rgba(255, 183, 77, 0.18);
    color: var(--warn);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
}
.dtc-row[data-state='clean'] .dtc-count {
    background: rgba(108, 240, 158, 0.18);
    color: var(--good);
}

.health-meter {
    text-align: right;
}
.meter-bar {
    width: 60px;
    height: 3px;
    background: #2a2e35;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 3px;
}
.meter-fill {
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent-glow);
}
.meter-label {
    font-size: 9px;
    letter-spacing: 1.3px;
    color: var(--accent);
    font-weight: 700;
}

/* ── log panel — hidden by default to fit phone viewport ──── */
.log-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 11px;
    flex: 0 0 auto;
}
.log-panel summary {
    color: var(--text-dim);
    cursor: pointer;
    list-style: none;
    font-size: 10px;
}
.log-panel summary::-webkit-details-marker {
    display: none;
}
.log-panel summary::before {
    content: '▸ ';
}
.log-panel[open] summary::before {
    content: '▾ ';
}
.log-panel[open] {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: 396px;
    margin: 0 auto;
    z-index: 10;
    background: rgba(20, 24, 30, 0.95);
    backdrop-filter: blur(8px);
}
.log-panel ul {
    margin: 6px 0 0;
    padding-left: 0;
    list-style: none;
    max-height: 140px;
    overflow-y: auto;
}
.log-panel li {
    color: var(--text-dim);
    padding: 2px 0;
    font-family:
        ui-monospace,
        SF Mono,
        monospace;
    font-size: 10px;
}
.log-panel li.in {
    color: var(--accent);
}
.log-panel li.out {
    color: var(--good);
}
.log-panel li.err {
    color: var(--bad);
}

/* ── device picker (F8) ───────────────────────────────────── */
/* Hidden by default. Add .open to reveal. Customer-facing demo
   stays clean; press F8 to expose, Esc to dismiss. */
.device-picker {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}
.device-picker.open {
    display: flex;
}
.device-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 14, 0.7);
    backdrop-filter: blur(4px);
}
.device-picker-modal {
    position: relative;
    width: min(420px, 92vw);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    background: #181b22;
    border: 1px solid #2a2f3a;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}
.device-picker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid #23272f;
}
.device-picker-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.device-picker-sub {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}
.device-picker-sub span {
    font-family:
        ui-monospace,
        SF Mono,
        monospace;
    color: var(--accent);
}
.device-picker-close {
    background: transparent;
    border: 0;
    color: var(--text-dim);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.device-picker-close:hover {
    color: var(--text);
}
.device-picker-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}
.device-empty {
    padding: 22px 16px;
    text-align: center;
    color: var(--text-dim);
    font-size: 12px;
}
.device-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    margin: 2px 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    cursor: pointer;
    transition:
        background 0.12s,
        border-color 0.12s;
}
.device-row:hover {
    background: #1f242d;
    border-color: #2e333d;
}
.device-row.selected {
    background: #1d2730;
    border-color: var(--accent);
}
.device-row.stale .device-vin {
    color: var(--text-dim);
}
.device-row-main {
    display: flex;
    align-items: center;
    gap: 10px;
}
.device-vin {
    font-family:
        ui-monospace,
        SF Mono,
        monospace;
    font-size: 12px;
    letter-spacing: 0.02em;
}
.device-age {
    font-size: 10px;
    color: var(--text-dim);
}
.device-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555a64;
}
.device-dot.live {
    background: var(--good);
    box-shadow: 0 0 6px rgba(61, 220, 132, 0.6);
}
.device-dot.stale {
    background: #555a64;
}
.device-picker-foot {
    padding: 8px 14px;
    border-top: 1px solid #23272f;
    color: var(--text-dim);
    font-size: 10px;
    text-align: center;
}

/* ── auth: login gate + signed-in user chip ───────────────────── */
.auth-gate {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}
.auth-gate.authed {
    display: none;
}
.auth-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 32px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 0 24px rgba(92, 229, 232, 0.12);
    text-align: center;
    max-width: 300px;
}
.auth-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent);
    text-shadow: 0 0 14px var(--accent-glow);
}
.auth-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-dim);
}
.auth-msg {
    font-size: 12px;
    color: var(--text-dim);
    min-height: 16px;
}
.auth-btn {
    margin-top: 4px;
    padding: 8px 26px;
    border: 1px solid rgba(92, 229, 232, 0.5);
    border-radius: 10px;
    background: rgba(92, 229, 232, 0.12);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    cursor: pointer;
}
.auth-btn:active {
    background: rgba(92, 229, 232, 0.25);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card-2);
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    max-width: 32%;
    overflow: hidden;
}
.user-chip:active {
    border-color: rgba(92, 229, 232, 0.4);
    color: var(--accent);
}
.user-chip #user-chip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── profile picker (shown before login) ──────────────────────── */
.auth-card-wide {
    max-width: 340px;
    width: calc(100% - 40px);
}
.profile-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
}
.profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card-2);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition:
        border-color 0.15s,
        background 0.15s,
        transform 0.1s;
}
.profile-row:hover {
    border-color: rgba(92, 229, 232, 0.5);
    background: rgba(92, 229, 232, 0.08);
}
.profile-row:active {
    transform: scale(0.99);
}
.profile-row-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.profile-row-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.3px;
}
.profile-row-blurb {
    font-size: 11px;
    color: var(--text-dim);
}
.profile-row-go {
    color: var(--accent);
    font-size: 18px;
    font-weight: 700;
}
/* The profile gate sits ABOVE the (always-rendered, opaque) auth gate so the
   picker is visible + clickable first. Once a profile is chosen it hides,
   revealing the auth gate underneath which then runs the login. */
#profile-gate {
    z-index: 110;
}
#profile-gate.done {
    display: none;
}

/* Active-profile label + change-profile link on the login gate. */
.auth-profile {
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}
.auth-link {
    margin-top: 2px;
    background: none;
    border: 0;
    color: var(--text-dim);
    font-size: 12px;
    cursor: pointer;
    padding: 4px;
}
.auth-link:hover {
    color: var(--accent);
}
