:root {
  --bg: #0b1210;
  --panel: #111c18;
  --ink: #edf7f1;
  --muted: #9db3a8;
  --line: #263a33;
  --danger: #ff7d72;
  --warn: #f0bf62;
  --brand-primary: #66d4a5;
  --brand-accent: #e2b45f;
  --topbar-bg: rgba(8, 18, 15, 0.96);
  --page-gradient-a: rgba(13, 23, 20, 0.98);
  --page-gradient-b: rgba(18, 32, 28, 0.92);
  --texture-line: rgba(102, 212, 165, 0.06);
  --soft-surface: rgba(17, 28, 24, 0.78);
  --field-bg: #0d1714;
  --shadow: rgba(0, 0, 0, 0.36);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, var(--page-gradient-a), var(--page-gradient-b)),
    repeating-linear-gradient(135deg, var(--texture-line) 0 1px, transparent 1px 18px);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

/* Generator configuration is deliberately separate from the control console. */
.generator-config-page {
  display: grid;
  gap: 22px;
}

.generator-config-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.generator-config-header > div {
  max-width: 780px;
}

.generator-config-header > div > a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--brand-primary);
  font-weight: 760;
}

.generator-config-header h1 {
  margin: 4px 0 8px;
}

.generator-config-header p {
  margin: 0;
  color: var(--muted);
}

.generator-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.generator-config-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.generator-config-card--wide {
  grid-column: 1 / -1;
}

.generator-config-card > header {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
}

.generator-config-card > header > i {
  color: var(--brand-primary);
  font-size: 1.35rem;
}

.generator-config-card h2,
.generator-config-card header p {
  margin: 0;
}

.generator-config-card h2 {
  font-size: 1rem;
}

.generator-config-card header p,
.config-footnote {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.profile-choice {
  display: grid;
  grid-template-columns: 0 36px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0d1714;
  cursor: pointer;
}

.profile-choice input {
  opacity: 0;
}

.profile-choice > i {
  color: var(--muted);
  font-size: 1.45rem;
}

.profile-choice span {
  display: grid;
  gap: 5px;
}

.profile-choice small {
  color: var(--muted);
  line-height: 1.4;
}

.profile-choice.is-selected,
.profile-choice:has(input:checked) {
  border-color: var(--brand-primary);
  background: #11211b;
}

.profile-choice.is-selected > i,
.profile-choice:has(input:checked) > i {
  color: var(--brand-primary);
}

.profile-choice-form button {
  grid-column: 1 / -1;
  justify-self: end;
}

.config-device-list,
.config-recipient-list {
  display: grid;
  gap: 10px;
}

.config-device-list > div,
.config-recipient-list > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d1714;
}

.config-device-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #173226;
  color: var(--brand-primary);
}

.config-device-list span:not(.status-chip),
.config-recipient-list span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.config-device-list small,
.config-recipient-list small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reporting-policy,
.config-summary {
  display: grid;
  gap: 0;
  margin: 0;
}

.reporting-policy > div,
.config-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.reporting-policy dt,
.config-summary dt {
  color: var(--muted);
}

.reporting-policy dd,
.config-summary dd {
  margin: 0;
  text-align: right;
}

.config-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  margin: 0;
  padding: 12px;
  border: 1px solid #5c4c1c;
  border-radius: 6px;
  background: #1b190d;
  color: #dbc77c;
  font-size: 0.78rem;
  line-height: 1.45;
}

.generator-management-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.generator-side-menu {
  position: sticky;
  top: 92px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.generator-side-menu > strong {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.generator-side-menu nav,
.generator-management-content {
  display: grid;
}

.generator-side-menu a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.generator-side-menu a:last-child {
  border-bottom: 0;
}

.generator-side-menu a:hover,
.generator-side-menu a:focus-visible {
  background: #14241e;
  color: var(--brand-primary);
}

.generator-menu-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--brand-primary);
  font-weight: 800;
}

.generator-management-content {
  gap: 28px;
}

.generator-management-content .journal-form,
.generator-management-content .journal-entry,
.generator-management-content .notification-tags,
.generator-management-content .notification-readonly > div {
  background: var(--field-bg);
}

.generator-management-content .journal-form input,
.generator-management-content .journal-form select,
.generator-management-content .journal-form textarea,
.generator-management-content .notification-row input[type="email"],
.generator-management-content .notification-add-form input[type="email"] {
  border-color: var(--line);
  background: var(--field-bg);
  color: var(--ink);
}

.generator-management-content .journal-entry-head {
  background: #17251f;
}

.generator-config-section {
  min-width: 0;
  scroll-margin-top: 92px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line);
}

.generator-config-section > header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.generator-config-section > header > i {
  color: var(--brand-primary);
  font-size: 1.35rem;
}

.generator-config-section h2,
.generator-config-section header p {
  margin: 0;
}

.generator-config-section h2 {
  font-size: 1.08rem;
}

.generator-config-section header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.config-empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  color: var(--muted);
  text-align: center;
}

.gateway-management-list,
.integration-settings-grid {
  display: grid;
  gap: 14px;
}

.gateway-management-item,
.advanced-config-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.gateway-management-item {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.gateway-management-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.gateway-management-head > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.gateway-management-head small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gateway-diagnostics-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.gateway-diagnostics-title small {
  color: var(--muted);
}

.advanced-config-panel {
  margin-top: 14px;
}

.advanced-config-panel summary {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 50px;
  padding: 12px 15px;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.advanced-config-panel summary i {
  color: var(--brand-primary);
}

.compact-config-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.compact-config-form--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-config-form label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.compact-config-form input,
.compact-config-form select,
.compact-config-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--field-bg);
  color: var(--ink);
  font: inherit;
}

.compact-config-form button,
.compact-config-form .config-help-link,
.compact-config-form .form-span,
.compact-config-form .config-toggle-grid {
  grid-column: 1 / -1;
}

.compact-config-form button {
  justify-self: end;
}

.toggle-field {
  grid-template-columns: auto 1fr;
  align-items: center;
  align-content: center;
}

.toggle-field input {
  width: 18px;
  min-height: 18px;
}

.config-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.config-toggle-grid label {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.config-toggle-grid input {
  width: 16px;
  min-height: 16px;
}

.config-help-link {
  color: var(--brand-primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.config-history {
  display: grid;
  padding: 0 15px 15px;
}

.config-history > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.9fr) minmax(80px, 0.6fr) repeat(3, minmax(100px, 1fr));
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
}

.config-history time,
.config-history span {
  color: var(--muted);
}

.raw-snapshot-list {
  padding: 0 15px 15px;
}

.raw-snapshot-list dd {
  max-width: 70ch;
  overflow-wrap: anywhere;
}

.button--danger {
  border-color: rgba(255, 125, 114, 0.35);
  background: rgba(255, 125, 114, 0.12);
  color: var(--danger);
}

.diagnostic-capture-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.diagnostic-capture-form label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.diagnostic-capture-form input,
.diagnostic-capture-form select,
.diagnostic-capture-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--field-bg);
  color: var(--ink);
  font: inherit;
}

.diagnostic-capture-notice {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.diagnostic-capture-notice i {
  color: var(--brand-primary);
}

.diagnostic-capture-form button {
  grid-column: 1 / -1;
  justify-self: end;
}

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

.diagnostic-capture-item {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.diagnostic-capture-head,
.diagnostic-capture-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.diagnostic-capture-head > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.diagnostic-capture-head small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diagnostic-capture-item dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
}

.diagnostic-capture-item dl > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px;
  background: var(--field-bg);
}

.diagnostic-capture-item dt {
  color: var(--muted);
  font-size: 0.7rem;
}

.diagnostic-capture-item dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  font-weight: 800;
}

.diagnostic-capture-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.diagnostic-capture-actions {
  justify-content: flex-end;
}

.diagnostic-capture-actions form {
  margin: 0;
}

.diagnostic-capture-actions a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--brand-primary);
  font-weight: 800;
}

@media (max-width: 760px) {
  .generator-config-header {
    display: grid;
  }

  .generator-config-grid,
  .profile-choice-form {
    grid-template-columns: 1fr;
  }

  .generator-config-card--wide,
  .profile-choice-form button {
    grid-column: auto;
  }

  .profile-choice-form button {
    justify-self: stretch;
  }

  .generator-management-shell {
    grid-template-columns: 1fr;
  }

  .generator-side-menu {
    position: static;
  }

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

  .generator-side-menu a {
    border-right: 1px solid var(--line);
  }

  .compact-config-form,
  .compact-config-form--wide,
  .config-toggle-grid {
    grid-template-columns: 1fr;
  }

  .compact-config-form button,
  .compact-config-form .config-help-link,
  .compact-config-form .form-span,
  .compact-config-form .config-toggle-grid {
    grid-column: auto;
  }

  .compact-config-form button {
    justify-self: stretch;
  }

  .config-history > div {
    grid-template-columns: 1fr 1fr;
  }

  .diagnostic-capture-form,
  .diagnostic-capture-item dl {
    grid-template-columns: 1fr;
  }

  .diagnostic-capture-form button {
    grid-column: auto;
  }

  .diagnostic-capture-form button {
    justify-self: stretch;
  }

  .diagnostic-capture-head {
    align-items: flex-start;
  }
}

.topbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(28px, 4vw, 58px);
  background: rgba(3, 13, 12, 0.9);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #f8fffb;
}

.brand-mark .bi-shield-fill {
  position: absolute;
  inset: 0;
  color: #e9fff4;
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.32));
}

.brand-mark .bi-lightning-charge-fill {
  position: relative;
  color: #17443b;
  font-size: 27px;
  line-height: 1;
  z-index: 1;
}

.brand-logo {
  width: auto;
  height: 48px;
  max-width: 190px;
  object-fit: contain;
}

.brand-lockup {
  display: grid;
  gap: 1px;
  text-transform: uppercase;
}

.brand-word {
  color: #f8fffb;
  font-size: clamp(1.52rem, 2.4vw, 2.08rem);
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 0.95;
}

.brand-word span {
  color: #5fd18f;
}

.brand-subtitle {
  color: rgba(248, 255, 251, 0.92);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.34em;
  line-height: 1;
}

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

.topbar .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.topbar .button {
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #ffffff;
  color: #0d2d25;
}

.topbar .button:hover,
.topbar .button:focus-visible {
  border-color: rgba(255, 255, 255, 0.45);
}

.topbar .button.secondary,
.topbar .button--ghost {
  background: transparent;
  color: #f6fffb;
}

.topbar .nav-admin-button {
  min-height: 36px;
  padding: 7px 14px;
  font-weight: 900;
}

.nav-logout-form {
  margin: 0;
}

.nav-logout {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

:root[data-theme="dark"] .topbar .button {
  background: #ffffff;
  color: #102018;
}

:root[data-theme="dark"] .topbar .button.secondary,
:root[data-theme="dark"] .topbar .button--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: #f6fffb;
}

.topbar .button.nav-signup,
:root[data-theme="dark"] .topbar .button.nav-signup {
  border-color: #63d89d;
  background: #63d89d;
  color: #06130f;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.topbar .button.nav-signup:hover,
.topbar .button.nav-signup:focus-visible {
  border-color: #7ae1ae;
  background: #7ae1ae;
}

.topbar .button.nav-login,
:root[data-theme="dark"] .topbar .button.nav-login {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.07);
  color: #f6fffb;
}

.topbar .button.nav-login:hover,
.topbar .button.nav-login:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
}

.landing {
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 36px;
}

.landing-logo {
  width: min(360px, 80vw);
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 18px 38px var(--shadow));
  max-width: min(560px, 86vw);
}

.landing h1,
.page-head h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

.card-controls .controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 6px;
  align-content: start;
}

.card-controls .controls button {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 0.78rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.button,
button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--brand-primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, filter 140ms ease, opacity 140ms ease;
}

.button.secondary {
  background: var(--brand-accent);
  color: #102018;
}

.button:hover,
button:hover {
  filter: brightness(1.08);
}

.button:active,
button:active {
  filter: brightness(0.94);
}

.button:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #7de0ae;
  outline-offset: 2px;
}

.button[aria-disabled="true"],
button:disabled {
  cursor: not-allowed;
  filter: saturate(0.55);
  opacity: 0.52;
}

.landing-preview {
  display: grid;
  gap: 14px;
  align-self: center;
}

.signup-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.58fr);
  gap: 32px;
  align-items: stretch;
  margin: -28px calc(50% - 50vw) 24px;
  padding: 58px max(32px, calc((100vw - 1240px) / 2)) 46px;
  background:
    linear-gradient(90deg, rgba(15, 44, 38, 0.96), rgba(15, 44, 38, 0.84) 48%, rgba(15, 44, 38, 0.58)),
    radial-gradient(circle at 78% 20%, rgba(79, 178, 134, 0.18), transparent 34%),
    #102b25;
  color: #f7fffb;
  overflow: hidden;
}

.signup-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.signup-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 410px;
}

.signup-logo {
  width: min(280px, 68vw);
  height: auto;
  margin-bottom: 6px;
}

.signup-hero .eyebrow {
  color: #83dfb4;
}

.signup-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.signup-hero .lede {
  max-width: 760px;
  margin: 0;
  color: #daeee6;
}

.signup-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.signup-hero .button {
  background: #f7fffb;
  color: #14372f;
}

.signup-hero .button.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #f7fffb;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.signup-product-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 410px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 27, 23, 0.68);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.signup-device-visual {
  position: relative;
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 44px);
  overflow: hidden;
}

.signup-device {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 205px;
  height: 126px;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: #edf7f0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.signup-device::before {
  content: "";
  position: absolute;
  inset: 22px 24px 48px;
  border-radius: 8px;
  background: #15372f;
}

.signup-device::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 22px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #53bd8e 0 28%, #ffcd57 28% 48%, #f36b5f 48% 66%, #b8d4c8 66%);
}

.signup-signal {
  position: absolute;
  left: 50%;
  top: 28px;
  border: 2px solid rgba(131, 223, 180, 0.62);
  border-bottom: 0;
  border-radius: 180px 180px 0 0;
  transform: translateX(-50%);
}

.signup-signal-a {
  width: 110px;
  height: 56px;
}

.signup-signal-b {
  width: 164px;
  height: 82px;
  opacity: 0.72;
}

.signup-product-card dl {
  display: grid;
  grid-template-columns: minmax(110px, 0.6fr) minmax(0, 1.4fr);
  gap: 10px 14px;
  margin: 0;
}

.signup-product-card dt {
  color: #9ad9be;
  font-size: 0.86rem;
  font-weight: 900;
}

.signup-product-card dd {
  margin: 0;
  color: #f7fffb;
  font-weight: 800;
}

.signup-content {
  display: grid;
  gap: 18px;
}

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

.signup-value-grid article,
.signup-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 38px rgba(24, 34, 29, 0.08);
}

.signup-value-grid article {
  padding: 16px;
}

.signup-value-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-primary);
  font-size: 1rem;
}

.signup-value-grid p,
.signup-form-card p {
  margin: 0;
  color: var(--muted);
}

.signup-main-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.62fr);
  align-items: stretch;
}

.signup-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
}

.signup-form-card h2 {
  margin: 0 0 6px;
}

.signup-form-card form {
  display: grid;
  gap: 14px;
}

.signup-agreement {
  overflow: auto;
  max-height: min(56vh, 520px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  scroll-behavior: smooth;
}

.signup-agreement section + section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.signup-agreement h3 {
  position: sticky;
  top: -16px;
  z-index: 1;
  margin: -16px -16px 12px;
  padding: 12px 16px;
  background: #eef5f0;
  color: var(--brand-primary);
  font-size: 0.95rem;
}

.signup-agreement pre {
  margin: 0;
  white-space: pre-wrap;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.55;
}

.signup-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  font-weight: 850;
}

.signup-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--brand-primary);
}

.signup-submit {
  justify-self: start;
  min-height: 44px;
  padding-inline: 18px;
}

.signup-assurance ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-weight: 800;
}

.signup-version {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 14px;
  border-radius: 8px;
  background: #eef5f0;
}

.signup-version span,
.signup-version small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.signup-version strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.policy-links a {
  color: inherit;
}

.signup-inline-note {
  margin: 6px 0 0;
  color: var(--warn);
  font-weight: 700;
}

.signup-complete-shell {
  display: grid;
  gap: 22px;
  margin-top: -20px;
}

.signup-complete-hero {
  display: grid;
  gap: 12px;
  margin: 0 calc(50% - 50vw);
  padding: 42px max(24px, calc((100vw - 1240px) / 2)) 36px;
  background:
    linear-gradient(90deg, rgba(15, 44, 38, 0.96), rgba(15, 44, 38, 0.78)),
    #102b25;
  color: #f7fffb;
}

.signup-complete-hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  line-height: 0.95;
}

.signup-complete-hero .lede {
  max-width: 760px;
  margin: 0;
  color: rgba(247, 255, 251, 0.82);
}

.signup-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.signup-status-row span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 255, 251, 0.88);
  font-size: 0.82rem;
  font-weight: 850;
}

.signup-complete-form {
  display: grid;
  gap: 18px;
}

.signup-form-section {
  gap: 18px;
}

.section-heading {
  display: grid;
  gap: 6px;
}

.section-heading h2 {
  margin: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
}

.signup-field-grid {
  display: grid;
  gap: 14px;
}

.signup-field-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signup-field-grid label,
.address-lookup-panel label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.signup-field-grid input,
.signup-field-grid select,
.address-search-row input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.signup-field-grid small,
.address-lookup-panel small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.signup-identity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef5f0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.signup-identity-strip strong {
  color: var(--ink);
}

.address-lookup-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 22%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-primary) 6%, var(--panel));
}

.address-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.address-search-row .button {
  min-height: 44px;
}

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

.address-result {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.address-result:hover {
  border-color: var(--brand-primary);
}

.address-result span {
  color: var(--muted);
  font-size: 0.82rem;
}

.address-verify-state {
  margin: 0;
  color: var(--brand-primary);
  font-weight: 900;
}

.signup-agreement.compact {
  max-height: 360px;
}

.signup-complete-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-bottom: 24px;
}

.signup-complete-actions.left {
  justify-content: flex-start;
}

.legal-document pre {
  display: block;
  overflow: auto;
  max-height: 70vh;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

/* Live Spectrum generator console */
.live-spectrum-page {
  --spectrum-bg: #07100d;
  --spectrum-panel: #0c1714;
  --spectrum-panel-strong: #101c18;
  --spectrum-line: #293a34;
  --spectrum-green: #50cf72;
  --spectrum-gold: #f1bd2f;
  --spectrum-red: #ff6258;
  --spectrum-blue: #77a8ff;
  display: block;
  background: var(--spectrum-bg);
  color: #e9f0ec;
}

.live-spectrum-page .messages {
  position: fixed;
  z-index: 50;
  top: 72px;
  left: 50%;
  width: min(620px, calc(100% - 32px));
  transform: translateX(-50%);
}

.spectrum-header {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 10px 22px;
  border-bottom: 1px solid #24332e;
  background: #08110f;
}

.spectrum-brand,
.spectrum-brand > span,
.spectrum-header-actions,
.spectrum-stream,
.spectrum-session {
  display: flex;
  align-items: center;
}

.spectrum-brand {
  gap: 9px;
  padding-right: 18px;
  border-right: 1px solid var(--spectrum-line);
}

.spectrum-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.spectrum-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #eafff1;
  font-size: 2.15rem;
}

.spectrum-brand-mark .bi-lightning-charge-fill {
  position: absolute;
  color: #07100d;
  font-size: 1.05rem;
}

.spectrum-brand > span:last-child {
  align-items: flex-start;
  flex-direction: column;
  line-height: 1;
}

.spectrum-brand strong {
  letter-spacing: 0.11em;
  font-size: 1.18rem;
}

.spectrum-brand em {
  color: var(--spectrum-green);
  font-style: normal;
}

.spectrum-brand small {
  margin-top: 4px;
  color: #bdc8c2;
  letter-spacing: 0.14em;
  font-size: 0.54rem;
  text-transform: uppercase;
}

.spectrum-breadcrumb {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aebbb4;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
}

.spectrum-breadcrumb span,
.spectrum-breadcrumb a,
.spectrum-breadcrumb strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.spectrum-breadcrumb strong {
  color: var(--spectrum-green);
}

.spectrum-profile {
  padding: 8px 16px;
  border-left: 1px solid var(--spectrum-line);
  border-right: 1px solid var(--spectrum-line);
  color: var(--spectrum-green);
  font-size: 0.78rem;
  white-space: nowrap;
}

.spectrum-header-actions {
  gap: 16px;
  white-space: nowrap;
}

.spectrum-header-actions > a {
  color: #c8d2cd;
  font-size: 0.78rem;
}

.spectrum-header-actions > a:hover,
.spectrum-header-actions > a:focus-visible {
  color: var(--spectrum-green);
}

.spectrum-stream,
.spectrum-session {
  align-items: flex-start;
  flex-direction: column;
  padding-left: 14px;
  border-left: 1px solid var(--spectrum-line);
  color: #dbe5df;
  font-size: 0.68rem;
}

.spectrum-stream > i {
  position: absolute;
  margin: 3px 0 0 -13px;
  color: var(--spectrum-green);
  font-size: 0.55rem;
}

.spectrum-stream strong {
  color: var(--spectrum-green);
  letter-spacing: 0.04em;
}

.spectrum-stream small,
.spectrum-session small {
  margin-top: 3px;
  color: #87968f;
}

.spectrum-stream--stale strong,
.spectrum-stream--stale > i {
  color: var(--spectrum-red);
}

.spectrum-stream--reconnecting strong,
.spectrum-stream--reconnecting > i {
  color: var(--spectrum-gold);
}

.spectrum-session {
  position: relative;
  padding-left: 30px;
}

.spectrum-session > i {
  position: absolute;
  left: 10px;
  color: var(--spectrum-green);
  font-size: 1.2rem;
}

.live-spectrum-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px;
}

.spectrum-shell {
  display: grid;
  gap: 10px;
}

.spectrum-metrics {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  min-height: 118px;
  overflow: hidden;
  border: 1px solid var(--spectrum-line);
  border-radius: 6px;
  background: var(--spectrum-panel);
}

.spectrum-metric {
  min-width: 0;
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px 13px;
  border-right: 1px solid var(--spectrum-line);
}

.spectrum-metric:last-child {
  border-right: 0;
}

.spectrum-metric > i {
  color: #cbd4cf;
  font-size: 1.65rem;
}

.spectrum-metric > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.spectrum-metric span {
  color: #a8b4ae;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spectrum-metric strong {
  overflow: hidden;
  color: #f5f8f6;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spectrum-metric strong b {
  font-weight: 760;
}

.spectrum-metric strong small {
  font-size: 0.72em;
  font-weight: 500;
}

.spectrum-metric canvas {
  width: 100%;
  height: 18px;
}

.spectrum-metric--status > i,
.spectrum-metric--status strong {
  color: var(--spectrum-green);
}

.spectrum-metric--status strong {
  overflow: visible;
  font-size: clamp(0.88rem, 1.25vw, 1.08rem);
  line-height: 1.05;
  text-overflow: clip;
  white-space: normal;
}

.spectrum-metric--status.is-awaiting > i,
.spectrum-metric--status.is-awaiting strong {
  color: var(--spectrum-gold);
}

.spectrum-workspace {
  height: 690px;
  min-height: 0;
  display: grid;
  grid-template-columns: 205px minmax(620px, 1fr) 220px;
  gap: 10px;
}

.spectrum-workspace > * {
  min-height: 0;
}

.spectrum-power-flow,
.spectrum-chart-panel,
.spectrum-actions,
.spectrum-events {
  border: 1px solid var(--spectrum-line);
  border-radius: 6px;
  background: var(--spectrum-panel);
}

.spectrum-power-flow {
  display: grid;
  grid-template-rows: 1fr 30px 1fr 30px 1fr auto;
  padding: 10px;
  text-align: center;
}

.spectrum-power-flow > div:not(.spectrum-outage) {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.spectrum-power-flow strong,
.spectrum-actions h2,
.spectrum-events header strong {
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.spectrum-power-flow span {
  font-size: 0.78rem;
}

.spectrum-power-flow > div > i {
  margin-top: 7px;
  color: #87928e;
  font-size: 2.55rem;
}

.spectrum-power-flow > div > .bi-motherboard-fill,
.spectrum-power-flow > div > .bi-buildings-fill {
  color: var(--spectrum-green);
}

.flow-line {
  width: 1px;
  height: 30px;
  justify-self: center;
  border-left: 2px dashed #829089;
}

.is-ok {
  color: var(--spectrum-green) !important;
}

.is-warn {
  color: var(--spectrum-gold) !important;
}

.spectrum-outage {
  display: grid;
  gap: 7px;
  margin-top: 4px;
  padding: 8px;
  border: 1px solid #6b5518;
  border-radius: 5px;
  color: var(--spectrum-gold);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.spectrum-chart-panel {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto minmax(360px, 1fr) 52px auto;
  gap: 9px;
  padding: 14px 16px 13px;
}

.spectrum-chart-panel.is-expanded {
  position: fixed;
  z-index: 100;
  inset: 10px;
  border-color: #496057;
}

.spectrum-chart-head {
  display: flex;
  align-items: center;
  gap: 0;
}

.spectrum-chart-head h1 {
  margin: 0 auto 0 0;
  font-size: 1.2rem;
}

.spectrum-range {
  display: flex;
  border: 1px solid var(--spectrum-line);
  border-radius: 5px;
  overflow: hidden;
}

.spectrum-range button,
.spectrum-icon-button,
.spectrum-chart-footer button,
.spectrum-series-pill {
  border: 0;
  background: transparent;
  color: #b9c5bf;
  font: inherit;
  cursor: pointer;
}

.spectrum-range button {
  min-width: 44px;
  padding: 8px 9px;
  border-right: 1px solid var(--spectrum-line);
  font-size: 0.71rem;
  text-transform: uppercase;
}

.spectrum-range button:last-child {
  border-right: 0;
}

.spectrum-range button.is-active,
.spectrum-range button:hover {
  background: #14251e;
  color: var(--spectrum-green);
}

.spectrum-icon-button {
  width: 38px;
  height: 35px;
  margin-left: 8px;
  border: 1px solid var(--spectrum-line);
  border-radius: 4px;
  font-size: 1rem;
}

.spectrum-series-bar {
  min-height: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.spectrum-series-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 0;
  font-size: 0.72rem;
}

.spectrum-series-pill > span,
#signal-picker label > span {
  width: 12px;
  height: 12px;
  border: 1px solid #60716a;
  border-radius: 3px;
  background: transparent;
}

.spectrum-series-pill.is-active > span,
#signal-picker input:checked + span {
  border-color: var(--signal-color);
  background: var(--signal-color);
}

.spectrum-signals {
  position: absolute;
  z-index: 10;
  top: 57px;
  left: 48%;
}

.spectrum-signals summary {
  padding: 7px 10px;
  border: 1px solid #41514b;
  border-radius: 4px;
  background: #0d1714;
  color: #d8e2dc;
  font-size: 0.72rem;
  cursor: pointer;
  list-style: none;
}

.spectrum-signals[open] {
  width: 210px;
  padding: 0 10px 10px;
  border: 1px solid #41514b;
  border-radius: 5px;
  background: #0c1613;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.spectrum-signals[open] summary {
  margin: 0 -10px 8px;
  border: 0;
  border-bottom: 1px solid #41514b;
}

#signal-picker {
  display: grid;
  gap: 2px;
}

#signal-picker label {
  display: grid;
  grid-template-columns: 0 13px 1fr;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
  color: #cbd6d0;
  font-size: 0.69rem;
  cursor: pointer;
}

#signal-picker input {
  opacity: 0;
}

.spectrum-signals small {
  display: block;
  margin-top: 7px;
  color: #83928a;
  font-size: 0.62rem;
  line-height: 1.4;
}

.spectrum-signal-empty {
  margin: 4px 0 8px;
  color: #b7c4bd;
  font-size: 0.68rem;
  line-height: 1.45;
}

.spectrum-signal-empty i {
  margin-right: 5px;
  color: var(--spectrum-gold);
}

.spectrum-chart-wrap {
  position: relative;
  min-height: 360px;
}

.spectrum-chart-empty {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(470px, calc(100% - 48px));
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 24px;
  transform: translate(-50%, -50%);
  border: 1px solid #4c5134;
  border-radius: 6px;
  background: rgba(12, 23, 20, 0.96);
  color: #b6c4bc;
  text-align: center;
  line-height: 1.5;
}

.spectrum-chart-empty > i {
  color: var(--spectrum-gold);
  font-size: 1.8rem;
}

.spectrum-chart-empty strong {
  color: #eef4f1;
  font-size: 0.92rem;
}

.spectrum-chart-empty a {
  color: var(--spectrum-green);
  font-size: 0.75rem;
  font-weight: 700;
}

#telemetry-chart {
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.spectrum-chart-tooltip {
  position: absolute;
  z-index: 8;
  width: 210px;
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid #465750;
  border-radius: 5px;
  background: rgba(10, 18, 16, 0.96);
  color: #dfe8e3;
  font-size: 0.7rem;
  pointer-events: none;
}

.spectrum-chart-tooltip > span {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 7px;
}

.spectrum-chart-tooltip i {
  width: 7px;
  height: 7px;
  margin-top: 3px;
  border-radius: 1px;
  background: var(--signal-color);
}

.spectrum-navigator {
  width: 100%;
  height: 52px;
  border: 1px solid #3b4d45;
  border-radius: 3px;
}

.spectrum-chart-footer {
  display: flex;
  justify-content: space-between;
  color: #a5b2ac;
  font-size: 0.7rem;
}

.spectrum-chart-footer button:hover {
  color: var(--spectrum-green);
}

.spectrum-actions {
  padding: 16px 12px;
}

.spectrum-actions h2 {
  margin: 0 0 16px;
  color: #c8d1cc;
  font-size: 0.78rem;
}

.secure-action-form {
  display: grid;
  gap: 8px;
}

.secure-action-form button {
  min-height: 47px;
  border: 1px solid #3b4a44;
  border-radius: 5px;
  background: #13201c;
  color: #cbd5d0;
  font: 760 0.85rem inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.secure-action-form button i {
  margin-right: 10px;
  font-size: 1.05rem;
}

.secure-action-form .action-start,
.secure-action-form .action-auto {
  border-color: #275f3a;
  color: var(--spectrum-green);
}

.secure-action-form .action-stop {
  border-color: #66312f;
  color: var(--spectrum-red);
}

.secure-action-form button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.secure-action-form h3 {
  margin: 18px 0 0;
  color: #adb9b3;
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
}

.spectrum-readiness {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 17px 4px;
  border-top: 1px solid var(--spectrum-line);
  border-bottom: 1px solid var(--spectrum-line);
  color: #87958e;
  font-size: 0.72rem;
  list-style: none;
}

.spectrum-readiness i {
  margin-right: 8px;
}

.spectrum-controls-unavailable {
  display: grid;
  gap: 10px;
  padding: 18px 14px;
  border: 1px solid #5c5126;
  border-radius: 6px;
  background: rgba(241, 189, 47, 0.06);
  color: #bcc8c2;
  font-size: 0.72rem;
  line-height: 1.5;
}

.spectrum-controls-unavailable > i {
  color: var(--spectrum-gold);
  font-size: 1.4rem;
}

.spectrum-controls-unavailable strong {
  color: #f2d782;
}

.spectrum-protected {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #675216;
  border-radius: 5px;
  color: var(--spectrum-gold);
  font-size: 0.7rem;
}

.spectrum-protected span {
  color: #c4cdc8;
  line-height: 1.45;
}

.spectrum-events {
  min-height: 105px;
  display: grid;
  grid-template-columns: 150px repeat(4, minmax(130px, 1fr)) minmax(220px, 1.2fr);
  overflow: hidden;
}

.spectrum-events > * {
  min-width: 0;
  padding: 14px 18px;
  border-right: 1px solid var(--spectrum-line);
}

.spectrum-events > *:last-child {
  border-right: 0;
}

.spectrum-events header {
  display: grid;
  align-content: center;
  gap: 10px;
  font-size: 0.72rem;
}

.spectrum-events header a {
  color: var(--spectrum-green);
}

.spectrum-events article {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: center;
  font-size: 0.68rem;
}

.spectrum-events article > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.spectrum-events time,
.spectrum-events small {
  color: #89978f;
}

.spectrum-events article strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spectrum-events .spectrum-service {
  grid-template-columns: auto 1fr auto;
}

.spectrum-service span {
  text-transform: uppercase;
}

.spectrum-service i {
  font-size: 1.45rem;
}

.spectrum-range button:focus-visible,
.spectrum-icon-button:focus-visible,
.spectrum-series-pill:focus-visible,
.secure-action-form button:focus-visible,
.spectrum-chart-footer button:focus-visible,
.spectrum-signals summary:focus-visible {
  outline: 2px solid var(--spectrum-gold);
  outline-offset: 2px;
}

@media (max-width: 1250px) {
  .spectrum-header {
    grid-template-columns: auto 1fr auto;
  }

  .spectrum-profile {
    display: none;
  }

  .spectrum-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .spectrum-metric:nth-child(4) {
    border-right: 0;
  }

  .spectrum-metric:nth-child(-n+4) {
    border-bottom: 1px solid var(--spectrum-line);
  }

  .spectrum-workspace {
    grid-template-columns: 175px minmax(540px, 1fr) 195px;
  }
}

@media (max-width: 980px) {
  .spectrum-header {
    grid-template-columns: auto 1fr;
  }

  .spectrum-breadcrumb {
    display: none;
  }

  .spectrum-header-actions {
    justify-content: flex-end;
  }

  .spectrum-workspace {
    height: auto;
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .spectrum-chart-panel {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .spectrum-power-flow,
  .spectrum-actions {
    min-height: 470px;
  }

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

  .spectrum-events header,
  .spectrum-service {
    grid-column: span 1;
  }

  .spectrum-events > *:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 700px) {
  .spectrum-header {
    position: sticky;
    z-index: 30;
    top: 0;
    min-height: 58px;
    padding: 8px 12px;
  }

  .spectrum-brand {
    border-right: 0;
    padding-right: 0;
  }

  .spectrum-brand strong {
    font-size: 0.95rem;
  }

  .spectrum-brand small,
  .spectrum-header-actions > a,
  .spectrum-session {
    display: none;
  }

  .spectrum-stream {
    border-left: 0;
  }

  .live-spectrum-main {
    padding: 8px;
  }

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

  .spectrum-metric {
    min-height: 92px;
    border-right: 1px solid var(--spectrum-line) !important;
    border-bottom: 1px solid var(--spectrum-line);
  }

  .spectrum-metric:nth-child(2n) {
    border-right: 0 !important;
  }

  .spectrum-workspace {
    grid-template-columns: 1fr;
  }

  .spectrum-chart-panel,
  .spectrum-power-flow,
  .spectrum-actions {
    grid-column: 1;
  }

  .spectrum-chart-panel {
    padding: 12px 8px;
  }

  .spectrum-chart-head {
    flex-wrap: wrap;
    gap: 8px;
  }

  .spectrum-chart-head h1 {
    width: 100%;
  }

  .spectrum-range {
    max-width: calc(100% - 76px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .spectrum-range::-webkit-scrollbar {
    display: none;
  }

  .spectrum-range button {
    min-width: 35px;
    padding: 7px 5px;
  }

  .spectrum-icon-button {
    width: 32px;
    height: 32px;
    margin-left: 4px;
  }

  .spectrum-signals {
    top: 105px;
    right: 10px;
    left: auto;
  }

  .spectrum-chart-wrap {
    min-height: 330px;
  }

  .spectrum-power-flow {
    min-height: 520px;
  }

  .spectrum-actions {
    min-height: 0;
  }

  .spectrum-events {
    grid-template-columns: 1fr;
  }

  .spectrum-events > * {
    border-right: 0;
    border-bottom: 1px solid var(--spectrum-line);
  }

  .spectrum-events > *:last-child {
    border-bottom: 0;
  }
}

.landing-preview h2 {
  margin: 0;
  font-size: 1.05rem;
}

.landing-cards {
  display: grid;
  gap: 14px;
}

.landing-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 94%, #000000 6%), var(--panel));
  box-shadow: 0 12px 32px var(--shadow);
}

.landing-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.landing-card strong {
  font-size: 1.05rem;
}

.landing-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.landing-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.landing-card dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.landing-redesign {
  display: block;
  min-height: 0;
}

.landing-redesign .landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 0.88fr) minmax(690px, 1fr);
  gap: clamp(34px, 4.2vw, 70px);
  align-items: center;
  min-height: 628px;
  margin: -28px calc(50% - 50vw) 0;
  padding: 34px clamp(48px, 7vw, 108px) 32px;
  overflow: hidden;
  isolation: isolate;
  color: #f8fffb;
  background:
    linear-gradient(90deg, rgba(4, 11, 10, 0.5) 0%, rgba(4, 11, 10, 0.36) 34%, rgba(4, 11, 10, 0.46) 66%, rgba(4, 11, 10, 0.88) 100%),
    linear-gradient(180deg, rgba(3, 8, 8, 0.1), rgba(3, 8, 8, 0.72)),
    url("../img/landing-generator-site.f401c64678ad.png") center center / cover no-repeat,
    #07100f;
}

.landing-redesign .landing-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(4, 12, 11, 0.92));
}

.landing-hero-copy {
  max-width: 650px;
  align-self: center;
  transform: translateY(-10px);
}

.landing-redesign h1 {
  max-width: 650px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3.25rem, 4.35vw, 4.45rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.landing-redesign .lede {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.04rem, 1.35vw, 1.18rem);
  line-height: 1.55;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.landing-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 650px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.landing-proof-strip span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: rgba(248, 255, 251, 0.9);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.28;
}

.landing-proof-strip .bi {
  color: #58d58c;
  font-size: 1.72rem;
  line-height: 1;
}

.landing-actions .button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #63d89d;
  color: #06130f;
  box-shadow: 0 18px 44px rgba(47, 213, 137, 0.22);
}

.landing-actions .button .bi {
  font-size: 1.25rem;
  line-height: 1;
}

.landing-actions .button.secondary {
  background: rgba(3, 12, 11, 0.42);
  color: #ffffff;
  box-shadow: none;
}

.landing-redesign .landing-preview {
  display: grid;
  gap: 10px;
  align-self: center;
  padding: 12px;
  border: 1px solid rgba(226, 240, 232, 0.22);
  border-radius: 8px;
  background: rgba(5, 12, 11, 0.83);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px);
}

.preview-header,
.landing-redesign .landing-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.preview-header strong {
  display: block;
  color: #ffffff;
  font-size: 1.1rem;
}

.preview-header small {
  color: #91f0bd;
  font-weight: 900;
}

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

.preview-stats article {
  position: relative;
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid rgba(222, 239, 229, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.preview-stats article > .bi {
  position: absolute;
  left: 14px;
  top: 14px;
  color: #6bd98c;
  font-size: 1rem;
}

.preview-stats .warning > .bi {
  color: #f4b548;
}

.preview-stats .muted > .bi {
  color: rgba(220, 228, 223, 0.52);
}

.preview-stats span {
  display: block;
  padding-left: 24px;
  color: rgba(232, 245, 238, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
}

.preview-stats strong {
  display: block;
  margin-top: 6px;
  padding-left: 24px;
  color: #86f2b6;
  font-size: 2.1rem;
  line-height: 1;
}

.preview-stats small {
  display: block;
  margin-top: 2px;
  padding-left: 24px;
  color: rgba(232, 245, 238, 0.72);
  font-size: 0.72rem;
}

.preview-stats .warning strong {
  color: #f4c65d;
}

.preview-stats .muted strong {
  color: #cad7d0;
}

.preview-map {
  position: relative;
  min-height: 102px;
  border: 1px solid rgba(222, 239, 229, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 12, 11, 0.03), rgba(5, 12, 11, 0.22)),
    url("../img/landing-map-strip.4abeff4056b4.png") center center / cover no-repeat,
    #0d211c;
}

.preview-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
}

.preview-section-row small {
  color: rgba(232, 245, 238, 0.7);
  font-size: 0.72rem;
}

.map-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(5, 12, 11, 0.92);
  border-radius: 50%;
  background: #86f2b6;
  box-shadow: 0 0 0 8px rgba(134, 242, 182, 0.16);
}

.pin-a {
  left: 36%;
  top: 28%;
}

.pin-b {
  left: 49%;
  top: 60%;
  background: #f4c65d;
  box-shadow: 0 0 0 8px rgba(244, 198, 93, 0.15);
}

.pin-c {
  left: 79%;
  top: 35%;
  background: #86f2b6;
  box-shadow: 0 0 0 8px rgba(134, 242, 182, 0.16);
}

.landing-redesign .landing-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.landing-redesign .landing-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 6px 10px;
  min-height: 142px;
  padding: 12px;
  border-color: rgba(222, 239, 229, 0.14);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: none;
}

.landing-redesign .landing-card > div:first-child {
  grid-column: 1 / -1;
}

.landing-redesign .landing-card strong {
  color: #ffffff;
  font-size: 0.8rem;
  line-height: 1.15;
}

.landing-redesign .landing-card p {
  grid-column: 1;
  margin: 0;
  color: rgba(232, 245, 238, 0.7);
  font-size: 0.72rem;
}

.landing-card-battery {
  grid-column: 1;
  align-self: end;
  display: grid;
  gap: 2px;
  margin-top: 2px;
}

.landing-card-battery span {
  color: rgba(232, 245, 238, 0.68);
  font-size: 0.7rem;
  font-weight: 800;
}

.landing-card-battery strong {
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1;
}

.landing-redesign .landing-card dl {
  grid-column: 1;
  grid-template-columns: 1fr;
  gap: 2px;
  align-content: end;
  margin: 0;
}

.landing-redesign .landing-card dt {
  color: rgba(232, 245, 238, 0.62);
  font-size: 0.66rem;
}

.landing-redesign .landing-card dd {
  color: #ffffff;
  font-size: 0.9rem;
}

.instrument-gauge {
  --gauge-size: 86px;
  --gauge-value: 50;
  --gauge-angle: calc((var(--gauge-value) * 1.8deg) - 90deg);
  --instrument-needle: #f8fffb;
  position: relative;
  width: var(--gauge-size);
  height: calc(var(--gauge-size) * 0.64);
  justify-self: center;
  overflow: visible;
}

.landing-redesign .landing-card > .instrument-gauge {
  grid-column: 2;
  grid-row: 5;
  align-self: end;
}

.instrument-gauge::before {
  content: "";
  position: absolute;
  inset: 4px 2px auto;
  height: calc(var(--gauge-size) * 0.48);
  border-radius: var(--gauge-size) var(--gauge-size) 0 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.12) 0 7%, transparent 8%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(232, 245, 238, 0.18);
  border-bottom: 0;
}

.instrument-gauge > strong {
  position: absolute;
  left: 50%;
  bottom: -1px;
  z-index: 4;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 0.86rem;
  line-height: 1;
  white-space: nowrap;
}

.gauge-zone {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 1;
  width: calc(var(--gauge-size) - 12px);
  height: calc((var(--gauge-size) - 12px) / 2);
  border-radius: var(--gauge-size) var(--gauge-size) 0 0;
  transform: translateX(-50%);
  background:
    conic-gradient(
      from 270deg at 50% 100%,
      #f05252 0 11%,
      #f0c24d 11% 23%,
      #64da8f 23% 78%,
      #f0c24d 78% 89%,
      #f05252 89% 100%,
      transparent 0
    );
  -webkit-mask: radial-gradient(
    farthest-side at 50% 100%,
    transparent calc(100% - 8px),
    #000 calc(100% - 7px)
  );
  mask: radial-gradient(
    farthest-side at 50% 100%,
    transparent calc(100% - 8px),
    #000 calc(100% - 7px)
  );
}

.instrument-gauge.warning .gauge-zone {
  filter: saturate(1.15) hue-rotate(-8deg);
}

.instrument-gauge.muted .gauge-zone {
  filter: grayscale(0.9) opacity(0.52);
}

.instrument-needle {
  position: absolute;
  left: 50%;
  bottom: 13px;
  z-index: 3;
  width: 3px;
  height: calc(var(--gauge-size) * 0.38);
  border-radius: 999px;
  background: var(--instrument-needle);
  box-shadow: 0 0 0 1px rgba(5, 12, 11, 0.85), 0 0 10px rgba(255, 255, 255, 0.18);
  transform: translateX(-50%) rotate(var(--gauge-angle));
  transform-origin: 50% calc(100% - 1px);
}

.instrument-gauge.warning .instrument-needle {
  --instrument-needle: #ffddd9;
}

.instrument-gauge.muted .instrument-needle {
  --instrument-needle: rgba(232, 245, 238, 0.55);
}

.instrument-hub {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 4;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(5, 12, 11, 0.9);
  border-radius: 50%;
  background: #f8fffb;
  transform: translateX(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
}

.gauge-tick {
  position: absolute;
  z-index: 2;
  color: rgba(232, 245, 238, 0.58);
  font-size: 0.48rem;
  font-weight: 900;
  line-height: 1;
}

.tick-low {
  left: 2px;
  bottom: 18px;
}

.tick-mid {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.tick-high {
  right: 0;
  bottom: 18px;
}

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

.preview-metrics article {
  display: grid;
  align-content: start;
  min-height: 82px;
  padding: 10px 8px 8px;
  border: 1px solid rgba(222, 239, 229, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  text-align: center;
}

.preview-metrics span {
  display: block;
  color: rgba(232, 245, 238, 0.7);
  font-size: 0.62rem;
  font-weight: 800;
}

.preview-metrics .instrument-gauge {
  --gauge-size: 66px;
  height: 44px;
  margin: 4px auto 0;
}

.preview-metrics .gauge-zone {
  bottom: 9px;
  width: calc(var(--gauge-size) - 10px);
  height: calc((var(--gauge-size) - 10px) / 2);
}

.preview-metrics .instrument-needle {
  bottom: 10px;
  height: calc(var(--gauge-size) * 0.34);
}

.preview-metrics .instrument-hub {
  bottom: 5px;
  width: 11px;
  height: 11px;
}

.preview-metrics strong {
  position: static;
  transform: none;
  display: block;
  margin-top: -2px;
  color: #ffffff;
  font-size: 0.88rem;
  line-height: 1.1;
}

.landing-feature-band {
  margin: 0 calc(50% - 50vw) -48px;
  padding: 30px max(48px, calc((100vw - 1240px) / 2)) 30px;
  border-top: 1px solid rgba(102, 212, 165, 0.14);
  background:
    radial-gradient(circle at 50% 0, rgba(102, 212, 165, 0.08), transparent 30rem),
    #09130f;
  color: var(--ink);
}

.landing-feature-kicker {
  margin: 0 0 14px;
  color: #47aa75;
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-feature-band h2 {
  max-width: 780px;
  margin: 0 auto 22px;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.landing-feature-grid article {
  min-height: 142px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 34px;
  background: transparent;
  border-left: 1px solid rgba(102, 212, 165, 0.14);
}

.landing-feature-grid article:first-child {
  border-left: 0;
}

.landing-feature-grid strong {
  display: block;
  font-size: 0.98rem;
}

.landing-feature-grid p {
  grid-column: 2;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--brand-primary);
  font-size: 2.35rem;
  line-height: 1;
}

.page-head {
  margin-bottom: 24px;
}

.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stats article,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.stats span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
}

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

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-title-row span {
  color: var(--muted);
  font-weight: 800;
}

.critical span {
  color: var(--danger);
}

.fleet-dashboard-shell {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: calc(100vh - 64px);
  margin: -28px calc(50% - 50vw) -48px;
  padding: 44px max(32px, calc((100vw - 1240px) / 2)) 58px;
  isolation: isolate;
  color: #f8fffb;
  background:
    linear-gradient(90deg, rgba(4, 12, 11, 0.92) 0%, rgba(5, 17, 15, 0.74) 42%, rgba(5, 17, 15, 0.58) 100%),
    linear-gradient(180deg, rgba(3, 8, 8, 0.18), rgba(3, 8, 8, 0.86)),
    url("../img/dashboard-generator-bg.f11af566140b.png") center center / cover fixed no-repeat,
    #07100f;
}

.fleet-dashboard-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 18%, rgba(102, 212, 165, 0.13), transparent 30rem),
    linear-gradient(180deg, transparent 0%, rgba(3, 8, 8, 0.22) 52%, rgba(3, 8, 8, 0.68) 100%);
}

.fleet-dashboard-head {
  margin-bottom: 0;
}

.fleet-dashboard-head .eyebrow {
  color: #75e0a6;
}

.fleet-dashboard-head h1 {
  color: #ffffff;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
}

.fleet-dashboard-shell .stats {
  margin-bottom: 0;
}

.fleet-dashboard-shell .stats article,
.fleet-dashboard-shell .panel {
  border-color: rgba(222, 239, 229, 0.2);
  background: rgba(8, 20, 17, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
}

.fleet-dashboard-shell .stats span,
.fleet-dashboard-shell .panel h2,
.fleet-dashboard-shell .table-row span:first-child,
.fleet-dashboard-shell .list-row strong {
  color: #ffffff;
}

.fleet-dashboard-shell .stats small,
.fleet-dashboard-shell .table-head,
.fleet-dashboard-shell .table-row,
.fleet-dashboard-shell .list-row span,
.fleet-dashboard-shell .panel p {
  color: rgba(232, 245, 238, 0.72);
}

.fleet-dashboard-shell .table-head,
.fleet-dashboard-shell .table-row,
.fleet-dashboard-shell .list-row {
  border-color: rgba(222, 239, 229, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.fleet-dashboard-shell .table-row:hover,
.fleet-dashboard-shell .list-row:hover {
  border-color: rgba(117, 224, 166, 0.52);
  background: rgba(117, 224, 166, 0.1);
}

.fleet-dashboard-shell .map {
  border: 1px solid rgba(222, 239, 229, 0.18);
  box-shadow: inset 0 0 0 1px rgba(5, 17, 15, 0.32);
}

.portal-admin-main.fleet-dashboard-shell {
  margin: 0;
  min-height: auto;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(90, 213, 149, 0.1), transparent 34rem),
    linear-gradient(135deg, rgba(6, 25, 21, 0.98), rgba(9, 35, 28, 0.94));
}

.portal-admin-main.fleet-dashboard-shell::after {
  display: none;
}

.fleet-onboarding-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(226, 180, 95, 0.34);
  border-radius: 8px;
  background: rgba(42, 35, 18, 0.88);
}

.fleet-onboarding-status h2,
.fleet-onboarding-status p {
  margin: 0;
}

.fleet-onboarding-status .eyebrow {
  margin-bottom: 4px;
  color: #e2b45f;
}

.fleet-onboarding-status > div > p:last-child {
  margin-top: 4px;
  color: rgba(248, 255, 251, 0.72);
}

.fleet-dashboard-shell .portal-admin-toolbar {
  align-items: center;
  padding: 22px 24px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 88% 12%, rgba(226, 180, 95, 0.11), transparent 18rem);
}

.fleet-dashboard-shell .portal-admin-toolbar h1 {
  letter-spacing: -0.035em;
}

.fleet-toolbar-status {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  padding: 10px 12px;
  border: 1px solid rgba(102, 212, 165, 0.22);
  border-radius: 8px;
  background: rgba(102, 212, 165, 0.07);
}

.fleet-toolbar-status > i {
  color: var(--brand-primary);
  font-size: 1.4rem;
}

.fleet-toolbar-status span,
.fleet-toolbar-status strong,
.fleet-toolbar-status small {
  display: block;
}

.fleet-toolbar-status strong {
  color: #f8fffb;
  font-size: 0.82rem;
}

.fleet-toolbar-status small {
  margin-top: 2px;
  color: rgba(237, 247, 241, 0.58);
  font-size: 0.7rem;
  font-weight: 800;
}

.fleet-command-strip {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 18px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(220, 239, 228, 0.13);
  border-radius: 8px;
  background: rgba(3, 18, 15, 0.68);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.fleet-live-signal,
.fleet-command-summary,
.fleet-command-actions,
.fleet-command-summary span,
.fleet-command-actions a {
  display: flex;
  align-items: center;
}

.fleet-live-signal {
  flex: 0 0 auto;
  gap: 8px;
  color: #e8f8f0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fleet-live-signal > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 5px rgba(102, 212, 165, 0.1), 0 0 16px rgba(102, 212, 165, 0.7);
}

.fleet-command-summary {
  min-width: 0;
  gap: 6px;
}

.fleet-command-summary span {
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  border-left: 1px solid rgba(220, 239, 228, 0.12);
  color: rgba(237, 247, 241, 0.62);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.fleet-command-summary i {
  color: var(--brand-accent);
}

.fleet-command-summary strong {
  color: #f8fffb;
}

.fleet-command-actions {
  gap: 6px;
  margin-left: auto;
}

.fleet-command-actions a {
  gap: 6px;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid rgba(102, 212, 165, 0.18);
  border-radius: 7px;
  color: #cae9dc;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.fleet-command-actions a:hover,
.fleet-command-actions a:focus-visible {
  border-color: rgba(102, 212, 165, 0.48);
  background: rgba(102, 212, 165, 0.1);
  color: #fff;
}

.fleet-dashboard-shell .fleet-stats {
  gap: 10px;
}

.fleet-dashboard-shell .fleet-stats article {
  position: relative;
  display: flex;
  min-height: 102px;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 16px 18px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.fleet-dashboard-shell .fleet-stats article::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), transparent 70%);
  opacity: 0.7;
}

.fleet-dashboard-shell .fleet-stats article > i {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(102, 212, 165, 0.18);
  border-radius: 8px;
  background: rgba(102, 212, 165, 0.08);
  color: var(--brand-primary);
  font-size: 1.2rem;
}

.fleet-dashboard-shell .fleet-stats .critical > i {
  border-color: rgba(255, 125, 114, 0.2);
  background: rgba(255, 125, 114, 0.08);
  color: var(--danger);
}

.fleet-dashboard-shell .fleet-stats .running > i {
  border-color: rgba(226, 180, 95, 0.22);
  background: rgba(226, 180, 95, 0.08);
  color: var(--brand-accent);
}

.fleet-dashboard-shell .fleet-stats .offline > i {
  color: #9db3a8;
}

.fleet-dashboard-shell .fleet-stats span {
  line-height: 0.95;
}

.fleet-panel {
  padding: 0;
  overflow: hidden;
}

.fleet-panel-head {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(222, 239, 229, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.fleet-panel-head > div,
.fleet-panel-head > a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fleet-panel-head > div > i {
  color: var(--brand-primary);
}

.fleet-panel .fleet-panel-head h2 {
  margin: 0;
}

.fleet-panel-head > span,
.fleet-panel-head > a {
  color: rgba(232, 245, 238, 0.62);
  font-size: 0.73rem;
  font-weight: 850;
}

.fleet-panel-head > a:hover,
.fleet-panel-head > a:focus-visible {
  color: #fff;
}

.fleet-map-panel .map {
  min-height: 340px;
  border: 0;
  border-radius: 0;
}

.fleet-map-panel .leaflet-tile-pane {
  filter: brightness(0.62) saturate(0.68) contrast(1.08);
}

.fleet-alerts-panel .list,
.fleet-generator-panel .table {
  padding: 12px;
}

.fleet-alerts-panel .list-row {
  position: relative;
  padding-left: 16px;
}

.fleet-alerts-panel .list-row::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand-accent);
}

.fleet-generator-panel .table-row {
  min-height: 50px;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.fleet-generator-panel .table-row:hover {
  transform: translateY(-1px);
}

.fleet-generator-panel .generator-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.fleet-empty-state {
  display: grid;
  min-height: 140px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: rgba(237, 247, 241, 0.58);
  text-align: center;
}

.fleet-empty-state i {
  color: var(--brand-primary);
  font-size: 1.7rem;
}

.fleet-empty-state p {
  margin: 0;
}

.fleet-empty-generators {
  min-height: 100px;
}

.grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

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

.panel h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.token-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  border-color: var(--brand-accent);
}

.token-panel code {
  display: block;
  overflow: auto;
  padding: 14px;
  border-radius: 8px;
  background: #102018;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.provisioning-list {
  display: grid;
  gap: 14px;
}

.provisioning-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.provisioning-main {
  display: grid;
  gap: 12px;
}

.provisioning-main > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e7ece7;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-chip.pending {
  background: #fff1c7;
  color: #7b5000;
}

.status-chip.approved {
  background: #dff4e8;
  color: #105f36;
}

.status-chip.rejected {
  background: #ffe1e1;
  color: var(--danger);
}

.provisioning-actions,
.provisioning-actions form {
  display: grid;
  gap: 10px;
}

.provisioning-actions label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.provisioning-actions input,
.provisioning-actions select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--field-bg);
  color: var(--ink);
  font: inherit;
}

.danger-button {
  border: 1px solid #ffb0a9;
  background: #ff968d;
  color: #2a0d0a;
}

.danger-button:hover,
.danger-button:focus-visible {
  border-color: #ffc2bd;
  background: #ffaaa2;
  color: #210805;
}

.secondary-button {
  border: 1px solid rgba(220, 239, 228, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fffb;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: rgba(220, 239, 228, 0.62);
  background: rgba(255, 255, 255, 0.14);
}

.empty-state {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.provisioning-console {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 0;
  margin: -28px calc(50% - 50vw) -48px;
  min-height: calc(100vh - 74px);
  background:
    radial-gradient(circle at 68% 8%, rgba(87, 210, 146, 0.14), transparent 32%),
    linear-gradient(135deg, #071310 0%, #0b211b 46%, #07110f 100%);
  color: #edf7f1;
}

.provisioning-side {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  gap: 18px;
  min-height: calc(100vh - 74px);
  padding: 26px 12px;
  border-right: 1px solid rgba(220, 239, 228, 0.12);
  background: rgba(3, 15, 13, 0.72);
}

.side-section {
  display: grid;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(220, 239, 228, 0.1);
}

.side-section:last-child {
  border-bottom: 0;
}

.side-section > span {
  padding: 0 10px 6px;
  color: rgba(237, 247, 241, 0.58);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.side-section a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(237, 247, 241, 0.78);
  font-weight: 800;
}

.side-section a:hover,
.side-section a.active {
  border-color: rgba(103, 218, 158, 0.24);
  background: rgba(84, 195, 133, 0.16);
  color: #f8fffb;
}

.side-section a.active {
  box-shadow: inset 3px 0 0 #62d99c;
}

.side-section i {
  width: 18px;
  color: #9ad9be;
  text-align: center;
}

.provisioning-workspace {
  min-width: 0;
  padding: 32px 18px 48px;
}

.provisioning-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 22px;
  align-items: center;
  margin: 0 0 22px;
  padding: 0;
  background: transparent;
  color: #f7fffb;
}

.provisioning-hero::after {
  display: none;
}

.provisioning-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 214px;
}

.provisioning-brandline {
  display: none;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 7px 10px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.provisioning-brandline .brand-mark.compact {
  width: 34px;
  height: 34px;
}

.provisioning-brandline .brand-mark.compact .bi-shield-fill {
  font-size: 34px;
}

.provisioning-brandline .brand-mark.compact .bi-lightning-charge-fill {
  font-size: 19px;
}

.provisioning-brandline span:last-child {
  display: grid;
  gap: 1px;
}

.provisioning-brandline strong {
  color: #f8fffb;
  font-size: 0.98rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1;
}

.provisioning-brandline small {
  color: #7de0ae;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.provisioning-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.5rem, 3.9vw, 4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.provisioning-hero .lede {
  max-width: 680px;
  margin: 0;
  color: #d9eee5;
  font-size: 1rem;
  line-height: 1.52;
}

.provisioning-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.provisioning-hero .button {
  min-height: 44px;
  background: #f7fffb;
  color: #14372f;
}

.provisioning-hero .button.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #f7fffb;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.edgebox-splash {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.provisioning-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.provisioning-pipeline li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 84px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  text-align: center;
}

.provisioning-pipeline span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  border-radius: 999px;
  background: #73daa9;
  color: #082019;
  font-size: 0.82rem;
  font-weight: 950;
}

.provisioning-pipeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 1px;
  background: rgba(220, 239, 228, 0.2);
}

.provisioning-pipeline strong {
  color: #f7fffb;
  font-size: 0.98rem;
  font-weight: 950;
}

.provisioning-pipeline small {
  color: rgba(217, 238, 229, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.32;
}

.provisioning-endpoints {
  display: none;
}

.provisioning-endpoints > div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.provisioning-endpoints span {
  color: #9ad9be;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.provisioning-endpoints code,
.provisioning-endpoints strong {
  color: #f7fffb;
  font-size: 0.88rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.provisioning-token {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(320px, 1.28fr);
  align-items: stretch;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(125, 224, 174, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 18%, rgba(125, 224, 174, 0.12), transparent 22rem),
    linear-gradient(135deg, rgba(5, 25, 20, 0.96), rgba(7, 17, 15, 0.94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.provisioning-token h2,
.provisioning-token p {
  margin: 0;
}

.provisioning-token .eyebrow {
  color: #f0b94f;
}

.token-panel-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.token-panel-copy h2 {
  color: #f8fffb;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  overflow-wrap: anywhere;
}

.token-panel-copy p:not(.eyebrow) {
  color: rgba(237, 247, 241, 0.72);
  font-weight: 800;
}

.token-secret {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.token-secret span {
  grid-column: 1 / -1;
  color: rgba(237, 247, 241, 0.64);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.token-secret code,
.token-endpoints dd {
  min-width: 0;
  border: 1px solid rgba(220, 239, 228, 0.14);
  background: rgba(1, 13, 10, 0.92);
  color: #f8fffb;
  box-shadow: inset 0 0 0 1px rgba(125, 224, 174, 0.06);
}

.token-secret code {
  margin: 0;
  white-space: nowrap;
}

.token-secret button,
.token-endpoints button {
  min-height: 42px;
  border: 1px solid rgba(125, 224, 174, 0.42);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(25, 87, 66, 0.92);
  color: #f8fffb;
  font-weight: 900;
  cursor: pointer;
}

.token-endpoints {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.token-endpoints div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(220, 239, 228, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.token-endpoints dt {
  grid-column: 1 / -1;
  color: rgba(237, 247, 241, 0.64);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.token-endpoints dd {
  margin: 0;
  padding: 10px;
  border-radius: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.provisioning-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.provisioning-stats article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  align-items: center;
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid rgba(220, 239, 228, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #f8fffb;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.provisioning-stats i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(79, 178, 134, 0.12);
  color: var(--brand-primary);
  font-size: 1.45rem;
}

.provisioning-stats span {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-weight: 950;
}

.provisioning-stats small {
  color: rgba(237, 247, 241, 0.64);
  font-weight: 850;
}

.provisioning-shell {
  display: grid;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(220, 239, 228, 0.16);
  border-radius: 8px;
  background: rgba(5, 18, 15, 0.72);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.provisioning-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(220, 239, 228, 0.13);
}

.provisioning-toolbar h2 {
  margin: 0;
  color: #f8fffb;
  font-size: 1.4rem;
}

.provisioning-toolbar p:not(.eyebrow) {
  display: none;
}

.provisioning-refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(220, 239, 228, 0.14);
  border-radius: 8px;
  color: rgba(237, 247, 241, 0.78);
  font-size: 0.84rem;
  font-weight: 850;
}

.provisioning-refresh i {
  color: #7de0ae;
}

.provisioning-filters {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 90px 90px 104px 104px minmax(220px, 1fr) 110px;
  gap: 12px;
  align-items: end;
}

.provisioning-filters::before,
.provisioning-filters::after {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(220, 239, 228, 0.12);
  border-radius: 8px;
  color: rgba(237, 247, 241, 0.74);
  font-size: 0.86rem;
  font-weight: 850;
}

.provisioning-filters::before {
  content: "Pending";
}

.provisioning-filters::after {
  content: "Filters";
  grid-column: 6;
  grid-row: 1;
}

.provisioning-filters label:first-child {
  grid-column: 1;
  grid-row: 1;
}

.provisioning-filters label:first-child span,
.provisioning-filters label:nth-child(2) span {
  display: none;
}

.provisioning-filters label:nth-child(2) {
  grid-column: 5;
  grid-row: 1;
}

.provisioning-filters label,
.approve-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.provisioning-filters input,
.provisioning-filters select,
.approve-form input,
.approve-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(220, 239, 228, 0.16);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.055);
  color: #f8fffb;
  font: inherit;
}

.provisioning-filters input::placeholder {
  color: rgba(237, 247, 241, 0.42);
}

.provisioning-filters select {
  color: transparent;
  text-shadow: 0 0 0 #f8fffb;
}

.provisioning-list {
  gap: 0;
}

.device-provision-card {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(220px, 0.9fr) minmax(220px, 0.9fr) minmax(190px, 0.78fr);
  gap: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(220, 239, 228, 0.13);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.045);
  color: #f8fffb;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.device-provision-head,
.device-provision-actions {
  display: grid;
  gap: 10px;
}

.device-provision-head {
  padding: 14px;
  align-items: start;
  border-right: 1px solid rgba(220, 239, 228, 0.13);
}

.device-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.device-kind-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(125, 224, 174, 0.32);
  border-radius: 7px;
  color: #7de0ae;
  font-size: 0.98rem;
}

.device-provision-head h3 {
  margin: 0;
  font-size: 1.16rem;
}

.device-provision-head p {
  margin: 0;
  color: rgba(237, 247, 241, 0.6);
  font-weight: 800;
}

.device-provision-meta {
  display: none;
}

.device-provision-meta span {
  display: block;
  color: rgba(237, 247, 241, 0.58);
  font-size: 0.78rem;
  font-weight: 850;
}

.device-provision-meta strong {
  display: block;
  margin-top: 4px;
}

.device-provision-grid {
  display: grid;
  grid-template-columns: subgrid;
  gap: 10px;
}

.device-provision-grid {
  display: contents;
}

.device-provision-section,
.approve-drawer,
.reject-drawer,
.cleanup-drawer {
  border: 1px solid rgba(220, 239, 228, 0.13);
  border-radius: 8px;
  background: rgba(5, 18, 15, 0.38);
}

.device-provision-section {
  padding: 14px;
  border-width: 0 1px 0 0;
  border-radius: 0;
  background: transparent;
}

.device-provision-field {
  grid-column: 4;
  grid-row: 1;
}

.device-provision-section h4 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  font-size: 0.92rem;
}

.device-provision-section h4 i {
  color: var(--brand-primary);
}

.device-provision-section dl {
  display: grid;
  grid-template-columns: minmax(64px, 0.52fr) minmax(0, 1.48fr);
  gap: 6px 12px;
  margin: 0;
  font-size: 0.84rem;
}

.device-provision-section dt {
  color: rgba(237, 247, 241, 0.58);
  font-weight: 850;
}

.device-provision-section dd {
  margin: 0;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.approve-drawer,
.reject-drawer,
.cleanup-drawer {
  overflow: hidden;
}

.approve-drawer summary,
.reject-drawer summary,
.cleanup-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  min-height: 38px;
  padding: 8px 11px;
  font-weight: 900;
  font-size: 0.88rem;
  list-style: none;
  white-space: nowrap;
}

.approve-drawer summary span,
.reject-drawer summary span,
.cleanup-drawer summary span,
.action-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.approve-drawer summary::-webkit-details-marker,
.reject-drawer summary::-webkit-details-marker,
.cleanup-drawer summary::-webkit-details-marker {
  display: none;
}

.approve-drawer summary i,
.reject-drawer summary i,
.cleanup-drawer summary i {
  transition: transform 160ms ease;
}

.approve-drawer[open] summary i,
.reject-drawer[open] summary i,
.cleanup-drawer[open] summary i {
  transform: rotate(180deg);
}

.approve-drawer[open] summary,
.reject-drawer[open] summary,
.cleanup-drawer[open] summary {
  border-bottom: 1px solid rgba(220, 239, 228, 0.13);
}

.approve-form,
.reject-form,
.cleanup-form {
  padding: 12px;
}

.device-provision-actions {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
  gap: 8px;
  align-items: start;
  padding: 10px 14px;
  min-width: 0;
  border-top: 1px solid rgba(220, 239, 228, 0.13);
  background: linear-gradient(180deg, rgba(5, 19, 16, 0.72), rgba(4, 15, 13, 0.88));
}

.action-note {
  color: rgba(237, 247, 241, 0.64);
  font-weight: 850;
}

.approve-drawer {
  width: auto;
  min-width: 0;
}

.reject-drawer,
.cleanup-drawer {
  width: auto;
  min-width: 0;
}

.device-provision-actions details[open] {
  grid-column: 1 / -1;
  width: 100%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.approve-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-items: end;
  gap: 12px;
}

.approve-form label {
  min-width: 0;
}

.approve-form small {
  display: block;
  color: rgba(237, 247, 241, 0.6);
  font-size: 0.76rem;
  line-height: 1.35;
}

.approve-form button {
  min-height: 42px;
  align-self: end;
  white-space: nowrap;
}

.reject-form,
.cleanup-form {
  display: grid;
  gap: 8px;
}

.cleanup-form {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  min-height: 74px;
  border: 1px solid rgba(220, 239, 228, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.cleanup-form:has(.danger-button) {
  border-color: rgba(255, 120, 113, 0.24);
  background: rgba(255, 120, 113, 0.055);
}

.cleanup-form strong {
  display: block;
  margin-bottom: 3px;
  color: #f8fffb;
  font-size: 0.88rem;
}

.reject-form p,
.cleanup-form p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
  font-weight: 800;
}

.reject-form button,
.cleanup-form button {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 0.8rem;
  line-height: 1.1;
  white-space: nowrap;
}

.cleanup-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
  padding: 12px;
}

.provisioning-phone-preview {
  padding: 12px 10px 28px 0;
  border-left: 1px solid rgba(220, 239, 228, 0.12);
}

.phone-shell {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 98px);
  overflow: hidden auto;
  padding: 18px;
  border: 1px solid rgba(220, 239, 228, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(6, 22, 19, 0.96), rgba(7, 18, 16, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 24px 70px rgba(0, 0, 0, 0.32);
}

.phone-shell header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(220, 239, 228, 0.12);
}

.phone-shell header .brand-mark.compact {
  width: 30px;
  height: 30px;
}

.phone-shell header .brand-mark.compact .bi-shield-fill {
  font-size: 30px;
}

.phone-shell header .brand-mark.compact .bi-lightning-charge-fill {
  font-size: 17px;
}

.phone-shell header strong {
  margin-right: auto;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.phone-shell section h2 {
  margin: 0 0 8px;
  font-size: 1.36rem;
  line-height: 1;
}

.phone-shell section p:not(.eyebrow) {
  margin: 0;
  color: rgba(237, 247, 241, 0.72);
  font-size: 0.82rem;
  line-height: 1.42;
}

.phone-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phone-pipeline li {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: rgba(237, 247, 241, 0.62);
  font-size: 0.68rem;
  font-weight: 850;
}

.phone-pipeline i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(220, 239, 228, 0.18);
  border-radius: 999px;
  font-size: 0.92rem;
}

.phone-pipeline .active {
  color: #7de0ae;
}

.phone-pipeline .active i {
  border-color: rgba(125, 224, 174, 0.52);
  background: rgba(83, 189, 142, 0.16);
}

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

.phone-stats article,
.phone-queue article {
  border: 1px solid rgba(220, 239, 228, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.phone-stats article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 9px;
  align-items: center;
  min-height: 72px;
  padding: 10px;
}

.phone-stats i {
  grid-row: span 2;
  color: #7de0ae;
  font-size: 1.25rem;
}

.phone-stats strong {
  font-size: 1.35rem;
  line-height: 1;
}

.phone-stats span {
  color: rgba(237, 247, 241, 0.68);
  font-size: 0.68rem;
  line-height: 1.2;
}

.phone-queue {
  display: grid;
  gap: 8px;
}

.phone-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
}

.phone-queue article {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.phone-queue article > div:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9ad9be;
}

.phone-queue article > strong {
  font-size: 0.86rem;
}

.phone-queue small {
  color: rgba(237, 247, 241, 0.62);
  font-size: 0.72rem;
}

.phone-queue dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 6px 0 0;
  padding-top: 6px;
  border-top: 1px solid rgba(220, 239, 228, 0.1);
  font-size: 0.66rem;
}

.phone-queue dt {
  color: rgba(237, 247, 241, 0.56);
  font-weight: 800;
}

.phone-queue dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 850;
}

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

.phone-actions span {
  display: grid;
  place-items: center;
  min-height: 28px;
  border-radius: 5px;
  background: rgba(83, 189, 142, 0.18);
  color: #f8fffb;
  font-size: 0.68rem;
  font-weight: 850;
}

.phone-actions span:last-child {
  background: rgba(184, 50, 50, 0.28);
  color: #ff9a92;
}

.map {
  min-height: 360px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map.small {
  min-height: 280px;
}

.dashboard-builder {
  background: transparent;
}

.generator-hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(23, 68, 59, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.94), rgba(232, 242, 235, 0.86)),
    repeating-linear-gradient(90deg, rgba(79, 178, 134, 0.08) 0 1px, transparent 1px 28px);
  box-shadow: 0 18px 54px rgba(18, 28, 22, 0.09);
}

.generator-hero h1 {
  max-width: 960px;
}

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

.dashboard-toolbar h2 {
  margin: 0 0 4px;
}

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

.layout-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.layout-actions button {
  width: auto;
  min-height: 36px;
  padding: 8px 12px;
  white-space: nowrap;
}

.widget-manager {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 28px rgba(18, 28, 22, 0.06);
}

.widget-manager summary {
  cursor: pointer;
  min-height: 36px;
  padding: 8px 12px;
  color: var(--brand-primary);
  font-weight: 950;
  list-style: none;
  white-space: nowrap;
}

.widget-manager summary::-webkit-details-marker {
  display: none;
}

.widget-manager-grid {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 44px var(--shadow);
}

.widget-manager-grid form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.widget-manager-grid p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.grid-stack {
  min-height: 820px;
}

.dashboard-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(18, 28, 22, 0.08);
}

.card-notifications {
  overflow: auto;
}

.grid-stack-item.ui-draggable-dragging .dashboard-card,
.grid-stack-item.ui-resizable-resizing .dashboard-card {
  border-color: var(--brand-accent);
  box-shadow: 0 14px 36px rgba(18, 28, 22, 0.16);
}

.card-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
  cursor: move;
  user-select: none;
}

.card-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-tools form {
  margin: 0;
}

.card-tools button {
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 999px;
  background: #eef3ef;
  color: var(--muted);
}

.card-tools button:hover {
  background: #ffe8e5;
  color: var(--danger);
}

.layout-locked .card-handle {
  cursor: default;
}

.layout-locked .card-handle span {
  opacity: 0.35;
}

.card-handle h3 {
  margin: 0;
  font-size: 0.98rem;
}

.card-handle span {
  width: 20px;
  height: 14px;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  position: relative;
  flex: 0 0 auto;
}

.card-handle span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  border-top: 2px solid var(--line);
}

.metric-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.metric-value strong {
  font-size: clamp(2rem, 7vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.metric-value span {
  color: var(--muted);
  font-weight: 800;
}

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

.status-value {
  margin-top: auto;
  max-width: 100%;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 850;
  color: var(--brand-primary);
  overflow-wrap: anywhere;
}

.card-gauge {
  padding: 12px;
}

.gauge-card {
  min-height: 100%;
  display: grid;
  align-content: center;
  gap: 6px;
}

.gauge-shell {
  position: relative;
  width: min(100%, 118px);
  margin: 0 auto;
}

.gauge-dial {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 150px 150px 0 0;
  background:
    radial-gradient(circle at 50% 100%, var(--panel) 0 35%, transparent 36%),
    conic-gradient(from 250deg at 50% 100%, #d73737 0deg 38deg, #f2d64b 38deg 62deg, #32b84a 62deg 156deg, #f2d64b 156deg 184deg, #d73737 184deg 220deg, transparent 220deg);
}

.gauge-dial::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: calc(50% - 8px);
  bottom: -8px;
  border-radius: 999px;
  background: #111;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
}

.gauge-needle {
  position: absolute;
  width: 46%;
  height: 5px;
  left: 50%;
  bottom: 0;
  border-radius: 999px;
  background: #111;
  transform-origin: left center;
  transform: rotate(var(--gauge-angle));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.gauge-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.gauge-readout {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}

.gauge-readout strong {
  font-size: 1.2rem;
  line-height: 1;
}

.gauge-readout span {
  color: var(--muted);
  font-weight: 900;
}

.power-chart-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
}

.power-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.power-chart-head strong {
  color: var(--ink);
  font-size: 1rem;
}

.power-chart-card svg {
  width: 100%;
  min-height: 130px;
}

.power-chart-card line {
  stroke: #cbd5ce;
  stroke-width: 1.4;
}

.power-chart-card .grid-line {
  stroke-dasharray: 4 5;
}

.power-chart-card polyline {
  fill: none;
  stroke: var(--brand-primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.power-chart-card circle {
  fill: var(--brand-accent);
  stroke: #fff;
  stroke-width: 2;
}

.power-chart-card text {
  fill: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
}

.chart-range {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.cellular-health-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
}

.cellular-health-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cellular-health-summary strong {
  color: var(--brand-primary);
  font-size: 1.8rem;
  line-height: 1;
}

.cellular-health-summary span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cellular-health-chart {
  width: 100%;
  min-height: 130px;
}

.cellular-health-chart line {
  stroke: #cbd5ce;
  stroke-width: 1.4;
}

.cellular-health-chart .grid-line {
  stroke-dasharray: 4 5;
}

.cellular-health-chart polyline {
  fill: none;
  stroke: var(--brand-primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cellular-health-chart circle {
  stroke: #fff;
  stroke-width: 2;
}

.cellular-health-chart circle.registered {
  fill: var(--brand-accent);
}

.cellular-health-chart circle.offline {
  fill: var(--danger);
}

.cellular-health-chart text {
  fill: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
}

.card-list {
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 2px;
}

.card-list-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.card-list-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.compact-list {
  max-height: 170px;
}

.kv.compact {
  overflow: auto;
  grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 1.2fr);
  gap: 6px 12px;
  margin: 0;
  padding-right: 2px;
}

.kv.compact dt,
.kv.compact dd {
  font-size: 0.9rem;
}

.card-map {
  min-height: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card-map + p {
  font-size: 0.9rem;
}

.journal-card {
  overflow: auto;
  display: grid;
  gap: 14px;
}

.journal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 10px;
}

.journal-add summary,
.journal-entry-tools summary {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.journal-entry-tools summary {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.82rem;
}

.journal-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 780px);
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.journal-form.inline {
  position: absolute;
  right: 0;
  z-index: 20;
  width: min(720px, calc(100vw - 80px));
  box-shadow: 0 12px 36px rgba(18, 28, 22, 0.18);
}

.journal-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.journal-form input,
.journal-form select,
.journal-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.journal-form .wide {
  grid-column: 1 / -1;
}

.journal-entries {
  display: grid;
  gap: 12px;
}

.journal-entry {
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(18, 28, 22, 0.12);
}

.journal-entry-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #dde0dc;
  border-radius: 8px 8px 0 0;
}

.journal-entry-head strong {
  font-size: 0.95rem;
}

.journal-entry-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.journal-entry-tools button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.82rem;
}

.journal-entry-body {
  min-height: 52px;
  padding: 12px;
  font-weight: 700;
}

.notification-card {
  overflow: auto;
  display: grid;
  gap: 12px;
}

.notification-card h4 {
  margin: 0;
  font-size: 1rem;
}

.notification-form,
.notification-add-form,
.notification-readonly {
  display: grid;
  gap: 10px;
}

.notification-head,
.notification-row {
  display: grid;
  grid-template-columns: 30px minmax(180px, 1fr) minmax(220px, 1fr);
  gap: 10px;
  align-items: center;
}

.notification-head {
  color: var(--ink);
  font-size: 0.9rem;
}

.notification-row input[type="email"],
.notification-add-form input[type="email"] {
  width: 100%;
  border: 1px solid #b8c0b8;
  border-radius: 4px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.icon-danger {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  color: #c8d8d0;
  font-size: 1.6rem;
  line-height: 1;
}

.icon-danger:hover {
  background: rgba(255, 125, 114, 0.16);
  color: #ff9c94;
}

.notification-tags {
  min-height: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid #b8c0b8;
  border-radius: 4px;
  background: #fff;
}

.notification-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #256d3a;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.notification-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.preapproval-shell {
  margin-bottom: 18px;
}

.preapproval-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  padding: 14px;
  border-top: 1px solid rgba(220, 239, 228, 0.12);
}

.preapproval-form label {
  display: grid;
  gap: 6px;
  color: rgba(237, 247, 241, 0.66);
  font-size: 0.82rem;
  font-weight: 850;
}

.preapproval-form input,
.preapproval-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(220, 239, 228, 0.16);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.055);
  color: #f8fffb;
  font: inherit;
}

.preapproval-form button {
  min-height: 42px;
  align-self: end;
  border: 1px solid rgba(125, 224, 174, 0.42);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(25, 87, 66, 0.92);
  color: #f8fffb;
  font-weight: 900;
  cursor: pointer;
}

.preapproval-list {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}

.preapproval-list article {
  display: grid;
  grid-template-columns: minmax(160px, 0.6fr) minmax(0, 1fr) minmax(180px, 0.7fr);
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(220, 239, 228, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.preapproval-list small {
  color: rgba(237, 247, 241, 0.64);
  font-weight: 850;
}

.notification-pill span::after {
  content: " ×";
  font-weight: 900;
}

.notification-pill:has(input:not(:checked)) {
  opacity: 0.38;
  filter: grayscale(1);
}

.notification-actions {
  display: flex;
  justify-content: end;
}

.notification-test-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
}

.notification-test-form span {
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.notification-add summary {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.notification-add-form {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  align-items: center;
  margin-top: 10px;
}

.notification-readonly > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.mqtt-card,
.cellular-card,
.cellular-device {
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 5px;
  padding-right: 2px;
}

.cellular-card {
  gap: 12px;
}

.cellular-device {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.mqtt-title-row,
.cellular-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.cellular-title-row > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cellular-title-row span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.mqtt-title-row strong,
.cellular-title-row strong {
  font-size: 1rem;
}

.mqtt-card label,
.cellular-card label,
.mqtt-toggle-row {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.1;
}

.mqtt-card input,
.mqtt-card select,
.cellular-card input,
.cellular-card select {
  width: 100%;
  min-height: 22px;
  border: 1px solid #9ca59e;
  border-radius: 2px;
  padding: 2px 4px;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 700;
}

.mqtt-card input[type="number"],
.cellular-card input[type="number"] {
  max-width: 120px;
}

.mqtt-card select,
.cellular-card select {
  min-height: 24px;
  background: linear-gradient(#ffffff, #e2e2e2);
}

.inline-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  font-size: 0.72rem;
}

.inline-check input {
  width: auto;
  min-height: auto;
}

.cellular-status {
  display: grid;
  grid-template-columns: minmax(80px, 0.8fr) minmax(120px, 1.2fr);
  gap: 5px 10px;
  margin: 8px 0;
  font-size: 0.76rem;
}

.cellular-status dt {
  color: var(--muted);
  font-weight: 850;
}

.cellular-status dd {
  margin: 0;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.mqtt-toggle-row {
  align-items: start;
}

.toggle-pill {
  width: 58px;
  height: 24px;
  display: inline-flex;
  position: relative;
  cursor: pointer;
}

.toggle-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-pill span {
  width: 58px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #34443e;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.toggle-pill span::before {
  content: "OFF";
  margin-left: 24px;
}

.toggle-pill span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

.toggle-pill input:checked + span {
  background: #176b43;
}

.toggle-pill input:checked + span::before {
  content: "ON";
  margin-left: 12px;
}

.toggle-pill input:checked + span::after {
  transform: translateX(34px);
}

.toggle-pill input:disabled + span {
  opacity: 0.55;
  cursor: not-allowed;
}

.mopeka-card {
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
}

.mopeka-brand {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  background: #e6e6e6;
}

.mopeka-brand strong {
  color: #75f000;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0;
}

.mopeka-coils {
  position: relative;
  width: 58px;
  height: 48px;
}

.mopeka-coils::before,
.mopeka-coils::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #2872d8;
  border-radius: 50%;
  transform: skewX(-14deg);
}

.mopeka-coils::after {
  left: 15px;
}

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

.mopeka-title-row strong {
  font-size: 0.92rem;
  line-height: 1.1;
}

.mopeka-card p {
  color: #111;
  font-size: 0.86rem;
  font-weight: 800;
}

.mopeka-card > a {
  justify-self: center;
  color: #0000ee;
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 800;
  text-decoration: underline;
}

.mopeka-settings summary {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  background: #e7ece7;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.mopeka-settings label {
  display: grid;
  gap: 3px;
  margin-top: 7px;
  font-size: 0.76rem;
  font-weight: 900;
}

.mopeka-settings input {
  width: 100%;
  min-height: 24px;
  border: 1px solid #9ca59e;
  border-radius: 3px;
  padding: 3px 5px;
  font: inherit;
}

.mopeka-readings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  margin: 10px 0;
  font-size: 0.78rem;
}

.mopeka-readings dt {
  color: var(--muted);
  font-weight: 800;
}

.mopeka-readings dd {
  margin: 0;
  font-weight: 900;
}

.gateway-card {
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
}

.gateway-device {
  display: grid;
  gap: 10px;
}

.gateway-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #eef4ef;
}

.gateway-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.gateway-head strong {
  font-size: 1rem;
}

.gateway-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.gateway-state {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
}

.gateway-state.online {
  background: #dff4e6;
  color: #17613a;
}

.gateway-state.stale {
  background: #fff1c9;
  color: #7a5200;
}

.gateway-state.offline {
  background: #f2d7d7;
  color: #8f2323;
}

.gateway-card dl {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(120px, 1.2fr);
  gap: 6px 10px;
  margin: 0;
  font-size: 0.82rem;
}

.gateway-card dt {
  color: var(--muted);
  font-weight: 800;
}

.gateway-card dd {
  margin: 0;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.gateway-diagnostics {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.gateway-diagnostics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gateway-diagnostics-head strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.gateway-diagnostics p {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.gateway-diagnostics dl {
  display: grid;
  grid-template-columns: minmax(90px, 0.75fr) minmax(120px, 1.25fr);
  gap: 5px 10px;
  margin: 0;
  font-size: 0.78rem;
}

.gateway-diagnostics dt {
  color: var(--muted);
  font-weight: 800;
}

.gateway-diagnostics dd {
  margin: 0;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.gateway-auth-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.gateway-auth-form label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.gateway-auth-form input {
  width: 100%;
}

.admin-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.admin-summary-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-self: center;
}

.admin-summary-panel a,
.admin-menu-card {
  border: 1px solid rgba(220, 239, 228, 0.15);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  color: #f8fffb;
  text-decoration: none;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
}

.admin-summary-panel a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px;
}

.admin-summary-panel i,
.admin-group-heading .eyebrow i {
  color: var(--brand-primary);
}

.admin-summary-panel span {
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.15;
}

.admin-summary-panel strong {
  font-size: 1.12rem;
}

.admin-menu-group {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid rgba(220, 239, 228, 0.12);
}

.admin-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.admin-group-heading h2 {
  margin: 3px 0 5px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.admin-group-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: rgba(237, 247, 241, 0.68);
  font-size: 0.88rem;
  font-weight: 750;
}

.admin-group-heading > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(220, 239, 228, 0.14);
  border-radius: 999px;
  color: rgba(237, 247, 241, 0.7);
  font-weight: 900;
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.admin-menu-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 142px;
  padding: 13px;
}

.admin-menu-card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.admin-menu-card p {
  margin: 0;
  color: rgba(237, 247, 241, 0.62);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.35;
}

.admin-menu-card > strong {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(125, 224, 174, 0.14);
  color: #7de0ae;
  font-size: 0.95rem;
}

.admin-card-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.admin-card-actions .button {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 0.78rem;
}

.portal-admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 74px);
  background:
    radial-gradient(circle at top left, rgba(90, 213, 149, 0.12), transparent 38%),
    linear-gradient(135deg, #061915 0%, #09231c 48%, #06120f 100%);
}

.portal-admin-nav {
  position: sticky;
  top: 74px;
  align-self: start;
  height: calc(100vh - 74px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px;
  border-right: 1px solid rgba(220, 239, 228, 0.12);
  background: rgba(3, 18, 15, 0.78);
}

.portal-admin-nav-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 14px;
  border-bottom: 1px solid rgba(220, 239, 228, 0.1);
}

.portal-admin-nav-head strong,
.portal-admin-nav-head small {
  display: block;
}

.portal-admin-nav-head strong {
  color: #f8fffb;
  letter-spacing: 0;
  line-height: 1;
}

.portal-admin-nav-head small {
  margin-top: 3px;
  color: rgba(237, 247, 241, 0.55);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-admin-toplink,
.portal-admin-menu-group summary,
.portal-admin-menu-group nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  border-radius: 7px;
  color: rgba(237, 247, 241, 0.82);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 850;
}

.portal-admin-toplink {
  padding: 7px 10px;
}

.portal-admin-toplink:hover,
.portal-admin-toplink.active,
.portal-admin-menu-group nav a:hover {
  background: rgba(125, 224, 174, 0.09);
  color: #fff;
}

.portal-admin-toplink.active {
  box-shadow: inset 3px 0 0 var(--brand-primary);
}

.alert-indicator {
  justify-content: flex-start;
}

.alert-icon-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.alert-icon-wrap i {
  color: rgba(237, 247, 241, 0.72);
  font-size: 1.02rem;
}

.alert-icon-wrap strong {
  position: absolute;
  top: -7px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #061915;
  border-radius: 999px;
  background: #f4bb50;
  color: #06120f;
  line-height: 14px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 950;
  box-shadow: 0 0 0 0 rgba(244, 187, 80, 0.5);
}

.alert-indicator.has-alerts .alert-icon-wrap i {
  color: #f4bb50;
  animation: alert-bell-pulse 1.5s ease-in-out infinite;
}

.alert-indicator.has-alerts .alert-icon-wrap strong {
  animation: alert-badge-pulse 1.5s ease-in-out infinite;
}

@keyframes alert-bell-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(244, 187, 80, 0));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(244, 187, 80, 0.5));
  }
}

@keyframes alert-badge-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(244, 187, 80, 0.42);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(244, 187, 80, 0);
  }
}

.portal-admin-toplink.muted {
  margin-top: 8px;
  color: rgba(237, 247, 241, 0.58);
}

.portal-admin-menu-group {
  border: 1px solid rgba(220, 239, 228, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.portal-admin-menu-group summary {
  justify-content: space-between;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}

.portal-admin-menu-group summary::-webkit-details-marker {
  display: none;
}

.portal-admin-menu-group summary span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.portal-admin-menu-group summary i,
.portal-admin-toplink i {
  color: var(--brand-primary);
}

.portal-admin-menu-group summary strong,
.portal-admin-menu-group nav a strong {
  margin-left: auto;
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(125, 224, 174, 0.12);
  color: #92edbd;
  text-align: center;
  font-size: 0.72rem;
}

.portal-admin-menu-group nav {
  display: grid;
  gap: 2px;
  padding: 0 6px 8px 30px;
}

.portal-admin-menu-group nav a {
  justify-content: space-between;
  min-height: 30px;
  padding: 5px 7px;
  color: rgba(237, 247, 241, 0.66);
  font-size: 0.78rem;
}

.portal-admin-menu-group nav a.active {
  background: linear-gradient(90deg, rgba(91, 209, 144, 0.24), rgba(91, 209, 144, 0.08));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--brand-primary);
}

.portal-admin-main {
  min-width: 0;
  padding: 24px;
}

.portal-admin-toolbar,
.portal-admin-panel {
  border: 1px solid rgba(220, 239, 228, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
}

.portal-admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 18px;
}

.portal-admin-toolbar h1,
.portal-admin-panel h2 {
  margin: 0;
  color: #f8fffb;
}

.portal-admin-toolbar h1 {
  font-size: clamp(1.75rem, 4vw, 2.8rem);
}

.portal-admin-toolbar p:not(.eyebrow),
.portal-admin-panel-head p {
  margin: 6px 0 0;
  color: rgba(237, 247, 241, 0.68);
  font-weight: 750;
}

.portal-admin-toolbar-actions,
.portal-admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.portal-admin-messages {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.portal-admin-messages p {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(125, 224, 174, 0.25);
  border-radius: 8px;
  background: rgba(125, 224, 174, 0.12);
  color: #9df1c5;
  font-weight: 900;
}

.portal-admin-panel {
  margin-top: 14px;
  padding: 14px;
}

.portal-admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}

.portal-admin-table-wrap {
  overflow: auto;
  border: 1px solid rgba(220, 239, 228, 0.1);
  border-radius: 8px;
}

.portal-admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.portal-admin-table th,
.portal-admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(220, 239, 228, 0.09);
  color: rgba(237, 247, 241, 0.78);
  text-align: left;
  vertical-align: top;
  font-size: 0.82rem;
}

.portal-admin-table th:last-child,
.portal-admin-table td:last-child {
  position: sticky;
  right: 0;
  min-width: 132px;
  background: #10281f;
  box-shadow: -12px 0 18px rgba(3, 18, 15, 0.42);
  z-index: 1;
}

.portal-admin-table th:last-child {
  z-index: 2;
}

.portal-admin-table th {
  background: rgba(0, 0, 0, 0.18);
  color: rgba(237, 247, 241, 0.55);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.portal-admin-table td strong,
.portal-admin-table td small {
  display: block;
}

.portal-admin-table td strong {
  color: #fff;
}

.portal-admin-table td small {
  margin-top: 3px;
  color: rgba(237, 247, 241, 0.46);
  font-weight: 800;
}

.portal-inline-actions {
  display: flex;
  margin-top: 8px;
}

.portal-inline-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(220, 239, 228, 0.14);
  border-radius: 7px;
  color: #f8fffb;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 900;
}

.portal-row-actions {
  position: relative;
}

.portal-row-actions summary {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(220, 239, 228, 0.14);
  border-radius: 7px;
  color: #f8fffb;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.portal-row-actions summary::-webkit-details-marker {
  display: none;
}

.portal-row-actions[open] summary {
  background: rgba(125, 224, 174, 0.12);
}

.portal-row-actions a {
  display: flex;
  gap: 8px;
  min-width: 170px;
  padding: 8px 10px;
  color: rgba(237, 247, 241, 0.82);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 850;
}

.portal-row-actions a:hover {
  background: rgba(125, 224, 174, 0.1);
  color: #fff;
}

.portal-row-actions form {
  margin: 0;
}

.portal-row-actions button {
  display: flex;
  gap: 8px;
  width: 100%;
  min-width: 170px;
  min-height: 34px;
  border: 0;
  background: #0b211b;
  color: rgba(237, 247, 241, 0.82);
  padding: 8px 10px;
  text-align: left;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
}

.portal-row-actions button:hover {
  background: rgba(125, 224, 174, 0.1);
  color: #fff;
}

.portal-row-actions[open] {
  z-index: 5;
}

.portal-row-actions[open]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
}

.portal-row-actions[open] > a:first-of-type {
  margin-top: 6px;
}

.portal-row-actions[open] > a {
  background: #0b211b;
  border-right: 1px solid rgba(220, 239, 228, 0.14);
  border-left: 1px solid rgba(220, 239, 228, 0.14);
}

.portal-row-actions[open] > form > button {
  border-right: 1px solid rgba(220, 239, 228, 0.14);
  border-left: 1px solid rgba(220, 239, 228, 0.14);
}

.portal-row-actions[open] > a:first-of-type {
  border-top: 1px solid rgba(220, 239, 228, 0.14);
  border-radius: 8px 8px 0 0;
}

.portal-row-actions[open] > a:last-of-type {
  border-bottom: 1px solid rgba(220, 239, 228, 0.14);
  border-radius: 0 0 8px 8px;
}

.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(239, 194, 87, 0.36);
  background: rgba(239, 194, 87, 0.15);
  color: #fff6cf;
}

.impersonation-banner strong,
.impersonation-banner span {
  display: block;
}

.impersonation-banner strong {
  font-size: 0.92rem;
}

.impersonation-banner span {
  color: rgba(255, 246, 207, 0.72);
  font-size: 0.8rem;
  font-weight: 800;
}

.impersonation-banner form {
  margin: 0;
}

.impersonation-banner button {
  min-height: 34px;
  border: 1px solid rgba(255, 246, 207, 0.34);
  border-radius: 8px;
  background: rgba(5, 19, 16, 0.72);
  color: #fff6cf;
  padding: 7px 12px;
  font-weight: 900;
  cursor: pointer;
}

.portal-admin-impersonate-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(239, 194, 87, 0.28);
  border-radius: 10px;
  background: rgba(239, 194, 87, 0.1);
}

.portal-admin-impersonate-panel strong,
.portal-admin-impersonate-panel span {
  display: block;
}

.portal-admin-impersonate-panel strong {
  color: #fff6cf;
  font-size: 0.95rem;
}

.portal-admin-impersonate-panel span {
  color: rgba(237, 247, 241, 0.62);
  font-size: 0.8rem;
  font-weight: 800;
}

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

.portal-admin-form label {
  display: grid;
  gap: 5px;
  color: rgba(237, 247, 241, 0.72);
  font-size: 0.82rem;
  font-weight: 900;
}

.portal-admin-form label:has(textarea),
.portal-admin-form label:has(select[multiple]) {
  grid-column: 1 / -1;
}

.portal-admin-form input,
.portal-admin-form select,
.portal-admin-form textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(220, 239, 228, 0.18);
  border-radius: 7px;
  background: rgba(5, 19, 16, 0.78);
  color: #f8fffb;
  padding: 8px 10px;
  font: inherit;
}

.portal-admin-form input[type="checkbox"],
.portal-admin-form input[type="radio"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  justify-self: start;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--brand-primary);
  appearance: auto;
}

.portal-admin-form input[type="radio"] {
  border-radius: 999px;
}

.portal-admin-access-fieldset {
  grid-column: 1 / -1;
  border: 1px solid rgba(220, 239, 228, 0.16);
  border-radius: 10px;
  margin: 0;
  padding: 12px;
  background: rgba(4, 21, 17, 0.5);
}

.portal-admin-access-fieldset legend {
  padding: 0 6px;
  color: #efc257;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.portal-admin-form label.portal-admin-access-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  min-height: 0;
  padding: 10px;
  border: 1px solid rgba(220, 239, 228, 0.14);
  border-radius: 8px;
  background: rgba(5, 19, 16, 0.7);
}

.portal-admin-access-card strong,
.portal-admin-access-card small {
  display: block;
}

.portal-admin-access-card strong {
  color: #f8fffb;
  font-size: 0.9rem;
}

.portal-admin-access-card small {
  margin-top: 3px;
  line-height: 1.35;
}

.portal-admin-access-roles {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(220, 239, 228, 0.12);
}

.portal-admin-access-roles h3 {
  margin: 0;
  color: #f8fffb;
  font-size: 1.1rem;
}

.portal-admin-role-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.portal-admin-role-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(220, 239, 228, 0.14);
  border-radius: 9px;
  background: rgba(5, 19, 16, 0.66);
}

.portal-admin-role-card strong,
.portal-admin-role-card small {
  display: block;
}

.portal-admin-role-card strong {
  color: #f8fffb;
  font-size: 0.95rem;
}

.portal-admin-role-card small {
  color: rgba(125, 224, 174, 0.78);
  font-size: 0.75rem;
  font-weight: 900;
}

.portal-admin-role-card p,
.portal-admin-role-help span {
  margin: 0;
  color: rgba(237, 247, 241, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.portal-admin-role-card a,
.portal-admin-generator-permissions-link {
  color: #9ef0c3;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 900;
}

.portal-admin-role-card.is-empty {
  border-style: dashed;
}

.portal-admin-role-help {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 9px;
  background: rgba(125, 224, 174, 0.06);
}

.portal-admin-role-help strong {
  display: block;
  margin-bottom: 4px;
  color: rgba(237, 247, 241, 0.82);
  font-size: 0.78rem;
}

.portal-admin-generator-permissions-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 12px;
}

.portal-admin-reseller-conversion {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(244, 190, 89, 0.24);
  border-radius: 9px;
  background: rgba(244, 190, 89, 0.07);
}

.portal-admin-reseller-conversion > div {
  display: grid;
  gap: 4px;
}

.portal-admin-reseller-conversion strong {
  color: #f4be59;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.portal-admin-reseller-conversion span {
  color: rgba(237, 247, 241, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.portal-admin-reseller-conversion label {
  margin: 0;
}

.portal-admin-reseller-conversion input {
  min-height: 40px;
}

@media (max-width: 980px) {
  .portal-admin-reseller-conversion {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .portal-admin-reseller-conversion {
    grid-template-columns: 1fr;
  }
}

.portal-admin-form textarea {
  min-height: 110px;
}

.portal-admin-form small {
  color: rgba(237, 247, 241, 0.48);
  font-size: 0.72rem;
}

.portal-admin-form em,
.portal-admin-form-errors {
  color: #ffb4a8;
  font-style: normal;
  font-size: 0.78rem;
}

.portal-admin-form-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
  padding-top: 4px;
}

.portal-admin-map-preview {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(220, 239, 228, 0.12);
}

.portal-admin-map-preview h3 {
  margin: 0 0 6px;
  color: #f8fffb;
}

.portal-admin-map-preview p {
  margin: 0;
  color: rgba(237, 247, 241, 0.66);
  font-weight: 800;
}

#portal-admin-site-map {
  min-height: 260px;
  border: 1px solid rgba(220, 239, 228, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

#portal-admin-site-map.is-empty {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(125, 224, 174, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(5, 19, 16, 0.72);
}

#portal-admin-site-map.is-empty::before {
  content: "No coordinates entered";
  color: rgba(237, 247, 241, 0.58);
  font-weight: 900;
}

.provisioning-admin-main .provisioning-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: stretch;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(220, 239, 228, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
}

.provisioning-admin-main .provisioning-hero-copy {
  min-height: auto;
  gap: 10px;
}

.provisioning-admin-main .provisioning-hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 0.96;
}

.provisioning-admin-main .provisioning-hero .lede {
  max-width: 700px;
}

.provisioning-admin-main .edgebox-splash,
.provisioning-admin-main .provisioning-stats article,
.provisioning-admin-main .provisioning-shell,
.provisioning-admin-main .token-panel {
  border-radius: 8px;
  border-color: rgba(220, 239, 228, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.provisioning-admin-main .provisioning-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.provisioning-admin-main .provisioning-shell,
.provisioning-admin-main .token-panel {
  margin-top: 14px;
}

@media print {
  body * {
    visibility: hidden;
  }

  #service-journal-print,
  #service-journal-print * {
    visibility: visible;
  }

  #service-journal-print {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    background: #fff;
  }

  .journal-actions,
  .journal-entry-tools,
  .card-handle {
    display: none !important;
  }
}

.table {
  display: grid;
  gap: 8px;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 14px;
  align-items: center;
}

.table-head {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.table-row,
.list-row,
.alert-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-surface);
  color: var(--ink);
}

.table-row {
  font-weight: 800;
}

.table-row .pill {
  margin: 0;
}

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

.list-row {
  display: grid;
  gap: 4px;
}

.list-row span,
.alert-row p,
.kv dd {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  background: #dfe8e1;
}

.pill.alarm {
  background: #ffe1e1;
  color: var(--danger);
}

.pill.running {
  background: #e6f7d7;
  color: #316d18;
}

.pill.ready,
.pill.healthy {
  background: #dff8e8;
  color: #12633d;
}

.pill.offline {
  background: #e8e8e8;
  color: #5b5b5b;
}

.kv {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) 1.2fr;
  gap: 8px 14px;
}

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

.messages {
  width: min(1240px, calc(100% - 32px));
  margin: 16px auto 0;
}

.message {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff4d5;
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .dashboard-card,
:root[data-theme="dark"] .landing-card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .stats article,
:root[data-theme="dark"] .widget-manager,
:root[data-theme="dark"] .widget-manager-grid form,
:root[data-theme="dark"] .journal-entry,
:root[data-theme="dark"] .gateway-device,
:root[data-theme="dark"] .cellular-device,
:root[data-theme="dark"] .device-provision-card,
:root[data-theme="dark"] .provisioning-shell,
:root[data-theme="dark"] .notification-row input,
:root[data-theme="dark"] .notification-add-form input,
:root[data-theme="dark"] .mqtt-card input,
:root[data-theme="dark"] .mqtt-card select,
:root[data-theme="dark"] .cellular-card input,
:root[data-theme="dark"] .cellular-card select,
:root[data-theme="dark"] .journal-form input,
:root[data-theme="dark"] .journal-form select,
:root[data-theme="dark"] .journal-form textarea,
:root[data-theme="dark"] .gateway-auth-form input,
:root[data-theme="dark"] .gateway-auth-form select,
:root[data-theme="dark"] .provisioning-filters input,
:root[data-theme="dark"] .provisioning-filters select,
:root[data-theme="dark"] .approve-form input,
:root[data-theme="dark"] .approve-form select,
:root[data-theme="dark"] .signup-value-grid article,
:root[data-theme="dark"] .signup-card,
:root[data-theme="dark"] .signup-check,
:root[data-theme="dark"] .signup-version,
:root[data-theme="dark"] .signup-agreement,
:root[data-theme="dark"] .signup-field-grid input,
:root[data-theme="dark"] .signup-field-grid select,
:root[data-theme="dark"] .address-search-row input,
:root[data-theme="dark"] .address-result,
:root[data-theme="dark"] .signup-identity-strip,
:root[data-theme="dark"] .address-lookup-panel {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}

:root[data-theme="dark"] .signup-agreement h3 {
  background: #16231f;
}

:root[data-theme="dark"] .widget-manager summary,
:root[data-theme="dark"] .device-provision-section h4 i,
:root[data-theme="dark"] .portal-admin-menu-group summary i,
:root[data-theme="dark"] .portal-admin-toplink i {
  color: #7de0ae;
}

:root[data-theme="dark"] .generator-hero {
  background:
    linear-gradient(115deg, rgba(17, 28, 24, 0.95), rgba(12, 20, 17, 0.88)),
    repeating-linear-gradient(90deg, rgba(102, 212, 165, 0.08) 0 1px, transparent 1px 28px);
}

:root[data-theme="dark"] .dashboard-card,
:root[data-theme="dark"] .landing-card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .stats article {
  box-shadow: 0 14px 38px var(--shadow);
}

:root[data-theme="dark"] .message {
  background: rgba(226, 180, 95, 0.16);
  color: var(--ink);
  border: 1px solid rgba(226, 180, 95, 0.24);
}

:root[data-theme="dark"] .table-row,
:root[data-theme="dark"] .list-row,
:root[data-theme="dark"] .alert-row {
  background: #16231f;
  color: var(--ink);
  border-color: #314940;
}

:root[data-theme="dark"] .table-row:hover,
:root[data-theme="dark"] .list-row:hover,
:root[data-theme="dark"] .alert-row:hover {
  background: #1c2c27;
  border-color: var(--brand-primary);
}

:root[data-theme="dark"] .list-row span,
:root[data-theme="dark"] .alert-row p,
:root[data-theme="dark"] .kv dd,
:root[data-theme="dark"] .table-head {
  color: #b6cbc0;
}

:root[data-theme="dark"] .card-tools button {
  background: #1b2a25;
  color: var(--muted);
}

:root[data-theme="dark"] .card-tools button:hover {
  background: rgba(255, 125, 114, 0.16);
  color: var(--danger);
}

:root[data-theme="dark"] .pill.offline {
  background: #1f2b27;
  color: #b8c7bf;
}

@media (max-width: 1320px) {
  .landing-redesign .landing-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    min-height: 0;
    padding: 38px clamp(24px, 5vw, 64px) 42px;
  }

  .landing-hero-copy {
    max-width: 760px;
    transform: none;
  }

  .landing-redesign h1 {
    max-width: 760px;
  }

  .landing-redesign .landing-preview {
    width: min(100%, 820px);
    justify-self: center;
  }
}

@media (max-width: 1100px) {
  .fleet-command-strip {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .fleet-command-summary {
    flex: 1 1 auto;
  }

  .fleet-command-actions {
    flex: 1 1 100%;
    justify-content: flex-end;
    margin-left: 0;
  }

  .fleet-dashboard-shell .fleet-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fleet-dashboard-shell .two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .topbar {
    gap: 8px;
    height: auto;
    min-height: 74px;
    flex-wrap: wrap;
    padding: 10px 12px;
    overflow: visible;
  }

  .brand {
    min-width: 0;
    gap: 7px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-mark .bi-shield-fill {
    font-size: 34px;
  }

  .brand-mark .bi-lightning-charge-fill {
    font-size: 19px;
  }

  .brand-lockup {
    max-width: 104px;
  }

  .brand-word {
    font-size: 0.9rem;
  }

  .brand-subtitle {
    font-size: 0.42rem;
    letter-spacing: 0.14em;
  }

  .topbar nav {
    order: 2;
    flex: 1 1 100%;
    gap: 6px;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 2px;
  }

  .topbar .button,
  .topbar .nav-link,
  .topbar nav > a,
  .nav-logout {
    min-height: 34px;
    padding: 6px 8px;
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .topbar nav > a {
    display: inline-flex;
    align-items: center;
    font-weight: 850;
  }

  .topbar .nav-link {
    display: none;
  }

  .landing,
  .landing-redesign .landing-hero,
  .landing-feature-grid,
  .stats,
  .two,
  .table-head,
  .table-row {
    grid-template-columns: 1fr;
  }

  .landing-redesign .landing-hero {
    min-height: 0;
    padding-top: 34px;
    padding-bottom: 42px;
    background-position: 62% center;
  }

  .landing-redesign h1 {
    font-size: clamp(2.65rem, 14vw, 4.1rem);
  }

  .landing-proof-strip {
    grid-template-columns: 1fr;
  }

  .landing-redesign .landing-preview {
    padding: 14px;
  }

  .preview-stats,
  .landing-redesign .landing-cards,
  .preview-metrics {
    grid-template-columns: 1fr;
  }

  .landing-redesign .landing-card dl {
    grid-template-columns: 1fr;
  }

  .landing-feature-band {
    padding-top: 42px;
  }

  .landing-feature-grid article {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 24px 0;
    border-top: 1px solid rgba(102, 212, 165, 0.14);
    border-left: 0;
  }

  .landing-feature-grid article:first-child {
    border-top: 0;
  }

  .fleet-dashboard-shell {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 30px 16px 42px;
    background-attachment: scroll;
    background-position: 68% center;
  }

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

  .dashboard-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .generator-hero {
    padding: 22px 16px;
  }

  .layout-actions {
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
  }

  .layout-actions button {
    flex: 1 1 140px;
  }

  .grid-stack.mobile-stack,
  .grid-stack {
    display: grid;
    gap: 14px;
    min-height: 0;
    height: auto !important;
  }

  .grid-stack.mobile-stack > .grid-stack-item,
  .grid-stack > .grid-stack-item {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .grid-stack.mobile-stack > .grid-stack-item > .grid-stack-item-content,
  .grid-stack > .grid-stack-item > .grid-stack-item-content {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 148px;
  }

  .dashboard-card {
    padding: 12px;
  }

  .card-handle {
    cursor: default;
  }

  .card-tools form,
  .card-tools button,
  .card-handle span {
    display: none;
  }

  .card-gauge {
    min-height: 164px;
  }

  .gauge-card {
    min-height: 150px;
  }

  .power-chart-card svg,
  .cellular-health-chart {
    width: 100%;
    height: auto;
  }

  .card-map {
    min-height: 260px;
  }

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

  .kv,
  .kv.compact,
  .gateway-card dl,
  .gateway-diagnostics dl,
  .cellular-status,
  .mopeka-readings {
    grid-template-columns: minmax(98px, 0.85fr) minmax(0, 1.15fr);
  }

  .journal-form,
  .journal-entry-head {
    grid-template-columns: 1fr;
  }

  .journal-form.inline {
    position: static;
    width: 100%;
  }

  .notification-head,
  .notification-row,
  .notification-add-form {
    grid-template-columns: 1fr;
  }

  .provisioning-row {
    grid-template-columns: 1fr;
  }

  .provisioning-console {
    grid-template-columns: 1fr;
    margin-top: -28px;
  }

  .provisioning-side,
  .provisioning-phone-preview {
    display: none;
  }

  .provisioning-workspace {
    padding: 28px 16px 42px;
  }

  .provisioning-hero {
    grid-template-columns: 1fr;
    margin: 0 0 18px;
    padding: 0;
  }

  .provisioning-hero-copy,
  .edgebox-splash {
    min-height: auto;
  }

  .provisioning-hero h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

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

  .provisioning-pipeline li:not(:last-child)::after {
    display: none;
  }

  .provisioning-token,
  .provisioning-stats,
  .provisioning-filters,
  .preapproval-form,
  .preapproval-list article,
  .token-secret,
  .token-endpoints,
  .token-endpoints div,
  .device-provision-grid,
  .approve-form,
  .signup-hero,
  .signup-value-grid,
  .signup-main-grid,
  .signup-field-grid.two-col,
  .signup-product-card dl {
    grid-template-columns: 1fr;
  }

  .device-provision-card {
    grid-template-columns: 1fr;
    border: 1px solid rgba(220, 239, 228, 0.16);
    border-radius: 8px;
  }

  .device-provision-head,
  .device-provision-section,
  .device-provision-field,
  .device-provision-actions {
    grid-column: auto;
    grid-row: auto;
  }

  .device-provision-head,
  .device-provision-section {
    border-right: 0;
    border-bottom: 1px solid rgba(220, 239, 228, 0.13);
  }

  .device-provision-grid {
    display: grid;
  }

  .device-provision-actions {
    padding: 12px;
  }

  .provisioning-filters::before,
  .provisioning-filters::after {
    display: none;
  }

  .provisioning-filters label:first-child,
  .provisioning-filters label:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }

  .provisioning-filters label:first-child span,
  .provisioning-filters label:nth-child(2) span {
    display: block;
  }

  .provisioning-filters select {
    color: #f8fffb;
    text-shadow: none;
  }

  .signup-hero {
    margin-top: -22px;
    padding: 34px 18px 28px;
  }

  .signup-hero-copy,
  .signup-product-card {
    min-height: auto;
  }

  .provisioning-toolbar,
  .device-provision-head,
  .device-provision-actions,
  .signup-complete-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .address-search-row {
    grid-template-columns: 1fr;
  }

  .device-provision-meta {
    min-width: 0;
    text-align: left;
  }

  .device-provision-section dl,
  .edgebox-splash dl {
    grid-template-columns: 1fr;
  }

  .admin-hero,
  .admin-summary-panel,
  .admin-card-grid,
  .admin-menu-card {
    grid-template-columns: 1fr;
  }

  .admin-menu-group {
    padding: 16px 12px;
  }

  .admin-group-heading {
    align-items: start;
    flex-direction: column;
  }

  .admin-menu-card {
    min-height: auto;
  }

  .admin-card-actions {
    flex-direction: column;
  }

  .portal-admin-shell {
    grid-template-columns: 1fr;
  }

  .portal-admin-nav {
    position: static;
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(220, 239, 228, 0.12);
  }

  .portal-admin-main {
    padding: 14px;
  }

  .portal-admin-main.fleet-dashboard-shell {
    padding: 14px;
  }

  .provisioning-admin-main .provisioning-hero,
  .provisioning-admin-main .provisioning-stats,
  .provisioning-admin-main .edgebox-splash,
  .provisioning-admin-main .provisioning-pipeline {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
  }

  .portal-admin-toolbar,
  .portal-admin-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-admin-toolbar-actions {
    justify-content: flex-start;
  }

  .portal-admin-form {
    grid-template-columns: 1fr;
  }

  .portal-admin-access-grid {
    grid-template-columns: 1fr;
  }

  .fleet-dashboard-shell .portal-admin-toolbar {
    align-items: stretch;
    padding: 18px;
  }

  .fleet-toolbar-status {
    width: 100%;
  }

  .fleet-command-strip {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .fleet-command-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fleet-command-summary span {
    justify-content: center;
    padding: 5px;
    white-space: normal;
    text-align: center;
  }

  .fleet-command-actions {
    flex: 0 0 auto;
    width: 100%;
    margin-left: 0;
  }

  .fleet-command-actions a {
    flex: 1 1 0;
    justify-content: center;
  }

  .fleet-dashboard-shell .fleet-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fleet-dashboard-shell .fleet-stats article {
    min-height: 86px;
  }

  .fleet-map-panel .map {
    min-height: 300px;
  }

  .fleet-generator-panel .table-head {
    display: none;
  }

  .fleet-generator-panel .table-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    align-items: start;
  }

  .fleet-generator-panel .table-row > span {
    min-width: 0;
  }

  .fleet-generator-panel .table-row > span::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: rgba(182, 203, 192, 0.7);
    font-size: 0.64rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

.programmer-approval-panel {
  border-color: color-mix(in srgb, var(--brand-accent) 40%, var(--line));
}

.programmer-approval-count {
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 42%, var(--line));
  border-radius: 6px;
  color: var(--brand-accent);
  background: color-mix(in srgb, var(--brand-accent) 10%, transparent);
  font-size: 0.8rem;
  font-weight: 700;
}

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

.programmer-approval-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(380px, 2fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel) 90%, var(--brand-primary));
}

.programmer-approval-identity,
.programmer-approval-identity span {
  display: block;
}

.programmer-approval-identity strong {
  color: var(--ink);
}

.programmer-approval-identity span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.programmer-approval-row dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.programmer-approval-row dl div {
  min-width: 0;
}

.programmer-approval-row dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.programmer-approval-row dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.82rem;
}

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

@media (max-width: 1180px) {
  .programmer-approval-row {
    grid-template-columns: 1fr;
  }

  .programmer-approval-row dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .programmer-approval-row dl {
    grid-template-columns: 1fr;
  }

  .programmer-approval-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .programmer-approval-actions .button {
    width: 100%;
  }
}

.verification-shell,
.account-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.verification-shell {
  width: min(600px, calc(100% - 32px));
  min-height: calc(100vh - 140px);
  display: grid;
  align-items: center;
}

.verification-card {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: 16px;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(35, 56, 48, 0.72), rgba(17, 28, 24, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.verification-card > *,
.verification-form,
.verification-form input {
  min-width: 0;
  max-width: 100%;
}

.verification-card strong,
.verification-card a {
  overflow-wrap: anywhere;
}

.verification-card h1,
.account-heading h1 {
  margin: 0;
  color: var(--ink);
}

.verification-card > p,
.account-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.verification-icon,
.fleet-onboarding-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(80, 207, 114, 0.42);
  border-radius: 8px;
  background: rgba(80, 207, 114, 0.09);
  color: var(--brand-primary);
  font-size: 1.45rem;
}

.verification-form,
.account-form {
  display: grid;
  gap: 12px;
}

.verification-form label,
.account-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.verification-form input,
.account-form input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 16, 13, 0.72);
  color: var(--ink);
}

.verification-form input {
  width: 100%;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-align: center;
}

.verification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 520px) {
  .verification-shell {
    width: 100%;
    padding-top: 28px;
  }

  .verification-card {
    padding: 20px;
  }

  .verification-form input {
    font-size: 1.4rem;
    letter-spacing: 0.24em;
  }
}

.verification-meta form {
  margin: 0;
}

.verification-help {
  font-size: 0.78rem;
}

.account-heading {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

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

.account-card {
  padding: 22px;
}

.account-card-wide {
  grid-column: 1 / -1;
}

.account-card > header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.account-card > header > i {
  color: var(--brand-primary);
  font-size: 1.35rem;
}

.account-card h2,
.account-card header p {
  margin: 0;
}

.account-card header p,
.account-form p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.account-facts {
  display: grid;
  gap: 0;
  margin: 0 0 18px;
}

.account-facts > div {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.account-facts dt {
  color: var(--muted);
}

.account-facts dd {
  margin: 0;
  color: var(--ink);
  text-align: right;
}

.account-facts .is-ok {
  color: var(--brand-primary);
}

.account-facts .is-warn {
  color: var(--warn);
}

.account-memberships,
.account-customers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.account-memberships article,
.account-customers article,
.account-empty,
.account-onboarding-status {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 15, 12, 0.4);
}

.account-memberships article > i,
.account-empty > i {
  color: var(--brand-primary);
  font-size: 1.25rem;
}

.account-memberships article > div,
.account-customers article > div,
.account-empty > div {
  display: grid;
  gap: 3px;
}

.account-memberships span,
.account-customers span,
.account-customers small,
.account-empty span,
.account-onboarding-status small {
  color: var(--muted);
  font-size: 0.76rem;
}

.account-customers article {
  justify-content: space-between;
}

.account-customers article > div:last-child {
  text-align: right;
}

.account-empty {
  grid-column: 1 / -1;
}

.account-empty a {
  margin-left: auto;
}

.account-onboarding-status {
  flex-wrap: wrap;
}

.fleet-onboarding {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(35, 56, 48, 0.68), rgba(12, 23, 19, 0.95));
}

.fleet-onboarding-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.fleet-onboarding-intro h2,
.fleet-onboarding-intro p,
.fleet-onboarding aside p {
  margin: 0;
}

.fleet-onboarding-intro p:last-child {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.55;
}

.fleet-onboarding-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fleet-onboarding-steps li {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 16, 13, 0.48);
}

.fleet-onboarding-steps li > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}

.fleet-onboarding-steps li.is-complete > span {
  border-color: rgba(80, 207, 114, 0.5);
  background: rgba(80, 207, 114, 0.11);
  color: var(--brand-primary);
}

.fleet-onboarding-steps li.is-active > span {
  border-color: rgba(241, 189, 47, 0.55);
  color: var(--warn);
}

.fleet-onboarding-steps li > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.fleet-onboarding-steps strong {
  font-size: 0.82rem;
}

.fleet-onboarding-steps small {
  color: var(--muted);
  line-height: 1.4;
}

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

.fleet-onboarding aside {
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(241, 189, 47, 0.28);
  border-radius: 6px;
  background: rgba(241, 189, 47, 0.05);
  color: var(--muted);
  line-height: 1.55;
}

.fleet-onboarding aside > i {
  color: var(--warn);
}

@media (max-width: 900px) {
  .fleet-onboarding-intro {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .fleet-onboarding-intro > .button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .fleet-onboarding-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .verification-shell,
  .account-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .verification-meta,
  .account-heading,
  .account-customers article,
  .account-empty {
    align-items: stretch;
    flex-direction: column;
  }

  .account-grid,
  .fleet-onboarding-steps {
    grid-template-columns: 1fr;
  }

  .account-card-wide {
    grid-column: auto;
  }

  .account-customers article > div:last-child {
    text-align: left;
  }

  .account-empty a {
    margin-left: 0;
  }

  .fleet-onboarding-intro {
    grid-template-columns: 1fr;
  }

  .fleet-onboarding-intro > .button {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .fleet-dashboard-shell .fleet-stats,
  .fleet-command-summary,
  .fleet-generator-panel .table-row {
    grid-template-columns: 1fr;
  }

  .fleet-command-summary span {
    justify-content: flex-start;
    border-top: 1px solid rgba(220, 239, 228, 0.08);
    border-left: 0;
    text-align: left;
  }

  .fleet-command-actions {
    align-self: stretch;
    flex-direction: column;
    width: auto;
  }

  .fleet-command-actions a {
    flex: 0 0 auto;
    width: 100%;
  }

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

  .fleet-map-panel .map {
    min-height: 260px;
  }
}

/* Customer signup and staff handoff */
.onboarding-shell {
  --onboarding-mint: #69dda4;
  --onboarding-mint-soft: #9be9c2;
  --onboarding-surface: #0d1916;
  --onboarding-surface-raised: #13211d;
  --onboarding-border: rgba(198, 229, 214, 0.17);
  display: grid;
  gap: 34px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 0 38px;
}

.onboarding-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.onboarding-progress span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #758e83;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.onboarding-progress span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(50% + 22px);
  width: calc(100% - 44px);
  height: 1px;
  background: var(--onboarding-border);
}

.onboarding-progress b {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--onboarding-border);
  border-radius: 50%;
  background: #0a1512;
  color: inherit;
}

.onboarding-progress .is-current,
.onboarding-progress .is-complete {
  color: var(--onboarding-mint);
}

.onboarding-progress .is-current b {
  border-color: var(--onboarding-mint);
  box-shadow: 0 0 0 4px rgba(105, 221, 164, 0.1);
}

.onboarding-progress .is-complete b {
  border-color: var(--onboarding-mint);
  background: var(--onboarding-mint);
  color: #07130f;
}

.onboarding-progress .is-complete::after {
  background: rgba(105, 221, 164, 0.52) !important;
}

.onboarding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  gap: clamp(38px, 6vw, 88px);
  align-items: start;
}

.onboarding-layout--form {
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, 0.58fr);
}

.onboarding-layout--compact {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

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

.onboarding-main > .eyebrow,
.onboarding-aside .eyebrow {
  color: var(--onboarding-mint);
  font-size: 0.76rem;
}

.onboarding-main h1 {
  max-width: 760px;
  margin: 0;
  color: #f4fbf7;
  font-size: clamp(2.35rem, 5vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.onboarding-lede {
  max-width: 680px;
  margin: 18px 0 0;
  color: #a9bbb2;
  font-size: 1.05rem;
  line-height: 1.65;
}

.onboarding-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.onboarding-legal-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.onboarding-legal-links > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--onboarding-border);
  border-radius: 8px;
  background: var(--onboarding-surface-raised);
}

.onboarding-legal-links > a:hover,
.onboarding-legal-links > a:focus-visible {
  border-color: rgba(105, 221, 164, 0.58);
  background: #172822;
  outline: none;
}

.onboarding-legal-links > a > i:first-child {
  color: var(--onboarding-mint);
  font-size: 1.35rem;
}

.onboarding-legal-links span {
  display: grid;
  gap: 3px;
}

.onboarding-legal-links strong {
  color: #eef8f2;
}

.onboarding-legal-links small,
.onboarding-legal-links > a > i:last-child {
  color: #82978c;
}

.onboarding-policy-details {
  border: 1px solid var(--onboarding-border);
  border-radius: 8px;
  background: #0b1613;
}

.onboarding-policy-details summary {
  padding: 13px 15px;
  color: #b8c9c0;
  font-weight: 800;
  cursor: pointer;
}

.onboarding-policy-details .signup-agreement {
  max-height: 390px;
  margin: 0 12px 12px;
  background: #0a1311;
}

.onboarding-consent {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.onboarding-consent legend {
  margin-bottom: 9px;
  color: #dceae2;
  font-size: 0.84rem;
  font-weight: 900;
}

.onboarding-consent label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 15px;
  border: 1px solid var(--onboarding-border);
  border-radius: 8px;
  background: var(--onboarding-surface-raised);
  color: #d5e3dc;
  font-size: 0.9rem;
  line-height: 1.48;
  cursor: pointer;
}

.onboarding-consent label:hover,
.onboarding-consent label:focus-within {
  border-color: rgba(105, 221, 164, 0.58);
  background: #172822;
}

.onboarding-consent input {
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--onboarding-mint);
}

.onboarding-consent a {
  color: var(--onboarding-mint-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.onboarding-primary,
.onboarding-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  width: fit-content;
}

.button.onboarding-primary,
button.onboarding-primary {
  border: 1px solid #86e8b8;
  background: var(--onboarding-mint);
  color: #07130f;
  box-shadow: 0 12px 30px rgba(105, 221, 164, 0.12);
}

.button.onboarding-secondary,
button.onboarding-secondary {
  border: 1px solid var(--onboarding-border);
  background: #121f1b;
  color: #deebe4;
}

.onboarding-aside {
  overflow: hidden;
  border: 1px solid var(--onboarding-border);
  border-radius: 8px;
  background: var(--onboarding-surface);
}

.onboarding-aside > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid var(--onboarding-border);
}

.onboarding-aside > div {
  padding: 22px;
}

.onboarding-aside h2 {
  margin: 0 0 10px;
  color: #edf7f1;
  font-size: 1.4rem;
}

.onboarding-aside p:not(.eyebrow) {
  margin: 0;
  color: #9eb1a7;
  line-height: 1.6;
}

.onboarding-next-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.onboarding-next-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--onboarding-border);
}

.onboarding-next-steps li:first-child {
  border-top: 0;
}

.onboarding-next-steps i {
  color: var(--onboarding-mint);
  font-size: 1.2rem;
}

.onboarding-next-steps span {
  display: grid;
  gap: 4px;
}

.onboarding-next-steps strong {
  color: #ecf6f0;
  font-size: 0.9rem;
}

.onboarding-next-steps small {
  color: #8fa39a;
  line-height: 1.45;
}

.onboarding-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid rgba(105, 221, 164, 0.24);
  border-radius: 8px;
  background: rgba(105, 221, 164, 0.06);
}

.onboarding-identity > i {
  color: var(--onboarding-mint);
  font-size: 1.4rem;
}

.onboarding-identity span {
  display: grid;
  gap: 3px;
}

.onboarding-identity small {
  color: #8fa39a;
}

.onboarding-identity strong {
  color: #eef8f2;
  overflow-wrap: anywhere;
}

.onboarding-details-form {
  gap: 16px;
}

.onboarding-form-section {
  display: grid;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--onboarding-border);
  border-radius: 8px;
  background: var(--onboarding-surface);
}

.onboarding-form-section > header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.onboarding-form-section > header > span {
  color: var(--onboarding-mint);
  font-size: 0.75rem;
  font-weight: 900;
}

.onboarding-form-section h2,
.onboarding-form-section p {
  margin: 0;
}

.onboarding-form-section h2 {
  color: #eff8f3;
  font-size: 1.2rem;
}

.onboarding-form-section p {
  margin-top: 4px;
  color: #8fa39a;
  font-size: 0.88rem;
}

.onboarding-shell .signup-field-grid label {
  color: #dce9e2;
}

.onboarding-shell .signup-field-grid input,
.onboarding-shell .signup-field-grid select,
.onboarding-shell .signup-field-grid input:hover,
.onboarding-shell .signup-field-grid select:hover,
.onboarding-shell .signup-field-grid input:focus,
.onboarding-shell .signup-field-grid select:focus {
  border-color: #2d433a;
  background: #08120f;
  color: #f1f8f4;
  box-shadow: none;
}

.onboarding-shell .signup-field-grid input:focus,
.onboarding-shell .signup-field-grid select:focus {
  border-color: var(--onboarding-mint);
  outline: 2px solid rgba(105, 221, 164, 0.16);
  outline-offset: 1px;
}

.onboarding-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.onboarding-actions > a:not(.button) {
  color: #a9bbb2;
  font-weight: 800;
}

.onboarding-actions--left {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 24px;
}

.onboarding-actions form {
  margin: 0;
}

.onboarding-resume {
  display: grid;
  gap: 4px;
  width: fit-content;
  color: #8fa39a;
  font-size: 0.86rem;
}

.onboarding-resume form {
  margin: 0;
}

.onboarding-resume button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--onboarding-mint-soft);
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.onboarding-resume button:hover,
.onboarding-resume button:focus-visible {
  background: transparent;
  color: #c4f5dc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.onboarding-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 18px 0 0;
  color: var(--onboarding-mint);
  font-weight: 900;
}

.onboarding-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 30px 0 0;
  border-top: 1px solid var(--onboarding-border);
  border-left: 1px solid var(--onboarding-border);
}

.onboarding-summary div {
  min-width: 0;
  padding: 15px;
  border-right: 1px solid var(--onboarding-border);
  border-bottom: 1px solid var(--onboarding-border);
  background: var(--onboarding-surface);
}

.onboarding-summary dt {
  color: #80958a;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.onboarding-summary dd {
  margin: 5px 0 0;
  color: #edf6f1;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.onboarding-timeline {
  display: grid;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.onboarding-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  min-height: 82px;
}

.onboarding-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 16px;
  width: 1px;
  background: rgba(105, 221, 164, 0.34);
}

.onboarding-timeline li > span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid var(--onboarding-mint);
  border-radius: 50%;
  background: #0c1815;
  color: var(--onboarding-mint);
}

.onboarding-timeline li.is-complete > span {
  background: var(--onboarding-mint);
  color: #07130f;
}

.onboarding-timeline li div {
  display: grid;
  align-content: start;
  gap: 4px;
  padding-top: 4px;
}

.onboarding-timeline strong {
  color: #edf6f1;
}

.onboarding-timeline small {
  color: #8fa39a;
  line-height: 1.45;
}

.onboarding-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid rgba(105, 221, 164, 0.24);
  border-radius: 8px;
  background: rgba(105, 221, 164, 0.06);
}

.onboarding-notice i {
  color: var(--onboarding-mint);
}

.onboarding-notice p {
  margin: 0;
  color: #a9bbb2;
  line-height: 1.55;
}

.onboarding-notice strong {
  color: #ebf7f0;
}

@media (max-width: 900px) {
  .onboarding-layout,
  .onboarding-layout--form {
    grid-template-columns: 1fr;
  }

  .onboarding-aside {
    display: grid;
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  }

  .onboarding-aside > img {
    height: 100%;
    aspect-ratio: auto;
    border-right: 1px solid var(--onboarding-border);
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .onboarding-shell {
    gap: 26px;
    padding-top: 4px;
  }

  .onboarding-progress span {
    font-size: 0.66rem;
  }

  .onboarding-progress span:not(:last-child)::after {
    left: calc(50% + 18px);
    width: calc(100% - 36px);
  }

  .onboarding-progress b {
    width: 29px;
    height: 29px;
  }

  .onboarding-main h1 {
    font-size: 2.45rem;
  }

  .onboarding-legal-links,
  .signup-field-grid.two-col,
  .onboarding-summary {
    grid-template-columns: 1fr;
  }

  .onboarding-aside {
    display: block;
  }

  .onboarding-aside > img {
    height: auto;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--onboarding-border);
  }

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

  .onboarding-identity > small {
    grid-column: 1 / -1;
  }

  .onboarding-form-section {
    padding: 17px;
  }

  .onboarding-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .onboarding-actions .button,
  .onboarding-actions button,
  .onboarding-actions form {
    width: 100%;
  }
}

/* Compact operations shell for low-resolution laptops and short displays. */
@media (min-width: 801px) and (max-width: 1180px),
  (min-width: 801px) and (max-height: 760px) {
  .topbar {
    height: 60px;
    padding: 0 18px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    height: 38px;
    max-width: 158px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-mark .bi-shield-fill {
    font-size: 38px;
  }

  .brand-mark .bi-lightning-charge-fill {
    font-size: 21px;
  }

  .brand-word {
    font-size: 1.35rem;
  }

  .brand-subtitle {
    font-size: 0.46rem;
  }

  .topbar nav {
    gap: 8px;
  }

  .topbar .button,
  .topbar .nav-link,
  .topbar nav > a,
  .nav-logout {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .portal-admin-shell {
    grid-template-columns: 205px minmax(0, 1fr);
    min-height: calc(100vh - 60px);
  }

  .portal-admin-nav {
    top: 60px;
    height: calc(100vh - 60px);
    gap: 5px;
    padding: 9px 8px;
  }

  .portal-admin-nav-head {
    gap: 7px;
    padding: 4px 6px 9px;
  }

  .portal-admin-nav-head .brand-mark {
    width: 32px;
    height: 32px;
  }

  .portal-admin-nav-head .brand-mark .bi-shield-fill {
    font-size: 32px;
  }

  .portal-admin-nav-head .brand-mark .bi-lightning-charge-fill {
    font-size: 18px;
  }

  .portal-admin-nav-head strong {
    font-size: 0.84rem;
  }

  .portal-admin-nav-head small {
    font-size: 0.6rem;
  }

  .portal-admin-toplink,
  .portal-admin-menu-group summary {
    min-height: 30px;
    padding: 6px 8px;
    font-size: 0.76rem;
  }

  .portal-admin-menu-group nav {
    padding: 0 5px 6px 24px;
  }

  .portal-admin-menu-group nav a {
    min-height: 27px;
    padding: 4px 6px;
    font-size: 0.7rem;
  }

  .portal-admin-main,
  .portal-admin-main.fleet-dashboard-shell {
    padding: 14px;
  }

  .fleet-dashboard-shell .portal-admin-toolbar {
    gap: 12px;
    padding: 14px 16px;
  }

  .fleet-dashboard-shell .portal-admin-toolbar h1 {
    font-size: clamp(1.75rem, 3.3vw, 2.15rem);
  }

  .fleet-dashboard-shell .portal-admin-toolbar p:not(.eyebrow) {
    margin-top: 4px;
    font-size: 0.8rem;
  }

  .fleet-toolbar-status {
    min-width: 154px;
    gap: 7px;
    padding: 8px 10px;
  }

  .fleet-toolbar-status > i {
    font-size: 1.1rem;
  }

  .fleet-onboarding {
    gap: 12px;
    padding: 16px;
  }

  .fleet-onboarding-intro {
    gap: 11px;
  }

  .fleet-onboarding-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .fleet-onboarding-intro h2 {
    font-size: 1.25rem;
  }

  .fleet-onboarding-intro p:last-child {
    font-size: 0.76rem;
    line-height: 1.38;
  }

  .fleet-onboarding-intro > .button,
  .fleet-onboarding-actions .button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.74rem;
  }

  .fleet-onboarding-steps {
    gap: 7px;
  }

  .fleet-onboarding-steps li {
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 7px;
    padding: 10px;
  }

  .fleet-onboarding-steps li > span {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
  }

  .fleet-onboarding-steps li > div {
    gap: 3px;
  }

  .fleet-onboarding-steps strong {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .fleet-onboarding-steps small {
    font-size: 0.67rem;
    line-height: 1.28;
  }

  .fleet-onboarding-actions {
    gap: 7px;
  }

  .fleet-onboarding aside {
    gap: 7px;
    padding: 9px 10px;
    font-size: 0.72rem;
    line-height: 1.35;
  }
}
/* NoGrid Instrument Console generator profile */
.instrument-page {
  margin: 0;
  background: #070b18;
  color: #e8edf7;
  min-height: 100vh;
}

.instrument-main { max-width: none; padding: 0; }
.instrument-shell { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); background: #070b18; }
.instrument-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: #0d172a; border-right: 1px solid #243049; }
.instrument-brand { min-height: 74px; padding: 18px 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #243049; color: #f8fbff; text-decoration: none; }
.instrument-brand img { max-width: 168px; max-height: 40px; object-fit: contain; }
.instrument-brand > span { position: relative; width: 34px; height: 38px; display: inline-grid; place-items: center; color: #68de91; font-size: 28px; }
.instrument-brand > span .bi-lightning-charge-fill { position: absolute; color: #fff; font-size: 15px; }
.instrument-brand strong { font-size: 22px; text-transform: uppercase; }
.instrument-brand strong em { color: #62d889; font-style: normal; }
.instrument-sidebar nav { display: grid; padding: 12px 0; }
.instrument-sidebar nav a, .instrument-back { min-height: 42px; display: flex; align-items: center; gap: 13px; padding: 0 20px; border-left: 4px solid transparent; color: #aab6ca; text-decoration: none; font-size: 14px; }
.instrument-sidebar nav a i, .instrument-back i { width: 20px; font-size: 18px; }
.instrument-sidebar nav a:hover, .instrument-sidebar nav a.is-active { background: #13213b; color: #7faeff; border-left-color: #478cff; }
.instrument-back { margin-top: auto; border-top: 1px solid #243049; border-left: 0; }

.instrument-workspace { min-width: 0; }
.instrument-header { min-height: 44px; padding: 0 16px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 22px; background: #0b1020; border-bottom: 1px solid #222d45; }
.instrument-header > div:first-child { display: flex; align-items: baseline; gap: 18px; }
.instrument-header > div:first-child strong { font-size: 15px; }
.instrument-header > div:first-child span, .instrument-header time { color: #77859e; font-size: 12px; }
.instrument-header-actions { display: flex; align-items: center; gap: 14px; }
.instrument-header-actions > a { color: #8190aa; font-size: 17px; }
.instrument-connection { min-width: 106px; min-height: 26px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 11px; border: 1px solid #273550; border-radius: 999px; color: #c8d1e1; font-size: 11px; text-transform: uppercase; }
.instrument-connection i { width: 8px; height: 8px; border-radius: 50%; background: #7b8799; }
.instrument-connection.is-live i { background: #35d677; box-shadow: 0 0 10px #35d677; }
.instrument-connection.is-reconnecting i { background: #f2b441; }
.instrument-connection.is-stale i { background: #f05454; }
.instrument-banner { min-height: 30px; display: flex; align-items: center; gap: 9px; padding: 0 16px; background: #af5907; color: #fff3df; font-size: 12px; }
.instrument-banner.is-critical { background: #a22b35; }
.instrument-content { padding: 12px; }
.instrument-title { min-height: 30px; display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.instrument-title i { color: #4c8fff; font-size: 18px; }
.instrument-title h1 { margin: 0; font-size: 18px; }
.instrument-title span { margin-left: auto; color: #71809a; font-size: 11px; text-transform: uppercase; }
.instrument-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 8px; }
.instrument-card { min-width: 0; min-height: 178px; padding: 12px; overflow: hidden; background: #0f1528; border: 1px solid #273149; border-radius: 8px; box-shadow: inset 0 1px rgba(255,255,255,.02), 0 8px 24px rgba(0,0,0,.12); }
.instrument-card > span { display: block; color: #8998b3; font-size: 11px; text-align: center; text-transform: uppercase; }
.instrument-summary { display: flex; flex-direction: column; justify-content: center; text-align: center; }
.instrument-summary > strong { margin: 12px 0; font-size: 25px; font-weight: 700; text-transform: uppercase; }
.instrument-summary dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding-top: 8px; border-top: 1px solid #28334d; }
.instrument-summary dl div { min-width: 0; }
.instrument-summary dt { color: #62708b; font-size: 9px; text-transform: uppercase; }
.instrument-summary dd { margin: 3px 0 0; overflow: hidden; color: #b6c2d5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.instrument-events-card p { display: grid; grid-template-columns: 14px minmax(0,1fr) auto; align-items: center; gap: 7px; margin: 12px 0 0; font-size: 11px; }
.instrument-events-card p i { color: #5fca85; font-size: 8px; }
.instrument-events-card p .bi-exclamation-circle-fill { color: #f15d61; }
.instrument-events-card p b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.instrument-events-card p time { color: #6d7a93; }
.instrument-events-card p.is-empty { display: block; margin-top: 54px; color: #66738d; text-align: center; }

.instrument-dial, .instrument-arc, .instrument-meter { display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.dial { --gauge-value: 0deg; --needle-angle: -120deg; position: relative; width: 126px; height: 126px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at center, #11182a 0 52%, transparent 53%), conic-gradient(from 210deg, #e85155 0 42deg, #e8bc31 42deg 64deg, #4cc875 64deg var(--gauge-value), #252d3a var(--gauge-value) 240deg, transparent 240deg); box-shadow: inset 0 0 0 8px #171e2c, 0 0 0 1px #303a4d, 0 7px 16px #050815; }
.dial::after { content: ""; position: absolute; width: 10px; height: 10px; border: 2px solid #52627d; border-radius: 50%; background: #11182a; }
.dial i { position: absolute; width: 44%; height: 2px; right: 50%; top: calc(50% - 1px); transform: rotate(var(--needle-angle)); transform-origin: right center; background: #e3e9f3; }
.dial b, .arc b { z-index: 2; margin-top: 34px; font-size: 22px; }
.dial small, .arc small { z-index: 2; margin-top: 62px; position: absolute; color: #73819b; font-size: 9px; text-transform: uppercase; }
.arc { --gauge-value: 0deg; --needle-angle: -120deg; position: relative; width: 142px; height: 104px; display: grid; place-items: center; overflow: hidden; }
.arc::before { content: ""; position: absolute; top: 20px; width: 126px; height: 126px; border-radius: 50%; background: radial-gradient(circle at center, #0f1528 0 56%, transparent 57%), conic-gradient(from 210deg, #d7464e 0 42deg, #ddb83b 42deg 64deg, #4fc87c 64deg var(--gauge-value), #252d3a var(--gauge-value) 240deg, transparent 240deg); }
.arc i { position: absolute; top: 81px; left: 50%; z-index: 1; width: 50px; height: 2px; transform: rotate(var(--needle-angle)); transform-origin: left center; background: #eef3fb; }
.arc b { margin-top: 42px; }
.arc small { margin-top: 72px; }
.instrument-meter .meter { position: relative; width: 100%; height: 20px; margin: auto 0 18px; overflow: hidden; border: 1px solid #303b52; border-radius: 4px; background: linear-gradient(90deg, #7f2930 0 52%, #78602b 52% 70%, #2d724b 70% 88%, #765b27 88%); }
.instrument-meter .meter::before { content: ""; position: absolute; inset: 0; right: auto; width: var(--meter-value, 0%); background: rgba(255,255,255,.15); border-right: 2px solid #fff; }
.instrument-meter .meter i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(255,255,255,.18) calc(10% - 1px) 10%); }
.instrument-meter strong { font-size: 24px; }
.instrument-readouts { grid-column: span 2; }
.instrument-readouts > div { height: calc(100% - 22px); display: grid; grid-template-columns: repeat(3,1fr); align-items: center; }
.instrument-readouts p { margin: 0; text-align: center; border-right: 1px solid #28334d; }
.instrument-readouts p:last-child { border-right: 0; }
.instrument-readouts b { display: block; font-size: 28px; }
.instrument-readouts small { color: #72809a; text-transform: uppercase; }
.instrument-health, .instrument-service { display: flex; flex-direction: column; justify-content: center; text-align: center; }
.instrument-health strong, .instrument-service strong { margin: 12px 0 4px; font-size: 18px; }
.instrument-health strong.is-live { color: #5de08c; }
.instrument-health strong.is-stale { color: #f06d6d; }
.instrument-health small, .instrument-service small { color: #78869e; }
.instrument-health p { margin: 12px 0 0; color: #a8b4c7; font-size: 11px; }
.instrument-service a { margin-top: 18px; color: #6e9fff; font-size: 11px; text-decoration: none; }

@media (max-width: 1100px) {
  .instrument-shell { grid-template-columns: 70px minmax(0,1fr); }
  .instrument-brand { justify-content: center; padding: 12px; }
  .instrument-brand strong, .instrument-sidebar nav a span, .instrument-back span { display: none; }
  .instrument-sidebar nav a, .instrument-back { justify-content: center; padding: 0; }
  .instrument-grid { grid-template-columns: repeat(3, minmax(150px,1fr)); }
}

@media (max-width: 720px) {
  .instrument-shell { display: block; }
  .instrument-sidebar { position: sticky; z-index: 20; width: 100%; height: auto; flex-direction: row; align-items: center; overflow-x: auto; border-right: 0; border-bottom: 1px solid #243049; }
  .instrument-brand { min-width: 58px; min-height: 52px; border: 0; }
  .instrument-brand > span { width: 28px; font-size: 24px; }
  .instrument-sidebar nav { display: flex; padding: 0; }
  .instrument-sidebar nav a { min-width: 50px; min-height: 52px; border: 0; border-bottom: 3px solid transparent; }
  .instrument-sidebar nav a.is-active { border-bottom-color: #478cff; }
  .instrument-back { min-width: 50px; min-height: 52px; margin: 0 0 0 auto; border: 0; }
  .instrument-header { grid-template-columns: minmax(0,1fr) auto; min-height: 58px; }
  .instrument-header > div:first-child { display: block; min-width: 0; }
  .instrument-header > div:first-child strong, .instrument-header > div:first-child span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .instrument-header > time { display: none; }
  .instrument-content { padding: 8px; }
  .instrument-grid { grid-template-columns: 1fr 1fr; }
  .instrument-card { min-height: 160px; }
  .instrument-readouts { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  .instrument-grid { grid-template-columns: 1fr; }
  .instrument-card, .instrument-readouts { grid-column: auto; }
  .instrument-readouts > div { grid-template-columns: 1fr; gap: 10px; padding-top: 14px; }
  .instrument-readouts p { padding: 8px 0; border-right: 0; border-bottom: 1px solid #28334d; }
  .instrument-readouts p:last-child { border-bottom: 0; }
  .instrument-header-actions > a { display: none; }
  .instrument-title span { display: none; }
}

/* High-fidelity instrument faces */
.instrument-dial .dial,
.instrument-arc .arc {
  width: 160px;
  height: 142px;
  overflow: visible;
  background: none;
  box-shadow: none;
}

.instrument-arc { min-height: 190px; }
.instrument-arc .arc { height: 132px; }
.instrument-dial .dial::after,
.instrument-arc .arc::before,
.instrument-dial .dial > i,
.instrument-arc .arc > i { display: none; }
.instrument-svg-gauge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gauge-face-svg { stroke: #323d53; stroke-width: 2; filter: drop-shadow(0 8px 9px rgba(0,0,0,.55)); }
.gauge-track-svg { fill: none; stroke: #263044; stroke-width: 13; stroke-linecap: round; }
.gauge-zone-svg { fill: none; stroke-width: 8; opacity: .95; }
.gauge-zone-svg.is-danger { stroke: #ef4f59; }
.gauge-zone-svg.is-warn { stroke: #f0c84a; }
.gauge-zone-svg.is-normal { stroke: #4ed383; }
.gauge-zone-svg.is-muted { stroke: #3a465b; }
.gauge-value-svg { fill: none; stroke: #73a8ff; stroke-width: 3; stroke-linecap: round; }
.gauge-tick-svg { stroke: #71809a; stroke-width: 1; }
.gauge-tick-svg.is-major { stroke: #d7dfed; stroke-width: 1.6; }
.gauge-label-svg { fill: #73829d; font-size: 6px; text-anchor: middle; dominant-baseline: middle; }
.gauge-needle-svg { stroke: #f7fbff; stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(115,168,255,.9)); }
.gauge-hub-ring-svg { fill: #07101c; stroke: #7789a8; stroke-width: 2; }
.gauge-hub-svg { fill: #63a0ff; filter: drop-shadow(0 0 5px rgba(99,160,255,.8)); }
.instrument-dial .dial b,
.instrument-arc .arc b { margin-top: 46px; padding: 2px 8px; border-radius: 4px; background: rgba(5,9,18,.76); font-size: 20px; text-shadow: 0 0 12px rgba(115,168,255,.45); }
.instrument-dial .dial small { margin-top: 78px; }
.instrument-arc .arc b { margin-top: 54px; }
.instrument-arc .arc small { margin-top: 82px; }
.instrument-dial.is-empty .gauge-value-svg,
.instrument-arc.is-empty .gauge-value-svg { opacity: 0; }

.instrument-meter .meter {
  height: 28px;
  overflow: visible;
  border-color: #40506a;
  background: linear-gradient(90deg, rgba(225,63,72,.30) 0 54%, rgba(238,192,62,.28) 54% 70%, rgba(65,205,119,.28) 70% 90%, rgba(238,192,62,.28) 90%);
  box-shadow: inset 0 2px 7px rgba(0,0,0,.8), 0 0 0 3px #0a0f1d, 0 0 0 4px #27344a;
}
.instrument-meter .meter::before { display: none; }
.instrument-meter .meter > i { z-index: 3; opacity: .55; }
.meter-progress { position: absolute; inset: 4px auto 4px 4px; z-index: 1; width: calc(var(--meter-value, 0%) - 8px); min-width: 0; border-radius: 2px; background: linear-gradient(90deg, #50a7ff, #62e7ab); box-shadow: 0 0 12px rgba(91,212,190,.55); transition: width .35s ease; }
.meter-pointer { position: absolute; z-index: 4; top: -8px; left: var(--meter-value, 0%); width: 2px; height: 42px; background: #f7fbff; box-shadow: 0 0 7px #79acff; transform: translateX(-1px); transition: left .35s ease; }
.meter-pointer::before { content: ""; position: absolute; top: -2px; left: -4px; border: 5px solid transparent; border-top-color: #f7fbff; }
.meter-scale { width: 100%; display: flex; justify-content: space-between; margin-top: -10px; color: #6f7e98; font-size: 8px; text-transform: uppercase; }
.instrument-meter > strong { margin-top: 8px; text-shadow: 0 0 14px rgba(115,168,255,.35); }
