/* pangolin minimal style — dark-first, hvoy.ai-adjacent. No external deps.
 *
 * 文件分层约定
 * 1. tokens       设计变量、主题切换变量
 * 2. base         reset、文本、通用元素
 * 3. layout       container、header、footer、全局布局骨架
 * 4. components   表单、按钮、卡片、FAQ、combobox、probe pill 等可复用部件
 * 5. pages        hub / leaderboard / result / faq 等页面块
 * 6. states       运行态、结果态、警告态等语义状态
 * 7. responsive   统一放置断点覆盖，避免页面样式与响应式规则继续交叉缠绕
 */

/* ========================================================================== */
/* TOKENS                                                                      */
/* ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #070b14;
  --bg-soft: rgba(15, 23, 42, 0.88);
  --surface: #0d1524;
  --surface-2: #121c31;
  --text: #f4f8ff;
  --muted: #8b9bb4;
  --line: rgba(34, 211, 238, 0.28);
  --green: #22d3ee;
  --green-dark: #67e8f9;
  --green-soft: rgba(34, 211, 238, 0.14);
  --blue: #60a5fa;
  --blue-soft: rgba(96, 165, 250, 0.14);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.13);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.13);
  --shadow: 0 18px 50px rgba(2, 8, 23, 0.55);
  --page-max: 960px;
  --page-pad-x: 28px;
  --page-pad-y: 32px;
  --page-pad-bottom: 56px;
  --section-gap: 28px;
  --card-pad: 24px;
  --card-pad-lg: 32px;
  --card-pad-sm: 18px;
  --header-offset: 60px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --green: #10b981;
  --green-dark: #059669;
  --green-soft: #d1fae5;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --red: #ef4444;
  --red-soft: #fee2e2;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
}

/* ========================================================================== */
/* BASE                                                                        */
/* ========================================================================== */

* { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  /* Keep the viewport as the only vertical scrollport so header scroll
     listeners (and sticky/fixed chrome) see real scroll offsets. */
  overflow-x: clip;
  overflow-y: scroll;
}
body {
  margin: 0;
  padding: 0;
  padding-top: var(--header-offset, 60px);
  overflow: visible;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               Arial, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC",
               sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Zero-size probe at document top — leaving the viewport means "scrolled". */
.site-header-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  visibility: hidden;
}

/* ========================================================================== */
/* LAYOUT                                                                      */
/* ========================================================================== */

.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--page-pad-y) var(--page-pad-x) var(--page-pad-bottom);
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  flex: 1 0 auto;
}

main.container > * {
  margin: 0;
  min-width: 0;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono",
               Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* ----- layout: fixed header / navigation (scroll-collapse) ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 0;
  transition:
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    padding 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Top: full-bleed bar. Scrolled: transparent shell holding a floating pill. */
.site-header.is-scrolled {
  border-bottom-color: transparent;
  background: transparent;
  box-shadow: none;
  padding: 10px 16px 0;
  pointer-events: none;
}
.site-header-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 60px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition:
    padding 0.32s ease,
    min-height 0.32s ease,
    gap 0.32s ease,
    max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.32s ease,
    -webkit-backdrop-filter 0.28s ease,
    backdrop-filter 0.28s ease;
}
.site-header.is-scrolled .site-header-inner {
  pointer-events: auto;
  max-width: var(--page-max);
  padding: 8px 20px;
  min-height: 48px;
  gap: 14px;
  border-radius: 999px;
  border-color: color-mix(in srgb, var(--line) 65%, transparent);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(1.35) blur(18px);
  backdrop-filter: saturate(1.35) blur(18px);
  box-shadow:
    0 10px 32px rgba(2, 8, 23, 0.16),
    0 1px 0 color-mix(in srgb, #fff 18%, transparent) inset;
}
:root[data-theme="light"] .site-header.is-scrolled .site-header-inner {
  background: color-mix(in srgb, #ffffff 78%, #ecfdf5 22%);
  border-color: color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.75) inset;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
  flex-shrink: 0;
  transition: font-size 0.28s ease;
}
.site-header.is-scrolled .brand {
  font-size: 16px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  /* Prefer margin over flex gap — animates reliably in Safari. */
  margin-right: 16px;
  transition:
    width 0.28s ease,
    height 0.28s ease,
    border-radius 0.28s ease,
    margin-right 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header.is-scrolled .brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  margin-right: 4px;
}
.brand-name {
  display: inline-block;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  min-width: 78px;
  min-height: 34px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    min-width 0.28s ease,
    min-height 0.28s ease,
    padding 0.28s ease,
    gap 0.28s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.site-header.is-scrolled .theme-toggle {
  min-width: 34px;
  min-height: 30px;
  padding: 5px 8px;
  gap: 0;
}
.theme-toggle:hover {
  background: var(--surface-2);
  transform: translateY(-1px);
}
.theme-toggle:active {
  transform: translateY(0);
}
.theme-toggle-icon {
  font-size: 12px;
  line-height: 1;
}
.theme-toggle-label {
  white-space: nowrap;
  max-width: 4em;
  overflow: hidden;
  opacity: 1;
  transition: max-width 0.28s ease, opacity 0.2s ease, margin 0.28s ease;
}
.site-header.is-scrolled .theme-toggle-label {
  max-width: 0;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}

.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-left: auto;
  min-width: 0;
  transition: gap 0.28s ease;
}
.site-header.is-scrolled .site-nav {
  gap: 18px;
}
.site-nav a,
.site-nav .nav-link-btn {
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  padding: 8px 0;
  position: relative;
  transition: font-size 0.28s ease, padding 0.28s ease, color 0.15s ease;
}
.site-header.is-scrolled .site-nav a,
.site-header.is-scrolled .site-nav .nav-link-btn {
  font-size: 14px;
  padding: 6px 0;
}
.site-nav a:hover,
.site-nav .nav-link-btn:hover {
  color: var(--text);
  text-decoration: none;
}
.site-nav a.is-active {
  color: var(--text);
  font-weight: 600;
}
/* Subtle underline on hover/focus — feels more "tappable" than bare text */
.site-nav a::after,
.site-nav .nav-link-btn::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.15s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after,
.site-nav .nav-link-btn:hover::after,
.site-nav .nav-link-btn:focus-visible::after { transform: scaleX(1); }
.site-nav .nav-link-btn {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  margin: 0;
}

/* Hamburger button — hidden on desktop, shown on mobile. */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* Animate to an "X" when open — gives a clear close affordance. */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ----- scroll reveal: slide up from below + fade ----- */
html.js-reveal .reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
html.js-reveal .reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.site-footer {
  /* 横向 padding 移到内部 p 上,跟 .container 的 page padding 完全同步。
     border-top 仍占满屏宽保留分隔线视觉。文字居中显示
     (页脚约定俗成的对齐方式)。 */
  border-top: 1px solid var(--line);
  padding: 20px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.site-footer p {
  /* 复刻 .container 的盒模型:外宽 960px、横向 page padding、border-box
     让 p 边线跟主体内容像素级对齐。文字在 960px 框内居中,
     长句超过 960px 自然换行(每行仍居中)。 */
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  box-sizing: border-box;
}
.site-footer p.muted.small {
  margin-top: 8px;
}

/* Footer multi-column layout — replaces the single centered paragraph
 * with a grid of {tagline | 项目 | 工具 | 资源}.
 * Designed for an SEO-friendly internal-link cluster footer (every
 * deep-link reachable from any page) without becoming a wall of text. */
.footer-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px var(--page-pad-x) 12px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  text-align: left;
  box-sizing: border-box;
}
.footer-col h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin: 6px 0; }
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.footer-col a:hover {
  color: var(--text);
  text-decoration: underline;
}
.footer-tagline {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 14px;
}
.footer-tagline strong {
  color: var(--green-dark, #047857);
  font-weight: 700;
}
body.board-neon .footer-tagline strong {
  color: var(--bn-cyan, #22d3ee);
}
.footer-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-copyright {
  text-align: center;
  margin: 8px 0 0;
  padding: 0 var(--page-pad-x);
}
.footer-copyright-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  line-height: 1.45;
}
.footer-copyright-stack span {
  display: block;
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
  }
  .footer-col-tagline {
    grid-column: 1 / -1;
  }
}

/* ========================================================================== */
/* PAGES · hub / leaderboard / marketing surfaces                              */
/* ========================================================================== */

/* ============================== Trust Strip ==============================
 * Legacy trust strip styles kept for older product surfaces. The current
 * landing page uses the isolated landing-* system below. */
.trust-strip {
  margin: 32px 0 40px;
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg,
    rgba(16, 185, 129, 0.04) 0%,
    rgba(16, 185, 129, 0.01) 60%,
    var(--bg) 100%);
}
.trust-strip-head {
  text-align: center;
  margin-bottom: 24px;
}
.trust-strip-head h2 {
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.trust-strip-head p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.trust-strip-head p strong { color: var(--text); }

.trust-card,
.protocol-card,
.why-item,
.footer-col,
.faq-header,
.faq-item,
.lb-main,
.hub-note {
  min-width: 0;
}

.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.trust-card {
  padding: 18px 18px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.trust-icon {
  font-size: 24px;
  margin-bottom: 8px;
  line-height: 1;
}
.trust-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.trust-card h3 em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: 13.5px;
}
.trust-card p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.trust-card code {
  font-size: 11.5px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 3px;
}
.trust-link {
  font-size: 12.5px;
  color: var(--green-dark, #047857);
  text-decoration: none;
  font-weight: 500;
  margin-top: auto;
}
.trust-link:hover { text-decoration: underline; }

.trust-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
@media (max-width: 760px) {
  .trust-cards { grid-template-columns: 1fr; }
  .trust-strip { padding: 22px 18px 18px; }
  .trust-strip-head h2 { font-size: 19px; }
}

/* hero */
.hero {
  text-align: center;
  margin: 10px 0 var(--section-gap);
  padding: 8px 0 12px;
}
.hero h1 {
  font-size: 36px; line-height: 1.2; margin: 0 auto 12px;
  letter-spacing: -0.02em;
  max-width: 920px;
}
.hero-sub {
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto;
}
.hero-compact,
.hub-hero-compact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.hero-kicker-row-center,
.hero-chip-row-center,
.hero-actions {
  justify-content: center;
}
.hero-kicker-pill,
.hero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}
.hero-kicker-pill-muted {
  color: var(--muted);
  background: transparent;
}
.hero-kicker-pill-accent {
  background: var(--green-soft);
  border-color: rgba(52, 211, 153, 0.32);
  color: var(--green-dark);
}
.hero-highlight {
  color: var(--green-dark);
}
.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-secondary {
  min-width: 190px;
}
.hero-support {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.65;
}
.detect-hero {
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  padding: 34px clamp(18px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.42));
  box-shadow: var(--shadow);
}
[data-theme="dark"] .detect-hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.48));
}
.detect-hero h1 {
  font-size: clamp(30px, 4.3vw, 48px);
  line-height: 1.14;
}
.detect-hero .answer-capsule {
  max-width: 820px;
}
.detect-highlight-card {
  /* Sit just under the hero without overlapping its breathing room. */
  margin-top: calc(var(--section-gap) * -0.18);
  gap: 20px;
}
.detect-highlight-card .stack-note-head {
  max-width: 44rem;
}
.detect-highlight-card .stack-note-head h2 {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.detect-highlight-card .stack-note-head p {
  font-size: 14px;
  line-height: 1.7;
}
.detect-highlight-card .stack-note-list {
  gap: 12px;
}
.detect-highlight-card .stack-note-list li {
  /* Fixed label column so every row’s description starts on the same x. */
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 8px 20px;
  align-items: start;
  padding: 16px 18px;
}
.detect-highlight-card .stack-note-list strong {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 1px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.detect-highlight-card .stack-note-list span {
  min-width: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.detect-highlight-card .stack-note-muted {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.65;
  max-width: 44rem;
}

.detect-catalog {
  margin-top: var(--section-gap);
}
.detect-catalog-head {
  margin-bottom: 18px;
  max-width: 820px;
}
.detect-catalog-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.detect-catalog-sub {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.detect-catalog-meta {
  margin: 0;
}
.detect-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.detect-check-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow);
  min-width: 0;
}
.detect-check-index {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 8px;
  padding: 4px 7px;
  line-height: 1;
  margin-top: 2px;
}
.detect-check-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
}
.detect-check-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.detect-hero-anthropic,
.detect-highlight-anthropic {
  border-color: rgba(52, 211, 153, 0.28);
}
.detect-hero-openai,
.detect-highlight-openai {
  border-color: rgba(96, 165, 250, 0.28);
}
.detect-hero-gemini,
.detect-highlight-gemini {
  border-color: rgba(168, 85, 247, 0.28);
}

/* hub */
.hub-hero {
  /* 不设 max-width — 让首屏文字、协议卡片、why/how 各 section 共用 .container
     的 960px 全宽,左右边缘视觉对齐。text-wrap: balance 会在 960px 内自动
     算出每行接近相等的宽度,所以不会出现"一行特别长"的问题。 */
  margin: 8px 0 var(--section-gap);
}
.hub-hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hub-hero p {
  color: var(--muted);
  margin: 0;
  font-size: 17px;
}
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.protocol-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--bg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  min-width: 0;
}
.protocol-card-primary { border-color: rgba(16, 185, 129, 0.45); }
.protocol-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.protocol-kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.protocol-card h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.protocol-card p {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 14px;
}
.protocol-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.protocol-note {
  margin-top: 0;
}
.protocol-action {
  margin-top: auto;
  width: 100%;
}
.tier-badge {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.tier-crypto {
  color: #047857;
  background: var(--green-soft);
}
.tier-behavioral {
  color: #92400e;
  background: #fef3c7;
}
.tier-protocol {
  color: #374151;
  background: #f3f4f6;
}
.hub-note {
  border-top: 1px solid var(--line);
  padding-top: var(--card-pad);
  margin-top: var(--section-gap);
}
.hub-note h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
.hub-note p {
  color: var(--muted);
  margin: 0 0 16px;
}
.lb-rules-collapse {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}
.lb-rules-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  user-select: none;
}
.lb-rules-summary::-webkit-details-marker {
  display: none;
}
.lb-rules-summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.55em;
  height: 0.55em;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  margin-left: 4px;
}
.lb-rules-collapse[open] .lb-rules-summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.lb-rules-hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
.lb-rules-body {
  padding: 0 16px 16px;
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.lb-rules-body p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.lb-rules-body p:first-child {
  margin-top: 14px;
}
@media (max-width: 640px) {
  .lb-rules-hint {
    display: none;
  }
}

/* CJK + 英文混排:让长句始终在容器内换行,避免英文片段或代码样式把
   版面撑出边界。 */
.hub-meta,
.protocol-card p,
.why-item p,
.site-footer p,
.hero-sub,
.answer-capsule,
.hub-hero p,
.trust-strip-head p,
.trust-card p,
.faq-body,
.faq-item summary,
.footer-desc,
.footer-col a {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-break: strict;
  max-width: 100%;
}
.answer-capsule,
.hub-note p,
.how-steps p {
  line-break: strict;
}

/* answer capsule + meta strip (SEO definition-first per SEO_AI_GEO_PLAN §3.2) */
.answer-capsule {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 14px;
}
.answer-capsule strong {
  color: var(--green-dark);
  font-weight: 600;
}
.hub-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.01em;
}
.hub-meta strong {
  color: var(--text);
  font-weight: 600;
}
/* 内联版 meta:跟在 .answer-capsule 末尾继续流动而不是另起一段。
   保持灰色 + 稍小字号的视觉差异,前面留一格空白做天然分隔。 */
.hub-meta-inline {
  color: var(--muted);
  font-size: 0.85em;
  letter-spacing: 0.01em;
  margin-left: 0.5em;
}
.hub-meta-inline strong { color: var(--text); font-weight: 600; }

/* "why veridrop" 5-card differentiator grid */
.why-veridrop { margin: 44px 0 8px; }
.why-veridrop h2 {
  font-size: 24px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.why-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--bg);
  box-shadow: var(--shadow);
  min-width: 0;
}
.why-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.why-item h3 {
  font-size: 16px;
  margin: 0 0 8px;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.why-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.why-item code {
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12.5px;
  color: var(--text);
}

/* "how it works" 3-step list */
.how-it-works { margin: 44px 0 8px; }
.how-it-works h2 {
  font-size: 24px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.how-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--bg);
}
.how-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.how-steps h3 {
  font-size: 16px;
  margin: 2px 0 6px;
  line-height: 1.35;
}
.how-steps p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.how-steps a { color: var(--green-dark); text-decoration: none; }
.how-steps a:hover { text-decoration: underline; }

/* ========== /leaderboard 红黑榜 ========== */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}
.lb-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  padding: var(--card-pad-sm) var(--card-pad);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  align-items: flex-start;
  overflow: visible;
}
.lb-row--podium {
  /* Room for the mascot peeking above the card edge. */
  margin-top: 72px;
}
.lb-rank {
  font-size: 24px;
  text-align: center;
  padding-top: 4px;
  line-height: 0;
}
.lb-medal {
  position: absolute;
  top: -98px;
  right: -10px;
  z-index: 3;
  width: 150px;
  height: 150px;
  margin: 0;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(2, 8, 23, 0.45));
}
.lb-rank-num {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.lb-rank-num--podium {
  color: var(--text);
  font-weight: 800;
}
.lb-main { min-width: 0; }
.lb-domain {
  font-size: 18px;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
  word-break: break-all;  /* 长域名能换行 */
}
.lb-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
  overflow-wrap: break-word;
}
.lb-badge-info {
  background: var(--bg-soft);
  color: var(--muted);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 12px;
}
.lb-protocols {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.lb-proto-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 500;
}
.lb-proto-chip:hover { text-decoration: none; transform: translateY(-1px); transition: transform 0.1s; }
.lb-proto-name { font-weight: 600; }
.lb-proto-score { font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-proto-verdict { font-size: 11.5px; opacity: 0.85; }
.lb-proto-count { font-size: 11px; opacity: 0.7; }
.lb-proto-ok    { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.lb-proto-good  { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.lb-proto-warn  { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.lb-proto-fail  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.lb-issues {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
}
.lb-issues code,
.lb-issues .lb-issues-name {
  display: inline-block;
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11.5px;
  border: 1px solid var(--line);
  color: var(--text);
}
.lb-issues .lb-issues-name {
  font-family: inherit;
  font-weight: 650;
}
.lb-score {
  text-align: center;
  min-width: 64px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-soft);
}
.lb-score-num {
  display: block;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lb-score-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.05em;
}
.lb-score-ok    { background: var(--green-soft); color: var(--green-dark); }
.lb-score-good  { background: #f0fdf4; color: #166534; }
.lb-score-warn  { background: #fffbeb; color: #92400e; }
.lb-score-fail  { background: #fef2f2; color: #991b1b; }

/* leaderboard list — domain link + detail entry */
.lb-domain a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.lb-domain a:hover {
  border-bottom-color: var(--muted);
  text-decoration: none;
}
.lb-detail-link {
  font-size: 12.5px;
  color: var(--green-dark, #047857);
  text-decoration: none;
  font-weight: 500;
}
.lb-detail-link:hover { text-decoration: underline; }

/* ========== /activity 最新检测 ========== */
.activity-page {
  max-width: var(--page-max);
  margin: 0 auto;
}
.activity-hero {
  margin-bottom: var(--section-gap);
}
.activity-hero h1 {
  font-size: 28px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.activity-hero .lead {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  line-height: 1.55;
}
.activity-unavailable {
  padding: var(--card-pad-sm) var(--card-pad);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
}
.activity-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.activity-col h2,
.activity-col-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--text);
}
.activity-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Keep both columns' card tops aligned despite different mascot sizes. */
  height: 50px;
  box-sizing: border-box;
}
.activity-col-mascot {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.activity-col-mascot--recent {
  width: 50px;
  height: 50px;
  animation: activity-mascot-hop 1.1s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes activity-mascot-hop {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  35% { transform: translateY(-7px) scale(0.96, 1.04); }
  55% { transform: translateY(0) scale(1.04, 0.94); }
  70% { transform: translateY(-2px) scale(0.99, 1.01); }
}

.activity-col-mascot-wrap--heat {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.activity-col-mascot--heat {
  position: relative;
  z-index: 1;
  animation: activity-mascot-burn 0.85s ease-in-out infinite;
}
.activity-flame {
  position: absolute;
  z-index: 2;
  width: 30%;
  height: 34%;
  top: 28%;
  border-radius: 50% 50% 45% 45%;
  background:
    radial-gradient(ellipse at 50% 75%, #fff8c8 0%, #ffb000 35%, #ff6a00 62%, transparent 78%);
  mix-blend-mode: screen;
  filter: blur(0.6px);
  pointer-events: none;
  transform-origin: 50% 100%;
  opacity: 0.85;
}
.activity-flame--l {
  left: calc(18% - 5px);
  animation: activity-flame-flicker 0.55s ease-in-out infinite;
}
.activity-flame--r {
  left: calc(52% + 5px);
  animation: activity-flame-flicker 0.65s ease-in-out infinite reverse;
  animation-delay: -0.2s;
}
@keyframes activity-mascot-burn {
  0%, 100% {
    filter:
      brightness(1)
      saturate(1)
      drop-shadow(0 0 1px rgba(255, 140, 0, 0.35));
  }
  40% {
    filter:
      brightness(1.08)
      saturate(1.15)
      drop-shadow(0 0 3px rgba(255, 170, 40, 0.7));
  }
  70% {
    filter:
      brightness(1.03)
      saturate(1.08)
      drop-shadow(0 0 2px rgba(255, 100, 0, 0.55));
  }
}
@keyframes activity-flame-flicker {
  0%, 100% { transform: scaleY(1) scaleX(1) translateY(0); opacity: 0.75; }
  25% { transform: scaleY(1.18) scaleX(0.9) translateY(-1px); opacity: 1; }
  50% { transform: scaleY(0.92) scaleX(1.08) translateY(0.5px); opacity: 0.7; }
  75% { transform: scaleY(1.12) scaleX(0.95) translateY(-0.5px); opacity: 0.95; }
}
@media (prefers-reduced-motion: reduce) {
  .activity-col-mascot--recent,
  .activity-col-mascot--heat,
  .activity-flame {
    animation: none;
  }
}
.activity-card {
  display: flex;
  gap: 14px;
  padding: var(--card-pad-sm) var(--card-pad);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  margin-bottom: 12px;
}
.activity-card:last-child { margin-bottom: 0; }
.activity-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
}
.activity-main { min-width: 0; flex: 1; }
.activity-domain {
  font-size: 16px;
  margin: 0 0 4px;
  word-break: break-all;
}
.activity-domain a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.activity-domain a:hover {
  border-bottom-color: var(--muted);
}
.activity-proto {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line);
  margin-bottom: 6px;
}
.activity-meta {
  color: var(--muted);
  font-size: 12.5px;
  margin: 0 0 10px;
  line-height: 1.45;
}
.activity-spark {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 28px;
  margin-bottom: 10px;
}
.activity-spark-bar {
  flex: 1;
  min-width: 3px;
  max-width: 12px;
  height: calc(var(--h, 0) * 1%);
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--line);
}
.activity-spark-bar.is-on {
  background: var(--green);
  opacity: 0.75;
}
.activity-verdict { margin-top: 2px; }
.activity-verdict-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--line);
  margin-bottom: 5px;
}
.activity-verdict-bar .v-pass { background: var(--green); }
.activity-verdict-bar .v-marginal { background: var(--amber); }
.activity-verdict-bar .v-fail { background: var(--red); }
.activity-verdict-text {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* history lookup */
.history-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 0 48px;
}
.history-hero h1 {
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
}
.history-hero .lead {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 640px;
  line-height: 1.55;
}
.history-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.history-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.history-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.history-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.history-submit {
  flex: 0 0 auto;
  width: auto;
  min-width: 96px;
  height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 600;
}
.history-result {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.history-result-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  padding: 20px 22px 22px;
}
.history-result-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.history-result-head h2 {
  font-size: 16px;
  margin: 0;
  font-weight: 650;
}
.history-result-domain {
  font-size: 13px;
  word-break: break-all;
}
.history-hit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 10px;
  background: var(--surface, var(--bg));
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.history-hit:hover {
  border-color: var(--line);
  background: var(--green-soft);
}
.history-hit-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  flex: 0 0 auto;
}
.history-hit-main { min-width: 0; flex: 1; }
.history-hit-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}
.history-hit-name {
  color: var(--green-dark);
  font-size: 18px;
  word-break: break-all;
}
.history-hit-name-sub {
  font-size: 13px;
  word-break: break-all;
}
.history-hit-proto,
.history-hit-stats {
  margin: 6px 0 0;
  font-size: 13px;
}
.history-hit-score {
  margin: 8px 0 0;
  font-size: 15px;
}
.history-hit-score strong { font-variant-numeric: tabular-nums; }
.history-hit-more {
  margin: 14px 0 0;
  font-size: 13px;
}
.history-miss {
  padding: 8px 4px 4px;
}
.history-miss-msg {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--line) 55%, transparent);
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.history-miss-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}
.history-miss-primary {
  width: 100%;
  text-align: center;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
}
.history-miss-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.history-miss-btn {
  text-align: center;
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
}
.history-miss-btn:hover {
  border-color: var(--green);
  color: var(--green-dark);
}
@media (max-width: 640px) {
  .history-row { flex-direction: column; }
  .history-submit { width: 100%; min-height: 44px; }
  .history-hero h1 { font-size: 26px; }
}

/* leaderboard detail page — per-domain SEO surface */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { color: var(--muted); opacity: 0.5; }
.breadcrumb-current { color: var(--text); font-weight: 500; word-break: break-all; }

.lb-detail-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--card-pad);
  align-items: center;
  margin: var(--section-gap) 0;
  padding: var(--card-pad) var(--card-pad);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.lb-detail-score {
  text-align: center;
  min-width: 110px;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--bg-soft);
}
.lb-detail-score-num {
  display: block;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lb-detail-score-label {
  display: block;
  font-size: 11px;
  color: inherit;
  opacity: 0.75;
  margin-top: 6px;
  letter-spacing: 0.06em;
}
.lb-detail-protocols h2 {
  font-size: 15px;
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.lb-detail-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}

.lb-detail-issues {
  margin: 28px 0;
  padding: var(--card-pad-sm) var(--card-pad);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.lb-detail-issues h2 {
  font-size: 18px;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}

.lb-issues-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lb-issues-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12.5px;
}
.lb-issues-list code,
.lb-issues-name {
  background: transparent;
  padding: 0;
  border: none;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--text);
  font-weight: 650;
}
.lb-issues-list code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
}
.lb-issues-count {
  color: var(--muted);
  font-size: 11.5px;
}

.lb-detail-history {
  margin: 28px 0;
}
.lb-detail-history h2 {
  font-size: 20px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.lb-history-table-wrap {
  margin-top: 14px;
  max-height: min(420px, 58vh);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  scrollbar-gutter: stable;
}
.lb-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.lb-history-table thead {
  background: var(--bg-soft);
}
.lb-history-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-soft);
  box-shadow: 0 1px 0 var(--line);
}
.lb-history-table th,
.lb-history-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.lb-history-table th.num,
.lb-history-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.lb-history-table tbody tr:last-child td { border-bottom: none; }
.lb-history-table tbody tr:hover { background: var(--bg-soft); }
.lb-history-table code {
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  border: 1px solid var(--line);
}
.lb-history-table thead tr code,
.lb-history-table tbody tr:hover code {
  background: var(--bg);
}
.lb-history-score {
  display: inline-block;
  min-width: 36px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-align: center;
}
.lb-history-score-ok    { background: #ecfdf5; color: #065f46; }
.lb-history-score-good  { background: #f0fdf4; color: #166534; }
.lb-history-score-warn  { background: #fffbeb; color: #92400e; }
.lb-history-score-fail  { background: #fef2f2; color: #991b1b; }

/* Leaderboard section headers — separate Top 10 from全部列表. */
.lb-section-heading {
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.lb-section-heading h2 {
  font-size: 20px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.lb-section-heading p {
  margin: 0;
}

/* Pagination — server-rendered links so each page is a distinct URL
 * for SEO long-tail (?page=2 etc.). Designed mobile-first: chips
 * wrap onto multiple lines if needed instead of overflowing. */
.lb-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 28px 0;
  font-size: 14px;
}
.lb-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.lb-page-btn:hover {
  background: var(--bg-soft);
  text-decoration: none;
}
.lb-page-current {
  background: var(--green);
  color: white;
  border-color: var(--green);
  font-weight: 600;
}
.lb-page-current:hover {
  background: var(--green);  /* lock — current page isn't a link */
  color: white;
}
.lb-page-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.lb-page-ellipsis {
  align-self: flex-end;
  padding: 7px 4px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .lb-detail-summary {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lb-detail-score { min-width: 0; }
  .lb-detail-score-num { font-size: 40px; }
}

/* ========================================================================== */
/* COMPONENTS · cards / forms / buttons / shared widgets                       */
/* ========================================================================== */

/* card */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--card-pad-lg);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.stack-note {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.stack-note-head h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.stack-note-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.stack-note-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.stack-note-list li {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 10px 16px;
  align-items: baseline;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
}
.stack-note-list strong {
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
.stack-note-list span {
  min-width: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.stack-note-muted {
  margin: 0;
}
.stack-note-danger {
  border-color: rgba(248, 113, 113, 0.28);
}

.form-card { padding: var(--card-pad-lg); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg);
  font-family: inherit;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 1px),
    calc(100% - 12px) calc(50% - 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.field .hint { color: var(--muted); font-size: 13px; margin: 4px 0 0; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field { margin-bottom: 18px; }

/* Opt-in checkbox row — for long-context probe and other paid extras. */
.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.field-checkbox[hidden] {
  display: none;
}
.field-checkbox input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.field-checkbox label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  cursor: pointer;
  line-height: 1.5;
  flex: 1;
}
.field-checkbox label > strong { font-weight: 600; }
.field-checkbox .checkbox-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.field-checkbox .checkbox-hint strong { color: var(--text); font-weight: 600; }
.field-checkbox:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft, rgba(16, 185, 129, 0.06));
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px;
  font-size: 15px; font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}
.btn:hover { background: var(--bg-soft); }
.btn-primary {
  background: var(--green); color: white; border-color: var(--green);
  width: 100%; padding: 13px 22px; font-size: 16px;
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-primary:disabled {
  opacity: 0.86;
  cursor: progress;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-dark) 100%);
  border-color: var(--green-dark);
}
.btn-primary[data-state="done"],
.btn-primary[data-state="error"] {
  cursor: pointer;
}
.btn-ghost { background: var(--bg); }

/* History lookup: must beat .btn-primary { width:100% } (defined above). */
.history-row .btn.btn-primary.history-submit {
  width: auto;
  flex: 0 0 auto;
  align-self: stretch;
  min-width: 96px;
  max-width: none;
  height: 48px;
  padding: 0 22px;
}

.form-error {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: none;
}
/* Cancelled: compact left-aligned tip, same pink tone as form errors. */
.form-error.form-error-cancelled {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 12px 0 0;
  padding: 8px 12px;
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.form-error-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: inherit;
}
.form-error-body {
  font-size: 13px;
  color: #7f1d1d;
  word-break: break-word;
}
.form-error.form-error-cancelled .form-error-body {
  color: #7f1d1d;
}
.form-error-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}
/* Side-by-side actions — same light-pink fill on every button. */
.form-error-actions .btn,
.form-error-actions .btn-primary,
.form-error-actions .btn.btn-primary,
.form-error-actions .btn-ghost,
body.board-neon .form-error-actions .btn,
body.board-neon .form-error-actions .btn-primary,
body.board-neon .form-error-actions .btn.btn-primary,
body.board-neon .form-error-actions .btn-ghost {
  width: auto;
  flex: 0 1 auto;
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  white-space: nowrap;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  box-shadow: none;
}
.form-error-actions .btn:hover,
.form-error-actions .btn-primary:hover,
.form-error-actions .btn.btn-primary:hover,
.form-error-actions .btn-ghost:hover,
body.board-neon .form-error-actions .btn:hover,
body.board-neon .form-error-actions .btn-primary:hover,
body.board-neon .form-error-actions .btn.btn-primary:hover,
body.board-neon .form-error-actions .btn-ghost:hover {
  background: #fecaca;
  border-color: #f87171;
  color: #7f1d1d;
  filter: none;
}

/* running */
.running-card { text-align: center; padding: 56px 28px; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================================================== */
/* STATES · utility tone / async status / result semantics                     */
/* ========================================================================== */

.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ========================================================================== */
/* PAGES · running / result                                                    */
/* ========================================================================== */

/* ---------- result page ---------- */
.result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.result-head h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.02em; }
.result-head .muted { font-size: 14px; word-break: break-all; }
.result-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

.result-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--card-pad-lg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--card-pad-lg);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.result-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}
.live-result-meta {
  min-width: 0;
}
.result-summary .live-result-label,
.live-result-summary .live-result-label {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  min-width: 0;
}
.result-summary .live-result-hint,
.live-result-summary .live-result-hint {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
}
.result-summary .live-result-score,
.live-result-summary .live-result-score {
  min-width: 88px;
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  justify-self: end;
  white-space: nowrap;
}
.live-result-summary-passed .live-result-score,
.live-result-summary-done .live-result-score {
  border-color: rgba(16, 185, 129, 0.25);
}
.live-result-summary-marginal .live-result-score,
.live-result-summary-pending .live-result-score,
.live-result-summary-cancelled .live-result-score {
  border-color: rgba(245, 158, 11, 0.25);
}
.live-result-summary-failed .live-result-score,
.live-result-summary-error .live-result-score {
  border-color: rgba(239, 68, 68, 0.25);
}


.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.check-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.check-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.check-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}
.check-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.check-card-title {
  min-width: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
.check-card-badge {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  white-space: nowrap;
}
.check-card-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.check-card-items {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.5;
}
.check-card-items li {
  position: relative;
  padding-left: 16px;
}
.check-card-items li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.42;
}
.check-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.check-card-result,
.check-card-score {
  font-weight: 800;
}
.check-card-score {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

/* 检测结论：颜色、背景和左侧强调条共同表达，避免只靠细边框区分。 */
.check-card-ok {
  border-color: rgba(52, 211, 153, 0.58);
  background: linear-gradient(135deg, var(--green-soft) 0%, var(--bg-soft) 58%);
  box-shadow: inset 4px 0 0 var(--green), var(--shadow);
}
.check-card-ok .check-card-result,
.check-card-ok .check-card-score {
  color: var(--green-dark);
}
.check-card-ok .check-card-badge {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: rgba(52, 211, 153, 0.42);
}
.check-card-ok.check-card-state-done .check-card-badge::before {
  content: "✓ ";
}

.check-card-fail {
  border-color: rgba(248, 113, 113, 0.65);
  background: linear-gradient(135deg, var(--red-soft) 0%, var(--bg-soft) 58%);
  box-shadow: inset 4px 0 0 var(--red), var(--shadow);
}
.check-card-fail .check-card-result,
.check-card-fail .check-card-score {
  color: var(--red);
}
.check-card-fail .check-card-badge {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(248, 113, 113, 0.45);
}
.check-card-fail .check-card-badge::before {
  content: "× ";
}

.check-card-muted {
  border-color: var(--line);
}
.check-card-state-cancelled {
  border-color: rgba(245, 158, 11, 0.38);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-soft) 58%);
  box-shadow: inset 4px 0 0 rgba(245, 158, 11, 0.68), var(--shadow);
}
.check-card-state-cancelled .check-card-result,
.check-card-state-cancelled .check-card-badge {
  color: var(--amber, #f59e0b);
}
.check-card-state-cancelled .check-card-badge {
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.35);
}
.check-card-state-cancelled .check-card-badge::before {
  content: "– ";
}

/* 执行状态：进行中使用蓝色，与绿色“通过”明确分离。 */
.check-card-state-running,
.check-card-muted.check-card-state-running {
  border-color: rgba(96, 165, 250, 0.72);
  background: linear-gradient(135deg, var(--blue-soft) 0%, var(--bg-soft) 62%);
  box-shadow: inset 4px 0 0 var(--blue), 0 0 0 1px var(--blue-soft), var(--shadow);
}
.check-card-state-running .check-card-badge {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: rgba(96, 165, 250, 0.45);
}
.check-card-state-running .check-card-badge::before {
  content: "● ";
}
.check-card-state-running {
  animation: check-running-pulse 1.4s ease-in-out infinite;
}
@keyframes check-running-pulse {
  0%, 100% { box-shadow: inset 4px 0 0 var(--blue), 0 0 0 1px var(--blue-soft), var(--shadow); }
  50% { box-shadow: inset 4px 0 0 var(--blue), 0 0 0 4px rgba(96, 165, 250, 0.14), var(--shadow); }
}

.check-card-state-done.check-card-muted {
  opacity: 1;
  border-color: rgba(52, 211, 153, 0.38);
  box-shadow: inset 4px 0 0 rgba(52, 211, 153, 0.72), var(--shadow);
}
.check-card-state-done.check-card-muted .check-card-badge {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: rgba(52, 211, 153, 0.35);
}
.check-card-state-done.check-card-muted .check-card-badge::before {
  content: "✓ ";
}

.check-card-state-pending {
  opacity: 0.82;
  box-shadow: inset 4px 0 0 var(--line);
}
.check-card-state-pending .check-card-badge::before {
  content: "○ ";
}
.check-card-state-skipped {
  opacity: 0.48;
  border-style: dashed;
  background: var(--bg-soft);
  box-shadow: none;
}
.check-card-state-skipped:hover {
  transform: none;
  box-shadow: none;
}
.check-card-state-skipped .check-card-badge {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}
.check-card-state-skipped .check-card-badge::before {
  content: "— ";
}
.check-card-state-error {
  border-color: var(--red);
  background: linear-gradient(135deg, var(--red-soft) 0%, var(--bg-soft) 55%);
  box-shadow: inset 4px 0 0 var(--red), 0 0 0 1px var(--red-soft), var(--shadow);
}
.check-card-state-error .check-card-badge {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(248, 113, 113, 0.5);
}
.check-card-state-error .check-card-badge::before {
  content: "× ";
}

.check-card-state-pending .check-card-result,
.check-card-state-pending .check-card-score {
  color: var(--muted);
}
.check-card-state-running .check-card-result,
.check-card-state-running .check-card-score {
  color: var(--blue);
}
.check-card-state-running .check-card-result::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: currentColor;
  animation: check-dot-pulse 1s ease-in-out infinite;
}
@keyframes check-dot-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.18); }
}
@media (max-width: 760px) {
  .result-head {
    grid-template-columns: 1fr;
  }
  .result-actions {
    justify-content: stretch;
  }
  .result-actions .btn {
    flex: 1 1 auto;
  }
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}
.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--line);
  color: var(--muted);
  flex-shrink: 0;
}
.check-icon-mark::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.62;
}
.check-label {
  min-width: 0;
  display: grid;
  gap: 4px;
  font-weight: 700;
}
.check-label small,
.check-status small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}
.check-status {
  justify-self: end;
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
}
.check-status-score {
  display: block;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  opacity: 0.88;
}
.check-ok {
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: inset 4px 0 0 var(--green);
}
.check-ok .check-icon,
.check-ok .check-status {
  color: var(--green-dark);
}
.check-fail {
  border-color: rgba(248, 113, 113, 0.52);
  box-shadow: inset 4px 0 0 var(--red);
}
.check-fail .check-icon,
.check-fail .check-status {
  color: var(--red);
}
.check-muted {
  opacity: 0.74;
}

/* live progress */
.live-progress-shell {
  text-align: left;
}
.live-progress-shell .live-progress-head,
.live-progress-shell .live-progress-divider {
  display: none;
}
.live-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.live-progress-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.live-progress-detail {
  margin: 6px 0 0;
}
.live-progress-count {
  flex-shrink: 0;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
}
.live-progress-shell > .live-result-summary {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.lb-detail-pricing {
  margin: 28px 0;
}
.lb-detail-pricing h2 {
  font-size: 18px;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.lb-pricing-unit-heading {
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.lb-pricing-unit-heading:first-of-type {
  margin-top: 10px;
}
.lb-price-note-row td {
  padding-top: 0;
  border-top: 0;
}
.lb-detail-pricing .muted {
  color: var(--muted);
}
.lb-pricing-source {
  font-size: 12px;
  word-break: break-all;
}
.lb-pricing-table .lb-price-amt {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.lb-pricing-table .lb-price-amt--ratio {
  color: var(--green, #10b981);
}
.lb-pricing-table .lb-price-unit {
  color: var(--muted);
  font-size: 13px;
}
.lb-pricing-table .lb-price-ratio {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

.lb-pricing-table .lb-price-official {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  opacity: 0.9;
}
.lb-pricing-table .lb-price-group {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
body.board-neon .lb-pricing-table .lb-price-amt {
  color: var(--bn-cyan);
}
body.board-neon .lb-pricing-table .lb-price-amt--ratio {
  color: #6ee7b7;
}
body.board-neon .lb-pricing-table .lb-price-group {
  background: rgba(15, 23, 42, 0.92);
  border-color: var(--bn-line);
  color: var(--bn-muted);
}
body.board-neon .lb-pricing-table .lb-price-unit {
  color: var(--bn-muted);
}
.live-progress-shell .live-progress-track,
.result-summary > .live-progress-track {
  grid-column: 1 / -1;
  position: relative;
  width: 100%;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  overflow: visible;
  margin: 18px 0 0;
}
.live-progress-shell .live-progress-track::before,
.result-summary > .live-progress-track::before {
  display: none;
}
.live-progress-bar {
  width: 0;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green) 0%, #34d399 100%);
  /* Width is eased in JS so each completed check does not jump a full segment. */
  transition: none;
}
.live-progress-mascot {
  position: absolute;
  left: var(--progress, 0%);
  top: 50%;
  width: 48px;
  height: 26px;
  margin: 0;
  transform: translate(-50%, -58%);
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(2, 8, 23, 0.35));
  transition: none;
  background-image: url('/static/progress-crawler-sheet.png?v=2');
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 192px 26px; /* 4 frames × display width */
  animation: none;
}
.live-progress-crawling .live-progress-mascot {
  animation: live-progress-crawl-frames 0.52s steps(4) infinite;
}
@keyframes live-progress-crawl-frames {
  from { background-position: 0 0; }
  to { background-position: -192px 0; }
}
.live-progress-complete .live-progress-mascot {
  opacity: 0.92;
  animation: none;
  background-position: 0 0;
}
@media (prefers-reduced-motion: reduce) {
  .live-progress-crawling .live-progress-mascot {
    animation: none;
    background-position: 0 0;
  }
}
.live-progress-complete {
  opacity: 0.78;
  transform: translateY(-1px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.live-progress-complete .live-progress-track {
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.16);
}
.live-progress-complete .live-progress-bar {
  background: linear-gradient(90deg, var(--green-dark) 0%, var(--green) 100%);
}

.inline-status-card {
  max-width: 640px;
  margin: 0 auto;
}
.inline-result {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}
.inline-result[hidden] {
  display: none;
}
.inline-mounted-report {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  margin-top: var(--section-gap);
  scroll-margin-top: 24px;
}
.inline-mounted-report .result-head {
  margin-top: 0;
}
.check-card-placeholder {
  min-height: 154px;
}
.live-result-summary-idle .live-result-score,
.live-result-summary-queued .live-result-score,
.live-result-summary-running .live-result-score {
  color: var(--muted);
}
.live-result-summary-error .live-result-score {
  color: var(--red);
}

@media (max-width: 720px) {
  .check-grid,
  .check-grid-compact {
    grid-template-columns: 1fr;
  }
  .live-progress-head {
    flex-direction: column;
  }
  .live-progress-count {
    align-self: flex-start;
  }
}

.enhancement-list {
  grid-column: 2 / 4;
  list-style: none;
  padding: 0;
  margin: 0 0 2px;
  display: grid;
  gap: 7px;
}
.enhancement-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--bg-soft);
  font-size: 12.5px;
}
.enhancement-badge {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 6px;
  white-space: nowrap;
}
.enhancement-name { font-weight: 650; white-space: nowrap; }
.enhancement-summary { color: var(--muted); }
.enhancement-ok { border-left: 3px solid var(--green); }
.enhancement-warn { border-left: 3px solid var(--amber); }
.enhancement-fail { border-left: 3px solid var(--red); }
.enhancement-muted { border-left: 3px solid var(--line); }

/* metrics row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.metrics-row-5 { grid-template-columns: repeat(5, 1fr); }
.metric {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: var(--card-pad-sm) 12px;
  text-align: center;
}
.metric-warn { border-color: var(--red); border-width: 2px; }
.metric-label { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.metric-value { font-size: 24px; font-weight: 700; margin-top: 6px; }

.alert-card {
  background: var(--red-soft);
  border-color: color-mix(in srgb, var(--red) 42%, var(--line));
  color: color-mix(in srgb, var(--red) 70%, var(--text));
}

.gemini-compat-card code {
  background: var(--red-soft);
  border-color: color-mix(in srgb, var(--red) 35%, var(--line));
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  padding: 1px 4px;
  border-radius: 999px;
  word-break: break-all;
}

.notes-card {
  background: var(--bg-soft);
  border-color: var(--line);
  color: var(--text);
  box-shadow: inset 4px 0 0 var(--amber), var(--shadow);
}
.notes-card h2 {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--text);
}
.note-item + .note-item {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}
.note-item strong {
  color: color-mix(in srgb, var(--amber) 55%, var(--text));
}
.note-item p {
  color: var(--muted);
  margin: 6px 0 0;
}
[data-theme="light"] .notes-card {
  background: var(--amber-soft);
  border-color: color-mix(in srgb, var(--amber) 42%, var(--line));
  box-shadow: inset 4px 0 0 var(--amber);
}
[data-theme="light"] .notes-card h2,
[data-theme="light"] .note-item strong {
  color: color-mix(in srgb, var(--amber) 45%, var(--text));
}
[data-theme="light"] .note-item + .note-item {
  border-top-color: color-mix(in srgb, var(--amber) 35%, var(--line));
}

.details-card summary {
  cursor: pointer; font-weight: 600; padding: 4px 0;
}
.def-list { display: grid; grid-template-columns: 200px 1fr; gap: 10px 18px; margin-top: 14px; }
.def-list dt { font-weight: 600; }
.def-list dd { margin: 0; color: var(--muted); }

/* combobox (custom dropdown — replaces native <datalist> for mobile reliability) */
.combo { position: relative; width: 100%; }
/* input doesn't auto-fill its block container; force 100% so the combo
   matches the width of the sibling <select> in .field-row. */
.combo > input { width: 100%; }
.combo-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 280px;
  overflow-y: auto;
  z-index: 20;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  -webkit-overflow-scrolling: touch;
}
.combo-item {
  padding: 11px 14px;
  cursor: pointer;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", Consolas, monospace;
  color: var(--text);
  /* mobile: bigger tap target, easier to hit */
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.combo-item:hover, .combo-item.active {
  background: var(--green-soft);
  color: var(--green-dark);
}
.combo-item:active {
  background: var(--green);
  color: white;
}
.combo-item[hidden] { display: none; }
/* When the input has a query, non-matching items dim instead of hide so the
   user can still see the relay's full model whitelist surfaced by /api/probe. */
.combo-item.no-match { opacity: 0.4; }
.combo-item.no-match:hover { opacity: 1; }

/* Shared FAQ block — used on homepage / product pages as an embedded component. */
.faq { margin-top: calc(var(--section-gap) * 1.5); padding: 0; }
.faq h2 {
  font-size: 24px;
  letter-spacing: -0.01em;
}

/* FAQ header — title row + dual-mode toggle (通俗 / 开发者).
   Two answers per question (data-mode="layperson|developer"); CSS hides
   the inactive mode based on the parent .faq's data-mode attribute. JS
   in app.js flips the attribute and persists the choice in localStorage. */
.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
}
.faq-header h2 { margin: 0; min-width: 0; }
.faq-mode-toggle {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
}
.faq-mode-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.faq-mode-btn:hover { color: var(--text); }
.faq-mode-active {
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Mode-specific answer visibility — by default both <p data-mode> are in
   DOM (so search engines see both); CSS hides whichever doesn't match
   the active mode. */
.faq[data-mode="layperson"] [data-mode="developer"] { display: none; }
.faq[data-mode="developer"] [data-mode="layperson"] { display: none; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 0;
  transition: box-shadow 0.15s;
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-body {
  padding: 0 20px 22px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}
.faq-body p:first-child { margin-top: 0; }
.faq-body ul, .faq-body ol { padding-left: 22px; }
.faq-body li { margin-bottom: 6px; }
.faq-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}
.faq-table th, .faq-table td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.faq-table th {
  background: var(--bg-soft);
  font-weight: 600;
}

/* ========================================================================== */
/* RESPONSIVE · layout and page overrides                                      */
/* ========================================================================== */

/* Tablet (721px–960px): same desktop layout, just slightly tighter padding
   so on iPad portrait the brand+nav fit one row without crowding. */
@media (max-width: 960px) {
  :root {
    --page-pad-x: 22px;
    --page-pad-y: 28px;
    --page-pad-bottom: 48px;
  }
  .site-header-inner { padding: 14px 18px; gap: 16px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 13px; }
}

/* Mobile (≤720px): collapse nav into hamburger dropdown. */
@media (max-width: 720px) {
  :root {
    --page-pad-x: 18px;
    --page-pad-y: 22px;
    --page-pad-bottom: 40px;
    --section-gap: 22px;
    --card-pad: 18px;
    --card-pad-lg: 20px;
    --card-pad-sm: 16px;
  }
  .hero {
    margin: 10px 0 var(--section-gap);
    padding: 8px 0 10px;
  }
  .hero h1 { font-size: 28px; }
  .hero-sub {
    max-width: 100%;
  }
  .detect-catalog-grid { grid-template-columns: 1fr; }
  .hero-kicker-row,
  .hero-chip-row,
  .hero-actions {
    justify-content: center;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .stack-note-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .faq { padding: 0; }
  .faq-header { padding: 0; }

  /* leaderboard 手机端:rank 列改小 + score 移到 main 下方,避免 3 列挤 */
  .lb-row {
    grid-template-columns: 32px 1fr;
    grid-template-areas:
      "rank main"
      ".    score";
    gap: 10px 12px;
  }
  .lb-rank { grid-area: rank; font-size: 18px; padding-top: 0; }
  .lb-medal {
    top: -78px;
    right: -6px;
    width: 114px;
    height: 114px;
  }
  .lb-row--podium { margin-top: 56px; }
  .lb-rank-num { width: 28px; height: 28px; line-height: 28px; font-size: 12px; }
  .lb-main { grid-area: main; }
  .lb-score {
    grid-area: score;
    justify-self: start;
    min-width: 0;
    padding: 4px 10px;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
  }
  .lb-score-num { font-size: 20px; }

  .activity-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .lb-score-label { margin-top: 0; }

  /* 手机端:步骤项从「左圆数字 + 右内容」改成「上数字 + 下内容」竖排,
     避免左边 32px 圆 + 16px gap 吃掉 48px 内容宽度。让描述文字填满整个
     步骤框,跟其他卡片视觉一致。 */
  .how-steps li {
    flex-direction: column;
    gap: 8px;
  }
  .field-row { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 1fr; padding: var(--card-pad); }
  .metrics-row, .metrics-row-5 { grid-template-columns: repeat(2, 1fr); }
  .def-list { grid-template-columns: 1fr; }
  .result-head { flex-direction: column; }
  .hero h1 { font-size: 28px; }
  .hub-hero h1 { font-size: 28px; }

  /* Show hamburger; collapse nav into a dropdown panel positioned right
     under the header. */
  .nav-toggle { display: flex; }
  .site-header-inner {
    position: relative;
    padding: 12px 16px;
    gap: 10px;
  }
  .site-header.is-scrolled {
    padding: 8px 12px 0;
  }
  .site-header.is-scrolled .site-header-inner {
    border-radius: 18px;
    padding: 8px 12px;
    min-height: 44px;
  }
  :root { --header-offset: 52px; }

  .site-nav {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin-left: 0;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: saturate(1.2) blur(14px);
    backdrop-filter: saturate(1.2) blur(14px);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    /* Hidden by default on mobile; toggled via aria-expanded on .nav-toggle */
    display: none;
  }
  .site-header-inner:has(.nav-toggle[aria-expanded="true"]) .site-nav {
    display: flex;
  }
  .site-nav a,
  .site-nav .nav-link-btn {
    padding: 14px 20px;
    font-size: 15px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
    width: 100%;
    text-align: left;
  }
  .site-nav a:last-child,
  .site-nav .nav-link-btn:last-child { border-bottom: none; }
  .site-nav a:hover,
  .site-nav .nav-link-btn:hover { background: var(--bg-soft); }
  /* Disable the underline animation in dropdown rows — it competes with
     the row-tap highlight and looks busy. */
  .site-nav a::after,
  .site-nav .nav-link-btn::after { display: none; }
  /* Keep theme control visible in the bar (homepage style), not inside menu. */
  .theme-toggle {
    margin-left: auto;
  }
}

/* pre-submit /v1/models probe pill (web/static/app.js inserts it) */
.probe-pill {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 1.55;
}
.probe-pill .probe-headline { font-weight: 600; }
.probe-pill .probe-detail { margin-top: 4px; color: var(--muted); font-size: 12px; word-break: break-all; }
.probe-pill .probe-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.probe-pill .probe-action {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
}
.probe-ok      { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.probe-warn    { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.probe-fail    { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.probe-neutral { background: #f9fafb; border-color: #e5e7eb; color: #4b5563; }

/* ========================================================================== */
/* PAGES · FAQ index and deep-link surfaces                                    */
/* ========================================================================== */

/* =========== /faq page =========== */
.faq-hero {
  margin: 8px 0 24px;
}
.faq-hero h1 {
  font-size: 32px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.faq-hero-sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  max-width: 740px;
}

/* Two-column: sticky TOC | main content */
.faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 16px;
}

.faq-toc {
  position: sticky;
  /* site-header is sticky at top: 0 with ~58px height; offset so TOC sits below */
  top: 78px;
  align-self: start;
  font-size: 14px;
}
.faq-toc-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.faq-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-toc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.faq-toc-list a {
  color: var(--text);
  padding: 7px 10px;
  border-radius: 6px;
  flex: 1;
  border-left: 2px solid transparent;
}
.faq-toc-list a:hover {
  background: var(--bg-soft);
  text-decoration: none;
  border-left-color: var(--green);
}
.faq-toc-count {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  padding-right: 6px;
}

/* Main column */
.faq-main { min-width: 0; }

.faq-category {
  scroll-margin-top: 76px;  /* offset for sticky header when jumping via TOC */
  margin-bottom: 48px;
}
.faq-category h2 {
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.faq-category-intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.faq-entries {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-entry {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  scroll-margin-top: 76px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-entry[open] {
  border-color: var(--green);
  box-shadow: 0 1px 6px rgba(16, 185, 129, 0.08);
}
.faq-entry summary.faq-q {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.faq-entry summary.faq-q::-webkit-details-marker { display: none; }
/* Custom triangle on the right */
.faq-entry summary.faq-q::before {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  margin-right: 4px;
  transition: transform 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}
.faq-entry[open] summary.faq-q::before {
  transform: rotate(45deg);
  border-color: var(--green);
}
.faq-entry summary.faq-q:hover { background: var(--bg-soft); }
.faq-entry[open] summary.faq-q:hover { background: var(--bg); }

.faq-permalink {
  margin-left: auto;
  color: var(--muted);
  font-weight: 400;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.faq-entry:hover .faq-permalink,
.faq-entry[open] .faq-permalink { opacity: 1; }

.faq-a {
  padding: 0 16px 16px 36px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.75;
}

.faq-no-answer {
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.faq-no-answer h2 {
  font-size: 16px;
  margin: 0 0 8px;
}
.faq-no-answer p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.7;
}

/* "更多问题 → /faq#xxx" trailer on product pages — separates the picked
   highlight FAQ from the deep-link to the full /faq page. */
.faq-more {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}
.faq-more a { color: var(--green-dark); }

/* Tablet (≤960px): TOC narrows but still sticky */
@media (max-width: 960px) {
  .faq-layout { grid-template-columns: 180px 1fr; gap: 28px; }
  .faq-toc { font-size: 13px; }
}

/* Mobile (≤820px, 覆盖 iPhone 全系 + iPad 竖屏):TOC 改成多行换行的 chip 卡片
   (而不是隐性横滚,所有分类一次看全),所有正文允许任意位置断词防止溢出。 */
@media (max-width: 820px) {
  .faq-hero h1 { font-size: 26px; }
  .faq-hero-sub { font-size: 14px; }
  .faq-layout { grid-template-columns: 1fr; gap: 16px; }
  .faq-toc {
    position: static;
    top: auto;
    margin: 0 0 4px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
  }
  .faq-toc-title { display: none; }
  .faq-toc-list {
    flex-direction: row;
    flex-wrap: wrap;       /* 多行排版,所有分类一次看全 */
    gap: 8px;
  }
  .faq-toc-list li { flex-shrink: 0; }
  .faq-toc-list a {
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    white-space: nowrap;
    font-size: 13px;
  }
  .faq-toc-list a:hover { border-left-color: var(--line); }
  .faq-toc-count {
    background: var(--bg-soft);
    border-radius: 999px;
    padding: 1px 6px;
    margin-left: 4px;
  }
  .faq-category h2 { font-size: 20px; }
  .faq-category-intro,
  .faq-q,
  .faq-a {
    overflow-wrap: anywhere;  /* 长英文/code 可在任意位置断行,不撑宽容器 */
  }
  .faq-a { padding: 0 14px 14px 32px; font-size: 14px; }
  /* 收紧 container 横向 padding,把 16px 让给正文 */
  .container { padding-left: 16px; padding-right: 16px; }
}

/* ========================================================================== */
/* PAGES · landing / API security scanner                                     */
/* ========================================================================== */

.landing-shell,
.landing-section {
  position: relative;
  isolation: isolate;
}
.landing-shell {
  margin: -4px 0 88px;
  padding: 72px clamp(22px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 16% 12%, rgba(34, 211, 238, 0.2), transparent 31%),
    radial-gradient(circle at 88% 20%, rgba(99, 102, 241, 0.24), transparent 34%),
    linear-gradient(135deg, #06111f 0%, #0a1020 46%, #0d1327 100%);
  color: #f8fbff;
  box-shadow: 0 34px 120px rgba(2, 8, 23, 0.38);
}
.landing-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}
.landing-shell::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  filter: blur(10px);
  z-index: -1;
}
.landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.landing-hero-copy {
  max-width: 820px;
}
.landing-eyebrow,
.landing-proof-row,
.landing-tags,
.scan-card-topline,
.protocol-card-head,
.landing-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.landing-eyebrow {
  gap: 10px;
  margin-bottom: 24px;
  color: #a5f3fc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.landing-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 24px #22d3ee;
}
.landing-eyebrow-muted {
  padding: 5px 9px;
  border: 1px solid rgba(165, 243, 252, 0.2);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.48);
  letter-spacing: 0.04em;
}
.landing-hero-copy h1 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(26px, 3.1vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.03em;
}
.landing-hero-copy h1 span {
  display: block;
  color: #67e8f9;
  text-shadow: 0 0 36px rgba(34, 211, 238, 0.4);
}
.landing-lead {
  margin: 22px 0 0;
  max-width: 640px;
  color: #aebed2;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
}
.landing-actions {
  gap: 14px;
  margin-top: 34px;
}
.landing-primary-action,
.landing-secondary-action,
.landing-protocol-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.landing-primary-action {
  color: #67e8f9;
  background: transparent;
  border: 1px solid rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.18);
}
.landing-primary-action:hover,
.landing-secondary-action:hover,
.landing-protocol-card a:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.landing-primary-action:hover {
  border-color: rgba(34, 211, 238, 0.85);
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.28);
  color: #a5f3fc;
}
.landing-secondary-action {
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.5);
}
.landing-proof-row {
  gap: 10px;
  margin-top: 24px;
}
.landing-proof-row span,
.landing-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.46);
  font-size: 12.5px;
  font-weight: 700;
}
.landing-scan-card {
  position: relative;
  min-height: 440px;
  padding: 26px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.58)),
    radial-gradient(circle at 50% 38%, rgba(34, 211, 238, 0.28), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 26px 70px rgba(0,0,0,0.26);
  backdrop-filter: blur(18px);
}
.scan-card-topline {
  justify-content: space-between;
  gap: 14px;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.scan-card-topline strong {
  color: #86efac;
}
.scan-orb {
  display: block;
  width: 220px;
  height: 220px;
  margin: 42px auto 34px;
  border-radius: 46px;
  object-fit: contain;
  padding: 22px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(125, 211, 252, 0.24);
  box-shadow: 0 0 80px rgba(34, 211, 238, 0.28), inset 0 0 32px rgba(255,255,255,0.08);
}
.scan-metrics {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
}
.scan-metrics div,
.scan-checks span {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.55);
}
.scan-metrics div {
  padding: 14px;
}
.scan-metrics span {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.scan-metrics strong {
  display: block;
  margin-top: 6px;
  color: #f8fafc;
  font-size: 18px;
}
.scan-depth-modes {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}
.scan-depth-modes span {
  display: block;
  color: inherit;
  font-size: inherit;
  text-transform: none;
  letter-spacing: normal;
}
.scan-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.scan-checks span {
  padding: 10px 12px;
  color: #cbd5e1;
  font-size: 12px;
}
.landing-section {
  margin: 72px 0;
}
.landing-section-tight {
  margin-top: 28px;
}
.reliability-section {
  overflow: visible;
  isolation: auto;
}
.landing-section-head {
  max-width: 640px;
  margin-bottom: 20px;
}
.landing-section-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.85fr);
  gap: 24px 36px;
  max-width: none;
  align-items: end;
}
.landing-section-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #0891b2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.landing-section h2,
.landing-section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.018em;
  font-weight: 650;
}
.landing-section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.landing-section-head-split > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}
.reliability-all-link {
  justify-self: end;
  color: #0891b2;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.reliability-all-link:hover {
  text-decoration: underline;
}
.reliability-boards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.reliability-board {
  position: relative;
  z-index: 0;
  border: 1px solid color-mix(in srgb, var(--line) 82%, #22d3ee 18%);
  border-radius: 20px;
  background: var(--bg);
  padding: 0;
  min-width: 0;
  overflow: visible;
  box-shadow: 0 10px 28px rgba(2, 8, 23, 0.04);
}
/* Hovered board must sit above the next sibling, otherwise the site
   preview card (positioned below the domain) is painted under it. */
.reliability-board:hover,
.reliability-board:focus-within,
.reliability-board:has(.reliability-site:hover),
.reliability-board:has(.reliability-site:focus-within) {
  z-index: 40;
}
.reliability-board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 18px 22px 14px;
  background: color-mix(in srgb, var(--bg) 88%, #0ea5e9 12%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}
.reliability-proto {
  display: inline-block;
  margin-bottom: 4px;
  color: #0891b2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.reliability-board-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}
.reliability-board-note {
  margin: 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}
.reliability-table {
  padding: 0 8px 8px;
}
.reliability-thead,
.reliability-row {
  display: grid;
  grid-template-columns: 64px minmax(140px, 1.5fr) 100px 88px minmax(110px, 1fr) 110px 88px;
  gap: 12px;
  align-items: center;
  padding: 14px 14px;
  font-size: 14px;
}
.reliability-thead {
  margin: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.reliability-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reliability-row {
  margin: 0 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  position: relative;
}
.reliability-row:last-child {
  border-bottom: none;
}
.reliability-row:hover,
.reliability-row:focus-within {
  z-index: 50;
}
.reliability-rank {
  color: var(--text);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.reliability-site {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.reliability-domain {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.reliability-domain:hover {
  color: #0891b2;
  text-decoration: underline;
}
.reliability-preview {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 60;
  width: min(420px, 86vw);
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}
.reliability-site:hover .reliability-preview,
.reliability-site:focus-within .reliability-preview {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.reliability-preview-summary {
  margin: 0;
  padding: 14px 14px;
  gap: 14px;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(2, 8, 23, 0.14);
}
.reliability-preview-summary .lb-detail-score {
  min-width: 84px;
  padding: 12px 14px;
}
.reliability-preview-summary .lb-detail-score-num {
  font-size: 36px;
}
.reliability-preview-copy {
  min-width: 0;
}
.reliability-preview-headline {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.reliability-preview-capsule {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.reliability-preview-capsule strong {
  color: var(--text);
  font-weight: 700;
}
.reliability-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.reliability-preview-detail {
  color: var(--green, #16a34a);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.reliability-preview-detail:hover {
  text-decoration: underline;
}
.reliability-preview-hint {
  color: var(--muted);
  font-size: 12px;
}
.reliability-median {
  color: var(--green, #16a34a);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}
.reliability-price {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.reliability-count,
.reliability-when {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.reliability-detail {
  color: var(--green, #16a34a);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.reliability-detail:hover { text-decoration: underline; }
.reliability-empty {
  margin: 0;
  padding: 22px;
  color: var(--muted);
  font-size: 14px;
}
.landing-protocol-grid,
.landing-security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.landing-protocol-card,
.landing-security-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 76%, #22d3ee 24%);
  border-radius: 28px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 84%, #0ea5e9 16%), var(--bg));
  box-shadow: 0 18px 50px rgba(2, 8, 23, 0.08);
}
.landing-protocol-card {
  min-height: 320px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.landing-protocol-card-primary {
  border-color: rgba(34, 211, 238, 0.42);
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.18), transparent 38%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 78%, #0891b2 22%), var(--bg));
}
.protocol-icon,
.security-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #0891b2;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
  font-weight: 900;
}
.protocol-card-head {
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.protocol-card-head strong {
  color: #0891b2;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
}
.landing-protocol-card h3,
.landing-security-grid h3,
.landing-flow-list h3 {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 16.5px;
  letter-spacing: -0.015em;
  font-weight: 650;
  line-height: 1.4;
}
.landing-protocol-card p,
.landing-security-grid p,
.landing-flow-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}
.landing-tags {
  gap: 8px;
  margin-top: 12px;
}
.landing-protocol-card .landing-tags {
  /* Keep CTA from sticking to the tag row when margin-top:auto pulls the button down. */
  margin-bottom: 20px;
}
.landing-tags span {
  min-height: 26px;
  font-size: 12.5px;
  color: #0f766e;
  border-color: rgba(20, 184, 166, 0.18);
  background: rgba(20, 184, 166, 0.08);
}
.landing-protocol-card a {
  width: 100%;
  margin-top: auto;
  min-height: 42px;
  font-size: 14px;
  font-weight: 700;
  color: #042f2e;
  background: color-mix(in srgb, #67e8f9 72%, #bef264 28%);
}
.landing-security-grid article {
  padding: 22px;
}
.landing-flow {
  padding: clamp(28px, 4vw, 48px);
  border-radius: 34px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bg-soft) 82%, #22d3ee 18%), var(--bg-soft));
  border: 1px solid var(--line);
}
.landing-flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.landing-flow-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 22px;
  border-radius: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.landing-flow-list li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 82%, #22d3ee 18%);
  color: #67e8f9;
  border: 1px solid color-mix(in srgb, var(--line) 65%, #22d3ee 35%);
  font-weight: 900;
}
.landing-flow-list h3 {
  margin-top: 0;
  font-size: 15.5px;
}
.landing-flow-list p {
  margin-bottom: 0;
}

/* landing · light theme — hero / scan card follow global theme */
[data-theme="light"] .landing-shell {
  color: var(--text);
  border-color: color-mix(in srgb, var(--line) 70%, #22d3ee 30%);
  background:
    radial-gradient(circle at 16% 12%, rgba(34, 211, 238, 0.14), transparent 31%),
    radial-gradient(circle at 88% 20%, rgba(99, 102, 241, 0.1), transparent 34%),
    linear-gradient(135deg, #f8fafc 0%, #eef6ff 46%, #f4f7fb 100%);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .landing-shell::before {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.16) 1px, transparent 1px);
}
[data-theme="light"] .landing-shell::after {
  background: rgba(34, 211, 238, 0.1);
}
[data-theme="light"] .landing-eyebrow {
  color: #0e7490;
}
[data-theme="light"] .landing-dot {
  background: #0891b2;
  box-shadow: 0 0 18px rgba(8, 145, 178, 0.45);
}
[data-theme="light"] .landing-eyebrow-muted {
  color: #475569;
  border-color: rgba(8, 145, 178, 0.18);
  background: rgba(255, 255, 255, 0.72);
}
[data-theme="light"] .landing-hero-copy h1 span {
  color: #0e7490;
  text-shadow: none;
}
[data-theme="light"] .landing-lead {
  color: var(--muted);
}
[data-theme="light"] .landing-secondary-action {
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.72);
}
[data-theme="light"] .landing-proof-row span {
  color: #334155;
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.78);
}
[data-theme="light"] .landing-scan-card {
  border-color: rgba(8, 145, 178, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.88)),
    radial-gradient(circle at 50% 38%, rgba(34, 211, 238, 0.16), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 48px rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .scan-card-topline {
  color: #64748b;
}
[data-theme="light"] .scan-card-topline strong {
  color: #059669;
}
[data-theme="light"] .scan-orb {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(8, 145, 178, 0.2);
  box-shadow: 0 0 48px rgba(34, 211, 238, 0.18), inset 0 0 24px rgba(255, 255, 255, 0.65);
}
[data-theme="light"] .scan-metrics div,
[data-theme="light"] .scan-checks span {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.82);
}
[data-theme="light"] .scan-metrics span {
  color: #64748b;
}
[data-theme="light"] .scan-metrics strong {
  color: #0f172a;
}
[data-theme="light"] .scan-checks span {
  color: #334155;
}
[data-theme="light"] .landing-flow-list li > span {
  background: rgba(34, 211, 238, 0.12);
  color: #0e7490;
  border-color: rgba(8, 145, 178, 0.22);
}

@media (max-width: 980px) {
  .landing-hero-grid,
  .landing-section-head-split,
  .landing-protocol-grid,
  .landing-security-grid,
  .landing-flow-list {
    grid-template-columns: 1fr;
  }
  .reliability-all-link {
    justify-self: start;
  }
  .reliability-board-head {
    align-items: flex-start;
  }
  .reliability-board-note {
    text-align: left;
    max-width: none;
  }
  .reliability-thead {
    display: none;
  }
  .reliability-thead,
  .reliability-row {
    grid-template-columns: 64px minmax(0, 1fr) 88px 88px;
    grid-template-areas:
      "rank domain median count"
      ". price when detail";
  }
  .reliability-rank { grid-area: rank; }
  .reliability-site { grid-area: domain; }
  .reliability-domain { grid-area: unset; }
  .reliability-median { grid-area: median; }
  .reliability-count { grid-area: count; }
  .reliability-price { grid-area: price; }
  .reliability-when { grid-area: when; }
  .reliability-detail { grid-area: detail; justify-self: end; }
  .landing-scan-card {
    min-height: 360px;
  }
  .scan-orb {
    width: 170px;
    height: 170px;
    margin: 28px auto;
  }
}
@media (max-width: 640px) {
  .landing-shell {
    margin-top: 0;
    padding: 42px 20px;
    border-radius: 24px;
  }
  .landing-hero-copy h1 {
    font-size: 24px;
    line-height: 1.28;
    letter-spacing: -0.02em;
  }
  .landing-section h2,
  .landing-section-head h2 {
    font-size: 20px;
  }
  .landing-protocol-card h3,
  .landing-security-grid h3 {
    font-size: 16px;
  }
  .landing-section {
    margin: 56px 0;
  }
  .landing-protocol-card,
  .landing-security-grid article,
  .landing-flow {
    border-radius: 22px;
  }
  .scan-metrics,
  .scan-checks {
    grid-template-columns: 1fr;
  }
  .reliability-board-head {
    padding: 16px 16px 12px;
  }
  .reliability-board-head h3 {
    font-size: 16px;
  }
  .reliability-table {
    padding: 0 4px 6px;
  }
  .reliability-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "rank domain"
      "median count"
      "price when"
      "detail detail";
    gap: 8px 12px;
    padding: 14px 12px;
  }
  .reliability-rank { font-size: 16px; }
  .reliability-domain { white-space: normal; word-break: break-all; }
  .reliability-preview { display: none; }
  .reliability-median::before,
  .reliability-count::before,
  .reliability-price::before,
  .reliability-when::before {
    content: attr(data-label) " · ";
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
  }
  .reliability-detail { justify-self: start; }
}

/* ========== board-neon (dark cyber skin; removed in light theme via JS) ========== */
body.board-neon {
  --bn-bg: #070b14;
  --bn-bg-elevated: rgba(13, 21, 36, 0.94);
  --bn-grid: rgba(34, 211, 238, 0.055);
  --bn-cyan: #22d3ee;
  --bn-cyan-soft: rgba(34, 211, 238, 0.14);
  --bn-text: #f4f8ff;
  --bn-muted: #8b9bb4;
  --bn-line: rgba(34, 211, 238, 0.28);

  --bg: var(--bn-bg);
  --bg-soft: rgba(15, 23, 42, 0.88);
  --text: var(--bn-text);
  --muted: var(--bn-muted);
  --line: var(--bn-line);
  --green: var(--bn-cyan);
  --green-dark: #67e8f9;
  --green-soft: var(--bn-cyan-soft);
  --shadow: 0 18px 50px rgba(2, 8, 23, 0.55);

  color-scheme: dark;
  color: var(--bn-text);
  background-color: var(--bn-bg);
  background-image:
    linear-gradient(var(--bn-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bn-grid) 1px, transparent 1px),
    radial-gradient(ellipse 60% 40% at 18% 0%, rgba(168, 85, 247, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 35% at 92% 8%, rgba(34, 211, 238, 0.12), transparent 50%);
  background-size: 48px 48px, 48px 48px, auto, auto;
  background-attachment: fixed;
}

body.board-neon .site-header {
  background: rgba(7, 11, 20, 0.78);
  border-color: var(--bn-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.board-neon .site-header.is-scrolled {
  background: transparent;
  box-shadow: none;
}
body.board-neon .site-header.is-scrolled .site-header-inner,
:root[data-theme="light"] body.board-neon .site-header.is-scrolled .site-header-inner {
  background: rgba(7, 11, 20, 0.88);
  border-color: var(--bn-line);
  box-shadow:
    0 12px 40px rgba(2, 8, 23, 0.45),
    0 0 0 1px var(--bn-line);
}
body.board-neon .brand-name,
body.board-neon .nav-link,
body.board-neon .theme-toggle {
  color: var(--bn-muted);
}
body.board-neon .brand-name,
body.board-neon .nav-link.is-active,
body.board-neon .nav-link:hover {
  color: var(--bn-text);
}
body.board-neon .nav-link.is-active::after {
  background: var(--bn-cyan);
}
body.board-neon .theme-toggle {
  border-color: var(--bn-line);
  background: rgba(15, 23, 42, 0.7);
}
body.board-neon .nav-toggle-bar {
  background: var(--bn-text);
}
body.board-neon .site-footer {
  border-top-color: var(--bn-line);
  color: var(--bn-muted);
  background: transparent;
}
body.board-neon .site-footer a {
  color: var(--bn-muted);
}
body.board-neon .site-footer a:hover {
  color: var(--bn-text);
}

body.board-neon .hub-hero h1,
body.board-neon .activity-hero h1,
body.board-neon .history-hero h1,
body.board-neon .lb-section-heading h2,
body.board-neon .activity-col h2,
body.board-neon .history-result-head h2 {
  color: var(--bn-text);
}
body.board-neon .answer-capsule,
body.board-neon .hub-hero p,
body.board-neon .activity-hero .lead,
body.board-neon .history-hero .lead,
body.board-neon .lb-section-heading p,
body.board-neon .muted,
body.board-neon .small.muted {
  color: var(--bn-muted);
}
body.board-neon .answer-capsule strong {
  color: var(--bn-text);
}
body.board-neon .answer-capsule a,
body.board-neon .hub-meta-inline a,
body.board-neon main a:not(.btn):not(.lb-proto-chip):not(.lb-page-btn) {
  color: var(--bn-cyan);
}
body.board-neon .breadcrumb a { color: var(--bn-muted); }
body.board-neon .breadcrumb a:hover,
body.board-neon .breadcrumb-current { color: var(--bn-text); }

/* Leaderboard cards — traveling border glow on hover */
@property --lb-glow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes lb-border-spin {
  to { --lb-glow-angle: 360deg; }
}

body.board-neon .leaderboard-list {
  gap: 16px;
}
body.board-neon .lb-row {
  --lb-glow-angle: 0deg;
  background: var(--bn-bg-elevated);
  border: 1px solid var(--bn-line);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.05) inset,
    0 16px 40px rgba(2, 8, 23, 0.35),
    0 0 28px rgba(34, 211, 238, 0.08);
  gap: 18px;
  padding: 20px 22px;
  isolation: isolate;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
body.board-neon .lb-row::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--lb-glow-angle),
    transparent 0%,
    transparent 62%,
    rgba(34, 211, 238, 0.05) 72%,
    rgba(103, 232, 249, 0.55) 82%,
    rgba(34, 211, 238, 0.95) 88%,
    rgba(165, 243, 252, 1) 91%,
    rgba(34, 211, 238, 0.95) 94%,
    rgba(103, 232, 249, 0.45) 97%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.2s ease;
}
body.board-neon .lb-row > *:not(.lb-medal) {
  position: relative;
  z-index: 2;
}
body.board-neon .lb-row .lb-medal {
  z-index: 3;
}
body.board-neon .lb-row:hover {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.1) inset,
    0 20px 48px rgba(2, 8, 23, 0.45),
    0 0 36px rgba(34, 211, 238, 0.16);
  transform: translateY(-1px);
}
body.board-neon .lb-row:hover::before {
  opacity: 1;
  animation: lb-border-spin 2.2s linear infinite;
}
body.board-neon .lb-domain {
  font-size: 20px;
  color: var(--bn-text);
}
body.board-neon .lb-domain a {
  color: inherit;
  border-bottom-color: transparent;
}
body.board-neon .lb-domain a:hover {
  color: var(--bn-cyan);
  border-bottom-color: var(--bn-cyan);
}
body.board-neon .lb-meta {
  color: var(--bn-muted);
  font-size: 13.5px;
}
body.board-neon .lb-detail-link { color: var(--bn-cyan); }
body.board-neon .lb-badge-info {
  background: var(--bn-cyan-soft);
  color: var(--bn-cyan);
  border: 1px solid var(--bn-line);
}
body.board-neon .lb-rank-num {
  background: var(--bn-cyan-soft);
  color: var(--bn-cyan);
  border: 1px solid var(--bn-line);
}
body.board-neon .lb-proto-chip {
  background: rgba(15, 23, 42, 0.92);
  border-color: var(--bn-line);
  color: var(--bn-text);
  border-radius: 999px;
}
body.board-neon .lb-proto-ok {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}
body.board-neon .lb-proto-good {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.4);
  color: #67e8f9;
}
body.board-neon .lb-proto-warn {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fcd34d;
}
body.board-neon .lb-proto-fail {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}
body.board-neon .lb-issues { color: var(--bn-muted); }
body.board-neon .lb-issues-name {
  background: rgba(15, 23, 42, 0.92);
  border-color: var(--bn-line);
  color: var(--bn-muted);
}
body.board-neon .lb-score {
  min-width: 88px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.24), rgba(8, 145, 178, 0.08));
  border: 1px solid rgba(34, 211, 238, 0.48);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.3);
  color: var(--bn-cyan);
}
body.board-neon .lb-score-num {
  font-size: 40px;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
}
body.board-neon .lb-score-label {
  color: rgba(165, 243, 252, 0.72);
  font-size: 11px;
  letter-spacing: 0.12em;
}
body.board-neon .lb-score-ok,
body.board-neon .lb-score-good,
body.board-neon .lb-score-warn,
body.board-neon .lb-score-fail {
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.24), rgba(8, 145, 178, 0.08));
  color: var(--bn-cyan);
}

body.board-neon .lb-detail-summary {
  background: var(--bn-bg-elevated);
  border: 1px solid var(--bn-line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(2, 8, 23, 0.35), 0 0 24px rgba(34, 211, 238, 0.08);
}
body.board-neon .lb-detail-score {
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.24), rgba(8, 145, 178, 0.08));
  border: 1px solid rgba(34, 211, 238, 0.48);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.3);
  color: var(--bn-cyan);
  border-radius: 16px;
}
body.board-neon .lb-detail-score-num {
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
}
body.board-neon .lb-detail-score-label {
  color: rgba(165, 243, 252, 0.72);
}

body.board-neon .hub-note,
body.board-neon .lb-rules-collapse {
  background: var(--bn-bg-elevated);
  border: 1px solid var(--bn-line);
  border-radius: 16px;
  color: var(--bn-text);
}
/* Neon turns hub-note into a bordered card — base only had padding-top. */
body.board-neon .hub-note {
  padding: 20px 22px;
}
body.board-neon .hub-note h2 {
  color: var(--bn-text);
}
body.board-neon .hub-note p {
  color: var(--bn-muted);
  margin: 0;
}
body.board-neon .lb-rules-summary {
  color: var(--bn-text);
}
body.board-neon .lb-rules-hint { color: var(--bn-muted); }
body.board-neon .lb-rules-body { color: var(--bn-muted); }
body.board-neon .lb-rules-body strong { color: var(--bn-text); }
body.board-neon .lb-rules-body code {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--bn-line);
  color: var(--bn-cyan);
  padding: 1px 6px;
  border-radius: 4px;
}

body.board-neon .lb-page-btn {
  background: transparent;
  border: 1px solid var(--bn-line);
  color: var(--bn-muted);
  border-radius: 10px;
}
body.board-neon .lb-page-btn:hover {
  background: var(--bn-cyan-soft);
  color: var(--bn-cyan);
}
body.board-neon .lb-page-current {
  background: var(--bn-cyan-soft);
  border-color: var(--bn-cyan);
  color: var(--bn-cyan);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.25);
}
body.board-neon .lb-page-current:hover {
  background: var(--bn-cyan-soft);
  color: var(--bn-cyan);
}

/* Activity */
body.board-neon .activity-card {
  background: var(--bn-bg-elevated);
  border: 1px solid var(--bn-line);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(2, 8, 23, 0.35), 0 0 20px rgba(34, 211, 238, 0.06);
}
body.board-neon .activity-avatar {
  background: var(--bn-cyan-soft);
  color: var(--bn-cyan);
  border: 1px solid var(--bn-line);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.25);
}
body.board-neon .activity-domain a { color: var(--bn-text); }
body.board-neon .activity-domain a:hover { color: var(--bn-cyan); }
body.board-neon .activity-proto {
  background: var(--bn-cyan-soft);
  color: var(--bn-cyan);
  border: 1px solid var(--bn-line);
}
body.board-neon .activity-meta,
body.board-neon .activity-verdict-text { color: var(--bn-muted); }
body.board-neon .activity-spark-bar {
  background: rgba(34, 211, 238, 0.12);
}
body.board-neon .activity-spark-bar.is-on {
  background: var(--bn-cyan);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.45);
}
body.board-neon .activity-verdict-bar {
  background: rgba(15, 23, 42, 0.9);
}
body.board-neon .activity-unavailable {
  background: var(--bn-bg-elevated);
  border: 1px solid var(--bn-line);
  color: var(--bn-muted);
  border-radius: 12px;
}

/* History */
body.board-neon .history-label { color: var(--bn-text); }
body.board-neon .history-input {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--bn-line);
  color: var(--bn-text);
  border-radius: 10px;
}
body.board-neon .history-input::placeholder { color: rgba(139, 155, 180, 0.7); }
body.board-neon .history-input:focus {
  border-color: var(--bn-cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
  outline: none;
}
body.board-neon .history-page .btn-primary,
body.board-neon .history-miss-primary {
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  border-color: transparent;
  color: #041016;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
  font-weight: 700;
}
body.board-neon .history-page .btn-primary:hover,
body.board-neon .history-miss-primary:hover {
  filter: brightness(1.06);
}
body.board-neon .history-result-card,
body.board-neon .history-hit {
  background: var(--bn-bg-elevated);
  border: 1px solid var(--bn-line);
  border-radius: 16px;
  color: var(--bn-text);
  box-shadow: 0 12px 32px rgba(2, 8, 23, 0.35), 0 0 20px rgba(34, 211, 238, 0.06);
}
body.board-neon .history-hit:hover {
  border-color: rgba(34, 211, 238, 0.55);
}
body.board-neon .history-hit-avatar {
  background: var(--bn-cyan-soft);
  color: var(--bn-cyan);
  border: 1px solid var(--bn-line);
}
body.board-neon .history-hit-score strong { color: var(--bn-cyan); }
body.board-neon .history-miss-btn {
  background: transparent;
  border: 1px solid var(--bn-line);
  color: var(--bn-muted);
}
body.board-neon .history-miss-btn:hover {
  border-color: var(--bn-cyan);
  color: var(--bn-cyan);
}

@media (prefers-reduced-motion: reduce) {
  body.board-neon .lb-row { transition: none; }
  body.board-neon .lb-row:hover { transform: none; }
  body.board-neon .lb-row:hover::before {
    animation: none;
    background: linear-gradient(
      135deg,
      rgba(34, 211, 238, 0.15),
      rgba(34, 211, 238, 0.85),
      rgba(34, 211, 238, 0.15)
    );
  }
}

@media (max-width: 720px) {
  body.board-neon .lb-score-num { font-size: 32px; }
  body.board-neon .lb-row { padding: 16px; }
  body.board-neon .lb-domain { font-size: 17px; }
}

/* ----- board-neon site-wide: shared surfaces (hub / detect / faq / result) ----- */
body.board-neon .theme-toggle[hidden] {
  display: none !important;
}

body.board-neon .card,
body.board-neon .form-card,
body.board-neon .protocol-card,
body.board-neon .faq-item,
body.board-neon .notes-card,
body.board-neon .result-summary,
body.board-neon .live-progress-shell,
body.board-neon .detect-highlight-card,
body.board-neon .detect-check-card,
body.board-neon .check-card {
  background: var(--bn-bg-elevated);
  border-color: var(--bn-line);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.04) inset,
    0 14px 36px rgba(2, 8, 23, 0.35),
    0 0 22px rgba(34, 211, 238, 0.06);
}

body.board-neon .btn {
  background: rgba(15, 23, 42, 0.9);
  border-color: var(--bn-line);
  color: var(--bn-text);
}
body.board-neon .btn:hover {
  background: var(--bn-cyan-soft);
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--bn-cyan);
}
body.board-neon .btn-primary,
body.board-neon .btn.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  border-color: transparent;
  color: #041016;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.32);
  font-weight: 700;
}
body.board-neon .btn-primary:hover,
body.board-neon .btn.btn-primary:hover {
  background: linear-gradient(135deg, #67e8f9, #22d3ee);
  border-color: transparent;
  color: #041016;
  filter: brightness(1.04);
}
body.board-neon .btn-primary:disabled {
  background: linear-gradient(90deg, #0891b2, #22d3ee);
  border-color: transparent;
  color: #041016;
}

body.board-neon .field label,
body.board-neon .history-label {
  color: var(--bn-text);
}
body.board-neon .field input,
body.board-neon .field select,
body.board-neon .field textarea,
body.board-neon .combo-input {
  background: rgba(15, 23, 42, 0.92);
  border-color: var(--bn-line);
  color: var(--bn-text);
}
body.board-neon .field input:focus,
body.board-neon .field select:focus,
body.board-neon .field textarea:focus {
  border-color: var(--bn-cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}
body.board-neon .field .hint,
body.board-neon .field-checkbox .checkbox-hint {
  color: var(--bn-muted);
}
body.board-neon .field-checkbox {
  background: rgba(15, 23, 42, 0.75);
  border-color: var(--bn-line);
}

body.board-neon .detect-hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(13, 21, 36, 0.92), rgba(7, 11, 20, 0.72));
  border-color: var(--bn-line);
  box-shadow: 0 18px 50px rgba(2, 8, 23, 0.4), 0 0 28px rgba(34, 211, 238, 0.08);
}
body.board-neon .detect-hero h1 { color: var(--bn-text); }
body.board-neon .hero-kicker-pill,
body.board-neon .hero-chip,
body.board-neon .answer-capsule {
  color: var(--bn-muted);
}
body.board-neon .stack-note-list li {
  background: rgba(15, 23, 42, 0.78);
  border-color: var(--bn-line);
}
body.board-neon .stack-note-list strong { color: var(--bn-text); }
body.board-neon .stack-note-list span { color: var(--bn-muted); }

body.board-neon .detect-check-index {
  background: var(--bn-cyan-soft);
  color: var(--bn-cyan);
}
body.board-neon .detect-check-body h3 { color: var(--bn-text); }
body.board-neon .detect-check-body p { color: var(--bn-muted); }

body.board-neon .check-card-title { color: var(--bn-text); }
body.board-neon .check-card-summary,
body.board-neon .check-card-meta { color: var(--bn-muted); }
body.board-neon .check-card-badge {
  background: rgba(15, 23, 42, 0.9);
  border-color: var(--bn-line);
  color: var(--bn-muted);
}
body.board-neon .live-result-label { color: var(--bn-text); }
body.board-neon .live-result-hint { color: var(--bn-muted); }
body.board-neon .live-result-score {
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.22), rgba(8, 145, 178, 0.08));
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--bn-cyan);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.25);
}

body.board-neon .faq-item summary { color: var(--bn-text); }
body.board-neon .faq-item p,
body.board-neon .faq-answer { color: var(--bn-muted); }

body.board-neon .protocol-card h2,
body.board-neon .protocol-card h3 { color: var(--bn-text); }
body.board-neon .protocol-card p { color: var(--bn-muted); }
body.board-neon .protocol-card-primary {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.12);
}

body.board-neon .landing-shell {
  border-color: rgba(34, 211, 238, 0.28);
  background:
    radial-gradient(circle at 16% 12%, rgba(34, 211, 238, 0.18), transparent 31%),
    radial-gradient(circle at 88% 20%, rgba(168, 85, 247, 0.2), transparent 34%),
    linear-gradient(135deg, #06111f 0%, #0a1020 46%, #0d1327 100%);
}
body.board-neon .landing-protocol-card,
body.board-neon .landing-security-grid article {
  background:
    linear-gradient(180deg, rgba(13, 21, 36, 0.95), rgba(7, 11, 20, 0.88));
  border-color: var(--bn-line);
}
body.board-neon .landing-protocol-card h3,
body.board-neon .landing-section h2 { color: var(--bn-text); }
body.board-neon .landing-protocol-card p,
body.board-neon .landing-section-head p { color: var(--bn-muted); }
body.board-neon .landing-protocol-card a {
  color: #041016;
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.28);
}

body.board-neon .reliability-board {
  background: var(--bn-bg-elevated);
  border-color: var(--bn-line);
  box-shadow: 0 14px 36px rgba(2, 8, 23, 0.35), 0 0 22px rgba(34, 211, 238, 0.08);
}
body.board-neon .reliability-board-head {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.1), transparent);
  border-bottom-color: var(--bn-line);
}
body.board-neon .reliability-proto { color: var(--bn-cyan); }
body.board-neon .reliability-board-head h3 { color: var(--bn-text); }
body.board-neon .reliability-board-note,
body.board-neon .reliability-thead,
body.board-neon .reliability-count,
body.board-neon .reliability-price,
body.board-neon .reliability-when { color: var(--bn-muted); }
body.board-neon .reliability-domain { color: var(--bn-text); }
body.board-neon .reliability-domain:hover { color: var(--bn-cyan); }
body.board-neon .reliability-median { color: var(--bn-cyan); }
body.board-neon .reliability-detail,
body.board-neon .reliability-all-link { color: var(--bn-cyan); }
body.board-neon .reliability-row {
  border-bottom-color: rgba(34, 211, 238, 0.12);
}
body.board-neon .reliability-preview-summary {
  background: var(--bn-bg-elevated);
  border: 1px solid var(--bn-line);
  color: var(--bn-text);
}
body.board-neon .reliability-preview-headline { color: var(--bn-text); }
body.board-neon .reliability-preview-capsule { color: var(--bn-muted); }

body.board-neon .probe-ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
body.board-neon .probe-warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
body.board-neon .probe-fail {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
body.board-neon .probe-neutral {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #4b5563;
}

body.board-neon .lb-history-table-wrap {
  border-color: var(--bn-line);
  background: rgba(2, 8, 23, 0.45);
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 211, 238, 0.45) transparent;
}
body.board-neon .lb-history-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
body.board-neon .lb-history-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.35);
  border-radius: 999px;
}
body.board-neon .lb-history-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 211, 238, 0.55);
}
body.board-neon .lb-history-table thead th {
  background: #07111f;
  box-shadow: 0 1px 0 var(--bn-line);
  color: var(--bn-muted);
}

body.board-neon .lb-history-score-ok,
body.board-neon .lb-history-score-good {
  background: rgba(34, 211, 238, 0.12);
  color: var(--bn-cyan);
}
body.board-neon .lb-history-score-warn {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
}
body.board-neon .lb-history-score-fail {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}

body.board-neon .combo-list {
  background: rgba(13, 21, 36, 0.98);
  border-color: var(--bn-line);
  box-shadow: 0 16px 40px rgba(2, 8, 23, 0.55);
}
body.board-neon .combo-option:hover,
body.board-neon .combo-option[aria-selected="true"] {
  background: var(--bn-cyan-soft);
  color: var(--bn-cyan);
}

/* Language menu (header) */
.lang-menu {
  position: relative;
  flex-shrink: 0;
  z-index: 50;
}
.lang-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  min-width: 48px;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.lang-menu-trigger:hover {
  color: var(--green-dark);
  border-color: var(--line);
  background: var(--surface-2);
  transform: translateY(-1px);
}
body.board-neon .lang-menu-trigger {
  background: rgba(15, 23, 42, 0.7);
  color: var(--bn-muted, var(--muted));
  border-color: var(--bn-line, var(--line));
}
body.board-neon .lang-menu-trigger:hover {
  color: var(--bn-cyan, var(--green-dark));
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.12);
}
.lang-menu-globe {
  font-size: 14px;
  line-height: 1;
}
.lang-menu-current {
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lang-menu-chevron {
  font-size: 10px;
  opacity: 0.75;
}
.site-header.is-scrolled .lang-menu-trigger {
  min-width: 40px;
  min-height: 30px;
  padding: 5px 10px;
}
.lang-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  max-height: min(320px, 60vh);
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: saturate(1.35) blur(18px);
  backdrop-filter: saturate(1.35) blur(18px);
}
.lang-menu-list[hidden] {
  display: none;
}
body.board-neon .lang-menu-list {
  border-color: var(--bn-line, var(--line));
  background: rgba(13, 21, 36, 0.98);
  box-shadow: 0 16px 40px rgba(2, 8, 23, 0.55);
}
.lang-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
  transition: background 0.12s ease, color 0.12s ease;
}
.lang-menu-item:hover {
  background: var(--green-soft);
  color: var(--green-dark);
  text-decoration: none;
}
.lang-menu-item.is-active {
  color: var(--green-dark);
  background: var(--green-soft);
}
body.board-neon .lang-menu-item {
  color: var(--bn-muted, var(--muted));
}
body.board-neon .lang-menu-item:hover {
  background: var(--bn-cyan-soft, rgba(34, 211, 238, 0.12));
  color: var(--bn-cyan, var(--green-dark));
}
body.board-neon .lang-menu-item.is-active {
  color: var(--bn-cyan, var(--green-dark));
  background: rgba(34, 211, 238, 0.08);
}
body.board-neon .lang-menu-check {
  color: var(--bn-cyan, var(--green-dark));
}
.lang-menu-native {
  flex: 1 1 auto;
  font-weight: 600;
}
.lang-menu-english {
  flex: 0 0 auto;
  font-size: 11px;
  opacity: 0.65;
}
.lang-menu-check {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--green-dark);
}

/* —— Release notes modal —— */
.release-notes-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: min(80vh, 640px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 14px;
  background: #0d1524;
  color: #f4f8ff;
  box-shadow:
    0 24px 64px rgba(2, 8, 23, 0.65),
    0 0 0 1px rgba(34, 211, 238, 0.12);
}
.release-notes-dialog::backdrop {
  background: rgba(2, 8, 23, 0.72);
  backdrop-filter: blur(4px);
}
.release-notes-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 24px 20px;
}
.release-notes-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #f4f8ff;
}
.release-notes-lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #8b9bb4;
}
.release-notes-list {
  margin: 4px 0 0;
  padding: 0 0 0 1.15em;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #d7e3f4;
}
.release-notes-list li::marker {
  color: #22d3ee;
}
.release-notes-cta {
  align-self: flex-end;
  margin-top: 8px;
  appearance: none;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.12);
  color: #e8fbff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.release-notes-cta:hover,
.release-notes-cta:focus-visible {
  background: rgba(34, 211, 238, 0.22);
  border-color: rgba(34, 211, 238, 0.7);
  outline: none;
}
body.board-neon .release-notes-dialog {
  border-color: var(--bn-line, rgba(34, 211, 238, 0.28));
  background: var(--bn-surface, #0d1524);
  color: var(--bn-text, #f4f8ff);
}
body.board-neon .release-notes-title {
  color: var(--bn-text, #f4f8ff);
}
body.board-neon .release-notes-lead {
  color: var(--bn-muted, #8b9bb4);
}
body.board-neon .release-notes-list {
  color: var(--bn-text, #d7e3f4);
}
body.board-neon .release-notes-list li::marker {
  color: var(--bn-cyan, #22d3ee);
}
body.board-neon .release-notes-cta {
  border-color: color-mix(in srgb, var(--bn-cyan, #22d3ee) 45%, transparent);
  background: color-mix(in srgb, var(--bn-cyan, #22d3ee) 14%, transparent);
  color: var(--bn-text, #e8fbff);
}
@media (max-width: 560px) {
  .release-notes-dialog {
    width: calc(100vw - 24px);
    border-radius: 12px;
  }
  .release-notes-panel {
    padding: 20px 18px 16px;
  }
  .release-notes-cta {
    align-self: stretch;
    text-align: center;
  }
}
