:root {
  color-scheme: dark;
  --bg: #08192a;
  --panel: #102a47;
  --panel-strong: #163b63;
  --line: rgba(0, 216, 255, .34);
  --line-hot: rgba(255, 85, 85, .82);
  --text: #edf8ff;
  --muted: #98b7d7;
  --blue: #2f93ff;
  --cyan: #00d8ff;
  --green: #55ff88;
  --amber: #ffce62;
  --red: #ff5555;
  --surface-3d-top: rgba(30, 77, 132, .98);
  --surface-3d-mid: rgba(12, 42, 82, .97);
  --surface-3d-bottom: rgba(3, 15, 40, .98);
  --surface-3d-edge: rgba(128, 207, 255, .58);
  --surface-3d-shadow: rgba(0, 11, 36, .46);
  --control-3d-top: #7eb5ff;
  --control-3d-mid: #2f7dff;
  --control-3d-bottom: #003fc7;
  --control-3d-dark: #021c65;
  --control-3d-edge: rgba(222, 245, 255, .9);
  --control-3d-shadow: rgba(0, 34, 120, .66);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(rgba(0, 216, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 216, 255, .035) 1px, transparent 1px),
    linear-gradient(135deg, #050f1c, #08192a 58%, #06111f);
  background-size: 38px 38px, 38px 38px, auto;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 0;
  background: #020814;
  opacity: 1;
  transition: opacity .55s ease, visibility .55s ease;
}

.intro-overlay::before,
.intro-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-overlay::before {
  background:
    linear-gradient(rgba(70, 217, 255, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 217, 255, .055) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .36;
  animation: introGridDrift 12s linear infinite;
}

.intro-overlay::after {
  width: min(86vw, 860px);
  aspect-ratio: 1;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 64%, rgba(70, 217, 255, .2), transparent 78% 100%);
  filter: blur(.2px);
  opacity: .42;
  animation: introRadarSweep 5.8s linear infinite;
}

.intro-overlay.intro-video-ready::before,
.intro-overlay.intro-video-ready::after {
  opacity: 0;
}

.intro-overlay.intro-video-fallback .intro-video,
.intro-overlay.intro-video-unavailable .intro-video {
  opacity: .26;
}

.intro-overlay.leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-scene {
  display: grid;
  justify-items: center;
  align-items: end;
  gap: 16px;
  text-align: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  position: relative;
}

.intro-poster,
.intro-video {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(100vw, calc(100dvh * 16 / 9), 1920px);
  height: auto;
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  display: block;
  object-fit: contain;
  object-position: 42% center;
}

.intro-poster {
  z-index: 0;
  filter: saturate(1.04) contrast(1.02) brightness(.98);
}

.intro-video {
  z-index: 0;
  opacity: 0;
  transition: opacity .24s ease;
}

.intro-overlay.intro-video-ready .intro-video {
  opacity: 1;
}

.intro-logo-video {
  width: min(420px, 68vw);
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: contain;
  filter: saturate(1.08) contrast(1.04) brightness(1.02) drop-shadow(0 12px 26px rgba(0, 0, 0, .34));
}

.intro-scene strong {
  display: none;
}

.intro-scene strong {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
}

.intro-scene span {
  color: transparent;
  font-size: 0;
  line-height: 0;
  font-weight: 850;
}

.intro-scene button {
  position: relative;
  z-index: 2;
  margin-bottom: clamp(24px, 5vh, 54px);
  min-width: 132px;
  min-height: 44px;
  border: 1px solid rgba(170, 226, 255, .58);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(47, 147, 255, .12)),
    rgba(3, 16, 30, .22);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  font-weight: 950;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, .22),
    0 0 18px rgba(70, 217, 255, .18),
    inset 0 0 16px rgba(255, 255, 255, .08);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .48);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.intro-scene button:hover {
  transform: translateY(-1px);
  border-color: rgba(170, 226, 255, .86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(70, 217, 255, .16)),
    rgba(3, 16, 30, .28);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, .26),
    0 0 26px rgba(70, 217, 255, .28),
    inset 0 0 18px rgba(255, 255, 255, .12);
}

.app-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 850;
}

.app-loading::before {
  content: "";
  width: 54px;
  aspect-ratio: 1;
  border: 2px solid rgba(0, 216, 255, .28);
  border-top-color: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(0, 216, 255, .24);
  animation: introScan 1s linear infinite;
}

.dashboard-app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
}

.sidebar,
.topbar,
.control-bar,
.alert,
.kpi-card,
.panel,
.ticker {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--surface-3d-edge);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .08), transparent 26%),
    linear-gradient(152deg, var(--surface-3d-top) 0%, var(--surface-3d-mid) 48%, var(--surface-3d-bottom) 100%);
  box-shadow:
    0 13px 24px var(--surface-3d-shadow),
    0 2px 0 rgba(118, 198, 255, .18),
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 -5px 0 rgba(0, 15, 62, .42),
    inset 0 0 24px rgba(70, 217, 255, .06);
}

.sidebar::before,
.topbar::before,
.control-bar::before,
.alert::before,
.kpi-card::before,
.panel::before,
.ticker::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 44%;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05) 56%, transparent),
    linear-gradient(125deg, rgba(255, 255, 255, .16), transparent 42%);
  pointer-events: none;
  z-index: 0;
}

.sidebar > *,
.topbar > *,
.control-bar > *,
.alert > *,
.kpi-card > *,
.panel > *,
.ticker > * {
  position: relative;
  z-index: 1;
}

.sidebar {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px;
}

.brand-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: 2px;
  min-height: 96px;
  padding: 2px 4px 8px;
  border-bottom: 1px solid rgba(128, 207, 255, .28);
  overflow: hidden;
}

.brand-mark {
  width: 54px;
  height: 54px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #42d7ff;
  background: radial-gradient(circle, rgba(70, 217, 255, .22), rgba(47, 147, 255, .12) 58%, rgba(5, 16, 30, .96));
  color: #9ff2ff;
  font-size: 12px;
  font-weight: 950;
  overflow: hidden;
}

.brand-logo {
  display: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
  border-radius: 0;
  width: 110px;
  height: 66px;
  margin-left: -10px;
}

.brand-logo::before {
  content: none;
}

.brand-logo::after {
  content: none;
}

.brand-logo img,
.brand-logo video {
  position: relative;
  z-index: 2;
  width: 104%;
  height: 104%;
  object-fit: cover;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
  transform: translate(-2%, -2%);
}

.brand-logo video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: saturate(1.08) contrast(1.04) brightness(1.02) drop-shadow(0 2px 6px rgba(0, 0, 0, .28));
  transform: none;
  border-radius: 0;
  -webkit-mask-image: none;
  mask-image: none;
}

.brand-logo-video {
  width: min(184px, 128%);
  height: 68px;
  display: block;
  object-fit: cover;
  object-position: 51% 50%;
  filter: saturate(1.1) contrast(1.06) brightness(1.04) drop-shadow(0 6px 12px rgba(0, 0, 0, .42));
  transform: scale(1.38);
  transform-origin: center;
}

.brand-copy {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 1px;
  margin-top: -7px;
  text-align: center;
}

.brand-block strong,
.brand-block span,
.side-status b,
.side-status small {
  display: block;
}

.brand-block strong {
  font-size: 16px;
}

.brand-block span,
.side-status small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.brand-block span {
  white-space: nowrap;
  letter-spacing: .04em;
}

.sidebar nav {
  display: grid;
  align-content: start;
  gap: 5px;
  overflow-y: auto;
  padding-right: 2px;
}

.sidebar .desktop-nav {
  display: grid;
}

.sidebar .mobile-nav {
  display: none;
}

.nav-group {
  display: grid;
  gap: 4px;
}

.nav-heading {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
  min-height: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 8px;
  border: 1px solid rgba(126, 185, 255, .32);
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(62, 112, 190, .9), rgba(18, 54, 120, .92) 52%, rgba(3, 18, 70, .96)),
    rgba(5, 18, 34, .78);
  color: #d8ecff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.15;
  opacity: .88;
  text-align: left;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -4px 0 rgba(0, 18, 70, .58),
    0 8px 15px rgba(0, 0, 0, .28);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.nav-heading::before,
.nav-item::before,
.mobile-nav-item::before,
.control-bar button::before,
.map-actions button::before,
.view-tab::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .12) 58%, transparent),
    linear-gradient(125deg, rgba(255, 255, 255, .28), transparent 38%);
  pointer-events: none;
  z-index: 0;
}

.nav-heading.active {
  color: #ffffff;
  border-color: var(--control-3d-edge);
  background:
    linear-gradient(145deg, var(--control-3d-top) 0%, var(--control-3d-mid) 48%, var(--control-3d-bottom) 100%);
  opacity: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .36),
    inset 0 -4px 0 rgba(0, 20, 96, .58),
    0 9px 16px rgba(0, 25, 88, .48);
}

.nav-heading:hover,
.nav-item:hover,
.control-bar button:hover,
.map-actions button:hover,
.view-tab:hover {
  filter: brightness(1.08);
}

.nav-heading:active,
.nav-item:active,
.control-bar button:active,
.map-actions button:active,
.view-tab:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 5px rgba(0, 15, 58, .55),
    inset 0 -1px 0 rgba(255, 255, 255, .12),
    0 3px 7px rgba(0, 0, 0, .2);
}

.nav-heading b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-heading-cue {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 244, 255, .72);
  border-radius: 50%;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(117, 164, 255, .96), rgba(28, 89, 214, .96) 58%, rgba(5, 45, 165, .98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 0 -2px 0 rgba(0, 22, 92, .55),
    0 4px 9px rgba(0, 20, 80, .38);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.nav-group-items {
  display: grid;
  gap: 4px;
  padding-left: 6px;
}

.nav-item {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 30px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(76, 151, 222, .18);
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(43, 90, 166, .68), rgba(11, 36, 88, .82) 58%, rgba(4, 17, 54, .9));
  color: #bad8f6;
  text-align: left;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.12;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -3px 0 rgba(0, 12, 56, .52),
    0 6px 12px rgba(0, 0, 0, .22);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.nav-item span,
.nav-item small {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item small {
  color: rgba(152, 183, 215, .72);
  font-size: 10px;
  font-weight: 760;
}

.nav-item.active {
  color: #fff;
  background:
    linear-gradient(145deg, var(--control-3d-top) 0%, var(--control-3d-mid) 46%, var(--control-3d-bottom) 100%);
  border-color: var(--control-3d-edge);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 -4px 0 rgba(0, 20, 96, .56),
    0 8px 16px var(--control-3d-shadow);
}

.nav-item.active small {
  color: #bfe8ff;
}

.mobile-nav-group {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(76, 151, 222, .34);
  border-radius: 6px;
  background: rgba(4, 16, 29, .54);
}

.mobile-nav-group h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #e4f4ff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
}

.mobile-nav-group h3::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #46d9ff, #2f93ff);
  box-shadow: 0 0 12px rgba(70, 217, 255, .5);
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.mobile-nav-item {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 185, 255, .34);
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(18, 53, 96, .78), rgba(5, 19, 39, .86));
  color: #c6dcf5;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 -3px 0 rgba(0, 16, 62, .42),
    0 6px 12px rgba(0, 0, 0, .22);
}

.mobile-nav-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-nav-item.active {
  color: #fff;
  border-color: var(--control-3d-edge);
  background:
    linear-gradient(145deg, var(--control-3d-top) 0%, var(--control-3d-mid) 48%, var(--control-3d-bottom) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 -4px 0 rgba(0, 20, 96, .58),
    0 8px 15px rgba(0, 25, 88, .42);
}

.side-status {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(102, 239, 134, .34);
  border-radius: 6px;
  background: rgba(4, 24, 20, .42);
}

.side-status b {
  font-size: 13px;
  line-height: 1.15;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(102, 239, 134, .08), 0 0 18px rgba(102, 239, 134, .8);
}

.workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 8px;
}

.topbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(312px, .34fr);
  gap: 8px;
  align-items: stretch;
  padding: 8px;
}

.command-strip,
.clock-box {
  min-width: 0;
  display: grid;
  align-content: center;
}

.command-strip span,
.command-strip small,
.clock-box span,
.clock-box small,
.control-bar span,
.panel p,
.kpi-card small {
  color: var(--muted);
}

.command-strip {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  left: 0;
  width: 100%;
  grid-template-columns: 132px minmax(0, 1fr) minmax(220px, .72fr);
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(135, 210, 255, .52);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .1), transparent 26%),
    linear-gradient(90deg, rgba(29, 92, 166, .88), rgba(9, 33, 78, .93) 52%, rgba(4, 16, 44, .96));
  box-shadow:
    0 10px 18px rgba(0, 11, 36, .3),
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 -4px 0 rgba(0, 16, 66, .42);
}

.command-strip::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 44%;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), transparent),
    linear-gradient(125deg, rgba(255, 255, 255, .16), transparent 42%);
  pointer-events: none;
}

.command-strip.warning {
  border-color: rgba(255, 189, 66, .64);
  box-shadow: 0 0 24px rgba(255, 189, 66, .12);
}

.command-strip.alerting {
  border-color: rgba(255, 95, 118, .72);
  box-shadow: 0 0 24px rgba(255, 95, 118, .18);
}

.command-strip b,
.command-strip strong {
  color: #fff;
  font-weight: 950;
}

.command-strip b {
  white-space: nowrap;
}

.command-main {
  min-width: 0;
}

.command-main strong,
.command-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.command-metrics span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 4px 8px;
  border-left: 1px solid rgba(120, 184, 255, .24);
}

.command-metrics em {
  color: #fff;
  font-style: normal;
  font-size: 16px;
  line-height: 1;
  font-weight: 950;
}

.command-metrics .danger em {
  color: var(--red);
}

.command-metrics small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}

.clock-box {
  justify-items: end;
  padding-right: 8px;
  gap: 4px;
}

.clock-box time {
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.clock-box small {
  font-weight: 850;
}

.clock-date-line {
  display: grid;
  grid-template-columns: max-content 136px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  width: auto;
}

.clock-date-line span {
  text-align: right;
  white-space: nowrap;
}

.top-date-picker {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  flex: 0 0 auto;
}

.top-date-picker input {
  width: 136px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid rgba(168, 213, 255, .58);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(15, 48, 92, .88) 42%, rgba(4, 18, 42, .94));
  color: #fff;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -3px 0 rgba(0, 17, 70, .5),
    0 7px 14px rgba(0, 0, 0, .22);
}

.control-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
}

.noc-control-bar {
  justify-content: flex-start;
  background:
    linear-gradient(90deg, rgba(16, 42, 71, .92), rgba(5, 16, 30, .88));
}

.control-bar label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 850;
}

.control-bar input,
.control-bar button,
.map-actions button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 32px;
  border-radius: 7px;
  border: 1px solid rgba(168, 213, 255, .58);
  background:
    linear-gradient(145deg, rgba(19, 56, 105, .92), rgba(4, 20, 50, .94));
  color: #fff;
  padding: 0 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -4px 0 rgba(0, 17, 70, .58),
    0 8px 15px rgba(0, 0, 0, .28);
}

.control-bar button,
.map-actions button {
  font-weight: 900;
  background:
    linear-gradient(145deg, #8fc4ff 0%, var(--control-3d-top) 14%, var(--control-3d-mid) 52%, var(--control-3d-bottom) 100%);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 -6px 0 rgba(0, 22, 104, .62),
    0 11px 18px rgba(0, 25, 88, .5),
    0 0 0 1px rgba(255, 255, 255, .08);
}

.system-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(168, 213, 255, .38);
  border-radius: 999px;
  color: #cfe6ff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(13, 43, 82, .82) 40%, rgba(4, 18, 42, .9));
  font-size: 12px;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -2px 0 rgba(0, 18, 70, .38),
    0 6px 12px rgba(0, 0, 0, .18);
}

.system-chip.online::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(85, 255, 136, .68);
}

.view-tabs {
  min-width: 180px;
  flex: 1 1 auto;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.view-tab {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  flex: 0 0 auto;
  min-width: 86px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid rgba(126, 185, 255, .32);
  background:
    linear-gradient(145deg, rgba(43, 90, 166, .68), rgba(11, 36, 88, .82) 58%, rgba(4, 17, 54, .9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -3px 0 rgba(0, 12, 56, .52),
    0 6px 12px rgba(0, 0, 0, .22);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.view-tab.active {
  color: #ffffff;
  border-color: var(--control-3d-edge);
  background:
    linear-gradient(145deg, var(--control-3d-top) 0%, var(--control-3d-mid) 48%, var(--control-3d-bottom) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 -4px 0 rgba(0, 20, 96, .58),
    0 8px 15px rgba(0, 25, 88, .42);
}

.alert {
  padding: 10px 12px;
  color: #ffd3da;
  border-color: var(--red);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.kpi-card {
  min-height: 92px;
  padding: 10px;
  overflow: hidden;
  transform: translateZ(0);
}

.kpi-card span,
.kpi-card small {
  display: block;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi-card b {
  display: block;
  margin: 4px 0;
  font-size: 32px;
  line-height: 1;
  font-weight: 950;
}

.kpi-card.good b {
  color: var(--green);
}

.kpi-card.wait b {
  color: var(--amber);
}

.kpi-card.hot {
  border-color: var(--line-hot);
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 95, 118, .2), transparent 44%),
    linear-gradient(180deg, rgba(65, 21, 38, .92), rgba(5, 16, 30, .92));
}

.kpi-card.hot b {
  color: var(--red);
}

.kpi-card.pulse {
  animation: pulseBorder 1.35s ease-in-out infinite;
}

.kpi-progress {
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}

.kpi-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #c8ff5c);
}

.noc-kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.noc-kpi-card {
  position: relative;
  min-height: 106px;
  padding: 12px;
  border-color: rgba(135, 210, 255, .52);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .08), transparent 26%),
    linear-gradient(145deg, rgba(30, 86, 154, .96), rgba(9, 31, 72, .94) 54%, rgba(3, 14, 39, .96)),
    linear-gradient(90deg, rgba(0, 216, 255, .06), transparent);
  box-shadow:
    0 14px 24px rgba(0, 11, 36, .36),
    inset 0 1px 0 rgba(255, 255, 255, .26),
    inset 0 -6px 0 rgba(0, 16, 66, .42),
    inset 0 0 22px rgba(70, 217, 255, .07);
}

.noc-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 216, 255, .18), transparent 38%);
  opacity: .38;
}

.noc-kpi-card > * {
  position: relative;
  z-index: 1;
}

.noc-kpi-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.noc-kpi-card b {
  margin: 6px 0 3px;
  font-size: 34px;
  letter-spacing: 0;
}

.noc-kpi-card em {
  display: block;
  margin-top: 3px;
  color: #8fdfff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.noc-kpi-card.good b {
  color: var(--green);
}

.noc-kpi-card.wait b {
  color: var(--amber);
}

.noc-kpi-card.hot b {
  color: var(--red);
}

.noc-kpi-progress {
  height: 5px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}

.noc-kpi-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green), #d8ff62);
  box-shadow: 0 0 16px rgba(85, 255, 136, .28);
  transition: width .45s ease;
}

.noc-signal {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(85, 255, 136, .75);
  animation: nocSignal 1.7s ease-in-out infinite;
}

.noc-kpi-card.hot .noc-signal,
.noc-kpi-card.pulse .noc-signal {
  background: var(--red);
  box-shadow: 0 0 16px rgba(255, 85, 85, .84);
}

.war-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 28%);
  gap: 8px;
}

.noc-command-layout {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
}

.view-panel {
  display: none;
}

.workspace[data-view="overview"] .war-layout[data-panel="overview"],
.workspace[data-view="dispatch"] .dashboard-view-panel[data-panel="dispatch"],
.workspace[data-view="delivery"] .dashboard-view-panel[data-panel="delivery"],
.workspace[data-view="issues"] .dashboard-view-panel[data-panel="issues"],
.workspace[data-view="health"] .dashboard-view-panel[data-panel="health"] {
  display: grid;
}

.view-panel.active {
  display: grid;
}

.dashboard-view-panel {
  min-height: 0;
  grid-template-columns: minmax(280px, .86fr) minmax(0, 1.14fr);
  grid-auto-rows: minmax(0, auto);
  gap: 8px;
}

.dashboard-view-panel .wide {
  grid-column: 1 / -1;
}

.panel {
  min-width: 0;
  min-height: 0;
  padding: 12px;
}

.panel h2,
.panel p {
  margin: 0;
}

.panel h2 {
  font-size: 17px;
}

.panel p {
  margin-top: 4px;
  line-height: 1.45;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.panel-heading.compact {
  align-items: center;
}

.panel-heading.compact span {
  color: var(--cyan);
  font-weight: 950;
}

.panel-badge {
  align-self: start;
  padding: 5px 9px;
  border: 1px solid rgba(70, 217, 255, .34);
  border-radius: 999px;
  background: rgba(18, 72, 123, .58);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.panel-badge.good {
  border-color: rgba(102, 239, 134, .48);
  color: var(--green);
}

.panel-badge.hot {
  border-color: rgba(255, 95, 118, .72);
  color: var(--red);
}

.hero-stat-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: stretch;
  gap: 12px;
}

.hero-stat-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(70, 217, 255, .07) 1px, transparent 1px),
    linear-gradient(rgba(70, 217, 255, .055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 82%);
}

.hero-stat-panel > * {
  position: relative;
  z-index: 1;
}

.hero-stat-panel.danger {
  border-color: rgba(255, 95, 118, .62);
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 95, 118, .16), transparent 40%),
    linear-gradient(180deg, rgba(13, 39, 70, .92), rgba(5, 16, 30, .92));
}

.hero-number {
  min-height: 220px;
  display: grid;
  place-content: center;
  text-align: center;
}

.hero-number b {
  font-size: 72px;
  line-height: .95;
  font-weight: 950;
}

.hero-number span,
.hero-footer small {
  color: var(--muted);
  font-weight: 850;
}

.hero-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(80, 152, 220, .24);
  padding-top: 10px;
}

.hero-footer strong {
  color: var(--green);
}

.board-panel,
.table-panel {
  display: grid;
  align-content: start;
  gap: 10px;
}

.board-grid,
.delivery-cards,
.issue-grid,
.health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.status-pill {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(80, 152, 220, .28);
  border-radius: 5px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .07), transparent 30%),
    rgba(5, 16, 30, .58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 -3px 0 rgba(0, 13, 48, .36),
    0 5px 12px rgba(0, 0, 0, .16);
}

.status-pill span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.status-pill b {
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.status-pill.good b {
  color: var(--green);
}

.status-pill.wait b,
.status-pill.amber b {
  color: var(--amber);
}

.status-pill.hot {
  border-color: rgba(255, 95, 118, .62);
}

.status-pill.hot b {
  color: var(--red);
}

.status-pill.cyan b {
  color: var(--cyan);
}

.progress-list {
  display: grid;
  gap: 8px;
}

.progress-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 5px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .06), transparent 28%),
    rgba(5, 16, 30, .58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -2px 0 rgba(0, 13, 48, .32);
}

.progress-row span,
.progress-row b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-row span {
  color: var(--muted);
  font-weight: 850;
}

.progress-row b {
  color: #fff;
  font-weight: 950;
}

.row-progress {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
}

.row-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #8cf7ff);
}

.progress-row.green .row-progress i {
  background: linear-gradient(90deg, var(--green), #d6ff74);
}

.progress-row.amber .row-progress i {
  background: linear-gradient(90deg, var(--amber), #fff092);
}

.progress-row.hot .row-progress i {
  background: linear-gradient(90deg, var(--red), #ff9aae);
}

.map-panel {
  display: grid;
  grid-template-rows: auto minmax(420px, 1fr) auto;
  gap: 10px;
}

.noc-map-panel {
  position: relative;
  grid-template-rows: auto minmax(430px, 1fr) minmax(76px, auto);
  overflow: visible;
}

.noc-map-panel::before {
  content: "";
  position: absolute;
  inset: 48px 12px auto 12px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 216, 255, .62), transparent);
  opacity: .52;
}

.map-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.map-actions button {
  min-width: 34px;
}

.map-canvas {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(135, 210, 255, .58);
  border-radius: 6px;
  background: #0d2032;
  isolation: isolate;
  box-shadow:
    0 14px 24px rgba(0, 11, 36, .34),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -5px 0 rgba(0, 16, 66, .38),
    inset 0 0 30px rgba(0, 216, 255, .08);
}

.noc-map-panel .map-canvas {
  min-height: clamp(420px, 52vh, 680px);
  border-color: rgba(0, 216, 255, .45);
  box-shadow:
    0 0 22px rgba(0, 216, 255, .14),
    inset 0 0 36px rgba(0, 216, 255, .05);
}

.map-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 17, 31, .1), rgba(6, 17, 31, .22)),
    radial-gradient(circle at 50% 40%, transparent 45%, rgba(6, 17, 31, .26));
  z-index: 2;
}

.map-canvas.google-active::after {
  background:
    linear-gradient(180deg, rgba(6, 17, 31, .02), rgba(6, 17, 31, .1)),
    radial-gradient(circle at 50% 40%, transparent 58%, rgba(6, 17, 31, .16));
}

.google-map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.google-map-canvas .gm-style {
  font-family: inherit;
}

.google-info-window {
  display: grid;
  gap: 3px;
  color: #06111f;
  font-weight: 850;
}

.google-info-window strong,
.google-info-window span {
  display: block;
}

.map-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  user-select: none;
  -webkit-user-drag: none;
  filter: saturate(.85) brightness(.74) contrast(1.1);
  z-index: 1;
}

.radar-sweep {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  aspect-ratio: 1;
  transform-origin: 0 0;
  background: conic-gradient(from 0deg, rgba(70, 217, 255, .18), transparent 24%, transparent);
  mix-blend-mode: screen;
  opacity: .55;
  z-index: 3;
  animation: sweep 5.5s linear infinite;
  pointer-events: none;
}

.google-radar-sweep {
  width: 58%;
  opacity: .28;
  z-index: 2;
}

.marker {
  position: absolute;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -100%) rotate(-45deg);
  display: grid;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 50% 50% 50% 4px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .42);
  z-index: 5;
}

.marker::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid currentColor;
  opacity: .4;
  animation: markerPulse 1.8s ease-out infinite;
}

.marker span {
  display: block;
  transform: rotate(45deg);
  font-size: 8px;
  font-weight: 950;
}

.marker-p1 {
  background: var(--green);
  color: #042512;
}

.marker-p7 {
  background: #2f93ff;
  color: #ffffff;
}

.marker-failed {
  background: var(--red);
  color: #ffffff;
}

.marker-warning {
  background: var(--red);
  color: #ffffff;
}

.map-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(70, 217, 255, .36);
  background: rgba(3, 10, 18, .72);
  color: #d8ecff;
  font-weight: 850;
}

.map-attribution {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 6;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(3, 10, 18, .72);
  color: #d8ecff;
  font-size: 10px;
}

.point-detail {
  min-height: 76px;
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 5px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .07), transparent 28%),
    rgba(5, 16, 30, .78);
  color: var(--muted);
  font-weight: 820;
  line-height: 1.25;
  overflow: visible;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -3px 0 rgba(0, 13, 48, .32),
    0 5px 12px rgba(0, 0, 0, .16);
}

.point-detail.active {
  color: #fff;
  border: 1px solid rgba(70, 217, 255, .28);
}

.point-detail b,
.point-detail span,
.point-detail small {
  display: block;
  min-width: 0;
}

.point-detail b,
.point-detail span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.point-detail .point-work {
  color: var(--cyan);
  font-weight: 950;
}

.point-detail small {
  margin-top: 4px;
  color: #ffb3bd;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.noc-bottom-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.timeline-panel,
.ai-analysis-panel,
.trend-panel,
.anomaly-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .07), transparent 28%),
    linear-gradient(180deg, rgba(22, 58, 104, .96), rgba(5, 16, 30, .94));
}

.timeline-panel::before,
.ai-analysis-panel::before,
.trend-panel::before,
.anomaly-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  opacity: .72;
}

.timeline-list,
.trend-list,
.anomaly-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.timeline-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px 12px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 8px;
  border-radius: 5px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .06), transparent 28%),
    rgba(5, 16, 30, .58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -2px 0 rgba(0, 13, 48, .32);
}

.timeline-row time {
  color: #a9c9e8;
  font-size: 12px;
  font-weight: 900;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 216, 255, .62);
}

.timeline-row.success .timeline-dot {
  background: var(--green);
  box-shadow: 0 0 14px rgba(85, 255, 136, .62);
}

.timeline-row.failed .timeline-dot {
  background: var(--red);
  box-shadow: 0 0 14px rgba(255, 85, 85, .68);
  animation: nocSignal 1.4s ease-in-out infinite;
}

.timeline-row.warning .timeline-dot {
  background: var(--amber);
  box-shadow: 0 0 14px rgba(255, 206, 98, .58);
}

.timeline-row.resolved .timeline-dot {
  background: var(--green);
  box-shadow: 0 0 14px rgba(102, 239, 134, .5);
  animation: none;
}

.timeline-row b,
.timeline-row span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.timeline-row .timeline-reason {
  display: -webkit-box;
  min-width: 0;
  margin-top: 3px;
  overflow: hidden;
  color: #ffb3bd;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.timeline-row.resolved .timeline-reason,
.event-row.resolved .event-reason,
.case-row.resolved .case-reason {
  color: #92f5a8;
}

.ai-analysis-copy {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.ai-badge {
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid rgba(0, 216, 255, .38);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  background: rgba(0, 216, 255, .08);
}

.ai-analysis-copy strong {
  font-size: 22px;
  line-height: 1.12;
}

.ai-analysis-copy p {
  color: #c2ddf7;
  font-weight: 850;
}

.ai-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.ai-metrics div {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(80, 152, 220, .22);
  border-radius: 5px;
  background: rgba(5, 16, 30, .42);
}

.ai-metrics b,
.ai-metrics span {
  display: block;
}

.ai-metrics b {
  color: var(--green);
  font-size: 18px;
  line-height: 1;
}

.ai-metrics .danger b {
  color: var(--red);
}

.ai-metrics span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.trend-row,
.anomaly-row {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 5px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .06), transparent 28%),
    rgba(5, 16, 30, .58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -2px 0 rgba(0, 13, 48, .32);
}

.trend-row {
  grid-template-columns: 42px minmax(0, 1fr) 42px 72px;
}

.anomaly-row {
  grid-template-columns: 72px minmax(0, 1fr) 28px;
}

.trend-row span,
.anomaly-row span,
.trend-row small,
.trend-row b,
.anomaly-row b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.trend-row small {
  color: var(--muted);
  font-size: 11px;
}

.trend-track,
.anomaly-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}

.trend-track i,
.anomaly-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.anomaly-row.hot .anomaly-track i {
  background: linear-gradient(90deg, var(--red), #ff9a9a);
}

.anomaly-row.amber .anomaly-track i,
.anomaly-row.wait .anomaly-track i {
  background: linear-gradient(90deg, var(--amber), #fff092);
}

.anomaly-row.cyan .anomaly-track i {
  background: linear-gradient(90deg, var(--cyan), #9cf8ff);
}

.anomaly-row.green .anomaly-track i {
  background: linear-gradient(90deg, var(--green), #c8ffd5);
}

.right-stack {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.mini-grid div {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 9px;
  border: 1px solid rgba(80, 152, 220, .28);
  border-radius: 5px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .07), transparent 28%),
    rgba(5, 16, 30, .56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -3px 0 rgba(0, 13, 48, .32),
    0 5px 12px rgba(0, 0, 0, .15);
}

.mini-grid div.danger {
  border-color: var(--line-hot);
}

.mini-grid b {
  font-size: 26px;
  line-height: 1;
}

.mini-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.rank-list,
.event-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.rank-row,
.event-row,
.empty-row {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 5px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .06), transparent 28%),
    rgba(5, 16, 30, .58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -2px 0 rgba(0, 13, 48, .32);
}

.rank-row {
  grid-template-columns: 22px minmax(0, 1fr) auto 48px;
}

.rank-row span,
.rank-row b,
.event-row time,
.event-row b,
.event-row span,
.event-row em,
.event-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-index {
  color: var(--red);
  font-weight: 950;
}

.rank-name {
  font-weight: 900;
}

.rank-issue {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.rank-row b {
  text-align: right;
}

.event-row {
  grid-template-columns: 42px 28px minmax(0, 1fr) 40px 46px;
  font-size: 12px;
}

.event-row.has-reason {
  align-items: start;
}

.event-row .event-reason {
  grid-column: 3 / -1;
  min-width: 0;
  overflow: hidden;
  color: #ffb3bd;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-row.success strong {
  color: var(--green);
}

.event-row.failed strong {
  color: var(--red);
}

.event-row.warning strong {
  color: var(--amber);
}

.event-row em {
  color: var(--muted);
  font-style: normal;
}

.case-table {
  min-width: 0;
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.case-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px 42px minmax(94px, 1fr) minmax(64px, .7fr) 40px 54px minmax(128px, 1.25fr);
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(80, 152, 220, .18);
  border-radius: 5px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .06), transparent 28%),
    rgba(5, 16, 30, .58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -2px 0 rgba(0, 13, 48, .32);
  font-size: 12px;
}

.case-row.case-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  background: rgba(18, 72, 123, .34);
}

.case-row > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-row b,
.case-row strong {
  font-weight: 950;
}

.case-row em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.case-row.missing-gps em {
  color: var(--amber);
}

.case-row.success strong {
  color: var(--green);
}

.case-row.failed strong {
  color: var(--red);
}

.case-row.warning strong {
  color: var(--amber);
}

.case-table .case-row:has(> :nth-child(8)) {
  grid-template-columns: 54px minmax(64px, .7fr) minmax(72px, .8fr) minmax(64px, .7fr) minmax(80px, .8fr) minmax(96px, 1fr) minmax(96px, 1fr) minmax(96px, 1fr);
}

.case-identity {
  color: #eaf6ff;
  font-weight: 900;
}

.case-reason {
  color: #ffb3bd;
  font-weight: 850;
}

.audit-list {
  min-width: 0;
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.audit-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(64px, .7fr) 42px 58px 54px minmax(120px, 1.6fr);
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(80, 152, 220, .18);
  border-radius: 5px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .06), transparent 28%),
    rgba(5, 16, 30, .58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -2px 0 rgba(0, 13, 48, .32);
  font-size: 12px;
}

.audit-row.audit-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  background: rgba(18, 72, 123, .34);
}

.audit-row > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-row b,
.audit-row strong {
  font-weight: 950;
}

.audit-row em {
  color: var(--muted);
  font-style: normal;
}

.audit-row.success strong {
  color: var(--green);
}

.audit-row.failed strong {
  color: var(--red);
}

.audit-row.warning strong {
  color: var(--amber);
}

.empty-row {
  color: var(--muted);
  font-weight: 850;
}

.ticker {
  min-height: 42px;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  overflow: hidden;
}

.ticker b {
  color: #fff;
}

.ticker-track {
  min-width: 0;
  display: flex;
  gap: 22px;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track span {
  color: #cfe6ff;
  font-weight: 850;
  animation: tickerIn .28s ease-out;
}

@keyframes pulseBorder {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 95, 118, .12), inset 0 0 18px rgba(255, 95, 118, .05); }
  50% { box-shadow: 0 0 30px rgba(255, 95, 118, .32), inset 0 0 24px rgba(255, 95, 118, .1); }
}

@keyframes introScan {
  to { transform: rotate(360deg); }
}

@keyframes introGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 42px 42px, 42px 42px; }
}

@keyframes introRadarSweep {
  to { rotate: 360deg; }
}

@keyframes markerPulse {
  from { transform: scale(.72); opacity: .48; }
  to { transform: scale(1.46); opacity: 0; }
}

@keyframes sweep {
  to { transform: rotate(360deg); }
}

@keyframes tickerIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes nocSignal {
  0%, 100% { transform: scale(.82); opacity: .68; }
  50% { transform: scale(1.18); opacity: 1; }
}

@media (min-width: 1201px) {
  body {
    font-size: 14px;
  }

  .dashboard-app {
    grid-template-columns: 184px minmax(0, 1fr);
    gap: 6px;
    padding: 6px;
  }

  .sidebar {
    gap: 8px;
    padding: 8px;
  }

  .brand-block {
    min-height: 90px;
    padding: 0 2px 7px;
  }

  .brand-logo-video {
    width: min(172px, 128%);
    height: 64px;
  }

  .sidebar nav {
    gap: 4px;
    padding-right: 1px;
  }

  .nav-group {
    gap: 4px;
  }

  .nav-heading {
    min-height: 28px;
    padding: 0 8px;
    font-size: 13px;
  }

  .nav-group-items {
    gap: 4px;
    padding-left: 6px;
  }

  .nav-item {
    height: 30px;
    padding: 0 8px;
    font-size: 14px;
  }

  .brand-block span {
    font-size: 13px;
  }

  .side-status {
    padding: 8px;
  }

  .workspace {
    gap: 6px;
  }

  .topbar {
    min-height: 78px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .32fr);
    gap: 6px;
    padding: 6px;
  }

  .command-strip {
    left: 0;
    width: 100%;
    grid-template-columns: 118px minmax(0, 1fr) minmax(190px, .68fr);
    gap: 8px;
    padding: 6px 10px;
  }

  .command-metrics {
    gap: 6px;
  }

  .command-metrics em {
    font-size: 14px;
  }

  .clock-box time {
    font-size: 24px;
  }

  .control-bar {
    min-height: 36px;
    padding: 5px 8px;
  }

  .control-bar input,
  .control-bar button,
  .map-actions button {
    height: 28px;
    padding: 0 8px;
  }

  .kpi-grid {
    gap: 6px;
  }

  .kpi-card {
    min-height: 76px;
    padding: 8px;
  }

  .noc-kpi-card {
    min-height: 92px;
    padding: 10px;
  }

  .kpi-card b {
    font-size: 26px;
  }

  .noc-kpi-card b {
    font-size: 30px;
  }

  .panel {
    padding: 10px;
  }

  .panel h2 {
    font-size: 15px;
  }

  .hero-number {
    min-height: 176px;
  }

  .hero-number b {
    font-size: 58px;
  }

  .status-pill {
    min-height: 60px;
    padding: 8px;
  }

  .status-pill b {
    font-size: 20px;
  }

  .map-canvas {
    min-height: 360px;
  }

  .case-row {
    min-height: 32px;
    padding: 6px 7px;
    font-size: 11px;
  }

  .case-row.case-head {
    font-size: 10px;
  }
}

@media (min-width: 1201px) and (max-width: 1368px) {
  .dashboard-app {
    grid-template-columns: 164px minmax(0, 1fr);
    gap: 5px;
    padding: 5px;
  }

  .sidebar {
    gap: 6px;
    padding: 7px;
  }

  .brand-block {
    min-height: 82px;
    padding: 0 1px 6px;
  }

  .brand-logo-video {
    width: min(154px, 126%);
    height: 58px;
  }

  .sidebar nav {
    gap: 3px;
  }

  .nav-group {
    gap: 3px;
  }

  .nav-heading {
    min-height: 27px;
    padding: 0 7px;
    font-size: 12.5px;
  }

  .nav-group-items {
    gap: 3px;
    padding-left: 5px;
  }

  .nav-item {
    height: 29px;
    padding: 0 7px;
    font-size: 13.5px;
  }

  .brand-block span,
  .side-status b {
    font-size: 12.5px;
  }

  .side-status small {
    font-size: 11px;
  }

  .workspace {
    gap: 5px;
  }

  .topbar {
    min-height: 74px;
    grid-template-columns: minmax(0, 1fr) minmax(218px, .34fr);
    gap: 5px;
    padding: 5px;
  }

  .command-strip {
    left: 0;
    width: 100%;
    grid-template-columns: minmax(92px, .42fr) minmax(0, 1.15fr) minmax(128px, .54fr);
    gap: 6px;
    padding: 6px 8px;
  }

  .command-strip span,
  .command-strip small,
  .clock-box span,
  .clock-box small {
    font-size: 11px;
  }

  .command-metrics {
    gap: 5px;
  }

  .command-metrics em {
    font-size: 13px;
  }

  .clock-box time {
    font-size: 22px;
  }

  .noc-kpi-grid {
    gap: 5px;
  }

  .noc-kpi-card {
    min-height: 84px;
    padding: 8px;
  }

  .noc-kpi-card b {
    font-size: 27px;
  }
}

@media (max-width: 1200px) {
  .dashboard-app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
  }

  .brand-block {
    width: 152px;
    min-height: 66px;
    padding: 0 4px;
    border-bottom: 0;
    border-right: 1px solid rgba(128, 207, 255, .22);
  }

  .brand-logo-video {
    width: min(150px, 122%);
    height: 52px;
  }

  .sidebar nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .clock-box {
    justify-items: start;
  }

  .clock-date-line {
    justify-content: flex-start;
  }

  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .war-layout {
    grid-template-columns: 1fr;
  }

  .noc-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-view-panel {
    grid-template-columns: 1fr;
  }

  .dashboard-view-panel .wide {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .dashboard-app {
    padding: 6px;
  }

  .sidebar {
    gap: 10px;
    padding: 10px;
  }

  .sidebar,
  .control-bar,
  .panel-heading,
  .ticker {
    grid-template-columns: 1fr;
  }

  .brand-block {
    width: 100%;
    min-height: 78px;
    padding: 2px 0 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(128, 207, 255, .22);
  }

  .brand-logo-video {
    width: min(184px, 76vw);
    height: 64px;
  }

  .sidebar .desktop-nav,
  .view-tabs {
    display: none;
  }

  .sidebar .mobile-nav {
    display: grid;
    gap: 10px;
    overflow: visible;
    padding-right: 0;
  }

  .sidebar nav,
  .kpi-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar .mobile-nav {
    grid-template-columns: 1fr;
  }

  .mobile-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-nav-item {
    min-height: 40px;
    font-size: 13px;
  }

  .side-status {
    padding: 8px;
  }

  .control-bar,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .top-date-picker {
    flex-wrap: nowrap;
  }

  .view-tabs {
    width: 100%;
    min-width: 0;
  }

  .view-tab {
    flex: 1 0 72px;
  }

  .map-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .map-panel {
    grid-template-rows: auto minmax(320px, 1fr) auto;
  }

  .noc-command-layout {
    grid-template-rows: auto auto;
  }

  .map-canvas {
    min-height: 320px;
  }

  .noc-map-panel .map-canvas {
    min-height: 360px;
  }

  .noc-bottom-grid {
    grid-template-columns: 1fr;
  }

  .hero-number {
    min-height: 160px;
  }

  .hero-number b {
    font-size: 56px;
  }

}

@media (max-width: 520px) {
  .command-strip,
  .command-metrics,
  .sidebar nav,
  .kpi-grid,
  .mini-grid,
  .board-grid,
  .delivery-cards,
  .issue-grid,
  .health-grid,
  .event-row {
    grid-template-columns: 1fr;
  }

  .event-row {
    align-items: start;
  }

  .event-row .event-reason {
    grid-column: 1;
    white-space: normal;
  }

  .case-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* 2026-07-13 blue-0905-sidebar-v3: scale the desktop sidebar as one visual unit. */
@media (min-width: 1201px) {
  .dashboard-app {
    grid-template-columns: clamp(250px, 15vw, 310px) minmax(0, 1fr) !important;
  }

  .sidebar nav,
  .sidebar .desktop-nav {
    gap: 12px !important;
  }

  .nav-group {
    gap: 10px !important;
  }

  .nav-group-items {
    gap: 10px !important;
    padding-left: 10px !important;
  }

  .nav-heading {
    min-height: 44px !important;
    padding: 0 14px !important;
    border-radius: 11px !important;
    font-size: 16px !important;
  }

  .nav-heading-cue {
    width: 24px !important;
    height: 24px !important;
    font-size: 16px !important;
  }

  .nav-item {
    height: 44px !important;
    padding: 0 14px !important;
    border-radius: 11px !important;
    font-size: 16px !important;
  }

  /* Use the approved transparent video without changing its shape or ratio. */
  .brand-block {
    min-height: 138px !important;
    padding: 2px 4px 10px !important;
  }

  .brand-logo {
    width: min(224px, 96%) !important;
    height: 112px !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .brand-logo .brand-logo-video {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0 !important;
    background: transparent !important;
    transform: none !important;
    transform-origin: center;
    filter: drop-shadow(0 7px 10px rgba(0, 0, 0, .3)) !important;
  }

  .brand-copy {
    margin-top: -3px !important;
  }
}

/* 2026-07-13 blue-map-rail-v7: keep the map primary and move compact insights beside it. */
@media (min-width: 1201px) {
  .noc-command-layout {
    grid-template-columns: minmax(0, 1fr) clamp(230px, 15vw, 310px);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
  }

  .noc-map-panel {
    height: 100%;
  }

  .noc-bottom-grid {
    min-width: 0;
    height: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows:
      minmax(120px, 1fr)
      minmax(150px, 1.2fr)
      minmax(112px, .9fr)
      minmax(132px, 1.05fr);
    gap: 6px;
  }

  .noc-bottom-grid > .panel {
    display: flex;
    min-height: 0;
    height: 100%;
    flex-direction: column;
    padding: 8px;
  }

  .noc-bottom-grid .panel-heading.compact {
    min-width: 0;
    gap: 6px;
  }

  .noc-bottom-grid .panel-heading.compact h2,
  .noc-bottom-grid .panel-heading.compact span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .noc-bottom-grid .panel-heading.compact h2 {
    font-size: 13px;
  }

  .noc-bottom-grid .panel-heading.compact span {
    font-size: 10.5px;
  }

  .noc-bottom-grid .timeline-list,
  .noc-bottom-grid .trend-list,
  .noc-bottom-grid .anomaly-list {
    min-height: 0;
    flex: 1;
    gap: 5px;
    margin-top: 7px;
    overflow: auto;
    scrollbar-width: thin;
  }

  .noc-bottom-grid .timeline-row {
    grid-template-columns: 36px 8px minmax(0, 1fr);
    gap: 5px;
    padding: 5px;
  }

  .noc-bottom-grid .timeline-row time,
  .noc-bottom-grid .timeline-row span {
    font-size: 10px;
  }

  .noc-bottom-grid .timeline-row b {
    font-size: 11px;
  }

  .noc-bottom-grid .timeline-row .timeline-reason {
    margin-top: 2px;
    font-size: 9.5px;
    -webkit-line-clamp: 1;
  }

  .noc-bottom-grid .timeline-dot {
    width: 8px;
    height: 8px;
    margin-top: 3px;
  }

  .noc-bottom-grid .ai-analysis-copy {
    gap: 4px;
    margin-top: 7px;
  }

  .noc-bottom-grid .ai-badge {
    padding: 2px 6px;
    font-size: 10px;
  }

  .noc-bottom-grid .ai-analysis-copy strong {
    font-size: 17px;
  }

  .noc-bottom-grid .ai-analysis-copy p {
    font-size: 11px;
    line-height: 1.3;
  }

  .noc-bottom-grid .ai-metrics {
    gap: 4px;
    margin-top: 7px;
  }

  .noc-bottom-grid .ai-metrics div {
    padding: 5px;
  }

  .noc-bottom-grid .ai-metrics b {
    font-size: 15px;
  }

  .noc-bottom-grid .ai-metrics span {
    margin-top: 3px;
    font-size: 10px;
  }

  .noc-bottom-grid .trend-row,
  .noc-bottom-grid .anomaly-row {
    gap: 5px;
    padding: 5px 6px;
    font-size: 11px;
  }

  .noc-bottom-grid .trend-row {
    grid-template-columns: 32px minmax(20px, 1fr) 30px 54px;
  }

  .noc-bottom-grid .anomaly-row {
    grid-template-columns: 62px minmax(20px, 1fr) 22px;
  }

  .noc-bottom-grid .trend-row small {
    font-size: 9.5px;
  }

  .noc-bottom-grid .trend-track,
  .noc-bottom-grid .anomaly-track {
    height: 5px;
  }
}

.office-dispatch-summary-button,
.office-dispatch-secondary-button,
.office-dispatch-access-form button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(168, 213, 255, .46);
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(145deg, #6fb0ff, #145fe0 52%, #063590);
  font-size: 11px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 12px rgba(0, 0, 0, .24);
}

.office-dispatch-summary-button:hover,
.office-dispatch-secondary-button:hover,
.office-dispatch-access-form button:hover {
  filter: brightness(1.1);
}

.office-dispatch-secondary-button {
  border-color: rgba(168, 213, 255, .28);
  color: var(--muted);
  background: rgba(4, 20, 45, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.office-dispatch-actions,
.meter-dispatch-message-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.office-meter-dispatch-content button:disabled {
  cursor: wait;
  opacity: .68;
  filter: saturate(.72);
}

.office-meter-dispatch-content :is(button, input, select):focus-visible {
  outline: 3px solid rgba(128, 226, 255, .94);
  outline-offset: 2px;
}

.office-meter-dispatch-content {
  display: contents;
}

#app .sidebar-dispatch-card {
  min-width: 0;
  min-height: 214px;
  flex: 0 0 214px;
  display: grid;
  grid-template-rows: auto auto auto auto auto minmax(12px, 1fr);
  align-content: start;
  gap: 4px;
  margin: 8px 0 6px;
  padding: 9px;
  overflow: visible;
  border: 1px solid rgba(102, 215, 255, .22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 8%, rgba(70, 217, 255, .14), transparent 38%),
    linear-gradient(155deg, rgba(18, 50, 79, .92), rgba(8, 23, 39, .96));
  box-shadow: inset 0 1px rgba(255, 255, 255, .05);
}

#app .sidebar-dispatch-card.stale {
  border-color: rgba(255, 190, 86, .46);
}

#app .sidebar-dispatch-card.state-error,
#app .sidebar-dispatch-card.state-incomplete,
#app .sidebar-dispatch-card.state-legacy {
  border-color: rgba(255, 190, 86, .46);
}

#app .sidebar-dispatch-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

#app .sidebar-dispatch-head > div {
  min-width: 0;
}

#app .sidebar-dispatch-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #63dcff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  white-space: nowrap;
}

#app .sidebar-dispatch-status-line {
  display: flex;
  align-items: center;
  gap: 5px;
}

#app .sidebar-dispatch-state-label {
  padding: 1px 4px;
  border: 1px solid rgba(105, 199, 246, .2);
  border-radius: 999px;
  color: #91aec8;
  background: rgba(8, 29, 47, .48);
  font-size: 7px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

#app .sidebar-dispatch-card:is(.state-error, .state-incomplete, .state-legacy) .sidebar-dispatch-state-label,
#app .sidebar-dispatch-card.stale .sidebar-dispatch-state-label {
  border-color: rgba(255, 190, 86, .42);
  color: #ffd28a;
}

#app .sidebar-dispatch-card.state-empty .sidebar-dispatch-state-label {
  color: #a9bed3;
}

#app .sidebar-dispatch-card.state-ready .sidebar-dispatch-state-label {
  border-color: rgba(94, 230, 168, .3);
  color: #68e6ad;
}

#app .sidebar-dispatch-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ee6a8;
  box-shadow: 0 0 9px rgba(94, 230, 168, .85);
}

#app .sidebar-dispatch-head h3 {
  margin: 5px 0 0;
  color: #f6fbff;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

#app .sidebar-dispatch-head button {
  min-width: 44px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(102, 215, 255, .24);
  border-radius: 9px;
  color: #a9dfff;
  background: rgba(63, 148, 211, .1);
  font-size: 10px;
  font-weight: 800;
}

#app .sidebar-dispatch-head button:hover {
  color: #fff;
  background: rgba(63, 148, 211, .2);
}

#app .sidebar-dispatch-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

#app .sidebar-dispatch-metrics > span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 5px 4px;
  border: 1px solid rgba(109, 185, 237, .15);
  border-radius: 10px;
  background: rgba(3, 15, 29, .42);
}

#app .sidebar-dispatch-metrics b {
  color: #fff;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

#app .sidebar-dispatch-metrics small {
  color: #708aa4;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

#app .sidebar-dispatch-overall {
  min-width: 0;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid rgba(109, 185, 237, .13);
  border-radius: 9px;
  color: #9fb3c7;
  background: rgba(3, 15, 29, .34);
  font-size: 9px;
  font-weight: 800;
}

#app .sidebar-dispatch-overall b {
  color: #68e6ad;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#app .sidebar-dispatch-progress {
  min-width: 0;
  display: grid;
  gap: 4px;
}

#app .sidebar-dispatch-progress > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  padding: 3px 6px;
  border: 1px solid rgba(109, 185, 237, .13);
  border-radius: 9px;
  background: rgba(3, 15, 29, .34);
}

#app .sidebar-dispatch-progress b {
  color: #63dcff;
  font-size: 10px;
}

#app .sidebar-dispatch-progress strong {
  min-width: 0;
  color: #68e6ad;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#app .sidebar-dispatch-progress small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f0c36c;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

#app .sidebar-dispatch-progress small em {
  color: #ff8a9d;
  font-style: normal;
}

#app .sidebar-dispatch-progress small i {
  color: #79cfff;
  font-style: normal;
}

#app .sidebar-dispatch-flags {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

#app .sidebar-dispatch-flags > span {
  min-width: 0;
  min-height: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 3px 6px;
  border: 1px solid rgba(94, 230, 168, .2);
  border-radius: 9px;
  color: #9fb3c7;
  background: rgba(24, 82, 65, .18);
  font-weight: 800;
}

#app .sidebar-dispatch-flags small {
  min-width: 0;
  font-size: 8px;
  line-height: 1.15;
}

#app .sidebar-dispatch-flags b {
  color: #68e6ad;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#app .sidebar-dispatch-alert.active {
  border-color: rgba(255, 101, 125, .52);
  color: #ffd2da;
  background: rgba(99, 21, 42, .34);
}

#app .sidebar-dispatch-alert.active b {
  color: #ff7189;
}

#app .sidebar-dispatch-hint {
  align-self: end;
  margin: 0;
  color: #71879d;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

#app.sidebar-collapsed .sidebar-dispatch-card {
  display: none;
}

.office-meter-dispatch-content select {
  font: inherit;
}

.office-dispatch-batch-publish {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(260px, 1.25fr) auto;
  align-items: end;
  gap: 10px 14px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(94, 230, 168, .24);
  border-radius: 12px;
  background: rgba(4, 28, 38, .48);
}

.office-dispatch-batch-publish > div,
.office-dispatch-batch-publish label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.office-dispatch-batch-publish > div b {
  color: #f6fbff;
  font-size: 14px;
}

.office-dispatch-batch-publish > div span,
.office-dispatch-batch-publish label span,
.office-dispatch-batch-state {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.office-dispatch-batch-publish select {
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(111, 190, 255, .32);
  border-radius: 7px;
  color: #eef8ff;
  background: rgba(4, 20, 45, .92);
}

.office-dispatch-batch-state,
.office-dispatch-batch-publish .office-dispatch-editor-feedback {
  grid-column: 1 / -1;
  margin: 0;
}

.meter-dispatch-load-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(80, 152, 220, .2);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(5, 16, 30, .48);
  font-size: 10px;
  line-height: 1.45;
}

.meter-dispatch-load-more button {
  flex: 0 0 auto;
}

.meter-dispatch-page-complete {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.office-dispatch-access {
  min-height: 320px;
  display: grid;
  place-content: center;
  justify-items: stretch;
  gap: 12px;
  width: min(620px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 36px);
  border: 1px solid rgba(70, 217, 255, .34);
  border-radius: 10px;
  background:
    radial-gradient(circle at 85% 12%, rgba(70, 217, 255, .13), transparent 38%),
    rgba(4, 19, 42, .76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.office-dispatch-access h2,
.office-dispatch-access p {
  margin: 0;
}

.office-dispatch-access p,
.office-dispatch-access small {
  color: var(--muted);
  line-height: 1.55;
}

.office-dispatch-access-state {
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid rgba(255, 190, 86, .42);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(84, 52, 12, .38);
  font-size: 11px;
  font-weight: 900;
}

.office-dispatch-access-error {
  padding: 8px 10px;
  border: 1px solid rgba(255, 95, 118, .52);
  border-radius: 7px;
  color: #ffd5dc !important;
  background: rgba(79, 17, 37, .48);
}

.office-dispatch-access-form {
  display: grid;
  gap: 6px;
}

.office-dispatch-access-form > label {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.office-dispatch-access-form > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.office-dispatch-access-form input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(168, 213, 255, .42);
  border-radius: 7px;
  color: #fff;
  background: #071b35;
}

.office-dispatch-access-form button {
  min-height: 42px;
}

.field-portal-access-link-panel {
  display: grid;
  gap: 12px;
}

.office-dispatch-editor-panel {
  display: grid;
  gap: 12px;
}

.office-dispatch-editor-panel .panel-heading > div {
  min-width: 0;
}

.office-dispatch-editor-panel .panel-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.office-dispatch-editor-form {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.office-dispatch-editor-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.office-dispatch-editor-grid > label {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
}

.office-dispatch-editor-grid > label > span,
.office-dispatch-system-options legend {
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.office-dispatch-editor-grid input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(168, 213, 255, .38);
  border-radius: 7px;
  color: #fff;
  background: #071b35;
}

.office-dispatch-editor-grid small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.office-dispatch-system-options {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(80, 152, 220, .3);
  border-radius: 7px;
  background: rgba(5, 16, 30, .5);
}

.office-dispatch-system-options legend {
  padding: 0 5px;
}

.office-dispatch-system-options label {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.office-dispatch-system-options input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

.office-dispatch-editor-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.office-dispatch-editor-actions span {
  color: var(--muted);
  font-size: 11px;
}

.office-dispatch-editor-actions b {
  color: var(--cyan);
}

.office-dispatch-editor-feedback {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(80, 152, 220, .3);
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.45;
}

.office-dispatch-editor-feedback.error {
  border-color: rgba(255, 95, 118, .52);
  color: #ffd5dc;
  background: rgba(79, 17, 37, .48);
}

.office-dispatch-editor-feedback.success {
  border-color: rgba(102, 239, 134, .34);
  color: var(--green);
  background: rgba(3, 31, 37, .44);
}

.field-portal-access-link-panel .panel-heading > div {
  min-width: 0;
}

.field-portal-access-link-panel .panel-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.field-portal-access-link-form {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.field-portal-access-link-form > label,
.field-portal-access-link-result > label {
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.field-portal-access-link-controls,
.field-portal-access-link-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.field-portal-access-link-controls input,
.field-portal-access-link-copy input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(168, 213, 255, .38);
  border-radius: 7px;
  color: #fff;
  background: #071b35;
}

.field-portal-access-link-copy {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.field-portal-access-link-copy .office-dispatch-summary-button,
.field-portal-access-link-copy .office-dispatch-secondary-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.field-portal-access-link-note,
.field-portal-access-link-error,
.field-portal-access-link-feedback {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.field-portal-access-link-note,
.field-portal-access-link-feedback {
  color: var(--muted);
}

.field-portal-access-link-error {
  padding: 8px 10px;
  border: 1px solid rgba(255, 95, 118, .52);
  border-radius: 7px;
  color: #ffd5dc;
  background: rgba(79, 17, 37, .48);
}

.field-portal-access-link-status {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 850;
}

.field-portal-access-link-status .meter-dispatch-spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.field-portal-access-link-result {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(102, 239, 134, .34);
  border-radius: 7px;
  background: rgba(3, 31, 37, .44);
}

.field-portal-access-link-meta {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.field-portal-access-link-meta > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.field-portal-access-link-meta small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.field-portal-access-link-meta b,
.field-portal-access-link-meta time {
  min-width: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.meter-dispatch-stale-notice {
  grid-column: 1 / -1;
  padding: 9px 11px;
  border: 1px solid rgba(255, 190, 86, .52);
  border-radius: 7px;
  color: #ffe4b2;
  background: rgba(84, 52, 12, .48);
  font-size: 12px;
  font-weight: 850;
}

.office-meter-dispatch-content .panel-badge.wait {
  border-color: rgba(255, 190, 86, .52);
  color: var(--amber);
  background: rgba(84, 52, 12, .48);
}

.office-dispatch-step-grid {
  display: grid;
  gap: 8px;
}

.meter-dispatch-step-grid .status-pill {
  min-height: 64px;
  padding: 8px 10px;
}

.meter-dispatch-step-grid .status-pill b {
  font-size: 22px;
}

.meter-dispatch-step {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(80, 152, 220, .3);
  border-radius: 7px;
  background: rgba(5, 16, 30, .52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.meter-dispatch-step-heading,
.meter-dispatch-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.meter-dispatch-step-heading b,
.meter-dispatch-results-heading b {
  color: #fff;
  font-size: 15px;
}

.meter-dispatch-step-heading span,
.meter-dispatch-results-heading span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
}

.meter-dispatch-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.meter-dispatch-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(80, 152, 220, .3);
  border-radius: 7px;
  background: rgba(5, 16, 30, .5);
}

.meter-dispatch-filters label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.meter-dispatch-filters label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.meter-dispatch-filters select,
.meter-dispatch-filters input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 9px;
  border: 1px solid rgba(168, 213, 255, .36);
  border-radius: 6px;
  color: #fff;
  background: #071b35;
  outline: none;
}

.meter-dispatch-filters select:focus,
.meter-dispatch-filters input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 216, 255, .15);
}

.meter-dispatch-results {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(80, 152, 220, .3);
  border-radius: 7px;
  background: rgba(5, 16, 30, .42);
}

.meter-dispatch-table {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.meter-dispatch-row {
  min-width: 0;
  display: grid;
  grid-template-columns:
    minmax(88px, .86fr)
    minmax(74px, .72fr)
    minmax(86px, .86fr)
    minmax(88px, .82fr)
    minmax(66px, .64fr)
    minmax(66px, .64fr)
    minmax(74px, .7fr)
    minmax(86px, .82fr)
    minmax(112px, 1fr)
    minmax(64px, .58fr);
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid rgba(80, 152, 220, .18);
  border-radius: 5px;
  background: rgba(5, 16, 30, .62);
  font-size: 12px;
}

.meter-dispatch-head {
  color: var(--muted);
  background: rgba(18, 72, 123, .42);
  font-size: 11px;
  font-weight: 900;
}

.meter-dispatch-row > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meter-dispatch-row b {
  color: #fff;
  font-weight: 950;
}

.meter-dispatch-row strong {
  font-weight: 950;
}

.meter-dispatch-row strong.good {
  color: var(--green);
}

.meter-dispatch-row strong.hot {
  color: var(--red);
}

.meter-dispatch-row strong.wait {
  color: var(--amber);
}

.meter-dispatch-row strong.cyan,
.meter-dispatch-row time {
  color: var(--cyan);
}

.meter-dispatch-row-action button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(102, 239, 134, .42);
  border-radius: 6px;
  color: #eaffef;
  background: rgba(20, 103, 64, .62);
  font-size: 11px;
  font-weight: 900;
}

.meter-dispatch-row-action small {
  color: var(--muted);
  font-size: 10px;
}

.meter-dispatch-message,
.meter-dispatch-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(80, 152, 220, .3);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(5, 16, 30, .5);
  text-align: center;
}

.meter-dispatch-message.error {
  border-color: rgba(255, 85, 85, .52);
  color: #ffd4da;
}

.meter-dispatch-message button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(168, 213, 255, .52);
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(145deg, #6fb0ff, #145fe0 52%, #063590);
  font-weight: 900;
}

.meter-dispatch-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 216, 255, .2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: meterDispatchSpin .8s linear infinite;
}

@keyframes meterDispatchSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .field-portal-access-link-copy {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .field-portal-access-link-copy .office-dispatch-secondary-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .office-dispatch-batch-publish {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .office-dispatch-batch-state,
  .office-dispatch-batch-publish .office-dispatch-editor-feedback {
    grid-column: auto;
  }

  .office-dispatch-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meter-dispatch-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meter-dispatch-head {
    display: none;
  }

  .meter-dispatch-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 10px;
  }

  .meter-dispatch-row > [data-label] {
    display: grid;
    gap: 2px;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .meter-dispatch-row > [data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
  }
}

@media (max-width: 520px) {
  .meter-dispatch-load-more {
    align-items: stretch;
    flex-direction: column;
  }

  .meter-dispatch-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meter-dispatch-filters,
  .office-dispatch-editor-grid,
  .meter-dispatch-row {
    grid-template-columns: 1fr;
  }

  .office-dispatch-system-options,
  .office-dispatch-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .office-dispatch-editor-actions button {
    width: 100%;
  }

  .office-dispatch-access-form > div,
  .field-portal-access-link-controls,
  .field-portal-access-link-copy,
  .field-portal-access-link-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .office-dispatch-actions,
  .meter-dispatch-message-actions {
    justify-content: stretch;
  }

  .office-dispatch-actions button,
  .meter-dispatch-message-actions button,
  .field-portal-access-link-controls button,
  .field-portal-access-link-copy button,
  .field-portal-access-link-copy a {
    flex: 1 1 100%;
    width: 100%;
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .meter-dispatch-spinner {
    animation: none !important;
    transition: none !important;
  }
}
