/* =============================================================================
   X-ray analysis / upload page — templates/ai/diagnosis-upload.html
   Loaded only by that template, which adds body.lmb-upload (also inside the
   private-invitation shell, which has no .site-header and no hero).

   - Header: opaque white on this page at every width (the theme's is 45% white
     and the hero artwork showed through); a compact 72px row on phones.
   - Hero: one light veil over the artwork + dark text at every width; a short,
     content-height version on phones.
   - Purpose selector: centred 2×2 cards on desktop, a bottom sheet on phones;
     both confirm with "Continue".
   - Phones: tap wording instead of drag wording, a shorter X-ray note, and a
     sticky full-width Continue footer that stays inside the form.
   - Upload progress / failure blocks inside the upload cards.

   The upload cards themselves keep their inline styles in the template.
   ========================================================================== */

.lmb-upload {
    --lmb-up-navy: #0a1e3c;
    --lmb-up-slate: #2b3d55;
    --lmb-up-blue: #1d6fb5;
    --lmb-up-cyan: #38bdf8;
}

.lmb-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Phone-only copy (tap wording, short notes) */
.lmb-copy-touch,
.lmb-guidance-note,
.lmb-act-privacy,
.lmb-submit-busy { display: none; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.lmb-upload .site-header,
body.lmb-upload.nav-bg .site-header {
    background-color: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 0 rgba(0, 28, 62, 0.08);
}

/* ── Hero (desktop composition unchanged; contrast only) ───────────────── */
.lmb-up-hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(100deg,
        rgba(247, 250, 253, 0.82) 0%,
        rgba(247, 250, 253, 0.66) 50%,
        rgba(247, 250, 253, 0.42) 100%);
}
/* The template plays the video at 35%; under the veil that left almost nothing. */
.lmb-upload video.lmb-up-hero-media { opacity: 0.6 !important; }
.lmb-upload .lmb-up-hero .metas,
.lmb-upload .lmb-up-hero .metas span {
    color: var(--lmb-up-blue) !important;
    opacity: 1 !important;
}
.lmb-upload .lmb-up-hero .title { color: var(--lmb-up-navy) !important; }
.lmb-upload .lmb-up-hero .lmb-up-hero-lead {
    color: var(--lmb-up-slate) !important;
    opacity: 1 !important;
}

.lmb-up-hero-purpose {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.lmb-purpose-chip {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 6px;
    min-height: 40px;
    max-width: 100%;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid #0e3264;
    background: #0e3264;
    color: #fff;
    font: inherit;
    font-size: 14px;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s, border-color 0.2s;
}
.lmb-purpose-chip strong { font-weight: 600; color: #fff; }
.lmb-purpose-chip-sep { opacity: 0.5; }
.lmb-purpose-chip-action {
    color: #7dd3fc;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.lmb-purpose-chip:hover { background: var(--lmb-up-blue); border-color: var(--lmb-up-blue); }
.lmb-purpose-chip:hover .lmb-purpose-chip-action { color: #fff; }
.lmb-purpose-chip:focus-visible {
    outline: 3px solid var(--lmb-up-cyan);
    outline-offset: 3px;
}

/* ── Purpose selector ───────────────────────────────────────────────────── */
.lmb-intent {
    position: fixed;
    inset: 0;
    z-index: 100001; /* above the chatbot launcher (99999) and its dialog (100000) */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.lmb-intent.is-open { display: flex; }
.lmb-intent-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    touch-action: none;
}
html.lmb-sheet-open,
html.lmb-sheet-open body { overflow: hidden !important; }

.lmb-intent-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(580px, 100%);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 38px 36px 30px;
    background: linear-gradient(135deg, #04101e 0%, #071e3d 100%);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 24px;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08), 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 60px rgba(29, 111, 181, 0.14);
    animation: lmbIntentIn 0.45s cubic-bezier(0.34, 1.2, 0.64, 1) both;
    overflow: hidden;
    outline: none;
}
.lmb-intent-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
}
@keyframes lmbIntentIn { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }

.lmb-intent-glow {
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 500px; max-width: 100%; height: 320px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(ellipse, rgba(29, 111, 181, 0.2) 0%, transparent 65%);
}
.lmb-intent-top-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #1d6fb5 30%, #38bdf8 50%, #1d6fb5 70%, transparent);
}
.lmb-intent-handle { display: none; }

.lmb-intent-close {
    position: absolute;
    top: 16px; right: 16px;
    z-index: 2;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.lmb-intent-close:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.lmb-intent-head,
.lmb-intent-body,
.lmb-intent-foot { position: relative; }
.lmb-intent-head { flex-shrink: 0; padding-right: 40px; }
.lmb-intent-eyebrow {
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--lmb-up-cyan);
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 7px;
    opacity: 0.8;
}
.lmb-intent-eyeline { width: 24px; height: 1px; background: var(--lmb-up-cyan); opacity: 0.5; }
.lmb-intent-title {
    font-size: 24px; font-weight: 500;
    color: #fff; line-height: 1.2;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.lmb-intent-sub {
    font-size: 13px; font-weight: 300; line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 24px;
}

.lmb-intent-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    margin: 0 -6px;
    padding: 4px 6px 6px; /* room for the focus ring */
}
.lmb-intent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.lmb-iopt {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    animation: lmbFadeUpOpt 0.5s ease both;
}
.lmb-iopt:nth-child(1) { animation-delay: 0.08s; }
.lmb-iopt:nth-child(2) { animation-delay: 0.15s; }
.lmb-iopt:nth-child(3) { animation-delay: 0.22s; }
.lmb-iopt:nth-child(4) { animation-delay: 0.29s; }
@keyframes lmbFadeUpOpt { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.lmb-iopt:hover {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(14, 50, 100, 0.6);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2), 0 8px 32px rgba(29, 111, 181, 0.25);
}
.lmb-iopt:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 2px; }
.lmb-iopt[aria-checked="true"] {
    border-color: var(--lmb-up-cyan);
    background: rgba(14, 50, 100, 0.85);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5), 0 12px 40px rgba(29, 111, 181, 0.35), inset 0 0 30px rgba(56, 189, 248, 0.08);
}

.lmb-iopt-icon {
    width: 38px; height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.12);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
    transition: background 0.25s, border-color 0.25s;
}
.lmb-iopt:hover .lmb-iopt-icon,
.lmb-iopt[aria-checked="true"] .lmb-iopt-icon { background: rgba(56, 189, 248, 0.15); border-color: rgba(56, 189, 248, 0.3); }
.lmb-iopt-text { display: block; min-width: 0; padding-right: 26px; }
.lmb-iopt-title {
    display: block;
    font-size: 14px; font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}
.lmb-iopt-desc {
    display: block;
    font-size: 12px; font-weight: 300; line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
}
.lmb-iopt:hover .lmb-iopt-title,
.lmb-iopt[aria-checked="true"] .lmb-iopt-title { color: #fff; }
.lmb-iopt:hover .lmb-iopt-desc,
.lmb-iopt[aria-checked="true"] .lmb-iopt-desc { color: rgba(255, 255, 255, 0.72); }

/* Trailing radio: an empty ring, a filled tick when chosen (shape, not just colour) */
.lmb-iopt-check {
    position: absolute;
    top: 16px; right: 16px;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.lmb-iopt[aria-checked="true"] .lmb-iopt-check {
    background: var(--lmb-up-cyan);
    border-color: var(--lmb-up-cyan);
    color: #04101e;
}

.lmb-intent-foot { flex-shrink: 0; margin-top: 20px; }
.lmb-intent-continue {
    display: flex; align-items: center; justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 12px 20px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #1d6fb5 0%, #2a9be0 100%);
    color: #fff;
    font: inherit;
    font-size: 15px; font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: filter 0.2s, background 0.2s;
}
.lmb-intent-continue:hover:not(:disabled) { filter: brightness(1.08); }
.lmb-intent-continue:focus-visible,
.lmb-intent-close:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 3px; }
.lmb-intent-continue:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    cursor: not-allowed;
}
.lmb-intent-footer-hint {
    margin: 12px 0 0;
    text-align: center;
    font-size: 11px; font-weight: 300;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.45);
}

/* ── Upload progress / failure (inside the dark "uploaded" card) ───────── */
.lmb-upl-progress,
.lmb-upl-failed { position: relative; z-index: 2; }
.lmb-upl-progress[hidden],
.lmb-upl-failed[hidden] { display: none !important; }
.lmb-upl-progress { display: flex; flex-direction: column; gap: 7px; }
.lmb-upl-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: #bae6fd;
}
.lmb-upl-pct {
    margin-left: auto;
    font-weight: 600;
    color: #e0f2fe;
    font-variant-numeric: tabular-nums;
}
.lmb-upl-spinner {
    width: 14px; height: 14px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid rgba(56, 189, 248, 0.25);
    border-top-color: var(--lmb-up-cyan);
    animation: lmbSpin 0.8s linear infinite;
}
.lmb-upl-bar {
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}
.lmb-upl-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #1d6fb5, var(--lmb-up-cyan));
    transition: width 0.2s ease;
}
.lmb-upl-bar.is-indeterminate .lmb-upl-fill {
    width: 35%;
    animation: lmbUplIndet 1.2s ease-in-out infinite;
}
@keyframes lmbUplIndet { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
.lmb-upl-failed {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: rgba(239, 68, 68, 0.14);
    color: #fee2e2;
    font-size: 12.5px; line-height: 1.45;
}
.lmb-upl-failed-msg { flex: 1 1 180px; }
.lmb-upl-retry {
    min-height: 36px;
    padding: 6px 16px;
    border-radius: 999px;
    border: none;
    background: #fff;
    color: #0e3264;
    font: inherit;
    font-size: 12.5px; font-weight: 600;
    cursor: pointer;
}
.lmb-upl-retry:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 2px; }
#aiUploadForm.lmb-is-uploading .lmb-zone { cursor: progress; }
#aiUploadForm.lmb-is-uploading .lmb-replace-link,
#aiUploadForm.lmb-is-uploading .lmb-pgu-add { pointer-events: none; opacity: 0.4; }

/* Keyboard focus on the upload cards */
.lmb-upload .lmb-zone:focus-visible { outline: 3px solid var(--lmb-up-cyan); outline-offset: 3px; }

@keyframes lmbSheetIn { from { transform: translateY(100%); } to { transform: none; } }

/* =============================================================================
   Phones (<= 767px)
   ========================================================================== */
@media (max-width: 767px) {

    .lmb-upload {
        --lmb-header-h: 72px;
        --lmb-header-total: calc(var(--lmb-header-h) + env(safe-area-inset-top, 0px));
    }

    /* responsive.css sets body { overflow-x: hidden }, which makes <body> a
       scroll container that never scrolls, so the sticky footer below had
       nothing to stick to. clip still trims sideways overflow but is not a
       scroll container. Older browsers without clip keep hidden: the footer
       then simply sits at the end of the form. */
    body.lmb-upload { overflow-x: clip; }

    /* Header: one 72px row. env(safe-area-inset-top) is 0 unless the page opts
       into viewport-fit=cover, so Safari gets no double gap. */
    .lmb-upload .site-header {
        display: flex;
        align-items: center;
        height: var(--lmb-header-total);
        padding: env(safe-area-inset-top, 0px) 20px 0;
    }
    .lmb-upload .site-header .extend-container { height: 100%; align-items: center !important; }
    .lmb-upload .site-header .inner-header .main-logo { width: auto; }
    .lmb-upload .site-header .main-logo a { min-height: 44px; }
    .lmb-upload .site-header .main-logo img { width: auto; max-width: none; height: 40px; }
    .lmb-upload .site-header .brand-name {
        margin-left: 10px !important;
        font-size: 17px !important;
        letter-spacing: 0.14em;
    }
    .lmb-upload #lmb-mobile-hamburger {
        min-width: 44px;
        min-height: 44px;
        align-items: center !important;
        justify-content: flex-end;
    }

    /* Compact hero: content height, starts under the header */
    .lmb-upload .lmb-up-hero.header-project {
        height: auto !important;
        min-height: 0 !important;
    }
    .lmb-upload .lmb-up-hero > .container {
        height: auto !important;
        padding: calc(var(--lmb-header-total) + 24px) 20px 24px !important;
        transform: none !important;
    }
    .lmb-upload .lmb-up-hero .content,
    .lmb-upload .lmb-up-hero .intro-project { transform: none !important; opacity: 1 !important; }
    .lmb-upload .lmb-up-hero .metas { margin-bottom: 8px !important; }
    .lmb-upload .lmb-up-hero .metas span { font-size: 11px; letter-spacing: 0.14em; }
    .lmb-upload .lmb-up-hero .title {
        font-size: clamp(25px, 8vw, 32px) !important;
        line-height: 1.12 !important;
        margin: 0 !important;
    }
    .lmb-upload .lmb-up-hero .lmb-up-hero-lead {
        margin-top: 10px !important;
        font-size: 15px;
        line-height: 1.5;
    }
    .lmb-upload .lmb-up-hero-purpose { margin-top: 14px; }
    .lmb-upload .lmb-purpose-chip { min-height: 44px; padding: 8px 14px; font-size: 13.5px; }
    /* Crop the artwork to its right-hand part, under one even veil */
    .lmb-upload video.lmb-up-hero-media { object-position: 70% 50%; }
    .lmb-upload .bg-circle-dotted.lmb-up-hero-media { background-position: right top; }
    .lmb-upload .lmb-up-hero-veil {
        background: linear-gradient(180deg,
            rgba(247, 250, 253, 0.58) 0%,
            rgba(247, 250, 253, 0.72) 55%,
            rgba(247, 250, 253, 0.8) 100%);
    }

    /* Upload section starts right after the hero */
    .lmb-upload .about-project.section-padding { padding-top: 24px !important; padding-bottom: 32px !important; }
    .lmb-upload .lmb-page-header { margin-bottom: 16px; }
    .lmb-upload #aiUploadForm,
    .lmb-upload .lmb-zone { scroll-margin-top: calc(var(--lmb-header-total) + 16px); }

    /* Tap wording instead of drag wording */
    .lmb-upload .lmb-copy-pointer { display: none; }
    .lmb-upload .lmb-copy-touch { display: inline; }

    /* X-ray type: a full-width, finger-sized select */
    .lmb-upload .lmb-quality-note:has(#id_xray_modality) { flex-wrap: wrap; align-items: center; padding: 12px 14px; }
    .lmb-upload #id_xray_modality { flex: 1 1 160px; min-height: 44px; max-width: 100%; }

    /* X-ray note: bold lead line, short supporting copy */
    .lmb-upload .lmb-xray-note { padding: 12px 14px; gap: 10px; margin-bottom: 10px; }
    .lmb-upload .lmb-xray-note .lmb-qn-icon { width: 28px; height: 28px; border-radius: 8px; }
    .lmb-upload .lmb-xray-note .lmb-qn-text { font-size: 13px; line-height: 1.5; color: #3e4f66; }
    .lmb-upload .lmb-xray-note .lmb-qn-text strong { display: block; margin-bottom: 2px; }

    .lmb-upload .lmb-guidance-note {
        display: block;
        margin: 0 0 4px;
        font-size: 12.5px;
        color: #4b5a6c;
    }

    /* Sticky action footer. Sticky inside the form, so it settles into the
       flow at the end of the form and never rides over the site footer. */
    .lmb-upload .lumben-actions {
        position: sticky;
        bottom: 0;
        z-index: 20;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 8px;
        margin: 12px -15px 0;
        padding: 10px 15px calc(12px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid rgba(14, 50, 100, 0.1);
        box-shadow: 0 -6px 18px rgba(14, 50, 100, 0.06);
    }
    .lmb-upload #changeIntentBtn,
    .lmb-upload .lumben-disclaimer,
    .lmb-upload #lmbSubmitSpinner { display: none !important; }
    .lmb-upload .lmb-act-privacy {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin: 0;
        font-size: 12.5px;
        line-height: 1.4;
        color: #3e4f66;
        text-align: center;
    }
    .lmb-upload .lmb-act-privacy svg { flex-shrink: 0; color: var(--lmb-up-blue); }
    .lmb-upload .lumben-actions .image-zoom {
        display: block !important;
        width: 100% !important;
        padding: 0;
        border: none; /* the theme's .inner-btn frame */
        opacity: 1;
        transform: none !important;
    }
    .lmb-upload .lumben-actions .image-zoom .icon-circle { display: none !important; }
    .lmb-upload #submitBtn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        min-height: 56px;
        padding: 0 20px;
        border: none;
        border-radius: 14px;
        background: #0e3264;
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 0.08em;
        transform: none !important;
    }
    .lmb-upload #submitBtn:disabled {
        opacity: 1 !important;
        filter: none;
        background: #b6c2d1 !important;
        color: #fff !important;
    }
    .lmb-upload #submitBtn.is-loading:disabled { background: #0e3264 !important; }
    .lmb-upload #submitBtn.is-loading .lmb-submit-busy {
        display: inline-block;
        width: 18px; height: 18px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.35);
        border-top-color: #fff;
        animation: lmbSpin 0.8s linear infinite;
    }
    .lmb-upload .image-zoom.lmb-btn-disabled { opacity: 1; }
    .lmb-upload #submitBtn:focus-visible { outline: 3px solid var(--lmb-up-cyan); outline-offset: 3px; }

    /* Validation toast sits above the sticky footer */
    .lmb-upload #lmbToast { bottom: calc(132px + env(safe-area-inset-bottom, 0px)) !important; }

    /* Purpose selector as a bottom sheet */
    .lmb-intent {
        align-items: flex-end;
        padding: env(safe-area-inset-top, 0px) 0 0;
    }
    .lmb-intent-panel {
        width: 100%;
        max-height: 85vh;
        max-height: 85dvh;
        padding: 0;
        border-bottom: none;
        border-radius: 22px 22px 0 0;
        animation: lmbSheetIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }
    .lmb-intent-handle {
        display: block;
        flex-shrink: 0;
        width: 40px; height: 4px;
        margin: 10px auto 0;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.25);
    }
    .lmb-intent-close { top: 14px; right: 12px; width: 44px; height: 44px; }
    .lmb-intent-head { padding: 10px 60px 12px 20px; }
    .lmb-intent-eyebrow { margin-bottom: 8px; }
    .lmb-intent-title { font-size: 20px; margin-bottom: 4px; }
    .lmb-intent-sub { margin: 0; }
    .lmb-intent-body { margin: 0; padding: 4px 16px 12px; }
    .lmb-intent-grid { grid-template-columns: 1fr; gap: 8px; }
    .lmb-iopt {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        min-height: 68px;
        padding: 12px 14px;
        border-radius: 14px;
        animation: none;
    }
    .lmb-iopt-icon { width: 36px; height: 36px; margin-bottom: 0; }
    .lmb-iopt-text { flex: 1 1 auto; padding-right: 0; }
    .lmb-iopt-title { font-size: 15px; margin-bottom: 2px; }
    .lmb-iopt-desc { font-size: 12.5px; line-height: 1.4; }
    .lmb-iopt-check { position: static; flex-shrink: 0; }
    .lmb-intent-foot {
        margin: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: #061a33;
    }
    .lmb-intent-continue { min-height: 52px; }
    .lmb-intent-footer-hint { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .lmb-intent-panel,
    .lmb-iopt { animation: none !important; }
    .lmb-iopt,
    .lmb-intent-continue,
    .lmb-purpose-chip,
    .lmb-upl-fill { transition: none !important; }
    .lmb-upl-spinner,
    .lmb-submit-busy { animation-duration: 2.4s !important; }
    .lmb-upl-bar.is-indeterminate .lmb-upl-fill { animation: none; width: 100%; opacity: 0.6; }
}
