:root {
  --bg: #f7f7f5; --surface: #ffffff; --text: #1d1f23; --muted: #5c6370; --line: #dde0e4;
  --accent: #1f5fae; --accent-soft: #e6eef8; --warn: #9a4b00; --warn-soft: #fff3e3;
  --ok-soft: #e7f4ec; --ok: #1e6b3a; --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a; --surface: #1d2024; --text: #e7e9ec; --muted: #a0a7b2; --line: #343941;
    --accent: #7fb0f0; --accent-soft: #1f2e42; --warn: #f0b36b; --warn-soft: #3a2a16;
    --ok-soft: #173023; --ok: #8fd3a8;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); }
a { color: var(--accent); overflow-wrap: anywhere; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); padding: 20px 0 12px; }
h1 { margin: 0 0 6px; font-size: 1.6rem; }
h2 { font-size: 1.2rem; margin: 24px 0 8px; }
h3 { margin: 0 0 6px; font-size: 1.05rem; }
h4 { margin: 12px 0 4px; font-size: .95rem; }
.lede { margin: 0 0 8px; color: var(--muted); max-width: 70ch; }
.coverage { margin: 0; font-size: .9rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.tabs button { border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 6px 14px; border-radius: 999px; font: inherit; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--surface); }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, .detail:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 10px; }
.controls label { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); gap: 2px; min-width: 0; }
.controls input, .controls select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); max-width: 100%; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
td.groups { white-space: normal; min-width: 8em; }
thead th { position: sticky; top: 0; background: var(--surface); font-weight: 600; }
th button { all: unset; cursor: pointer; color: var(--accent); }
th[aria-sort="ascending"] button::after { content: " ▲"; }
th[aria-sort="descending"] button::after { content: " ▼"; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
button.link { all: unset; cursor: pointer; color: var(--accent); text-decoration: underline; }
.tag { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: .78rem; background: var(--accent-soft); color: var(--accent); }
.ai-尚無足夠證據, .ev-unknown { background: var(--warn-soft); color: var(--warn); }
.ev-verified { background: var(--ok-soft); color: var(--ok); }
.ev-inference { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.compare td.small { white-space: normal; min-width: 18em; }
.detail, .card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 16px 0; }
.detail p { overflow-wrap: anywhere; }
.claim { border-top: 1px solid var(--line); padding-top: 6px; }
.gap { color: var(--warn); }
.sources { margin: 4px 0 8px; padding-left: 1.2em; font-size: .82rem; color: var(--muted); }
.sources li { overflow-wrap: anywhere; }
dl.fin { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: .9rem; }
dl.fin dd { margin: 0; overflow-wrap: anywhere; }
#industries, #scenarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
#industries .card, #scenarios .card { margin: 0; }
#scenarios > p { grid-column: 1 / -1; }
footer { padding: 24px 16px 40px; }
@media (max-width: 600px) {
  #industries, #scenarios { grid-template-columns: 1fr; }
  dl.fin { grid-template-columns: 1fr; }
  h1 { font-size: 1.35rem; }
}
