:root {
  --ink: #18211c;
  --ink-soft: #58635c;
  --paper: #f4f5f0;
  --panel: #fff;
  --line: #dfe3dc;
  --line-soft: #ecefe9;
  --green: #0f6847;
  --green-dark: #0b4934;
  --green-pale: #e5f0e9;
  --amber: #aa7414;
  --amber-pale: #f8efd9;
  --red: #a34438;
  --red-pale: #f8e7e3;
  --blue: #3f6175;
  --blue-pale: #e7eef2;
  --shadow: 0 14px 40px rgba(24, 33, 28, 0.055);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { overflow-x: clip; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(24, 33, 28, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 33, 28, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, select, input[type="checkbox"] { cursor: pointer; }
a { color: inherit; }

.shell { width: min(1500px, 100%); margin: 0 auto; padding: 0 38px 28px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(24, 33, 28, 0.12);
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 11px;
}
.brand-mark svg { width: 31px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.brand-mark .accent-path { stroke: var(--green); stroke-width: 2.2; }
.brand strong { display: block; font: 700 13px/1.1 ui-monospace, monospace; letter-spacing: 0.11em; }
.brand small { display: block; margin-top: 4px; color: var(--ink-soft); font: 600 9px/1 ui-monospace, monospace; letter-spacing: 0.18em; }

.topbar-actions { display: flex; align-items: center; gap: 22px; }
.update-meta {
  display: grid;
  grid-template-columns: 9px auto;
  gap: 2px 8px;
  color: var(--ink-soft);
  font-size: 12px;
}
.update-meta time { grid-column: 2; font-variant-numeric: tabular-nums; color: #7c857f; }
.health-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #a6ada8; box-shadow: 0 0 0 4px rgba(166, 173, 168, 0.15); }
.health-dot.healthy { background: #1d8a60; box-shadow: 0 0 0 4px rgba(29, 138, 96, 0.13); }
.health-dot.warning { background: var(--amber); box-shadow: 0 0 0 4px rgba(170, 116, 20, 0.13); }
.health-dot.failed { background: var(--red); box-shadow: 0 0 0 4px rgba(163, 68, 56, 0.12); }

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 13px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(15, 104, 71, 0.2); outline-offset: 2px; }
.button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: #28332c; }
.button-primary.loading svg { animation: spin 0.8s linear infinite; }
.button-secondary { background: #fff; border-color: var(--line); color: var(--ink); }

.hero {
  min-height: 205px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 44px 2px 34px;
}
.eyebrow, .section-kicker {
  margin: 0 0 13px;
  color: var(--green);
  font: 700 10px/1.2 ui-monospace, monospace;
  letter-spacing: 0.18em;
}
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow span { display: inline-block; width: 18px; height: 2px; background: var(--green); }
.hero h1 { margin: 0; font-size: clamp(37px, 4.3vw, 61px); line-height: 1; letter-spacing: -0.055em; font-weight: 720; }
.hero p:not(.eyebrow) { max-width: 620px; margin: 17px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.hero-date { min-width: 170px; padding: 2px 0 5px 24px; border-left: 1px solid var(--line); }
.hero-date span, .hero-date small { display: block; color: var(--ink-soft); font-size: 11px; }
.hero-date strong { display: block; margin: 6px 0; font: 650 22px/1.2 ui-monospace, monospace; letter-spacing: -0.04em; }

.notice { margin: -15px 0 22px; padding: 12px 15px; border: 1px solid #ebd3cd; border-radius: 10px; background: var(--red-pale); color: #71362f; font-size: 13px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi-card {
  min-height: 150px;
  padding: 23px 24px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.kpi-card::after { content: ""; position: absolute; inset: auto 20px 0; height: 2px; background: transparent; }
.kpi-accent::after { background: var(--green); }
.kpi-heading { display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 12px; }
.kpi-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: var(--green-pale); color: var(--green); font-weight: 800; }
.kpi-icon.muted { background: #f0f2ee; color: #66716a; }
.kpi-card strong { display: block; margin-top: 15px; font: 700 clamp(30px, 3vw, 40px)/1 ui-monospace, monospace; letter-spacing: -0.07em; }
.kpi-card p { margin: 10px 0 0; color: #7b847e; font-size: 11px; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(310px, 0.8fr); gap: 14px; margin-top: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-heading { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.panel-heading h2 { margin: 0; font-size: 18px; letter-spacing: -0.025em; }
.panel-heading .section-kicker { margin-bottom: 6px; font-size: 8px; }
.count-badge { padding: 6px 9px; background: #f0f3ee; border-radius: 999px; color: var(--ink-soft); font: 650 10px ui-monospace, monospace; }

.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 225px; padding: 0 12px; }
.timeline-item { min-width: 0; padding: 25px 16px 22px; position: relative; }
.timeline-item:not(:last-child)::after { content: ""; position: absolute; top: 35px; right: -4px; width: 8px; height: 1px; background: var(--line); }
.timeline-date { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font: 650 10px ui-monospace, monospace; }
.timeline-date::before { content: ""; width: 7px; height: 7px; border: 2px solid var(--green); border-radius: 50%; background: #fff; }
.timeline-item h3 { min-height: 43px; margin: 17px 0 6px; font-size: 14px; line-height: 1.5; }
.timeline-item h3 a { display: block; text-decoration: none; }
.timeline-item h3 a:hover { color: var(--green); }
.timeline-item .ticker { color: #727d76; font: 600 11px ui-monospace, monospace; }
.timeline-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 21px; color: var(--ink-soft); font-size: 10px; }

.bar-list { min-height: 225px; padding: 20px 24px; }
.bar-row { margin-bottom: 17px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 11px; }
.bar-label strong { font: 650 11px ui-monospace, monospace; }
.bar-caption { margin: 7px 0 0; overflow: hidden; color: #879089; font-size: 9px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 5px; overflow: hidden; border-radius: 999px; background: #edf0eb; }
.bar-fill { height: 100%; min-width: 3px; background: var(--green); border-radius: inherit; transform-origin: left; animation: grow 0.5s ease both; }

.events-panel { margin-top: 14px; overflow: hidden; }
.events-heading { border-bottom: 0; }
.result-count { color: var(--ink-soft); font-size: 11px; }
.region-browser { margin: 0 24px 18px; padding: 17px; border: 1px solid var(--line-soft); border-radius: 12px; background: #fafbf8; }
.region-browser-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.region-browser-heading > div { display: grid; gap: 4px; }
.region-browser-heading strong { font-size: 12px; }
.region-browser-heading span { color: #7b847e; font-size: 10px; }
.all-regions-button { min-height: 31px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-soft); background: #fff; font-size: 10px; font-weight: 650; white-space: nowrap; }
.all-regions-button span { display: inline-block; min-width: 17px; margin-left: 5px; padding: 2px 5px; border-radius: 999px; background: #eff2ed; color: var(--ink); font: 700 9px ui-monospace, monospace; text-align: center; }
.all-regions-button.is-active { border-color: var(--ink); color: #fff; background: var(--ink); }
.all-regions-button.is-active span { background: rgba(255, 255, 255, 0.16); color: #fff; }
.region-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.region-card { min-width: 0; min-height: 75px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; text-align: left; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.region-card:hover { transform: translateY(-1px); border-color: #b8c7bd; box-shadow: 0 7px 18px rgba(24, 33, 28, 0.06); }
.region-card.is-active { border-color: var(--green); background: var(--green-pale); box-shadow: inset 0 0 0 1px rgba(15, 104, 71, 0.06); }
.region-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.region-card-top strong { font-size: 13px; }
.region-card-top b { color: var(--green); font: 720 17px/1 ui-monospace, monospace; }
.region-card small { display: block; margin-top: 9px; overflow: hidden; color: #7b847e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.china-exchange-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; padding: 12px 13px; border: 1px solid #d4e3da; border-radius: 10px; background: #f3f8f5; }
.china-exchange-heading { display: grid; flex: 0 0 auto; gap: 3px; }
.china-exchange-heading strong { display: flex; align-items: center; gap: 7px; font-size: 10px; }
.china-exchange-heading em { padding: 3px 6px; border-radius: 999px; color: #fff; background: var(--green); font-size: 8px; font-style: normal; letter-spacing: 0.04em; }
.china-exchange-heading span { color: #879089; font-size: 9px; }
.exchange-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.exchange-loading { padding: 7px 4px; color: #879089; font-size: 9px; }
.exchange-chip { min-height: 32px; padding: 0 11px; border: 1px solid #cbd9d0; border-radius: 999px; color: var(--ink); background: #fff; font-size: 10px; font-weight: 680; white-space: nowrap; }
.exchange-chip span { margin-left: 4px; color: #879089; font: 650 8px ui-monospace, monospace; }
.exchange-chip.is-active { border-color: var(--green); color: var(--green-dark); background: var(--green-pale); }
.exchange-chip.is-active span { color: var(--green); }
.filters { display: flex; align-items: center; gap: 10px; padding: 0 24px 18px; border-bottom: 1px solid var(--line-soft); }
.filters select, .search-field {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafbf8;
  color: var(--ink);
}
.filters select { min-width: 145px; padding: 0 31px 0 12px; font-size: 12px; }
.search-field { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.search-field svg { width: 17px; fill: none; stroke: #7d8680; stroke-width: 1.6; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; cursor: text; }
.toggle-field { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--ink-soft); font-size: 11px; }
.toggle-field input { position: absolute; opacity: 0; pointer-events: none; }
.toggle { width: 32px; height: 18px; padding: 2px; border-radius: 999px; background: #cdd3ce; transition: 0.2s ease; }
.toggle::after { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: 0.2s ease; }
.toggle-field input:checked + .toggle { background: var(--green); }
.toggle-field input:checked + .toggle::after { transform: translateX(14px); }
.toggle-field input:focus-visible + .toggle { outline: 3px solid rgba(15, 104, 71, 0.2); outline-offset: 2px; }

.table-wrap { contain: paint; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { height: 39px; padding: 0 14px; color: #7b847e; background: #fafbf8; border-bottom: 1px solid var(--line-soft); font-size: 9px; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; text-align: right; }
td { min-height: 64px; padding: 13px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcf9; }
.company-cell { min-width: 245px; }
.company-name { display: flex; align-items: center; gap: 7px; font-weight: 650; line-height: 1.4; }
.company-name a { text-decoration: none; }
.company-name a:hover { color: var(--green); }
.company-sub { margin-top: 4px; color: #7b847e; font: 550 10px ui-monospace, monospace; }
.company-original { max-width: 310px; margin-top: 5px; overflow: hidden; color: #8b938e; font-size: 8px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.translation-pending { padding: 2px 5px; border: 1px solid #ead9b8; border-radius: 4px; color: var(--amber); background: var(--amber-pale); font-size: 8px; font-weight: 700; white-space: nowrap; }
.market-cell { min-width: 150px; }
.market-cell strong { display: block; font-size: 11px; }
.market-cell span { display: block; max-width: 175px; margin-top: 4px; overflow: hidden; color: #7b847e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.date-cell { min-width: 115px; font: 600 11px ui-monospace, monospace; white-space: nowrap; }
.date-cell span { display: block; margin-top: 4px; color: #879089; font: 500 9px ui-sans-serif, sans-serif; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-upcoming { color: var(--green); background: var(--green-pale); }
.status-priced { color: var(--blue); background: var(--blue-pale); }
.status-listed { color: #505e54; background: #edf0ec; }
.status-filed { color: var(--amber); background: var(--amber-pale); }
.status-withdrawn, .status-postponed { color: var(--red); background: var(--red-pale); }
.change-tag { padding: 2px 5px; border: 1px solid #bad4c5; border-radius: 4px; color: var(--green); background: #f0f8f3; font: 700 8px ui-monospace, monospace; }
.offer-cell { min-width: 145px; color: var(--ink-soft); }
.offer-cell strong { display: block; color: var(--ink); font-size: 11px; }
.offer-cell span { display: block; margin-top: 3px; font-size: 9px; }
.source-link { display: inline-grid; place-items: center; width: 28px; height: 28px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.source-link:hover { color: var(--green); border-color: #9dbdaa; }
.source-link svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.table-loading { padding: 35px; color: var(--ink-soft); text-align: center; }
.empty-state { padding: 50px 20px; text-align: center; }
.empty-state > span { display: block; color: #a7aea9; font-size: 34px; }
.empty-state strong { display: block; margin-top: 8px; font-size: 14px; }
.empty-state p { margin: 7px 0 0; color: var(--ink-soft); font-size: 11px; }
.table-footer { display: flex; justify-content: center; padding: 14px 20px; border-top: 1px solid var(--line-soft); }
.table-footer:empty { display: none; }

.sources-panel { margin-top: 14px; }
.sources-panel > .panel-heading p:not(.section-kicker) { color: var(--ink-soft); font-size: 11px; }
.source-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.source-card { min-width: 0; min-height: 126px; padding: 19px 22px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.source-card:nth-child(4n) { border-right: 0; }
.source-card:nth-last-child(-n + 3) { border-bottom: 0; }
.source-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.source-card h3 { margin: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.source-card h3 a { text-decoration: none; }
.source-card h3 a:hover { color: var(--green); }
.source-health { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: 9px; white-space: nowrap; }
.source-health::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #a6ada8; }
.source-health.healthy::before { background: #1d8a60; }
.source-health.failed::before { background: var(--red); }
.source-health.stale::before { background: var(--amber); }
.source-card p { height: 30px; margin: 12px 0 0; overflow: hidden; color: #7b847e; font-size: 9px; line-height: 1.6; }
.source-card time { display: block; margin-top: 8px; color: #8a928c; font: 500 9px ui-monospace, monospace; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px 3px 0; color: #747d77; font-size: 10px; }
footer p { margin: 0; }
footer > span { font: 600 9px ui-monospace, monospace; letter-spacing: 0.08em; white-space: nowrap; }

/* Company detail */
.detail-shell { max-width: 1320px; }
.back-button { min-height: 44px; text-decoration: none; }
.company-main { min-height: calc(100vh - 160px); }
.detail-loading { padding: 74px 2px 20px; }
.detail-skeleton-title { width: min(600px, 72%); height: 62px; }
.detail-skeleton-line { width: min(430px, 55%); height: 18px; margin-top: 18px; }
.detail-loading-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-top: 52px; }
.detail-skeleton-card { height: 260px; }
.detail-error { max-width: 720px; margin: 80px auto; padding: 42px; text-align: center; }
.detail-error h1 { margin: 4px 0 12px; font-size: 34px; }
.detail-error p:not(.section-kicker) { color: var(--ink-soft); line-height: 1.7; }
.detail-error-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.detail-error-actions a { text-decoration: none; }

.detail-hero { padding: 37px 2px 34px; border-bottom: 1px solid var(--line); }
.detail-breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 28px; color: #7c857f; font-size: 11px; }
.detail-breadcrumb a { color: var(--green); text-decoration: none; }
.detail-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 34px; }
.detail-hero h1 { max-width: 900px; margin: 12px 0 9px; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -0.052em; }
.detail-hero h1:focus { outline: none; }
.detail-hero p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.detail-hero .detail-original-name { margin-top: 7px; color: #7d8680; font-size: 10px; line-height: 1.55; }
.detail-badges { display: flex; align-items: center; gap: 10px; }
.detail-code { color: #6f7972; font: 650 10px ui-monospace, monospace; letter-spacing: 0.05em; }
.detail-hero .button { flex: 0 0 auto; min-height: 46px; text-decoration: none; }
.detail-hero + .notice { margin: 18px 0 0; }

.detail-top-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 14px; margin-top: 14px; }
.detail-facts-panel, .detail-source-panel { overflow: hidden; }
.fact-label { padding: 6px 9px; border: 1px solid #c9dbd0; border-radius: 999px; color: var(--green); background: #f3f8f5; font: 700 9px ui-monospace, monospace; }
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.fact-grid > div { min-height: 88px; padding: 20px 24px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.fact-grid > div:nth-child(3n) { border-right: 0; }
.fact-grid dt, .source-times dt { color: #7b847e; font-size: 9px; }
.fact-grid dd, .source-times dd { margin: 9px 0 0; font: 650 12px/1.45 ui-monospace, monospace; }
.source-summary { padding: 22px 24px; }
.source-status-row { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 9px; }
.source-status-row .health-dot { margin: 0; }
.source-status-row strong { font-size: 12px; }
.source-status-row > span:last-child { color: var(--ink-soft); font-size: 9px; }
.source-summary > p { min-height: 44px; margin: 17px 0 20px; color: var(--ink-soft); font-size: 11px; line-height: 1.75; }
.enrichment-summary { display: grid; gap: 5px; margin: -3px 0 18px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 9px; background: #fafbf8; }
.enrichment-summary strong { font-size: 10px; }
.enrichment-summary span { color: var(--ink-soft); font-size: 9px; line-height: 1.55; }
.enrichment-available { border-color: #c9dbd0; background: var(--green-pale); }
.enrichment-pending, .enrichment-stale { border-color: #ead9b8; background: var(--amber-pale); }
.source-times { margin: 0; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.source-times > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-top: 10px; }
.source-times > div:first-child { margin-top: 0; }
.source-times dd { margin: 0; font-size: 9px; text-align: right; }

.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.research-card { min-height: 310px; overflow: hidden; }
.research-heading { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.research-heading h2 { margin: 0; font-size: 18px; letter-spacing: -0.025em; }
.research-heading .section-kicker { margin-bottom: 6px; font-size: 8px; }
.coverage-pill { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; font-size: 9px; font-weight: 700; }
.coverage-ready { color: var(--green); background: var(--green-pale); }
.coverage-partial { color: var(--blue); background: var(--blue-pale); }
.coverage-unavailable, .coverage-insufficient_evidence, .coverage-unknown { color: var(--amber); background: var(--amber-pale); }
.research-body { padding: 24px; }
.research-summary { margin: 0; font-size: 14px; font-weight: 570; line-height: 1.85; }
.research-limitation { margin: 20px 0 0; padding-top: 17px; border-top: 1px solid var(--line-soft); color: #778079; font-size: 10px; line-height: 1.75; }
.evidence-note { margin-top: 18px; padding: 15px 16px; border: 1px solid #dbe5df; border-radius: 10px; background: #f7faf8; }
.evidence-note > strong { display: block; color: #3d5547; font-size: 10px; line-height: 1.6; }
.source-locator { display: block; margin-top: 7px; color: var(--green); font: 650 8px/1.45 ui-monospace, monospace; }
.original-disclosure { margin-top: 10px; color: #6e7771; font-size: 9px; }
.original-disclosure summary { width: fit-content; color: var(--green); cursor: pointer; }
.original-disclosure p { margin: 9px 0 0; padding: 10px 12px; border-left: 2px solid #c9dbd0; background: rgba(255,255,255,.65); line-height: 1.75; overflow-wrap: anywhere; }
.section-empty { padding: 28px 18px; border: 1px dashed #d9ddd7; border-radius: 10px; color: #78817b; background: #fafbf8; font-size: 11px; text-align: center; }
.evidence-list, .people-list { list-style: none; margin: 20px 0 0; padding: 0; }
.evidence-list li { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 11px; }
.evidence-list li:last-child { border-bottom: 0; }
.evidence-list strong { color: var(--amber); font-size: 9px; }
.evidence-list .evidence-item { align-items: flex-start; padding: 14px 0; }
.evidence-item > div { min-width: 0; }
.evidence-item > strong { flex: 0 0 auto; padding: 5px 7px; border-radius: 999px; background: var(--amber-pale); white-space: nowrap; }
.evidence-title { font-weight: 700; }
.evidence-item p { max-width: 560px; margin: 7px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.7; }
.risk-block { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line-soft); }
.risk-block > strong { font-size: 10px; }
.risk-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.risk-list li { display: grid; gap: 3px; padding: 7px 9px; border: 1px solid #ead9b8; border-radius: 8px; color: #6f5320; background: var(--amber-pale); font-size: 9px; }
.risk-list small { color: #9a7a42; font: 600 7px ui-monospace, monospace; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.metric-item { min-height: 112px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: #fafbf8; }
.metric-item span, .metric-item small { display: block; color: #7b847e; font-size: 9px; line-height: 1.45; }
.metric-item strong { display: block; margin: 9px 0 7px; font: 680 14px ui-monospace, monospace; }
.metric-item .source-locator { color: var(--green); font-size: 8px; }
.interpretation-box { margin-top: 18px; padding: 17px 18px; border-left: 3px solid var(--blue); background: var(--blue-pale); }
.interpretation-box strong { font-size: 10px; }
.interpretation-box p { margin: 7px 0 0; color: #445d6b; font-size: 11px; line-height: 1.75; }
.people-list li { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.people-list strong { font-size: 12px; }
.people-list span { color: var(--ink-soft); font-size: 10px; text-align: right; }
.people-list .source-locator { font-size: 8px; font-weight: 600; }

.analysis-disclaimer { display: grid; grid-template-columns: auto 1fr; gap: 15px; margin-top: 14px; padding: 17px 20px; border: 1px solid #ead9b8; border-radius: 12px; color: #6f5320; background: var(--amber-pale); }
.analysis-disclaimer strong { font-size: 10px; white-space: nowrap; }
.analysis-disclaimer p { margin: 0; font-size: 10px; line-height: 1.7; }
.references-panel { margin-top: 14px; overflow: hidden; }
.reference-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reference-item { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.reference-item:nth-child(2n) { border-right: 0; }
.reference-item:hover { color: var(--green); background: #fbfcf9; }
.reference-item strong, .reference-item small { display: block; }
.reference-item strong { font-size: 12px; }
.reference-item small { margin-top: 6px; color: #7b847e; font-size: 9px; }

.skeleton { position: relative; overflow: hidden; background: #edf0eb; border-radius: 7px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: shimmer 1.3s infinite; }
.skeleton-row { height: 150px; margin: 24px 12px; }
.skeleton-bar { height: 28px; margin-bottom: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (max-width: 1050px) {
  .shell { padding-inline: 24px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .source-grid { grid-template-columns: repeat(2, 1fr); }
  .source-card:nth-child(4n) { border-right: 1px solid var(--line-soft); }
  .source-card:nth-child(2n) { border-right: 0; }
  .source-card:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line-soft); }
  .source-card:nth-last-child(-n + 2) { border-bottom: 0; }
  .detail-top-grid { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .shell { padding: 0 14px 20px; }
  .topbar { height: 74px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand strong { font-size: 11px; }
  .brand small, .update-meta { display: none; }
  .button-primary { padding: 0 12px; }
  .hero { min-height: 178px; align-items: flex-start; padding: 36px 2px 27px; }
  .hero-date { display: none; }
  .hero h1 { font-size: 42px; }
  .hero p:not(.eyebrow) { font-size: 13px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .kpi-card { min-height: 129px; padding: 18px; }
  .kpi-card strong { font-size: 30px; }
  .overview-grid, .events-panel, .sources-panel { margin-top: 9px; }
  .panel-heading { min-height: 69px; padding: 17px 18px; }
  .timeline { display: block; min-height: auto; padding: 5px 18px 14px; }
  .timeline-item { padding: 17px 0 15px 19px; border-bottom: 1px solid var(--line-soft); }
  .timeline-item:last-child { border-bottom: 0; }
  .timeline-item::after { display: none; }
  .timeline-date::before { position: absolute; left: 0; }
  .timeline-item h3 { min-height: 0; margin: 10px 0 5px; }
  .timeline-meta { margin-top: 11px; }
  .region-browser { margin: 0 18px 16px; padding: 15px; }
  .region-tabs { display: flex; gap: 8px; margin-right: -15px; padding-right: 15px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .region-card { flex: 0 0 175px; min-height: 71px; scroll-snap-align: start; }
  .china-exchange-panel { display: block; }
  .china-exchange-heading { margin-bottom: 10px; }
  .exchange-tabs { justify-content: flex-start; flex-wrap: nowrap; margin-right: -15px; padding: 2px 15px 3px 0; overflow-x: auto; scrollbar-width: thin; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; padding: 0 18px 16px; }
  .search-field { grid-column: 1 / -1; }
  .filters select { width: 100%; min-width: 0; }
  .toggle-field { grid-column: 1 / -1; padding-top: 5px; }
  th:nth-child(5), td:nth-child(5) { display: none; }
  th:first-child, td:first-child { padding-left: 18px; }
  th:last-child, td:last-child { padding-right: 18px; }
  .company-cell { min-width: 210px; }
  .source-grid { grid-template-columns: 1fr; }
  .source-card, .source-card:nth-child(2n), .source-card:nth-child(4n), .source-card:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .source-card:last-child { border-bottom: 0; }
  .sources-panel > .panel-heading p:not(.section-kicker) { display: none; }
  footer { display: block; line-height: 1.6; }
  footer > span { display: block; margin-top: 10px; }
  .detail-hero { padding: 30px 2px 27px; }
  .detail-breadcrumb { margin-bottom: 20px; }
  .detail-hero-row { display: block; }
  .detail-hero h1 { font-size: 38px; }
  .detail-hero .button { margin-top: 22px; }
  .detail-loading-grid { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-grid > div:nth-child(3n) { border-right: 1px solid var(--line-soft); }
  .fact-grid > div:nth-child(2n) { border-right: 0; }
  .metric-grid, .reference-list { grid-template-columns: 1fr; }
  .evidence-list .evidence-item { display: block; }
  .evidence-item > strong { display: inline-block; margin-top: 11px; }
  .reference-item { border-right: 0; }
  .analysis-disclaimer { grid-template-columns: 1fr; gap: 7px; }
}

@media (max-width: 430px) {
  .button-primary span { display: none; }
  .button-primary { width: 42px; padding: 0; }
  .hero h1 { font-size: 36px; }
  .kpi-card { padding: 16px; }
  .kpi-heading { font-size: 11px; }
  .kpi-icon { display: none; }
  .kpi-card p { font-size: 9px; }
  .region-browser-heading { align-items: flex-start; }
  .region-browser-heading > div span { max-width: 175px; line-height: 1.45; }
  .exchange-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-right: 0;
    padding: 2px 0 3px;
    overflow: visible;
  }
  .exchange-chip { width: 100%; padding: 0 7px; }
  .back-button { width: auto; padding: 0 12px; }
  .detail-hero h1 { font-size: 33px; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact-grid > div, .fact-grid > div:nth-child(2n), .fact-grid > div:nth-child(3n) { border-right: 0; }
  .research-heading { align-items: flex-start; padding: 18px; }
  .research-body { padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
