:root {
  --bg: #222a32;
  --surface: #303b46;
  --raised: #3c4956;
  --text: #f5f7fa;
  --muted: #bdc9d4;
  --accent: #ecc18a;
  --ink: #232a31;
  --line: #647586;
  --green: #b0e2c1;
  --red: #ffc0c5;
  --paper: #f3f3f0;
  --focus: #8bd5ff;
}

body { -webkit-font-smoothing: antialiased; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a, input, select, textarea { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button:disabled, input:disabled, select:disabled { opacity: 1; cursor: not-allowed; }
.device button:disabled, .device input:disabled, .device select:disabled { color: #b2bec9; background-color: #29343e; border-color: #566674; }
.device button.primary:disabled { background: #85745e; color: #17212a; }
.device button:disabled .i { opacity: .7; }
.device input, .device select, .device textarea { color-scheme: dark; }
.review { max-width: 1370px; padding: 32px; }
.review-head { margin-bottom: 30px; gap: 24px; }
.review-head h1 { font-size: 28px; line-height: 1.3; }
.review-head p { max-width: 620px; }
.review-links { flex-wrap: wrap; }
.review-links a { min-height: 44px; display: inline-flex; align-items: center; border-radius: 12px; }
.workbench { grid-template-columns: 174px minmax(0, 402px) minmax(250px, 1fr); gap: 30px; }
.review-menu { gap: 3px; }
.review-menu button { padding: 12px 10px; border-radius: 10px; }
.review-menu button.active { background: #e3e7e8; box-shadow: none; }
.review-menu button.active span { color: #526674; }
.phone-wrapper { width: 100%; min-width: 0; }
.device { width: 100%; max-width: 402px; border-color: #1b2229; border-radius: 32px; box-shadow: 0 16px 46px #2734421a; }
.statusbar { padding-inline: 24px; }
.island { left: 50%; transform: translateX(-50%); }
.home-indicator { left: 50%; transform: translateX(-50%); bottom: 8px; height: 4px; width: 120px; }
.app { color: var(--text); font-size: 14px; line-height: 1.45; }
.page-head { min-height: 66px; padding: 8px 16px 10px; flex-shrink: 0; }
.page-head > div { min-width: 0; }
.page-head h2 { font-size: 22px; line-height: 1.35; letter-spacing: -.4px; }
.page-head h3 { font-size: 15px; line-height: 1.35; }
.page-head .muted { margin-top: 2px; font-size: 12px; }
.context-bar { min-height: 48px; padding: 10px 12px; border-radius: 12px; gap: 8px; }
.context-bar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.context-bar .i:first-child { color: var(--muted); font-size: 16px; }
.context-bar .i:last-child { font-size: 10px; }
.content { padding-bottom: 18px; overscroll-behavior: contain; }
.btn, .icon-btn, .chips button, .text-btn, .segmented button { min-height: 44px; }
.btn, .icon-btn, .context-bar, .search, .camera-search, .chips button, .choice, .selection-option, .form-field input, .form-field textarea, .form-field select { border-radius: 12px; }
.btn { padding: 10px 12px; font-size: 13px; line-height: 1.4; font-weight: 500; }
.btn.primary { font-weight: 600; }
.btn.ghost { border-color: var(--line); background: transparent; }
.icon-btn { height: 44px; width: 44px; flex: 0 0 44px; }
.text-btn { font-size: 13px; }
.tabs { gap: 24px; border-bottom-color: #50606c; margin-bottom: 16px; }
.tabs button { padding: 10px 0; font-size: 14px; }
.nav { min-height: 64px; height: 64px; display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); background: #29343e; padding: 0 4px; border-top-color: #485660; }
.nav button { min-width: 44px; min-height: 64px; height: 64px; gap: 5px; font-size: 10px; letter-spacing: .01em; white-space: nowrap; border-radius: 0; line-height: 1.2; }
.nav button .i { font-size: 19px; height: 21px; }
.nav button.active { color: var(--accent); }
.camera-card { margin-bottom: 16px; border-radius: 12px; }
.camera-caption { padding: 12px; gap: 8px; align-items: flex-start; }
.camera-caption > div { min-width: 0; }
.camera-caption strong { font-size: 14px; line-height: 1.4; }
.camera-caption p { font-size: 11px; line-height: 1.5; }
.camera-caption .status { padding-top: 2px; font-size: 11px; }
.favorite { width: 44px; height: 44px; border-radius: 12px; background: #17232de8; border-color: #63717c; }
.segmented { border: 1px solid #455461; background: #1c242c; border-radius: 12px; margin-bottom: 12px; }
.segmented button { min-height: 44px; height: 44px; border-radius: 9px; font-size: 13px; }
.segmented .active { background: var(--raised); box-shadow: none; }
.video-badge { font-size: 11px; border-radius: 6px; padding: 5px 8px; background: #15212bec; }
.media { background: #101820; overflow: hidden; }
.media-cover { background: #111c29db; gap: 10px; }
.media-cover p { max-width: 280px; }
.action-row { gap: 8px; }
.action-row .btn { padding-inline: 8px; gap: 6px; }
.panel { background: #2b3640; padding: 14px; border-radius: 12px; }
.panel h3 { font-size: 14px; }
.group { border-radius: 12px; margin-bottom: 20px; }
.list-row { padding: 13px 12px; min-height: 64px; gap: 10px; }
.list-row strong { font-size: 14px; }
.list-row small { font-size: 12px; line-height: 1.5; }
.list-row > .i:first-child { color: var(--muted); font-size: 17px; }
.list-row > .i:last-child { color: var(--muted); }
.list-row > span:last-child { max-width: 70%; }
.list-row .btn { flex-shrink: 0; }
.group-title { font-size: 11px; letter-spacing: .07em; }
.pill, .subtle-tag { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 6px; background: #1f2a34; color: var(--muted); font-size: 11px; line-height: 1.4; }
.date-row .btn { font-size: 13px; }
.timeline { background: #303c47; border-radius: 12px; }
.time-readout { font-size: 23px; }
.time-ticks { font-size: 11px; }
.time-zone, .snapshot-zone { font-size: 11px; }
.snapshot-date { padding-bottom: 6px; gap: 6px; }
.snapshot-date-picker { gap: 8px; padding-inline: 10px; font-size: 13px; }
.snapshot-date > .text-btn { font-size: 12px; }
.snapshot-toolbar { align-items: center; border-bottom-color: #485660; }
.snapshot-spacing { gap: 6px; }
.snapshot-spacing label { font-size: 11px; }
.snapshot-spacing select { width: 82px; min-height: 44px; border-radius: 10px; padding-inline: 7px; background: var(--surface); }
.snapshot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 7px; }
.snapshot { border-radius: 8px; background: #2f3b46; }
.snapshot img { object-fit: contain; }
.snapshot-label { min-height: 32px; padding: 5px 6px; gap: 3px; }
.snapshot time { font-size: 13px; font-weight: 500; }
.snapshot-label .i { font-size: 11px; width: 12px; }
.snapshot.selected { box-shadow: 0 0 0 1px var(--accent); background: #3b3b37; }
.search, .camera-search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; background: var(--surface); border: 1px solid #5c6d7b; margin-bottom: 14px; }
.search:focus-within, .camera-search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.search input, .camera-search input { width: 100%; flex: 1; min-width: 0; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); font-size: 13px; outline: 0; }
.search input:focus-visible, .camera-search input:focus-visible { outline: 0; }
.search input::placeholder, .camera-search input::placeholder { color: var(--muted); }
.search .i, .camera-search .i { color: var(--muted); font-size: 15px; }
.camera-search > .icon-btn { margin-right: -10px; }
.chips { gap: 7px; }
.chips button { padding: 8px 10px; font-size: 12px; }
.event-row { gap: 10px; }
.event-row img { width: 91px; border-radius: 8px; }
.event-row strong { font-size: 14px; }
.event-row p { font-size: 11px; }
.event-row time { font-size: 12px; }
.clip-card { border-radius: 12px; }
.clip-meta { font-size: 12px; }
.system-card { padding: 14px; border-radius: 12px; }
.system-card h3 { font-size: 15px; }
.system-card .fault { font-size: 13px; }
.system-meta { font-size: 12px; }
.filter-summary { border-radius: 10px; background: #40392e; color: #f2d6ae; padding-block: 3px; }
.map-sheet { border-radius: 16px 16px 0 0; box-shadow: 0 -4px 20px #10192325; }
.map-sheet h3 { font-size: 16px; }
.map-cameras button { border-radius: 10px; }
.empty { padding: 36px 12px; }
.empty h3 { font-size: 17px; }
.empty p { font-size: 13px; }
.sheet-backdrop { background: #0c1524b8; }
.sheet { background: #303c47; border-radius: 20px 20px 0 0; padding: 10px 16px 36px; max-height: calc(100% - 8px); box-shadow: 0 -8px 30px #10192355; }
.sheet header { margin-bottom: 10px; min-height: 44px; }
.sheet h2 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.sheet h3 { font-size: 13px; }
.sheet p { font-size: 13px; line-height: 1.55; }
.sheet-body { overscroll-behavior: contain; padding: 3px; margin: -3px; }
.sheet-footer { padding-top: 16px; gap: 8px; }
.sheet-footer .btn { min-height: 46px; }
.grabber { width: 32px; margin-bottom: 10px; background: #8b9aa7; }
.choice { min-height: 64px; border-color: transparent; padding: 13px 12px; }
.choice.selected { border-color: var(--accent); background: #3b403f; }
.choice strong { font-size: 14px; }
.choice small { font-size: 12px; line-height: 1.4; }
.form-field { font-size: 13px; }
.form-field input, .form-field textarea, .form-field select { min-height: 46px; padding: 10px 12px; border-color: #70818f; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #aebcc8; }
.check-row { font-size: 14px; min-height: 52px; }
.check-row input { width: 21px; height: 21px; flex-shrink: 0; }
.toast { background: #edf3f7; color: #202b34; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.details { min-width: 0; }
.details h2 { font-size: 21px; }
.details p, .details li { font-size: 13px; line-height: 1.75; color: #475662; }
.details h3 { color: #546371; }
.details .priority { border-radius: 6px; background: #e9dfd0; color: #604e35; }
.details .review-nav { gap: 8px; }
.details .review-nav button { min-height: 44px; border-radius: 12px; padding-inline: 12px; color: #25303b; background: #fff; }
.details .prototype-note { border-radius: 12px; background: #e6eaea; }
.details .evidence { border-color: #c6ced2; }
.review-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: #536472; }
.scenario-panel { padding: 16px; margin: 0 0 22px; border: 1px solid #c9d0d4; border-radius: 14px; background: #fff; color: #26343f; }
.scenario-panel label { display: block; color: #344550; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.scenario-panel .review-kicker { margin-bottom: 8px; }
.scenario-select, .scenario-select select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #8799a6; border-radius: 10px; color: #26343f; background: #f7f9fa; font-size: 13px; line-height: 1.5; }
div.scenario-select { padding: 0; border: 0; }
.scenario-hint, .details .scenario-hint { font-size: 12px; color: #536472; line-height: 1.6; margin-top: 10px; }
.scenario-panel .btn { color: #26343f; background: #e7edf0; margin-top: 10px; }
.scenario-panel .btn.primary { color: #fff; background: #2b3f4d; }
.state-banner { display: flex; align-items: flex-start; gap: 9px; flex-shrink: 0; padding: 11px 12px; margin: 0 16px 12px; border: 1px solid #60788d; border-radius: 10px; background: #283c4c; color: #deedfa; font-size: 12px; line-height: 1.5; }
.content > .state-banner { margin-inline: 0; }
.state-banner > .i { width: 18px; font-size: 14px; margin-top: 2px; }
.state-banner > div, .state-banner > span { min-width: 0; }
.state-banner strong { display: block; color: inherit; font-size: 12px; }
.state-banner p { margin-top: 2px; font-size: 12px; color: inherit; }
.state-banner.warning { background: #403a2f; border-color: #8c754f; color: #f4d5a9; }
.state-banner.danger { background: #46343c; border-color: #906472; color: #ffd1d6; }
.state-banner.success { background: #2b4039; border-color: #597f6e; color: #bee9cc; }
.state-banner .text-btn, .state-banner .retry-inline { margin: -5px 0 -5px auto; color: inherit; flex-shrink: 0; }
.state-view { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 38px 20px; min-height: 270px; max-width: 370px; margin: auto; }
.state-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px; background: var(--surface); color: var(--muted); }
.state-icon .i { font-size: 23px; }
.state-view h3 { font-size: 18px; line-height: 1.4; font-weight: 600; margin-bottom: 8px; }
.state-view p { font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 292px; }
.state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; width: 100%; }
.state-actions .btn { min-width: 132px; }
.page-loading, .page-error { flex: 1; min-height: 0; overflow: auto; }
.page-error { display: flex; flex-direction: column; }
.loading-layout { display: flex; flex-direction: column; gap: 12px; padding: 8px 0 18px; }
.skeleton { display: block; width: 100%; min-height: 44px; background: #384550; border-radius: 10px; }
.skeleton.wide { width: 100%; height: 48px; }
.skeleton.line { width: 72%; min-height: 12px; height: 12px; border-radius: 4px; }
.skeleton.short { width: 42%; min-height: 12px; height: 12px; border-radius: 4px; }
.skeleton.preview { width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9; background: #2e3b46; }
.loading-layout .camera-card { padding-bottom: 14px; margin-bottom: 4px; }
.loading-layout .camera-card .line, .loading-layout .camera-card .short { margin: 14px 12px 0; }
.spinner { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spinner-turn 1s linear infinite; }
.state-icon .spinner { width: 25px; height: 25px; flex-basis: 25px; }
@keyframes spinner-turn { to { transform: rotate(360deg); } }
.inline-feedback { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; padding: 11px 12px; border-radius: 10px; background: #273d36; color: #bee9cc; font-size: 12px; line-height: 1.5; }
.inline-feedback .i { font-size: 14px; width: 18px; margin-top: 2px; }
.inline-feedback.danger { background: #45343c; color: #ffd1d6; }
.inline-feedback.warning { background: #403a2f; color: #f4d5a9; }
.async-button { min-height: 44px; gap: 8px; }
.async-button .spinner { width: 16px; height: 16px; flex-basis: 16px; }
.media-state { position: absolute; inset: auto 0 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 14px 12px; background: linear-gradient(transparent, #0c1627ed 23%); color: #f6f8fb; font-size: 13px; line-height: 1.4; }
.media-state > strong { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.media-state p { max-width: 300px; color: #d0dce7; font-size: 12px; }
.media-state .btn { margin-top: 3px; min-height: 44px; padding: 8px 10px; }
.media-state .row { gap: 8px; }
.media-status-bar { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; color: var(--muted); background: #1e2730; font-size: 11px; line-height: 1.4; flex-shrink: 0; }
.media-status-bar strong { color: var(--text); font-weight: 500; }
.selection-list { display: grid; gap: 9px; margin: 12px 0; }
.selection-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px; border: 1px solid #647586; background: var(--bg); color: var(--text); text-align: left; }
.selection-option.selected { border-color: var(--accent); background: #3b403f; }
.selection-option.selected > .i:last-child { color: var(--accent); }
.selection-option > span, .selection-option > div { min-width: 0; flex: 1; }
.selection-option strong { display: block; font-size: 14px; font-weight: 500; }
.selection-option p, .selection-option small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.operation-card { padding: 16px; margin: 14px 0; border-radius: 12px; background: var(--bg); }
.operation-card h3 { margin: 0 0 7px; font-size: 15px; }
.operation-card p { margin-top: 6px; }
.operation-stage { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 13px; line-height: 1.5; }
.operation-stage .i { color: var(--accent); }
.operation-progress { height: 5px; border-radius: 3px; overflow: hidden; background: #465562; margin: 16px 0 10px; }
.operation-progress > span, .operation-progress > div { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.operation-card .btn { margin-top: 14px; }
.gate-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 28px 24px; overflow: auto; }
.gate-brand { display: flex; justify-content: center; align-items: center; gap: 9px; color: var(--accent); font-family: Poppins, sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -.25px; margin-bottom: 32px; }
.gate-brand .i { font-size: 24px; width: 30px; }
.gate-screen .state-view { padding: 12px 0; min-height: 0; margin: 0 auto; }
.gate-screen .form-field { text-align: left; }
.gate-screen > .btn { width: 100%; margin-top: 14px; }
.gate-screen .state-actions { flex-direction: column; }
.gate-screen .muted { text-align: center; }
.fullscreen-view { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; background: #0f1821; color: var(--text); }
.fullscreen-head { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 8px 12px; background: #1e2832; flex-shrink: 0; }
.fullscreen-head h3 { font-size: 14px; font-weight: 500; }
.fullscreen-head p { font-size: 12px; color: var(--muted); }
.fullscreen-content { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #0b1119; }
.fullscreen-content > img, .fullscreen-content .media { width: 100%; height: 100%; object-fit: contain; }
.fullscreen-content .media img { object-fit: contain; }
.fullscreen-controls { flex-shrink: 0; min-height: 64px; padding: 10px 16px; display: flex; align-items: center; justify-content: center; gap: 12px; background: #1e2832; }
.fullscreen-controls .btn { min-width: 44px; }
.bottom-safe { min-height: 16px; padding-bottom: env(safe-area-inset-bottom, 0px); flex-shrink: 0; }
.retry-inline { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: transparent; color: var(--accent); font-size: 12px; font-weight: 600; }
.action-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.action-status.success { color: var(--green); }
.action-status.danger { color: var(--red); }
.action-status .i { width: 17px; font-size: 13px; }
.compact-cameras .camera-search, .compact-cameras .state-banner, .compact-cameras .state-view, .compact-cameras .loading-layout { grid-column: 1 / -1; }
.device.landscape, .landscape .device { width: 874px; max-width: none; height: 402px; }
.device.landscape .app, .landscape .device .app { height: 326px; }
.phone-wrapper:has(.device.landscape) { width: 874px; }
.workbench:has(.device.landscape) { grid-template-columns: 174px minmax(0, 1fr); }
.workbench:has(.device.landscape) .details { grid-column: 2; max-width: 874px; }
.device.landscape .fullscreen-head, .landscape .device .fullscreen-head { min-height: 52px; height: 52px; }
.device.landscape .fullscreen-controls, .landscape .device .fullscreen-controls { min-height: 58px; height: 58px; padding-block: 7px; }
.phone-only .scenario-panel { display: none; }
.phone-only, .phone-only body { width: 100%; min-height: 100%; background: var(--bg); }
.phone-only .review { padding: 0; max-width: none; }
.phone-only .phone-wrapper { width: 100%; max-width: none; }
.phone-only .device { width: 100%; max-width: none; height: 100vh; height: 100dvh; min-height: 320px; border-radius: 0; }
.phone-only .app { height: calc(100% - 76px - env(safe-area-inset-bottom, 0px)); }
.phone-only .home-indicator { bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
.phone-only .sheet { bottom: calc(-24px - env(safe-area-inset-bottom, 0px)); padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); }
.phone-only .device.landscape, .phone-only .landscape .device { width: 100%; height: 100vh; height: 100dvh; }
.phone-only .device.landscape .app, .phone-only .landscape .device .app { height: calc(100% - 76px - env(safe-area-inset-bottom, 0px)); }

@media (hover: hover) {
  .device .btn:not(.primary):not(:disabled):hover, .device .icon-btn:not(:disabled):hover { background-color: #41515e; }
  .device .btn.primary:not(:disabled):hover { background-color: #f6d3a6; }
  .review-menu button:hover { background: #e7ebed; color: #25303b; }
  .selection-option:hover, .choice:hover { border-color: #9daab6; }
}

@media (max-width: 1160px) {
  .review { padding: 28px 24px; }
  .workbench { grid-template-columns: 150px minmax(0, 402px); justify-content: center; gap: 24px; }
  .details { grid-column: 2; }
  .phone-wrapper { position: static; }
  .review-head { align-items: flex-start; }
  .phone-wrapper:has(.device.landscape) { width: 100%; }
  .device.landscape, .landscape .device { width: 100%; }
  .workbench:has(.device.landscape) { grid-template-columns: 140px minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .review { padding: 22px 16px; }
  .review-head { display: block; margin-bottom: 20px; }
  .review-head h1 { font-size: 24px; letter-spacing: -.6px; }
  .review-head p { font-size: 13px; }
  .review-links { margin-top: 16px; gap: 8px; }
  .review-links a { padding: 10px 12px; font-size: 12px; }
  .workbench, .workbench:has(.device.landscape) { display: flex; flex-direction: column; align-items: center; gap: 22px; }
  .review-menu { position: static; display: flex; width: 100%; max-width: 100%; overflow-x: auto; gap: 3px; scrollbar-width: none; }
  .review-menu button { white-space: nowrap; flex-shrink: 0; font-size: 12px; }
  .review-menu::-webkit-scrollbar { display: none; }
  .phone-wrapper { width: min(402px, 100%); max-width: 100%; }
  .details, .workbench:has(.device.landscape) .details { width: 100%; max-width: 402px; }
  .device { border-radius: 28px; }
  .scenario-panel { margin-bottom: 20px; }
  .device.landscape, .landscape .device { width: 100%; }
  .device.landscape .fullscreen-head, .landscape .device .fullscreen-head { min-height: 58px; height: auto; }
  .device.landscape .fullscreen-controls, .landscape .device .fullscreen-controls { min-height: 58px; gap: 7px; padding-inline: 10px; }
}

@media (max-width: 374px) {
  .review { padding-inline: 10px; }
  .statusbar { padding-inline: 18px; }
  .page-head, .snapshot-date, .snapshot-toolbar { padding-inline: 12px; }
  .content, #snapshot-scroll { padding-inline: 12px; }
  .context-bar { margin-inline: 12px; width: calc(100% - 24px); }
  .segmented { margin-inline: 12px; }
  .state-banner { margin-inline: 12px; }
  .camera-caption { padding: 10px; }
  .camera-caption .status { font-size: 10px; }
  .snapshot-date-picker { padding-inline: 8px; font-size: 12px; gap: 5px; }
  .snapshot-date-picker .i:first-child { font-size: 13px; width: 15px; }
  .snapshot-date > .text-btn { font-size: 11px; gap: 4px; }
  .snapshot-spacing { gap: 5px; }
  .snapshot-spacing label { font-size: 10px; }
  .snapshot-spacing select { width: 73px; font-size: 12px; padding-inline: 5px; }
  .snapshot-zone { font-size: 10px; }
  .snapshot-grid { gap: 8px 6px; }
  .snapshot-label { padding-inline: 4px; }
  .snapshot time { font-size: 12px; }
  .action-row .btn { padding-inline: 6px; font-size: 12px; }
  .action-row .i { font-size: 14px; width: 17px; }
  .event-row img { width: 76px; }
  .sheet { padding-inline: 12px; }
  .state-view { padding-inline: 12px; }
  .nav button { font-size: 9px; }
  .compact-cameras .content { gap: 10px; }
  .compact-cameras .camera-caption strong { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }
  .spinner { animation: none; }
}

.snapshot-spacing > span { color:var(--muted);font-size:11px; }
.snapshot-spacing .btn { padding:8px;font-size:12px; }
.preview-unavailable { min-height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:var(--surface);color:var(--muted); }
.snapshot .preview-unavailable { min-height:90px; }
.camera-search { margin-bottom:10px; }
.inline-feedback { display:block; }
.inline-feedback .row { flex-wrap:wrap;gap:8px; }
.inline-feedback p { color:inherit; }
.inline-feedback .text-btn { color:inherit; }
.action-status { padding:10px 0;flex-shrink:0; }
.action-status > span:not(.spinner) { flex:1; }
.coverage { display:flex;height:5px;margin:8px 0;gap:3px; }
.coverage span { flex:1;background:var(--green);border-radius:3px; }
.coverage .coverage-gap { flex:.12;background:#58636b; }
.operation-stage { padding:0 12px 12px; }
.control-pad { display:flex;gap:8px;justify-content:center;padding:12px 0; }
.gate-brand { display:block;text-align:left;margin:24px 0 30px; }
.gate-brand .eyebrow { color:var(--accent);margin-bottom:12px; }
.gate-brand h2 { color:var(--text);font-size:25px;line-height:1.3; }
.gate-actions { display:grid;gap:10px; }
.gate-content .state-view { padding-inline:8px; }
.media-cover { padding:12px;text-align:center; }
.media-cover strong { font-size:15px; }
.media-cover p { font-size:12px; }
.media-cover .row { gap:8px;justify-content:center; }
.media-cover.with-last-frame { background:#111c29dd; }
.map .state-view { background:var(--bg);border-radius:12px;position:relative;margin:16px; }
.map-status .state-banner { position:relative;z-index:2; }
[hidden] { display:none !important; }
.fullscreen-controls { flex-wrap:wrap; }
.fullscreen-controls .action-status,.fullscreen-controls .inline-feedback { flex-basis:100%;margin:0; }
.fullscreen-view .toast { z-index:20; }
.media:has(.media-cover) { min-height:210px; }
.device.landscape .app { overflow-y:auto; }
.device.landscape .app > .content { flex-shrink:0;overflow:visible; }
.device.landscape .app > .nav { position:sticky;bottom:0;z-index:3; }
.device.landscape .fullscreen-content .media { min-height:0; }
.device.landscape .fullscreen-controls { height:auto;min-height:58px; }

.device.landscape .app:has(.fullscreen-view) { overflow:hidden; }

.sheet .clip-time-range { font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums;margin-block:8px; }
.sheet .clip-format { font-size:12px;color:var(--muted); }
.clip-detail-meta { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-block:12px; }
.clip-status,.clip-meta > .status,.clip-meta > .warn,.clip-meta > .offline { display:inline-flex;align-items:center;gap:6px;align-self:flex-start;width:fit-content;padding:3px 8px;border-radius:6px;background:color-mix(in srgb,currentColor 10%,transparent);font-size:12px;font-weight:600;line-height:18px; }
.clip-status .i,.clip-meta > span .i { width:12px;font-size:12px; }
.sheet .clip-status-message { margin-block:12px;color:var(--muted);font-size:14px; }
