:root,
html.theme-black,
html[data-theme="black"],
body.theme-black,
body[data-theme="black"] {
  color-scheme: dark;
  --theme-text-primary: #e6edf3;
  --theme-text-secondary: #8b98a8;
  --theme-label-color: #c9d6e2;
  --theme-input-bg: #0d131a;
  --theme-input-border: #2a3848;
  --theme-input-text: #e6edf3;
  --theme-input-placeholder: #667789;
  --theme-input-option-bg: #0f1620;
  --theme-input-option-text: #e6edf3;
  --surface-base: #0b0f14;
  --surface-panel: #111821;
  --surface-panel-muted: #0f151d;
  --surface-panel-strong: #16212c;
  --surface-accent: #1b2a38;
  --surface-hover: #172332;
  --surface-overlay: rgba(8, 12, 18, 0.82);
  --surface-elevated: rgba(17, 24, 33, 0.98);
  --surface-code-bg: #070b12;
  --surface-code-text: #e4edf8;
  --surface-terminal-bg: #070b12;
  --surface-terminal-text: #d7ffea;
  --surface-table-head: rgba(22, 33, 44, 0.72);
  --surface-table-row: rgba(9, 13, 18, 0.58);
  --surface-table-row-hover: rgba(88, 166, 255, 0.08);
  --surface-selected: rgba(88, 166, 255, 0.12);
  --surface-border: #263241;
  --surface-border-strong: #3a4a5c;
  --control-inset-highlight: rgba(255, 255, 255, 0.04);
  --accent-primary: #58a6ff;
  --accent-primary-strong: #79b8ff;
  --accent-primary-bg: #102235;
  --accent-primary-border: rgba(88, 166, 255, 0.36);
  --focus-ring: rgba(88, 166, 255, 0.18);
  --text-primary: #e6edf3;
  --text-secondary: #a2afbf;
  --text-muted: #778698;
  --text-strong: var(--text-primary);
  --text-inverse: #06111d;
  --link-hover: #c6e1ff;
  --success-border: rgba(63, 185, 80, 0.32);
  --success-bg: rgba(63, 185, 80, 0.12);
  --success-text: #b8f2c2;
  --warning-border: rgba(210, 153, 34, 0.36);
  --warning-bg: rgba(210, 153, 34, 0.12);
  --warning-text: #ffe2a4;
  --danger-border: rgba(248, 81, 73, 0.36);
  --danger-bg: rgba(248, 81, 73, 0.12);
  --danger-text: #ffd4d2;
  --info-border: rgba(88, 166, 255, 0.28);
  --info-bg: rgba(88, 166, 255, 0.1);
  --info-text: #c9e3ff;
  --button-primary-bg: var(--accent-primary);
  --button-primary-hover-bg: var(--accent-primary-strong);
  --button-primary-text: #06111d;
  --button-secondary-bg: transparent;
  --button-secondary-hover-bg: rgba(88, 166, 255, 0.08);
  --button-secondary-hover-text: #ffffff;
  --button-warning-bg: #d29922;
  --button-warning-hover-bg: #e4ad36;
  --button-warning-text: #161007;
  --button-success-bg: #3fb950;
  --button-success-hover-bg: #58d46a;
  --button-success-text: #06120a;
  --button-danger-hover-text: #fff1f2;
  --badge-info-text: #cfe4ff;
  --badge-success-text: #d5f7e5;
  --badge-danger-text: #ffe4e6;
  --badge-muted-bg: rgba(119, 134, 152, 0.08);
  --badge-muted-border: rgba(119, 134, 152, 0.24);
  --badge-muted-text: #a9b6c5;
  --scrollbar-thumb: rgba(119, 134, 152, 0.5);
  --scrollbar-track: transparent;
  --shadow-panel: 0 16px 36px rgba(0, 0, 0, 0.18);
  --shadow-modal: 0 24px 90px rgba(0, 0, 0, 0.42);
  --app-frame-bg:
    linear-gradient(rgba(38, 50, 65, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 50, 65, 0.13) 1px, transparent 1px),
    linear-gradient(180deg, #0b0f14 0%, #080b10 100%);
  --app-sidebar-bg: rgba(13, 19, 26, 0.98);
  --app-mobilebar-bg: rgba(13, 19, 26, 0.98);
  --panel-bg: rgba(17, 24, 33, 0.96);
  --panel-soft-bg: rgba(15, 21, 29, 0.98);
  --sidebar-user-bg: #121a24;
  --sidebar-label: #93a4b8;
  --sidebar-label-active: #d7ebff;
  --sidebar-link: #edf2f7;
  --sidebar-link-hover: #ffffff;
  --sidebar-link-active-bg: #102235;
  --sidebar-link-active: #d7ebff;
  --login-panel-bg: rgba(17, 24, 33, 0.98);
  --login-brand-bg: linear-gradient(180deg, #111821 0%, #0d131a 100%);
  --table-row-text: #edf2f7;
  --ops-strip-bg: rgba(9, 13, 18, 0.68);
  --device-toolbar-bg:
    linear-gradient(135deg, rgba(88, 166, 255, 0.08), transparent 38%),
    rgba(15, 21, 29, 0.96);
  --device-console-card-bg:
    linear-gradient(90deg, rgba(88, 166, 255, 0.055), transparent 36%),
    rgba(8, 14, 18, 0.92);
  --device-console-card-hover-bg:
    linear-gradient(90deg, rgba(88, 166, 255, 0.12), transparent 42%),
    rgba(10, 17, 22, 0.96);
  --device-form-section-bg: rgba(9, 13, 18, 0.38);
  --field-search-bg: var(--theme-input-bg);
  --field-search-text: var(--theme-input-text);
  --field-search-placeholder: var(--theme-input-placeholder);
  --theme-swatch-black-border: #506178;
  --theme-swatch-black-bg:
    radial-gradient(circle at 68% 32%, #58a6ff 0 12%, transparent 13%),
    linear-gradient(135deg, #030712, #1e293b);
  --theme-swatch-white-border: #cbd5e1;
  --theme-swatch-white-bg:
    radial-gradient(circle at 50% 50%, #ffffff 0 28%, transparent 30%),
    linear-gradient(135deg, #f8fafc, #dbeafe);
}

html.theme-white,
html[data-theme="white"],
body.theme-white,
body[data-theme="white"],
body.theme-lithy,
body[data-theme="lithy"] {
  color-scheme: light;
  --theme-text-primary: #0f172a;
  --theme-text-secondary: #475569;
  --theme-label-color: #1e293b;
  --theme-input-bg: rgba(255, 255, 255, 0.96);
  --theme-input-border: rgba(148, 163, 184, 0.55);
  --theme-input-text: #0f172a;
  --theme-input-placeholder: #64748b;
  --theme-input-option-bg: #ffffff;
  --theme-input-option-text: #0f172a;
  --surface-base: #eef3f8;
  --surface-panel: #ffffff;
  --surface-panel-muted: #f7fafc;
  --surface-panel-strong: #e7edf4;
  --surface-accent: #dbeafe;
  --surface-hover: #eef6ff;
  --surface-overlay: rgba(15, 23, 42, 0.22);
  --surface-elevated: rgba(255, 255, 255, 0.98);
  --surface-code-bg: #f8fafc;
  --surface-code-text: #0f172a;
  --surface-terminal-bg: #0b1220;
  --surface-terminal-text: #d7ffea;
  --surface-table-head: #edf3f9;
  --surface-table-row: #ffffff;
  --surface-table-row-hover: #f1f7ff;
  --surface-selected: #e7f2ff;
  --surface-border: #d7e0ea;
  --surface-border-strong: #a9b7c7;
  --control-inset-highlight: rgba(15, 23, 42, 0.04);
  --accent-primary: #0f67b1;
  --accent-primary-strong: #0b4f8c;
  --accent-primary-bg: #e6f2ff;
  --accent-primary-border: rgba(15, 103, 177, 0.34);
  --focus-ring: rgba(15, 103, 177, 0.16);
  --text-primary: #0f172a;
  --text-secondary: #44546a;
  --text-muted: #65758a;
  --text-strong: var(--text-primary);
  --text-inverse: #ffffff;
  --link-hover: #073c68;
  --success-border: rgba(22, 163, 74, 0.28);
  --success-bg: rgba(22, 163, 74, 0.1);
  --success-text: #176c34;
  --warning-border: rgba(180, 83, 9, 0.28);
  --warning-bg: rgba(245, 158, 11, 0.13);
  --warning-text: #8a4a09;
  --danger-border: rgba(220, 38, 38, 0.28);
  --danger-bg: rgba(220, 38, 38, 0.09);
  --danger-text: #991b1b;
  --info-border: rgba(14, 116, 144, 0.26);
  --info-bg: rgba(14, 165, 233, 0.1);
  --info-text: #0f5e72;
  --button-primary-bg: var(--accent-primary);
  --button-primary-hover-bg: var(--accent-primary-strong);
  --button-primary-text: #ffffff;
  --button-secondary-bg: #ffffff;
  --button-secondary-hover-bg: #eaf4ff;
  --button-secondary-hover-text: #0b4f8c;
  --button-warning-bg: #b45309;
  --button-warning-hover-bg: #92400e;
  --button-warning-text: #ffffff;
  --button-success-bg: #15803d;
  --button-success-hover-bg: #166534;
  --button-success-text: #ffffff;
  --button-danger-hover-text: #7f1d1d;
  --badge-info-text: #0f5e72;
  --badge-success-text: #176c34;
  --badge-danger-text: #991b1b;
  --badge-muted-bg: rgba(100, 116, 139, 0.1);
  --badge-muted-border: rgba(100, 116, 139, 0.28);
  --badge-muted-text: #475569;
  --scrollbar-thumb: rgba(100, 116, 139, 0.45);
  --scrollbar-track: rgba(226, 232, 240, 0.75);
  --shadow-panel: 0 14px 32px rgba(15, 23, 42, 0.08);
  --shadow-modal: 0 24px 70px rgba(15, 23, 42, 0.18);
  --app-frame-bg:
    linear-gradient(rgba(148, 163, 184, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, #f6f9fc 0%, #e9eff6 100%);
  --app-sidebar-bg: rgba(255, 255, 255, 0.98);
  --app-mobilebar-bg: rgba(255, 255, 255, 0.98);
  --panel-bg: rgba(255, 255, 255, 0.96);
  --panel-soft-bg: rgba(247, 250, 252, 0.98);
  --sidebar-user-bg: #f2f6fb;
  --sidebar-label: #64748b;
  --sidebar-label-active: #0f4d78;
  --sidebar-link: #172033;
  --sidebar-link-hover: #07111f;
  --sidebar-link-active-bg: #e6f2ff;
  --sidebar-link-active: #0f4d78;
  --login-panel-bg: rgba(255, 255, 255, 0.98);
  --login-brand-bg: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%);
  --table-row-text: #172033;
  --ops-strip-bg: rgba(255, 255, 255, 0.88);
  --device-toolbar-bg:
    linear-gradient(135deg, rgba(14, 103, 177, 0.1), transparent 38%),
    rgba(255, 255, 255, 0.96);
  --device-console-card-bg:
    linear-gradient(90deg, rgba(14, 103, 177, 0.07), transparent 36%),
    rgba(255, 255, 255, 0.94);
  --device-console-card-hover-bg:
    linear-gradient(90deg, rgba(14, 103, 177, 0.13), transparent 42%),
    rgba(248, 251, 255, 0.98);
  --device-form-section-bg: rgba(255, 255, 255, 0.72);
  --field-search-bg: #ffffff;
  --field-search-text: #0f172a;
  --field-search-placeholder: #475569;
}

html[data-theme="white"] .text-white,
body[data-theme="white"] .text-white,
html[data-theme="white"] .text-slate-100,
body[data-theme="white"] .text-slate-100,
html[data-theme="white"] .text-slate-200,
body[data-theme="white"] .text-slate-200,
html[data-theme="white"] .text-gray-100,
body[data-theme="white"] .text-gray-100,
html[data-theme="white"] .text-gray-200,
body[data-theme="white"] .text-gray-200 {
  color: var(--text-primary) !important;
}

html[data-theme="white"] .text-slate-300,
body[data-theme="white"] .text-slate-300,
html[data-theme="white"] .text-slate-400,
body[data-theme="white"] .text-slate-400,
html[data-theme="white"] .text-slate-500,
body[data-theme="white"] .text-slate-500,
html[data-theme="white"] .text-gray-300,
body[data-theme="white"] .text-gray-300,
html[data-theme="white"] .text-gray-400,
body[data-theme="white"] .text-gray-400,
html[data-theme="white"] [class*="text-slate-300"],
body[data-theme="white"] [class*="text-slate-300"],
html[data-theme="white"] [class*="text-slate-400"],
body[data-theme="white"] [class*="text-slate-400"],
html[data-theme="white"] [class*="text-slate-500"],
body[data-theme="white"] [class*="text-slate-500"] {
  color: var(--text-muted) !important;
}

html[data-theme="white"] .bg-slate-950,
body[data-theme="white"] .bg-slate-950,
html[data-theme="white"] .bg-slate-900,
body[data-theme="white"] .bg-slate-900,
html[data-theme="white"] .bg-slate-800,
body[data-theme="white"] .bg-slate-800,
html[data-theme="white"] .bg-gray-950,
body[data-theme="white"] .bg-gray-950,
html[data-theme="white"] .bg-gray-900,
body[data-theme="white"] .bg-gray-900,
html[data-theme="white"] .bg-gray-800,
body[data-theme="white"] .bg-gray-800,
html[data-theme="white"] [class*="bg-slate-950"],
body[data-theme="white"] [class*="bg-slate-950"],
html[data-theme="white"] [class*="bg-slate-900"],
body[data-theme="white"] [class*="bg-slate-900"],
html[data-theme="white"] [class*="bg-slate-800"],
body[data-theme="white"] [class*="bg-slate-800"],
html[data-theme="white"] [class*="bg-gray-950"],
body[data-theme="white"] [class*="bg-gray-950"],
html[data-theme="white"] [class*="bg-gray-900"],
body[data-theme="white"] [class*="bg-gray-900"],
html[data-theme="white"] [class*="bg-gray-800"],
body[data-theme="white"] [class*="bg-gray-800"] {
  background-color: var(--surface-panel) !important;
}

html[data-theme="white"] .border-slate-800,
body[data-theme="white"] .border-slate-800,
html[data-theme="white"] .border-slate-700,
body[data-theme="white"] .border-slate-700,
html[data-theme="white"] .border-gray-800,
body[data-theme="white"] .border-gray-800,
html[data-theme="white"] .border-gray-700,
body[data-theme="white"] .border-gray-700,
html[data-theme="white"] [class*="border-slate-800"],
body[data-theme="white"] [class*="border-slate-800"],
html[data-theme="white"] [class*="border-slate-700"],
body[data-theme="white"] [class*="border-slate-700"],
html[data-theme="white"] [class*="border-slate-600"],
body[data-theme="white"] [class*="border-slate-600"],
html[data-theme="white"] [class*="border-gray-800"],
body[data-theme="white"] [class*="border-gray-800"],
html[data-theme="white"] [class*="border-gray-700"],
body[data-theme="white"] [class*="border-gray-700"],
html[data-theme="white"] [class*="border-white"],
body[data-theme="white"] [class*="border-white"] {
  border-color: var(--surface-border) !important;
}

html[data-theme="white"] [class*="text-emerald"],
body[data-theme="white"] [class*="text-emerald"] {
  color: var(--success-text) !important;
}

html[data-theme="white"] [class*="text-rose"],
body[data-theme="white"] [class*="text-rose"] {
  color: var(--danger-text) !important;
}

html[data-theme="white"] [class*="bg-emerald"],
body[data-theme="white"] [class*="bg-emerald"] {
  background-color: var(--success-bg) !important;
}

html[data-theme="white"] [class*="bg-rose"],
body[data-theme="white"] [class*="bg-rose"] {
  background-color: var(--danger-bg) !important;
}

html[data-theme="black"] .bg-white,
body[data-theme="black"] .bg-white {
  background-color: var(--surface-panel) !important;
}

html[data-theme="black"] .text-black,
body[data-theme="black"] .text-black,
html[data-theme="black"] .text-slate-900,
body[data-theme="black"] .text-slate-900 {
  color: var(--text-primary) !important;
}

html.theme-ready body,
html.theme-ready .app-frame,
html.theme-ready .app-sidebar-panel,
html.theme-ready .app-mobilebar,
html.theme-ready .content-panel,
html.theme-ready .stat-card,
html.theme-ready .panel-link,
html.theme-ready .sidebar-system-theme,
html.theme-ready .sidebar-theme-toggle,
html.theme-ready .sidebar-theme-choice,
html.theme-ready .theme-choice-icon,
html.theme-ready .tag-chip,
html.theme-ready .form-input,
html.theme-ready .primary-button,
html.theme-ready .secondary-button,
html.theme-ready .warning-button,
html.theme-ready .success-button,
html.theme-ready .danger-button,
html.theme-ready .data-table th,
html.theme-ready .data-table td {
  transition: background 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

@media (prefers-reduced-motion: reduce) {
  html.theme-ready body,
  html.theme-ready .app-frame,
  html.theme-ready .app-sidebar-panel,
  html.theme-ready .app-mobilebar,
  html.theme-ready .content-panel,
  html.theme-ready .stat-card,
  html.theme-ready .panel-link,
  html.theme-ready .sidebar-system-theme,
  html.theme-ready .sidebar-theme-toggle,
  html.theme-ready .sidebar-theme-choice,
  html.theme-ready .theme-choice-icon,
  html.theme-ready .tag-chip,
  html.theme-ready .form-input,
  html.theme-ready .primary-button,
  html.theme-ready .secondary-button,
  html.theme-ready .warning-button,
  html.theme-ready .success-button,
  html.theme-ready .danger-button,
  html.theme-ready .data-table th,
  html.theme-ready .data-table td {
    transition: none;
  }
}

.troubleshooting-hero {
  background: transparent;
  border-radius: 0;
  padding-bottom: 0.95rem;
}

.troubleshooting-tool-tabs {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  margin-top: 0.65rem;
}

.troubleshooting-tool-tab {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: var(--surface-panel-muted);
  color: var(--text-primary);
  display: grid;
  gap: 0.2rem;
  min-height: 3.8rem;
  padding: 0.72rem 0.8rem;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.troubleshooting-tool-tab:hover {
  border-color: var(--accent-primary-border);
  background: var(--surface-hover);
  color: var(--sidebar-link-hover);
}

.troubleshooting-tool-tab span {
  font-size: 0.9rem;
  font-weight: 700;
}

.troubleshooting-tool-tab small {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.troubleshooting-tool-tab-active {
  border-color: var(--accent-primary-border);
  background: var(--accent-primary-bg);
  color: var(--accent-primary-strong);
  box-shadow: inset 3px 0 0 var(--accent-primary);
}

.troubleshooting-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.75fr);
  margin-top: 1rem;
}

.troubleshooting-command-panel,
.troubleshooting-result-panel {
  background: var(--panel-bg);
}

.troubleshooting-insight-panel {
  background: var(--panel-soft-bg);
}

.troubleshooting-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.troubleshooting-form-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.troubleshooting-run-button {
  width: fit-content;
}

.troubleshooting-result-panel {
  margin-top: 1rem;
}

.troubleshooting-result-summary {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin-top: 1rem;
}

.troubleshooting-result-summary div {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: var(--surface-panel-muted);
  min-width: 0;
  padding: 0.75rem;
}

.troubleshooting-result-summary span {
  color: var(--text-muted);
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.troubleshooting-result-summary strong {
  color: var(--text-primary);
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
}

.troubleshooting-output pre {
  color: var(--surface-code-text);
  max-height: 34rem;
  overflow: auto;
  white-space: pre-wrap;
}

@media (max-width: 980px) {
  .troubleshooting-layout,
  .troubleshooting-form-grid {
    grid-template-columns: 1fr;
  }

  .troubleshooting-run-button {
    width: 100%;
  }
}

.network-topology-shell {
  min-height: calc(100vh - 2rem);
}

.topology-heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.topology-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.topology-workbench {
  --topology-dot: rgba(116, 175, 196, 0.35);
  --topology-panel: rgba(7, 14, 19, 0.94);
  --topology-border: rgba(57, 105, 124, 0.52);
  border: 1px solid var(--topology-border);
  border-radius: 14px;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
  min-height: 680px;
  overflow: hidden;
  position: relative;
  background: #05090d;
}

.topology-workbench-full {
  min-height: calc(100vh - 190px);
}

.topology-dev-shell {
  min-height: calc(100vh - 2rem);
}

.topology-dev-workbench {
  min-height: calc(100vh - 190px);
  border: 1px solid rgba(57, 105, 124, 0.52);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(8, 23, 19, 0.76), transparent 34%),
    #05090d;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(1.2rem, 4vw, 3rem);
}

.topology-dev-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(116, 175, 196, 0.35) 1px, transparent 1px);
  background-size: 22px 22px;
}

.topology-dev-map {
  position: absolute;
  inset: 8%;
}

.topology-dev-node {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(4.8rem, 13vw, 8.6rem);
  height: clamp(2.8rem, 7vw, 4.6rem);
  border: 1px solid rgba(49, 210, 123, 0.82);
  border-radius: 10px;
  background: rgba(8, 23, 19, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  color: #eafff2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.topology-dev-node-core {
  left: 8%;
  top: 18%;
}

.topology-dev-node-edge {
  right: 10%;
  top: 26%;
}

.topology-dev-node-pop {
  bottom: 14%;
  left: 24%;
}

.topology-dev-path {
  position: absolute;
  z-index: 0;
  height: 3px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    rgba(49, 210, 123, 0.86) 0 16px,
    transparent 16px 27px
  );
  box-shadow: 0 0 14px rgba(49, 210, 123, 0.2);
  transform-origin: left center;
}

.topology-dev-path-a {
  left: 21%;
  top: 30%;
  width: 52%;
  transform: rotate(7deg);
}

.topology-dev-path-b {
  left: 20%;
  top: 57%;
  width: 42%;
  transform: rotate(-34deg);
}

.topology-dev-pulse {
  position: absolute;
  z-index: 2;
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid #eafff2;
  border-radius: 999px;
  background: #31d27b;
  box-shadow: 0 0 0 8px rgba(49, 210, 123, 0.12);
  animation: topologyDevPulse 2.4s ease-in-out infinite;
}

.topology-dev-pulse-a {
  left: 51%;
  top: 28%;
}

.topology-dev-pulse-b {
  bottom: 36%;
  left: 38%;
  animation-delay: 0.8s;
}

.topology-dev-bot {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 0.36rem;
  transform: translateY(-1.2rem);
  animation: topologyDevBotFloat 4s ease-in-out infinite;
}

.topology-dev-bot-antenna {
  width: 2px;
  height: 1.2rem;
  background: rgba(121, 184, 255, 0.82);
}

.topology-dev-bot-antenna::before {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  margin-left: -0.23rem;
  border-radius: 999px;
  background: #79b8ff;
  box-shadow: 0 0 18px rgba(121, 184, 255, 0.72);
  content: "";
}

.topology-dev-bot-head,
.topology-dev-bot-body {
  border: 1px solid rgba(88, 166, 255, 0.48);
  background: rgba(10, 24, 34, 0.96);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
}

.topology-dev-bot-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  width: clamp(5.8rem, 18vw, 8rem);
  height: clamp(3.7rem, 10vw, 5rem);
  border-radius: 1rem;
}

.topology-dev-bot-head span {
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 999px;
  background: #31d27b;
  box-shadow: 0 0 18px rgba(49, 210, 123, 0.7);
}

.topology-dev-bot-body {
  display: grid;
  gap: 0.42rem;
  width: clamp(4.9rem, 15vw, 6.8rem);
  min-height: 3.4rem;
  border-radius: 0.75rem;
  padding: 0.8rem;
}

.topology-dev-bot-line {
  height: 0.36rem;
  border-radius: 999px;
  background: rgba(121, 184, 255, 0.74);
}

.topology-dev-bot-line-short {
  width: 68%;
}

.topology-dev-panel {
  position: absolute;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 4;
  max-width: min(24rem, calc(100% - 2rem));
  border: 1px solid rgba(57, 105, 124, 0.52);
  border-radius: 10px;
  background: rgba(7, 14, 19, 0.94);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
  padding: 1rem;
}

.topology-dev-panel .topology-panel-title {
  margin-bottom: 0.55rem;
}

.topology-dev-panel strong {
  display: block;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.25;
}

.topology-dev-panel p {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
}

@keyframes topologyDevPulse {
  0%,
  100% {
    opacity: 0.68;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes topologyDevBotFloat {
  0%,
  100% {
    transform: translateY(-1.2rem);
  }
  50% {
    transform: translateY(-1.7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .topology-dev-bot,
  .topology-dev-pulse {
    animation: none;
  }
}

.topology-bg-grid .topology-canvas-grid {
  background-image: radial-gradient(var(--topology-dot) 1px, transparent 1px);
  background-size: 22px 22px;
}

.topology-bg-clean .topology-canvas-grid {
  background: #05090d;
}

.topology-bg-contrast .topology-canvas-grid {
  background-image:
    linear-gradient(rgba(80, 130, 150, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 130, 150, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

.topology-panel-title {
  align-items: center;
  display: flex;
  font-size: 0.72rem;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.topology-panel-title small {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: none;
}

.topology-device-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
  max-height: min(62vh, 620px);
  overflow: auto;
}

.topology-device-option,
.topology-device-doc-link {
  border: 1px solid rgba(58, 108, 128, 0.44);
  border-radius: 8px;
  background: rgba(8, 22, 31, 0.92);
  color: var(--text-primary);
  display: grid;
  gap: 0.18rem;
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.topology-device-drawer-row {
  display: grid;
  gap: 0.35rem;
}

.topology-device-doc-link {
  color: var(--accent-primary-strong);
  font-size: 0.75rem;
  justify-content: start;
  padding-block: 0.45rem;
  text-decoration: none;
}

.topology-device-option span,
.topology-device-option small {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.topology-canvas-wrap {
  min-height: inherit;
  min-width: 0;
  position: relative;
}

.topology-canvas-grid {
  inset: 0;
  overflow: hidden;
  position: absolute;
  touch-action: pan-x pan-y;
}

.topology-link-layer,
.topology-node-layer {
  inset: 0;
  position: absolute;
  transform-origin: 0 0;
}

.topology-node-layer {
  pointer-events: none;
}

.topology-link-layer {
  overflow: visible;
}

.topology-node {
  background: rgba(8, 23, 19, 0.96);
  border: 1px solid rgba(49, 210, 123, 0.9);
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  color: #eafff2;
  cursor: grab;
  display: grid;
  gap: 0.2rem;
  height: 84px;
  overflow: visible;
  padding: 0.9rem;
  position: absolute;
  text-align: left;
  width: 168px;
  z-index: 2;
  pointer-events: auto;
}

.topology-node-label {
  background: #facc15;
  border: 1px solid #111827;
  color: #111827;
  font-size: 0.7rem;
  font-weight: 800;
  left: 50%;
  line-height: 1.1;
  max-width: 180px;
  padding: 0.2rem 0.35rem;
  position: absolute;
  text-align: center;
  top: -2.15rem;
  transform: translateX(-50%);
  white-space: nowrap;
}

.topology-node:active {
  cursor: grabbing;
}

.topology-mode-view .topology-node {
  cursor: pointer;
}

.topology-node-status-up {
  border-color: rgba(49, 210, 123, 0.9);
}

.topology-node-status-warning {
  border-color: rgba(245, 158, 11, 0.95);
}

.topology-node-status-down {
  border-color: rgba(239, 68, 68, 0.95);
  opacity: 0.82;
}

.topology-node-status-maintenance,
.topology-node-status-no_data {
  border-color: rgba(148, 163, 184, 0.85);
}

.topology-mode-view .topology-connector,
.topology-mode-view .topology-node-delete {
  display: none;
}

.topology-mode-view [data-topology-add-device-open],
.topology-mode-view .topology-background-menu,
.topology-mode-view .topology-control-select {
  display: none;
}

.topology-node-delete {
  background: rgba(116, 22, 22, 0.85);
  border: 1px solid rgba(248, 113, 113, 0.7);
  border-radius: 6px;
  color: #fecaca;
  cursor: pointer;
  font-size: 0.68rem;
  padding: 0.2rem 0.35rem;
  position: absolute;
  right: 0.4rem;
  top: 0.4rem;
}

.topology-connector {
  background: #38d996;
  border: 2px solid rgba(233, 255, 247, 0.95);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(56, 217, 150, 0.16);
  cursor: crosshair;
  height: 14px;
  position: absolute;
  width: 14px;
  z-index: 2;
}

.topology-connector-top {
  left: calc(50% - 7px);
  top: -7px;
}

.topology-connector-right {
  right: -7px;
  top: calc(50% - 7px);
}

.topology-connector-bottom {
  bottom: -7px;
  left: calc(50% - 7px);
}

.topology-connector-left {
  left: -7px;
  top: calc(50% - 7px);
}

.topology-node span,
.topology-node small {
  color: #96cdb0;
  font-size: 0.74rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topology-node .topology-node-label {
  color: #111827;
}

.topology-node strong {
  overflow: hidden;
  padding-right: 3.1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topology-link {
  cursor: pointer;
  fill: none;
  stroke: #31d27b;
  stroke-linecap: round;
  stroke-width: 3.5;
}

.topology-draft-link {
  opacity: 0.72;
  pointer-events: none;
  stroke-dasharray: 8 8;
}

.topology-link-physical {
  stroke-width: 3;
}

.topology-link-lag {
  stroke-width: 5;
}

.topology-link-logical {
  stroke-dasharray: 9 7;
}

.topology-link-backup {
  stroke: #f59e0b;
  stroke-dasharray: 3 8;
}

.topology-link-error {
  animation: topologyLinkPulse 1.2s ease-in-out infinite;
  filter: drop-shadow(0 0 7px rgba(248, 81, 73, 0.72));
  stroke: #f85149;
}

.topology-link-base {
  pointer-events: stroke;
}

.topology-link-flow {
  pointer-events: stroke;
}

.topology-flow-source-target {
  animation: topologyFlowDash 1.6s linear infinite;
  stroke-dasharray: 16 10;
}

.topology-flow-target-source {
  animation: topologyFlowDash 1.6s linear infinite reverse;
  opacity: 0.82;
  stroke-dasharray: 10 12;
}

@keyframes topologyFlowDash {
  to {
    stroke-dashoffset: -52;
  }
}

.topology-traffic-label {
  dominant-baseline: middle;
  fill: #1e1b4b;
  font-size: 12px;
  font-weight: 700;
  paint-order: stroke;
  pointer-events: none;
  stroke: #ffffff;
  stroke-linejoin: round;
  stroke-width: 5px;
  text-anchor: middle;
}

.topology-traffic-label-target-source {
  fill: #075985;
}

.topology-link-status-warning {
  filter: drop-shadow(0 0 7px rgba(245, 158, 11, 0.55));
  stroke: #f59e0b;
}

.topology-link-status-down {
  opacity: 0.72;
  stroke: #ef4444;
  stroke-dasharray: 8 8;
}

.topology-link-status-maintenance {
  opacity: 0.78;
  stroke: #64748b;
  stroke-dasharray: 12 8;
}

.topology-link-status-no_data {
  opacity: 0.68;
  stroke: #94a3b8;
  stroke-dasharray: 4 8;
}

@keyframes topologyLinkPulse {
  0%,
  100% {
    opacity: 0.72;
    stroke-width: 3.5;
  }
  50% {
    opacity: 1;
    stroke-width: 5.5;
  }
}

.topology-editor-controls {
  align-items: center;
  background: rgba(5, 12, 17, 0.95);
  border: 1px solid #214a5a;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: calc(100% - 2rem);
  padding: 0.6rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 4;
}

.topology-filter-bar {
  display: flex;
  gap: 0.5rem;
  left: 1rem;
  max-width: min(760px, calc(100% - 2rem));
  position: absolute;
  top: 1rem;
  z-index: 4;
}

.topology-filter-bar .form-input {
  min-height: 2.35rem;
}

.topology-side-panel {
  background: rgba(7, 14, 19, 0.96);
  border-left: 1px solid rgba(57, 105, 124, 0.58);
  bottom: 0;
  color: var(--text-secondary);
  max-width: min(380px, 90vw);
  padding: 1rem;
  position: absolute;
  right: 0;
  top: 0;
  width: 360px;
  z-index: 3;
}

.topology-side-panel-content {
  display: grid;
  gap: 0.65rem;
}

.topology-detail-card {
  display: grid;
  gap: 0.55rem;
}

.topology-detail-card h3 {
  color: var(--text-primary);
  font-size: 1rem;
  margin: 0;
}

.topology-detail-row {
  align-items: baseline;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding-bottom: 0.35rem;
}

.topology-detail-row span,
.topology-detail-links span {
  color: var(--text-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.topology-detail-row strong {
  color: var(--text-primary);
  font-size: 0.85rem;
  text-align: right;
}

.topology-detail-links ul {
  color: var(--text-secondary);
  display: grid;
  font-size: 0.82rem;
  gap: 0.3rem;
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

.topology-minimap {
  background: rgba(7, 14, 19, 0.78);
  border: 1px solid rgba(57, 105, 124, 0.58);
  border-radius: 8px;
  bottom: 1rem;
  height: 120px;
  left: 1rem;
  overflow: hidden;
  position: absolute;
  width: 180px;
  z-index: 4;
}

.topology-minimap-viewport {
  border: 1px solid rgba(88, 166, 255, 0.85);
  height: 60%;
  left: 20%;
  position: absolute;
  top: 20%;
  width: 60%;
}

@media (max-width: 1180px) {
  .topology-editor-controls {
    left: 1rem;
    justify-content: flex-end;
  }

  .topology-filter-bar {
    flex-wrap: wrap;
    right: 1rem;
    top: 6.25rem;
  }
}

.topology-control-select {
  align-items: center;
  color: var(--text-secondary);
  display: flex;
  font-size: 0.72rem;
  gap: 0.45rem;
}

.topology-control-select .form-input {
  min-height: 2.35rem;
  width: 8.5rem;
}

.topology-background-menu {
  position: relative;
}

.topology-background-menu summary {
  border: 1px solid rgba(88, 166, 255, 0.28);
  border-radius: 7px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.72rem;
  list-style: none;
  padding: 0.55rem 0.7rem;
}

.topology-background-menu summary::-webkit-details-marker {
  display: none;
}

.topology-background-menu[open] .topology-background-picker {
  background: rgba(5, 12, 17, 0.98);
  border: 1px solid #214a5a;
  border-radius: 10px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  padding: 0.45rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 5;
}

.topology-background-picker {
  display: flex;
  gap: 0.35rem;
}

.topology-background-option {
  border: 1px solid rgba(88, 166, 255, 0.28);
  border-radius: 7px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  padding: 0.45rem 0.6rem;
}

.topology-background-option-active {
  background: var(--accent-primary-bg);
  color: var(--accent-primary-strong);
}

.topology-selection-empty,
.topology-selection-card {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.topology-selection-card {
  display: grid;
  gap: 0.5rem;
}

.topology-selection-card strong {
  color: var(--text-primary);
}

.topology-selection-popover {
  background: rgba(7, 14, 19, 0.94);
  border: 1px solid rgba(57, 105, 124, 0.58);
  border-radius: 10px;
  bottom: 6rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  max-width: min(360px, calc(100vw - 3rem));
  padding: 0.9rem;
  position: absolute;
  right: 1rem;
  z-index: 5;
}

.topology-selection-popover[hidden] {
  display: none;
}

.topology-device-drawer {
  align-items: stretch;
  background: rgba(2, 6, 10, 0.64);
  display: flex;
  inset: 0;
  justify-content: flex-start;
  position: absolute;
  z-index: 8;
}

.topology-device-drawer[hidden] {
  display: none;
}

.topology-device-drawer-panel {
  background: rgba(7, 14, 19, 0.98);
  border-right: 1px solid rgba(57, 105, 124, 0.58);
  box-shadow: 24px 0 70px rgba(0, 0, 0, 0.45);
  max-width: min(88vw, 380px);
  padding: 1rem;
  width: 100%;
}

.topology-link-editor {
  align-items: center;
  background: rgba(2, 6, 10, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 80;
}

.topology-link-editor[hidden] {
  display: none;
}

.topology-link-editor-panel {
  background: var(--surface-panel);
  border: 1px solid var(--surface-border-strong);
  border-radius: 12px;
  display: grid;
  gap: 1rem;
  max-width: min(92vw, 640px);
  padding: 1rem;
  width: 100%;
}

.topology-link-editor-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topology-link-editor-status {
  color: var(--info-text);
  font-size: 0.85rem;
}

.topology-link-editor-status-error {
  color: var(--danger-text);
}

body.theme-lithy,
body[data-theme="lithy"] {
  --theme-text-primary: #0f172a;
  --theme-text-secondary: #475569;
  --theme-label-color: #1e293b;
  --theme-input-bg: rgba(255, 255, 255, 0.96);
  --theme-input-border: rgba(148, 163, 184, 0.45);
  --theme-input-text: #0f172a;
  --theme-input-placeholder: #64748b;
  --theme-input-option-bg: #ffffff;
  --theme-input-option-text: #0f172a;
}

body {
  background: var(--surface-base);
  color: var(--text-primary);
  accent-color: var(--accent-primary);
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

body::-webkit-scrollbar,
.app-sidebar-panel::-webkit-scrollbar,
.app-content::-webkit-scrollbar {
  width: 0.7rem;
}

body::-webkit-scrollbar-track,
.app-sidebar-panel::-webkit-scrollbar-track,
.app-content::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

body::-webkit-scrollbar-thumb,
.app-sidebar-panel::-webkit-scrollbar-thumb,
.app-content::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--scrollbar-thumb);
  background-clip: padding-box;
}

body.sidebar-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

body:has(.global-loading-overlay-active) {
  cursor: progress;
}

.global-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background:
    linear-gradient(var(--surface-overlay), var(--surface-overlay)),
    radial-gradient(circle at 50% 45%, rgba(88, 166, 255, 0.14), transparent 38%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.global-loading-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

.global-loading-panel {
  display: flex;
  width: min(92vw, 32rem);
  min-height: 19rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.global-loading-animation {
  display: grid;
  align-items: center;
  justify-content: center;
  width: clamp(15rem, 24vw, 23rem);
  max-width: 86vw;
  aspect-ratio: 455 / 375;
  overflow: visible;
}

.global-loading-animation.hidden {
  display: none;
}

.global-loading-asset {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.global-loading-message {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.global-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.global-confirm-modal-open {
  opacity: 1;
  pointer-events: auto;
}

.global-confirm-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 36%, rgba(88, 166, 255, 0.18), transparent 34rem),
    rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(8px);
}

.global-confirm-panel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  width: min(94vw, 34rem);
  border: 1px solid rgba(88, 166, 255, 0.26);
  border-radius: 0.7rem;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.97), rgba(8, 13, 24, 0.98)),
    linear-gradient(110deg, rgba(59, 130, 246, 0.16), rgba(34, 211, 238, 0.08));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  padding: 1.15rem;
  outline: none;
  transform: translateY(0.6rem) scale(0.98);
  transition: transform 180ms ease;
}

.global-confirm-modal-open .global-confirm-panel {
  transform: translateY(0) scale(1);
}

.global-confirm-icon {
  display: inline-grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(96, 165, 250, 0.42);
  border-radius: 0.62rem;
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
}

.global-confirm-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.global-confirm-modal[data-confirm-variant="danger"] .global-confirm-icon {
  border-color: rgba(251, 113, 133, 0.44);
  background: rgba(244, 63, 94, 0.16);
  color: #fda4af;
}

.global-confirm-modal[data-confirm-variant="warning"] .global-confirm-icon {
  border-color: rgba(251, 191, 36, 0.44);
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
}

.global-confirm-copy {
  min-width: 0;
}

.global-confirm-title {
  margin: 0.18rem 0 0;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.global-confirm-description {
  margin: 0.55rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.global-confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  padding-top: 0.35rem;
}

.request-target-busy {
  position: relative;
  opacity: 0.72;
}

.button-loading {
  cursor: progress;
}

@media (prefers-reduced-motion: reduce) {
  .global-loading-overlay {
    transition: none;
  }

  .topology-flow-source-target,
  .topology-flow-target-source,
  .topology-link-error {
    animation: none;
  }

  .system-update-progress-fill {
    animation: none;
  }
}

.app-frame {
  min-height: 100vh;
  background: var(--app-frame-bg);
  background-size: 48px 48px, 48px 48px, auto;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: min(88vw, 320px);
  transform: translateX(-105%);
  transition: transform 0.28s ease;
}

.app-sidebar-panel {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 1rem;
  border-right: 1px solid var(--surface-border);
  background: var(--app-sidebar-bg);
  box-shadow: 18px 0 52px rgba(0, 0, 0, 0.34);
  padding: 1.15rem 0.85rem 1rem;
}

.sidebar-brand-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  width: min(100%, 14.25rem);
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.sidebar-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 14.25rem);
  height: 3.45rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  padding: 0;
}

.sidebar-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.app-main {
  min-width: 0;
  width: 100%;
  background: transparent;
}

.app-content {
  padding: 1.15rem;
}

.app-mobilebar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-bottom: 1px solid var(--surface-border);
  background: var(--app-mobilebar-bg);
  padding: 1rem 1.25rem;
}

.mobile-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.mobile-brand-logo {
  width: 2.65rem;
  flex-shrink: 0;
}

.sidebar-toggle-button,
.sidebar-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: var(--surface-panel-muted);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.sidebar-toggle-button:hover,
.sidebar-close-button:hover {
  border-color: var(--surface-border-strong);
  background: var(--surface-hover);
}

@media (prefers-reduced-motion: reduce) {
  .app-sidebar,
  .sidebar-backdrop,
  .sidebar-toggle-button,
  .sidebar-close-button,
  .sidebar-section-label,
  .sidebar-section-links,
  .sidebar-row-link {
    transition: none;
  }
}

.sidebar-user-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--surface-border);
  border-radius: 0.55rem;
  background: var(--sidebar-user-bg);
  padding: 0.7rem 0.75rem;
}

.sidebar-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.45rem;
  background: #58a6ff;
  color: #06111d;
  font-size: 0.95rem;
  font-weight: 700;
  overflow: hidden;
}

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

.sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  padding-right: 0.15rem;
  scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
  height: 0;
  width: 0;
}

.sidebar-section {
  display: grid;
  gap: 0.12rem;
}

.sidebar-section > summary {
  cursor: pointer;
  list-style: none;
}

.sidebar-section > summary::-webkit-details-marker {
  display: none;
}

.sidebar-section-label,
.sidebar-inline-label {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  color: var(--sidebar-label);
  display: flex;
  font-size: 0.68rem;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: 0.16em;
  min-height: 1.9rem;
  padding: 0.32rem 0.45rem;
  text-transform: uppercase;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sidebar-section-links {
  display: grid;
  gap: 0.16rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-0.2rem);
  transform-origin: top;
  transition:
    max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease,
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.34s;
  visibility: hidden;
  will-change: max-height, opacity, transform;
}

.sidebar-section[open] > .sidebar-section-links {
  max-height: 52rem;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
  visibility: visible;
}

.sidebar-section-toggle-icon {
  align-items: center;
  display: inline-flex;
  height: 1rem;
  justify-content: center;
  margin-left: 0.45rem;
  width: 1rem;
}

.sidebar-section-toggle-icon::before {
  border-bottom: 0.24rem solid transparent;
  border-left: 0.34rem solid currentColor;
  border-top: 0.24rem solid transparent;
  content: "";
  opacity: 0.72;
  transform-origin: center;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.sidebar-section[open] > .sidebar-section-label .sidebar-section-toggle-icon::before {
  opacity: 1;
  transform: rotate(90deg);
}

.sidebar-inline-links {
  display: grid;
  gap: 0.16rem;
}

.sidebar-section:hover > .sidebar-section-label,
.sidebar-section:focus-within > .sidebar-section-label,
.sidebar-section[open] > .sidebar-section-label,
.sidebar-section:has(.sidebar-row-link-active) > .sidebar-section-label {
  border-color: rgba(88, 166, 255, 0.16);
  background: rgba(88, 166, 255, 0.06);
  color: var(--sidebar-label-active);
}

.sidebar-inline-group {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.sidebar-inline-label {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.sidebar-row-link {
  display: flex;
  min-height: 2.4rem;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  color: var(--sidebar-link);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
  padding: 0.52rem 0.7rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sidebar-row-link:hover {
  background: rgba(88, 166, 255, 0.07);
  color: var(--sidebar-link-hover);
}

.sidebar-row-link-active {
  border-color: rgba(88, 166, 255, 0.24);
  background: var(--sidebar-link-active-bg);
  color: var(--sidebar-link-active);
  box-shadow: inset 3px 0 0 var(--accent-primary);
}

.sidebar-row-link-sub {
  min-height: 2.35rem;
  padding-left: 1.1rem;
  color: #dce5f0;
  font-size: 0.84rem;
}

.sidebar-collapse-parent {
  display: grid;
  gap: 0.35rem;
}

.sidebar-collapse-parent > summary {
  cursor: pointer;
  list-style: none;
}

.sidebar-collapse-parent > summary::-webkit-details-marker {
  display: none;
}

.sidebar-collapse-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.sidebar-submenu {
  display: grid;
  gap: 0.25rem;
  padding-left: 1.25rem;
}

.sidebar-submenu-nested {
  padding-left: 0.8rem;
}

.sidebar-row-link-nested {
  min-height: 2.1rem;
  padding-left: 0.95rem;
  font-size: 0.8rem;
}

.sidebar-row-icon {
  display: inline-flex;
  width: 1.2rem;
  min-width: 1.2rem;
  height: 1.2rem;
  justify-content: center;
  align-items: center;
  color: #76b7ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.sidebar-row-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  overflow: visible;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--surface-border);
  padding-top: 0.85rem;
}

.sidebar-system-theme {
  display: grid;
  gap: 0.42rem;
  margin-top: 0.35rem;
  padding: 0.2rem 0.12rem 0.15rem;
}

.sidebar-system-theme-label {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  padding-left: 0.28rem;
  text-transform: uppercase;
}

.sidebar-theme-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.18rem;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: var(--surface-panel-muted);
  box-shadow: inset 0 1px 0 var(--control-inset-highlight);
  padding: 0.18rem;
}

.sidebar-theme-choice {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 0.36rem;
  justify-content: center;
  line-height: 1;
  min-height: 2rem;
  outline: 0;
  padding: 0 0.55rem;
  white-space: nowrap;
}

.sidebar-theme-choice:hover {
  background: var(--surface-hover);
  color: var(--sidebar-link-hover);
}

.sidebar-theme-choice:focus-visible {
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.sidebar-theme-choice.theme-choice-active {
  border-color: var(--accent-primary-border);
  background: var(--surface-panel);
  color: var(--accent-primary-strong);
  box-shadow: var(--shadow-panel);
}

.sidebar-language-row {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  justify-content: space-between;
  margin-top: 0.55rem;
  padding: 0.18rem 0.12rem 0.05rem;
}

.sidebar-language-switcher {
  align-items: center;
  background: var(--surface-panel-muted);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 var(--control-inset-highlight);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.12rem;
  padding: 0.12rem;
}

.sidebar-language-choice {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-secondary);
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 900;
  height: 1.5rem;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  min-width: 2rem;
  padding: 0 0.42rem;
  text-decoration: none;
}

.sidebar-language-choice:hover {
  background: var(--surface-hover);
  color: var(--sidebar-link-hover);
}

.sidebar-language-choice:focus-visible {
  box-shadow: 0 0 0 3px var(--focus-ring);
  outline: 0;
}

.sidebar-language-choice-active {
  background: var(--surface-panel);
  border-color: var(--accent-primary-border);
  color: var(--accent-primary-strong);
}

.theme-choice-icon {
  display: inline-flex;
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 0.7rem;
  border-radius: 999px;
}

.theme-choice-icon-black {
  border: 1px solid var(--theme-swatch-black-border);
  background: var(--theme-swatch-black-bg);
}

.theme-choice-icon-white {
  border: 1px solid var(--theme-swatch-white-border);
  background: var(--theme-swatch-white-bg);
}

.sidebar-theme-choice.theme-choice-active .theme-choice-icon {
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.sidebar-logout-link {
  width: 100%;
  justify-content: flex-start;
  margin-top: 0.45rem;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  border: 0;
  background: rgba(9, 10, 12, 0.62);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

body.sidebar-open .app-sidebar {
  transform: translateX(0);
}

body.sidebar-open .sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.page-shell {
  display: grid;
  gap: 0.95rem;
}

.page-header {
  display: grid;
  gap: 0.48rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--surface-border);
}

.page-header-row,
.panel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.page-eyebrow {
  color: var(--accent-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-title {
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.15;
}

.page-description {
  max-width: 72rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.content-panel {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: var(--panel-bg);
  box-shadow: var(--shadow-panel);
  padding: 1rem;
}

.content-panel-soft {
  background: var(--panel-soft-bg);
}

.content-panel-hero {
  display: grid;
  gap: 0.85rem;
  min-height: 100%;
}

.content-panel-title {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
}

.content-panel-description {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.55;
}

.system-update-progress {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--surface-border);
  border-radius: 0.65rem;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(8, 13, 24, 0.94)),
    linear-gradient(115deg, rgba(59, 130, 246, 0.16), rgba(34, 211, 238, 0.08));
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.26);
  color: var(--text-secondary);
  overflow: hidden;
  padding: 1rem;
}

.system-update-progress-shell {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.system-update-actions {
  display: grid;
  gap: 0.85rem;
  width: 100%;
}

.system-update-actions form {
  justify-self: start;
}

.system-update-progress-workbench {
  margin-top: 0.15rem;
}

.system-update-progress-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(17rem, 0.72fr);
  gap: 1rem;
  align-items: start;
}

.system-update-progress-main {
  min-width: 0;
}

.system-update-progress-aside {
  min-width: 0;
  border-left: 1px dashed rgba(148, 163, 184, 0.18);
  padding-left: 1rem;
}

.system-update-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  z-index: -1;
}

.system-update-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.system-update-progress-title {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.system-update-progress-percent {
  color: var(--text-primary);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.system-update-progress-track {
  margin-top: 0.65rem;
  position: relative;
  height: 0.78rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.system-update-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #22d3ee, #38bdf8, #2563eb);
  background-size: 200% 100%;
  transition: width 700ms cubic-bezier(0.22, 0.7, 0.34, 1);
  animation: system-update-progress-shine 7s linear infinite;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 22px rgba(34, 211, 238, 0.22);
}

.system-update-progress-label {
  margin-top: 0.8rem;
  margin-bottom: 0;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.system-update-progress-message {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.system-update-progress[data-update-progress-state="running"] {
  border-color: rgba(59, 130, 246, 0.42);
}

.system-update-step-list {
  margin-top: 0;
  padding-top: 0;
  display: grid;
  gap: 0.55rem;
}

.system-update-step {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  color: var(--text-muted);
  font-size: 0.77rem;
  transition: color 240ms ease;
}

.system-update-step p {
  margin: 0.16rem 0 0;
  color: var(--text-muted);
  line-height: 1.35;
  font-size: 0.75rem;
}

.system-update-step strong {
  color: var(--text-secondary);
  font-size: 0.79rem;
}

.system-update-step-marker {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--surface-border);
  background: rgba(15, 23, 42, 0.74);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.system-update-step-active {
  color: var(--text-secondary);
}

.system-update-step-active .system-update-step-marker,
.system-update-step-complete .system-update-step-marker {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(37, 99, 235, 0.28);
  color: #dbeafe;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

.system-update-step-complete {
  color: var(--text-secondary);
}

.system-update-step-complete strong {
  color: #dbeafe;
}

.system-update-progress-error .system-update-progress-label,
.system-update-progress-success .system-update-progress-label {
  color: inherit;
}

.system-update-progress-success {
  border-color: rgba(74, 222, 128, 0.45);
  background:
    linear-gradient(180deg, rgba(9, 39, 25, 0.72), rgba(8, 13, 24, 0.88)),
    linear-gradient(90deg, rgba(34, 197, 94, 0.14), rgba(34, 211, 238, 0.08));
}

.system-update-progress-success .system-update-progress-fill {
  background: linear-gradient(90deg, #4ade80, #22d3ee, #4ade80);
}

.system-update-progress-error {
  border-color: rgba(251, 113, 133, 0.48);
  background:
    linear-gradient(180deg, rgba(76, 18, 33, 0.66), rgba(8, 13, 24, 0.88)),
    linear-gradient(90deg, rgba(244, 63, 94, 0.13), rgba(251, 113, 133, 0.08));
}

.system-update-progress-error .system-update-progress-fill {
  background: linear-gradient(90deg, #f43f5e, #fb7185, #f43f5e);
}

.system-update-progress-error .system-update-progress-track {
  background: rgba(244, 63, 94, 0.22);
}

@keyframes system-update-progress-shine {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .system-update-progress-fill {
    animation: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .system-update-progress-grid {
    grid-template-columns: 1fr;
  }

  .system-update-progress-aside {
    border-left: 0;
    border-top: 1px dashed rgba(148, 163, 184, 0.18);
    padding-left: 0;
    padding-top: 0.85rem;
  }
}

.settings-overview-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.settings-hub-card {
  align-content: start;
  display: grid;
  gap: 0.75rem;
  min-height: 11.5rem;
}

.settings-hub-card .panel-heading {
  align-items: start;
  display: grid;
  gap: 0.45rem;
  justify-content: stretch;
  justify-items: start;
}

.settings-hub-card-actions {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.chatnoc-agent-settings-noc {
  --chatnoc-agent-border: rgba(88, 166, 255, 0.22);
}

.chatnoc-agent-settings-noc .page-description {
  max-width: 54rem;
}

.chatnoc-agent-status-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.license-installation-id-copy-row {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.license-installation-id-value {
  width: 100%;
}

.license-installation-id-copy-button {
  white-space: nowrap;
}

.chatnoc-agent-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chatnoc-agent-audit-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chatnoc-agent-filter-form {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(5, 11, 20, 0.28);
  padding: 0.85rem;
}

.chatnoc-agent-filter-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chatnoc-agent-card {
  align-content: start;
  border-color: var(--chatnoc-agent-border);
}

.chatnoc-agent-card-primary {
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(46, 160, 67, 0.06)),
    rgba(17, 24, 33, 0.96);
}

.chatnoc-agent-card > p {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
}

.stack-list {
  display: grid;
  gap: 0.55rem;
}

.stack-list-item {
  display: grid;
  gap: 0.32rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(5, 11, 20, 0.38);
  padding: 0.72rem 0.82rem;
}

.stack-list-item strong {
  color: var(--text-primary);
  font-size: 0.86rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.stack-list-item span {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.chatnoc-agent-conversation-detail {
  border-top: 1px solid rgba(88, 166, 255, 0.14);
  padding-top: 1rem;
}

.conversation-message-list {
  display: grid;
  gap: 0.65rem;
}

.conversation-message {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(2, 6, 14, 0.42);
  padding: 0.8rem 0.9rem;
}

.conversation-message strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.conversation-message p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.conversation-message-assistente {
  border-color: rgba(46, 160, 67, 0.22);
  background: rgba(46, 160, 67, 0.08);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--theme-label-color);
  font-size: 0.78rem;
  font-weight: 600;
}

.form-input {
  width: 100%;
  border-radius: 0.45rem;
  border: 1px solid var(--theme-input-border);
  background: var(--theme-input-bg);
  padding: 0.68rem 0.78rem;
  color: var(--theme-input-text);
  font-size: 0.86rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input::placeholder {
  color: var(--theme-input-placeholder);
}

input.form-input,
select.form-input,
textarea.form-input {
  border-color: var(--theme-input-border) !important;
  background-color: var(--theme-input-bg) !important;
  color: var(--theme-input-text) !important;
}

input.form-input::placeholder,
textarea.form-input::placeholder {
  color: var(--theme-input-placeholder) !important;
  opacity: 1;
}

select.form-input option {
  background-color: var(--theme-input-option-bg);
  color: var(--theme-input-option-text);
}

input.form-input:-webkit-autofill,
input.form-input:-webkit-autofill:hover,
input.form-input:-webkit-autofill:focus,
textarea.form-input:-webkit-autofill,
select.form-input:-webkit-autofill {
  -webkit-text-fill-color: var(--theme-input-text);
  -webkit-box-shadow: 0 0 0 1000px var(--theme-input-bg) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary-border);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-input[data-prefix-invalid="true"] {
  border-color: var(--danger-border) !important;
  box-shadow: 0 0 0 4px rgba(255, 120, 120, 0.12);
}

.form-input[data-prefix-invalid="true"]:focus {
  border-color: var(--danger-border) !important;
  box-shadow: 0 0 0 4px rgba(255, 120, 120, 0.18);
}

.form-field-error {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--danger-text);
}

.form-help {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  min-height: 100%;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.checkbox-field input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent-primary);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.primary-button,
.secondary-button,
.warning-button,
.success-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  border-radius: 0.45rem;
  padding: 0.62rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.primary-button {
  border: 1px solid transparent;
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
}

.primary-button:hover {
  background: var(--button-primary-hover-bg);
}

.secondary-button {
  border: 1px solid var(--surface-border-strong);
  background: var(--button-secondary-bg);
  color: var(--text-primary);
}

.secondary-button:hover {
  border-color: var(--accent-primary-border);
  background: var(--button-secondary-hover-bg);
  color: var(--button-secondary-hover-text);
}

.warning-button {
  border: 1px solid transparent;
  background: var(--button-warning-bg);
  color: var(--button-warning-text);
}

.warning-button:hover {
  background: var(--button-warning-hover-bg);
}

.success-button {
  border: 1px solid transparent;
  background: var(--button-success-bg);
  color: var(--button-success-text);
}

.success-button:hover {
  background: var(--button-success-hover-bg);
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  border: 1px solid var(--danger-border);
  border-radius: 0.45rem;
  background: var(--danger-bg);
  color: var(--danger-text);
  padding: 0.62rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.danger-button:hover {
  border-color: rgba(248, 81, 73, 0.56);
  background: rgba(248, 81, 73, 0.18);
  color: var(--button-danger-hover-text);
}

.accent-link {
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.accent-link:hover {
  color: var(--link-hover);
}

.stat-card {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: var(--surface-panel-muted);
  padding: 1rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 0.75rem;
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 700;
}

.stat-note {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.panel-link {
  display: block;
  border: 1px solid var(--surface-border);
  border-radius: 0.45rem;
  background: var(--surface-panel-muted);
  padding: 0.78rem 0.85rem;
  color: var(--text-primary);
  font-size: 0.86rem;
  transition: all 0.2s ease;
}

.panel-link:hover {
  border-color: rgba(88, 166, 255, 0.35);
  background: var(--surface-hover);
}

.alert {
  border-radius: 0.5rem;
  border: 1px solid;
  padding: 0.95rem 1rem;
  font-size: 0.9rem;
}

.alert-error {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.alert-success {
  border-color: var(--success-border);
  background: var(--success-bg);
  color: var(--success-text);
}

.alert-warning {
  border-color: var(--warning-border);
  background: var(--warning-bg);
  color: var(--warning-text);
}

.alert-info {
  border-color: var(--info-border);
  background: var(--info-bg);
  color: var(--info-text);
}

.license-blocked-notice {
  display: grid;
  gap: 0.32rem;
  line-height: 1.45;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--surface-border);
  border-radius: 0.4rem;
  padding: 0.26rem 0.52rem;
  color: var(--text-secondary);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-header-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-left: auto;
}

.dashboard-version-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.32rem 0.45rem;
  max-width: min(100%, 27rem);
  min-height: 1.9rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.42rem;
  padding: 0.24rem 0.5rem;
  color: var(--text-secondary);
  line-height: 1.2;
  text-align: right;
  text-decoration: none;
}

.dashboard-version-status:hover {
  border-color: var(--accent-primary-border);
  background: var(--accent-primary-bg);
  color: var(--accent-primary-strong);
}

.dashboard-version-status span {
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.dashboard-version-status strong {
  color: var(--text-secondary);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-version-status small {
  color: var(--text-muted);
  font-size: 0.64rem;
}

.dashboard-version-status-warning {
  border-color: var(--warning-border);
  background: var(--warning-bg);
}

.dashboard-version-status-ok {
  border-color: var(--success-border);
  background: var(--success-bg);
}

.tag-chip-button {
  appearance: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-chip-button:hover {
  border-color: var(--accent-primary-border);
  background: var(--accent-primary-bg);
  color: var(--accent-primary-strong);
}

.tag-chip-info {
  border-color: var(--info-border);
  background: var(--info-bg);
  color: var(--badge-info-text);
}

.tag-chip-success {
  border-color: var(--success-border);
  background: var(--success-bg);
  color: var(--badge-success-text);
}

.tag-chip-warning {
  border-color: var(--warning-border);
  background: var(--warning-bg);
  color: var(--warning-text);
}

.tag-chip-danger {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--badge-danger-text);
}

.tag-chip-muted {
  border-color: var(--badge-muted-border);
  background: var(--badge-muted-bg);
  color: var(--badge-muted-text);
}

.empty-state {
  border: 1px dashed var(--surface-border-strong);
  border-radius: 0.5rem;
  padding: 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.qrator-radar-shell {
  gap: 1.25rem;
}

.qrator-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.qrator-identity-grid,
.qrator-mini-grid,
.qrator-security-grid,
.qrator-validation-row {
  display: grid;
  gap: 0.75rem;
}

.qrator-identity-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.qrator-ip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.qrator-mini-grid,
.qrator-security-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: 1rem;
}

.qrator-validation-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.qrator-identity-grid > div,
.qrator-mini-grid > div,
.qrator-security-grid > div,
.qrator-validation-row > div {
  min-width: 0;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.34);
  padding: 0.8rem;
}

.qrator-identity-grid span,
.qrator-mini-grid span,
.qrator-security-grid span,
.qrator-validation-row span {
  display: block;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.qrator-identity-grid strong,
.qrator-mini-grid strong,
.qrator-security-grid strong,
.qrator-validation-row strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-strong);
  font-size: 0.95rem;
  word-break: break-word;
}

.qrator-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  height: 4rem;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.12);
  color: #e0f2fe;
  font-weight: 700;
}

.routing-security-noc {
  gap: 1rem;
}

.routing-security-noc .page-description {
  max-width: 62rem;
}

.routing-security-layout {
  display: grid;
  align-items: start;
  gap: 1rem;
  grid-template-columns: minmax(20rem, 0.72fr) minmax(0, 1.28fr);
}

.routing-security-run-panel,
.routing-security-preview-panel,
.routing-security-irr-panel,
.qrator-radar-noc .content-panel {
  border-color: rgba(88, 166, 255, 0.22);
}

.routing-security-run-panel {
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.08), transparent 38%),
    rgba(17, 24, 33, 0.96);
}

.routing-security-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.routing-security-panel-head .tag-chip {
  flex: 0 0 auto;
}

.routing-security-selector-block {
  margin-top: 1rem;
}

.routing-security-actions {
  border-top: 1px solid var(--surface-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
}

.routing-security-preview-slot {
  min-width: 0;
}

.routing-security-job-strip {
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0;
  margin-top: 1rem;
}

.routing-security-job-strip .tag-chip {
  border-width: 0 1px 0 0;
  border-radius: 0;
  justify-content: flex-start;
  min-height: 2.45rem;
}

.routing-security-job-strip .tag-chip:last-child {
  border-right-width: 0;
}

.routing-security-summary-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.routing-security-summary-card {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(9, 13, 18, 0.64);
  padding: 0.85rem;
}

.routing-security-summary-card p {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.routing-security-summary-card strong {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-primary);
  font-size: 1.45rem;
  line-height: 1.1;
}

.routing-security-summary-card-ok {
  border-color: rgba(52, 211, 153, 0.24);
  background: rgba(16, 185, 129, 0.09);
}

.routing-security-summary-card-warning {
  border-color: rgba(251, 191, 36, 0.26);
  background: rgba(245, 158, 11, 0.1);
}

.routing-security-summary-card-danger {
  border-color: rgba(248, 113, 113, 0.26);
  background: rgba(239, 68, 68, 0.1);
}

.routing-security-irr-panel {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(9, 13, 18, 0.62);
  margin-top: 1rem;
  padding: 0.9rem;
}

.routing-security-irr-report {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(7, 11, 16, 0.74);
  margin-top: 1rem;
  overflow: hidden;
}

.routing-security-irr-report-head {
  border-bottom: 1px solid var(--surface-border);
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
}

.routing-security-irr-report-head p,
.routing-security-irr-table td {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.routing-security-irr-report-head p {
  color: var(--text-primary);
  font-size: 0.86rem;
}

.routing-security-irr-report-head span,
.routing-security-muted {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.routing-security-irr-table-wrap {
  max-height: 32rem;
  overflow: auto;
}

.routing-security-irr-table {
  min-width: 58rem;
}

.routing-security-irr-table thead {
  background: rgba(9, 13, 18, 0.96);
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table-noc.routing-security-irr-table td {
  color: var(--text-secondary);
  white-space: normal;
  word-break: break-word;
}

.routing-security-irr-table th:nth-child(4),
.routing-security-irr-table td:nth-child(4) {
  min-width: 16rem;
}

.routing-security-irr-table th:nth-child(5),
.routing-security-irr-table td:nth-child(5) {
  min-width: 20rem;
}

.routing-security-config-preview {
  margin-top: 1rem;
}

.qrator-radar-noc {
  gap: 1rem;
}

.qrator-radar-noc .page-description {
  max-width: 56rem;
}

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

.qrator-action-row-noc {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(9, 13, 18, 0.56);
  justify-content: flex-start;
  padding: 0.75rem;
}

@media (max-width: 900px) {
  .qrator-ip-grid,
  .qrator-validation-row,
  .routing-security-layout,
  .routing-security-summary-grid {
    grid-template-columns: 1fr;
  }

  .routing-security-panel-head {
    flex-direction: column;
  }
}

.details-card {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(13, 19, 26, 0.98);
  padding: 0.85rem;
}

.details-card summary {
  list-style: none;
}

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

.rpki-dashboard-grid,
.rpki-status-grid {
  display: grid;
  gap: 0.8rem;
}

.rpki-dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.rpki-status-grid {
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.rpki-status-grid > div {
  min-width: 0;
  border: 1px solid var(--surface-border);
  border-radius: 0.45rem;
  background: rgba(15, 23, 42, 0.28);
  padding: 0.75rem;
}

.rpki-status-grid strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-primary);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.rpki-noc-shell {
  gap: 1rem;
}

.rpki-noc-shell .page-description {
  max-width: 58rem;
}

.rpki-dashboard-noc-grid {
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
}

.rpki-dashboard-card,
.rpki-integration-form,
.rpki-service-panel,
.rpki-validation-panel,
.rpki-rtr-table-panel,
.rpki-alert-table-panel,
.rpki-audit-table-panel {
  border-color: rgba(88, 166, 255, 0.22);
}

.rpki-dashboard-card {
  align-content: start;
  display: grid;
  gap: 0.65rem;
  min-height: 10rem;
}

.rpki-dashboard-card:first-child,
.rpki-integration-form {
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.08), transparent 38%),
    rgba(17, 24, 33, 0.96);
}

.rpki-status-grid-noc {
  margin-top: 1rem;
}

.rpki-integration-grid {
  margin-top: 1rem;
}

.rpki-integration-section {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(9, 13, 18, 0.48);
  padding: 0.9rem;
}

.rpki-integration-section .content-panel-title {
  margin-bottom: 0.85rem;
}

.rpki-integration-section .form-label {
  margin-top: 0.75rem;
}

.rpki-integration-section .form-label:first-of-type {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  margin-top: 0;
  min-height: 2rem;
}

.rpki-integration-section input[type="checkbox"] {
  accent-color: var(--accent-primary);
  height: 1rem;
  width: 1rem;
}

.rpki-form-actions {
  border-top: 1px solid var(--surface-border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.rpki-service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.rpki-service-chip-grid,
.rpki-validation-result-grid,
.rpki-alert-severity-grid {
  grid-template-columns: repeat(auto-fit, minmax(8rem, max-content));
  justify-content: start;
}

.rpki-service-chip-grid .tag-chip,
.rpki-validation-result-grid .tag-chip,
.rpki-alert-severity-grid .tag-chip {
  justify-content: center;
  min-height: 2.15rem;
}

.rpki-service-note {
  margin-top: 1rem;
}

.rpki-validation-grid {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

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

.rpki-validation-live-result {
  align-items: center;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(9, 13, 18, 0.42);
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0.85rem;
}

.rpki-validation-live-result strong {
  color: var(--text-primary);
  display: block;
  font-size: 0.9rem;
}

.rpki-validation-live-result .content-panel-description {
  margin: 0.2rem 0 0;
}

.rpki-validation-result-grid {
  margin-top: 1rem;
}

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

.rpki-table {
  min-width: 48rem;
}

.rpki-rtr-table-panel .rpki-table {
  min-width: 62rem;
}

.rpki-table th,
.rpki-table td {
  white-space: nowrap;
}

.rpki-table-title,
.rpki-table-note {
  display: block;
}

.rpki-table-title {
  color: var(--text-primary);
  font-size: 0.84rem;
}

.rpki-table-note {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  white-space: normal;
}

.rpki-table-empty {
  color: var(--text-muted);
  padding: 1rem;
  text-align: center;
}

.rpki-config-preview {
  margin-top: 0.4rem;
}

.rpki-config-preview pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.access-console {
  gap: 1rem;
}

.access-create-panel {
  padding: 0.95rem;
}

.access-create-head,
.access-users-header,
.access-editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.access-create-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.95rem;
}

.access-create-grid > div {
  grid-column: span 2;
}

.access-check-field {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.55rem;
  align-self: end;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.access-check-field input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent-primary);
}

.access-check-field input:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.access-file-input {
  padding: 0.52rem 0.62rem;
}

.access-users-header {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(15, 21, 29, 0.98);
  padding: 0.9rem 1rem;
}

.access-list {
  display: grid;
  gap: 0.65rem;
}

.access-user-row {
  overflow: hidden;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(17, 24, 33, 0.96);
}

.access-user-row[open] {
  border-color: rgba(88, 166, 255, 0.34);
}

.access-user-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  list-style: none;
}

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

.access-user-summary:hover {
  background: rgba(88, 166, 255, 0.06);
}

.access-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  overflow: hidden;
  border: 1px solid rgba(88, 166, 255, 0.28);
  border-radius: 0.45rem;
  background: rgba(88, 166, 255, 0.12);
  color: #d9ebff;
  font-size: 0.96rem;
  font-weight: 800;
}

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

.access-user-main {
  min-width: 0;
}

.access-user-name,
.access-user-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-user-name {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
}

.access-user-meta {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.access-user-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.access-edit-trigger {
  border: 1px solid var(--surface-border-strong);
  border-radius: 0.4rem;
  padding: 0.36rem 0.62rem;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.access-user-row[open] .access-edit-trigger {
  border-color: rgba(88, 166, 255, 0.44);
  background: rgba(88, 166, 255, 0.1);
  color: #d7ebff;
}

.access-user-editor {
  border-top: 1px solid var(--surface-border);
  padding: 0.85rem;
  background: rgba(12, 18, 25, 0.78);
}

.access-edit-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}

.access-edit-grid > div {
  grid-column: span 2;
}

.access-edit-field-wide {
  grid-column: span 3 !important;
}

.access-editor-actions {
  margin-top: 0.85rem;
}

.access-readonly-note {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.admin-users-shell {
  gap: 1rem;
}

.admin-users-primary {
  white-space: nowrap;
}

.button-icon {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.35rem;
  background: rgba(6, 17, 29, 0.14);
  font-weight: 800;
}

.admin-users-summary {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(10.75rem, 1fr));
}

.admin-users-summary.ops-status-strip {
  grid-template-columns: repeat(auto-fit, minmax(10.75rem, 1fr));
  overflow: visible;
}

.admin-users-summary .stat-card {
  min-width: 0;
}

.admin-users-summary .stat-value {
  font-size: 1.65rem;
}

.admin-users-filters {
  display: grid;
  align-items: end;
  gap: 0.75rem;
  grid-template-columns: minmax(14rem, 1.4fr) repeat(3, minmax(9rem, 1fr)) auto;
}

.admin-users-create {
  display: none;
  scroll-margin-top: 1rem;
}

.admin-users-create:target {
  display: block;
}

.admin-users-form {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.admin-users-form-actions {
  display: flex;
  align-items: end;
  gap: 0.5rem;
  justify-content: flex-start;
  align-self: end;
}

.admin-users-table-wrap {
  margin-top: 1rem;
  overflow: visible;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 58rem;
}

.admin-users-table th,
.admin-users-table td {
  border-bottom: 1px solid var(--surface-border);
  padding: 0.75rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.admin-users-table th {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-users-table td {
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.admin-users-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.admin-users-identity strong,
.admin-users-identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-users-identity strong {
  color: var(--text-primary);
  font-size: 0.88rem;
}

.admin-users-identity small {
  margin-top: 0.16rem;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.admin-users-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-users-actions .secondary-button {
  min-height: 2rem;
  padding: 0.38rem 0.58rem;
  font-size: 0.74rem;
}

.admin-users-popover-wrap {
  position: relative;
}

.admin-users-popover-trigger {
  position: relative;
  z-index: 2;
  cursor: pointer;
  list-style: none;
}

.admin-users-popover-trigger::-webkit-details-marker {
  display: none;
}

.admin-users-popover {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 20;
  width: min(20rem, 82vw);
  border: 1px solid rgba(88, 166, 255, 0.26);
  border-radius: 0.5rem;
  background: rgba(12, 18, 25, 0.98);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  opacity: 0;
  padding: 0.85rem;
  pointer-events: none;
  transform: translateY(-0.25rem) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  visibility: hidden;
}

.admin-users-popover-wrap:hover .admin-users-popover,
.admin-users-popover-wrap[open] .admin-users-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.admin-users-popover::before {
  position: absolute;
  top: -0.35rem;
  right: 1.2rem;
  width: 0.7rem;
  height: 0.7rem;
  border-left: 1px solid rgba(88, 166, 255, 0.26);
  border-top: 1px solid rgba(88, 166, 255, 0.26);
  background: rgba(12, 18, 25, 0.98);
  content: "";
  transform: rotate(45deg);
}

.admin-users-popover-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--surface-border);
}

.admin-users-popover-head strong,
.admin-users-popover-head small {
  display: block;
}

.admin-users-popover-head strong {
  color: var(--text-primary);
  font-size: 0.86rem;
}

.admin-users-popover-head small {
  margin-top: 0.12rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-users-popover-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.admin-users-popover-list div {
  min-width: 0;
}

.admin-users-popover-list dt {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-users-popover-list dd {
  margin-top: 0.14rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.admin-users-danger-action {
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.admin-users-danger-action:hover,
.admin-users-danger-action:focus-visible {
  border-color: rgba(248, 81, 73, 0.56);
  background: rgba(248, 81, 73, 0.14);
  color: #fff1f2;
}

.admin-users-edit-row {
  display: none;
  background: rgba(12, 18, 25, 0.58);
}

.admin-users-edit-row:target {
  display: table-row;
}

.admin-users-inline-form {
  margin-top: 0;
}

.preview-box {
  margin-top: 1.25rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: #0c1117;
  padding: 0.85rem;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.preview-actions-tight {
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.route-policy-create-noc {
  gap: 1rem;
}

.route-policy-create-noc .page-description {
  max-width: 58rem;
}

.route-policy-create-layout {
  display: grid;
  gap: 1rem;
}

.route-policy-form-panel {
  border-color: rgba(88, 166, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.06), transparent 36%),
    rgba(17, 24, 33, 0.96);
}

.route-policy-actions-noc {
  border-top: 1px solid var(--surface-border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.route-policy-preview-panel {
  min-width: 0;
}

.config-preview {
  white-space: pre-wrap;
  word-break: break-word;
  color: #dde7f5;
  font-size: 0.86rem;
  line-height: 1.65;
}

.routing-console {
  gap: 1.25rem;
}

.routing-console-noc {
  --routing-noc-border: rgba(88, 166, 255, 0.22);
  gap: 1rem;
}

.routing-console-noc .page-description {
  max-width: 54rem;
}

.routing-console-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.routing-context-badges,
.routing-entry-badges,
.routing-peer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.routing-pill,
.routing-peer-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 1.75rem;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: rgba(9, 13, 18, 0.78);
  color: #dbe6f2;
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 0.32rem 0.68rem;
  overflow-wrap: anywhere;
}

.routing-pill-strong {
  border-color: rgba(88, 166, 255, 0.36);
  background: rgba(88, 166, 255, 0.1);
  color: #d9ecff;
}

.routing-pill-ok {
  border-color: var(--success-border);
  background: var(--success-bg);
  color: var(--success-text);
}

.routing-pill-info {
  border-color: var(--info-border);
  background: var(--info-bg);
  color: var(--info-text);
}

.routing-console-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.routing-query-panel {
  background:
    linear-gradient(90deg, rgba(88, 166, 255, 0.06), rgba(17, 24, 33, 0.96) 44%),
    rgba(17, 24, 33, 0.96);
}

.routing-query-control-panel {
  border-color: var(--routing-noc-border, var(--surface-border));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.routing-panel-kicker,
.routing-terminal-label,
.routing-summary-card span,
.routing-entry-title span,
.routing-entry-facts span {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.routing-form-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 1.25fr) minmax(11rem, 0.72fr) minmax(9rem, 0.52fr) minmax(18rem, 1.2fr) minmax(10rem, auto);
  align-items: end;
  gap: 1rem;
  margin-top: 1.15rem;
}

.engineering-console-layout {
  display: grid;
  gap: 1.25rem;
}

.engineering-console-noc {
  --engineering-noc-border: rgba(88, 166, 255, 0.22);
  gap: 1rem;
}

.engineering-console-noc .page-description {
  max-width: 58rem;
}

.engineering-query-topbar {
  width: 100%;
}

.engineering-query-control-panel {
  border-color: var(--engineering-noc-border, var(--surface-border));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.engineering-form-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 1.1fr) minmax(13rem, 0.82fr) minmax(18rem, 1.24fr) minmax(10rem, auto);
  align-items: end;
  gap: 1rem;
  margin-top: 1.15rem;
}

.engineering-submit-button {
  width: auto;
  min-width: 10rem;
}

.engineering-results-stack {
  gap: 0.95rem;
}

.engineering-result-summary,
.engineering-section-panel {
  border-color: var(--engineering-noc-border, var(--surface-border));
}

.engineering-edit-panel-noc {
  border-radius: 0.5rem;
}

.routing-field-note {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.routing-field-note-inline {
  margin: 0.25rem 0 0.45rem;
}

.routing-submit-button {
  width: auto;
  min-width: 10rem;
}

.routing-results-stack {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.routing-investigation-panel {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.05), transparent 34%),
    rgba(12, 17, 23, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  padding: 1rem;
}

.routing-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.routing-section-heading h2 {
  margin-top: 0.28rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 800;
}

.routing-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.routing-summary-card {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(9, 13, 18, 0.72);
  padding: 0.82rem;
}

.routing-summary-card strong {
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1.18rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.routing-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.routing-terminal-block {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(58, 74, 92, 0.78);
  border-radius: 0.5rem;
  background:
    linear-gradient(rgba(88, 166, 255, 0.04) 1px, transparent 1px),
    #070b12;
  background-size: 100% 2rem, auto;
}

.routing-terminal-block-muted {
  border-color: var(--surface-border);
  background: #0a1018;
}

.routing-terminal-label {
  border-bottom: 1px solid var(--surface-border);
  background: rgba(22, 33, 44, 0.62);
  padding: 0.72rem 0.85rem;
}

.routing-terminal-block pre {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.9rem;
  color: #e4edf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.84rem;
  line-height: 1.68;
  white-space: pre-wrap;
  word-break: break-word;
}

.routing-summary-output {
  margin-bottom: 1rem;
}

.routing-table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(8, 12, 18, 0.82);
}

.routing-route-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.routing-route-table-noc {
  min-width: 1040px;
}

.routing-route-table th,
.routing-route-table td {
  border-bottom: 1px solid var(--surface-border);
  padding: 0.72rem 0.78rem;
  text-align: left;
  vertical-align: top;
}

.routing-route-table th {
  background: rgba(22, 33, 44, 0.72);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.routing-route-table td {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
}

.routing-as-path-inline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.12rem 0.26rem;
  max-width: 16rem;
  line-height: 1.22;
  white-space: normal;
}

.routing-as-path-inline span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 0.2rem;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  padding: 0 0.12rem;
  cursor: help;
}

.routing-as-path-inline span:hover,
.routing-as-path-inline span:focus-visible {
  background: rgba(14, 165, 233, 0.16);
  color: #bae6fd;
}

.routing-route-table code,
.routing-selected-prefix {
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.routing-route-table tr.is-selected td {
  background: rgba(88, 166, 255, 0.08);
}

.routing-route-table-noc tbody tr:hover td {
  background: rgba(88, 166, 255, 0.045);
}

.routing-circuit-mark {
  display: inline-flex;
  align-items: center;
  max-width: 16rem;
  padding: 0.22rem 0.46rem;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 0.36rem;
  background: rgba(14, 165, 233, 0.1);
  color: #e0f2fe;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.routing-circuit-mark-missing {
  border-color: rgba(234, 179, 8, 0.34);
  background: rgba(234, 179, 8, 0.08);
  color: #fde68a;
}

.routing-circuit-empty {
  color: var(--text-muted);
}

.routing-row-action {
  min-width: 6.5rem;
}

.routing-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.routing-row-explain-action {
  min-width: 5.5rem;
}

.routing-explanation-modal-panel {
  width: min(92vw, 620px);
}

.routing-explanation-body {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.routing-explanation-prefix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(8, 12, 18, 0.72);
  padding: 0.75rem 0.85rem;
}

.routing-explanation-prefix span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.routing-explanation-status {
  justify-self: start;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.1);
  color: var(--text-primary);
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.routing-explanation-status[data-state="best"] {
  border-color: rgba(87, 211, 139, 0.38);
  background: rgba(87, 211, 139, 0.12);
  color: #b7f7ce;
}

.routing-explanation-status[data-state="not_selected"] {
  border-color: rgba(210, 153, 34, 0.42);
  background: rgba(210, 153, 34, 0.12);
  color: #ffe3a3;
}

.routing-explanation-reason {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 800;
}

.routing-explanation-detail {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.routing-explanation-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.6rem;
}

.routing-explanation-fact {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(8, 12, 18, 0.62);
  padding: 0.7rem;
}

.routing-explanation-fact span {
  display: block;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.routing-explanation-fact strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.routing-manipulation-panel {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, rgba(88, 166, 255, 0.05), rgba(17, 24, 33, 0.96) 38%),
    rgba(17, 24, 33, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  padding: 1rem;
}

.routing-manipulation-panel-noc {
  border-color: var(--routing-noc-border, var(--surface-border));
}

.routing-manipulation-workflow {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 0.95fr) minmax(320px, 1fr);
  gap: 1rem;
  align-items: start;
}

.routing-manipulation-workflow.hidden {
  display: none;
}

.routing-selected-route-card,
.routing-manipulation-controls,
.routing-preview-column:empty::before {
  display: block;
  min-width: 0;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(9, 13, 18, 0.58);
  padding: 0.9rem;
}

.routing-manipulation-controls {
  display: grid;
  gap: 0.95rem;
}

.routing-preview-column {
  min-width: 0;
}

.routing-preview-column:empty::before {
  content: "O preview da manipulacao aparece aqui depois de adicionar a rota selecionada.";
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.routing-selected-prefix {
  margin-top: 0.4rem;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.routing-selected-facts,
.routing-object-query-form,
#routing-manipulation-preview-form,
.routing-apply-preview-form,
.routing-object-query-result,
.routing-preview-result {
  display: grid;
  gap: 0.8rem;
}

.routing-selected-facts {
  margin-top: 0.9rem;
}

.routing-selected-facts span {
  display: block;
  border: 1px solid var(--surface-border);
  border-radius: 0.45rem;
  background: rgba(9, 13, 18, 0.72);
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 0.65rem;
  overflow-wrap: anywhere;
}

.routing-preview-block {
  overflow: hidden;
  border: 1px solid rgba(58, 74, 92, 0.78);
  border-radius: 0.5rem;
  background: #070b12;
}

.routing-preview-block pre {
  margin: 0;
  overflow-x: auto;
  padding: 0.9rem;
  color: #e4edf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.84rem;
  line-height: 1.68;
  white-space: pre-wrap;
  word-break: break-word;
}

.routing-entry-list {
  display: grid;
  gap: 1rem;
}

.routing-entry-card {
  overflow: hidden;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(8, 12, 18, 0.82);
}

.routing-entry-header {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  gap: 1rem;
  align-items: start;
  border-bottom: 1px solid var(--surface-border);
  background: linear-gradient(90deg, rgba(88, 166, 255, 0.1), rgba(15, 21, 29, 0.78));
  padding: 1rem;
}

.routing-entry-title {
  min-width: 0;
}

.routing-entry-title h3 {
  margin-top: 0.38rem;
  color: var(--text-primary);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.routing-entry-title p {
  margin-top: 0.32rem;
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.86rem;
}

.routing-entry-badges {
  justify-content: flex-end;
}

.routing-entry-body {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.routing-entry-facts {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.routing-entry-facts > div {
  min-width: 0;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(15, 21, 29, 0.62);
  padding: 0.76rem;
}

.routing-entry-facts strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-primary);
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.routing-peer-chip {
  margin-top: 0.45rem;
  border-radius: 0.42rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.routing-empty-panel {
  min-height: 11rem;
}

.page-shell-noc {
  gap: 1rem;
}

.ops-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: var(--ops-strip-bg);
  overflow: hidden;
}

.ops-status-item {
  display: grid;
  gap: 0.25rem;
  border-right: 1px solid var(--surface-border);
  padding: 0.72rem 0.85rem;
  min-width: 0;
}

.ops-status-item:last-child {
  border-right: 0;
}

.ops-status-item span,
.ops-metric-label,
.ops-summary-label {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ops-status-item strong {
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-metric-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 13.5rem));
  justify-content: start;
}

.ops-metric-card {
  min-width: 0;
  display: grid;
  gap: 0.42rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(15, 21, 29, 0.98);
  padding: 0.95rem;
}

.ops-metric-card-ok {
  border-color: var(--success-border);
  background: linear-gradient(180deg, rgba(63, 185, 80, 0.1), rgba(15, 21, 29, 0.96));
}

.ops-metric-card-alert {
  border-color: var(--warning-border);
  background: linear-gradient(180deg, rgba(210, 153, 34, 0.12), rgba(15, 21, 29, 0.96));
}

.ops-metric-value {
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}

.ops-metric-note {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.35;
}

.metric-tile {
  display: grid;
  min-width: 6.5rem;
  gap: 0.35rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(15, 21, 29, 0.88);
  padding: 0.75rem 0.85rem;
}

.metric-tile-danger {
  border-color: var(--danger-border);
  background: linear-gradient(180deg, rgba(248, 81, 73, 0.1), rgba(15, 21, 29, 0.88));
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.metric-value {
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1.4rem;
  line-height: 1;
}

.ops-dashboard-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.7fr);
}

.dashboard-console-noc {
  --dashboard-noc-border: rgba(88, 166, 255, 0.22);
}

.ops-shortcuts-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(20rem, 0.78fr) minmax(0, 1.22fr);
}

.ops-summary-panel-noc,
.ops-jobs-panel-noc {
  border-color: var(--dashboard-noc-border);
}

.ops-jobs-panel-noc {
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.06), transparent 38%),
    rgba(17, 24, 33, 0.96);
}

.ops-jobs-table-wrap {
  margin-top: 0.75rem;
  overflow-x: auto;
}

.ops-jobs-table {
  min-width: 760px;
}

.ops-command-grid {
  display: grid;
  gap: 0.65rem;
}

.ops-command-link {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.45rem;
  background: rgba(13, 19, 26, 0.98);
  padding: 0.78rem 0.85rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ops-command-link:hover {
  border-color: rgba(88, 166, 255, 0.45);
  background: rgba(88, 166, 255, 0.08);
  transform: translateX(2px);
}

.ops-command-link-primary {
  border-color: rgba(88, 166, 255, 0.48);
  background: rgba(88, 166, 255, 0.12);
}

.ops-command-code {
  color: var(--accent-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ops-command-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.ops-command-copy strong {
  color: var(--text-primary);
  font-size: 0.92rem;
}

.ops-command-copy small {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.ops-health-list,
.ops-summary-stack,
.ops-summary-list {
  display: grid;
  gap: 0.65rem;
}

.ops-health-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  border: 1px solid var(--surface-border);
  border-radius: 0.45rem;
  background: var(--surface-panel-muted);
  padding: 0.7rem 0.75rem;
}

.ops-health-row strong {
  color: var(--text-primary);
  font-size: 0.86rem;
}

.ops-health-row p {
  margin-top: 0.18rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.35;
}

.ops-state-dot {
  width: 0.58rem;
  height: 0.58rem;
  margin-top: 0.28rem;
  border-radius: 9999px;
  background: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.1);
}

.ops-health-row-ok .ops-state-dot {
  background: #3fb950;
  box-shadow: 0 0 0 4px rgba(63, 185, 80, 0.12);
}

.ops-health-row-warning .ops-state-dot {
  background: #d29922;
  box-shadow: 0 0 0 4px rgba(210, 153, 34, 0.12);
}

.ops-health-row-info .ops-state-dot {
  background: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.12);
}

.ops-summary-stack {
  margin-top: 0.8rem;
}

.ops-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.55rem 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.ops-summary-row strong {
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ops-empty-line {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.device-register-shell {
  gap: 1rem;
}

.device-register-strip {
  grid-template-columns: 1.15fr 0.8fr 0.7fr 1fr;
}

.device-snmp-result {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 0.8fr 1.2fr;
}

.device-register-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}

.device-register-form {
  display: grid;
  gap: 1rem;
}

.device-form-section {
  display: grid;
  gap: 0.85rem;
  border: 1px solid rgba(58, 74, 92, 0.62);
  border-radius: 0.5rem;
  background: var(--device-form-section-bg);
  padding: 0.95rem;
}

.device-form-section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding-bottom: 0.72rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.device-section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(88, 166, 255, 0.28);
  border-radius: 0.45rem;
  background: rgba(88, 166, 255, 0.08);
  color: var(--accent-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.76rem;
  font-weight: 700;
}

.device-form-section h3 {
  color: var(--text-primary);
  font-size: 0.94rem;
  font-weight: 700;
}

.device-form-section p {
  margin-top: 0.18rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.38;
}

.device-form-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.device-backup-settings {
  display: grid;
  gap: 0.8rem;
}

.device-backup-toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 700;
}

.device-backup-toggle-row input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent-primary);
}

.device-backup-frequency {
  max-width: 22rem;
}

.device-backup-status {
  display: grid;
  gap: 0.28rem;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 0.45rem;
  background: rgba(88, 166, 255, 0.06);
  padding: 0.62rem 0.72rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.35;
}

.device-backup-status strong {
  color: var(--text-primary);
}

.device-backup-page-shell {
  gap: 1rem;
}

.device-backup-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.device-backup-overview-panel,
.device-backup-history-panel {
  display: grid;
  gap: 1rem;
}

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

.device-backup-table td {
  vertical-align: top;
}

.device-backup-table td strong,
.device-backup-history-row strong {
  display: block;
  color: var(--text-primary);
}

.device-backup-table td span,
.device-backup-history-row span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.device-backup-empty {
  color: var(--text-muted);
  text-align: center;
}

.device-backup-action-form {
  display: flex;
  justify-content: flex-end;
}

.device-backup-row-actions,
.device-backup-history-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.device-backup-run-button,
.device-backup-view-button {
  min-height: 2.15rem;
  white-space: nowrap;
}

.device-backup-detail-shell,
.device-backup-content-panel {
  gap: 1rem;
}

.device-backup-meta-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.device-backup-config-view {
  max-height: 68vh;
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 0.45rem;
  background: rgba(2, 6, 14, 0.72);
  padding: 1rem;
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.device-backup-history-list {
  display: grid;
  gap: 0.65rem;
}

.device-backup-history-row {
  display: grid;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.56);
  padding: 0.85rem;
}

.device-backup-history-row p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.device-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  border-top: 1px solid var(--surface-border);
  padding-top: 1rem;
}

.device-register-aside {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

.device-flow-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.device-inventory-shell {
  gap: 1rem;
}

.device-inventory-noc {
  --device-console-accent: rgba(88, 166, 255, 0.22);
}

.device-inventory-noc .page-description {
  max-width: 54rem;
}

.device-inventory-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.device-inventory-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.device-fleet-area {
  display: grid;
  gap: 0.75rem;
}

.device-fleet-toolbar {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: var(--device-toolbar-bg);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
  padding: 0.85rem 0.95rem;
}

.device-fleet-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: min(100%, 30rem);
}

.device-fleet-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  width: min(100%, 24rem);
  min-height: 2.35rem;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 0.45rem;
  background: var(--field-search-bg);
  color: var(--field-search-text);
  padding: 0 0.75rem;
}

.device-fleet-search input,
.device-fleet-search input[type="search"],
.device-fleet-search input[data-history-search],
.device-fleet-search input[data-inventory-search],
.device-fleet-search input[data-documentation-search] {
  appearance: none;
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--field-search-text) !important;
  caret-color: var(--field-search-text) !important;
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 1 !important;
  outline: 0;
  text-shadow: none !important;
  -webkit-text-fill-color: var(--field-search-text) !important;
}

.device-fleet-search input::placeholder,
.device-fleet-search input[type="search"]::placeholder,
.device-fleet-search input[data-history-search]::placeholder,
.device-fleet-search input[data-inventory-search]::placeholder,
.device-fleet-search input[data-documentation-search]::placeholder {
  color: var(--field-search-placeholder) !important;
  opacity: 1 !important;
  -webkit-text-fill-color: var(--field-search-placeholder) !important;
}

.device-fleet-search input::-ms-input-placeholder,
.device-fleet-search input:-ms-input-placeholder {
  color: var(--field-search-placeholder) !important;
  opacity: 1 !important;
}

.device-fleet-search input:-webkit-autofill,
.device-fleet-search input:-webkit-autofill:hover,
.device-fleet-search input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--field-search-text) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--field-search-bg) inset !important;
  box-shadow: 0 0 0 1000px var(--field-search-bg) inset !important;
}

.device-fleet-search input::-webkit-search-decoration,
.device-fleet-search input::-webkit-search-cancel-button {
  filter: none;
}

.device-fleet-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(11, 15, 20, 0.78);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.device-fleet-board {
  background:
    linear-gradient(180deg, rgba(18, 27, 37, 0.76), rgba(8, 12, 17, 0.86)),
    rgba(11, 15, 20, 0.78);
}

.device-fleet-head,
.device-fleet-row-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 1.45fr) minmax(8rem, 0.72fr) minmax(12rem, 0.9fr) minmax(12.5rem, auto);
  gap: 0.65rem;
  align-items: center;
}

.device-fleet-head {
  border-bottom: 1px solid var(--surface-border);
  background: rgba(15, 21, 29, 0.92);
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 0.62rem 0.85rem;
  text-transform: uppercase;
}

.device-fleet-row {
  border-bottom: 1px solid rgba(38, 50, 65, 0.72);
  background:
    linear-gradient(90deg, rgba(88, 166, 255, 0.035), transparent 28%),
    rgba(17, 24, 33, 0.82);
  transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.device-fleet-row:last-of-type {
  border-bottom: 0;
}

.device-fleet-row:hover {
  background:
    linear-gradient(90deg, rgba(88, 166, 255, 0.12), transparent 34%),
    rgba(20, 29, 39, 0.92);
}

.device-fleet-row[open] {
  border-color: rgba(88, 166, 255, 0.26);
  background:
    linear-gradient(90deg, rgba(88, 166, 255, 0.12), transparent 34%),
    rgba(18, 27, 37, 0.96);
}

.device-fleet-row-grid {
  padding: 0.56rem 0.72rem;
}

.device-fleet-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-width: min(100%, 26rem);
}

.device-vendor-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(88, 166, 255, 0.28);
  border-radius: 0.42rem;
  background:
    linear-gradient(145deg, rgba(88, 166, 255, 0.16), rgba(63, 185, 80, 0.08)),
    rgba(9, 13, 18, 0.84);
  color: #a7d4ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.device-name-link {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.device-name-link:hover {
  color: var(--accent-primary-strong);
}

.device-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
  margin-top: 0.16rem;
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.69rem;
}

.device-meta-line span {
  position: relative;
}

.device-meta-line span + span::before {
  content: "/";
  margin-right: 0.55rem;
  color: var(--text-muted);
}

.device-model-summary {
  display: inline-block;
  max-width: min(100%, 34rem);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.device-management-cell {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.device-management-cell strong {
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.device-management-cell span {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.device-status-cluster,
.device-fleet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.device-fleet-actions {
  justify-content: flex-end;
  min-width: 0;
}

.device-service-stack {
  align-items: center;
  gap: 0.34rem;
}

.device-service-stack .tag-chip,
.device-service-probe {
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
  min-height: 1.62rem;
  padding: 0.26rem 0.48rem;
  text-transform: none;
  white-space: nowrap;
}

.device-service-stack .tag-chip-success {
  border-color: rgba(41, 185, 129, 0.44);
  background: rgba(41, 185, 129, 0.12);
  color: #d9fff1;
}

.device-service-stack .tag-chip-danger {
  border-color: rgba(239, 68, 68, 0.54);
  background: rgba(239, 68, 68, 0.14);
  color: #ffe3e3;
}

.device-fleet-actions .primary-button,
.device-fleet-actions .secondary-button {
  min-height: 1.95rem;
  padding: 0.32rem 0.54rem;
  font-size: 0.72rem;
  white-space: nowrap;
}

.device-quick-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.34rem;
}

.device-console-board {
  display: grid;
  gap: 0.55rem;
}

.device-console-board-noc {
  gap: 0.62rem;
}

.device-console-card {
  border: 1px solid rgba(88, 166, 255, 0.16);
  border-radius: 0.42rem;
  background: var(--device-console-card-bg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.device-console-card:hover {
  border-color: rgba(88, 166, 255, 0.36);
  background: var(--device-console-card-hover-bg);
}

.device-console-card[open] {
  border-color: rgba(0, 163, 224, 0.86);
  box-shadow: 0 0 0 1px rgba(0, 163, 224, 0.24), 0 18px 34px rgba(0, 0, 0, 0.22);
}

.device-console-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  min-height: 3.6rem;
  cursor: pointer;
  list-style: none;
  padding: 0.58rem 0.7rem;
}

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

.device-console-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
}

.device-console-identity {
  min-width: 0;
}

.device-console-subtitle,
.device-console-location {
  overflow: hidden;
  margin-top: 0.12rem;
  color: var(--text-secondary);
  font-size: 0.7rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-console-location {
  color: var(--text-muted);
}

.device-console-status-column {
  justify-content: flex-end;
  min-width: 8.2rem;
}

.device-console-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.36rem;
  min-width: 0;
}

.device-console-actions form {
  display: contents;
}

.device-console-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  width: 100%;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 0.28rem;
  background: rgba(8, 12, 17, 0.9);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  padding: 0.36rem 0.55rem;
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.device-console-action:hover,
.device-query-action-active {
  border-color: rgba(88, 166, 255, 0.52);
  background: rgba(88, 166, 255, 0.16);
  color: #e6f7ff;
}

.device-console-action-primary {
  border-color: rgba(88, 166, 255, 0.48);
  background: rgba(88, 166, 255, 0.18);
}

.device-console-primary-action {
  border-color: rgba(88, 166, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.24), rgba(63, 185, 80, 0.1)),
    rgba(10, 17, 22, 0.92);
  color: #eef7ff;
}

.device-console-expanded {
  border-top: 1px solid rgba(88, 166, 255, 0.12);
  background: rgba(4, 9, 13, 0.38);
  padding: 0.62rem 0.7rem 0.7rem;
}

.device-console-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-secondary);
  transition: transform 0.16s ease;
}

.device-console-toggle::before {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.device-console-card[open] .device-console-toggle {
  transform: rotate(180deg);
}

.device-detail-console {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(17rem, 0.78fr);
  gap: 1rem;
  align-items: start;
}

.device-detail-action-grid {
  display: grid;
  gap: 0.42rem;
  margin-top: 1rem;
}

.device-detail-query-action {
  justify-content: space-between;
  min-height: 2.5rem;
  gap: 0.75rem;
  padding: 0.55rem 0.68rem;
  text-align: left;
}

.device-detail-query-action span,
.device-detail-query-action small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-detail-query-action small {
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.network-doc-shell {
  gap: 1rem;
}

.network-doc-overview {
  --network-doc-row-bg: rgba(17, 24, 33, 0.84);
}

.network-doc-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.network-doc-filter-panel {
  padding: 1rem;
}

.network-doc-control-panel {
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.08), rgba(63, 185, 80, 0.04)),
    rgba(15, 21, 29, 0.98);
}

.network-doc-filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(140px, 180px));
  gap: 0.75rem;
  margin-top: 0.85rem;
  align-items: end;
}

.network-doc-filter-field {
  margin: 0;
}

.network-doc-filter-field select {
  min-height: 2.55rem;
  border-radius: 0.45rem;
  font-size: 0.8rem;
}

.network-doc-search {
  width: 100%;
}

.network-doc-board {
  background:
    linear-gradient(180deg, rgba(18, 27, 37, 0.82), rgba(8, 12, 17, 0.9)),
    rgba(11, 15, 20, 0.82);
}

.network-doc-overview-board {
  border-radius: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
}

.network-doc-head,
.network-doc-row-grid {
  display: grid;
  grid-template-columns:
    minmax(14rem, 1.35fr)
    minmax(8rem, 0.78fr)
    minmax(8rem, 0.78fr)
    minmax(5rem, 0.46fr)
    minmax(5rem, 0.46fr)
    minmax(9.5rem, 0.82fr)
    minmax(8rem, 0.68fr)
    minmax(14rem, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.network-doc-head {
  border-bottom: 1px solid var(--surface-border);
  background: rgba(15, 21, 29, 0.94);
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 0.62rem 0.85rem;
  text-transform: uppercase;
}

.network-doc-overview-board .network-doc-head,
.network-doc-overview-board .network-doc-row-grid {
  min-width: 76rem;
}

.network-doc-row {
  border-bottom: 1px solid rgba(38, 50, 65, 0.82);
  background:
    linear-gradient(90deg, rgba(88, 166, 255, 0.05), transparent 30%),
    var(--network-doc-row-bg);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.network-doc-row:last-of-type {
  border-bottom: 0;
}

.network-doc-row:hover {
  background:
    linear-gradient(90deg, rgba(88, 166, 255, 0.13), transparent 34%),
    rgba(20, 29, 39, 0.94);
}

.network-doc-row-grid {
  padding: 0.78rem 0.85rem;
}

.network-doc-actions {
  align-items: center;
  gap: 0.38rem;
}

.network-doc-status-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.network-doc-table-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.network-doc-row-status {
  display: grid;
  gap: 0.24rem;
  justify-items: start;
}

.network-doc-actions .primary-button,
.network-doc-actions .secondary-button {
  min-height: 2.15rem;
  padding: 0.4rem 0.62rem;
  font-size: 0.74rem;
  white-space: nowrap;
}

.network-doc-primary-action {
  min-width: 8.75rem;
}

.network-doc-primary-action:disabled {
  cursor: progress;
  opacity: 0.72;
}

.network-doc-level {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text-secondary);
  text-transform: uppercase;
}

.network-doc-level-empty {
  border-color: rgba(148, 163, 184, 0.28);
  color: #cbd5e1;
}

.network-doc-level-basic {
  border-color: rgba(88, 166, 255, 0.35);
  color: #a7d4ff;
}

.network-doc-level-partial {
  border-color: rgba(251, 191, 36, 0.36);
  color: #fde68a;
}

.network-doc-level-complete {
  border-color: rgba(63, 185, 80, 0.36);
  color: #86efac;
}

.network-doc-level-needs_review {
  border-color: rgba(248, 113, 113, 0.38);
  color: #fca5a5;
}

.network-doc-placeholder {
  display: grid;
  gap: 1rem;
}

.network-doc-dossier,
.network-doc-shell[data-network-doc-dossier] {
  display: grid;
  gap: 1rem;
}

.network-doc-report-hero {
  margin-bottom: 0;
}

.network-doc-report-actions {
  justify-content: flex-end;
}

.network-doc-report-section {
  overflow: hidden;
}

.network-doc-report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.network-doc-report-grid div {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.5rem;
  background: rgba(7, 11, 16, 0.48);
  padding: 0.86rem;
}

.network-doc-report-grid span,
.network-doc-evidence-card > span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.network-doc-report-grid strong {
  color: var(--text-primary);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.network-doc-table-scroll {
  overflow-x: auto;
}

.network-doc-report-table {
  width: 100%;
  min-width: 48rem;
  border-collapse: collapse;
}

.network-doc-report-table th,
.network-doc-report-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0.72rem;
  text-align: left;
  vertical-align: top;
}

.network-doc-report-table th {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.network-doc-report-table td {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.network-doc-evidence-list,
.network-doc-error-list {
  display: grid;
  gap: 0.75rem;
}

.network-doc-evidence-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.5rem;
  background: rgba(7, 11, 16, 0.56);
  padding: 0.85rem;
}

.network-doc-evidence-card strong {
  display: block;
  margin: 0.4rem 0 0.25rem;
  color: var(--text-primary);
  font-size: 0.8rem;
}

.network-doc-evidence-output {
  max-height: 24rem;
  overflow: auto;
  border: 1px solid rgba(88, 166, 255, 0.12);
  border-radius: 0.42rem;
  background: rgba(2, 6, 10, 0.76);
  color: #d8e7f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  line-height: 1.55;
  padding: 0.75rem;
  white-space: pre-wrap;
}

.network-doc-manual-heading {
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.07), rgba(148, 163, 184, 0.04)),
    rgba(15, 21, 29, 0.9);
}

.network-doc-dossier-hero,
.network-doc-shell[data-network-doc-dossier] > .page-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
  gap: 0.9rem;
  align-items: stretch;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 0.5rem;
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.1), transparent 34%),
    rgba(12, 18, 25, 0.92);
  padding: 1rem;
}

.network-doc-dossier-hero h2,
.network-doc-shell[data-network-doc-dossier] > .page-header .page-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.38rem;
  letter-spacing: 0;
}

.network-doc-dossier-hero p,
.network-doc-shell[data-network-doc-dossier] > .page-header .page-description {
  margin: 0.5rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.network-doc-shell[data-network-doc-dossier] > .page-header .page-header-row {
  min-width: 0;
}

.network-doc-shell[data-network-doc-dossier] > .page-header .secondary-button {
  align-self: start;
  justify-self: end;
  white-space: nowrap;
}

.network-doc-context-card,
.network-doc-section[data-doc-inventory-context] {
  display: grid;
  gap: 0.75rem;
  border-color: rgba(148, 163, 184, 0.16);
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, rgba(18, 27, 37, 0.74), rgba(8, 12, 17, 0.88)),
    rgba(8, 12, 17, 0.58);
}

.network-doc-context-card {
  padding: 0.85rem;
}

.network-doc-context-card span,
.network-doc-impact-card span,
[data-doc-impact-card] span,
.network-doc-record span,
.network-doc-section[data-doc-section] .network-doc-summary-grid > div span {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.network-doc-context-card strong,
.network-doc-context-card small {
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.network-doc-action-bar,
[data-doc-operational-summary] .panel-heading .device-status-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.network-doc-action-bar .primary-button,
.network-doc-action-bar .secondary-button,
[data-doc-operational-summary] .panel-heading .device-status-cluster .primary-button,
[data-doc-operational-summary] .panel-heading .device-status-cluster .secondary-button {
  min-height: 2.15rem;
  padding: 0.4rem 0.62rem;
  font-size: 0.74rem;
  white-space: nowrap;
}

.network-doc-impact-grid,
.network-doc-summary-grid[aria-label="Indicadores operacionais"] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.network-doc-impact-card,
[data-doc-impact-card] {
  display: grid;
  gap: 0.38rem;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, rgba(18, 27, 37, 0.7), rgba(8, 12, 17, 0.62)),
    rgba(8, 12, 17, 0.46);
  padding: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.network-doc-impact-card strong,
[data-doc-impact-card] strong {
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.network-doc-impact-card p,
[data-doc-impact-card] p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.network-doc-summary-grid-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.network-doc-record-list,
.network-doc-section[data-doc-section] .network-doc-summary-grid {
  display: grid;
  gap: 0.65rem;
}

.network-doc-record,
.network-doc-section[data-doc-section] .network-doc-summary-grid > div {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.45rem;
  background: rgba(8, 12, 17, 0.42);
  padding: 0.78rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.network-doc-record-muted {
  opacity: 0.88;
}

.network-doc-record strong,
.network-doc-section[data-doc-section] .network-doc-summary-grid > div strong {
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.network-doc-record p,
.network-doc-section[data-doc-section] .network-doc-summary-grid > div p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.network-doc-modal-panel {
  width: min(94vw, 980px);
}

.network-doc-modal-body {
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.network-doc-tabs {
  position: sticky;
  top: 0.75rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(11, 15, 20, 0.94);
  padding: 0.55rem;
}

.network-doc-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 0.42rem;
  background: rgba(17, 24, 33, 0.9);
  padding: 0.35rem 0.62rem;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.network-doc-tabs a:hover {
  border-color: rgba(88, 166, 255, 0.42);
  background: rgba(20, 29, 39, 0.98);
  color: var(--text-primary);
}

.network-doc-section {
  display: grid;
  gap: 0.9rem;
  scroll-margin-top: 6rem;
}

.network-doc-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.network-doc-summary-grid div {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.45rem;
  background: rgba(8, 12, 17, 0.46);
  padding: 0.72rem;
  color: var(--text-primary);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.network-doc-summary-grid div span,
.network-doc-notes span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.network-doc-notes {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.45rem;
  background: rgba(8, 12, 17, 0.42);
  padding: 0.8rem;
}

.network-doc-notes p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.network-doc-edit-form {
  margin-bottom: 1.5rem;
}

.network-doc-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.network-doc-edit-wide {
  grid-column: 1 / -1;
}

.device-edit-form {
  display: block;
  width: 100%;
  text-align: left;
}

.device-edit-modal-panel {
  display: grid;
  width: min(92vw, 900px);
  max-height: 90vh;
  overflow: hidden;
  padding: 0;
}

.device-edit-modal-header,
.device-edit-modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  border-color: var(--surface-border);
  padding: 1rem 1.1rem;
}

.device-edit-modal-header {
  border-bottom: 1px solid var(--surface-border);
  background: rgba(17, 24, 33, 0.98);
}

.device-edit-modal-body {
  display: grid;
  max-height: calc(90vh - 10.5rem);
  overflow-y: auto;
  padding: 1rem;
}

.device-edit-modal-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--surface-border);
  background: rgba(12, 18, 25, 0.98);
}

.device-edit-panel-grid,
.device-edit-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
  gap: 0.75rem;
}

.device-edit-section {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  border: 1px solid rgba(58, 74, 92, 0.42);
  border-radius: 0.45rem;
  background: rgba(9, 13, 18, 0.34);
  padding: 0.78rem;
}

.device-edit-section + .device-edit-section {
  border-top: 1px solid rgba(58, 74, 92, 0.42);
}

.device-edit-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
}

.device-edit-section-head strong {
  color: var(--text-primary);
  font-size: 0.84rem;
}

.device-edit-section-kicker {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.device-edit-model-field {
  grid-column: 1 / -1;
}

.device-edit-section-notes {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.device-edit-section-notes textarea {
  max-height: 8.5rem;
  resize: vertical;
}

.device-edit-section-notes .device-form-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.device-inventory-aside {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

.device-discovery-topbar {
  background:
    linear-gradient(90deg, rgba(88, 166, 255, 0.08), rgba(17, 24, 33, 0.96) 42%),
    rgba(17, 24, 33, 0.96);
}

.device-inventory-control-panel {
  border-color: rgba(88, 166, 255, 0.24);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.device-discovery-grid {
  display: grid;
  grid-template-columns:
    minmax(12rem, 1.1fr)
    minmax(11rem, 0.95fr)
    minmax(9rem, 0.75fr)
    minmax(9rem, 0.75fr)
    minmax(6.5rem, 0.45fr)
    minmax(9rem, 0.72fr)
    minmax(13rem, 1fr)
    minmax(9rem, auto);
  align-items: end;
  gap: 0.85rem;
  margin-top: 1rem;
}

.device-discovery-grid .primary-button {
  width: auto;
  min-width: 9rem;
}

.device-discovery-form {
  display: grid;
  gap: 0.72rem;
  margin-top: 0.8rem;
}

.device-discovery-results {
  display: grid;
  gap: 0.9rem;
}

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

.device-discovery-table th,
.device-discovery-table td {
  padding-right: 1rem;
  vertical-align: middle;
}

.history-list-toolbar {
  margin-top: 0;
}

.history-console-noc {
  --history-noc-border: rgba(88, 166, 255, 0.22);
  gap: 1rem;
}

.history-console-noc .page-description {
  max-width: 62rem;
}

.history-query-panel,
.history-toolbar-noc,
.history-list-row-noc {
  border-color: var(--history-noc-border);
}

.history-query-panel {
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.07), transparent 38%),
    rgba(17, 24, 33, 0.96);
}

.history-filter-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audit-console {
  gap: 1rem;
}

.audit-page-subtitle {
  color: var(--text-secondary);
}

.audit-summary-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.audit-summary-card {
  align-content: start;
  display: grid;
  gap: 0.35rem;
  min-height: 7rem;
  border-color: rgba(88, 166, 255, 0.18);
}

.audit-summary-card strong {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.audit-summary-card .text-muted {
  color: var(--text-secondary) !important;
  line-height: 1.45;
}

.audit-filter-panel {
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.055), transparent 38%),
    var(--panel-bg);
}

.audit-filter-grid {
  align-items: end;
  gap: 0.9rem 1rem;
  grid-template-columns: repeat(3, minmax(13.5rem, 1fr));
}

.audit-filter-panel .form-field {
  display: grid;
  min-width: 0;
}

.audit-filter-panel .form-label {
  margin-bottom: 0.42rem;
  color: var(--theme-label-color);
  font-size: 0.76rem;
  font-weight: 700;
}

.audit-filter-panel .form-input {
  min-height: 2.55rem;
}

.audit-filter-panel .form-actions {
  margin-top: 0.95rem;
}

.audit-export-button {
  border-color: var(--accent-primary-border);
}

.audit-result-toolbar {
  border-color: var(--surface-border);
  background:
    linear-gradient(90deg, rgba(88, 166, 255, 0.04), transparent 42%),
    var(--panel-bg);
  color: var(--text-secondary);
}

.audit-result-toolbar strong {
  color: var(--text-primary);
}

.audit-event-card {
  display: grid;
  align-items: start;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.28fr);
  padding: 1rem;
}

.audit-event-main,
.audit-event-header,
.audit-event-side {
  display: grid;
  min-width: 0;
}

.audit-event-main {
  gap: 0.78rem;
}

.audit-event-header {
  gap: 0.35rem;
}

.audit-event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.audit-event-badge,
.audit-status-badge {
  align-items: center;
  border: 1px solid var(--badge-muted-border);
  border-radius: 999px;
  display: inline-flex;
  min-height: 1.55rem;
  padding: 0.18rem 0.55rem;
  color: var(--badge-muted-text);
  background: var(--badge-muted-bg);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.audit-event-badge-info {
  border-color: var(--info-border);
  background: var(--info-bg);
  color: var(--info-text);
}

.audit-event-badge-warning {
  border-color: var(--warning-border);
  background: var(--warning-bg);
  color: var(--warning-text);
}

.audit-event-badge-critical {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.audit-status-badge-success,
.audit-status-badge-read {
  border-color: var(--success-border);
  background: var(--success-bg);
  color: var(--success-text);
}

.audit-status-badge-failure,
.audit-status-badge-blocked {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.audit-status-badge-pending {
  border-color: var(--warning-border);
  background: var(--warning-bg);
  color: var(--warning-text);
}

.audit-event-title {
  margin: 0;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.audit-event-target {
  margin: 0;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.audit-event-card .text-muted {
  color: var(--text-muted) !important;
}

.audit-event-meta {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.audit-event-meta div {
  min-width: 0;
  border: 1px solid rgba(119, 134, 152, 0.18);
  border-radius: 0.45rem;
  background: rgba(119, 134, 152, 0.06);
  padding: 0.55rem 0.62rem;
}

.audit-event-meta dt {
  margin-bottom: 0.24rem;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.audit-event-meta dd {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.8rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.audit-event-summary,
.audit-technical-details {
  border: 1px solid rgba(119, 134, 152, 0.2);
  border-radius: 0.45rem;
  background: rgba(5, 11, 20, 0.26);
  padding: 0.62rem 0.7rem;
}

.audit-event-summary summary,
.audit-technical-details summary {
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.audit-event-summary p {
  margin: 0.58rem 0 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.audit-event-card .history-preview-summary {
  align-content: start;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: stretch;
  justify-items: end;
}

.audit-event-type {
  max-width: 100%;
  border-color: var(--surface-border);
  color: var(--text-secondary);
}

.audit-event-correlation {
  display: block;
  max-width: 100%;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.audit-technical-details {
  justify-self: stretch;
  width: 100%;
}

.audit-technical-details span {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.audit-empty-state .page-subtitle {
  margin: 0;
  color: var(--text-secondary);
}

html[data-theme="white"] .audit-filter-panel {
  background:
    linear-gradient(135deg, rgba(15, 103, 177, 0.045), transparent 38%),
    var(--panel-bg);
}

html[data-theme="white"] .audit-summary-card,
html[data-theme="white"] .audit-event-card {
  border-color: rgba(148, 163, 184, 0.42);
}

html[data-theme="white"] .audit-result-toolbar {
  background:
    linear-gradient(90deg, rgba(15, 103, 177, 0.04), transparent 42%),
    var(--panel-bg);
}

html[data-theme="white"] .audit-event-card:hover {
  background:
    linear-gradient(90deg, rgba(15, 103, 177, 0.06), transparent 38%),
    var(--panel-bg);
}

html[data-theme="white"] .audit-event-meta div,
html[data-theme="white"] .audit-event-summary,
html[data-theme="white"] .audit-technical-details {
  background: rgba(241, 245, 249, 0.78);
  border-color: rgba(148, 163, 184, 0.42);
}

@media (max-width: 1100px) {
  .audit-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-event-card {
    grid-template-columns: 1fr;
  }

  .audit-event-card .history-preview-summary {
    justify-items: start;
  }

  .audit-event-correlation {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .audit-summary-grid,
  .audit-event-meta {
    grid-template-columns: 1fr;
  }

  .audit-event-card {
    padding: 0.85rem;
  }
}

.history-toolbar-noc {
  background:
    linear-gradient(90deg, rgba(88, 166, 255, 0.05), transparent 42%),
    rgba(13, 19, 26, 0.96);
}

.history-list-stack {
  display: grid;
  gap: 1rem;
}

.history-list-row {
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.history-list-row:hover {
  border-color: rgba(88, 166, 255, 0.32);
  background:
    linear-gradient(90deg, rgba(88, 166, 255, 0.08), transparent 38%),
    rgba(15, 21, 29, 0.98);
}

.history-row-shell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.1rem;
}

.history-row-main {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.history-row-heading {
  display: grid;
  gap: 0.55rem;
}

.history-row-tags,
.history-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.history-row-title {
  overflow-wrap: anywhere;
}

.history-row-meta {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.history-row-meta span {
  color: var(--text-primary);
}

.history-preview-details {
  margin-top: 1rem;
}

.history-preview-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  cursor: pointer;
}

.history-preview-summary span {
  color: var(--text-primary);
  font-weight: 700;
}

.history-preview-summary small {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.history-preview-box {
  margin-top: 0.9rem;
}

.device-vendor-summary {
  margin-top: 0.8rem;
}

.assistant-console-noc {
  --assistant-noc-border: rgba(88, 166, 255, 0.22);
  gap: 1rem;
}

.assistant-console-noc .page-description {
  max-width: 58rem;
}

.assistant-nav-noc {
  border-color: var(--assistant-noc-border);
  padding: 0.7rem;
}

.assistant-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.assistant-metric-grid-admin {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.assistant-metric-card {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  border-color: var(--assistant-noc-border);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.assistant-metric-card:hover {
  border-color: rgba(88, 166, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.08), transparent 42%),
    rgba(17, 24, 33, 0.98);
  transform: translateY(-1px);
}

.assistant-metric-card h2 {
  color: var(--text-primary);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
}

.assistant-metric-card p:not(.page-eyebrow) {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
}

.assistant-overview-grid {
  display: grid;
  gap: 1rem;
}

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

.assistant-overview-panel {
  border-color: var(--assistant-noc-border);
}

.assistant-list-stack {
  display: grid;
  gap: 0.75rem;
}

.assistant-list-card {
  display: grid;
  gap: 0.65rem;
  color: var(--text-primary);
}

.assistant-list-card h3 {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.assistant-list-card p {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
}

.assistant-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.assistant-section-heading {
  margin-bottom: 1rem;
}

.assistant-group-form-grid,
.assistant-equipment-form-grid {
  display: grid;
  gap: 0.85rem;
}

.assistant-group-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.assistant-form-field-wide,
.assistant-form-actions-wide {
  grid-column: 1 / -1;
}

.assistant-form-note {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.assistant-card-grid,
.assistant-equipment-grid,
.assistant-audit-grid {
  display: grid;
  gap: 1rem;
}

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

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

.assistant-group-create-panel,
.assistant-group-metadata-panel,
.assistant-equipment-create-panel,
.assistant-directory-card,
.assistant-equipment-card,
.assistant-skill-card,
.assistant-audit-panel {
  border-color: var(--assistant-noc-border);
}

.assistant-group-create-panel,
.assistant-equipment-create-panel {
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.06), transparent 38%),
    rgba(17, 24, 33, 0.96);
}

.assistant-directory-card,
.assistant-equipment-card,
.assistant-skill-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  color: var(--text-primary);
}

.assistant-directory-card:hover,
.assistant-skill-card:hover {
  border-color: rgba(88, 166, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.07), transparent 42%),
    rgba(17, 24, 33, 0.98);
}

.assistant-directory-card > p,
.assistant-skill-card > p,
.assistant-card-description {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.assistant-key-value-list {
  display: grid;
  gap: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.assistant-key-value-list > div {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  min-width: 0;
}

.assistant-key-value-list dt {
  color: var(--text-muted);
}

.assistant-key-value-list dd {
  color: var(--text-primary);
  overflow-wrap: anywhere;
  text-align: right;
}

.assistant-group-metadata-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.assistant-group-preview {
  margin-top: 1rem;
}

.assistant-danger-zone {
  margin-top: 1rem;
  border-top: 1px solid var(--surface-border);
  padding-top: 1rem;
}

.assistant-danger-zone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.assistant-danger-zone h2 {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.assistant-danger-zone p {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.assistant-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.assistant-checkbox-row input {
  border: 1px solid var(--surface-border-strong);
  border-radius: 0.25rem;
  background: rgba(9, 13, 18, 0.92);
}

.assistant-inline-action,
.assistant-equipment-edit {
  margin-top: 0.85rem;
}

.assistant-equipment-edit summary {
  cursor: pointer;
  color: var(--accent-primary);
  font-size: 0.84rem;
  font-weight: 700;
}

.assistant-equipment-edit-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.assistant-equipment-edit-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.assistant-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.assistant-empty-state {
  border-color: var(--assistant-noc-border);
}

.assistant-audit-stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.assistant-audit-entry pre {
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.assistant-playbook-form-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.assistant-playbook-create-panel,
.assistant-playbook-edit-panel,
.assistant-playbook-preview-panel,
.assistant-flow-panel,
.assistant-learner-panel,
.assistant-system-panel,
.assistant-whatsapp-config-panel {
  border-color: var(--assistant-noc-border);
}

.assistant-playbook-create-panel,
.assistant-playbook-edit-panel,
.assistant-whatsapp-config-panel {
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.06), transparent 38%),
    rgba(17, 24, 33, 0.96);
}

.assistant-playbook-grid,
.assistant-guide-grid,
.assistant-whatsapp-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.assistant-playbook-card,
.assistant-guide-card,
.assistant-whatsapp-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  border-color: var(--assistant-noc-border);
  color: var(--text-primary);
}

.assistant-playbook-card:hover,
.assistant-guide-card:hover,
.assistant-whatsapp-card:hover {
  border-color: rgba(88, 166, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.07), transparent 42%),
    rgba(17, 24, 33, 0.98);
}

.assistant-playbook-card > p,
.assistant-guide-card > p,
.assistant-whatsapp-card > p {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.assistant-guide-card small {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.assistant-flow-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

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

.assistant-flow-card {
  display: grid;
  gap: 0.65rem;
}

.assistant-flow-card h3,
.assistant-system-card h3 {
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.assistant-flow-card p {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
}

.assistant-system-summary-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.assistant-system-summary-card {
  display: grid;
  gap: 0.55rem;
  border-color: var(--assistant-noc-border);
}

.assistant-system-summary-card strong {
  color: var(--text-primary);
  font-size: 1.55rem;
  line-height: 1;
}

.assistant-system-summary-card > p:not(.page-eyebrow) {
  color: var(--text-primary);
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.assistant-system-grid,
.assistant-system-model-grid {
  display: grid;
  gap: 1rem;
}

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

.assistant-system-model-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.assistant-system-card {
  display: grid;
  gap: 0.75rem;
}

.assistant-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.assistant-inline-form > div {
  flex: 1 1 16rem;
}

.assistant-system-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.assistant-removable-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.45rem;
  background: rgba(9, 13, 18, 0.34);
  padding: 0.55rem 0.65rem;
}

.assistant-removable-row span {
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.assistant-preview-box {
  margin-top: 1rem;
}

.bgp-main-shell {
  gap: 1rem;
}

.bgp-main-noc {
  --bgp-noc-border: rgba(88, 166, 255, 0.24);
}

.bgp-main-noc .page-description {
  max-width: 58rem;
}

.bgp-main-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bgp-main-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.45fr);
  align-items: start;
}

.bgp-main-control,
.bgp-main-readiness,
.bgp-whois-panel {
  display: grid;
  gap: 1rem;
}

.bgp-main-control-panel,
.bgp-main-readiness-panel,
.bgp-whois-panel-noc {
  border-color: var(--bgp-noc-border);
}

.bgp-main-control-panel {
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.08), transparent 42%),
    var(--surface-panel);
}

.bgp-main-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.bgp-main-control-box {
  align-content: start;
  display: grid;
  gap: 1rem;
  min-width: 0;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 0.45rem;
  background: rgba(9, 13, 18, 0.38);
  padding: 1rem;
}

.bgp-main-provider-box {
  background:
    linear-gradient(135deg, rgba(46, 160, 67, 0.09), transparent 48%),
    rgba(9, 13, 18, 0.34);
}

.bgp-main-readonly-box {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.45rem;
  background: rgba(2, 6, 23, 0.35);
  padding: 0.9rem;
}

.bgp-main-readiness-panel {
  background:
    linear-gradient(135deg, rgba(46, 160, 67, 0.08), transparent 42%),
    rgba(11, 17, 24, 0.92);
}

.bgp-main-form {
  align-content: start;
  display: grid;
  gap: 0.9rem;
}

.bgp-main-domain-form {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 1rem;
}

.bgp-main-asn-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1.25rem;
  font-weight: 700;
}

.bgp-main-provider-input {
  font-size: 1rem;
  font-weight: 700;
}

.bgp-main-field-help {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.bgp-main-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.bgp-whois-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.bgp-whois-grid-with-raw {
  grid-template-columns: minmax(0, 0.82fr) minmax(22rem, 1.18fr);
  align-items: stretch;
}

.bgp-whois-summary,
.bgp-prefix-stack {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.bgp-prefix-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.bgp-prefix-card {
  padding: 0.72rem;
}

.bgp-prefix-card .panel-heading {
  align-items: center;
  gap: 0.5rem;
}

.bgp-prefix-card .content-panel-title {
  font-size: 0.9rem;
}

.bgp-prefix-card .data-table th,
.bgp-prefix-card .data-table td {
  padding: 0.48rem 0.55rem;
  white-space: nowrap;
}

.bgp-raw-details {
  min-height: 100%;
}

.bgp-raw-details[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100vh - 12rem);
}

.bgp-raw-details[open] .bgp-raw-box {
  height: 100%;
  max-height: none;
  min-height: 0;
}

.bgp-as-name {
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.bgp-whois-mini-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bgp-mini-value {
  margin-top: 0.55rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.bgp-community-shell {
  gap: 1rem;
}

.bgp-community-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bgp-community-admin-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.bgp-community-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: var(--panel-soft-bg);
  padding: 0.3rem;
  width: fit-content;
}

.bgp-community-tab {
  border-radius: 0.38rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.8rem;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease;
}

.bgp-community-tab:hover,
.bgp-community-tab-active {
  background: rgba(88, 166, 255, 0.16);
  color: var(--text-primary);
}

.bgp-community-panel {
  display: grid;
  gap: 1rem;
}

.bgp-community-defaults,
.bgp-community-documentation-panel {
  border-color: rgba(88, 166, 255, 0.24);
}

.bgp-community-default-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.bgp-community-policy-card {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.42);
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
}

.bgp-community-policy-card-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}

.bgp-community-policy-card code,
.bgp-community-value-cell code {
  color: #7ee787;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.bgp-community-policy-card p {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.55;
}

.bgp-community-section-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.bgp-community-filter-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(16rem, 1.4fr) repeat(6, minmax(9rem, 1fr));
}

.bgp-community-search-field {
  min-width: 0;
}

.bgp-community-visible-count {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.bgp-community-admin-list {
  display: grid;
  gap: 0.75rem;
}

.bgp-community-admin-row {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.42);
  overflow: hidden;
}

.bgp-community-admin-row summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(14rem, 1fr) minmax(14rem, 1.2fr) auto;
  list-style: none;
  padding: 0.85rem 0.95rem;
}

.bgp-community-admin-row summary::-webkit-details-marker {
  display: none;
}

.bgp-community-admin-row-main {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
}

.bgp-community-admin-row-main strong {
  color: var(--text-primary);
}

.bgp-community-admin-row-main span:not(.tag-chip) {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.bgp-community-admin-row summary code,
.bgp-community-admin-item code {
  color: #7ee787;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.bgp-community-admin-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.bgp-community-admin-row-body {
  border-top: 1px solid var(--surface-border);
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem 0.95rem;
}

.bgp-community-admin-row-body > p {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
}

.bgp-community-admin-items {
  border-top: 1px solid rgba(88, 166, 255, 0.12);
  display: grid;
}

.bgp-community-admin-item {
  align-items: center;
  border-bottom: 1px solid rgba(88, 166, 255, 0.12);
  display: grid;
  gap: 0.7rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.7rem 0;
}

.bgp-community-admin-item:last-child {
  border-bottom: 0;
}

.bgp-community-admin-item-main {
  align-items: center;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(7.5rem, auto) auto minmax(0, 1fr);
  min-width: 0;
}

.bgp-community-admin-item-main p {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
  min-width: 0;
}

.bgp-community-admin-item-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.bgp-community-admin-item-actions form {
  margin: 0;
}

.bgp-community-delete-button {
  border-color: rgba(248, 81, 73, 0.32);
  color: var(--danger-text);
}

.bgp-community-delete-button:hover {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: #fff;
}

.bgp-community-add-inline {
  justify-self: start;
}

.bgp-community-editor-panel {
  max-width: min(94vw, 46rem);
}

.bgp-community-editor-body {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bgp-community-editor-description {
  grid-column: 1 / -1;
}

.bgp-community-editor-description textarea {
  min-height: 5.5rem;
}

.bgp-community-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
}

.bgp-community-table {
  min-width: 92rem;
}

.bgp-community-table td {
  vertical-align: middle;
}

.bgp-community-table td:nth-child(3) {
  min-width: 20rem;
  white-space: normal;
}

.bgp-community-value-cell {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  white-space: nowrap;
}

.bgp-community-copy-button {
  align-items: center;
  border: 1px solid var(--surface-border);
  border-radius: 0.38rem;
  color: var(--text-secondary);
  display: inline-flex;
  flex: 0 0 auto;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.bgp-community-copy-button:hover,
.bgp-community-copy-button[data-copy-state="copied"] {
  border-color: rgba(46, 160, 67, 0.56);
  color: #7ee787;
}

.bgp-community-copy-button svg {
  height: 1rem;
  width: 1rem;
}

.bgp-community-copy-feedback {
  color: #7ee787;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 3.5rem;
}

.bgp-community-empty {
  display: grid;
  gap: 0.3rem;
  justify-items: start;
}

.bgp-community-section-grid {
  display: grid;
  gap: 0.85rem;
}

.bgp-community-doc-card {
  padding: 0;
  overflow: hidden;
}

.bgp-community-doc-card summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0.95rem 1rem;
}

.bgp-community-doc-card summary::-webkit-details-marker {
  display: none;
}

.bgp-community-doc-card summary span:first-child {
  color: var(--text-primary);
  font-weight: 800;
}

.bgp-community-doc-body {
  border-top: 1px solid var(--surface-border);
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.bgp-community-doc-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.bgp-community-publication-cell {
  min-width: 18rem;
  vertical-align: top !important;
}

.bgp-community-public-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.bgp-community-public-link-actions a,
.bgp-community-public-link-actions button {
  color: #7ee787;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bgp-community-publication-config {
  margin-top: 0.6rem;
}

.bgp-community-publication-config summary {
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
}

.bgp-community-publication-config form {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.bgp-community-publication-config label span {
  color: var(--text-secondary);
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.bgp-community-publication-config textarea {
  min-height: 4.5rem;
}

.bgp-community-check-row {
  align-items: center;
  display: flex;
  gap: 0.45rem;
}

.bgp-community-check-row span {
  margin: 0 !important;
}

.bgp-community-publication-note {
  color: var(--text-muted);
  font-size: 0.72rem;
  margin-top: 0.45rem;
}

.public-bgp-community-body {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 14, 0.98)),
    #020617;
  color: var(--text-primary);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.public-bgp-community-video,
.public-bgp-community-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.public-bgp-community-video {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.public-bgp-community-backdrop {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(2, 6, 14, 0.46), rgba(2, 6, 14, 0.88) 72%, rgba(2, 6, 14, 0.96)),
    radial-gradient(circle at 50% 0%, rgba(88, 166, 255, 0.16), transparent 36rem);
}

.public-bgp-community-page {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
  margin: 0 auto;
  max-width: 940px;
  padding: clamp(1rem, 3vw, 2.2rem);
}

.public-bgp-community-hero {
  align-items: center;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  justify-items: center;
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.public-bgp-community-eyebrow {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  margin: 0 0 0.45rem;
  text-transform: uppercase;
}

.public-bgp-community-provider-name {
  color: #f8fafc;
  font-size: clamp(2.125rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.public-bgp-community-title {
  color: #f8fafc;
  font-size: clamp(1.375rem, 3vw, 2.125rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0.65rem 0 0;
}

.public-bgp-community-asn {
  color: #7ee787;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 800;
  line-height: 1.15;
  margin-top: 0.5rem;
}

.public-bgp-community-description {
  color: #cbd5e1;
  font-size: clamp(0.875rem, 1.7vw, 1rem);
  line-height: 1.6;
  margin: 1.1rem auto 0;
  max-width: 47.5rem;
}

.public-bgp-community-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.public-bgp-community-note,
.public-bgp-community-row {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.64);
}

.public-bgp-community-meta {
  color: #94a3b8;
  font-size: 0.8rem;
  margin: 0;
  text-align: center;
}

.public-bgp-community-note {
  color: #cbd5e1;
  font-size: 0.86rem;
  line-height: 1.55;
  padding: 0.72rem 0.85rem;
  text-align: center;
}

.public-bgp-community-docs {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.public-bgp-community-doc-column {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.public-bgp-community-doc-heading h2 {
  color: #f8fafc;
  font-size: 1.05rem;
  letter-spacing: 0;
  margin: 0;
}

.public-bgp-community-doc-list {
  display: grid;
  gap: 0.7rem;
}

.public-bgp-community-doc-card {
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.5rem;
  overflow: hidden;
}

.public-bgp-community-doc-card summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  list-style: none;
  padding: 0.85rem;
}

.public-bgp-community-doc-card summary::-webkit-details-marker {
  display: none;
}

.public-bgp-community-doc-card summary span:first-child {
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
}

.public-bgp-community-doc-toggle {
  border: solid #94a3b8;
  border-width: 0 2px 2px 0;
  flex: 0 0 auto;
  height: 0.45rem;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  width: 0.45rem;
}

.public-bgp-community-doc-card[open] .public-bgp-community-doc-toggle {
  transform: rotate(225deg);
}

.public-bgp-community-doc-body {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
}

.public-bgp-community-doc-body p {
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
}

.public-bgp-community-list {
  display: grid;
  gap: 0.8rem;
}

.public-bgp-community-row {
  overflow: hidden;
}

.public-bgp-community-row summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
  padding: 0.95rem;
}

.public-bgp-community-row summary::-webkit-details-marker {
  display: none;
}

.public-bgp-community-row-main {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  min-width: 0;
}

.public-bgp-community-row-main strong {
  color: #f8fafc;
}

.public-bgp-community-row-main code,
.public-bgp-community-list-item code {
  color: #7ee787;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 900;
}

.public-bgp-community-row-meta {
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  text-align: right;
}

.public-bgp-community-row-body {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 1rem 1rem;
}

.public-bgp-community-row-body > p {
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

.public-bgp-community-list-items {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: grid;
}

.public-bgp-community-list-item {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  display: grid;
  gap: 0.35rem;
  padding: 0.72rem 0;
}

.public-bgp-community-list-item:last-child {
  border-bottom: 0;
}

.public-bgp-community-list-item-head {
  align-items: center;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: minmax(7.5rem, auto) minmax(0, 1fr) auto;
}

.public-bgp-community-list-item p {
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0;
}

.public-bgp-community-list-item-description {
  min-width: 0;
}

.public-bgp-community-list-item .bgp-community-copy-feedback {
  color: #7ee787;
  font-size: 0.72rem;
  min-height: 0;
}

.bgp-description-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
}

.bgp-raw-box {
  margin-top: 0.8rem;
  max-height: 24rem;
  overflow: auto;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: #090d12;
  padding: 0.85rem;
}

.bgp-raw-box pre {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.45;
}

.asn-diagnostic-shell {
  gap: 1rem;
}

.asn-diagnostic-noc {
  --asn-diagnostic-noc-border: rgba(88, 166, 255, 0.24);
}

.asn-diagnostic-noc .page-description {
  max-width: 62rem;
}

.asn-diagnostic-strip {
  grid-template-columns: minmax(8rem, 0.65fr) minmax(16rem, 1.35fr) repeat(2, minmax(9rem, 0.8fr));
}

.asn-diagnostic-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.72fr);
  align-items: start;
}

.asn-diagnostic-control,
.asn-diagnostic-suggestions,
.asn-diagnostic-overview,
.asn-diagnostic-table-panel {
  display: grid;
  gap: 1rem;
}

.asn-diagnostic-control-panel,
.asn-diagnostic-suggestions-panel,
.asn-diagnostic-noc .bgmap-workbench-priority {
  border-color: var(--asn-diagnostic-noc-border);
}

.asn-diagnostic-control-panel {
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.08), transparent 42%),
    var(--surface-panel);
}

.asn-diagnostic-suggestions-panel {
  background:
    linear-gradient(135deg, rgba(46, 160, 67, 0.08), transparent 42%),
    rgba(11, 17, 24, 0.92);
}

.asn-diagnostic-noc .bgmap-workbench-priority {
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08);
}

.asn-diagnostic-form {
  display: grid;
  gap: 0.85rem;
}

.asn-diagnostic-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1.12rem;
  font-weight: 700;
  text-transform: uppercase;
}

.asn-diagnostic-metrics {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 0.76fr) repeat(2, minmax(0, 1fr));
}

.asn-diagnostic-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(20rem, 0.78fr) minmax(0, 1.12fr);
  align-items: start;
}

.asn-diagnostic-table-panel:last-child {
  grid-column: 1 / -1;
}

.asn-prefix-summary {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.asn-prefix-summary > div,
.asn-prefix-row {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(9, 13, 18, 0.34);
}

.asn-prefix-summary > div {
  display: grid;
  gap: 0.12rem;
  padding: 0.48rem 0.56rem;
}

.asn-prefix-summary span {
  color: var(--text-muted);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.asn-prefix-summary strong {
  color: var(--text-primary);
  font-size: 0.96rem;
  line-height: 1.15;
}

.asn-prefix-list {
  display: grid;
  gap: 0.28rem;
  max-height: clamp(16rem, 42vh, 28rem);
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-color: var(--surface-border-strong) transparent;
  scrollbar-width: thin;
}

.asn-prefix-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.5rem;
}

.asn-prefix-row-known {
  border-color: var(--success-border);
  background: linear-gradient(90deg, rgba(63, 185, 80, 0.09), rgba(9, 13, 18, 0.3) 40%);
}

.asn-prefix-row-new {
  border-color: var(--warning-border);
  background: linear-gradient(90deg, rgba(210, 153, 34, 0.09), rgba(9, 13, 18, 0.3) 40%);
}

.asn-prefix-value {
  min-width: 0;
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.asn-prefix-row .tag-chip {
  padding: 0.16rem 0.34rem;
  font-size: 0.58rem;
  line-height: 1.1;
}

.asn-overview-list {
  display: grid;
  gap: 0.7rem;
}

.asn-overview-list div {
  display: grid;
  gap: 0.22rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.45rem;
  background: rgba(9, 13, 18, 0.34);
  padding: 0.72rem 0.78rem;
}

.asn-overview-list span,
.asn-diff-columns h3 {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.asn-overview-list strong {
  color: var(--text-primary);
  font-size: 0.86rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.asn-diff-columns {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.asn-diff-columns > div {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(9, 13, 18, 0.34);
  padding: 0.85rem;
}

.asn-diff-columns ul {
  display: grid;
  gap: 0.24rem 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin-top: 0.55rem;
  max-height: clamp(13rem, 34vh, 22rem);
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-color: var(--surface-border-strong) transparent;
  scrollbar-width: thin;
  color: var(--text-secondary);
  font-size: 0.72rem;
  line-height: 1.25;
}

.asn-diff-columns li {
  overflow-wrap: anywhere;
}

.bgmap-workbench {
  display: grid;
  gap: 1rem;
}

.bgmap-workbench-priority {
  border: 1px solid rgba(47, 140, 255, 0.26);
  border-radius: 0.55rem;
  background:
    linear-gradient(135deg, rgba(47, 140, 255, 0.11), transparent 32%),
    linear-gradient(180deg, rgba(13, 23, 34, 0.92), rgba(7, 12, 20, 0.86));
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.2);
  padding: 1rem;
}

.bgmap-workbench-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.bgmap-workbench-controls {
  display: grid;
  gap: 0.8rem;
  border: 1px solid rgba(47, 140, 255, 0.18);
  border-radius: 0.5rem;
  background: rgba(5, 10, 19, 0.54);
  padding: 0.85rem;
}

.bgmap-workbench-priority .bgmap-panel {
  border-color: rgba(47, 140, 255, 0.24);
  box-shadow: none;
}

.rrc-help-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.rrc-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid var(--info-border);
  border-radius: 999px;
  background: var(--info-bg);
  color: var(--info-text);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.rrc-help-button:hover,
.rrc-help-button:focus-visible {
  border-color: rgba(88, 166, 255, 0.62);
  background: rgba(88, 166, 255, 0.18);
  color: #ffffff;
  outline: none;
}

.rrc-help-panel {
  width: min(94vw, 980px);
}

.rrc-help-body {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.rrc-help-intro {
  display: grid;
  gap: 0.65rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(9, 13, 18, 0.34);
  padding: 0.9rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.rrc-help-intro strong {
  color: var(--text-primary);
}

.rrc-help-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.rrc-help-grid > div {
  display: grid;
  gap: 0.22rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.48rem;
  background: rgba(9, 13, 18, 0.38);
  padding: 0.58rem 0.65rem;
}

.rrc-help-grid strong {
  color: var(--accent-primary-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.15;
}

.rrc-help-grid span {
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.25;
}

.bgmap-control-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 1.2fr) minmax(9rem, 0.6fr) minmax(10rem, 0.7fr) auto;
  gap: 0.85rem;
  align-items: end;
}

.bgmap-action-cell {
  display: flex;
  align-items: end;
}

.bgmap-action-cell .primary-button {
  width: 100%;
  min-height: 2.75rem;
}

.bgmap-panel {
  background:
    linear-gradient(135deg, rgba(47, 140, 255, 0.08), transparent 34%),
    rgba(9, 13, 18, 0.64);
}

.bgmap-result,
.bgmap-result-header,
.bgmap-detail-grid section {
  display: grid;
  gap: 0.85rem;
}

.bgmap-result-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.bgmap-result-header h3,
.bgmap-resource {
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1.05rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.bgmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.76rem;
}

.bgmap-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: rgba(9, 13, 18, 0.42);
  padding: 0.28rem 0.55rem;
}

.bgmap-legend i {
  display: inline-block;
  width: 1.3rem;
  height: 0.18rem;
  border-radius: 999px;
}

.bgmap-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.bgmap-graph-summary {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bgmap-graph-summary > div {
  display: grid;
  gap: 0.22rem;
  border: 1px solid rgba(47, 140, 255, 0.2);
  border-radius: 0.5rem;
  background: rgba(5, 10, 19, 0.64);
  padding: 0.72rem 0.78rem;
}

.bgmap-graph-summary span,
.bgmap-graph-note {
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.bgmap-graph-summary span {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bgmap-graph-summary strong {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.15;
}

.bgmap-graph-note {
  margin: 0;
}

.bgmap-graph-modal-panel {
  margin: 1.5vh auto;
  width: min(100vw, 1080px);
  max-height: 100vh;
  padding: 1rem;
}

.bgmap-graph-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.bgmap-graph-modal-canvas {
  min-height: 30rem;
}

.bgmap-modal-focus-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1rem;
}

.bgmap-play-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid #cfd6e4;
  border-radius: 0.38rem;
  background: #f8fafc;
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.22);
}

.bgmap-graph-modal-canvas.bgmap-play-canvas {
  min-height: min(68vh, 46rem);
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    #f8fafc;
  background-size: 28px 28px, 28px 28px, auto;
}

.bgmap-play-legend {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 2;
  display: grid;
  gap: 0.36rem;
  align-items: start;
  color: #0b1535;
  font-size: 0.68rem;
  font-weight: 800;
  pointer-events: none;
}

.bgmap-play-legend span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 5.2rem;
  height: 1.18rem;
  padding: 0 0.45rem;
  line-height: 1;
}

.bgmap-play-origin {
  border-radius: 999px;
  background: #e83288;
  color: #ffffff;
}

.bgmap-play-collector {
  border: 1px solid #28b487;
  border-radius: 999px;
  background: #ecfff8;
  color: #08705b;
}

.bgmap-play-other {
  border: 1px solid #17203a;
  background: #ffffff;
  color: #111827;
}

.bgmap-play-dynamic::before,
.bgmap-play-static::before {
  content: "";
  width: 4.6rem;
  height: 0;
  margin-right: 0.4rem;
  border-top: 2px solid #4f52d7;
}

.bgmap-play-static::before {
  border-top-style: dashed;
}

.bgmap-graph-support-panel {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  border: 1px solid rgba(47, 140, 255, 0.18);
  border-radius: 0.5rem;
  background: rgba(5, 10, 19, 0.62);
  padding: 0.85rem;
}

.bgmap-aspath-board {
  display: grid;
  gap: 0.85rem;
  border: 1px solid rgba(47, 140, 255, 0.22);
  border-radius: 0.5rem;
  background: rgba(5, 10, 19, 0.78);
  padding: 0.85rem;
}

.bgmap-aspath-board-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.bgmap-aspath-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bgmap-aspath-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: rgba(9, 13, 18, 0.5);
  padding: 0.26rem 0.52rem;
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 700;
}

.bgmap-aspath-legend i {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
}

.bgmap-aspath-legend-source {
  background: #67d39a;
}

.bgmap-aspath-legend-transit {
  background: #2f8cff;
}

.bgmap-aspath-legend-origin {
  background: #e83288;
}

.bgmap-aspath-list {
  display: grid;
  gap: 0.7rem;
  max-height: min(24vh, 18rem);
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-color: var(--surface-border-strong) transparent;
  scrollbar-width: thin;
}

.bgmap-aspath-rail {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(8rem, 0.18fr) minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid rgba(47, 140, 255, 0.22);
  border-radius: 0.62rem;
  background:
    linear-gradient(90deg, rgba(47, 140, 255, 0.08), transparent 38%),
    rgba(9, 13, 18, 0.58);
  padding: 0.82rem;
}

.bgmap-aspath-meta {
  display: grid;
  gap: 0.15rem;
}

.bgmap-aspath-meta span {
  color: var(--accent-primary-strong);
  font-size: 0.72rem;
  font-weight: 800;
}

.bgmap-aspath-meta strong {
  color: var(--text-primary);
  font-size: 0.78rem;
}

.bgmap-aspath-meta small {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.bgmap-aspath-chain {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid rgba(143, 168, 185, 0.11);
  border-radius: 0.55rem;
  background: rgba(5, 10, 19, 0.42);
  padding: 0.55rem;
  scrollbar-width: thin;
}

.bgmap-aspath-node {
  flex: 0 0 auto;
  border-radius: 0.22rem;
  padding: 0.32rem 0.54rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.bgmap-aspath-node-source {
  border: 1px solid rgba(40, 180, 135, 0.72);
  border-radius: 999px;
  background: rgba(103, 211, 154, 0.16);
  color: #b9f7d4;
}

.bgmap-aspath-node-transit {
  border: 1px solid rgba(143, 168, 185, 0.46);
  background: rgba(255, 255, 255, 0.08);
  color: #eef6ff;
}

.bgmap-aspath-node-origin {
  border: 1px solid rgba(232, 50, 136, 0.62);
  background: rgba(232, 50, 136, 0.18);
  color: #ffd1e6;
}

.bgmap-aspath-hop {
  flex: 0 0 2rem;
  height: 1px;
  border-top: 1px dashed rgba(143, 168, 185, 0.7);
}

.bgmap-chart,
[data-bgmap-chart] {
  min-height: 26rem;
  border: 1px solid rgba(47, 140, 255, 0.24);
  border-radius: 0.5rem;
  background:
    linear-gradient(rgba(38, 50, 65, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 50, 65, 0.1) 1px, transparent 1px),
    #050a13;
  background-size: 36px 36px, 36px 36px, auto;
}

.bgmap-timeline,
[data-bgmap-timeline] {
  min-height: 9rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(5, 10, 19, 0.82);
}

.bgmap-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 0.9rem;
}

.bgmap-detail-grid section {
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: rgba(9, 13, 18, 0.34);
  padding: 0.85rem;
}

.bgmap-detail-grid h4 {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bgmap-path-list,
.bgmap-event-list {
  display: grid;
  gap: 0.5rem;
}

.bgmap-path-list li,
.bgmap-event-list li {
  display: grid;
  gap: 0.2rem;
  border-left: 0.22rem solid var(--bgmap-path-color, var(--surface-border-strong));
  border-radius: 0.35rem;
  background: rgba(15, 21, 29, 0.76);
  padding: 0.55rem 0.65rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.bgmap-path-list strong,
.bgmap-event-list strong {
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  overflow-wrap: anywhere;
}

.bgmap-event-danger {
  border-left-color: #ff5d6c !important;
}

.bgmap-event-info {
  border-left-color: #ff9b45 !important;
}

.device-query-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.9rem;
}

.device-query-button {
  min-height: 2.5rem;
  margin: 0.4rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.84rem;
}

.device-query-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.device-query-modal-open {
  display: block;
}

.device-query-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 10, 16, 0.72);
}

.device-query-modal-panel {
  position: relative;
  z-index: 1;
  margin: 3vh auto;
  max-height: 100vh;
  width: min(100vw, 1080px);
  overflow-y: auto;
  border: 1px solid var(--surface-border-strong);
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, rgba(17, 24, 33, 0.98), rgba(13, 19, 26, 0.98));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  padding: 1.4rem;
}

.device-query-stack {
  display: grid;
  gap: 1rem;
}

.device-query-summary-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 13.5rem));
  justify-content: start;
}

.device-query-summary-card {
  display: grid;
  gap: 0.28rem;
  min-height: 3rem;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.4);
  padding: 0.4rem 0.65rem;
}

.device-query-summary-label {
  overflow-wrap: anywhere;
  color: rgb(148, 163, 184);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.device-query-summary-value {
  min-width: 0;
  color: rgb(241, 245, 249);
  font-size: 0.86rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.device-interface-result-panel {
  border: 1px solid rgba(88, 166, 255, 0.14);
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, rgba(18, 27, 37, 0.62), rgba(8, 12, 17, 0.82)),
    rgba(11, 15, 20, 0.78);
  padding: 0.85rem;
}

.device-interface-table {
  width: 100%;
  border-collapse: collapse;
}

.device-interface-table th {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.device-interface-table th,
.device-interface-table td {
  border-bottom: 1px solid rgba(38, 50, 65, 0.72);
  padding: 0.56rem 0.68rem;
  vertical-align: middle;
}

.device-interface-table tbody tr:hover {
  background: rgba(88, 166, 255, 0.055);
}

.device-interface-table td strong {
  color: var(--text-primary);
  font-size: 0.82rem;
}

.device-interface-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  border: 1px solid rgba(88, 166, 255, 0.34);
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.12);
  color: #dff8ff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

.device-interface-state-danger {
  border-color: rgba(255, 93, 108, 0.58);
  background: rgba(255, 93, 108, 0.18);
  color: #ffe5e8;
}

.device-interface-workbench {
  display: grid;
  gap: 0.5rem;
}

.device-interface-row {
  overflow: hidden;
  border: 1px solid rgba(88, 166, 255, 0.15);
  border-radius: 0.36rem;
  background: rgba(6, 12, 16, 0.9);
}

.device-interface-row[open] {
  border-color: rgba(0, 163, 224, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 163, 224, 0.28);
}

.device-interface-row-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto minmax(0, auto) auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 3rem;
  cursor: pointer;
  list-style: none;
  padding: 0.55rem 0.7rem;
}

.device-interface-row-toggle::-webkit-details-marker {
  display: none;
}

.device-interface-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: var(--accent-primary-strong);
}

.device-interface-icon::before,
.device-interface-icon::after {
  position: absolute;
  content: "";
}

.device-interface-icon::before {
  width: 0.72rem;
  height: 0.72rem;
  border: 1.5px solid currentColor;
  border-radius: 0.14rem;
}

.device-interface-icon::after {
  width: 1rem;
  height: 1rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: scale(0.72) translate(0.14rem, 0.14rem);
}

.device-interface-name {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.device-interface-name strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-interface-name small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-interface-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: var(--text-secondary);
  transition: transform 0.16s ease;
}

.device-interface-chevron::before {
  width: 0.48rem;
  height: 0.48rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.device-interface-row[open] .device-interface-chevron {
  transform: rotate(180deg);
}

.device-interface-expanded {
  border-top: 1px solid rgba(88, 166, 255, 0.12);
  padding: 0.8rem;
}

.device-interface-detail-panel {
  display: grid;
  gap: 0.72rem;
  border: 1px solid rgba(88, 166, 255, 0.12);
  border-radius: 0.4rem;
  background: rgba(8, 14, 18, 0.84);
  padding: 0.78rem;
}

.device-interface-detail-inline-badges {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: 0;
}

.device-interface-config-title {
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.device-interface-detail-grid {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
  min-height: 14rem;
  border: 1px solid rgba(88, 166, 255, 0.12);
  border-radius: 0.35rem;
  background: rgba(8, 14, 18, 0.84);
}

.device-interface-tab-list {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  border-right: 1px solid rgba(88, 166, 255, 0.14);
  padding: 0.8rem;
}

.device-interface-tab {
  border-radius: 0.28rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 0.65rem;
}

.device-interface-tab.active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent-primary-strong);
}

.device-interface-detail-card {
  padding: 1rem;
}

.device-interface-detail-card h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 800;
}

.device-interface-detail-card dl {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.device-interface-detail-card div {
  display: grid;
  grid-template-columns: minmax(6rem, 0.35fr) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  border-bottom: 1px solid rgba(88, 166, 255, 0.1);
  padding-bottom: 0.55rem;
}

.device-interface-detail-card dt {
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 800;
}

.device-interface-detail-card dd {
  color: var(--text-primary);
  font-size: 0.8rem;
  line-height: 1.35;
}

.huawei-interface-detail {
  display: grid;
  gap: 0.7rem;
}

.huawei-interface-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.huawei-interface-detail-toolbar strong {
  color: var(--text-primary);
  font-size: 0.86rem;
}

.huawei-interface-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.huawei-interface-operation {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 0.45rem;
}

.huawei-interface-operation-label {
  display: grid;
  gap: 0.12rem;
  min-width: 5.6rem;
  text-align: right;
}

.huawei-interface-operation-label strong {
  color: var(--text-primary);
  font-size: 0.72rem;
  line-height: 1;
}

.huawei-interface-operation-label small {
  color: var(--text-muted);
  font-size: 0.64rem;
  line-height: 1;
}

.huawei-interface-rocker {
  position: relative;
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  width: 2.75rem;
  height: 4.65rem;
  overflow: hidden;
  border: 1px solid rgba(88, 166, 255, 0.28);
  border-radius: 999px;
  background: rgba(7, 12, 18, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0.75rem 1.5rem rgba(0, 0, 0, 0.28);
  isolation: isolate;
  padding: 0;
}

.huawei-interface-rocker::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0.18rem;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 30%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
  transform: translateY(0);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.huawei-interface-pill-switch::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0.3rem;
  left: 50%;
  width: 1.78rem;
  height: 1.78rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 38%, rgba(255, 255, 255, 0.95) 0 0.13rem, transparent 0.15rem),
    linear-gradient(145deg, #ffffff, #d9e2ec);
  box-shadow: inset 0 -0.16rem 0.28rem rgba(15, 23, 42, 0.14), 0 0.22rem 0.48rem rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: transform 0.24s ease, opacity 0.18s ease;
}

.huawei-interface-pill-switch[data-selected="up"] {
  border-color: rgba(56, 189, 248, 0.56);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.92), rgba(14, 116, 144, 0.98));
  color: #ecfeff;
}

.huawei-interface-pill-switch[data-selected="up"]::after {
  opacity: 1;
}

.huawei-interface-pill-switch[data-selected="down"] {
  border-color: var(--danger-border);
  background: linear-gradient(180deg, rgba(248, 81, 73, 0.96), rgba(153, 27, 27, 0.98));
  color: #fff7f7;
}

.huawei-interface-rocker[data-selected="down"]::before {
  transform: translateY(0);
}

.huawei-interface-pill-switch[data-selected="down"]::after {
  opacity: 1;
  transform: translate(-50%, 2.26rem);
}

.huawei-interface-rocker-choice {
  position: relative;
  z-index: 3;
  display: block;
  min-height: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.huawei-interface-rocker-choice + .huawei-interface-rocker-choice {
  border-top: 0;
}

.huawei-interface-pill-label {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0.28;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 0.1rem 0.35rem rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s ease;
}

.huawei-interface-pill-label-off {
  top: 0.95rem;
}

.huawei-interface-pill-label-on {
  bottom: 0.95rem;
}

.huawei-interface-pill-knob {
  display: none;
}

.huawei-interface-rocker-choice:hover {
  background: rgba(255, 255, 255, 0.08);
}

.huawei-interface-pill-switch[data-selected="up"] .huawei-interface-pill-label-on,
.huawei-interface-pill-switch[data-selected="down"] .huawei-interface-pill-label-off {
  opacity: 1;
}

.huawei-interface-rocker-choice.is-active[data-interface-admin-action="up"] {
  background: transparent;
  color: var(--button-success-text);
}

.huawei-interface-rocker-choice.is-active[data-interface-admin-action="down"] {
  background: transparent;
  color: var(--danger-text);
}

.huawei-interface-operation-feedback {
  margin: 0;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 0.4rem;
  background: rgba(88, 166, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 0.5rem 0.65rem;
}

.huawei-interface-operation-feedback[data-state="error"] {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.huawei-interface-operation-feedback[data-state="success"] {
  border-color: rgba(34, 197, 94, 0.36);
  background: rgba(34, 197, 94, 0.1);
  color: var(--success-text);
}

.huawei-interface-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  border-bottom: 1px solid rgba(88, 166, 255, 0.16);
  padding-bottom: 0.4rem;
}

.huawei-interface-detail-tabs button {
  border: 1px solid rgba(88, 166, 255, 0.22);
  border-radius: 0.35rem;
  background: rgba(10, 16, 23, 0.7);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.42rem 0.58rem;
  text-transform: uppercase;
}

.huawei-interface-detail-tabs button:hover,
.huawei-interface-detail-tabs button.is-active {
  border-color: rgba(56, 189, 248, 0.62);
  background: rgba(56, 189, 248, 0.14);
  color: #e0f7ff;
}

.huawei-interface-detail-tab-panel {
  display: none;
}

.huawei-interface-detail-tab-panel.is-active {
  display: grid;
  gap: 0.65rem;
}

.huawei-interface-mini-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.45rem;
}

.huawei-interface-mini-metrics > div {
  display: grid;
  gap: 0.18rem;
  border: 1px solid rgba(88, 166, 255, 0.13);
  border-radius: 0.4rem;
  background: rgba(7, 12, 18, 0.58);
  min-height: 3rem;
  padding: 0.42rem 0.58rem;
}

.huawei-interface-mini-metrics span {
  color: var(--text-muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.huawei-interface-mini-metrics strong {
  color: var(--text-primary);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.huawei-optic-lane-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid rgba(88, 166, 255, 0.13);
  border-radius: 0.4rem;
  background: rgba(7, 12, 18, 0.52);
}

.huawei-optic-lane-table th,
.huawei-optic-lane-table td {
  border-bottom: 1px solid rgba(38, 50, 65, 0.68);
  padding: 0.45rem 0.55rem;
  text-align: left;
}

.huawei-optic-lane-table th {
  color: var(--text-muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.huawei-optic-lane-table td {
  color: var(--text-primary);
  font-size: 0.78rem;
}

.huawei-optic-lane-table tr:last-child td {
  border-bottom: 0;
}

.huawei-utilization-list {
  display: grid;
  gap: 0.45rem;
}

.huawei-utilization-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(7rem, 1fr) 3.5rem;
  align-items: center;
  gap: 0.55rem;
}

.huawei-utilization-row > span,
.huawei-utilization-row > strong {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.huawei-utilization-row > strong {
  color: var(--text-primary);
  text-align: right;
}

.huawei-utilization-bar {
  height: 0.48rem;
  overflow: hidden;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 999px;
  background: rgba(5, 10, 16, 0.78);
}

.huawei-utilization-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.7), rgba(34, 197, 94, 0.75));
}

.huawei-interface-detail-empty {
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: 0.4rem;
  background: rgba(7, 12, 18, 0.45);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.65rem 0.75rem;
}

.device-interface-detail-skeleton {
  display: grid;
  gap: 0.35rem;
}

.device-interface-detail-skeleton span {
  display: block;
  height: 0.52rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(88, 166, 255, 0.1), rgba(148, 163, 184, 0.16), rgba(88, 166, 255, 0.1));
}

.device-interface-detail-skeleton span:nth-child(2) {
  width: 76%;
}

.device-interface-detail-skeleton span:nth-child(3) {
  width: 52%;
}

.huawei-interface-inline-badge {
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(34, 197, 94, 0.12);
}

.huawei-interface-inline-badge-warning {
  border-color: rgba(251, 191, 36, 0.44);
  background: rgba(251, 191, 36, 0.13);
  color: #fde68a;
}

.device-query-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.device-query-form {
  display: grid;
  gap: 1rem;
}

.ssh-console-panel {
  margin: 1.25vh auto;
  width: min(98vw, 1600px);
  min-height: 97vh;
  padding: 0;
  overflow: hidden;
}

.ssh-console-shell {
  display: grid;
  gap: 1.25rem;
  min-height: 97vh;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(17, 24, 33, 0.98), rgba(9, 13, 18, 0.98));
}

.ssh-console-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ssh-console-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ssh-console-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.ssh-console-status {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.7rem 0.95rem;
  color: #d9e4f1;
  font-size: 0.88rem;
}

.ssh-console-status[data-state="success"] {
  border-color: rgba(74, 222, 128, 0.26);
  background: rgba(74, 222, 128, 0.11);
  color: #dafce7;
}

.ssh-console-status[data-state="error"] {
  border-color: rgba(251, 113, 133, 0.26);
  background: rgba(251, 113, 133, 0.1);
  color: #ffe2e7;
}

.ssh-console-status[data-state="info"] {
  border-color: rgba(125, 182, 255, 0.25);
  background: rgba(125, 182, 255, 0.12);
  color: #dcebff;
}

.ssh-console-countdown {
  color: #b6c3d3;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ssh-console-countdown strong {
  color: #ffffff;
  font-size: 0.92rem;
}

.ssh-console-terminal {
  flex: 1;
  border: 1px solid rgba(88, 166, 255, 0.22);
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, rgba(15, 18, 23, 0.98) 0%, rgba(9, 11, 15, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.ssh-console-output {
  min-height: 72vh;
  max-height: 82vh;
  height: 100%;
  overflow: hidden;
  padding: 0.75rem 0.85rem;
  cursor: text;
  outline: none;
}

.ssh-console-output:focus {
  box-shadow: inset 0 0 0 1px rgba(125, 182, 255, 0.4);
}

.ssh-console-output-active {
  box-shadow: inset 0 0 0 1px rgba(103, 211, 154, 0.2);
}

.ssh-console-output .xterm {
  height: 100%;
  padding: 0;
}

.ssh-console-output .xterm-viewport {
  overflow-y: auto !important;
  scrollbar-gutter: stable both-edges;
}

.ssh-console-output .xterm-screen,
.ssh-console-output .xterm-helpers {
  width: 100% !important;
}

.primary-button:disabled,
.secondary-button:disabled,
.warning-button:disabled,
.success-button:disabled,
.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.traffic-dashboard {
  border: 1px solid rgba(0, 184, 230, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(11, 24, 34, 0.86), rgba(5, 12, 18, 0.96)),
    radial-gradient(circle at top right, rgba(0, 184, 230, 0.12), transparent 34rem);
  padding: 0.9rem;
}

.traffic-dashboard-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}

.traffic-dashboard-heading,
.traffic-dashboard-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
}

.traffic-dashboard-heading h3 {
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

.traffic-dashboard-status {
  justify-content: flex-end;
}

.traffic-interface-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 0.7rem;
}

.traffic-interface-card {
  border: 1px solid rgba(125, 182, 255, 0.16);
  border-radius: 8px;
  background: rgba(5, 12, 18, 0.78);
  padding: 0.82rem;
  min-width: 0;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.traffic-interface-card:hover {
  border-color: rgba(0, 184, 230, 0.46);
  background: rgba(8, 20, 29, 0.92);
  transform: translateY(-1px);
}

.traffic-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.traffic-card-identity {
  min-width: 0;
}

.traffic-card-identity span,
.traffic-card-rate span,
.traffic-card-footer span {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}

.traffic-card-identity h4 {
  color: var(--text-strong);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}

.traffic-card-identity p {
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.35;
  margin: 0.12rem 0 0;
  overflow-wrap: anywhere;
}

.traffic-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.traffic-card-rate {
  border: 1px solid rgba(125, 182, 255, 0.12);
  border-radius: 8px;
  background: rgba(2, 8, 13, 0.66);
  padding: 0.65rem;
  min-width: 0;
}

.traffic-card-rate strong {
  display: block;
  color: var(--text-strong);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}

.traffic-card-meter {
  width: 100%;
  height: 0.42rem;
  border-radius: 9999px;
  background: rgba(125, 182, 255, 0.12);
  margin-top: 0.5rem;
  overflow: hidden;
}

.traffic-card-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 0.32s ease;
}

.traffic-card-meter-rx span {
  background: linear-gradient(90deg, rgba(72, 160, 255, 0.9), rgba(0, 184, 230, 0.95));
}

.traffic-card-meter-tx span {
  background: linear-gradient(90deg, rgba(103, 211, 154, 0.86), rgba(196, 232, 120, 0.92));
}

.traffic-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border-top: 1px solid rgba(125, 182, 255, 0.12);
  margin-top: 0.75rem;
  padding-top: 0.65rem;
}

.traffic-chart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  height: 2.25rem;
  padding: 0 0.65rem;
  border: 1px solid rgba(125, 182, 255, 0.22);
  border-radius: 8px;
  background: rgba(125, 182, 255, 0.08);
  color: #d5e8ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.traffic-chart-button:hover {
  border-color: rgba(125, 182, 255, 0.4);
  background: rgba(125, 182, 255, 0.14);
}

.traffic-chart-button svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.traffic-chart-label {
  min-width: 0;
}

@media (max-width: 640px) {
  .traffic-dashboard-toolbar,
  .traffic-card-header {
    flex-direction: column;
  }

  .traffic-dashboard-status {
    justify-content: flex-start;
  }

  .traffic-card-metrics {
    grid-template-columns: 1fr;
  }

  .traffic-chart-button {
    width: 100%;
  }
}

.traffic-chart-canvas {
  min-height: 360px;
  width: 100%;
}

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

.data-table thead {
  color: var(--text-muted);
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--surface-border);
  padding: 0.72rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table td {
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.filter-row {
  display: grid;
  align-items: end;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.data-table-noc th {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.data-table-noc td {
  white-space: nowrap;
  padding-right: 1rem;
}

.data-table-compact th,
.data-table-compact td {
  padding: 0.5rem 0;
}

.data-table-bgp {
  width: max-content;
  --bgp-table-column-gap: 0.9rem;
  --bgp-detail-column-width: 11rem;
  --bgp-state-admin-gap: 0.2rem;
  --bgp-table-row-padding: 0.5rem;
}

.data-table-bgp th,
.data-table-bgp td {
  padding-top: var(--bgp-table-row-padding);
  padding-bottom: var(--bgp-table-row-padding);
  padding-right: var(--bgp-table-column-gap);
  vertical-align: top;
}

.bgp-detail-cell {
  min-width: var(--bgp-detail-column-width);
}

.bgp-detail-cell-state {
  min-width: var(--bgp-detail-column-width);
  padding-right: var(--bgp-state-admin-gap) !important;
}

.bgp-detail-cell-admin {
  min-width: var(--bgp-detail-column-width);
  padding-left: var(--bgp-state-admin-gap);
}

.bgp-detail-note {
  display: inline-block;
  margin-top: 0.12rem;
  font-size: 0.78rem;
  line-height: 1.2;
}

.data-table tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  color: var(--table-row-text);
}

.login-shell {
  margin-inline: auto;
  display: flex;
  min-height: 80vh;
  max-width: 72rem;
  align-items: center;
  justify-content: center;
}

.login-panel {
  display: grid;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: var(--login-panel-bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.login-brand {
  display: none;
  border-right: 1px solid var(--surface-border);
  background: var(--login-brand-bg);
  padding: 2.5rem;
}

.login-form-wrap {
  padding: 2rem;
}

.login-brand-logo {
  width: min(12rem, 100%);
}

.login-form-logo {
  width: 5.5rem;
  margin-bottom: 1.5rem;
}

.credential-box {
  margin-top: 2rem;
  border: 1px solid var(--info-border);
  border-radius: 0.5rem;
  background: var(--info-bg);
  padding: 1rem;
  color: var(--info-text);
  font-size: 0.92rem;
}

.credential-box code {
  color: #ffffff;
}

@media (min-width: 1024px) {
  body.sidebar-open {
    overflow: auto;
  }

  .app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 282px;
    transform: none;
  }

  .app-content {
    padding: 1.15rem;
  }

  .sidebar-backdrop {
    display: none;
  }

  .login-panel {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .login-brand {
    display: block;
  }
}

@media (max-width: 1180px) {
  .device-register-layout {
    grid-template-columns: 1fr;
  }

  .device-register-aside,
  .device-inventory-aside {
    position: static;
  }

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

  .device-detail-console,
  .device-console-summary,
  .device-console-main {
    grid-template-columns: 1fr;
  }

  .device-fleet-head,
  .device-fleet-row-grid {
    grid-template-columns: minmax(13rem, 1.3fr) minmax(7.5rem, 0.72fr) minmax(10rem, 1fr) minmax(10.5rem, auto);
  }

  .network-doc-head,
  .network-doc-row-grid {
    grid-template-columns: minmax(14rem, 1fr) minmax(8rem, 0.7fr) minmax(10rem, 0.8fr) minmax(7rem, 0.5fr) minmax(15rem, 1fr);
  }

  .network-doc-summary-grid,
  .network-doc-summary-grid-compact,
  .network-doc-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .network-doc-impact-grid,
  .network-doc-summary-grid[aria-label="Indicadores operacionais"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .device-edit-panel-grid,
  .device-edit-modal-body {
    grid-template-columns: 1fr;
  }

  .device-edit-compact-grid,
  .device-edit-section-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assistant-metric-grid,
  .assistant-metric-grid-admin,
  .chatnoc-agent-card-grid,
  .chatnoc-agent-audit-grid,
  .chatnoc-agent-filter-grid,
  .assistant-card-grid,
  .assistant-equipment-grid,
  .assistant-system-summary-grid,
  .assistant-system-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .device-discovery-grid .primary-button {
    width: 100%;
  }

  .bgp-main-layout,
  .bgp-main-control-grid,
  .bgp-whois-grid,
  .bgp-whois-grid-with-raw,
  .bgp-community-filter-grid,
  .asn-diagnostic-layout,
  .asn-diagnostic-grid,
  .bgmap-control-grid,
  .bgmap-detail-grid,
  .assistant-overview-grid-admin,
  .assistant-group-form-grid,
  .assistant-equipment-form-grid,
  .assistant-playbook-form-grid,
  .assistant-audit-grid,
  .assistant-system-grid,
  .ops-shortcuts-grid,
  .routing-console-layout,
  .routing-command-grid,
  .audit-event-card,
  .history-filter-grid,
  .history-row-meta {
    grid-template-columns: 1fr;
  }

  .audit-event-card .history-preview-summary {
    justify-content: flex-start;
  }

  .history-row-shell {
    flex-direction: column;
  }

  .routing-console-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .routing-submit-button,
  .engineering-submit-button {
    width: 100%;
  }

  .routing-manipulation-workflow {
    grid-template-columns: 1fr;
  }

  .routing-entry-header {
    grid-template-columns: 1fr;
  }

  .routing-entry-badges {
    justify-content: flex-start;
  }

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

  .access-create-grid > div,
  .access-edit-grid > div,
  .access-edit-field-wide {
    grid-column: span 1 !important;
  }

  .access-user-summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .access-user-badges {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }

  .admin-users-filters,
  .admin-users-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-users-filters .secondary-button,
  .admin-users-form-actions {
    width: 100%;
  }

  .admin-users-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
  }
}

@media (max-width: 980px) {
  .ops-dashboard-grid,
  .ops-command-link {
    grid-template-columns: 1fr;
  }

  .history-row-actions {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .form-actions,
  .page-header-row,
  .panel-heading {
    align-items: stretch;
  }

  .dashboard-header-status {
    justify-content: flex-start;
    margin-left: 0;
    width: 100%;
  }

  .dashboard-version-status {
    justify-content: flex-start;
    text-align: left;
  }

  .primary-button,
  .secondary-button,
  .warning-button,
  .success-button,
  .danger-button {
    width: 100%;
  }

  .settings-hub-card-actions {
    width: 100%;
  }

  .settings-hub-card-actions .primary-button,
  .settings-hub-card-actions .secondary-button {
    width: 100%;
  }

  .content-panel {
    padding: 0.9rem;
  }
}

@media (max-width: 640px) {
  .global-confirm-panel {
    grid-template-columns: 1fr;
  }

  .global-confirm-actions {
    display: grid;
  }

  .ops-status-strip,
  .bgp-community-strip,
  .network-doc-strip,
  .device-query-summary-grid,
  .routing-form-grid,
  .engineering-form-grid,
  .routing-summary-grid,
  .routing-entry-facts {
    grid-template-columns: 1fr;
  }

  .bgp-community-tabs {
    width: 100%;
  }

  .bgp-community-section-actions,
  .bgp-community-admin-row-actions,
  .bgp-community-admin-item-actions {
    justify-content: flex-start;
  }

  .bgp-community-admin-row summary,
  .bgp-community-admin-item,
  .bgp-community-admin-item-main,
  .bgp-community-editor-body {
    grid-template-columns: 1fr;
  }

  .public-bgp-community-hero,
  .public-bgp-community-docs,
  .public-bgp-community-row summary {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .public-bgp-community-actions,
  .public-bgp-community-row-meta {
    justify-content: flex-start;
    text-align: left;
  }

  .bgp-community-tab {
    flex: 1 1 100%;
  }

  .assistant-metric-grid,
  .assistant-metric-grid-admin,
  .assistant-card-grid,
  .assistant-equipment-grid,
  .assistant-equipment-edit-grid,
  .assistant-flow-grid,
  .assistant-flow-grid-two,
  .assistant-system-summary-grid,
  .assistant-system-model-grid,
  .assistant-system-grid,
  .chatnoc-agent-card-grid,
  .chatnoc-agent-audit-grid,
  .chatnoc-agent-filter-grid,
  .chatnoc-agent-status-strip {
    grid-template-columns: 1fr;
  }

  .assistant-danger-zone-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .asn-diagnostic-metrics,
  .asn-prefix-summary,
  .bgmap-metric-grid,
  .bgmap-result-header,
  .asn-diff-columns {
    grid-template-columns: 1fr;
  }

  .asn-prefix-row {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .bgmap-chart,
  [data-bgmap-chart] {
    min-height: 20rem;
  }

  .device-snmp-result,
  .device-form-grid,
  .device-discovery-grid,
  .bgp-whois-mini-grid {
    grid-template-columns: 1fr;
  }

  .bgp-prefix-stack {
    grid-template-columns: 1fr;
  }

  .device-fleet-toolbar-actions,
  .device-fleet-search,
  .network-doc-filter-grid {
    width: 100%;
  }

  .network-doc-filter-grid {
    grid-template-columns: 1fr;
  }

  .device-fleet-head,
  .network-doc-head {
    display: none;
  }

  .device-fleet-row-grid,
  .network-doc-row-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 0.9rem;
  }

  .device-console-main,
  .device-interface-row-toggle,
  .device-interface-detail-grid,
  .device-interface-detail-card div {
    grid-template-columns: 1fr;
  }

  .device-interface-tab-list {
    border-right: 0;
    border-bottom: 1px solid rgba(88, 166, 255, 0.14);
  }

  .topology-dev-workbench {
    min-height: 34rem;
    place-items: start center;
  }

  .topology-dev-map {
    inset: 7% 4% 24%;
  }

  .topology-dev-panel {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }

  .network-doc-tabs {
    position: static;
  }

  .network-doc-tabs a,
  .network-doc-summary-grid,
  .network-doc-summary-grid-compact,
  .network-doc-edit-grid {
    width: 100%;
  }

  .network-doc-summary-grid,
  .network-doc-summary-grid-compact,
  .network-doc-dossier-hero,
  .network-doc-shell[data-network-doc-dossier] > .page-header,
  .network-doc-impact-grid,
  .network-doc-summary-grid[aria-label="Indicadores operacionais"],
  .network-doc-edit-grid,
  .network-doc-report-grid {
    grid-template-columns: 1fr;
  }

  .network-doc-shell[data-network-doc-dossier] > .page-header .secondary-button {
    justify-self: stretch;
  }

  .network-doc-action-bar .primary-button,
  .network-doc-action-bar .secondary-button,
  .network-doc-report-actions .primary-button,
  .network-doc-report-actions .secondary-button,
  [data-doc-operational-summary] .panel-heading .device-status-cluster .primary-button,
  [data-doc-operational-summary] .panel-heading .device-status-cluster .secondary-button {
    width: 100%;
    justify-content: center;
  }

  .device-fleet-row-grid > [data-column-label]::before {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    content: attr(data-column-label);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .device-fleet-identity[data-column-label]::before {
    display: none;
  }

  .device-status-cluster,
  .device-fleet-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .device-quick-actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .network-doc-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .device-fleet-actions .primary-button,
  .device-fleet-actions .secondary-button,
  .network-doc-actions .primary-button,
  .network-doc-actions .secondary-button {
    width: 100%;
  }

  .device-edit-compact-grid,
  .device-edit-section-notes {
    grid-template-columns: 1fr;
  }

  .device-edit-modal-panel {
    width: min(96vw, 900px);
    max-height: 94vh;
  }

  .device-edit-modal-body,
  .device-edit-panel-grid {
    grid-template-columns: 1fr;
  }

  .device-edit-section-notes .device-form-actions {
    justify-content: stretch;
  }

  .ops-status-item {
    border-right: 0;
    border-bottom: 1px solid var(--surface-border);
  }

  .ops-status-item:last-child {
    border-bottom: 0;
  }

  .device-query-modal-panel {
    margin: 1.2vh auto;
    width: min(95vw, 860px);
    padding: 1rem;
  }

  .device-query-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ssh-console-shell {
    padding: 1rem;
    min-height: 96vh;
  }

  .ssh-console-panel {
    width: min(99vw, 1600px);
    min-height: 96vh;
  }

  .ssh-console-output {
    min-height: 66vh;
  }

  .access-create-head,
  .access-users-header,
  .access-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .access-create-head .primary-button,
  .access-editor-actions .primary-button {
    width: 100%;
  }

  .access-create-grid,
  .access-edit-grid {
    grid-template-columns: 1fr;
  }

  .access-user-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .access-user-badges,
  .access-edit-trigger {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .access-edit-trigger {
    text-align: center;
  }

  .admin-users-filters,
  .admin-users-form,
  .admin-users-summary {
    grid-template-columns: 1fr;
  }

  .admin-users-primary,
  .admin-users-filters .secondary-button,
  .admin-users-form-actions .primary-button {
    width: 100%;
  }

  .admin-users-table {
    min-width: 48rem;
  }
}

/* Theme compatibility layer for legacy dark-first components and Tailwind utility markup. */
html[data-theme="white"] :is(
  .chatnoc-agent-card-primary,
  .routing-security-run-panel,
  .rpki-dashboard-card:first-child,
  .rpki-integration-form,
  .route-policy-form-panel,
  .routing-query-panel,
  .engineering-query-control-panel,
  .routing-investigation-panel,
  .routing-manipulation-panel,
  .ops-jobs-panel-noc,
  .history-query-panel,
  .history-toolbar-noc,
  .assistant-group-create-panel,
  .assistant-equipment-create-panel,
  .assistant-playbook-create-panel,
  .assistant-playbook-edit-panel,
  .assistant-whatsapp-config-panel,
  .bgp-main-control-panel,
  .bgp-main-readiness-panel,
  .asn-diagnostic-control-panel,
  .asn-diagnostic-suggestions-panel,
  .device-discovery-topbar,
  .network-doc-control-panel,
  .network-doc-dossier-hero,
  .network-doc-shell[data-network-doc-dossier] > .page-header
) {
  background:
    linear-gradient(135deg, rgba(15, 103, 177, 0.08), transparent 40%),
    var(--surface-panel) !important;
}

html[data-theme="white"] :is(
  .stat-card,
  .panel-link,
  .details-card,
  .routing-security-summary-card,
  .routing-security-irr-panel,
  .routing-security-irr-report,
  .qrator-action-row-noc,
  .qrator-identity-grid > div,
  .qrator-mini-grid > div,
  .qrator-security-grid > div,
  .qrator-validation-row > div,
  .rpki-status-grid > div,
  .rpki-integration-section,
  .access-users-header,
  .access-user-row,
  .access-user-editor,
  .admin-users-popover,
  .preview-box,
  .routing-pill,
  .routing-peer-chip,
  .routing-summary-card,
  .routing-table-wrap,
  .routing-explanation-prefix,
  .routing-explanation-fact,
  .routing-selected-route-card,
  .routing-manipulation-controls,
  .routing-selected-facts span,
  .routing-entry-card,
  .routing-entry-facts > div,
  .stack-list-item,
  .ops-metric-card,
  .metric-tile,
  .ops-command-link,
  .ops-health-row,
  .device-backup-status,
  .device-backup-history-row,
  .device-form-section,
  .device-fleet-table,
  .device-fleet-board,
  .device-fleet-row,
  .device-vendor-mark,
  .device-console-action,
  .device-console-expanded,
  .device-interface-result-panel,
  .device-interface-row,
  .device-interface-detail-panel,
  .device-interface-detail-grid,
  .huawei-interface-mini-metrics > div,
  .huawei-optic-lane-table,
  .huawei-interface-detail-empty,
  .network-doc-board,
  .network-doc-row,
  .network-doc-context-card,
  .network-doc-section[data-doc-inventory-context],
  .network-doc-impact-card,
  [data-doc-impact-card],
  .network-doc-record,
  .network-doc-section[data-doc-section] .network-doc-summary-grid > div,
  .network-doc-tabs,
  .network-doc-tabs a,
  .network-doc-summary-grid div,
  .network-doc-notes,
  .device-edit-modal-header,
  .device-edit-modal-footer,
  .device-edit-section,
  .device-query-summary-card,
  .device-interface-detail-card,
  .assistant-removable-row,
  .asn-prefix-summary > div,
  .asn-prefix-row,
  .asn-overview-list div,
  .asn-diff-columns > div,
  .bgmap-path-list li,
  .bgmap-event-list li,
  .ssh-console-status,
  .traffic-chart-button,
  .credential-box
) {
  background: var(--surface-table-row) !important;
  border-color: var(--surface-border) !important;
  color: var(--text-secondary);
}

html[data-theme="white"] .routing-preview-column:empty::before,
html[data-theme="white"] .admin-users-popover::before {
  background: var(--surface-table-row) !important;
  border-color: var(--surface-border) !important;
  color: var(--text-secondary);
}

html[data-theme="white"] :is(
  .device-fleet-row:hover,
  .device-fleet-row[open],
  .history-list-row:hover,
  .assistant-metric-card:hover,
  .assistant-directory-card:hover,
  .assistant-skill-card:hover,
  .assistant-playbook-card:hover,
  .assistant-guide-card:hover,
  .assistant-whatsapp-card:hover,
  .device-console-action:hover,
  .device-query-action-active,
  .network-doc-row:hover,
  .network-doc-tabs a:hover,
  .routing-route-table tr.is-selected td,
  .routing-route-table-noc tbody tr:hover td,
  .device-interface-table tbody tr:hover,
  .sidebar-row-link:hover
) {
  background: var(--surface-table-row-hover) !important;
  color: var(--text-primary);
}

html[data-theme="white"] :is(
  .data-table th,
  .routing-route-table th,
  .routing-security-irr-table thead,
  .device-fleet-head,
  .network-doc-head,
  .device-interface-table th,
  .huawei-optic-lane-table th,
  .routing-terminal-label
) {
  background: var(--surface-table-head) !important;
  color: var(--text-muted) !important;
}

html[data-theme="white"] :is(
  .data-table td,
  .routing-route-table td,
  .routing-security-irr-table td,
  .device-interface-table td,
  .huawei-optic-lane-table td,
  .admin-users-table td
) {
  color: var(--text-secondary) !important;
}

html[data-theme="white"] :is(
  .config-preview,
  .routing-terminal-block,
  .routing-terminal-block-muted,
  .routing-preview-block,
  .bgp-raw-box,
  .device-query-modal-panel
) {
  background: var(--surface-code-bg) !important;
  border-color: var(--surface-border) !important;
  color: var(--surface-code-text) !important;
}

html[data-theme="white"] :is(
  .config-preview,
  .routing-terminal-block pre,
  .routing-preview-block pre,
  .bgp-raw-box pre,
  code,
  pre
) {
  color: var(--surface-code-text) !important;
}

html[data-theme="white"] :is(
  .ssh-console-shell,
  .ssh-console-terminal
) {
  background: var(--surface-terminal-bg) !important;
  color: var(--surface-terminal-text) !important;
}

html[data-theme="white"] :is(
  .sidebar-row-link-sub,
  .sidebar-row-icon,
  .access-avatar,
  .access-user-row[open] .access-edit-trigger,
  .device-console-action:hover,
  .device-query-action-active,
  .device-console-primary-action,
  .routing-as-path-inline span:hover,
  .routing-circuit-mark,
  .device-interface-state,
  .huawei-interface-detail-tabs button.is-active,
  .credential-box code
) {
  color: var(--accent-primary-strong) !important;
}

html[data-theme="white"] :is(
  .tag-chip-info,
  .routing-pill-info
) {
  color: var(--info-text) !important;
}

html[data-theme="white"] :is(
  .tag-chip-success,
  .routing-pill-ok,
  .routing-explanation-status[data-state="best"],
  .network-doc-level-complete,
  .device-service-stack .tag-chip-success
) {
  color: var(--success-text) !important;
}

html[data-theme="white"] :is(
  .tag-chip-warning,
  .routing-circuit-mark-missing,
  .routing-explanation-status[data-state="not_selected"],
  .network-doc-level-partial,
  .huawei-interface-inline-badge-warning
) {
  color: var(--warning-text) !important;
}

html[data-theme="white"] :is(
  .tag-chip-danger,
  .network-doc-level-needs_review,
  .device-service-stack .tag-chip-danger,
  .device-interface-state-danger
) {
  color: var(--danger-text) !important;
}

html[data-theme="white"] :is(
  .device-query-modal-backdrop,
  .sidebar-backdrop
) {
  background: var(--surface-overlay);
}
