:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #eef3fb;
    --ink: #10182b;
    --muted: #667085;
    --navy: #06142d;
    --navy-2: #0b1f47;
    --blue: #159cff;
    --cyan: #22d0ff;
    --purple: #8b4dff;
    --purple-2: #b258ff;
    --success: #0f9f6e;
    --success-soft: #e8fbf3;
    --danger: #d13d56;
    --danger-soft: #fff0f3;
    --warning: #b46b00;
    --warning-soft: #fff7e8;
    --border: #dce3ee;
    --shadow: 0 18px 50px rgba(8, 23, 52, 0.09);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Google Sans", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
}
button, input, textarea, select { font: inherit; }
a { color: inherit; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.public-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(21,156,255,.13), transparent 28rem),
        radial-gradient(circle at 90% 5%, rgba(139,77,255,.13), transparent 32rem),
        var(--bg);
}

.survey-shell, .result-shell, .center-shell {
    width: min(100% - 28px, 860px);
    margin: 0 auto;
    padding: 28px 0 56px;
}

.hero-card {
    overflow: hidden;
    border-radius: 28px;
    padding: 26px;
    color: #fff;
    background: linear-gradient(135deg, #06142d 0%, #0b1f47 52%, #321065 100%);
    box-shadow: 0 24px 64px rgba(7, 21, 47, .22);
    display: grid;
    grid-template-columns: 210px 1fr;
    align-items: center;
    gap: 26px;
    position: relative;
}
.hero-card::after {
    content: "";
    position: absolute;
    inset: auto -8% -42% 42%;
    height: 220px;
    transform: rotate(-7deg);
    border: 1px solid rgba(102, 205, 255, .3);
    border-radius: 60px;
}
.hero-logo { width: 210px; filter: drop-shadow(0 14px 28px rgba(0,0,0,.25)); }
.hero-card h1 { margin: 3px 0 10px; font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.2; }
.eyebrow { margin: 0; color: #6fcfff; letter-spacing: .14em; font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.muted { color: var(--muted); }
.hero-card .muted { color: #c5d2e8; margin-bottom: 0; }

.survey-form { display: grid; gap: 18px; margin-top: 18px; }
.question-card, .admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.question-card { padding: 24px; }
.section-heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: 1.32rem; }
.section-heading p { margin: 3px 0 0; color: var(--muted); }
.section-no {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
    color: white;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue), var(--purple));
}

.rating-block { border: 0; padding: 18px 0; margin: 0; border-top: 1px solid #edf0f5; }
.rating-block:first-of-type { border-top: 0; }
.rating-block legend { font-weight: 600; padding: 0 0 12px; }
.required { color: var(--danger); }
.rating-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.rating-pill { cursor: pointer; position: relative; }
.rating-pill input { position: absolute; opacity: 0; pointer-events: none; }
.rating-pill span {
    display: grid;
    place-items: center;
    min-height: 48px;
    border-radius: 14px;
    border: 1.5px solid #d6deea;
    background: #f8faff;
    font-weight: 700;
    transition: .16s ease;
}
.rating-pill input:checked + span {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    box-shadow: 0 9px 22px rgba(80, 75, 232, .22);
}
.rating-pill input:focus-visible + span { outline: 3px solid rgba(21, 156, 255, .3); outline-offset: 2px; }
.rating-scale { display: flex; justify-content: space-between; margin-top: 7px; color: var(--muted); font-size: .78rem; }

.field-label { display: block; margin: 17px 0 8px; font-weight: 600; }
input[type="text"], input[type="password"], input[type="number"], textarea, select {
    width: 100%;
    border: 1.5px solid #d6deea;
    border-radius: 14px;
    padding: 13px 14px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { resize: vertical; min-height: 104px; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 156, 255, .11); }

.primary-button, .secondary-button, .success-button, .danger-button {
    border: 0;
    border-radius: 14px;
    min-height: 46px;
    padding: 11px 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .14s ease, opacity .14s ease, box-shadow .14s ease;
}
.primary-button { color: #fff; background: linear-gradient(135deg, var(--blue), var(--purple)); box-shadow: 0 12px 26px rgba(80,75,232,.22); }
.secondary-button { color: #1f3d70; background: #eaf3ff; }
.success-button { color: #fff; background: var(--success); }
.danger-button { color: #fff; background: var(--danger); }
.primary-button:hover, .secondary-button:hover, .success-button:hover, .danger-button:hover { transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .65; transform: none !important; }
.submit-button { width: 100%; min-height: 56px; font-size: 1.05rem; }
.draft-status { text-align: center; color: #52719a; font-size: .9rem; }
.form-footnote { margin: -5px 0 0; text-align: center; color: var(--muted); font-size: .82rem; }

.result-shell { max-width: 590px; }
.result-card {
    text-align: center;
    padding: 30px 24px;
    color: #fff;
    background: linear-gradient(145deg, #06142d, #0c1d45 58%, #2f0f61);
    border-radius: 30px;
    box-shadow: 0 24px 65px rgba(7,21,47,.26);
    border: 1px solid rgba(111,207,255,.25);
}
.result-logo { width: min(320px, 78%); margin-bottom: 16px; }
.result-code { font-size: clamp(3.2rem, 12vw, 5.2rem); line-height: 1; letter-spacing: .08em; margin: 14px 0 22px; }
.qr-frame { width: fit-content; margin: 0 auto 20px; padding: 16px; border-radius: 20px; background: #fff; }
#qrcode canvas, #qrcode img { display: block; max-width: 100%; height: auto; }
.save-message { font-size: 1.08rem; font-weight: 600; line-height: 1.5; }
.status-badge { display: inline-flex; padding: 8px 12px; border-radius: 999px; margin: 3px 0 20px; font-size: .82rem; font-weight: 700; }
.status-badge-success { background: rgba(45, 223, 162, .15); color: #8ff1cd; border: 1px solid rgba(45, 223, 162, .28); }
.status-badge-danger { background: rgba(255, 88, 120, .15); color: #ff9daf; border: 1px solid rgba(255,88,120,.3); }
.result-card .primary-button { width: 100%; background: linear-gradient(135deg, #10b9ff, #9a52ff); }
.result-note { text-align: center; color: var(--muted); font-size: .88rem; }

.center-shell { min-height: 82vh; display: grid; place-items: center; }
.status-card { width: min(100%, 570px); padding: 34px; border-radius: 25px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); background: #fff; }
.status-card h1, .status-card h2 { margin: 10px 0; }
.status-icon { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; margin: 0 auto 15px; font-size: 2rem; font-weight: 700; }
.status-success .status-icon { color: var(--success); background: var(--success-soft); }
.status-error .status-icon { color: var(--danger); background: var(--danger-soft); }
.verify-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.verify-mini-grid > div { padding: 14px; border-radius: 14px; background: #f5f8fd; text-align: left; }
.verify-mini-grid span { display: block; color: var(--muted); font-size: .8rem; }
.verify-mini-grid strong { display: block; margin-top: 2px; }

.admin-body { background: #f4f6fa; min-height: 100vh; }
.admin-header {
    min-height: 72px;
    background: linear-gradient(100deg, #06142d, #0b1f47 58%, #251052);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 22px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 7px 22px rgba(4,16,39,.16);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand img { width: 116px; max-height: 47px; object-fit: contain; }
.brand span { color: #dce8ff; }
.admin-nav { display: flex; align-items: center; gap: 4px; }
.admin-nav a { text-decoration: none; color: #dce8ff; font-size: .86rem; padding: 9px 10px; border-radius: 10px; }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-logout-form { margin: 0; }
.nav-logout-form button { border: 0; background: transparent; color: #dce8ff; font: inherit; font-size: .86rem; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.nav-logout-form button:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-toggle { display: none; color: white; background: rgba(255,255,255,.1); border: 0; border-radius: 10px; font-size: 1.35rem; padding: 7px 11px; }

.admin-main { width: min(100% - 32px, 1240px); margin: 0 auto; padding: 28px 0 56px; }
.narrow-main { max-width: 760px; }
.page-title-row, .card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.page-title-row { margin-bottom: 18px; }
.page-title-row h1 { margin: 2px 0 0; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.card-title-row h2 { margin: 0; }
.card-title-row a { color: #496da3; text-decoration: none; font-weight: 600; }
.role-chip, .mini-chip { display: inline-flex; align-items: center; border-radius: 999px; font-weight: 700; }
.role-chip { padding: 8px 12px; background: #e7efff; color: #335e9a; }
.mini-chip { padding: 5px 9px; font-size: .76rem; }
.chip-success { background: var(--success-soft); color: var(--success); }
.chip-danger { background: var(--danger-soft); color: var(--danger); }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.metric-card { border-radius: 20px; padding: 20px; background: linear-gradient(145deg, #fff, #f8fbff); border: 1px solid var(--border); box-shadow: var(--shadow); }
.metric-card span { display: block; color: var(--muted); font-weight: 600; }
.metric-card strong { display: block; margin-top: 6px; font-size: 2rem; color: #153d78; }
.admin-card { padding: 20px; margin-bottom: 18px; }
.average-list { display: grid; gap: 15px; margin-top: 18px; }
.average-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 5px; }
.meter { width: 100%; height: 10px; appearance: none; border: 0; background: #e8eef7; border-radius: 999px; overflow: hidden; }
.meter::-webkit-progress-bar { background: #e8eef7; border-radius: 999px; }
.meter::-webkit-progress-value { background: linear-gradient(90deg, var(--blue), var(--purple)); border-radius: 999px; }
.meter::-moz-progress-bar { background: linear-gradient(90deg, var(--blue), var(--purple)); border-radius: 999px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 650px; }
th, td { padding: 12px 10px; border-bottom: 1px solid #e9edf4; text-align: left; vertical-align: middle; }
th { color: #66748a; font-size: .8rem; font-weight: 700; background: #fafbfe; }
.code-cell { font-weight: 700; letter-spacing: .08em; color: #174b91; }
.empty-cell { text-align: center; color: var(--muted); padding: 28px; }
.top-gap { margin-top: 14px; }
.inline-form { display: inline; }
.danger-link { border: 0; background: transparent; color: var(--danger); font-weight: 700; cursor: pointer; }

.login-shell { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 28px 16px; }
.login-card { width: min(100%, 440px); padding: 28px; border-radius: 25px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.login-logo { width: 235px; display: block; margin: 0 auto 12px; }
.login-card h1 { margin: 4px 0 18px; text-align: center; }
.login-card .eyebrow { text-align: center; }
.stack-form { display: grid; gap: 14px; }
.stack-form label { display: grid; gap: 7px; font-weight: 600; }
.compact-form { gap: 10px; }

.flash-wrap { width: min(100% - 32px, 1240px); margin: 14px auto 0; }
.flash { padding: 12px 14px; border-radius: 13px; border: 1px solid transparent; margin-bottom: 9px; }
.flash-success { background: var(--success-soft); color: #0e7655; border-color: #c9f2e2; }
.flash-error { background: var(--danger-soft); color: #a72f45; border-color: #ffd6df; }
.flash-warning { background: var(--warning-soft); color: #8a5504; border-color: #ffe1ad; }
.flash-info { background: #edf5ff; color: #365f91; border-color: #d9e9ff; }

.inline-search { display: flex; gap: 9px; align-items: stretch; }
.inline-search input { flex: 1; }
.scanner-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 18px; }
.qr-reader { min-height: 360px; }
.small { font-size: .82rem; }
.scan-result-card { min-height: 280px; padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.scan-result-card h2 { margin: 8px 0; }
.scan-code { font-size: clamp(2.7rem, 7vw, 4.3rem); font-weight: 700; letter-spacing: .08em; line-height: 1; }
.scan-success { border-color: #bcebd8; background: var(--success-soft); }
.scan-warning { border-color: #ffe0a5; background: var(--warning-soft); }
.scan-error { border-color: #ffd3dc; background: var(--danger-soft); }
.manual-claim-card { margin-top: 18px; }
.manual-claim-card h3 { margin-top: 0; }

.draw-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; }
.round-list { display: grid; gap: 7px; margin-top: 18px; }
.round-item { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; border-radius: 12px; text-decoration: none; border: 1px solid #e3e9f2; }
.round-item small { color: var(--muted); }
.round-item.active { border-color: #a8c8ff; background: #eff6ff; color: #1c4f95; }
.draw-control-card { min-height: 480px; }
.draw-number, .draw-placeholder { text-align: center; font-size: clamp(4rem, 11vw, 8rem); line-height: 1; letter-spacing: .11em; font-weight: 700; color: #163d78; margin: 54px 0 20px; }
.draw-placeholder { color: #c1cce0; }
.center-text { text-align: center; color: var(--muted); }
.draw-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 650px; margin: 25px auto; }
.draw-actions form, .draw-actions button { width: 100%; }
.draw-ready { text-align: center; padding-top: 32px; }
.giant-button { min-width: 260px; min-height: 58px; font-size: 1.08rem; }
.winner-list { border-top: 1px solid #e5eaf2; margin-top: 30px; padding-top: 18px; }
.winner-list > div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #edf0f5; }
.winner-list strong { letter-spacing: .08em; color: #1d579f; }
.complete-state, .empty-state { text-align: center; padding: 70px 15px; }

.projector-page {
    min-height: 100vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4vh 5vw;
    background:
        radial-gradient(circle at 18% 18%, rgba(27,170,255,.28), transparent 25%),
        radial-gradient(circle at 85% 20%, rgba(153,65,255,.3), transparent 30%),
        linear-gradient(135deg, #020a1a, #071a3b 55%, #25084d);
    overflow: hidden;
}
.projector-logo { width: min(600px, 44vw); max-height: 23vh; object-fit: contain; }
.projector-kicker { color: #65cbff; font-size: clamp(1.2rem, 2.3vw, 2.3rem); font-weight: 700; letter-spacing: .28em; margin: 10px 0 0; }
.projector-page h1 { font-size: clamp(1.8rem, 4vw, 4.2rem); margin: 6px 0; }
.projector-number { font-size: clamp(7rem, 22vw, 20rem); line-height: .95; font-weight: 700; letter-spacing: .06em; text-shadow: 0 0 45px rgba(61,168,255,.3); margin: 2vh 0; }
.projector-status { color: #b8dfff; font-size: clamp(1.4rem, 3vw, 3rem); font-weight: 700; letter-spacing: .08em; margin: 0; }
.projector-progress { margin-top: 18px; color: #b5bfd5; font-size: clamp(1rem, 1.6vw, 1.5rem); }

@media (max-width: 900px) {
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .scanner-grid, .draw-layout { grid-template-columns: 1fr; }
    .admin-nav {
        display: none;
        position: absolute;
        top: 66px;
        left: 12px;
        right: 12px;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border-radius: 15px;
        background: #091a3b;
        box-shadow: 0 15px 36px rgba(0,0,0,.25);
    }
    .admin-nav.is-open { display: flex; }
    .nav-toggle { display: block; }
    .admin-nav a, .nav-logout-form button { width: 100%; text-align: left; padding: 11px; }
}

@media (max-width: 680px) {
    .survey-shell, .result-shell, .center-shell { width: min(100% - 20px, 860px); padding-top: 12px; }
    .hero-card { grid-template-columns: 1fr; gap: 10px; padding: 20px; text-align: center; }
    .hero-logo { margin: auto; width: min(240px, 75%); }
    .question-card { padding: 18px; border-radius: 19px; }
    .section-heading { gap: 11px; }
    .section-heading h2 { font-size: 1.14rem; }
    .rating-options { gap: 6px; }
    .rating-pill span { min-height: 45px; border-radius: 12px; }
    .admin-header { padding: 9px 14px; }
    .brand span { display: none; }
    .brand img { width: 108px; }
    .admin-main { width: min(100% - 20px, 1240px); padding-top: 18px; }
    .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .metric-card { padding: 15px; }
    .metric-card strong { font-size: 1.65rem; }
    .admin-card { padding: 16px; border-radius: 17px; }
    .page-title-row { align-items: flex-end; }
    .inline-search { flex-direction: column; }
    .draw-actions { grid-template-columns: 1fr; }
    .verify-mini-grid { grid-template-columns: 1fr; }
    .result-card { padding: 24px 16px; border-radius: 24px; }
    .qr-frame { padding: 12px; width: min(100%, 320px); }
    #qrcode canvas, #qrcode img { width: 100% !important; height: auto !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.entry-qr-card { text-align: center; }
.entry-qr-logo { width: min(320px, 70%); margin: 4px auto 12px; }
.entry-qr-card .qr-frame { border: 1px solid #e5eaf2; box-shadow: 0 10px 30px rgba(8,23,52,.08); }
.entry-url { word-break: break-all; color: var(--muted); font-size: .84rem; }

@media print {
    .admin-header, .page-title-row, .entry-url, #print-entry-qr, .flash-wrap { display: none !important; }
    body { background: #fff !important; }
    .admin-main { width: 100%; padding: 0; }
    .entry-qr-card { border: 0; box-shadow: none; margin: 0; }
}

/* V1.1 — Lucky Draw prize scanner + projector winner summary */
.page-title-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: flex-end;
}

.qr-reader,
.qr-reader * {
    font-family: "Google Sans", sans-serif !important;
}

.prize-round-picker .inline-search {
    align-items: center;
}
.prize-round-label {
    flex: 0 0 auto;
    font-weight: 700;
}
.prize-round-picker select {
    flex: 1;
    min-width: 260px;
}
.prize-round-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 12px;
    color: var(--muted);
    font-size: .9rem;
}

.projector-live {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.projector-summary {
    width: min(94vw, 1500px);
    margin-top: 1.5vh;
}
.projector-summary[hidden] {
    display: none !important;
}
.projector-summary-kicker {
    margin: 0;
    color: #7de0ff;
    font-size: clamp(1rem, 1.9vw, 2rem);
    font-weight: 700;
    letter-spacing: .22em;
}
.projector-summary h2 {
    margin: .3vh 0 2vh;
    font-size: clamp(1.8rem, 3.4vw, 3.8rem);
}
.projector-winner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(10px, 1.2vw, 20px);
    width: 100%;
    max-height: 57vh;
    overflow: auto;
    padding: 4px;
}
.projector-winner-item {
    min-height: clamp(92px, 10vh, 150px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(111, 207, 255, .32);
    border-radius: clamp(14px, 1.4vw, 24px);
    background: linear-gradient(145deg, rgba(15, 42, 88, .82), rgba(65, 19, 111, .72));
    box-shadow: 0 16px 45px rgba(0, 0, 0, .18);
}
.projector-winner-item span {
    color: #86d9ff;
    font-size: clamp(.75rem, 1vw, 1.1rem);
    font-weight: 700;
    letter-spacing: .16em;
}
.projector-winner-item strong {
    margin-top: 4px;
    color: #fff;
    font-size: clamp(2.1rem, 4.1vw, 4.8rem);
    line-height: 1;
    letter-spacing: .08em;
}
.projector-summary-count {
    margin: 2vh 0 0;
    color: #b7cbe7;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: .12em;
}

@media (max-width: 680px) {
    .page-title-actions { width: 100%; justify-content: stretch; }
    .page-title-actions > * { flex: 1; }
    .prize-round-picker .inline-search { align-items: stretch; }
    .prize-round-picker select { min-width: 0; }
}

/* V1.2 — jsQR camera scanner */
.qr-camera,
.qr-camera * {
    font-family: "Google Sans", sans-serif !important;
}
.qr-camera {
    display: grid;
    gap: 14px;
}
.qr-camera-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 300px;
    overflow: hidden;
    border-radius: 18px;
    background: #030b1b;
    border: 1px solid #1b3159;
}
.qr-camera-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #030b1b;
}
.qr-camera-guide {
    position: absolute;
    inset: 50% auto auto 50%;
    width: min(62%, 280px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, .94);
    border-radius: 20px;
    box-shadow:
        0 0 0 999px rgba(2, 10, 26, .18),
        0 0 26px rgba(34, 208, 255, .34);
    pointer-events: none;
}
.qr-camera-guide::before,
.qr-camera-guide::after {
    content: "";
    position: absolute;
    width: 42px;
    height: 42px;
    border-color: var(--cyan);
    border-style: solid;
}
.qr-camera-guide::before {
    top: -4px;
    left: -4px;
    border-width: 5px 0 0 5px;
    border-radius: 16px 0 0 0;
}
.qr-camera-guide::after {
    right: -4px;
    bottom: -4px;
    border-width: 0 5px 5px 0;
    border-radius: 0 0 16px 0;
}
.qr-camera-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.qr-camera-actions > button {
    flex: 1 1 170px;
}
.qr-camera-status {
    min-height: 24px;
    margin: 0;
    font-size: .88rem;
    font-weight: 600;
    color: var(--muted);
}
.qr-camera-status[data-type="active"] { color: #1768b5; }
.qr-camera-status[data-type="success"] { color: var(--success); }
.qr-camera-status[data-type="warning"] { color: var(--warning); }
.scanner-hidden-form { display: none; }

@media (max-width: 680px) {
    .qr-camera-stage {
        min-height: 260px;
        aspect-ratio: 1 / 1;
    }
    .qr-camera-guide {
        width: min(70%, 260px);
    }
}
