﻿@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #0b141c;
  --bg-2: #0e1c24;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text: rgba(245, 252, 255, 0.95);
  --muted: rgba(207, 223, 232, 0.72);
  --faint: rgba(207, 223, 232, 0.55);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(3, 10, 16, 0.55);
  --radius: 18px;

  --accent: #13e5c5;
  --accent-2: #2c82ff;
  --accent-3: #7ef1ff;
  --theme-radial-a: rgba(19, 229, 197, 0.2);
  --theme-radial-b: rgba(44, 130, 255, 0.18);
  --theme-body-start: #0a1117;
  --theme-body-mid: #0b141c;
  --theme-body-end: #0a1117;
  --portal-radial-a: rgba(19, 229, 197, 0.1);
  --portal-radial-b: rgba(44, 130, 255, 0.12);
  --portal-body-start: #091018;
  --portal-body-mid: #0a1218;
  --portal-body-end: #081018;
  --portal-header-bg: rgba(245, 249, 252, 0.92);
  --portal-header-border: rgba(12, 18, 24, 0.16);
  --portal-user-bg: rgba(255, 255, 255, 0.06);
  --portal-user-text: rgba(12, 18, 24, 0.9);
  --portal-user-role: rgba(12, 18, 24, 0.6);
  --portal-user-avatar-text: #071319;
  --portal-button-bg: rgba(12, 18, 24, 0.06);
  --portal-button-border: rgba(12, 18, 24, 0.18);
  --portal-button-text: rgba(12, 18, 24, 0.9);
  --portal-filter-bg: rgba(255, 255, 255, 0.04);
  --portal-card-bg: rgba(255, 255, 255, 0.05);
  --portal-panel-bg: rgba(255, 255, 255, 0.04);
  --portal-copilot-bg: #0d1720;
  --portal-modal-overlay: rgba(5, 8, 12, 0.75);
  --portal-modal-bg: #0c141c;
  --portal-modal-border: rgba(255, 255, 255, 0.1);
  --portal-modal-head-border: rgba(255, 255, 255, 0.08);
  --portal-modal-close-bg: rgba(255, 255, 255, 0.04);
  --portal-modal-close-border: rgba(255, 255, 255, 0.2);
  --portal-modal-table-head: rgba(12, 20, 28, 0.9);
  --portal-modal-row-hover: rgba(255, 255, 255, 0.03);

  --container: 1120px;
  --gutter: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, var(--theme-radial-a), transparent 55%),
    radial-gradient(900px 600px at 100% 0%, var(--theme-radial-b), transparent 55%),
    linear-gradient(180deg, var(--theme-body-start) 0%, var(--theme-body-mid) 50%, var(--theme-body-end) 100%);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:root[data-dashboard-theme="summer"],
body[data-dashboard-theme="summer"] {
  --theme-radial-a: rgba(255, 230, 94, 0.42);
  --theme-radial-b: rgba(255, 208, 76, 0.32);
  --theme-body-start: #5c4a08;
  --theme-body-mid: #9d8212;
  --theme-body-end: #4b3e08;
  --portal-radial-a: rgba(255, 238, 122, 0.18);
  --portal-radial-b: rgba(255, 215, 92, 0.14);
  --portal-body-start: #4d410d;
  --portal-body-mid: #6a5911;
  --portal-body-end: #43370c;
  --portal-modal-overlay: rgba(58, 44, 4, 0.72);
  --portal-modal-bg: #5d4a0c;
  --portal-modal-border: rgba(255, 237, 160, 0.2);
  --portal-modal-head-border: rgba(255, 237, 160, 0.16);
  --portal-modal-close-bg: rgba(255, 251, 228, 0.08);
  --portal-modal-close-border: rgba(255, 237, 160, 0.22);
  --portal-modal-table-head: rgba(101, 81, 14, 0.92);
  --portal-modal-row-hover: rgba(255, 237, 160, 0.06);
}

:root[data-dashboard-theme="autumn"],
body[data-dashboard-theme="autumn"] {
  --theme-radial-a: rgba(255, 173, 51, 0.38);
  --theme-radial-b: rgba(255, 106, 76, 0.28);
  --theme-body-start: #4f250e;
  --theme-body-mid: #8c3e17;
  --theme-body-end: #3d1d0d;
  --portal-radial-a: rgba(255, 196, 87, 0.16);
  --portal-radial-b: rgba(255, 120, 82, 0.16);
  --portal-body-start: #442015;
  --portal-body-mid: #5a2918;
  --portal-body-end: #38190f;
  --portal-modal-overlay: rgba(64, 25, 8, 0.72);
  --portal-modal-bg: #54250f;
  --portal-modal-border: rgba(255, 214, 148, 0.18);
  --portal-modal-head-border: rgba(255, 214, 148, 0.16);
  --portal-modal-close-bg: rgba(255, 245, 233, 0.08);
  --portal-modal-close-border: rgba(255, 214, 148, 0.22);
  --portal-modal-table-head: rgba(98, 42, 18, 0.92);
  --portal-modal-row-hover: rgba(255, 214, 148, 0.06);
}

:root[data-dashboard-theme="winter"],
body[data-dashboard-theme="winter"] {
  --theme-radial-a: rgba(160, 220, 255, 0.28);
  --theme-radial-b: rgba(116, 154, 255, 0.24);
  --theme-body-start: #091520;
  --theme-body-mid: #133149;
  --theme-body-end: #08111a;
  --portal-radial-a: rgba(196, 234, 255, 0.14);
  --portal-radial-b: rgba(129, 172, 255, 0.14);
  --portal-body-start: #0c1620;
  --portal-body-mid: #122434;
  --portal-body-end: #09111a;
  --portal-modal-overlay: rgba(7, 18, 30, 0.74);
  --portal-modal-bg: #102435;
  --portal-modal-border: rgba(173, 218, 255, 0.18);
  --portal-modal-head-border: rgba(173, 218, 255, 0.16);
  --portal-modal-close-bg: rgba(233, 246, 255, 0.08);
  --portal-modal-close-border: rgba(173, 218, 255, 0.22);
  --portal-modal-table-head: rgba(16, 36, 53, 0.94);
  --portal-modal-row-hover: rgba(173, 218, 255, 0.05);
}

body.modal-open {
  overflow: hidden;
}

  .portal-modal {
    position: fixed;
    inset: 0;
    background: var(--portal-modal-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
    transition: opacity 150ms ease;
  }

  .portal-modal[hidden] {
    opacity: 0;
    pointer-events: none;
  }

  .portal-modal .modal-dialog {
    width: min(1100px, 95vw);
    max-height: 90vh;
    background: var(--portal-modal-bg);
    border-radius: 18px;
    border: 1px solid var(--portal-modal-border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    padding: 20px;
  }

  .modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--portal-modal-head-border);
    padding-bottom: 12px;
    margin-bottom: 16px;
  }

  .modal-head h2 {
    margin: 0;
    font-size: 1.2rem;
  }

  .modal-close {
    border: 1px solid var(--portal-modal-close-border);
    background: var(--portal-modal-close-bg);
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
  }

  .modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .modal-body {
    overflow: auto;
    flex: 1;
  }

  .modal-empty {
    margin: 0;
    color: var(--muted);
    text-align: center;
  }

  .modal-toast {
    display: none;
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(19, 229, 197, 0.16);
    color: var(--text);
    font-size: 0.9rem;
  }

  .modal-toast.is-visible {
    display: block;
  }

  .modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
  }

  .modal-table thead {
    position: sticky;
    top: 0;
    background: var(--portal-modal-table-head);
    backdrop-filter: blur(6px);
  }

  .modal-table th,
  .modal-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
  }

  .modal-table tbody tr:hover {
    background: var(--portal-modal-row-hover);
  }

  .modal-table .action-cell {
    text-align: center;
    white-space: nowrap;
  }

  .modal-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted);
  }

  .modal-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
  }

  .modal-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(44, 130, 255, 0.45);
    background: linear-gradient(140deg, rgba(31, 186, 219, 0.32), rgba(44, 130, 255, 0.34));
    color: #eaf4ff;
    cursor: pointer;
    font-size: 1.18rem;
    box-shadow: 0 8px 18px rgba(12, 38, 84, 0.28);
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .modal-icon-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(53, 152, 255, 0.75);
    box-shadow: 0 10px 22px rgba(12, 38, 84, 0.36);
  }

  .modal-icon-btn:focus-visible {
    outline: 2px solid rgba(84, 186, 255, 0.75);
    outline-offset: 2px;
  }

  .dashboard-doc-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(173, 230, 255, 0.62);
    background:
      linear-gradient(to top, #35d99f 0 62%, transparent 62% 100%) 3px 11px / 3px 5px no-repeat,
      linear-gradient(to top, #ffb547 0 100%, transparent 100%) 8px 8px / 3px 8px no-repeat,
      linear-gradient(to top, #ff6a6a 0 100%, transparent 100%) 13px 5px / 3px 11px no-repeat,
      radial-gradient(circle at 78% 20%, rgba(105, 142, 255, 0.55), transparent 42%),
      linear-gradient(155deg, rgba(48, 118, 255, 0.5), rgba(41, 178, 241, 0.45) 52%, rgba(53, 104, 255, 0.35));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      0 0 0 1px rgba(61, 182, 255, 0.18);
  }

  .modal-search-row {
    margin: 0 0 12px;
  }

  .modal-search-form {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .modal-search-input {
    flex: 1 1 auto;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 0.92rem;
  }

  .panel-search-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }


a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.92;
}

.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  transform: translateY(-140%);
  z-index: 999;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(12, 18, 24, 0.08);
  background: rgba(245, 249, 252, 0.92);
  backdrop-filter: blur(12px);
}

.site-header[data-elevate="true"] {
  border-bottom-color: rgba(12, 18, 24, 0.16);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.2px;
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
}

.brand.small {
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
}

.brand-mark[data-variant='plain'] {
  border: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.brand-logo {
  height: var(--brand-logo-height, 26px);
  width: auto;
  display: block;
  filter: brightness(1.2) contrast(1.15) drop-shadow(0 12px 22px rgba(0, 0, 0, 0.35));
}

.brand-mark[data-variant='plain'] .brand-logo {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.brand-text {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 16px;
}

.nav-links a {
  color: rgba(20, 30, 38, 0.85);
  font-weight: 600;
  font-size: 0.98rem;
}

.header-login {
  position: relative;
}

.header-login summary {
  list-style: none;
  cursor: pointer;
  color: rgba(20, 30, 38, 0.85);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(12, 18, 24, 0.14);
  background: rgba(12, 18, 24, 0.04);
}

.header-login summary::-webkit-details-marker {
  display: none;
}

.header-login[open] summary {
  border-color: rgba(12, 18, 24, 0.24);
  background: rgba(12, 18, 24, 0.08);
}

.header-login-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(340px, calc(100vw - 32px));
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(12, 18, 24, 0.14);
  background: rgba(245, 249, 252, 0.98);
  box-shadow: 0 24px 60px rgba(8, 20, 34, 0.18);
  backdrop-filter: blur(12px);
  z-index: 30;
}

.header-login-form {
  gap: 10px;
}

.header-login-form input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(12, 18, 24, 0.16);
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  outline: none;
}

.header-login-form input::placeholder {
  color: rgba(15, 23, 42, 0.45);
}

.header-login-form input:focus {
  border-color: rgba(44, 130, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(44, 130, 255, 0.12);
}

.header-login .login-actions {
  display: grid;
  gap: 8px;
}

.header-login .login-link,
.header-login .login-status {
  color: rgba(20, 30, 38, 0.76);
}

.nav-links a:hover {
  color: rgba(12, 18, 24, 0.95);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(12, 18, 24, 0.2);
  color: rgba(12, 18, 24, 0.85);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}

.site-header .btn {
  color: rgba(12, 18, 24, 0.95);
  background: rgba(12, 18, 24, 0.08);
  border-color: rgba(12, 18, 24, 0.18);
}

.site-header .btn-primary {
  color: rgba(12, 18, 24, 0.95);
  background: linear-gradient(135deg, rgba(19, 229, 197, 0.45), rgba(44, 130, 255, 0.35));
  border-color: rgba(12, 18, 24, 0.2);
}

.site-header .btn:hover {
  border-color: rgba(12, 18, 24, 0.28);
}

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 999px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(19, 229, 197, 0.35), rgba(44, 130, 255, 0.35));
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost {
  background: transparent;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 32px 0 26px;
  background: linear-gradient(180deg, #081826 0%, #0b141c 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/assets/hero-city.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: saturate(0.9) contrast(1.05);
}

.hero-photo {
  position: absolute;
  inset: 0;
  opacity: 1;
}

.cutaway-section {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  margin-top: 18px;
}

.cutaway-frame {
  position: relative;
  width: min(820px, 100%);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 80px rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
  opacity: 0.95;
  filter: saturate(1.02) contrast(1.03);
}

.cutaway-img {
  width: 100%;
  height: auto;
  display: block;
}

.cutaway-overlay {
  position: absolute;
  inset: 0;
}
.wifi-marker {
  position: absolute;
  width: var(--size, 28px);
  height: var(--size, 28px);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: rgba(235, 244, 248, 0.9);
  background: rgba(9, 14, 19, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 6px rgba(19, 229, 197, 0.08), 0 12px 26px rgba(7, 12, 18, 0.45);
  transform: translate(-50%, -50%);
  animation: wifiBlink 1.15s ease-in-out infinite;
  animation-delay: var(--delay, 0ms);
}

.wifi-marker svg {
  width: 18px;
  height: 18px;
}

.wifi-marker path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.wifi-marker::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 1px solid rgba(19, 229, 197, 0.22);
  opacity: 0.0;
  animation: wifiRing 1.15s ease-in-out infinite;
  animation-delay: var(--delay, 0ms);
}

.circle-glow {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size, 118px);
  height: var(--size, 118px);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(255, 92, 92, 0.32) 0%,
    rgba(255, 92, 92, 0.16) 26%,
    rgba(255, 92, 92, 0) 66%
  );
  mix-blend-mode: screen;
  opacity: 0.7;
  animation: circleGlow 1.15s ease-in-out infinite;
  animation-delay: var(--delay, 0ms);
}

.circle-warning {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size, 40px);
  height: var(--size, 40px);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: rgba(255, 92, 92, 0.95);
  filter:
    drop-shadow(0 0 10px rgba(255, 92, 92, 0.22))
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.12));
  animation: xFlash 900ms ease-in-out infinite;
  animation-delay: var(--delay, 0ms);
}

.circle-warning svg {
  width: 100%;
  height: 100%;
}

.circle-warning path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.circle-warning circle {
  fill: currentColor;
  stroke: none;
}

.pipe-flow {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  height: calc(var(--h) * 1%);
  transform: translate(-50%, -50%) rotate(calc(var(--angle) * 1deg));
  transform-origin: 50% 50%;
  opacity: 0.9;
}

.pipe-flow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 92, 92, 0.18);
}

.pipe-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 92, 92, 0) 0px,
    rgba(255, 92, 92, 0) 6px,
    rgba(255, 92, 92, 0.95) 10px,
    rgba(255, 92, 92, 0) 16px
  );
  background-size: 100% 22px;
  animation: pipeFlow var(--speed, 900ms) linear infinite;
  filter: drop-shadow(0 0 4px rgba(255, 92, 92, 0.25));
}

@keyframes wifiBlink {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.98);
  }
  45% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.0);
  }
}

@keyframes wifiRing {
  0%,
  100% {
    opacity: 0.0;
    transform: scale(0.9);
  }
  55% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

@keyframes pipeFlow {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 22px;
  }
}

@keyframes circleGlow {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.98);
  }
  45% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.03);
  }
}

@keyframes xFlash {
  0%,
  100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(0.92);
  }
  40% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.02);
  }
}

@keyframes solution-panel-pulse {
  0%,
  100% {
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 26px 60px rgba(3, 10, 16, 0.42), inset 0 0 0 1px rgba(126, 241, 255, 0.08);
  }
  24%,
  44% {
    transform: scale(1.018);
    border-color: rgba(112, 195, 255, 0.62);
    box-shadow: 0 32px 72px rgba(3, 10, 16, 0.5), inset 0 0 0 2px rgba(112, 195, 255, 0.22);
  }
  60% {
    transform: scale(1.008);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 28px 64px rgba(3, 10, 16, 0.46), inset 0 0 0 1px rgba(126, 241, 255, 0.12);
  }
}

@keyframes solution-panel-sheen {
  0%,
  100% {
    opacity: 0.24;
    background: linear-gradient(135deg, rgba(44, 130, 255, 0.08), rgba(19, 229, 197, 0.04) 42%, transparent 72%);
  }
  24%,
  44% {
    opacity: 0.62;
    background: linear-gradient(135deg, rgba(44, 130, 255, 0.2), rgba(19, 229, 197, 0.12) 42%, transparent 74%);
  }
  60% {
    opacity: 0.36;
    background: linear-gradient(135deg, rgba(44, 130, 255, 0.12), rgba(19, 229, 197, 0.06) 42%, transparent 72%);
  }
}

@keyframes heroSolutionsPulse {
  0% {
    left: -16%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  50% {
    left: 46%;
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    left: 104%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wifi-marker,
  .wifi-marker::after,
  .pipe-flow::after,
  .circle-glow,
  .circle-warning,
  .solution-panel-preview,
  .solution-panel-stack,
  .solution-panel-preview::before,
  .solution-panel-stack::before,
  .hero-solutions-pulse-line::after {
    animation: none !important;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(9, 14, 19, 0.85) 0%, rgba(9, 14, 19, 0.55) 55%, rgba(9, 14, 19, 0.15) 100%);
}

.orb {
  position: absolute;
  filter: blur(28px);
  opacity: 0.85;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 520px;
  height: 520px;
  left: -220px;
  top: -140px;
  background: radial-gradient(circle at 30% 30%, rgba(19, 229, 197, 0.55), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(44, 130, 255, 0.35), transparent 60%);
}

.orb-2 {
  width: 520px;
  height: 520px;
  right: -220px;
  top: -140px;
  background: radial-gradient(circle at 30% 30%, rgba(44, 130, 255, 0.55), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(19, 229, 197, 0.35), transparent 60%);
}

.gridlines {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(closest-side at 50% 0%, black, transparent);
}

.map-glow {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(126, 241, 255, 0.2), transparent 70%);
  opacity: 0.7;
}

.hero-inner {
  position: relative;
  display: grid;
  align-items: stretch;
  gap: 28px;
  grid-template-columns: 1.2fr 1fr;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-copy .lede {
  flex: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 580;
  color: rgba(235, 244, 248, 0.86);
  text-shadow: 0 8px 18px rgba(7, 12, 18, 0.35);
}

.hero-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0 12px;
  border-radius: 50%;
  background: rgba(19, 229, 197, 0.25);
  color: rgba(19, 229, 197, 0.95);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(7, 12, 18, 0.25);
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

.lede p {
  margin: 0 0 10px;
}

.hero .lede p {
  margin: 0 0 16px;
}

.hero-bullets {
  margin: 0 0 24px;
  padding-left: 24px;
  color: rgba(235, 244, 248, 0.85);
  font-weight: 500;
  font-size: 0.9rem;
  list-style: none;
}

.hero-bullets li {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-bullets li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 50%, rgba(19, 229, 197, 0.95) 0 2px, rgba(19, 229, 197, 0) 3px),
    linear-gradient(135deg, rgba(19, 229, 197, 0.18), rgba(44, 130, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 18px rgba(7, 12, 18, 0.25);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.metric {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 14px 14px;
}

.metric-value {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.metric-label {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-note {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  max-width: 44ch;
}

.hero-reference-wrap {
  position: relative;
}

.overview-drain-full {
  margin-bottom: 28px;
  scroll-margin-top: 110px;
}

.hero-dual-solutions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.hero-solutions-heading {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  display: grid;
  gap: 14px;
}

.hero-solutions-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(179, 224, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-solutions-kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, rgba(126, 241, 255, 0.96), rgba(44, 130, 255, 0.12));
}

.hero-solutions-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3.3vw, 2.65rem);
  line-height: 0.98;
  color: var(--accent-2);
  text-shadow: 0 14px 30px rgba(44, 130, 255, 0.2);
}

.hero-solutions-intro {
  margin: 0;
  max-width: 42rem;
  color: rgba(226, 241, 250, 0.9);
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.65;
}

.hero-solutions-pulse {
  position: relative;
  height: 18px;
  overflow: hidden;
}

.hero-solutions-pulse-line {
  position: absolute;
  inset: 8px 0 auto;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(126, 241, 255, 0.12), rgba(44, 130, 255, 0.55), rgba(126, 241, 255, 0.12));
}

.hero-solutions-pulse-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -16%;
  width: 18%;
  height: 8px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(126, 241, 255, 0), rgba(126, 241, 255, 0.95), rgba(44, 130, 255, 0));
  box-shadow: 0 0 22px rgba(126, 241, 255, 0.45);
  animation: heroSolutionsPulse 5.6s ease-in-out infinite;
}

.hero-solutions-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-stat-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(126, 241, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(12, 26, 38, 0.82), rgba(9, 17, 27, 0.86)),
    radial-gradient(circle at top right, rgba(44, 130, 255, 0.18), transparent 48%);
  box-shadow: 0 18px 38px rgba(2, 8, 14, 0.26);
}

.hero-stat-label {
  color: rgba(190, 214, 227, 0.82);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 2.1vw, 1.9rem);
  line-height: 1;
  color: rgba(247, 252, 255, 0.98);
}

.hero-stat-note {
  color: rgba(197, 217, 228, 0.72);
  font-size: 0.82rem;
  line-height: 1.45;
}

.solution-panel-title-wrap {
  display: grid;
  gap: 10px;
}

.solution-panel-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(126, 241, 255, 0.22);
  background: rgba(7, 18, 28, 0.62);
  color: rgba(212, 244, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.solution-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(8, 20, 32, 0.9), rgba(7, 16, 26, 0.86));
  box-shadow: 0 26px 60px rgba(3, 10, 16, 0.42), inset 0 0 0 1px rgba(126, 241, 255, 0.08);
  overflow: hidden;
  transform-origin: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.solution-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(44, 130, 255, 0.14), rgba(19, 229, 197, 0.05) 42%, transparent 72%);
  opacity: 0.32;
  pointer-events: none;
}

.solution-panel-hitarea {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  cursor: pointer;
}

.solution-panel-hitarea:focus-visible {
  outline: 2px solid rgba(112, 195, 255, 0.9);
  outline-offset: -2px;
}

.solution-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(112, 195, 255, 0.56);
  box-shadow: 0 32px 74px rgba(3, 10, 16, 0.52), 0 0 0 2px rgba(112, 195, 255, 0.22) inset;
}

.solution-panel-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.solution-panel-preview {
  padding: 14px;
  animation: solution-panel-pulse 7s ease-in-out infinite !important;
}

.solution-panel-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  min-height: calc(1.12em * 2);
  display: flex;
  align-items: flex-end;
  max-width: 15ch;
}

.solution-panel-select {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(126, 241, 255, 0.34);
  background: linear-gradient(135deg, rgba(19, 229, 197, 0.18), rgba(44, 130, 255, 0.14));
  color: rgba(245, 252, 255, 0.96);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(8, 20, 32, 0.34);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.solution-panel:hover .solution-panel-select {
  transform: translateY(-1px);
  border-color: rgba(126, 241, 255, 0.55);
  background: linear-gradient(135deg, rgba(19, 229, 197, 0.26), rgba(44, 130, 255, 0.26));
}

.solution-preview-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #08111a;
}

.solution-preview-scale {
  position: absolute;
  inset: 0;
  width: 200%;
  transform: scale(0.5);
  transform-origin: top left;
}

.solution-panel-preview .hero-reference-card {
  margin: 0;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.solution-panel-preview .hero-reference-copy {
  gap: 8px;
  padding: 4.2% 0 3% 4.9%;
}

.solution-panel-preview .hero-reference-features {
  margin-top: 0;
  gap: 10px;
}

.solution-panel-preview .hero-reference-benefits {
  margin-top: -52px;
  align-self: start;
}

.solution-panel-stack {
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 12px;
  animation: solution-panel-pulse 7s ease-in-out infinite 3.5s !important;
}

.solution-panel-preview::before {
  animation: solution-panel-sheen 7s ease-in-out infinite !important;
}

.solution-panel-stack::before {
  animation: solution-panel-sheen 7s ease-in-out infinite 3.5s !important;
}

.stack-mini-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border: 1px solid rgba(111, 174, 255, 0.24);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(6, 18, 29, 0.52);
}

.stack-mini-scale {
  position: absolute;
  inset: 0;
  width: 156.25%;
  transform: scale(0.64);
  transform-origin: top left;
  padding: 12px;
  display: grid;
  gap: 14px;
}

.stack-mini-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

.stack-mini-cutaway {
  margin: 0;
  border: 1px solid rgba(111, 174, 255, 0.24);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(6, 18, 29, 0.75);
}

.stack-mini-cutaway img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transform: scale(1.05);
  transform-origin: center;
}

.stack-mini-steps {
  margin: 0;
  display: grid;
  gap: 14px;
}

.stack-mini-step {
  border: 1px solid rgba(111, 174, 255, 0.24);
  border-radius: 14px;
  background: rgba(7, 20, 33, 0.62);
  padding: 16px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.stack-solution-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(111, 174, 255, 0.45);
  background: linear-gradient(180deg, rgba(40, 132, 255, 0.3), rgba(20, 99, 212, 0.2));
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #dff2ff;
}

.stack-mini-step h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.2;
}

.stack-mini-step p {
  margin: 6px 0 0;
  color: rgba(226, 237, 246, 0.86);
  line-height: 1.45;
  font-size: 1.06rem;
}

.hero-reference-card {
  position: relative;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.35);
  background: #08111a;
}

.hero-reference-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-reference-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5, 24, 38, 1) 0%,
      rgba(5, 24, 38, 0.995) 26%,
      rgba(5, 24, 38, 0.98) 42%,
      rgba(5, 24, 38, 0.88) 55%,
      rgba(5, 24, 38, 0.52) 64%,
      rgba(5, 24, 38, 0.16) 72%,
      rgba(5, 24, 38, 0) 79%
    ),
    linear-gradient(
      180deg,
      rgba(5, 24, 38, 0.12) 0%,
      rgba(5, 24, 38, 0.08) 40%,
      rgba(5, 24, 38, 0.22) 100%
    );
  pointer-events: none;
}

.hero-reference-copy {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  width: 47%;
  padding: 5.2% 0 4.4% 4.9%;
  margin: 0;
  color: #ffffff;
  gap: 14px;
  z-index: 2;
}

.hero-reference-heading h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.82rem, 3.45vw, 3.02rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 700;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.hero-reference-accent {
  margin: 10px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.02rem, 2.05vw, 1.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #58afff;
  font-weight: 500;
}

.hero-reference-summary {
  margin: 14px 0 0;
  max-width: 28ch;
  font-size: clamp(0.82rem, 1.08vw, 1rem);
  line-height: 1.36;
  color: rgba(235, 244, 248, 0.9);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.hero-reference-features {
  align-self: start;
  display: grid;
  gap: 12px;
  width: min(430px, 100%);
  margin-top: 4px;
}

.hero-reference-feature {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.hero-reference-feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(115, 170, 245, 0.34);
  background: linear-gradient(180deg, rgba(15, 36, 59, 0.9) 0%, rgba(8, 24, 42, 0.84) 100%);
  color: #f8fbff;
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 18px 38px rgba(0, 0, 0, 0.22);
}

.hero-reference-feature-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #f4f9ff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-reference-feature h2 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #ffffff;
  font-weight: 800;
}

.hero-reference-feature p {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: rgba(235, 244, 248, 0.84);
}

.hero-reference-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(610px, 100%);
}

.hero-reference-benefit {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 8px 14px 0;
  border-right: 1px solid rgba(114, 161, 206, 0.24);
  text-align: center;
}

.hero-reference-benefit:last-child {
  border-right: 0;
}

.hero-reference-benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(114, 161, 206, 0.34);
  color: #67bcff;
  background: rgba(11, 30, 46, 0.52);
  font-size: 0.98rem;
  font-weight: 800;
}

.hero-reference-benefit-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-reference-benefit-icon-green {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(22, 58, 37, 0.58);
}

.hero-reference-benefit-icon-green svg {
  stroke: #4ade80;
}

.hero-reference-benefit-icon-amber {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(69, 52, 17, 0.58);
}

.hero-reference-benefit-icon-amber svg {
  stroke: #fbbf24;
}

.hero-reference-benefit-icon-red {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(74, 23, 23, 0.58);
}

.hero-reference-benefit-icon-red svg {
  stroke: #f87171;
}

.hero-reference-benefit strong {
  display: block;
  max-width: 170px;
  font-size: 0.86rem;
  line-height: 1.25;
  text-transform: uppercase;
  color: #ffffff;
}

.hero-product-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.82fr;
  gap: 28px;
  align-items: start;
}

.hero-main {
  display: grid;
  gap: 22px;
  padding-top: 8px;
}

.hero-product-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.hero-accent {
  margin: 12px 0 0;
  font-size: clamp(1.65rem, 3.2vw, 2.75rem);
  line-height: 1.05;
  color: #58afff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero-summary {
  margin: 24px 0 0;
  max-width: 24ch;
  font-size: clamp(1.08rem, 1.8vw, 1.45rem);
  line-height: 1.45;
  color: rgba(235, 244, 248, 0.88);
}

.hero-feature-list {
  display: grid;
  gap: 18px;
  max-width: 460px;
}

.hero-feature-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.hero-feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(112, 174, 255, 0.3);
  background: linear-gradient(180deg, rgba(13, 31, 52, 0.92) 0%, rgba(10, 22, 36, 0.76) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 40px rgba(0, 0, 0, 0.22);
  font-size: 1.5rem;
  font-weight: 800;
  color: #f2f7ff;
}

.hero-feature-card h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
}

.hero-feature-card p {
  margin: 4px 0 0;
  font-size: 0.98rem;
  color: rgba(235, 244, 248, 0.82);
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(640px, 100%);
  margin-top: 6px;
}

.hero-benefit {
  padding: 18px 18px 8px;
  border-right: 1px solid rgba(112, 174, 255, 0.22);
}

.hero-benefit:last-child {
  border-right: 0;
}

.hero-benefit strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
  text-transform: uppercase;
  color: #ffffff;
}

.hero-side {
  display: flex;
  justify-content: flex-end;
}

.hero-login-shell {
  width: min(420px, 100%);
  margin: 0;
  background: rgba(8, 14, 20, 0.72);
  backdrop-filter: blur(14px);
}

.hero-lower {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: end;
  margin-top: 18px;
}

.hero-device-panel {
  position: relative;
}

.hero-device-frame {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(7, 16, 26, 0.22), rgba(7, 16, 26, 0.04));
}

.hero-device-image {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(1.04) contrast(1.03) brightness(1.02);
}

.hero-device-label {
  position: absolute;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
}

.hero-device-label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 88px;
  height: 2px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-device-label-camera {
  left: 66%;
  top: 34%;
}

.hero-device-label-camera::after {
  left: calc(100% + 12px);
}

.hero-device-label-acoustic {
  left: 65%;
  top: 48%;
}

.hero-device-label-acoustic::after {
  left: calc(100% + 12px);
}

.hero-device-label-sonar {
  left: 64%;
  top: 63%;
}

.hero-device-label-sonar::after {
  left: calc(100% + 12px);
}

.hero-map-shell {
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 26px 70px rgba(2, 10, 18, 0.4);
  overflow: hidden;
}

.hero-map-shell .board-cards {
  padding-bottom: 18px;
}

.hero-board {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.board-header {
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--border);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.05);
}

.board-title {
  margin-top: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-family: "Space Grotesk", sans-serif;
}

.board-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.98rem;
}

.board-map {
  position: relative;
  height: 290px;
  margin: 8px 18px 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a141b;
  overflow: hidden;
}

.map-live {
  position: absolute;
  inset: 0;
  z-index: 7;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  background: #f8fbff;
}

.map-live-canvas {
  width: 100%;
  height: 100%;
}

.map-live-canvas[hidden] {
  display: none;
}

.map-live-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(4, 33, 63, 0.08);
  border-radius: 12px;
  padding: 12px 18px;
  text-align: center;
  font-size: 0.9rem;
  color: #214260;
  max-width: 220px;
  line-height: 1.35;
  box-shadow: 0 8px 18px rgba(3, 26, 50, 0.08);
}

.portal-map.is-live .map-live {
  opacity: 1;
  pointer-events: auto;
}

.portal-map.is-live .map-zoom-layer,
.portal-map.is-live .map-controls,
.portal-map.is-live::before,
.portal-map.is-live::after {
  opacity: 0;
  pointer-events: none;
}

.map-zoom-layer {
  position: absolute;
  inset: 0;
  transform-origin: center;
  transition: transform 120ms ease;
  pointer-events: none;
  z-index: 1;
}

.map-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 6px;
  z-index: 6;
  pointer-events: auto;
}

.map-zoom-readout {
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 14, 20, 0.7);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.map-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 14, 20, 0.7);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.map-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.map-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 8px;
}

.panel-head-map {
  align-items: center;
}

.panel-head-map .panel-actions {
  margin-left: auto;
}

.panel-head-map .predictive-toggle {
  margin: 0;
}

.coverage-map-frame {
  height: 455px;
  margin-top: 6px;
}

.predictive-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(126, 241, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(238, 247, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.predictive-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-2);
}

.predictive-view-shell {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.predictive-view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.predictive-view-head h3 {
  margin: 0 0 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.predictive-view-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.predictive-range {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.predictive-range-field {
  display: grid;
  gap: 6px;
  color: rgba(231, 241, 249, 0.82);
  font-size: 0.82rem;
  font-weight: 600;
}

.predictive-range-field input {
  min-width: 152px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.predictive-rule-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.predictive-rule {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  color: rgba(241, 248, 252, 0.92);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.predictive-rule input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--accent-2);
}

.predictive-rule small {
  grid-column: 2;
  display: block;
  margin-top: 4px;
  color: rgba(197, 212, 223, 0.64);
  font-weight: 500;
}

.predictive-rule-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.predictive-summary {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(126, 241, 255, 0.12);
  background: linear-gradient(135deg, rgba(44, 130, 255, 0.12), rgba(19, 229, 197, 0.08));
  color: rgba(236, 246, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 600;
}

.predictive-map {
  margin-top: 0;
  height: 420px;
  min-height: 420px;
}

.predictive-column-section {
  margin-top: 138px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.predictive-rail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.predictive-rail-head h4 {
  margin: 0 0 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.predictive-rail-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.predictive-export-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.predictive-list-shell {
  min-height: 0;
  max-height: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 241, 255, 0.55) rgba(255, 255, 255, 0.08);
}

.predictive-list-shell::-webkit-scrollbar {
  width: 10px;
}

.predictive-list-shell::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.predictive-list-shell::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(126, 241, 255, 0.72), rgba(44, 130, 255, 0.72));
  border-radius: 999px;
  border: 2px solid rgba(9, 16, 24, 0.24);
}

.predictive-list {
  display: grid;
  gap: 10px;
}

.predictive-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
}

.predictive-item[type="button"] {
  cursor: pointer;
}

.predictive-item[type="button"]:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 241, 255, 0.22);
  box-shadow: 0 12px 26px rgba(4, 12, 20, 0.2);
}

.predictive-item-critical {
  background: linear-gradient(135deg, rgba(255, 92, 92, 0.12), rgba(255, 255, 255, 0.04));
}

.predictive-item-watch {
  background: linear-gradient(135deg, rgba(255, 193, 87, 0.12), rgba(255, 255, 255, 0.04));
}

.predictive-item-empty {
  grid-template-columns: 1fr;
}

.predictive-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.predictive-item-sub,
.predictive-item-meta,
.predictive-item-reason {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.predictive-item-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.predictive-item-sub {
  margin-top: 3px;
}

.predictive-item-meta {
  margin-top: 4px;
  white-space: normal;
}

.board-map.is-panning {
  cursor: grabbing;
}

.board-map {
  cursor: grab;
}

.board-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.45;
  z-index: 2;
}

.board-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 18, 26, 0.4), rgba(10, 18, 26, 0.1));
  z-index: 1;
}

.map-tiles {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
  z-index: 0;
}

.map-tiles img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.15) contrast(1.05) brightness(1.18);
}

.map-dot {
  position: absolute;
  width: 18px;
  height: 24px;
  z-index: 3;
  transform: translate(-50%, -78%);
  filter: drop-shadow(0 8px 14px rgba(4, 10, 18, 0.3));
}

.map-dot::before {
  content: "";
  position: absolute;
  inset: 5px 2px 4px;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(17, 28, 40, 0.96) 0%, rgba(7, 16, 24, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.map-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 10px;
  height: 10px;
  background: inherit;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 6px 14px rgba(5, 10, 18, 0.2);
}

.map-dot.status-green,
.map-live-marker.status-green {
  --map-node-color: #18f3d2;
  --map-node-glow: rgba(24, 243, 210, 0.24);
  --map-marker-pulse: none;
}

.map-dot.status-amber,
.map-live-marker.status-amber {
  --map-node-color: #ffc157;
  --map-node-glow: rgba(255, 193, 87, 0.24);
  --map-marker-pulse: markerPulseSoft 3.6s ease-in-out infinite;
}

.map-dot.status-red,
.map-live-marker.status-red {
  --map-node-color: #ff5c5c;
  --map-node-glow: rgba(255, 92, 92, 0.24);
  --map-marker-pulse: markerPulseSoft 3.2s ease-in-out infinite;
}

.map-dot.status-green::after,
.map-dot.status-amber::after,
.map-dot.status-red::after {
  background: var(--map-node-color);
}

.map-dot.status-green::before,
.map-dot.status-amber::before,
.map-dot.status-red::before {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 6px var(--map-node-glow);
}

.map-dot .map-node-core,
.map-dot .map-node-antenna,
.map-dot .map-node-signal {
  display: none;
}

.map-dot.status-green,
.map-dot.status-amber,
.map-dot.status-red {
  background: transparent;
  animation: var(--map-marker-pulse);
}

.map-dot.status-green > *,
.map-dot.status-amber > *,
.map-dot.status-red > * {
  pointer-events: none;
}

.map-dot.status-green::before,
.map-dot.status-amber::before,
.map-dot.status-red::before {
  background:
    radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.94) 0 2px, transparent 2.2px),
    linear-gradient(180deg, rgba(10, 22, 33, 0.96) 0%, rgba(7, 16, 24, 0.94) 100%);
}

.map-dot.pos-1 { top: 78%; left: 22%; }
.map-dot.pos-2 { top: 76%; left: 26%; }
.map-dot.pos-3 { top: 80%; left: 28%; }
.map-dot.pos-4 { top: 82%; left: 20%; }
.map-dot.pos-5 { top: 84%; left: 24%; }
.map-dot.pos-6 { top: 82%; left: 30%; }
.map-dot.pos-7 { top: 74%; left: 22%; }
.map-dot.pos-8 { top: 78%; left: 26%; }
.map-dot.pos-9 { top: 76%; left: 30%; }
.map-dot.pos-10 { top: 72%; left: 24%; }
.map-dot.pos-11 { top: 86%; left: 26%; }
.map-dot.pos-12 { top: 84%; left: 28%; }
.map-dot.pos-13 { top: 76%; left: 20%; }
.map-dot.pos-14 { top: 86%; left: 22%; }
.map-dot.pos-15 { top: 72%; left: 30%; }
.map-dot.pos-16 { top: 86%; left: 30%; }
.map-dot.pos-17 { top: 74%; left: 26%; }
.map-dot.pos-18 { top: 72%; left: 28%; }
.map-dot.pos-19 { top: 84%; left: 22%; }
.map-dot.pos-20 { top: 78%; left: 20%; }
.map-dot.pos-21 { top: 78%; left: 30%; }
.map-dot.pos-22 { top: 88%; left: 24%; }
.map-dot.pos-23 { top: 30%; left: 72%; }
.map-dot.pos-24 { top: 28%; left: 76%; }
.map-dot.pos-25 { top: 32%; left: 78%; }
.map-dot.pos-26 { top: 26%; left: 70%; }
.map-dot.pos-27 { top: 30%; left: 80%; }
.map-dot.pos-28 { top: 28%; left: 82%; }
.map-dot.pos-29 { top: 30%; left: 68%; }
.map-dot.pos-30 { top: 34%; left: 72%; }
.map-dot.pos-31 { top: 36%; left: 76%; }
.map-dot.pos-32 { top: 26%; left: 74%; }
.map-dot.pos-33 { top: 32%; left: 70%; }
.map-dot.pos-34 { top: 34%; left: 80%; }
.map-dot.pos-35 { top: 32%; left: 82%; }
.map-dot.pos-36 { top: 34%; left: 68%; }
.map-dot.pos-37 { top: 24%; left: 72%; }
.map-dot.pos-38 { top: 24%; left: 76%; }
.map-dot.pos-39 { top: 38%; left: 78%; }
.map-dot.pos-40 { top: 26%; left: 80%; }
.map-dot.pos-41 { top: 36%; left: 82%; }
.map-dot.pos-42 { top: 28%; left: 68%; }
.map-dot.pos-43 { top: 38%; left: 70%; }
.map-dot.pos-44 { top: 36%; left: 72%; }
.map-dot.pos-45 { top: 32%; left: 76%; }
.map-dot.pos-46 { top: 40%; left: 80%; }
.map-dot.pos-47 { top: 42%; left: 74%; }
.map-dot.pos-48 { top: 40%; left: 70%; }
.map-dot.pos-49 { top: 44%; left: 78%; }
.map-dot.pos-50 { top: 44%; left: 72%; }
.map-dot.pos-51 { top: 40%; left: 76%; }
.map-dot.pos-52 { top: 42%; left: 82%; }
.map-dot.pos-53 { top: 20%; left: 74%; }
.map-dot.pos-54 { top: 22%; left: 78%; }

.map-live .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
  background: #eef5fb;
}

.map-live-marker-wrap {
  background: transparent;
  border: 0;
  cursor: pointer;
}

.map-live-marker {
  position: relative;
  display: block;
  width: 24px;
  height: 30px;
  filter: drop-shadow(0 8px 14px rgba(4, 10, 18, 0.32));
  animation: var(--map-marker-pulse);
  animation-delay: var(--marker-delay, 0ms);
}

.map-live-marker-predictive::before {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 8px color-mix(in srgb, var(--map-node-glow) 90%, transparent);
}

.map-live-marker-predictive::after {
  transform: translateX(-50%) scale(1.06);
}

.map-live-marker::before {
  content: "";
  position: absolute;
  inset: 7px 3px 4px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(10, 22, 33, 0.96) 0%, rgba(7, 16, 24, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 6px var(--map-node-glow);
}

.map-live-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 12px;
  height: 10px;
  background: var(--map-node-color);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  transform: translateX(-50%);
  border-radius: 2px;
}

.map-live-marker-antenna {
  position: absolute;
  left: 50%;
  top: 1px;
  width: 2px;
  height: 8px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  transform: translateX(-50%);
  z-index: 1;
}

.map-live-marker-core {
  position: absolute;
  left: 50%;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--map-node-color);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
  transform: translateX(-50%);
  z-index: 1;
}

.map-live-marker-signal {
  position: absolute;
  left: 50%;
  top: 3px;
  width: 14px;
  height: 8px;
  border-top: 1.4px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
  z-index: 1;
}

.map-live-marker-signal.signal-a {
  width: 12px;
  opacity: 0.92;
}

.map-live-marker-signal.signal-b {
  width: 18px;
  top: 0;
  opacity: 0.58;
}

.map-weather-card {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(173, 218, 255, 0.18);
  background: rgba(8, 16, 24, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(5, 12, 20, 0.26);
}

.map-weather-copy {
  display: grid;
  gap: 3px;
}

.map-weather-copy strong {
  font-size: 0.86rem;
}

.map-weather-copy span {
  color: var(--muted);
  font-size: 0.76rem;
}

.map-weather-cloud {
  position: relative;
  width: 48px;
  height: 34px;
}

.map-weather-cloud::before,
.map-weather-cloud::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, rgba(233, 244, 255, 0.98) 0%, rgba(184, 212, 240, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.map-weather-cloud::before {
  left: 6px;
  right: 6px;
  bottom: 12px;
  height: 16px;
  border-radius: 999px;
}

.map-weather-cloud::after {
  left: 14px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
}

.map-weather-drop {
  position: absolute;
  width: 3px;
  height: 10px;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(126, 241, 255, 0.18) 0%, rgba(126, 241, 255, 0.92) 100%);
  opacity: 0;
}

.map-weather-drop.drop-1 { left: 11px; animation: rainDropFall 1.45s linear infinite; }
.map-weather-drop.drop-2 { left: 20px; animation: rainDropFall 1.2s linear infinite 180ms; }
.map-weather-drop.drop-3 { left: 29px; animation: rainDropFall 1.35s linear infinite 80ms; }
.map-weather-drop.drop-4 { left: 37px; animation: rainDropFall 1.5s linear infinite 250ms; }

.map-weather-card:not(.is-raining) .map-weather-drop {
  animation-duration: 2.4s;
  opacity: 0.55;
}

.map-weather-card.is-raining .map-weather-drop {
  opacity: 0.95;
}

.board-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 18px 8px;
}

.mini-card {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.mini-title {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.mini-value {
  margin-top: 6px;
  font-weight: 800;
  font-size: 1.2rem;
}

.mini-warn .mini-value {
  color: #ffc157;
}

.mini-alert .mini-value {
  color: #ff5c5c;
}

.mini-sub {
  color: var(--faint);
  font-size: 0.85rem;
}

.board-login {
  margin: 8px 18px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 14, 20, 0.6);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  padding: 16px;
  display: grid;
  gap: 12px;
}

#partner-login {
  scroll-margin-top: 110px;
}

.login-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.login-title {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-family: "Space Grotesk", sans-serif;
}

.login-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.login-badge {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.05);
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-weight: 600;
  outline: none;
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.login-form input:focus {
  border-color: rgba(19, 229, 197, 0.45);
  box-shadow: 0 0 0 4px rgba(19, 229, 197, 0.14);
}

.login-actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.login-status {
  margin: 0;
  min-height: 1.2em;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.login-link {
  font-size: 0.9rem;
  text-align: center;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
}

.login-link:hover {
  text-decoration-color: rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.9);
}

.login-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  font-size: 0.85rem;
  color: var(--faint);
}

.section {
  padding: 74px 0;
}

.section-alt {
  background: radial-gradient(900px 520px at 50% 0%, rgba(255, 255, 255, 0.06), transparent 55%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.texture-section {
  position: relative;
  overflow: hidden;
}

.texture-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("public/assets/texture-manhole.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

.texture-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(9, 14, 19, 0.9), rgba(9, 14, 19, 0.5));
  z-index: 0;
}

.texture-section .container {
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 72ch;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  letter-spacing: -0.01em;
  font-family: "Space Grotesk", sans-serif;
}

.section-head p {
  margin: 0;
}

.cards {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 18px 18px;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.card h3 {
  margin: 12px 0 6px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  font-family: "Space Grotesk", sans-serif;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.steps {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

#solutions .solutions-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

#solutions .solutions-grid .cutaway-section {
  margin-top: 0;
  margin-bottom: 0;
}

#solutions .solutions-grid .steps {
  margin-top: 0;
  grid-template-columns: 1fr;
}

.step {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  padding: 18px 18px;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(19, 229, 197, 0.35), rgba(44, 130, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.step h3 {
  margin: 12px 0 6px;
  letter-spacing: -0.01em;
  font-family: "Space Grotesk", sans-serif;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.solution-visuals {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.solution-image {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.solution-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: rgba(6, 12, 18, 0.6);
}

.solution-image figcaption {
  padding: 10px 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.35);
}

.callout {
  margin-top: 18px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(19, 229, 197, 0.12), rgba(44, 130, 255, 0.12));
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.callout h3 {
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  font-family: "Space Grotesk", sans-serif;
}

.callout p {
  margin: 0;
}

.partner-splash {
  background: radial-gradient(900px 520px at 30% 0%, rgba(19, 229, 197, 0.12), transparent 55%);
}

.partner-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: stretch;
}

.partner-points {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.partner-point {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.partner-panel {
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 20, 28, 0.7);
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel-title {
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 10px;
}

.list {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
}

.list li {
  margin: 8px 0;
}


.waitlist {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  align-items: start;
}

.waitlist h2 {
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  font-family: "Space Grotesk", sans-serif;
}

.waitlist p {
  margin: 0;
}

.contact-meta {
  margin-top: 12px;
}

.contact-address {
  margin-top: 14px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.65;
}

.contact-link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
}

.contact-link:hover {
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.contact-page-main {
  min-height: calc(100vh - 190px);
}

.contact-hero {
  padding-top: clamp(96px, 13vw, 150px);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.contact-details-card,
.contact-intro-card {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(10, 20, 28, 0.72);
  box-shadow: var(--shadow);
}

.contact-intro-card h1 {
  margin: 8px 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.contact-intro-card p {
  max-width: 58ch;
}

.contact-details-card {
  display: grid;
  align-content: center;
  gap: 22px;
}

.contact-detail {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-detail:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-detail-label {
  display: block;
  margin-bottom: 7px;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-detail a,
.contact-detail address {
  color: var(--text);
  font-size: 1.05rem;
  font-style: normal;
  line-height: 1.65;
}

.contact-detail a {
  text-decoration: underline;
  text-decoration-color: rgba(19, 229, 197, 0.4);
  text-underline-offset: 4px;
}

@media (max-width: 780px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
}

.waitlist-form {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.waitlist-form input,
.waitlist-form textarea {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font-weight: 600;
  outline: none;
  resize: vertical;
}

.waitlist-form input::placeholder,
.waitlist-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.waitlist-form input:focus,
.waitlist-form textarea:focus {
  border-color: rgba(19, 229, 197, 0.45);
  box-shadow: 0 0 0 4px rgba(19, 229, 197, 0.14);
}

.form-hint {
  margin: 0;
  min-height: 1.2em;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-fineprint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--faint);
}

.site-footer {
  padding: 34px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-meta {
  text-align: right;
}

.portal-body {
  min-height: 100vh;
  background: radial-gradient(1200px 760px at 10% -10%, var(--portal-radial-a), transparent 55%),
    radial-gradient(900px 620px at 100% 0%, var(--portal-radial-b), transparent 55%),
    linear-gradient(180deg, var(--portal-body-start) 0%, var(--portal-body-mid) 55%, var(--portal-body-end) 100%);
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--portal-header-bg);
  border-bottom: 1px solid var(--portal-header-border);
  backdrop-filter: blur(14px);
}

.portal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.portal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--portal-user-bg);
  color: var(--portal-user-text);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 78%, white 22%), color-mix(in srgb, var(--accent-2) 78%, white 22%));
  color: var(--portal-user-avatar-text);
}

.user-name {
  font-weight: 600;
}

.user-role {
  color: var(--portal-user-role);
  font-size: 0.85rem;
}

.portal-header .btn {
  color: var(--portal-button-text);
  border-color: var(--portal-button-border);
  background: var(--portal-button-bg);
}

.portal-header .btn:hover {
  border-color: rgba(12, 18, 24, 0.28);
}

.portal-main {
  padding: 40px 0 80px;
}

@keyframes dashboardPulseSoft {
  0%,
  100% {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
  }
  50% {
    box-shadow: 0 22px 42px rgba(16, 37, 64, 0.34);
  }
}

@keyframes dashboardValuePop {
  0% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-2px) scale(1.04);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes kpiSignalWave {
  0%,
  100% {
    background: rgba(126, 241, 255, 0.24);
    box-shadow: 0 0 0 rgba(126, 241, 255, 0);
    opacity: 0.45;
  }
  50% {
    background: rgba(126, 241, 255, 0.98);
    box-shadow: 0 0 14px rgba(126, 241, 255, 0.42);
    opacity: 1;
  }
}

@keyframes kpiSignalDotPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(126, 241, 255, 0.12);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 6px rgba(126, 241, 255, 0.08);
  }
}

@keyframes alertCriticalPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 92, 92, 0.18);
    border-color: rgba(255, 120, 120, 0.22);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 92, 92, 0.05);
    border-color: rgba(255, 120, 120, 0.38);
  }
}

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

@keyframes territoryTankFill {
  from {
    height: 0;
  }
  to {
    height: var(--node-fill);
  }
}

@keyframes territorySweep {
  0% {
    transform: translateX(-135%);
  }
  100% {
    transform: translateX(135%);
  }
}

@keyframes territorySheen {
  0%,
  18% {
    transform: translateX(-130%);
  }
  38%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes rainDropFall {
  0% {
    opacity: 0;
    transform: translateY(-2px) scaleY(0.7);
  }
  20% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(18px) scaleY(1.05);
  }
}

@keyframes markerPulseSoft {
  0%,
  100% {
    transform: translateZ(0) scale(1);
  }
  50% {
    transform: translateZ(0) scale(1.06);
  }
}

.portal-intro {
  display: grid;
  gap: 18px;
}

.portal-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.portal-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portal-grid.is-refreshing .panel,
.portal-grid.is-refreshing .kpi-card,
.portal-grid.is-refreshing .filter-bar {
  transform: translateY(4px);
  opacity: 0.72;
}

.filter-bar {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--portal-filter-bg);
}

.filter-group {
  display: grid;
  gap: 6px;
}

.filter-group.is-disabled label {
  color: rgba(207, 223, 232, 0.4);
}

.filter-group.is-disabled select {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(207, 223, 232, 0.4);
  cursor: not-allowed;
}

.filter-group label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.filter-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.filter-activate {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(207, 223, 232, 0.8);
  border-radius: 10px;
  font-size: 0.72rem;
  padding: 4px 10px;
  cursor: pointer;
}

.filter-activate:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.filter-coming-soon select {
  font-style: italic;
}

.filter-group select,
.filter-group input[type="date"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-weight: 600;
  min-height: 44px;
}

.filter-group select:focus,
.filter-group input[type="date"]:focus {
  outline: none;
  border-color: rgba(19, 229, 197, 0.45);
  box-shadow: 0 0 0 3px rgba(19, 229, 197, 0.18);
}

.filter-group input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.92);
}

.kpi-card {
  position: relative;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)),
    linear-gradient(180deg, rgba(8, 20, 31, 0.78), rgba(7, 16, 24, 0.88)),
    radial-gradient(circle at top right, rgba(126, 241, 255, 0.18), transparent 42%);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 18px 32px rgba(5, 10, 16, 0.24);
  backdrop-filter: blur(14px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    opacity 220ms ease;
  overflow: hidden;
  isolation: isolate;
}

.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.18) 46%, transparent 72%);
  transform: translateX(-130%);
  animation: territorySheen 8.8s ease-in-out infinite;
  pointer-events: none;
}

.kpi-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 0 16px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(126, 241, 255, 0.08), rgba(126, 241, 255, 0.82), rgba(126, 241, 255, 0.08));
  opacity: 0.78;
  pointer-events: none;
}

.kpi-button {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
}

.kpi-button:focus-visible {
  outline: 2px solid rgba(19, 229, 197, 0.8);
  outline-offset: 3px;
}

.kpi-button:hover,
.kpi-link:hover {
  transform: translateY(-2px);
  border-color: rgba(126, 241, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 22px 40px rgba(7, 19, 31, 0.3),
    0 0 0 1px rgba(126, 241, 255, 0.08);
}

.kpi-link {
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.kpi-link:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.kpi-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.kpi-signal {
  --kpi-signal-wave-duration: 1.4s;
  --kpi-signal-dot-duration: 2.4s;
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(126, 241, 255, 0.18);
  background: rgba(7, 18, 28, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 18px rgba(3, 10, 18, 0.18);
  backdrop-filter: blur(10px);
}

.kpi-signal-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #7ef1ff;
  animation: kpiSignalDotPulse var(--kpi-signal-dot-duration) ease-in-out infinite;
}

.kpi-signal-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.kpi-signal-bars span {
  display: block;
  width: 3px;
  border-radius: 999px;
  background: rgba(126, 241, 255, 0.24);
  animation: kpiSignalWave var(--kpi-signal-wave-duration) ease-in-out infinite;
}

.kpi-signal-fast {
  --kpi-signal-wave-duration: 1.575s;
  --kpi-signal-dot-duration: 2.85s;
}

.kpi-signal-medium {
  --kpi-signal-wave-duration: 2.175s;
  --kpi-signal-dot-duration: 3.525s;
}

.kpi-signal-slow {
  --kpi-signal-wave-duration: 2.925s;
  --kpi-signal-dot-duration: 4.35s;
}

.kpi-signal-bars span:nth-child(1) {
  height: 5px;
  animation-delay: 0s;
}

.kpi-signal-bars span:nth-child(2) {
  height: 9px;
  animation-delay: 0.2s;
}

.kpi-signal-bars span:nth-child(3) {
  height: 13px;
  animation-delay: 0.4s;
}

.kpi-value {
  margin-top: 6px;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  transform-origin: left center;
  text-shadow: 0 10px 24px rgba(5, 18, 28, 0.28);
}

.kpi-value.is-live {
  animation: dashboardValuePop 720ms ease;
}

.kpi-button[data-modal-trigger="devices"] .kpi-value {
  color: #22c55e;
}

.kpi-alerts .kpi-value {
  color: #ff5c5c;
}

.kpi-sub {
  margin-top: 4px;
  color: var(--faint);
  font-size: 0.85rem;
}

.portal-section {
  padding: 20px 0 80px;
}

.dashboard-copilot-trigger {
  margin-top: 14px;
  color: var(--accent-2);
  font-weight: 700;
}

.portal-mode-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.portal-mode-actions .dashboard-copilot-trigger {
  margin-top: 0;
}

.dashboard-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(152, 172, 204, 0.22);
  border-radius: 999px;
  background: rgba(7, 15, 24, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dashboard-mode-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(226, 236, 255, 0.72);
  padding: 9px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dashboard-mode-btn:hover,
.dashboard-mode-btn:focus-visible {
  color: #ffffff;
  outline: none;
}

.dashboard-mode-btn.is-active,
.dashboard-mode-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(44, 130, 255, 0.22), rgba(19, 229, 197, 0.18));
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(93, 189, 255, 0.34), 0 10px 24px rgba(7, 12, 20, 0.24);
}

.portal-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: start;
  transition: opacity 220ms ease, transform 220ms ease;
}

.portal-grid[data-dashboard-layout="map-focus"] {
  grid-template-columns: 1.8fr 1fr;
}

.portal-grid[data-dashboard-layout="alerts-focus"] {
  grid-template-columns: 1fr 1.45fr;
}

.panel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--portal-panel-bg);
  padding: 18px;
  display: grid;
  gap: 14px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.panel.panel-disabled {
  opacity: 0.3;
  pointer-events: none;
}

[data-dashboard-section][hidden],
[data-dashboard-panel][hidden] {
  display: none !important;
}

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

.territory-panel {
  gap: 18px;
}

.territory-empty {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.territory-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.territory-summary-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 8px;
}

.territory-summary-card span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  font-weight: 700;
}

.territory-summary-card strong {
  font-size: 1.3rem;
  line-height: 1.2;
}

.territory-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.territory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: start;
}

.territory-bars {
  display: grid;
  gap: 12px;
}

.territory-bar-row {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 10px;
}

.territory-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.territory-bar-head h3 {
  margin: 0;
  font-size: 1rem;
}

.territory-bar-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.territory-bar-head strong {
  font-size: 1.25rem;
  color: #ffffff;
}

.territory-bar-track {
  display: flex;
  overflow: hidden;
  min-height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.territory-bar-segment {
  min-width: 0;
}

.territory-bar-clear {
  background: linear-gradient(90deg, #22c55e 0%, #86efac 100%);
}

.territory-bar-watch {
  background: linear-gradient(90deg, #f59e0b 0%, #fcd34d 100%);
}

.territory-bar-critical {
  background: linear-gradient(90deg, #ef4444 0%, #fca5a5 100%);
}

.territory-bar-stale {
  background: linear-gradient(90deg, #64748b 0%, #cbd5e1 100%);
}

.territory-bar-meta {
  display: flex;
  gap: 10px 14px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 700;
}

.territory-table-wrap {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  overflow: auto;
}

.territory-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.territory-table th,
.territory-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.territory-table th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.035);
}

.territory-table td {
  color: var(--text);
  font-size: 0.92rem;
}

.territory-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.territory-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.territory-command-main,
.territory-command-side {
  display: grid;
  gap: 14px;
}

.territory-command-head,
.territory-hotspot-card,
.territory-lane,
.territory-side-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.territory-command-head {
  padding: 18px;
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at top right, rgba(126, 241, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(4, 12, 20, 0.18);
}

.territory-command-eyebrow {
  margin: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.territory-command-head h3,
.territory-side-item h4 {
  margin: 0;
}

.territory-command-copy,
.territory-hotspot-card p,
.territory-side-card p,
.territory-side-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.territory-command-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.territory-kpi-chip {
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 26px rgba(3, 10, 18, 0.12);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.territory-kpi-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(126, 241, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 18px 32px rgba(3, 10, 18, 0.18);
}

.territory-kpi-chip span,
.territory-hotspot-card span,
.territory-side-card > span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  font-weight: 800;
}

.territory-kpi-chip strong,
.territory-hotspot-card strong {
  font-size: 1.25rem;
}

.territory-hotspot-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.territory-hotspot-card {
  padding: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 30px rgba(4, 12, 20, 0.16);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.territory-hotspot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.12) 45%, transparent 75%);
  transform: translateX(-120%);
  animation: territorySheen 7.2s ease-in-out infinite;
  pointer-events: none;
}

.territory-hotspot-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 20px 38px rgba(4, 12, 20, 0.22);
}

.territory-hotspot-critical {
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.38) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.territory-hotspot-watch {
  background: linear-gradient(180deg, rgba(146, 64, 14, 0.34) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.territory-hotspot-neutral {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.42) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.territory-lane-list {
  display: grid;
  gap: 12px;
}

.territory-lane {
  padding: 14px;
  display: grid;
  gap: 12px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  animation: activityItemRise 520ms ease forwards;
  animation-delay: var(--lane-delay, 0ms);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
  background:
    radial-gradient(circle at top right, rgba(126, 241, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 26px rgba(3, 10, 18, 0.12);
}

.territory-lane::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.1) 44%, transparent 72%);
  transform: translateX(-130%);
  animation: territorySheen 8.6s ease-in-out infinite;
  animation-delay: calc(var(--lane-delay, 0ms) + 600ms);
  pointer-events: none;
}

.territory-lane::after {
  content: "";
  position: absolute;
  inset: auto 16px 0 16px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(126, 241, 255, 0.15), rgba(126, 241, 255, 0.65), rgba(126, 241, 255, 0.15));
  opacity: 0.75;
}

.territory-lane:hover,
.territory-lane:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(126, 241, 255, 0.28);
  background:
    radial-gradient(circle at top right, rgba(126, 241, 255, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 18px 34px rgba(0, 0, 0, 0.2);
}

.territory-lane:focus-visible {
  outline: 2px solid rgba(126, 241, 255, 0.35);
  outline-offset: 2px;
}

.territory-lane-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.territory-lane-head h3 {
  margin: 0;
  font-size: 1rem;
}

.territory-lane-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.territory-lane-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.territory-lane-side {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.territory-expand-btn,
.territory-more-nodes {
  appearance: none;
  border: 1px solid rgba(126, 241, 255, 0.2);
  background: rgba(12, 27, 44, 0.8);
  color: rgba(210, 244, 255, 0.94);
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.territory-expand-btn {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  background:
    linear-gradient(180deg, rgba(19, 42, 66, 0.92), rgba(9, 22, 36, 0.9));
}

.territory-more-nodes {
  align-self: stretch;
  min-height: 54px;
  border-radius: 16px;
  min-width: 64px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
}

.territory-expand-btn:hover,
.territory-expand-btn:focus-visible,
.territory-more-nodes:hover,
.territory-more-nodes:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(126, 241, 255, 0.38);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.territory-expand-btn:focus-visible,
.territory-more-nodes:focus-visible {
  outline: 2px solid rgba(126, 241, 255, 0.35);
  outline-offset: 2px;
}

.territory-stat-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid transparent;
  appearance: none;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease,
    filter 140ms ease;
}

.territory-stat-pill:hover,
.territory-stat-pill:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
  filter: saturate(1.08);
}

.territory-stat-pill:focus-visible {
  outline: 2px solid rgba(126, 241, 255, 0.35);
  outline-offset: 2px;
}

.territory-stat-critical {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.42);
  border-color: rgba(248, 113, 113, 0.3);
}

.territory-stat-watch {
  color: #fde68a;
  background: rgba(120, 53, 15, 0.42);
  border-color: rgba(251, 191, 36, 0.28);
}

.territory-stat-clear {
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.38);
  border-color: rgba(74, 222, 128, 0.22);
}

.territory-progress {
  display: flex;
  overflow: hidden;
  min-height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.territory-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.16) 48%, transparent 72%);
  transform: translateX(-135%);
  animation: territorySweep 5.8s linear infinite;
  pointer-events: none;
}

.territory-progress-segment {
  min-width: 0;
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.territory-progress-clear {
  background: linear-gradient(90deg, #22c55e 0%, #86efac 100%);
}

.territory-progress-watch {
  background: linear-gradient(90deg, #f59e0b 0%, #fcd34d 100%);
}

.territory-progress-critical {
  background: linear-gradient(90deg, #ef4444 0%, #fca5a5 100%);
}

.territory-rack-wrap {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top center, rgba(126, 241, 255, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 100%);
  padding: 14px;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(3, 10, 18, 0.12);
}

.territory-rack-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%),
    linear-gradient(90deg, transparent 0%, rgba(126, 241, 255, 0.08) 48%, transparent 76%);
  transform: translateX(-125%);
  animation: territorySweep 7s linear infinite;
  pointer-events: none;
}

.territory-pie-wrap {
  display: grid;
  grid-template-columns: minmax(130px, 150px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 10px 4px;
}

.territory-pie-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.territory-pie-center {
  position: absolute;
  display: grid;
  place-items: center;
  gap: 2px;
  text-align: center;
}

.territory-pie-center strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.territory-pie-center span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.territory-pie-legend {
  display: grid;
  gap: 8px;
}

.territory-pie-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.territory-rack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

.territory-node {
  position: relative;
  width: 18px;
  min-width: 18px;
  display: grid;
  place-items: end center;
  transition: transform 160ms ease, filter 160ms ease;
}

.territory-node:hover {
  transform: translateY(-3px) scale(1.08);
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.24));
}

.territory-node-shell {
  width: 100%;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 12, 18, 0.92);
  overflow: hidden;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 12px 16px rgba(255, 255, 255, 0.03);
}

.territory-node-shell::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 3px;
  right: 3px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
}

.territory-node-fill {
  position: absolute;
  inset: auto 0 0 0;
  border-radius: inherit;
  height: 0;
  animation: territoryTankFill 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--node-delay, 0ms);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.territory-node-fill::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 3px;
  right: 3px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
  opacity: 0.8;
}

.territory-node-clear .territory-node-fill {
  background: linear-gradient(180deg, #22c55e 0%, #166534 100%);
}

.territory-node-watch .territory-node-fill {
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
}

.territory-node-critical .territory-node-fill {
  background: linear-gradient(180deg, #ef4444 0%, #991b1b 100%);
}

.territory-node-critical .territory-node-shell,
.territory-node-watch .territory-node-shell {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 14px rgba(248, 113, 113, 0.16);
}

.territory-node-beacon {
  position: absolute;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.territory-node-watch .territory-node-beacon {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.38);
}

.territory-node-critical .territory-node-beacon {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.75);
  animation: alertCriticalPulse 2.4s ease-in-out infinite;
}

.territory-side-card {
  padding: 16px;
  display: grid;
  gap: 12px;
  background:
    radial-gradient(circle at top right, rgba(126, 241, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 16px 30px rgba(3, 10, 18, 0.14);
}

.territory-modal {
  display: grid;
  gap: 16px;
}

.territory-modal-head {
  display: grid;
  gap: 12px;
}

.territory-rack-wrap-modal {
  max-height: min(70vh, 760px);
  overflow: auto;
}

.territory-rack-modal {
  align-items: flex-end;
}

.territory-side-list {
  display: grid;
  gap: 10px;
}

.territory-side-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.territory-side-item strong {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.territory-legend {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
}

.territory-legend div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.territory-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.territory-legend-clear {
  background: #22c55e;
}

.territory-legend-watch {
  background: #f59e0b;
}

.territory-legend-critical {
  background: #ef4444;
}

.panel-map {
  min-height: 320px;
  position: relative;
}

.panel-map {
  grid-column: 1;
}

.panel-right {
  grid-column: 2;
}

.panel-left {
  grid-column: 1;
}

.panel-alerts {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  min-height: 690px;
}

.portal-grid[data-dashboard-layout="map-focus"] .panel-map {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.portal-grid[data-dashboard-layout="map-focus"] .panel-alerts {
  grid-column: 2;
  grid-row: 1;
}

.portal-grid[data-dashboard-layout="map-focus"] [data-dashboard-panel="health"] {
  grid-column: 2;
  grid-row: 2;
}

.portal-grid[data-dashboard-layout="alerts-focus"] .panel-alerts {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.portal-grid[data-dashboard-layout="alerts-focus"] .panel-map {
  grid-column: 1;
  grid-row: 2;
}

.portal-grid[data-dashboard-layout="alerts-focus"] [data-dashboard-panel="health"] {
  grid-column: 1;
  grid-row: 1;
}

.panel-alerts .panel-head {
  justify-content: flex-start;
  align-items: flex-start;
}

.panel-alerts .panel-actions {
  margin-left: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.panel-head-title {
  display: flex;
  flex-direction: column;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.panel-alerts .panel-head {
  align-items: flex-start;
}

.panel-alerts .panel-actions {
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
}

.panel-alerts .panel-actions .panel-select {
  align-self: flex-start;
}

.panel-alerts [data-alert-link] {
  margin-left: auto;
}

.panel-alerts {
  align-content: start;
}

.panel-select {
  appearance: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.panel-select:focus {
  outline: none;
  border-color: rgba(19, 229, 197, 0.45);
  box-shadow: 0 0 0 3px rgba(19, 229, 197, 0.18);
}

.panel-title {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  font-family: "Space Grotesk", sans-serif;
}

.panel-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.panel-activity {
  grid-column: 1;
}

.activity-feed {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  animation: activityItemRise 420ms ease both;
  animation-delay: var(--activity-delay, 0ms);
}

.activity-copy {
  min-width: 0;
}

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 7px;
  background: #7ef1ff;
  box-shadow: 0 0 0 0 rgba(126, 241, 255, 0.35);
  animation: alertCriticalPulse 2.8s ease-in-out infinite;
}

.activity-item-critical .activity-dot {
  background: #ff5c5c;
}

.activity-item-watch .activity-dot {
  background: #ffc157;
}

.activity-item-neutral .activity-dot {
  background: rgba(255, 255, 255, 0.42);
  animation: none;
}

.activity-title {
  font-weight: 700;
}

.activity-sub {
  margin-top: 4px;
  color: var(--faint);
  font-size: 0.86rem;
}

.activity-time {
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.panel-link {
  color: rgba(126, 241, 255, 0.9);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: rgba(126, 241, 255, 0.4);
  text-underline-offset: 3px;
}

.panel-link:hover {
  text-decoration-color: rgba(126, 241, 255, 0.8);
}

.activate-form {
  display: grid;
  gap: 24px;
  width: 100%;
}

.action-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 14px;
}

.action-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.action-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.icon-button {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
}

.manual-entry {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.manual-entry label,
.manual-address label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--muted);
}

.manual-entry input,
.manual-address textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}

.manual-entry input:focus,
.manual-address textarea:focus {
  outline: none;
  border-color: rgba(19, 229, 197, 0.45);
  box-shadow: 0 0 0 3px rgba(19, 229, 197, 0.18);
}

.gps-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gps-fields span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.gps-fields output {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
  font-weight: 700;
}

.location-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.push-live-row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.push-live-row h2 {
  margin: 0;
}

.push-live-row .btn {
  min-width: 180px;
}

.camera-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.camera-cta-text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.manual-entry input::placeholder,
.manual-address textarea::placeholder {
  color: rgba(207, 223, 232, 0.62);
  font-size: 0.9rem;
}

[data-gps-status].gps-success {
  color: #18f3d2;
}

@media (max-width: 900px) {
  .territory-command-grid,
  .territory-hotspot-strip,
  .territory-command-kpis {
    grid-template-columns: 1fr;
  }

  .territory-lane-head {
    flex-direction: column;
  }

  .territory-lane-stats {
    justify-content: flex-start;
  }

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

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

  .activate-form {
    gap: 18px;
  }

  .action-card,
  .push-live-row {
    padding: 18px;
  }

  .action-head h2,
  .push-live-row h2 {
    font-size: 1.08rem;
    line-height: 1.25;
  }

  .camera-cta-text {
    font-size: 0.9rem;
  }

  .icon-button {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .icon-button svg {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 640px) {
  .map-weather-card {
    left: 12px;
    top: 12px;
    right: 12px;
    width: auto;
  }

  .activity-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .activity-time {
    grid-column: 2;
  }

  .territory-node {
    width: 16px;
    min-width: 16px;
  }

  .territory-node-shell {
    height: 48px;
  }

  .panel {
    padding: 16px;
  }

  .territory-summary-grid {
    grid-template-columns: 1fr;
  }

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

  .territory-bar-head {
    flex-direction: column;
  }

  .action-card,
  .push-live-row {
    padding: 16px;
  }

  .action-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .camera-cta {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .gps-fields {
    grid-template-columns: 1fr;
  }

  .location-actions {
    flex-direction: column;
  }

  .push-live-row {
    flex-direction: column;
    align-items: stretch;
  }

  .push-live-row .btn {
    width: 100%;
  }

  .camera-cta-text {
    font-size: 0.9rem;
  }

  .location-actions .btn {
    width: 100%;
  }

  .manual-entry,
  .manual-address {
    padding: 12px;
    gap: 10px;
  }

  .manual-entry input,
  .manual-address textarea {
    padding: 11px 12px;
  }
}

@media (max-width: 420px) {
  .action-card,
  .push-live-row {
    padding: 14px;
    border-radius: 14px;
  }

  .action-head {
    gap: 8px;
  }

  .action-head h2,
  .push-live-row h2 {
    font-size: 1rem;
  }

  .camera-cta {
    margin-bottom: 12px;
  }

  .camera-cta-text {
    font-size: 0.86rem;
    line-height: 1.25;
  }
}

@media (max-width: 320px) {
  .panel {
    padding: 12px;
  }

  .activate-form {
    gap: 12px;
  }

  .action-card,
  .push-live-row {
    padding: 12px;
    border-radius: 12px;
    gap: 10px;
  }

  .action-head h2,
  .push-live-row h2 {
    font-size: 0.95rem;
  }

  .manual-entry,
  .manual-address {
    padding: 10px;
    gap: 8px;
  }

  .manual-entry label span,
  .manual-address label span,
  .gps-fields span,
  .form-hint,
  .muted {
    font-size: 0.82rem;
  }

  .manual-entry input,
  .manual-address textarea {
    padding: 10px;
    border-radius: 10px;
    font-size: 16px;
  }

  .gps-fields output {
    font-size: 1rem;
  }

  .icon-button {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .icon-button svg {
    width: 28px;
    height: 28px;
  }

  .btn {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .portal-main {
    padding: 18px 0 32px;
  }

  .portal-hero {
    padding: 10px 0 6px;
  }

  .portal-intro h1 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .portal-intro .eyebrow {
    margin-bottom: 6px;
    font-size: 0.78rem;
    padding: 4px 8px;
  }

  .activate-form {
    gap: 12px;
  }

  .action-card,
  .push-live-row {
    padding: 12px;
    gap: 10px;
  }

  .action-head h2,
  .push-live-row h2 {
    font-size: 0.96rem;
  }

  .gps-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .location-actions {
    flex-direction: row;
    gap: 8px;
  }

  .location-actions .btn {
    width: auto;
    flex: 1;
  }
}

.health-bars {
  display: grid;
  gap: 10px;
}

.health-pie-card {
  display: grid;
  grid-template-columns: minmax(150px, 180px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.health-pie-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.dashboard-pie {
  width: 100%;
  max-width: 168px;
  height: auto;
  filter: drop-shadow(0 16px 30px rgba(3, 10, 16, 0.28));
}

.health-pie-center {
  position: absolute;
  display: grid;
  place-items: center;
  gap: 2px;
  text-align: center;
}

.health-pie-center strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  line-height: 1;
}

.health-pie-center span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.health-pie-legend {
  display: grid;
  gap: 10px;
}

.health-pie-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.health-pie-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.health-pie-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.health-pie-dot.status-green { background: #18f3d2; }
.health-pie-dot.status-amber { background: #ffc157; }
.health-pie-dot.status-red { background: #ff5c5c; }
.health-pie-dot.status-neutral { background: #94a3b8; }

.health-row {
  display: grid;
  grid-template-columns: 90px 1fr 44px;
  gap: 12px;
  align-items: center;
}

.health-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.health-row.status-green .health-label,
.health-row.status-green .health-value {
  color: #18f3d2;
}

.health-row.status-amber .health-label,
.health-row.status-amber .health-value {
  color: #ffc157;
}

.health-row.status-red .health-label,
.health-row.status-red .health-value {
  color: #ff5c5c;
}

.health-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.health-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.health-fill.status-green {
  background: linear-gradient(90deg, #18f3d2, rgba(24, 243, 210, 0.3));
}

.health-fill.status-amber {
  background: linear-gradient(90deg, #ffc157, rgba(255, 193, 87, 0.3));
}

.health-fill.status-red {
  background: linear-gradient(90deg, #ff5c5c, rgba(255, 92, 92, 0.3));
}

.health-value {
  font-weight: 700;
}

.alert-list,
.work-list {
  display: grid;
  gap: 10px;
}

.alert-list-shell {
  position: relative;
  padding-right: 18px;
  min-height: 0;
}

.alert-list {
  height: 520px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.alert-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.alert-list-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 13, 20, 0) 0%, rgba(7, 13, 20, 0.92) 100%);
  opacity: 0;
  transition: opacity 140ms ease;
}

.alert-list-shell[data-overflow="true"]::after {
  opacity: 1;
}

.alert-list-shell[data-at-end="true"]::after {
  opacity: 0;
}

.alert-scroll-rail {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.alert-scroll-thumb {
  position: absolute;
  inset: 0 0 auto 0;
  display: block;
  min-height: 42px;
  border-radius: inherit;
  background: rgba(164, 178, 194, 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition:
    background 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease,
    height 140ms ease;
}

.alert-list-shell[data-overflow="true"] .alert-scroll-thumb {
  background: rgba(126, 241, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(126, 241, 255, 0.12);
}

.alert-scroll-hint {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6, 14, 23, 0.84);
  border: 1px solid rgba(126, 241, 255, 0.2);
  color: rgba(210, 244, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 700;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.alert-list-shell[data-overflow="true"][data-at-end="false"] .alert-scroll-hint {
  opacity: 1;
  transform: translateY(0);
}

.alert-list-shell[data-overflow="true"][data-at-end="true"] .alert-scroll-hint,
.alert-list-shell[data-overflow="false"] .alert-scroll-hint {
  opacity: 0;
  transform: translateY(4px);
}

.alert-item,
.work-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

.alert-item {
  gap: 14px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.alert-item:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 241, 255, 0.2);
}

.alert-item.is-critical {
  animation: alertCriticalPulse 2.8s ease-in-out infinite;
}

.alert-item.is-watch {
  border-color: rgba(255, 193, 87, 0.2);
}

.alert-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-actions .modal-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.alert-check {
  display: grid;
  place-items: center;
}

.alert-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.alert-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.alert-toggle-label input {
  width: 16px;
  height: 16px;
  accent-color: #ff5c5c;
  cursor: pointer;
}

.alert-details {
  flex: 1;
}

.alert-title,
.work-title {
  font-weight: 600;
}

.alert-sub,
.work-sub {
  color: var(--faint);
  font-size: 0.85rem;
  margin-top: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-pill.status-green {
  color: #18f3d2;
  border-color: rgba(24, 243, 210, 0.4);
  background: rgba(24, 243, 210, 0.12);
}

.status-pill.status-amber {
  color: #ffc157;
  border-color: rgba(255, 193, 87, 0.45);
  background: rgba(255, 193, 87, 0.12);
}

.status-pill.status-red {
  color: #ff8686;
  border-color: rgba(255, 92, 92, 0.45);
  background: rgba(255, 92, 92, 0.12);
}

.status-pill.status-neutral {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table-check {
  display: grid;
  place-items: center;
}

.table-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.data-table th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-action {
  text-align: center;
}

.table-action .modal-icon-btn {
  width: 42px;
  height: 42px;
}

.table-empty {
  text-align: center;
  color: var(--muted);
  padding: 18px 10px;
}

.portal-map {
  height: 240px;
  margin: 0;
  border-radius: 16px;
}

.dashboard-copilot {
  position: fixed;
  inset: 0;
  z-index: 1100;
}

.dashboard-copilot[hidden] {
  display: none;
}

.dashboard-copilot-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 15, 0.62);
}

.dashboard-copilot-shell {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: var(--portal-copilot-bg);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.dashboard-copilot-head,
.dashboard-copilot-actions {
  padding: 22px;
}

.dashboard-copilot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-copilot-eyebrow {
  margin: 0 0 6px;
  color: var(--accent-3);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-copilot-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.dashboard-copilot-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.dashboard-copilot-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.dashboard-copilot-body {
  overflow: auto;
  padding: 22px;
  display: grid;
  gap: 20px;
}

.dashboard-copilot-section {
  display: grid;
  gap: 12px;
}

.dashboard-copilot-section h3 {
  margin: 0;
  font-size: 1rem;
}

.dashboard-layout-options,
.dashboard-toggle-list {
  display: grid;
  gap: 10px;
}

.dashboard-option-card,
.dashboard-toggle {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.dashboard-option-card input,
.dashboard-toggle input {
  margin: 0;
  accent-color: var(--accent);
}

.dashboard-option-card span,
.dashboard-toggle span {
  font-weight: 700;
}

.dashboard-option-card small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.dashboard-toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.dashboard-copilot-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-copilot-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.portal-footer {
  border-top: 1px solid rgba(12, 18, 24, 0.16);
  background: rgba(245, 249, 252, 0.92);
  color: rgba(12, 18, 24, 0.9);
}

.portal-footer .muted,
.portal-footer a {
  color: rgba(12, 18, 24, 0.7);
}

.portal-footer a:hover {
  color: rgba(12, 18, 24, 0.9);
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .cards,
  .steps,
  .solution-visuals {
    grid-template-columns: 1fr;
  }

  #solutions .solutions-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .board-cards {
    grid-template-columns: 1fr;
  }

  .partner-card {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    text-align: left;
  }

  .portal-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .portal-mode-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-mode-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-mode-btn {
    flex: 1 1 0;
  }

  .portal-kpis {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

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

  .panel-map,
  .panel-right,
  .panel-left,
  .panel-alerts {
    grid-column: auto;
    grid-row: auto;
  }

  .panel-map {
    min-height: 240px;
  }

  .dashboard-copilot-shell {
    width: min(100vw, 460px);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    right: calc(var(--gutter));
    top: 60px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 15, 22, 0.94);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    width: min(280px, calc(100vw - (var(--gutter) * 2)));
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 10px;
    border-radius: 14px;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.04);
  }

  .header-login {
    width: 100%;
  }

  .header-login summary {
    width: 100%;
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
  }

  .header-login-panel {
    position: static;
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(245, 249, 252, 0.98);
  }

  .nav-links a:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
  }

  .site-header .nav-links .btn,
  .site-header .nav-links .btn-primary {
    color: #06111a;
    background: linear-gradient(135deg, #13e5c5, #7ab6ff);
    border-color: rgba(255, 255, 255, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .card {
    transition: none;
  }

}

@media (max-width: 1180px) {
  .hero-dual-solutions {
    grid-template-columns: 1fr;
  }

  .hero-solutions-heading {
    margin-bottom: 0;
  }

  .hero-solutions-stats {
    grid-template-columns: 1fr;
  }

  .hero-product-inner,
  .hero-lower {
    grid-template-columns: 1fr;
  }

  .hero-side {
    justify-content: flex-start;
  }

  .hero-login-shell {
    width: min(520px, 100%);
  }

  .hero-benefits {
    width: 100%;
  }

  .hero-device-frame {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 48px 0 24px;
  }

  .hero-solutions-heading {
    gap: 12px;
  }

  .hero-solutions-heading h2 {
    font-size: 1.95rem;
  }

  .hero-solutions-intro {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-stat-card {
    padding: 12px 14px;
  }

  .solution-panel {
    border-radius: 18px;
  }

  .solution-panel-preview {
    padding: 10px;
  }

  .solution-panel-stack {
    padding: 16px;
  }

  .solution-panel-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .solution-panel-title-wrap {
    gap: 8px;
  }

  .solution-panel-title {
    max-width: none;
    min-height: 0;
  }

  .stack-mini-stage {
    min-height: 300px;
    aspect-ratio: auto;
  }

  .solution-panel-select {
    min-width: 76px;
    padding: 9px 12px;
  }

  .stack-mini-step {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 12px;
  }

  .stack-solution-number {
    width: 36px;
    height: 36px;
  }

  .hero-reference-copy {
    width: 56%;
    padding: 5.2% 0 4.6% 4.2%;
  }

  .hero-reference-accent {
    margin-top: 10px;
  }

  .hero-reference-summary {
    margin-top: 14px;
    max-width: 22ch;
  }

  .hero-reference-features {
    gap: 12px;
  }

  .hero-reference-feature {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .hero-reference-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-size: 1.1rem;
  }

  .hero-reference-feature h2 {
    font-size: 0.88rem;
  }

  .hero-reference-feature p,
  .hero-reference-benefit strong {
    font-size: 0.78rem;
  }

  .hero-reference-benefit {
    padding: 10px 10px 0;
  }

  .hero-reference-benefit-icon {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .hero-feature-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
  }

  .hero-feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 1.15rem;
  }

  .hero-feature-card h2 {
    font-size: 0.95rem;
  }

  .hero-feature-card p,
  .hero-summary {
    font-size: 0.95rem;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
  }

  .hero-benefit {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(112, 174, 255, 0.18);
  }

  .hero-benefit:last-child {
    border-bottom: 0;
  }

  .hero-device-label {
    font-size: 0.82rem;
  }

  .hero-device-label::after {
    width: 54px;
  }

  .hero-reference-card {
    border-radius: 18px;
  }

}

@media (max-width: 640px) {
  .dashboard-copilot-head,
  .dashboard-copilot-body,
  .dashboard-copilot-actions {
    padding: 16px;
  }

  .dashboard-copilot-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.onboarding-meta {
  display: grid;
  gap: 18px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.role-card {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.18);
}

.role-card ul {
  margin: 8px 0 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.level-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.level-list > li {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
}

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

.panel-placeholder {
  opacity: 0.6;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--muted);
}

.form-grid input,
.form-grid select {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-weight: 600;
}

.form-grid input:focus,
.form-grid select:focus {
  outline: none;
  border-color: rgba(19, 229, 197, 0.45);
  box-shadow: 0 0 0 3px rgba(19, 229, 197, 0.18);
}

.upload-card {
  margin-top: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 12px;
}

.upload-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
}

.upload-label input[type="file"] {
  border: none;
  padding: 0;
  color: var(--text);
}

@media (max-width: 980px) {
  .onboarding-grid {
    grid-template-columns: 1fr;
  }
}


