body.pob-checkin-page {
    --pob-primary: #3b5561;
    --pob-primary-active: #2c424c;
    --pob-heading: #2f4550;
    --pob-label: #3d5a66;
    --pob-text: #1d2b35;
    --pob-muted: #55636d;
    --pob-subtle: #66727a;
    --pob-placeholder: #737e86;
    --pob-page: #eef1f3;
    --pob-surface: #f7f9fa;
    --pob-border: #dfe4e7;
    --pob-input-border: #c3ccd2;
    --pob-selected: #edf2f4;
    --pob-progress-now: #86a0ac;
    --pob-progress-empty: #d5dadd;
    --pob-required: #c43b3b;
    --pob-ok-bg: #dcf3e3;
    --pob-ok-fg: #1e6b3a;
    --pob-muted-bg: #eceff1;
    --pob-muted-fg: #4f5d66;
    --pob-warn-bg: #fdf0e3;
    --pob-warn-fg: #8a4510;
    --pob-error-bg: #fdecea;
    --pob-error-border: #d9534f;
    --pob-error-fg: #8a1f1b;
    --pob-focus: 0 0 0 4px rgba(59, 85, 97, 0.22);
    --pob-gutter: clamp(12px, 3.5vw, 32px);
    --pob-width: 800px;
    margin: 0;
    background: var(--pob-page);
    color: var(--pob-text);
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

body.pob-checkin-page *,
body.pob-checkin-page *::before,
body.pob-checkin-page *::after {
    box-sizing: border-box;
}

body.pob-checkin-page .pob-app {
    --pob-scale: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    font-size: calc(clamp(16px, 13px + 0.9vw, 20px) * var(--pob-scale));
    line-height: 1.4;
}

body.pob-checkin-page .pob-app[data-text-size="1"] {
    --pob-scale: 1.12;
}

body.pob-checkin-page .pob-app[data-text-size="2"] {
    --pob-scale: 1.24;
}

body.pob-checkin-page .pob-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

body.pob-checkin-page .pob-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px var(--pob-gutter);
    padding-top: max(10px, env(safe-area-inset-top));
    background: #fff;
    border-bottom: 1px solid var(--pob-border);
}

body.pob-checkin-page .pob-bar-title {
    font-size: clamp(15px, 12px + 0.9vw, 22px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pob-heading);
}

body.pob-checkin-page .pob-bar-tools {
    display: flex;
    gap: 4px;
}

body.pob-checkin-page .pob-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 72px;
    min-height: 60px;
    padding: 6px 10px;
    border: none;
    border-radius: 12px;
    background: none;
    color: var(--pob-heading);
    font: 500 15px/1.1 'Inter', Helvetica, Arial, sans-serif;
    cursor: pointer;
}

body.pob-checkin-page .pob-tool:active {
    background: var(--pob-page);
}

body.pob-checkin-page .pob-tool-glyph {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

body.pob-checkin-page .pob-tool-glyph-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--pob-heading);
    color: #fff;
    font-size: 17px;
}

body.pob-checkin-page .pob-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 16px;
    padding: 6px var(--pob-gutter);
    background: var(--pob-surface);
    border-bottom: 1px solid var(--pob-border);
    font-size: 14px;
}

body.pob-checkin-page .pob-strip-patient {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    margin: 0;
}

body.pob-checkin-page .pob-strip-name {
    overflow: hidden;
    color: var(--pob-heading);
    font-size: 16px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.pob-checkin-page .pob-strip-date {
    color: var(--pob-muted);
    font-weight: 600;
    white-space: nowrap;
}

body.pob-checkin-page .pob-preview-strip,
body.pob-checkin-page .pob-save-strip {
    margin: 0;
    padding: 2px 10px;
    border-radius: 999px;
    color: var(--pob-muted);
    font-weight: 600;
}

body.pob-checkin-page .pob-preview-strip {
    background: var(--pob-warn-bg);
    color: var(--pob-warn-fg);
}

body.pob-checkin-page .pob-save-strip.is-saved {
    color: var(--pob-ok-fg);
}

body.pob-checkin-page .pob-save-strip.is-error {
    background: var(--pob-warn-bg);
    color: var(--pob-warn-fg);
}

body.pob-checkin-page .pob-progress {
    width: 100%;
    max-width: calc(var(--pob-width) + 2 * var(--pob-gutter));
    margin: 0 auto;
    padding: 16px var(--pob-gutter) 0;
}

body.pob-checkin-page .pob-progress[hidden] {
    display: none;
}

body.pob-checkin-page .pob-progress-bars {
    display: flex;
    gap: 8px;
}

body.pob-checkin-page .pob-progress-bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--pob-progress-empty);
}

body.pob-checkin-page .pob-progress-bar.is-done {
    background: var(--pob-primary);
}

body.pob-checkin-page .pob-progress-bar.is-now {
    background: var(--pob-progress-now);
}

body.pob-checkin-page .pob-progress-label {
    margin: 8px 0 0;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--pob-muted);
}

body.pob-checkin-page .pob-main {
    flex: 1;
    width: 100%;
    max-width: calc(var(--pob-width) + 2 * var(--pob-gutter));
    margin: 0 auto;
    padding: 16px var(--pob-gutter) 24px;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
}

body.pob-checkin-page .pob-card[data-screen="welcome"],
body.pob-checkin-page .pob-card[data-screen="done"],
body.pob-checkin-page .pob-card[data-screen="locked"],
body.pob-checkin-page .pob-card[data-screen="handback"],
body.pob-checkin-page .pob-card[data-screen="code"],
body.pob-checkin-page .pob-card[data-screen="notice"] {
    width: 100%;
    max-width: 34em;
    margin-inline: auto;
}

@media (min-width: 600px) and (min-height: 640px) {
    body.pob-checkin-page .pob-card[data-screen="welcome"],
    body.pob-checkin-page .pob-card[data-screen="done"],
    body.pob-checkin-page .pob-card[data-screen="locked"],
    body.pob-checkin-page .pob-card[data-screen="handback"],
    body.pob-checkin-page .pob-card[data-screen="code"],
    body.pob-checkin-page .pob-card[data-screen="notice"] {
        margin-block: auto;
    }
}

body.pob-checkin-page .pob-card {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    padding: clamp(20px, 5vw, 40px);
    background: #fff;
    border: 1px solid var(--pob-border);
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(20, 40, 50, 0.05);
    outline: none;
}

body.pob-checkin-page .pob-card.is-enter-fwd {
    animation: pob-enter-fwd 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.pob-checkin-page .pob-card.is-enter-back {
    animation: pob-enter-back 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pob-enter-fwd {
    from { opacity: 0; transform: translateX(48px); }
    to { opacity: 1; transform: none; }
}

@keyframes pob-enter-back {
    from { opacity: 0; transform: translateX(-48px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    body.pob-checkin-page .pob-card.is-enter-fwd,
    body.pob-checkin-page .pob-card.is-enter-back {
        animation: none;
    }
}

body.pob-checkin-page .pob-head {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

body.pob-checkin-page .pob-title {
    margin: 0;
    font-size: clamp(1.35em, 1.1em + 1vw, 1.6em);
    line-height: 1.25;
    font-weight: 700;
    color: var(--pob-heading);
    outline: none;
    text-wrap: pretty;
}

body.pob-checkin-page .pob-sub {
    margin: 0;
    font-size: 1.15em;
    line-height: 1.45;
    color: var(--pob-muted);
    text-wrap: pretty;
}

body.pob-checkin-page .pob-welcome,
body.pob-checkin-page .pob-done {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    padding: 0.5em 0;
}

body.pob-checkin-page .pob-welcome-part {
    display: contents;
}

body.pob-checkin-page .pob-done {
    align-items: center;
    text-align: center;
}

/* Tablet with little height (10" iPad): tighter, so the start button needs no scrolling. */
@media (min-width: 600px) and (max-height: 1100px) {
    body.pob-checkin-page .pob-card[data-screen="welcome"] {
        padding-block: 28px;
    }

    body.pob-checkin-page .pob-card[data-screen="welcome"] .pob-welcome {
        gap: 1em;
    }
}

/* Landscape tablet: greeting on the left, what to bring and the start button on the right. */
@media (min-width: 900px) and (max-height: 820px) {
    body.pob-checkin-page .pob-main {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    body.pob-checkin-page .pob-card {
        padding-block: 24px;
    }

    body.pob-checkin-page .pob-done {
        gap: 0.9em;
    }

    body.pob-checkin-page .pob-main:has(.pob-card[data-screen="welcome"]) {
        max-width: 1040px;
    }

    body.pob-checkin-page .pob-card[data-screen="welcome"] {
        max-width: none;
    }

    body.pob-checkin-page .pob-card[data-screen="welcome"] .pob-hero {
        font-size: 2.6em;
    }

    body.pob-checkin-page .pob-card[data-screen="welcome"] .pob-welcome {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        align-items: center;
        column-gap: 2.5em;
    }

    body.pob-checkin-page .pob-welcome-part {
        display: flex;
        flex-direction: column;
        gap: 0.8em;
    }

    body.pob-checkin-page .pob-card[data-screen="welcome"] .pob-ready {
        gap: 0.5em;
        padding: 0.8em 1em;
    }

    body.pob-checkin-page .pob-card[data-screen="welcome"] .pob-ready-list {
        gap: 0.45em;
    }

    body.pob-checkin-page .pob-card[data-screen="welcome"] .pob-start {
        min-height: 2.8em;
        margin-top: 0;
    }
}

body.pob-checkin-page .pob-done .pob-start {
    align-self: stretch;
}

body.pob-checkin-page .pob-glyph-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    width: 3.4em;
    height: 3.4em;
    border-radius: 16px;
    background: var(--pob-selected);
    color: var(--pob-primary);
    font-size: 1em;
}

body.pob-checkin-page .pob-glyph-badge .pob-glyph {
    width: 1.8em;
    height: 1.8em;
}

body.pob-checkin-page .pob-glyph {
    flex: none;
    width: 1.3em;
    height: 1.3em;
    background: currentColor;
    -webkit-mask: var(--pob-icon) center / contain no-repeat;
    mask: var(--pob-icon) center / contain no-repeat;
}

body.pob-checkin-page .pob-glyph.is-clipboard {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 3h6v3H9z'/%3E%3Cpath d='M9 13.5l2 2 4-4'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-shield {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v6c0 4.4-3 7.6-7 9-4-1.4-7-4.6-7-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-card {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2'/%3E%3Cpath d='M2.5 10h19M6.5 15h4'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-id {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10.5' r='2'/%3E%3Cpath d='M5.5 15.5c.6-1.5 1.7-2.3 3-2.3s2.4.8 3 2.3M14 10h4M14 14h4'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-clock {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-lock {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-alert {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-user {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-globe {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.7 3.8 5.7 3.8 9s-1.3 6.3-3.8 9c-2.5-2.7-3.8-5.7-3.8-9S9.5 5.7 12 3z'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-people {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c1-3.5 3.5-5.5 6.5-5.5s5.5 2 6.5 5.5'/%3E%3Cpath d='M16 4.6a3.5 3.5 0 0 1 0 6.8M18 14.8c1.8.8 3 2.5 3.5 5.2'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-phone {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-home {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-heart {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-message {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3Cpath d='M8 9.5h8M8 12.5h5'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-check {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-exclaim {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v9M12 19v.01'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-x {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-camera {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h3.5l2-3h7l2 3H21v11H3z'/%3E%3Ccircle cx='12' cy='13' r='3.6'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-upload {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='M21 16l-5-5-9 9'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-pencil {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-glyph.is-plus {
    --pob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

body.pob-checkin-page .pob-head-row {
    display: flex;
    align-items: center;
    gap: 0.75em;
}

body.pob-checkin-page .pob-head-row .pob-glyph-badge {
    align-self: center;
    width: 2.6em;
    height: 2.6em;
    border-radius: 12px;
}

body.pob-checkin-page .pob-head-row .pob-glyph-badge .pob-glyph {
    width: 1.55em;
    height: 1.55em;
}

body.pob-checkin-page .pob-ready {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    padding: 1.1em 1.2em;
    border: 1px solid var(--pob-border);
    border-radius: 14px;
    background: var(--pob-surface);
}

body.pob-checkin-page .pob-ready-list {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.pob-checkin-page .pob-ready-item {
    display: flex;
    align-items: center;
    gap: 0.75em;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--pob-text);
}

body.pob-checkin-page .pob-ready-item .pob-glyph {
    width: 1.4em;
    height: 1.4em;
    color: var(--pob-label);
}

body.pob-checkin-page .pob-privacy {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5em;
    margin: 0;
    font-size: 1em;
    line-height: 1.45;
    color: var(--pob-muted);
    text-align: left;
}

body.pob-checkin-page .pob-privacy .pob-glyph {
    margin-top: 0.1em;
}

body.pob-checkin-page .pob-hero {
    margin: 0;
    font-size: clamp(2em, 1.3em + 3vw, 3em);
    line-height: 1.1;
    font-weight: 700;
    color: var(--pob-text);
    outline: none;
    text-wrap: balance;
}

body.pob-checkin-page .pob-lead {
    margin: 0;
    max-width: 32em;
    font-size: 1.35em;
    line-height: 1.45;
    color: #3f4e58;
    text-wrap: pretty;
}

body.pob-checkin-page .pob-note {
    margin: 0;
    font-size: 1em;
    line-height: 1.5;
    color: var(--pob-muted);
}

body.pob-checkin-page .pob-start {
    min-height: 3.2em;
    margin-top: 0.4em;
    padding: 0 1em;
    border: none;
    border-radius: 14px;
    background: var(--pob-primary);
    color: #fff;
    font: inherit;
    font-size: 1.6em;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(59, 85, 97, 0.28);
    cursor: pointer;
}

body.pob-checkin-page .pob-start:active {
    background: var(--pob-primary-active);
}

body.pob-checkin-page .pob-field {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    min-width: 0;
}

body.pob-checkin-page .pob-pair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12em), 1fr));
    gap: 1.5em 1em;
}

body.pob-checkin-page .pob-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 0.8em;
}

body.pob-checkin-page .pob-label {
    padding: 0;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--pob-label);
}

body.pob-checkin-page .pob-question {
    padding: 0;
    margin-bottom: 0.2em;
    font-size: 1.3em;
    line-height: 1.3;
    font-weight: 600;
    color: var(--pob-text);
    text-wrap: pretty;
}

body.pob-checkin-page .pob-sublabel {
    font-size: 1em;
    font-weight: 600;
    color: var(--pob-label);
}

body.pob-checkin-page .pob-hint {
    margin: -0.2em 0 0;
    font-size: 1em;
    color: var(--pob-muted);
}

body.pob-checkin-page .pob-required {
    color: var(--pob-required);
}

body.pob-checkin-page .pob-optional {
    font-weight: 400;
    color: var(--pob-muted);
}

body.pob-checkin-page .pob-input {
    display: block;
    width: 100%;
    min-height: 2.9em;
    padding: 0 0.8em;
    border: 2px solid var(--pob-input-border);
    border-radius: 10px;
    background: #fff;
    color: var(--pob-text);
    font: inherit;
    font-size: 1.4em;
    outline: none;
    appearance: none;
}

body.pob-checkin-page textarea.pob-input {
    padding: 0.6em 0.8em;
    line-height: 1.4;
    resize: vertical;
}

body.pob-checkin-page .pob-input::placeholder {
    color: var(--pob-placeholder);
}

body.pob-checkin-page .pob-input:focus {
    border-color: var(--pob-primary);
    box-shadow: var(--pob-focus);
}

body.pob-checkin-page .pob-input[aria-invalid="true"] {
    border-color: var(--pob-error-border);
}

body.pob-checkin-page .pob-select {
    padding-right: 2em;
    background-image: linear-gradient(45deg, transparent 50%, var(--pob-heading) 50%), linear-gradient(135deg, var(--pob-heading) 50%, transparent 50%);
    background-position: calc(100% - 1.1em) 50%, calc(100% - 0.75em) 50%;
    background-size: 0.35em 0.35em;
    background-repeat: no-repeat;
}

body.pob-checkin-page .pob-dob {
    display: grid;
    max-width: 24em;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 0.75em;
}

body.pob-checkin-page .pob-input-date {
    max-width: 12em;
    line-height: 2.9em;
    text-align: left;
}

body.pob-checkin-page .pob-input-date::-webkit-date-and-time-value {
    text-align: left;
}

body.pob-checkin-page .pob-dob-cell {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    min-width: 0;
}

body.pob-checkin-page .pob-input-dob {
    padding: 0 0.2em;
    font-size: 1.75em;
    font-weight: 700;
    text-align: center;
}

body.pob-checkin-page .pob-link {
    align-self: flex-start;
    min-height: 2.6em;
    padding: 0;
    border: none;
    background: none;
    color: var(--pob-primary);
    font: inherit;
    font-size: 1.15em;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

body.pob-checkin-page .pob-choice {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

body.pob-checkin-page .pob-tiles {
    --pob-cols: 2;
    --pob-tile-min: 10em;
    --pob-tile-gap: 0.7em;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(max(min(100%, var(--pob-tile-min)), calc((100% - (var(--pob-cols) - 1) * var(--pob-tile-gap)) / var(--pob-cols))), 1fr));
    gap: var(--pob-tile-gap);
}

body.pob-checkin-page .pob-tiles[data-cols="3"] {
    --pob-cols: 3;
    --pob-tile-min: 8.5em;
}

body.pob-checkin-page .pob-tiles[data-cols="1"] {
    --pob-cols: 1;
}

body.pob-checkin-page .pob-tiles.is-wide {
    --pob-tile-min: 11em;
}

body.pob-checkin-page .pob-tiles.is-short {
    --pob-tile-min: 5em;
}

body.pob-checkin-page .pob-tile {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

body.pob-checkin-page .pob-tile-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

body.pob-checkin-page .pob-tile-face {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
    height: 100%;
    min-height: 3.4em;
    padding: 0.55em 0.8em;
    border: 2px solid var(--pob-input-border);
    border-radius: 12px;
    background: #fff;
    color: var(--pob-text);
    font-size: 1.25em;
    font-weight: 500;
    line-height: 1.25;
}

body.pob-checkin-page .pob-tile-text {
    min-width: 0;
    overflow-wrap: break-word;
}

body.pob-checkin-page .pob-tile-mark {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 1.35em;
    height: 1.35em;
    border: 2px solid var(--pob-input-border);
    border-radius: 50%;
    background: #fff;
    color: #fff;
    font-size: 1em;
    line-height: 1;
}

body.pob-checkin-page .pob-tile-face.is-compact {
    justify-content: center;
    text-align: center;
}

body.pob-checkin-page .pob-tile-input:checked + .pob-tile-face.is-compact .pob-tile-text::before {
    content: "\2713\00a0";
    font-weight: 700;
}

body.pob-checkin-page .pob-tile-face.is-multi .pob-tile-mark {
    border-radius: 6px;
}

body.pob-checkin-page .pob-tile-input:checked + .pob-tile-face {
    border-color: var(--pob-primary);
    background: var(--pob-selected);
    font-weight: 600;
}

body.pob-checkin-page .pob-tile-input:checked + .pob-tile-face .pob-tile-mark {
    border-color: var(--pob-primary);
    background: var(--pob-primary);
}

body.pob-checkin-page .pob-tile-input:checked + .pob-tile-face .pob-tile-mark::after {
    content: "\2713";
    font-size: 0.8em;
    font-weight: 700;
}

body.pob-checkin-page .pob-tile-input:focus-visible + .pob-tile-face {
    box-shadow: var(--pob-focus);
    border-color: var(--pob-primary);
}

body.pob-checkin-page .pob-choice.is-invalid .pob-tile-face {
    border-color: var(--pob-error-border);
}

body.pob-checkin-page .pob-q {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
    padding: clamp(14px, 3vw, 22px);
    border: 1px solid var(--pob-border);
    border-radius: 14px;
    background: var(--pob-surface);
}

body.pob-checkin-page .pob-card[data-screen="questions"] {
    gap: 1em;
}

body.pob-checkin-page .pob-card[data-screen="questions"] .pob-head {
    margin-bottom: 0.5em;
}

body.pob-checkin-page .pob-warn-note {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 0;
    padding: 0.7em 1em;
    border-radius: 12px;
    background: var(--pob-warn-bg);
    color: var(--pob-warn-fg);
    font-size: 1.1em;
    font-weight: 600;
}

body.pob-checkin-page .pob-panel-title,
body.pob-checkin-page .pob-photo-label {
    margin: 0;
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pob-heading);
}

body.pob-checkin-page .pob-pill {
    flex: none;
    padding: 0.25em 0.8em;
    border-radius: 999px;
    font-size: 0.9em;
    font-weight: 700;
}

body.pob-checkin-page .pob-pill.is-ok {
    background: var(--pob-ok-bg);
    color: var(--pob-ok-fg);
}

body.pob-checkin-page .pob-pill.is-muted {
    background: var(--pob-muted-bg);
    color: var(--pob-muted-fg);
    font-weight: 600;
}

body.pob-checkin-page .pob-pill.is-warn {
    background: var(--pob-warn-bg);
    color: var(--pob-warn-fg);
}

body.pob-checkin-page .pob-photo-error {
    margin: 0;
    color: var(--pob-error-fg);
    font-weight: 600;
}

body.pob-checkin-page .pob-cardread-note {
    display: flex;
    align-items: flex-start;
    gap: 0.4em;
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    color: var(--pob-ok-fg);
}

body.pob-checkin-page .pob-cardread-note .pob-glyph {
    margin-top: 0.1em;
}

body.pob-checkin-page .pob-cardread-status {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 0;
    padding: 0.7em 1em;
    border-radius: 12px;
    font-size: 1.05em;
    font-weight: 600;
    background: var(--pob-muted-bg);
    color: var(--pob-muted-fg);
}

body.pob-checkin-page .pob-cardread-status.is-filled {
    background: var(--pob-ok-bg);
    color: var(--pob-ok-fg);
}

body.pob-checkin-page .pob-cardread-status.is-unread {
    background: var(--pob-warn-bg);
    color: var(--pob-warn-fg);
}

body.pob-checkin-page .pob-card[data-screen="ssn"] .pob-input {
    max-width: 12em;
}

body.pob-checkin-page .pob-panel {
    display: flex;
    flex-direction: column;
    gap: 1.1em;
    padding: clamp(14px, 3vw, 24px);
    background: var(--pob-surface);
    border: 1px solid var(--pob-border);
    border-radius: 14px;
}

body.pob-checkin-page .pob-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15em), 1fr));
    gap: 0.9em;
}

body.pob-checkin-page .pob-photo {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    gap: 0.7em;
    padding: 1em;
    border: 1px solid var(--pob-border);
    border-radius: 14px;
    background: #fff;
}

body.pob-checkin-page .pob-photo.has-photo {
    border-color: var(--pob-primary);
}

body.pob-checkin-page .pob-photo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
}

body.pob-checkin-page .pob-photo-preview {
    display: block;
    width: 100%;
    height: 8em;
    object-fit: contain;
    border-radius: 10px;
    background: var(--pob-text);
}

body.pob-checkin-page .pob-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
}

body.pob-checkin-page .pob-photo-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: max-content;
    gap: 0.5em;
    min-height: 3em;
    padding: 0 1em;
    border: 2px solid var(--pob-primary);
    border-radius: 12px;
    background: #fff;
    color: var(--pob-primary);
    font-size: 1.1em;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
}

@container (max-width: 15em) {
    body.pob-checkin-page .pob-photo-btn {
        flex-basis: 100%;
        min-width: 0;
        padding: 0.4em 0.8em;
        white-space: normal;
    }
}

body.pob-checkin-page .pob-photo-btn.is-primary {
    background: var(--pob-primary);
    color: #fff;
}

body.pob-checkin-page .pob-photo-btn:focus-within {
    box-shadow: var(--pob-focus);
}

body.pob-checkin-page .pob-photo-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

body.pob-checkin-page .pob-doc {
    padding: 1em 1.1em;
    border: 1px solid var(--pob-border);
    border-radius: 12px;
    background: var(--pob-surface);
    font-size: 1.05em;
    line-height: 1.55;
    color: #2f3e48;
}

body.pob-checkin-page .pob-doc p {
    margin: 0 0 0.7em;
}

body.pob-checkin-page .pob-doc-strong {
    font-weight: 700;
}

body.pob-checkin-page .pob-doc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.4em;
}

body.pob-checkin-page .pob-doc-links .pob-link {
    font-size: 1em;
}

body.pob-checkin-page .pob-sig-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6em;
}

body.pob-checkin-page .pob-sig {
    position: relative;
    height: clamp(170px, 26vw, 220px);
    border: 2px dashed #a9b5bc;
    border-radius: 12px;
    background: #fff;
}

body.pob-checkin-page .pob-sig-canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: crosshair;
}

body.pob-checkin-page .pob-sig-line {
    position: absolute;
    left: 1.2em;
    right: 1.2em;
    bottom: 2.4em;
    border-top: 2px solid var(--pob-border);
    pointer-events: none;
}

body.pob-checkin-page .pob-sig-caption {
    position: absolute;
    left: 1.2em;
    bottom: 0.6em;
    font-size: 0.95em;
    color: var(--pob-subtle);
    pointer-events: none;
}

body.pob-checkin-page .pob-review-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16em), 1fr));
    gap: 0.9em;
}

body.pob-checkin-page .pob-review-group {
    display: flex;
    flex-direction: column;
    gap: 0.9em;
    min-width: 0;
    padding: 1em 1.1em 1.15em;
    border: 1px solid var(--pob-border);
    border-radius: 14px;
    background: var(--pob-surface);
}

body.pob-checkin-page .pob-review-group.is-wide {
    grid-column: 1 / -1;
}

body.pob-checkin-page .pob-review-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6em 0.8em;
}

body.pob-checkin-page .pob-review-title {
    flex: 1 1 6em;
    min-width: 0;
    margin: 0;
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pob-heading);
}

body.pob-checkin-page .pob-edit-btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.4em;
    min-height: 2.75em;
    padding: 0 0.9em;
    border: 2px solid var(--pob-input-border);
    border-radius: 10px;
    background: #fff;
    color: var(--pob-primary);
    font: inherit;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
}

body.pob-checkin-page .pob-edit-btn:active {
    background: var(--pob-selected);
}

body.pob-checkin-page .pob-edit-btn:focus-visible {
    outline: none;
    border-color: var(--pob-primary);
    box-shadow: var(--pob-focus);
}

body.pob-checkin-page .pob-edit-btn .pob-glyph {
    width: 1.1em;
    height: 1.1em;
}

body.pob-checkin-page .pob-review-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85em;
    margin: 0;
}

body.pob-checkin-page .pob-review-item {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    min-width: 0;
}

body.pob-checkin-page .pob-review-label {
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pob-subtle);
}

body.pob-checkin-page .pob-review-grid.is-plain .pob-review-label {
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--pob-label);
}

body.pob-checkin-page .pob-review-dd {
    margin: 0;
}

body.pob-checkin-page .pob-review-value {
    display: flex;
    flex-direction: column;
    gap: 0.1em;
    font-size: 1.2em;
    line-height: 1.35;
    color: var(--pob-text);
    overflow-wrap: anywhere;
}

body.pob-checkin-page .pob-review-value.is-empty {
    color: var(--pob-muted);
}

body.pob-checkin-page .pob-review-sub {
    font-size: 0.85em;
    color: var(--pob-muted);
}

body.pob-checkin-page .pob-review-empty {
    margin: 0;
    font-size: 1.1em;
    color: var(--pob-muted);
}

body.pob-checkin-page .pob-done-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background: var(--pob-primary);
    color: #fff;
    font-size: 3.4em;
    font-weight: 700;
}

body.pob-checkin-page .pob-done-icon.is-stop {
    background: var(--pob-warn-fg);
}

body.pob-checkin-page .pob-done-icon .pob-glyph {
    width: 1.1em;
    height: 1.1em;
}

body.pob-checkin-page .pob-dock {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: #fff;
    border-top: 1px solid var(--pob-border);
    box-shadow: 0 -4px 14px rgba(20, 40, 50, 0.06);
}

body.pob-checkin-page .pob-dock[hidden] {
    display: none;
}

body.pob-checkin-page .pob-error {
    width: calc(100% - 2 * var(--pob-gutter));
    max-width: var(--pob-width);
    margin: 12px auto 0;
    padding: 0.7em 1em;
    border: 2px solid var(--pob-error-border);
    border-radius: 14px;
    background: var(--pob-error-bg);
    color: var(--pob-error-fg);
    font-size: 1.15em;
    font-weight: 700;
    line-height: 1.35;
}

body.pob-checkin-page .pob-error[hidden] {
    display: none;
}

body.pob-checkin-page .pob-footer {
    display: flex;
    align-items: center;
    gap: 0.8em;
    width: 100%;
    max-width: calc(var(--pob-width) + 2 * var(--pob-gutter));
    margin: 0 auto;
    padding: 12px var(--pob-gutter);
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}

body.pob-checkin-page .pob-back {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 4.4em;
    min-height: 3.6em;
    padding: 0 0.5em;
    border: none;
    border-radius: 12px;
    background: none;
    color: var(--pob-heading);
    font: inherit;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
}

body.pob-checkin-page .pob-back[hidden] {
    display: none;
}

body.pob-checkin-page .pob-back:active {
    background: var(--pob-page);
}

body.pob-checkin-page .pob-back svg {
    width: 1.6em;
    height: 1.6em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.pob-checkin-page .pob-next {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 2.9em;
    padding: 0 1em;
    border: none;
    border-radius: 14px;
    background: var(--pob-primary);
    color: #fff;
    font: inherit;
    font-size: 1.35em;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(59, 85, 97, 0.28);
    cursor: pointer;
}

body.pob-checkin-page .pob-next:active {
    background: var(--pob-primary-active);
}

body.pob-checkin-page .pob-next:disabled {
    background: #8fa3ad;
    box-shadow: none;
    cursor: progress;
}

body.pob-checkin-page .pob-next svg {
    flex: none;
    width: 1.1em;
    height: 1.1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.pob-checkin-page .pob-tool:focus-visible,
body.pob-checkin-page .pob-back:focus-visible,
body.pob-checkin-page .pob-next:focus-visible,
body.pob-checkin-page .pob-start:focus-visible,
body.pob-checkin-page .pob-link:focus-visible,
body.pob-checkin-page .pob-dialog-btn:focus-visible {
    outline: 3px solid var(--pob-primary);
    outline-offset: 3px;
}

body.pob-checkin-page .pob-dialog {
    width: min(92vw, 34em);
    padding: clamp(22px, 5vw, 40px);
    border: none;
    border-radius: 24px;
    color: var(--pob-text);
    font-size: inherit;
}

body.pob-checkin-page .pob-dialog[open] {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

body.pob-checkin-page .pob-dialog::backdrop {
    background: rgba(20, 32, 40, 0.55);
}

body.pob-checkin-page .pob-dialog-doc {
    width: min(94vw, 46em);
    height: min(88vh, 50em);
}

body.pob-checkin-page .pob-dialog-title {
    margin: 0;
    font-size: 1.8em;
    line-height: 1.2;
    font-weight: 700;
}

body.pob-checkin-page .pob-dialog-text {
    margin: 0;
    font-size: 1.3em;
    line-height: 1.45;
    color: #3f4e58;
}

body.pob-checkin-page .pob-dialog-btn.is-secondary {
    border: 2px solid var(--pob-input-border);
    background: #fff;
    color: var(--pob-primary);
}

body.pob-checkin-page .pob-not-me {
    align-self: center;
}

body.pob-checkin-page .pob-code-field {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
}

body.pob-checkin-page .pob-code-field legend {
    margin-bottom: 0.7em;
    padding: 0;
}

body.pob-checkin-page .pob-code-boxes {
    display: grid;
    grid-template-columns: repeat(4, 3.6em);
    gap: 0.7em;
}

body.pob-checkin-page .pob-code-box {
    min-height: 0;
    height: 1.8em;
    padding: 0;
    font-size: 2em;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

body.pob-checkin-page .pob-code-notice {
    margin: 0;
    padding: 0.7em 1em;
    border-radius: 12px;
    background: var(--pob-muted-bg);
    color: var(--pob-muted-fg);
    font-size: 1.1em;
    font-weight: 600;
}

body.pob-checkin-page .pob-code-error {
    margin: 0;
    padding: 0.8em 1em;
    border: 1px solid var(--pob-error-border);
    border-radius: 12px;
    background: var(--pob-error-bg);
    color: var(--pob-error-fg);
    font-size: 1.15em;
    font-weight: 600;
}

body.pob-checkin-page .pob-doc-frame {
    flex: 1;
    width: 100%;
    border: 1px solid var(--pob-border);
    border-radius: 12px;
}

body.pob-checkin-page .pob-dialog-btn {
    min-height: 2.9em;
    border: none;
    border-radius: 14px;
    background: var(--pob-primary);
    color: #fff;
    font: inherit;
    font-size: 1.35em;
    font-weight: 700;
    cursor: pointer;
}

body.pob-checkin-page .pob-dialog-camera {
    width: min(96vw, 46em);
    max-height: 96vh;
    overflow-y: auto;
}

body.pob-checkin-page .pob-camera-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    max-height: 60vh;
    overflow: hidden;
    border-radius: 16px;
    background: #10202a;
}

body.pob-checkin-page .pob-camera-video,
body.pob-checkin-page .pob-camera-shot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.pob-checkin-page .pob-camera-guide {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 80%;
    max-height: 85%;
    aspect-ratio: 1.586;
    transform: translate(-50%, -50%);
    border: 4px dashed rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    box-shadow: 0 0 0 100vmax rgba(16, 32, 42, 0.35);
    pointer-events: none;
}

body.pob-checkin-page .pob-camera-stage[hidden],
body.pob-checkin-page .pob-camera-video[hidden],
body.pob-checkin-page .pob-camera-shot[hidden],
body.pob-checkin-page .pob-camera-guide[hidden],
body.pob-checkin-page .pob-camera-btn[hidden] {
    display: none;
}

body.pob-checkin-page .pob-camera-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7em;
}

body.pob-checkin-page .pob-camera-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: max-content;
    min-height: 3em;
    padding: 0 1em;
    border: 2px solid var(--pob-primary);
    border-radius: 14px;
    white-space: nowrap;
    background: #fff;
    color: var(--pob-primary);
    font: inherit;
    font-size: 1.2em;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
}

body.pob-checkin-page .pob-camera-btn.is-primary {
    background: var(--pob-primary);
    color: #fff;
}

body.pob-checkin-page .pob-camera-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

body.pob-checkin-page .pob-camera-btn:focus-visible,
body.pob-checkin-page .pob-camera-btn:focus-within {
    outline: 3px solid var(--pob-primary);
    outline-offset: 3px;
}

@media (max-height: 520px) and (orientation: landscape) {
    body.pob-checkin-page .pob-bar {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    body.pob-checkin-page .pob-tool {
        flex-direction: row;
        gap: 6px;
        min-height: 44px;
    }

    body.pob-checkin-page .pob-strip {
        padding-top: 3px;
        padding-bottom: 3px;
    }

    body.pob-checkin-page .pob-progress {
        padding-top: 8px;
    }

    body.pob-checkin-page .pob-dock {
        position: static;
        box-shadow: none;
    }
}

/* On-screen keyboard open (set from visualViewport): fit header, card and buttons above it. */
body.pob-checkin-page .pob-app.is-keyboard-open {
    min-height: var(--pob-visible-height, 100dvh);
}

body.pob-checkin-page .pob-app.is-keyboard-open .pob-main {
    padding-top: 10px;
    padding-bottom: 10px;
}

body.pob-checkin-page .pob-app.is-keyboard-open .pob-card {
    margin-block: 0;
    padding-block: 18px;
}

body.pob-checkin-page .pob-app.is-keyboard-open .pob-bar {
    padding-top: 4px;
    padding-bottom: 4px;
}

body.pob-checkin-page .pob-app.is-keyboard-open .pob-tool {
    flex-direction: row;
    gap: 6px;
    min-height: 44px;
}

body.pob-checkin-page .pob-app.is-keyboard-open .pob-strip {
    padding-top: 3px;
    padding-bottom: 3px;
}

body.pob-checkin-page .pob-app.is-keyboard-open .pob-progress {
    padding-top: 8px;
}

body.pob-checkin-page .pob-app.is-keyboard-open .pob-dock {
    box-shadow: none;
}

/* Keyboard open on a landscape tablet leaves ~300px: keep only the question and the buttons. */
body.pob-checkin-page .pob-app.is-keyboard-short .pob-bar,
body.pob-checkin-page .pob-app.is-keyboard-short .pob-strip,
body.pob-checkin-page .pob-app.is-keyboard-short .pob-progress,
body.pob-checkin-page .pob-app.is-keyboard-short .pob-glyph-badge {
    display: none;
}

body.pob-checkin-page .pob-app.is-keyboard-short .pob-main {
    padding-top: 6px;
    padding-bottom: 6px;
}

body.pob-checkin-page .pob-app.is-keyboard-short .pob-card {
    gap: 0.9em;
    padding-block: 12px;
}

body.pob-checkin-page .pob-app.is-keyboard-short .pob-hero {
    font-size: 1.7em;
}

body.pob-checkin-page .pob-app.is-keyboard-short .pob-footer {
    padding-top: 6px;
    padding-bottom: 6px;
}
