/* ============================================
   ALIF FACE ID — Xodimlar uchun sahifalar (index.php, verify.php)
   Mobile-first. Admin panel main.css / admin.css dan foydalanadi — bu fayl ularga ta'sir qilmaydi.
   ============================================ */

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

:root {
    --bg: #f2f3f7;
    --surface: #ffffff;
    --surface-2: #f6f7fa;
    --text: #111827;
    --text-2: #5b6474;
    --text-3: #98a1b0;
    --line: #e4e7ec;
    --accent: #0a6cff;
    --accent-press: #0058d6;
    --success: #16a34a;
    --success-soft: #e9f8ef;
    --danger: #e5383b;
    --danger-soft: #fdecec;
    --warn: #d97706;
    --warn-soft: #fff4e5;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    color-scheme: light;
}

html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
    min-height: 100%;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; touch-action: manipulation; }
img { max-width: 100%; }

/* ---- App shell: telefon ekraniga to'liq moslashadi ---- */
.app {
    /* Balandlik qat'iy: natija sahifasida kartochka ichida aylanadi, pastki tugmalar doim ko'rinadi */
    height: 100vh;
    height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: var(--surface);
}
@media (min-width: 520px) {
    body { padding: 24px 0; }
    .app {
        height: calc(100vh - 48px);
        height: calc(100dvh - 48px);
        max-height: 920px;
        border-radius: 28px;
        box-shadow: var(--shadow);
        overflow: hidden;
    }
}

.main-col { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.side { display: none; }

.topbar {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 8px;
    padding: calc(var(--safe-top) + 8px) 12px 8px;
    flex-shrink: 0;
}
.topbar-title { text-align: center; font-size: 1.0625rem; font-weight: 700; }
.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    color: var(--text);
    transition: transform 0.15s, background 0.15s;
}
.icon-btn:active { transform: scale(0.9); background: var(--line); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn[hidden] { visibility: hidden; display: grid; }

.view { display: none; flex: 1; flex-direction: column; min-height: 0; }
.view.visible { display: flex; }

/* ============================================
   1. Kamera ko'rinishi
   ============================================ */
.scan-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 8px 20px;
    min-height: 0;
}

.fast-scanner-container {
    --size: min(78vw, 46vh, 340px);
    --size: min(78vw, 46dvh, 340px);
    position: relative;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    overflow: hidden;
    background: #0b0f17;
    box-shadow: 0 0 0 4px var(--line), 0 14px 34px rgba(17, 24, 39, 0.18);
    transition: box-shadow 0.25s, transform 0.25s;
    flex-shrink: 0;
}
.fast-scanner-container.detecting { box-shadow: 0 0 0 4px var(--accent), 0 14px 34px rgba(10, 108, 255, 0.22); }
.fast-scanner-container.face-aligned { box-shadow: 0 0 0 5px var(--success), 0 14px 34px rgba(22, 163, 74, 0.28); }
.fast-scanner-container.success { box-shadow: 0 0 0 5px var(--success), 0 14px 34px rgba(22, 163, 74, 0.32); transform: scale(1.02); }
.fast-scanner-container.error { box-shadow: 0 0 0 5px var(--danger), 0 14px 34px rgba(229, 56, 59, 0.3); }

#video, #snapshotCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#video { transform: scaleX(-1); }

.scan-overlay-ring {
    position: absolute;
    inset: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    pointer-events: none;
}
.fast-scanner-container.detecting .scan-overlay-ring { animation: ring-pulse 1.6s ease-in-out infinite; }
.fast-scanner-container.face-aligned .scan-overlay-ring { border: 2px solid rgba(74, 222, 128, 0.85); animation: none; }
@keyframes ring-pulse {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.97); }
}

.camera-flash {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.08s ease-out;
    z-index: 2;
}
.camera-flash.flash-active { opacity: 0.9; }

.verify-status { text-align: center; min-height: 58px; max-width: 320px; }
.verify-status-title { font-size: 1.2rem; font-weight: 700; }
.verify-status-msg { font-size: 0.9375rem; color: var(--text-2); margin-top: 2px; }

/* Pastki panel: rejim + katta tugma (bosh barmoq yetadigan joyda) */
.dock {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 12px 20px calc(var(--safe-bottom) + 18px);
}

.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 320px;
    padding: 4px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.mode-pill {
    height: 38px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-2);
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.mode-pill.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(17, 24, 39, 0.12); }

.shutter-action-area { display: flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity 0.2s; }
.btn-shutter { display: block; transition: transform 0.12s ease; }
.btn-shutter:active { transform: scale(0.92); }
.shutter-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    padding: 5px;
    background: rgba(10, 108, 255, 0.06);
    box-shadow: 0 6px 20px rgba(10, 108, 255, 0.25);
    transition: border-color 0.2s;
}
.shutter-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #2f86ff, var(--accent-press));
}
.shutter-core svg { width: 30px; height: 30px; }
.btn-shutter.loading .shutter-ring { border-color: var(--warn); animation: ring-pulse 1s infinite; }
.btn-shutter.loading .shutter-core { background: var(--warn); }
.shutter-label { font-size: 0.9375rem; font-weight: 700; }

/* Past ekranlar (kichik telefonlar / yotiq holat) */
@media (max-height: 640px) {
    .fast-scanner-container { --size: min(70vw, 38dvh, 300px); }
    .scan-stage { gap: 10px; }
    .verify-status { min-height: 50px; }
    .dock { gap: 10px; padding-top: 6px; }
    .shutter-ring { width: 68px; height: 68px; }
    .shutter-label { display: none; }
}

/* ============================================
   2. Natija
   ============================================ */
.result-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    padding: 8px 16px 16px;
    min-height: 0;
}
.result-card {
    margin: auto 0; /* xavfsiz vertikal markazlash: uzun bo'lsa tepasi kesilmaydi */
    width: 100%;
    text-align: center;
    padding: 24px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.result-photo {
    display: none;
    width: 88px;
    height: 88px;
    margin: 0 auto 10px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--success);
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.15);
}
.result-icon { font-size: 2.5rem; line-height: 1.1; margin-bottom: 8px; }
.result-title { font-size: 1.45rem; font-weight: 800; margin: 8px 0 4px; word-break: break-word; }
.result-msg { font-size: 0.9375rem; color: var(--text-2); margin-bottom: 10px; }
.result-crm {
    display: none;
    max-width: 100%;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 10px;
    word-break: break-word;
}
.result-crm code { font-family: ui-monospace, Menlo, monospace; }

.status-badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
}
.badge-checkin { background: var(--success-soft); color: var(--success); border: 1px solid #bfe8cd; }
.badge-checkout { background: var(--warn-soft); color: var(--warn); border: 1px solid #fcd9a8; }

#countdownWrapper { display: none; justify-content: center; margin-top: 16px; }
.countdown-bar { width: 180px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.countdown-fill { height: 100%; width: 100%; background: var(--accent); }

.result-actions {
    flex-shrink: 0;
    display: grid;
    gap: 10px;
    padding: 10px 16px calc(var(--safe-bottom) + 16px);
    background: var(--surface);
    border-top: 1px solid var(--line);
}

/* ---- Buttons ---- */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.12s, background 0.15s, opacity 0.15s;
    user-select: none;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; pointer-events: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:active { background: var(--accent-press); }
.btn-dark { background: var(--text); color: #fff; }
.btn-light { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-success { background: var(--success); color: #fff; box-shadow: 0 6px 16px rgba(22, 163, 74, 0.28); }
.btn-ghost { min-height: 44px; color: var(--text-2); font-weight: 600; font-size: 0.9375rem; }

/* ---- Chiqishdagi savdo oynasi ---- */
.sales-box {
    display: none;
    margin-top: 16px;
    padding: 18px 14px 14px;
    text-align: left;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 20px;
}
.sales-title { font-size: 1.0625rem; font-weight: 800; text-align: center; }
.sales-sub { font-size: 0.8125rem; color: var(--text-2); text-align: center; margin: 2px 0 14px; }
.amount-wrap { position: relative; }
.amount-input {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    height: 64px;
    padding: 0 60px 0 16px;
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.01em;
}
.amount-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10, 108, 255, 0.15); }
.amount-input.shake { border-color: var(--danger); animation: shake 0.35s; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}
.amount-suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--text-2);
    pointer-events: none;
}

.chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.quick-chip, .quick-chip-reset {
    min-height: 42px;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 700;
    border: 1px solid var(--line);
    background: var(--surface);
    transition: transform 0.12s;
}
.quick-chip:active, .quick-chip-reset:active { transform: scale(0.95); }
.quick-chip-reset { color: #c2410c; background: #fff7ed; border-color: #fed7aa; }
.sales-actions { display: grid; gap: 6px; margin-top: 16px; }
.sales-done { text-align: center; padding: 10px 4px; }
.sales-done-icon { font-size: 2.4rem; }
.sales-done-title { font-size: 1.15rem; font-weight: 800; color: var(--success); margin-top: 4px; }
.sales-done-sub { font-size: 1rem; color: var(--text-2); margin-top: 4px; }
.timer-notice { font-size: 0.75rem; color: var(--text-3); text-align: center; margin-top: 6px; min-height: 1em; }

/* ============================================
   3. Ruxsat so'rash ko'rinishlari
   ============================================ */
.notice {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding: 24px 24px calc(var(--safe-bottom) + 24px);
}
.notice-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--danger-soft);
    color: var(--danger);
}
.notice-icon svg { width: 32px; height: 32px; }
.notice-title { font-size: 1.25rem; font-weight: 700; }
.notice-desc { font-size: 0.9375rem; color: var(--text-2); max-width: 300px; }
.notice .btn { max-width: 320px; margin-top: 8px; }

/* ============================================
   Bosh sahifa (index.php)
   ============================================ */
.landing {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--safe-top) + 32px) 24px 24px;
}
.landing-logo svg { width: 72px; height: 72px; filter: drop-shadow(0 10px 20px rgba(17, 24, 39, 0.2)); }
.landing-title { margin-top: 18px; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; }
.landing-subtitle { font-size: 1.0625rem; color: var(--text-2); margin-bottom: 44px; }
.btn-faceid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    min-height: 58px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    background: var(--text);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.25);
    transition: transform 0.12s;
    text-decoration: none;
}
.btn-faceid:active { transform: scale(0.97); }
.btn-faceid svg { width: 24px; height: 24px; fill: #fff; }
.landing-footer {
    flex-shrink: 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-3);
    padding: 16px 24px calc(var(--safe-bottom) + 16px);
}

/* ============================================
   Kompyuter / katta ekran: ikki ustunli ko'rinish
   ============================================ */
@media (min-width: 900px) {
    body {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 32px;
        background:
            radial-gradient(1200px 600px at 10% -10%, #dbe7ff 0%, transparent 60%),
            radial-gradient(900px 500px at 110% 110%, #e3f6ea 0%, transparent 55%),
            #eef1f6;
    }
    .app {
        flex-direction: row;
        width: 100%;
        max-width: 1080px;
        height: min(780px, calc(100dvh - 64px));
        max-height: none;
        border-radius: 32px;
        overflow: hidden;
        box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.06);
    }

    .side {
        display: flex;
        flex-direction: column;
        gap: 36px;
        width: 400px;
        flex-shrink: 0;
        padding: 44px 40px;
        color: #fff;
        background:
            radial-gradient(500px 300px at 0% 0%, rgba(59, 130, 246, 0.35), transparent 70%),
            linear-gradient(160deg, #0f172a 0%, #111827 60%, #0b1220 100%);
    }
    .side-brand { display: flex; align-items: center; gap: 14px; }
    .side-brand svg { width: 48px; height: 48px; flex-shrink: 0; }
    .side-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
    .side-company { font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }
    .side-time {
        font-size: 4.5rem;
        font-weight: 800;
        line-height: 1;
        letter-spacing: -0.04em;
        font-variant-numeric: tabular-nums;
    }
    .side-date { margin-top: 8px; font-size: 1.05rem; color: rgba(255, 255, 255, 0.7); }
    .side-note { font-size: 0.95rem; line-height: 1.55; color: rgba(255, 255, 255, 0.7); margin-top: auto; }

    .side-steps { list-style: none; display: grid; gap: 18px; }
    .side-steps li { display: flex; gap: 14px; align-items: flex-start; }
    .side-steps span {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: 0.875rem;
        font-weight: 800;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.18);
    }
    .side-steps b { display: block; font-size: 0.98rem; }
    .side-steps small { display: block; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }

    .side-status { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
    .side-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 7px 12px;
        border-radius: 999px;
        font-size: 0.8rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.85);
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }
    .side-pill i { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; animation: ring-pulse 1.2s infinite; }
    .side-pill.ok i { background: #4ade80; animation: none; }
    .side-pill.warn i { background: #fbbf24; animation: none; }
    .side-pill.err i { background: #f87171; animation: none; }

    .main-col { background: var(--surface); }
    .topbar { padding: 20px 28px 8px; grid-template-columns: 44px 1fr 44px; }
    .fast-scanner-container { --size: min(380px, 52dvh); }
    .dock { padding: 8px 28px 32px; }
    .shutter-label { display: block; }

    .result-scroll { padding: 12px 40px 20px; }
    .result-card { max-width: 480px; margin: auto; }
    .result-actions {
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 220px);
        justify-content: center;
        border-top: 0;
        padding: 8px 28px 28px;
    }

    .landing { padding: 48px; }
    .landing-footer { padding-bottom: 24px; }

    /* Sichqoncha uchun hover holatlari */
    .icon-btn:hover { background: var(--line); }
    .btn-primary:hover { background: var(--accent-press); }
    .btn-light:hover { background: var(--line); }
    .btn-success:hover { filter: brightness(0.95); }
    .btn-ghost:hover { color: var(--text); }
    .quick-chip:hover { border-color: var(--accent); color: var(--accent); }
    .mode-pill:not(.active):hover { color: var(--text); }
    .btn-shutter:hover .shutter-ring { box-shadow: 0 8px 26px rgba(10, 108, 255, 0.4); }
    .btn-faceid:hover { background: #1f2937; }
}

/* Past, lekin keng ekranlar (noutbuk 1366x650 va h.k.) */
@media (min-width: 900px) and (max-height: 720px) {
    body { padding: 16px; }
    .app { height: calc(100dvh - 32px); }
    .side { padding: 32px; gap: 24px; }
    .side-time { font-size: 3.5rem; }
    .topbar { padding-top: 14px; }
    .scan-stage { gap: 12px; }
    .dock { gap: 10px; padding-bottom: 20px; }
    /* Kamera doirasi qolgan bo'sh balandlikka moslashadi — hech narsa ustma-ust tushmaydi */
    .fast-scanner-container { --size: clamp(180px, calc(100dvh - 400px), 320px); }
}

/* ============================================
   GPS holati, ilova-ichi ogohlantirishi, yo'riqnoma qadamlari
   ============================================ */
.gps-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
}
.gps-chip.pending { animation: ring-pulse 1.6s ease-in-out infinite; }
.gps-chip.ok { background: var(--success-soft); color: var(--success); border-color: #bfe8cd; }
.gps-chip.warn { background: var(--warn-soft); color: var(--warn); border-color: #fcd9a8; cursor: pointer; }
.gps-chip.err { background: var(--danger-soft); color: var(--danger); border-color: #f8c4c5; cursor: pointer; }
.gps-chip.warn::after, .gps-chip.err::after { content: ' — nima qilish kerak?'; font-weight: 500; text-decoration: underline; }

.inapp-banner {
    width: 100%;
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--warn-soft);
    border: 1px solid #fcd9a8;
    color: #92400e;
    font-size: 0.8125rem;
    line-height: 1.35;
}
.inapp-banner > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.btn-mini {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
}

.notice-steps {
    width: 100%;
    max-width: 340px;
    margin: 4px 0 6px;
    padding: 14px 14px 14px 34px;
    text-align: left;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.notice-steps li + li { margin-top: 8px; }
.notice { overflow-y: auto; }
.notice .btn + .btn { margin-top: 0; }

@media (max-height: 640px) {
    .gps-chip { padding: 4px 10px; font-size: 0.75rem; }
}
/* Uzun yo'riqnomada tepasi kesilib qolmasligi uchun "xavfsiz" markazlash */
.notice { justify-content: flex-start; }
.notice::before, .notice::after { content: ''; flex: 1 1 0; min-height: 0; }

/* Kichik ekranlar: ogohlantirish va GPS belgisi bilan ham hech narsa ustma-ust tushmasin */
.inapp-banner #inAppHint { font-size: 0.75rem; }
.app.has-banner .fast-scanner-container { --size: min(70vw, 36dvh, 300px); }
@media (max-height: 700px) {
    .app.has-banner .fast-scanner-container { --size: min(60vw, 28dvh, 240px); }
    .inapp-banner { padding: 8px 10px; }
    .inapp-banner #inAppHint { display: none; }
}
@media (max-height: 600px) {
    .fast-scanner-container { --size: min(62vw, 32dvh, 260px); }
    .verify-status { min-height: 0; }
    .verify-status-msg { display: none; }
    .scan-stage { gap: 8px; }
}
