:root {
  --bg: #e7f1ef;
  --bg-deep: #cadcda;
  --surface: #eef8f6;
  --ink: #10282a;
  --ink-strong: #061416;
  --muted: #526b6d;
  --soft: #6d8587;
  --line: rgba(20, 55, 58, 0.16);
  --line-strong: rgba(20, 55, 58, 0.28);
  --glass: rgba(255, 255, 255, 0.42);
  --glass-strong: rgba(255, 255, 255, 0.62);
  --teal: #00b894;
  --blue: #3178c6;
  --amber: #c28b00;
  --coral: #ce5b64;
  --green: #4c9f38;
  --shadow: 0 28px 80px rgba(20, 55, 58, 0.16);
  --radius: 8px;
  --menu-panel-top: 70px;
  --map-scale: 0.76;
  --map-x: 0px;
  --map-y: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: var(--bg);
  color-scheme: light;
}

body {
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    linear-gradient(90deg, rgba(16, 40, 42, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 40, 42, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(0, 184, 148, 0.18), transparent 26%),
    radial-gradient(circle at 82% 8%, rgba(49, 120, 198, 0.15), transparent 27%),
    linear-gradient(135deg, #edf6f4 0%, #d9e9e7 46%, #cddfdd 100%);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 9px, rgba(16, 40, 42, 0.014) 9px 10px);
  opacity: 0.45;
}

a,
button,
input {
  font: inherit;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
}

.hidden {
  display: none !important;
}

body.auth-pending .hub-stage,
body.auth-pending .weather-inline,
body.auth-pending .user-badge {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.menu-bar {
  position: relative;
  z-index: 50;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(238, 247, 245, 0.78);
  backdrop-filter: blur(18px);
}

.menu-left,
.menu-right {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-left {
  flex: 1 1 auto;
}

.menu-right {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.menu-brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 0;
  border-right: 1px solid var(--line);
  color: var(--ink-strong);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 900;
  white-space: nowrap;
}

.menu-brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #0c2224;
  box-shadow: 0 10px 26px rgba(20, 55, 58, 0.16);
}

.menu-cluster {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.menu-item {
  position: relative;
  flex: 0 0 auto;
}

.menu-trigger,
.menu-direct-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.menu-trigger:hover,
.menu-trigger:focus-visible,
.menu-trigger[aria-expanded="true"],
.menu-direct-link:hover,
.menu-direct-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(0, 184, 148, 0.12);
  color: var(--ink-strong);
  outline: none;
}

.menu-direct-link-milk {
  border: 1px solid rgba(0, 184, 148, 0.28);
  background: linear-gradient(135deg, rgba(211, 249, 240, 0.92), rgba(224, 241, 255, 0.92));
  color: var(--ink-strong);
  box-shadow: 0 7px 18px rgba(15, 89, 83, 0.1);
}

.menu-panel {
  position: absolute;
  z-index: 90;
  top: calc(100% + 9px);
  left: 0;
  display: none;
  width: min(330px, calc(100vw - 28px));
  min-width: 260px;
  max-height: calc(100vh - 92px);
  overflow: auto;
  padding: 8px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(239, 248, 246, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.menu-panel.align-right {
  right: 0;
  left: auto;
}

.menu-panel.is-open {
  display: block;
  animation: panelIn 150ms ease both;
}

.menu-panel-header {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 14px 10px;
  border-bottom: 1px solid var(--line);
}

.menu-panel-title {
  color: var(--ink-strong);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-panel-count {
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.menu-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 55, 58, 0.08);
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.menu-link:last-child {
  border-bottom: 0;
}

.menu-link:hover,
.menu-link:focus-visible {
  transform: translateX(3px);
  background: rgba(0, 184, 148, 0.1);
  color: var(--ink-strong);
  outline: none;
}

.menu-link-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.menu-link-title {
  color: currentColor;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.menu-link-meta {
  color: var(--soft);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.menu-link-arrow {
  margin-left: auto;
  color: var(--teal);
  font-size: 1.05rem;
  font-weight: 900;
}

.user-badge,
.weather-inline {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.38);
  color: var(--ink);
}

.user-badge {
  gap: 8px;
  padding: 4px 10px 4px 5px;
  font-size: 0.84rem;
  font-weight: 850;
}

.user-badge:hover,
.user-badge:focus-visible {
  background: rgba(206, 91, 100, 0.12);
  outline: none;
}

.user-avatar {
  position: relative;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(0, 184, 148, 0.16);
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar-fallback {
  color: var(--ink-strong);
  font-size: 0.72rem;
  font-weight: 900;
}

.status-indicator {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 8px;
  height: 8px;
  border: 1px solid #eaf5f3;
  border-radius: 999px;
}

.status-indicator.online {
  background: var(--teal);
}

.weather-inline {
  gap: 7px;
  padding: 4px 10px;
  white-space: nowrap;
}

.weather-inline-icon {
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
}

.weather-inline-temp {
  color: var(--ink-strong);
  font-size: 0.94rem;
  line-height: 1;
}

.weather-inline-condition,
.weather-inline-range {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.weather-inline-range {
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.page-surface {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: calc(100vh - 70px);
  display: grid;
  align-items: stretch;
  justify-items: stretch;
  overflow: auto;
  padding: 22px 28px;
}

.auth-panel {
  width: min(440px, calc(100vw - 32px));
  place-self: center;
  border-left: 3px solid var(--teal);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-panel-inner {
  display: grid;
  gap: 15px;
  padding: 30px;
  text-align: center;
}

.auth-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: var(--radius);
  background: #0c2224;
  box-shadow: 0 16px 34px rgba(20, 55, 58, 0.16);
}

.auth-kicker,
.hub-kicker,
.hub-section-kicker {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.auth-kicker {
  justify-self: center;
}

.auth-panel h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  line-height: 1.02;
}

.auth-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 3px;
  text-align: left;
}

.keep-login-row {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-strong);
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.keep-login-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.auth-shortcut-btn {
  min-height: 44px;
  border: 1px solid rgba(0, 143, 122, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.64);
  color: #083338;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.auth-shortcut-btn:hover,
.auth-shortcut-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 143, 122, 0.52);
  background: rgba(219, 255, 249, 0.78);
  outline: none;
}

.pwa-install-hint {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 150;
  width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
  padding: 12px 14px;
  border: 1px solid rgba(0, 143, 122, 0.28);
  border-radius: 12px;
  background: rgba(247, 253, 252, 0.96);
  color: #09262b;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 18px 44px rgba(8, 27, 31, 0.18);
  backdrop-filter: blur(18px);
}

.pwa-install-hint.hidden {
  display: none;
}

.field-shell {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.field-shell input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink-strong);
  outline: none;
}

.field-shell input:focus {
  border-color: rgba(0, 184, 148, 0.62);
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.12);
}

.btn-primary {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink-strong);
  color: #f5fbfa;
  font-weight: 900;
  transition: transform 150ms ease, background 150ms ease, opacity 150ms ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  background: #0f3334;
  outline: none;
}

.btn-primary:disabled {
  opacity: 0.68;
  transform: none;
}

.loading-msg {
  color: var(--soft);
  font-size: 0.9rem;
}

.hub-stage {
  width: 100%;
  min-height: 100%;
  align-self: stretch;
  display: flex;
  align-items: stretch;
}

.hub-shell {
  width: 100%;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
}

.hub-overview {
  min-height: 188px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 18px;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--line);
}

.hub-title-block {
  display: grid;
  gap: 10px;
}

.hub-title-block h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.88;
}

.hub-title-block p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 850;
}

.hub-logistics-mark {
  position: relative;
  width: 178px;
  height: 150px;
  display: grid;
  place-items: center;
  justify-self: end;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 40, 42, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 40, 42, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(0, 184, 148, 0.11));
  background-size: 18px 18px, 18px 18px, auto;
  border: 1px solid rgba(20, 55, 58, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46);
}

.hub-logistics-mark::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(16, 40, 42, 0.16);
  border-radius: 8px;
}

.hub-logistics-mark strong {
  position: absolute;
  right: 17px;
  top: 17px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink-strong);
  color: #f6fbfa;
  font-size: 1.05rem;
  letter-spacing: 0;
  box-shadow: 0 0 0 7px rgba(0, 184, 148, 0.11);
}

.route-lane,
.route-pin,
.freight-mark,
.freight-box,
.freight-cab,
.freight-wheel {
  position: absolute;
}

.route-lane {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), rgba(49, 120, 198, 0.92));
  box-shadow: 0 0 18px rgba(0, 184, 148, 0.24);
}

.route-main {
  width: 148px;
  left: 15px;
  top: 91px;
  transform: rotate(-19deg);
}

.route-cross {
  width: 82px;
  left: 49px;
  top: 63px;
  transform: rotate(31deg);
  opacity: 0.72;
}

.route-pin {
  width: 14px;
  height: 12px;
  border: 3px solid rgba(238, 248, 246, 0.96);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(0, 184, 148, 0.42);
}

.pin-origin {
  left: 22px;
  bottom: 33px;
}

.pin-yard {
  left: 78px;
  top: 43px;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(194, 139, 0, 0.3);
}

.pin-dock {
  right: 27px;
  bottom: 31px;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(49, 120, 198, 0.34);
}

.freight-mark {
  left: 32px;
  top: 64px;
  width: 74px;
  height: 37px;
  transform: translateY(0);
  animation: freightGlide 4.8s ease-in-out infinite;
}

.freight-box {
  left: 0;
  top: 7px;
  width: 44px;
  height: 22px;
  border-radius: 5px;
  background: rgba(6, 20, 22, 0.92);
}

.freight-cab {
  right: 4px;
  top: 11px;
  width: 23px;
  height: 18px;
  border-radius: 4px 7px 5px 3px;
  background: rgba(6, 20, 22, 0.92);
}

.freight-cab::before {
  content: "";
  position: absolute;
  top: 3px;
  right: 4px;
  width: 8px;
  height: 6px;
  border-radius: 2px;
  background: rgba(238, 248, 246, 0.82);
}

.freight-wheel {
  bottom: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(6, 20, 22, 0.88);
}

.wheel-one {
  left: 13px;
}

.wheel-two {
  right: 12px;
}

.hub-briefing {
  position: relative;
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.35fr);
  align-items: stretch;
  gap: 20px;
  padding: 18px 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hub-briefing.has-no-metrics {
  grid-template-columns: 1fr;
}

.hub-briefing::before {
  content: "";
  position: absolute;
  inset: 18px auto 20px 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--blue));
  box-shadow: 0 0 22px rgba(0, 184, 148, 0.34);
}

.hub-hello {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 7px;
  padding-left: 20px;
}

.hub-hello-kicker {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hub-hello h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 0.92;
}

.hub-hello p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 850;
}

.hub-ops-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: stretch;
  gap: 1px;
  background: rgba(20, 55, 58, 0.12);
  border: 1px solid rgba(20, 55, 58, 0.13);
}

.hub-op-metric {
  position: relative;
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.22)),
    linear-gradient(90deg, rgba(0, 184, 148, 0.08), transparent);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 150ms ease, background 150ms ease;
}

.hub-op-metric::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 16px rgba(0, 184, 148, 0.4);
}

.hub-op-metric.has-alert {
  border-color: rgba(198, 80, 54, 0.24) !important;
  border-left-color: #d65c3f !important;
  background: rgba(255, 249, 246, 0.94) !important;
}

.hub-op-metric.has-alert::before {
  background: #d65c3f !important;
  box-shadow: 0 0 14px rgba(214, 92, 63, 0.48) !important;
}

.hub-op-metric.is-clear::before {
  background: #00a88f !important;
}

.hub-op-metric:focus-visible {
  outline: 3px solid rgba(0, 168, 143, 0.34) !important;
  outline-offset: 3px;
}

.hub-op-metric span,
.hub-op-metric em {
  padding-left: 18px;
}

.hub-op-metric span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hub-op-metric strong {
  color: var(--ink-strong);
  font-size: clamp(1.8rem, 3.2vw, 3.35rem);
  line-height: 0.9;
}

.hub-op-metric em {
  color: #3d6062;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
}

.hub-op-metric:hover,
.hub-op-metric:focus-visible {
  transform: translateY(-2px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(0, 184, 148, 0.13)),
    linear-gradient(90deg, rgba(0, 184, 148, 0.1), transparent);
  outline: none;
}

.hub-op-metric.is-callouts::before {
  background: var(--amber);
  box-shadow: 0 0 16px rgba(194, 139, 0, 0.36);
}

.hub-op-metric.is-fleet::before {
  background: var(--blue);
  box-shadow: 0 0 16px rgba(49, 120, 198, 0.36);
}

.hub-op-metric.is-muted {
  opacity: 0.56;
  pointer-events: none;
}

.hub-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
  align-items: stretch;
  align-content: start;
  padding-top: 2px;
}

.hub-module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 0 18px;
}

.hub-module-grid.is-count-1 {
  grid-template-columns: minmax(0, 1fr);
}

.hub-module-grid.is-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-module-grid.is-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-module-grid.is-sparse {
  gap: 0 22px;
}

.hub-module-grid.is-sparse .hub-module-row {
  min-height: 112px;
  padding-inline: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(0, 184, 148, 0.11) 58%, rgba(255, 255, 255, 0.22)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
}

.hub-module-grid.is-count-1 .hub-module-row {
  grid-template-columns: 54px minmax(0, 1fr) auto;
}

.hub-module-grid.is-count-1 .hub-module-icon {
  width: 44px;
  height: 44px;
}

.hub-module-grid.is-count-1 .hub-module-copy strong {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.hub-module-row {
  position: relative;
  min-height: 94px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 0 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.14) 54%, transparent 100%);
  color: var(--ink);
  text-decoration: none;
  animation: rowIn 240ms ease both;
  animation-delay: calc(var(--row-index, 0) * 20ms);
  transition: color 150ms ease, transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.hub-module-row::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px -8px;
  width: 3px;
  background: var(--teal);
  opacity: 0;
  transition: opacity 150ms ease, transform 150ms ease;
}

.hub-module-row:hover,
.hub-module-row:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(0, 184, 148, 0.12) 62%, transparent 100%);
  color: var(--ink-strong);
  border-color: rgba(0, 184, 148, 0.42);
  outline: none;
}

.hub-module-row:hover::before,
.hub-module-row:focus-visible::before {
  opacity: 1;
  transform: translateX(4px);
}

.hub-module-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(0, 184, 148, 0.18);
  color: var(--ink-strong);
  font-weight: 950;
}

.hub-module-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.hub-module-copy strong {
  color: currentColor;
  font-size: 1.02rem;
  line-height: 1.18;
}

.hub-module-copy span {
  color: #3d6062;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hub-module-action {
  width: max-content;
  color: var(--teal);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.hub-module-arrow {
  color: var(--teal);
  font-size: 1.35rem;
  font-weight: 950;
}

.is-support .hub-module-icon {
  background: rgba(49, 120, 198, 0.12);
}

.is-people .hub-module-icon {
  background: rgba(194, 139, 0, 0.12);
}

.is-fleet .hub-module-icon {
  background: rgba(206, 91, 100, 0.12);
}

.is-reports .hub-module-icon {
  background: rgba(76, 159, 56, 0.12);
}

.is-admin .hub-module-icon {
  background: rgba(16, 40, 42, 0.1);
}

.hub-notice-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  width: min(320px, calc(100vw - 24px));
  display: grid;
  gap: 10px;
}

.voice-notice {
  position: static;
  width: 100%;
}

.voice-notice-shell {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-left: 3px solid var(--blue);
  background: rgba(239, 248, 246, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.callout-notice .voice-notice-shell {
  border-left-color: var(--amber);
}

.fleet-damage-notice .voice-notice-shell {
  border-left-color: var(--coral);
}

.writeup-request-notice .voice-notice-shell {
  border-left-color: var(--teal);
}

.hub-op-metric.has-warning {
  border-left-color: #c98a00 !important;
  background: rgba(255, 249, 232, .96) !important;
}

.hub-op-metric.has-warning::before {
  background: #c98a00 !important;
  box-shadow: 0 0 14px rgba(201, 138, 0, .4) !important;
}

.writeup-request-notice.is-warning .voice-notice-shell {
  border-left-color: #c98a00;
  background: rgba(255, 249, 232, .96);
}

.writeup-request-notice.is-overdue .voice-notice-shell {
  border-color: rgba(181, 39, 59, 0.28);
  border-left: 4px solid #b5273b;
  background: rgba(255, 241, 243, 0.96);
}

.writeup-request-notice.is-overdue .voice-notice-kicker,
.writeup-request-notice.is-overdue .voice-notice-link {
  color: #a51f35;
}

.voice-notice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.voice-notice-kicker {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.voice-notice-dismiss {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  background: rgba(16, 40, 42, 0.08);
  color: var(--ink);
  font-size: 1rem;
}

.voice-notice-dismiss:hover,
.voice-notice-dismiss:focus-visible {
  background: rgba(206, 91, 100, 0.12);
  outline: none;
}

.voice-notice-body {
  display: grid;
  gap: 6px;
}

.voice-notice-body strong {
  color: var(--ink-strong);
  font-size: 1rem;
}

.voice-notice-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.voice-notice-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.voice-notice-animate .voice-notice-shell {
  animation: noticeIn 220ms ease both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes freightGlide {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1280px) {
  .hub-module-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }
}

@media (max-width: 980px) {
  .hub-module-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 1080px) {
  .menu-bar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .menu-left,
  .menu-right {
    width: 100%;
  }

  .menu-left {
    flex-wrap: wrap;
  }

  .menu-right {
    justify-content: space-between;
  }

  .hub-briefing {
    grid-template-columns: 1fr;
  }

  .hub-ops-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .menu-bar {
    min-height: 64px;
    padding: 10px 12px;
  }

  .menu-brand span,
  #userStatusText,
  .weather-inline-condition,
  .weather-inline-range {
    display: none;
  }

  .menu-cluster {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .menu-cluster::-webkit-scrollbar {
    display: none;
  }

  .menu-panel,
  .menu-panel.align-right {
    position: fixed;
    top: var(--menu-panel-top);
    right: 12px;
    left: 12px;
    width: auto;
    min-width: 0;
    max-height: calc(100vh - var(--menu-panel-top) - 14px);
  }

  .page-surface {
    height: auto;
    min-height: calc(100vh - 64px);
    padding: 16px 12px;
  }

  .auth-panel {
    width: 100%;
  }

  .auth-panel-inner {
    padding: 24px 18px;
  }

  .hub-overview {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hub-title-block h1 {
    font-size: clamp(2.6rem, 14vw, 4.3rem);
  }

  .hub-logistics-mark {
    width: min(178px, 100%);
    height: 136px;
    justify-self: start;
  }

  .hub-logistics-mark strong {
    width: 52px;
    height: 52px;
  }

  .hub-briefing {
    min-height: 0;
    gap: 14px;
    padding: 16px 0;
  }

  .hub-ops-grid {
    grid-template-columns: 1fr;
  }

  .hub-op-metric {
    min-height: 82px;
  }

  .hub-module-grid {
    grid-template-columns: 1fr;
  }

  .hub-module-row {
    min-height: 72px;
  }

  .hub-notice-stack {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}

@media (max-width: 420px) {
  .menu-right {
    gap: 7px;
  }

  .weather-inline {
    padding-inline: 8px;
  }
}

/* Visual refresh: keeps the original layout and DOM, but gives the Hub a cleaner, sharper finish. */
:root {
  --bg: #edf4f2;
  --bg-deep: #d6e4e1;
  --surface: #f9fcfb;
  --ink: #173033;
  --ink-strong: #071719;
  --muted: #557174;
  --soft: #789093;
  --line: rgba(12, 43, 47, 0.14);
  --line-strong: rgba(12, 43, 47, 0.24);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --teal: #009f86;
  --blue: #2563eb;
  --amber: #b77905;
  --coral: #c2414b;
  --green: #328c52;
  --shadow: 0 24px 70px rgba(10, 34, 38, 0.18);
}

body {
  background:
    linear-gradient(90deg, rgba(8, 34, 38, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 34, 38, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 12% 12%, rgba(0, 159, 134, 0.18), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(37, 99, 235, 0.14), transparent 31%),
    linear-gradient(135deg, #f7fbfa 0%, #e6f0ee 48%, #d6e4e1 100%);
}

body::before {
  opacity: 0.22;
}

.menu-bar {
  min-height: 72px;
  padding: 12px 22px;
  border-bottom-color: rgba(8, 34, 38, 0.12);
  background: rgba(249, 252, 251, 0.84);
  box-shadow: 0 14px 40px rgba(10, 34, 38, 0.08);
}

.menu-brand {
  gap: 12px;
  padding-right: 18px;
  letter-spacing: 0;
}

.menu-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(10, 34, 38, 0.2);
}

.menu-trigger,
.menu-direct-link {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  color: #49666a;
}

.menu-trigger:hover,
.menu-trigger:focus-visible,
.menu-trigger[aria-expanded="true"],
.menu-direct-link:hover,
.menu-direct-link:focus-visible {
  background: #ffffff;
  border-color: rgba(0, 159, 134, 0.2);
  box-shadow: 0 10px 24px rgba(10, 34, 38, 0.08);
}

.menu-panel {
  padding: 10px;
  border-color: rgba(8, 34, 38, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(10, 34, 38, 0.2);
}

.menu-panel-header {
  border-bottom-color: rgba(8, 34, 38, 0.1);
}

.menu-link {
  min-height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
}

.menu-link:hover,
.menu-link:focus-visible {
  background: rgba(0, 159, 134, 0.11);
}

.user-badge,
.weather-inline {
  border: 1px solid rgba(8, 34, 38, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(10, 34, 38, 0.08);
}

.page-surface {
  padding: 34px;
}

.auth-panel {
  width: min(440px, calc(100vw - 32px));
  filter: drop-shadow(0 32px 80px rgba(10, 34, 38, 0.22));
}

.auth-panel-inner {
  border: 1px solid rgba(8, 34, 38, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 250, 0.9)),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.auth-logo {
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(10, 34, 38, 0.2);
}

.auth-kicker,
.hub-kicker,
.hub-hello-kicker,
.board-eyebrow {
  color: #007f70;
}

.auth-panel h1 {
  color: var(--ink-strong);
  letter-spacing: 0;
}

.field-shell input {
  border-color: rgba(8, 34, 38, 0.14);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(10, 34, 38, 0.04);
}

.field-shell input:focus {
  border-color: rgba(0, 159, 134, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 159, 134, 0.12);
}

.btn-primary {
  background: linear-gradient(135deg, #008b78, #2563eb);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.24);
}

.hub-shell {
  gap: 18px;
}

.hub-overview,
.hub-briefing {
  border: 1px solid rgba(8, 34, 38, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 251, 250, 0.62)),
    rgba(255, 255, 255, 0.5);
  box-shadow: 0 24px 70px rgba(10, 34, 38, 0.12);
}

.hub-title-block h1 {
  color: #071719;
  letter-spacing: 0;
}

.hub-logistics-mark {
  border-color: rgba(8, 34, 38, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(238, 247, 245, 0.68)),
    rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 24px 54px rgba(10, 34, 38, 0.14);
}

.hub-op-metric {
  border-color: rgba(8, 34, 38, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 36px rgba(10, 34, 38, 0.09);
}

.hub-op-metric:hover,
.hub-op-metric:focus-visible {
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(10, 34, 38, 0.13);
}

.hub-module-row {
  border-color: rgba(8, 34, 38, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 251, 250, 0.8)),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(10, 34, 38, 0.08);
}

.hub-module-row:hover,
.hub-module-row:focus-visible {
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(10, 34, 38, 0.14);
}

.hub-module-icon {
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.hub-module-copy strong {
  color: #0b2326;
}

.voice-notice-shell {
  border-color: rgba(8, 34, 38, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 58px rgba(10, 34, 38, 0.2);
}

@media (max-width: 760px) {
  .page-surface {
    padding: 18px 12px;
  }

  .menu-bar {
    padding: 10px 12px;
  }
}

/* Index redesign v2: dispatch-path identity, compact launcher, fewer card surfaces. */
:root {
  --index-bg: #f4f7f6;
  --index-ink: #081b1f;
  --index-muted: #557176;
  --index-line: rgba(8, 27, 31, 0.13);
  --index-teal: #008f7a;
  --index-blue: #235fe5;
  --index-yellow: #d89a00;
  --index-panel: rgba(255, 255, 255, 0.74);
}

body {
  background:
    linear-gradient(115deg, rgba(0, 143, 122, 0.16), transparent 30%),
    linear-gradient(245deg, rgba(35, 95, 229, 0.13), transparent 28%),
    linear-gradient(180deg, #f8fbfa 0%, #e9f0ef 58%, #dce8e6 100%);
}

body::before {
  background:
    linear-gradient(90deg, rgba(8, 27, 31, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 27, 31, 0.035) 1px, transparent 1px);
  background-size: 84px 84px;
  opacity: 0.42;
}

.dispatch-backdrop {
  position: fixed;
  inset: 72px 0 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  background: #dfe8e6;
}

.google-interactive-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: none;
  transition: opacity 220ms ease;
}

.google-interactive-map::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  border: 7px solid rgba(231, 78, 80, 0.86);
  border-radius: 50% 50% 50% 0;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -76%) rotate(-45deg);
  box-shadow: 0 16px 34px rgba(8, 27, 31, 0.24);
  pointer-events: none;
}

.has-live-google-map .google-interactive-map::after {
  display: none;
}

.local-map-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.72;
  pointer-events: none;
  transform: translate3d(var(--map-x), var(--map-y), 0) scale(var(--map-scale));
  transform-origin: center;
  transition: transform 180ms ease;
  background:
    linear-gradient(90deg, rgba(8, 27, 31, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 27, 31, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 49% 42%, rgba(255, 77, 79, 0.22), transparent 0.9%, transparent 1.5%),
    radial-gradient(circle at 52% 48%, rgba(0, 143, 122, 0.22), transparent 1%, transparent 1.7%),
    linear-gradient(135deg, rgba(190, 230, 233, 0.32), rgba(238, 247, 245, 0.46));
  background-size: 92px 92px, 92px 92px, auto, auto, auto;
}

.local-road {
  position: absolute;
  height: 14px;
  border-radius: 999px;
  background: rgba(71, 107, 136, 0.22);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.24);
}

.road-a {
  left: -8%;
  top: 47%;
  width: 118%;
  transform: rotate(-18deg);
}

.road-b {
  left: 12%;
  top: 12%;
  width: 92%;
  transform: rotate(23deg);
}

.road-c {
  left: 34%;
  top: -8%;
  width: 22px;
  height: 122%;
  transform: rotate(7deg);
}

.road-d {
  left: 50%;
  top: 16%;
  width: 22px;
  height: 94%;
  background: rgba(53, 132, 178, 0.18);
  transform: rotate(-31deg);
}

.road-e {
  left: 55%;
  top: 66%;
  width: 58%;
  background: rgba(53, 132, 178, 0.2);
  transform: rotate(4deg);
}

.local-pin {
  position: absolute;
  left: 49%;
  top: 43%;
  width: 30px;
  height: 30px;
  border: 7px solid rgba(231, 78, 80, 0.76);
  border-radius: 50% 50% 50% 0;
  background: rgba(255, 255, 255, 0.86);
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: 0 16px 34px rgba(8, 27, 31, 0.2);
  pointer-events: none;
}

.has-live-google-map .google-interactive-map {
  opacity: 0.86;
}

.has-live-google-map .local-map-backdrop,
.has-google-iframe-fallback .local-map-backdrop {
  opacity: 0;
}

.has-live-google-map .google-map-backdrop {
  opacity: 0;
  pointer-events: none;
}

.google-map-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(1.28) contrast(1.04) brightness(1.02);
  opacity: 0.72;
  transform: translate3d(var(--map-x), var(--map-y), 0) scale(var(--map-scale));
  transform-origin: center;
  transition: transform 180ms ease;
}

.google-map-backdrop[src="about:blank"] {
  opacity: 0;
}

.map-backdrop-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(244, 247, 246, 0.56), rgba(244, 247, 246, 0.18) 44%, rgba(235, 242, 243, 0.34)),
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.34), transparent 36%),
    radial-gradient(circle at 80% 20%, rgba(214, 229, 255, 0.18), transparent 38%);
}

.has-live-google-map .map-backdrop-wash {
  background:
    linear-gradient(90deg, rgba(244, 247, 246, 0.3), rgba(244, 247, 246, 0.04) 44%, rgba(235, 242, 243, 0.1)),
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.18), transparent 36%);
}

.dispatch-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 22px 48px rgba(8, 27, 31, 0.08));
  opacity: 0.36;
}

.map-drag-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.map-adjusting .dispatch-backdrop {
  pointer-events: auto;
  z-index: 70;
}

.map-adjusting .google-interactive-map {
  pointer-events: auto;
  z-index: 6;
}

.map-adjusting .google-map-backdrop {
  pointer-events: auto;
}

.map-adjusting .map-drag-layer {
  pointer-events: none;
  cursor: grab;
  z-index: 8;
}

.google-map-fallback.map-adjusting .map-drag-layer {
  pointer-events: auto;
}

.google-map-fallback.map-adjusting .google-interactive-map,
.google-map-fallback.map-adjusting .google-map-backdrop {
  pointer-events: none;
}

.map-dragging .map-drag-layer {
  cursor: grabbing;
}

.map-adjusting .google-map-backdrop {
  transition: none;
}

.map-adjusting .google-interactive-map {
  transition: none;
}

body:not(.map-adjusting) .google-interactive-map {
  pointer-events: none;
}

.page-surface {
  pointer-events: none;
}

.auth-panel,
.hub-stage {
  pointer-events: auto;
}

.intro-complete .dispatch-map,
.intro-skip .dispatch-map {
  opacity: 0;
}

.dispatch-grid-line {
  fill: none;
  stroke: rgba(8, 27, 31, 0.12);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 10 18;
  animation: dispatchDrift 18s linear infinite;
}

.dispatch-grid-line-b {
  stroke: rgba(0, 143, 122, 0.18);
  animation-duration: 24s;
  animation-direction: reverse;
}

.dispatch-grid-line-c {
  stroke: rgba(35, 95, 229, 0.14);
  animation-duration: 28s;
}

.dispatch-node {
  fill: #ffffff;
  stroke: rgba(0, 143, 122, 0.55);
  stroke-width: 3;
  animation: nodePulse 3.8s ease-in-out infinite;
}

.node-b,
.node-d {
  animation-delay: 1.1s;
}

.node-c,
.node-e {
  animation-delay: 2.2s;
}

.index-intro {
  position: fixed;
  inset: 72px 0 0;
  z-index: 120;
  display: grid;
  place-items: center;
  pointer-events: auto;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.94), rgba(244, 247, 246, 0.72) 44%, rgba(230, 240, 239, 0.28) 72%, transparent),
    linear-gradient(180deg, rgba(8, 27, 31, 0.035), transparent 44%);
  transition: opacity 520ms ease, visibility 520ms ease;
}

.intro-complete .index-intro,
.intro-skip .index-intro {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.intro-route-scene {
  width: min(620px, calc(100vw - 42px));
  display: grid;
  justify-items: center;
  gap: 14px;
  color: var(--index-ink);
  transform: translateY(-12px);
}

.intro-route {
  width: min(560px, 100%);
  height: auto;
  overflow: visible;
}

.intro-skyline {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: skylineRise 980ms cubic-bezier(.2, .8, .2, 1) 180ms forwards;
}

.intro-skyline-haze {
  fill: none;
  stroke: rgba(0, 143, 122, 0.12);
  stroke-width: 28;
  stroke-linecap: round;
  opacity: 0;
  animation: skylineHaze 1200ms ease 460ms forwards;
}

.intro-buildings-back rect {
  fill: rgba(8, 27, 31, 0.06);
  stroke: rgba(8, 27, 31, 0.08);
  stroke-width: 1;
}

.intro-buildings-front path {
  fill: rgba(255, 255, 255, 0.46);
  stroke: rgba(8, 27, 31, 0.26);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: drawSkyline 1400ms cubic-bezier(.22, .8, .24, 1) 640ms forwards;
}

.intro-buildings-front path:nth-child(2),
.intro-buildings-front path:nth-child(5) {
  stroke: rgba(0, 143, 122, 0.34);
}

.intro-buildings-front path:nth-child(4),
.intro-buildings-front path:nth-child(6) {
  stroke: rgba(35, 95, 229, 0.28);
}

.intro-windows {
  fill: none;
  stroke: rgba(216, 154, 0, 0.86);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0;
  animation: windowsOn 720ms ease 1750ms forwards;
}

.intro-bridge {
  fill: none;
  stroke: rgba(8, 27, 31, 0.16);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  animation: drawSkyline 1500ms cubic-bezier(.22, .8, .24, 1) 940ms forwards;
}

.intro-route-shadow {
  fill: none;
  stroke: rgba(8, 27, 31, 0.1);
  stroke-width: 18;
  stroke-linecap: round;
}

.intro-route-line {
  fill: none;
  stroke: url("#routeGradient");
  stroke: #008f7a;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  animation: drawIntroRoute 2800ms cubic-bezier(.22, .8, .24, 1) 520ms forwards;
}

.intro-stop {
  opacity: 0;
  animation: introStopIn 520ms ease forwards;
}

.intro-stop circle:first-child {
  fill: #ffffff;
  stroke: #008f7a;
  stroke-width: 4;
}

.intro-stop circle:last-child {
  fill: none;
  stroke: rgba(0, 143, 122, 0.22);
  stroke-width: 3;
}

.stop-one {
  animation-delay: 1220ms;
}

.stop-two {
  animation-delay: 2020ms;
}

.stop-three {
  animation-delay: 2840ms;
}

.intro-truck {
  transform-box: fill-box;
  transform-origin: center;
  fill: #081b1f;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0;
  animation: truckDriveIn 2700ms cubic-bezier(.2, .8, .2, 1) 1680ms forwards;
}

.intro-truck circle {
  fill: #d89a00;
  stroke: #081b1f;
}

.intro-word {
  display: flex;
  align-items: center;
  gap: 1px;
  color: #081b1f;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.94;
}

.intro-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px) rotateX(65deg);
  animation: letterBuild 520ms cubic-bezier(.2, .8, .2, 1) forwards;
}

.intro-word span:nth-child(1) { animation-delay: 3560ms; }
.intro-word span:nth-child(2) { animation-delay: 3635ms; }
.intro-word span:nth-child(3) { animation-delay: 3710ms; }
.intro-word span:nth-child(4) { animation-delay: 3785ms; }
.intro-word span:nth-child(5) { animation-delay: 3860ms; }
.intro-word span:nth-child(6) { animation-delay: 3935ms; }
.intro-word span:nth-child(7) { animation-delay: 4010ms; }
.intro-word span:nth-child(8) { animation-delay: 4085ms; }
.intro-word span:nth-child(9) { animation-delay: 4160ms; }
.intro-word span:nth-child(10) { animation-delay: 4235ms; }
.intro-word span:nth-child(11) { animation-delay: 4310ms; }

.intro-status {
  margin: 0;
  color: var(--index-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  animation: statusIn 520ms ease 4720ms forwards;
}

.menu-bar {
  z-index: 60;
  min-height: 72px;
  border-bottom: 1px solid rgba(8, 27, 31, 0.11);
  background: rgba(248, 251, 250, 0.9);
  box-shadow: 0 10px 34px rgba(8, 27, 31, 0.08);
}

.menu-brand {
  border-right-color: rgba(8, 27, 31, 0.12);
}

.menu-trigger,
.menu-direct-link {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
}

.menu-panel {
  border-radius: 14px;
}

.page-surface {
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 56px);
}

.auth-panel {
  width: min(500px, calc(100vw - 34px));
}

.auth-panel-inner {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 0;
  border: 1px solid rgba(8, 27, 31, 0.12);
  border-left: 4px solid var(--index-teal);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px);
}

.auth-panel-inner::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(0, 143, 122, 0.18);
  border-radius: 50%;
}

.auth-logo {
  width: min(136px, 38vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: 20px;
}

.auth-panel h1 {
  font-size: clamp(2.45rem, 6vw, 4rem);
}

.login-form {
  gap: 13px;
}

.field-shell {
  text-align: left;
}

.field-shell input {
  min-height: 50px;
  border-radius: 8px;
}

.btn-primary {
  min-height: 52px;
  border-radius: 8px;
}

.hub-stage {
  width: min(1400px, 100%);
}

.hub-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(520px, 1.28fr);
  grid-template-areas:
    "screenhead screenhead"
    "overview workspace"
    "briefing workspace";
  gap: 22px;
}

.hub-screen-head {
  grid-area: screenhead;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(8, 27, 31, 0.16);
}

.hub-screen-title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #071719;
}

.hub-screen-title img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #081b1f;
  box-shadow: 0 14px 34px rgba(8, 27, 31, 0.16);
}

.hub-screen-title strong {
  font-size: clamp(1.2rem, 2.1vw, 1.85rem);
  line-height: 1;
}

.hub-screen-mode {
  flex: 0 0 auto;
  color: #31565c;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hub-overview {
  grid-area: overview;
}

.hub-briefing {
  grid-area: briefing;
}

.hub-workspace {
  grid-area: workspace;
  min-width: 0;
}

.hub-overview,
.hub-briefing {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hub-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(8, 27, 31, 0.14);
}

.hub-title-block h1 {
  font-size: clamp(3.3rem, 8vw, 7rem);
  line-height: 0.88;
  max-width: 8ch;
}

.hub-logistics-mark {
  display: none;
}

.hub-briefing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 0;
}

.hub-hello {
  padding: 0;
}

.hub-hello h2 {
  margin-bottom: 8px;
}

.hub-ops-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.hub-op-metric {
  min-height: 68px;
  border: 1px solid rgba(8, 27, 31, 0.1);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.48);
}

.hub-module-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  border-top: 1px solid rgba(8, 27, 31, 0.14);
}

.hub-module-grid.is-count-1,
.hub-module-grid.is-count-2,
.hub-module-grid.is-count-3,
.hub-module-grid.is-sparse {
  grid-template-columns: 1fr;
}

.hub-module-row,
.hub-module-grid.is-sparse .hub-module-row,
.hub-module-grid.is-count-1 .hub-module-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid rgba(8, 27, 31, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hub-module-row::before {
  display: none;
}

.hub-module-row:hover,
.hub-module-row:focus-visible {
  transform: translateX(7px);
  background: linear-gradient(90deg, rgba(0, 143, 122, 0.08), transparent);
  box-shadow: none;
}

.hub-module-icon,
.hub-module-grid.is-count-1 .hub-module-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 0.92rem;
}

.hub-module-copy strong,
.hub-module-grid.is-count-1 .hub-module-copy strong {
  font-size: clamp(1rem, 1.6vw, 1.26rem);
}

.hub-module-copy span {
  font-size: 0.75rem;
}

.hub-module-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--index-muted);
  font-weight: 900;
}

.hub-module-arrow {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(8, 27, 31, 0.12);
  background: rgba(255, 255, 255, 0.64);
}

.voice-notice-shell {
  border-radius: 0;
}

@keyframes dispatchDrift {
  to {
    stroke-dashoffset: -280;
  }
}

@keyframes nodePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.56;
  }
  50% {
    transform: scale(1.45);
    opacity: 1;
  }
}

@keyframes drawIntroRoute {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes skylineRise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes skylineHaze {
  to {
    opacity: 1;
  }
}

@keyframes drawSkyline {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes windowsOn {
  from {
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
  70% {
    opacity: 0.44;
  }
  to {
    opacity: 1;
  }
}

@keyframes introStopIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes truckDriveIn {
  from {
    opacity: 0;
    transform: translate(-120px, 58px) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes letterBuild {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

@keyframes statusIn {
  to {
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .hub-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "screenhead"
      "overview"
      "briefing"
      "workspace";
  }

  .hub-title-block h1 {
    max-width: 100%;
  }

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

@media (max-width: 760px) {
  .dispatch-backdrop,
  .index-intro {
    top: 64px;
  }

  .intro-word {
    font-size: clamp(2rem, 13vw, 3.5rem);
  }

  .hub-ops-grid {
    grid-template-columns: 1fr;
  }

  .hub-module-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }
}

.hub-logistics-mark {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .dispatch-grid-line,
  .dispatch-node,
  .intro-skyline,
  .intro-skyline-haze,
  .intro-buildings-front path,
  .intro-windows,
  .intro-bridge,
  .intro-route-line,
  .intro-stop,
  .intro-truck,
  .intro-word span,
  .intro-status {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}

/* Dispatch layout correction v2: compact command center, no oversized card wall. */
.hub-stage {
  width: min(1680px, 100%);
  margin-inline: auto;
}

.hub-shell {
  grid-template-columns: minmax(320px, 430px) minmax(620px, 1fr);
  grid-template-areas:
    "screenhead screenhead"
    "briefing workspace"
    "overview workspace";
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.hub-overview {
  padding: 0;
  border-bottom: 0;
}

.hub-title-block h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hub-title-block p {
  max-width: 28rem;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
}

.hub-logistics-mark {
  display: none;
}

.hub-briefing {
  padding-left: 0;
}

.hub-hello h2 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.05;
  max-width: 12ch;
}

.hub-hello p {
  max-width: 22rem;
  font-size: 0.9rem;
}

.hub-workspace {
  padding-top: 0;
  align-self: stretch;
}

.hub-module-grid {
  border-top: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.18));
  backdrop-filter: none;
  max-width: 760px;
  margin-left: auto;
}

.hub-module-row,
.hub-module-grid.is-sparse .hub-module-row,
.hub-module-grid.is-count-1 .hub-module-row {
  grid-template-columns: 46px minmax(0, 1fr) 92px;
  min-height: 78px;
  padding: 14px 0;
  border-bottom-color: rgba(8, 27, 31, 0.14);
  color: var(--index-ink);
  opacity: 1;
  animation: none;
}

.hub-module-row:hover,
.hub-module-row:focus-visible {
  transform: translateX(10px);
}

.hub-module-icon,
.hub-module-grid.is-count-1 .hub-module-icon {
  margin-left: 0;
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.hub-module-copy {
  gap: 4px;
}

.hub-module-copy strong,
.hub-module-grid.is-count-1 .hub-module-copy strong {
  color: #071719;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.05;
}

.hub-module-copy span {
  color: #294d53;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.hub-module-action {
  justify-content: flex-end;
  color: #31565c;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hub-module-arrow {
  width: 42px;
  height: 42px;
  border-radius: 0;
  color: var(--index-teal);
  background: rgba(255, 255, 255, 0.68);
}

@media (min-width: 1280px) {
  .page-surface {
    align-items: flex-start;
    padding-top: clamp(42px, 6vh, 72px);
  }
}

@media (max-width: 1080px) {
  .hub-stage {
    width: min(760px, 100%);
  }

  .hub-shell {
    grid-template-areas:
      "screenhead"
      "briefing"
      "workspace"
      "overview";
    gap: 24px;
  }

  .hub-title-block h1 {
    max-width: 100%;
    font-size: clamp(3rem, 11vw, 5.2rem);
  }

  .hub-logistics-mark {
    width: min(240px, 100%);
  }
}

.background-tools {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 110;
  display: grid;
  justify-items: end;
  gap: 8px;
  color: #071719;
}

.background-tools-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(8, 27, 31, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #071719;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(8, 27, 31, 0.14);
  backdrop-filter: blur(18px);
}

.background-tools-toggle:hover,
.background-tools-toggle:focus-visible,
.background-tools.is-open .background-tools-toggle {
  color: #005f52;
  border-color: rgba(0, 143, 122, 0.34);
  background: rgba(255, 255, 255, 0.94);
  outline: none;
}

.background-tools-panel {
  width: 220px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(8, 27, 31, 0.14);
  border-radius: 12px;
  background: rgba(248, 251, 250, 0.92);
  box-shadow: 0 22px 58px rgba(8, 27, 31, 0.18);
  backdrop-filter: blur(22px);
}

.background-check,
.background-tool-row,
.map-adjust-toggle {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #203f43;
  font-size: 0.78rem;
  font-weight: 900;
}

.background-check {
  justify-content: flex-start;
  cursor: pointer;
}

.background-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.background-check-mark {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(8, 27, 31, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
}

.background-check input:checked + .background-check-mark {
  border-color: rgba(0, 143, 122, 0.45);
  background: rgba(0, 143, 122, 0.14);
}

.background-check input:checked + .background-check-mark::before {
  content: "\2713";
  color: #006f60;
  font-size: 0.84rem;
  font-weight: 950;
}

.background-zoom-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.background-zoom-actions button,
.map-adjust-toggle {
  border: 1px solid rgba(8, 27, 31, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.68);
  color: #071719;
}

.background-zoom-actions button {
  width: 34px;
  height: 32px;
  font-size: 1.05rem;
  font-weight: 950;
}

.map-adjust-toggle {
  width: 100%;
  justify-content: flex-start;
  padding: 0 10px;
}

.map-adjust-toggle.is-active {
  border-color: rgba(0, 143, 122, 0.42);
  background: rgba(0, 143, 122, 0.12);
  color: #006f60;
}

.background-install-btn {
  min-height: 38px;
  border: 1px solid rgba(0, 143, 122, 0.32);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 143, 122, 0.92), rgba(8, 44, 50, 0.96));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 30px rgba(0, 84, 76, 0.2);
}

.background-install-btn.hidden {
  display: none;
}

body.hub-hide-greeting .hub-briefing {
  display: none;
}

body.hub-hide-recents .hub-workspace,
body.hub-hide-recents #hubRecentsLabel {
  display: none;
}

body.hub-hide-recents .hub-shell {
  grid-template-columns: minmax(320px, 430px);
  grid-template-areas:
    "screenhead"
    "briefing"
    "overview";
  gap: clamp(22px, 4vw, 48px);
}

@media (max-width: 760px) {
  .hub-screen-head {
    align-items: flex-start;
  }

  .hub-screen-title strong {
    font-size: 1.2rem;
  }

  .background-tools {
    right: 12px;
    bottom: 12px;
  }
}

/* Final Index positioning/interactivity overrides. */
.page-surface {
  justify-content: flex-start;
  padding-left: clamp(16px, 2.5vw, 48px);
  padding-right: clamp(16px, 2.5vw, 48px);
}

.hub-stage {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.hub-shell {
  gap: clamp(30px, 4.8vw, 82px);
}

@media (min-width: 1280px) {
  .page-surface {
    padding-left: clamp(18px, 2.3vw, 44px);
  }
}

@media (max-width: 760px) {
  .hub-module-row,
  .hub-module-grid.is-sparse .hub-module-row,
  .hub-module-grid.is-count-1 .hub-module-row {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    min-height: 78px;
  }

  .hub-module-action {
    font-size: 0;
  }

  .hub-module-arrow {
    width: 36px;
    height: 36px;
  }
}

/* Background control: gear stays in the true bottom-right corner. */
.background-tools {
  right: 8px !important;
  bottom: 8px !important;
  display: block;
  width: 40px;
  height: 40px;
  z-index: 2147483000 !important;
  pointer-events: none;
}

.background-tools-toggle {
  position: fixed;
  right: 8px;
  bottom: 8px;
  z-index: 2147483002 !important;
  pointer-events: auto;
}

.background-tools-panel {
  position: fixed;
  right: 8px;
  bottom: 56px;
  z-index: 2147483001 !important;
  pointer-events: auto;
}

.background-tools-panel[hidden],
.background-tools:not(.is-open) .background-tools-panel {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Hub cleanup: fewer labels, tighter greeting, recents away from the map center. */
.hub-shell {
  grid-template-columns: minmax(300px, 430px) minmax(360px, 440px) !important;
  grid-template-areas:
    "screenhead screenhead"
    "briefing workspace" !important;
  column-gap: clamp(28px, 11vw, 210px) !important;
  row-gap: clamp(12px, 2vh, 22px) !important;
  align-items: start;
}

.hub-overview,
.hub-title-block,
.hub-title-block .hub-kicker,
.hub-title-block h1,
.hub-title-block p,
#hubWelcome {
  display: none !important;
}

.hub-screen-head {
  padding-bottom: clamp(8px, 1.3vh, 14px);
}

.hub-screen-mode {
  margin-left: auto;
  margin-right: clamp(18px, 4vw, 70px);
}

.hub-briefing {
  margin-top: clamp(8px, 1.4vh, 18px);
  min-width: 0;
}

.hub-hello h2 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.6rem, 5.7vw, 5.4rem);
  line-height: 0.96;
}

.hub-workspace {
  justify-self: end;
  width: min(420px, 32vw);
  padding-top: clamp(28px, 6.4vh, 72px) !important;
}

.hub-module-grid {
  max-width: 420px !important;
  margin-left: 0 !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.12)) !important;
}

.hub-module-row,
.hub-module-grid.is-sparse .hub-module-row,
.hub-module-grid.is-count-1 .hub-module-row {
  grid-template-columns: 42px minmax(0, 1fr) 50px !important;
}

.hub-module-action {
  display: none !important;
}

.background-tools-toggle {
  z-index: 2147483002 !important;
}

.background-tools-panel {
  z-index: 2147483001 !important;
}

/* Discreet live alerts: compact chips, not large cards. */
.hub-notice-stack {
  left: clamp(14px, 2.4vw, 46px) !important;
  right: auto !important;
  bottom: 14px !important;
  width: min(560px, calc(100vw - 86px)) !important;
  display: flex !important;
  align-items: flex-end;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
}

.voice-notice {
  width: auto !important;
  max-width: min(280px, calc(100vw - 86px));
  pointer-events: auto;
}

.voice-notice-shell {
  min-height: 42px;
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 12px !important;
  border-radius: 999px !important;
  background: rgba(248, 251, 250, 0.88) !important;
  box-shadow: 0 16px 38px rgba(8, 27, 31, 0.16) !important;
  backdrop-filter: blur(18px);
}

.voice-notice-top {
  display: contents;
}

.voice-notice-kicker {
  color: #005f52;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.voice-notice-body {
  min-width: 0;
  display: block;
}

.voice-notice-body strong {
  display: block;
  max-width: 132px;
  overflow: hidden;
  color: #071719;
  font-size: 0.76rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-notice-body p {
  display: none !important;
}

.voice-notice-link {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border-radius: 999px !important;
  overflow: hidden;
  color: #005f52;
  font-size: 0 !important;
}

.voice-notice-link::after {
  content: ">";
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.voice-notice-dismiss {
  order: 5;
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px;
  border-radius: 999px !important;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hub-shell {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "screenhead"
      "briefing"
      "workspace" !important;
    column-gap: 0 !important;
  }

  .hub-screen-mode {
    margin-right: 0;
  }

  .hub-workspace {
    justify-self: stretch;
    width: 100%;
    padding-top: 8px !important;
  }

  .hub-hello h2 {
    max-width: 9ch;
  }
}

/* Compact, keyboard-friendly hub navigation. */
body.dc-nav-mounted > .menu-bar {
  display: none !important;
}
.menu-panel {
  padding: 6px;
}

.menu-panel-header {
  min-height: 32px;
  padding: 4px 10px 7px;
  justify-content: flex-start;
}

.menu-link {
  min-height: 38px;
  margin-top: 2px;
  padding: 6px 10px;
}

.menu-trigger[aria-expanded="true"] {
  border-color: rgba(0, 159, 134, 0.42);
  background: #fff;
  color: #07363b;
  box-shadow: inset 0 -3px 0 #00a88f, 0 8px 20px rgba(10, 34, 38, 0.1);
}

/* Main hub polish: use the map as the hero, keep live items as compact chips. */
.hub-briefing {
  max-width: min(460px, 44vw);
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

.hub-hello {
  max-width: 460px;
}

.hub-hello h2 {
  max-width: 10ch !important;
  font-size: clamp(2.15rem, 4.35vw, 4.25rem) !important;
  line-height: 0.96 !important;
}

.hub-ops-grid {
  position: fixed;
  left: clamp(14px, 2.4vw, 46px);
  bottom: 68px;
  z-index: 55;
  width: min(620px, calc(100vw - 86px));
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
  background: transparent !important;
  border: 0 !important;
  pointer-events: none;
}

.hub-ops-grid.hidden {
  display: none !important;
}

.hub-op-metric {
  min-height: 42px !important;
  width: auto;
  max-width: min(300px, calc(100vw - 86px));
  display: flex !important;
  align-items: center;
  gap: 7px;
  padding: 7px 10px 7px 13px !important;
  border: 1px solid rgba(8, 27, 31, 0.11) !important;
  border-left: 3px solid var(--teal) !important;
  border-radius: 999px !important;
  background: rgba(248, 251, 250, 0.88) !important;
  box-shadow: 0 16px 38px rgba(8, 27, 31, 0.16) !important;
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.hub-op-metric.hidden {
  display: none !important;
}

.hub-op-metric::before {
  position: static !important;
  flex: 0 0 7px;
  width: 7px !important;
  height: 7px !important;
  box-shadow: 0 0 14px rgba(0, 184, 148, 0.4) !important;
}

.hub-op-metric span,
.hub-op-metric em {
  padding-left: 0 !important;
}

.hub-op-metric span {
  color: #005f52 !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.hub-op-metric strong {
  color: #071719 !important;
  font-size: 0.86rem !important;
  line-height: 1 !important;
  white-space: nowrap;
}

.hub-op-metric em {
  max-width: 118px;
  overflow: hidden;
  color: #31565c !important;
  font-size: 0.72rem !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-op-metric:hover,
.hub-op-metric:focus-visible {
  transform: translateY(-1px) !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

.hub-op-metric.is-callouts {
  border-left-color: var(--amber) !important;
}

.hub-op-metric.is-fleet {
  border-left-color: var(--blue) !important;
}

/* Darker map treatment keeps the hero copy readable without hiding streets. */
.map-backdrop-wash,
.has-live-google-map .map-backdrop-wash {
  background:
    linear-gradient(90deg, rgba(4, 24, 30, 0.34), rgba(5, 31, 37, 0.2) 48%, rgba(3, 24, 31, 0.28)),
    radial-gradient(circle at 36% 24%, rgba(0, 137, 121, 0.12), transparent 38%);
}

.hub-hello h2 {
  color: #ffffff !important;
  text-shadow: 0 3px 18px rgba(2, 18, 24, 0.5);
}

.hub-hello-kicker {
  color: #6ff4dd !important;
  text-shadow: 0 2px 10px rgba(2, 18, 24, 0.42);
}

.hub-hello p {
  color: rgba(255, 255, 255, 0.88) !important;
  text-shadow: 0 2px 10px rgba(2, 18, 24, 0.4);
}

.login-reset-btn {
  width: max-content;
  margin: 2px auto 0;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: #006f62;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.login-reset-btn:hover,
.login-reset-btn:focus-visible {
  color: #003f39;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-reset-btn:disabled {
  cursor: wait;
  opacity: 0.55;
}

/* Launch Points stay readable while the live map remains visible around them. */
.hub-shell {
  grid-template-columns: minmax(320px, 500px) 1fr !important;
  grid-template-areas:
    "screenhead screenhead"
    "briefing ."
    "workspace ." !important;
  column-gap: clamp(24px, 7vw, 120px) !important;
  row-gap: 12px !important;
}

.hub-workspace {
  justify-self: start !important;
  width: min(460px, 42vw) !important;
  padding-top: 0 !important;
}

.hub-screen-mode {
  margin-right: 0 !important;
}

.hub-module-grid {
  gap: 7px !important;
  padding: 7px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 20px !important;
  background: rgba(232, 245, 243, 0.12) !important;
  box-shadow: 0 14px 34px rgba(3, 24, 31, 0.1) !important;
  backdrop-filter: blur(3px) saturate(1.04) !important;
}

.hub-module-row,
.hub-module-grid.is-sparse .hub-module-row,
.hub-module-grid.is-count-1 .hub-module-row {
  min-height: 72px !important;
  padding: 11px 12px !important;
  border: 1px solid rgba(8, 54, 59, 0.09) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 5px 14px rgba(4, 31, 36, 0.05) !important;
  backdrop-filter: blur(3px) !important;
}

.hub-module-row:hover,
.hub-module-row:focus-visible {
  transform: translateX(4px) !important;
  border-color: rgba(0, 143, 122, 0.28) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 12px 28px rgba(4, 31, 36, 0.14) !important;
}

.map-adjusting .background-tools-toggle {
  border-color: rgba(0, 143, 122, 0.44);
  background: rgba(232, 255, 250, 0.96);
  color: #005f52;
}

@media (max-width: 900px) {
  .hub-shell {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "screenhead"
      "briefing"
      "workspace" !important;
  }

  .hub-workspace {
    justify-self: stretch !important;
    width: 100% !important;
  }

  .hub-briefing {
    max-width: min(430px, calc(100vw - 28px));
  }

  .hub-hello h2 {
    font-size: clamp(2.05rem, 12vw, 3.45rem) !important;
  }

  .hub-ops-grid {
    bottom: 64px;
  }
}

/* Mobile recents: compact shortcuts that leave the map visible. */
@media (max-width: 900px) {
  .hub-workspace {
    justify-self: start !important;
    width: min(370px, calc(100vw - 32px)) !important;
  }

  .hub-module-grid {
    gap: 5px !important;
    padding: 5px !important;
    border-radius: 16px !important;
  }

  .hub-module-row,
  .hub-module-grid.is-sparse .hub-module-row,
  .hub-module-grid.is-count-1 .hub-module-row {
    grid-template-columns: 38px minmax(0, 1fr) 34px !important;
    min-height: 58px !important;
    padding: 8px 9px !important;
    border-radius: 12px !important;
  }

  .hub-module-icon,
  .hub-module-grid.is-count-1 .hub-module-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 11px !important;
    font-size: 0.82rem !important;
  }

  .hub-module-copy {
    gap: 2px !important;
  }

  .hub-module-copy strong,
  .hub-module-grid.is-count-1 .hub-module-copy strong {
    overflow: hidden;
    font-size: 1rem !important;
    line-height: 1.05 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hub-module-copy span {
    overflow: hidden;
    font-size: 0.64rem !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hub-module-arrow {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
  }
}

/* 2027 Command Hub: selectable live map or branded command background. */
.command-art-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(3, 24, 31, 0.2), transparent 46%, rgba(2, 18, 25, 0.08)),
    url("assets/hub-command-background-v1.png") center center / cover no-repeat;
  transform: scale(1.015);
  transition: opacity 360ms ease, transform 700ms ease;
}

.dispatch-backdrop {
  transition: opacity 360ms ease, visibility 360ms ease;
}

body.hub-view-background .command-art-backdrop {
  opacity: 1;
  transform: scale(1);
}

body.hub-view-background .dispatch-backdrop {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

body.hub-view-map .command-art-backdrop {
  opacity: 0;
}

/* One calm command rail keeps the map/background visible and the work legible. */
.page-surface {
  padding-top: clamp(22px, 4vh, 48px) !important;
  padding-bottom: 148px !important;
}

.hub-stage {
  width: min(560px, calc(100vw - 32px)) !important;
  margin: 0 auto 0 0 !important;
}

.hub-shell {
  width: 100%;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "screenhead"
    "briefing"
    "workspace" !important;
  gap: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 26px;
  background: rgba(241, 250, 248, 0.82);
  box-shadow: 0 28px 72px rgba(2, 22, 29, 0.28);
  backdrop-filter: blur(22px) saturate(1.08);
}

.hub-screen-head {
  min-height: 62px;
  padding: 15px 20px !important;
  border-bottom: 1px solid rgba(8, 54, 59, 0.1);
}

.hub-screen-title strong {
  color: #08292d !important;
  font-size: 1.35rem !important;
  letter-spacing: -0.025em;
}

.hub-screen-mode {
  margin: 0 !important;
  padding: 7px 10px;
  border: 1px solid rgba(0, 143, 122, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #006f60;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-briefing {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(22px, 4vw, 34px) 20px 18px;
  border-bottom: 1px solid rgba(8, 54, 59, 0.1);
}

.hub-hello,
.hub-hello h2 {
  max-width: none !important;
}

.hub-hello-kicker {
  color: #008c78 !important;
  text-shadow: none !important;
}

.hub-hello h2 {
  margin-top: 6px !important;
  color: #071f23 !important;
  font-size: clamp(2.7rem, 5vw, 4.2rem) !important;
  line-height: 0.94 !important;
  text-shadow: none !important;
}

.hub-hello p {
  color: #42656a !important;
  text-shadow: none !important;
}

.hub-ops-grid {
  position: static !important;
  width: 100% !important;
  margin-top: 18px;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px !important;
  pointer-events: auto;
}

.hub-op-metric {
  width: 100% !important;
  min-height: 54px !important;
  max-width: none !important;
  padding: 9px 11px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.66) !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

.hub-op-metric em {
  display: none;
}

.hub-workspace {
  width: 100% !important;
  justify-self: stretch !important;
  padding: 18px 20px 22px !important;
}

.hub-workspace::before {
  content: "RECENT WORKSPACES";
  display: block;
  margin: 0 0 9px 3px;
  color: #527276;
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.11em;
}

.hub-module-grid {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  gap: 7px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.hub-module-row,
.hub-module-grid.is-sparse .hub-module-row,
.hub-module-grid.is-count-1 .hub-module-row {
  min-height: 66px !important;
  padding: 10px 11px !important;
  border: 1px solid rgba(8, 54, 59, 0.1) !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 7px 18px rgba(4, 31, 36, 0.06) !important;
  backdrop-filter: none !important;
}

/* Corner appearance menu. */
.background-tools {
  right: 14px !important;
  bottom: 14px !important;
  width: 92px !important;
  height: 44px !important;
}

.background-tools-toggle {
  right: 14px !important;
  bottom: 14px !important;
  width: auto !important;
  min-width: 92px;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border-color: rgba(8, 54, 59, 0.14) !important;
  background: rgba(244, 251, 249, 0.94) !important;
  color: #073d3d !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.02em;
}

.background-tools-toggle-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.background-tools-panel {
  right: 14px !important;
  bottom: 68px !important;
  width: min(304px, calc(100vw - 28px)) !important;
  max-height: min(560px, calc(100dvh - 92px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  gap: 11px !important;
  padding: 13px !important;
  border-color: rgba(8, 54, 59, 0.12) !important;
  border-radius: 20px !important;
  background: rgba(246, 252, 250, 0.97) !important;
  box-shadow: 0 28px 76px rgba(3, 25, 31, 0.28) !important;
}

.background-tools-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.background-tools-heading > div {
  display: grid;
  gap: 2px;
}

.background-tools-heading span,
.background-options-label,
.hub-view-picker legend {
  color: #008c78;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.background-tools-heading strong {
  color: #0a292d;
  font-size: 1.12rem;
}

.background-tools-heading button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(8, 54, 59, 0.12);
  border-radius: 10px;
  background: #fff;
  color: #173b3f;
  font-size: 1.2rem;
  cursor: pointer;
}

.hub-view-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.hub-view-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 7px;
}

.hub-view-choice {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid rgba(8, 54, 59, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.hub-view-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 143, 122, 0.3);
}

.hub-view-choice:has(input:checked) {
  border-color: rgba(0, 143, 122, 0.48);
  background: rgba(217, 248, 241, 0.76);
  box-shadow: inset 0 0 0 1px rgba(0, 143, 122, 0.08);
}

.hub-view-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hub-view-choice-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 143, 122, 0.1);
  color: #007464;
  font-size: 1rem;
}

.hub-view-choice > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.hub-view-choice strong {
  color: #092b2f;
  font-size: 0.82rem;
}

.hub-view-choice small {
  color: #668084;
  font-size: 0.67rem;
}

.background-options-group {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid rgba(8, 54, 59, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.54);
}

.background-options-label {
  margin-bottom: 4px;
}

.background-check {
  min-height: 35px !important;
  padding: 3px 2px;
}

.map-only-control[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .page-surface {
    padding: 16px 12px 126px !important;
  }

  .hub-stage {
    width: 100% !important;
  }

  .hub-shell {
    border-radius: 21px;
  }

  .hub-briefing {
    padding: 22px 16px 16px;
  }

  .hub-hello h2 {
    font-size: clamp(2.4rem, 12vw, 3.3rem) !important;
  }

  .hub-workspace {
    width: 100% !important;
    padding: 15px 16px 18px !important;
  }

  .hub-ops-grid {
    grid-template-columns: 1fr;
  }

  .command-art-backdrop {
    background-position: 68% center;
  }

  .background-tools {
    width: 44px !important;
  }

  .background-tools-toggle {
    min-width: 44px;
    width: 44px !important;
    padding: 0;
  }

  .background-tools-toggle > span:last-child {
    display: none;
  }

  .background-tools-panel {
    right: 10px !important;
    bottom: 64px !important;
    width: min(300px, calc(100vw - 20px)) !important;
    max-height: calc(100dvh - 78px) !important;
    padding: 12px !important;
    border-radius: 17px !important;
  }
}

/* Softer Hub: three light surfaces instead of one dominant card. */
.hub-stage {
  min-height: 0 !important;
  align-self: flex-start !important;
  display: block !important;
}

.hub-stage.hidden {
  display: none !important;
}

.hub-shell {
  min-height: 0 !important;
  overflow: visible !important;
  gap: 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.hub-screen-head,
.hub-briefing,
.hub-workspace {
  border: 1px solid rgba(226, 246, 241, 0.66) !important;
  background: rgba(235, 247, 244, 0.62) !important;
  box-shadow: 0 14px 38px rgba(2, 22, 29, 0.12) !important;
  backdrop-filter: blur(14px) saturate(1.04) !important;
}

.hub-screen-head {
  min-height: 54px;
  padding: 11px 16px !important;
  border-radius: 17px !important;
  animation: hubSoftReveal 420ms cubic-bezier(.2, .8, .2, 1) both;
}

.hub-briefing {
  padding: 24px 18px 16px !important;
  border-radius: 22px !important;
  animation: hubSoftReveal 470ms cubic-bezier(.2, .8, .2, 1) 55ms both;
}

.hub-hello h2 {
  font-size: clamp(2.55rem, 4.5vw, 3.75rem) !important;
  letter-spacing: -0.045em;
}

.hub-workspace {
  padding: 14px 16px 17px !important;
  border-radius: 21px !important;
  animation: hubSoftReveal 500ms cubic-bezier(.2, .8, .2, 1) 105ms both;
}

.hub-module-row,
.hub-module-grid.is-sparse .hub-module-row,
.hub-module-grid.is-count-1 .hub-module-row {
  background: rgba(255, 255, 255, 0.58) !important;
  box-shadow: 0 5px 14px rgba(4, 31, 36, 0.04) !important;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease, box-shadow 170ms ease !important;
}

.hub-module-row:hover,
.hub-module-row:focus-visible {
  transform: translateX(3px) !important;
}

.hub-op-metric {
  background: rgba(255, 255, 255, 0.54) !important;
}

/* Inline operational metrics replace duplicate floating notices. */
.hub-notice-stack {
  display: none !important;
}

@keyframes hubSoftReveal {
  from {
    opacity: 0;
    transform: translate3d(-10px, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-screen-head,
  .hub-briefing,
  .hub-workspace,
  .command-art-backdrop,
  .dispatch-backdrop {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 760px) {
  .hub-screen-head,
  .hub-briefing,
  .hub-workspace {
    background: rgba(239, 249, 247, 0.76) !important;
  }

  .hub-hello h2 {
    font-size: clamp(2.3rem, 11vw, 3.1rem) !important;
  }
}

/* Background mode borrows the command image palette; Map stays soft green. */
body.hub-view-background .hub-screen-head,
body.hub-view-background .hub-briefing,
body.hub-view-background .hub-workspace {
  border-color: rgba(99, 218, 222, 0.17) !important;
  background: rgba(5, 31, 41, 0.72) !important;
  box-shadow: 0 18px 48px rgba(1, 12, 20, 0.3) !important;
  backdrop-filter: blur(16px) saturate(1.08) !important;
}

body.hub-view-background .hub-screen-title strong,
body.hub-view-background .hub-hello h2,
body.hub-view-background .hub-module-copy strong,
body.hub-view-background .hub-op-metric strong {
  color: #f3fbfb !important;
}

body.hub-view-background .hub-screen-mode {
  border-color: rgba(55, 211, 218, 0.26);
  background: rgba(25, 137, 151, 0.18);
  color: #76e5e1;
}

body.hub-view-background .hub-hello-kicker,
body.hub-view-background .hub-workspace::before,
body.hub-view-background .hub-op-metric span {
  color: #6ee0dc !important;
}

body.hub-view-background .hub-hello p,
body.hub-view-background .hub-module-copy span,
body.hub-view-background .hub-op-metric em {
  color: rgba(219, 239, 240, 0.72) !important;
}

body.hub-view-background .hub-module-row,
body.hub-view-background .hub-module-grid.is-sparse .hub-module-row,
body.hub-view-background .hub-module-grid.is-count-1 .hub-module-row,
body.hub-view-background .hub-op-metric {
  border-color: rgba(103, 214, 218, 0.14) !important;
  background: rgba(10, 48, 58, 0.7) !important;
  box-shadow: 0 7px 20px rgba(0, 12, 20, 0.16) !important;
}

body.hub-view-background .hub-module-row:hover,
body.hub-view-background .hub-module-row:focus-visible {
  border-color: rgba(81, 224, 218, 0.36) !important;
  background: rgba(13, 65, 73, 0.9) !important;
}

body.hub-view-background .hub-module-icon {
  border-color: rgba(79, 218, 215, 0.16) !important;
  background: rgba(44, 180, 181, 0.16) !important;
  color: #82e9e2 !important;
}

body.hub-view-background .hub-module-arrow {
  border-color: rgba(239, 177, 78, 0.2) !important;
  background: rgba(233, 164, 57, 0.1) !important;
  color: #f2bd68 !important;
}

body.hub-view-background .hub-op-metric.is-callouts,
body.hub-view-background .hub-op-metric.is-writeup-requests {
  border-left-color: #e6a544 !important;
}

@media (max-width: 760px) {
  body.hub-view-background .hub-screen-head,
  body.hub-view-background .hub-briefing,
  body.hub-view-background .hub-workspace {
    background: rgba(5, 31, 41, 0.82) !important;
  }
}

/* Final Hub balance: compact briefing and lighter recent-workspace list. */
.hub-stage {
  width: min(530px, calc(100vw - 32px)) !important;
}

.hub-shell {
  gap: 8px !important;
}

.hub-screen-head {
  min-height: 50px !important;
  padding: 9px 15px !important;
  border-radius: 15px !important;
}

.hub-screen-title strong {
  font-size: 1.16rem !important;
}

.hub-screen-mode {
  padding: 6px 10px !important;
  font-size: 0.61rem !important;
}

.hub-briefing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 18px 17px 15px !important;
  border-radius: 19px !important;
}

.hub-briefing::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 210px;
  height: 210px;
  right: -100px;
  top: -112px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 213, 210, 0.09), transparent 68%);
  pointer-events: none;
}

.hub-hello-kicker {
  font-size: 0.62rem !important;
  letter-spacing: 0.09em !important;
}

.hub-hello h2 {
  max-width: 9.5ch !important;
  margin-top: 7px !important;
  font-size: clamp(2.45rem, 4.15vw, 3.28rem) !important;
  line-height: 0.94 !important;
}

.hub-ops-grid {
  margin-top: 15px !important;
  gap: 7px !important;
}

.hub-op-metric {
  min-height: 47px !important;
  padding: 8px 10px !important;
  border-radius: 12px !important;
}

.hub-workspace {
  padding: 13px 14px 15px !important;
  border-radius: 19px !important;
}

.hub-workspace::before {
  margin: 0 0 8px 2px !important;
  font-size: 0.59rem !important;
  letter-spacing: 0.12em !important;
}

.hub-module-grid {
  gap: 6px !important;
}

.hub-module-row,
.hub-module-grid.is-sparse .hub-module-row,
.hub-module-grid.is-count-1 .hub-module-row {
  min-height: 57px !important;
  grid-template-columns: 38px minmax(0, 1fr) 32px !important;
  gap: 10px !important;
  padding: 7px 8px 7px 9px !important;
  border-radius: 13px !important;
  box-shadow: none !important;
}

.hub-module-icon,
.hub-module-grid.is-count-1 .hub-module-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 11px !important;
  font-size: 0.8rem !important;
}

.hub-module-copy {
  gap: 2px !important;
}

.hub-module-copy strong,
.hub-module-grid.is-count-1 .hub-module-copy strong {
  font-size: 1.02rem !important;
  letter-spacing: -0.015em;
}

.hub-module-copy span {
  font-size: 0.62rem !important;
  letter-spacing: 0.025em;
}

.hub-module-arrow {
  width: 30px !important;
  height: 30px !important;
  display: grid !important;
  place-items: center;
  border-radius: 999px !important;
  font-size: 1.12rem !important;
}

body.hub-view-background .hub-screen-head,
body.hub-view-background .hub-briefing,
body.hub-view-background .hub-workspace {
  background: linear-gradient(145deg, rgba(5, 31, 41, 0.76), rgba(5, 35, 44, 0.66)) !important;
  box-shadow: 0 14px 36px rgba(1, 12, 20, 0.24) !important;
}

body.hub-view-background .hub-module-row,
body.hub-view-background .hub-module-grid.is-sparse .hub-module-row,
body.hub-view-background .hub-module-grid.is-count-1 .hub-module-row {
  background: rgba(12, 52, 62, 0.58) !important;
}

body.hub-view-background .hub-module-arrow {
  border-color: rgba(240, 181, 83, 0.22) !important;
  background: rgba(233, 164, 57, 0.09) !important;
}

@media (max-width: 760px) {
  .hub-stage {
    width: 100% !important;
  }

  .hub-hello h2 {
    font-size: clamp(2.35rem, 11vw, 3rem) !important;
  }

  .hub-module-copy strong,
  .hub-module-grid.is-count-1 .hub-module-copy strong {
    font-size: 0.98rem !important;
  }
}
