/* Presentation-only theme. Existing navigation, forms and map behavior are retained. */
:root {
  --green: #1769c2;
  --green-soft: #edf4fc;
  --ink: #263445;
  --muted: #6b7788;
  --line: #e1e6ec;
  --bg: #f3f5f7;
  --shadow: none;
  --sidebar-bg: #293440;
}
body { font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif; }
:focus-visible { outline: 2px solid #1769c2; outline-offset: 3px; }
input, select { accent-color: var(--green); }
.sidebar { width: 220px; padding: 24px 12px 0; background: var(--sidebar-bg); color: #e8edf3; border-right: 0; }
.brand { padding: 0 8px; gap: 10px; font-size: 22px; letter-spacing: 1px; }
.brand-symbol { width: 36px; height: 36px; border-radius: 4px; background: #1769c2; color: #fff; font-size: 28px; }
.brand-symbol { flex-shrink: 0; overflow: hidden; }
.brand-symbol img { display: block; width: 100%; height: 100%; }
.brand small { color: #a8b4c1; font-size: 7px; letter-spacing: .65px; }
.workspace { margin: 26px 4px 22px; padding: 12px 9px; background: #34414f; border-color: #445160; border-radius: 4px; font-size: 12px; }
.workspace-icon { color: #9dc7f4; }
.workspace small, .sidebar .user small { color: #b0bcc9; font-size: 11px; }
.workspace>div { min-width: 0; overflow-wrap: anywhere; }
.nav-label { color: #a4b1bf; font-size: 11px; letter-spacing: .5px; }
.nav-label span { color: #8e9eae; }
nav { gap: 5px; }
.nav-link { color: #c7d1dc; padding: 13px 15px; border-radius: 3px; font-size: 13px; }
.nav-link:hover { background: #354555; color: #fff; }
.nav-link.active { background: #1769c2; color: #fff; font-weight: 500; }
.nav-link.active:after { display: none; }
.sidebar-bottom { color: #b4c1ce; border-color: #45515f; margin-inline: 6px; font-size: 11px; }
.sidebar .user { border-color: #45515f; padding: 16px 7px; color: #e8edf3; }
.sidebar .account-link:hover { background: #34414f; }
.avatar, .top-avatar { background: #e9f1fb; color: #1769c2; }
.app-shell { margin-left: 220px; }
.topbar { position: sticky; top: 0; z-index: 30; height: 62px; padding: 0 26px; }
.breadcrumb { color: #788493; font-size: 12px; }
.breadcrumb b { color: #334155; font-weight: 500; }
.top-actions { gap: 16px; }
.simulation-badge { background: #f4f8fc; border-color: #dbe5ef; color: #516d8a; font-size: 11px; border-radius: 3px; }
time { color: #657487; }
main { padding: 24px 26px 14px; }
.page-heading { gap: 18px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.page-heading h1 { font-size: 24px; color: #263445; letter-spacing: 0; margin-bottom: 8px; }
.page-heading p { color: #697789; font-size: 12px; line-height: 1.7; }
.eyebrow { color: #718095; font-size: 10px; letter-spacing: 1px; }
.heading-actions { flex-wrap: wrap; justify-content: flex-end; }
.button { border-color: #d6dde6; border-radius: 4px; color: #4a596c; font-size: 12px; min-height: 34px; padding: 8px 14px; }
.button.primary { background: var(--green); border-color: var(--green); color: #fff; }
.button.small { font-size: 11px; padding: 6px 10px; min-height: 29px; }
.text-button { color: #1769c2; font-size: 11px; line-height: 1.6; }
.icon-button { border-radius: 4px; color: #657487; }
.stats { gap: 16px; margin-bottom: 20px; }
.stat { border-radius: 4px; padding: 18px 20px; border-top: 3px solid #b8cee8; }
.stat-label { color: #5e6e81; font-size: 12px; }
.stat-label svg { color: #6d91b9; }
.stat-value { color: #25374b; font-size: 30px; margin-top: 12px; }
.stat-value small { color: #778496; font-size: 11px; }
.stat-foot { color: #718095; font-size: 11px; line-height: 1.6; }
.trend { color: #237454; background: #edf7f1; font-size: 10px; }
.panel { border-radius: 4px; }
.panel-heading { min-height: 52px; padding: 15px 18px; }
.panel-title { font-size: 14px; color: #334155; }
.panel-title:before { height: 14px; border-radius: 0; }
.panel-subtitle { color: #778496; font-size: 11px; }
.workspace-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
.bottom-grid, .analytics-grid, .admin-grid { gap: 18px; }
.section-toolbar { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 4px; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.search-input { width: 300px; max-width: 100%; border-color: #d6dde6; border-radius: 4px; font-size: 12px; color: #334155; }
.search-input::placeholder { color: #7c8999; }
.filter-button { border-radius: 4px; color: #526174; font-size: 12px; padding: 9px 15px; }
.filter-button.active { background: #1769c2; border-color: #1769c2; }
th { background: #f2f5f8; color: #526174; font-size: 12px; font-weight: 500; padding: 13px 18px; border-bottom: 1px solid var(--line); }
td { color: #526174; font-size: 12px; padding: 14px 18px; border-color: #e9edf2; }
.full-table td { padding: 16px 18px; }
tbody tr:hover { background: #f7faff; }
.id-cell { color: #1769c2; }
.status-pill { background: #edf7f1; color: #267653; border-radius: 3px; font-size: 11px; padding: 4px 8px; }
.status-pill.orange { color: #986719; background: #fff5e3; }
.status-pill.red { color: #b14848; background: #fceeee; }
.info-banner { background: #edf4fc; border-color: #d6e4f5; color: #4b6583; border-radius: 4px; font-size: 12px; }
.empty-state, .muted { color: #718095; font-size: 12px; }
.space-list div, .summary-foot, .map-caption, .chart-key { color: #657487; font-size: 11px; }
.space-list b, .summary-foot b { color: #334155; font-size: 12px; }
.donut-center small { color: #718095; font-size: 10px; }
.alert-item { border-color: #e9edf2; padding: 14px 0; }
.alert-item h4 { font-size: 12px; color: #334155; }
.alert-item p, .alert-item time { color: #718095; font-size: 10px; line-height: 1.7; }
.alert-symbol, .count-badge { border-radius: 3px; }
.alert-symbol.red { background: #fceeee; color: #b14848; }
.alert-item>div { min-width: 0; }
.alert-item p { overflow-wrap: anywhere; }
.rank-item { color: #657487; font-size: 12px; }
.rank-item b { color: #334155; }
.progress-track { background: #e9eef4; }
.progress-fill { background: #6495cb; }
.area-card p, .mission-card p, .mission-card .row { color: #657487; font-size: 12px; }
.mission-card h3 { color: #334155; font-size: 14px; }
.replay-bar { background: #f5f7fa; color: #657487; font-size: 12px; }
footer { padding: 12px 26px 18px; color: #788493; font-size: 10px; }
dialog { border-radius: 6px; box-shadow: 0 20px 64px #172b4533; }
dialog::backdrop { background: #1f2d3e66; backdrop-filter: none; }
.modal-header { background: #fafbfc; }
.modal-body p, .form-field { color: #5e6e81; font-size: 12px; }
.form-field input, .form-field select, .auth-field input, .auth-field select { background: #fff; border-color: #d6dde6; border-radius: 4px; color: #334155; font-size: 13px; }
.auth-field select { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #d6dde6; font: inherit; }
.test-regulator-section { margin: 18px 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.test-regulator-section h3 { margin-bottom: 14px; font-size: 14px; }
.test-regulator-section .test-account-option { margin-top: 14px; }
.toast { background: #293e55; border-radius: 4px; }
.result-box { border-radius: 4px; }
/* Authentication and role-specific workspaces share the same palette. */
.entry-page { min-height: 100vh; display: flex; flex-direction: column; background: #f3f5f7; }
.entry-header { min-height: 82px; display: flex; align-items: center; gap: 24px; padding: 18px 5vw; background: #fff; border-bottom: 1px solid var(--line); }
.entry-header .entry-brand { display: flex; background: none; border: 0; color: #263445; text-align: left; padding: 0; }
.entry-brand>span:last-child { display: block; }
.entry-brand small { color: #718095; }
.entry-header>.button { margin-left: auto; min-width: 82px; }
.entry-platform-name { border-left: 1px solid #d6dde6; padding-left: 24px; color: #657487; font-size: 13px; }
.entry-content { flex: 1; display: grid; place-items: center; padding: 40px 24px; }
.welcome-content { text-align: center; padding: 42px 0 60px; }
.welcome-eyebrow { display: inline-block; color: #1769c2; font-size: 13px; letter-spacing: 3px; margin-bottom: 26px; }
.welcome-content h1 { margin: 0; font-size: clamp(34px, 4vw, 56px); line-height: 1.5; font-weight: 600; letter-spacing: 2px; color: #263445; }
.welcome-content h1 span { color: #1769c2; }
.welcome-content p { color: #657487; font-size: 16px; line-height: 2; margin: 24px 0 34px; }
.welcome-login { min-width: 172px; padding: 13px 24px; font-size: 15px; gap: 35px; }
.welcome-roles { display: flex; align-items: center; justify-content: center; gap: 20px; color: #718095; font-size: 12px; margin-top: 40px; }
.welcome-roles i { width: 3px; height: 3px; border-radius: 50%; background: #a8b6c6; }
.entry-footer { display: flex; justify-content: space-between; gap: 12px; padding: 20px 5vw; color: #718095; font-size: 11px; border-top: 1px solid #e1e6ec; }
.entry-account .entry-card { margin: 0; width: 100%; max-width: 440px; padding: 30px 36px 20px; border-radius: 6px; box-shadow: 0 8px 30px #26344508; }
.entry-card-heading { text-align: center; margin-bottom: 27px; }
.entry-card-label { color: #718095; font-size: 10px; letter-spacing: 2px; }
.entry-card-heading h2 { margin: 12px 0 10px; font-size: 25px; letter-spacing: 1px; }
.entry-card-heading .auth-description { margin: 0; }
.entry-card .auth-field { margin-bottom: 20px; }
.entry-card .auth-submit { justify-content: center; gap: 20px; padding: 12px 18px; }
.entry-switch { text-align: center; font-size: 12px; color: #718095; margin-top: 22px; }
.entry-switch button { margin-left: 8px; font-size: 12px; }
.entry-card .demo-divider { margin-top: 24px; margin-bottom: 13px; }
.entry-card .demo-roles button { padding: 9px 4px; font-size: 10px; gap: 5px; }
.entry-card .demo-password { margin: 12px 0 0; font-size: 10px; }
.entry-card .auth-error:empty { min-height: 0; margin: 0; }
.entry-card.entry-register { max-width: 500px; }
.entry-register .form-grid .auth-field { margin: 0; }
.entry-register .auth-submit { margin-top: 24px; }
/* Reuse the original radar line illustration beneath the entry content. */
.entry-page { position: relative; isolation: isolate; overflow: hidden; }
.entry-header, .entry-content, .entry-footer { position: relative; z-index: 1; }
.entry-footer { background: #f3f5f7; }
.entry-backdrop { position: absolute; inset: auto 0 30px; height: 330px; z-index: 0; pointer-events: none; overflow: hidden; }
.entry-backdrop .entry-radar { position: absolute; width: 660px; max-width: none; height: 380px; left: 50%; top: 12px; right: auto; margin: 0; transform: translateX(-50%); opacity: .65; }
.entry-radar .radar-ring { border-color: #9cb3ce; }
.entry-radar .ring-1 { width: 140px; height: 140px; }
.entry-radar .ring-2 { width: 280px; height: 280px; }
.entry-radar .ring-3 { width: 430px; height: 430px; }
.entry-radar .radar-cross { background: linear-gradient(90deg, transparent calc(50% - .5px), #a6bad044 50%, transparent calc(50% + .5px)), linear-gradient(0deg, transparent calc(50% - .5px), #a6bad044 50%, transparent calc(50% + .5px)); }
.entry-radar .radar-craft, .entry-radar .radar-center, .entry-radar .radar-label { color: #7998bb; text-shadow: none; }
.entry-radar .radar-route { border-color: #94adc9; }
.entry-welcome ~ .entry-footer { background: transparent; }
.entry-page:has(:is(.entry-welcome,.entry-account)) .entry-backdrop { inset: 82px 0 0; height: auto; }
.entry-page:has(:is(.entry-welcome,.entry-account)) .entry-radar { width: min(96vw, 1500px); height: calc(100vh - 82px); min-height: 650px; top: 0; opacity: .35; }
.entry-page:has(:is(.entry-welcome,.entry-account)) .ring-1 { width: min(29vw, 420px); height: min(29vw, 420px); }
.entry-page:has(:is(.entry-welcome,.entry-account)) .ring-2 { width: min(57vw, 820px); height: min(57vw, 820px); }
.entry-page:has(:is(.entry-welcome,.entry-account)) .ring-3 { width: min(88vw, 1280px); height: min(88vw, 1280px); }
.entry-page:has(:is(.entry-welcome,.entry-account)) .radar-route { width: 58%; height: 32%; left: 22%; top: 34%; }
.entry-page:has(:is(.entry-welcome,.entry-account)) .radar-craft { font-size: 42px; }
.entry-page:has(:is(.entry-welcome,.entry-account)) .radar-label { font-size: 10px; }
.entry-header>.entry-test-button { margin-left: 0; min-width: 62px; }
.test-account-list { display: grid; gap: 9px; }
.test-account-option { display: flex; align-items: center; gap: 14px; width: 100%; background: #f7f9fc; border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; color: var(--ink); text-align: left; }
.test-account-option:hover { border-color: #1769c2; background: #edf4fc; }
.test-account-option>span:last-child { margin-left: auto; color: #1769c2; }
.test-account-option b { display: block; font-size: 13px; font-weight: 500; }
.test-account-option small { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.test-account-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #1769c2; }
.test-account-icon svg { width: 23px; height: 23px; }
/* Short, one-shot transitions; no continuous decorative motion. */
@keyframes entry-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes surface-arrive {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.welcome-content { animation: entry-arrive 500ms ease-out both; }
.entry-account .entry-card { animation: entry-arrive 500ms ease-out both; }
.page-heading { animation: surface-arrive 500ms ease-out both; }
dialog[open] #modal-content { animation: surface-arrive 500ms ease-out both; }
.button, .auth-submit, .filter-button, .nav-link, .demo-roles button, .register-role {
  transition: background-color 500ms ease, border-color 500ms ease, color 500ms ease, box-shadow 500ms ease;
}
.auth-field input, .form-field input, .form-field select, .search-input { transition: border-color 500ms ease, box-shadow 500ms ease; }
.welcome-login span { transition: transform 500ms ease; }
.welcome-login:hover span { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .welcome-content, .entry-account .entry-card, .page-heading, dialog[open] #modal-content { animation: none; }
  .welcome-login:hover span { transform: none; }
}
@media (max-width: 640px) {
  .entry-header { min-height: 72px; padding: 16px 20px; gap: 12px; }
  .entry-brand { font-size: 20px; }
  .entry-brand small { font-size: 6px; }
  .entry-platform-name { display: none; }
  .entry-header>.button { min-width: 70px; padding-inline: 10px; }
  .entry-content { padding: 26px 16px; }
  .welcome-content { padding: 24px 0 40px; }
  .welcome-content h1 { font-size: 32px; letter-spacing: 1px; }
  .welcome-content p { font-size: 13px; }
  .welcome-roles { gap: 14px; }
  .entry-account .entry-card { padding: 28px 24px 22px; }
  .entry-card-heading h2 { font-size: 24px; }
  .entry-footer { padding: 18px 20px; font-size: 10px; }
  .entry-backdrop { height: 230px; }
  .entry-backdrop .entry-radar { width: 440px; height: 300px; top: 10px; opacity: .45; }
  .entry-radar .ring-1 { width: 100px; height: 100px; }
  .entry-radar .ring-2 { width: 210px; height: 210px; }
  .entry-radar .ring-3 { width: 320px; height: 320px; }
  .entry-header { padding-inline: 14px; gap: 6px; }
  .entry-header>.entry-test-button { min-width: 44px; padding-inline: 8px; }
  .entry-page:has(:is(.entry-welcome,.entry-account)) .entry-backdrop { top: 72px; }
  .entry-page:has(:is(.entry-welcome,.entry-account)) .entry-radar { width: 140vw; min-height: 0; height: calc(100vh - 72px); opacity: .28; }
  .entry-page:has(:is(.entry-welcome,.entry-account)) .ring-1 { width: 40vw; height: 40vw; }
  .entry-page:has(:is(.entry-welcome,.entry-account)) .ring-2 { width: 82vw; height: 82vw; }
  .entry-page:has(:is(.entry-welcome,.entry-account)) .ring-3 { width: 130vw; height: 130vw; }
}
.auth-page { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #f3f5f7; }
.auth-story { background: #293440; padding: 44px 52px 30px; }
.auth-brand { color: #fff; }
.auth-brand small { color: #afbdcc; }
.auth-brand .brand-symbol { background: #1769c2; color: #fff; }
.auth-eyebrow { color: #aebed0; font-size: 10px; letter-spacing: 1.5px; }
.auth-story h1 { font-size: clamp(30px, 3vw, 46px); font-weight: 600; letter-spacing: 1px; }
.auth-story h1>span { color: #81b5ee; }
.auth-intro { color: #bdc9d6; font-size: 14px; }
.auth-story-bottom { color: #b6c4d3; font-size: 11px; }
.auth-story:before { background: none; }
.auth-radar { opacity: .45; }
.radar-ring { border-color: #91b4d944; }
.radar-craft, .radar-center, .radar-label { color: #b6d4f5; text-shadow: none; }
.radar-route { border-color: #94bce777; }
.auth-side { padding: 36px 42px 24px; }
.auth-card { max-width: 460px; background: #fff; padding: 30px 32px; border: 1px solid var(--line); border-radius: 6px; }
.auth-mini-brand { color: #1769c2; font-size: 15px; }
.auth-version { color: #788493; font-size: 9px; }
.auth-tabs button { font-size: 13px; color: #657487; }
.auth-card h2 { color: #263445; font-size: 24px; }
.auth-description { color: #718095; font-size: 12px; }
.auth-field { color: #526174; font-size: 12px; }
.auth-field input::placeholder { color: #8995a4; font-size: 12px; }
.auth-field input:focus { outline: 2px solid #1769c233; border-color: #1769c2; }
.auth-submit { border-radius: 4px; font-size: 14px; background: #1769c2; }
.auth-login-hint, .demo-password, .auth-foot, .auth-copyright, .register-hint, .register-terms { color: #718095; font-size: 11px; line-height: 1.8; }
.demo-divider span { font-size: 11px; color: #718095; }
.demo-roles button { background: #fafbfc; color: #526174; font-size: 11px; border-radius: 4px; }
.demo-roles button:hover { border-color: #7ea8d7; background: #edf4fc; }
.demo-password code { color: #526174; font-size: 11px; }
.register-role { border-radius: 4px; color: #526174; font-size: 12px; }
.register-role.active { color: #1769c2; background: #edf4fc; border-color: #80aadd; }
.auth-notice, .identity-permissions, .admin-tip { color: #526d8c; background: #edf4fc; border-radius: 4px; font-size: 12px; }
.identity-mark, .fleet-art, .role-icon { background: #edf4fc; color: #1769c2; border-radius: 4px; }
.identity-content p, .notice-summary p, .mini-notice small, .fleet-card code, .fleet-spec span, .role-overview p, .pending-user p, .profile-card p, .profile-card dt { color: #657487; font-size: 12px; }
.fleet-spec b, .role-overview b, .profile-card dd { color: #334155; font-size: 12px; }
.role-overview b { font-size: 25px; }
.fleet-card h3 { color: #334155; }
.profile-avatar { color: #1769c2; background: #edf4fc; }
.large-number { color: #1769c2; }
.large-number small { color: #657487; font-size: 12px; }
.pilot-callout { background: #edf4fc; border-color: #d6e4f5; border-radius: 4px; padding: 22px 25px; }
.pilot-callout p, .pilot-callout .eyebrow, .checklist span, .checklist small { color: #657487; font-size: 12px; }
.checklist b { color: #334155; }
.permission-check.allowed { color: #1769c2; }
/* Map semantics (airspace/alert/aircraft colors) remain unchanged. */
.map-location { background: #f2f5f8; color: #526174; border-radius: 3px; }
.map-meta, .map-layer-box { background: #293440ed; border-color: #66798d; color: #e3eaf2; border-radius: 4px; font-size: 11px; }
.map-meta span, .aircraft-legend-heading { color: #b8c7d8; }
.map-layer-box input { accent-color: #1769c2; }
.map-network { background: #293440ee; border-radius: 4px; }
.map-layer-box label { grid-template-columns: 13px 9px 1fr; }
.map-layer-box input[type="checkbox"] { width: 13px; height: 13px; min-width: 13px; min-height: 13px; }
.region-picker>button, .map-zoom button { background: #293440f5; border-color: #66798d; color: #fff; border-radius: 4px; }
.region-menu { background: #fff; border-color: #d6dde6; color: #334155; border-radius: 4px; }
.region-column+.region-column { border-color: var(--line); }
.region-column h4 { background: #f2f5f8; }
.region-column h4 small, .region-list button span { color: #718095; }
.region-list button { color: #526174; }
.region-list button:hover { background: #f3f7fc; }
.region-list button.active, .region-list button.region-all { background: #edf4fc; color: #1769c2; }
.scenario-controls { background: #fafbfc; border-color: var(--line); }
.scenario-top label, .scenario-status, .scenario-timeline, .scenario-breakdown, .live-clock { color: #657487; font-size: 12px; }
.scenario-top select { color: #334155; border-color: #d6dde6; border-radius: 4px; }
.live-clock b, .scenario-timeline b, .scenario-breakdown a { color: #1769c2; }
.scenario-actions button { color: #1769c2; border-color: #d6dde6; border-radius: 4px; }
.scenario-actions .replay-start { background: #1769c2; border-color: #1769c2; color: #fff; }
.scenario-breakdown b { color: #334155; }
.hour-chart i { background: #82a6d0; }
.hour-chart>div:hover i { background: #1769c2; }
.hour-chart b, .hour-chart small { color: #657487; }
.airspace-strip { background: #f5f7fa; border-color: var(--line); color: #657487; }
.airspace-popup { color: #334155; }
.airspace-popup a, .airspace-sources article a { color: #1769c2; }
.airspace-popup small, .airspace-sources p, .airspace-sources article small { color: #657487; }
.coverage-grid>div { background: #f7f9fb; border-color: var(--line); border-radius: 4px; }
.coverage-grid span, .coverage-grid small { color: #657487; }
@media (min-width: 1600px) {
  main { padding-top: 28px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 1200px) {
  .sidebar { width: 200px; padding-inline: 10px; }
  .app-shell { margin-left: 200px; }
  main { padding: 22px 20px 12px; }
  .topbar { padding-inline: 20px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr) 260px; }
  .brand { font-size: 20px; padding-inline: 3px; }
  .stat { padding: 16px; }
  .auth-story { padding: 36px; }
  .auth-side { padding: 28px; }
  .auth-card { padding: 26px; }
}
@media (max-width: 980px) {
  .sidebar { width: 76px; padding: 22px 12px 0; }
  .app-shell { margin-left: 76px; }
  .brand { padding: 0; justify-content: center; }
  .nav-link { font-size: 0; padding: 14px 17px; }
  .sidebar .user { padding: 16px 0; }
  .workspace-grid { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
}
@media (max-width: 800px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-story { padding: 26px 30px; }
  .auth-story h1 { font-size: 28px; }
  .auth-radar { opacity: .2; }
  .auth-side { padding: 28px 22px; }
}
@media (max-width: 640px) {
  .sidebar { width: 100%; height: 64px; padding: 0 5px; border-top: 1px solid #45515f; }
  .app-shell { margin-left: 0; margin-bottom: 64px; }
  .sidebar>.brand { display: none; }
  #navigation { display: flex; margin: 0; width: 100%; gap: 0; justify-content: flex-start; overflow-x: auto; }
  .nav-link { width: auto; flex: 0 0 calc(100% / 6); font-size: 10px; padding: 9px 10px; border-radius: 0; }
  .topbar { height: 57px; padding-inline: 14px; }
  .top-actions { gap: 7px; }
  .simulation-badge { font-size: 9px; padding: 5px 6px; }
  .breadcrumb span { padding-inline: 7px; }
  main { padding: 20px 14px 10px; }
  .page-heading { gap: 10px; padding-bottom: 14px; margin-bottom: 16px; }
  .page-heading h1 { font-size: 21px; }
  .page-heading p { font-size: 11px; }
  .heading-actions .button { font-size: 11px; padding: 7px 9px; }
  .stats { gap: 10px; }
  .stat { padding: 14px; }
  .stat-foot { font-size: 10px; }
  .stat-value { font-size: 27px; }
  .side-stack { grid-template-columns: 1fr; }
  .section-toolbar { padding: 12px; gap: 8px; }
  .search-input { width: 100%; }
  .filter-button { padding: 8px 12px; font-size: 11px; }
  .panel-heading { padding: 14px; }
  td, th, .full-table td { padding: 13px 14px; }
  .auth-story { padding: 24px; }
  .auth-story h1 { font-size: 26px; }
  .auth-intro { font-size: 12px; }
  .auth-card { padding: 22px 20px; }
  .register-role { font-size: 11px; }
  .auth-side { padding: 22px 14px; }
  .auth-page .brand { justify-content: flex-start; }
  .auth-copyright { font-size: 10px; }
  .map-layer-box { font-size: 10px; }
  footer { padding-inline: 14px; }
}
