:root {
    --ink: #172d33;
    --muted: #53686d;
    --green: #087a52;
    --green-dark: #07543f;
    --gold: #edbd41;
    --line: #d8e4e5;
    --canvas: #f3f8f9;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.5 Arial, Helvetica, sans-serif; }
button, input { font: inherit; }
.colour-rail { display: grid; grid-template-columns: 2fr 1fr 1fr; height: 5px; }
.colour-rail span:nth-child(1) { background: #087a52; }
.colour-rail span:nth-child(2) { background: #f2c54d; }
.colour-rail span:nth-child(3) { background: #cf6152; }
.selfie-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding-bottom: 28px; }
.selfie-header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.selfie-brand { display: flex; align-items: center; gap: 13px; }
.brand-logo { display: block; width: 59px; height: 59px; object-fit: contain; }
.brand-type { display: flex; flex-direction: column; line-height: 1.15; gap: 4px; }
.brand-agency { color: var(--green); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.brand-type strong { font-size: 22px; color: var(--ink); }
.header-status { display: flex; align-items: center; gap: 8px; color: #31535b; font-size: 12px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; background: #17a765; border-radius: 50%; box-shadow: 0 0 0 4px #dcefe5; }
.selfie-workspace { overflow: hidden; background: #fff; border: 1px solid #cfdddf; border-radius: 8px; box-shadow: 0 12px 32px rgba(17, 55, 59, .08); }
.workspace-heading { min-height: 190px; padding: 32px 42px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: #0d4b42; color: #fff; border-bottom: 5px solid var(--gold); }
.heading-copy { max-width: 650px; }
.heading-kicker { color: #ffd87b; font-size: 11px; font-weight: 700; }
h1 { font-size: 30px; line-height: 1.18; margin: 12px 0 10px; }
h2 { font-size: 19px; line-height: 1.28; margin: 0 0 6px; }
p { margin: 0; }
.workspace-heading p { color: #d8eae6; max-width: 590px; }
.heading-seal { flex: none; width: 86px; height: 86px; border: 1px solid rgba(255, 255, 255, .46); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.heading-seal span { font-size: 20px; font-weight: 700; }
.heading-seal strong { font-size: 9px; color: #ffd87b; }
.progress-track { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); background: #f9fbfb; }
.progress-step { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 18px 25px; color: #819194; }
.progress-step + .progress-step { border-left: 1px solid var(--line); }
.progress-step.is-current { background: #fff; color: var(--ink); box-shadow: inset 0 -3px var(--gold); }
.progress-step.is-done { color: var(--green-dark); background: #f5fbf7; }
.progress-number { display: grid; place-items: center; flex: none; width: 33px; height: 33px; border: 1px solid #c7d5d6; border-radius: 50%; color: #738b8d; font-size: 13px; font-weight: 700; }
.is-current .progress-number { border-color: var(--gold); background: var(--gold); color: #2e331c; }
.is-done .progress-number { border-color: var(--green); background: var(--green); color: #fff; }
.progress-step strong, .progress-step small { display: block; white-space: nowrap; }
.progress-step strong { font-size: 13px; }
.progress-step small { font-size: 11px; color: #718386; }
.workspace-body { display: grid; grid-template-columns: minmax(0, 1fr) 310px; min-height: 355px; }
.workspace-main { min-width: 0; padding: 34px 42px 42px; }
.workspace-main form { margin: 0; }
.section-label, .aside-eyebrow { display: block; color: var(--green); font-size: 10px; font-weight: 800; margin-bottom: 10px; }
.section-intro { margin-bottom: 25px; }
.section-intro p { color: var(--muted); }
.invoice-row { display: flex; align-items: end; gap: 12px; max-width: 700px; }
.field { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.field label { color: #2f464a; font-weight: 700; font-size: 12px; }
.field input { display: block; width: 100%; min-width: 0; height: 45px; padding: 0 14px; border: 1px solid #aebfc2; border-radius: 5px; outline: 0; background: #fff; color: var(--ink); }
.field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px #d6eee2; }
.field input[readonly] { color: #486262; background: #f6f9f8; }
.field small { color: #6b7c80; font-size: 11px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 45px; border: 1px solid transparent; border-radius: 5px; padding: 0 20px; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:focus-visible { outline: 3px solid #e9b431; outline-offset: 2px; }
.btn-primary { color: #fff; background: #078653; box-shadow: 0 3px 0 #06613f; }
.btn-primary:hover { background: #056e45; }
.btn-secondary { color: var(--green-dark); border-color: #abc9bf; background: #fff; }
.btn-secondary:hover { background: #eaf6ef; }
.validated-label { align-self: end; display: inline-flex; align-items: center; min-height: 45px; color: var(--green-dark); font-weight: 700; }
.verification-stage { margin-top: 34px; padding-top: 31px; border-top: 1px solid var(--line); }
.card-field { max-width: 440px; }
.photo-section { margin-top: 27px; padding-top: 21px; border-top: 1px solid var(--line); }
.photo-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.photo-heading strong { font-size: 14px; }
.photo-heading span { color: var(--muted); font-size: 12px; }
.photo-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 13px 0 6px; }
.camera-error { color: #ae3939; font-size: 12px; margin-top: 6px; }
.camera-error:empty { display: none; }
.camera-panel, .crop-panel { width: min(100%, 480px); margin: 16px 0; padding: 15px; background: #f5f9f9; border: 1px solid var(--line); border-radius: 5px; }
.camera-panel video { display: block; width: 100%; max-height: 360px; object-fit: cover; margin-bottom: 12px; background: #14282b; }
.crop-frame { width: min(360px, 100%); aspect-ratio: 1; position: relative; margin: auto; overflow: hidden; background: #dce7e6; touch-action: none; }
.crop-frame canvas { display: block; width: 100%; height: 100%; }
.face-guide { position: absolute; pointer-events: none; inset: 11% 20%; border: 2px dashed rgba(255, 255, 255, .85); border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
.crop-controls { display: flex; align-items: center; gap: 12px; margin-top: 15px; }
.crop-controls label { color: #2f464a; font-size: 12px; font-weight: 700; }
.crop-controls input { flex: 1; min-width: 50px; accent-color: var(--green); }
.crop-hint { margin-top: 8px; color: var(--muted); font-size: 11px; }
.submit-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 27px; padding-top: 23px; border-top: 1px solid var(--line); }
.submit-row span { color: var(--muted); font-size: 11px; }
.workspace-aside { display: flex; flex-direction: column; padding: 36px 26px; border-left: 1px solid var(--line); background: #fffaf0; }
.workspace-aside h2 { font-size: 17px; }
.readiness-list { list-style: none; padding: 0; margin: 24px 0 0; }
.readiness-list li { display: flex; align-items: start; gap: 12px; padding: 16px 0; border-top: 1px solid #eadfc7; }
.readiness-mark { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 4px; font-size: 10px; font-weight: 800; }
.mark-invoice { color: #064c3e; background: #d9efe5; }
.mark-card { color: #77580d; background: #f8e8b9; }
.mark-photo { color: #9b453a; background: #f8ded8; }
.readiness-list strong, .readiness-list small { display: block; }
.readiness-list strong { font-size: 12px; }
.readiness-list small { color: #687779; font-size: 11px; margin-top: 2px; }
.aside-note { display: flex; gap: 10px; margin-top: auto; padding-top: 34px; color: #5b6c69; font-size: 11px; }
.note-rule { flex: none; width: 3px; background: #e9b631; }
.message-popup {
    position: fixed;
    z-index: 1000;
    top: 22px;
    left: 50%;
    display: none;
    width: min(560px, calc(100% - 32px));
    transform: translateX(-50%);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(14, 43, 47, .28);
}
.message-popup.has-messages { display: block; animation: message-popup-in .2s ease-out; }
.message-popup-close {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #465d61;
    background: rgba(255, 255, 255, .78);
    font-size: 22px;
    cursor: pointer;
}
.message-popup-close:hover { background: #fff; }
.selfie-messages { list-style: none; padding: 0; margin: 0; }
.selfie-messages li { min-height: 58px; padding: 18px 52px 16px 18px; border-radius: 7px; font-weight: 700; }
.message-error { color: #9a2828; background: #fff0f0; border: 1px solid #efc6c6; }
.message-warn { color: #825b0c; background: #fff8e8; border: 1px solid #e6d4a8; }
.message-info { color: #116340; background: #e9f8ef; border: 1px solid #b7e0c6; }
@keyframes message-popup-in {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.selfie-complete { padding: 20px 0 30px; }
.complete-symbol { display: grid; place-items: center; width: 55px; height: 55px; margin-bottom: 25px; border-radius: 50%; color: #fff; background: var(--green); font-size: 25px; }
.selfie-complete h2 { font-size: 25px; }
.selfie-complete p { color: var(--muted); }
.reference { margin-top: 25px; padding: 12px 14px; border-left: 3px solid var(--gold); background: #f7faf9; color: var(--ink) !important; font-size: 12px; word-break: break-all; }
.verification-success-overlay { position: fixed; z-index: 2100; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 24px; background: rgba(8, 36, 34, .78); backdrop-filter: blur(3px); }
.verification-success-dialog { width: min(680px, 100%); padding: 30px; border-top: 5px solid var(--gold); border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .32); }
.success-dialog-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.success-dialog-heading .complete-symbol { flex: none; margin: 0; }
.success-dialog-heading .section-label { margin-bottom: 3px; }
.success-dialog-heading h2 { margin: 0; font-size: 24px; }
.success-identity { display: flex; align-items: center; gap: 20px; padding: 18px; border: 1px solid #cfe0da; background: #f4faf7; }
.success-photo { display: grid; place-items: center; flex: none; width: 96px; height: 112px; overflow: hidden; border: 3px solid #fff; background: #dce8e5; box-shadow: 0 2px 8px rgba(17, 55, 59, .15); }
.success-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.success-photo-fallback { padding: 10px; color: var(--muted); font-size: 10px; text-align: center; }
.success-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.success-name small, .success-details dt { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.success-name strong { overflow-wrap: anywhere; font-size: 20px; }
.success-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0 0; border: 1px solid var(--line); border-bottom: 0; }
.success-details > div { min-width: 0; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.success-details > div:nth-child(even) { border-left: 1px solid var(--line); }
.success-details .detail-wide { grid-column: 1 / -1; }
.success-details dt { margin-bottom: 4px; }
.success-details dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; font-weight: 700; }
.success-confirmation { margin-top: 16px; padding-left: 12px; border-left: 3px solid var(--gold); color: var(--muted); font-size: 12px; }
.success-finish { width: 100%; margin-top: 22px; }
.selfie-footer { display: flex; justify-content: space-between; gap: 12px; padding: 21px 2px; color: #667c80; font-size: 11px; }
.verification-in-progress { overflow: hidden; }
.verification-progress {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(8, 36, 34, .76);
    backdrop-filter: blur(3px);
}
.verification-progress-card {
    width: min(430px, 100%);
    padding: 38px 36px 34px;
    border-top: 5px solid var(--gold);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
    text-align: center;
}
.verification-spinner {
    width: 58px;
    height: 58px;
    margin: 0 auto 23px;
    border: 5px solid #d9ebe5;
    border-top-color: var(--green);
    border-radius: 50%;
    animation: verification-spin .8s linear infinite;
}
.verification-progress-card .section-label { margin-bottom: 7px; }
.verification-progress-card h2 { margin-bottom: 9px; font-size: 22px; }
.verification-progress-card p { color: var(--muted); }
.verification-progress-line { height: 4px; margin-top: 26px; overflow: hidden; border-radius: 2px; background: #e4eceb; }
.verification-progress-line span { display: block; width: 45%; height: 100%; border-radius: inherit; background: var(--green); animation: verification-line 1.25s ease-in-out infinite; }
@keyframes verification-spin { to { transform: rotate(360deg); } }
@keyframes verification-line {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(245%); }
}

.expired-page { min-height: 100vh; }
.expired-shell { width: min(980px, calc(100% - 48px)); margin: 0 auto; }
.expired-header { min-height: 92px; }
.status-dot-muted { background: #d19b1f; box-shadow: 0 0 0 4px #f6e9c9; }
.expired-card {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    min-height: 430px;
    overflow: hidden;
    border: 1px solid #cfdddf;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(17, 55, 59, .11);
}
.expired-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 42px;
    border-bottom: 5px solid var(--gold);
    background: #0d4b42;
}
.expired-clock {
    position: relative;
    width: 126px;
    height: 126px;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 13px rgba(255, 255, 255, .08);
}
.expired-clock::before, .expired-clock::after {
    position: absolute;
    left: 50%;
    bottom: 50%;
    width: 3px;
    content: "";
    transform-origin: bottom;
    border-radius: 2px;
    background: var(--gold);
}
.expired-clock::before { height: 36px; transform: translateX(-50%) rotate(0deg); }
.expired-clock::after { height: 27px; transform: translateX(-50%) rotate(122deg); }
.expired-clock span { position: absolute; inset: 50% auto auto 50%; width: 11px; height: 11px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; }
.expired-code { color: #d8eae6; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.expired-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 52px 58px; }
.expired-kicker { margin-bottom: 5px; color: var(--green); }
.expired-content h1 { max-width: 510px; margin: 8px 0 15px; font-size: 31px; color: var(--ink); }
.expired-content > p { max-width: 520px; color: var(--muted); }
.expired-note { display: flex; flex-direction: column; gap: 3px; width: 100%; margin: 28px 0; padding: 15px 17px; border-left: 3px solid var(--gold); background: #f7faf9; }
.expired-note strong { font-size: 12px; }
.expired-note span { color: var(--muted); font-size: 12px; }
.expired-action { min-width: 210px; }
.expired-footer { padding-top: 18px; }

@media (min-width: 851px) {
    .selfie-shell { width: min(1240px, calc(100% - 36px)); padding-bottom: 10px; }
    .selfie-header { min-height: 64px; }
    .brand-logo { width: 44px; height: 44px; }
    .brand-type strong { font-size: 19px; }
    .workspace-heading { min-height: 104px; padding: 18px 30px; }
    .workspace-heading h1 { margin: 5px 0 3px; font-size: 25px; }
    .heading-seal { width: 62px; height: 62px; }
    .heading-seal span { font-size: 16px; }
    .progress-step { gap: 9px; padding: 10px 20px; }
    .progress-number { width: 27px; height: 27px; font-size: 11px; }
    .workspace-body { grid-template-columns: minmax(0, 1fr) 270px; min-height: 0; }
    .workspace-main { padding: 19px 28px 22px; }
    .workspace-aside { padding: 22px 20px; }
    .readiness-list { margin-top: 13px; }
    .readiness-list li { padding: 10px 0; }
    .aside-note { padding-top: 16px; }
    .selfie-messages li { padding-top: 14px; padding-bottom: 14px; }
    .selfie-footer { padding: 9px 2px; }

    .is-identity .workspace-heading { min-height: 78px; padding-top: 11px; padding-bottom: 11px; }
    .is-identity .workspace-heading p, .is-identity .heading-kicker { display: none; }
    .is-identity .workspace-heading h1 { margin: 0; font-size: 22px; }
    .is-identity .heading-seal { width: 52px; height: 52px; }
    .is-identity .progress-step { padding-top: 7px; padding-bottom: 7px; }
    .is-identity .workspace-main { padding-top: 14px; padding-bottom: 15px; }
    .is-identity .section-intro { margin-bottom: 10px; }
    .is-identity .section-intro p { display: none; }
    .is-identity .section-label { margin-bottom: 3px; }
    .is-identity .section-intro h2 { margin-bottom: 0; font-size: 16px; }
    .is-identity .invoice-row { max-width: none; }
    .is-identity .field { gap: 4px; }
    .is-identity .field input { height: 39px; }
    .is-identity .btn, .is-identity .validated-label { min-height: 39px; }
    .is-identity .verification-stage {
        display: grid;
        grid-template-columns: minmax(260px, .82fr) minmax(360px, 1.18fr);
        column-gap: 24px;
        row-gap: 10px;
        margin-top: 12px;
        padding-top: 12px;
    }
    .is-identity .verification-stage > .section-intro { grid-column: 1 / -1; }
    .is-identity .card-field { grid-column: 1; max-width: none; align-self: start; }
    .is-identity .photo-section {
        grid-column: 2;
        grid-row: 2 / span 2;
        min-width: 0;
        margin-top: 0;
        padding: 0 0 0 20px;
        border-top: 0;
        border-left: 1px solid var(--line);
    }
    .is-identity .photo-tools { margin: 8px 0 4px; }
    .is-identity .camera-panel, .is-identity .crop-panel {
        width: 100%;
        max-width: 430px;
        margin: 8px 0 0;
        padding: 9px;
    }
    .is-identity .camera-panel video { height: 250px; max-height: 250px; margin-bottom: 8px; }
    .is-identity .crop-frame { width: min(250px, 100%); }
    .is-identity .crop-controls { margin-top: 8px; }
    .is-identity .crop-hint { margin-top: 4px; }
    .is-identity .submit-row {
        grid-column: 1;
        align-self: end;
        margin-top: 4px;
        padding-top: 12px;
    }
    .is-identity .submit-row span { max-width: 230px; }
}

@media (max-width: 850px) {
    .workspace-body { grid-template-columns: minmax(0, 1fr); }
    .workspace-aside { display: none; }
}

@media (max-width: 620px) {
    body { overflow-x: hidden; }
    .selfie-shell {
        width: 100%;
        padding: 0 max(12px, env(safe-area-inset-right)) 20px max(12px, env(safe-area-inset-left));
    }
    .selfie-header { min-height: 77px; }
    .brand-logo { width: 46px; height: 46px; }
    .brand-type strong { font-size: 18px; }
    .header-status { display: none; }
    .workspace-heading { min-height: 0; padding: 26px 22px; }
    .workspace-heading h1 { font-size: 25px; }
    .heading-seal { display: none; }
    .progress-step { display: block; padding: 11px 8px; text-align: center; }
    .progress-number { margin: 0 auto 5px; width: 27px; height: 27px; }
    .progress-step small { display: none; }
    .progress-step strong { font-size: 11px; }
    .workspace-main { padding: 25px 20px 30px; }
    .invoice-row { display: block; }
    .invoice-row .btn, .invoice-row .validated-label { margin-top: 14px; width: 100%; }
    .field input { min-height: 48px; font-size: 16px; }
    .card-field { max-width: none; }
    .verification-stage { margin-top: 28px; padding-top: 25px; }
    .photo-heading { display: block; }
    .photo-heading span { display: block; margin-top: 2px; }
    .photo-tools, .photo-tools .btn { width: 100%; }
    .camera-panel, .crop-panel { width: 100%; padding: 12px; }
    .camera-panel { position: relative; overflow: hidden; }
    .camera-panel video { width: 100%; height: min(58dvh, 430px); max-height: min(58vh, 430px); aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: 0; }
    .camera-panel .btn { position: absolute; z-index: 2; right: 24px; bottom: 24px; left: 24px; width: auto; min-height: 48px; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); }
    .crop-frame { width: min(100%, 360px); }
    .submit-button { width: 100%; }
    .submit-row { align-items: stretch; }
    .submit-row span { width: 100%; text-align: center; }
    .crop-controls { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
    .crop-controls .btn { grid-column: 1 / -1; width: 100%; min-height: 48px; }
    .btn { min-height: 48px; }
    .selfie-messages li { overflow-wrap: anywhere; }
    .message-popup { top: max(12px, env(safe-area-inset-top)); width: calc(100% - 24px); }
    .selfie-footer span:last-child { display: none; }

    .is-identity .selfie-header { min-height: 58px; }
    .is-identity .workspace-heading, .is-identity .progress-track, .is-identity .invoice-stage { display: none; }
    .is-identity .workspace-main { padding-top: 14px; }
    .is-identity .verification-stage { margin-top: 0; padding-top: 0; border-top: 0; }
    .is-identity .verification-stage > .section-intro { margin-bottom: 12px; }
    .is-identity .verification-stage > .section-intro p { display: none; }
    .is-identity .photo-section { margin-top: 14px; padding-top: 12px; }
    .is-identity .photo-tools { margin-top: 8px; margin-bottom: 2px; }

    .expired-shell { width: 100%; padding: 0 max(12px, env(safe-area-inset-right)) 18px max(12px, env(safe-area-inset-left)); }
    .expired-header { min-height: 76px; }
    .expired-card { display: block; min-height: 0; }
    .expired-visual { min-height: 170px; padding: 26px; gap: 15px; }
    .expired-clock { width: 82px; height: 82px; box-shadow: 0 0 0 9px rgba(255, 255, 255, .08); }
    .expired-clock::before { height: 24px; }
    .expired-clock::after { height: 18px; }
    .expired-content { padding: 30px 24px 34px; }
    .expired-content h1 { margin-top: 6px; font-size: 25px; }
    .expired-note { margin: 22px 0; }
    .expired-action { width: 100%; min-height: 50px; }
    .expired-footer { padding-left: 2px; padding-right: 2px; }
    .verification-progress { padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom)); }
    .verification-progress-card { padding: 32px 22px 28px; }
    .verification-progress-card h2 { font-size: 20px; }
    .verification-success-overlay { place-items: start center; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
    .verification-success-dialog { width: 100%; padding: 24px 18px 20px; }
    .success-dialog-heading { align-items: flex-start; }
    .success-identity { align-items: center; padding: 14px; }
    .success-photo { width: 78px; height: 94px; }
    .success-name strong { font-size: 17px; }
    .success-details { grid-template-columns: minmax(0, 1fr); }
    .success-details .detail-wide { grid-column: auto; }
    .success-details > div:nth-child(even) { border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .verification-spinner { animation-duration: 1.6s; }
    .verification-progress-line span { animation-duration: 2.4s; }
}

@media (max-width: 380px) {
    .selfie-shell { padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
    .selfie-header { min-height: 68px; }
    .brand-logo { width: 40px; height: 40px; }
    .workspace-heading { padding: 22px 17px; }
    .workspace-heading h1 { font-size: 22px; }
    .workspace-main { padding: 22px 16px 26px; }
    .progress-step { padding-left: 4px; padding-right: 4px; }
    .progress-step strong { font-size: 10px; }
    .camera-panel, .crop-panel { padding: 9px; }
}
