:root {
  --bg: #f3f6f8;
  --panel: #ffffff;
  --text: #182230;
  --muted: #667085;
  --line: #d7dee7;
  --line-strong: #b8c4d1;
  --brand: #08756b;
  --brand-dark: #075e57;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --warn: #805000;
  --warn-soft: #fff4d6;
  --ok: #067647;
  --ok-soft: #e4f3ec;
  --soft: #f0f4f6;
  --focus: #1570ef;
  --shadow: 0 4px 16px rgba(31, 44, 71, 0.055);
}

@media (max-width: 760px) {
  .app-tabs {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }

  .app-tab.mobile-secondary {
    display: none;
  }

  .mobile-more-tab {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 62px;
    border: 0;
    border-top: 3px solid transparent;
    padding: 9px 2px 8px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
  }

  .mobile-more-tab.active,
  .mobile-more-tab[aria-expanded="true"] {
    border-top-color: var(--brand);
    background: #f3faf9;
    color: var(--brand-dark);
  }

  .mobile-more-menu:not([hidden]) {
    position: fixed;
    right: 10px;
    bottom: 72px;
    z-index: 30;
    display: grid;
    width: min(310px, calc(100vw - 20px));
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(31, 44, 71, 0.2);
  }

  .mobile-more-menu button {
    display: grid;
    gap: 2px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 12px 14px;
    background: #ffffff;
    color: var(--text);
    text-align: left;
  }

  .mobile-more-menu button:last-child {
    border-bottom: 0;
  }

  .mobile-more-menu button:hover {
    background: #f5f8f9;
  }

  .mobile-more-menu small {
    color: var(--muted);
    font-size: 11px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

body.auth-pending {
  min-height: 100vh;
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(243, 246, 248, 0.92), rgba(243, 246, 248, 0.96)),
    radial-gradient(circle at top left, #b9ded8 0, transparent 40%);
}

.auth-card {
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: 8px;
  padding: 30px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(31, 44, 71, 0.12);
}

.auth-card h1 {
  margin: 4px 0 8px;
  font-size: 30px;
}

.auth-intro {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 15px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 28%, transparent);
  outline-offset: 2px;
}

.shell {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.topbar,
.panel-head,
.modal-head,
.toolbar-actions,
.modal-actions,
.actions,
.tag-row {
  display: flex;
  align-items: center;
}

.topbar,
.panel-head,
.modal-head {
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  margin-bottom: 12px;
}

.topbar-tools,
.operator-chip {
  display: flex;
  align-items: center;
}

.topbar-tools {
  justify-content: flex-end;
  gap: 10px;
}

.operator-chip {
  align-items: flex-start;
  flex-direction: column;
  min-width: 105px;
  line-height: 1.2;
}

.operator-chip span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.quiet-button {
  border: 0;
  padding: 7px 4px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.quiet-button:hover {
  color: var(--text);
}

.app-tabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.app-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 10px 17px 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.app-tab:hover {
  color: var(--text);
  background: #f8fafb;
}

.app-tab.active {
  border-bottom-color: var(--brand);
  color: var(--brand-dark);
}

.nav-badge {
  min-width: 21px;
  border-radius: 999px;
  padding: 2px 6px;
  background: var(--soft);
  color: #425466;
  font-size: 11px;
  line-height: 1.4;
}

.nav-label-short {
  display: none;
}

.mobile-more-tab,
.mobile-more-menu {
  display: none;
}

.protection-strip {
  display: grid;
  grid-template-columns: minmax(230px, 1.1fr) minmax(420px, 2fr) auto;
  align-items: center;
  gap: 22px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  padding: 15px 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.protection-strip h2 {
  margin: 2px 0 0;
  font-size: 17px;
}

.protection-facts,
.system-facts {
  display: grid;
  margin: 0;
}

.protection-facts,
.storage-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.protection-facts > div,
.system-facts > div {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 2px 14px;
}

.protection-facts dt,
.system-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.protection-facts dd,
.system-facts dd {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  font-weight: 750;
}

.system-modal {
  width: min(820px, calc(100% - 32px));
}

.operator-modal {
  width: min(640px, calc(100% - 32px));
}

.router-backup-modal {
  width: min(720px, calc(100% - 32px));
}

.system-section {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.system-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.system-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.system-tabs button {
  min-height: 42px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 9px 13px 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.system-tabs button.active {
  border-bottom-color: var(--brand);
  color: var(--brand-dark);
}

.system-panel {
  display: grid;
  gap: 20px;
}

.system-panel[hidden] {
  display: none;
}

.inline-actions,
.system-team-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-team-heading {
  justify-content: space-between;
}

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

.operator-row-copy {
  display: grid;
  min-width: 0;
}

.operator-row-copy span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.operator-row.inactive {
  opacity: 0.68;
}

.backup-notice,
.backup-router-summary {
  border: 1px solid #d8c47a;
  border-radius: 6px;
  background: #fff9df;
  color: #5f5120;
  padding: 11px 13px;
}

.backup-router-summary {
  display: grid;
  gap: 3px;
}

.backup-router-summary span {
  font-size: 13px;
}

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

.router-backup-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.router-backup-copy span,
.router-backup-copy small {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.router-backup-copy span {
  font-size: 12px;
}

.router-backup-copy small {
  font-size: 11px;
}

.sync-retry-action {
  justify-self: start;
  margin-top: 9px;
}

.app-tab.active .nav-badge {
  background: #d9efec;
  color: var(--brand-dark);
}

.app-view {
  min-width: 0;
}

.view-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.view-heading h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
}

h2 {
  margin-bottom: 5px;
  font-size: 18px;
}

h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

.status-pill,
.tag,
.state {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 750;
}

.status-pill {
  background: var(--soft);
  color: #31465a;
}

.status-pill.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.status-pill.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

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

.storage-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid #e3bc63;
  border-left: 4px solid #c8871e;
  border-radius: 8px;
  padding: 13px 15px;
  background: #fffaf0;
}

.storage-alert[hidden] {
  display: none;
}

.storage-alert p {
  margin: 4px 0 0;
  color: #5d5140;
}

.storage-alert[data-tone="critical"] {
  border-color: #dfa6a1;
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.metric[data-tone="warning"] {
  border-top: 3px solid #d18a21;
  padding-top: 13px;
}

.metric[data-tone="stop"],
.metric[data-tone="critical"] {
  border-top: 3px solid var(--danger);
  padding-top: 13px;
}

.sync-attention {
  margin-bottom: 14px;
  border: 1px solid #e3bc63;
  border-left: 4px solid #c8871e;
  border-radius: 8px;
  padding: 14px;
  background: #fffaf0;
  box-shadow: var(--shadow);
}

.sync-attention-head,
.sync-attention-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sync-attention-head {
  align-items: flex-start;
  margin-bottom: 10px;
}

.sync-attention-head h2 {
  margin-bottom: 0;
}

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

.sync-attention-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #ead5a5;
  border-radius: 7px;
  padding: 11px;
  background: #ffffff;
}

.sync-attention-row > i {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: #c8871e;
  box-shadow: 0 0 0 4px #fff2d5;
}

.sync-attention-row[data-tone="danger"] > i {
  background: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}

.sync-attention-row p {
  margin: 5px 0 2px;
  color: #425466;
}

.sync-attention-row small {
  color: var(--muted);
}

.sync-attention-row .error-text {
  margin-top: 5px;
}

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

.attention-clear,
.attention-row {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f9fbfc;
  padding: 12px 13px;
}

.attention-clear {
  display: grid;
  gap: 3px;
  border-left: 4px solid var(--ok);
}

.attention-clear span,
.attention-row p,
.attention-row > span:last-child {
  color: var(--muted);
}

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

.attention-row p {
  margin: 3px 0 0;
}

.attention-indicator {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: #d18a21;
  box-shadow: 0 0 0 4px var(--warn-soft);
}

.metric,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  padding: 15px;
  width: 100%;
  color: var(--text);
  text-align: left;
}

.attention-metric {
  border-top: 3px solid #dfb34f;
  padding-top: 13px;
}

.metric span,
.panel p,
.muted,
.section-heading p {
  color: var(--muted);
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 25px;
}

.metric small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.panel {
  padding: 16px;
  margin-bottom: 14px;
}

.panel-head {
  margin-bottom: 14px;
}

.panel-head p,
.section-heading p {
  margin-bottom: 0;
}

.history-router-field {
  width: min(240px, 100%);
}

.history-control-stack {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.history-controls,
.chart-legends {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(42px, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.history-range-options {
  grid-template-columns: repeat(5, minmax(42px, 1fr));
}

.history-custom-range {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  align-items: end;
  gap: 8px;
  width: min(650px, 100%);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px;
  background: #f8fafb;
}

.history-custom-range button {
  min-height: 38px;
}

.history-custom-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.history-custom-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 10px;
  font-size: 12px;
}

.segmented button {
  min-height: 38px;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 7px 10px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 750;
}

.segmented button:first-child {
  border-left: 0;
}

.segmented button.active {
  background: var(--brand);
  color: #ffffff;
}

.observability-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
  border-block: 1px solid var(--line);
}

.summary-stat {
  min-width: 0;
  padding: 12px 14px;
}

.summary-stat + .summary-stat {
  border-left: 1px solid var(--line);
}

.summary-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.summary-stat strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
  gap: 22px;
}

.history-chart-section,
.event-section {
  min-width: 0;
}

.event-section {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

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

.chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.chart-legend i {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
}

.chart-legend.loss i {
  height: 9px;
  background: #d18a21;
  opacity: 0.55;
}

.chart-threshold {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.chart-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 8px;
}

.chart-kpi {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  background: #f8fafb;
}

.chart-kpi span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.chart-kpi strong {
  display: inline-flex;
  margin-top: 3px;
  font-size: 17px;
}

.history-chart-wrap {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid #e5eaef;
  border-radius: 8px;
  padding: 8px 6px 2px;
  background: #fbfcfd;
}

.history-chart-wrap .empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
}

.history-chart {
  display: block;
  width: 100%;
  min-height: 220px;
}

.chart-grid-line {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.chart-grid-line.faint {
  stroke: var(--line);
  stroke-dasharray: 4 5;
}

.latency-line {
  fill: none;
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  filter: drop-shadow(0 2px 2px rgba(8, 117, 107, 0.14));
}

.latency-area {
  fill: rgba(8, 117, 107, 0.09);
  pointer-events: none;
}

.loss-bar {
  fill: #d18a21;
  opacity: 0.42;
}

.outage-zone {
  fill: var(--danger-soft);
}

.threshold-line {
  stroke: #ba7a1a;
  stroke-width: 1;
  stroke-dasharray: 5 4;
}

.chart-crosshair {
  stroke: #5f7387;
  stroke-width: 1;
  stroke-dasharray: 3 3;
  pointer-events: none;
}

.chart-focus-point {
  fill: #ffffff;
  stroke: var(--brand);
  stroke-width: 3;
  pointer-events: none;
}

.chart-hit-area {
  fill: transparent;
  cursor: crosshair;
}

.chart-hit-area:focus {
  outline: none;
  stroke: var(--focus);
  stroke-width: 1;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 210px;
  transform: translate(-50%, calc(-100% - 10px));
  border: 1px solid #203444;
  border-radius: 8px;
  padding: 11px 12px;
  background: #102432;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.24);
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
}

.chart-tooltip.align-left {
  transform: translate(0, calc(-100% - 10px));
}

.chart-tooltip.align-right {
  transform: translate(-100%, calc(-100% - 10px));
}

.chart-tooltip.below {
  transform: translate(-50%, 10px);
}

.chart-tooltip.align-left.below {
  transform: translate(0, 10px);
}

.chart-tooltip.align-right.below {
  transform: translate(-100%, 10px);
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip strong {
  margin-bottom: 5px;
  color: #d7e4ea;
  font-size: 11px;
  font-weight: 650;
}

.chart-tooltip .tooltip-reading {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.chart-label {
  fill: var(--muted);
  font-family: inherit;
  font-size: 10px;
}

.event-list {
  display: grid;
  align-content: start;
  gap: 0;
}

.event-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.event-row:first-child {
  border-top: 0;
  padding-top: 3px;
}

.event-marker {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--line-strong);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.event-row[data-state="healthy"] .event-marker {
  background: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.event-row[data-state="degraded"] .event-marker {
  background: #d18a21;
  box-shadow: 0 0 0 1px #d18a21;
}

.event-row[data-state="down"] .event-marker,
.event-row[data-state="offline"] .event-marker {
  background: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}

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

.event-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.event-copy strong,
.event-copy span {
  display: block;
}

.event-copy strong {
  overflow-wrap: anywhere;
}

.event-copy span,
.event-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.sync-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sync-status-row {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #ffffff;
}

.sync-status-row > div:first-child {
  display: grid;
  gap: 2px;
  margin-bottom: 9px;
}

.sync-status-row > div:first-child span {
  color: var(--muted);
  font-size: 12px;
}

.sync-counts,
.sync-preview-counts {
  display: flex;
  gap: 10px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  flex-wrap: wrap;
}

.sync-counts strong,
.sync-preview-counts strong {
  color: var(--text);
}

.sync-automation-note {
  margin: 8px 0 0 !important;
  color: #425466 !important;
  font-size: 12px;
  font-weight: 750;
}

.sync-preview-modal {
  width: min(980px, calc(100% - 24px));
}

.sync-preview-summary {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: var(--soft);
  font-weight: 700;
}

.sync-preview-summary.warning-summary {
  border-color: #e5c678;
  background: var(--warn-soft);
  color: var(--warn);
}

.sync-preview-summary.danger-summary {
  border-color: #e7aaa5;
  background: var(--danger-soft);
  color: var(--danger);
}

.sync-preview-summary.ok-summary {
  border-color: #8fc8c2;
  background: #eef8f6;
  color: var(--brand-dark);
}

.sync-preview-list {
  display: grid;
  gap: 12px;
}

.sync-preview-router {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.sync-preview-router > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  background: #f8fafc;
}

.sync-preview-router > header div {
  display: grid;
  gap: 2px;
}

.sync-preview-router > header div span {
  color: var(--muted);
  font-size: 12px;
}

.sync-preview-counts {
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 9px 12px;
}

.sync-change-list {
  max-height: 270px;
  overflow: auto;
}

.sync-change-row {
  display: grid;
  grid-template-columns: 70px minmax(110px, 0.8fr) minmax(150px, 1fr) minmax(180px, 1.3fr);
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  align-items: center;
  font-size: 12px;
}

.sync-change-row:first-child {
  border-top: 0;
}

.change-action {
  border-radius: 999px;
  padding: 3px 7px;
  background: var(--soft);
  color: #31465a;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.sync-change-row[data-action="remove"] .change-action {
  background: var(--danger-soft);
  color: var(--danger);
}

.sync-change-row[data-action="update"] .change-action {
  background: var(--warn-soft);
  color: var(--warn);
}

.sync-preview-confirm {
  border-block: 1px solid var(--line);
  padding: 13px 0;
}

.event-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}

.toolbar-actions,
.actions,
.tag-row,
.modal-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.search-field input {
  width: min(280px, 100%);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form,
.modal-form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

.full-width {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.field small {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea,
.search-field input,
.form input,
.form select,
.form textarea {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 9px 11px;
  background: #ffffff;
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-field input:focus,
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--focus);
}

.field textarea,
.form textarea {
  resize: vertical;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) repeat(4, minmax(130px, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.filter-bar .search-field input {
  width: 100%;
}

.compact-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.compact-field select {
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px 10px;
  background: #ffffff;
  color: var(--text);
}

.selection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 10px;
  border-block: 1px solid var(--line);
  padding: 8px 0;
}

.selection-toolbar > strong {
  white-space: nowrap;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.create-batch-button {
  min-width: 150px;
}

.check,
.confirm-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.check {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 9px 11px;
  background: #ffffff;
  color: #344054;
  font-weight: 600;
}

.check input,
.confirm-line input,
.select-line input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.primary,
.secondary,
.small {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 12px;
  font-weight: 750;
}

.small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}

.primary {
  background: var(--brand);
  color: #ffffff;
}

.primary:hover:not(:disabled) {
  background: var(--brand-dark);
}

.primary.danger {
  background: var(--danger);
}

.primary.danger:hover:not(:disabled) {
  background: #912018;
}

.primary.warning {
  background: #a86408;
}

.primary.warning:hover:not(:disabled) {
  background: #875006;
}

.secondary,
.small {
  border-color: var(--line);
  background: var(--soft);
  color: #234155;
}

.suspend-action {
  border-color: #e5c678;
  background: #fffaf0;
  color: var(--warn);
}

.suspend-action:hover:not(:disabled) {
  background: var(--warn-soft);
}

.reconnect-action {
  border-color: #8fc8c2;
  background: #ffffff;
  color: var(--brand-dark);
}

.reconnect-action:hover:not(:disabled) {
  background: #eef8f6;
}

.delete-action {
  border-color: var(--line);
  background: #ffffff;
  color: var(--muted);
}

.delete-action:hover:not(:disabled) {
  border-color: #e7aaa5;
  background: var(--danger-soft);
  color: var(--danger);
}

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

.input-suffix input {
  border-radius: 6px 0 0 6px;
}

.input-suffix b {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 42px;
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 6px 6px 0;
  background: var(--soft);
  color: var(--muted);
}

.power-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.power-summary article {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 15px 17px;
}

.power-summary article:first-child {
  border-left: 0;
}

.power-summary span,
.power-summary small {
  display: block;
  color: var(--muted);
}

.power-summary strong {
  display: block;
  margin: 5px 0 3px;
  font-size: 25px;
}

.power-summary article[data-tone="alarm"] {
  background: #fffaf0;
}

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

.gx-alarm-panel:has(.attention-clear) .panel-head {
  margin-bottom: 10px;
}

.gx-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
}

.gx-card[data-tone="ok"] {
  border-top-color: #45a981;
}

.gx-card[data-tone="warn"] {
  border-top-color: #d19a32;
}

.gx-card[data-tone="danger"] {
  border-top-color: var(--danger);
}

.gx-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 12px;
}

.gx-card-head h3 {
  margin: 2px 0 3px;
  font-size: 18px;
}

.gx-card-head > div > span {
  color: var(--muted);
  font-size: 12px;
}

.gx-live {
  display: grid;
  grid-template-columns: minmax(160px, 0.85fr) minmax(250px, 1.35fr);
  gap: 12px;
  border-block: 1px solid #e8edf1;
  padding: 14px 16px;
  background: #f8fafb;
}

.gx-live[data-stale="true"] .gx-power-tile,
.gx-live[data-stale="true"] .gx-battery,
.gx-live[data-stale="true"] .gx-chargers {
  opacity: 0.64;
}

.gx-battery {
  display: grid;
  grid-template-columns: minmax(92px, 112px) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.gx-battery .health-gauge svg {
  width: min(104px, 100%);
}

.gx-battery-detail {
  display: grid;
  gap: 4px;
}

.gx-battery-detail strong {
  font-size: 16px;
}

.gx-battery-detail span {
  color: var(--muted);
  font-size: 12px;
}

.gx-power-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 7px;
  align-content: center;
}

.gx-energy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 12px;
}

.gx-power-tile {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
  background: #ffffff;
}

.gx-power-tile::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: 7px 7px 0 0;
  background: #7f96aa;
  content: "";
}

.gx-power-tile.solar::before {
  background: #d69a22;
}

.gx-power-tile.load::before {
  background: var(--brand);
}

.gx-power-tile.ac-load::before {
  background: #51708c;
}

.gx-power-tile span,
.gx-power-tile small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gx-power-tile strong {
  display: block;
  overflow: hidden;
  margin: 7px 0 4px;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gx-chargers {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.gx-chargers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 6px;
}

.gx-chargers-head strong {
  font-size: 12px;
}

.gx-chargers-head span {
  color: var(--muted);
  font-size: 10px;
}

.gx-charger-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.25fr) minmax(76px, 0.7fr) minmax(76px, 0.7fr) minmax(132px, 1fr);
  align-items: center;
  gap: 9px;
  border-top: 1px solid #e5ebf0;
  padding: 8px 2px;
}

.gx-charger-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.gx-charger-identity > i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d69a22;
  box-shadow: 0 0 0 4px #fff3d8;
}

.gx-charger-row[data-tone="warn"] .gx-charger-identity > i {
  background: var(--warn);
  box-shadow: 0 0 0 4px var(--warn-soft);
}

.gx-charger-identity span,
.gx-charger-reading,
.gx-charger-day {
  min-width: 0;
}

.gx-charger-identity strong,
.gx-charger-identity small,
.gx-charger-reading span,
.gx-charger-reading strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gx-charger-identity strong,
.gx-charger-reading strong {
  font-size: 12px;
}

.gx-charger-identity small,
.gx-charger-reading span,
.gx-charger-day {
  color: var(--muted);
  font-size: 10px;
}

.gx-charger-identity small,
.gx-charger-reading strong {
  margin-top: 2px;
}

.gx-charger-day {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  text-align: right;
}

.gx-charger-day strong {
  color: var(--text);
  font-size: 11px;
}

.gx-charger-empty {
  border-top: 1px solid #e5ebf0;
  padding: 9px 2px 2px;
  color: var(--muted);
  font-size: 11px;
}

.gx-card-foot {
  display: grid;
  gap: 12px;
  padding: 12px 16px 14px;
}

.gx-card-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gx-card-facts > span {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 0 10px;
}

.gx-card-facts > span:first-child {
  border-left: 0;
  padding-left: 0;
}

.gx-card-facts small,
.gx-card-facts strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gx-card-facts small {
  margin-bottom: 3px;
  color: var(--muted);
}

.gx-card-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #edf1f4;
  padding-top: 11px;
}

.monitor-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.monitor-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.monitor-switch > span {
  position: relative;
  width: 38px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #dbe2e8;
  transition: background 150ms ease;
}

.monitor-switch > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(31, 44, 71, 0.24);
  content: "";
  transition: transform 150ms ease;
}

.monitor-switch input:checked + span {
  border-color: var(--brand);
  background: var(--brand);
}

.monitor-switch input:checked + span::after {
  transform: translateX(16px);
}

.monitor-switch input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--focus) 28%, transparent);
  outline-offset: 2px;
}

.monitor-switch b {
  color: #425466;
  font-size: 12px;
}

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

.gx-alarm-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  background: #ffffff;
}

.gx-alarm-row[data-status="resolved"] {
  background: #f8fafb;
  opacity: 0.78;
}

.gx-alarm-icon {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: #c8871e;
  box-shadow: 0 0 0 4px var(--warn-soft);
}

.gx-alarm-row[data-severity="critical"] .gx-alarm-icon {
  background: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}

.gx-alarm-row[data-status="resolved"] .gx-alarm-icon {
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-soft);
}

.gx-alarm-row p {
  margin: 3px 0 0;
  color: var(--muted);
}

.gx-alarm-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.gx-alarm-meta small {
  color: var(--muted);
}

.gx-history-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafb;
}

.gx-history-kpis > div {
  border-left: 1px solid var(--line);
  padding: 11px 14px;
}

.gx-history-kpis > div:first-child {
  border-left: 0;
}

.gx-history-kpis span,
.gx-history-kpis strong {
  display: block;
}

.gx-history-kpis span {
  color: var(--muted);
  font-size: 11px;
}

.gx-history-kpis strong {
  margin-top: 4px;
  font-size: 17px;
}

.gx-history-chart {
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.gx-history-chart svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 220px;
}

.gx-chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 9px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.gx-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gx-chart-legend i {
  width: 17px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
}

.gx-chart-legend .solar i {
  background: #d69a22;
}

.gx-chart-legend .load i {
  background: #51708c;
}

.gx-chart-legend small {
  margin-left: auto;
}

.gx-chart-grid line {
  stroke: #dfe6ec;
  stroke-width: 1;
}

.gx-chart-labels text {
  fill: var(--muted);
  font-family: inherit;
  font-size: 10px;
}

.gx-chart-line {
  fill: none;
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.gx-chart-line.solar {
  stroke: #d69a22;
}

.gx-chart-line.load {
  stroke: #51708c;
}

.gx-chart-point {
  cursor: crosshair;
  fill: transparent;
  stroke: transparent;
  stroke-width: 2;
}

.gx-chart-point:hover {
  fill: #ffffff;
  stroke: var(--brand);
}

.router-power-links {
  display: grid;
  gap: 6px;
  padding: 10px 13px 0;
}

.router-power-panel {
  display: grid;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 7px;
  padding: 10px;
  background: #f8fafb;
  color: var(--text);
  text-align: left;
}

.router-power-panel[data-tone="ok"] {
  border-left-color: var(--ok);
}

.router-power-panel[data-tone="warn"] {
  border-left-color: #c8871e;
}

.router-power-panel[data-tone="danger"] {
  border-left-color: var(--danger);
}

.router-power-panel:hover {
  border-color: var(--brand);
  border-left-color: var(--brand);
  background: #f2f9f8;
}

.router-power-title,
.router-power-title > span,
.router-power-live,
.router-battery-summary {
  display: flex;
  align-items: center;
}

.router-power-title {
  justify-content: space-between;
  gap: 8px;
}

.router-power-title > span {
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
}

.router-power-title > span > i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.router-power-title b {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.router-power-live {
  justify-content: space-between;
  gap: 12px;
  border-block: 1px solid #e1e8ed;
  padding-block: 8px;
}

.router-battery-summary {
  gap: 9px;
  min-width: 0;
}

.router-battery-summary > span:last-child,
.router-charge-summary,
.router-power-readings > span {
  display: grid;
  gap: 2px;
}

.router-battery-summary strong {
  font-size: 18px;
  line-height: 1;
}

.router-battery-summary small,
.router-charge-summary small,
.router-power-readings small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.router-battery-track {
  position: relative;
  display: block;
  width: 66px;
  height: 21px;
  flex: 0 0 auto;
  border: 2px solid #8295a5;
  border-radius: 4px;
  padding: 3px;
  background: #ffffff;
}

.router-battery-track::after {
  position: absolute;
  top: 5px;
  right: -6px;
  width: 4px;
  height: 7px;
  border-radius: 0 2px 2px 0;
  background: #8295a5;
  content: "";
}

.router-battery-track > i {
  display: block;
  width: var(--battery-level);
  height: 100%;
  max-width: 100%;
  border-radius: 2px;
  background: var(--brand);
}

.router-battery-summary[data-tone="warn"] .router-battery-track > i {
  background: #c8871e;
}

.router-battery-summary[data-tone="danger"] .router-battery-track > i {
  background: var(--danger);
}

.router-battery-summary[data-tone="neutral"] .router-battery-track > i {
  background: var(--line-strong);
}

.router-charge-summary {
  min-width: 92px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
  text-align: right;
}

.router-charge-summary strong {
  font-size: 15px;
}

.router-charge-summary[data-tone="charging"] strong {
  color: var(--brand);
}

.router-charge-summary[data-tone="discharging"] strong {
  color: #466b8a;
}

.router-power-readings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.router-power-readings > span {
  min-width: 0;
  border-radius: 5px;
  padding: 6px 7px;
  background: #ffffff;
}

.router-power-readings strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

[hidden] {
  display: none !important;
}

.router-grid,
.record-list {
  display: grid;
  gap: 10px;
}

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

.router-health-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
}

.router-health-card[data-tone="ok"] {
  border-top-color: #45a981;
}

.router-health-card[data-tone="warn"] {
  border-top-color: #d19a32;
}

.router-health-card[data-tone="danger"] {
  border-top-color: var(--danger);
}

.router-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 13px 8px;
}

.router-card-head h3 {
  margin-bottom: 3px;
  font-size: 16px;
}

.router-card-head p {
  margin-bottom: 0;
  font-size: 12px;
}

.router-card-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.router-actions-menu {
  position: relative;
}

.router-actions-menu > summary {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 5px 8px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  list-style: none;
}

.router-actions-menu > summary::-webkit-details-marker {
  display: none;
}

.router-actions-menu[open] > summary {
  border-color: var(--brand);
}

.router-actions-menu > div {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 12;
  display: grid;
  gap: 6px;
  width: 150px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 44, 71, 0.16);
}

.router-actions-menu > div button {
  width: 100%;
}

.health-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--soft);
  color: #31465a;
  font-size: 11px;
  font-weight: 800;
}

.health-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.health-status.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.health-status.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.health-status.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.router-role {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 13px;
  border-block: 1px solid #edf1f4;
  padding: 7px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.router-health-overview {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(135px, 1.1fr);
  gap: 8px;
  padding: 11px 13px;
}

.gauge-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.health-gauge {
  min-width: 0;
  margin: 0;
  text-align: center;
}

.health-gauge svg {
  display: block;
  width: min(88px, 100%);
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.gauge-track,
.gauge-value {
  fill: none;
  stroke-width: 10;
}

.gauge-track {
  stroke: #e9eef2;
}

.gauge-value {
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
  stroke: var(--ok);
  stroke-linecap: round;
}

.health-gauge[data-tone="warn"] .gauge-value {
  stroke: #c8871e;
}

.health-gauge[data-tone="danger"] .gauge-value {
  stroke: var(--danger);
}

.health-gauge[data-tone="neutral"] .gauge-value {
  stroke: var(--line-strong);
}

.gauge-number {
  fill: var(--text);
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
}

.gauge-unit {
  fill: var(--muted);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.health-gauge figcaption {
  margin-top: -3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.internet-readings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 6px;
  align-content: center;
}

.primary-reading,
.secondary-reading {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px;
  background: #f8fafb;
}

.primary-reading span,
.secondary-reading span,
.primary-reading small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.primary-reading strong,
.secondary-reading strong {
  display: block;
  margin: 3px 0 2px;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.primary-reading[data-tone="warn"] strong {
  color: var(--warn);
}

.primary-reading[data-tone="danger"] strong {
  color: var(--danger);
  font-size: 14px;
}

.router-glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 13px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfd;
}

.router-glance > span {
  min-width: 0;
  padding: 8px;
}

.router-glance > span + span {
  border-left: 1px solid var(--line);
}

.router-glance small,
.technical-stats small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.router-glance strong,
.technical-stats strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.router-technical {
  border-top: 1px solid var(--line);
}

.router-technical summary {
  cursor: pointer;
  padding: 10px 13px;
  color: #31465a;
  font-size: 12px;
  font-weight: 800;
  list-style-position: inside;
}

.router-technical[open] summary {
  border-bottom: 1px solid var(--line);
  background: #f8fafb;
}

.router-technical .check-grid,
.router-technical .technical-stats,
.router-technical .error-text {
  margin-inline: 13px;
}

.technical-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-block: 10px 13px;
}

.technical-stats > span {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: #f8fafb;
}

.card,
.record-row,
.account-group,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.account-group {
  overflow: hidden;
}

.account-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 13px;
  background: #f8fafc;
}

.account-header h3 {
  margin-bottom: 3px;
  font-size: 16px;
}

.account-header p {
  margin-bottom: 0;
}

.account-actions,
.service-actions {
  justify-content: flex-end;
}

.service-list {
  border-top: 1px solid var(--line);
}

.empty-service {
  padding: 14px;
  color: var(--muted);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 13px;
}

.service-row + .service-row {
  border-top: 1px solid var(--line);
}

.service-identity > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.service-identity small {
  color: var(--muted);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.service-state {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.card {
  padding: 13px;
}

.card h3,
.record-main h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.record-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
}

.record-row p {
  margin-bottom: 0;
}

.record-meta {
  min-width: 0;
}

.record-actions {
  justify-content: flex-end;
}

.select-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
}

.compact {
  align-content: start;
}

.compact .record-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.activity-head {
  align-items: flex-end;
}

.activity-filter {
  width: 150px;
  flex: 0 0 auto;
}

.activity-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 11px;
  position: relative;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.activity-row:first-child {
  border-top: 0;
  padding-top: 2px;
}

.activity-marker {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--line-strong);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.activity-marker.ok {
  background: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.activity-marker.warn {
  background: #d18a21;
  box-shadow: 0 0 0 1px #d18a21;
}

.activity-copy h3 {
  margin-bottom: 3px;
  font-size: 14px;
}

.activity-copy p {
  margin-bottom: 5px;
  color: #425466;
  line-height: 1.45;
}

.activity-meta {
  display: flex;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 11px;
  flex-wrap: wrap;
}

.activity-meta span + span::before {
  content: "\00b7";
  margin-right: 12px;
}

.logs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.log-view-tabs {
  grid-template-columns: repeat(3, minmax(90px, 1fr));
}

.log-search {
  width: min(360px, 100%);
}

.log-filters {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.logs-summary {
  margin: 12px 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.log-list {
  min-height: 160px;
}

.log-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.check-grid {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.check-grid .state {
  justify-content: flex-start;
  width: 100%;
  overflow-wrap: anywhere;
}

.tag-row {
  margin-top: 9px;
}

.tag {
  background: var(--soft);
  color: #31465a;
}

.state.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.state.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.state.neutral {
  background: var(--soft);
  color: #31465a;
}

.state.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

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

.stat {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: #f8fafc;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.stat strong {
  overflow-wrap: anywhere;
}

.error-text {
  margin: 10px 0 0;
  color: var(--danger) !important;
}

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

.heading-with-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.heading-with-badge h2,
.heading-with-badge h3 {
  margin-bottom: 0;
}

.safety-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid #9accc5;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef8f6;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 800;
}

.read-only-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  border: 1px solid #9accc5;
  border-left: 4px solid var(--brand);
  border-radius: 7px;
  padding: 13px 14px;
  background: #f2faf8;
}

.read-only-banner p {
  margin: 3px 0 0;
  color: #48636a;
  line-height: 1.45;
}

.path-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.path-summary-card {
  display: grid;
  min-width: 0;
  gap: 3px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 7px;
  padding: 12px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow);
}

.path-summary-card[data-tone="warning"] {
  border-top-color: #c8871e;
}

.path-summary-card[data-tone="critical"] {
  border-top-color: var(--danger);
}

.path-summary-grid span,
.path-summary-grid small {
  color: var(--muted);
}

.path-summary-grid strong {
  font-size: 24px;
}

.path-summary-grid small {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.path-control-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(135px, 0.7fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 13px;
  border-block: 1px solid var(--line);
  padding: 11px 0;
}

.path-detail {
  min-width: 0;
}

.path-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 1px 13px;
}

.path-status-head h3 {
  margin: 8px 0 4px;
  font-size: 20px;
}

.path-status-head p {
  margin: 0;
  line-height: 1.45;
}

.path-freshness {
  display: grid;
  flex: 0 0 auto;
  gap: 3px;
  text-align: right;
}

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

.live-router-path {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafb;
}

.live-router-path .path-node[data-kind="router"] {
  border-color: #a9cfc9;
  background: #f5fbfa;
}

.live-router-path .path-node[data-kind="internet"] {
  border-color: #93b8d8;
  background: #f4f8fc;
}

.live-router-path .path-node[data-kind="unknown"],
.live-router-path .path-node[data-kind="unavailable"] {
  border-color: #e2bd70;
  background: #fffaf0;
}

.path-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.path-facts > div {
  min-width: 0;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 10px 11px;
}

.path-facts > div:nth-child(-n + 4) {
  border-top: 0;
}

.path-facts > div:nth-child(4n + 1) {
  border-left: 0;
}

.path-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.path-facts dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.path-facts dd small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 500;
}

.path-warning-list {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.path-warning-list p,
.inline-error {
  margin: 0;
  border-left: 3px solid #c8871e;
  padding: 8px 10px;
  background: var(--warn-soft);
  color: var(--warn);
  line-height: 1.4;
}

.inline-error {
  border-left-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

.path-detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.path-detail-columns > section,
.path-verification-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #ffffff;
}

.compact-heading h3 {
  margin-bottom: 2px;
  font-size: 14px;
}

.path-route-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.path-route-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  background: #fbfcfd;
}

.path-route-row + .path-route-row {
  border-top: 1px solid var(--line);
}

.path-route-row > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.path-route-row strong,
.path-route-row small {
  overflow-wrap: anywhere;
}

.path-route-row small {
  color: var(--muted);
}

.trace-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-left: 3px solid var(--line-strong);
  padding: 9px 10px;
  background: var(--soft);
}

.trace-summary > div,
.trace-summary:not(:has(> div)) {
  line-height: 1.4;
}

.trace-summary strong,
.trace-summary span {
  display: block;
}

.trace-summary span {
  color: var(--muted);
  font-size: 12px;
}

.trace-summary.ok {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.trace-summary.warn {
  border-left-color: #c8871e;
  background: var(--warn-soft);
}

.trace-summary.danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.trace-hop-list {
  display: grid;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.trace-hop-list > div {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) minmax(100px, 0.7fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
}

.trace-hop-list > div + div {
  border-top: 1px solid var(--line);
}

.trace-hop-list span,
.trace-hop-list small {
  color: var(--muted);
}

.trace-hop-list b {
  font-size: 12px;
}

.path-overview-list,
.path-event-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.path-overview-row,
.path-event-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  background: #ffffff;
}

.path-overview-row + .path-overview-row,
.path-event-row + .path-event-row {
  border-top: 1px solid var(--line);
}

.path-overview-copy,
.path-event-row > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.path-overview-copy > div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.path-overview-copy p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #425466;
}

.path-overview-copy small,
.path-event-row small {
  color: var(--muted);
}

.topology-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafb;
}

.topology-summary > span {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
}

.topology-summary > span:first-child {
  border-left: 0;
}

.topology-summary strong {
  color: var(--text);
  font-size: 18px;
}

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

.circuit-panel,
.circuit-list {
  display: grid;
  gap: 14px;
}

.circuit-status {
  margin: 0;
}

.circuit-status.success {
  border-color: color-mix(in srgb, var(--success) 35%, var(--line));
}

.circuit-status.danger {
  border-color: color-mix(in srgb, var(--danger) 40%, var(--line));
}

.circuit-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.circuit-summary article {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--surface-soft);
}

.circuit-summary span,
.circuit-summary small,
.circuit-toolbar,
.circuit-flow span,
.circuit-card footer small {
  color: var(--muted);
}

.circuit-summary strong {
  font-size: 1.45rem;
}

.circuit-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.circuit-discovery {
  display: grid;
  gap: 12px;
  border-block: 1px solid var(--line);
  padding-block: 16px;
}

.circuit-discovery-head,
.circuit-suggestion > header,
.circuit-suggestion > footer,
.circuit-suggestion > header > div,
.circuit-suggestion > footer > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.circuit-discovery-head > div,
.circuit-suggestion > header > div {
  display: grid;
  justify-content: initial;
  gap: 4px;
  min-width: 0;
}

.circuit-discovery-head h3,
.circuit-discovery-head p {
  margin: 0;
}

.circuit-discovery-head p,
.circuit-discovery-status,
.circuit-suggestion small,
.circuit-suggestion > footer > span,
.discovery-endpoint span,
.discovery-endpoint b,
.discovery-evidence {
  color: var(--muted);
}

.circuit-discovery-status {
  border-left: 4px solid var(--line-strong);
  padding: 9px 11px;
  background: var(--surface-soft);
  font-size: 13px;
}

.circuit-discovery-status.success { border-left-color: var(--brand); }
.circuit-discovery-status.waiting { border-left-color: #b67811; }

.circuit-discovery-list {
  display: grid;
  gap: 11px;
}

.circuit-discovery-diagnostics {
  display: grid;
  gap: 10px;
}

.discovery-coverage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.discovery-coverage > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.discovery-coverage > span:last-child { border-right: 0; }
.discovery-coverage small { color: var(--muted); }
.discovery-coverage strong { font-size: 18px; }

.discovery-diagnostics-detail {
  border-left: 3px solid var(--warning);
  padding: 2px 0 2px 11px;
}

.discovery-diagnostics-detail summary {
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.discovery-diagnostics-detail h4 {
  margin: 12px 0 5px;
  font-size: 12px;
  text-transform: uppercase;
}

.discovery-diagnostics-detail p {
  margin: 10px 0 0;
  color: var(--muted);
}

.discovery-reason-list,
.discovery-router-list {
  display: grid;
  gap: 6px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.discovery-reason-list li,
.discovery-router-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.discovery-reason-list strong { min-width: 28px; }
.discovery-router-list strong { min-width: 150px; }
.discovery-reason-list span,
.discovery-router-list span { color: var(--muted); }
.discovery-router-list li[data-tone="warn"] span { color: var(--warning-ink); }

.circuit-suggestion {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.circuit-suggestion > header > div {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.circuit-suggestion > header strong,
.circuit-suggestion > header small {
  overflow-wrap: anywhere;
}

.circuit-suggestion > header small {
  grid-column: 2;
}

.discovery-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.discovery-endpoint {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
  background: #f8fafb;
}

.discovery-endpoint > * {
  overflow-wrap: anywhere;
}

.discovery-endpoint > small {
  color: var(--brand-dark);
  font-weight: 800;
  text-transform: uppercase;
}

.discovery-endpoint b {
  margin-top: 4px;
  font-size: 11px;
}

.discovery-flow > i {
  height: 0;
  border-top: 2px dashed var(--brand);
}

.discovery-evidence summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 750;
}

.discovery-evidence ul {
  display: grid;
  gap: 5px;
  margin: 9px 0 0;
  padding-left: 20px;
}

.discovery-traffic {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(160px, 1fr));
  gap: 10px;
  border-left: 4px solid var(--line-strong);
  padding: 10px 12px;
  background: var(--surface-soft);
}

.discovery-traffic[data-tone="ok"] { border-left-color: var(--brand); }
.discovery-traffic[data-tone="danger"] { border-left-color: var(--danger); }

.discovery-traffic > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.circuit-suggestion > footer {
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 11px;
}

.circuit-discovery-review {
  margin-top: 12px;
}

.circuit-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 15px;
  background: var(--surface);
}

.circuit-card[data-enabled="false"] {
  border-left-color: var(--muted);
  background: var(--surface-soft);
}

.circuit-card > header,
.circuit-card > footer,
.circuit-card-states,
.circuit-card footer > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.circuit-card > header > div:first-child,
.circuit-card footer > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.circuit-card > header > div:first-child > strong {
  font-size: 16px;
}

.circuit-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.circuit-flow > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #f8fafb;
}

.circuit-flow > div > * {
  overflow-wrap: anywhere;
}

.circuit-flow > div > small {
  color: var(--brand-dark);
  font-weight: 800;
  text-transform: uppercase;
}

.circuit-flow > div > b {
  margin-top: 5px;
  color: #334155;
  font-size: 12px;
}

.circuit-flow > i {
  position: relative;
  height: 2px;
  background: var(--brand);
}

.circuit-flow > i::after {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--brand);
  border-right: 2px solid var(--brand);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.circuit-card > footer {
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.circuit-diagnosis-preview {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.4fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 7px;
  padding: 11px 12px;
  background: #f8fafb;
}

.circuit-diagnosis-preview[data-tone="ok"] { border-left-color: var(--ok); }
.circuit-diagnosis-preview[data-tone="warn"] { border-left-color: #b67811; }
.circuit-diagnosis-preview[data-tone="danger"] { border-left-color: var(--danger); }

.circuit-diagnosis-preview > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.circuit-diagnosis-preview small,
.circuit-diagnosis-preview p {
  color: var(--muted);
}

.circuit-diagnosis-preview strong,
.circuit-diagnosis-preview p {
  overflow-wrap: anywhere;
}

.circuit-diagnosis-preview p {
  margin: 0;
  line-height: 1.45;
}

.circuit-diagnosis-drawer {
  width: min(940px, calc(100vw - 32px));
  height: calc(100vh - 32px);
  max-height: calc(100vh - 32px);
  margin-right: 16px;
}

.circuit-diagnosis-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}

.circuit-diagnosis-head,
.circuit-diagnosis-footer {
  margin: 0;
  padding: 15px 18px;
  background: #ffffff;
}

.circuit-diagnosis-head > div {
  min-width: 0;
}

.circuit-diagnosis-head h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.circuit-diagnosis-content {
  display: grid;
  align-content: start;
  gap: 14px;
  overflow-y: auto;
  padding: 18px;
  background: var(--bg);
}

.rf-diagnosis-hero,
.rf-diagnosis-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: #ffffff;
}

.rf-diagnosis-hero {
  border-left: 5px solid var(--line-strong);
}

.rf-diagnosis-hero[data-tone="ok"] { border-left-color: var(--ok); }
.rf-diagnosis-hero[data-tone="warn"] { border-left-color: #b67811; }
.rf-diagnosis-hero[data-tone="danger"] { border-left-color: var(--danger); }

.rf-diagnosis-hero > div:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.rf-diagnosis-hero h3 {
  margin: 13px 0 5px;
  font-size: 20px;
}

.rf-diagnosis-hero > p {
  margin: 0;
  color: #425466;
  line-height: 1.55;
}

.rf-diagnosis-hero dl,
.map-circuit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 15px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.rf-diagnosis-hero dl > div,
.map-circuit-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  background: #f8fafb;
}

.rf-diagnosis-hero dt,
.map-circuit-grid small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.rf-diagnosis-hero dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.rf-diagnosis-section .section-heading {
  margin: 0 0 12px;
}

.rf-diagnosis-section .section-heading h3 {
  margin: 0 0 3px;
  font-size: 16px;
}

.rf-diagnosis-section .section-heading p {
  margin: 0;
  color: var(--muted);
}

.rf-evidence-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.rf-evidence-list article {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  background: #ffffff;
}

.rf-evidence-list article + article { border-top: 1px solid var(--line); }

.rf-evidence-list article > span {
  border-radius: 5px;
  padding: 4px 6px;
  background: var(--soft);
  color: #31465a;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.rf-evidence-list article > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rf-evidence-list small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.rf-evidence-list b { white-space: nowrap; }

.rf-guidance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rf-check-list,
.rf-hold-list,
.attention-do-not-change ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: #425466;
  line-height: 1.45;
}

.rf-hold-section,
.attention-do-not-change {
  border-color: #e5b7b2;
  background: #fff8f7;
}

.rf-baseline-panel,
.rf-verification-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.rf-verification-panel > .field,
.rf-verification-active,
.rf-comparison {
  grid-column: 1 / -1;
}

.rf-verification-active {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #efcf85;
  border-radius: 7px;
  padding: 10px 11px;
  background: var(--warn-soft);
}

.rf-verification-active > div {
  display: grid;
  gap: 3px;
}

.rf-verification-active small,
.permission-note,
.rf-comparison small {
  color: var(--muted);
}

.rf-comparison {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 7px;
  padding: 10px 11px;
  background: #f8fafb;
}

.rf-comparison[data-status="improved"] { border-left-color: var(--ok); }
.rf-comparison[data-status="worse"] { border-left-color: var(--danger); }
.rf-comparison > span { font-weight: 800; }

.rf-history-list { display: grid; }

.rf-history-list article {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 10px 0;
}

.rf-history-list article + article { border-top: 1px solid var(--line); }

.rf-history-list i {
  width: 10px;
  height: 10px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.rf-history-list i[data-tone="ok"] { background: var(--ok); }
.rf-history-list i[data-tone="warn"] { background: #b67811; }
.rf-history-list i[data-tone="danger"] { background: var(--danger); }

.rf-history-list article > span {
  display: grid;
  gap: 3px;
}

.rf-history-list small,
.rf-history-list time { color: var(--muted); }

.rf-history-list time {
  font-size: 11px;
  white-space: nowrap;
}

.circuit-diagnosis-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.circuit-map-detail-head { align-items: center; }

.map-circuit-diagnosis {
  margin-top: 14px;
  border-left: 4px solid #b67811;
  padding: 10px 12px;
  background: var(--warn-soft);
}

.map-circuit-diagnosis p {
  margin: 4px 0 0;
  color: #4d3c1d;
}

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

.circuit-empty {
  gap: 7px;
}

.circuit-modal {
  width: min(880px, calc(100vw - 32px));
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 11px;
  background: #f8fafb;
  color: #344054;
}

.checkbox-field > input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.checkbox-field > span {
  display: grid;
  gap: 2px;
}

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

.circuit-enabled-field {
  align-self: end;
}

.circuit-confirm-field {
  border-color: #9bc8c0;
  background: #edf9f7;
}

.topology-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.topology-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  background: #f8fafb;
}

.topology-card-head h3 {
  font-size: 16px;
}

.topology-card-head p {
  margin: 4px 0 0;
  font-size: 12px;
}

.quiet-danger {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 750;
}

.quiet-danger:hover:not(:disabled) {
  border-color: #e7aaa5;
  background: var(--danger-soft);
  color: var(--danger);
}

.network-path {
  display: flex;
  align-items: stretch;
  gap: 7px;
  overflow-x: auto;
  padding: 14px;
  scrollbar-width: thin;
}

.path-node {
  display: grid;
  flex: 1 0 145px;
  min-width: 0;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  background: #ffffff;
}

.path-node small,
.path-node span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
}

.path-node strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.path-arrow {
  align-self: center;
  flex: 0 0 auto;
  color: var(--line-strong);
  font-size: 24px;
}

.configured-hops {
  display: grid;
  margin: 0 14px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.configured-hop {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-top: 1px solid var(--line);
}

.configured-hop:first-child {
  border-top: 0;
}

.configured-hop > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.configured-hop small {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.path-state {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.path-state.ok {
  background: var(--ok);
}

.path-state.warn {
  background: #c8871e;
}

.path-state.danger {
  background: var(--danger);
}

.diagnostic-run {
  border-top: 1px solid var(--line);
}

.diagnostic-run > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
}

.diagnostic-run > summary small {
  color: var(--muted);
}

.diagnostic-results {
  display: grid;
  border-top: 1px solid var(--line);
}

.diagnostic-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
}

.diagnostic-result:first-child {
  border-top: 0;
}

.diagnostic-result > div {
  display: grid;
  gap: 2px;
}

.diagnostic-result small,
.diagnostic-result > span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.diagnostic-waiting {
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--muted);
}

.topology-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.topology-empty span {
  max-width: 620px;
}

.modal {
  width: min(720px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--text);
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.22);
}

.modal::backdrop {
  background: rgba(20, 31, 44, 0.58);
}

.modal-form {
  padding: 18px;
}

.modal-head {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin-bottom: 0;
}

.section-heading {
  margin: 2px 0 10px;
}

.onboarding-preview,
.inline-notice,
.form-error {
  border-radius: 7px;
  padding: 12px;
}

.onboarding-preview {
  border: 1px solid #9fd7d0;
  background: #f0fbf9;
}

.inline-notice {
  margin-top: 12px;
  border: 1px solid #f2c35d;
  background: #fff8df;
  color: #754514;
}

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

.form-error {
  border: 1px solid #f5a5a0;
  background: var(--danger-soft);
  color: var(--danger);
}

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

.preview-grid div {
  min-width: 0;
}

.preview-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.preview-grid dd {
  margin: 3px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.confirm-line {
  font-weight: 700;
}

.modal-actions {
  justify-content: flex-end;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.confirm-modal {
  width: min(460px, calc(100% - 24px));
}

.confirm-detail {
  margin: 0;
  color: var(--text) !important;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.diagnostics summary {
  cursor: pointer;
  font-weight: 750;
}

pre {
  min-height: 140px;
  max-height: 340px;
  overflow: auto;
  margin: 14px 0 0;
  border: 1px solid #26394a;
  border-radius: 7px;
  background: #0d1b27;
  color: #d5f3ed;
  padding: 12px;
  white-space: pre-wrap;
}

.mini-pre {
  min-height: 0;
  max-height: 100px;
  margin-top: 8px;
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(420px, calc(100% - 36px));
  background: #0d1b27;
  color: #ffffff;
  border-radius: 7px;
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.network-map-panel {
  overflow: hidden;
}

.network-map-head {
  align-items: flex-start;
}

.map-layer-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.map-layer-status span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.map-layer-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.map-layer-status span[data-state="live"] {
  border-color: #a9d6c3;
  background: var(--ok-soft);
  color: var(--ok);
}

.map-layer-status span[data-state="live"] i {
  background: var(--ok);
}

.network-map-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
}

.network-map-summary > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 13px 15px;
}

.network-map-summary > span + span {
  border-left: 1px solid var(--line);
}

.network-map-summary small,
.map-traffic-grid small,
.router-traffic-panel small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.network-map-summary strong {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-map-status {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.network-map-scroll {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.network-map-scroll.is-scrollable {
  overflow-x: auto;
}

.network-map-canvas {
  position: relative;
  width: 100%;
  height: 560px;
  min-width: 100%;
}

.network-map-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.network-map-edges marker path {
  fill: #718096;
}

.map-edge {
  fill: none;
  stroke: #718096;
  stroke-width: 2;
}

.map-edge.warn {
  stroke: #b67811;
  stroke-dasharray: 7 5;
}

.map-edge.danger {
  stroke: var(--danger);
  stroke-dasharray: 5 5;
}

.map-edge.neutral {
  stroke: var(--line-strong);
  stroke-dasharray: 5 6;
}

.map-edge-rate rect {
  fill: #ffffff;
  stroke: var(--line-strong);
}

.map-edge-rate text {
  fill: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.network-map-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 168px;
  min-height: 78px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 11px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 3px 10px rgba(31, 44, 71, 0.08);
  text-align: left;
}

button.network-map-node:hover,
button.network-map-node.selected {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 16%, transparent);
}

.network-map-node[data-tone="ok"] {
  border-left-color: var(--ok);
}

.network-map-node[data-tone="warn"] {
  border-left-color: #b67811;
}

.network-map-node[data-tone="danger"] {
  border-left-color: var(--danger);
}

.network-map-node[data-kind="internet"] {
  width: 136px;
  border-left-color: var(--brand);
  background: #e8f5f3;
}

.network-map-node small,
.network-map-node span,
.network-map-node b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-map-node small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.network-map-node strong {
  margin: 2px 0;
  overflow-wrap: anywhere;
}

.network-map-node span {
  color: var(--muted);
  font-size: 11px;
}

.network-map-node b {
  margin-top: 5px;
  color: var(--brand-dark);
  font-size: 10px;
}

.network-map-mobile {
  display: none;
}

.network-map-detail {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.map-detail-head,
.traffic-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.map-detail-head h3 {
  margin: 8px 0 4px;
}

.map-detail-head p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.map-traffic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.map-traffic-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  background: #f9fbfc;
}

.map-traffic-grid > div strong,
.map-traffic-grid > div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-traffic-grid > div strong {
  font-size: 17px;
}

.map-traffic-grid > div span {
  color: var(--muted);
  font-size: 11px;
}

.map-traffic-grid > div[data-tone="warn"] {
  background: var(--warn-soft);
}

.map-traffic-grid > div[data-tone="danger"] {
  background: var(--danger-soft);
}

.map-shared-note {
  border-left: 3px solid var(--focus);
  margin: 0 0 16px;
  padding: 8px 11px;
  background: #eef5ff;
  color: #344054;
  font-size: 12px;
}

.traffic-chart-head {
  align-items: center;
  margin: 4px 0 8px;
}

.traffic-chart-head span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.traffic-chart-head i {
  width: 18px;
  height: 3px;
  background: var(--brand);
}

.traffic-chart-head i.upload {
  background: #3b6fc4;
}

.traffic-chart-wrap {
  position: relative;
  min-height: 170px;
}

.traffic-chart {
  display: block;
  width: 100%;
  min-height: 170px;
}

.traffic-grid-line {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.traffic-grid-line.faint {
  stroke: var(--line);
  stroke-dasharray: 4 5;
}

.traffic-axis-label {
  fill: var(--muted);
  font-size: 10px;
}

.traffic-chart-line {
  fill: none;
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.traffic-chart-line.upload {
  stroke: #3b6fc4;
  stroke-width: 2;
}

.traffic-chart-dot {
  fill: #ffffff;
  stroke: var(--brand);
  stroke-width: 3;
  opacity: 0;
  transition: opacity 120ms ease;
}

.traffic-chart-dot.upload {
  stroke: #3b6fc4;
}

.traffic-chart:hover .traffic-chart-dot,
.traffic-chart-dot:hover {
  opacity: 1;
}

.traffic-chart-tooltip {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 3px;
  width: 158px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 9px 10px;
  background: #182230;
  color: #ffffff;
  box-shadow: var(--shadow);
  pointer-events: none;
  font-size: 11px;
}

.traffic-chart-empty {
  display: grid;
  min-height: 120px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
}

.router-traffic-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(90px, 0.8fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 7px;
  overflow: hidden;
  background: var(--line);
}

.router-traffic-panel[data-tone="ok"] {
  border-left-color: var(--ok);
}

.router-traffic-panel[data-tone="warn"] {
  border-left-color: #b67811;
}

.router-traffic-panel[data-tone="danger"] {
  border-left-color: var(--danger);
}

.router-traffic-panel > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 11px;
  background: #f9fbfc;
}

.router-traffic-panel > div:first-child span {
  font-size: 11px;
  font-weight: 700;
}

.router-traffic-panel strong,
.router-traffic-panel span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.router-traffic-fields {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.router-traffic-fields.disabled .form-grid {
  opacity: 0.62;
}

@media (max-width: 1040px) {
  .map-traffic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .protection-strip {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .protection-facts > div:first-child {
    border-left: 0;
    padding-left: 0;
  }

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

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

  .record-row {
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
  }

  .record-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

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

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

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

  .event-section {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 16px;
    padding-left: 0;
  }

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

  .filter-bar .search-field {
    grid-column: span 2;
  }

  .service-row {
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 1fr);
  }

  .service-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .network-map-head,
  .map-detail-head,
  .traffic-chart-head {
    align-items: stretch;
    flex-direction: column;
  }

  .map-layer-status {
    justify-content: flex-start;
  }

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

  .network-map-summary > span + span {
    border-left: 0;
  }

  .network-map-summary > span:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .network-map-summary > span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .network-map-scroll {
    display: none;
  }

  .network-map-mobile {
    display: grid;
    gap: 8px;
  }

  .network-map-mobile-route {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 6px 10px;
    align-items: center;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 11px;
    background: #ffffff;
    color: var(--text);
    text-align: left;
  }

  .network-map-mobile-route.selected {
    border-color: var(--focus);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--focus) 14%, transparent);
  }

  .network-map-mobile-route > span:nth-child(2) {
    display: grid;
    min-width: 0;
  }

  .network-map-mobile-route small,
  .network-map-mobile-route b {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .network-map-mobile-route b {
    grid-column: 2;
    color: var(--brand-dark);
  }

  .map-traffic-grid,
  .router-traffic-panel {
    grid-template-columns: 1fr;
  }

  .traffic-chart-wrap {
    overflow-x: auto;
  }

  .traffic-chart {
    min-width: 650px;
  }

  .auth-screen {
    align-items: start;
    padding: 18px 14px;
  }

  .auth-card {
    margin-top: 7vh;
    padding: 24px 18px;
  }

  .shell {
    padding: 14px 14px 86px;
  }

  .app-tabs {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 15;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    background: #ffffff;
    box-shadow: 0 -5px 18px rgba(31, 44, 71, 0.1);
  }

  .app-tab {
    position: relative;
    min-width: 0;
    min-height: 62px;
    border-top: 3px solid transparent;
    border-bottom: 0;
    padding: 9px 2px 8px;
    font-size: 10px;
  }

  .nav-label-long {
    display: none;
  }

  .nav-label-short {
    display: inline;
  }

  .app-tab.active {
    border-top-color: var(--brand);
    border-bottom-color: transparent;
    background: #f3faf9;
  }

  .nav-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 19px;
    padding: 1px 5px;
    font-size: 10px;
  }

  .metrics,
  .split,
  .router-grid,
  .gx-grid,
  .two-column,
  .filter-bar,
  .account-header,
  .service-row,
  .record-row,
  .compact .record-row {
    grid-template-columns: 1fr;
  }

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

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

  .power-summary article:nth-child(odd) {
    border-left: 0;
  }

  .power-summary article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .attention-metric {
    grid-column: 1 / -1;
  }

  .metric {
    padding: 13px;
  }

  .metric strong {
    font-size: 22px;
  }

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

  .summary-stat:nth-child(3) {
    border-left: 0;
  }

  .summary-stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .topbar,
  .panel-head,
  .management-head,
  .view-heading,
  .topology-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .read-only-banner,
  .path-status-head,
  .trace-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .path-freshness {
    text-align: left;
  }

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

  .path-summary-card:last-child {
    grid-column: 1 / -1;
  }

  .path-control-bar,
  .path-detail-columns,
  .path-facts {
    grid-template-columns: 1fr;
  }

  .path-control-bar button {
    width: 100%;
  }

  .path-facts > div,
  .path-facts > div:nth-child(-n + 4),
  .path-facts > div:nth-child(4n + 1) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .path-facts > div:first-child {
    border-top: 0;
  }

  .path-overview-row,
  .path-event-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .path-overview-row button,
  .path-event-row > .state {
    grid-column: 2;
    justify-self: start;
  }

  .trace-hop-list > div {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }

  .trace-hop-list small {
    grid-column: 2;
  }

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

  .topology-summary > span:nth-child(odd) {
    border-left: 0;
  }

  .topology-summary > span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

  .configured-hop button {
    grid-column: 2;
    width: 100%;
  }

  .diagnostic-run > summary,
  .diagnostic-result {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .diagnostic-run > summary small,
  .diagnostic-result > span:last-child {
    grid-column: 2;
  }

  .topbar-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    justify-content: stretch;
  }

  .topbar-tools .status-pill {
    grid-column: 1 / -1;
  }

  .operator-chip {
    min-width: 0;
  }

  .protection-facts,
  .system-facts {
    grid-template-columns: 1fr;
  }

  .protection-facts > div,
  .system-facts > div {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 10px 0;
  }

  .protection-facts > div:first-child,
  .system-facts > div:first-child {
    border-top: 0;
  }

  .inline-actions,
  .system-team-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .system-tabs {
    overflow-x: auto;
  }

  .system-tabs button {
    flex: 1 0 auto;
    padding-inline: 10px;
  }

  .inline-actions button,
  .system-team-heading button {
    width: 100%;
  }

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

  .router-backup-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .router-backup-row button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .sync-attention-head {
    align-items: stretch;
    flex-direction: column;
  }

  .sync-attention-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .view-heading h2 {
    font-size: 22px;
  }

  .toolbar-actions,
  .search-field,
  .search-field input {
    width: 100%;
  }

  .history-router-field {
    width: 100%;
  }

  .history-control-stack,
  .history-controls,
  .history-controls .compact-field,
  .segmented {
    width: 100%;
  }

  .history-control-stack {
    justify-items: stretch;
  }

  .history-custom-range {
    grid-template-columns: 1fr;
  }

  .history-custom-range button {
    width: 100%;
  }

  .history-custom-note,
  .history-custom-error {
    grid-column: auto;
  }

  .chart-legends {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .chart-tooltip,
  .chart-tooltip.align-left,
  .chart-tooltip.align-right,
  .chart-tooltip.below,
  .chart-tooltip.align-left.below,
  .chart-tooltip.align-right.below {
    top: 10px !important;
    left: 10px !important;
    width: calc(100% - 20px);
    min-width: 0;
    transform: none;
    padding: 9px 10px;
    font-size: 11px;
    line-height: 1.35;
  }

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

  .chart-kpi:last-child {
    grid-column: 1 / -1;
  }

  .router-card-head {
    align-items: flex-start;
  }

  .router-health-overview {
    grid-template-columns: 1fr;
  }

  .gx-live {
    grid-template-columns: 1fr;
  }

  .gx-power-tile small {
    min-height: 25px;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
  }

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

  .gx-charger-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
    padding-block: 10px;
  }

  .gx-charger-identity,
  .gx-charger-day {
    grid-column: 1 / -1;
  }

  .gx-charger-day {
    justify-content: flex-start;
    text-align: left;
  }

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

  .gx-card-facts > span {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 9px 0 0;
  }

  .gx-card-facts > span:nth-child(-n + 2) {
    border-top: 0;
    padding-top: 0;
  }

  .gx-card-facts > span:nth-child(even) {
    border-left: 1px solid var(--line);
    padding-left: 10px;
  }

  .gx-card-facts > span:last-child {
    grid-column: 1 / -1;
  }

  .gx-card-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .gx-card-controls .actions,
  .gx-card-controls .actions button {
    width: 100%;
  }

  .gx-alarm-row {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .gx-alarm-meta {
    grid-column: 2;
    justify-items: start;
  }

  .gx-chart-legend {
    flex-wrap: wrap;
  }

  .gx-chart-legend small {
    width: 100%;
    margin-left: 0;
  }

  .health-gauge svg {
    width: min(78px, 100%);
  }

  .gauge-pair {
    width: min(190px, 100%);
    margin: 0 auto;
  }

  .internet-readings {
    grid-template-columns: minmax(0, 1.5fr) minmax(90px, 1fr);
  }

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

  .router-glance > span:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .activity-filter {
    width: 100%;
  }

  .storage-alert,
  .logs-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .storage-alert button,
  .log-search,
  .log-view-tabs {
    width: 100%;
  }

  .attention-row {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .attention-row > span:last-child {
    grid-column: 2;
  }

  .sync-status-grid {
    grid-template-columns: 1fr;
  }

  .sync-change-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .sync-change-row span:nth-child(n + 3) {
    grid-column: 2;
  }

  .event-body {
    grid-template-columns: 1fr;
  }

  .event-meta {
    justify-content: flex-start;
  }

  .filter-bar .search-field {
    grid-column: auto;
  }

  .selection-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .selection-toolbar .actions button {
    flex: 1 1 145px;
  }

  .account-actions,
  .service-actions {
    grid-column: auto;
    justify-content: flex-start;
  }

  .toolbar-actions button {
    flex: 1;
  }

  .record-actions {
    grid-column: auto;
  }

  .modal {
    width: 100%;
    max-width: none;
    max-height: 100vh;
    height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .modal-form {
    min-height: 100%;
    align-content: start;
  }

  .modal-actions {
    position: sticky;
    bottom: 0;
    margin: 0 -18px -18px;
    padding: 12px 18px;
    background: #ffffff;
  }

  .modal-actions button {
    flex: 1;
  }

  .toast {
    bottom: 78px;
  }
}

/* Network Operations workspace */
.clickable-summary {
  position: relative;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.clickable-summary::after {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--brand-dark);
  border-right: 2px solid var(--brand-dark);
  content: "";
  transform: rotate(45deg);
}

.clickable-summary:hover {
  border-color: #8dbeb8;
  box-shadow: 0 3px 12px rgba(31, 44, 71, 0.1);
  transform: translateY(-1px);
}

.clickable-summary:focus-visible,
.network-map-status:focus-visible,
.attention-incident:focus-visible,
.attention-row-button:focus-visible,
.gx-alarm-row:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 24%, transparent);
  outline-offset: 2px;
}

.metric[data-tone="healthy"],
.attention-summary-card[data-tone="neutral"],
.path-summary-card:not([data-tone]),
.power-summary article:not([data-tone]) {
  border-top-color: var(--line-strong);
}

.metric[data-tone="warning"],
.attention-summary-card[data-tone="warning"],
.path-summary-card[data-tone="warning"],
.power-summary article[data-tone="warning"] {
  border-top-color: #c17b12;
}

.metric[data-tone="critical"],
.attention-summary-card[data-tone="critical"],
.path-summary-card[data-tone="critical"],
.power-summary article[data-tone="critical"] {
  border-top-color: var(--danger);
}

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

.attention-summary-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-strong);
  border-radius: 7px;
  padding: 13px 14px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow);
}

.attention-summary-card.is-selected,
.path-summary-card.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 16%, transparent), var(--shadow);
}

.attention-summary span,
.attention-summary small {
  color: var(--muted);
}

.attention-summary strong {
  font-size: 25px;
}

.attention-summary small {
  line-height: 1.35;
}

.attention-workspace .panel-head {
  align-items: end;
}

.attention-filters {
  display: grid;
  grid-template-columns: minmax(145px, 0.7fr) minmax(180px, 0.9fr) minmax(220px, 1.4fr);
  gap: 9px;
  width: min(690px, 100%);
}

.attention-filters .search-field,
.attention-filters input,
.attention-filters select {
  width: 100%;
}

.active-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 12px;
  border: 1px solid #b8d9d4;
  border-left: 4px solid var(--brand);
  border-radius: 7px;
  padding: 10px 12px;
  background: #f2faf8;
}

.active-filter-summary[hidden] {
  display: none;
}

.active-filter-summary > span {
  display: grid;
  gap: 2px;
}

.active-filter-summary small {
  color: var(--muted);
}

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

.attention-incident {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) minmax(118px, auto);
  align-items: stretch;
  gap: 13px;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 13px 0 0;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.attention-incident:hover {
  border-color: #9bb6bd;
  box-shadow: 0 2px 10px rgba(31, 44, 71, 0.08);
}

.attention-severity {
  min-height: 92px;
  background: #c17b12;
}

.attention-incident[data-tone="danger"] .attention-severity {
  background: var(--danger);
}

.attention-incident[data-tone="ok"] .attention-severity {
  background: var(--ok);
}

.attention-incident-main {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 12px 0;
}

.attention-incident-main > span:not(.attention-incident-title),
.attention-incident-main > small,
.attention-incident-state small {
  color: var(--muted);
}

.attention-incident-main > span:not(.attention-incident-title) {
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.attention-incident-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.attention-incident-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-incident-title small {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.attention-incident-state {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 6px;
  min-width: 0;
  text-align: right;
}

.attention-incident-state small {
  max-width: 180px;
  overflow-wrap: anywhere;
}

.attention-row-button {
  width: 100%;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.attention-row-button:hover {
  border-color: #9bb6bd;
  background: #ffffff;
}

.attention-row-button > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.attention-row-button small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-indicator[data-tone="danger"] {
  background: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}

.attention-indicator[data-tone="ok"] {
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-soft);
}

.attention-detail-modal {
  width: min(760px, calc(100vw - 32px));
}

.attention-detail-modal .modal-body {
  min-height: 100%;
  padding: 18px;
}

.attention-detail-content {
  display: grid;
  gap: 15px;
}

.attention-detail-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.attention-detail-status > span:not(.state) {
  color: var(--muted);
}

.attention-detail-status > span + span:not(.state)::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px 3px 0;
  border-radius: 50%;
  background: var(--line-strong);
}

.attention-detail-summary {
  margin: 0;
  border-left: 3px solid #c17b12;
  padding: 10px 12px;
  background: var(--warn-soft);
  color: #4d3c1d;
  line-height: 1.5;
}

.attention-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.attention-detail-facts > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  background: #f9fbfc;
}

.attention-detail-facts > div:nth-child(even) {
  border-left: 1px solid var(--line);
}

.attention-detail-facts > div:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.attention-detail-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.attention-detail-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.attention-checks,
.attention-timeline {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.attention-checks h3,
.attention-timeline h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.attention-checks ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 22px;
  color: #425466;
}

.attention-rf-evidence {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.attention-rf-evidence h3 {
  margin: 0;
  font-size: 15px;
}

.attention-rf-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.attention-rf-facts > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 11px;
  background: #f8fafb;
}

.attention-rf-facts small { color: var(--muted); }

.attention-rf-evidence > ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attention-rf-evidence > ul li {
  display: grid;
  gap: 2px;
  border-left: 3px solid var(--brand);
  padding: 7px 9px;
  background: #f8fafb;
}

.attention-rf-evidence > ul span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.attention-rf-evidence > button {
  justify-self: start;
}

.attention-timeline-row {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px 0;
}

.attention-timeline-row + .attention-timeline-row {
  border-top: 1px solid var(--line);
}

.attention-timeline-row i {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border: 2px solid #c17b12;
  border-radius: 50%;
  background: #ffffff;
}

.attention-timeline-row[data-event="resolved"] i {
  border-color: var(--ok);
}

.attention-timeline-row > span {
  display: grid;
  gap: 3px;
}

.attention-timeline-row small,
.attention-timeline-row time {
  color: var(--muted);
}

.attention-timeline-row time {
  font-size: 11px;
  white-space: nowrap;
}

.attention-note-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.route-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.route-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.route-legend i {
  width: 24px;
  height: 0;
  border-top: 3px solid var(--line-strong);
}

.route-legend i[data-route-state="primary_active"] {
  border-color: var(--ok);
}

.route-legend i[data-route-state="primary_down"] {
  border-color: var(--danger);
}

.route-legend i[data-route-state="backup_standby"] {
  border-color: #c17b12;
  border-top-style: dashed;
}

.route-legend i[data-route-state="backup_active"] {
  border-color: #c17b12;
}

.route-legend i[data-route-state="physical_circuit"] {
  border-color: #177f87;
  border-top-style: dashed;
}

.network-map-circuit-detail {
  border-left: 4px solid #177f87;
}

.network-map-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  background: #f8fafb;
}

.network-map-find,
.network-map-viewport-controls {
  display: flex;
  align-items: end;
  gap: 7px;
}

.network-map-find .compact-field {
  flex: 1;
  min-width: 170px;
}

.network-map-viewport-controls {
  align-items: center;
  justify-content: center;
}

.network-map-viewport-controls output {
  min-width: 48px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.icon-button {
  width: 34px;
  min-width: 34px;
  padding-inline: 0;
  font-size: 18px;
}

.network-map-toolbar .map-backup-toggle {
  justify-self: end;
}

.network-map-mode-note {
  display: block;
  max-width: none;
  margin: -2px 0 9px;
  text-align: left;
}

.network-workspace-tabs {
  display: flex;
  gap: 3px;
  width: fit-content;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px;
  background: #f6f8fa;
}

.network-workspace-tabs button {
  border: 0;
  border-radius: 5px;
  padding: 9px 15px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.network-workspace-tabs button:hover {
  color: var(--text);
}

.network-workspace-tabs button.active {
  background: #ffffff;
  color: var(--brand-dark);
  box-shadow: 0 1px 3px rgba(31, 44, 71, 0.12);
}

.network-workspace-mobile {
  display: none;
}

.network-map-traffic-panel .network-map-detail {
  margin-top: 0;
}

.network-map-panel:fullscreen {
  overflow: auto;
  padding: 20px;
  background: #ffffff;
}

.network-map-panel:fullscreen .network-map-canvas {
  height: calc(100vh - 265px);
  min-height: 520px;
}

.map-backup-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--text);
  cursor: pointer;
}

.map-backup-toggle:has(input:disabled) {
  opacity: 0.58;
  cursor: default;
}

.map-backup-toggle input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--brand);
}

.map-backup-toggle span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.map-backup-toggle strong {
  font-size: 12px;
}

.map-backup-toggle small,
.network-map-mode-note {
  color: var(--muted);
  font-size: 11px;
}

.network-map-mode-note {
  max-width: none;
  text-align: left;
}

.network-map-panel.map-expanded {
  position: fixed;
  inset: 12px;
  z-index: 60;
  overflow: auto;
  margin: 0;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(31, 44, 71, 0.28);
}

.network-map-panel.map-expanded .network-map-canvas {
  height: calc(100vh - 285px);
  min-height: 520px;
}

.map-edge.route-primary_active {
  stroke: var(--ok);
  stroke-width: 3;
  stroke-dasharray: none;
}

.map-edge.route-primary_down {
  stroke: var(--danger);
  stroke-width: 3;
  stroke-dasharray: none;
}

.map-edge.route-backup_standby {
  stroke: #c17b12;
  stroke-width: 2.5;
  stroke-dasharray: 8 6;
}

.map-edge.route-backup_active {
  stroke: #c17b12;
  stroke-width: 3;
  stroke-dasharray: none;
}

.map-edge,
.network-map-node {
  transition: opacity 160ms ease, filter 160ms ease, stroke-width 160ms ease;
}

.map-edge.is-focused {
  stroke-width: 4;
}

.map-edge.is-dimmed {
  opacity: 0.28;
}

.network-map-node.is-dimmed {
  opacity: 0.56;
  filter: grayscale(0.25);
}

.threshold-line.critical {
  stroke: var(--danger);
  stroke-dasharray: 3 4;
}

.monitoring-profile-preview {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.5fr);
  gap: 16px;
  margin: 4px 0 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 7px;
  padding: 12px 13px;
  background: #f8fafb;
}

.monitoring-profile-preview > div {
  display: grid;
  align-content: center;
  gap: 3px;
}

.monitoring-profile-preview span,
.monitoring-profile-preview dt {
  color: var(--muted);
  font-size: 11px;
}

.monitoring-profile-preview dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.monitoring-profile-preview dl div {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.monitoring-profile-preview dd {
  margin: 0;
  font-size: 12px;
  font-weight: 750;
}

.router-monitoring-fields {
  margin-top: 22px;
}

.router-attention-link > span {
  display: grid;
  gap: 3px;
}

.attention-clear button {
  margin-top: 10px;
}

.network-map-node.selected {
  opacity: 1;
  filter: none;
}

.network-map-status[role="button"] {
  width: fit-content;
  border-bottom: 1px dashed var(--line-strong);
  cursor: pointer;
}

.diagnostic-tool-form {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
  max-width: 720px;
  margin-bottom: 13px;
}

.diagnostic-tool-form .segmented {
  min-height: 42px;
}

.diagnostic-tool-form .field {
  margin: 0;
}

.diagnostic-tool-form > button {
  min-height: 42px;
}

.diagnostic-tool-result {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #f9fbfc;
}

.diagnostic-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.diagnostic-result-head strong {
  font-size: 16px;
}

.diagnostic-result-head > span:first-child {
  display: grid;
  gap: 3px;
}

.diagnostic-result-head span {
  color: var(--muted);
  font-size: 12px;
}

.diagnostic-reading-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.diagnostic-reading-grid > span {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #ffffff;
}

.diagnostic-reading-grid span,
.diagnostic-hop-list small {
  color: var(--muted);
  font-size: 11px;
}

.diagnostic-hop-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: #ffffff;
}

.diagnostic-hop-list > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px 11px;
}

.diagnostic-hop-list > div + div {
  border-top: 1px solid var(--line);
}

.diagnostic-hop-list code {
  overflow: hidden;
  text-overflow: ellipsis;
}

.diagnostic-tool-error {
  margin: 10px 0 0;
  color: var(--danger);
}

.gx-alarm-row {
  width: 100%;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gx-alarm-row:hover {
  border-color: #9bb6bd;
  background: #ffffff;
}

.gx-history-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gx-temperature-history {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #f9fbfc;
}

.gx-temperature-history > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.gx-temperature-history header span {
  color: var(--muted);
  font-size: 11px;
}

.gx-temperature-history svg {
  display: block;
  width: 100%;
  height: 100px;
}

.gx-temperature-line {
  fill: none;
  stroke: #2f6f9f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.gx-temperature-axis {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.gx-temperature-label {
  fill: var(--muted);
  font-size: 10px;
}

.gx-temperature-point {
  fill: #ffffff;
  stroke: #2f6f9f;
  stroke-width: 3;
}

.gx-temperature-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  padding: 16px;
  color: var(--muted);
  text-align: center;
}

.router-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 11px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
}

.router-attention-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  border: 1px solid #e3bd70;
  border-radius: 7px;
  padding: 8px 10px;
  background: var(--warn-soft);
  color: #5c4318;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.router-attention-link[data-tone="danger"] {
  border-color: #e5a19d;
  background: var(--danger-soft);
  color: var(--danger);
}

.configuration-studio {
  --configuration-blue: #246b98;
  --configuration-blue-soft: #e8f2f8;
  --configuration-purple: #7353a4;
  --configuration-purple-soft: #f0ebf7;
}

.uisp-assistant {
  margin-bottom: 14px;
  border-top: 3px solid var(--configuration-blue);
}

.uisp-assistant-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.uisp-assistant-head h2,
.uisp-assistant-head p {
  margin: 0;
}

.uisp-assistant-head > div > p:last-child {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.uisp-integration-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.uisp-integration-summary article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.uisp-integration-summary span,
.uisp-integration-summary small { color: var(--muted); }

.uisp-advanced {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.uisp-advanced > summary {
  padding: 13px 15px;
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 750;
}

.uisp-advanced-body {
  padding: 0 15px 15px;
  border-top: 1px solid var(--line);
}

.uisp-assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr) auto;
  align-items: end;
  gap: 11px;
  margin-top: 18px;
}

.uisp-assistant-actions {
  display: flex;
  gap: 8px;
}

.uisp-assistant-results {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

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

.uisp-check-grid article {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.uisp-check-grid span,
.uisp-check-grid small {
  color: var(--muted);
}

.uisp-check-grid small {
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.uisp-recommendation {
  margin-top: 11px;
  border-radius: 8px;
  padding: 11px 13px;
  background: var(--configuration-blue-soft);
  color: #164d70;
  font-weight: 700;
  line-height: 1.45;
}

.uisp-change-plan {
  display: grid;
  gap: 6px;
  margin-top: 11px;
  border: 1px solid #d9c68b;
  border-radius: 8px;
  padding: 12px;
  background: #fffaf0;
}

.uisp-change-plan[hidden] {
  display: none;
}

.uisp-change-plan span,
.uisp-change-plan small {
  color: var(--muted);
}

.uisp-change-plan code {
  overflow-wrap: anywhere;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
}

.uisp-api-setup {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.uisp-api-setup h3,
.uisp-api-setup p { margin: 0; }

.uisp-api-setup p {
  margin-top: 5px;
  color: var(--muted);
}

.uisp-api-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.uisp-api-result {
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
}

.uisp-api-result[data-state="live"] {
  color: var(--success);
  background: var(--success-soft);
}

.uisp-monitoring-setup {
  display: grid;
  gap: 13px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.uisp-monitoring-setup h3,
.uisp-monitoring-setup p { margin: 0; }

.uisp-monitoring-setup p,
.uisp-monitoring-setup > small { color: var(--muted); }

.uisp-monitoring-setup p { margin-top: 5px; }

.uisp-monitoring-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.uisp-rf-panel { display: grid; gap: 16px; }

.uisp-rf-status { margin: 0; }
.uisp-rf-status.success { border-color: color-mix(in srgb, var(--success) 35%, var(--line)); }
.uisp-rf-status.danger { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }

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

.uisp-rf-summary article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.uisp-rf-summary span,
.uisp-rf-summary small { color: var(--muted); }
.uisp-rf-summary strong { font-size: 1.55rem; }

.uisp-rf-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, 250px) minmax(150px, 210px);
  gap: 12px;
}

.uisp-rf-list { display: grid; gap: 12px; }

.uisp-rf-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 14px;
  background: var(--surface);
}

.uisp-rf-card[data-state="healthy"] { border-left-color: var(--success); }
.uisp-rf-card[data-state="warning"] { border-left-color: var(--warning); }
.uisp-rf-card[data-state="critical"],
.uisp-rf-card[data-state="offline"] { border-left-color: var(--danger); }

.uisp-rf-card > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.uisp-rf-card > header > div { display: grid; gap: 3px; min-width: 0; }
.uisp-rf-card > header span:not(.state) { color: var(--muted); }

.uisp-rf-card > header > .uisp-rf-card-states {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
}

.monitoring-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.monitoring-chip[data-enabled="true"] {
  border-color: #9bc8c0;
  background: #edf9f7;
  color: var(--brand-dark);
}

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

.uisp-rf-metrics > span,
.uisp-rf-history > span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.uisp-rf-metrics small,
.uisp-rf-history small { color: var(--muted); }

.uisp-rf-card-foot { display: grid; gap: 9px; color: var(--muted); }
.uisp-rf-card-foot ul { margin: 0; padding-left: 20px; color: var(--text); }
.uisp-rf-card-foot button { justify-self: start; }

.uisp-rf-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.uisp-stations {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.uisp-stations > summary {
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
}

.uisp-station-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-height: 320px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.uisp-station-list > span {
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  background: var(--surface);
}

.uisp-station-list small { color: var(--muted); }

.uisp-rf-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

.uisp-rf-pagination[hidden] { display: none; }

.uisp-rf-history {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.uisp-rf-history[hidden] { display: none; }

.configuration-readonly-badge {
  align-self: center;
  border-color: #9bc8c0;
  background: #edf9f7;
  color: var(--brand-dark);
}

.configuration-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  align-items: end;
  gap: 22px;
}

.configuration-picker h2,
.configuration-identity h2 {
  margin: 0;
}

.configuration-picker p,
.configuration-identity p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.configuration-picker-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.configuration-picker-controls select {
  width: 100%;
}

.configuration-loading {
  display: flex;
  align-items: center;
  gap: 13px;
  border-color: #a7cec8;
  background: #f3fbfa;
}

.configuration-loading[hidden] {
  display: none;
}

.configuration-loading p {
  margin: 4px 0 0;
  color: var(--muted);
}

.configuration-loading-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 3px solid #b7ddd7;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: configuration-spin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .configuration-loading-mark { animation: none; }
}

.configuration-error {
  border-color: #e5a19d;
  background: var(--danger-soft);
  color: var(--danger);
}

.configuration-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-left: 4px solid var(--brand);
}

.configuration-snapshot-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  margin: 0;
}

.configuration-snapshot-meta div {
  display: grid;
  gap: 3px;
}

.configuration-snapshot-meta dt {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.configuration-snapshot-meta dd {
  margin: 0;
  font-weight: 700;
}

.configuration-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.configuration-metrics article {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.configuration-metrics span,
.configuration-metrics small {
  color: var(--muted);
}

.configuration-metrics strong {
  font-size: 23px;
}

.configuration-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.configuration-tabs button {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 11px 14px 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.configuration-tabs button.active {
  border-bottom-color: var(--brand);
  color: var(--brand-dark);
}

.configuration-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
}

.configuration-insight-list,
.configuration-explanation,
.configuration-rule-list {
  display: grid;
  gap: 9px;
}

.configuration-insight {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #fbfcfd;
}

.configuration-insight-mark {
  min-height: 54px;
  border-radius: 5px;
  background: var(--configuration-blue);
}

.configuration-insight[data-severity="warning"] .configuration-insight-mark { background: #d58a18; }
.configuration-insight[data-severity="critical"] .configuration-insight-mark { background: var(--danger); }
.configuration-insight[data-severity="ok"] .configuration-insight-mark { background: var(--ok); }

.configuration-insight strong,
.configuration-insight span,
.configuration-insight small {
  display: block;
}

.configuration-insight span {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.45;
}

.configuration-insight small {
  margin-top: 5px;
  color: var(--configuration-blue);
  font-weight: 700;
}

.configuration-explanation p {
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 10px;
  line-height: 1.5;
}

.configuration-explanation p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.configuration-section > .panel + .panel {
  margin-top: 14px;
}

.configuration-network-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.configuration-network-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fbfcfd;
}

.configuration-network-card header {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.configuration-network-mark {
  width: 12px;
  height: 34px;
  border-radius: 4px;
  background: var(--configuration-blue);
}

.configuration-network-card header strong,
.configuration-network-card header small {
  display: block;
}

.configuration-network-card header small {
  margin-top: 2px;
  color: var(--muted);
}

.configuration-network-card header b {
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--configuration-blue-soft);
  color: var(--configuration-blue);
  font-size: 11px;
}

.configuration-network-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 13px 0 0;
}

.configuration-network-card dt {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.configuration-network-card dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

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

.configuration-table {
  width: 100%;
  border-collapse: collapse;
}

.configuration-table th,
.configuration-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

.configuration-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.configuration-rule {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfd;
}

.configuration-rule.disabled {
  opacity: 0.62;
}

.configuration-rule-order {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 700;
}

.configuration-rule > div > strong,
.configuration-rule > div > span,
.configuration-rule-state b,
.configuration-rule-state small {
  display: block;
}

.configuration-rule > div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.configuration-rule-state {
  min-width: 85px;
  text-align: right;
}

.configuration-rule-state b {
  color: var(--brand-dark);
  text-transform: uppercase;
}

.configuration-rule-state small {
  margin-top: 2px;
  color: var(--muted);
}

.configuration-error-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.configuration-error-row:last-child { border-bottom: 0; }
.configuration-error-row strong { text-transform: capitalize; }
.configuration-error-row span { color: var(--muted); }

.configuration-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.configuration-capability {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 155px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}

.configuration-capability[data-available="false"] { opacity: 0.7; }

.configuration-capability > div {
  display: grid;
  grid-template-columns: 9px 1fr;
  align-items: start;
  gap: 9px;
}

.configuration-capability-mark {
  width: 9px;
  height: 34px;
  border-radius: 4px;
  background: var(--configuration-purple);
}

.configuration-capability p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.configuration-capability .state {
  align-self: end;
  justify-self: start;
}

.safe-change-intro,
.safe-change-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-left: 4px solid var(--configuration-purple);
}

.safe-change-intro h2,
.safe-change-plan-head h2 {
  margin: 0;
}

.safe-change-intro p:not(.eyebrow),
.safe-change-plan-head p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.safe-change-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 14px;
  margin-top: 14px;
}

.safe-change-form {
  display: grid;
  gap: 12px;
}

.safe-change-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.safe-change-boundary {
  border-color: #e7cc91;
  background: #fff9eb;
  line-height: 1.5;
}

.safe-change-lock-panel ul,
.safe-change-required {
  display: grid;
  gap: 9px;
  margin: 13px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.safe-change-lock-mark {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin-top: 12px;
  border: 2px solid #9bc8c0;
  border-radius: 50%;
  background: #edf9f7;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#safe-vlan-plan-results {
  margin-top: 14px;
  scroll-margin-top: 18px;
}

#safe-vlan-plan-results[hidden] { display: none; }

.safe-change-plan-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 210px;
}

.safe-change-plan-meta small {
  color: var(--muted);
}

.safe-change-checks,
.safe-change-operations {
  display: grid;
  gap: 9px;
}

.safe-change-checks article {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfd;
}

.safe-change-check-mark {
  min-height: 44px;
  border-radius: 4px;
  background: var(--configuration-blue);
}

.safe-change-checks article[data-status="pass"] .safe-change-check-mark { background: var(--ok); }
.safe-change-checks article[data-status="warn"] .safe-change-check-mark { background: #d58a18; }
.safe-change-checks article[data-status="block"] .safe-change-check-mark { background: var(--danger); }

.safe-change-checks strong,
.safe-change-checks small {
  display: block;
}

.safe-change-checks small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.4;
}

.safe-change-operation {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #fbfcfd;
}

.safe-change-operation-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: var(--configuration-purple-soft);
  color: var(--configuration-purple);
  font-weight: 800;
}

.safe-change-operation p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.safe-change-operation details {
  margin-top: 9px;
}

.safe-change-operation summary {
  cursor: pointer;
  color: var(--configuration-blue);
  font-size: 12px;
  font-weight: 700;
}

.safe-change-operation code,
.safe-change-operation details small {
  display: block;
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.safe-change-operation code {
  border-radius: 6px;
  padding: 9px;
  background: var(--soft);
  color: var(--ink);
  white-space: normal;
}

.safe-change-operation details small {
  color: var(--muted);
}

.safe-change-final-lock {
  margin-top: 14px;
  border-color: #9bc8c0;
  background: #edf9f7;
  color: var(--brand-dark);
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .uisp-integration-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uisp-assistant-form { grid-template-columns: 1fr 1fr; }
  .uisp-assistant-actions { grid-column: 1 / -1; }
  .uisp-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .configuration-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .configuration-network-grid,
  .configuration-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safe-change-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .uisp-assistant-head { flex-direction: column; }
  .uisp-integration-summary,
  .uisp-monitoring-form { grid-template-columns: 1fr; }
  .uisp-assistant-form,
  .uisp-check-grid { grid-template-columns: 1fr; }
  .uisp-assistant-actions { display: grid; grid-column: auto; }
  .uisp-assistant-actions button { width: 100%; }
  .uisp-monitoring-form button { width: 100%; }
  .uisp-station-list { grid-template-columns: 1fr; }
  .configuration-picker,
  .configuration-overview-grid { grid-template-columns: 1fr; }
  .configuration-picker-controls { grid-template-columns: 1fr; }
  .configuration-picker-controls button { width: 100%; }
  .configuration-identity { align-items: flex-start; flex-direction: column; }
  .configuration-snapshot-meta { justify-content: flex-start; }
  .configuration-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .configuration-network-grid,
  .configuration-capability-grid { grid-template-columns: 1fr; }
  .configuration-rule { grid-template-columns: 30px minmax(0, 1fr); }
  .configuration-rule-state { grid-column: 2; text-align: left; }
  .configuration-error-row { grid-template-columns: 1fr; gap: 3px; }
  .safe-change-intro,
  .safe-change-plan-head { align-items: flex-start; flex-direction: column; }
  .safe-change-plan-meta { justify-items: start; min-width: 0; }
  .safe-change-form-row { grid-template-columns: 1fr; }
  .safe-change-operation { grid-template-columns: 30px minmax(0, 1fr); }
  .safe-change-operation > .state { grid-column: 2; justify-self: start; }
}

@media (max-width: 1040px) {
  .attention-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attention-workspace .panel-head {
    align-items: stretch;
  }

  .attention-filters {
    width: 100%;
  }

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

  .network-map-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .network-map-toolbar .map-backup-toggle {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding-bottom: 84px;
  }

  .app-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .app-tabs::-webkit-scrollbar {
    display: none;
  }

  .app-tab {
    flex: 0 0 76px;
    min-width: 76px;
  }

  .attention-summary {
    gap: 8px;
  }

  .attention-summary-card {
    padding: 11px;
  }

  .attention-summary strong {
    font-size: 22px;
  }

  .attention-filters,
  .diagnostic-tool-form {
    grid-template-columns: 1fr;
  }

  .attention-filters .search-field {
    min-height: 42px;
  }

  .attention-incident {
    grid-template-columns: 5px minmax(0, 1fr);
    padding-right: 10px;
  }

  .attention-incident-state {
    grid-column: 2;
    grid-row: 2;
    justify-items: start;
    padding: 0 0 11px;
    text-align: left;
  }

  .attention-severity {
    grid-row: 1 / 3;
    min-height: 112px;
  }

  .attention-incident-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .attention-incident-title strong {
    white-space: normal;
  }

  .attention-detail-modal {
    width: 100%;
  }

  .attention-detail-facts {
    grid-template-columns: 1fr;
  }

  .attention-detail-facts > div:nth-child(even) {
    border-left: 0;
  }

  .attention-detail-facts > div:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }

  .attention-timeline-row {
    grid-template-columns: 11px minmax(0, 1fr);
  }

  .attention-timeline-row time {
    grid-column: 2;
  }

  .diagnostic-tool-form .segmented,
  .diagnostic-tool-form > button {
    width: 100%;
  }

  .network-map-toolbar {
    display: none;
  }

  .network-workspace-tabs {
    display: none;
  }

  .network-workspace-mobile {
    display: grid;
    gap: 5px;
    margin: 12px 0 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
  }

  .network-workspace-mobile select {
    width: 100%;
  }

  .active-filter-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .active-filter-summary button {
    width: 100%;
  }

  #view-attention .view-heading .toolbar-actions,
  #view-attention .view-heading .toolbar-actions button {
    width: auto;
    align-self: flex-end;
  }

  .monitoring-profile-preview {
    grid-template-columns: 1fr;
  }

  .monitoring-profile-preview dl div:first-child {
    border-left: 0;
    padding-left: 0;
  }

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

  .diagnostic-hop-list > div {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .diagnostic-hop-list > div > :last-child {
    grid-column: 2;
  }

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

  .gx-history-kpis > div:nth-child(odd) {
    border-left: 0;
  }

  .gx-history-kpis > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .router-card-actions {
    justify-content: stretch;
  }

  .router-card-actions button {
    flex: 1 1 110px;
  }
}

@media (max-width: 760px) {
  .app-tabs {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }

  .app-tab.mobile-primary,
  .mobile-more-tab {
    display: inline-flex;
    flex: initial;
    min-width: 0;
  }

  .app-tab.mobile-secondary {
    display: none;
  }

  .mobile-more-menu:not([hidden]) {
    display: grid;
  }

  .uisp-api-form,
  .uisp-rf-controls,
  .uisp-rf-summary,
  .circuit-summary,
  .uisp-rf-metrics,
  .uisp-rf-history {
    grid-template-columns: 1fr;
  }

  .uisp-rf-card > header {
    flex-direction: column;
  }

  .uisp-integration-summary,
  .uisp-rf-summary,
  .circuit-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .circuit-toolbar,
  .circuit-discovery-head,
  .circuit-suggestion > header,
  .circuit-suggestion > footer,
  .circuit-card > header,
  .circuit-card > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .circuit-flow {
    grid-template-columns: 1fr;
  }

  .discovery-flow,
  .discovery-traffic,
  .discovery-coverage {
    grid-template-columns: 1fr;
  }

  .discovery-coverage > span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .discovery-coverage > span:last-child { border-bottom: 0; }

  .discovery-router-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .discovery-flow > i {
    width: 0;
    height: 20px;
    margin-left: 20px;
    border-top: 0;
    border-left: 2px dashed var(--brand);
  }

  .circuit-suggestion > footer > div,
  .circuit-suggestion > footer button,
  .circuit-discovery-head > button {
    width: 100%;
  }

  .circuit-suggestion > footer > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .circuit-flow > i {
    width: 2px;
    height: 22px;
    margin-left: 20px;
  }

  .circuit-flow > i::after {
    top: auto;
    right: 50%;
    bottom: -1px;
    transform: translateX(50%) rotate(135deg);
  }

  .circuit-diagnosis-preview,
  .rf-baseline-panel,
  .rf-verification-panel,
  .rf-comparison {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .circuit-diagnosis-preview > button,
  .rf-baseline-panel > button,
  .rf-verification-panel > button {
    width: 100%;
  }

  .circuit-diagnosis-drawer {
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
  }

  .circuit-diagnosis-footer {
    margin: 0;
  }

  .circuit-diagnosis-head h2 {
    white-space: normal;
  }

  .rf-guidance-grid,
  .rf-diagnosis-hero dl,
  .map-circuit-grid,
  .attention-rf-facts {
    grid-template-columns: 1fr;
  }

  .rf-evidence-list article {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .rf-evidence-list article > b {
    grid-column: 2;
  }

  .rf-history-list article {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .rf-history-list time {
    grid-column: 2;
  }
}

@media (max-width: 340px) {
  .uisp-integration-summary,
  .uisp-rf-summary,
  .circuit-summary {
    grid-template-columns: 1fr;
  }
}

/* Circuit Operations Workspace */
.circuit-panel {
  gap: 16px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.circuit-panel > *,
.circuit-panel .panel-head > *,
.circuit-operations-inspector,
.ops-section,
.ops-rf-chart-wrap {
  min-width: 0;
  max-width: 100%;
}

.circuit-operations-bar,
.circuit-summary,
.ops-inspector-head,
.ops-inspector-head > div,
.circuit-ops-card > header,
.circuit-ops-card > footer,
.ops-card-diagnosis,
.ops-card-diagnosis > div,
.ops-section-head,
.ops-rf-chart-legend,
.ops-inspector-actions {
  display: flex;
  align-items: center;
}

.circuit-operations-bar,
.ops-inspector-head,
.circuit-ops-card > header,
.circuit-ops-card > footer,
.ops-card-diagnosis,
.ops-section-head,
.ops-inspector-actions {
  justify-content: space-between;
  gap: 12px;
}

.circuit-operations-bar {
  min-height: 48px;
  border-block: 1px solid var(--line);
  padding-block: 9px;
}

.circuit-operations-bar .search-field {
  width: min(330px, 40vw);
}

.circuit-summary {
  flex-wrap: wrap;
  gap: 8px;
}

.circuit-summary > span {
  border-right: 1px solid var(--line);
  padding-right: 10px;
  color: var(--muted);
  font-size: 12px;
}

.circuit-summary > span:last-child {
  border-right: 0;
}

.circuit-summary strong {
  margin-right: 3px;
  color: var(--text);
  font-size: 16px;
}

.circuit-list {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.circuit-ops-card {
  display: grid;
  gap: 13px;
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--line-strong);
  border-radius: 8px;
  padding: 15px;
  background: #ffffff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.circuit-ops-card:hover,
.circuit-ops-card:focus-visible,
.circuit-ops-card[data-selected="true"] {
  border-color: #6ba9a3;
  box-shadow: 0 8px 22px rgba(22, 67, 71, 0.11);
  outline: 0;
}

.circuit-ops-card[data-selected="true"] {
  border-top-color: var(--brand);
  transform: translateY(-1px);
}

.circuit-ops-card[data-state="critical"] { border-top-color: var(--danger); }
.circuit-ops-card[data-state="review"] { border-top-color: #b67811; }
.circuit-ops-card[data-state="healthy"] { border-top-color: var(--ok); }

.circuit-ops-card > header > div:first-child,
.ops-inspector-head > div:first-child,
.ops-card-diagnosis > span,
.ops-section-head > div,
.ops-direction-panel > header,
.ops-diagnosis-main,
.ops-diagnosis-impact,
.ops-next-check,
.ops-verification-result > header,
.ops-empty-action,
.ops-missing-grid article > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.circuit-ops-card > header > div:first-child {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.circuit-ops-card > header strong {
  overflow-wrap: anywhere;
  font-size: 16px;
}

.circuit-role,
.ops-source-tag {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 24px;
  border: 1px solid #a7cfc9;
  border-radius: 5px;
  padding: 3px 7px;
  background: #eaf6f4;
  color: var(--brand-dark);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.circuit-role.backup {
  border-color: #e0c084;
  background: #fff7e7;
  color: #805000;
}

.ops-path-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.ops-endpoint-compact {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
  background: #f8fafb;
}

.ops-endpoint-compact > span,
.ops-section-head span,
.ops-direction-panel > header > span,
.ops-path-endpoint > span,
.ops-diagnosis-impact > span,
.ops-next-check > span,
.ops-guidance-grid > div > span,
.ops-missing-section .ops-section-head span {
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ops-endpoint-compact > strong,
.ops-endpoint-compact > small {
  overflow-wrap: anywhere;
}

.ops-endpoint-compact > small {
  min-height: 32px;
  color: var(--muted);
  font-size: 11px;
}

.ops-endpoint-compact > div {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: baseline;
  gap: 4px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

.ops-endpoint-compact > div b { font-size: 13px; }
.ops-endpoint-compact > div em { color: var(--muted); font-size: 9px; font-style: normal; text-transform: uppercase; }

.ops-link-compact {
  display: grid;
  place-content: center;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  text-align: center;
}

.ops-link-compact i,
.ops-path-link i {
  position: relative;
  display: block;
  height: 3px;
  background: var(--brand);
}

.ops-link-compact i::after,
.ops-path-link i::after {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 8px;
  height: 8px;
  border-top: 3px solid var(--brand);
  border-right: 3px solid var(--brand);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.ops-link-compact strong { color: var(--text); font-size: 12px; }
.ops-link-compact small { font-size: 10px; }

.ops-evidence-lanes,
.ops-capacity-grid,
.ops-direction-grid,
.ops-guidance-grid,
.ops-missing-grid {
  display: grid;
  gap: 10px;
}

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

.ops-evidence-lanes > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  border-left: 3px solid #4d8fbc;
  padding: 7px 9px;
  background: #f6f9fb;
}

.ops-evidence-lanes > div:nth-child(2) { border-left-color: #8766a8; }
.ops-evidence-lanes > div:nth-child(3) { border-left-color: var(--brand); }
.ops-evidence-lanes > div[data-available="false"] { border-left-color: #b67811; background: #fffaf0; }
.ops-evidence-lanes small { color: var(--muted); font-size: 10px; font-weight: 750; }
.ops-evidence-lanes strong { overflow-wrap: anywhere; font-size: 13px; }
.ops-evidence-lanes span { overflow-wrap: anywhere; color: var(--muted); font-size: 10px; line-height: 1.3; }

.ops-card-diagnosis {
  align-items: stretch;
  border: 1px solid var(--line);
  border-left: 4px solid #b67811;
  border-radius: 7px;
  padding: 10px 11px;
  background: #fffdf8;
}

.ops-card-diagnosis > span small,
.ops-card-diagnosis > span p,
.circuit-ops-card > footer,
.circuit-permission-note {
  color: var(--muted);
  font-size: 11px;
}

.ops-card-diagnosis > span p {
  margin: 1px 0 0;
  line-height: 1.35;
}

.ops-card-diagnosis > div {
  justify-content: flex-end;
  gap: 8px;
}

.ops-missing-count,
.ops-complete-chip,
.ops-coverage-chip {
  border-radius: 5px;
  padding: 4px 7px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 10px;
  font-weight: 800;
}

.ops-complete-chip { background: var(--ok-soft); color: var(--ok); }
.ops-coverage-chip { background: #eef6fb; color: #245f84; }
.circuit-ops-card > footer { border-top: 1px solid var(--line); padding-top: 10px; }
.circuit-ops-card > footer > div { display: flex; gap: 6px; }

.circuit-operations-inspector {
  display: grid;
  gap: 14px;
  scroll-margin-top: 84px;
  border: 1px solid #91bdb8;
  border-radius: 8px;
  padding: 16px;
  background: #f7fafb;
  box-shadow: 0 12px 30px rgba(31, 61, 72, 0.09);
}

.circuit-operations-inspector[hidden] { display: none; }

.ops-inspector-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
}

.ops-inspector-head > div:first-child {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 9px;
}

.ops-inspector-head h3 {
  margin: 0;
  font-size: 22px;
}

.ops-inspector-head p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.ops-inspector-head > div:last-child { align-items: center; gap: 8px; }

.ops-physical-path {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(190px, .7fr) minmax(240px, 1fr);
  align-items: stretch;
  gap: 12px;
}

.ops-path-endpoint,
.ops-path-link,
.ops-section,
.ops-diagnosis-card,
.ops-guidance-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.ops-path-endpoint {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 14px;
}

.ops-path-endpoint > strong { font-size: 18px; }
.ops-path-endpoint > small,
.ops-path-endpoint > em { color: var(--muted); font-style: normal; }
.ops-path-endpoint > b { margin-top: 6px; overflow-wrap: anywhere; color: #31465a; }

.ops-path-endpoint > div {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  border-left: 3px solid var(--brand);
  padding: 8px 9px;
  background: var(--soft);
}

.ops-path-endpoint > div[data-available="false"] { border-left-color: #b67811; background: #fffaf0; }
.ops-path-endpoint > div small,
.ops-path-endpoint > div span { color: var(--muted); }

.ops-path-link {
  display: grid;
  place-content: center;
  gap: 7px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.ops-path-link > span { color: var(--brand-dark); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.ops-path-link > strong { color: var(--text); font-size: 17px; }

.ops-section,
.ops-diagnosis-card {
  padding: 15px;
}

.ops-section-head {
  align-items: flex-end;
  margin-bottom: 13px;
}

.ops-section-head h4,
.ops-direction-panel h4,
.ops-diagnosis-card h4 {
  margin: 0;
  font-size: 17px;
}

.ops-section-head p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

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

.ops-direction-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  border-left: 4px solid #287ba6;
  padding: 2px 0 2px 12px;
}

.ops-direction-panel[data-role="station"] { border-left-color: #74529a; }
.ops-direction-panel > header small { color: var(--muted); }

.ops-rf-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.ops-rf-metric {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  background: #f8fafb;
}

.ops-rf-metric small { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.ops-rf-metric strong { overflow-wrap: anywhere; font-size: 15px; }
.ops-rf-metric[data-available="false"] strong { color: var(--muted); font-size: 12px; }
.ops-rf-metric > span { color: var(--muted); font-size: 10px; line-height: 1.35; }

.ops-capacity-grid article {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid #4d8fbc;
  border-radius: 8px;
  padding: 13px;
  background: #ffffff;
}

.ops-capacity-grid article:nth-child(2) { border-top-color: #8766a8; }
.ops-capacity-grid article:nth-child(3) { border-top-color: var(--brand); }
.ops-capacity-grid article[data-available="false"] { border-top-color: #b67811; background: #fffaf0; }
.ops-source-tag { border-color: #bad3e5; background: #eef6fb; color: #245f84; }
.ops-source-tag.design { border-color: #d1c2df; background: #f6f1fa; color: #644882; }
.ops-source-tag.mikrotik { border-color: #a7cfc9; background: #eaf6f4; color: var(--brand-dark); }
.ops-capacity-grid article > small { margin-top: 5px; color: var(--muted); }
.ops-capacity-grid article > strong { font-size: 21px; }
.ops-capacity-grid article > p { margin: 2px 0 0; color: var(--muted); line-height: 1.4; }
.ops-current-rate {
  margin-top: 5px;
  border-top: 1px solid var(--line);
  padding-top: 7px;
  color: #526274;
  font-size: 11px;
  line-height: 1.4;
}

.ops-link-evidence {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid #4d8fbc;
  border-radius: 7px;
  padding: 12px;
  background: #f8fafb;
}

.ops-link-evidence[data-status="unavailable"] { border-left-color: #b67811; background: #fffaf0; }
.ops-link-evidence > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ops-link-evidence > header div { display: grid; gap: 2px; }
.ops-link-evidence > header span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.ops-link-evidence > header small { max-width: 520px; color: var(--muted); text-align: right; }
.ops-link-evidence > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.ops-coverage-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.ops-coverage-summary > span {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 6px;
  border-left: 4px solid var(--line-strong);
  padding: 9px 10px;
  background: #f8fafb;
}

.ops-coverage-summary strong { font-size: 20px; }
.ops-coverage-summary small { color: var(--muted); }
.ops-coverage-summary [data-status="available"] { border-left-color: var(--ok); }
.ops-coverage-summary [data-status="actionable"] { border-left-color: #287ba6; }
.ops-coverage-summary [data-status="unsupported"] { border-left-color: #7b8794; }
.ops-coverage-summary [data-status="missing"] { border-left-color: #b67811; }

.ops-coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.ops-coverage-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  padding: 9px 10px;
  background: #ffffff;
}

.ops-coverage-grid article[data-status="available"] { border-left-color: var(--ok); }
.ops-coverage-grid article[data-status="actionable"] { border-left-color: #287ba6; background: #f6fbfe; }
.ops-coverage-grid article[data-status="unsupported"] { border-left-color: #7b8794; background: #f6f7f8; }
.ops-coverage-grid article[data-status="missing"] { border-left-color: #b67811; background: #fffaf0; }
.ops-coverage-grid article > span,
.ops-limit-label {
  border-radius: 5px;
  padding: 3px 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
  text-transform: uppercase;
}
.ops-coverage-grid article[data-status="available"] > span { background: var(--ok-soft); color: var(--ok); }
.ops-coverage-grid article[data-status="actionable"] > span { background: #e7f3fa; color: #245f84; }
.ops-coverage-grid article[data-status="missing"] > span { background: var(--warn-soft); color: var(--warn); }
.ops-coverage-grid article > div { display: grid; gap: 2px; min-width: 0; }
.ops-coverage-grid article small,
.ops-coverage-grid article p { color: var(--muted); }
.ops-coverage-grid article p { margin: 2px 0 0; overflow-wrap: anywhere; line-height: 1.35; }

.ops-source-audit { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.ops-source-audit > summary { color: var(--brand-dark); font-weight: 800; cursor: pointer; }
.ops-source-audit > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.ops-source-audit article { border-left: 3px solid #4d8fbc; padding: 8px 9px; background: #f8fafb; }
.ops-source-audit header { display: flex; justify-content: space-between; gap: 8px; }
.ops-source-audit header span { color: #245f84; font-weight: 850; }
.ops-source-audit small { color: var(--muted); }
.ops-source-audit p { margin: 3px 0 0; color: #425466; line-height: 1.35; }

.interface-suggestion {
  display: grid;
  gap: 5px;
  margin-top: 5px;
  border-left: 4px solid #287ba6;
  padding: 9px 10px;
  background: #f2f8fc;
}
.interface-suggestion[hidden] { display: none; }
.interface-suggestion[data-state="ambiguous"],
.interface-suggestion[data-state="no_exact_match"] { border-left-color: #b67811; background: #fffaf0; }
.interface-suggestion small { color: var(--muted); line-height: 1.35; }
.interface-suggestion button { width: max-content; }

.ops-diagnosis-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, .65fr);
  gap: 13px;
  border-left: 5px solid var(--line-strong);
}

.ops-diagnosis-card[data-tone="ok"] { border-left-color: var(--ok); }
.ops-diagnosis-card[data-tone="warn"] { border-left-color: #b67811; }
.ops-diagnosis-card[data-tone="danger"] { border-left-color: var(--danger); }
.ops-diagnosis-main { align-content: start; }
.ops-diagnosis-main > small { color: var(--muted); }
.ops-diagnosis-main h4 { margin-top: 5px; font-size: 20px; }
.ops-diagnosis-main p { margin: 0; color: #425466; line-height: 1.5; }

.ops-diagnosis-impact,
.ops-next-check,
.ops-no-evidence {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
  background: #f8fafb;
}

.ops-diagnosis-impact small { color: var(--muted); }
.ops-next-check { grid-column: 1 / -1; border-left: 4px solid var(--brand); }
.ops-diagnosis-card > details,
.ops-no-evidence { grid-column: 1 / -1; }
.ops-diagnosis-card > details summary { color: var(--brand-dark); font-weight: 800; cursor: pointer; }
.ops-diagnosis-card > details .rf-evidence-list { margin-top: 10px; }
.ops-no-evidence { display: grid; gap: 3px; color: var(--muted); }

.ops-range-control {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(48px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.ops-range-control button {
  min-height: 34px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 6px 10px;
  background: #ffffff;
  color: var(--muted);
}

.ops-range-control button:last-child { border-right: 0; }
.ops-range-control button.active { background: var(--brand); color: #ffffff; }

.ops-metric-control {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.ops-metric-control button {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 6px 11px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
}

.ops-metric-control button.active { border-color: var(--brand); background: #eaf6f4; color: var(--brand-dark); }

.ops-rf-chart-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.ops-rf-chart-legend {
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}

.ops-rf-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ops-rf-chart-legend i { display: inline-block; width: 20px; height: 3px; background: #287ba6; }
.ops-rf-chart-legend .station i {
  height: 0;
  border-top: 3px dashed #74529a;
  background: transparent;
}
.ops-rf-chart-legend .downlink i { background: #287ba6; }
.ops-rf-chart-legend .uplink i { background: #74529a; }
.ops-rf-chart-legend .link i { background: var(--brand); }
.ops-rf-chart-legend .baseline i { height: 0; border-top: 2px dashed #805000; background: transparent; }
.ops-rf-chart-legend small { margin-left: auto; }

.ops-rf-chart {
  display: block;
  width: 100%;
  min-width: 680px;
  min-height: 230px;
}

.ops-rf-chart text { fill: var(--muted); font-size: 10px; }
.ops-chart-grid { stroke: var(--line-strong); stroke-width: 1; }
.ops-chart-grid.faint { stroke: var(--line); }
.ops-rf-line { fill: none; stroke: #287ba6; stroke-linejoin: round; stroke-linecap: round; stroke-width: 3; }
.ops-rf-line.station {
  stroke: #74529a;
  stroke-dasharray: 9 5;
}
.ops-rf-line.downlink { stroke: #287ba6; }
.ops-rf-line.uplink { stroke: #74529a; stroke-dasharray: 9 5; }
.ops-rf-line.link { stroke: var(--brand); }
.ops-rf-dot { fill: #ffffff; stroke: #287ba6; stroke-width: 2; }
.ops-rf-dot.station {
  fill: #74529a;
  stroke: #ffffff;
}
.ops-rf-dot.downlink { stroke: #287ba6; }
.ops-rf-dot.uplink { fill: #74529a; stroke: #ffffff; }
.ops-rf-dot.link { fill: var(--brand); stroke: #ffffff; }
.ops-rf-baseline { stroke: #287ba6; stroke-dasharray: 7 5; stroke-width: 1.5; opacity: .65; }
.ops-rf-baseline.station { stroke: #74529a; }

.ops-chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 230px;
  color: var(--muted);
}

.ops-chart-loading > span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.ops-baseline-panel {
  margin-top: 13px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

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

.ops-baseline-rows > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px;
  background: #f8fafb;
}

.ops-baseline-rows span { display: grid; gap: 2px; }
.ops-baseline-rows small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.ops-baseline-rows i { height: 1px; background: var(--line-strong); }
.ops-baseline-rows b { border-radius: 5px; padding: 4px 6px; background: var(--soft); font-size: 11px; white-space: nowrap; }

.ops-empty-action {
  justify-items: start;
  border-left: 4px solid #b67811;
  padding: 12px;
  background: #fffaf0;
}

.ops-empty-action > span { color: var(--muted); }
.ops-empty-action > button { margin-top: 4px; }

.ops-verification-active {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-left: 4px solid #b67811;
  padding: 11px;
  background: #fffaf0;
}

.ops-verification-active p { grid-column: 2; margin: 0; color: var(--muted); }

.ops-verification-result {
  display: grid;
  gap: 9px;
}

.ops-verification-result > header {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 9px;
}

.ops-verification-result > header small { grid-column: 2; color: var(--muted); }
.ops-delta-track { display: grid; grid-template-columns: 150px minmax(160px, 1fr) auto 88px; align-items: center; gap: 10px; }
.ops-delta-visual { display: block; width: 100%; height: 14px; overflow: visible; }
.ops-delta-line { stroke: var(--soft); stroke-width: 7; stroke-linecap: round; }
.ops-delta-before { stroke: #6b7280; stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ops-delta-after { stroke: var(--brand); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ops-delta-track > b { font-size: 11px; white-space: nowrap; }
.ops-delta-track > em { border-radius: 5px; padding: 4px 6px; background: var(--soft); font-size: 10px; font-style: normal; font-weight: 800; text-align: center; text-transform: uppercase; }
.ops-delta-track > em[data-status="improved"] { background: var(--ok-soft); color: var(--ok); }
.ops-delta-track > em[data-status="worse"] { background: var(--danger-soft); color: var(--danger); }

.ops-verification-start {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.ops-missing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ops-missing-grid article { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-left: 4px solid #b67811; padding: 11px; background: #fffaf0; }
.ops-missing-grid p { margin: 0; color: var(--muted); line-height: 1.4; }
.ops-missing-grid button { flex: 0 0 auto; }

.ops-guidance-grid > div { padding: 14px; }
.ops-guidance-grid > div.hold { border-color: #e6b8b3; background: #fff8f7; }
.ops-guidance-grid ol,
.ops-guidance-grid ul { display: grid; gap: 7px; margin: 9px 0 0; padding-left: 21px; color: #425466; line-height: 1.45; }
.ops-inspector-actions { justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 13px; }

.circuit-discovery {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: #ffffff;
}

.circuit-discovery > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
}

.circuit-discovery > summary::-webkit-details-marker { display: none; }
.circuit-discovery > summary > span:first-child { display: grid; gap: 3px; }
.circuit-discovery > summary small { color: var(--muted); }
.circuit-discovery-body { display: grid; gap: 12px; border-top: 1px solid var(--line); padding: 14px; }

.ops-discovery-funnel {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 54px minmax(120px, 1fr) 54px minmax(120px, 1fr);
  align-items: center;
  gap: 8px;
}

.ops-discovery-funnel > span { display: grid; justify-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 7px; padding: 10px; background: #f8fafb; text-align: center; }
.ops-discovery-funnel strong { font-size: 20px; }
.ops-discovery-funnel small { color: var(--muted); }
.ops-discovery-funnel i { height: 2px; background: var(--brand); }
.ops-discovery-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
.ops-discovery-groups article { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; border-left: 3px solid #b67811; padding: 9px 10px; background: #fffaf0; }
.ops-discovery-groups article > strong { font-size: 18px; }
.ops-discovery-groups article > div { display: grid; gap: 2px; }
.ops-discovery-groups p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.35; }

@media (max-width: 1120px) {
  .circuit-list { grid-template-columns: 1fr; }
  .ops-physical-path { grid-template-columns: minmax(210px, 1fr) minmax(160px, .7fr) minmax(210px, 1fr); }
  .ops-baseline-rows { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .circuit-operations-bar,
  .ops-inspector-head,
  .ops-section-head,
  .ops-card-diagnosis,
  .ops-inspector-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .circuit-operations-bar .search-field { width: 100%; }
  .circuit-summary { display: flex; grid-template-columns: initial; }
  .circuit-summary > span { border-right: 0; border-bottom: 1px solid var(--line); padding: 4px 0; }
  .circuit-summary > span:last-child { border-bottom: 0; }
  .circuit-list { grid-template-columns: minmax(0, 1fr); }
  .circuit-ops-card { padding: 12px; }
  .circuit-ops-card > header,
  .circuit-ops-card > footer { align-items: flex-start; flex-direction: column; }
  .ops-path-compact,
  .ops-physical-path { grid-template-columns: 1fr; }
  .ops-link-compact,
  .ops-path-link { min-height: 74px; }
  .ops-link-compact i,
  .ops-path-link i { width: 3px; height: 30px; margin-inline: auto; }
  .ops-link-compact i::after,
  .ops-path-link i::after { top: auto; right: 50%; bottom: -1px; transform: translateX(50%) rotate(135deg); }
  .ops-evidence-lanes,
  .ops-capacity-grid,
  .ops-direction-grid,
  .ops-guidance-grid,
  .ops-missing-grid,
  .ops-coverage-grid,
  .ops-diagnosis-card { grid-template-columns: 1fr; }
  .ops-card-diagnosis > div { justify-content: space-between; }
  .circuit-operations-inspector { padding: 11px; }
  .ops-inspector-head > div:first-child { grid-template-columns: 1fr; }
  .ops-inspector-head p { grid-column: 1; }
  .ops-inspector-head > div:last-child { justify-content: space-between; }
  .ops-section-head p { max-width: none; text-align: left; }
  .ops-rf-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-link-evidence > header { display: grid; }
  .ops-link-evidence > header small { max-width: none; text-align: left; }
  .ops-link-evidence > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-coverage-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-coverage-grid article { grid-template-columns: auto minmax(0, 1fr); }
  .ops-coverage-grid article > button { grid-column: 1 / -1; width: 100%; }
  .ops-source-audit > div { grid-template-columns: 1fr; }
  .ops-diagnosis-card > *,
  .ops-next-check,
  .ops-diagnosis-card > details,
  .ops-no-evidence { grid-column: 1; }
  .ops-range-control { width: 100%; }
  .ops-rf-chart { width: 680px; }
  .ops-rf-chart-legend small { width: 100%; margin-left: 0; }
  .ops-baseline-rows > div { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); }
  .ops-baseline-rows b { grid-column: 1 / -1; width: max-content; }
  .ops-verification-active,
  .ops-verification-start { grid-template-columns: 1fr; }
  .ops-verification-active p { grid-column: 1; }
  .ops-delta-track { grid-template-columns: 1fr auto; }
  .ops-delta-track > .ops-delta-visual { grid-column: 1 / -1; grid-row: 2; }
  .ops-delta-track > em { grid-column: 2; grid-row: 1; }
  .ops-delta-track > b { grid-column: 1 / -1; }
  .ops-missing-grid article { align-items: stretch; flex-direction: column; }
  .ops-missing-grid button,
  .ops-inspector-actions button { width: 100%; }
  .circuit-discovery > summary { align-items: flex-start; flex-direction: column; }
  .ops-discovery-funnel { grid-template-columns: 1fr; }
  .ops-discovery-funnel i { width: 2px; height: 14px; margin-inline: auto; }
  .ops-discovery-groups { grid-template-columns: 1fr; }
}
