@import url("https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600&display=swap");

:root {
  --paper: #f7f8fc;
  --white: #fff;
  --soft: #f0f2f8;
  --ink: #201851;
  --muted: #606782;
  --brand: #28166f;
  --brand-hover: #39248f;
  --brand-soft: #eeeafb;
  --yellow: #f8c300;
  --border: #e0e3ed;
  --shadow: 0 16px 42px rgba(40,22,111,.08);
}
* { box-sizing: border-box; }
::selection { color: var(--brand); background: var(--yellow); }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #9d90c5 var(--paper); scrollbar-gutter: stable; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #9d90c5; border: 2px solid var(--paper); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }
::-webkit-scrollbar-corner { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 14px/22px "Public Sans", "Segoe UI", sans-serif; }
body.player-expanded { overflow: hidden; }
.page-loader { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; background: white; transition: opacity .3s ease, visibility .3s; animation: loader-fallback 0s 4s forwards; }
.page-loader img { width: clamp(120px, 10vw, 144px); height: auto; object-fit: contain; animation: loader-breathe 1.2s ease-in-out infinite; }
body.page-ready .page-loader { opacity: 0; visibility: hidden; pointer-events: none; }
body.motion-ready .reveal-target { opacity: 0; transition: opacity .7s ease; }
body.motion-ready .reveal-target:not(.reveal-static) { transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
body.motion-ready .reveal-target.is-visible { opacity: 1; }
body.motion-ready .reveal-target.is-visible:not(.reveal-static) { transform: none; }
@keyframes loader-breathe { 0%, 100% { opacity: .62; transform: scale(.94); } 50% { opacity: 1; transform: scale(1); } }
@keyframes loader-fallback { to { visibility: hidden; pointer-events: none; } }
a { color: inherit; text-decoration: none; }
.copy-mobile { display: none; }
.icon-arrow, .icon-stop { display: inline-block; width: 16px; height: 16px; flex: none; background: currentColor; vertical-align: -3px; }
.icon-arrow { -webkit-mask: url("/static/img/arrow-up-right-01.svg") center / contain no-repeat; mask: url("/static/img/arrow-up-right-01.svg") center / contain no-repeat; }
.icon-stop { -webkit-mask: url("/static/img/stop.svg") center / contain no-repeat; mask: url("/static/img/stop.svg") center / contain no-repeat; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.container { width: min(1240px, calc(100% - 64px)); margin: auto; }

/* Shared shell */
#nav { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; color: var(--brand); font-size: 17px; font-weight: 600; line-height: 22px; letter-spacing: -.025em; }
.brand-mark { width: 48px; height: 52px; object-fit: contain; }
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 500; line-height: 16px; letter-spacing: .09em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.nav-links a, .mobile-nav a { color: var(--muted); border-radius: 9px; font-size: 13px; font-weight: 500; line-height: 20px; }
.nav-links a { padding: 10px 12px; }
.nav-links a:hover, .nav-links a.active, .mobile-nav a:hover, .mobile-nav a.active { color: var(--brand); background: var(--brand-soft); }
.mobile-nav { display: none; }
.nav-btn, .btn-primary, .btn-secondary { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; line-height: 20px; transition: background .18s, transform .18s; }
.nav-btn, .btn-primary { color: white; background: var(--brand); }
.nav-btn:hover, .btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-secondary { color: var(--brand); background: white; border-color: #cbc4e5; }
.btn-secondary:hover { background: var(--brand-soft); }
.footer { padding: 64px 0 30px; color: #dbe5ed; background: #1b164b; font-size: 13px; line-height: 21px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr .65fr; gap: clamp(32px, 6vw, 100px); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 42px; height: 45px; object-fit: contain; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: white; font-size: 17px; font-weight: 600; line-height: 24px; }
.footer-brand span { color: #b9c8d4; font-size: 12px; line-height: 19px; }
.footer-copy { max-width: 45ch; margin: 22px 0 0; color: #c1cfd9; font-size: 13px; line-height: 22px; }
.footer-heading { margin: 0 0 20px; color: white; font-size: 16px; font-weight: 600; line-height: 24px; }
.footer-detail { max-width: 35ch; margin: 0 0 15px; color: #c1cfd9; font-size: 13px; line-height: 22px; }
.footer-external { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--yellow); font-size: 13px; font-weight: 500; line-height: 20px; }
.footer-external:hover, .footer-links a:hover { color: white; text-decoration: underline; }
.footer-links { display: grid; justify-items: start; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: #c1cfd9; font-size: 13px; line-height: 20px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; color: #a9b9c6; border-top: 1px solid #ffffff30; font-size: 12px; line-height: 19px; }

/* Home */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #10151d; }
.hero::before { content: ""; position: absolute; z-index: 0; inset: 0; background: url("/static/img/traffic-hero.png") center 55% / cover no-repeat; filter: grayscale(1) brightness(.78); }
.hero::after { content: ""; position: absolute; z-index: 0; inset: 0; background: linear-gradient(120deg, rgba(23,49,103,.46), rgba(40,22,111,.42)); pointer-events: none; }
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; min-height: 680px; padding: 118px 0 42px; text-align: center; }
.hero-intro { display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 900px; margin: 24px 0 18px; color: white; font-size: clamp(46px, 5.3vw, 76px); font-weight: 600; line-height: 1.07; letter-spacing: -.045em; text-wrap: balance; }
.grad { color: white; white-space: nowrap; }
.hero p { max-width: 64ch; margin: 0; color: #eceaf4; font-size: 15px; line-height: 25px; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-actions .btn-primary { color: var(--brand); background: var(--yellow); }
.hero-actions .btn-primary:hover { background: #ffda35; }
.hero-actions .btn-secondary { color: white; background: #ffffff1c; border-color: #ffffff88; }
.hero-actions .btn-secondary:hover { background: #ffffff33; }
.hero-stats { position: relative; z-index: 1; background: #1b164b; }
.stats-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-stat { min-width: 0; padding: 25px 30px 27px; border-inline-start: 1px solid #ffffff1e; }
.mini-stat:last-child { border-inline-end: 1px solid #ffffff1e; }
.mini-stat strong { display: block; color: white; font-size: 32px; font-weight: 600; line-height: 37px; letter-spacing: -.035em; white-space: nowrap; }
.mini-stat span { display: block; margin-top: 3px; color: #c8c5dd; font-size: 12px; line-height: 18px; }
.cam-preview img, .cam-preview video { display: block; width: 100%; height: 100%; object-fit: cover; }
.cctv-section { background: #f1f8fd; }
#cctv { scroll-margin-top: 78px; }
.cctv-heading { max-width: 750px; margin: 0 auto 38px; text-align: center; }
.cctv-section .cctv-heading h2 { margin: 8px 0 12px; font-size: 34px; line-height: 42px; }
.cctv-heading p { margin: 0; color: var(--muted); font-size: 15px; line-height: 25px; }
.cctv-bottom { display: flex; justify-content: center; margin-top: 32px; }
.about-section { background: white; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(36px, 6vw, 88px); }
.about-visual { min-width: 0; margin: 0; }
.about-visual img { display: block; width: 100%; aspect-ratio: 5/4; object-fit: cover; object-position: center; border-radius: 16px; }
.about-visual figcaption { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 18px; }
.about-section .about-copy h2 { max-width: 17ch; margin: 10px 0 16px; font-size: clamp(30px, 3.5vw, 45px); font-weight: 600; line-height: 1.14; letter-spacing: -.035em; }
.about-copy > p { max-width: 56ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 24px; }
.capability-list { margin-top: 26px; border-top: 1px solid var(--border); }
.capability-list > div { display: grid; grid-template-columns: 35px 1fr; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.capability-list span { color: var(--brand); font-size: 12px; font-weight: 600; line-height: 24px; }
.capability-list h3 { margin: 0 0 2px; font-size: 15px; font-weight: 600; line-height: 24px; }
.capability-list p { margin: 0; color: var(--muted); font-size: 12px; line-height: 20px; }
.benefits-section { background: #f2f0fa; }
.benefits-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.benefits-section .benefits-head h2 { max-width: 18ch; margin: 10px 0 0; font-size: clamp(30px, 3.4vw, 43px); line-height: 1.16; }
.benefits-head > p { max-width: 44ch; margin: 0 0 3px; color: var(--muted); font-size: 14px; line-height: 24px; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 35px; border-block: 1px solid #d4cfea; }
.benefit { min-width: 0; padding: 26px 28px; border-right: 1px solid #d4cfea; }
.benefit:first-child { padding-left: 0; }
.benefit:last-child { padding-right: 0; border-right: 0; }
.benefit > span { color: var(--brand); font-size: 10px; font-weight: 600; line-height: 17px; letter-spacing: .09em; }
.benefit h3 { margin: 11px 0 7px; font-size: 19px; font-weight: 600; line-height: 27px; }
.benefit p { max-width: 34ch; margin: 0; color: var(--muted); font-size: 12px; line-height: 21px; }
.benefits-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 25px; color: var(--brand); font-size: 13px; font-weight: 600; line-height: 20px; }
.benefits-link:hover { text-decoration: underline; }
.section { padding: 76px 0; }
.page-section { padding-top: 42px; }
.section.alt { background: var(--soft); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 27px; }
.section-kicker { color: var(--brand); font-size: 11px; font-weight: 600; line-height: 17px; letter-spacing: .1em; text-transform: uppercase; }
.section h2 { margin: 7px 0 5px; font-size: 28px; font-weight: 600; line-height: 34px; letter-spacing: -.025em; }
.section .page-title { max-width: none; margin: 7px 0 5px; font-size: 28px; font-weight: 600; line-height: 34px; letter-spacing: -.025em; }
.section-sub { max-width: 68ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 23px; }
.search { width: 310px; min-height: 44px; padding: 10px 14px; color: var(--ink); background: white; border: 1px solid var(--border); border-radius: 10px; outline: 0; }
.search:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #28166f22; }

/* Cards */
.camera-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.camera-card { min-width: 0; overflow: hidden; background: white; border: 1px solid #d5e0e9; border-radius: 14px; box-shadow: 0 2px 5px #12254a18; }
.cam-preview { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #192540; }
.cam-preview .cam-poster { filter: brightness(.56); }
.cam-preview .cam-live { display: none; }
.cam-preview.playing .cam-poster { display: none; }
.cam-preview.playing .cam-live { display: block; }
.cam-preview.expanded { position: fixed; z-index: 2000; inset: 0; width: 100vw; height: 100dvh; aspect-ratio: auto; background: #10151d; }
.cam-preview.expanded img, .cam-preview.expanded video { object-fit: contain; }
.fullscreen-stats { position: absolute; z-index: 3; top: 16px; right: 16px; display: none; width: 174px; padding: 12px; color: white; background: #151331d9; border: 1px solid #ffffff30; border-radius: 12px; box-shadow: 0 10px 30px #0004; backdrop-filter: blur(10px); pointer-events: none; }
.watch-player.expanded .fullscreen-stats, .cam-preview.expanded .fullscreen-stats { display: block; }
.fullscreen-stats span { display: block; color: #d9d7ec; font-size: 10px; line-height: 14px; }
.fullscreen-stats strong { display: block; margin-top: 3px; font-size: 16px; font-weight: 600; line-height: 19px; font-variant-numeric: tabular-nums; }
.fullscreen-stats-total { padding-bottom: 8px; border-bottom: 1px solid #ffffff30; }
.fullscreen-stats-total strong { font-size: 22px; line-height: 25px; }
.fullscreen-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 6px; padding-top: 9px; }
.cam-status { position: absolute; top: 14px; left: 14px; padding: 4px 9px; color: white; background: #384152; border: 1px solid #ffffff44; border-radius: 99px; font-size: 10px; font-weight: 600; line-height: 16px; }
.cam-status.ready { background: #128442; border-color: #46d17a; }
.cam-status.live { background: #dc2626; border-color: #f87171; }
.cam-status.error { background: #b42318; border-color: #f76c61; }
.cam-controls { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 22px; text-align: center; }
.cam-prompt { color: white; font-size: 13px; font-weight: 600; line-height: 20px; text-shadow: 0 1px 5px #0008; }
.cam-play { min-height: 44px; padding: 8px 18px; color: var(--brand); background: var(--yellow); border: 0; border-radius: 9px; cursor: pointer; font: 600 13px/20px "Public Sans", sans-serif; }
.cam-play:hover { background: #ffda35; }
.cam-play:disabled { color: #626774; background: #e8ebef; cursor: not-allowed; }
.cam-preview.playing .cam-controls { display: none; }
.cam-player-controls { position: absolute; right: 0; bottom: 0; left: 0; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; color: white; background: #101629df; font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.cam-preview.playing .cam-player-controls { display: flex; }
.cam-player-controls button { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 7px 9px; color: white; background: transparent; border: 0; border-radius: 6px; cursor: pointer; font: 600 12px/18px "Public Sans", sans-serif; }
.cam-player-controls button:hover { background: #ffffff25; }
.cam-player-controls button:last-child { font-size: 22px; }
.cam-body { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 18px 20px; }
.cam-card-info { min-width: 0; }
.cam-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 24px; }
.cam-location { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 19px; }
.cam-detail { display: inline-flex; flex: none; align-items: center; gap: 7px; min-height: 44px; padding: 10px 11px; color: var(--brand); background: var(--brand-soft); border-radius: 8px; font-size: 12px; font-weight: 600; line-height: 19px; white-space: nowrap; }
.cam-detail-compact { display: none; }
.cam-detail:hover { background: #e4dcf8; }

/* Map */
.map-view-toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-bottom: 18px; padding: 4px; background: var(--brand-soft); border: 1px solid #dfd9ef; border-radius: 12px; }
.map-view-toggle button { min-height: 44px; color: var(--brand); background: transparent; border: 0; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 600; }
.map-view-toggle button[aria-pressed="true"] { background: white; box-shadow: 0 2px 8px #28166f15; }
.map-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 18px; align-items: stretch; }
.map-main { min-width: 0; }
.map-camera-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.map-camera-grid[hidden], .map-shell[hidden] { display: none; }
.map-camera-card { min-width: 0; overflow: hidden; background: white; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.map-camera-card.active { border-color: var(--brand); }
.map-camera-preview { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #191b2d; }
.map-camera-preview video, .map-camera-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.map-camera-preview:not(.playing) video, .map-camera-preview:not(.playing) img { filter: brightness(.7); }
.map-camera-preview.expanded { position: fixed; z-index: 2000; inset: 0; width: 100vw; height: 100dvh; aspect-ratio: auto; background: #10151d; }
.map-camera-preview.expanded video, .map-camera-preview.expanded img { object-fit: contain; }
.map-camera-preview.expanded .fullscreen-stats { display: block; }
.map-camera-preview .grid-live-label { position: absolute; z-index: 2; top: 12px; left: 12px; display: none; }
.map-camera-preview.playing .grid-live-label { display: inline-flex; }
.map-camera-preview.playing .cam-player-controls { display: flex; }
.grid-play { position: absolute; top: 50%; left: 50%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transform: translate(-50%, -50%); min-height: 44px; padding: 9px 17px; color: var(--brand); background: var(--yellow); border: 0; border-radius: 9px; cursor: pointer; font-weight: 600; }
.map-camera-preview.playing .grid-play { display: none; }
.map-camera-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px; }
.map-camera-meta h3 { margin: 0; font-size: 14px; font-weight: 600; line-height: 20px; }
.map-camera-meta p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 17px; }
.map-camera-meta a { display: inline-flex; align-items: center; gap: 5px; flex: none; min-height: 44px; color: var(--brand); font-size: 11px; font-weight: 600; }
.map-directory { display: flex; flex-direction: column; min-width: 0; height: 650px; padding: 18px 12px 12px; background: white; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.directory-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 6px 14px; }
.directory-heading h2 { margin: 0; font-size: 16px; font-weight: 600; line-height: 24px; }
.directory-heading span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.map-search { width: 100%; flex: none; margin-bottom: 12px; }
.location-list { display: grid; align-content: start; gap: 7px; min-height: 0; overflow-y: auto; padding-right: 3px; }
.location-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 68px; padding: 11px; color: var(--ink); background: var(--paper); border: 1px solid transparent; border-radius: 10px; text-align: left; cursor: pointer; }
.location-item:hover, .location-item.active { background: var(--brand-soft); border-color: #d9d0f0; }
.location-item[hidden] { display: none; }
.location-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; color: var(--brand); background: white; border-radius: 9px; }
.location-icon::before, .map-camera-pin::before { content: ''; display: block; width: 22px; height: 22px; background: currentColor; -webkit-mask: url('/static/img/cctv-camera.svg') center / contain no-repeat; mask: url('/static/img/cctv-camera.svg') center / contain no-repeat; }
.location-copy { display: grid; min-width: 0; }
.location-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 18px; }
.location-copy small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 11px; line-height: 17px; }
.location-empty { margin: 8px 6px; color: var(--muted); font-size: 12px; }
.map-camera-pin { display: grid; place-items: center; width: 40px; height: 40px; color: white; background: var(--brand); border: 3px solid white; border-radius: 12px; box-shadow: 0 5px 15px #21165144; }
.map-camera-pin.active { background: var(--yellow); color: var(--brand); }
.map-shell { position: relative; z-index: 0; height: 650px; overflow: hidden; background: #e8ebf3; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
#map { width: 100%; height: 100%; }
.map-fallback { position: absolute; inset: 0; display: none; place-items: center; padding: 30px; background: var(--soft); text-align: center; }
.map-fallback strong { font-size: 20px; font-weight: 600; line-height: 29px; }
.map-fallback p { max-width: 50ch; color: var(--muted); font-size: 13px; line-height: 21px; }
.leaflet-container { background: #e8ebf3; font-family: inherit; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { color: var(--ink); background: white; }
.leaflet-popup-content { width: 238px !important; margin: 0; }
.leaflet-popup-close-button { color: var(--brand) !important; }
.popup-card { overflow: hidden; border-radius: 12px; }
.popup-body { padding: 17px 16px 6px; }
.popup-title { padding-right: 18px; font-size: 14px; font-weight: 600; line-height: 20px; }
.popup-sub { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 17px; }
.leaflet-container .popup-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; margin-top: 14px; padding: 0 12px; color: white; background: var(--brand); border-radius: 8px; font-size: 12px; font-weight: 600; line-height: 20px; }
.leaflet-container .popup-link:hover { color: white; background: var(--brand-hover); }
.popup-coords { display: block; padding: 9px 1px 12px; color: var(--muted); font-size: 10px; line-height: 16px; font-variant-numeric: tabular-nums; }

/* Reports */
.reports-heading h1 { margin: 0 0 8px; font-size: clamp(27px,3vw,36px); line-height: 1.2; letter-spacing: -.03em; }
.reports-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 23px; }
.report-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) auto; align-items: end; gap: 13px; margin-top: 28px; padding: 20px; background: white; border: 1px solid var(--border); border-radius: 14px; }
.report-field { min-width: 0; }
.report-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.report-picker { position: relative; display: block; width: 100%; }
.report-trigger { display: flex; justify-content: space-between; width: 100%; min-height: 44px; padding: 9px 12px; color: var(--ink); background: white; border: 1px solid var(--border); border-radius: 9px; box-shadow: none; cursor: pointer; font-size: 13px; font-weight: 500; text-align: left; }
.report-trigger::-webkit-details-marker { display: none; }
.report-trigger:hover, .report-picker[open] .report-trigger { color: var(--brand); border-color: #a89bdb; background: #faf9ff; }
.report-icon { display: inline-block; width: 18px; height: 18px; flex: none; background: currentColor; }
.icon-calendar { -webkit-mask: url("/static/img/calendar-04.svg") center / contain no-repeat; mask: url("/static/img/calendar-04.svg") center / contain no-repeat; }
.icon-chevron-down { -webkit-mask: url("/static/img/arrow-down-01.svg") center / contain no-repeat; mask: url("/static/img/arrow-down-01.svg") center / contain no-repeat; }
.icon-chevron-left { -webkit-mask: url("/static/img/arrow-left-01.svg") center / contain no-repeat; mask: url("/static/img/arrow-left-01.svg") center / contain no-repeat; }
.icon-chevron-right { -webkit-mask: url("/static/img/arrow-right-01.svg") center / contain no-repeat; mask: url("/static/img/arrow-right-01.svg") center / contain no-repeat; }
.report-popover { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; display: none; width: min(304px,calc(100vw - 76px)); padding: 14px; color: var(--ink); background: white; border: 1px solid #d6d0ed; border-radius: 12px; box-shadow: 0 18px 44px rgba(32,24,81,.16); }
.report-picker[open] .report-popover { display: block; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; text-transform: capitalize; }
.calendar-heading strong { font-size: 13px; font-weight: 600; }
.calendar-nav { width: 32px; min-width: 32px; min-height: 32px; height: 32px; padding: 0; color: var(--brand); background: var(--brand-soft); border: 0; border-radius: 8px; box-shadow: none; }
.calendar-nav:disabled { opacity: .35; cursor: default; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; text-align: center; }
.calendar-weekday { padding: 4px 0 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.calendar-day { display: grid; place-items: center; width: 100%; height: 33px; padding: 0; color: var(--ink); background: transparent; border: 0; border-radius: 8px; cursor: pointer; font-size: 12px; }
.calendar-day:hover:not(:disabled) { background: var(--brand-soft); }
.calendar-day.selected { color: white; background: var(--brand); }
.calendar-day.today:not(.selected) { color: var(--brand); box-shadow: inset 0 0 0 1px #afa2da; }
.calendar-day:disabled { color: #b2b5c3; cursor: default; }
.calendar-today { margin-top: 10px; padding: 6px 3px 2px; color: var(--brand); background: none; border: 0; cursor: pointer; font-size: 12px; font-weight: 600; }
.report-options { width: 100%; max-height: min(360px, 60vh); overflow-y: auto; padding: 6px; }
.report-options button { display: block; width: 100%; min-height: 38px; padding: 8px 10px; color: var(--ink); background: none; border: 0; border-radius: 7px; cursor: pointer; font-size: 12px; text-align: left; }
.report-options button:hover, .report-options button[aria-pressed="true"] { color: var(--brand); background: var(--brand-soft); }
.report-filters > .btn-primary { white-space: nowrap; }
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 22px 0 12px; }
.report-toolbar p { margin: 0; color: var(--muted); font-size: 12px; }
.report-toolbar a[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.report-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin: 24px 0; }
.report-metric { min-width: 0; padding: 18px; background: white; border: 1px solid var(--border); border-radius: 12px; }
.report-metric:first-child { color: white; background: var(--brand); border-color: var(--brand); }
.report-metric span { display: block; font-size: 11px; line-height: 18px; }
.report-metric strong { display: block; margin-top: 8px; font-size: 25px; line-height: 30px; }
.report-table-section { overflow: hidden; background: white; border: 1px solid var(--border); border-radius: 14px; }
.report-table-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 20px; }
.report-table-heading h2 { margin: 0; font-size: 18px; line-height: 25px; }
.report-table-heading span { color: var(--muted); font-size: 12px; }
.report-table-wrap { overflow-x: auto; }
.report-table-wrap table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.report-table-wrap th { padding: 12px 14px; color: var(--brand); background: var(--brand-soft); white-space: nowrap; }
.report-table-wrap td { padding: 12px 14px; border-top: 1px solid var(--border); }
.report-table-wrap td:nth-child(n+3) { font-variant-numeric: tabular-nums; }
.report-table-wrap td:last-child { font-weight: 600; color: var(--brand); }
.report-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--border); }
.report-pagination[hidden] { display: none; }
.report-pagination > span { color: var(--muted); font-size: 12px; }
.report-pages { display: flex; gap: 5px; }
.report-page-btn { width: 38px; min-width: 38px; height: 38px; min-height: 38px; padding: 0; color: var(--brand); background: white; border: 1px solid var(--border); border-radius: 8px; box-shadow: none; font-size: 12px; }
.report-page-btn:hover:not(:disabled) { border-color: #ada1db; background: var(--brand-soft); }
.report-page-btn.btn-active { color: white; background: var(--brand); border-color: var(--brand); }
.report-page-btn:disabled { opacity: .35; cursor: default; }

/* Camera analytics */
.dashboard { padding: 28px 0 76px; }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 12px; line-height: 19px; }
.breadcrumb a { color: var(--brand); }
.watch-player { position: relative; overflow: hidden; aspect-ratio: 16/9; background: #151827; border-radius: 16px; box-shadow: 0 12px 30px #20185116; }
.watch-player img, .watch-player video { display: block; width: 100%; height: 100%; object-fit: contain; }
.watch-video-heading { position: absolute; top: 0; right: 0; left: 0; display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; color: white; background: var(--brand); font-size: clamp(12px, 2vw, 18px); line-height: 1.3; }
.watch-video-heading span { flex: none; color: var(--yellow); font-size: .78em; font-weight: 700; }
.watch-controls { position: absolute; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr minmax(0, 1fr) 1fr; align-items: center; gap: 12px; min-height: 64px; padding: 10px 13px; background: #101629df; }
.watch-controls-title { overflow: hidden; color: white; font-size: 13px; font-weight: 600; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.watch-player-label { display: inline-flex; align-items: center; justify-self: start; gap: 7px; padding: 7px 11px; color: white; background: #dc2626; border: 1px solid #dc2626; border-radius: 99px; font-size: 11px; font-weight: 600; line-height: 17px; }
.watch-player-label::before { content: ''; width: 8px; height: 8px; background: white; border-radius: 50%; }
.watch-expand { display: grid; place-items: center; justify-self: end; width: 44px; height: 44px; padding: 0; color: white; background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
.watch-expand:hover { background: #ffffff25; }
.watch-expand span { grid-area: 1 / 1; display: block; width: 22px; height: 22px; background: currentColor; transition: opacity .2s, transform .2s; }
.watch-icon-enter { -webkit-mask: url("/static/img/full-screen.svg") center / contain no-repeat; mask: url("/static/img/full-screen.svg") center / contain no-repeat; }
.watch-icon-exit { opacity: 0; transform: scale(.8); -webkit-mask: url("/static/img/cancel-01.svg") center / contain no-repeat; mask: url("/static/img/cancel-01.svg") center / contain no-repeat; }
.watch-player.expanded { position: fixed; z-index: 2000; inset: 0; width: 100vw; height: 100dvh; margin-left: 0; aspect-ratio: auto; border-radius: 0; background: #10151d; }
.watch-player.expanded.landscape-fallback { top: 0; right: auto; bottom: auto; left: 0; width: 100dvh; height: 100vw; transform: translateX(100vw) rotate(90deg); transform-origin: top left; }
.watch-player.expanded .watch-controls { min-height: 64px; padding: 10px 22px; }
.watch-player.expanded .watch-icon-enter { opacity: 0; transform: scale(.8); }
.watch-player.expanded .watch-icon-exit { opacity: 1; transform: scale(1); }
.watch-player.demo.expanded .fullscreen-stats { top: 60px; }
.dash-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin: 25px 0 0; }
.dash-top h1 { margin: 6px 0 5px; color: var(--ink); font-size: clamp(28px, 3vw, 36px); font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
.dash-subtitle { margin: 0; color: var(--muted); font-size: 13px; line-height: 21px; }
.kpi-grid { display: grid; grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr)); margin: 25px 0 34px; border-block: 1px solid var(--border); }
.kpi { min-width: 0; padding: 19px 20px; border-right: 1px solid var(--border); }
.kpi:first-child { padding-left: 0; }
.kpi:last-child { border-right: 0; }
.kpi-label { display: block; color: var(--muted); font-size: 10px; font-weight: 600; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; }
.kpi strong { display: block; margin-top: 8px; color: var(--brand); font-size: 27px; font-weight: 600; line-height: 32px; letter-spacing: -.035em; }
.kpi.accent strong { font-size: 34px; line-height: 36px; }
.kpi small { display: block; color: var(--muted); font-size: 11px; line-height: 17px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, .9fr); gap: 18px; }
.panel { min-width: 0; padding: 24px; background: white; border: 1px solid var(--border); border-radius: 16px; }
.panel-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.panel-title h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 26px; }
.panel-title span { color: var(--muted); font-size: 11px; line-height: 17px; text-align: right; }
.class-list { display: grid; gap: 12px; }
.class-row { display: grid; grid-template-columns: 90px 1fr 58px; align-items: center; gap: 10px; font-size: 12px; line-height: 19px; }
.class-row b { text-align: right; font-weight: 600; }
.bar { height: 8px; overflow: hidden; background: var(--soft); border-radius: 99px; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.reveal-target .bar > i { transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2,.7,.2,1), width .9s ease; }
.reveal-target.is-visible .bar > i { transform: scaleX(1); }
.chart-wrap { position: relative; height: 330px; }
.chart-svg { width: 100%; height: 100%; overflow: visible; }
.chart-gridline { stroke: #e3e5ee; stroke-width: 1; }
.chart-line { fill: none; stroke: var(--brand); stroke-width: 3; }
.chart-area { fill: url(#areaGrad); }
.reveal-target .chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal-target.is-visible .chart-line { animation: draw-chart 1.25s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal-target .chart-area { opacity: 0; }
.reveal-target.is-visible .chart-area { animation: reveal-chart-area .9s .25s ease forwards; }
@keyframes draw-chart { to { stroke-dashoffset: 0; } }
@keyframes reveal-chart-area { to { opacity: 1; } }
.chart-label { fill: var(--muted); font-size: 10px; }
.traffic-period { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--border); }
.traffic-period > div { min-width: 0; }
.traffic-period > div:nth-child(2) { padding-left: 16px; border-left: 1px solid var(--border); }
.traffic-period > div:last-child { display: flex; justify-content: space-between; align-items: end; grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--border); }
.traffic-period span, .traffic-period small { display: block; color: var(--muted); font-size: 11px; line-height: 17px; }
.traffic-period small { margin-top: 2px; }
.traffic-period strong { display: block; margin-top: 5px; color: var(--brand); font-size: 23px; font-weight: 600; line-height: 28px; }
.event-disclosure { margin-top: 18px; padding: 0 20px; background: white; border: 1px solid var(--border); border-radius: 14px; }
.event-disclosure summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 62px; cursor: pointer; list-style: none; }
.event-disclosure summary::-webkit-details-marker { display: none; }
.event-disclosure summary strong { font-size: 14px; font-weight: 600; }
.event-disclosure summary span { color: var(--brand); font-size: 12px; font-weight: 600; }
.event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-bottom: 20px; }
.event { display: grid; grid-template-columns: 55px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; background: var(--soft); border-radius: 9px; }
.event .type { padding: 5px 6px; color: var(--brand); background: #e7e0fa; border-radius: 6px; text-align: center; font-size: 10px; line-height: 15px; }
.event small { color: var(--muted); font-size: 11px; line-height: 17px; }
.event b { color: var(--brand); font-size: 11px; font-weight: 600; }


@media (max-width: 1100px) {
  .hero-content { min-height: 660px; }
  .nav-links { gap: 0; }
  .nav-links a { padding-inline: 9px; }
  .camera-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .report-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .container { width: min(100% - 48px, 760px); }
  .nav-links, .nav-btn { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary { display: grid; place-items: center; width: 44px; height: 44px; color: var(--brand); background: var(--brand-soft); border: 1px solid #d5cdef; border-radius: 10px; cursor: pointer; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .menu-icons { position: relative; display: block; width: 24px; height: 24px; }
  .menu-icons span { position: absolute; inset: 0; display: block; background: currentColor; transition: opacity .2s, transform .2s; }
  .icon-menu { -webkit-mask: url("/static/img/menu-01.svg") center / contain no-repeat; mask: url("/static/img/menu-01.svg") center / contain no-repeat; }
  .icon-close { opacity: 0; transform: rotate(-45deg) scale(.8); -webkit-mask: url("/static/img/cancel-01.svg") center / contain no-repeat; mask: url("/static/img/cancel-01.svg") center / contain no-repeat; }
  .mobile-nav[open] .icon-menu { opacity: 0; transform: rotate(45deg) scale(.8); }
  .mobile-nav[open] .icon-close { opacity: 1; transform: rotate(0) scale(1); }
  .mobile-nav-panel { position: fixed; top: 78px; left: 0; right: 0; display: grid; padding: 8px 24px 12px; background: white; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); animation: nav-drop .2s ease-out; }
  @keyframes nav-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
  .mobile-nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; }
  .dash-grid { grid-template-columns: 1fr; }
  .hero-content { min-height: 620px; padding: 95px 0 32px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual img { aspect-ratio: 16/9; }
  .benefits-head { align-items: start; flex-direction: column; gap: 12px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit, .benefit:first-child, .benefit:last-child { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; gap: 18px; padding: 20px 0; border-right: 0; border-bottom: 1px solid #d4cfea; }
  .benefit:last-child { border-bottom: 0; }
  .benefit h3 { margin: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .copy-desktop { display: none; }
  .copy-mobile { display: inline; }
  .reports-heading h1 { font-size: 29px; line-height: 1.22; }
  .reports-heading p { max-width: 32ch; margin-top: 10px; line-height: 23px; }
  .report-filters { grid-template-columns: 1fr; gap: 19px; margin-top: 30px; padding: 22px 20px; }
  .report-label { margin-bottom: 9px; }
  .report-trigger { min-height: 48px; }
  .report-filters > .btn-primary { width: 100%; }
  .report-toolbar { align-items: stretch; flex-direction: column; gap: 14px; margin: 22px 0 26px; }
  .report-toolbar a { justify-content: center; }
  .report-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0 0 36px; }
  .report-metric { min-height: 100px; padding: 18px; }
  .report-metric:first-child { grid-column: 1 / -1; min-height: 112px; padding: 20px; }
  .report-metric strong { font-size: 21px; line-height: 27px; }
  .report-metric:first-child strong { font-size: 30px; line-height: 36px; }
  .report-table-section { overflow: visible; background: transparent; border: 0; border-radius: 0; }
  .report-table-heading { align-items: flex-start; flex-direction: column; gap: 6px; padding: 0 0 18px; }
  .report-table-heading h2 { font-size: 20px; line-height: 27px; }
  .report-table-heading span { line-height: 18px; }
  .report-table-wrap { overflow: visible; }
  .report-table-wrap table, .report-table-wrap tbody { display: block; }
  .report-table-wrap thead { display: none; }
  .report-table-wrap tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-areas: "date date" "area area" "rule rule" "motorcycle car" "truck bus" "total total"; gap: 3px 20px; margin-bottom: 12px; padding: 18px; background: white; border: 1px solid var(--border); border-radius: 13px; }
  .report-table-wrap tr::before { content: ""; grid-area: rule; margin: 12px 0 8px; border-top: 1px solid var(--border); }
  .report-table-wrap td { display: flex; flex-direction: column; min-width: 0; padding: 0; border: 0; font-size: 13px; line-height: 20px; text-align: left; }
  .report-table-wrap td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 400; line-height: 17px; }
  .report-table-wrap td:nth-child(1) { grid-area: date; color: var(--muted); font-size: 11px; }
  .report-table-wrap td:nth-child(1)::before, .report-table-wrap td:nth-child(2)::before { display: none; }
  .report-table-wrap td:nth-child(2) { grid-area: area; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 21px; }
  .report-table-wrap td:nth-child(3) { grid-area: motorcycle; }
  .report-table-wrap td:nth-child(4) { grid-area: car; }
  .report-table-wrap td:nth-child(5) { grid-area: truck; margin-top: 9px; }
  .report-table-wrap td:nth-child(6) { grid-area: bus; margin-top: 9px; }
  .report-table-wrap td:nth-child(7) { grid-area: total; flex-direction: row; align-items: baseline; justify-content: space-between; margin-top: 13px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--brand); font-size: 17px; font-weight: 600; }
  .report-table-wrap td:nth-child(7)::before { content: "Total kendaraan"; font-size: 12px; font-weight: 600; }
  .report-pagination { align-items: center; flex-direction: column; margin-top: 20px; padding: 18px; background: white; border: 1px solid var(--border); border-radius: 12px; text-align: center; }
  .container { width: calc(100% - 44px); }
  .nav { min-height: 70px; }
  .mobile-nav-panel { top: 70px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 40px; height: 44px; }
  .hero::before { background-position: 58% center; }
  #cctv { scroll-margin-top: 70px; }
  .hero-content { min-height: 600px; padding: 79px 0 22px; }
  .hero h1 { font-size: clamp(38px, 10vw, 50px); }
  .hero p { font-size: 13px; line-height: 22px; }
  .hero-actions { flex-direction: column; }
  .stats-inner { grid-template-columns: 1fr; }
  .mini-stat, .mini-stat:last-child { display: flex; flex-direction: row-reverse; align-items: baseline; justify-content: space-between; gap: 12px; padding: 17px 0; border: 0; border-bottom: 1px solid #ffffff1e; }
  .mini-stat:last-child { border-bottom: 0; }
  .mini-stat span, .mini-stat:last-child span { margin: 0; }
  .mini-stat strong { font-size: 26px; line-height: 30px; }
  .section { padding: 54px 0; }
  .cctv-section { padding-top: 76px; }
  .section-head { align-items: start; flex-direction: column; gap: 18px; }
  .section h2, .section .page-title { font-size: 24px; line-height: 31px; }
  .section-sub { font-size: 13px; line-height: 22px; }
  .dashboard { padding-top: 20px; }
  .watch-player { width: calc(100% + 44px); margin-left: -22px; border-radius: 0; }
  .watch-controls { padding: 12px; }
  .dash-top { margin-top: 20px; }
  .about-visual img { aspect-ratio: 4/3; }
  .about-visual figcaption, .about-copy { text-align: center; }
  .about-copy > p, .about-section .about-copy h2 { margin-inline: auto; }
  .capability-list { text-align: left; }
  .benefits-head { align-items: center; text-align: center; }
  .benefits-head > p { margin-inline: auto; }
  .benefit, .benefit:first-child, .benefit:last-child { display: block; padding: 22px 0; border-right: 0; border-bottom: 1px solid #d4cfea; }
  .benefit { text-align: center; }
  .benefit p { margin-inline: auto; }
  .benefit h3 { margin: 11px 0 7px; }
  .benefit:last-child { border-bottom: 0; }
  .benefits-link { display: flex; justify-content: center; }
  .search { width: 100%; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 32px; border: 0; }
  .kpi, .kpi:first-child { min-height: 100px; padding: 18px; background: white; border: 1px solid var(--border); border-radius: 12px; }
  .kpi-grid .kpi.accent { grid-column: 1 / -1; min-height: 120px; padding: 20px; background: var(--brand); border-color: var(--brand); }
  .kpi.accent .kpi-label, .kpi.accent strong, .kpi.accent small { color: white; }
  .kpi:nth-child(2), .kpi:nth-child(3), .kpi:nth-child(4), .kpi:nth-child(5) { padding: 18px; border: 1px solid var(--border); }
  .kpi strong { font-size: 24px; line-height: 29px; }
  .kpi.accent strong { font-size: 34px; line-height: 38px; }
  .panel { padding: 20px; }
  .chart-wrap { height: 250px; }
  .event-list { grid-template-columns: 1fr; }
  .camera-grid { grid-template-columns: 1fr; }
  .cam-preview { height: clamp(210px, 56vw, 250px); aspect-ratio: auto; }
  .map-layout { grid-template-columns: 1fr; }
  .map-directory { height: auto; }
  .location-list { display: grid; max-height: 420px; overflow-y: auto; padding: 0 3px 0 0; }
  .location-item { min-height: 56px; }
  .map-shell { height: 480px; }
  .map-camera-grid { grid-template-columns: 1fr; }
  .dash-top { align-items: start; flex-direction: column; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .footer-main > :first-child { grid-column: auto; }
  .footer { padding-top: 48px; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-copy, .footer-detail { margin-inline: auto; }
  .footer-links { justify-items: center; }
  .footer-bottom { margin-top: 34px; }
}
@media (max-width: 360px) {
  .report-pages { gap: 4px; }
  .report-page-btn { width: 34px; min-width: 34px; height: 34px; min-height: 34px; }
  .mini-stat { padding-inline: 0; }
  .mini-stat span { font-size: 11px; line-height: 17px; }
  .cam-body { gap: 8px; padding-inline: 13px; }
  .cam-detail { justify-content: center; padding-inline: 8px; }
  .cam-detail-label { display: none; }
  .cam-detail-compact { display: inline; }
  .class-row { grid-template-columns: 75px 1fr 38px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal-target .bar > i { transform: none; }
  .reveal-target .chart-line { stroke-dashoffset: 0; }
  .reveal-target .chart-area { opacity: 1; }
}
