/* ==========================================================================
   Fire Stopping — offline UI (LITERAL fork of the fire-door offline rules
   in inspection_show.css, renamed: inspection-modal→fss-om, ot-→fso-,
   os-→fss-os-, offline-strip→fss-offline-strip, offline-status-card→
   fss-offline-status-card, cs-badge→fss-cs-badge, page scope →
   .page-section--fs-survey-show). Values are byte-copies of the fire-door
   rules so the two modules look identical; only the names differ (FS pages
   load zero fire-door module CSS). Regenerate by re-running the fork against
   inspection_show.css rather than hand-editing values.
   ========================================================================== */

.page-section--fs-survey-show .ipi-filter-rail__actions .ipi-filter-railbtn[data-door-refresh],
.page-section--fs-survey-show .df-header .btn[data-door-refresh],
.fss-os-btn.btn[data-fss-offline-sync] {
    background: rgba(196, 149, 16, 0.16);
    border-color: rgba(196, 149, 16, 0.55);
    color: #8f6a06;
}

html[data-theme="dark"] .page-section--fs-survey-show .ipi-filter-rail__actions .ipi-filter-railbtn[data-door-refresh],
html[data-theme="dark"] .page-section--fs-survey-show .df-header .btn[data-door-refresh],
html[data-theme="dark"] .fss-os-btn.btn[data-fss-offline-sync] {
    background: rgba(227, 176, 8, 0.18);
    border-color: rgba(227, 176, 8, 0.45);
    color: #f4d98b;
}

@media (max-width: 1024px) {
    .page-section--fs-survey-show .fss-cap--capturing .capture-page-head,
    .page-section--fs-survey-show .fss-cap--capturing .inspection-capture-operational,
    .page-section--fs-survey-show .fss-cap--capturing .capture-grid,
    .page-section--fs-survey-show .fss-cap--capturing .fss-cap-scroll > .fss-offline-status-card,
    .page-section--fs-survey-show .fss-cap--capturing .door-submit--desktop,
    .page-section--fs-survey-show .fss-cap--capturing .door-stepper__controls {
        display: none !important;
    }

    .page-section--fs-survey-show .fss-cap--capturing .fss-cap-stage-slot > [data-door-step],
    .page-section--fs-survey-show .fss-cap--capturing .fss-cap-stage-slot > .fss-offline-status-card {
        margin: 0;
    }

    .page-section--fs-survey-show .fss-cap--capturing .fss-cap-stage-slot > [data-icm-surface="detail"],
    .page-section--fs-survey-show .fss-cap--capturing .fss-cap-stage-slot > [data-icm-surface="component"] [data-icm-component-body],
    .page-section--fs-survey-show .fss-cap--capturing .fss-cap-stage-slot > [data-icm-surface="review"],
    .page-section--fs-survey-show .fss-cap--capturing .fss-cap-stage-slot > [data-icm-surface="label"],
    .page-section--fs-survey-show .fss-cap--capturing .fss-cap-stage-slot > .fss-offline-status-card {
        background: var(--surface-card);
        border-radius: 16px;
        box-shadow: var(--shadow-card);
    }

    .page-section--fs-survey-show .fss-cap--capturing .fss-cap-stage-slot > .fss-offline-status-card {
        border: 0;
    }

}

.floorplan-modal.floorplan-modal--fullscreen .floorplan-modal__header .fss-om__header-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.floorplan-modal.floorplan-modal--fullscreen .floorplan-modal__header .fss-om__eyebrow {
    margin: 0 0 2px;
    color: #c49510;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.floorplan-modal.floorplan-modal--fullscreen .floorplan-modal__header .fss-om__title {
    margin: 0;
    color: #1a1815;
    font-family: "Sora", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.floorplan-modal.floorplan-modal--fullscreen .floorplan-modal__header .fss-om__subcopy {
    display: none;
}

.page-section--fs-survey-show .fss-om.floorplan-modal.floorplan-modal--fullscreen .floorplan-modal__header .btn-link,
.page-section--fs-survey-show .fss-om.floorplan-modal.floorplan-modal--fullscreen .floorplan-modal__header .modal__close {
    color: #3d3a34;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fss-offline-status-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
}

.fss-offline-status-card__summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fss-offline-status-card__badges {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.fss-offline-status-chip {
    font-size: 0.8rem;
    padding: 5px 12px;
}

.fss-offline-status-chip--saved {
    background: rgba(2, 132, 199, 0.14);
    color: var(--brand, #2563eb);
}

.fss-offline-status-chip--pending {
    background: rgba(251, 191, 36, 0.16);
    color: #b45309;
}

.fss-offline-status-chip--attention {
    background: rgba(217, 45, 32, 0.12);
    color: var(--danger, #d92d20);
}

.fss-offline-status-card__details {
    margin-top: 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 10px;
}

.fss-offline-draft-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fss-offline-status-card__section-title {
    font-weight: 700;
    color: var(--text, #0f172a);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 4px;
}

.fss-offline-draft-item {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.02);
}

.page-section--fs-survey-show .fss-om .modal__dialog {
    width: min(640px, calc(100vw - 48px));
    max-height: min(88vh, 920px);
    border-radius: 18px;
    border: 1px solid rgba(35, 31, 24, 0.08);
    box-shadow: 0 28px 80px rgba(25, 19, 9, 0.22);
}

.page-section--fs-survey-show .fss-om .modal__dialog.modal__dialog--wide,
.page-section--fs-survey-show .fss-om--wide .modal__dialog {
    width: min(860px, calc(100vw - 48px));
}

.page-section--fs-survey-show .fss-om--door .modal__dialog {
    width: min(760px, calc(100vw - 48px));
}

.page-section--fs-survey-show .fss-om__dialog--offline-check {
    width: min(500px, calc(100vw - 48px));
}

.page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__header {
    padding: 18px 20px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    gap: 10px;
}

.page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__eyebrow {
    margin-bottom: 4px;
    font-size: 9.5px;
    font-weight: 600;
}

.page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__title {
    margin-bottom: 4px;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__subcopy {
    max-width: 430px;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.45;
    color: #9a9188;
}

.page-section--fs-survey-show .fss-om__header,
.page-section--fs-survey-show .inspection-float-modal__header {
    padding: 18px 22px;
    align-items: flex-start;
    gap: 16px;
}

.page-section--fs-survey-show .fss-om__header-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.page-section--fs-survey-show .fss-om__eyebrow {
    margin: 0;
    color: #c49510;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-section--fs-survey-show .fss-om__title {
    margin: 0;
    color: #1a1815;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.page-section--fs-survey-show .fss-om__subcopy {
    margin: 0;
    color: #8f8476;
    font-size: 13px;
    line-height: 1.5;
}

.page-section--fs-survey-show .fss-om .modal__close,
.page-section--fs-survey-show .inspection-float-modal .btn.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #3d3a34;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.page-section--fs-survey-show .fss-om .modal__body {
    padding: 18px 22px 22px;
}

.page-section--fs-survey-show .fss-om__body,
.page-section--fs-survey-show .fss-om__form-shell {
    display: grid;
    gap: 14px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 22px 22px;
}

.page-section--fs-survey-show .fss-om__section {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(35, 31, 24, 0.08);
    background: #ffffff;
    box-shadow: none;
}

.page-section--fs-survey-show .fss-om__section--inset {
    background: #f7f5f0;
}

.page-section--fs-survey-show .fss-om__section-label {
    margin: 0 0 6px;
    color: #9a9188;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-section--fs-survey-show .fss-om__meta,
.page-section--fs-survey-show .fss-om__field-note,
.page-section--fs-survey-show .fss-om__empty-copy {
    margin: 0;
    color: #8f8476;
    font-size: 13px;
    line-height: 1.5;
}

.page-section--fs-survey-show .fss-om__form-shell input[type="text"],
.page-section--fs-survey-show .fss-om__form-shell input[type="date"],
.page-section--fs-survey-show .fss-om__form-shell select,
.page-section--fs-survey-show .fss-om__section input[type="text"],
.page-section--fs-survey-show .fss-om__section input[type="date"],
.page-section--fs-survey-show .fss-om__section select {
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(35, 31, 24, 0.12);
    background: #ffffff;
    padding: 0 12px;
    font: inherit;
    color: #1a1815;
    min-width: 0;
}

.page-section--fs-survey-show .fss-om__status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.page-section--fs-survey-show .fss-om__status-card {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(35, 31, 24, 0.08);
    background: #f7f5f0;
}

.page-section--fs-survey-show .fss-om__status-value {
    margin: 0;
    color: #1a1815;
    font-size: 15px;
    font-weight: 700;
}

.page-section--fs-survey-show .fss-om__diagnostic {
    display: grid;
    gap: 6px;
}

.page-section--fs-survey-show .fss-om__check-stack label,
.page-section--fs-survey-show .fss-om__section label {
    color: #3d3a34;
}

.page-section--fs-survey-show .fss-om__actions--footer,
.page-section--fs-survey-show .fss-om .modal__actions {
    padding: 16px 22px 20px;
    margin: 0 -22px -22px;
    border-top: 1px solid rgba(35, 31, 24, 0.08);
    justify-content: flex-end;
    background: #ffffff;
}

.page-section--fs-survey-show .fss-om__body--offline-check {
    gap: 12px;
    padding: 18px 22px;
}

.page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__body--offline-check {
    display: flex;
    flex-direction: column;
    padding: 14px 18px 14px;
    gap: 10px;
}

.page-section--fs-survey-show .fss-om__action-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-section--fs-survey-show .fss-om__action-row--offline-check .btn {
    min-height: 36px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__action-row--offline-check {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: 2px;
}

.page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__action-row--offline-check .btn {
    min-height: 32px;
    padding: 7px 13px;
    font-size: 12px;
}

.page-section--fs-survey-show .fss-om__action-row--offline-check .btn.btn-primary {
    background: #1a1815;
    color: #ffffff;
    border-color: #1a1815;
}

.page-section--fs-survey-show .fss-om__action-row--offline-check .btn.btn-primary:hover {
    background: #3d3a34;
    border-color: #3d3a34;
}

.page-section--fs-survey-show .fss-om__accent-btn {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.11);
    color: #3d3a34;
    box-shadow: none;
}

.page-section--fs-survey-show .fss-om__accent-btn:hover {
    background: #f2efe9;
    border-color: rgba(0, 0, 0, 0.16);
    color: #1a1815;
}

.page-section--fs-survey-show .fss-om__running-bar {
    height: 2px;
    overflow: hidden;
    border-radius: 999px;
    background: #edeae3;
    order: 2;
}

.page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__running-bar {
    margin-top: -2px;
}

.page-section--fs-survey-show .fss-om__running-bar[hidden] {
    display: none;
}

.page-section--fs-survey-show .fss-om__running-fill {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: #c49510;
    animation: fss-om-running-sweep 1.4s ease-in-out infinite;
}

.page-section--fs-survey-show .fss-om__status-grid--offline-check {
    gap: 10px;
    order: 3;
}

.page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__status-grid--offline-check {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.page-section--fs-survey-show .fss-om__status-card--preflight {
    background: #edeae3;
    border-color: rgba(0, 0, 0, 0.11);
    padding: 12px 13px;
    gap: 6px;
    border-radius: 10px;
}

.page-section--fs-survey-show .fss-om__status-row {
    display: block;
}

.page-section--fs-survey-show .fss-om__status-dot {
    display: none;
}

.page-section--fs-survey-show .fss-om__status-card--preflight[data-state="ok"] .fss-om__status-dot,
.page-section--fs-survey-show .fss-om__status-dot[data-state="ok"] {
    background: #1e7a45;
}

.page-section--fs-survey-show .fss-om__status-card--preflight[data-state="warn"] .fss-om__status-dot,
.page-section--fs-survey-show .fss-om__status-dot[data-state="warn"] {
    background: #c49510;
}

.page-section--fs-survey-show .fss-om__status-card--preflight[data-state="err"] .fss-om__status-dot,
.page-section--fs-survey-show .fss-om__status-dot[data-state="err"] {
    background: #b03030;
}

.page-section--fs-survey-show .fss-om__status-card--preflight[data-state="neutral"] .fss-om__status-dot,
.page-section--fs-survey-show .fss-om__status-dot[data-state="neutral"] {
    background: #9a9188;
}

.page-section--fs-survey-show .fss-om__status-card--preflight .fss-om__status-value {
    line-height: 1.35;
    font-size: 13.5px;
    font-weight: 600;
}

.page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__status-card--preflight .fss-om__section-label {
    margin-bottom: 5px;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.25;
    min-height: 28px;
    max-width: 76px;
}

.page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__status-card--preflight .fss-om__status-value {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.25;
}

.page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__status-card--preflight {
    min-height: 92px;
    align-content: start;
}

.page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__status-card--preflight[data-fss-offline-preflight-card="storage"] .fss-om__status-value {
    font-size: 13px;
    line-height: 1.25;
}

.page-section--fs-survey-show .fss-om__status-value[data-state="ok"],
.page-section--fs-survey-show .fss-om__status-value--ok {
    color: #1e7a45;
}

.page-section--fs-survey-show .fss-om__status-value[data-state="warn"],
.page-section--fs-survey-show .fss-om__status-value--warn {
    color: #c49510;
}

.page-section--fs-survey-show .fss-om__status-value[data-state="err"],
.page-section--fs-survey-show .fss-om__status-value--err {
    color: #b03030;
}

.page-section--fs-survey-show .fss-om__status-value[data-state="neutral"],
.page-section--fs-survey-show .fss-om__status-value--neutral {
    color: #1a1815;
}

.page-section--fs-survey-show .fss-om__notes-card {
    padding: 13px 15px;
    background: #edeae3;
    border-color: rgba(0, 0, 0, 0.11);
    order: 4;
    border-radius: 10px;
}

.page-section--fs-survey-show .fss-om__notes-card .fss-om__field-note {
    color: #6b6458;
    line-height: 1.6;
    font-size: 13px;
}

.page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__notes-card .fss-om__section-label {
    margin-bottom: 7px;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.page-section--fs-survey-show .fss-om__body--offline-check .fss-om__action-row {
    order: 1;
}

@media (max-width: 768px) {
    .page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__header {
        position: sticky;
        top: 0;
        z-index: 2;
        padding: 16px 16px 14px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
    }

    .page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__title {
        font-size: 22px;
        line-height: 1.1;
    }

    .page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__subcopy {
        max-width: none;
        font-size: 13px;
        line-height: 1.55;
    }

    .page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__body--offline-check {
        flex: 1 1 auto;
        overflow: auto;
        padding: 14px 14px 16px;
        gap: 12px;
    }

    .page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__running-bar {
        order: 1;
        margin-top: 0;
    }

    .page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__action-row--offline-check {
        order: 2;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 0;
    }

    .page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__action-row--offline-check .btn {
        width: 100%;
        min-height: 46px;
        padding: 11px 16px;
        border-radius: 12px;
        font-size: 14px;
    }

    .page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__status-grid--offline-check {
        order: 3;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__status-card--preflight {
        min-height: 104px;
        padding: 14px;
        border-radius: 14px;
    }

    .page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__status-card--preflight .fss-om__section-label {
        min-height: 0;
        max-width: none;
        margin-bottom: 8px;
        font-size: 10px;
        line-height: 1.3;
    }

    .page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__status-card--preflight .fss-om__status-value,
    .page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__status-card--preflight[data-fss-offline-preflight-card="storage"] .fss-om__status-value {
        font-size: 14px;
        line-height: 1.35;
    }

    .page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__notes-card {
        order: 4;
        padding: 14px;
        border-radius: 14px;
    }

    .page-section--fs-survey-show [data-fss-offline-preflight-modal] .fss-om__notes-card .fss-om__field-note {
        font-size: 13.5px;
        line-height: 1.6;
    }

}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fss-om__header {
    padding: 18px 20px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    gap: 10px;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fss-om__eyebrow {
    margin-bottom: 4px;
    font-size: 9.5px;
    font-weight: 600;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fss-om__title {
    margin-bottom: 3px;
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fss-om__subcopy {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.45;
    color: #9a9188;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-dialog {
    width: min(520px, calc(100vw - 48px));
    max-height: min(94vh, 920px);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-header {
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    align-items: flex-start;
    gap: 12px;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-header-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-eyebrow {
    margin: 0;
    color: #c49510;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-title {
    margin: 0;
    color: #1a1815;
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 700;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-subcopy {
    margin: 0;
    color: #9a9188;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #edeae3;
    border: none;
    color: #9a9188;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px 18px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-actions .btn {
    min-height: 34px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-btn-primary {
    background: #1a1815;
    color: #ffffff;
    border-color: #1a1815;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-btn-primary:hover {
    background: #3d3a34;
    border-color: #3d3a34;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-menu {
    position: relative;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-menu summary {
    list-style: none;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-menu summary::-webkit-details-marker {
    display: none;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-menu-trigger {
    position: relative;
    min-width: 138px;
    padding-right: 30px;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-menu-caret {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translateY(-50%);
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-menu-caret::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #9a9188;
    border-bottom: 1.5px solid #9a9188;
    transform: rotate(45deg);
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-menu-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    padding: 6px 0;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.11);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
    z-index: 5;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-menu:not([open]) .fso-menu-popover {
    display: none;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-menu-label {
    margin: 0;
    padding: 9px 14px 5px;
    color: #9a9188;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 9px 14px;
    border: 0;
    background: transparent;
    color: #3d3a34;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-menu-item:hover {
    background: #f2efe9;
    color: #1a1815;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-menu-item span:last-child {
    color: #9a9188;
    font-size: 11.5px;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-menu-item--file {
    cursor: pointer;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-menu-divider {
    height: 1px;
    margin: 2px 0;
    background: rgba(0, 0, 0, 0.07);
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-card {
    overflow: hidden;
    border-radius: 11px;
    border: 1px solid rgba(0, 0, 0, 0.11);
    background: #edeae3;
    flex: 0 0 auto;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-card-label {
    margin: 0;
    color: #9a9188;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-card-body {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-status-main {
    margin: 0;
    color: #1a1815;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-status-meta,
.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-note {
    margin: 0;
    color: #9a9188;
    font-size: 12px;
    line-height: 1.5;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-link-action {
    padding: 0;
    border: 0;
    background: transparent;
    color: #c49510;
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-check-list {
    display: grid;
    gap: 8px;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-check-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #3d3a34;
    font-size: 13px;
    cursor: pointer;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-check-item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    accent-color: #1a1815;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-field-label {
    color: #9a9188;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-field select {
    width: 100%;
    padding: 8px 28px 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.11);
    background: #ffffff;
    font: inherit;
    color: #3d3a34;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-list li {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.11);
    background: #ffffff;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-list--muted li {
    color: #9a9188;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-footer {
    padding: 12px 20px 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    background: #ffffff;
    justify-content: flex-end;
    flex-shrink: 0;
}

.page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-footer-btn {
    min-height: 34px;
    padding: 8px 16px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .page-section--fs-survey-show [data-fss-offline-recovery-modal] .modal__header.fso-header {
        position: sticky;
        top: 0;
        z-index: 2;
        padding: 16px 16px 14px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
    }

    .page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-title {
        font-size: 22px;
        line-height: 1.1;
    }

    .page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-subcopy {
        max-width: none;
        font-size: 13px;
        line-height: 1.55;
    }

    .page-section--fs-survey-show [data-fss-offline-recovery-modal] .modal__close.fso-close {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.12);
        color: #3d3a34;
    }

    .page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 14px 14px 16px;
        gap: 12px;
    }

    .page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 0;
    }

    .page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-actions .btn {
        width: 100%;
        min-height: 46px;
        padding: 11px 16px;
        border-radius: 12px;
        font-size: 14px;
        justify-content: center;
    }

    .page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-menu {
        width: 100%;
    }

    .page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-menu-trigger {
        width: 100%;
        min-width: 0;
        min-height: 46px;
        padding: 11px 36px 11px 16px;
        border-radius: 12px;
        justify-content: center;
        box-sizing: border-box;
    }

    .page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-menu-popover {
        left: 0;
        right: 0;
        width: 100%;
        min-width: 0;
        max-width: none;
        border-radius: 12px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-menu-item {
        min-height: 44px;
        padding: 12px 14px;
        font-size: 14px;
    }

    .page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-card {
        border-radius: 14px;
    }

    .page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-card-head {
        padding: 12px 14px;
    }

    .page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-card-body {
        padding: 14px;
        gap: 12px;
    }

    .page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-field select {
        min-height: 46px;
        border-radius: 12px;
        font-size: 16px;
    }

    .page-section--fs-survey-show [data-fss-offline-recovery-modal] .modal__actions.fso-footer,
    .page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-footer {
        padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 14px);
        margin: 0;
        position: sticky;
        bottom: 0;
        z-index: 2;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        border-top: 1px solid rgba(0, 0, 0, 0.07);
        justify-content: stretch;
    }

    .page-section--fs-survey-show [data-fss-offline-recovery-modal] .fso-footer-btn {
        width: 100%;
        min-height: 46px;
        border-radius: 12px;
        justify-content: center;
    }

}

.page-section--fs-survey-show .fss-om.floorplan-modal .floorplan-modal__dialog {
    width: 100%;
    max-width: calc(100vw - 80px);
    height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
    padding: 0;
    gap: 0;
}

.page-section--fs-survey-show .fss-om.floorplan-modal.floorplan-modal--fullscreen .floorplan-modal__dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    min-height: 100dvh;
    padding: 0;
    gap: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
}

.page-section--fs-survey-show .fss-om--door .fss-om__header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    gap: 12px;
}

.page-section--fs-survey-show .fss-om--door .fss-om__title {
    font-size: 19px;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.page-section--fs-survey-show .fss-om--door .modal__body {
    padding: 0;
}

.page-section--fs-survey-show .fss-om__eyebrow--danger {
    color: var(--danger, #b03030);
}

html[data-theme="dark"] .page-section--fs-survey-show .fss-om__eyebrow--danger {
    color: #f87171;
}

@media (max-width: 900px) {
    .page-section--fs-survey-show .fss-om__form-grid,
    .page-section--fs-survey-show .fss-om__status-grid {
        grid-template-columns: 1fr;
    }

    .page-section--fs-survey-show .fss-om--door .fss-om__header {
        position: sticky;
        top: 0;
        z-index: 3;
        padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 14px;
        background: rgba(247, 245, 240, 0.98);
        backdrop-filter: blur(8px);
    }

    .page-section--fs-survey-show .fss-om--door .fss-om__title {
        font-size: 22px;
    }

    .page-section--fs-survey-show .fss-om--door .fss-om__body {
        flex: 1 1 auto;
        overflow: auto;
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
    }

}

html[data-theme="dark"] .page-section--fs-survey-show .fss-om .modal__dialog {
    background: rgba(2, 6, 23, 0.94);
    border-color: rgba(148, 163, 184, 0.22);
}

html[data-theme="dark"] .page-section--fs-survey-show .fss-om__title,
html[data-theme="dark"] .page-section--fs-survey-show .fss-om__summary-title,
html[data-theme="dark"] .page-section--fs-survey-show .fss-om__status-value,
html[data-theme="dark"] .page-section--fs-survey-show .remedial-task-modal__summary strong {
    color: rgba(241, 245, 249, 0.96);
}

html[data-theme="dark"] .page-section--fs-survey-show .fss-om__subcopy,
html[data-theme="dark"] .page-section--fs-survey-show .fss-om__meta,
html[data-theme="dark"] .page-section--fs-survey-show .fss-om__field-note,
html[data-theme="dark"] .page-section--fs-survey-show .fss-om__empty-copy {
    color: rgba(148, 163, 184, 0.9);
}

html[data-theme="dark"] .page-section--fs-survey-show .fss-om__section {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .page-section--fs-survey-show .fss-om__section--inset,
html[data-theme="dark"] .page-section--fs-survey-show .fss-om__status-card,
html[data-theme="dark"] .page-section--fs-survey-show .modal__body .door-detail-card {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .page-section--fs-survey-show .fss-om__list li,
html[data-theme="dark"] .page-section--fs-survey-show .fss-om .modal__close,
html[data-theme="dark"] .page-section--fs-survey-show .inspection-float-modal .btn.btn-link {
    background: rgba(15, 23, 42, 0.68);
    border-color: rgba(148, 163, 184, 0.18);
    color: rgba(226, 232, 240, 0.86);
}

html[data-theme="dark"] .page-section--fs-survey-show .fss-om__form-shell input[type="text"],
html[data-theme="dark"] .page-section--fs-survey-show .fss-om__form-shell input[type="date"],
html[data-theme="dark"] .page-section--fs-survey-show .fss-om__form-shell select,
html[data-theme="dark"] .page-section--fs-survey-show .fss-om__section input[type="text"],
html[data-theme="dark"] .page-section--fs-survey-show .fss-om__section input[type="date"],
html[data-theme="dark"] .page-section--fs-survey-show .fss-om__section select {
    background: rgba(2, 6, 23, 0.72);
    border-color: rgba(148, 163, 184, 0.2);
    color: rgba(241, 245, 249, 0.94);
}

html[data-theme="dark"] .page-section--fs-survey-show .fss-om__actions--footer,
html[data-theme="dark"] .page-section--fs-survey-show .fss-om .modal__actions {
    background: rgba(2, 6, 23, 0.94);
    border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .floorplan-modal.floorplan-modal--fullscreen .floorplan-modal__header .fss-om__eyebrow {
    color: #e8c252;
}

html[data-theme="dark"] .floorplan-modal.floorplan-modal--fullscreen .floorplan-modal__header .fss-om__title {
    color: rgba(241, 245, 249, 0.96);
}

@media (max-width: 1024px) {
    .page-section--fs-survey-show .fss-offline-strip.fss-offline-actions--page {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        max-width: 100%;
        padding: 10px 24px;
        background: #edeae3;
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Reset mobile.css `.content { overflow-wrap: anywhere
    }

    ` so pills/buttons don’t break mid-word. */
        overflow-wrap: normal;
        word-break: normal;
    }

    .page-section--fs-survey-show .fss-offline-strip.fss-offline-actions--page::-webkit-scrollbar {
        display: none;
    }

    .page-section--fs-survey-show .fss-os-badge,
    .page-section--fs-survey-show .fss-os-btn {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 11.5px;
        font-weight: 500;
    }

    .page-section--fs-survey-show .fss-offline-strip.fss-offline-actions--page .fss-os-badge,
    .page-section--fs-survey-show .fss-offline-strip.fss-offline-actions--page .fss-os-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .page-section--fs-survey-show .fss-offline-strip.fss-offline-actions--page .fss-os-btn svg {
        flex-shrink: 0;
        width: 12px;
        height: 12px;
        max-inline-size: none;
    }

    .page-section--fs-survey-show .fss-os-badge {
        padding: 4px 10px;
        border-radius: 999px;
        border: 1px solid rgba(0, 0, 0, 0.11);
    }

    .page-section--fs-survey-show .fss-os-autosave {
        background: #ffffff;
        color: #3d3a34;
        border-color: rgba(0, 0, 0, 0.11);
    }

    .page-section--fs-survey-show .fss-os-neutral {
        background: #ffffff;
        color: #6b6458;
    }

    .page-section--fs-survey-show .fss-os-btn {
        padding: 5px 10px;
        border-radius: 999px;
        border: 1px solid rgba(0, 0, 0, 0.11);
        background: #ffffff;
        color: #6b6458;
        cursor: pointer;
    }

    .page-section--fs-survey-show .fss-os-sp {
        display: none;
    }

    .page-section--fs-survey-show .fss-os-storage,
    .page-section--fs-survey-show .fss-offline-progress {
        flex: 0 0 auto;
        font-size: 11px;
        color: #9a9188;
    }

    .page-section--fs-survey-show .doors-filter,
    .page-section--fs-survey-show .doors-table,
    .page-section--fs-survey-show .lt-card,
    .page-section--fs-survey-show .card-section,
    .page-section--fs-survey-show .tl-controls,
    .page-section--fs-survey-show .tl-event,
    .page-section--fs-survey-show .cap-section,
    .page-section--fs-survey-show .checklist-card,
    .page-section--fs-survey-show .cap-status-row,
    .page-section--fs-survey-show .fss-offline-status-card {
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
        border: 0;
    }

    /* Standalone status card ("N penetrations saved locally · …") — the shared
       rule above only sets its surface; the padding lived in the min-width:1025px
       block (a fork slip — the fire-door reference pads at ≤768px). Restore the
       inner padding on touch so the summary + badges aren't flush to the edge. */
    .page-section--fs-survey-show .fss-offline-status-card {
        padding: 14px 18px;
    }

    .page-section--fs-survey-show .fss-capture-form:not(.fss-stepper--active) .inspection-capture-operational,
    .page-section--fs-survey-show .fss-capture-form:not(.fss-stepper--active) .capture-grid,
    .page-section--fs-survey-show .fss-capture-form:not(.fss-stepper--active) .fss-offline-status-card {
        display: none;
    }

    .page-section--fs-survey-show .fss-capture-form.fss-stepper--active:not(.fss-cap-detail):not(.fss-cap-component):not(.fss-cap-review) .capture-grid,
    .page-section--fs-survey-show .fss-capture-form.fss-stepper--active:not(.fss-cap-detail):not(.fss-cap-component):not(.fss-cap-review) .fss-offline-status-card {
        display: none;
    }

}

.fss-offline-progress {
    font-size: 11.5px;
    color: #9a9188;
}

@media (min-width: 1025px) {
    .page-section--fs-survey-show .fss-offline-strip {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 28px;
        background: #edeae3;
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    }

    .page-section--fs-survey-show .fss-os-badge,
    .page-section--fs-survey-show .fss-os-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        border-radius: 999px;
        font-size: 11.5px;
        font-weight: 500;
    }

    .page-section--fs-survey-show .fss-os-badge {
        padding: 3px 10px;
        border: 1px solid rgba(0, 0, 0, 0.11);
    }

    .page-section--fs-survey-show .fss-os-autosave {
        background: #ffffff;
        color: #3d3a34;
        border-color: rgba(0, 0, 0, 0.11);
    }

    .page-section--fs-survey-show .fss-os-neutral {
        background: #ffffff;
        color: #6b6458;
    }

    .page-section--fs-survey-show .fss-os-btn {
        padding-inline: 12px;
    }

    .page-section--fs-survey-show .fss-os-btn svg {
        width: 12px;
        height: 12px;
    }

    .page-section--fs-survey-show .fss-os-sp {
        flex: 1;
    }

    .page-section--fs-survey-show .fss-os-storage {
        font-size: 11.5px;
        color: #9a9188;
    }

    .page-section--fs-survey-show .doors-filter,
    .page-section--fs-survey-show .doors-table,
    .page-section--fs-survey-show .lt-card,
    .page-section--fs-survey-show .card-section,
    .page-section--fs-survey-show .tl-controls,
    .page-section--fs-survey-show .tl-event,
    .page-section--fs-survey-show .cap-section,
    .page-section--fs-survey-show .checklist-card,
    .page-section--fs-survey-show .cap-status-row,
    .page-section--fs-survey-show .fss-offline-status-card {
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
        border: 0;
    }

    .page-section--fs-survey-show .fss-cs-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 3px 10px;
        border-radius: 999px;
        border: 1px solid rgba(0, 0, 0, 0.11);
        font-size: 11.5px;
        font-weight: 500;
    }

    .page-section--fs-survey-show .fss-cs-neutral {
        background: #edeae3;
        color: #6b6458;
    }

    .page-section--fs-survey-show .checklist-card .cap-status-row .fss-cs-badge {
        order: 1;
        flex: 0 0 auto;
    }

    .page-section--fs-survey-show .fss-om.component-guide-modal .component-guide-modal__dialog {
        width: min(760px, 100%);
        max-height: min(88vh, 920px);
        border-radius: 24px;
        background: #f7f5f0;
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
        overflow: hidden;
    }

    .page-section--fs-survey-show .fss-om.component-guide-modal .component-guide-modal__close {
        top: 14px;
        right: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        background: rgba(255, 255, 255, 0.9);
        color: #6b6458;
        font-size: 28px;
    }

    .page-section--fs-survey-show .fss-om.component-guide-modal .component-guide-modal__body {
        padding: 22px 26px 26px;
        background: #f7f5f0;
    }

}

@media (max-width: 768px) {
    .page-section--fs-survey-show .fss-om.component-guide-modal .component-guide-modal__header {
            padding: 16px 18px 14px;
    }

    .page-section--fs-survey-show .fss-om.component-guide-modal .component-guide-modal__dialog h3 {
            max-width: calc(100% - 48px);
            font-size: 24px;
    }

    .page-section--fs-survey-show .fss-om.component-guide-modal .component-guide-modal__close {
            top: 10px;
            right: 12px;
            width: 42px;
            height: 42px;
    }

    .page-section--fs-survey-show .fss-om.component-guide-modal .component-guide-modal__body {
            padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    }

}

@media (min-width: 1025px) {
    .page-section--fs-survey-show .fss-offline-status-card {
        padding: 14px 18px;
        background: #ffffff;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
        border: 0;
    }

    .page-section--fs-survey-show .fss-offline-status-card__badges {
        justify-content: flex-end;
    }

}

@media (max-width: 1024px) {
    .page-section--fs-survey-show .fss-offline-strip.fss-offline-actions--page {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        max-width: 100%;
        padding: 10px 24px;
        background: #edeae3;
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        overflow-wrap: normal;
        word-break: normal;
    }

    .page-section--fs-survey-show .fss-offline-strip.fss-offline-actions--page::-webkit-scrollbar {
        display: none;
    }

}

body.fss-stepper-overlay-open .capture-desktop-gate__notice,
body.fss-stepper-overlay-open .fss-offline-status-card {
    display: none !important;
}

.page-section--fs-survey-show .fss-om {
    --insp-accent: var(--accent, #c49510);
    --insp-accent-soft: var(--accent-soft, rgba(196, 149, 16, 0.1));
    --insp-accent-strong: rgba(196, 149, 16, 0.34);
    --insp-ink: var(--ink, #1a1815);
    --insp-ink-muted: var(--ink-3, #6b6458);
    --insp-ink-faint: var(--ink-4, #9a9188);
    --insp-border: var(--rule, rgba(26, 24, 21, 0.08));
    --insp-border-rule: rgba(26, 24, 21, 0.07);
    --insp-border-input: rgba(26, 24, 21, 0.14);
    --insp-bg-warm: #f7f5f0;
    --insp-surface: var(--surface-card, #ffffff);
    --insp-surface-soft: #fcfaf4;

    /* --ipi-* token aliases so canonical primitives (.ipi-tabs, .ipi-tab,
       .ipi-filter-search) render correctly inside the modal scope. */
    --ipi-bg: var(--canvas, #f7f5f0);
    --ipi-bg-inset: var(--surface-inset, #edeae3);
    --ipi-bg-card: var(--surface-card, #ffffff);
    --ipi-bg-hover: rgba(26, 24, 21, 0.04);
    --ipi-rule: var(--rule, rgba(26, 24, 21, 0.08));
    --ipi-rule-h: rgba(26, 24, 21, 0.11);
    --ipi-ink: var(--ink, #1a1815);
    --ipi-ink-2: #3d3a34;
    --ipi-ink-3: var(--ink-3, #6b6458);
    --ipi-ink-4: var(--ink-4, #9a9188);
    --ipi-accent: var(--accent, #c49510);
    --ipi-accent-bg: rgba(196, 149, 16, 0.08);
    --ipi-accent-border: rgba(196, 149, 16, 0.34);
    --ipi-shadow-sm: 0 1px 3px rgba(26, 24, 21, 0.06), 0 1px 2px rgba(26, 24, 21, 0.04);
    --ipi-shadow-card: 0 1px 4px rgba(26, 24, 21, 0.06), 0 0 0 1px rgba(26, 24, 21, 0.05);
}

.page-section--fs-survey-show .fss-om .fss-om__dialog {
    width: min(880px, calc(100vw - 32px));
    max-height: min(90vh, 960px);
    border-radius: 16px;
    border: 1px solid var(--insp-border);
    background: var(--insp-surface);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.18),
        0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.page-section--fs-survey-show .fss-om .fss-om__dialog--stable {
    height: min(85vh, 760px);
    min-height: min(60vh, 520px);
}

.page-section--fs-survey-show .fss-om .fss-om__dialog--narrow {
    width: min(560px, calc(100vw - 32px));
}

.page-section--fs-survey-show .fss-om .fss-om__dialog--wide {
    width: min(1280px, calc(100vw - 32px));
}

.page-section--fs-survey-show .fss-om form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    width: 100%;
}

.page-section--fs-survey-show .fss-om .fss-om__header {
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--insp-border-rule);
    flex-shrink: 0;
    background: var(--insp-surface);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.page-section--fs-survey-show .fss-om .fss-om__header > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}

.page-section--fs-survey-show .fss-om .fss-om__header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.page-section--fs-survey-show .fss-om .fss-om__header .eyebrow {
    margin: 0;
    color: var(--insp-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-section--fs-survey-show .fss-om .fss-om__header .modal__title,
.page-section--fs-survey-show .fss-om .fss-om__header h3 {
    margin: 0;
    font-family: var(--font-display, 'Space Grotesk', system-ui, sans-serif);
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--insp-ink);
}

.page-section--fs-survey-show .fss-om .fss-om__header .text-muted,
.page-section--fs-survey-show .fss-om .fss-om__header > div > p:not(.eyebrow) {
    margin: 4px 0 0;
    max-width: 60ch;
    color: var(--insp-ink-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

.page-section--fs-survey-show .fss-om .modal__close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--surface-inset, #edeae3);
    border: none;
    color: var(--insp-ink-muted);
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.page-section--fs-survey-show .fss-om .modal__close:hover {
    background: rgba(26, 24, 21, 0.1);
    color: var(--insp-ink);
}

.page-section--fs-survey-show .fss-om .fss-om__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 20px 22px 22px;
    background: var(--insp-bg-warm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-section--fs-survey-show .fss-om .fss-om__footer {
    padding: 13px 22px 14px;
    border-top: 1px solid var(--insp-border-rule);
    background: var(--insp-surface);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.page-section--fs-survey-show .fss-om .fss-om__footer-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.page-section--fs-survey-show .fss-om .fss-om__footer-copy strong {
    font-family: var(--font-display, 'Space Grotesk', system-ui, sans-serif);
    font-size: 13px;
    font-weight: 700;
    color: var(--insp-ink);
}

.page-section--fs-survey-show .fss-om .fss-om__footer-copy p {
    margin: 0;
    font-size: 12px;
    color: var(--insp-ink-faint);
}

.page-section--fs-survey-show .fss-om .fss-om__footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.page-section--fs-survey-show .fss-om .fss-om__footer .btn {
    min-height: 40px;
    padding: 8px 18px;
}

.page-section--fs-survey-show .fss-om :where(input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], input[type="url"], input[type="search"], input[type="date"], input[type="time"], input[type="datetime-local"], select, textarea) {
    min-height: 40px;
    padding: 10px 13px;
    border-radius: 9px;
    border: 1px solid var(--insp-border-input);
    background: var(--insp-surface);
    font-family: var(--font-sans, inherit);
    font-size: 13.5px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--insp-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    width: 100%;
}

.page-section--fs-survey-show .fss-om :where(input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], input[type="url"], input[type="search"], input[type="date"], input[type="datetime-local"], select, textarea):focus {
    border-color: var(--insp-accent-strong);
    box-shadow: 0 0 0 3px var(--insp-accent-soft);
    outline: none;
}

.page-section--fs-survey-show .fss-om textarea {
    min-height: 72px;
    resize: vertical;
    line-height: 1.5;
}

.page-section--fs-survey-show .fss-om select {
    padding-right: 34px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%239a9188' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    cursor: pointer;
}

html[data-theme="dark"] .page-section--fs-survey-show .fss-om {
    --insp-surface: #0f172a;
    --insp-surface-soft: rgba(15, 23, 42, 0.6);
    --insp-bg-warm: #0b1220;
    --insp-ink: #e2e8f0;
    --insp-ink-muted: #94a3b8;
    --insp-ink-faint: #94a3b8;
    --insp-border: rgba(148, 163, 184, 0.22);
    --insp-border-rule: rgba(148, 163, 184, 0.18);
    --insp-border-input: rgba(148, 163, 184, 0.28);
    --insp-accent: #e3b008;
    --insp-accent-soft: rgba(227, 176, 8, 0.18);
    --insp-accent-strong: rgba(244, 217, 139, 0.5);

    --ipi-bg: rgba(15, 23, 42, 0.55);
    --ipi-bg-inset: rgba(15, 23, 42, 0.62);
    --ipi-bg-card: rgba(15, 23, 42, 0.7);
    --ipi-bg-hover: rgba(148, 163, 184, 0.08);
    --ipi-rule: rgba(148, 163, 184, 0.22);
    --ipi-rule-h: rgba(148, 163, 184, 0.28);
    --ipi-ink: #e2e8f0;
    --ipi-ink-2: #cbd5e1;
    --ipi-ink-3: #94a3b8;
    --ipi-ink-4: #94a3b8;
    --ipi-accent: #e3b008;
    --ipi-accent-bg: rgba(227, 176, 8, 0.18);
    --ipi-accent-border: rgba(244, 217, 139, 0.5);
    --ipi-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --ipi-shadow-card: 0 1px 4px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(148, 163, 184, 0.1);
}

html[data-theme="dark"] .page-section--fs-survey-show .fss-om .fss-om__dialog {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .page-section--fs-survey-show .fss-om .modal__close {
    background: rgba(148, 163, 184, 0.16);
    color: rgba(226, 232, 240, 0.92);
}

html[data-theme="dark"] .page-section--fs-survey-show .fss-om .modal__close:hover {
    background: rgba(148, 163, 184, 0.28);
}

@media (max-width: 900px) {
    .page-section--fs-survey-show .fss-om .fss-om__header {
        padding: 14px 16px 12px;
    }

    .page-section--fs-survey-show .fss-om .fss-om__header .modal__title,
    .page-section--fs-survey-show .fss-om .fss-om__header h3 {
        font-size: 1.1rem;
    }

    .page-section--fs-survey-show .fss-om .fss-om__body {
        padding: 14px 16px 16px;
        gap: 12px;
    }

    .page-section--fs-survey-show .fss-om .fss-om__footer {
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
    }

    .page-section--fs-survey-show .fss-om .fss-om__footer-copy { display: none;
    }

    .page-section--fs-survey-show .fss-om .fss-om__footer-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .page-section--fs-survey-show .fss-om .fss-om__footer-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        font-size: 13px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .page-section--fs-survey-show .fss-om .fss-om__footer-actions .btn-primary { order: 2;
    }

    .page-section--fs-survey-show .fss-om .fss-om__footer-actions .btn-secondary { order: 1;
    }

}

/* Verbatim fork of inspection-modal-running-sweep (the @keyframes was outside
   the rule extraction). */
@keyframes fss-om-running-sweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}
