:root {
  --bg: #f4f5f9;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --line: #e6e8f2;
  --line-strong: #d8dced;
  --text: #25233a;
  --muted: #7d8097;
  --accent: #7a74ff;
  --accent-soft: rgba(122, 116, 255, 0.1);
  --warm: #ff8b55;
  --warm-soft: rgba(255, 139, 85, 0.14);
  --success: #30a46c;
  --danger: #d14d72;
  --shadow: 0 10px 30px rgba(42, 45, 84, 0.06);
  --radius-xl: 18px;
  --radius-lg: 16px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --content-width: 1320px;
  --font-sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(122, 116, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #f8f8fb 0%, #f3f4f8 100%);
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  padding: 18px 14px 40px;
}

.topbar,
.app-shell {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 0 4px 14px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff0ee, #f2f0ff);
  color: #ff6b57;
  font-size: 18px;
  box-shadow: none;
}

.brand-eyebrow,
.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand h1,
.hero-copy h2,
.detail-hero h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand h1 {
  font-size: clamp(24px, 2vw, 30px);
  color: #8e89d7;
}

.nav {
  display: flex;
  gap: 10px;
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: 180ms ease;
}

.nav > .nav-chip:not(.discord-nav-chip) {
  min-width: 96px;
}

.nav-chip.is-active {
  background: rgba(122, 116, 255, 0.12);
  color: #6d66d8;
  border-color: rgba(122, 116, 255, 0.2);
}

.nav-chip.discord-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5865f2;
  text-decoration: none;
}

.nav-chip.discord-nav-chip:hover {
  background: rgba(88, 101, 242, 0.12);
  border-color: rgba(88, 101, 242, 0.24);
}

.discord-icon-nav {
  width: 18px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.24);
  background: rgba(88, 101, 242, 0.08);
  color: #5865f2;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: 180ms ease;
  white-space: nowrap;
}

.discord-link:hover {
  background: rgba(88, 101, 242, 0.16);
  border-color: rgba(88, 101, 242, 0.4);
}

.discord-icon {
  width: 20px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

.hero-card,
.toolbar,
.detail-layout,
.empty-card,
.detail-panel,
.evidence-card {
  backdrop-filter: blur(14px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hotspot-card,
.stat-card {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.hero-copy {
  max-width: 520px;
}

.hero-copy.compact {
  flex: 0 0 auto;
}

.hero-copy .eyebrow {
  font-size: 15px;
}

.hero-copy h2 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  margin-bottom: 10px;
  color: #4a4f9d;
}

.hero-description {
  margin: 0;
  max-width: 460px;
  line-height: 1.65;
  color: var(--muted);
  font-size: 14px;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fbfbfe;
  color: var(--muted);
  border: 1px solid var(--line);
  width: fit-content;
  font-size: 12px;
}

.hero-meta-updated {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.meta-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 10px;
  margin-right: 2px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
  cursor: pointer;
}

.meta-toggle-label {
  color: #5c6078;
  font-weight: 500;
}

.meta-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.meta-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.meta-switch-slider {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d9deef;
  transition: background 180ms ease;
}

.meta-switch-slider::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(60, 66, 120, 0.18);
  transition: transform 180ms ease;
}

.meta-switch input:checked + .meta-switch-slider {
  background: rgba(122, 116, 255, 0.42);
}

.meta-switch input:checked + .meta-switch-slider::after {
  transform: translateX(18px);
}

.meta-switch input:focus-visible + .meta-switch-slider {
  outline: 2px solid rgba(122, 116, 255, 0.45);
  outline-offset: 2px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #6bd2b0);
  box-shadow: 0 0 0 8px rgba(21, 159, 120, 0.12);
}

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

.stat-card {
  border-radius: 14px;
  padding: 14px 16px;
  min-height: 84px;
  background: #fbfbfe;
  box-shadow: none;
  text-align: center;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
}

.stat-value {
  margin-top: 6px;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stat-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.toolbar {
  margin-top: 18px;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 16px;
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-row .category-bar {
  margin-top: 0;
  flex: 1;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  transition: 180ms ease;
}

.category-chip strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f5f6fc;
  color: #5b5f78;
  font-size: 12px;
}

.category-chip.is-active {
  background: rgba(122, 116, 255, 0.12);
  border-color: rgba(122, 116, 255, 0.24);
  color: #5d58d8;
}

.category-chip.is-active strong {
  background: rgba(122, 116, 255, 0.16);
  color: #4d48c9;
}

.toolbar-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toolbar-group.grow {
  flex: 1;
}

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

.toolbar input,
.toolbar select {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbfbfe;
  padding: 0 16px;
  color: var(--text);
}

.error-banner {
  margin-top: 18px;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: rgba(209, 77, 114, 0.12);
  border: 1px solid rgba(209, 77, 114, 0.22);
  color: #8b2448;
}

.hidden {
  display: none !important;
}

.list-view {
  margin-top: 24px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.hotspot-card {
  border-radius: var(--radius-lg);
  padding: 12px;
  display: grid;
  grid-template-rows: 100px 34px 86px 56px auto;
  row-gap: 6px;
  min-height: 0;
  position: relative;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hotspot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(62, 39, 95, 0.14);
}

.hotspot-card:focus-visible {
  outline: 2px solid rgba(122, 116, 255, 0.5);
  outline-offset: 2px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  height: 100px;
}

.card-topline > :first-child {
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.card-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  min-height: 30px;
}

.card-title-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-kicker,
.card-subtitle,
.detail-subtitle,
.detail-raw-key {
  margin: 0;
  color: var(--muted);
}

.card-kicker {
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-subtitle {
  margin-top: 2px;
  font-size: 11px;
  height: 20px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-new-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.3;
  color: #b44b1a;
  background: rgba(255, 165, 122, 0.18);
  border: 1px solid rgba(255, 165, 122, 0.38);
  width: fit-content;
}

.card-summary {
  margin: 0;
  height: 56px;
  color: #54576f;
  font-size: 11px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags,
.metric-tags,
.detail-tags,
.facts,
.evidence-spans {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  height: 34px;
  margin-top: 0;
  align-items: flex-start;
  overflow: hidden;
  gap: 4px;
}

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--muted);
  background: #f6f7fc;
  border: 1px solid #e8eaf6;
}

.card-tags .tag {
  display: block;
  width: 5.6em;
  max-width: 5.6em;
  min-height: 22px;
  padding: 2px 7px;
  line-height: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  border-radius: 12px;
}

.pill.warm {
  color: #a5591d;
  background: var(--warm-soft);
  border-color: rgba(255, 143, 91, 0.2);
}

.pill-date {
  color: #646b85;
  background: #f3f5fb;
  border-color: #e5e9f4;
}

.pill-source {
  color: #2f6db3;
  background: #eef5ff;
  border-color: #cfe2ff;
}

.pill-news-type {
  color: #5f4db8;
  background: #f1eeff;
  border-color: #ddd5ff;
}

.pill-company {
  color: #a5591d;
  background: #fff3ea;
  border-color: rgba(255, 143, 91, 0.25);
}

.tag-source {
  color: #2f6db3;
  background: #eef5ff;
  border-color: #cfe2ff;
}

.tag-news-type {
  color: #5f4db8;
  background: #f1eeff;
  border-color: #ddd5ff;
}

.tag-company {
  color: #a5591d;
  background: #fff3ea;
  border-color: rgba(255, 143, 91, 0.25);
}

.score-badge {
  min-width: 64px;
  height: fit-content;
  padding: 5px 8px;
  border-radius: 10px;
  background: #fff4ef;
  color: #e66537;
  text-align: center;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 143, 91, 0.18);
}

.score-badge span {
  display: block;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.card-title-feishu {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
  text-decoration: none;
  transition: 160ms ease;
}

.card-title-feishu:hover {
  transform: translateY(-1px);
}

.feishu-inline-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-wrap {
  position: relative;
  height: 86px;
  margin-top: 2px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(122, 116, 255, 0.08), rgba(122, 116, 255, 0.01)),
    #fbfbff;
  border: 1px solid #eef0fa;
  padding: 7px;
  overflow: hidden;
}

.sparkline {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: center;
  transition: transform 180ms ease;
}

.hotspot-card .chart-wrap:hover .sparkline {
  transform: scale(1.06);
}

.sparkline-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, 0);
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(37, 35, 58, 0.92);
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
  white-space: nowrap;
}

.sparkline-tooltip.is-visible {
  opacity: 1;
}

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

.card-metrics {
  gap: 6px;
}

.hotspot-card .metric {
  padding: 7px 9px;
  border-radius: 9px;
}

.hotspot-card .metric-label {
  font-size: 10px;
}

.hotspot-card .metric-value {
  margin-top: 3px;
  font-size: 14px;
}

.metric {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fafbff;
  border: 1px solid #eceef8;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
}

.metric-value {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
}

.card-action,
.back-button {
  margin-top: auto;
  border: 0;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 16px;
  color: white;
  background: linear-gradient(135deg, #7f79ff, #655fff);
  cursor: pointer;
}

.empty-card {
  border-radius: var(--radius-xl);
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

.empty-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 28px;
}

.detail-view {
  margin-top: 24px;
}

.taxonomy-view {
  margin-top: 24px;
}

.taxonomy-grid {
  display: grid;
  gap: 18px;
}

.taxonomy-card {
  backdrop-filter: blur(14px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  padding: 20px;
}

.taxonomy-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.taxonomy-card-head h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.taxonomy-count {
  min-width: 64px;
  padding: 10px 14px;
  border-radius: 999px;
  text-align: center;
  background: rgba(122, 116, 255, 0.1);
  color: #5d58d8;
  font-weight: 800;
}

.taxonomy-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.taxonomy-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.taxonomy-table th,
.taxonomy-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #eceef8;
  vertical-align: top;
  font-size: 13px;
}

.taxonomy-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8f9fd;
  color: var(--muted);
  font-weight: 700;
}

.taxonomy-table tbody tr:last-child td {
  border-bottom: 0;
}

.taxonomy-hierarchy {
  display: grid;
  gap: 12px;
}

.taxonomy-l1-block,
.taxonomy-l2-block {
  border: 1px solid #e8ebf6;
  border-radius: 12px;
  background: #fbfcff;
}

.taxonomy-l1-block {
  padding: 10px;
}

.taxonomy-l2-block {
  margin-top: 8px;
  padding: 10px;
  background: #ffffff;
}

.taxonomy-l1-block h4,
.taxonomy-l2-block h5 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.taxonomy-l2-block h5 {
  font-size: 13px;
}

.taxonomy-level-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #d8ddf0;
  background: #f3f6ff;
  color: #576189;
  font-size: 10px;
  line-height: 1;
}

.taxonomy-key {
  font-weight: 700;
  color: #27304f;
}

.taxonomy-cn {
  color: #6a7392;
  font-size: 12px;
}

.taxonomy-l3-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e8ebf6;
  display: grid;
  gap: 6px;
}

.taxonomy-l3-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.taxonomy-alias-wrap {
  display: grid;
  gap: 4px;
}

.taxonomy-alias-label {
  font-size: 11px;
  color: #7a849f;
}

.taxonomy-alias-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.taxonomy-alias-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d9dff5;
  background: #f7f9ff;
  color: #4f5a82;
  font-size: 11px;
  padding: 2px 8px;
}

.taxonomy-empty {
  font-size: 12px;
  color: #94a0bf;
}

.back-button {
  margin-bottom: 18px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
}

.detail-layout {
  border-radius: var(--radius-xl);
  padding: 24px;
}

.detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.detail-hero h2 {
  font-size: clamp(32px, 3.8vw, 56px);
}

.detail-subtitle {
  margin-top: 8px;
  font-size: 15px;
}

.detail-taxonomy-path {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.detail-taxonomy-label {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid #dde2f2;
  background: #f5f7ff;
  color: #4d5a86;
}

.detail-taxonomy-sep {
  opacity: 0.7;
  margin: 0 4px;
}

.detail-raw-key {
  margin-top: 8px;
  font-size: 12px;
  word-break: break-all;
}

.detail-score {
  min-width: 108px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7f3;
  color: #df5f34;
  border: 1px solid rgba(255, 143, 91, 0.16);
}

.detail-score strong {
  display: block;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.detail-score span {
  font-size: 15px;
  line-height: 1;
  color: #eb6d43;
}

.detail-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.detail-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-panel {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.panel-title {
  margin: 0 0 16px;
  font-size: 20px;
}

.trend-panel .chart-wrap {
  height: 220px;
}

.evidence-list {
  display: grid;
  gap: 14px;
}

.evidence-card {
  border-radius: 16px;
  padding: 16px;
}

.evidence-card h4 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.35;
}

.evidence-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.evidence-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.evidence-link {
  color: #6761f4;
  text-decoration: none;
}

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

.reason-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}

.drilldown-block + .drilldown-block {
  margin-top: 14px;
}

.drilldown-block h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #64748b;
}

.drilldown-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drill-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid #e7eaf5;
  background: #f8faff;
  color: #334155;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
}

.drill-pill.is-warm {
  background: #fff7f0;
  border-color: #ffd9c3;
}

.drill-pill em {
  font-style: normal;
  color: #5b5dd6;
  font-weight: 700;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .stats-grid,
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-card {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy,
  .hero-copy.compact {
    max-width: none;
  }

  .detail-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .stats-grid,
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding-inline: 14px;
  }

  .topbar,
  .hero-card,
  .toolbar,
  .category-row,
  .detail-hero {
    flex-direction: column;
  }

  .category-row {
    align-items: stretch;
  }

  .hero-meta {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .meta-toggle {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
  }

  .stats-grid,
  .cards-grid,
  .card-metrics,
  .detail-metrics {
    grid-template-columns: 1fr;
  }

  .hotspot-card {
    min-height: unset;
  }

  .card-title {
    font-size: 18px;
  }
}
