html, body, #root {
  font-size: 14px;
}

body {
  line-height: 1.5;
}

footer {
  display: none !important;
}

.fofa-card-provider {
  color: color-mix(in oklab, currentColor 58%, transparent);
  font-size: 12px;
  font-weight: 500;
}

.fofa-card-mini-metrics {
  display: none;
  width: 178px;
  grid-template-columns: 34px 38px 48px 30px;
  column-gap: 8px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  align-self: start;
  grid-row: span 2 / span 2;
}

.fofa-filter-chip {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  border: 1px solid color-mix(in oklab, currentColor 14%, transparent);
  border-radius: 7px;
  background: var(--background, Canvas);
  color: color-mix(in oklab, currentColor 60%, transparent);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.15;
  padding: 5px 7px;
}

.fofa-filter-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fofa-filter-chip em {
  border-radius: 5px;
  background: color-mix(in oklab, currentColor 9%, transparent);
  color: color-mix(in oklab, currentColor 56%, transparent);
  font-size: 10px;
  font-style: normal;
  line-height: 1;
  padding: 3px 5px;
}

.fofa-filter-chip.active {
  border-color: color-mix(in oklab, #2563eb 58%, currentColor 18%);
  background: color-mix(in oklab, #2563eb 12%, transparent);
  color: #2563eb;
}

.fofa-hide-native-filter,
.fofa-hide-native-endpoints {
  display: none !important;
}

.fofa-native-filter > button {
  cursor: default;
}

.fofa-mini-cell {
  min-width: 0;
}

.fofa-mini-label {
  color: color-mix(in oklab, currentColor 48%, transparent);
  font-size: 10px;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fofa-mini-value {
  color: color-mix(in oklab, currentColor 76%, transparent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.fofa-bars {
  display: flex;
  height: 16px;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.fofa-bars span {
  width: 4px;
  border-radius: 999px;
}

.fofa-bars .h1 { height: 8px; }
.fofa-bars .h2 { height: 10px; }
.fofa-bars .h3 { height: 12px; }

.fofa-bars .good { background: #10b981; }
.fofa-bars .ok { background: #22c55e; }
.fofa-bars .warn { background: #f59e0b; }
.fofa-bars .bad { background: #ef4444; }
.fofa-bars .muted { background: #94a3b8; }

@media (min-width: 460px) {
  .fofa-card-mini-metrics {
    display: grid;
  }
}

.fofa-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 8px;
  background: color-mix(in oklab, currentColor 8%, transparent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.fofa-status.online { color: #059669; }
.fofa-status.cooldown { color: #d97706; }
.fofa-status.offline,
.fofa-status.repair { color: #dc2626; }
.fofa-status.unchecked { color: #64748b; }

.fofa-route-card,
.fofa-perf-section {
  border: 1px solid color-mix(in oklab, currentColor 15%, transparent);
  border-radius: 12px;
  background: color-mix(in oklab, currentColor 3%, transparent);
  padding: 16px;
}

.fofa-route-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.fofa-route-head h2,
.fofa-perf-section h2 {
  margin: 0;
  color: color-mix(in oklab, currentColor 72%, transparent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fofa-route-head p,
.fofa-perf-section p {
  margin: 4px 0 0;
  color: color-mix(in oklab, currentColor 52%, transparent);
  font-size: 12px;
}

.fofa-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid color-mix(in oklab, currentColor 12%, transparent);
  border-radius: 10px;
  background: color-mix(in oklab, currentColor 8%, transparent);
  gap: 1px;
}

.fofa-route-grid > div {
  min-width: 0;
  background: var(--background, Canvas);
  padding: 10px 12px;
}

.fofa-route-grid span {
  display: block;
  color: color-mix(in oklab, currentColor 52%, transparent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fofa-route-grid strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: currentColor;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fofa-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.fofa-chip-row span {
  border-radius: 7px;
  background: color-mix(in oklab, currentColor 9%, transparent);
  color: color-mix(in oklab, currentColor 68%, transparent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  padding: 5px 8px;
}

.fofa-route-error {
  margin: 10px 0 0;
  color: #dc2626;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.fofa-compact-table {
  margin-top: 12px;
  overflow-x: auto;
}

.fofa-compact-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  table-layout: fixed;
}

.fofa-compact-table th,
.fofa-compact-table td {
  border-bottom: 1px solid color-mix(in oklab, currentColor 11%, transparent);
  padding: 9px 8px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.fofa-compact-table th {
  color: color-mix(in oklab, currentColor 54%, transparent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fofa-compact-table td:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.fofa-compact-table th:nth-child(1),
.fofa-compact-table td:nth-child(1) { width: 34%; }
.fofa-compact-table th:nth-child(2),
.fofa-compact-table td:nth-child(2) { width: 12%; }
.fofa-compact-table th:nth-child(3),
.fofa-compact-table td:nth-child(3) { width: 28%; }
.fofa-compact-table th:nth-child(4),
.fofa-compact-table td:nth-child(4) { width: 10%; }
.fofa-compact-table th:nth-child(5),
.fofa-compact-table td:nth-child(5) { width: 16%; }

.fofa-compact-table td:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.fofa-performance {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.fofa-perf-stats > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  border: 1px solid color-mix(in oklab, currentColor 15%, transparent);
  border-radius: 10px;
  background: var(--background, Canvas);
  padding: 12px;
}

.fofa-perf-stats span {
  color: color-mix(in oklab, currentColor 58%, transparent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fofa-perf-stats strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 700;
}

.fofa-perf-stats strong.good,
.fofa-perf-stats strong.ok { color: #10b981; }
.fofa-perf-stats strong.warn { color: #d97706; }
.fofa-perf-stats strong.bad { color: #dc2626; }

.fofa-perf-stats em {
  color: color-mix(in oklab, currentColor 50%, transparent);
  font-size: 11px;
  font-style: normal;
}

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

.fofa-chart {
  display: block;
  width: 100%;
  height: 150px;
  margin-top: 8px;
}

.fofa-chart line {
  stroke: color-mix(in oklab, currentColor 16%, transparent);
  stroke-dasharray: 4 5;
}

.fofa-chart path {
  fill: none;
  stroke: #2563eb;
  stroke-width: 2.5;
}

.fofa-chart-hit {
  cursor: crosshair;
  fill: transparent;
  pointer-events: all;
}

.fofa-chart-dot {
  fill: #2563eb;
  opacity: .78;
  pointer-events: none;
  stroke: var(--background, Canvas);
  stroke-width: 1.5;
}

.fofa-chart:hover .fofa-chart-dot {
  opacity: 1;
}

.fofa-chart-tooltip {
  position: fixed;
  z-index: 2147483647;
  display: none;
  min-width: 128px;
  max-width: 180px;
  border: 1px solid color-mix(in oklab, currentColor 16%, transparent);
  border-radius: 9px;
  background: color-mix(in oklab, var(--background, Canvas) 94%, #111827 6%);
  box-shadow: 0 12px 30px rgb(15 23 42 / .18);
  color: currentColor;
  padding: 8px 10px;
  pointer-events: none;
}

.fofa-chart-tooltip.visible {
  display: block;
}

.fofa-chart-tooltip strong,
.fofa-chart-tooltip span {
  display: block;
  font-size: 11px;
  line-height: 1.35;
}

.fofa-chart-tooltip strong {
  color: color-mix(in oklab, currentColor 62%, transparent);
  font-weight: 750;
}

.fofa-chart-tooltip span {
  margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 750;
}

.fofa-empty {
  border: 1px dashed color-mix(in oklab, currentColor 18%, transparent);
  border-radius: 10px;
  color: color-mix(in oklab, currentColor 52%, transparent);
  padding: 22px;
  text-align: center;
}

.fofa-dashboard-fallback {
  min-height: 100vh;
  background: var(--background, Canvas);
  color: var(--foreground, CanvasText);
  padding: 0;
}

[data-fofa-native-topbar="true"] {
  display: none !important;
}

.fofa-unified-shell body {
  margin: 0;
}

.fofa-unified-dashboard body,
.fofa-unified-ops body {
  padding-top: 56px;
}

.fofa-unified-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 999;
  height: 56px;
  pointer-events: auto !important;
  color: var(--foreground, CanvasText);
}

.fofa-unified-wrap {
  box-sizing: border-box;
  height: 100%;
  margin: 0 auto;
  max-width: 80rem;
  padding: 0 1rem;
  pointer-events: auto;
  width: 100%;
}

.fofa-unified-nav {
  display: flex !important;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0 .5rem;
  width: 100%;
}

.fofa-unified-brand,
.fofa-unified-nav,
.fofa-unified-menu,
.fofa-unified-link {
  display: inline-flex;
  align-items: center;
}

.fofa-unified-brand {
  min-width: 0;
  gap: .625rem;
  color: inherit;
  text-decoration: none;
}

.fofa-unified-brand strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.fofa-unified-menu {
  gap: 2px;
  margin-left: auto;
}

.fofa-unified-mark {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  background:
    radial-gradient(circle at 30% 30%, #67e8f9 0 18%, transparent 19%),
    conic-gradient(from 160deg, #22d3ee, #8b5cf6, #ec4899, #22d3ee);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, white 45%, transparent);
}

.fofa-unified-link {
  box-sizing: border-box;
  height: 30px;
  min-height: 30px;
  border-radius: 8px;
  color: color-mix(in oklab, currentColor 58%, transparent);
  font-size: 13px;
  font-weight: 500;
  padding: 0 .75rem;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
  white-space: nowrap;
}

.fofa-unified-link:hover,
.fofa-unified-link.text-foreground,
.fofa-unified-link.active {
  color: var(--foreground, CanvasText);
  background: color-mix(in oklab, currentColor 8%, transparent);
}

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

@media (max-width: 640px) {
  .fofa-unified-wrap {
    padding: 0 .75rem;
  }

  .fofa-unified-menu {
    gap: 0;
    overflow-x: auto;
  }

  .fofa-unified-divider,
  .fofa-unified-icon,
  .fofa-unified-user,
  .fofa-unified-sign {
    display: none;
  }
}

.fofa-unified-divider {
  width: 1px;
  height: 1rem;
  margin: 0 .5rem;
  background: color-mix(in oklab, currentColor 14%, transparent);
}

.fofa-unified-icon,
.fofa-unified-user,
.fofa-unified-sign {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--foreground, CanvasText);
  font: inherit;
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}

.fofa-unified-brand,
.fofa-unified-link,
.fofa-unified-icon,
.fofa-unified-user,
.fofa-unified-sign,
#fofa-unified-popover button,
#fofa-unified-popover a {
  cursor: pointer;
}

.fofa-unified-icon {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  color: color-mix(in oklab, currentColor 72%, transparent);
}

.fofa-unified-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.fofa-unified-icon .fofa-moon {
  position: absolute;
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

.dark .fofa-unified-icon .fofa-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

.dark .fofa-unified-icon .fofa-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.fofa-unified-icon:hover,
.fofa-unified-user:hover,
.fofa-unified-sign:hover {
  background: color-mix(in oklab, currentColor 8%, transparent);
}

.fofa-unified-user {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: color-mix(in oklab, #06b6d4 82%, #8b5cf6 18%);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.fofa-unified-sign {
  min-height: 2rem;
  border-radius: 999px;
  background: #020617;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 0 .85rem;
}

@media (max-width: 640px) {
  .fofa-unified-divider,
  .fofa-unified-icon,
  .fofa-unified-user,
  .fofa-unified-sign {
    display: none !important;
  }
}

#fofa-unified-popover {
  color: var(--foreground, CanvasText);
}

.fofa-unified-menu-panel {
  display: grid;
  gap: 4px;
  border: 1px solid color-mix(in oklab, currentColor 14%, transparent);
  border-radius: 12px;
  background: color-mix(in oklab, var(--background, Canvas) 96%, #111827 4%);
  box-shadow: 0 20px 45px rgb(15 23 42 / .18);
  padding: 8px;
}

.fofa-unified-menu-panel a,
.fofa-unified-menu-panel button {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  text-align: left;
  text-decoration: none;
}

.fofa-unified-menu-panel a:hover,
.fofa-unified-menu-panel button:hover {
  background: color-mix(in oklab, currentColor 8%, transparent);
}

.fofa-unified-menu-panel span,
.fofa-unified-menu-panel p {
  color: color-mix(in oklab, currentColor 54%, transparent);
  font-size: 12px;
  font-weight: 500;
}

.fofa-unified-menu-panel p {
  margin: 2px 10px 8px;
}

.fofa-unified-menu-title {
  display: block;
  padding: 8px 10px 2px;
  font-size: 13px;
  font-weight: 750;
}

.fofa-ops-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  height: 48px;
  align-items: center;
  gap: 24px;
  background: var(--background, Canvas);
  padding: 0 12px;
}

.fofa-ops-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.fofa-ops-brand span {
  display: inline-flex;
  width: 20px;
  height: 20px;
  overflow: hidden;
  border-radius: 6px;
}

.fofa-ops-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fofa-ops-topbar nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.fofa-ops-topbar nav a {
  color: color-mix(in oklab, currentColor 58%, transparent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .16s ease;
}

.fofa-ops-topbar nav a:hover,
.fofa-ops-topbar nav a.active {
  color: var(--primary, currentColor);
}

.fofa-ops-main {
  padding: 16px clamp(14px, 2vw, 24px) 32px;
}

.fofa-native-monitor {
  min-height: 100%;
  color: inherit;
  background: transparent;
}

.fofa-native-monitor .fofa-ops-main {
  padding: 20px clamp(18px, 2vw, 28px) 32px;
}

.fofa-dashboard-fallback header,
.fofa-native-monitor header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 18px;
}

.fofa-dashboard-fallback header p,
.fofa-dashboard-fallback header span,
.fofa-native-monitor header p,
.fofa-native-monitor header span,
.fofa-dashboard-card em,
.fofa-dashboard-kv em,
.fofa-dashboard-kv span,
.fofa-compact-table td span,
.fofa-log-search-hint {
  color: color-mix(in oklab, currentColor 55%, transparent);
}

.fofa-dashboard-fallback h1,
.fofa-native-monitor h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}

.fofa-dashboard-fallback h2,
.fofa-native-monitor h2 {
  margin: 0 0 12px;
  font-size: 15px;
}

.fofa-dashboard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fofa-dashboard-nav a {
  border: 1px solid color-mix(in oklab, currentColor 14%, transparent);
  border-radius: 8px;
  color: inherit;
  padding: 7px 10px;
  text-decoration: none;
}

.fofa-dashboard-nav a:hover {
  background: color-mix(in oklab, currentColor 8%, transparent);
}

.fofa-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.fofa-dashboard-card,
.fofa-dashboard-panel {
  border: 1px solid color-mix(in oklab, currentColor 14%, transparent);
  border-radius: 10px;
  background: color-mix(in oklab, var(--background, Canvas) 94%, currentColor 3%);
}

.fofa-dashboard-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 14px;
}

.fofa-dashboard-card span {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.fofa-dashboard-card strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 24px;
  line-height: 1.1;
}

.fofa-dashboard-card.blue strong { color: #2563eb; }
.fofa-dashboard-card.green strong { color: #10b981; }
.fofa-dashboard-card.yellow strong { color: #d97706; }
.fofa-dashboard-card.red strong { color: #dc2626; }

.fofa-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 12px;
  margin-bottom: 12px;
}

.fofa-dashboard-panel {
  margin-bottom: 12px;
  padding: 14px;
}

.fofa-panel-note {
  margin: 4px 0 0;
  color: color-mix(in oklab, currentColor 58%, transparent);
  font-size: 12px;
}

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

.fofa-governance-run {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in oklab, #2563eb 48%, transparent);
  border-radius: 8px;
  background: color-mix(in oklab, #2563eb 12%, transparent);
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.fofa-governance-run:hover {
  background: color-mix(in oklab, #2563eb 18%, transparent);
}

.fofa-governance-run:disabled {
  cursor: wait;
  opacity: 0.62;
}

.fofa-governance-result {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in oklab, currentColor 10%, transparent);
  background: color-mix(in oklab, var(--background, Canvas) 92%, currentColor 5%);
  color: color-mix(in oklab, currentColor 68%, transparent);
  font-size: 12px;
}

.fofa-governance-result strong {
  color: color-mix(in oklab, currentColor 88%, transparent);
}

.fofa-governance-result.running {
  border-color: color-mix(in oklab, #2563eb 32%, transparent);
  color: #2563eb;
}

.fofa-governance-result.success {
  border-color: color-mix(in oklab, #16a34a 34%, transparent);
  color: #15803d;
}

.fofa-governance-result.error {
  border-color: color-mix(in oklab, #dc2626 34%, transparent);
  color: #dc2626;
}

.fofa-provider-bars,
.fofa-dashboard-kv {
  display: grid;
  gap: 9px;
}

.fofa-provider-bars > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
}

.fofa-provider-bars span,
.fofa-provider-bars em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fofa-provider-bars b {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #2563eb;
}

.fofa-provider-bars em,
.fofa-dashboard-card em,
.fofa-dashboard-kv em {
  font-style: normal;
}

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

.fofa-dashboard-kv > div {
  border: 1px solid color-mix(in oklab, currentColor 10%, transparent);
  border-radius: 8px;
  padding: 10px;
}

.fofa-dashboard-kv strong,
.fofa-dashboard-kv span,
.fofa-dashboard-kv em,
.fofa-dashboard-card span,
.fofa-dashboard-card em {
  display: block;
}

.fofa-dashboard-kv strong {
  margin: 3px 0;
  font-size: 16px;
}

.fofa-log-search-hint {
  margin-top: 5px;
  max-width: 420px;
  font-size: 11px;
  line-height: 1.35;
}

#root [style*="blur(4px)"],
#root [style*="opacity: 0"] {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

.fofa-console-shell body {
  padding-top: 0 !important;
  background: var(--background, Canvas);
}

#fofa-unified-topbar.fofa-console-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 280px minmax(260px, 1fr) auto;
  align-items: center;
  height: 42px;
  border-bottom: 1px solid color-mix(in oklab, currentColor 8%, transparent);
  background: color-mix(in oklab, var(--background, Canvas) 92%, transparent);
  color: var(--foreground, CanvasText);
  backdrop-filter: blur(12px) saturate(120%);
  box-sizing: border-box;
  padding: 0 10px;
}

.fofa-console-left,
.fofa-console-nav,
.fofa-console-actions,
.fofa-console-brand,
.fofa-console-nav-link,
.fofa-console-search,
.fofa-console-sidebar a {
  display: flex;
  align-items: center;
}

.fofa-console-left {
  gap: 14px;
  min-width: 0;
}

.fofa-console-icon {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  position: relative;
}

.fofa-console-icon span,
.fofa-console-icon::before,
.fofa-console-icon::after {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.fofa-console-icon span { top: 13px; }
.fofa-console-icon::before { top: 9px; }
.fofa-console-icon::after { top: 17px; }

.fofa-console-brand {
  min-width: 0;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.fofa-console-brand .fofa-unified-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.fofa-console-brand strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fofa-console-nav {
  justify-content: center;
  gap: 28px;
  min-width: 0;
}

.fofa-console-nav-link {
  height: 32px;
  color: color-mix(in oklab, currentColor 64%, transparent);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.fofa-console-nav-link:hover,
.fofa-console-nav-link.active {
  color: var(--foreground, CanvasText);
}

.fofa-console-actions {
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.fofa-console-search {
  min-width: 168px;
  height: 32px;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid color-mix(in oklab, currentColor 10%, transparent);
  border-radius: 10px;
  background: color-mix(in oklab, var(--background, Canvas) 88%, currentColor 3%);
  color: color-mix(in oklab, currentColor 58%, transparent);
  cursor: pointer;
  font: inherit;
  padding: 0 9px 0 12px;
}

.fofa-console-search kbd {
  border: 1px solid color-mix(in oklab, currentColor 10%, transparent);
  border-radius: 6px;
  color: color-mix(in oklab, currentColor 48%, transparent);
  font-size: 11px;
  line-height: 1;
  padding: 3px 6px;
}

.fofa-console-topbar .fofa-unified-icon,
.fofa-console-topbar .fofa-unified-user,
.fofa-console-topbar .fofa-unified-sign {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.fofa-console-topbar .fofa-unified-icon svg {
  width: 18px;
  height: 18px;
}

.fofa-console-sidebar {
  position: fixed;
  z-index: 990;
  top: 42px;
  bottom: 0;
  left: 0;
  width: 180px;
  border-right: 1px solid color-mix(in oklab, currentColor 7%, transparent);
  background: color-mix(in oklab, var(--background, Canvas) 95%, currentColor 2%);
  color: var(--foreground, CanvasText);
  overflow-y: auto;
  padding: 18px 14px 18px;
  box-sizing: border-box;
}

.fofa-console-sidebar nav,
.fofa-console-sidebar section {
  display: grid;
  gap: 5px;
}

.fofa-console-sidebar section + section {
  margin-top: 18px;
}

.fofa-console-sidebar p {
  margin: 0 0 6px;
  color: color-mix(in oklab, currentColor 48%, transparent);
  font-size: 12px;
  font-weight: 650;
}

.fofa-console-side-link {
  min-height: 34px;
  gap: 9px;
  border-radius: 9px;
  color: color-mix(in oklab, currentColor 82%, transparent);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.2;
  padding: 0 9px;
  text-decoration: none;
}

.fofa-console-side-link span {
  width: 14px;
  height: 14px;
  border: 1.6px solid currentColor;
  border-radius: 4px;
  opacity: .82;
}

.fofa-console-side-link:hover,
.fofa-console-side-link.active {
  background: color-mix(in oklab, currentColor 8%, transparent);
  color: var(--foreground, CanvasText);
}

.fofa-console-shell #root > div[class*="min-h-svh"][class*="bg-background"] {
  min-height: 100vh;
  padding-top: 42px !important;
  padding-left: 180px !important;
  background: color-mix(in oklab, var(--background, Canvas) 94%, currentColor 3%) !important;
  box-sizing: border-box;
}

.fofa-console-shell #root > div[class*="min-h-svh"][class*="bg-background"] > .relative,
.fofa-console-shell #root > div[class*="min-h-svh"][class*="bg-background"] > div[class*="relative"] {
  margin: 20px 16px 24px;
  border: 1px solid color-mix(in oklab, currentColor 8%, transparent);
  border-radius: 18px;
  background: var(--background, Canvas);
  box-shadow: 0 1px 2px color-mix(in oklab, currentColor 5%, transparent);
  overflow: clip;
}

.fofa-console-shell.fofa-unified-pricing #root [class*="max-w-[1800px]"],
.fofa-console-shell.fofa-unified-rankings #root [class*="max-w-[1800px]"],
.fofa-console-shell.fofa-unified-home #root [class*="max-w-[1800px]"] {
  max-width: none !important;
  padding: 24px !important;
}

.fofa-console-shell.fofa-unified-pricing #root h1,
.fofa-console-shell.fofa-unified-rankings #root h1 {
  font-size: clamp(30px, 4vw, 48px) !important;
  letter-spacing: 0 !important;
}

.fofa-console-shell.fofa-unified-ops .fofa-dashboard-fallback {
  min-height: 100vh;
  margin-left: 180px;
  padding-top: 42px;
  background: color-mix(in oklab, var(--background, Canvas) 94%, currentColor 3%);
  box-sizing: border-box;
}

.fofa-console-shell.fofa-unified-ops .fofa-ops-main {
  margin: 20px 16px 24px;
  border: 1px solid color-mix(in oklab, currentColor 8%, transparent);
  border-radius: 18px;
  background: var(--background, Canvas);
  box-shadow: 0 1px 2px color-mix(in oklab, currentColor 5%, transparent);
  padding: 24px;
}

.fofa-console-shell.fofa-unified-ops .fofa-dashboard-fallback header {
  margin-top: 0;
}

@media (max-width: 760px) {
  #fofa-unified-topbar.fofa-console-topbar {
    grid-template-columns: auto 1fr;
    gap: 8px;
  }

  .fofa-console-nav {
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
  }

  .fofa-console-actions {
    display: none;
  }

  .fofa-console-sidebar {
    display: none;
  }

  .fofa-console-shell #root > div[class*="min-h-svh"][class*="bg-background"],
  .fofa-console-shell.fofa-unified-ops .fofa-dashboard-fallback {
    padding-left: 0 !important;
    margin-left: 0;
  }

  .fofa-console-shell #root > div[class*="min-h-svh"][class*="bg-background"] > .relative,
  .fofa-console-shell #root > div[class*="min-h-svh"][class*="bg-background"] > div[class*="relative"],
  .fofa-console-shell.fofa-unified-ops .fofa-ops-main {
    margin: 12px 8px 18px;
    border-radius: 14px;
    padding: 16px;
  }

  .fofa-route-grid,
  .fofa-perf-stats,
  .fofa-chart-grid,
  .fofa-dashboard-grid,
  .fofa-dashboard-cards,
  .fofa-dashboard-kv {
    grid-template-columns: 1fr;
  }

  .fofa-dashboard-fallback header {
    align-items: flex-start;
    flex-direction: column;
  }

  .fofa-ops-topbar {
    gap: 14px;
    overflow-x: auto;
  }

  .fofa-ops-topbar nav {
    gap: 16px;
    white-space: nowrap;
  }
}

/* === 2026-07-23 UI Enhancement: Model Plaza Card Polish === */

/* Card hover lift + subtle glow */
[data-fofa-pricing-card],
.fofa-pricing-grid > div,
main .grid > div[class*='rounded'] {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
[data-fofa-pricing-card]:hover,
.fofa-pricing-grid > div:hover,
main .grid > div[class*='rounded']:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(79, 140, 255, 0.1);
}

/* Status badge pulse animation */
.fofa-status.online::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  margin-right: 5px;
  animation: fofa-pulse 2s ease-in-out infinite;
}
.fofa-status.cooldown::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  margin-right: 5px;
  animation: fofa-pulse 3s ease-in-out infinite;
}
.fofa-status.offline::before,
.fofa-status.repair::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  margin-right: 5px;
}

@keyframes fofa-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Mini metrics typography enhancement */
.fofa-mini-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}

/* Provider chip refinement */
.fofa-card-provider {
  opacity: 0.7;
  transition: opacity 0.15s;
}
[data-fofa-pricing-card]:hover .fofa-card-provider,
.fofa-pricing-grid > div:hover .fofa-card-provider {
  opacity: 1;
}

/* Health bar smooth rendering */
.fofa-bars span {
  transition: width 0.4s ease;
  border-radius: 2px;
}

/* Filter chip active state enhancement */
.fofa-filter-chip.active {
  box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.4), 0 2px 8px rgba(79, 140, 255, 0.15);
}

/* Smoother page transitions */
main {
  animation: fofa-fade-in 0.25s ease;
}
@keyframes fofa-fade-in {
  from { opacity: 0.6; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Route grid card polish */
.fofa-route-grid > div {
  transition: background 0.15s ease, border-color 0.15s ease;
}
.fofa-route-grid > div:hover {
  background: rgba(79, 140, 255, 0.04);
  border-color: rgba(79, 140, 255, 0.2);
}
