:root {
  --bg: #0a0c10;
  --bg-elevated: #12151c;
  --bg-card: #171b24;
  --border: rgba(148, 163, 184, 0.14);
  --text: #eef2f8;
  --muted: #94a3b8;
  --accent: #fbbf24;
  --accent-2: #fb7185;
  --tier-0: #fbbf24;
  --tier-0-bg: rgba(251, 191, 36, 0.12);
  --tier-1: #34d399;
  --tier-1-bg: rgba(52, 211, 153, 0.12);
  --tier-2: #60a5fa;
  --tier-2-bg: rgba(96, 165, 250, 0.1);
  --tier-3: #94a3b8;
  --tier-3-bg: rgba(148, 163, 184, 0.1);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  --radius: 16px;
  --font: "Noto Sans TC", "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Sans", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--accent);
}

.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, rgba(251, 191, 36, 0.14), transparent),
    radial-gradient(ellipse 50% 40% at 90% 5%, rgba(251, 113, 133, 0.1), transparent),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(52, 211, 153, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(10, 12, 16, 0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #f59e0b 55%, var(--accent-2));
  color: #1a1205;
  font-size: 1.05rem;
  font-weight: 800;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 0.08rem;
}

.logo-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.logo-domain {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--accent);
  font-family: var(--mono);
}

.logo-domain-inline {
  color: var(--accent);
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.site-nav a.is-active {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.1rem;
}

.hero-home h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.back-link {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
}

.back-link a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* 品類入口 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.category-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.15rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(165deg, #1a2233 0%, #141b29 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease;
}

.category-card.is-live:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.category-card.is-soon {
  opacity: 0.72;
  cursor: default;
}

.cat-emoji {
  font-size: 1.75rem;
  line-height: 1;
  width: 2.5rem;
  text-align: center;
  flex-shrink: 0;
}

.cat-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.cat-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #f3f6fb;
}

.cat-blurb {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.cat-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.cat-badge.live {
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.cat-badge.soon {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.view[hidden] {
  display: none !important;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

.hero {
  padding: 2.5rem 0 1.25rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.lede strong {
  color: var(--text);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  color: var(--muted);
}

.badge strong {
  color: var(--text);
}

.badge-auto {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent);
  font-weight: 600;
}

.detail-meta {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.detail-community {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.detail-community h4,
.detail-sources h4 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
}

.detail-community p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-sources {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.source-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.source-item {
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

.source-item a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.source-item a:hover {
  color: #bfdbfe;
}

.source-site {
  display: inline-block;
  min-width: 3.2rem;
  margin-right: 0.35rem;
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  vertical-align: middle;
}

.toolbar {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 0.7fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(18, 21, 28, 0.85);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.field.grow {
  min-width: 0;
}

.field-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(251, 191, 36, 0.35);
  outline-offset: 1px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.section-head h2,
.panel h2 {
  margin: 0;
  font-size: 1.25rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

.tiers {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.tier-row {
  display: grid;
  grid-template-columns: 6.75rem 1fr;
  gap: 0;
  min-height: 5.5rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  overflow: hidden;
  background: #0c1018;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tier-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 0.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  font-size: 0.95rem;
}

.tier-label .tier-name {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.02em;
  max-width: 5.5rem;
  line-height: 1.3;
}

.tier-row[data-tier="0"] .tier-label {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.06));
  color: var(--tier-0);
  border-right: 1px solid rgba(251, 191, 36, 0.28);
}

.tier-row[data-tier="1"] .tier-label {
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.18), rgba(52, 211, 153, 0.05));
  color: var(--tier-1);
  border-right: 1px solid rgba(52, 211, 153, 0.28);
}

.tier-row[data-tier="2"] .tier-label {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.16), rgba(96, 165, 250, 0.04));
  color: var(--tier-2);
  border-right: 1px solid rgba(96, 165, 250, 0.28);
}

.tier-row[data-tier="3"] .tier-label {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.04));
  color: var(--tier-3);
  border-right: 1px solid rgba(148, 163, 184, 0.28);
}

.tier-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  padding: 1.1rem;
  align-content: start;
  background: #0b1018;
}

.product-chip {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #151c2b;
  color: var(--text);
  border-radius: 16px;
  padding: 1rem 1rem 0.9rem;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    background 0.14s ease;
  font: inherit;
}

.product-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.5);
  background: #1a2335;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.product-chip:focus-visible {
  outline: 2px solid rgba(251, 191, 36, 0.5);
  outline-offset: 2px;
}

.chip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.chip-brand {
  font-size: 0.74rem;
  font-weight: 600;
  color: #9aabc4;
  letter-spacing: 0.01em;
}

.chip-region,
.chip-style {
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: #8fa0bb;
}

.chip-style {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.1);
  color: #f5d78c;
}

.chip-name {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #f7f9fc;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chip-price {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c4d0e3;
  margin-bottom: 0.15rem;
  font-variant-numeric: tabular-nums;
}

.chip-price-unit {
  font-weight: 500;
  color: #7f91ad;
  font-size: 0.72rem;
  margin-left: 0.1rem;
}

/* 三欄營養：熱量 / 蛋白 / 鈉（無品質） */
.chip-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.chip-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0.25rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.12);
  min-width: 0;
  text-align: center;
}

.chip-stat-k {
  font-size: 0.62rem;
  font-weight: 700;
  color: #7a8da8;
  letter-spacing: 0.06em;
  text-transform: none;
}

.chip-stat-v {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #eef3fb;
  line-height: 1.15;
  white-space: nowrap;
}

.chip-stat-u {
  margin-left: 0.12rem;
  font-size: 0.62rem;
  font-weight: 500;
  color: #8496b0;
}

.chip-empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.75rem;
  grid-column: 1 / -1;
}

.panel {
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(18, 21, 28, 0.75);
}

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

.legend-card {
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.legend-card[data-tier="0"] {
  border-color: rgba(251, 191, 36, 0.35);
  background: var(--tier-0-bg);
}

.legend-card[data-tier="1"] {
  border-color: rgba(52, 211, 153, 0.3);
  background: var(--tier-1-bg);
}

.legend-card[data-tier="2"] {
  border-color: rgba(96, 165, 250, 0.3);
  background: var(--tier-2-bg);
}

.legend-card[data-tier="3"] {
  border-color: rgba(148, 163, 184, 0.3);
  background: var(--tier-3-bg);
}

.legend-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.legend-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.method-notes {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.method-notes li {
  margin-bottom: 0.35rem;
}

.method-notes strong {
  color: var(--text);
}

.disclaimer {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
}

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

.product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.product-table th,
.product-table td {
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.product-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
}

.product-table tbody tr {
  cursor: pointer;
  transition: background 0.12s ease;
}

.product-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.tier-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.tier-pill.t0 {
  color: #1a1205;
  background: var(--tier-0);
}

.tier-pill.t1 {
  color: #042f1e;
  background: var(--tier-1);
}

.tier-pill.t2 {
  color: #0b1f3a;
  background: var(--tier-2);
}

.tier-pill.t3 {
  color: #0f172a;
  background: var(--tier-3);
}

.score-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 5.5rem;
}

.score-bar .track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.score-bar .fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.score-bar .num {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--muted);
  width: 1.6rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

/* 全螢幕透明殼：點外側（dialog 本身）可關閉 */
.detail-dialog {
  border: none;
  padding: 1rem;
  margin: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.detail-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  cursor: pointer;
}

.detail-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-panel {
  width: min(520px, calc(100vw - 2rem));
  max-height: min(88vh, 900px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  cursor: default;
}

.detail-inner {
  position: relative;
  padding: 1.35rem 1.35rem 1.5rem;
  margin: 0;
}

.dialog-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
}

.dialog-close:hover {
  color: var(--text);
}

.detail-tier {
  margin: 0 0 0.5rem;
}

.detail-brand {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-title {
  margin: 0.15rem 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.3;
  padding-right: 1.5rem;
}

.detail-verdict {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.2rem, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stat .unit {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
}

/* —— 營養圖表 —— */
.charts-panel {
  overflow: hidden;
}

.chart-hint {
  margin: 0 0 1rem;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.chart-card {
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  min-width: 0;
}

.chart-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.chart-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 4.2rem;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.78rem;
}

.chart-label {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.chart-fill {
  height: 100%;
  border-radius: inherit;
  min-width: 2px;
  transition: width 0.25s ease;
}

.chart-fill.tone-cal {
  background: linear-gradient(90deg, #fb7185, #fbbf24);
}

.chart-fill.tone-pro {
  background: linear-gradient(90deg, #34d399, #2dd4bf);
}

.chart-fill.tone-na {
  background: linear-gradient(90deg, #818cf8, #60a5fa);
}

.chart-value {
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--text);
  font-weight: 600;
  font-size: 0.75rem;
}

.detail-nutrition {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.detail-nutrition h4 {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
}

.detail-nutri-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0 0.5rem;
}

.detail-nutri-bars .chart-row {
  grid-template-columns: 3.5rem 1fr 4.5rem;
}

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

@media (max-width: 560px) {
  .chart-row {
    grid-template-columns: 4.2rem 1fr 3.6rem;
  }
}

.stat {
  padding: 0.65rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  text-align: center;
}

.stat .label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.stat .value {
  font-weight: 700;
  font-size: 1.05rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.detail-tags span {
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
}

.detail-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.detail-cols h4 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
}

.detail-cols ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

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

@media (max-width: 860px) {
  .toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .method-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tier-row {
    grid-template-columns: 1fr;
  }

  .tier-label {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }

  .tier-label .tier-name {
    max-width: none;
  }

  .tier-cards {
    grid-template-columns: 1fr;
    padding: 0.85rem;
    gap: 0.75rem;
  }
}

@media (max-width: 560px) {
  .site-nav {
    display: none;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .method-grid,
  .detail-stats,
  .detail-cols {
    grid-template-columns: 1fr;
  }

}
