:root {
  color-scheme: light;
  --ink: #16222c;
  --muted: #66737d;
  --panel: rgba(52, 61, 70, .82);
  --panel-strong: rgba(40, 49, 58, .94);
  --panel-line: rgba(255, 255, 255, .43);
  --soft-line: rgba(255, 255, 255, .14);
  --white: #f7fbfd;
  --cyan: #43cce8;
  --blue: #5c9df5;
  --green: #65d99c;
  --amber: #f2c260;
  --rose: #f17882;
  --violet: #a98eea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
[hidden] { display: none !important; }

.dashboard-page { min-height: 100vh; overflow: hidden; background: #dfe8e9; }
.map-layer { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; border: 0; }
.map-shade { position: fixed; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 430px 0 180px rgba(31, 40, 48, .16), inset -430px 0 180px rgba(31, 40, 48, .16); }
.panel { color: var(--white); background: var(--panel); border: 1px solid var(--panel-line); box-shadow: 0 13px 34px rgba(20, 30, 38, .2); backdrop-filter: blur(17px) saturate(112%); }

.topbar { position: fixed; z-index: 12; top: 9px; left: 20px; right: 20px; min-height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 9px 16px; border-radius: 14px; }
.system-nav { display: flex; align-items: center; gap: 7px; min-width: 0; }
.system-nav a, .system-nav span { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; color: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.06); font-size: 11px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.system-nav a:hover { color: white; border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.11); }
.system-nav .active { color: #c9f4dc; border-color: rgba(101,217,156,.55); background: rgba(101,217,156,.16); }
.brand { display: flex; align-items: baseline; justify-content: center; gap: 14px; white-space: nowrap; }
.brand strong { color: #35a8dc; font-size: 20px; font-style: italic; font-weight: 850; }
.brand strong span { font-size: 9px; }
.brand h1 { margin: 0; color: #fff; font-size: 20px; font-weight: 760; letter-spacing: .06em; }
.top-meta { justify-self: end; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.8); font-size: 11px; white-space: nowrap; }
.online-pill, .top-meta time { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(255,255,255,.07); }
.online-pill i, .bottom-status > span:first-child i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(101,217,156,.13); }
.online-pill b { font-weight: 600; }
.top-meta button { min-height: 32px; padding: 0 11px; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(255,255,255,.04); }
.top-meta button:hover { background: rgba(255,255,255,.12); }

.dashboard-grid { position: fixed; z-index: 3; inset: 84px 20px 48px; pointer-events: none; }
.side-column { position: absolute; top: 0; bottom: 0; width: clamp(340px, 21.4vw, 410px); display: flex; flex-direction: column; gap: 10px; pointer-events: auto; }
.left-column { left: 0; }
.right-column { right: 0; }
.center-stage { position: absolute; top: 0; bottom: 0; left: calc(clamp(340px, 21.4vw, 410px) + 12px); right: calc(clamp(340px, 21.4vw, 410px) + 12px); pointer-events: none; }

.dashboard-card { position: relative; overflow: hidden; padding: 14px 15px; border-radius: 13px; }
.dashboard-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.dashboard-card header span { color: rgba(247,251,253,.58); font-size: 9px; letter-spacing: .11em; }
.dashboard-card h2 { margin: 3px 0 0; color: white; font-size: 15px; line-height: 1.2; }
.dashboard-card header em { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; color: var(--cyan); border: 1px solid rgba(67,204,232,.38); border-radius: 999px; background: rgba(67,204,232,.1); font-size: 9px; font-style: normal; white-space: nowrap; }
.dashboard-card header em.online { color: var(--green); border-color: rgba(101,217,156,.38); background: rgba(101,217,156,.1); }
.dashboard-card header em.online i { font-size: 6px; }
.dashboard-card header em.waiting { color: var(--amber); border-color: rgba(242,194,96,.38); background: rgba(242,194,96,.1); }

.overview-card { flex: 0 0 236px; }
.hero-metric { position: relative; width: 100%; min-height: 68px; display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 10px 13px; color: white; text-align: left; border: 1px solid rgba(83,180,236,.42); border-radius: 10px; background: rgba(53,137,197,.24); }
.hero-metric:hover { border-color: rgba(103,200,241,.72); background: rgba(53,137,197,.31); }
.hero-metric span { font-size: 11px; }
.hero-metric strong { grid-row: span 2; margin-right: 16px; color: #67c8f1; font-size: 33px; line-height: 1; }
.hero-metric small { margin-top: 5px; color: rgba(255,255,255,.67); font-size: 9px; }
.hero-metric > i { position: absolute; right: 10px; top: 50%; color: rgba(255,255,255,.5); transform: translateY(-50%); }
.metric-grid { display: grid; gap: 6px; margin-top: 8px; }
.metric-grid-four { grid-template-columns: repeat(4, 1fr); }
.metric-grid div { min-width: 0; min-height: 62px; padding: 8px 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.045); }
.metric-grid span, .metric-grid small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-grid span { color: rgba(255,255,255,.58); font-size: 8px; }
.metric-grid strong { display: inline-block; margin-top: 3px; color: #fff; font-size: 18px; }
.metric-grid small { color: rgba(255,255,255,.46); font-size: 8px; }

.district-card { flex: 1 1 auto; min-height: 240px; }
.carousel-controls { display: flex; align-items: center; gap: 4px; }
.carousel-controls > span { margin-right: 2px; color: rgba(255,255,255,.62) !important; letter-spacing: 0 !important; }
.carousel-controls button { width: 25px; height: 25px; display: grid; place-items: center; padding: 0; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; background: rgba(255,255,255,.06); }
.carousel-controls button:hover { color: white; background: rgba(255,255,255,.13); }
.district-list { display: grid; gap: 6px; }
.district-row { width: 100%; min-height: 43px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 6px 9px; color: white; text-align: left; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.045); }
.district-row:hover, .district-row.active { border-color: rgba(67,204,232,.58); background: rgba(67,204,232,.11); }
.district-row > i { display: grid; place-items: center; width: 27px; height: 27px; color: #aebac3; border-radius: 7px; background: rgba(255,255,255,.07); }
.district-row.active > i { color: #b8f3d4; background: rgba(101,217,156,.14); }
.district-row span b, .district-row span small { display: block; }
.district-row span b { font-size: 10px; }
.district-row span small { margin-top: 2px; color: rgba(255,255,255,.46); font-size: 8px; letter-spacing: 0; }
.district-row > strong { color: rgba(255,255,255,.48); font-size: 9px; }
.district-row > strong.connected { color: var(--green); }
.legend-inline { display: flex; gap: 16px; margin-top: 9px; color: rgba(255,255,255,.5); font-size: 8px; }
.legend-inline span { display: flex; align-items: center; gap: 5px; }
.legend-inline i { width: 6px; height: 6px; border-radius: 50%; background: #8c98a1; }
.legend-inline i.connected { background: var(--green); }

.inspection-card { flex: 0 0 202px; }
.inspection-progress > div:first-child { display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.62); font-size: 9px; }
.inspection-progress b { color: var(--green); font-size: 16px; }
.progress-track { height: 4px; margin: 7px 0 10px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.12); }
.progress-track i { display: block; width: 0; height: 100%; background: var(--green); }
.mini-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; overflow: hidden; }
.mini-stat-row div { padding: 7px 6px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.mini-stat-row div:last-child { border-right: 0; }
.mini-stat-row span, .mini-stat-row strong, .mini-stat-row small { display: block; }
.mini-stat-row span { color: rgba(255,255,255,.48); font-size: 8px; }
.mini-stat-row strong { margin-top: 3px; font-size: 14px; }
.mini-stat-row small { color: rgba(255,255,255,.4); font-size: 8px; }
.report-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.report-row button { display: flex; align-items: center; gap: 8px; padding: 7px 9px; color: white; text-align: left; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.045); }
.report-row button:hover { border-color: rgba(101,217,156,.35); }
.report-row button > i { color: var(--green); }
.report-row span, .report-row small { display: block; }
.report-row span { font-size: 9px; }
.report-row small { margin-top: 2px; color: var(--amber); font-size: 8px; }

.service-card { flex: 0 0 238px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.service-grid > div { position: relative; min-height: 73px; padding: 8px 8px 7px 31px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.045); }
.service-grid > div > i { position: absolute; left: 9px; top: 10px; color: var(--cyan); font-size: 14px; }
.service-grid span, .service-grid small { display: block; color: rgba(255,255,255,.52); font-size: 8px; }
.service-grid strong { display: inline-block; margin: 3px 3px 0 0; color: var(--cyan); font-size: 19px; line-height: 1; }
.service-grid small { margin-top: 3px; }

.project-carousel-card { flex: 0 0 202px; }
.project-slide { width: 100%; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 9px; padding: 9px; color: white; text-align: left; border: 1px solid rgba(67,204,232,.26); border-radius: 9px; background: rgba(67,204,232,.08); }
.project-slide:hover { border-color: rgba(67,204,232,.58); }
.project-slide:disabled { cursor: default; opacity: .58; }
.project-code { width: 32px; height: 32px; display: grid; place-items: center; color: var(--cyan); border-radius: 8px; background: rgba(67,204,232,.15); font-size: 9px; font-weight: 750; }
.project-slide div { min-width: 0; }
.project-slide strong, .project-slide small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-slide strong { font-size: 10px; }
.project-slide small { margin-top: 3px; color: rgba(255,255,255,.5); font-size: 8px; }
.project-slide em { color: var(--cyan); font-size: 8px; font-style: normal; }
.project-readiness { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 7px; }
.project-readiness > div { padding: 6px; text-align: center; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; background: rgba(255,255,255,.04); }
.project-readiness span, .project-readiness strong { display: block; font-size: 8px; }
.project-readiness span { color: rgba(255,255,255,.45); }
.project-readiness strong { margin-top: 2px; color: var(--green); }
.project-readiness strong.waiting { color: var(--amber); }
.view-all-link { float: right; margin-top: 7px; padding: 3px 0; color: #b9f1d1; border: 0; background: transparent; font-size: 8px; }

.operations-card { flex: 1 1 auto; min-height: 270px; }
.operation-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.operation-list button { min-width: 0; display: grid; grid-template-columns: 27px 1fr; gap: 7px; align-items: center; padding: 8px; color: white; text-align: left; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.045); }
.operation-list button:hover { border-color: rgba(101,217,156,.35); background: rgba(101,217,156,.07); }
.operation-list button > i { grid-row: span 2; display: grid; place-items: center; width: 27px; height: 27px; color: var(--green); border-radius: 7px; background: rgba(101,217,156,.1); }
.operation-list span b, .operation-list span small { display: block; }
.operation-list span b { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.operation-list span small { margin-top: 2px; overflow: hidden; color: rgba(255,255,255,.42); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.operation-list button > strong { grid-column: 2; color: var(--amber); font-size: 8px; }
.data-boundary { display: grid; grid-template-columns: 18px 1fr; gap: 8px; margin-top: 9px; padding: 9px; color: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.04); }
.data-boundary > i { color: var(--cyan); }
.data-boundary p { margin: 0; font-size: 8px; line-height: 1.55; }
.data-boundary b { display: block; margin-bottom: 2px; color: white; }

.filter-stack { position: absolute; z-index: 5; top: 0; left: 50%; width: min(720px, calc(100% - 20px)); display: grid; justify-items: center; gap: 6px; transform: translateX(-50%); pointer-events: auto; }
.filter-row { width: 100%; display: grid; grid-template-columns: 1.35fr 1fr 1fr; padding: 7px 10px; color: #20303b; border: 1px solid rgba(43,58,67,.18); border-radius: 11px; background: rgba(252,253,253,.96); box-shadow: 0 8px 22px rgba(23,35,43,.16); }
.filter-row label { min-width: 0; display: grid; grid-template-columns: 18px auto 1fr; align-items: center; gap: 7px; padding: 0 11px; border-right: 1px solid #dce3e6; }
.filter-row label:last-child { border-right: 0; }
.filter-row label > i { color: #188e6c; }
.filter-row label span { font-size: 10px; font-weight: 700; white-space: nowrap; }
.filter-row select { min-width: 0; height: 32px; padding: 0 28px 0 9px; color: #24323c; border: 1px solid #d0d9dd; border-radius: 6px; background: #f9fbfc; font-size: 9px; font-weight: 650; }
.map-legend { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 7px 15px; color: #33434e; border: 1px solid rgba(43,58,67,.15); border-radius: 999px; background: rgba(252,253,253,.96); box-shadow: 0 6px 18px rgba(23,35,43,.13); font-size: 8px; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #9ba5ab; }
.dot.blue { background: var(--blue); }.dot.green { background: #20a45e; }.dot.cyan { background: #1aa9cb; }.dot.amber { background: #d59b25; }.dot.gray { background: #a4adb2; }
.module-tabs { display: flex; align-items: center; gap: 3px; padding: 5px; border: 4px solid rgba(101,217,156,.17); border-radius: 10px; background: rgba(252,253,253,.98); box-shadow: 0 7px 20px rgba(23,35,43,.13); }
.module-tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 31px; padding: 0 12px; color: #485762; border: 0; border-radius: 6px; background: transparent; font-size: 9px; font-weight: 650; }
.module-tabs button:hover { color: #157455; background: rgba(101,217,156,.09); }
.module-tabs button.active { color: #157455; background: rgba(101,217,156,.18); }

.scope-card { position: absolute; top: 124px; left: 0; width: 205px; padding: 10px 11px; border-radius: 10px; pointer-events: auto; }
.scope-card span, .scope-card strong, .scope-card small { display: block; }
.scope-card span { color: rgba(255,255,255,.5); font-size: 8px; }
.scope-card strong { margin-top: 4px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.scope-card small { margin-top: 3px; color: rgba(255,255,255,.5); font-size: 8px; }
.duty-card { position: absolute; top: 124px; right: 0; width: 245px; padding: 10px; border-radius: 10px; pointer-events: auto; }
.duty-top { display: flex; justify-content: space-between; color: rgba(255,255,255,.52); font-size: 8px; }
.duty-content { display: grid; grid-template-columns: 25px 1fr 25px; gap: 7px; align-items: center; margin-top: 7px; }
.duty-content button { height: 28px; padding: 0; color: #fff; border: 0; border-radius: 6px; background: rgba(255,255,255,.08); }
.duty-content button:hover { background: rgba(255,255,255,.16); }
.duty-content div { min-width: 0; }
.duty-content strong, .duty-content small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duty-content strong { font-size: 9px; }.duty-content small { margin-top: 3px; color: rgba(255,255,255,.48); font-size: 7px; }

.map-empty { position: absolute; top: 52%; left: 50%; width: 300px; display: grid; justify-items: center; padding: 22px; text-align: center; border-radius: 13px; transform: translate(-50%, -50%); pointer-events: auto; }
.map-empty > i { color: var(--cyan); font-size: 28px; }
.map-empty strong { margin-top: 8px; font-size: 13px; }
.map-empty span { margin-top: 5px; color: rgba(255,255,255,.55); font-size: 9px; line-height: 1.5; }
.map-empty button { margin-top: 12px; padding: 7px 12px; color: #173d31; border: 0; border-radius: 7px; background: #a9e9c7; font-size: 9px; font-weight: 700; }

.quick-actions { position: absolute; z-index: 4; left: 50%; bottom: 9px; width: min(690px, calc(100% - 18px)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; border: 1px solid rgba(255,255,255,.5); border-radius: 11px; background: rgba(48,57,65,.84); box-shadow: 0 12px 28px rgba(20,30,38,.22); backdrop-filter: blur(16px); transform: translateX(-50%); pointer-events: auto; }
.quick-actions button { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 7px; min-height: 54px; padding: 6px 9px; color: white; text-align: left; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.045); }
.quick-actions button:hover { border-color: rgba(101,217,156,.45); background: rgba(101,217,156,.09); }
.quick-actions button > i { display: grid; place-items: center; width: 31px; height: 31px; color: var(--green); border-radius: 7px; background: rgba(101,217,156,.13); font-size: 15px; }
.quick-actions span, .quick-actions small { display: block; }.quick-actions span { font-size: 9px; font-weight: 700; }.quick-actions small { margin-top: 3px; color: rgba(255,255,255,.45); font-size: 7px; font-weight: 400; }

.bottom-status { position: fixed; z-index: 10; left: 50%; bottom: 8px; width: min(680px, calc(100vw - 880px)); min-height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 12px; border-radius: 10px; transform: translateX(-50%); font-size: 8px; }
.bottom-status span:first-child { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.65); }.bottom-status b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }.bottom-status span:last-child { color: rgba(255,255,255,.5); white-space: nowrap; }

.toast { position: fixed; z-index: 80; left: 50%; bottom: 74px; max-width: min(520px, calc(100vw - 40px)); padding: 10px 16px; color: white; border: 1px solid rgba(101,217,156,.45); border-radius: 9px; background: rgba(39,48,56,.95); box-shadow: 0 14px 40px rgba(0,0,0,.28); opacity: 0; transform: translate(-50%, 8px); transition: opacity .18s ease, transform .18s ease; font-size: 10px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; opacity: 0; transition: opacity .16s ease; }
.modal.open { opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,16,21,.58); backdrop-filter: blur(5px); }
.modal-dialog { position: relative; width: min(820px, calc(100vw - 60px)); max-height: calc(100vh - 80px); overflow: hidden; color: white; border: 1px solid rgba(255,255,255,.27); border-radius: 16px; background: rgba(38,47,55,.97); box-shadow: 0 30px 90px rgba(0,0,0,.36); }
.modal-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 20px 13px; border-bottom: 1px solid rgba(255,255,255,.1); }
.modal-dialog header span { color: var(--cyan); font-size: 9px; letter-spacing: .12em; }.modal-dialog h2 { margin: 3px 0; font-size: 19px; }.modal-dialog header p { margin: 0; color: rgba(255,255,255,.52); font-size: 10px; }
.modal-dialog header button { width: 31px; height: 31px; color: white; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); }
.project-search { display: flex; align-items: center; gap: 8px; margin: 13px 20px 9px; padding: 0 11px; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; background: rgba(255,255,255,.06); }
.project-search > i { color: rgba(255,255,255,.5); }.project-search input { flex: 1; padding: 9px 0; color: white; border: 0; outline: 0; background: transparent; font-size: 10px; }.project-search input::placeholder { color: rgba(255,255,255,.4); }
.project-list { max-height: 430px; display: grid; gap: 7px; overflow: auto; padding: 0 20px; }
.project-row { width: 100%; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 9px; padding: 11px; color: white; text-align: left; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: rgba(255,255,255,.045); }
.project-row:hover { border-color: rgba(67,204,232,.55); background: rgba(67,204,232,.09); }
.project-row > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--cyan); border-radius: 8px; background: rgba(67,204,232,.15); font-size: 10px; font-weight: 750; }
.project-row div { min-width: 0; }.project-row strong, .project-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.project-row strong { font-size: 12px; }.project-row small { margin-top: 4px; color: rgba(255,255,255,.48); font-size: 8px; }.project-row em { color: var(--cyan); font-size: 9px; font-style: normal; }
.modal-empty { display: grid; justify-items: center; padding: 36px 20px; color: rgba(255,255,255,.54); border: 1px dashed rgba(255,255,255,.13); border-radius: 10px; }.modal-empty i { font-size: 25px; }.modal-empty strong { margin-top: 8px; color: white; font-size: 12px; }.modal-empty span { margin-top: 4px; font-size: 9px; }
.modal-dialog > footer { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; padding: 12px 20px; color: rgba(255,255,255,.52); border-top: 1px solid rgba(255,255,255,.1); font-size: 9px; }.modal-dialog > footer button { padding: 7px 17px; color: white; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; background: rgba(255,255,255,.06); }

.login-page { min-height: 100vh; display: grid; place-items: center; color: var(--ink); background: #dbe5e6; }
.login-page::before { content: ""; position: fixed; inset: 0; opacity: .32; background-image: linear-gradient(rgba(70,103,112,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(70,103,112,.08) 1px, transparent 1px); background-size: 48px 48px; }
.login-shell { position: relative; width: min(960px, calc(100vw - 40px)); min-height: 560px; display: grid; grid-template-columns: 1.25fr .75fr; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; box-shadow: 0 30px 90px rgba(34,55,61,.2); }
.login-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 38px; color: white; background: #34434b; }
.login-brand-mark { position: relative; z-index: 1; color: #43bce7; font-size: 24px; font-style: italic; font-weight: 800; }.login-brand-mark span { font-size: 11px; }
.login-brand-copy { position: relative; z-index: 1; }.eyebrow { color: #7fd5e7; font-size: 10px; letter-spacing: .22em; }.login-brand h1 { margin: 14px 0; font-size: 37px; line-height: 1.26; letter-spacing: .03em; }.login-brand p { max-width: 410px; margin: 0; color: rgba(255,255,255,.64); font-size: 13px; line-height: 1.8; }
.login-brand-status { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.65); font-size: 11px; }.login-brand-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(101,217,156,.12); }
.login-card { display: flex; flex-direction: column; padding: 76px 42px 34px; background: rgba(249,252,253,.96); }.login-card header span { color: #1a94bb; font-size: 11px; font-weight: 650; }.login-card h2 { margin: 8px 0 6px; font-size: 29px; }.login-card header p { margin: 0 0 32px; color: #7a858c; font-size: 12px; }
.login-card form { display: grid; gap: 17px; }.login-card label span { display: block; margin-bottom: 7px; color: #5c686f; font-size: 11px; font-weight: 650; }.login-card input { width: 100%; padding: 12px 13px; border: 1px solid #d4dde0; border-radius: 10px; outline: none; background: white; }.login-card input:focus { border-color: #2ea8cf; box-shadow: 0 0 0 3px rgba(46,168,207,.12); }.login-card form button { padding: 13px; color: white; border: 0; border-radius: 10px; background: #2d9dc2; font-weight: 700; }.login-card form button:disabled { opacity: .65; }.login-error { margin: -7px 0 0; color: #c84651; font-size: 11px; }.login-card footer { margin-top: auto; padding-top: 24px; color: #9aa3a8; font-size: 9px; text-align: center; }

@media (max-width: 1500px) {
  .system-nav a, .system-nav span { padding-inline: 9px; font-size: 9px; }
  .brand h1 { font-size: 17px; }
  .side-column { width: 320px; }
  .center-stage { left: 332px; right: 332px; }
  .metric-grid-four { grid-template-columns: repeat(2, 1fr); }
  .overview-card { flex-basis: 280px; }
  .bottom-status { width: calc(100vw - 690px); }
}

@media (max-height: 830px) {
  .dashboard-grid { top: 80px; bottom: 43px; }
  .topbar { top: 7px; min-height: 63px; }
  .dashboard-card { padding: 10px 12px; }
  .dashboard-card > header { margin-bottom: 7px; }
  .overview-card { flex-basis: 207px; }
  .hero-metric { min-height: 58px; padding-block: 7px; }
  .hero-metric strong { font-size: 28px; }
  .metric-grid div { min-height: 52px; padding-block: 5px; }
  .district-row { min-height: 37px; padding-block: 4px; }
  .inspection-card { flex-basis: 175px; }
  .service-card { flex-basis: 215px; }
  .service-grid > div { min-height: 64px; }
  .project-carousel-card { flex-basis: 184px; }
  .operations-card { min-height: 220px; }
  .operation-list button { padding-block: 6px; }
  .scope-card, .duty-card { top: 116px; }
  .bottom-status { bottom: 5px; min-height: 28px; }
}

@media (max-width: 980px) {
  .dashboard-page { overflow: auto; background: #dce7e8; }
  .map-layer, .map-shade { display: none; }
  .topbar { position: relative; inset: auto; grid-template-columns: 1fr; gap: 8px; margin: 10px; }
  .system-nav, .brand, .top-meta { justify-self: center; }
  .dashboard-grid { position: relative; inset: auto; display: grid; gap: 10px; padding: 0 10px 70px; }
  .side-column, .center-stage { position: static; width: auto; }
  .center-stage { min-height: 460px; order: -1; }
  .filter-stack { position: static; width: 100%; transform: none; }
  .filter-row { grid-template-columns: 1fr; gap: 6px; }
  .filter-row label { border-right: 0; }
  .scope-card { top: 182px; left: 10px; }.duty-card { top: 182px; right: 10px; }
  .quick-actions { bottom: 10px; }
  .bottom-status { width: calc(100vw - 20px); }
  .side-column { display: grid; }
  .overview-card, .district-card, .inspection-card, .service-card, .project-carousel-card, .operations-card { min-height: 0; flex-basis: auto; }
  .login-shell { grid-template-columns: 1fr; }.login-brand { min-height: 290px; }.login-card { min-height: 420px; padding: 38px 28px; }
}
