:root {
  --bg: #f5f7fb;
  --bg-elevated: #ffffff;
  --sidebar: #ffffff;
  --card: #ffffff;
  --card-hover: #fafbfd;
  --text: #1e293b;
  --text-muted: #475569;
  --text-dim: #64748b;
  --accent: #003da5;
  --accent-soft: rgba(0, 61, 165, 0.08);
  --green: #00a650;
  --green-soft: rgba(0, 166, 80, 0.1);
  --orange: #e85d2a;
  --orange-soft: rgba(232, 93, 42, 0.1);
  --cyan: #0891b2;
  --cyan-soft: rgba(8, 145, 178, 0.1);
  --red: #dc2626;
  --warn: #d97706;
  --ok: #16a34a;
  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 240px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  font-size: 14px;
}

/* ─── Sidebar ─── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 18px;
  border-bottom: 1px solid var(--border);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.brand-sub { color: var(--text-dim); font-size: 0.75rem; }

.sidebar-menu {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.menu-item:hover { background: #f1f5f9; color: var(--text); }
.menu-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.menu-icon {
  width: 18px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.7;
}

.menu-badge {
  margin-left: auto;
  background: #f1f5f9;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.menu-item.active .menu-badge {
  background: rgba(0, 61, 165, 0.12);
  color: var(--accent);
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online { background: var(--ok); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15); }
.status-time { margin-left: auto; font-variant-numeric: tabular-nums; }

/* ─── Main ─── */
.main {
  margin-left: var(--sidebar-w);
  padding: 28px 32px 48px;
  max-width: 1400px;
}

.mobile-top {
  display: none;
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--sidebar);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  align-items: center;
  gap: 12px;
}

.hamburger {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
}

.mobile-title { font-weight: 700; font-size: 0.95rem; }

.tab-content { display: none; animation: fadeTab 0.2s ease; }
.tab-content.active { display: block; }

@keyframes fadeTab {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Page header ─── */
.page-header {
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.meta-item {
  color: var(--text-dim);
  font-size: 0.84rem;
}

.meta-item strong { color: var(--text-muted); }

/* ─── KPI row ─── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

.kpi-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon { font-size: 1.1rem; line-height: 1; }

.kpi-body { min-width: 0; flex: 1; }
.kpi-label {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.kpi-sub {
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--text-dim);
}

.kpi-sub.positive { color: var(--ok); }
.kpi-sub.negative { color: var(--red); }

/* ─── Panels ─── */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.panel-header h2 {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-grid-2 .panel { margin-bottom: 0; }

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

/* ─── Tables ─── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  z-index: 1;
}

.data-table tbody tr:hover td { background: #f8fafc; }
.data-table td:first-child { font-weight: 500; }

.info-table { width: 100%; font-size: 0.88rem; }
.info-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
.info-table td:first-child {
  color: var(--text-dim);
  width: 100px;
  font-weight: 500;
}

.empty {
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
  padding: 36px 20px !important;
}

/* ─── Tags & badges ─── */
.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
}

.tag-blue { background: var(--accent-soft); color: var(--accent); }
.tag-green { background: var(--green-soft); color: var(--green); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge.ok { background: rgba(22, 163, 74, 0.12); color: var(--ok); }
.badge.fail { background: rgba(220, 38, 38, 0.1); color: var(--red); }
.badge.warn { background: rgba(217, 119, 6, 0.12); color: var(--warn); }
.badge.crit { background: rgba(220, 38, 38, 0.12); color: var(--red); }

/* ─── Charts ─── */
.chart-panel { padding: 20px; }
.chart-caption {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 8px;
}

.chart-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.chart-bar-wrap { width: 100%; min-height: 120px; }

/* ─── Coverage bar ─── */
.coverage-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.coverage-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  min-width: 72px;
}

.coverage-track {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.coverage-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.coverage-fill.green { background: var(--green); }
.coverage-fill.orange { background: var(--orange); }

.coverage-pct {
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 42px;
  text-align: right;
}

/* ─── Buttons ─── */
.btn, button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.86rem;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
  font-family: inherit;
}

.btn:hover, button:hover { opacity: 0.92; }
.btn:disabled, button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-primary { background: var(--accent); }
.btn-accent { background: var(--orange); }
.btn-secondary { background: #e2e8f0; color: var(--text); }
.btn-outline {
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.filter-select {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.82rem;
  font-family: inherit;
}

.btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 20px;
}

.filter-bar { display: flex; gap: 8px; }

code {
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.8rem;
  color: #0369a1;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .panel-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }

  .mobile-top { display: flex; }
  .main {
    margin-left: 0;
    padding: 20px 16px 40px;
  }

  .kpi-row { grid-template-columns: 1fr 1fr; }
  .page-header h1 { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .kpi-row { grid-template-columns: 1fr; }
}

/* ─── Category tags ─── */
.tag-cat-pinlei { background: rgba(0, 61, 165, 0.1); color: #003da5; }
.tag-cat-maidian { background: rgba(232, 93, 42, 0.12); color: #c2410c; }
.tag-cat-gongneng { background: rgba(0, 166, 80, 0.12); color: #15803d; }
.tag-cat-xuqiu { background: rgba(8, 145, 178, 0.12); color: #0e7490; }
.tag-cat-changwei { background: rgba(100, 116, 139, 0.14); color: #475569; }

/* ─── Competitor layout ─── */
.competitor-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 520px;
  overflow: hidden;
}

.competitor-list {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border-right: 1px solid var(--border);
  min-height: 0;
}

.competitor-list-toolbar {
  padding: 12px 12px 0;
}

.competitor-list-toolbar .filter-select {
  width: 100%;
}

.competitor-list-head {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
}

.competitor-list-body {
  flex: 1;
  overflow-y: auto;
  max-height: calc(72vh - 80px);
}

button.competitor-kw-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  margin: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  transition: background 0.15s;
  opacity: 1;
  transform: none;
}

button.competitor-kw-item:hover {
  background: #eef2f7;
  opacity: 1;
  transform: none;
}

button.competitor-kw-item.active {
  background: #fff;
  box-shadow: inset 3px 0 0 var(--accent);
}

.competitor-kw-name {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.competitor-kw-meta { flex-shrink: 0; }

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #e2e8f0;
  color: var(--text-dim);
}

.status-pill.ok {
  background: var(--accent-soft);
  color: var(--accent);
}

.status-pill.warn {
  background: rgba(217, 119, 6, 0.12);
  color: var(--warn);
}

.competitor-account-panel {
  margin-top: 18px;
}

.insight-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.meta-chip {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

.meta-chip strong {
  color: var(--text);
  font-weight: 700;
}

.competitor-mention-insight {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.insight-analysis.compact {
  margin-bottom: 12px;
  padding: 10px 12px;
  font-size: 0.82rem;
}

.core-terms.compact {
  margin-bottom: 12px;
}

.competitor-detail {
  min-width: 0;
  overflow-y: auto;
  max-height: 72vh;
  padding: 20px 22px 24px;
  background: #fff;
}

.competitor-detail-empty {
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 48px 0;
  text-align: center;
}

.competitor-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.competitor-detail-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 8px;
}

.competitor-detail-stats {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.competitor-detail-stats strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.chip-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.chip-section .chip-group:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.chip-group {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.chip-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #fff;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.chip-sm { padding: 2px 8px; font-size: 0.72rem; }
.chip-expected { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.chip-detected { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.chip-missing { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.chip-empty { color: var(--text-dim); font-size: 0.82rem; font-style: italic; }

.competitor-occupancy {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.competitor-occupancy .chip-label {
  padding: 10px 14px;
  margin: 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.competitor-occupancy .data-table.compact { margin: 0; }
.competitor-occupancy .data-table.compact th { background: #f8fafc; }
.competitor-occupancy .data-table.compact th,
.competitor-occupancy .data-table.compact td {
  padding: 9px 14px;
  font-size: 0.84rem;
}

.competitor-occupancy .data-table.compact td:last-child {
  word-break: break-word;
  max-width: 0;
}

/* ─── Effect analysis ─── */
.effect-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 18px 20px 8px;
  border-bottom: 1px solid var(--border);
}

.effect-summary-item { min-width: 0; }

.effect-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.effect-summary-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.effect-summary-pct {
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.effect-summary-pct.brand { color: var(--green); }
.effect-summary-pct.competitor { color: var(--orange); }

.effect-metric { margin-top: 10px; }
.effect-metric:first-of-type { margin-top: 0; }

.effect-metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.effect-metric-pct {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.effect-metric-pct.brand { color: var(--green); }
.effect-metric-pct.competitor { color: var(--orange); }

.coverage-track.sm { height: 5px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  padding: 16px 18px 20px;
}

.category-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: #fafbfd;
}

.category-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.category-card-total {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 600;
}

.account-name {
  font-weight: 600;
  font-size: 0.86rem;
}

.account-red-id {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.account-meta {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.contact-cell {
  max-width: 120px;
  font-size: 0.78rem;
  word-break: break-word;
  color: var(--text-muted);
}

.rank-insight-panel .data-table.compact th,
.rank-insight-panel .data-table.compact td {
  padding: 8px 10px;
  font-size: 0.8rem;
}

/* ─── Rank insights ─── */
.rank-insight-panel .panel-header {
  flex-wrap: wrap;
  gap: 12px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

button.category-pill {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

button.category-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

button.category-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.insight-pane {
  display: none;
  padding: 16px 18px 20px;
}

.insight-pane.active {
  display: block;
}

.insight-analysis {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.rec-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.rec-publisher { background: #dcfce7; color: #15803d; }
.rec-priority { background: #fee2e2; color: #b91c1c; }
.rec-watch { background: #ffedd5; color: #c2410c; }
.rec-learn { background: #dbeafe; color: #1d4ed8; }
.rec-normal { background: #f1f5f9; color: #64748b; }

.core-terms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.word-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  min-height: 160px;
  padding: 20px 16px;
  background: linear-gradient(180deg, #fafbfd 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.cloud-word {
  display: inline-block;
  line-height: 1.2;
  color: #334155;
  font-weight: 600;
  transition: color 0.15s ease;
}

.cloud-word:hover {
  color: var(--primary);
}

.chart-caption {
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--text-dim);
  text-align: center;
}

@media (max-width: 768px) {
  .effect-summary { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .competitor-shell { grid-template-columns: 1fr; }
  .competitor-list { max-height: 280px; border-right: none; border-bottom: 1px solid var(--border); }
  .competitor-list-body { max-height: 200px; }
  .competitor-detail { max-height: none; }
  .chip-section { grid-template-columns: 1fr; }
}
