:root {
    color-scheme: light;
    --gold: #8b734b;
    --gold-deep: #6e5938;
    --gold-soft: #c8b487;
    --gold-pale: #eee6d7;
    --ink: #171713;
    --ink-soft: #2c2b25;
    --ivory: #f7f3ea;
    --ivory-deep: #eee8dc;
    --paper: #fffdfa;
    --white: #ffffff;
    --muted: #77736b;
    --line: rgba(23, 23, 19, 0.10);
    --success: #15734c;
    --danger: #aa322a;
    --shadow-lg: 0 30px 80px rgba(28, 25, 18, 0.16);
    --shadow-md: 0 15px 45px rgba(28, 25, 18, 0.10);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 17px;
    font-family:
        "Segoe UI", Tahoma, Arial, sans-serif;
    background: var(--ivory);
    color: var(--ink);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    min-height: 100%;
    background: var(--ivory);
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,.72), rgba(247,243,234,.88)),
        repeating-linear-gradient(
            90deg,
            rgba(139,115,75,.025) 0,
            rgba(139,115,75,.025) 1px,
            transparent 1px,
            transparent 42px
        );
    color: var(--ink);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: wait;
    opacity: .65;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hidden {
    display: none !important;
}

.ambient {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(5px);
    pointer-events: none;
}

.ambient-one {
    top: -140px;
    right: -170px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(139,115,75,.16), transparent 68%);
}

.ambient-two {
    bottom: -180px;
    left: -180px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(139,115,75,.10), transparent 70%);
}

.page-shell {
    width: min(100%, 760px);
    min-height: 100dvh;
    margin: 0 auto;
    padding:
        max(18px, env(safe-area-inset-top))
        14px
        max(18px, env(safe-area-inset-bottom));
}

.login-view {
    min-height: calc(100dvh - 36px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card {
    position: relative;
    overflow: hidden;
    width: min(100%, 440px);
    margin: auto;
    padding: 28px 24px 26px;
    border: 1px solid rgba(139,115,75,.18);
    border-radius: var(--radius-xl);
    background: rgba(255,253,250,.94);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.login-logo {
    display: block;
    width: min(210px, 58vw);
    height: auto;
}

.internal-badge {
    flex: 0 0 auto;
    padding: 7px 9px;
    border: 1px solid rgba(139,115,75,.28);
    border-radius: 999px;
    color: var(--gold-deep);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.kicker {
    margin: 0 0 6px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 9px;
    font-size: clamp(27px, 7vw, 38px);
    line-height: 1.16;
    letter-spacing: -.025em;
}

h2 {
    margin-bottom: 4px;
    font-size: clamp(27px, 7vw, 36px);
    letter-spacing: -.025em;
}

h3 {
    margin-bottom: 9px;
    font-size: 24px;
}

.muted {
    color: var(--muted);
    line-height: 1.65;
}

.compact {
    margin-bottom: 0;
    font-size: 13px;
}

.login-copy {
    margin-bottom: 24px;
}

.login-copy .muted {
    margin-bottom: 0;
    font-size: 14px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
}

.pin-field {
    position: relative;
}

.pin-field input {
    width: 100%;
    height: 56px;
    padding: 10px 48px 10px 16px;
    border: 1px solid rgba(23,23,19,.14);
    border-radius: 16px;
    outline: none;
    background: var(--white);
    color: var(--ink);
    font-size: 22px;
    letter-spacing: .18em;
    transition: .18s ease;
}

.pin-field input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(139,115,75,.10);
}

.pin-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 22px;
    height: 22px;
    color: var(--gold);
    transform: translateY(-50%);
}

.pin-icon svg {
    width: 100%;
    height: 100%;
}

.brand-button,
.scan-button,
.outline-button {
    border: 0;
    font-weight: 800;
    transition:
        transform .12s ease,
        box-shadow .12s ease,
        background .12s ease;
}

.brand-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    margin-top: 16px;
    border-radius: 16px;
    background: var(--ink);
    color: var(--white);
    box-shadow: 0 12px 25px rgba(23,23,19,.18);
}

.brand-button svg {
    width: 20px;
    height: 20px;
}

.brand-button:active,
.scan-button:active,
.outline-button:active,
.header-action:active,
.refresh-button:active,
.dialog-close:active {
    transform: scale(.98);
}

.form-message {
    min-height: 22px;
    margin: 13px 0 0;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.form-message.error,
.scanner-message.error {
    color: var(--danger);
}

.signature-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 18px;
    color: rgba(23,23,19,.48);
    font-size: 9.5px;
    line-height: 1.4;
    text-align: center;
}

.signature-footer a {
    color: inherit;
    text-decoration: none;
}

.footer-dot {
    color: var(--gold);
}

.app-view {
    min-height: calc(100dvh - 36px);
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 72px;
    margin-bottom: 14px;
    padding: 10px 2px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.header-logo {
    display: block;
    width: 112px;
    max-height: 64px;
    object-fit: contain;
}

.header-divider {
    width: 1px;
    height: 36px;
    background: rgba(139,115,75,.34);
}

.header-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    direction: ltr;
    line-height: 1.15;
}

.header-copy span {
    color: var(--gold);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
}

.header-copy strong {
    margin-top: 4px;
    color: var(--ink);
    font-size: 11px;
    letter-spacing: .08em;
    white-space: nowrap;
}

.header-action,
.refresh-button,
.dialog-close {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(23,23,19,.10);
    background: rgba(255,253,250,.90);
    color: var(--ink);
    box-shadow: 0 8px 25px rgba(23,23,19,.06);
}

.header-action {
    width: 45px;
    height: 45px;
    border-radius: 15px;
}

.header-action svg,
.refresh-button svg,
.dialog-close svg {
    width: 21px;
    height: 21px;
}

.hero-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 20px;
    border: 1px solid rgba(139,115,75,.15);
    border-radius: 25px;
    background:
        linear-gradient(135deg, rgba(255,253,250,.98), rgba(244,238,225,.94));
    box-shadow: var(--shadow-md);
}

.hero-panel h1 {
    margin-bottom: 5px;
    font-size: clamp(25px, 7vw, 35px);
}

.hero-panel .muted {
    margin-bottom: 0;
    font-size: 13px;
}

.hero-side {
    display: flex;
    align-items: center;
    gap: 8px;
}

.count-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border: 1px solid rgba(139,115,75,.22);
    border-radius: 20px;
    background: rgba(255,255,255,.65);
}

.count-chip strong {
    color: var(--gold-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1;
}

.count-chip span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.refresh-button {
    width: 43px;
    height: 43px;
    border-radius: 14px;
}

.refresh-button:disabled svg {
    animation: rotate .8s linear infinite;
}

.update-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 6px 13px;
    color: var(--muted);
    font-size: 11px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(21,115,76,.10);
}

.checks-list {
    display: grid;
    gap: 14px;
}

.check-card {
    position: relative;
    overflow: hidden;
    padding: 19px;
    border: 1px solid rgba(139,115,75,.14);
    border-radius: var(--radius-lg);
    background: rgba(255,253,250,.96);
    box-shadow: 0 14px 38px rgba(28,25,18,.08);
}

.card-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold), var(--gold-soft));
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-right: 3px;
}

.check-number-block {
    display: flex;
    flex-direction: column;
}

.check-number-block span {
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
}

.check-number-block strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 33px;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.ready-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(21,115,76,.08);
    color: var(--success);
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}

.ready-pill i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.card-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 17px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid rgba(23,23,19,.06);
    border-radius: 13px;
    background: #faf7f0;
}

.info-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--gold-pale);
    color: var(--gold-deep);
}

.info-icon svg {
    width: 16px;
    height: 16px;
}

.info-item > div {
    min-width: 0;
}

.info-item span:not(.info-icon) {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 8.5px;
    white-space: nowrap;
}

.info-item strong {
    display: block;
    overflow: hidden;
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scan-button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 10px 13px;
    border-radius: 16px;
    background: var(--ink);
    color: var(--white);
    text-align: right;
}

.scan-button-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-left: 11px;
    border-radius: 12px;
    background: rgba(255,255,255,.10);
    color: var(--gold-soft);
}

.scan-button-icon svg {
    width: 21px;
    height: 21px;
}

.scan-button > span:nth-child(2) {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.scan-button strong {
    font-size: 13px;
}

.scan-button small {
    margin-top: 3px;
    color: rgba(255,255,255,.55);
    font-size: 9px;
    font-weight: 500;
}

.button-arrow {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    color: var(--gold-soft);
}

.empty-state,
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 35px 22px;
    border: 1px dashed rgba(139,115,75,.28);
    border-radius: var(--radius-lg);
    background: rgba(255,253,250,.72);
    text-align: center;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 15px;
    border-radius: 19px;
    background: var(--gold-pale);
    color: var(--gold);
}

.empty-icon svg {
    width: 29px;
    height: 29px;
}

.empty-state strong {
    font-size: 17px;
}

.empty-state p,
.loading-state p {
    max-width: 330px;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.brand-loader {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 28px;
}

.brand-loader span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    animation: loader 1s ease-in-out infinite;
}

.brand-loader span:nth-child(2) {
    animation-delay: .13s;
}

.brand-loader span:nth-child(3) {
    animation-delay: .26s;
}

.status-banner {
    margin-bottom: 14px;
    padding: 13px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.55;
}

.status-banner.error {
    border: 1px solid rgba(170,50,42,.18);
    background: #fff1ef;
    color: var(--danger);
}

.app-footer {
    padding: 8px 0 3px;
}

.scan-dialog {
    width: min(calc(100% - 14px), 560px);
    max-height: calc(100dvh - 14px);
    padding: 0;
    border: 0;
    border-radius: 28px;
    background: var(--paper);
    box-shadow: 0 35px 100px rgba(0,0,0,.35);
    overflow: hidden;
}

.scan-dialog::backdrop {
    background: rgba(17,17,14,.72);
    backdrop-filter: blur(8px);
}

.dialog-shell {
    min-height: min(680px, calc(100dvh - 14px));
    padding:
        max(17px, env(safe-area-inset-top))
        17px
        max(18px, env(safe-area-inset-bottom));
}

.dialog-header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
}

.dialog-close {
    width: 44px;
    height: 44px;
    border-radius: 15px;
}

.dialog-title {
    min-width: 0;
    text-align: center;
}

.dialog-title .kicker {
    margin-bottom: 3px;
    font-size: 9px;
}

.dialog-title h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
}

.dialog-mark {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(139,115,75,.16);
    border-radius: 14px;
    object-fit: contain;
}

.scanner-stage {
    animation: fadeIn .2s ease;
}

.camera-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    background: #11120f;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.camera-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .25s ease;
}

.camera-frame video.active {
    opacity: 1;
}

.camera-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: rgba(255,255,255,.82);
    text-align: center;
}

.camera-symbol {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    border: 1px solid rgba(200,180,135,.35);
    border-radius: 21px;
    background: rgba(200,180,135,.10);
    color: var(--gold-soft);
}

.camera-symbol svg {
    width: 31px;
    height: 31px;
}

.camera-placeholder strong {
    font-size: 15px;
}

.camera-placeholder span {
    margin-top: 6px;
    color: rgba(255,255,255,.48);
    font-size: 11px;
}

.scan-corners {
    position: absolute;
    inset: 16%;
    pointer-events: none;
}

.scan-corners span {
    position: absolute;
    width: 44px;
    height: 44px;
    border-color: var(--gold-soft);
    border-style: solid;
}

.scan-corners span:nth-child(1) {
    top: 0;
    right: 0;
    border-width: 3px 3px 0 0;
    border-radius: 0 12px 0 0;
}

.scan-corners span:nth-child(2) {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
    border-radius: 12px 0 0;
}

.scan-corners span:nth-child(3) {
    right: 0;
    bottom: 0;
    border-width: 0 3px 3px 0;
    border-radius: 0 0 12px;
}

.scan-corners span:nth-child(4) {
    bottom: 0;
    left: 0;
    border-width: 0 0 3px 3px;
    border-radius: 0 0 0 12px;
}

.scan-beam {
    position: absolute;
    z-index: 2;
    right: 17%;
    left: 17%;
    top: 18%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e5d5a8, transparent);
    box-shadow: 0 0 18px rgba(229,213,168,.85);
    animation: scan 2.2s ease-in-out infinite;
}

.scan-instruction {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 13px;
    padding: 13px;
    border: 1px solid rgba(139,115,75,.13);
    border-radius: 16px;
    background: #faf7f0;
}

.instruction-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: var(--gold-pale);
    color: var(--gold);
}

.instruction-icon svg {
    width: 21px;
    height: 21px;
}

.scan-instruction > div {
    display: flex;
    flex-direction: column;
}

.scan-instruction strong {
    font-size: 12px;
}

.scan-instruction span:not(.instruction-icon) {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9.5px;
}

.outline-button {
    width: 100%;
    min-height: 50px;
    margin-top: 12px;
    border: 1px solid var(--gold);
    border-radius: 15px;
    background: transparent;
    color: var(--gold-deep);
}

.scanner-message {
    min-height: 21px;
    margin: 11px 2px 0;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.55;
    text-align: center;
}

.scanner-message.info {
    color: var(--gold-deep);
}

.result-stage {
    display: flex;
    min-height: 520px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
    animation: fadeIn .25s ease;
}

.processing-ring {
    position: relative;
    width: 82px;
    height: 82px;
    margin-bottom: 24px;
    border: 2px solid var(--gold-pale);
    border-radius: 50%;
}

.processing-ring span {
    position: absolute;
    inset: -2px;
    border: 2px solid transparent;
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: rotate .85s linear infinite;
}

.result-stage h3 {
    font-size: 24px;
}

.result-stage .muted {
    max-width: 290px;
    font-size: 12px;
}

.success-seal {
    display: grid;
    place-items: center;
    width: 90px;
    height: 90px;
    margin-bottom: 24px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, #2b966d, var(--success));
    color: var(--white);
    box-shadow:
        0 18px 45px rgba(21,115,76,.25),
        0 0 0 10px rgba(21,115,76,.08);
    animation: successPop .45s cubic-bezier(.2,.9,.3,1.2);
}

.success-seal svg {
    width: 42px;
    height: 42px;
    stroke-width: 2.4;
}

.member-result {
    margin: 4px 0 18px;
    color: var(--gold-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
}

.success-check-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border: 1px solid rgba(139,115,75,.15);
    border-radius: 999px;
    background: var(--gold-pale);
}

.success-check-pill span {
    color: var(--muted);
    font-size: 10px;
}

.success-check-pill strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
}

.toast {
    position: fixed;
    z-index: 100;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    width: min(calc(100% - 24px), 520px);
    margin-inline: auto;
    padding: 14px 16px;
    border-radius: 15px;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

@keyframes loader {
    0%, 100% {
        opacity: .35;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

@keyframes scan {
    0%, 100% {
        top: 18%;
        opacity: .25;
    }
    50% {
        top: 80%;
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes successPop {
    from {
        opacity: 0;
        transform: scale(.65);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (min-width: 620px) {
    .page-shell {
        padding-inline: 20px;
    }

    .checks-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .loading-state,
    .empty-state {
        grid-column: 1 / -1;
    }
}

@media (max-width: 430px) {
    .page-shell {
        padding-inline: 10px;
    }

    .login-card {
        padding: 24px 18px 22px;
        border-radius: 25px;
    }

    .login-brand {
        align-items: flex-start;
    }

    .login-logo {
        width: 175px;
    }

    .internal-badge {
        padding: 6px 7px;
        font-size: 7.5px;
    }

    .app-header {
        min-height: 64px;
    }

    .header-logo {
        width: 92px;
    }

    .header-copy strong {
        font-size: 9.5px;
    }

    .hero-panel {
        padding: 19px 15px;
    }

    .hero-panel .muted {
        max-width: 190px;
    }

    .count-chip {
        width: 59px;
        height: 59px;
        border-radius: 17px;
    }

    .refresh-button {
        width: 40px;
        height: 40px;
    }

    .check-card {
        padding: 17px 14px;
    }

    .card-info {
        gap: 5px;
    }

    .info-item {
        gap: 5px;
        padding: 9px 6px;
    }

    .info-icon {
        width: 25px;
        height: 25px;
    }

    .info-icon svg {
        width: 14px;
        height: 14px;
    }

    .info-item strong {
        font-size: 10.5px;
    }

    .scan-dialog {
        width: calc(100% - 8px);
        max-height: calc(100dvh - 8px);
        border-radius: 25px;
    }

    .dialog-shell {
        min-height: calc(100dvh - 8px);
        padding-inline: 13px;
    }

    .camera-frame {
        border-radius: 21px;
    }
}

@media (max-height: 720px) {
    .camera-frame {
        aspect-ratio: 4 / 3;
    }

    .dialog-shell {
        min-height: auto;
    }

    .result-stage {
        min-height: 430px;
    }
}


/* V5 */
.login-pin-copy {
    direction: ltr;
    text-align: left;
}

.login-pin-copy h1 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.02em;
}

.login-pin-copy .muted {
    max-width: 290px;
}

.signature-footer {
    direction: ltr;
    font-family: "Segoe UI", Arial, sans-serif;
    letter-spacing: 0.01em;
}

.refresh-button:disabled {
    opacity: 1;
}

.refresh-button:disabled svg {
    color: var(--gold);
}
