:root {
    color-scheme: light;
    --bg: #eef3f8;
    --surface: #ffffff;
    --surface-soft: #f3f7fb;
    --surface-raised: #ffffff;
    --text: #101b2d;
    --text-soft: #60748c;
    --line: #d6e1ec;
    --line-strong: #bdcddd;
    --brand: #168fbd;
    --brand-strong: #076b98;
    --brand-soft: #e1f5fc;
    --accent: #68d8f4;
    --action-panel: #0b1a30;
    --action-panel-text: #eff8ff;
    --warning: #a76508;
    --warning-soft: #fff2d5;
    --danger: #a23a34;
    --danger-soft: #fbe9e7;
    --shadow: 0 12px 30px rgba(16, 38, 66, .09);
    --nav-height: 76px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #080d17;
    --surface: #0b1320;
    --surface-soft: #101b2c;
    --surface-raised: #0d1829;
    --text: #edf4ff;
    --text-soft: #91a5bd;
    --line: #1b304b;
    --line-strong: #294664;
    --brand: #5dcced;
    --brand-strong: #77dcf5;
    --brand-soft: #0c2b40;
    --accent: #63d6f4;
    --action-panel: #071224;
    --action-panel-text: #eff8ff;
    --warning: #f4bd67;
    --warning-soft: #332817;
    --danger: #f49a91;
    --danger-soft: #38201e;
    --shadow: 0 16px 34px rgba(0, 0, 0, .28);
}

@media (prefers-color-scheme: dark) {
    html[data-theme="auto"] {
        color-scheme: dark;
        --bg: #080d17;
        --surface: #0b1320;
        --surface-soft: #101b2c;
        --surface-raised: #0d1829;
        --text: #edf4ff;
        --text-soft: #91a5bd;
        --line: #1b304b;
        --line-strong: #294664;
        --brand: #5dcced;
        --brand-strong: #77dcf5;
        --brand-soft: #0c2b40;
        --accent: #63d6f4;
        --action-panel: #071224;
        --action-panel-text: #eff8ff;
        --warning: #f4bd67;
        --warning-soft: #332817;
        --danger: #f49a91;
        --danger-soft: #38201e;
        --shadow: 0 16px 34px rgba(0, 0, 0, .28);
    }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100%; margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, label, input, select, textarea { -webkit-tap-highlight-color: transparent; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(28px, 7vw, 34px); line-height: 1.05; letter-spacing: -.035em; }
h2 { font-size: 19px; line-height: 1.2; letter-spacing: -.015em; }
small { line-height: 1.35; }

.prototype-note { position: relative; z-index: 100; width: min(100%, 520px); margin: 0 auto; padding: 5px 10px; background: #0a1730; color: #c9dcf0; font-size: 9px; font-weight: 700; letter-spacing: .055em; text-align: center; text-transform: uppercase; }
.app-shell { width: min(100%, 520px); min-height: 100dvh; margin: 0 auto; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.app-header { position: sticky; z-index: 30; top: 0; display: flex; height: 72px; align-items: center; justify-content: space-between; padding: 10px 18px; border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent); background: color-mix(in srgb, var(--surface) 91%, transparent); backdrop-filter: blur(18px); }
.brand-button { display: flex; min-height: 48px; align-items: center; gap: 10px; border: 0; padding: 0; background: transparent; text-align: left; }
.brand-button > span:last-child { display: grid; gap: 1px; }
.brand-button strong { font-size: 17px; letter-spacing: -.02em; }
.brand-button small { color: var(--text-soft); font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; }
.smart-logo-wrap { display: grid; width: 82px; height: 42px; place-items: center; overflow: hidden; border-radius: 11px; background: #fff; }
.smart-logo-wrap img { width: 76px; height: 36px; object-fit: contain; }
.product-label { padding-left: 9px; border-left: 1px solid var(--line); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.connection-dot { width: 8px; height: 8px; border-radius: 999px; background: #39aa70; box-shadow: 0 0 0 4px color-mix(in srgb, #39aa70 18%, transparent); }
.icon-button { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 14px; padding: 0 11px; background: var(--surface-soft); }
.icon-button svg { width: 19px; height: 19px; }
.icon-button span { font-size: 12px; font-weight: 750; }
.notification-button { position: relative; width: 44px; justify-content: center; padding: 0; }
.notification-button > span { font-size: 22px; line-height: 1; }
.notification-button b, .bottom-nav b { position: absolute; display: grid; min-width: 18px; height: 18px; place-items: center; border-radius: 999px; padding: 0 5px; background: #d94343; color: #fff; font-size: 9px; font-weight: 850; box-shadow: 0 0 0 2px var(--surface); }
.notification-button b { top: -5px; right: -5px; }

.app-main { min-height: calc(100dvh - 72px); padding: 0 18px calc(var(--nav-height) + 30px + env(safe-area-inset-bottom)); }
.view { display: none; padding: 24px 0 12px; }
.view.is-active { display: block; animation: view-in .2s ease-out; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }
.hero-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 24px; }
.eyebrow { margin-bottom: 5px; color: var(--text-soft); font-size: 12px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.avatar { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-soft); color: var(--brand-strong); font-size: 13px; font-weight: 850; }

.week-overview { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; padding: 16px; background: var(--surface-raised); box-shadow: var(--shadow); }
.week-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.week-overview-head > span:first-child { display: grid; gap: 2px; }
.week-overview-head small { color: var(--text-soft); font-size: 10px; }
.week-overview-head strong { font-size: 16px; }
.week-score { display: flex; align-items: baseline; gap: 4px; color: var(--brand-strong); }
.week-score strong { font-size: 25px; }
.week-progress { height: 6px; overflow: hidden; margin: 15px 0; border-radius: 999px; background: var(--line); }
.week-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #68d7f3, #3ba6f3); }
.week-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); }
.week-metrics span { display: grid; gap: 2px; padding: 10px 7px; border-right: 1px solid var(--line); text-align: center; }
.week-metrics span:last-child { border-right: 0; }
.week-metrics strong { font-size: 16px; }
.week-metrics small { color: var(--text-soft); font-size: 8px; line-height: 1.25; }
.weekly-location-cta { margin-top: 12px; box-shadow: none; }
.dashboard-heading { margin-top: 30px; }

.location-hero { display: grid; width: 100%; min-height: 92px; grid-template-columns: 46px 1fr 20px; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 22px; padding: 15px; background: var(--surface-raised); box-shadow: var(--shadow); text-align: left; }
.location-icon, .status-icon { display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; }
.location-icon { width: 46px; height: 46px; background: var(--brand-soft); color: var(--brand-strong); }
.location-icon svg { width: 23px; height: 23px; }
.location-copy { display: grid; min-width: 0; gap: 2px; }
.location-copy small { color: var(--text-soft); font-size: 11px; font-weight: 700; }
.location-copy strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.location-copy span { color: var(--text-soft); font-size: 12px; }
.chevron { width: 19px; height: 19px; color: var(--text-soft); }

.status-strip, .alert-card, .info-card, .scan-result { display: flex; align-items: center; gap: 11px; }
.status-strip { margin: 14px 3px 30px; color: var(--text-soft); }
.status-strip > span:nth-child(2), .alert-card > span:nth-child(2), .scan-result > span:nth-child(2) { display: grid; flex: 1; gap: 1px; }
.status-strip strong { color: var(--text); font-size: 12px; }
.status-strip small { font-size: 11px; }
.status-icon { width: 34px; height: 34px; }
.status-icon svg { width: 18px; height: 18px; }
.status-icon.success { background: #e1f5e9; color: #207a4b; }
.status-icon.warning { background: var(--warning-soft); color: var(--warning); }
.status-icon.brand { background: var(--brand-soft); color: var(--brand-strong); }
.status-icon.neutral { background: var(--surface-soft); color: var(--text-soft); }

.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 0 2px 13px; }
.section-heading.compact { align-items: center; margin-top: 28px; }
.count-badge, .due-pill { border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 800; }
.count-badge { background: var(--surface-soft); color: var(--text-soft); }
.due-pill { background: var(--warning-soft); color: var(--warning); }
.muted-text { color: var(--text-soft); font-size: 11px; }

.task-list { display: grid; gap: 10px; }
.task-card { display: grid; width: 100%; min-height: 86px; grid-template-columns: 42px 1fr 18px; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 19px; padding: 13px; background: var(--surface-raised); text-align: left; }
.task-card.priority { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.client-badge, .chain-logo { display: grid; place-items: center; font-weight: 900; }
.client-badge { width: 42px; height: 42px; overflow: hidden; border: 1px solid #e3e8ee; border-radius: 14px; padding: 5px; background: #fff; }
.client-badge img { width: 100%; height: 100%; object-fit: contain; }
.client-badge-fallback { color: #0b3157; font-size: 12px; letter-spacing: -.02em; }
html[data-theme="dark"] .status-icon.success { filter: brightness(.82) saturate(.9); }
.task-copy { display: grid; min-width: 0; gap: 3px; }
.task-copy strong { font-size: 15px; }
.task-copy > small { color: var(--text-soft); font-size: 11px; }
.task-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-soft); font-size: 10px; font-weight: 750; }

.continue-card { display: flex; width: 100%; min-height: 92px; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); border-radius: 20px; padding: 16px; background: var(--action-panel); color: var(--action-panel-text); text-align: left; }
.continue-card > span:first-child { display: grid; gap: 3px; }
.continue-card small, .continue-card span span { color: color-mix(in srgb, var(--action-panel-text) 67%, transparent); font-size: 11px; }
.continue-card strong { font-size: 15px; }
.progress-ring { display: grid; width: 50px; height: 50px; place-items: center; flex: 0 0 auto; border-radius: 50%; background: radial-gradient(closest-side, var(--action-panel) 74%, transparent 76% 99%), conic-gradient(var(--accent) calc(var(--progress) * 1%), color-mix(in srgb, var(--action-panel-text) 18%, transparent) 0); color: var(--action-panel-text); font-size: 10px; font-weight: 800; }
.empty-draft-card { display: flex; min-height: 88px; align-items: center; gap: 12px; margin-top: 12px; border: 1px dashed var(--line-strong); border-radius: 19px; padding: 14px; background: var(--surface-soft); }
.empty-draft-card > span:last-child { display: grid; gap: 2px; }
.empty-draft-card small, .empty-draft-card em { color: var(--text-soft); font-size: 10px; font-style: normal; }
.empty-draft-card strong { font-size: 13px; }

.login-page { min-height: 100vh; background: var(--bg); color: var(--text); }
.login-shell { width: min(100% - 32px, 430px); min-height: 100vh; margin: 0 auto; display: grid; align-content: center; gap: 20px; padding: 32px 0; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 14px; }
.login-brand img { width: 82px; height: auto; }
.login-brand span { display: grid; }
.login-brand strong { font-size: 24px; }
.login-brand small { color: var(--text-soft); }
.login-card { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); padding: 24px; box-shadow: var(--shadow); }
.login-card h1 { margin: 2px 0 6px; }
.login-card > p:not(.eyebrow) { color: var(--text-soft); margin: 0 0 20px; }
.login-card form { display: grid; gap: 15px; }
.login-card .field input { width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 13px; padding: 0 14px; color: var(--text); background: var(--surface-soft); font: inherit; }
.form-error { border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); border-radius: 13px; padding: 11px 13px; margin-bottom: 14px; color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.theme-login-button { justify-self: center; border: 0; background: transparent; color: var(--text-soft); padding: 8px; }
.report-hub-summary { margin: 16px 16px 12px; border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: var(--surface); }
.report-hub-summary h2 { margin: 3px 0 7px; }
.report-hub-summary p:last-child { margin: 0; color: var(--text-soft); font-size: 13px; }
.hub-continue { width: calc(100% - 32px); margin: 0 16px 12px; min-height: 56px; }
.hub-step-list { display: grid; gap: 9px; padding: 0 16px 16px; }
.hub-step-list button { display: flex; align-items: center; justify-content: space-between; min-height: 66px; border: 1px solid var(--line); border-radius: 17px; padding: 12px 14px; text-align: left; color: var(--text); background: var(--surface); }
.hub-step-list button:disabled { opacity: .58; cursor: not-allowed; }
.hub-step-list button span { display: grid; gap: 3px; }
.hub-step-list button small { color: var(--text-soft); }
.hub-step-list button em { font-size: 10px; font-style: normal; text-transform: uppercase; color: var(--brand); }
[data-report-runtime] > .secondary-action { width: calc(100% - 32px); margin: 0 16px 110px; }
.connection-dot.is-offline { background: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 15%, transparent); }
.runtime-form { display: grid; gap: 12px; padding: 16px 16px 120px; }
.runtime-form-head { border: 1px solid var(--line); border-radius: 20px; padding: 17px; background: var(--surface); }
.runtime-form-head h2 { margin: 3px 0 7px; }
.runtime-form-head p:last-child { margin: 0; color: var(--text-soft); font-size: 12px; }
.runtime-item { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.runtime-item summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; cursor: pointer; list-style: none; }
.runtime-item summary > span:first-child { display: grid; gap: 3px; }
.runtime-item summary small { color: var(--text-soft); font-size: 10px; }
.runtime-item summary > span:last-child { color: var(--brand); font-size: 11px; }
.runtime-item-fields { display: grid; gap: 12px; border-top: 1px solid var(--line); padding: 14px; }
.runtime-form .field { display: grid; gap: 6px; }
.runtime-form .field > span, .boolean-field legend { font-size: 11px; font-weight: 700; color: var(--text-soft); }
.runtime-form .field input, .runtime-form .field textarea, .runtime-form .field select { width: 100%; border: 1px solid var(--line-strong); border-radius: 13px; padding: 11px 12px; background: var(--surface-soft); color: var(--text); font: inherit; }
.runtime-form .field textarea { min-height: 88px; resize: vertical; }
.boolean-field { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.boolean-field legend { width: 100%; margin-bottom: 1px; }
.boolean-field label { flex: 1; }
.boolean-field input { position: absolute; opacity: 0; }
.boolean-field span { display: block; border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px; text-align: center; background: var(--surface-soft); }
.boolean-field input:checked + span { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.runtime-repeat-row { display: grid; gap: 11px; border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: var(--surface); }
.additional-choice { display: grid; gap: 8px; }
.additional-exposure-card { display: grid; gap: 12px; border: 1px solid var(--line-strong); border-radius: 20px; padding: 15px; background: var(--surface); }
.additional-exposure-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.additional-exposure-head h3 { margin: 2px 0 0; font-size: 17px; }
.icon-action { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); color: var(--text); font-size: 22px; }
.runtime-form-actions { display: grid; gap: 9px; margin-top: 6px; }
.runtime-samples { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 3px; }
.runtime-samples figure { flex: 0 0 142px; margin: 0; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--surface-soft); }
.runtime-samples img { width: 100%; height: 112px; object-fit: cover; display: block; }
.runtime-samples figcaption { padding: 7px 8px; color: var(--text-soft); font-size: 9px; line-height: 1.35; }
.promotion-photo-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.promotion-photo { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.promotion-photo img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.promotion-photo figcaption { padding: 7px 8px; color: var(--text-soft); font-size: 10px; line-height: 1.3; }
.exposure-wizard { gap: 14px; }
.wizard-progress { display: grid; gap: 8px; }
.wizard-progress > span { display: flex; align-items: end; justify-content: space-between; }
.wizard-progress > span span, .wizard-progress > span { color: var(--text-soft); }
.wizard-progress small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.wizard-progress strong { color: var(--text); font-size: 15px; }
.wizard-progress > div { height: 7px; border-radius: 99px; overflow: hidden; background: var(--line); }
.wizard-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.wizard-card { display: grid; gap: 14px; border: 1px solid var(--line-strong); border-radius: 22px; padding: 16px; background: var(--surface); }
.wizard-card-title h2 { margin: 3px 0 0; font-size: 21px; line-height: 1.2; }
.wizard-samples { display: grid; gap: 9px; }
.wizard-samples figure { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface-soft); }
.wizard-samples img { display: block; width: 100%; max-height: 360px; object-fit: contain; background: #fff; }
.wizard-samples figcaption { padding: 9px 11px; color: var(--text-soft); font-size: 11px; }
.wizard-no-sample { border: 1px dashed var(--line-strong); border-radius: 14px; padding: 13px; color: var(--text-soft); font-size: 11px; }
.wizard-actions { display: grid; grid-template-columns: .75fr 1.5fr; gap: 9px; position: sticky; bottom: 76px; z-index: 5; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); }
.wizard-actions button { min-height: 50px; }
.wizard-pause { margin-top: -4px; }
.materials-form { gap: 14px; }
.material-card { display: grid; gap: 14px; border: 1px solid var(--line-strong); border-radius: 22px; padding: 16px; background: var(--surface); }
.material-card [data-material-present], .material-card [data-material-action], .material-card [data-material-corrected] { display: grid; gap: 12px; }
.runtime-check { display: flex; align-items: flex-start; gap: 10px; color: var(--text-soft); font-size: 12px; line-height: 1.4; }
.runtime-check input { width: 20px; height: 20px; flex: 0 0 auto; margin: 0; accent-color: var(--brand); }
.photo-requirement-list, .review-list-static { display: grid; gap: 9px; }
.photo-requirement-list article, .review-list-static span { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 11px 13px; background: var(--surface); }
.photo-requirement-list article > span { display: grid; gap: 3px; }
.photo-requirement-list .photo-queue-card { display: grid; align-items: stretch; justify-content: stretch; gap: 11px; }
.photo-queue-card .photo-button { width: 100%; }
.photo-queue-card [data-runtime-photo-status] { display: block; }
.photo-requirement-list small, .review-list-static small { color: var(--text-soft); font-size: 10px; }
.photo-requirement-list em { font-size: 10px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.photo-state-deferred, .photo-state-pending { color: var(--warning); }
.photo-state-uploaded { color: #45b77b; }
.previous-report-trigger { width: 100%; min-height: 46px; margin: 12px 0; border: 1px solid color-mix(in srgb, var(--brand) 38%, var(--line)); border-radius: 15px; background: var(--brand-soft); color: var(--brand-strong); font-size: 12px; font-weight: 800; }
.previous-report-dialog { width: min(92vw, 430px); max-height: 84vh; overflow: auto; border: 1px solid var(--line-strong); border-radius: 24px; padding: 18px; background: var(--surface-raised); color: var(--text); box-shadow: 0 24px 70px rgba(0,0,0,.42); }
.previous-report-dialog::backdrop { background: rgba(2,10,25,.72); backdrop-filter: blur(4px); }
.previous-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.previous-dialog-head h2 { margin: 3px 0 0; font-size: 18px; }
.previous-metrics { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 10px; }
.previous-metrics strong { font-size: 30px; }
.previous-metrics span { color: var(--text-soft); font-size: 12px; }
.previous-findings { display: grid; gap: 8px; }
.previous-findings article { display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 14px; padding: 11px; }
.previous-findings small { color: var(--text-soft); }
.previous-photos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 14px 0; }
.previous-photos a { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; }
.previous-photos img { width: 100%; aspect-ratio: 1.15; object-fit: cover; }
.previous-photos span { display: block; padding: 7px; font-size: 10px; }
.dialog-note { margin-bottom: 0; color: var(--text-soft); font-size: 11px; }
.department-card { display: grid; gap: 12px; border: 1px solid var(--line-strong); border-radius: 20px; padding: 15px; background: var(--surface); }
.department-card > span { display: grid; gap: 3px; }
.department-card > span strong { font-size: 16px; }
.department-card > span small { color: var(--text-soft); }
.department-card > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.department-card button { min-height: 46px; }
.hub-route { display: flex; width: 100%; min-height: 76px; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line-strong); border-radius: 18px; padding: 13px 15px; background: var(--surface); color: var(--text); text-align: left; }
.hub-route > span { display: grid; gap: 3px; }
.hub-route small { color: var(--text-soft); }
.hub-route em { color: var(--brand); font-size: 11px; font-style: normal; font-weight: 800; }
.hub-route:disabled { opacity: .48; }
.sample-catalog-card { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 18px; padding: 13px; }
.sample-catalog-card h3 { margin: 0; font-size: 15px; }
.review-list-static span { min-height: 54px; }
.review-list-static span strong { font-size: 16px; }
.alert-card { width: 100%; margin-top: 10px; border: 1px solid color-mix(in srgb, var(--warning) 25%, var(--line)); border-radius: 19px; padding: 14px; background: var(--warning-soft); text-align: left; }
.alert-card strong { font-size: 13px; }
.alert-card small { color: var(--text-soft); font-size: 11px; }

.heading-action { min-height: 40px; border: 0; padding: 0 2px; background: transparent; color: var(--brand-strong); font-size: 11px; font-weight: 800; }
.coverage-list { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--surface-raised); }
.coverage-list > button { display: grid; min-height: 72px; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; background: transparent; text-align: left; }
.coverage-list > button:last-child { border-bottom: 0; }
.coverage-list > button > span:nth-child(2) { display: grid; gap: 2px; }
.coverage-list strong { font-size: 13px; }
.coverage-list small { color: var(--text-soft); font-size: 10px; }
.coverage-list .chain-logo { width: 42px; height: 42px; }
.coverage-due { color: var(--text-soft); font-size: 9px; font-weight: 750; }
.special-task { display: grid; width: 100%; min-height: 82px; grid-template-columns: 38px 1fr 18px; align-items: center; gap: 11px; border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line)); border-radius: 18px; padding: 13px; background: var(--brand-soft); text-align: left; }
.special-task > span:nth-child(2) { display: grid; gap: 2px; }
.special-task small, .special-task em { color: var(--text-soft); font-size: 9px; font-style: normal; }
.special-task strong { font-size: 13px; }

.view-topbar, .report-header { display: grid; align-items: center; gap: 11px; }
.view-topbar { grid-template-columns: 46px 1fr; margin-bottom: 24px; }
.back-button { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--line); border-radius: 15px; padding: 0; background: var(--surface-soft); }
.back-button svg { width: 22px; height: 22px; }
.gps-button { display: flex; width: 100%; min-height: 78px; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 19px; padding: 13px; background: var(--surface-raised); text-align: left; }
.gps-button > span:last-child { display: grid; gap: 2px; }
.gps-button strong { font-size: 14px; }
.gps-button small { color: var(--text-soft); font-size: 11px; }
.search-box { position: relative; display: block; margin-top: 14px; }
.search-box svg { position: absolute; top: 15px; left: 14px; width: 20px; height: 20px; color: var(--text-soft); }
.search-box input { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 16px; padding: 0 14px 0 43px; background: var(--surface-soft); color: var(--text); outline: 0; }
.search-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.location-list { display: grid; gap: 10px; }
.location-card { display: grid; width: 100%; min-height: 88px; grid-template-columns: 44px 1fr 22px; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 18px; padding: 13px; background: var(--surface-raised); text-align: left; }
.location-card > span:nth-child(2) { display: grid; gap: 2px; }
.location-card strong { font-size: 14px; }
.location-card small { overflow: hidden; color: var(--text-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.location-card em { color: var(--brand); font-size: 10px; font-style: normal; font-weight: 750; }
.location-card.selected { border-color: var(--brand); background: var(--brand-soft); }
.location-entry { display: grid; gap: 8px; }
.location-report-list { display: grid; gap: 8px; padding: 0 4px 8px 16px; }
.compact-task { min-height: 76px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.runtime-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--surface); }
.runtime-table th, .runtime-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 12px; }
.runtime-table th { color: var(--text-soft); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-soft); }
.runtime-table tbody tr:last-child td { border-bottom: 0; }
.simple-result-list { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.simple-result-list li { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.simple-result-list li span { color: var(--text-soft); text-align: right; }
.chain-logo { width: 44px; height: 44px; border-radius: 13px; background: var(--surface-soft); }
.chain-logo.dedeman { color: #2478b9; }.chain-logo.brico { color: #e76e25; }.chain-logo.leroy { color: #55a143; }.chain-logo.hornbach { color: #ed751e; }
.radio-mark { width: 20px; height: 20px; border: 2px solid var(--line-strong); border-radius: 50%; }
.selected .radio-mark { border: 6px solid var(--brand); background: var(--surface); }

.report-view { padding-top: 12px; }
.report-header { grid-template-columns: 46px 1fr auto; }
.report-title-wrap { min-width: 0; }
.report-client-line { display: flex; min-width: 0; align-items: center; gap: 7px; }
.report-client-logo { display: grid; width: 34px; height: 22px; place-items: center; flex: 0 0 auto; overflow: hidden; border: 1px solid #e3e8ee; border-radius: 7px; padding: 2px 4px; background: #fff; }
.report-client-logo img { width: 100%; height: 100%; object-fit: contain; }
.report-title-wrap small { display: block; overflow: hidden; color: var(--text-soft); font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.report-title-wrap h1 { overflow: hidden; margin-top: 2px; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.save-state { display: inline-flex; align-items: center; gap: 5px; color: var(--text-soft); font-size: 9px; font-weight: 750; }
.save-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); }
.save-state.is-saved i { background: #36a96c; }
.step-progress { margin: 22px 0 18px; }
.step-progress-copy { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12px; }
.step-progress-copy span { color: var(--text-soft); }
.progress-track { height: 5px; overflow: hidden; border-radius: 999px; background: var(--line); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .25s ease; }
.step-panel { display: none; }
.step-panel.is-active { display: block; animation: view-in .2s ease-out; }
.previous-card, .question-card, .photo-card, .scanner-card { border: 1px solid var(--line); border-radius: 21px; padding: 16px; background: var(--surface-raised); }
.previous-head { display: flex; align-items: center; gap: 11px; }
.previous-head > span:last-child { display: grid; gap: 2px; }
.previous-head small { color: var(--text-soft); font-size: 10px; }
.previous-head strong { font-size: 14px; }
.previous-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 17px 0; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); }
.previous-stats span { display: grid; gap: 2px; padding: 11px 8px; border-right: 1px solid var(--line); text-align: center; }
.previous-stats span:last-child { border-right: 0; }
.previous-stats strong { font-size: 17px; }
.previous-stats small { color: var(--text-soft); font-size: 9px; }
.text-button { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: space-between; border: 0; padding: 0; background: transparent; color: var(--brand-strong); font-size: 12px; font-weight: 800; text-align: left; }
.text-button svg { width: 18px; height: 18px; }
.previous-details { padding-top: 12px; border-top: 1px solid var(--line); }
.previous-details p { color: var(--text-soft); font-size: 12px; line-height: 1.55; }
.thumb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 11px; }
.demo-thumb, .queue-thumb { display: block; background-color: var(--line); background-image: linear-gradient(145deg, color-mix(in srgb, var(--brand) 15%, var(--surface)), color-mix(in srgb, var(--warning) 22%, var(--surface))); }
.demo-thumb { height: 70px; border-radius: 11px; }.demo-thumb.two { filter: hue-rotate(45deg); }.demo-thumb.three { filter: hue-rotate(110deg); }
.thumb-row img { width: 100%; height: 76px; border-radius: 11px; background: var(--surface-soft); object-fit: cover; }
.info-card { margin-top: 12px; border: 1px solid var(--line); border-radius: 17px; padding: 13px; background: var(--surface-soft); }
.info-card p { color: var(--text-soft); font-size: 11px; line-height: 1.45; }
.step-intro { margin: 0 3px 13px; color: var(--text-soft); font-size: 12px; line-height: 1.5; }
.question-card { position: relative; display: grid; gap: 15px; }
.question-number { position: absolute; top: 15px; right: 15px; display: grid; width: 26px; height: 26px; place-items: center; border-radius: 9px; background: var(--surface-soft); color: var(--text-soft); font-size: 11px; font-weight: 800; }
.question-title small { color: var(--text-soft); font-size: 10px; font-weight: 700; }
.question-title h2 { margin-top: 3px; padding-right: 32px; }
.sample-reference { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.sample-reference-label { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px; }
.sample-reference-label span { color: var(--brand-strong); font-size: 10px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.sample-reference-label small { color: var(--text-soft); font-size: 9px; }
.sample-reference > button { position: relative; display: block; width: 100%; height: 180px; overflow: hidden; border: 0; padding: 0; background: var(--line); }
.sample-reference img { width: 100%; height: 100%; object-fit: cover; }
.sample-reference > button span { position: absolute; right: 9px; bottom: 9px; border-radius: 999px; padding: 7px 10px; background: rgba(5, 17, 32, .82); color: #fff; font-size: 9px; font-weight: 800; backdrop-filter: blur(8px); }
.sample-reference figcaption { padding: 10px 11px; color: var(--text-soft); font-size: 10px; line-height: 1.45; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: grid; min-height: 48px; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); font-weight: 800; }
.segmented input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); box-shadow: inset 0 0 0 1px var(--brand); }
.field { display: grid; gap: 7px; color: var(--text-soft); font-size: 11px; font-weight: 750; }
.field span { display: flex; justify-content: space-between; }
.field em { color: var(--text-soft); font-style: normal; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; background: var(--surface-soft); color: var(--text); outline: 0; }
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent); }
.secondary-action, .primary-action, .submit-button { width: 100%; min-height: 50px; border-radius: 15px; padding: 0 15px; font-weight: 800; }
.secondary-action { border: 1px solid var(--line); background: var(--surface-soft); }
.question-card + .secondary-action { margin-top: 10px; }
.primary-action, .submit-button { border: 0; background: linear-gradient(90deg, #68d7f3, #3ba6f3); color: #061422; box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 22%, transparent); }
.photo-card { display: grid; gap: 12px; }
.photo-preview { display: grid; height: 150px; place-items: center; border: 1px dashed var(--line-strong); border-radius: 16px; background: var(--surface-soft); color: var(--text-soft); }
.photo-preview svg { width: 42px; height: 42px; }
.photo-copy h2 { font-size: 15px; }.photo-copy p { margin-top: 3px; color: var(--text-soft); font-size: 11px; }
.sample-photo-hint { display: grid; min-height: 72px; grid-template-columns: 58px 1fr 18px; align-items: center; gap: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; padding: 7px; background: var(--surface-soft); text-align: left; }
.sample-photo-hint img { width: 58px; height: 58px; border-radius: 11px; object-fit: cover; }
.sample-photo-hint > span { display: grid; gap: 2px; }
.sample-photo-hint small { color: var(--text-soft); font-size: 9px; }
.sample-photo-hint strong { color: var(--brand-strong); font-size: 11px; }
.photo-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-button span { display: flex; min-height: 50px; align-items: center; justify-content: center; gap: 8px; border-radius: 15px; background: linear-gradient(90deg, #68d7f3, #3ba6f3); color: #061422; font-size: 13px; font-weight: 800; }
.photo-button svg { width: 20px; height: 20px; }
.photo-status { color: var(--text-soft); text-align: center; }
.defer-button { min-height: 44px; border: 0; background: transparent; color: var(--brand-strong); font-size: 12px; font-weight: 800; }
.review-hero { display: grid; justify-items: center; padding: 14px 10px 22px; text-align: center; }
.review-check { display: grid; width: 56px; height: 56px; place-items: center; margin-bottom: 13px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); }
.review-check svg { width: 27px; height: 27px; }
.review-hero p { max-width: 300px; margin-top: 7px; color: var(--text-soft); font-size: 12px; line-height: 1.45; }
.review-list { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; }
.review-list button { display: flex; width: 100%; min-height: 67px; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid var(--line); padding: 11px 13px; background: var(--surface-raised); text-align: left; }.review-list button:last-child { border-bottom: 0; }
.review-list button > span:first-child { display: grid; gap: 2px; }.review-list small { color: var(--text-soft); font-size: 10px; }
.review-status { color: var(--brand); font-size: 10px; font-weight: 800; }.review-status.warning { color: var(--warning); }
.confirm-box { display: flex; align-items: flex-start; gap: 10px; margin: 14px 2px; color: var(--text-soft); font-size: 11px; line-height: 1.45; }
.confirm-box input { width: 20px; height: 20px; flex: 0 0 auto; margin: 0; accent-color: var(--brand); }
.report-actions { position: sticky; z-index: 15; bottom: calc(var(--nav-height) + env(safe-area-inset-bottom)); display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px; margin: 20px -10px -10px; padding: 10px; border: 1px solid var(--line); border-radius: 19px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); }
.compact-action { min-height: 48px; }
.compact-action:disabled { opacity: .42; }

.scanner-card { display: grid; gap: 12px; }
.scanner-frame { position: relative; min-height: 250px; overflow: hidden; border-radius: 16px; background: #111715; }
.scanner-placeholder { display: grid; min-height: 250px; place-items: center; align-content: center; gap: 7px; color: #d7e0dc; text-align: center; }
.scanner-placeholder svg { width: 52px; height: 52px; margin-bottom: 7px; color: var(--accent); }
.scanner-placeholder strong { font-size: 14px; }.scanner-placeholder small { color: #93a29c; font-size: 11px; }
.scanner-status { color: var(--text-soft); font-size: 11px; line-height: 1.45; text-align: center; }
.divider { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: var(--text-soft); font-size: 10px; text-transform: uppercase; }.divider::before,.divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.scan-result { margin-top: 13px; border: 1px solid color-mix(in srgb, #39aa70 35%, var(--line)); border-radius: 17px; padding: 13px; background: color-mix(in srgb, #39aa70 9%, var(--surface)); }.scan-result strong { font-size: 13px; }.scan-result small { color: var(--text-soft); font-size: 10px; }

.queue-summary { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 19px; padding: 15px; background: var(--surface-soft); }.queue-summary > span:last-child { display: grid; gap: 2px; }.queue-summary strong { font-size: 13px; }.queue-summary small { color: var(--text-soft); font-size: 10px; }
.pulse-icon { width: 12px; height: 12px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 7px color-mix(in srgb, var(--warning) 15%, transparent); }
.queue-list { display: grid; gap: 10px; }.queue-list article { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 18px; padding: 11px; background: var(--surface-raised); }.queue-thumb { width: 58px; height: 58px; border-radius: 13px; }.queue-thumb.q2 { filter: hue-rotate(90deg); }.queue-list article > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }.queue-list small,.queue-list em { overflow: hidden; color: var(--text-soft); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }.queue-list strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.queue-list button { min-height: 38px; border: 0; padding: 0 4px; background: transparent; color: var(--brand); font-size: 9px; font-weight: 800; }

.profile-topbar { grid-template-columns: 48px 1fr; }
.profile-card { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--surface-raised); }
.profile-card span { display: flex; align-items: center; justify-content: space-between; padding: 15px; border-bottom: 1px solid var(--line); }
.profile-card span:last-child { border-bottom: 0; }
.profile-card small { color: var(--text-soft); }
.profile-card strong { font-size: 13px; }
.profile-ops-link { margin: 14px 0 10px; }

.ops-hub-status { margin: -10px 0 16px; color: var(--text-soft); font-size: 11px; }
.ops-hub-status.is-error { border: 1px solid color-mix(in srgb, var(--warning) 40%, var(--line)); border-radius: 13px; padding: 10px 12px; background: var(--warning-soft); color: var(--warning); }
.ops-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ops-quick-grid button, .ops-quick-grid a { display: grid; min-height: 88px; align-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 17px; padding: 11px 7px; background: var(--surface-raised); color: var(--text); text-align: center; text-decoration: none; }
.ops-quick-grid strong { color: var(--brand-strong); font-size: 22px; }
.ops-quick-grid span { color: var(--text-soft); font-size: 9px; font-weight: 750; line-height: 1.3; }
.ops-item-list { display: grid; gap: 9px; }
.ops-item { display: grid; width: 100%; min-height: 72px; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 17px; padding: 11px 12px; background: var(--surface-raised); color: var(--text); text-align: left; text-decoration: none; }
.ops-item > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.ops-item small, .ops-item em { overflow: hidden; color: var(--text-soft); font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.ops-item strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ops-item-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); font-size: 12px; font-weight: 900; }
.ops-item.high, .ops-item.urgent { border-color: color-mix(in srgb, var(--warning) 45%, var(--line)); }
.ops-deep-link { display: flex; min-height: 50px; align-items: center; justify-content: center; margin-top: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); color: var(--brand-strong); font-size: 12px; font-weight: 800; text-decoration: none; }
.message-recipient-field { display: grid; gap: 6px; margin-bottom: 12px; }
.message-recipient-field > span, .message-composer .field > span { color: var(--text-soft); font-size: 11px; font-weight: 700; }
.message-recipient-field select, .message-composer textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px; background: var(--surface-soft); color: var(--text); }
.message-thread { display: grid; max-height: 50dvh; min-height: 220px; gap: 8px; overflow-y: auto; border: 1px solid var(--line); border-radius: 18px; padding: 11px; background: var(--surface-soft); }
.message-bubble { width: fit-content; max-width: 86%; border: 1px solid var(--line); border-radius: 15px 15px 15px 4px; padding: 9px 11px; background: var(--surface-raised); }
.message-bubble.mine { justify-self: end; border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); border-radius: 15px 15px 4px 15px; background: var(--brand-soft); }
.message-bubble small { display: block; margin-bottom: 4px; color: var(--text-soft); font-size: 9px; }
.message-bubble p { font-size: 13px; line-height: 1.4; }
.message-composer { display: grid; gap: 9px; margin-top: 11px; }
.message-composer .field { display: grid; gap: 6px; }
.message-composer textarea { resize: vertical; }
.theme-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme-choices button { min-height: 48px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); font-size: 12px; font-weight: 800; }
.theme-choices button.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); box-shadow: inset 0 0 0 1px var(--brand); }

.bottom-nav { position: fixed; z-index: 40; right: max(0px, calc((100vw - 520px) / 2)); bottom: 0; left: max(0px, calc((100vw - 520px) / 2)); display: grid; height: calc(var(--nav-height) + env(safe-area-inset-bottom)); grid-template-columns: repeat(4, 1fr); padding: 7px 8px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(20px); }
.bottom-nav button { position: relative; display: grid; min-height: 58px; place-items: center; align-content: center; gap: 3px; border: 0; border-radius: 14px; background: transparent; color: var(--text-soft); }
.bottom-nav svg { width: 21px; height: 21px; }
.bottom-nav span { font-size: 9px; font-weight: 750; }
.bottom-nav button.is-active { background: var(--brand-soft); color: var(--brand-strong); }
.bottom-nav b { top: 3px; left: calc(50% + 8px); }
.nav-badge { position: absolute; top: 3px; left: calc(50% + 7px); display: grid; min-width: 17px; height: 17px; place-items: center; border: 2px solid var(--surface); border-radius: 999px; padding: 0 4px; background: var(--warning); color: #fff; font-size: 8px !important; }
.toast { position: fixed; z-index: 120; right: 18px; bottom: calc(var(--nav-height) + 18px + env(safe-area-inset-bottom)); left: 18px; max-width: 484px; min-height: 48px; margin: auto; border-radius: 15px; padding: 14px 16px; background: var(--text); color: var(--surface); box-shadow: var(--shadow); font-size: 12px; font-weight: 750; text-align: center; }

body.modal-locked { overflow: hidden; }
.summary-modal, .sample-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 14px; }
.summary-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(3, 10, 21, .76); backdrop-filter: blur(7px); }
.summary-dialog, .sample-dialog { position: relative; z-index: 1; width: min(100%, 488px); max-height: calc(100dvh - 28px); overflow: auto; border: 1px solid var(--line-strong); border-radius: 23px; padding: 16px; background: var(--surface-raised); box-shadow: 0 24px 80px rgba(0, 0, 0, .45); }
.summary-dialog-head { display: grid; grid-template-columns: 1fr 42px; align-items: start; gap: 10px; }
.summary-dialog-head h2 { font-size: 18px; }
.modal-close { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 13px; padding: 0; background: var(--surface-soft); color: var(--text-soft); font-size: 24px; line-height: 1; }
.summary-lines { display: grid; gap: 8px; margin: 14px 0; padding-left: 20px; color: var(--text-soft); font-size: 12px; line-height: 1.45; }
.modal-note { margin: 13px 0; color: var(--text-soft); font-size: 10px; line-height: 1.5; }
.sample-dialog > img { display: block; width: 100%; max-height: 62dvh; margin-top: 14px; border-radius: 16px; background: var(--surface-soft); object-fit: contain; }

@media (min-width: 700px) {
    body { padding: 24px 0; }
    .app-shell { min-height: calc(100dvh - 48px); border-radius: 28px; overflow: hidden; }
    .app-header { top: 24px; }
    .bottom-nav { right: calc((100vw - 520px) / 2); bottom: 24px; left: calc((100vw - 520px) / 2); border-radius: 0 0 28px 28px; }
    .prototype-note { border-radius: 10px 10px 0 0; }
}

@media (max-width: 370px) {
    .app-main { padding-right: 13px; padding-left: 13px; }
    .app-header { padding-right: 13px; padding-left: 13px; }
    .theme-toggle span { display: none; }
    .report-header { grid-template-columns: 42px 1fr; }
    .report-header .save-state { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
