@font-face {
  font-display: block;
  font-family: "CloudControlTerminal";
  font-style: normal;
  font-weight: 400;
  src: url("/vendor/fonts/dejavu-sans-mono.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: "CloudControlTerminal";
  font-style: normal;
  font-weight: 700;
  src: url("/vendor/fonts/dejavu-sans-mono-bold.ttf") format("truetype");
}

:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f7;
  color: #263238;
  --accent: #20aeb7;
  --accent-strong: #168992;
  --accent-soft: #e8faf9;
  --border: #dfe6ea;
  --border-dark: #cbd5da;
  --muted: #718087;
  --panel: #fff;
  --page: #f4f6f7;
  --text: #263238;
  --danger: #d83f5f;
  --warning: #b57a13;
  --success: #18a87d;
  --shadow: 0 6px 18px rgba(32, 47, 55, 0.08);
}

@property --score {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
}

a {
  color: inherit;
}

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

input,
select,
textarea {
  min-width: 0;
  min-height: 34px;
  border: 1px solid #cfd9de;
  border-radius: 3px;
  padding: 0 10px;
  background: #fff;
  color: #1f2b31;
}

select {
  appearance: none;
  padding-right: 30px;
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7d85 50%),
    linear-gradient(135deg, #6b7d85 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 50%,
    calc(100% - 10px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  cursor: pointer;
}

textarea {
  min-height: 96px;
  padding: 9px 10px;
  resize: vertical;
}

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

h1 {
  color: #1f2d33;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
}

h2 {
  color: #26343a;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 500;
}

h3 {
  color: #26343a;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
}

p,
small,
dt,
.muted,
.eyebrow,
.panel-title span,
.brand small,
.login-brand small {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 212px minmax(0, 1fr);
}

.app-shell.device-focus-mode {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.device-focus-mode .sidebar {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  display: grid;
  height: 100vh;
  grid-template-rows: auto 1fr auto;
  border-right: 1px solid var(--border);
  background: #fff;
  padding: 14px 0 12px;
}

.brand,
.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 14px;
  color: #1d2b31;
  text-decoration: none;
}

.brand strong,
.brand small,
.login-brand strong,
.login-brand small {
  display: block;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 4px;
  background: #223238;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.nav {
  display: grid;
  align-content: start;
  padding: 4px 0;
}

.nav details {
  display: block;
}

.nav summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 18px;
  color: #65747b;
  cursor: pointer;
  font-size: 13px;
  list-style: none;
}

.nav summary::after {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  margin-left: auto;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: 55% 55%;
  transition: transform 190ms ease;
  content: "";
}

.nav details[open] > summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

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

.nav-tree-panel,
.device-tree-panel {
  overflow: hidden;
  transition: height 190ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease, transform 190ms ease;
}

.nav-tree-panel-inner {
  display: grid;
  padding: 2px 0 4px;
}

@media (prefers-reduced-motion: reduce) {
  .nav-tree-panel,
  .device-tree-panel {
    transition: none;
  }
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border-left: 3px solid transparent;
  padding: 0 16px 0 34px;
  color: #44535a;
  font-size: 14px;
  text-decoration: none;
}

.nav > a {
  padding-left: 18px;
}

.nav-icon {
  flex: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav summary .nav-icon {
  width: 16px;
  height: 16px;
}

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

.nav a:hover {
  background: #f3f7f8;
  color: #1d2b31;
}

.nav a.active {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: #087985;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border-top: 1px solid var(--border);
  margin: 0 12px;
  padding-top: 12px;
  color: #5f6d73;
  font-size: 13px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b8c3c8;
}

.live-dot.online {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(24, 168, 125, 0.13);
}

.workspace {
  min-width: 0;
}

.device-focus-mode .workspace {
  min-height: 100vh;
}

.workspace-topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 18px;
  backdrop-filter: blur(10px);
}

.device-focus-mode .workspace-topbar {
  border-bottom-color: rgba(129, 218, 220, 0.24);
  background:
    linear-gradient(90deg, rgba(244, 250, 250, 0.98), rgba(255, 255, 255, 0.96)),
    #fff;
}

.terminal-fullscreen-mode .workspace-topbar {
  display: none;
}

.terminal-fullscreen-mode .view {
  min-height: 100vh;
  padding: 0;
}

.topbar-search,
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 720px;
  border: 1px solid #d4dde2;
  border-radius: 3px;
  background: #fff;
  padding: 0 10px;
}

.topbar-search span,
.search-box span {
  width: 12px;
  height: 12px;
  border: 2px solid #9ba8ae;
  border-radius: 50%;
}

.topbar-search span::after,
.search-box span::after {
  display: block;
  width: 6px;
  height: 2px;
  margin: 8px 0 0 8px;
  transform: rotate(45deg);
  background: #9ba8ae;
  content: "";
}

.topbar-search input,
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0;
}

.topbar-search:focus-within,
.search-box:focus-within {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(32, 174, 183, 0.24);
}

.topbar-stats {
  display: flex;
  gap: 16px;
  color: #68777e;
  font-size: 13px;
  white-space: nowrap;
}

.topbar-stats b {
  color: #233238;
}

.notification-button {
  position: relative;
  display: inline-grid;
  width: 36px;
  min-height: 34px;
  place-items: center;
  border: 1px solid #d4dde2;
  border-radius: 3px;
  background: #fff;
  color: #26343a;
  padding: 0;
}

.notification-button b {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.bell-shape {
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid #68777e;
  border-bottom: 0;
  border-radius: 10px 10px 4px 4px;
}

.bell-shape::before {
  position: absolute;
  left: 3px;
  bottom: -5px;
  width: 10px;
  height: 2px;
  background: #68777e;
  content: "";
}

.bell-shape::after {
  position: absolute;
  left: 5px;
  bottom: -9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #68777e;
  content: "";
}

.view {
  padding: 18px 18px 44px;
}

.view.device-detail-view {
  padding-top: 8px;
}

.view.animate-route > * {
  animation: fade-slide-up 220ms ease both;
}

.view.animate-route > *:nth-child(2) {
  animation-delay: 35ms;
}

.view.animate-route > *:nth-child(3) {
  animation-delay: 70ms;
}

@keyframes fade-slide-up {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.page-head,
.device-titlebar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  margin-bottom: 14px;
}

.page-head p:not(.eyebrow),
.device-titlebar p {
  margin-top: 5px;
}

.eyebrow,
.breadcrumb {
  margin-bottom: 6px;
  font-size: 13px;
}

.breadcrumb a {
  color: var(--accent-strong);
  text-decoration: none;
}

.device-titlebar {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  padding: 16px;
}

.device-utilitybar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 6px;
  background: #fff;
  padding: 3px 6px 3px 10px;
}

.device-utilitybar .breadcrumb {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-utilitybar .button-row {
  gap: 5px;
}

.device-utilitybar .button,
.device-utilitybar button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
}

.device-utilitybar .icon-button {
  width: 28px;
  height: 28px;
  min-width: 28px;
}

.device-utilitybar .icon-button svg {
  width: 14px;
  height: 14px;
}

button {
  font: inherit;
}

.button,
.action-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--accent-strong);
  border-radius: 3px;
  padding: 0 12px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  border-color: var(--accent-strong);
  background: var(--accent);
  color: #fff;
}

.button.secondary,
button.secondary,
.action-menu summary.button.secondary {
  border-color: #cfd9de;
  background: #fff;
  color: #29383f;
}

.button.ghost,
button.ghost {
  border-color: transparent;
  background: transparent;
  color: #3a4b53;
}

.button.danger,
button.danger {
  border-color: var(--danger);
  background: #fff;
  color: var(--danger);
}

.button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.compact-button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}

.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.icon-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  min-width: 34px;
  place-items: center;
  padding: 0;
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button svg,
button svg {
  width: 15px;
  height: 15px;
  margin-right: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button svg {
  margin-right: 0;
}

.icon-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.link-button {
  min-height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-strong);
  cursor: pointer;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.console-panel,
.summary-cell,
.stat-box,
.connection-card,
.wifi-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
}

.console-panel {
  min-width: 0;
  padding: 14px;
}

.table-panel {
  padding: 0;
}

.table-panel > .panel-title,
.table-panel > .toolbar {
  padding: 12px 14px;
}

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

.table-panel .panel-title {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

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

.fleet-survey-strip {
  margin-top: -2px;
}

.fleet-survey-strip.with-edge-broker {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fleet-survey-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -6px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(0, 146, 156, 0.08), rgba(255, 255, 255, 0.98));
}

.fleet-survey-next-step.good {
  border-left-color: var(--success);
}

.fleet-survey-next-step.warn {
  border-left-color: var(--warning);
}

.fleet-survey-next-step.bad {
  border-left-color: var(--danger);
}

.fleet-survey-next-copy,
.fleet-survey-next-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fleet-survey-next-copy {
  flex: 1;
}

.fleet-survey-next-copy > div {
  min-width: 0;
}

.fleet-survey-next-copy strong,
.fleet-survey-next-copy small,
.fleet-survey-next-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fleet-survey-next-copy strong {
  color: #1f2d33;
  font-size: 14px;
}

.fleet-survey-next-copy small,
.fleet-survey-next-meta small {
  color: #65747b;
  font-size: 12px;
}

.survey-filter-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -4px 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
}

.survey-filter-rail > span {
  color: #65747b;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.survey-filter-buttons {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.wan-filter-buttons {
  flex: 0 1 auto;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.wan-filter-buttons .survey-filter-chip {
  background: #f6f8fa;
}

.survey-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid #d6e1e5;
  border-radius: 999px;
  padding: 0 10px;
  background: #f9fbfb;
  color: #405159;
  cursor: pointer;
  font-size: 12px;
}

.survey-filter-chip strong {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #eef5f6;
  color: #1f2d33;
  font-size: 11px;
}

.survey-filter-chip:hover,
.survey-filter-chip:focus-visible,
.survey-filter-chip.active {
  border-color: rgba(0, 146, 156, 0.46);
  background: var(--accent-soft);
  color: #17343a;
}

.survey-filter-chip.active strong {
  background: var(--accent);
  color: #fff;
}

.dashboard-survey-queue {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  margin: -2px 0 14px;
}

.dashboard-survey-copy,
.survey-queue-item {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
}

.dashboard-survey-copy {
  padding: 12px 14px;
}

.dashboard-survey-copy span,
.survey-queue-item small {
  color: #65747b;
  font-size: 12px;
}

.dashboard-survey-copy span {
  display: block;
  font-weight: 750;
  text-transform: uppercase;
}

.dashboard-survey-copy strong {
  display: block;
  margin: 7px 0 3px;
  color: #1f2d33;
  font-size: 22px;
  line-height: 1;
}

.survey-queue-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.survey-queue-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  align-content: start;
  padding: 10px;
  color: inherit;
  text-decoration: none;
}

.survey-queue-item:hover,
.survey-queue-item:focus-visible {
  border-color: rgba(0, 146, 156, 0.38);
  box-shadow: var(--shadow);
}

.survey-launch-item {
  background: linear-gradient(135deg, rgba(0, 146, 156, 0.12), rgba(255, 255, 255, 0.96));
}

.survey-launch-item strong {
  color: #064e54;
}

.survey-result-item {
  background: linear-gradient(135deg, rgba(91, 111, 255, 0.1), rgba(255, 255, 255, 0.97));
}

.survey-result-item strong {
  color: #252f77;
}

.survey-queue-item.good {
  border-top: 3px solid var(--success);
}

.survey-queue-item.warn {
  border-top: 3px solid var(--warning);
}

.survey-queue-item.bad {
  border-top: 3px solid var(--danger);
}

.survey-queue-item span {
  grid-row: span 2;
}

.survey-queue-item strong,
.survey-queue-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.survey-queue-item strong {
  color: #1f2d33;
  font-size: 13px;
}

.summary-cell {
  min-height: 94px;
  padding: 13px 14px;
}

.summary-cell span,
.stat-box span {
  display: block;
  color: #65747b;
  font-size: 13px;
}

.summary-cell strong {
  display: block;
  margin: 8px 0 3px;
  color: #1f2d33;
  font-size: 25px;
  line-height: 1;
  font-weight: 500;
}

.summary-cell.good {
  border-top: 3px solid var(--success);
}

.summary-cell.warn {
  border-top: 3px solid var(--warning);
}

.summary-cell.bad {
  border-top: 3px solid var(--danger);
}

.dashboard-cyber {
  margin-bottom: 14px;
}

.dashboard-cyber-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dashboard-action-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.dashboard-action-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 68px;
  border: 1px solid rgba(129, 218, 220, 0.2);
  border-radius: 4px;
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(15, 37, 43, 0.74), rgba(7, 17, 20, 0.82)),
    rgba(7, 17, 20, 0.78);
  color: #dffafa;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dashboard-action-card:hover,
.dashboard-action-card:focus-visible {
  border-color: rgba(129, 218, 220, 0.42);
  box-shadow: 0 14px 30px rgba(4, 12, 14, 0.24);
  transform: translateY(-1px);
}

.dashboard-action-card.good {
  border-color: rgba(53, 222, 155, 0.34);
}

.dashboard-action-card.warn {
  border-color: rgba(221, 134, 42, 0.38);
}

.dashboard-action-card.bad {
  border-color: rgba(216, 63, 95, 0.42);
}

.dashboard-action-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(129, 218, 220, 0.2);
  border-radius: 4px;
  color: #8edce0;
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-action-card.good > span {
  color: #35de9b;
}

.dashboard-action-card.warn > span {
  color: #dd862a;
}

.dashboard-action-card.bad > span {
  color: #d83f5f;
}

.dashboard-action-card svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-action-card div {
  min-width: 0;
}

.dashboard-action-card small,
.dashboard-action-card strong,
.dashboard-action-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-action-card small {
  color: #86aab0;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-action-card strong {
  margin-top: 2px;
  color: #f5ffff;
  font-size: 20px;
  font-weight: 650;
  line-height: 1;
}

.dashboard-action-card em {
  margin-top: 3px;
  color: #a8c6cb;
  font-size: 11px;
  font-style: normal;
}

.dashboard-board-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.dashboard-board-grid > section {
  min-width: 0;
}

.dashboard-board-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: #dffafa;
}

.dashboard-board-title strong {
  font-size: 12px;
  font-weight: 850;
}

.dashboard-board-title a {
  color: #9bdde0;
  font-size: 11px;
  text-decoration: none;
}

.dashboard-path-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}

.dashboard-path-card {
  min-width: 0;
  border: 1px solid rgba(129, 218, 220, 0.24);
  border-radius: 4px;
  padding: 8px;
  background: rgba(7, 17, 20, 0.58);
}

.dashboard-path-card.online {
  border-color: rgba(53, 222, 155, 0.34);
}

.dashboard-path-card.offline {
  border-color: rgba(216, 63, 95, 0.28);
}

.dashboard-path-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.dashboard-path-card header span {
  display: block;
  color: #81a9af;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-path-card header h3 {
  margin-top: 2px;
  color: #f4ffff;
  font-size: 13px;
}

.dashboard-path-card header a {
  flex: none;
  color: #9dbbc0;
  font-size: 11px;
  text-decoration: none;
}

.dashboard-path-card .connection-trace-banner {
  margin-top: 0;
  padding: 5px;
  border-color: rgba(129, 218, 220, 0.18);
  background:
    linear-gradient(90deg, rgba(16, 47, 54, 0.78), rgba(7, 17, 20, 0.82)),
    rgba(7, 17, 20, 0.78);
}

.dashboard-path-card .trace-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  max-width: none;
  overflow: visible;
}

.dashboard-path-card .trace-hop {
  min-height: 34px;
  padding: 4px 5px;
}

.dashboard-path-card .trace-hop strong {
  font-size: 10px;
}

.dashboard-path-card .trace-hop::before,
.dashboard-path-card .trace-hop::after {
  display: none;
}

.dashboard-edge-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
  min-width: 0;
}

.dashboard-edge-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(129, 218, 220, 0.22);
  border-radius: 4px;
  padding: 8px;
  color: #dffafa;
  background: rgba(7, 17, 20, 0.58);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dashboard-edge-card:hover,
.dashboard-edge-card:focus-visible {
  border-color: rgba(129, 218, 220, 0.42);
  background: rgba(12, 34, 39, 0.76);
  transform: translateY(-1px);
}

.dashboard-edge-card.online {
  border-color: rgba(53, 222, 155, 0.34);
}

.dashboard-edge-card.offline {
  border-color: rgba(216, 63, 95, 0.28);
}

.dashboard-edge-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.dashboard-edge-card header div {
  min-width: 0;
}

.dashboard-edge-card header span {
  display: block;
  color: #81a9af;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-edge-card h3 {
  margin-top: 2px;
  color: #f4ffff;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-edge-title {
  display: block;
  margin-top: 2px;
  color: #f4ffff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-edge-title:hover,
.dashboard-edge-title:focus-visible {
  color: #8ff0c6;
}

.dashboard-edge-card time {
  flex: none;
  color: #9dbbc0;
  font-size: 11px;
}

.dashboard-edge-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dashboard-edge-meta span {
  display: flex;
  align-items: center;
  min-width: 0;
  color: #9dbbc0;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-edge-meta svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin-right: 5px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-edge-attachments {
  display: flex;
  min-width: 0;
}

.edge-attachment-menu {
  position: relative;
  max-width: 100%;
}

.edge-attachment-menu summary {
  list-style: none;
}

.edge-attachment-menu summary::-webkit-details-marker {
  display: none;
}

.edge-attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  max-width: 100%;
  border: 1px solid rgba(129, 218, 220, 0.18);
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.035);
  color: #9dbbc0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.edge-attachment-pill svg {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edge-attachment-meter {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  line-height: 1;
}

.edge-attachment-meter b {
  color: currentColor;
  font-size: 11px;
  font-weight: 900;
}

.edge-attachment-meter small {
  overflow: hidden;
  color: currentColor;
  font-size: 9px;
  font-weight: 800;
  opacity: 0.72;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.edge-attachment-pill svg:last-child {
  margin-left: 1px;
  transition: transform 120ms ease;
}

.edge-attachment-menu[open] .edge-attachment-pill svg:last-child {
  transform: rotate(180deg);
}

.edge-attachment-pill.active {
  border-color: rgba(53, 222, 155, 0.32);
  background: rgba(53, 222, 155, 0.08);
  color: #8ff0c6;
  box-shadow: 0 0 16px rgba(53, 222, 155, 0.08);
}

.edge-table .edge-attachment-pill {
  min-height: 24px;
}

.edge-attachment-card {
  display: grid;
  gap: 2px;
  width: min(260px, calc(100vw - 18px));
  min-width: 220px;
  padding: 5px;
}

.edge-attachment-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(185, 200, 207, 0.38);
  margin-bottom: 2px;
  padding: 2px 4px 5px;
}

.edge-attachment-card-top strong {
  color: #1b343a;
  font-size: 12px;
  font-weight: 900;
}

.edge-attachment-card-top span {
  color: #5f6d73;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.edge-attached-device {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) minmax(58px, auto);
  gap: 6px;
  align-items: center;
  min-height: 32px;
  border-radius: 5px;
  padding: 4px 6px;
  color: #23383f;
  text-decoration: none;
}

.edge-attached-device:hover,
.edge-attached-device:focus-visible {
  background: rgba(32, 174, 183, 0.09);
}

.edge-attached-device strong {
  display: block;
  color: #142a31;
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edge-attached-device small {
  display: block;
  margin-top: 1px;
  color: #6d7b82;
  font-size: 9px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edge-attached-device code {
  min-width: 0;
  max-width: 96px;
  overflow: hidden;
  border: 1px solid rgba(207, 217, 222, 0.82);
  border-radius: 999px;
  background: #f7fafb;
  color: #52656d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 6px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edge-attached-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(142, 178, 184, 0.32);
  border-radius: 999px;
  color: #8eb2b8;
  background: rgba(142, 178, 184, 0.08);
}

.edge-attached-status.active {
  border-color: rgba(53, 222, 155, 0.42);
  color: #0e986b;
  background: rgba(53, 222, 155, 0.14);
}

.edge-attached-status svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edge-attachment-empty {
  margin: 0;
  padding: 7px 6px 4px;
  color: #6d7b82;
  font-size: 11px;
}

.dashboard-edge-services {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.dashboard-edge-services span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid rgba(142, 178, 184, 0.16);
  border-radius: 999px;
  padding: 2px 7px;
  color: #8eb2b8;
  font-size: 10px;
  font-weight: 800;
}

.dashboard-edge-services span.active {
  border-color: rgba(53, 222, 155, 0.28);
  color: #8ff0c6;
}

.dashboard-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 14px;
  align-items: start;
}

.dashboard-fleet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.dashboard-composition-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.dashboard-bar-group {
  display: grid;
  gap: 10px;
}

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

.dashboard-bar-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.dashboard-bar-row strong {
  color: #1f2d33;
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

.dashboard-bar-track {
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.dashboard-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 300ms ease;
}

.dashboard-bar-fill.ethernet {
  background: var(--success);
}

.dashboard-bar-fill.wifi {
  background: #5b6fff;
}

.dashboard-bar-fill.cellular {
  background: #dd862a;
}

.dashboard-bar-fill.unknown {
  background: var(--danger);
}

.dashboard-stat-group {
  display: grid;
  gap: 8px;
}

.dashboard-attention-feed {
  display: grid;
  gap: 6px;
}

.attention-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  color: inherit;
  text-decoration: none;
}

.attention-item:hover,
.attention-item:focus-visible {
  border-color: rgba(0, 146, 156, 0.38);
  box-shadow: var(--shadow);
}

.attention-item.bad {
  border-top: 3px solid var(--danger);
}

.attention-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.attention-item small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.dashboard-attention-ok {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(53, 222, 155, 0.04);
}

.dashboard-attention-ok p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: 1 / -1;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.toolbar.tight {
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  margin-bottom: 0;
}

.toolbar.tight input[type="search"] {
  flex: 1 1 190px;
  min-width: 180px;
}

.toolbar .search-box {
  flex: 1;
}

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

.toolbar input[type="search"] {
  min-width: 260px;
}

.inline-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.inline-filter select {
  min-height: 34px;
}

.selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  border: 1px solid #bee8e7;
  border-radius: 3px;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: var(--accent-soft);
  color: #24545a;
}

.bulk-action-reason {
  display: block;
  max-width: 220px;
  font-size: 12px;
  line-height: 1.3;
}

.button-row .bulk-action-reason {
  flex-basis: 100%;
  max-width: none;
  text-align: right;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
  align-items: end;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin: -4px 0 12px;
  padding: 10px;
  background: #fff;
}

.filter-panel label,
.stack-form label,
.stack-form .check-group {
  display: grid;
  gap: 5px;
  color: #59676d;
  font-size: 12px;
}

.stack-form .check-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.stack-form .check-group legend {
  padding: 0;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 11px 12px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  height: 38px;
  background: #fafbfc;
  color: #5f6d73;
  font-size: 12px;
  font-weight: 500;
}

td small {
  display: block;
  margin-top: 3px;
}

td details {
  white-space: normal;
}

.survey-ready-cell {
  min-width: 142px;
}

.survey-row-stack {
  display: flex;
  align-items: center;
  gap: 6px;
}

.survey-ready-cell .status-badge {
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(11, 143, 104, 0.08);
}

.survey-row-action {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid rgba(0, 146, 156, 0.18);
  border-radius: 999px;
  padding: 0 8px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(0, 146, 156, 0.06);
}

.survey-row-action:hover,
.survey-row-action:focus-visible {
  border-color: rgba(0, 146, 156, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 146, 156, 0.12);
}

.survey-row-action.warn {
  border-color: rgba(229, 162, 54, 0.26);
  color: #9a640a;
  background: rgba(229, 162, 54, 0.08);
}

.survey-row-action.bad {
  border-color: rgba(203, 64, 72, 0.24);
  color: #a7353d;
  background: rgba(203, 64, 72, 0.06);
}

.survey-ready-cell .status-badge.warn {
  background: rgba(229, 162, 54, 0.1);
}

.survey-ready-cell .status-badge.bad {
  background: rgba(203, 64, 72, 0.08);
}

.survey-row-detail {
  max-width: 180px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.capability-cell {
  min-width: 90px;
}

.capability-trigger {
  display: inline-block;
  max-width: 100%;
  position: relative;
  cursor: default;
}

.capability-trigger:focus-visible {
  border-radius: 6px;
  outline: 2px solid rgba(0, 146, 156, 0.42);
  outline-offset: 3px;
}

.capability-badge.legacy {
  display: inline-block;
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(229, 162, 54, 0.1);
  color: #9a640a;
  font-size: 11px;
  font-weight: 700;
}

.capability-profile-trigger {
  display: inline-block;
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(0, 146, 156, 0.08);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
}

.capability-count-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  border-radius: 4px;
  padding: 0 6px;
  background: rgba(0, 146, 156, 0.08);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.capability-trigger small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capability-hover-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(5px) scale(0.985);
  z-index: 60;
  width: min(320px, calc(100vw - 32px));
  max-height: min(360px, 60vh);
  border: 1px solid rgba(129, 218, 220, 0.4);
  border-radius: 6px;
  padding: 10px;
  overflow-y: auto;
  pointer-events: none;
  background:
    linear-gradient(rgba(129, 218, 220, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 218, 220, 0.04) 1px, transparent 1px),
    rgba(7, 17, 20, 0.99);
  background-size: 16px 16px, 16px 16px, auto;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(98, 225, 216, 0.06) inset;
  color: #e7ffff;
  opacity: 0;
  text-align: left;
  text-transform: none;
  transition: opacity 130ms ease, transform 130ms ease;
  visibility: hidden;
  white-space: normal;
}

.capability-hover-panel::after {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  border-bottom: 1px solid rgba(129, 218, 220, 0.4);
  border-right: 1px solid rgba(129, 218, 220, 0.4);
  background: rgba(7, 17, 20, 0.99);
  content: "";
}

.capability-hover-panel strong {
  display: block;
  margin-bottom: 7px;
  color: #62e1d8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.capability-hover-list {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(127, 220, 217, 0.18);
  background: rgba(127, 220, 217, 0.18);
}

.capability-hover-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 5px 8px;
  background: rgba(7, 17, 20, 0.84);
}

.capability-hover-row span {
  color: #e7ffff;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.capability-hover-row em {
  color: #81a9af;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.capability-hover-row.extra span {
  color: #62e1d8;
}

.capability-hover-row.extra em {
  color: #35de9b;
}

.capability-trigger:hover .capability-hover-panel,
.capability-trigger:focus-within .capability-hover-panel {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  visibility: visible;
}

.capability-hover-panel.floating-hover-panel {
  position: fixed;
  right: auto;
  bottom: auto;
  left: 0;
  z-index: 260;
  transform: translateY(5px) scale(0.985);
}

.capability-hover-panel.floating-hover-panel::after {
  display: none;
}

.capability-hover-panel.floating-hover-panel.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.checkbox-cell {
  width: 38px;
}

.table-link {
  color: var(--accent-strong);
  text-decoration: none;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.empty-cell,
.empty {
  padding: 24px;
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  color: #59686f;
  font-size: 12px;
  font-weight: 500;
}

.status-badge::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  background: #9fabaf;
  content: "";
}

.status-badge.good {
  color: #0b8f68;
}

.status-badge.good::before {
  background: var(--success);
}

.status-badge.warn {
  color: var(--warning);
}

.status-badge.warn::before {
  background: var(--warning);
}

.status-badge.bad {
  color: var(--danger);
}

.status-badge.bad::before {
  background: var(--danger);
}

.score-chip {
  display: inline-grid;
  min-width: 42px;
  height: 28px;
  place-items: center;
  border-radius: 3px;
  background: #eef2f4;
  color: #36454c;
  font-weight: 600;
}

.score-chip.good {
  background: #e6f8f2;
  color: #0b8f68;
}

.score-chip.warn {
  background: #fff3d9;
  color: var(--warning);
}

.score-chip.bad {
  background: #ffe8ee;
  color: var(--danger);
}

.subtabs {
  position: sticky;
  z-index: 6;
  top: 56px;
  display: flex;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: 8px;
  background: #fff;
  padding: 0 6px;
  overflow-x: auto;
}

.subtabs a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-bottom: 2px solid transparent;
  padding: 0 10px;
  color: #43525a;
  font-size: 12px;
  text-decoration: none;
}

.subtabs a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-strong);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 30px;
  margin: 0;
}

.basic-console {
  position: relative;
  overflow: visible;
  border-color: #173842;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(135deg, #0c171b 0%, #10262b 58%, #172019 100%);
  background-size: 22px 22px, 22px 22px, auto;
  box-shadow: 0 12px 30px rgba(16, 38, 43, 0.18);
  color: #dff8f8;
  padding: 12px 14px 13px;
}

.basic-console::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(135deg, #0c171b 0%, #10262b 58%, #172019 100%);
  background-size: 22px 22px, 22px 22px, auto;
}

.basic-console::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(126, 255, 242, 0.06) 50%, transparent 100%);
  background-size: 100% 9px;
  opacity: 0.35;
}

.basic-cyber-head,
.cyber-info-grid {
  position: relative;
  z-index: 1;
}

.basic-cyber-head {
  display: flex;
  z-index: 5;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(127, 220, 217, 0.2);
  padding-bottom: 10px;
}

.basic-cyber-head h2 {
  color: #f4ffff;
  font-size: 18px;
  line-height: 1.15;
}

.basic-cyber-head p {
  margin-top: 3px;
  color: #9dbbc0;
  font-size: 12px;
}

.cyber-kicker {
  display: block;
  margin-bottom: 4px;
  color: #62e1d8;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.cyber-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.cyber-action-button {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  border-color: rgba(129, 218, 220, 0.22);
  background: rgba(8, 22, 26, 0.48);
  color: rgba(207, 250, 251, 0.72);
  box-shadow: inset 0 0 0 1px rgba(98, 225, 216, 0.025);
}

.cyber-action-button svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.35;
}

.cyber-action-button:hover {
  border-color: rgba(98, 225, 216, 0.48);
  background: rgba(12, 34, 39, 0.72);
  color: #9ffbf2;
}

.cyber-action-button:active {
  transform: translateY(1px);
}

.cyber-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  max-width: 100%;
  border: 1px solid rgba(129, 218, 220, 0.34);
  border-radius: 3px;
  padding: 0 8px;
  color: #cffafb;
  background: rgba(15, 40, 45, 0.82);
  font-size: 12px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.lifecycle-pill small {
  border-left: 1px solid currentColor;
  padding-left: 6px;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.76;
  text-transform: uppercase;
  white-space: nowrap;
}

.lifecycle-pill small.age-warning {
  color: #ffb14a;
  opacity: 1;
}

.lifecycle-pill small.age-danger {
  color: #ff6b7e;
  opacity: 1;
}

.diagnostic-disclosure-trigger {
  border: 0;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.lifecycle-disclosure-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  background: transparent;
}

.lifecycle-disclosure-trigger:focus-visible,
.metric-disclosure-trigger:focus-visible {
  outline: 2px solid rgba(129, 218, 220, 0.78);
  outline-offset: 2px;
}

.lifecycle-pill:hover,
.lifecycle-pill:focus-visible,
.lifecycle-pill:focus-within,
.lifecycle-pill.is-open {
  z-index: 60;
}

.lifecycle-hover-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 180;
  display: block;
  width: min(390px, calc(100vw - 32px));
  border: 1px solid rgba(129, 218, 220, 0.4);
  border-radius: 6px;
  padding: 11px;
  pointer-events: none;
  background:
    linear-gradient(rgba(129, 218, 220, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 218, 220, 0.04) 1px, transparent 1px),
    rgba(7, 17, 20, 0.99);
  background-size: 16px 16px, 16px 16px, auto;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(98, 225, 216, 0.06) inset;
  color: #e7ffff;
  opacity: 0;
  text-align: left;
  text-transform: none;
  transform: translateY(-5px) scale(0.985);
  transition: opacity 130ms ease, transform 130ms ease;
  visibility: hidden;
  white-space: normal;
}

.lifecycle-hover-panel::before {
  position: absolute;
  top: -5px;
  right: 18px;
  width: 9px;
  height: 9px;
  border-top: 1px solid rgba(129, 218, 220, 0.4);
  border-left: 1px solid rgba(129, 218, 220, 0.4);
  background: rgba(7, 17, 20, 0.99);
  content: "";
  transform: rotate(45deg);
}

.lifecycle-hover-panel > strong {
  display: block;
  margin-bottom: 9px;
  color: #62e1d8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lifecycle-hover-grid {
  display: grid;
  grid-template-columns: minmax(86px, 0.72fr) minmax(96px, 0.82fr) minmax(0, 1.32fr);
  gap: 1px;
  border: 1px solid rgba(127, 220, 217, 0.18);
  background: rgba(127, 220, 217, 0.18);
}

.lifecycle-hover-grid span,
.lifecycle-hover-grid b,
.lifecycle-hover-grid em {
  min-width: 0;
  padding: 7px 8px;
  background: rgba(7, 17, 20, 0.84);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.lifecycle-hover-grid span {
  color: #81a9af;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.lifecycle-hover-grid b {
  color: #e7ffff;
  font-size: 12px;
}

.lifecycle-hover-grid em {
  color: #9dbbc0;
  font-size: 11px;
  font-style: normal;
}

.lifecycle-pill:hover .lifecycle-hover-panel,
.lifecycle-pill:focus-visible .lifecycle-hover-panel,
.lifecycle-pill:focus-within .lifecycle-hover-panel,
.lifecycle-pill.is-open .lifecycle-hover-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.cyber-pill.online {
  border-color: rgba(53, 222, 155, 0.5);
  color: #79ffc3;
}

.cyber-pill.recovering {
  border-color: rgba(255, 214, 102, 0.58);
  color: #ffe18b;
  box-shadow: 0 0 14px rgba(255, 214, 102, 0.12);
}

.cyber-pill.reconnecting {
  border-color: rgba(94, 169, 255, 0.56);
  color: #9bd0ff;
}

.cyber-pill.heartbeat {
  border-color: rgba(53, 222, 155, 0.42);
  color: #91ffd0;
}

.cyber-pill.offline {
  border-color: rgba(216, 63, 95, 0.5);
  color: #ff9aae;
}

.cyber-pill.wifi {
  border-color: rgba(94, 169, 255, 0.52);
  color: #9bd0ff;
}

.cyber-pill.cellular {
  border-color: rgba(62, 225, 144, 0.52);
  color: #8dffbe;
}

.cyber-pill.ethernet {
  border-color: rgba(67, 225, 219, 0.52);
  color: #89f7f0;
}

.edge-cyber-console.basic-console {
  border-color: rgba(91, 151, 255, 0.36);
  background:
    linear-gradient(rgba(151, 194, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 194, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #081327 0%, #0d2242 58%, #121a36 100%);
  box-shadow: 0 12px 30px rgba(13, 34, 66, 0.22), 0 0 0 1px rgba(93, 162, 255, 0.04) inset;
  color: #eaf4ff;
}

.edge-cyber-console.basic-console::before {
  background:
    linear-gradient(rgba(151, 194, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 194, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #081327 0%, #0d2242 58%, #121a36 100%);
  background-size: 22px 22px, 22px 22px, auto;
}

.edge-cyber-console.basic-console::after {
  background: linear-gradient(180deg, transparent 0%, rgba(105, 166, 255, 0.075) 50%, transparent 100%);
  background-size: 100% 9px;
  opacity: 0.42;
}

.edge-cyber-console .basic-cyber-head {
  border-bottom-color: rgba(115, 176, 255, 0.24);
}

.edge-cyber-console .basic-cyber-head h2 {
  color: #f2f8ff;
}

.edge-cyber-console .basic-cyber-head p {
  color: #a7bdd9;
}

.edge-cyber-console .cyber-kicker {
  color: #76b7ff;
}

.edge-cyber-console .cyber-pill {
  border-color: rgba(119, 180, 255, 0.36);
  background: rgba(7, 24, 52, 0.82);
  color: #dbeaff;
}

.edge-cyber-console .cyber-pill.online,
.edge-cyber-console .cyber-pill.hot {
  border-color: rgba(108, 178, 255, 0.58);
  color: #a8d3ff;
  box-shadow: 0 0 14px rgba(83, 149, 255, 0.12);
}

.edge-cyber-console .cyber-pill.link {
  border-color: rgba(146, 199, 255, 0.48);
  color: #c2e0ff;
}

.edge-cyber-console .cyber-pill.offline {
  border-color: rgba(198, 91, 122, 0.5);
  color: #ffb0c2;
}

.edge-cyber-actions .edge-cyber-control {
  min-height: 26px;
  border-color: rgba(119, 180, 255, 0.28);
  background: rgba(7, 24, 52, 0.62);
  color: #dbeaff;
  box-shadow: inset 0 0 0 1px rgba(105, 166, 255, 0.035);
}

.edge-cyber-actions .edge-cyber-control:hover {
  border-color: rgba(119, 180, 255, 0.52);
  background: rgba(13, 40, 78, 0.78);
  color: #f2f8ff;
}

.edge-cyber-actions .edge-cyber-control.primary,
.edge-cyber-actions .edge-cyber-control.button.primary {
  border-color: rgba(93, 162, 255, 0.6);
  background: linear-gradient(180deg, rgba(52, 122, 232, 0.9), rgba(24, 80, 174, 0.92));
  color: #f8fbff;
}

.edge-cyber-console .edge-cyber-grid {
  border-color: rgba(115, 176, 255, 0.2);
  background: rgba(115, 176, 255, 0.2);
}

.edge-cyber-console .edge-cyber-grid > div {
  background: rgba(5, 16, 36, 0.82);
}

.edge-cyber-console .edge-cyber-grid dt {
  color: #8eb6e7;
}

.edge-cyber-console .edge-cyber-grid dd {
  color: #edf6ff;
}

.edge-cyber-console .edge-cyber-grid .hot dd {
  color: #90c9ff;
}

.edge-cyber-console .edge-cyber-grid .link dd {
  color: #b9dcff;
}

.edge-detail-cyber {
  margin-top: 8px;
}

[data-device-live-fragment] {
  transition: filter 180ms ease, opacity 180ms ease;
}

.device-workspace-shell {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  isolation: isolate;
  width: 100%;
}

.device-tool-tree {
  position: sticky;
  top: 72px;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(117, 140, 148, 0.22);
  border-radius: 4px;
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(10, 24, 29, 0.92), rgba(19, 43, 49, 0.88)),
    var(--panel);
  box-shadow: 0 10px 24px rgba(16, 38, 43, 0.13);
}

.device-tool-tree-head {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid rgba(129, 218, 220, 0.14);
  padding: 3px 4px 8px;
  min-width: 0;
}

.device-tool-tree-head strong,
.device-tool-tree-head small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-tool-tree-head strong {
  color: #f3ffff;
  font-size: 13px;
  font-weight: 760;
}

.device-tool-tree-head small {
  color: #9dbbc0;
  font-size: 11px;
}

.device-focus-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid rgba(98, 225, 216, 0.38);
  border-radius: 3px;
  margin-top: 5px;
  background: rgba(98, 225, 216, 0.08);
  color: #eaffff;
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
}

.device-focus-exit:hover,
.device-focus-exit:focus-visible {
  border-color: rgba(98, 225, 216, 0.72);
  background: rgba(98, 225, 216, 0.16);
  outline: 0;
}

.device-workspace-quick-nav {
  display: none;
}

.device-workspace-quick-link {
  min-width: 116px;
  border: 1px solid rgba(129, 218, 220, 0.16);
  border-radius: 4px;
  padding: 7px 9px;
  background: rgba(4, 12, 14, 0.2);
  color: #cce7eb;
  text-decoration: none;
}

.device-workspace-quick-link strong,
.device-workspace-quick-link small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-workspace-quick-link strong {
  color: #f3ffff;
  font-size: 12px;
  font-weight: 780;
}

.device-workspace-quick-link small {
  color: #91afb5;
  font-size: 10px;
}

.device-workspace-quick-link:hover,
.device-workspace-quick-link:focus-visible,
.device-workspace-quick-link.active {
  border-color: rgba(98, 225, 216, 0.66);
  background: rgba(98, 225, 216, 0.1);
  color: #f5ffff;
  outline: 0;
}

.device-workspace-quick-link[aria-current] {
  box-shadow: inset 0 -2px 0 #63dfd9;
}

.device-tree-group {
  min-width: 0;
  border: 1px solid rgba(129, 218, 220, 0.12);
  border-radius: 4px;
  background: rgba(4, 12, 14, 0.18);
}

.device-tree-group summary {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  padding: 6px 8px;
  color: #dff8f8;
  cursor: pointer;
  list-style: none;
}

.device-tree-group summary::-webkit-details-marker {
  display: none;
}

.device-tree-group summary:hover,
.device-tree-group summary:focus-visible {
  background: rgba(98, 225, 216, 0.08);
  outline: 0;
}

.device-tree-expander {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  color: #83d8da;
  transition: transform 190ms ease;
}

.device-tree-expander svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.device-tree-group[open] .device-tree-expander {
  transform: rotate(180deg);
}

.device-tree-summary-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.device-tree-summary-copy strong,
.device-tree-summary-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-tree-summary-copy strong {
  color: #efffff;
  font-size: 12px;
  font-weight: 760;
}

.device-tree-summary-copy small {
  color: #9dbbc0;
  font-size: 10px;
}

.device-tree-panel-inner {
  display: grid;
  gap: 1px;
  border-top: 1px solid rgba(129, 218, 220, 0.1);
  padding: 4px 4px 5px 25px;
}

.device-tree-leaf {
  display: grid;
  gap: 1px;
  min-width: 0;
  border-left: 2px solid rgba(129, 218, 220, 0.12);
  border-radius: 3px;
  padding: 5px 6px 5px 8px;
  color: #bfd6da;
  text-decoration: none;
}

.device-tree-leaf:hover,
.device-tree-leaf:focus-visible,
.device-tree-leaf.active {
  border-left-color: #63dfd9;
  background: rgba(98, 225, 216, 0.08);
  color: #f5ffff;
  outline: 0;
}

.device-tree-leaf span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-tree-leaf svg {
  flex: none;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.device-tree-leaf small {
  overflow: hidden;
  color: #8eaab0;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--muted);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.tree-dot.good { background: var(--success); }
.tree-dot.warn { background: var(--warning); }
.tree-dot.bad { background: var(--danger); }

.device-workspace-pages,
.device-workspace-page {
  display: grid;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.device-workspace-page {
  scroll-margin-top: 70px;
}

.device-workspace-page:target {
  border-radius: 4px;
  outline: 2px solid rgba(98, 225, 216, 0.26);
  outline-offset: 3px;
}

.device-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(117, 140, 148, 0.16);
  border-radius: 4px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(237, 250, 251, 0.9), rgba(255, 255, 255, 0.96));
}

.device-page-title h2 {
  margin: 2px 0 0;
  color: #1f2d33;
  font-size: 18px;
}

[data-device-live-fragment].device-dimmed #network,
[data-device-live-fragment].device-dimmed #tools,
[data-device-live-fragment].device-dimmed #clients {
  opacity: 0.46;
  filter: grayscale(0.28) saturate(0.5) brightness(0.82);
}

[data-device-live-fragment].device-dimmed .connection-trace-banner,
[data-device-live-fragment].device-dimmed .cyber-info-grid {
  opacity: 0.58;
  filter: grayscale(0.18) saturate(0.55) brightness(0.88);
}

[data-device-live-fragment].device-dimmed .basic-console::after {
  opacity: 0.12;
}

.connection-trace-banner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  justify-items: center;
  min-height: 0;
  border: 1px solid rgba(129, 218, 220, 0.28);
  border-radius: 4px;
  margin-top: 10px;
  padding: 6px 8px;
  background:
    linear-gradient(90deg, rgba(25, 65, 72, 0.62), rgba(8, 19, 22, 0.88)),
    rgba(7, 17, 20, 0.82);
  box-shadow: 0 0 0 1px rgba(98, 225, 216, 0.05) inset;
}

.connection-trace-banner::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(98, 225, 216, 0.12), transparent);
  content: "";
  pointer-events: none;
}

.connection-trace-banner.cellular {
  border-color: rgba(62, 225, 144, 0.34);
}

.connection-trace-banner.wifi {
  border-color: rgba(94, 169, 255, 0.34);
}

.connection-trace-banner.ethernet {
  border-color: rgba(67, 225, 219, 0.38);
}

.trace-route,
.trace-hop {
  position: relative;
  z-index: 1;
}

.trace-hop small {
  color: #86b3b9;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.trace-hop strong {
  color: #e9ffff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.trace-route {
  --trace-gap: 30px;
  display: inline-grid;
  grid-template-columns: repeat(6, minmax(max-content, 1fr));
  align-items: stretch;
  gap: var(--trace-gap);
  min-width: 0;
  width: max-content;
  max-width: 100%;
  overflow: visible;
}

.trace-route.trace-count-5 {
  grid-template-columns: repeat(5, minmax(max-content, 1fr));
}

.trace-route.trace-count-4 {
  grid-template-columns: repeat(4, minmax(max-content, 1fr));
}

.trace-hop {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  min-height: 36px;
  border: 1px solid rgba(129, 218, 220, 0.2);
  border-radius: 3px;
  padding: 5px 7px;
  background: rgba(7, 17, 20, 0.66);
  text-align: center;
}

.trace-hop em {
  display: none;
}

.trace-hop:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: calc((var(--trace-gap) * -1) + 6px);
  width: calc(var(--trace-gap) - 10px);
  height: 1px;
  background: linear-gradient(90deg, rgba(129, 218, 220, 0.26), rgba(129, 218, 220, 0.82));
  content: "";
  transform: translateY(-50%);
}

.trace-hop:not(:last-child)::before {
  position: absolute;
  top: 50%;
  right: calc((var(--trace-gap) * -1) + 3px);
  width: 6px;
  height: 6px;
  border-top: 1px solid rgba(129, 218, 220, 0.86);
  border-right: 1px solid rgba(129, 218, 220, 0.86);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.trace-hop.source strong,
.trace-hop.gateway strong {
  color: #ffe39b;
}

.trace-hop.public strong {
  color: #79ffc3;
}

.trace-hop.cloud strong {
  color: #9bd0ff;
}

.trace-hop.internet {
  justify-items: center;
  text-align: center;
}

.trace-hop.internet strong {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(129, 218, 220, 0.45);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(16, 80, 91, 0.94), rgba(9, 30, 36, 0.96));
  color: #bafff9;
  box-shadow: 0 0 18px rgba(98, 225, 216, 0.16);
}

.trace-hop.internet svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.cyber-info-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(127, 220, 217, 0.18);
  margin: 10px 0 0;
  background: rgba(127, 220, 217, 0.18);
}

.cyber-info-grid > div {
  position: relative;
  min-width: 0;
  padding: 9px 10px;
  background: rgba(7, 17, 20, 0.78);
}

.cyber-info-grid dt {
  color: #81a9af;
  font-size: 11px;
  text-transform: uppercase;
}

.cyber-info-grid dd {
  margin: 4px 0 0;
  color: #e7ffff;
  font-size: 13px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.cyber-info-grid .hot dd {
  color: #81fff2;
  font-size: 15px;
  font-weight: 700;
}

.cyber-info-grid .link dd {
  color: #9bd0ff;
}

.device-cyber-card-grid {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 8px;
  border: 0;
  background: transparent;
}

.device-cyber-card-grid > div {
  border: 1px solid rgba(127, 220, 217, 0.18);
  border-radius: 6px;
  background: rgba(7, 17, 20, 0.78);
}

.cyber-info-grid .metric-hub,
.cyber-info-grid .detail-hub {
  cursor: crosshair;
}

.device-cyber-card-grid .metric-hub,
.device-cyber-card-grid .detail-hub {
  cursor: default;
}

.cyber-inline-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.cyber-inline-card {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(127, 220, 217, 0.14);
  border-radius: 4px;
  padding: 7px 8px;
  background: rgba(12, 32, 36, 0.78);
}

.cyber-inline-card.good {
  border-color: rgba(53, 222, 155, 0.32);
  background: rgba(17, 58, 45, 0.58);
}

.cyber-inline-card.warn {
  border-color: rgba(255, 214, 102, 0.36);
  background: rgba(67, 51, 18, 0.52);
}

.cyber-inline-card.bad {
  border-color: rgba(216, 63, 95, 0.34);
  background: rgba(62, 22, 34, 0.52);
}

.cyber-inline-card small,
.cyber-inline-card strong,
.cyber-inline-card em {
  display: block;
  min-width: 0;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.cyber-inline-card small {
  color: #81a9af;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.cyber-inline-card strong {
  color: #e7ffff;
  font-size: 12px;
  font-weight: 760;
}

.cyber-inline-card em {
  color: #9dbbc0;
  font-size: 10px;
  font-style: normal;
}

.device-identity-value-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.device-identity-value-row dd {
  min-width: 0;
}

.device-vanity-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: rgba(0, 146, 156, 0.45);
  cursor: pointer;
  transition: color 120ms ease, background 120ms ease;
}

.device-vanity-edit-button:hover,
.device-vanity-edit-button:focus-visible {
  background: rgba(229, 134, 32, 0.12);
  color: #e0861e;
}

.device-vanity-edit-button svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.device-vanity-inline-input {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  border: 1px solid rgba(98, 225, 216, 0.5);
  border-radius: 4px;
  padding: 0 9px;
  background: rgba(4, 12, 14, 0.42);
  color: #efffff;
  font-size: inherit;
  font-family: inherit;
  outline: none;
  box-shadow: 0 0 0 2px rgba(98, 225, 216, 0.18);
}

.device-vanity-inline-input::placeholder {
  color: #6f8e94;
}

.metric-disclosure-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  margin: 7px 0 0;
  border: 1px solid rgba(129, 218, 220, 0.32);
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(98, 225, 216, 0.08);
  color: #9ff8f4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.metric-disclosure-trigger[aria-expanded="true"] {
  background: rgba(98, 225, 216, 0.16);
  color: #e7ffff;
}

.cyber-info-grid .metric-hub:hover,
.cyber-info-grid .metric-hub:focus-within,
.cyber-info-grid .detail-hub:hover,
.cyber-info-grid .detail-hub:focus-within,
.cyber-info-grid .metric-hub.is-open,
.cyber-info-grid .detail-hub.is-open {
  z-index: 12;
}

.metric-hover-panel {
  position: absolute;
  right: auto;
  left: 8px;
  top: calc(100% + 8px);
  z-index: 50;
  width: min(360px, calc(100vw - 48px));
  border: 1px solid rgba(129, 218, 220, 0.42);
  border-radius: 5px;
  padding: 12px;
  background:
    linear-gradient(rgba(129, 218, 220, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 218, 220, 0.04) 1px, transparent 1px),
    #071114;
  background-size: 18px 18px, 18px 18px, auto;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(98, 225, 216, 0.06) inset;
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px) scale(0.985);
  transition: opacity 150ms ease, transform 150ms ease;
  visibility: hidden;
}

.cyber-info-grid > div:nth-child(4) .metric-hover-panel,
.cyber-info-grid > div:nth-child(5) .metric-hover-panel,
.cyber-info-grid > div:nth-child(6) .metric-hover-panel {
  right: 8px;
  left: auto;
}

.metric-hover-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #62e1d8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-hover-title::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62e1d8;
  box-shadow: 0 0 14px rgba(98, 225, 216, 0.78);
  content: "";
}

.metric-hover-grid {
  display: grid;
  grid-template-columns: minmax(72px, 0.75fr) minmax(72px, 0.75fr) minmax(0, 1.35fr);
  gap: 1px;
  background: rgba(127, 220, 217, 0.18);
  border: 1px solid rgba(127, 220, 217, 0.18);
}

.metric-hover-grid span,
.metric-hover-grid strong,
.metric-hover-grid small {
  min-width: 0;
  padding: 7px 8px;
  background: rgba(7, 17, 20, 0.84);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.metric-hover-grid span {
  color: #81a9af;
  font-size: 11px;
  text-transform: uppercase;
}

.metric-hover-grid strong {
  color: #e7ffff;
  font-size: 13px;
}

.metric-hover-grid small {
  color: #9dbbc0;
  font-size: 11px;
}

.metric-hub:hover .metric-hover-panel,
.metric-hub:focus-within .metric-hover-panel,
.detail-hub:hover .metric-hover-panel,
.detail-hub:focus-within .metric-hover-panel,
.metric-hub.is-open .metric-hover-panel,
.detail-hub.is-open .metric-hover-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.basic-cyber-head .tooltip-anchor[data-tooltip]::after,
.basic-cyber-head .has-tooltip[data-tooltip]::after,
.cyber-pills .tooltip-anchor[data-tooltip]::after,
.cyber-pills .has-tooltip[data-tooltip]::after {
  top: calc(100% + 10px);
  right: 0;
  bottom: auto;
  left: auto;
  max-width: min(340px, calc(100vw - 32px));
  transform: translateY(-5px) scale(0.985);
}

.basic-cyber-head .tooltip-anchor[data-tooltip]::before,
.basic-cyber-head .has-tooltip[data-tooltip]::before,
.cyber-pills .tooltip-anchor[data-tooltip]::before,
.cyber-pills .has-tooltip[data-tooltip]::before {
  top: calc(100% + 5px);
  right: 14px;
  bottom: auto;
  left: auto;
  border: 0;
  border-top: 1px solid rgba(129, 218, 220, 0.36);
  border-left: 1px solid rgba(129, 218, 220, 0.36);
  transform: translateY(-5px) rotate(45deg) scale(0.985);
}

.basic-cyber-head .tooltip-anchor[data-tooltip]:hover::after,
.basic-cyber-head .tooltip-anchor[data-tooltip]:focus-visible::after,
.basic-cyber-head .tooltip-anchor[data-tooltip]:focus-within::after,
.basic-cyber-head .has-tooltip[data-tooltip]:hover::after,
.basic-cyber-head .has-tooltip[data-tooltip]:focus-visible::after,
.basic-cyber-head .has-tooltip[data-tooltip]:focus-within::after,
.cyber-pills .tooltip-anchor[data-tooltip]:hover::after,
.cyber-pills .tooltip-anchor[data-tooltip]:focus-visible::after,
.cyber-pills .tooltip-anchor[data-tooltip]:focus-within::after,
.cyber-pills .has-tooltip[data-tooltip]:hover::after,
.cyber-pills .has-tooltip[data-tooltip]:focus-visible::after,
.cyber-pills .has-tooltip[data-tooltip]:focus-within::after {
  transform: translateY(0) scale(1);
}

.basic-cyber-head .tooltip-anchor[data-tooltip]:hover::before,
.basic-cyber-head .tooltip-anchor[data-tooltip]:focus-visible::before,
.basic-cyber-head .tooltip-anchor[data-tooltip]:focus-within::before,
.basic-cyber-head .has-tooltip[data-tooltip]:hover::before,
.basic-cyber-head .has-tooltip[data-tooltip]:focus-visible::before,
.basic-cyber-head .has-tooltip[data-tooltip]:focus-within::before,
.cyber-pills .tooltip-anchor[data-tooltip]:hover::before,
.cyber-pills .tooltip-anchor[data-tooltip]:focus-visible::before,
.cyber-pills .tooltip-anchor[data-tooltip]:focus-within::before,
.cyber-pills .has-tooltip[data-tooltip]:hover::before,
.cyber-pills .has-tooltip[data-tooltip]:focus-visible::before,
.cyber-pills .has-tooltip[data-tooltip]:focus-within::before {
  transform: translateY(0) rotate(45deg) scale(1);
}

.connection-trace-banner .tooltip-bubble {
  top: calc(100% + 10px);
  bottom: auto;
  transform: translate(-50%, -5px) scale(0.985);
}

.connection-trace-banner .tooltip-bubble::before {
  top: -5px;
  bottom: auto;
  border: 0;
  border-top: 1px solid rgba(129, 218, 220, 0.36);
  border-left: 1px solid rgba(129, 218, 220, 0.36);
}

.connection-trace-banner .trace-hop:hover .tooltip-bubble,
.connection-trace-banner .trace-hop:focus-visible .tooltip-bubble,
.connection-trace-banner .trace-hop:focus-within .tooltip-bubble {
  transform: translate(-50%, 0) scale(1);
}

[data-device-live-fragment],
[data-dashboard-live-fragment],
[data-jobs-live-fragment],
[data-network-tests-live-fragment] {
  display: contents;
}

[data-device-live-fragment].htmx-request > *,
[data-dashboard-live-fragment].htmx-request > *,
[data-jobs-live-fragment].htmx-request > *,
[data-network-tests-live-fragment].htmx-request > * {
  opacity: 1;
}

.tooltip-anchor,
.has-tooltip {
  position: relative;
}

.tooltip-anchor[data-tooltip],
.has-tooltip[data-tooltip] {
  cursor: help;
}

.tooltip-anchor[data-tooltip]::before,
.tooltip-anchor[data-tooltip]::after,
.has-tooltip[data-tooltip]::before,
.has-tooltip[data-tooltip]::after {
  position: absolute;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 130ms ease, transform 130ms ease;
  visibility: hidden;
}

.tooltip-anchor[data-tooltip]::after,
.has-tooltip[data-tooltip]::after {
  left: 50%;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  border: 1px solid rgba(129, 218, 220, 0.36);
  border-radius: 6px;
  padding: 8px 10px;
  background:
    linear-gradient(rgba(129, 218, 220, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 218, 220, 0.035) 1px, transparent 1px),
    rgba(7, 17, 20, 0.98);
  background-size: 14px 14px, 14px 14px, auto;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(98, 225, 216, 0.06) inset;
  color: #e7ffff;
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  transform: translate(-50%, 5px) scale(0.985);
  white-space: normal;
}

.tooltip-bubble {
  position: absolute;
  z-index: 160;
  left: 50%;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  border: 1px solid rgba(129, 218, 220, 0.36);
  border-radius: 6px;
  padding: 8px 10px;
  pointer-events: none;
  background:
    linear-gradient(rgba(129, 218, 220, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 218, 220, 0.035) 1px, transparent 1px),
    rgba(7, 17, 20, 0.98);
  background-size: 14px 14px, 14px 14px, auto;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(98, 225, 216, 0.06) inset;
  color: #e7ffff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
  opacity: 0;
  text-align: left;
  text-transform: none;
  transform: translate(-50%, 5px) scale(0.985);
  transition: opacity 130ms ease, transform 130ms ease;
  visibility: hidden;
  white-space: normal;
}

.tooltip-bubble::before {
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 9px;
  height: 9px;
  border-right: 1px solid rgba(129, 218, 220, 0.36);
  border-bottom: 1px solid rgba(129, 218, 220, 0.36);
  background: rgba(7, 17, 20, 0.98);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.trace-hop:hover,
.trace-hop:focus-visible,
.trace-hop:focus-within {
  z-index: 40;
}

.trace-hop:hover .tooltip-bubble,
.trace-hop:focus-visible .tooltip-bubble,
.trace-hop:focus-within .tooltip-bubble {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  visibility: visible;
}

.tooltip-anchor[data-tooltip]::before,
.has-tooltip[data-tooltip]::before {
  left: 50%;
  bottom: calc(100% + 5px);
  width: 9px;
  height: 9px;
  border-right: 1px solid rgba(129, 218, 220, 0.36);
  border-bottom: 1px solid rgba(129, 218, 220, 0.36);
  background: rgba(7, 17, 20, 0.98);
  content: "";
  transform: translate(-50%, 5px) rotate(45deg) scale(0.985);
}

.tooltip-anchor.tooltip-bottom[data-tooltip]::after,
.has-tooltip.tooltip-bottom[data-tooltip]::after {
  top: calc(100% + 10px);
  bottom: auto;
  transform: translate(-50%, -5px) scale(0.985);
}

.tooltip-anchor.tooltip-bottom[data-tooltip]::before,
.has-tooltip.tooltip-bottom[data-tooltip]::before {
  top: calc(100% + 5px);
  bottom: auto;
  border: 0;
  border-top: 1px solid rgba(129, 218, 220, 0.36);
  border-left: 1px solid rgba(129, 218, 220, 0.36);
  transform: translate(-50%, -5px) rotate(45deg) scale(0.985);
}

.tooltip-anchor.tooltip-right[data-tooltip]::after,
.has-tooltip.tooltip-right[data-tooltip]::after {
  right: 0;
  left: auto;
  transform: translateY(5px) scale(0.985);
}

.tooltip-anchor.tooltip-right[data-tooltip]::before,
.has-tooltip.tooltip-right[data-tooltip]::before {
  right: 14px;
  left: auto;
  transform: translateY(5px) rotate(45deg) scale(0.985);
}

.tooltip-anchor[data-tooltip]:hover,
.tooltip-anchor[data-tooltip]:focus-visible,
.tooltip-anchor[data-tooltip]:focus-within,
.has-tooltip[data-tooltip]:hover,
.has-tooltip[data-tooltip]:focus-visible,
.has-tooltip[data-tooltip]:focus-within {
  z-index: 30;
}

.tooltip-anchor[data-tooltip]:hover::before,
.tooltip-anchor[data-tooltip]:hover::after,
.tooltip-anchor[data-tooltip]:focus-visible::before,
.tooltip-anchor[data-tooltip]:focus-visible::after,
.tooltip-anchor[data-tooltip]:focus-within::before,
.tooltip-anchor[data-tooltip]:focus-within::after,
.has-tooltip[data-tooltip]:hover::before,
.has-tooltip[data-tooltip]:hover::after,
.has-tooltip[data-tooltip]:focus-visible::before,
.has-tooltip[data-tooltip]:focus-visible::after,
.has-tooltip[data-tooltip]:focus-within::before,
.has-tooltip[data-tooltip]:focus-within::after {
  opacity: 1;
  visibility: visible;
}

.tooltip-anchor[data-tooltip]:hover::after,
.tooltip-anchor[data-tooltip]:focus-visible::after,
.tooltip-anchor[data-tooltip]:focus-within::after,
.has-tooltip[data-tooltip]:hover::after,
.has-tooltip[data-tooltip]:focus-visible::after,
.has-tooltip[data-tooltip]:focus-within::after {
  transform: translate(-50%, 0) scale(1);
}

.tooltip-anchor[data-tooltip]:hover::before,
.tooltip-anchor[data-tooltip]:focus-visible::before,
.tooltip-anchor[data-tooltip]:focus-within::before,
.has-tooltip[data-tooltip]:hover::before,
.has-tooltip[data-tooltip]:focus-visible::before,
.has-tooltip[data-tooltip]:focus-within::before {
  transform: translate(-50%, 0) rotate(45deg) scale(1);
}

.tooltip-anchor.tooltip-bottom[data-tooltip]:hover::after,
.tooltip-anchor.tooltip-bottom[data-tooltip]:focus-visible::after,
.tooltip-anchor.tooltip-bottom[data-tooltip]:focus-within::after,
.has-tooltip.tooltip-bottom[data-tooltip]:hover::after,
.has-tooltip.tooltip-bottom[data-tooltip]:focus-visible::after,
.has-tooltip.tooltip-bottom[data-tooltip]:focus-within::after {
  transform: translate(-50%, 0) scale(1);
}

.tooltip-anchor.tooltip-bottom[data-tooltip]:hover::before,
.tooltip-anchor.tooltip-bottom[data-tooltip]:focus-visible::before,
.tooltip-anchor.tooltip-bottom[data-tooltip]:focus-within::before,
.has-tooltip.tooltip-bottom[data-tooltip]:hover::before,
.has-tooltip.tooltip-bottom[data-tooltip]:focus-visible::before,
.has-tooltip.tooltip-bottom[data-tooltip]:focus-within::before {
  transform: translate(-50%, 0) rotate(45deg) scale(1);
}

.tooltip-anchor.tooltip-right[data-tooltip]:hover::after,
.tooltip-anchor.tooltip-right[data-tooltip]:focus-visible::after,
.tooltip-anchor.tooltip-right[data-tooltip]:focus-within::after,
.has-tooltip.tooltip-right[data-tooltip]:hover::after,
.has-tooltip.tooltip-right[data-tooltip]:focus-visible::after,
.has-tooltip.tooltip-right[data-tooltip]:focus-within::after {
  transform: translateY(0) scale(1);
}

.tooltip-anchor.tooltip-right[data-tooltip]:hover::before,
.tooltip-anchor.tooltip-right[data-tooltip]:focus-visible::before,
.tooltip-anchor.tooltip-right[data-tooltip]:focus-within::before,
.has-tooltip.tooltip-right[data-tooltip]:hover::before,
.has-tooltip.tooltip-right[data-tooltip]:focus-visible::before,
.has-tooltip.tooltip-right[data-tooltip]:focus-within::before {
  transform: translateY(0) rotate(45deg) scale(1);
}

.info-grid div,
.connection-card dl div {
  min-width: 0;
}

dt {
  font-size: 12px;
}

dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

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

.stat-box {
  min-height: 82px;
  padding: 10px 11px;
}

.stat-box strong {
  display: block;
  margin: 5px 0 2px;
  color: #1f2d33;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 500;
}

.stat-box small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.mini-bar {
  display: block;
  height: 4px;
  border-radius: 6px;
  margin-top: 7px;
  background: #e8edf0;
  overflow: hidden;
}

.mini-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.network-section {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}

.compact-radio-panel {
  padding: 10px 12px;
}

.compact-radio-panel .panel-title {
  margin-bottom: 8px;
}

.radio-panel-title {
  align-items: center;
  justify-content: flex-start;
}

.panel-title-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.collapse-toggle {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-color: rgba(129, 218, 220, 0.26);
  background: rgba(10, 32, 36, 0.05);
  color: #477a82;
}

.collapse-toggle svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.7;
  transition: transform 160ms ease;
}

.compact-radio-panel.is-collapsed .collapse-toggle svg {
  transform: rotate(-90deg);
}

.compact-radio-panel.is-collapsed .wifi-grid,
.compact-radio-panel.is-collapsed .radio-uplink-note {
  display: none;
}

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

.ip-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.ip-stack-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.78fr) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 13px 14px;
  border-bottom: 1px solid #e7edf0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
}

.ip-stack-row:nth-child(odd) {
  border-right: 1px solid #e7edf0;
}

.ip-stack-row:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.ip-stack-row.primary {
  position: relative;
  background: linear-gradient(135deg, #edfafa 0%, #ffffff 64%);
}

.ip-stack-row.primary::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}

.ip-stack-row.primary.cellular::before {
  background: #1f9d6a;
}

.ip-stack-row.primary.wifi::before {
  background: #2d74c4;
}

.ip-stack-row.primary.ethernet::before {
  background: #2f8793;
}

.ip-stack-row.primary strong {
  font-size: 23px;
}

.ip-stack-row span,
.ip-stack-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.ip-stack-row strong {
  display: block;
  margin-top: 5px;
  color: #1f2d33;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.ip-stack-row em {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 6px;
  padding: 3px 7px;
  border: 1px solid #d5e3e7;
  border-radius: 999px;
  color: #28616b;
  background: #f2fafb;
  font-size: 12px;
  font-style: normal;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.connection-card {
  min-height: 168px;
  padding: 13px;
}

.connection-card strong {
  display: block;
  min-height: 38px;
  margin: 10px 0 14px;
  color: #1f2d33;
  overflow-wrap: anywhere;
}

.connection-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

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

.wireless-survey-plugin {
  display: grid;
  gap: 10px;
}

.wireless-survey-plugin.unavailable {
  border-color: rgba(187, 58, 58, 0.26);
  background: linear-gradient(135deg, rgba(255, 245, 245, 0.92), rgba(255, 255, 255, 0.96));
}

.wireless-survey-plugin .panel-title {
  margin-bottom: 0;
}

.wireless-survey-summary {
  margin: 0;
}

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

.wireless-survey-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(117, 140, 148, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(45, 116, 196, 0.04), rgba(255, 255, 255, 0.92));
}

.wireless-survey-card h3 {
  margin: 0 0 8px;
  color: #1f2d33;
  font-size: 13px;
}

.wireless-survey-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wireless-survey-list li {
  display: grid;
  grid-template-columns: minmax(92px, 0.62fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid rgba(117, 140, 148, 0.12);
}

.wireless-survey-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.wireless-survey-list strong,
.wireless-survey-list span,
.wireless-survey-list small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wireless-survey-list strong {
  color: #145c62;
  font-size: 12px;
}

.wireless-survey-list span {
  color: #283940;
  font-size: 12px;
}

.wireless-survey-list small {
  color: var(--muted);
  font-size: 11px;
}

.wifi-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
  min-height: 0;
  padding: 9px 10px;
  background:
    linear-gradient(180deg, rgba(45, 116, 196, 0.05), rgba(255, 255, 255, 0.95)),
    var(--panel);
}

.wifi-card-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.wifi-card-main > div {
  min-width: 0;
}

.wifi-card-label {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.wifi-icon {
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(117, 140, 148, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
  color: #74848a;
}

.wifi-card.on .wifi-icon {
  border-color: rgba(117, 140, 148, 0.18);
  background: rgba(255, 255, 255, 0.58);
  color: #1f9d6a;
  box-shadow: none;
}

.wifi-card.off .wifi-icon {
  border-color: rgba(117, 140, 148, 0.18);
  background: rgba(255, 255, 255, 0.58);
  color: #b34f52;
}

.wifi-card.unknown .wifi-icon {
  border-color: rgba(117, 140, 148, 0.18);
  background: rgba(255, 255, 255, 0.58);
  color: #74848a;
}

.wifi-card.shared-uplink {
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(105, 123, 132, 0.05), rgba(255, 255, 255, 0.92)),
    var(--panel);
}

.wifi-card.shared-uplink:not(.on) {
  opacity: 0.72;
}

.wifi-card.shared-uplink:not(.on) .wifi-icon {
  color: #6f7f86;
}

.wifi-card.on.shared-uplink .wifi-icon {
  color: #1f9d6a;
}

.wifi-card.shared-uplink:not(.on) .wifi-card-count {
  opacity: 0.74;
}

.wifi-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wifi-card h3 {
  margin: 0;
  color: #1f2d33;
  font-size: 13px;
  line-height: 1.15;
}

.wifi-card small {
  display: block;
  margin-top: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wifi-ssid-wrap {
  display: block;
  width: fit-content;
  max-width: 128px;
  min-width: 0;
}

.wifi-ssid {
  display: block;
  max-width: 128px;
  color: #145c62;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.16;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wifi-ssid.muted {
  color: #87979d;
  font-weight: 520;
}

.wifi-card-count {
  display: grid;
  justify-items: end;
  min-width: 44px;
}

.wifi-card-count strong {
  color: #1f2d33;
  font-size: 25px;
  font-weight: 650;
  line-height: 0.95;
}

.wifi-card-count span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
  text-transform: uppercase;
}

.wifi-card-meta,
.radio-chip {
  display: inline-grid;
  place-items: center;
}

.radio-chip {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(117, 140, 148, 0.18);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.64);
  color: #6b7b82;
}

.radio-chip svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.radio-chip.security {
  margin-left: auto;
  color: #2f8793;
}

.radio-chip.uplink-chip {
  width: 22px;
  min-width: 22px;
  padding: 0;
  color: #596a70;
}

.wifi-card.unknown {
  opacity: 0.78;
  background: #fbfcfd;
}

.wifi-card.unknown.shared-uplink {
  opacity: 0.72;
  background:
    linear-gradient(180deg, rgba(105, 123, 132, 0.05), rgba(255, 255, 255, 0.92)),
    var(--panel);
}

.radio-uplink-note {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.diagnostic-bar,
.client-filters,
.preset-row,
.remote-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.remote-toolbar {
  margin-bottom: 14px;
}

.web-proxy-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  border-color: rgba(0, 122, 136, 0.22);
  background:
    linear-gradient(180deg, rgba(0, 146, 156, 0.055), rgba(255, 255, 255, 0.96) 42%),
    var(--panel);
}

.web-proxy-toolbar .panel-title {
  margin-bottom: 0;
}

.web-proxy-route {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(170px, 1fr) minmax(220px, 1.25fr);
  gap: 8px;
  align-items: stretch;
}

.web-proxy-route span {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  border: 1px solid rgba(133, 161, 170, 0.32);
  border-radius: 6px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.web-proxy-route span + span {
  position: relative;
}

.web-proxy-route span + span::before {
  position: absolute;
  top: 50%;
  left: -9px;
  width: 10px;
  border-top: 1px solid rgba(0, 122, 136, 0.4);
  content: "";
}

.web-proxy-route b,
.web-proxy-route small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.web-proxy-route b {
  color: #16323a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 800;
}

.web-proxy-route small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.web-proxy-fields {
  display: grid;
  grid-template-columns: minmax(112px, 0.52fr) minmax(190px, 1.2fr) minmax(96px, 0.42fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.remote-toolbar.web-proxy-toolbar label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #59676d;
  font-size: 12px;
  font-weight: 750;
}

.web-proxy-toolbar select,
.web-proxy-toolbar input {
  width: 100%;
}

.web-proxy-toolbar .button {
  min-height: 36px;
  white-space: nowrap;
}

.web-proxy-targets {
  border-color: rgba(0, 122, 136, 0.16);
}

.web-proxy-target-table th {
  background: #f4f9fa;
}

.web-proxy-target-table code {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(0, 122, 136, 0.14);
  border-radius: 4px;
  padding: 0 7px;
  background: rgba(0, 146, 156, 0.055);
  color: #17343b;
}

.diagnostic-tabs-bar .button[aria-current="page"] {
  border-color: rgba(0, 151, 167, 0.38);
  background: rgba(0, 151, 167, 0.12);
  color: #006a72;
  box-shadow: inset 0 0 0 1px rgba(0, 151, 167, 0.12);
}

.remote-access-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, max-content));
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
}

.remote-access-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid #cfe5e7;
  border-radius: 4px;
  padding: 0 10px;
  background: linear-gradient(180deg, #f8fdfd 0%, #edf8f9 100%);
  color: #243238;
  font-size: 12px;
  white-space: nowrap;
}

.remote-access-strip b {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.remote-session-toolbar {
  padding: 10px 12px;
}

.remote-toolbar span,
.client-filters span {
  color: #59676d;
  font-size: 13px;
}

.client-filter-summary {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.client-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid #cfd9de;
  border-radius: 4px;
  padding: 0 10px;
  background: #fff;
  color: #243238;
}

.client-filter-chip b {
  color: #243238;
  font-weight: 700;
}

.remote-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #59676d;
  font-size: 13px;
}

.remote-toolbar .panel-title {
  flex: 1 0 100%;
  margin-bottom: 4px;
}

.remote-toolbar select {
  min-width: 210px;
}

.remote-toolbar input {
  min-height: 34px;
  border: 1px solid #cfd9de;
  border-radius: 4px;
  padding: 0 10px;
  background: #fff;
  color: #243238;
  font: inherit;
}

.remote-toolbar input[type="text"] {
  width: min(240px, 46vw);
}

.remote-toolbar input[type="number"] {
  width: 88px;
}

.remote-toolbar #web-target-label {
  width: min(190px, 38vw);
}

.remote-toolbar.web-proxy-toolbar select {
  min-width: 0;
}

.remote-toolbar.web-proxy-toolbar input[type="text"],
.remote-toolbar.web-proxy-toolbar input[type="number"],
.remote-toolbar.web-proxy-toolbar #web-target-label {
  width: 100%;
}

.remote-link-table code {
  white-space: nowrap;
}

.table-action-row {
  justify-content: flex-start;
}

.remote-path-note {
  flex: 1;
  min-width: 260px;
}

.remote-state {
  min-height: 24px;
  border: 1px solid #cfe5e7;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--accent-soft);
  color: var(--accent-strong) !important;
  font-size: 12px !important;
  font-weight: 700;
}

.terminal-session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 9px 0 0;
}

.terminal-session-meta span {
  border: 1px solid #d7e5e8;
  border-radius: 999px;
  padding: 3px 8px;
  background: #f8fbfc;
  color: #56656c;
  font-size: 12px;
}

.terminal-confirm {
  display: grid;
  gap: 8px;
  max-width: 520px;
  border: 1px solid #f0d7a2;
  border-radius: 4px;
  padding: 12px;
  background: #fff8e8;
  color: #4c3a17;
}

.terminal-confirm span {
  color: #72561b;
  font-size: 13px;
}

.network-test-layout {
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.network-test-layout > * {
  min-width: 0;
}

.network-test-layout.device-workspace {
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
}

.test-runner {
  position: sticky;
  top: 74px;
}

.network-test-device-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 10px;
  align-items: stretch;
  border: 1px solid var(--border);
  border-left: 4px solid rgba(32, 174, 183, 0.38);
  border-radius: 6px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(32, 174, 183, 0.1), rgba(255, 255, 255, 0.96));
}

.network-test-device-preview.good {
  border-left-color: var(--success);
}

.network-test-device-preview.warn {
  border-left-color: var(--warning);
}

.network-test-device-preview.bad,
.network-test-device-preview.is-empty {
  border-left-color: var(--danger);
}

.network-test-device-preview .eyebrow {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.network-test-device-preview strong,
.network-test-device-preview small,
.network-test-device-preview span,
.network-test-device-preview b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-test-device-preview strong {
  display: block;
  color: #1f2d33;
  font-size: 15px;
}

.network-test-device-preview small,
.network-test-device-preview li span {
  color: var(--muted);
  font-size: 11px;
}

.network-test-device-preview ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.network-test-device-preview li {
  display: grid;
  grid-template-columns: minmax(70px, 0.72fr) minmax(0, 1.28fr);
  gap: 7px;
  align-items: baseline;
  min-width: 0;
}

.network-test-choice-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.network-test-choice {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(32, 174, 183, 0.24);
  border-radius: 6px;
  padding: 7px 8px;
  color: #163840;
  text-align: left;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.network-test-choice:hover,
.network-test-choice:focus-visible {
  border-color: rgba(32, 174, 183, 0.52);
  background: #fff;
}

.network-test-choice.selected,
.network-test-choice[aria-pressed="true"] {
  border-color: rgba(0, 146, 156, 0.72);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 146, 156, 0.32);
}

.network-test-choice.selected b,
.network-test-choice[aria-pressed="true"] b {
  color: var(--accent-strong);
}

.network-test-choice.disabled,
.network-test-choice:disabled {
  color: var(--muted);
  border-color: var(--border);
  background: rgba(241, 245, 249, 0.72);
  cursor: not-allowed;
}

.network-test-choice b {
  font-size: 12px;
}

.network-test-choice span {
  color: var(--muted);
  font-size: 10px;
}

.network-test-history-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 16px 12px;
}

.network-edge-readiness {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  border: 1px solid rgba(32, 174, 183, 0.18);
  border-left: 4px solid rgba(32, 174, 183, 0.5);
  border-radius: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(32, 174, 183, 0.08), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 26px rgba(18, 35, 45, 0.05);
}

.network-edge-readiness.good {
  border-left-color: var(--success);
}

.network-edge-readiness.warn {
  border-left-color: var(--warning);
}

.network-edge-readiness.bad {
  border-left-color: var(--danger);
}

.network-edge-readiness > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.network-edge-readiness strong,
.network-edge-readiness small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-edge-readiness strong {
  color: #163840;
  font-size: 15px;
}

.network-edge-readiness small {
  color: var(--muted);
  font-size: 11px;
}

.network-edge-readiness .button {
  flex: 0 0 auto;
}

.network-test-quick-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 14px;
  border: 1px solid rgba(32, 174, 183, 0.18);
  border-left: 4px solid rgba(32, 174, 183, 0.5);
  border-radius: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(20, 124, 135, 0.08), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 26px rgba(18, 35, 45, 0.05);
}

.network-test-quick-action.good {
  border-left-color: var(--success);
}

.network-test-quick-action.warn {
  border-left-color: var(--warning);
}

.network-test-quick-action.bad {
  border-left-color: var(--danger);
}

.network-test-quick-action > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.network-test-quick-action span,
.network-test-quick-action strong,
.network-test-quick-action small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-test-quick-action span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.network-test-quick-action strong {
  color: #163840;
  font-size: 15px;
}

.network-test-quick-action small {
  color: var(--muted);
  font-size: 11px;
}

.network-test-quick-action .button {
  flex: 0 0 auto;
}

.network-test-history-summary article {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(32, 174, 183, 0.2);
  border-left: 3px solid rgba(32, 174, 183, 0.42);
  border-radius: 7px;
  padding: 8px 9px;
  background: linear-gradient(135deg, rgba(32, 174, 183, 0.08), rgba(255, 255, 255, 0.94));
}

.network-test-history-summary.good article {
  border-left-color: var(--success);
}

.network-test-history-summary.warn article,
.network-test-history-summary.is-empty article {
  border-left-color: var(--warning);
}

.network-test-history-summary.bad article {
  border-left-color: var(--danger);
}

.network-test-history-summary span,
.network-test-history-summary strong,
.network-test-history-summary small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-test-history-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.network-test-history-summary strong {
  color: #163840;
  font-size: 15px;
}

.network-test-history-summary small {
  color: var(--muted);
  font-size: 11px;
}

.device-capability-survey {
  display: grid;
  gap: 10px;
}

.capability-survey-title {
  align-items: start;
}

.capability-survey-grid {
  display: grid;
  grid-template-columns: minmax(92px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.capability-survey-score {
  display: grid;
  place-items: center;
  gap: 2px;
  border: 1px solid rgba(32, 174, 183, 0.24);
  border-radius: 8px;
  padding: 10px 8px;
  background: linear-gradient(135deg, rgba(32, 174, 183, 0.1), rgba(255, 255, 255, 0.95));
  color: var(--accent-strong);
  text-align: center;
}

.capability-survey-score.warn {
  border-color: rgba(229, 162, 54, 0.32);
  background: linear-gradient(135deg, rgba(229, 162, 54, 0.12), rgba(255, 255, 255, 0.95));
  color: #9a5f03;
}

.capability-survey-score.bad {
  border-color: rgba(203, 64, 72, 0.28);
  background: linear-gradient(135deg, rgba(203, 64, 72, 0.1), rgba(255, 255, 255, 0.95));
  color: var(--danger);
}

.capability-survey-score b {
  font-size: 24px;
  line-height: 1;
}

.capability-survey-score span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.capability-survey-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.capability-survey-facts div {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 8px;
  background: rgba(248, 251, 252, 0.88);
}

.capability-survey-facts dt,
.capability-survey-facts dd {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capability-survey-facts dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.capability-survey-facts dd {
  margin: 2px 0 0;
  color: #1f2d33;
  font-size: 12px;
  font-weight: 800;
}

.capability-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.capability-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.capability-chip.good {
  border-color: rgba(48, 160, 96, 0.24);
  background: rgba(48, 160, 96, 0.08);
  color: #1e7b4c;
}

.capability-chip.bad {
  border-color: rgba(203, 64, 72, 0.24);
  background: rgba(203, 64, 72, 0.08);
  color: var(--danger);
}

.capability-survey-copy {
  margin: 0;
}

.compact-action {
  justify-self: start;
}

.network-target-presets {
  display: grid;
  gap: 6px;
  margin: 0;
  border: 0;
  padding: 0;
}

.network-target-presets legend {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.network-target-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.network-target-preset {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(32, 174, 183, 0.22);
  border-radius: 6px;
  padding: 7px 8px;
  color: #173d43;
  text-align: left;
  background: linear-gradient(135deg, rgba(32, 174, 183, 0.08), rgba(255, 255, 255, 0.92));
  box-shadow: none;
}

.network-target-preset:hover,
.network-target-preset:focus-visible {
  border-color: rgba(32, 174, 183, 0.55);
  background: #fff;
}

.network-target-preset b,
.network-target-preset span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-target-preset b {
  font-size: 12px;
}

.network-target-preset span {
  color: var(--muted);
  font-size: 10px;
}

.network-test-plan-summary {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(32, 174, 183, 0.24);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 9px 10px;
  background: linear-gradient(135deg, rgba(32, 174, 183, 0.08), rgba(255, 255, 255, 0.96));
}

.network-test-plan-summary.warn {
  border-left-color: var(--warn);
  background: linear-gradient(135deg, rgba(229, 162, 54, 0.1), rgba(255, 255, 255, 0.96));
}

.network-test-plan-summary.bad {
  border-left-color: var(--danger);
  background: linear-gradient(135deg, rgba(203, 64, 72, 0.08), rgba(255, 255, 255, 0.96));
}

.network-test-plan-summary .eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.network-test-plan-summary strong {
  color: #173d43;
  font-size: 14px;
}

.network-test-plan-summary dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 6px;
  margin: 0;
}

.network-test-plan-summary div {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 6px;
  background: rgba(255, 255, 255, 0.72);
}

.network-test-plan-summary dt,
.network-test-plan-summary dd {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-test-plan-summary dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.network-test-plan-summary dd {
  margin: 1px 0 0;
  color: #1f2d33;
  font-size: 12px;
  font-weight: 800;
}

.network-test-plan-summary small {
  color: var(--muted);
  font-size: 11px;
}

.chart-panel,
.device-test-identity,
.quality-score-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

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

.mini-metric {
  position: relative;
  min-width: 0;
  overflow: visible;
  border: 1px solid #e2e9ed;
  border-radius: 4px;
  padding: 9px;
  background: #f9fbfc;
}

.mini-metric.has-pending-indicator {
  border-color: rgba(32, 174, 183, 0.36);
  background:
    linear-gradient(135deg, rgba(32, 174, 183, 0.1), rgba(255, 255, 255, 0.96) 42%),
    #f9fbfc;
}

.metric-pending-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(32, 174, 183, 0.52);
  border-radius: 50%;
  background: #ecfbfb;
  color: #067985;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 3px rgba(32, 174, 183, 0.08), 0 0 14px rgba(32, 174, 183, 0.24);
}

.mini-metric span,
.mini-metric small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.mini-metric strong {
  display: block;
  margin: 5px 0 3px;
  color: #1f2d33;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.device-test-titlebar h1 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.device-test-titlebar p .status-badge {
  margin: 0 2px;
}

.device-test-hero,
.quality-overview {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.device-test-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
}

.device-test-identity,
.quality-score-card,
.chart-panel {
  padding: 14px;
}

.device-test-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: center;
}

.device-test-identity p:not(.eyebrow) {
  margin-top: 8px;
  max-width: 720px;
}

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

.device-test-facts div {
  min-width: 0;
  border-left: 3px solid #cfe4e7;
  padding-left: 9px;
}

.quality-score-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quality-score-card p {
  margin-top: 6px;
}

.score-gauge {
  --gauge-color: #8c9aa1;
  --score: 0%;
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 124px;
  height: 124px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--gauge-color) var(--score), #e9eef1 0);
  transition: --score 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.score-gauge.good {
  --gauge-color: var(--success);
}

.score-gauge.warn {
  --gauge-color: var(--warning);
}

.score-gauge.bad {
  --gauge-color: var(--danger);
}

.score-gauge.score-0 { --score: 0%; }
.score-gauge.score-10 { --score: 10%; }
.score-gauge.score-20 { --score: 20%; }
.score-gauge.score-30 { --score: 30%; }
.score-gauge.score-40 { --score: 40%; }
.score-gauge.score-50 { --score: 50%; }
.score-gauge.score-60 { --score: 60%; }
.score-gauge.score-70 { --score: 70%; }
.score-gauge.score-80 { --score: 80%; }
.score-gauge.score-90 { --score: 90%; }
.score-gauge.score-100 { --score: 100%; }

.score-gauge::after {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e2e9ed;
  content: "";
}

.score-gauge > div {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
}

.score-gauge strong {
  color: #1f2d33;
  font-size: 31px;
  line-height: 1;
}

.score-gauge span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.quality-overview {
  grid-template-columns: minmax(260px, 1.15fr) minmax(260px, 1fr) minmax(280px, 1.1fr) minmax(240px, 0.9fr);
}

.chart-panel {
  min-height: 174px;
}

.chart-panel.metric-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.chart-empty,
.sparkline-single {
  display: grid;
  min-height: 96px;
  place-items: center;
  border: 1px dashed #d7e0e4;
  border-radius: 4px;
  color: var(--muted);
  text-align: center;
}

.sparkline-single strong {
  color: #1f2d33;
  font-size: 34px;
}

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

.sparkline {
  display: block;
  width: 100%;
  min-height: 96px;
}

.sparkline line {
  stroke: #e1e8ec;
  stroke-width: 1;
}

.sparkline polyline {
  fill: none;
  stroke: var(--accent-strong);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.sparkline circle {
  fill: #fff;
  stroke: var(--accent-strong);
  stroke-width: 2;
}

.bar-chart {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 82px minmax(120px, 1fr) 84px;
  align-items: center;
  gap: 10px;
  color: #59676d;
  font-size: 13px;
}

.bar-row i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #e8eef1;
  overflow: hidden;
}

.bar-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.w-0 { width: 0%; }
.w-5 { width: 5%; }
.w-10 { width: 10%; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }
.w-100 { width: 100%; }

.bar-row strong {
  color: #1f2d33;
  font-size: 13px;
  text-align: right;
}

.phase-rail {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phase-rail li {
  display: grid;
  grid-template-columns: 18px minmax(64px, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: #65747b;
  font-size: 13px;
}

.phase-rail li span {
  width: 12px;
  height: 12px;
  border: 2px solid #c9d4d9;
  border-radius: 50%;
  background: #fff;
}

.phase-rail li.good span {
  border-color: var(--success);
  background: var(--success);
}

.phase-rail li.warn span {
  border-color: var(--warning);
  background: var(--warning);
}

.phase-rail li.bad span {
  border-color: var(--danger);
  background: var(--danger);
}

.phase-rail strong {
  color: #2b3a41;
  font-weight: 500;
}

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

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

.test-type-grid button {
  display: grid;
  min-height: 76px;
  align-content: center;
  justify-items: start;
  border-color: #d8e2e6;
  border-radius: 5px;
  background: #fff;
  color: #29383f;
  padding: 10px;
  text-align: left;
  white-space: normal;
}

.test-type-grid button strong,
.test-type-grid button span {
  display: block;
}

.test-type-grid button span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.test-type-grid button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(32, 174, 183, 0.18);
}

.advanced-targets {
  border: 1px solid #dfe7eb;
  border-radius: 5px;
  background: #fafcfd;
  padding: 8px 10px;
}

.advanced-targets summary {
  color: #304148;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.advanced-targets label {
  margin-top: 10px;
}

.diagnostic-overview {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr);
  gap: 12px;
  margin: 12px 0;
}

.device-diagnostics-surface,
.realtime-diagnostics {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.realtime-diagnostics-head,
.live-diagnostic-card-head,
.live-diagnostic-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.realtime-diagnostics-head h2,
.live-diagnostic-card-head h3 {
  margin: 0;
  color: var(--ink);
}

.live-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border: 1px solid #d8e5e9;
  border-radius: 999px;
  padding: 0 10px;
  background: #f7fbfc;
  color: #62737a;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.live-state.good {
  border-color: rgba(50, 166, 119, 0.34);
  background: rgba(50, 166, 119, 0.1);
  color: #1d704d;
}

.live-state.warn {
  border-color: rgba(210, 143, 43, 0.38);
  background: rgba(210, 143, 43, 0.12);
  color: #84530c;
}

.live-state.bad {
  border-color: rgba(216, 63, 95, 0.34);
  background: rgba(216, 63, 95, 0.1);
  color: #943045;
}

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

.live-diagnostic-surface {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.live-diagnostic-card-head > div,
.realtime-diagnostics-head > div {
  min-width: 0;
}

.live-diagnostic-card-head h3 {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.realtime-metric-grid,
.mtr-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

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

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

.compact-speedometer {
  display: grid;
  min-width: 0;
  min-height: 112px;
  place-items: center;
  border: 1px solid #dde9ed;
  border-radius: 6px;
  padding: 10px;
  background:
    radial-gradient(circle at 50% 100%, rgba(32, 174, 183, 0.18), transparent 46%),
    #ffffff;
  text-align: center;
}

.compact-speedometer span,
.compact-speedometer small,
.compact-speedometer em {
  overflow: hidden;
  max-width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-speedometer strong {
  color: var(--accent-strong);
  font-size: 28px;
  line-height: 1;
}

.realtime-metric {
  min-width: 0;
  border: 1px solid #e2ebef;
  border-radius: 6px;
  padding: 9px;
  background: #ffffff;
}

.realtime-metric span,
.realtime-metric small,
.live-diagnostic-foot span,
.diagnostic-run-rail small {
  color: var(--muted);
  font-size: 12px;
}

.realtime-metric span,
.realtime-metric strong,
.realtime-metric small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.realtime-metric strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 18px;
}

.realtime-metric small {
  margin-top: 3px;
}

.live-throughput-chart,
.mtr-chart-panel {
  min-width: 0;
  border: 1px solid #e4edf0;
  border-radius: 6px;
  padding: 10px;
  background: #ffffff;
}

.mtr-live-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(220px, 1fr);
  gap: 10px;
  min-width: 0;
}

.live-hop-ladder {
  max-height: 220px;
  overflow: auto;
  border: 1px solid #e4edf0;
  border-radius: 6px;
  padding: 8px;
  background: #f8fbfc;
}

.live-hop-ladder strong {
  color: #26383e;
  font-size: 12px;
  white-space: nowrap;
}

.port-target-list {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid #e4edf0;
  border-radius: 6px;
  padding: 8px;
  background: #f8fbfc;
}

.port-target-list span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 8px;
  min-width: 0;
  border-left: 3px solid #b9c8cd;
  border-radius: 5px;
  padding: 7px 8px;
  background: #ffffff;
}

.port-target-list span.good {
  border-left-color: var(--success);
}

.port-target-list span.warn {
  border-left-color: var(--warning);
}

.port-target-list b,
.port-target-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.port-target-list b {
  color: var(--ink);
  font-size: 12px;
}

.port-target-list small {
  color: var(--muted);
  font-size: 12px;
}

.previous-test-strip {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  border: 1px solid #e2ebef;
  border-radius: 6px;
  padding: 8px 9px;
  background: #ffffff;
}

.previous-test-strip span,
.previous-test-strip strong,
.previous-test-strip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.previous-test-strip span {
  color: var(--muted);
  font-size: 12px;
}

.previous-test-strip strong {
  flex: 1;
  color: var(--ink);
  font-size: 13px;
}

.previous-test-strip.empty strong {
  color: var(--muted);
}

.live-diagnostic-foot {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.live-diagnostic-foot .button {
  margin-left: auto;
}

.live-diagnostic-foot .button + .button {
  margin-left: 0;
}

.diagnostic-run-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.diagnostic-run-rail > div {
  min-width: 0;
  border: 1px solid #e2ebef;
  border-radius: 6px;
  padding: 8px;
  background: #ffffff;
}

.diagnostic-run-rail span,
.diagnostic-run-rail strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diagnostic-run-rail span {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.diagnostic-run-rail strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 12px;
}

.diagnostic-tabs-shell {
  overflow: visible;
}

.diagnostic-title {
  align-items: flex-start;
}

.diagnostic-title-chip {
  border: 1px solid rgba(32, 174, 183, 0.28);
  border-radius: 999px;
  background: rgba(32, 174, 183, 0.08);
  color: #12636a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 6px 9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.diagnostic-workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.diagnostic-workspace-tab,
.diagnostic-workspace-actions .button {
  white-space: nowrap;
}

.diagnostic-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(96px, 1fr));
  gap: 6px;
  margin: 10px 0;
}

.diagnostic-tabs button {
  display: grid;
  gap: 2px;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid #dce7eb;
  border-radius: 6px;
  background: #f8fbfc;
  color: #38494f;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.diagnostic-tabs button strong {
  font-size: 13px;
  line-height: 1.15;
}

.diagnostic-tabs button span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.diagnostic-tabs button.active {
  border-color: rgba(32, 174, 183, 0.55);
  background: linear-gradient(135deg, #ffffff, #ecf8f8);
  box-shadow: inset 0 0 0 1px rgba(32, 174, 183, 0.16), 0 8px 22px rgba(25, 63, 70, 0.08);
}

.diagnostic-tabs button:hover {
  transform: translateY(-1px);
}

.diagnostic-tabs button:focus-visible {
  outline: 2px solid rgba(32, 174, 183, 0.52);
  outline-offset: 2px;
}

.diagnostic-tab-panel {
  display: none;
}

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

.diagnostic-tab-panel.active {
  display: block;
  animation: panelFade 180ms ease;
}

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

.diagnostic-panel-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1fr);
  gap: 10px;
  align-items: stretch;
}

.diagnostic-panel-grid.graph-heavy {
  grid-template-columns: minmax(250px, 0.62fr) minmax(360px, 1fr);
}

.diagnostic-panel-grid.workspace-grid {
  grid-template-columns: minmax(260px, 0.55fr) minmax(360px, 1fr);
}

.diagnostic-side-stack {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.diagnostic-control-card,
.diagnostic-result-card,
.diagnostic-graph-card,
.port-target-grid {
  border: 1px solid #dfe8ec;
  border-radius: 6px;
  background: #fbfcfd;
  padding: 10px;
}

.diagnostic-control-card {
  display: grid;
  gap: 8px;
}

.diagnostic-control-card > strong {
  color: var(--ink);
  font-size: 14px;
}

.diagnostic-control-card > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.diagnostic-control-card.is-locked {
  border-color: #bfe8e7;
  background: linear-gradient(135deg, #fbfcfd, #f0fbfb);
}

.mtr-control-card {
  align-content: start;
  gap: 7px;
  padding: 8px;
}

.mtr-control-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid rgba(223, 232, 236, 0.86);
  padding-bottom: 7px;
}

.mtr-control-strip > div {
  min-width: 0;
}

.mtr-control-strip > div > strong,
.mtr-control-strip > div > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mtr-control-strip > div > strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.1;
}

.mtr-control-strip > div > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.mtr-control-strip .button {
  min-height: 30px;
  padding: 5px 9px;
  white-space: nowrap;
}

.mtr-probe-submit {
  height: 34px;
}

.mtr-control-card.is-running .mtr-probe-submit {
  pointer-events: none;
}

.speed-probe-instrument,
.iperf-probe-instrument {
  display: grid;
  gap: 10px;
  border: 1px solid #dfe8ec;
  border-radius: 6px;
  background:
    radial-gradient(circle at 30% 10%, rgba(32, 174, 183, 0.1), transparent 34%),
    #fbfcfd;
  padding: 12px;
}

.iperf-probe-instrument {
  background:
    radial-gradient(circle at 70% 8%, rgba(32, 174, 183, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 253, 0.96)),
    #fbfcfd;
}

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

.speed-probe-topline strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.speed-probe-topline span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.speedometer-stage {
  display: grid;
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  align-items: stretch;
  gap: 8px;
}

.speedometer-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 154px;
  border: 1px solid #dbe8ec;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 248, 249, 0.82)),
    #ffffff;
  overflow: hidden;
}

.speedometer-card.good {
  border-color: rgba(34, 166, 115, 0.32);
}

.speedometer-card.warn {
  border-color: rgba(214, 152, 36, 0.34);
}

.speedometer-card.bad {
  border-color: rgba(210, 77, 87, 0.34);
}

.speedometer-dial {
  width: min(100%, 156px);
  aspect-ratio: 100 / 78;
}

.speedometer-track,
.speedometer-progress,
.speedometer-average {
  fill: none;
  stroke-linecap: round;
  stroke-width: 16;
}

.speedometer-track {
  stroke: #dfe8ec;
}

.speedometer-progress {
  stroke: #20aeb7;
  filter: drop-shadow(0 0 8px rgba(32, 174, 183, 0.26));
  transition: stroke-dasharray 650ms cubic-bezier(0.22, 1, 0.36, 1), stroke 180ms ease, filter 180ms ease;
}

.speedometer-card.good .speedometer-progress {
  stroke: var(--success);
  filter: drop-shadow(0 0 8px rgba(34, 166, 115, 0.24));
}

.speedometer-card.warn .speedometer-progress {
  stroke: var(--warning);
  filter: drop-shadow(0 0 8px rgba(214, 152, 36, 0.24));
}

.speedometer-card.bad .speedometer-progress {
  stroke: var(--danger);
  filter: drop-shadow(0 0 8px rgba(210, 77, 87, 0.24));
}

.speedometer-average {
  stroke: rgba(255, 255, 255, 0.66);
  stroke-width: 20;
  filter:
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.82))
    drop-shadow(0 0 9px rgba(43, 178, 186, 0.22));
  opacity: 0.82;
  pointer-events: none;
  transition: stroke-dasharray 650ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}

.speedometer-scale-ticks line,
.speedometer-scale-ticks circle {
  stroke: #526970;
  stroke-width: 2.4;
  fill: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(22, 44, 52, 0.16));
}

.speedometer-scale-ticks circle {
  stroke-width: 2.8;
}

.speedometer-dial text {
  fill: #526970;
  font-size: 13px;
  font-weight: 800;
  text-anchor: middle;
}

.speedometer-scale-name {
  fill: #657b83;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.speedometer-scale-value {
  fill: #1f353d;
  font-size: 12px;
  font-weight: 900;
}

.speedometer-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  pointer-events: none;
}

.speedometer-core .speedometer-label {
  position: absolute;
  top: 9px;
  right: 8px;
  left: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.speedometer-core strong {
  margin-top: 3px;
  color: #172b31;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.95;
}

.speedometer-core small {
  margin-top: 4px;
  color: #547179;
  font-size: 10px;
  font-weight: 700;
}

.speedometer-pending {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-bottom: 5px;
  border: 1px solid rgba(32, 174, 183, 0.52);
  border-radius: 50%;
  background: #ecfbfb;
  color: #067985;
  font-size: 10px;
  font-weight: 900;
  pointer-events: auto;
}

.speedometer-caption {
  position: absolute;
  right: 9px;
  bottom: 8px;
  left: 9px;
  display: flex;
  justify-content: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.live-diagnostic-surface.is-running .speedometer-progress,
.speed-probe-instrument.is-running .speedometer-progress {
  animation: speedPulse 900ms ease-in-out infinite alternate;
}

.iperf-probe-instrument.is-running .speedometer-progress {
  animation: speedPulse 900ms ease-in-out infinite alternate;
}

@keyframes speedPulse {
  from {
    stroke: #20aeb7;
    filter: drop-shadow(0 0 7px rgba(32, 174, 183, 0.2));
  }
  to {
    stroke: #12cad4;
    filter: drop-shadow(0 0 14px rgba(32, 174, 183, 0.44));
  }
}

.speedometer-trend-grid {
  display: grid;
  gap: 8px;
}

.speedometer-trend {
  border: 1px solid #e0e9ed;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  min-height: 154px;
}

.speedometer-trend-head span,
.speedometer-trend-metric span,
.speedometer-trend-metric small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.speedometer-trend {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 9px;
}

.speedometer-trend-head {
  display: grid;
  gap: 2px;
}

.speedometer-trend-head strong {
  color: #1f2d33;
  font-size: 13px;
  line-height: 1.1;
}

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

.speedometer-trend-metric {
  display: block;
  min-width: 0;
  border: 1px solid #e5eef2;
  border-radius: 5px;
  background: #fbfcfd;
  padding: 5px 6px;
}

.speedometer-trend-metric strong {
  display: block;
  margin: 2px 0;
  color: #1f2d33;
  font-size: 13px;
  line-height: 1;
}

.speedometer-trend-metric small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.speed-probe-options {
  display: grid;
  grid-template-columns: minmax(190px, 0.85fr) minmax(190px, 0.85fr) minmax(180px, 1fr) 196px;
  align-items: end;
  gap: 8px;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.iperf-probe-options {
  display: grid;
  grid-template-columns: minmax(214px, 1.35fr) 90px 86px 112px 78px 96px minmax(144px, 0.85fr) 156px;
  align-items: end;
  gap: 8px;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.speed-probe-options > label,
.speed-probe-options .byte-input-label,
.iperf-probe-options > label {
  display: grid;
  gap: 4px;
  color: #51636a;
  font-size: 11px;
  font-weight: 700;
}

.iperf-edge-target {
  min-height: 34px;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1px 7px;
  align-items: center;
  border: 1px solid rgba(12, 93, 102, 0.22);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(228, 255, 252, 0.9), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at 12% 20%, rgba(26, 188, 156, 0.18), transparent 36%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 7px 18px rgba(13, 49, 57, 0.08);
  color: #183d43;
  padding: 5px 8px;
}

.iperf-edge-target > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4d6369;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.iperf-edge-target svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.iperf-edge-target strong,
.iperf-edge-target small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iperf-edge-target strong {
  color: #102f35;
  font-size: 12px;
}

.iperf-edge-target small {
  grid-column: 1 / -1;
  color: #668087;
  font-size: 10px;
}

.iperf-edge-target.is-live {
  border-color: rgba(7, 148, 109, 0.38);
}

.iperf-edge-target.is-stale {
  border-color: rgba(224, 142, 37, 0.38);
  background: linear-gradient(135deg, rgba(255, 248, 225, 0.96), rgba(255, 255, 255, 0.92));
}

.iperf-edge-target.is-missing {
  border-color: rgba(197, 76, 86, 0.3);
  background: linear-gradient(135deg, rgba(255, 242, 243, 0.95), rgba(255, 255, 255, 0.92));
}

.iperf-manual-edge {
  min-width: 0;
  position: relative;
}

.iperf-manual-edge summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed #c4d5da;
  border-radius: 7px;
  color: #526970;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  list-style: none;
  padding: 0 8px;
  text-transform: uppercase;
}

.iperf-manual-edge summary::-webkit-details-marker {
  display: none;
}

.iperf-manual-edge summary svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.iperf-manual-edge > div {
  display: grid;
  gap: 7px;
  margin-top: 7px;
  padding: 8px;
  border: 1px solid #dce7eb;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 47, 53, 0.12);
}

.iperf-manual-edge label:not(.check-row) {
  display: grid;
  gap: 4px;
  color: #51636a;
  font-size: 11px;
  font-weight: 700;
}

.iperf-manual-toggle {
  justify-content: center;
  min-height: 30px;
  border: 1px solid #dce7eb;
  border-radius: 6px;
  background: #f8fbfb;
}

.iperf-manual-toggle span {
  display: inline-flex;
  color: var(--accent-strong);
}

.iperf-manual-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.iperf-port-control > span {
  display: grid;
  grid-template-columns: minmax(68px, 0.9fr) minmax(62px, 0.8fr);
  gap: 5px;
}

.iperf-port-control input {
  padding-right: 5px;
  padding-left: 5px;
}

.speed-probe-options input:not([type="radio"]),
.iperf-probe-options input,
.iperf-probe-options select {
  min-height: 32px;
  width: 100%;
  border: 1px solid #d8e3e8;
  border-radius: 5px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  padding: 6px 8px;
}

.iperf-probe-submit {
  width: 156px;
  min-width: 156px;
  height: 34px;
  padding-right: 8px;
  padding-left: 8px;
}

.iperf-live-speedometer {
  display: grid;
  min-width: 0;
}

.iperf-live-speedometer > .speedometer-card {
  height: 100%;
}

.iperf-trend {
  min-height: 154px;
}

.byte-input-label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #59676d;
  font-size: 13px;
  font-weight: 500;
}

.byte-input-heading {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.byte-input-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 32px;
  overflow: hidden;
  border: 1px solid #d8e3e8;
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 251, 0.92)),
    #ffffff;
}

.byte-input-group input[data-byte-amount] {
  min-height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 6px 8px;
}

.byte-unit-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(34px, 1fr));
  border-left: 1px solid #d8e3e8;
  background: #f3f8f9;
}

.byte-unit-option {
  position: relative;
  display: grid !important;
  gap: 0 !important;
  min-width: 0;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

.byte-unit-option input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.byte-unit-option span {
  display: grid;
  place-items: center;
  min-height: 30px;
  border-left: 1px solid #e0eaee;
  color: #5f747a;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 0 7px;
  text-transform: uppercase;
}

.byte-unit-option:first-child span {
  border-left: 0;
}

.byte-unit-option input:checked + span {
  background:
    linear-gradient(180deg, rgba(232, 250, 249, 0.98), rgba(202, 241, 241, 0.82)),
    #e8faf9;
  color: #08747e;
  box-shadow: inset 0 0 0 1px rgba(32, 174, 183, 0.24);
}

.byte-unit-option input:focus-visible + span {
  outline: 2px solid rgba(32, 174, 183, 0.62);
  outline-offset: -2px;
}

.speed-probe-options small {
  color: var(--muted);
  font-size: 10px;
}

.speed-probe-options:disabled {
  opacity: 0.72;
}

.speed-probe-submit {
  width: 196px;
  min-width: 196px;
  height: 34px;
  padding-right: 10px;
  padding-left: 10px;
}

.speed-probe-submit-label {
  display: inline-grid;
  place-items: center;
  width: 142px;
  min-width: 142px;
  text-align: center;
}

.diagnostic-fieldset {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.diagnostic-fieldset:disabled {
  opacity: 0.72;
}

.digital-scramble-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: #18c7d0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 28%, rgba(255, 255, 255, 0.18) 52%, transparent 74%),
    linear-gradient(135deg, #078892, #20aeb7);
  box-shadow: 0 0 0 1px rgba(32, 174, 183, 0.22), 0 0 18px rgba(32, 174, 183, 0.32);
  color: #f6ffff;
  cursor: wait;
}

.digital-scramble-button::before {
  position: absolute;
  inset: -30% -10%;
  z-index: -1;
  background-image:
    linear-gradient(90deg, transparent 0 46%, rgba(255, 255, 255, 0.34) 49%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 5px);
  opacity: 0.72;
  transform: translateX(-62%) skewX(-18deg);
  animation: digitalSweep 1.35s linear infinite;
  content: "";
}

.digital-scramble-button::after {
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(226, 255, 255, 0.2);
  border-radius: 2px;
  pointer-events: none;
  content: "";
}

.digital-scramble-button svg,
.digital-scramble-button .speed-probe-submit-label,
.digital-scramble-button .scramble-label {
  position: relative;
  z-index: 1;
}

.scramble-label {
  min-width: 142px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(226, 255, 255, 0.58);
}

.scramble-label::before {
  display: inline-block;
  font-size: 12px;
  animation: scrambleText 1.1s steps(1, end) infinite;
  content: attr(data-text);
}

.scramble-label {
  font-size: 0;
}

@keyframes digitalSweep {
  0% {
    transform: translateX(-66%) skewX(-18deg);
  }
  100% {
    transform: translateX(66%) skewX(-18deg);
  }
}

@keyframes scrambleText {
  0% {
    opacity: 1;
    transform: translateX(0);
    filter: none;
  }
  12% {
    opacity: 0.82;
    transform: translateX(-1px);
    filter: hue-rotate(18deg);
  }
  24% {
    opacity: 1;
    transform: translateX(1px);
    filter: saturate(1.35);
  }
  36% {
    opacity: 0.9;
    transform: translateX(0);
    filter: contrast(1.35);
  }
  48% {
    opacity: 1;
    transform: translateX(1px);
    filter: none;
  }
  60% {
    opacity: 0.86;
    transform: translateX(-1px);
    filter: saturate(1.6);
  }
  72% {
    opacity: 1;
    transform: translateX(0);
    filter: contrast(1.2);
  }
  84% {
    opacity: 0.92;
    transform: translateX(1px);
    filter: hue-rotate(-12deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: none;
  }
}

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

.compact-form-grid label,
.wide-label {
  display: grid;
  gap: 4px;
  color: #51636a;
  font-size: 12px;
  font-weight: 600;
}

.compact-form-grid input,
.compact-form-grid select,
.wide-label textarea {
  width: 100%;
  border: 1px solid #d8e3e8;
  border-radius: 5px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  padding: 7px 8px;
}

.wide-label textarea {
  min-height: 90px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.compact-form-grid small {
  color: var(--muted);
  font-size: 10px;
}

.path-target-builder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.path-target-builder.compact {
  grid-template-columns: 1fr;
}

.mtr-path-builder {
  gap: 5px;
}

.path-target-card,
.path-target-options {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid #e1eaee;
  border-radius: 5px;
  background: #ffffff;
  padding: 8px;
}

.path-target-card strong {
  color: #2e434b;
  font-size: 12px;
}

.path-target-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 6px;
  align-items: end;
  min-width: 0;
  border: 1px solid #e1eaee;
  border-radius: 5px;
  background: #ffffff;
  padding: 6px;
}

.path-target-row strong {
  align-self: center;
  color: #2e434b;
  font-size: 11px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.path-target-card label,
.path-target-options label,
.path-target-row label {
  display: grid;
  gap: 4px;
  color: #51636a;
  font-size: 11px;
  font-weight: 600;
}

.path-target-card input,
.path-target-options input,
.path-target-row input {
  width: 100%;
  min-height: 30px;
  border: 1px solid #d8e3e8;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  padding: 6px 8px;
}

.path-target-options {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.path-target-options.compact {
  gap: 6px;
  padding: 6px;
}

.diagnostic-result-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.speed-stats-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  min-height: 244px;
  border: 1px solid #e0ecef;
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(32, 174, 183, 0.09), transparent 48%),
    #ffffff;
  padding: 9px;
}

.diagnostic-side-stack .speed-stats-card {
  min-height: 0;
}

.speed-stats-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.speed-stats-head strong,
.speed-stat-metric strong {
  display: block;
  color: #1f2d33;
  font-size: 13px;
  line-height: 1.1;
}

.speed-stats-head span,
.speed-stat-metric span,
.speed-stat-metric small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.speed-stats-head .icon-button {
  width: 30px;
  height: 30px;
  border-color: rgba(32, 174, 183, 0.24);
  color: #26727a;
}

.speed-stats-head .icon-button:disabled {
  opacity: 0.42;
}

.speed-range-chart {
  width: 100%;
  min-height: 116px;
  max-height: 146px;
}

.speed-range-chart text {
  fill: #667982;
  font-size: 12px;
  font-weight: 700;
}

.speed-range-chart .speed-chart-key {
  fill: #8aa0a8;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.speed-range-track {
  fill: #dbe7eb;
}

.speed-range-span {
  fill: #20aeb7;
}

.speed-range-point {
  fill: #ffffff;
  stroke-width: 2;
}

.speed-range-point.min {
  stroke: #93a9b1;
}

.speed-range-point.avg {
  fill: #20aeb7;
  stroke: #067985;
}

.speed-range-point.max {
  stroke: #132f35;
}

.speed-range-value {
  fill: #263b43;
  font-size: 11px;
}

.speed-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.speed-stat-metric {
  min-width: 0;
  border: 1px solid #e4edf1;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.82);
  padding: 7px;
}

.speed-stat-metric strong {
  margin: 3px 0;
  font-size: 15px;
}

.speed-stat-metric small {
  display: block;
  overflow-wrap: anywhere;
}

.speed-stats-empty {
  display: grid;
  place-items: center;
  min-height: 116px;
  border: 1px dashed #d8e5ea;
  border-radius: 5px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 10px;
}

.workspace-card {
  align-content: start;
}

.trend-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 6px;
}

.trend-overview button {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid #e0e9ed;
  border-radius: 5px;
  background: #ffffff;
  color: var(--ink);
  padding: 7px;
  text-align: left;
}

.trend-overview button:hover,
.trend-overview button.active {
  border-color: rgba(32, 174, 183, 0.46);
  background: #f1fbfb;
}

.trend-overview span,
.trend-overview small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-overview strong {
  color: #1f2d33;
  font-size: 15px;
  line-height: 1;
}

.workspace-runs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.workspace-run-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #e4edf1;
  border-left-width: 3px;
  border-radius: 5px;
  background: #fff;
  padding: 7px 8px;
}

.workspace-run-row.good {
  border-left-color: var(--success);
}

.workspace-run-row.warn {
  border-left-color: #d49a15;
}

.workspace-run-row.bad {
  border-left-color: var(--danger);
}

.workspace-run-row span {
  color: #2a3940;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-run-row strong {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
}

.workspace-run-row small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.port-diagnostic-grid {
  grid-template-columns: minmax(440px, 1.1fr) minmax(320px, 0.9fr);
}

.port-probe-instrument {
  display: grid;
  gap: 10px;
  border: 1px solid #dfe8ec;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(32, 174, 183, 0.08), transparent 44%),
    #fbfcfd;
  padding: 10px;
}

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

.port-probe-topline strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.port-probe-topline span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.port-evidence-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.port-mini-metric {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid #e3edf1;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.86);
  padding: 6px 8px;
}

.port-mini-metric small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.port-mini-metric strong {
  color: #172b31;
  font-size: 16px;
  line-height: 1;
}

.port-mini-metric.good strong {
  color: var(--success);
}

.port-mini-metric.warn strong {
  color: var(--warning);
}

.port-mini-metric.bad strong {
  color: var(--danger);
}

.port-window-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 1px solid rgba(32, 174, 183, 0.18);
  border-radius: 7px;
  background:
    radial-gradient(circle at 12% 0%, rgba(32, 174, 183, 0.13), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 252, 252, 0.98));
  box-shadow: 0 14px 28px rgba(23, 43, 49, 0.06);
  padding: 10px;
  overflow: hidden;
}

.port-window-card.good {
  border-color: rgba(53, 170, 119, 0.24);
}

.port-window-card.warn {
  border-color: rgba(212, 154, 21, 0.28);
}

.port-window-card.bad {
  border-color: rgba(211, 63, 95, 0.25);
}

.port-window-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.port-window-head > div {
  min-width: 0;
}

.port-window-head span,
.port-window-head small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.port-window-head > div > span {
  text-transform: uppercase;
}

.port-window-head strong {
  display: block;
  margin: 2px 0;
  color: #172b31;
  font-size: 15px;
  line-height: 1.1;
}

.port-window-head .icon-button {
  flex: none;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
}

.port-window-meter {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(216, 228, 233, 0.86);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  padding: 8px;
}

.port-window-orb {
  display: grid;
  place-items: center;
  align-content: center;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #ffffff 0 54%, transparent 55%),
    conic-gradient(var(--accent) var(--port-window-score), rgba(219, 231, 235, 0.95) 0);
  box-shadow: inset 0 0 0 1px rgba(23, 43, 49, 0.06), 0 8px 18px rgba(23, 43, 49, 0.08);
}

.port-window-card.good .port-window-orb {
  background:
    radial-gradient(circle at center, #ffffff 0 54%, transparent 55%),
    conic-gradient(var(--success) var(--port-window-score), rgba(219, 231, 235, 0.95) 0);
}

.port-window-card.warn .port-window-orb {
  background:
    radial-gradient(circle at center, #ffffff 0 54%, transparent 55%),
    conic-gradient(var(--warning) var(--port-window-score), rgba(219, 231, 235, 0.95) 0);
}

.port-window-card.bad .port-window-orb {
  background:
    radial-gradient(circle at center, #ffffff 0 54%, transparent 55%),
    conic-gradient(var(--danger) var(--port-window-score), rgba(219, 231, 235, 0.95) 0);
}

.port-window-orb strong {
  color: #172b31;
  font-size: 16px;
  line-height: 1;
}

.port-window-orb span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.port-window-copy {
  min-width: 0;
}

.port-window-copy strong,
.port-window-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.port-window-copy strong {
  color: #172b31;
  font-size: 13px;
}

.port-window-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

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

.port-window-metric {
  min-width: 0;
  border: 1px solid rgba(223, 234, 238, 0.92);
  border-left-width: 3px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.78);
  padding: 7px;
}

.port-window-metric.good {
  border-left-color: var(--success);
}

.port-window-metric.warn {
  border-left-color: var(--warning);
}

.port-window-metric.bad {
  border-left-color: var(--danger);
}

.port-window-metric span,
.port-window-metric small,
.port-window-metric em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.port-window-metric span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.port-window-metric strong {
  display: block;
  margin: 3px 0 2px;
  color: #172b31;
  font-size: 14px;
  line-height: 1;
}

.port-window-metric small,
.port-window-metric em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.25;
}

.port-window-history {
  display: grid;
  grid-template-columns: repeat(18, minmax(0, 1fr));
  align-items: end;
  gap: 3px;
  min-height: 36px;
  border: 1px solid rgba(223, 234, 238, 0.82);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.62);
  padding: 6px;
}

.port-window-history span {
  display: flex;
  align-items: end;
  min-width: 0;
  height: 24px;
  border-radius: 999px;
  background: rgba(219, 231, 235, 0.78);
  overflow: visible;
}

.port-window-history i {
  display: block;
  width: 100%;
  height: max(4px, var(--port-sample-score));
  border-radius: 999px;
  background: #8aa0a8;
}

.port-window-history span.good i {
  background: var(--success);
}

.port-window-history span.warn i {
  background: var(--warning);
}

.port-window-history span.bad i {
  background: var(--danger);
}

.port-window-empty {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px dashed rgba(216, 228, 233, 0.92);
  border-radius: 5px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.port-builder-fieldset {
  display: grid;
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
}

.port-target-builder {
  display: grid;
  gap: 7px;
}

.port-preset-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.port-preset-strip .button {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 11px;
}

.port-preset-strip .button.active {
  border-color: rgba(32, 174, 183, 0.44);
  background: #effafb;
  color: #087782;
}

.port-target-rows {
  display: grid;
  gap: 5px;
}

.port-target-row {
  display: grid;
  grid-template-columns: 30px minmax(132px, 1.2fr) minmax(110px, 0.8fr) minmax(136px, 0.9fr) auto 32px;
  gap: 7px;
  align-items: center;
  border: 1px solid #e3edf1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  padding: 7px;
  min-width: 0;
}

.port-target-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(32, 174, 183, 0.2);
  border-radius: 999px;
  background: rgba(32, 174, 183, 0.07);
  color: var(--accent-strong);
}

.port-target-kind.optional {
  border-color: rgba(142, 178, 184, 0.24);
  background: rgba(142, 178, 184, 0.08);
  color: #71848b;
}

.port-target-kind svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.port-target-main,
.port-target-mode,
.port-target-timing {
  min-width: 0;
}

.port-target-main strong,
.port-target-main small,
.port-target-mode span,
.port-target-mode small,
.port-target-timing span,
.port-target-timing small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.port-target-main strong,
.port-target-mode span,
.port-target-timing span {
  color: #172b31;
  font-size: 12px;
  font-weight: 850;
}

.port-target-main small,
.port-target-mode small,
.port-target-timing small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.port-target-row .compact-button {
  min-height: 28px;
  padding-inline: 8px;
  white-space: nowrap;
}

.port-target-row .icon-button {
  width: 30px;
  height: 30px;
}

.port-probe-submit {
  justify-self: end;
  min-width: 172px;
}

.port-target-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.port-pending-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(32, 174, 183, 0.52);
  border-radius: 50%;
  background: #ecfbfb;
  color: #067985;
  font-size: 10px;
  font-weight: 900;
}

.port-target-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid #e2ebef;
  border-left: 2px solid #aebdc4;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 249, 251, 0.9)),
    #ffffff;
}

.port-target-card.good {
  border-left-color: var(--success);
}

.port-target-card.warn {
  border-left-color: var(--warning);
}

.port-target-card.bad {
  border-left-color: var(--danger);
}

.port-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.port-target-name,
.port-chip-row small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.port-target-name {
  color: #223238;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.05;
}

.port-chip-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  min-width: 0;
}

.port-chip-row small {
  border: 1px solid #e5eef2;
  border-radius: 999px;
  background: #f8fbfc;
  color: #61777f;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 2px 5px;
}

.port-status-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #dce8ed;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #667980;
}

.port-status-icon.good {
  border-color: rgba(34, 166, 115, 0.36);
  background: rgba(34, 166, 115, 0.08);
  color: var(--success);
}

.port-status-icon.warn {
  border-color: rgba(214, 152, 36, 0.42);
  background: rgba(214, 152, 36, 0.1);
  color: var(--warning);
}

.port-status-icon.bad {
  border-color: rgba(210, 77, 87, 0.38);
  background: rgba(210, 77, 87, 0.08);
  color: var(--danger);
}

.port-status-icon svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
}

.port-target-card[data-tooltip]::after {
  white-space: pre-line;
}

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

.diagnostic-graph-card {
  display: grid;
  gap: 8px;
  min-height: 250px;
}

.graph-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.graph-title strong {
  font-size: 13px;
}

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

.diagnostic-line-chart {
  width: 100%;
  height: 128px;
}

.diagnostic-line-chart line {
  stroke: #d7e3e7;
  stroke-width: 1;
}

.diagnostic-line-chart polyline {
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diagnostic-hop-marker {
  color: var(--accent-strong);
  text-decoration: none;
}

.diagnostic-hop-marker circle {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 2;
  filter: drop-shadow(0 2px 4px rgba(31, 45, 51, 0.12));
}

.diagnostic-hop-marker text {
  fill: #203238;
  font-size: 7px;
  font-weight: 800;
  pointer-events: none;
  text-anchor: middle;
}

.diagnostic-hop-marker.hop-loss-low {
  color: var(--warning);
}

.diagnostic-hop-marker.hop-loss-high {
  color: var(--danger);
}

.diagnostic-hop-marker.hop-latency-high {
  color: #8f5ce8;
}

.diagnostic-hop-marker:hover circle,
.diagnostic-hop-marker:focus-visible circle {
  fill: var(--accent-soft);
  stroke-width: 3;
}

.chart-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.loss-ribbon {
  display: grid;
  grid-template-columns: repeat(18, minmax(3px, 1fr));
  gap: 3px;
  min-height: 12px;
}

.loss-ribbon i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(34, 166, 115, 0.28);
}

.loss-ribbon i.loss {
  background: rgba(214, 77, 77, 0.72);
}

.hop-ladder {
  display: grid;
  gap: 5px;
}

.hop-ladder span,
.hop-ladder a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) max-content;
  gap: 8px;
  align-items: center;
  padding: 5px 7px;
  border-radius: 5px;
  background: #ffffff;
  color: #34454b;
  font-size: 12px;
  text-decoration: none;
}

.hop-ladder span.hop-loss-low,
.hop-ladder a.hop-loss-low {
  background: linear-gradient(90deg, rgba(181, 122, 19, 0.16), #ffffff 58%);
}

.hop-ladder span.hop-loss-high,
.hop-ladder a.hop-loss-high {
  background: linear-gradient(90deg, rgba(216, 63, 95, 0.2), #ffffff 58%);
}

.hop-ladder span.hop-latency-high,
.hop-ladder a.hop-latency-high {
  background: linear-gradient(90deg, rgba(143, 92, 232, 0.16), #ffffff 58%);
}

.hop-ladder a:hover,
.hop-ladder a:focus-visible,
.hop-ladder a:target {
  outline: 2px solid rgba(32, 174, 183, 0.34);
  outline-offset: 1px;
}

.hop-ladder b {
  color: var(--accent-strong);
}

.hop-ladder em {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.embedded-score {
  min-height: 100%;
}

.diagnostic-overview-compact {
  grid-template-columns: minmax(220px, 0.7fr) minmax(220px, 1fr);
  margin-top: 10px;
}

.diagnostic-score,
.diagnostic-spark {
  border: 1px solid #e0e8ec;
  border-radius: 6px;
  background: #fbfcfd;
  padding: 12px;
}

.diagnostic-score {
  display: flex;
  align-items: center;
  gap: 13px;
}

.diagnostic-score .score-gauge {
  width: 88px;
  height: 88px;
}

.diagnostic-score .score-gauge strong {
  font-size: 23px;
}

.survey-readiness-card {
  display: grid;
  grid-template-columns: minmax(92px, 0.28fr) minmax(260px, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #dfe8ec;
  border-left: 4px solid #8c9aa1;
  border-radius: 6px;
  background: linear-gradient(135deg, #fbfcfd, #f2f8f9);
}

.survey-readiness-card.good {
  border-left-color: var(--success);
}

.survey-readiness-card.warn {
  border-left-color: var(--warning);
}

.survey-readiness-card.bad {
  border-left-color: var(--danger);
}

.survey-readiness-meter {
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 1px solid rgba(32, 174, 183, 0.18);
  border-radius: 6px;
  background: #ffffff;
  text-align: center;
}

.survey-readiness-meter strong,
.survey-readiness-meter span,
.survey-readiness-meter em,
.survey-readiness-card p {
  display: block;
}

.survey-readiness-meter strong {
  color: var(--accent-strong);
  font-size: 24px;
}

.survey-readiness-meter span,
.survey-readiness-meter em,
.survey-readiness-card p {
  color: var(--muted);
  font-size: 12px;
}

.survey-readiness-meter em {
  margin-top: 4px;
  font-style: normal;
  color: var(--accent-strong);
}

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

.survey-readiness-list li {
  min-width: 0;
  padding: 8px;
  border: 1px solid #e3ecef;
  border-radius: 6px;
  background: #ffffff;
}

.survey-readiness-list li.good {
  border-color: rgba(50, 166, 119, 0.28);
}

.survey-readiness-list li.warn {
  border-color: rgba(210, 143, 43, 0.35);
}

.survey-readiness-list b,
.survey-readiness-list span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.survey-readiness-list b {
  color: var(--ink);
  font-size: 12px;
}

.survey-readiness-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.survey-readiness-footer {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.survey-readiness-card p {
  margin: 0;
}

.survey-readiness-footer p {
  min-width: 0;
}

.diagnostic-score strong,
.diagnostic-score span {
  display: block;
}

.diagnostic-score span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.agent-upgrade-strip {
  display: grid;
  grid-template-columns: 34px minmax(150px, 0.7fr) minmax(190px, 1fr) max-content;
  gap: 10px;
  align-items: center;
  margin: 12px 0 0;
  padding: 10px;
  border: 1px solid #dfe8ec;
  border-radius: 6px;
  background: linear-gradient(135deg, #f9fcfc, #eef7f8);
}

.agent-artifact-strip {
  display: grid;
  grid-template-columns: 34px minmax(170px, 0.55fr) minmax(240px, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid #dfe8ec;
  border-radius: 6px;
  background: linear-gradient(135deg, #f9fcfc, #eef7f8);
}

.agent-artifact-strip.good {
  border-color: rgba(53, 222, 155, 0.34);
  background: linear-gradient(135deg, rgba(53, 222, 155, 0.1), #f8fffc);
}

.agent-artifact-strip.warn {
  border-color: rgba(221, 134, 42, 0.32);
  background: linear-gradient(135deg, rgba(221, 134, 42, 0.1), #fffaf3);
}

.agent-artifact-strip.bad {
  border-color: rgba(216, 63, 95, 0.34);
  background: linear-gradient(135deg, rgba(216, 63, 95, 0.1), #fff7fa);
}

.agent-artifact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-artifact-chip {
  display: grid;
  gap: 2px;
  min-width: min(170px, 100%);
  max-width: 220px;
  padding: 6px 8px;
  border: 1px solid rgba(32, 174, 183, 0.18);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.75);
}

.agent-artifact-chip b,
.agent-artifact-chip small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-artifact-chip b {
  color: var(--ink);
  font-size: 12px;
}

.agent-artifact-chip small {
  color: var(--muted);
  font-size: 11px;
}

.peer10-upgrade-readiness {
  margin: 0 0 12px;
}

.peer10-upgrade-readiness.good {
  border-color: rgba(53, 222, 155, 0.34);
  background: linear-gradient(135deg, rgba(53, 222, 155, 0.1), #f8fffc);
}

.peer10-upgrade-readiness.warn {
  border-color: rgba(221, 134, 42, 0.32);
  background: linear-gradient(135deg, rgba(221, 134, 42, 0.1), #fffaf3);
}

.peer10-upgrade-readiness.bad {
  border-color: rgba(216, 63, 95, 0.34);
  background: linear-gradient(135deg, rgba(216, 63, 95, 0.1), #fff7fa);
}

.peer10-upgrade-readiness .agent-upgrade-glyph {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.agent-upgrade-glyph {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(32, 174, 183, 0.26);
  border-radius: 6px;
  color: var(--accent-strong);
  background: #ffffff;
}

.agent-upgrade-glyph svg {
  width: 17px;
  height: 17px;
}

.agent-upgrade-copy strong,
.agent-upgrade-copy span,
.agent-upgrade-meta span,
.agent-upgrade-meta small {
  display: block;
}

.agent-upgrade-copy strong,
.agent-upgrade-meta span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

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

.stack-form {
  display: grid;
  gap: 11px;
}

.stack-form label {
  display: grid;
  gap: 5px;
  color: #59676d;
  font-size: 13px;
  font-weight: 500;
}

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

.check-list {
  display: grid;
  gap: 6px;
  max-height: 190px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 8px;
  background: #f8fafb;
}

.check-list.tall {
  max-height: 340px;
}

.inline-grid-form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.5fr) 46px auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  color: #26343a !important;
}

.check-row input,
table input[type="checkbox"],
.column-menu input {
  min-height: auto;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.action-menu,
.row-actions {
  position: relative;
}

.action-menu summary,
.row-actions summary {
  list-style: none;
}

.action-menu summary::-webkit-details-marker,
.row-actions summary::-webkit-details-marker {
  display: none;
}

.row-actions summary {
  cursor: pointer;
}

.row-action-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid rgba(32, 174, 183, 0.22);
  border-radius: 6px;
  padding: 0 9px 0 10px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(26, 42, 49, 0.04);
}

.row-action-trigger:hover,
.row-actions[open] .row-action-trigger {
  border-color: rgba(32, 174, 183, 0.42);
  background: var(--accent-soft);
  color: #087985;
}

.row-action-trigger svg {
  width: 13px;
  height: 13px;
  transition: transform 120ms ease;
}

.row-actions[open] .row-action-trigger svg {
  transform: rotate(180deg);
}

.menu-card {
  position: absolute;
  z-index: 30;
  right: 0;
  display: grid;
  min-width: 190px;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 6px;
}

.row-actions .menu-card {
  min-width: 160px;
}

.row-actions .menu-card.floating-menu-card,
.edge-attachment-menu .menu-card.floating-menu-card {
  position: fixed;
  right: auto;
  bottom: auto;
  left: 0;
  top: 0;
  z-index: 260;
  border-radius: 8px;
  border-color: rgba(185, 200, 207, 0.9);
  box-shadow: 0 18px 45px rgba(21, 33, 39, 0.18), 0 6px 16px rgba(21, 33, 39, 0.12);
  overflow: auto;
  animation: floating-menu-in 110ms ease-out;
}

@keyframes floating-menu-in {
  from {
    transform: translateY(-3px) scale(0.985);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.menu-card a,
.menu-card button,
.menu-card label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 32px;
  border: 0;
  border-radius: 3px;
  padding: 0 9px;
  background: transparent;
  color: #33434a;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
}

.menu-card a:hover,
.menu-card button:hover {
  background: #f3f7f8;
}

.menu-card .danger-text {
  color: var(--danger);
}

.column-menu {
  min-width: 210px;
}

.log-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.log-console {
  overflow: visible;
}

.log-filter-bar {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding: 10px;
  background: #fbfcfd;
}

.log-filter-primary,
.log-filter-secondary,
.log-filter-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.log-filter-primary {
  flex-wrap: wrap;
}

.log-filter-secondary {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(140px, 1fr) 130px minmax(168px, 0.85fr) minmax(168px, 0.85fr) 86px;
}

.log-filter-secondary input,
.log-filter-secondary select {
  width: 100%;
  min-height: 32px;
}

.log-search-shell {
  display: flex;
  align-items: center;
  flex: 1 1 340px;
  min-width: 240px;
  height: 34px;
  border: 1px solid #d4dde2;
  border-radius: 6px;
  background: #fff;
  padding: 0 10px;
}

.log-search-shell span {
  position: relative;
  width: 12px;
  height: 12px;
  border: 2px solid #9ba8ae;
  border-radius: 50%;
  margin-right: 8px;
}

.log-search-shell span::after {
  position: absolute;
  width: 6px;
  height: 2px;
  margin: 8px 0 0 8px;
  transform: rotate(45deg);
  background: #9ba8ae;
  content: "";
}

.log-search-shell input {
  width: 100%;
  min-height: 30px;
  border: 0;
  outline: 0;
  padding: 0;
}

.log-filter-meta {
  flex-wrap: wrap;
  color: #65747b;
  font-size: 12px;
}

.log-filter-meta span {
  min-height: 22px;
  border: 1px solid #dce5e9;
  border-radius: 999px;
  padding: 2px 8px;
  background: #fff;
}

.log-type-select {
  position: relative;
  flex: 0 0 248px;
  z-index: 3;
}

.log-type-select[open] {
  z-index: 20;
}

.log-type-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  border: 1px solid #cfd9de;
  border-radius: 6px;
  padding: 5px 9px 5px 10px;
  background: #fff;
  color: #223238;
  cursor: pointer;
  list-style: none;
}

.log-type-trigger::-webkit-details-marker {
  display: none;
}

.log-type-trigger span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.log-type-trigger small,
.log-type-trigger em {
  overflow: hidden;
  color: #718087;
  font-size: 11px;
  font-style: normal;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-type-trigger strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-type-trigger svg,
.log-open svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.log-type-select[open] .log-type-trigger svg,
.log-entry[open] .log-open svg {
  transform: rotate(180deg);
}

.log-type-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  gap: 3px;
  width: min(360px, calc(100vw - 260px));
  border: 1px solid #cfd9de;
  border-radius: 8px;
  padding: 5px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(25, 39, 45, 0.16);
}

.log-type-choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 44px;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
}

.log-type-choice:hover {
  background: #f4f8f9;
}

.log-type-choice input {
  width: 15px;
  height: 15px;
  min-height: 15px;
  accent-color: var(--accent);
}

.log-type-choice span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.log-type-choice strong {
  color: #24343b;
  font-size: 13px;
  font-weight: 600;
}

.log-type-choice small {
  overflow: hidden;
  color: #6e7c83;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-type-menu-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #edf1f3;
  margin-top: 3px;
  padding-top: 5px;
}

.log-type-menu-actions .button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.log-viewer {
  display: grid;
  background: #fff;
}

.empty-log-viewer {
  padding: 28px;
  color: var(--muted);
}

.log-entry {
  border-bottom: 1px solid #e6edf0;
}

.log-entry:last-child {
  border-bottom: 0;
}

.log-summary {
  display: grid;
  grid-template-columns: 94px 78px minmax(220px, 1fr) minmax(120px, 0.44fr) 104px 22px;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 5px 10px;
  cursor: pointer;
  list-style: none;
}

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

.log-entry:hover .log-summary {
  background: #f8fbfc;
}

.log-time {
  display: grid;
  gap: 1px;
  color: #35464e;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.log-time strong {
  font-size: 12px;
  font-weight: 600;
}

.log-time small {
  color: #7a8990;
  font-size: 10px;
}

.log-kind {
  display: inline-grid;
  width: fit-content;
  min-width: 66px;
  min-height: 22px;
  place-items: center;
  border: 1px solid #d7e0e4;
  border-radius: 999px;
  padding: 2px 8px;
  background: #f7f9fa;
  color: #405159;
  font-size: 11px;
  font-weight: 700;
}

.log-kind.device {
  border-color: #bfddea;
  background: #eef8fc;
  color: #176c8a;
}

.log-kind.upgrade {
  border-color: #e7d19a;
  background: #fff8e6;
  color: #8a650f;
}

.log-kind.alert {
  border-color: #f1c5cf;
  background: #fff2f5;
  color: #b3284b;
}

.log-kind.settings {
  border-color: #cad7ec;
  background: #f3f6fd;
  color: #365987;
}

.log-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.log-main strong,
.log-main small,
.log-device {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-main strong {
  color: #223238;
  font-size: 13px;
  font-weight: 600;
}

.log-main small {
  color: #708087;
  font-size: 11px;
}

.log-device {
  color: #415159;
  font-size: 12px;
}

.log-state {
  min-width: 0;
}

.log-state .status-badge {
  min-height: 20px;
  font-size: 11px;
}

.log-open {
  display: inline-grid;
  place-items: center;
  color: #809097;
}

.log-details {
  display: grid;
  gap: 8px;
  border-top: 1px solid #edf2f4;
  padding: 9px 10px 10px 182px;
  background: #fbfcfd;
}

.log-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  margin: 0;
}

.log-detail-grid div {
  min-width: 0;
}

.log-detail-grid dt {
  color: #7a8990;
  font-size: 10px;
  text-transform: uppercase;
}

.log-detail-grid dd {
  min-width: 0;
  margin: 2px 0 0;
  overflow: hidden;
  color: #2e3f47;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-json {
  max-height: 260px;
  margin: 0;
  border-radius: 6px;
  font-size: 11px;
}

.terminal-panel {
  min-height: 560px;
}

.terminal-job-fallback {
  min-height: 0;
}

.terminal-job-fallback summary {
  cursor: pointer;
  color: #263b43;
  font-size: 13px;
  font-weight: 800;
}

.pty-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: clamp(520px, calc(100vh - 148px), 780px);
  min-height: 0;
  max-height: 780px;
  overflow: hidden;
  background: #f8fbfb;
}

.pty-panel.is-fullscreen,
.terminal-fullscreen-mode .pty-panel {
  height: 100vh;
  min-height: 100vh;
  max-height: none;
  border: 0;
  border-radius: 0;
  padding: 12px;
}

.pty-panel:fullscreen {
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: #071014;
  padding: 12px;
}

.terminal-button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.pty-terminal-frame {
  box-sizing: border-box;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  border: 1px solid rgba(17, 31, 38, 0.92);
  border-radius: 8px;
  background: #000;
  color: #f8f8f2;
  font-family: "CloudControlTerminal", "DejaVu Sans Mono", "Liberation Mono", monospace;
  font-feature-settings: "liga" 0, "calt" 0;
  font-variant-ligatures: none;
  font-synthesis: none;
  padding: 8px;
  overflow: hidden;
  cursor: text;
}

.pty-panel.is-fullscreen .pty-terminal-frame,
.terminal-fullscreen-mode .pty-terminal-frame,
.pty-panel:fullscreen .pty-terminal-frame {
  min-height: 0;
  height: calc(100vh - 96px);
}

.pty-terminal {
  box-sizing: border-box;
  min-height: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.pty-terminal .xterm {
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  color: #f8f8f2;
  font-family: "CloudControlTerminal", "DejaVu Sans Mono", "Liberation Mono", monospace;
  font-feature-settings: "liga" 0, "calt" 0;
  font-variant-ligatures: none;
  font-synthesis: none;
  letter-spacing: 0;
  padding: 0;
}

.pty-terminal .xterm-rows,
.pty-terminal .xterm-rows span {
  font-feature-settings: "liga" 0, "calt" 0;
  font-variant-ligatures: none;
  font-synthesis: none;
}

.pty-terminal .xterm-viewport {
  background: #000 !important;
}

.terminal-form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
}

.terminal-command-label {
  color: #51636a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.terminal-form input {
  flex: 1;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.terminal-command-status {
  flex-basis: 100%;
  margin: 0;
  color: #51636a;
  font-size: 13px;
}

.terminal-command-status[role="alert"] {
  color: #9f2d2d;
  font-weight: 700;
}

.terminal-output {
  margin-top: 14px;
}

.terminal-session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: #51636a;
  font-size: 13px;
}

.terminal-session-bar .button {
  min-height: 30px;
  padding: 5px 10px;
}

.terminal-transcript {
  display: grid;
  gap: 10px;
  max-height: min(620px, calc(100vh - 330px));
  min-height: 260px;
  overflow: auto;
  border: 1px solid #d7e5e8;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, #0f1d23, #13252c);
  color: #d8f6f1;
}

.terminal-transcript .empty {
  margin: 0;
  color: #9ec8c3;
}

.terminal-entry {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(142, 205, 196, 0.2);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.terminal-entry.is-error {
  border-color: rgba(255, 165, 155, 0.5);
}

.terminal-entry-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  color: #e8fffb;
}

.terminal-entry-head code,
.terminal-entry-body pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.terminal-prompt {
  color: #69d9c8;
  font-weight: 800;
}

.terminal-entry-status {
  max-width: 240px;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(105, 217, 200, 0.14);
  color: #b7f4eb;
  font-size: 11px;
  text-align: right;
}

.terminal-entry-body p,
.terminal-entry-body pre {
  margin: 0;
}

.terminal-entry-body .error {
  color: #ffb4aa;
}

.web-panel {
  height: min(760px, calc(100vh - 190px));
  min-height: 560px;
  padding: 0;
  overflow: hidden;
}

.web-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

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

.timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.timeline small {
  grid-column: 2;
}

.switch {
  display: inline-flex;
  width: 30px;
  height: 16px;
  border-radius: 99px;
  background: #d7dee2;
}

.switch::after {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin: 1px;
  background: #fff;
  content: "";
}

.node-pill {
  display: inline-flex;
  margin: 2px 4px 2px 0;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef2f4;
  color: #38474e;
  font-size: 12px;
}

.group-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 22px;
  border: 1px solid #bfe8e7;
  border-left-width: 4px;
  border-radius: 999px;
  margin: 2px 4px 2px 0;
  padding: 0 8px;
  background: var(--accent-soft);
  color: #26343a;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.switch-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border: 1px solid #d1dce1;
  border-radius: 999px;
  background: #fff;
  color: #43525a;
  padding: 0 9px 0 4px;
}

.switch-button span {
  position: relative;
  display: inline-flex;
  width: 30px;
  height: 16px;
  border-radius: 99px;
  background: #d7dee2;
}

.switch-button span::after {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 150ms ease;
  content: "";
}

.switch-button.on {
  border-color: #ffc4cf;
  background: #fff5f7;
  color: var(--danger);
}

.switch-button.on span {
  background: var(--danger);
}

.switch-button.on span::after {
  transform: translateX(14px);
}

.switch-button.pending {
  border-color: #ffe2a9;
  background: #fffaf0;
  color: var(--warning);
}

.switch-button b {
  font-size: 12px;
  font-weight: 600;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

pre {
  max-height: 340px;
  overflow: auto;
  border-radius: 3px;
  margin: 10px 0 0;
  padding: 11px;
  background: #111b20;
  color: #edf7f8;
  white-space: pre-wrap;
}

details summary {
  color: var(--accent-strong);
  cursor: pointer;
}

.result-row {
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
}

.panel-note {
  min-height: 20px;
  color: var(--muted);
}

.empty-inline {
  color: var(--muted);
  font-size: 13px;
}

.login-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(430px, 100%);
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 24px;
}

.login-card .login-brand {
  padding: 0 0 22px;
}

.login-card label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.inline-form input {
  flex: 1;
}

.error {
  min-height: 22px;
  margin-top: 10px;
  color: var(--danger);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  transform: translateY(12px);
  opacity: 0;
  border: 1px solid #bfe8e7;
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 11px 13px;
  color: #26343a;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.toast-error {
  border-color: #f3b5b5;
  background: #fff7f7;
  color: #8d1f1f;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(21, 33, 39, 0.44);
  padding: 20px;
}

.modal-card {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  border: 1px solid #cfd9de;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 72px rgba(20, 35, 42, 0.28);
  overflow: hidden;
}

.modal-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 13px 15px;
}

.modal-body {
  max-height: calc(100vh - 126px);
  overflow: auto;
  padding: 15px;
}

.port-target-modal {
  width: min(560px, 100%);
}

.port-target-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.port-target-editor label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.port-target-editor .span-2,
.port-target-editor .modal-actions {
  grid-column: 1 / -1;
}

.port-target-editor input,
.port-target-editor select {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid #d8e4e9;
  border-radius: 5px;
  background: #fff;
  color: #172b31;
  font-size: 13px;
  font-weight: 750;
  padding: 0 9px;
  text-transform: none;
}

.speed-probe-options select,
.iperf-probe-options select,
.compact-form-grid select,
.port-target-editor select,
.edge-peer-fields select,
.filter-panel select,
.log-filter-secondary select {
  appearance: none;
  padding-right: 28px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7d85 50%),
    linear-gradient(135deg, #6b7d85 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 9px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 12px;
}

.destructive-confirm-modal {
  width: min(520px, 100%);
}

.destructive-confirm-body {
  display: grid;
  gap: 12px;
}

.destructive-confirm-resources {
  max-height: 160px;
  margin: 0;
  padding: 10px 12px 10px 28px;
  overflow: auto;
  border: 1px solid #f2c5c5;
  border-radius: 6px;
  background: #fff8f8;
}

.destructive-confirm-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.destructive-confirm-label input {
  min-height: 38px;
  border: 1px solid #d8e4e9;
  border-radius: 5px;
  color: #172b31;
  font-size: 15px;
  font-weight: 800;
  padding: 0 10px;
  text-transform: none;
}

.modal-table {
  max-height: 380px;
}

.installer-box {
  display: grid;
  gap: 12px;
}

.installer-box textarea {
  width: 100%;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.danger-text {
  color: var(--danger) !important;
}

@media (max-width: 1320px) {
  .device-workspace-shell {
    grid-template-columns: max-content minmax(0, 1fr);
  }

}

@media (max-width: 1180px) {
  .device-workspace-shell {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .summary-strip,
  .fleet-survey-strip,
  .fleet-survey-strip.with-edge-broker,
  .dashboard-survey-queue,
  .wireless-survey-grid,
  .peer10-upgrade-readiness,
  .statistics-grid,
  .cyber-info-grid,
  .network-grid,
  .ip-stack,
  .remote-access-strip,
  .wifi-grid,
  .quality-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .device-test-hero,
  .device-test-identity,
  .diagnostic-overview,
  .live-diagnostic-grid,
  .mtr-live-layout,
  .survey-readiness-card {
    grid-template-columns: 1fr;
  }

  .realtime-metric-grid,
  .mtr-summary-grid,
  .compact-speedometer-grid,
  .diagnostic-run-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .survey-readiness-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .survey-readiness-footer .button {
    width: 100%;
  }

  .span-4,
  .span-5,
  .span-7,
  .span-8 {
    grid-column: 1 / -1;
  }

  .network-test-layout,
  .network-test-layout.device-workspace,
  .dashboard-fleet-grid,
  .dashboard-composition-body,
  .dashboard-board-grid,
  .dashboard-secondary-grid,
  .edge-fleet-layout,
  .edge-selected-layout,
  .log-layout,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .edge-selected-summary,
  .edge-service-toggles,
  .edge-service-config-grid,
  .edge-peer-onboarding-list .edge-peer-fields {
    grid-template-columns: 1fr;
  }

  .test-runner {
    position: static;
  }

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

  .iperf-probe-options {
    grid-template-columns: minmax(210px, 1fr) 84px 90px 120px;
  }

  .iperf-probe-submit {
    width: 100%;
    min-width: 0;
  }

  .dashboard-path-board {
    grid-template-columns: 1fr;
  }

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

  .log-filter-secondary {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .log-summary {
    grid-template-columns: 82px 72px minmax(160px, 1fr) 92px 88px 18px;
  }

  .log-details {
    padding-left: 10px;
  }

  .log-detail-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .trace-route {
    --trace-gap: 6px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    width: 100%;
  }

  .trace-hop::before,
  .trace-hop::after {
    display: none;
  }

  .cyber-info-grid > div:nth-child(odd) .metric-hover-panel {
    right: auto;
    left: 8px;
  }

  .cyber-info-grid > div:nth-child(even) .metric-hover-panel {
    right: 8px;
    left: auto;
  }
}

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

  .sidebar {
    position: static;
    height: auto;
  }

  .sidebar-footer {
    display: none;
  }

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

  .nav details {
    display: block;
  }

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

  .web-proxy-route,
  .web-proxy-fields {
    grid-template-columns: 1fr;
  }

  .web-proxy-route span + span::before {
    top: -8px;
    left: 16px;
    width: 1px;
    height: 8px;
    border-top: 0;
    border-left: 1px solid rgba(0, 122, 136, 0.4);
  }

  .web-proxy-toolbar .button {
    width: 100%;
  }

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

  .device-tool-tree {
    position: static;
    grid-template-columns: 1fr;
  }

  .device-tool-tree-head {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .device-tool-tree-head small {
    grid-column: 1 / -1;
  }

  .device-focus-exit {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
    white-space: nowrap;
  }

  .device-workspace-quick-nav {
    display: grid;
    grid-auto-columns: minmax(118px, 0.7fr);
    grid-auto-flow: column;
    gap: 6px;
    margin: 0 -2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 1px 2px 4px;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
  }

  .device-workspace-quick-link {
    min-width: 0;
    scroll-snap-align: start;
  }

  .device-tool-tree > .device-tree-group {
    display: none;
  }

  .device-page-title {
    align-items: stretch;
    flex-direction: column;
  }

  .device-page-title .button {
    width: 100%;
  }


  .topbar-stats,
  .button-row {
    justify-content: flex-start;
  }

  .log-filter-primary,
  .log-filter-secondary {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .log-type-select,
  .log-search-shell {
    flex-basis: 100%;
    width: 100%;
  }

  .log-type-menu {
    width: min(360px, calc(100vw - 28px));
  }

  .log-summary {
    grid-template-columns: 78px minmax(0, 1fr) 82px 18px;
  }

  .log-kind {
    grid-column: 1;
    grid-row: 2;
  }

  .log-main {
    grid-column: 2 / 4;
  }

  .log-device {
    display: none;
  }

  .log-state {
    justify-self: end;
  }

  .page-head,
  .device-titlebar,
  .device-utilitybar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .cyber-pills {
    justify-content: flex-start;
  }

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

@media (max-width: 620px) {
  .view,
  .workspace-topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .summary-strip,
  .fleet-survey-strip,
  .fleet-survey-strip.with-edge-broker,
  .dashboard-survey-queue,
  .dashboard-fleet-grid,
  .dashboard-composition-body,
  .survey-queue-list,
  .network-test-device-preview,
  .network-test-choice-grid,
  .network-test-history-summary,
  .network-target-preset-grid,
  .network-test-plan-summary dl,
  .agent-artifact-strip,
  .peer10-upgrade-readiness,
  .statistics-grid,
  .dashboard-cyber-grid,
  .dashboard-action-grid,
  .dashboard-board-grid,
  .cyber-info-grid,
  .network-grid,
  .diagnostic-panel-grid,
  .diagnostic-panel-grid.graph-heavy,
  .port-diagnostic-grid,
  .realtime-metric-grid,
  .mtr-summary-grid,
  .compact-speedometer-grid,
  .compact-speedometer-grid.single,
  .diagnostic-run-rail,
  .port-target-list span,
  .speedometer-stage,
  .speed-probe-options,
  .iperf-probe-options,
  .port-evidence-strip,
  .port-target-row,
  .diagnostic-result-card,
  .speed-stat-grid,
  .speedometer-trend-grid,
  .compact-form-grid,
  .path-target-builder,
  .path-target-row,
  .path-target-options,
  .ip-stack,
  .wifi-grid,
  .wireless-survey-grid,
  .info-grid,
  .form-grid,
  .quality-overview,
  .device-test-facts,
  .metric-stack,
  .test-type-grid,
  .trend-overview {
    grid-template-columns: 1fr;
  }

  .mtr-control-strip {
    grid-template-columns: 1fr;
  }

  .log-detail-grid {
    grid-template-columns: 1fr;
  }

  .cyber-info-grid > div .metric-hover-panel {
    right: auto;
    left: 8px;
    width: calc(100vw - 40px);
  }

  .lifecycle-hover-panel {
    right: auto;
    left: 0;
    width: calc(100vw - 40px);
  }

  .survey-filter-rail,
  .fleet-survey-next-step {
    align-items: stretch;
    flex-direction: column;
  }

  .fleet-survey-next-meta {
    justify-content: space-between;
  }

  .survey-filter-buttons {
    justify-content: flex-start;
  }

  .wan-filter-buttons {
    padding-top: 8px;
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .lifecycle-hover-panel::before {
    right: auto;
    left: 18px;
  }

  .lifecycle-hover-grid {
    grid-template-columns: 0.8fr 1fr;
  }

  .lifecycle-hover-grid em {
    grid-column: 1 / -1;
  }

  .ip-stack-row {
    grid-template-columns: 1fr;
  }

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

  .trace-hop {
    min-height: 42px;
    padding: 5px 6px;
  }

  .trace-hop strong {
    font-size: 10px;
  }

  .trace-hop em {
    display: none;
  }

  .ip-stack-row,
  .ip-stack-row:nth-child(odd) {
    border-right: 0;
  }

  .ip-stack-row:nth-last-child(-n + 2) {
    border-bottom: 1px solid #e7edf0;
  }

  .ip-stack-row:last-child {
    border-bottom: 0;
  }

  .toolbar,
  .terminal-form,
  .inline-form,
  .selection-bar,
  .inline-grid-form {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-grid-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .radio-panel-title {
    align-items: center;
    flex-direction: row;
  }

  .quality-score-card,
  .diagnostic-score {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .bar-row strong {
    grid-column: 2;
    text-align: left;
  }

  .speed-probe-submit {
    width: 100%;
    min-width: 0;
  }

  .speed-probe-submit-label {
    width: auto;
    min-width: 0;
  }
}

.edge-dashboard-shell {
  display: grid;
  gap: 14px;
}

.edge-dashboard-shell svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edge-command-center,
.edge-broker-board,
.edge-events-panel,
.edge-server-card {
  border: 1px solid rgba(77, 96, 108, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(rgba(98, 225, 216, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 225, 216, 0.025) 1px, transparent 1px),
    linear-gradient(145deg, #0a1418, #122029 58%, #0e171d);
  background-size: 22px 22px, 22px 22px, auto;
  box-shadow: 0 20px 50px rgba(15, 28, 34, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #ecfeff;
}

.edge-command-center {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.5fr);
  gap: 12px;
  align-items: stretch;
  padding: 14px;
}

.edge-command-copy {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
}

.edge-command-copy h2 {
  color: #f4ffff;
  font-size: 18px;
}

.edge-command-copy p {
  color: #93b4b9;
  font-size: 12px;
  overflow-wrap: anywhere;
}

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

.edge-kpi {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 76px;
  border: 1px solid rgba(147, 180, 185, 0.16);
  border-radius: 7px;
  padding: 10px;
  background: rgba(3, 12, 16, 0.55);
}

.edge-kpi > span,
.edge-node-icon,
.edge-service-tile > span,
.edge-runtime-state > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(98, 225, 216, 0.2);
  border-radius: 6px;
  background: rgba(98, 225, 216, 0.08);
  color: #62e1d8;
}

.edge-kpi > span {
  width: 34px;
  height: 34px;
}

.edge-kpi small,
.edge-kpi em,
.edge-node-meta small,
.edge-runtime-state small,
.edge-runtime-state em,
.edge-service-tile small,
.edge-server-head span,
.edge-port-cloud small,
.edge-vpn-controls summary small,
.edge-vpn-grid form header small,
.edge-event-row span,
.edge-event-row time {
  color: #8eb2b8;
  font-style: normal;
  letter-spacing: 0;
}

.edge-kpi > div,
.edge-service-tile > div,
.edge-runtime-state > div {
  min-width: 0;
}

.edge-kpi small,
.edge-node-meta small,
.edge-runtime-state small,
.edge-port-cloud small,
.edge-server-head span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.edge-kpi strong {
  display: block;
  margin-top: 2px;
  color: #f7ffff;
  font-size: 22px;
  line-height: 1;
}

.edge-kpi em {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

.edge-kpi.good > span,
.edge-runtime-state.live > span,
.edge-service-tile.live > span {
  border-color: rgba(53, 222, 155, 0.28);
  background: rgba(53, 222, 155, 0.1);
  color: #35de9b;
}

.edge-kpi.warn > span,
.edge-runtime-state.stopped > span {
  border-color: rgba(245, 178, 81, 0.3);
  background: rgba(245, 178, 81, 0.1);
  color: #f5b251;
}

.edge-kpi.muted > span,
.edge-runtime-state.idle > span,
.edge-service-tile.muted > span {
  border-color: rgba(142, 178, 184, 0.16);
  background: rgba(142, 178, 184, 0.06);
  color: #8eb2b8;
}

.edge-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr);
  gap: 14px;
  align-items: start;
}

.edge-fleet-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.32fr);
}

.edge-fleet-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.edge-broker-board,
.edge-events-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.edge-list-panel {
  border-color: var(--border);
  background: var(--panel);
  color: var(--text);
  overflow: visible;
}

.edge-table-title {
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.edge-table-title h2 {
  color: var(--text);
  font-size: 17px;
}

.edge-list-count {
  color: var(--muted);
  font-size: 13px;
}

.edge-table th {
  border-bottom-color: var(--border);
  background: #fafbfc;
  color: #5f6d73;
}

.edge-table td {
  border-bottom-color: var(--border);
  background: #fff;
  color: var(--text);
}

.edge-table tr:hover td {
  background: #f7fbfb;
}

.edge-table tr.selected-row td {
  background: var(--accent-soft);
}

.edge-row-name {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.inline-edit-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.inline-edit-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms ease, background 120ms ease, color 120ms ease;
}

tr:hover .inline-edit-trigger,
.inline-edit-group:focus-within .inline-edit-trigger {
  opacity: 1;
}

.inline-edit-trigger:hover,
.inline-edit-trigger:focus-visible {
  background: rgba(0, 146, 156, 0.1);
  color: var(--accent);
}

.inline-edit-trigger svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inline-edit-input {
  min-width: 0;
  max-width: 180px;
  height: 26px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0 6px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 146, 156, 0.18);
}

.edge-select-dot {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border: 1px solid #a9b8bd;
  border-radius: 50%;
  background: #fff;
  vertical-align: middle;
}

.edge-select-dot.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 5px #fff;
  background: var(--accent);
}

.edge-host-cell {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.edge-service-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 220px;
}

.edge-service-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid rgba(142, 178, 184, 0.16);
  border-radius: 999px;
  padding: 2px 7px;
  color: #8eb2b8;
  font-size: 10px;
  font-weight: 800;
}

.edge-service-chip-row span.active {
  border-color: rgba(53, 222, 155, 0.26);
  color: #8ff0c6;
}

.edge-row-actions .menu-card {
  min-width: 220px;
  background: #071114;
  border-color: rgba(129, 218, 220, 0.26);
}

.edge-action-menu label {
  display: grid;
  gap: 4px;
  min-height: auto;
  padding: 7px;
  color: #8eb2b8;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.edge-action-menu input {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(98, 225, 216, 0.18);
  border-radius: 5px;
  background: rgba(2, 7, 10, 0.72);
  color: #f4ffff;
  padding: 5px 7px;
}

.edge-action-menu button {
  color: #d9fafa;
}

.edge-action-menu button:hover {
  background: rgba(98, 225, 216, 0.08);
}

.edge-peer-onboarding-list {
  border: 1px solid rgba(77, 96, 108, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(rgba(98, 225, 216, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 225, 216, 0.018) 1px, transparent 1px),
    linear-gradient(145deg, #0a1418, #101c23 62%, #0d151b);
  background-size: 22px 22px, 22px 22px, auto;
  padding: 12px;
  color: #ecfeff;
}

.edge-peer-onboarding-list .edge-peer-fields {
  grid-template-columns: minmax(140px, 0.8fr) minmax(160px, 1fr) minmax(120px, 0.6fr) minmax(110px, 0.5fr) auto;
}

.edge-empty-selection {
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
}

.edge-empty-selection > div {
  display: grid;
  gap: 6px;
  justify-items: center;
  max-width: 420px;
}

.edge-empty-selection span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent-strong);
}

.edge-empty-selection svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.edge-empty-selection strong {
  color: var(--text);
  font-size: 15px;
}

.edge-empty-selection p {
  color: var(--muted);
  font-size: 13px;
}

.edge-selected-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.edge-selected-panel,
.edge-selected-events {
  background: var(--panel);
  color: var(--text);
}

.edge-selected-panel {
  border-color: var(--border);
  background: var(--panel);
  color: var(--text);
}

.edge-selected-title {
  border-bottom: 1px solid var(--border);
  margin: -14px -14px 12px;
  padding: 12px 14px;
}

.edge-selected-title h2 {
  color: var(--text);
  font-size: 17px;
}

.edge-selected-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--border);
}

.edge-selected-summary > div {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  background: #fff;
}

.edge-selected-summary span {
  grid-row: span 2;
  color: var(--accent-strong);
}

.edge-selected-summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.edge-selected-summary strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edge-service-toggles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.edge-service-stack {
  align-items: stretch;
}

.edge-service-toggle-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f8fbfb;
  overflow: visible;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, gap 180ms ease;
}

.edge-service-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
  min-width: 0;
  cursor: pointer;
}

.edge-service-body {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-height: 1400px;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
  transform-origin: top;
  transition:
    max-height 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms ease,
    transform 220ms ease,
    visibility 0s linear 0s;
  visibility: visible;
  will-change: max-height, opacity, transform;
}

.edge-service-body[hidden] {
  display: none !important;
}

.edge-service-toggle-card:not(.is-collapsed) .edge-service-body {
  overflow: visible;
}

.edge-service-collapse {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  border-color: var(--border);
  background: #fff;
  color: var(--muted);
  z-index: 4;
}

.edge-service-collapse svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.8;
  transition: transform 160ms ease;
}

.edge-service-toggle-card.is-collapsed {
  gap: 0;
  box-shadow: inset 0 0 0 1px rgba(32, 174, 183, 0.04);
}

.edge-service-toggle-card.is-collapsed .edge-service-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-5px) scaleY(0.99);
  transition:
    max-height 240ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 140ms ease,
    transform 180ms ease,
    visibility 0s linear 240ms;
  visibility: hidden;
}

.edge-service-toggle-card.is-collapsed .edge-service-collapse svg {
  transform: rotate(-90deg);
}

.edge-service-collapse.tooltip-anchor.tooltip-bottom.tooltip-right[data-tooltip]::after {
  max-width: 180px;
  white-space: nowrap;
}

.edge-service-toggle-card.is-on {
  border-color: rgba(24, 168, 125, 0.34);
  background: linear-gradient(180deg, #f4fffb, #f8fbfb);
}

.edge-service-toggle {
  display: grid;
  grid-template-columns: 44px 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 42px;
}

.edge-toggle-switch {
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 28px;
  cursor: pointer;
}

.edge-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.edge-toggle-track {
  position: relative;
  display: inline-flex;
  flex: none;
  width: 44px;
  height: 24px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  background: #dbe3e7;
  box-shadow: inset 0 1px 2px rgba(38, 50, 56, 0.12);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.edge-toggle-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(38, 50, 56, 0.22);
  content: "";
  transition: transform 180ms ease;
}

.edge-toggle-input:checked + .edge-toggle-track {
  border-color: rgba(24, 168, 125, 0.46);
  background: var(--success);
  box-shadow: inset 0 1px 2px rgba(6, 84, 61, 0.26), 0 0 0 3px rgba(24, 168, 125, 0.08);
}

.edge-toggle-input:checked + .edge-toggle-track::after {
  transform: translateX(20px);
}

.edge-toggle-input:focus-visible + .edge-toggle-track {
  outline: 2px solid rgba(32, 174, 183, 0.3);
  outline-offset: 2px;
}

.edge-toggle-input:disabled + .edge-toggle-track {
  cursor: wait;
  opacity: 0.62;
}

.edge-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--muted);
}

.edge-toggle-icon svg {
  width: 16px;
  height: 16px;
}

.edge-service-toggle-card.is-on .edge-toggle-icon {
  border-color: rgba(24, 168, 125, 0.3);
  color: var(--success);
}

.edge-toggle-copy {
  min-width: 0;
  cursor: pointer;
}

.edge-toggle-copy strong,
.edge-toggle-copy small {
  display: block;
}

.edge-toggle-copy strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.15;
}

.edge-toggle-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edge-service-section-head,
.edge-service-peer-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.edge-service-section-head strong,
.edge-service-peer-panel header strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.edge-service-peer-panel header span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 7px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.edge-proof-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 251, 251, 0.96)),
    radial-gradient(circle at 18% 0%, rgba(32, 174, 183, 0.14), transparent 44%);
}

.edge-proof-strip.good {
  border-color: rgba(24, 168, 125, 0.28);
  box-shadow: inset 0 0 0 1px rgba(24, 168, 125, 0.05);
}

.edge-proof-strip.warn {
  border-color: rgba(221, 134, 42, 0.36);
  box-shadow: inset 0 0 0 1px rgba(221, 134, 42, 0.06);
}

.edge-proof-strip.muted {
  background: #fbfcfc;
}

.edge-proof-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(223, 231, 234, 0.88);
  border-radius: 4px;
  padding: 5px 6px;
  background: rgba(255, 255, 255, 0.86);
}

.edge-proof-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--muted);
}

.edge-proof-strip.good .edge-proof-item > span {
  color: var(--success);
}

.edge-proof-strip.warn .edge-proof-item > span {
  color: #b76a19;
}

.edge-proof-item svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.8;
}

.edge-proof-item div {
  min-width: 0;
}

.edge-proof-item small,
.edge-proof-item strong,
.edge-proof-item em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edge-proof-item small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.edge-proof-item strong {
  margin-top: 1px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.1;
}

.edge-proof-item em {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.edge-service-peer-panel {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px;
  background: #fff;
  overflow: visible;
}

.edge-service-peer-list {
  display: grid;
  gap: 5px;
  min-width: 0;
  overflow: visible;
}

.edge-service-peer-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) minmax(220px, 0.72fr) minmax(92px, 0.32fr) minmax(82px, 0.28fr) 30px;
  gap: 7px;
  align-items: center;
  min-width: 0;
  min-height: 36px;
  border: 1px solid #eef2f4;
  border-radius: 4px;
  padding: 6px;
  background: #fbfcfc;
  overflow: visible;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.edge-service-peer-row:hover {
  border-color: rgba(43, 143, 154, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 251, 251, 0.98));
  box-shadow: 0 8px 18px rgba(22, 50, 58, 0.06);
}

.edge-service-peer-main {
  display: grid;
  grid-column: 1 / 6;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.edge-service-peer-row > [data-edge-ipsec-action="leave"] {
  grid-column: 6;
  justify-self: end;
}

.edge-service-peer-row > span,
.edge-peer-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--accent-strong);
}

.edge-peer-status-icon::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

.edge-service-peer-row > span svg,
.edge-peer-status-icon svg {
  width: 15px;
  height: 15px;
}

.edge-service-peer-row.is-handshake-active,
.device-edge-peer-row.is-handshake-active {
  border-color: rgba(24, 168, 125, 0.32);
}

.edge-service-peer-row.is-handshake-active .edge-peer-status-icon,
.device-edge-peer-row.is-handshake-active .edge-peer-status-icon {
  color: #16a06f;
}

.edge-service-peer-row.is-handshake-stale .edge-peer-status-icon,
.device-edge-peer-row.is-handshake-stale .edge-peer-status-icon {
  color: #c47925;
}

.edge-service-peer-row.is-handshake-idle .edge-peer-status-icon,
.device-edge-peer-row.is-handshake-idle .edge-peer-status-icon {
  color: #95a4aa;
}

.edge-service-peer-row div,
.edge-service-peer-row code,
.edge-service-peer-row em {
  min-width: 0;
}

.edge-service-peer-row strong,
.edge-service-peer-row small,
.edge-service-peer-row code,
.edge-service-peer-row em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edge-service-peer-row strong {
  color: var(--text);
  font-size: 12px;
}

.edge-service-peer-row small,
.edge-service-peer-row em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.edge-service-peer-row code {
  color: #425158;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
}

.wg-link-stats {
  display: grid;
  grid-template-columns: minmax(72px, 1.15fr) repeat(2, minmax(58px, 0.9fr));
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(211, 225, 229, 0.88);
  border-radius: 6px;
  padding: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 252, 252, 0.96)),
    rgba(255, 255, 255, 0.82);
}

.wg-link-stats.compact {
  grid-template-columns: minmax(68px, 1.1fr) repeat(2, minmax(54px, 0.85fr));
}

.wg-link-stat {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
  min-height: 26px;
  border: 1px solid rgba(211, 225, 229, 0.72);
  border-radius: 4px;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.74);
  color: #52656c;
  font-size: 10px;
  line-height: 1;
  overflow: visible;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.wg-link-stat:hover,
.wg-link-stat:focus-visible {
  border-color: rgba(43, 143, 154, 0.28);
  background: #f1fbfb;
  color: #1f6e78;
  transform: translateY(-1px);
}

.wg-link-stat svg {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

.wg-link-stat em {
  flex: none;
  color: #8b9ba1;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}

.wg-link-stat strong {
  min-width: 0;
  color: inherit;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wg-link-stat.handshake svg {
  color: #95a4aa;
}

.wg-link-stats.active {
  border-color: rgba(53, 222, 155, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 253, 249, 0.98)),
    rgba(53, 222, 155, 0.08);
}

.wg-link-stats.active .wg-link-stat.handshake {
  border-color: rgba(53, 222, 155, 0.28);
  background: rgba(53, 222, 155, 0.08);
  color: #0f8f66;
}

.wg-link-stats.stale .wg-link-stat.handshake {
  border-color: rgba(196, 121, 37, 0.28);
  background: rgba(196, 121, 37, 0.08);
  color: #a35f18;
}

.wg-link-stats.idle .wg-link-stat.handshake {
  color: #7f9096;
}

.wg-link-stat.rx svg {
  color: #2d74c4;
}

.wg-link-stat.tx svg {
  color: #1f9d6a;
}

.edge-peer-remove {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  color: #8a4a56;
}

.edge-peer-remove:hover:not(:disabled) {
  border-color: rgba(216, 63, 95, 0.32);
  background: rgba(216, 63, 95, 0.08);
  color: #c72f51;
}

.edge-peer-empty {
  min-height: 32px;
  border: 1px dashed var(--border);
  border-radius: 4px;
  padding: 8px;
  color: var(--muted);
  font-size: 11px;
}

.edge-service-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 7px;
  align-items: start;
}

.edge-config-field {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.edge-config-span {
  grid-column: 1 / -1;
}

.edge-config-field input {
  width: 100%;
  min-width: 0;
  min-height: 31px;
  border-color: var(--border);
  background: #fff;
  color: var(--text);
  font-size: 12px;
}

.edge-service-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.edge-service-action {
  min-height: 31px;
  white-space: nowrap;
}

.edge-operator-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.edge-operator-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.edge-operator-head h2 {
  color: var(--text);
  font-size: 15px;
  line-height: 1.15;
}

.edge-operator-head > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.edge-control-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.edge-control-card {
  display: grid;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}

.edge-control-card.is-live {
  border-color: rgba(24, 168, 125, 0.26);
  background: #f8fffc;
}

.edge-control-summary {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 46px;
  padding: 7px 9px;
}

.edge-control-copy {
  min-width: 0;
}

.edge-control-copy strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.15;
}

.edge-control-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edge-control-status {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 7px;
  background: #f7fbfb;
  color: #5f6d73;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.edge-control-card.is-live .edge-control-status {
  border-color: rgba(24, 168, 125, 0.28);
  background: #effcf7;
  color: #118462;
}

.edge-control-summary-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 72px;
}

.edge-control-expander {
  min-height: 26px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 7px;
  background: transparent;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.edge-control-expander:hover,
.edge-control-expander:focus-visible {
  border-color: rgba(32, 174, 183, 0.22);
  background: #f2fbfb;
}

.edge-control-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  border-top: 1px solid var(--border);
  padding: 8px 9px 9px;
  background: #fbfcfc;
}

.edge-control-card.is-collapsed .edge-control-body {
  display: none;
}

.edge-control-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.edge-control-fields label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.edge-control-fields label:only-child {
  grid-column: 1 / -1;
}

.edge-control-fields .edge-field-help {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.edge-control-fields .edge-field-help.is-error {
  color: var(--danger);
}

.edge-control-fields input,
.edge-control-fields select {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  padding: 5px 7px;
  font-size: 12px;
}

.edge-control-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.edge-control-actions .button {
  min-height: 27px;
  border-color: #cfd9de;
  border-radius: 4px;
  background: #fff;
  color: #29383f;
  box-shadow: none;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.edge-control-actions .button:hover:not(:disabled),
.edge-control-actions .button:focus-visible {
  border-color: var(--accent-strong);
  background: #f2fbfb;
  color: var(--accent-strong);
}

.edge-control-actions .button.danger {
  border-color: rgba(216, 63, 95, 0.38);
  background: #fff;
  color: var(--danger);
}

.edge-control-actions .button.danger:hover:not(:disabled),
.edge-control-actions .button.danger:focus-visible {
  border-color: var(--danger);
  background: #fff5f7;
  color: var(--danger);
}

.edge-service-switch {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 27px;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

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

.edge-service-switch span {
  position: relative;
  width: 34px;
  height: 18px;
  border: 1px solid #cfd9de;
  border-radius: 999px;
  background: #eef3f5;
  transition: border-color 150ms ease, background 150ms ease;
}

.edge-service-switch span::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #8a9aa2;
  content: "";
  transition: background 150ms ease, transform 150ms ease;
}

.edge-service-switch input:checked + span {
  border-color: rgba(24, 168, 125, 0.34);
  background: #e9fbf5;
}

.edge-service-switch input:checked + span::after {
  background: var(--success);
  transform: translateX(16px);
}

.edge-service-switch input:focus-visible + span {
  outline: 2px solid rgba(32, 174, 183, 0.28);
  outline-offset: 2px;
}

.edge-service-switch input:disabled ~ span,
.edge-service-switch input:disabled ~ b {
  cursor: not-allowed;
  opacity: 0.48;
}

.edge-service-switch.is-pending input:disabled ~ b {
  color: var(--text);
  opacity: 1;
}

.edge-service-switch-reason {
  flex-basis: 100%;
  color: #7a5b18;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.2;
  text-align: right;
  text-transform: none;
}

.edge-selected-panel .edge-service-peer-panel {
  margin-top: 10px;
  border-color: var(--border);
  background: #fff;
}

.edge-selected-panel .edge-service-peer-panel header strong {
  color: var(--text);
}

.edge-selected-panel .edge-service-peer-panel header span {
  border-color: var(--border);
  background: #fff;
  color: var(--muted);
}

.edge-selected-panel .edge-service-peer-row {
  border-color: #eef2f4;
  background: #fbfcfc;
}

.edge-selected-panel .edge-service-peer-row:hover {
  border-color: rgba(43, 143, 154, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 251, 251, 0.98));
  box-shadow: 0 8px 18px rgba(22, 50, 58, 0.06);
}

.edge-selected-panel .edge-service-peer-row strong {
  color: var(--text);
}

.edge-selected-panel .edge-service-peer-row small,
.edge-selected-panel .edge-service-peer-row em,
.edge-selected-panel .edge-service-peer-row code,
.edge-selected-panel .edge-service-peer-panel .empty {
  color: var(--muted);
}

.edge-selected-panel .edge-service-peer-panel .table-wrap {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: auto;
}

.edge-selected-panel .edge-service-peer-panel th,
.edge-selected-panel .edge-service-peer-panel td {
  border-bottom-color: var(--border);
  padding: 7px 8px;
  color: var(--text);
  font-size: 11px;
}

.edge-selected-panel .edge-service-peer-panel th {
  height: 30px;
  background: #fafbfc;
  color: #5f6d73;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.edge-selected-panel .edge-service-chip-row {
  margin-top: 10px;
}

.edge-selected-panel .edge-port-cloud {
  margin-top: 8px;
}

.edge-selected-panel .edge-port-cloud span,
.edge-port-cloud.light span {
  border-color: var(--border);
  background: #fff;
}

.edge-selected-panel .edge-port-cloud strong,
.edge-port-cloud.light strong {
  color: var(--text);
}

.edge-selected-panel .edge-peer-onboarding,
.edge-selected-panel .edge-vpn-controls {
  margin-top: 0;
  border-color: var(--border);
  background: #fff;
}

.edge-selected-panel .edge-peer-onboarding header strong,
.edge-selected-panel .edge-vpn-controls summary,
.edge-selected-panel .edge-vpn-grid form header strong {
  color: var(--text);
}

.edge-selected-panel .edge-peer-onboarding header small,
.edge-selected-panel .edge-peer-onboarding header span,
.edge-selected-panel .edge-vpn-controls summary small,
.edge-selected-panel .edge-vpn-grid form header small,
.edge-selected-panel .edge-vpn-fields label,
.edge-selected-panel .edge-quick-psk,
.edge-selected-panel .edge-peer-fields label {
  color: var(--muted);
}

.edge-selected-panel .edge-peer-fields input,
.edge-selected-panel .edge-peer-fields select,
.edge-selected-panel .edge-vpn-fields input,
.edge-selected-panel .edge-quick-psk input {
  border-color: var(--border);
  background: #fff;
  color: var(--text);
}

.edge-selected-panel .edge-peer-fields input,
.edge-selected-panel .edge-peer-fields select {
  min-height: 29px;
}

.edge-selected-panel .edge-vpn-grid form {
  border-color: var(--border);
  background: #f8fbfb;
}

.device-edge-peer-panel {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  border: 1px solid rgba(37, 58, 66, 0.12);
  border-radius: 4px;
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 252, 252, 0.96)),
    radial-gradient(circle at 12% 0%, rgba(32, 174, 183, 0.12), transparent 42%);
  overflow: visible;
}

.device-edge-peer-panel header,
.device-edge-peer-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.device-edge-peer-panel header > span,
.device-edge-peer-row > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--accent-strong);
}

.device-edge-peer-panel header strong,
.device-edge-peer-panel header small,
.device-edge-peer-row strong,
.device-edge-peer-row small,
.device-edge-peer-row code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-edge-peer-panel header strong,
.device-edge-peer-row strong {
  color: var(--text);
  font-size: 12px;
}

.device-edge-peer-panel header small,
.device-edge-peer-row small {
  color: var(--muted);
  font-size: 10px;
}

.device-edge-peer-list {
  display: grid;
  gap: 5px;
  overflow: visible;
}

.device-edge-peer-row {
  grid-template-columns: 24px minmax(0, 1fr) minmax(220px, 0.76fr) minmax(126px, 0.4fr) 30px;
  min-height: 38px;
  border: 1px solid rgba(223, 231, 234, 0.88);
  border-radius: 4px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.88);
  overflow: visible;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.device-edge-peer-row:hover {
  background: rgba(251, 255, 255, 0.98);
  box-shadow: 0 8px 18px rgba(22, 50, 58, 0.06);
}

.device-edge-peer-row code {
  min-width: 0;
  color: #425158;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
}

.device-edge-peer-row .wg-link-stats.compact {
  gap: 3px;
}

.device-edge-peer-row .wg-link-stat {
  min-height: 24px;
  padding-inline: 4px;
}

.device-edge-peer-row .wg-link-stat strong {
  color: inherit;
  font-size: 10px;
  line-height: 1;
}

.edge-selected-events .panel-title {
  border-bottom: 1px solid var(--border);
  margin: -14px -14px 12px;
  padding: 12px 14px;
}

.edge-selected-events h2 {
  color: var(--text);
  font-size: 17px;
}

.edge-event-list.light .edge-event-row {
  border-color: var(--border);
  background: #fff;
}

.edge-event-list.light .edge-event-row strong {
  color: var(--text);
}

.edge-event-list.light .edge-event-row span,
.edge-event-list.light .edge-event-row time {
  color: var(--muted);
}

.edge-board-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.edge-board-title h2 {
  color: #f4ffff;
  font-size: 17px;
}

.edge-defaults {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.edge-defaults span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  border: 1px solid rgba(147, 180, 185, 0.15);
  border-radius: 6px;
  padding: 5px 8px;
  background: rgba(3, 12, 16, 0.48);
  color: #c8e6e8;
  font-size: 11px;
}

.edge-server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 12px;
}

.edge-empty-state {
  color: #8eb2b8;
}

.edge-server-card {
  position: relative;
  display: grid;
  gap: 11px;
  padding: 13px;
  overflow: hidden;
}

.edge-server-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #8eb2b8;
  content: "";
}

.edge-server-card.online::before {
  background: linear-gradient(90deg, #35de9b, #62e1d8);
}

.edge-server-card.offline::before {
  background: #d83f5f;
}

.edge-server-head,
.edge-node-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.edge-server-head {
  justify-content: space-between;
}

.edge-node-icon {
  flex: none;
  width: 38px;
  height: 38px;
}

.edge-node-identity h3 {
  margin-top: 2px;
  color: #f4ffff;
  font-size: 16px;
}

.edge-heartbeat {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 26px;
  border: 1px solid rgba(142, 178, 184, 0.2);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(3, 12, 16, 0.55);
  color: #c8e6e8;
  font-size: 11px;
  font-weight: 800;
}

.edge-heartbeat.good {
  border-color: rgba(53, 222, 155, 0.24);
  color: #8ff0c6;
}

.edge-heartbeat.bad {
  border-color: rgba(216, 63, 95, 0.26);
  color: #ff9caf;
}

.edge-node-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(120px, 0.7fr) minmax(80px, 0.45fr);
  gap: 1px;
  border: 1px solid rgba(147, 180, 185, 0.14);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(147, 180, 185, 0.14);
}

.edge-node-meta > div {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  background: rgba(3, 12, 16, 0.6);
}

.edge-node-meta span {
  grid-row: span 2;
  color: #62e1d8;
}

.edge-node-meta strong {
  min-width: 0;
  color: #e8fbfc;
  font-size: 12px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edge-primary-actions,
.edge-peer-fields {
  display: grid;
  grid-template-columns: auto minmax(180px, 0.8fr) auto;
  gap: 8px;
  align-items: end;
}

.edge-primary-actions {
  padding: 8px;
  border: 1px solid rgba(98, 225, 216, 0.16);
  border-radius: 7px;
  background: rgba(3, 12, 16, 0.46);
}

.edge-quick-psk,
.edge-peer-fields label {
  display: grid;
  gap: 4px;
  color: #8eb2b8;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.edge-quick-psk input,
.edge-peer-fields input,
.edge-peer-fields select {
  width: 100%;
  min-height: 31px;
  border: 1px solid rgba(98, 225, 216, 0.18);
  border-radius: 6px;
  background: rgba(2, 7, 10, 0.72);
  color: #f4ffff;
  padding: 6px 8px;
  font-size: 12px;
}

.edge-service-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 7px;
  min-width: 0;
  overflow: hidden;
}

.edge-service-tile {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid rgba(147, 180, 185, 0.14);
  border-radius: 7px;
  padding: 6px;
  background: rgba(3, 12, 16, 0.48);
}

.edge-service-tile > span {
  width: 26px;
  height: 26px;
}

.edge-service-tile strong {
  display: block;
  color: #e8fbfc;
  font-size: 12px;
  line-height: 1.1;
}

.edge-service-tile small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edge-runtime-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.edge-runtime-state {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(147, 180, 185, 0.14);
  border-radius: 7px;
  padding: 8px;
  background: rgba(3, 12, 16, 0.44);
}

.edge-runtime-state > span {
  width: 30px;
  height: 30px;
}

.edge-runtime-state strong {
  display: block;
  color: #f7ffff;
  font-size: 12px;
  text-transform: uppercase;
}

.edge-runtime-state em {
  display: block;
  max-width: 100%;
  margin-top: 2px;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edge-port-cloud {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.edge-port-cloud span {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 5px;
  align-items: baseline;
  min-height: 27px;
  border: 1px solid rgba(147, 180, 185, 0.15);
  border-radius: 6px;
  padding: 4px 7px;
  background: rgba(3, 12, 16, 0.42);
}

.edge-port-cloud strong {
  color: #f4ffff;
  font-size: 12px;
}

.edge-peer-onboarding {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(53, 222, 155, 0.18);
  border-radius: 5px;
  padding: 7px;
  background: rgba(7, 36, 30, 0.28);
}

.edge-peer-onboarding header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 22px;
}

.edge-peer-onboarding header strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f4ffff;
  font-size: 12px;
}

.edge-peer-onboarding header small,
.edge-peer-onboarding header span {
  display: block;
  color: #8eb2b8;
  font-size: 10px;
}

.edge-peer-onboarding header span {
  flex: none;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edge-peer-fields {
  grid-template-columns: minmax(170px, 1fr) minmax(110px, 0.45fr) minmax(90px, 0.35fr) auto;
  gap: 6px;
}

.edge-ipsec-membership {
  border-color: rgba(32, 174, 183, 0.2);
  background: rgba(3, 34, 42, 0.18);
}

.edge-ipsec-fields {
  grid-template-columns: minmax(170px, 1fr) minmax(120px, 0.45fr) minmax(120px, 0.45fr) auto;
}

.edge-membership-actions {
  display: inline-grid;
  grid-template-columns: minmax(72px, auto) minmax(72px, auto);
  gap: 6px;
  align-items: end;
}

.edge-membership-actions .button {
  min-height: 31px;
  justify-content: center;
  white-space: nowrap;
}

.edge-vpn-controls {
  border: 1px solid rgba(98, 225, 216, 0.18);
  border-radius: 7px;
  background: rgba(3, 12, 16, 0.44);
}

.edge-vpn-controls summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  cursor: pointer;
  padding: 8px 10px;
  color: #f4ffff;
}

.edge-vpn-controls summary span,
.edge-vpn-controls summary small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.edge-vpn-controls summary span {
  font-size: 12px;
  font-weight: 800;
}

.edge-vpn-controls summary small {
  font-size: 11px;
}

.edge-vpn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  padding: 0 10px 10px;
}

.edge-vpn-grid form {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(147, 180, 185, 0.14);
  border-radius: 7px;
  background: rgba(8, 20, 25, 0.78);
}

.edge-vpn-grid form header {
  display: grid;
  gap: 2px;
  align-items: flex-start;
}

.edge-vpn-grid form header strong {
  color: #f4ffff;
  font-size: 12px;
}

.edge-vpn-grid form header small {
  font-size: 11px;
  overflow-wrap: anywhere;
}

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

.edge-vpn-fields label {
  display: grid;
  gap: 4px;
  color: #8eb2b8;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.edge-vpn-fields input {
  min-width: 0;
  width: 100%;
  min-height: 31px;
  border: 1px solid rgba(98, 225, 216, 0.18);
  border-radius: 6px;
  background: rgba(2, 7, 10, 0.72);
  color: #f4ffff;
  padding: 6px 8px;
  font-size: 12px;
  letter-spacing: 0;
}

.edge-vpn-fields label:first-child {
  grid-column: 1 / -1;
}

.edge-vpn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.edge-event-list,
.edge-event-mini {
  display: grid;
  gap: 6px;
}

.edge-event-list {
  max-height: 760px;
  overflow: auto;
  padding-right: 2px;
}

.edge-event-row {
  display: grid;
  grid-template-columns: 8px minmax(105px, 0.8fr) minmax(120px, 1.15fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 36px;
  border: 1px solid rgba(147, 180, 185, 0.13);
  border-radius: 7px;
  padding: 7px 8px;
  background: rgba(3, 12, 16, 0.48);
  font-size: 11px;
}

.edge-event-row b {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8eb2b8;
}

.edge-event-row.good b {
  background: #35de9b;
  box-shadow: 0 0 12px rgba(53, 222, 155, 0.45);
}

.edge-event-row.warn b {
  background: #f5b251;
}

.edge-event-row.bad b {
  background: #d83f5f;
}

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

.edge-event-row strong {
  color: #f4ffff;
  font-size: 11px;
}

.edge-event-row time {
  justify-self: end;
  font-size: 10px;
  white-space: nowrap;
}

.edge-events-panel .edge-event-row {
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 7px;
}

.edge-events-panel .edge-event-row span {
  grid-column: 2 / 4;
  padding-top: 1px;
}

@media (max-width: 1180px) {
  .edge-command-center,
  .edge-dashboard-layout,
  .edge-selected-layout {
    grid-template-columns: 1fr;
  }

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

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

  .edge-server-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .edge-command-center,
  .edge-broker-board,
  .edge-events-panel,
  .edge-server-card {
    padding: 10px;
  }

  .edge-kpi-grid,
  .edge-node-meta,
  .edge-primary-actions,
  .edge-service-toggles,
  .edge-service-config-grid,
  .edge-control-grid,
  .edge-control-summary,
  .edge-control-body,
  .edge-control-fields,
  .edge-service-peer-row,
  .device-edge-peer-row,
  .edge-peer-fields,
  .edge-service-board,
  .edge-runtime-strip,
  .edge-vpn-grid,
  .edge-vpn-fields,
  .edge-event-row,
  .survey-readiness-list,
  .capability-survey-grid,
  .capability-survey-facts {
    grid-template-columns: 1fr;
  }

  .edge-service-peer-main,
  .edge-service-peer-row > [data-edge-ipsec-action="leave"] {
    grid-column: auto;
    justify-self: start;
  }

  .network-edge-readiness,
  .network-test-quick-action {
    align-items: stretch;
    flex-direction: column;
  }

  .network-edge-readiness .button,
  .network-test-quick-action .button {
    width: 100%;
  }

  .edge-board-title,
  .edge-operator-head,
  .edge-server-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .edge-defaults {
    justify-content: flex-start;
  }

  .edge-event-list {
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .connection-trace-banner,
  .edge-service-body,
  .edge-service-collapse svg,
  .edge-service-toggle-card,
  .view.animate-route > * {
    animation: none;
    transition: none;
  }
}
