:root {
  --bg: #0f1420;
  --panel: #171d2e;
  --panel-2: #1e2639;
  --text: #e8ecf4;
  --muted: #8f9bb5;
  --accent: #22d3ee;
  --green: #2ecc71;
  --yellow: #f1c40f;
  --orange: #e67e22;
  --red: #e74c3c;
  --score-green: #34d399;
  --score-yellow: #facc15;
  --score-orange: #e99332;
  --score-red: #d95757;
  --border: #283048;
}

* { box-sizing: border-box; }

html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}

body {
  margin: 0;
  font-family: "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

body > header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 32, 0.94);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

main.wrap { padding-top: 26px; }

body > header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.logo span { color: var(--accent); }

nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }

nav button, nav a {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}

nav a { text-decoration: none; }
nav button.active, nav a.active, nav button:hover, nav a:hover { color: var(--text); border-color: var(--accent); }

h1 { font-size: 30px; line-height: 1.2; margin: 24px 0 8px; letter-spacing: 0; }
h2 { font-size: 21px; line-height: 1.3; margin: 24px 0 10px; letter-spacing: 0; }
.sub { color: var(--muted); margin: 0 0 18px; }

.detail-header {
  padding-top: 8px;
  margin-bottom: 22px;
  scroll-margin-top: 92px;
}
.detail-header h1 {
  max-width: 880px;
  margin: 14px 0 7px;
  font-size: 34px;
  line-height: 1.2;
}
.detail-header .sub { margin: 0; }
.detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.detail-title-row h1 { min-width: 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 14px;
}

.grid { display: grid; gap: 12px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.detail-summary { align-items: start; gap: 14px; }
.detail-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: 14px;
}
.detail-left-column {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
}
.detail-summary > .card,
.detail-left-column > .card { min-width: 0; margin-bottom: 0; }
.detail-left-column > .card { overflow: hidden; }
.latest-card {
  grid-column: 2;
  grid-row: 1;
  height: 100%;
  align-self: stretch;
}
.score-card { text-align: left; }
.stability-card { display: flex; flex-direction: column; }
.stability-card .stability-chart { margin-top: auto; }
.score-report-card { margin-top: 0; }
.detail-card h2 { margin-top: 0; }
.score-card { min-height: 0; }
.latest-card { overflow: hidden; }
.benchmark-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: -2px 0 12px;
  overflow-wrap: anywhere;
}
.detail-metrics-table { margin: 0; }
.detail-metrics-table td {
  padding: 10px 8px;
  vertical-align: middle;
}
.detail-metrics-table td:first-child {
  width: 37%;
  color: var(--muted);
  white-space: normal;
}
.detail-metrics-table td:last-child {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.detail-metrics-table .small {
  font-family: inherit;
  font-variant-numeric: normal;
}
.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
}
.icon-button:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.share-button { margin-top: 5px; }
.share-modal-box {
  width: min(760px, calc(100vw - 40px));
  padding: 22px;
}
.share-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.share-modal-head h2 { margin: 0 0 4px; }
.share-modal-head p { margin: 0; }
.share-preview {
  position: relative;
  aspect-ratio: 1260 / 980;
  padding: 12px;
  background: #0a0f1a;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  overflow: hidden;
}
.share-preview-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
}
.share-preview img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-height: min(68vh, 760px);
  object-fit: contain;
  border-radius: 5px;
  opacity: 0;
  transition: opacity .16s ease;
}
.share-preview.loaded img { opacity: 1; }
.share-preview.loaded .share-preview-state { display: none; }
.share-preview.failed img { display: none; }
.share-preview.failed .share-preview-state { color: var(--red); }
.share-modal-box .icon-button {
  width: 34px;
  height: 34px;
}
.share-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.share-actions button,
.share-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.share-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.share-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--green);
}

label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
}
textarea { min-height: 150px; resize: vertical; }

button.primary {
  background: var(--accent);
  border: 0;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

button.secondary {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
}
button.danger {
  background: transparent;
  border: 1px solid rgba(231, 76, 60, 0.5);
  color: var(--red);
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
}
button.danger:hover { background: rgba(231, 76, 60, 0.12); }
.owner-actions { display: flex; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--panel-2); }

.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.bar-row { margin: 8px 0; }
.bar-row .bar-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.bar-row .bar-label strong { color: var(--text); }
.bar-track { height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.45; }
.notice { background: rgba(79, 140, 255, 0.12); border: 1px solid rgba(79, 140, 255, 0.35); color: #bcd4ff; padding: 12px 14px; border-radius: 10px; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 50;
  overflow-y: auto;
  padding: 30px 20px;
}

.modal-box {
  width: min(420px, calc(100vw - 40px));
  margin: auto;
}

#auth-area { display: flex; align-items: center; gap: 8px; margin-left: 0; }
#auth-area button { padding: 7px 12px; font-size: 13px; }
#auth-area .unread { background: var(--red); color: white; border-radius: 999px; padding: 1px 7px; font-size: 12px; }

.nav-secondary {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}
.nav-secondary.active,
.nav-secondary:hover {
  color: var(--text);
  border-color: var(--accent);
}
.nav-secondary .unread {
  background: var(--red);
  color: white;
  border-radius: 999px;
  padding: 0 6px;
  font-size: 11px;
  margin-left: 4px;
}
.turnstile-wrap { min-height: 66px; display: flex; align-items: center; justify-content: center; }
.auth-error { color: var(--red); font-size: 13px; margin: 4px 0 0; }
.auth-info { color: var(--green); font-size: 13px; margin: 4px 0 0; }

.auth-box { position: relative; padding: 28px 26px 22px; }
.auth-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 4px;
}
.auth-close:hover { color: var(--text); }
.auth-head { text-align: center; margin-bottom: 4px; }
.auth-logo { height: 46px; width: auto; display: block; margin: 0 auto 6px; }
.auth-head h2 { margin: 0 0 4px; font-size: 20px; }
.auth-subtitle { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 4px; margin: 14px 0 16px;
}
.auth-tab { border: none; background: transparent; color: var(--muted); padding: 8px 0; border-radius: 7px; font-size: 14px; cursor: pointer; }
.auth-tab.active { background: var(--accent); color: #fff; font-weight: 600; }
.auth-box .field { margin-bottom: 12px; }
.auth-box .field label { margin-bottom: 5px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; letter-spacing: 0.25em; font-size: 15px; }
.code-row button { white-space: nowrap; padding: 10px 12px; font-size: 13px; }
.auth-box #auth-submit { width: 100%; padding: 11px; font-size: 15px; margin-top: 6px; }
.auth-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 14px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn-github {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #24292f; border: 1px solid #3a4149; color: #fff;
  padding: 10px; border-radius: 8px; font-size: 14px; cursor: pointer;
}
.btn-github:hover { background: #2f353d; }
.btn-github svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.auth-footer { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.auth-footer button { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 13px; padding: 0 4px; }
.auth-footer button:hover { text-decoration: underline; }
button:disabled { opacity: 0.6; cursor: not-allowed; }

.lang-switch { display: flex; gap: 4px; margin-left: auto; }
.lang-switch button {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.lang-switch button.active { color: var(--text); border-color: var(--accent); }

.tag { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--border); font-size: 12px; color: var(--muted); margin-right: 6px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo { text-decoration: none; }
.logo-img { height: 34px; width: auto; display: block; }
.footer-inner .logo-img { height: 52px; }
.monogram {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: #06101f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.logo-text { color: var(--text); }

.hero { padding: 42px 0 26px; text-align: center; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; font-weight: 700; }
.hero h1 { font-size: 52px; line-height: 1.1; margin: 12px 0 16px; letter-spacing: 0; }
.hero-sub { max-width: 660px; margin: 0 auto 24px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 30px 0 10px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.stat strong { display: block; font-size: 30px; color: var(--accent); }
.stat span { color: var(--muted); font-size: 13px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 26px 0 12px; }
.section-head h2 { margin: 0; }
.top-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.top-card { min-width: 0; }
.top-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
}
.top-card:hover { border-color: var(--accent); }
.top-card .top-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.top-card .top-line { min-width: 0; flex-wrap: wrap; row-gap: 6px; }
.top-card .top-line .muted { margin-left: auto; }
.top-card h3 { margin: 8px 0 4px; font-size: 17px; line-height: 1.35; }

.filter-groups { display: grid; gap: 14px; margin: 16px 0 30px; }
.filter-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-group > span { min-width: 76px; color: var(--muted); font-size: 13px; }
.filter-group button {
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}
.filter-group button:hover { border-color: var(--accent); }
.filter-group button.active {
  border-color: var(--accent);
  background: rgba(79, 140, 255, 0.18);
  color: var(--text);
}
.filter-reset {
  margin-bottom: 4px;
  color: var(--muted);
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.promise {
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.14), rgba(79, 140, 255, 0.03));
  border: 1px solid rgba(79, 140, 255, 0.28);
  border-radius: 8px;
  padding: 26px;
  margin: 28px 0;
}
.promise h2 { margin-top: 0; }
.pill-row { margin-top: 14px; }

.run-node { padding: 18px 0 30px; }
.run-node pre {
  background: #0b101c;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  overflow-x: auto;
}
.run-node code { color: #9fd0ff; font-size: 14px; }

.placeholder-section { min-height: 320px; }

footer { border-top: 1px solid var(--border); margin-top: 20px; padding: 28px 0; background: var(--panel); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-left: 0; }
.footer-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.footer-brand-text { min-width: 0; }
.footer-brand-title { margin: 0 0 2px; font-weight: 700; }
.footer-brand-sub { margin: 0; }
.footer-brand p, .footer-meta p { margin: 4px 0; }

@media (max-width: 720px) {
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .stats-grid, .top-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 40px; }
  body > header .wrap { flex-wrap: wrap; }
  nav { margin-left: 0; }
}

@media (max-width: 520px) {
  body > header .wrap {
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .logo-img { height: 28px; }
  nav { width: 100%; gap: 4px; }
  nav button, nav a {
    padding: 6px 10px;
    font-size: 13px;
  }
  .lang-switch { order: 3; margin-left: auto; }
  #auth-area { margin-left: 8px; }
  #auth-area button { padding: 6px 10px; font-size: 12px; }
  #auth-area .muted.small { display: none; }
  nav a[data-section="compare"],
  nav a[data-section="roadmap"] {
    display: none;
  }
}

.metric-strong, .price-strong, .price-main, .spec-line, .mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.toolbar { margin: 16px 0; }
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.preset-row button {
  border: 1px solid var(--border); background: rgba(30, 38, 57, .82); color: var(--muted);
  padding: 8px 12px; border-radius: 999px; cursor: pointer; font-size: 13px;
}
.preset-row button.active, .preset-row button:hover { color: var(--text); border-color: var(--accent); }
.filter-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.filter-grid label { font-size: 12px; }

/* 表格用固定布局按比例分列，任何宽度下八列都完整显示、无需横向滚动；
   超长的文本在列内省略号截断（完整值在详情页可见），数字类内容允许换行。
   overflow-x:auto 仅作为极端窄窗口下的兜底。 */
.rankings-table { padding: 0; overflow-x: auto; overflow-y: hidden; }
.rankings-table table { width: 100%; table-layout: fixed; }
.rankings-table thead th:nth-child(1) { width: 88px; }
.rankings-table thead th:nth-child(2) { width: 24%; }
.rankings-table thead th:nth-child(3) { width: 13%; }
.rankings-table thead th:nth-child(4) { width: 10%; }
.rankings-table thead th:nth-child(5) { width: 14%; }
.rankings-table thead th:nth-child(6) { width: 12%; }
.rankings-table thead th:nth-child(7) { width: 10%; }
.rankings-table thead th:nth-child(8) { width: 9%; }
.rankings-table td, .rankings-table th { vertical-align: middle; }
.rankings-table thead th { position: static; background: var(--panel); z-index: auto; white-space: nowrap; }
.price-cell { overflow: hidden; }
.price-cell .price-main { white-space: nowrap; }
.custom-spec-input { margin-top: 8px; }
.mobile-metrics .price-main { white-space: nowrap; }
.mobile-metrics .small.muted { font-size: 11px; }
.sticky-col { position: sticky; background: var(--panel); z-index: 1; }
.rank-col { left: 0; }
.node-col { left: 88px; border-right: 1px solid var(--border); }
tbody tr:hover .sticky-col { background: var(--panel-2); }
.rank-cell { display: flex; align-items: center; gap: 8px; position: relative; }
.rank-cell span { color: var(--muted); font-size: 12px; }
.node-cell { overflow: hidden; }
.node-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.node-name { font-weight: 650; overflow-wrap: anywhere; }
.spec-line { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-cell { white-space: normal; }
.mini-bar { width: 100%; max-width: 96px; height: 4px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: linear-gradient(90deg, #22d3ee, #8b5cf6); }

.region-cell { display: flex; align-items: baseline; gap: 6px; white-space: normal; }
.route-pill { display: inline-block; margin-top: 4px; padding: 2px 7px; border-radius: 6px; font-size: 11px; border: 1px solid; }
.route-pill.cn2gia { color: #d8b4fe; border-color: #7e22ce; background: rgba(126,34,206,.16); }
.route-pill.as9929 { color: #93c5fd; border-color: #1d4ed8; background: rgba(29,78,216,.16); }
.route-pill.cmin2 { color: #6ee7b7; border-color: #059669; background: rgba(5,150,105,.16); }
.route-pill.basic { color: #94a3b8; border-color: #475569; background: rgba(71,85,105,.16); }

.integrity-badge { padding: 2px 6px; border-radius: 6px; font-size: 11px; border: 1px solid; }
.integrity-badge.verified { color: #6ee7b7; border-color: #059669; background: rgba(5,150,105,.14); }
.integrity-badge.community { color: #fde68a; border-color: #a16207; background: rgba(161,98,7,.12); }
.integrity-badge.anomaly { color: #fecaca; border-color: #dc2626; background: rgba(220,38,38,.14); }

.stock-badge { font-size: 11px; color: #6ee7b7; border: 1px solid #059669; border-radius: 6px; padding: 1px 5px; }
.stock-badge.out { color: #fecaca; border-color: #dc2626; }
.promo-chip { font-family: ui-monospace, Consolas, monospace; font-size: 12px; border: 1px dashed #22d3ee; color: #22d3ee; background: transparent; border-radius: 6px; padding: 3px 6px; cursor: pointer; }
.order-link { font-size: 13px; text-decoration: none; border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; }
.actions-cell { white-space: normal; }
.actions-cell > * { margin: 2px 4px 2px 0; white-space: nowrap; }

.radar-glance { position: absolute; left: 78px; top: 0; width: 186px; height: 176px; padding: 12px; background: rgba(9,12,22,.96); border: 1px solid var(--border); border-radius: 8px; opacity: 0; visibility: hidden; transform: translateY(4px); transition: .16s; z-index: 8; box-shadow: 0 12px 30px rgba(0,0,0,.34); }
.rank-cell:hover .radar-glance { opacity: 1; visibility: visible; transform: translateY(0); }
.radar-glance svg { width: 162px; height: 152px; }
.radar-glance svg polygon { fill: rgba(34,211,238,.15); stroke: #22d3ee; stroke-width: 1.5; }
.radar-glance svg text { fill: #94a3b8; font-size: 8px; }

.ticker { overflow: hidden; border: 1px solid var(--border); background: rgba(15,20,32,.7); border-radius: 8px; padding: 10px; white-space: nowrap; }
.ticker-track { display: inline-flex; align-items: center; width: max-content; min-width: 100%; animation: ticker-scroll 42s linear infinite; will-change: transform; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 7px; margin-right: 20px; font-size: 13px; color: var(--muted); }
.ticker-copy { display: inline-flex; align-items: center; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; max-width: 100%; }
}

.terminal-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #0a0f1a; margin: 12px 0; }
.terminal-head { display: flex; gap: 5px; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.terminal-head span { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.terminal-card pre { margin: 0; padding: 16px; overflow-x: auto; color: #a5f3fc; font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.cli-options { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 10px 0 14px; }
.cli-options label { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.safety-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.compare-dock { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(9,12,22,.94); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 14px 38px rgba(0,0,0,.35); backdrop-filter: blur(10px); max-width: calc(100vw - 28px); overflow-x: auto; }
.dock-chips { display: flex; gap: 6px; }
.dock-chip { border: 1px solid var(--border); color: var(--text); background: var(--panel); border-radius: 999px; padding: 5px 9px; cursor: pointer; font-size: 12px; white-space: nowrap; }

.mobile-node-card { display: none; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.mobile-node-card header {
  position: static;
  width: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
}
.mobile-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.mobile-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mobile-metrics span { display: block; color: var(--muted); font-size: 12px; }
.mobile-metrics strong { font-family: ui-monospace, Consolas, monospace; }
.mobile-commerce { display: flex; gap: 6px; align-items: center; margin-top: 10px; }

.carrier-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.carrier-pill { border: 1px solid var(--border); border-radius: 8px; padding: 10px; text-align: center; }
.carrier-pill em { display: block; margin-top: 3px; font-style: normal; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.carrier-pill.muted { opacity: .65; }

.stability-chart { display: flex; align-items: flex-end; gap: 3px; height: 136px; padding-top: 6px; }
.stability-col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; position: relative; }
.stability-col .loss-bar, .stability-col .ping-bar { display: block; width: 4px; border-radius: 2px; }
.stability-col .loss-bar { background: #ef4444; margin-bottom: 1px; }
.stability-col .ping-bar { background: #22d3ee; }
.stability-col .ping-bar.peak { background: #8b5cf6; }
.stability-col .hour { position: absolute; bottom: -18px; font-size: 9px; color: var(--muted); }

.mtr-flow { display: flex; align-items: center; gap: 7px; overflow-x: auto; padding-bottom: 5px; }
.mtr-hop { min-width: 164px; padding: 11px; border: 1px solid var(--border); border-radius: 8px; background: rgba(30,38,57,.65); }
.mtr-hop strong { display: block; font-size: 13px; }
.mtr-hop span { color: var(--muted); font-size: 12px; }
.mtr-hop.premium { border-color: #7e22ce; box-shadow: 0 0 0 1px rgba(126,34,206,.22); }
.mtr-hop.anomaly { border-color: #dc2626; box-shadow: 0 0 0 1px rgba(220,38,38,.22); }
.mtr-arrow { color: var(--muted); }

.review-item { border-bottom: 1px solid var(--border); padding: 10px 0; }
.review-scores { display: flex; flex-wrap: wrap; gap: 6px; margin: 5px 0; }

.roadmap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.roadmap-grid h2 { margin-top: 8px; }

@media (max-width: 1080px) {
  .filter-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  main.wrap { padding-top: 14px; }
  body > header .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .logo { order: 1; grid-column: 1; width: fit-content; }
  .lang-switch { order: 2; grid-column: 2; margin-left: 0; }
  #auth-area { order: 3; grid-column: 2; justify-self: end; }
  nav { order: 4; grid-column: 1 / -1; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  nav button, nav a { flex: 0 0 auto; }
  .rankings-table { display: none; }
  .top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-summary { grid-template-columns: minmax(0, 1fr); }
  .detail-left-column { display: contents; }
  .detail-left-column > .score-card { order: 1; }
  .detail-summary > .latest-card { order: 2; grid-column: auto; grid-row: auto; height: auto; }
  .detail-left-column > .carriers-card { order: 3; }
  .detail-left-column > .stability-card { order: 4; }
  .toolbar { margin-top: 0; }
  #section-list h1 { margin-top: 0; }
  #section-list .sub { margin-top: 0; }
  .mobile-node-card { display: block; }
  .mobile-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .mobile-commerce { flex-wrap: wrap; }
  .carrier-row { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .stability-chart { width: 100%; min-width: 0; overflow-x: hidden; }
  #section-detail .card { overflow-x: auto; }
  .hero { padding: 30px 0 18px; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 15px; }
  .top-grid { grid-template-columns: 1fr; }
  .stats-grid { gap: 8px; }
  .stat { padding: 12px 8px; }
  .stat strong { font-size: 24px; }
  .section-head { align-items: flex-start; }
  .section-head > a { flex: 0 0 auto; margin-top: 2px; }
}
