:root {
  color-scheme: light;
  --paper: #f6f5ef;
  --surface: #fffefa;
  --ink: #173c33;
  --body: #283d36;
  --muted: #56675e;
  --line: #d2d9cd;
  --green: #245e4a;
  --soft-green: #eaf0e6;
  --amber: #715015;
  --soft-amber: #fcf2dc;
  --focus: #ad4e12;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  font-synthesis: none;
  color: var(--body);
  background: var(--paper);
  line-height: 1.7;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
[hidden] { display: none !important; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button, input, select { max-width: 100%; min-width: 0; border: 1px solid #a5b3a3; border-radius: 4px; background: var(--surface); }
input, select { display: block; width: 100%; min-height: 46px; padding: 9px 11px; font-size: 15px; }
select { padding-right: 26px; text-overflow: ellipsis; }
input::placeholder { color: #66736a; opacity: 1; }
input[type="search"] { appearance: none; }
button { padding: 8px 12px; min-height: 42px; line-height: 1.5; }
button:disabled, input:disabled, select:disabled { color: #788178; background: #f0f1e9; cursor: default; }
:where(a, button, input, select, summary, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
p { margin: 0 0 12px; }
h1, h2, h3 { color: var(--ink); line-height: 1.4; overflow-wrap: anywhere; }
h1 { margin: 0 0 14px; font-size: clamp(26px, 3.3vw, 38px); font-weight: 680; letter-spacing: .015em; }
h2 { margin: 0; font-size: 23px; font-weight: 670; }
h3 { margin: 0; font-size: 19px; }
ul { padding-left: 22px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font: 12px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
summary { cursor: pointer; color: var(--green); padding: 9px 0; font-size: 14px; }
.page-shell { width: min(1140px, calc(100% - 64px)); margin: 0 auto; }
.page-header { padding: 34px 0 24px; }
.header-rule { width: 39px; height: 4px; background: var(--green); margin-bottom: 18px; }
.eyebrow { color: var(--muted); font-size: 13px; letter-spacing: .12em; margin-bottom: 9px; }
.eyebrow span { margin: 0 .45em; }
.intro { font-size: 16px; max-width: 720px; margin-bottom: 20px; }
.header-bottom { border-top: 1px solid var(--line); padding-top: 13px; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 9px 24px; }
.versions { margin: 0; font-size: 13px; color: var(--muted); }
.document-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.small { font-size: 13px; color: var(--muted); }
.scope-note { margin: 9px 0 0; overflow-wrap: anywhere; }
.review-notice { margin-top: 15px !important; margin-bottom: 14px !important; }
.batch-entry { padding: 14px 17px; border: 1px solid var(--line); background: var(--soft-green); }
.batch-entry a { font-weight: 650; display: block; }
.batch-entry span { display: block; margin-top: 4px; }
.batch-scope-notes { font-size: 14px; margin: 16px 0 22px; }
.batch-scope-notes li + li { margin-top: 7px; }
#batch-table { min-width: 1180px; font-size: 14px; }
#batch-table th:nth-child(1) { width: 20%; }
#batch-table th:nth-child(2) { width: 18%; }
#batch-table th:nth-child(3) { width: 22%; }
#batch-table th:nth-child(4) { width: 16%; }
#batch-table th:nth-child(5) { width: 24%; }
.batch-source-detail { margin-top: 8px; }
.batch-source-fields { margin: 0; font-size: 12px; }
.batch-source-fields dt { margin-top: 10px; font-weight: 650; }
.batch-source-fields dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.query-section { padding: 24px; border: 1px solid var(--line); border-top: 3px solid var(--green); background: var(--surface); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-kicker { font-size: 12px; color: var(--muted); margin: 0 0 4px; letter-spacing: .12em; }
.quiet-button { background: transparent; border-color: var(--line); color: var(--green); font-size: 13px; flex: 0 0 auto; }
.quiet-button:hover:not(:disabled) { background: var(--soft-green); border-color: #718a73; }
.query-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; min-width: 0; gap: 6px; font-size: 13px; font-weight: 600; }
.field-wide { grid-column: span 2; }
.field-full { grid-column: 1 / -1; }
.period-row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 24px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.period-fields { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; min-width: 0; padding: 0; margin: 0; border: 0; }
.period-fields legend { padding: 0; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.period-fields .field { width: 122px; flex: 0 1 122px; }
.period-join { font-size: 13px; padding-bottom: 10px; color: var(--muted); }
.period-help { max-width: 320px; margin: 0 0 3px; }
.share-note { margin: 12px 0 0; font-size: 12px; }
.status-box { margin: 18px 0 0; padding: 13px 16px; border-left: 3px solid var(--green); background: var(--soft-green); overflow-wrap: anywhere; }
.status-box p { margin: 0; font-size: 14px; }
.status-box .quiet-button { margin-top: 10px; }
.status-box.is-error, .status-box.is-empty { background: var(--soft-amber); border-color: #9b772f; }
.status-box.is-loading p::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; background: var(--green); border-radius: 50%; }
.selection-panel { padding: 20px 0; border-bottom: 1px solid var(--line); }
.selection-heading { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: baseline; margin-bottom: 8px; }
.selection-heading h2 { font-size: 18px; }
.selection-panel p { font-size: 14px; max-width: 900px; overflow-wrap: anywhere; }
.selection-panel p:last-child { margin-bottom: 0; }
.status-tag { display: inline-block; font-size: 12px; line-height: 1.6; padding: 3px 8px; border: 1px solid #bdcbb6; border-radius: 3px; background: var(--soft-green); color: var(--green); overflow-wrap: anywhere; }
.status-tag.is-caution { background: var(--soft-amber); color: var(--amber); border-color: #d8c89f; }
.explanation-list { margin: 9px 0 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.result-section { margin-top: 28px; min-width: 0; }
.result-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 20px; }
.result-heading h2 { font-size: 24px; }
.result-heading > a { font-size: 13px; }
.series-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; margin: 0 0 20px; }
.series-facts dt { font-size: 12px; }
.series-facts dd { font-size: 14px; }
.comparison-note { padding: 14px 17px; background: #eeeee4; font-size: 13px; border-left: 2px solid #96a686; }
.comparison-note > strong { font-size: 12px; color: var(--green); letter-spacing: .06em; }
.comparison-note p { margin: 3px 0 0; overflow-wrap: anywhere; }
.chart-figure { margin: 25px 0 0; padding: 22px 20px 17px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.chart-toolbar { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 21px; font-size: 13px; }
.chart { display: grid; grid-template-columns: 94px minmax(0, 1fr); grid-template-rows: 284px 44px; min-width: 0; padding-right: 14px; }
.y-axis { grid-column: 1; grid-row: 1; position: relative; min-width: 0; margin-right: 12px; }
.y-tick { position: absolute; right: 0; font-size: 12px; line-height: 1.2; white-space: nowrap; transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.plot-area { position: relative; grid-column: 2; grid-row: 1; border-left: 1px solid #a4b29f; border-bottom: 1px solid #a4b29f; min-width: 0; }
.plot-lines { position: absolute; width: 100%; height: 100%; inset: 0; overflow: visible; pointer-events: none; }
.grid-line { stroke: #dde2d7; stroke-width: 1; stroke-dasharray: 3 4; }
.data-line { stroke: var(--green); stroke-width: 2; fill: none; }
.plot-point { position: absolute; display: grid; place-items: center; width: 28px; height: 28px; transform: translate(-50%, -50%); border-radius: 50%; z-index: 2; }
.point-dot { width: 8px; height: 8px; border: 1.5px solid var(--surface); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.plot-point:hover, .plot-point:focus-visible { background: #dfeadd; z-index: 4; }
.plot-point:hover .point-dot, .plot-point:focus-visible .point-dot { width: 10px; height: 10px; }
.plot-point:focus-visible { outline-offset: 0; }
.x-axis { grid-column: 2; grid-row: 2; position: relative; min-width: 0; padding-top: 10px; }
.x-tick { position: absolute; font-size: 12px; line-height: 1.4; top: 10px; white-space: nowrap; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.x-tick.is-first { transform: none; }
.x-tick.is-last { transform: translateX(-100%); }
.x-axis-mobile { display: none; }
.chart-figure figcaption { margin-top: 8px; font-size: 12px; }
.chart-empty { grid-column: 1 / -1; grid-row: 1 / -1; align-self: center; padding: 30px 15px; background: var(--soft-amber); font-size: 14px; }
.table-section { margin-top: 28px; min-width: 0; }
.table-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 12px; }
.table-heading p { margin: 0; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); background: var(--surface); border-radius: 3px; }
table { width: 100%; min-width: 710px; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
th { color: var(--ink); font-size: 12px; letter-spacing: .02em; font-weight: 650; background: var(--soft-green); }
td, th { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
th:first-child { width: 14%; }
th:nth-child(2) { width: 29%; }
th:nth-child(3) { width: 31%; }
th:nth-child(4) { width: 26%; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.is-selected { background: #f1f4eb; }
.value-link { display: inline-block; color: var(--green); font-weight: 650; font-variant-numeric: tabular-nums; font-size: 16px; }
.value-unit { display: block; font-size: 12px; color: var(--muted); }
.raw-note { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.raw-note a { font-weight: 500; }
.cell-status { display: block; font-size: 12px; color: var(--muted); }
.cell-status + .cell-status { margin-top: 7px; }
.cell-source { display: block; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin-bottom: 7px; }
.record-button { padding: 7px 9px; min-height: 36px; font-size: 12px; }
.record-detail { margin-top: 22px; padding: 21px 23px; border: 1px solid var(--line); background: var(--surface); }
.detail-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; border-bottom: 1px solid var(--line); padding-bottom: 13px; margin-bottom: 16px; }
.detail-heading p:last-child { margin: 0; }
.notice { margin: 0 0 18px; padding: 13px 16px; background: var(--soft-amber); border-left: 3px solid #aa8440; font-size: 13px; overflow-wrap: anywhere; }
.source-fields { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 18px; margin: 0; font-size: 13px; }
.source-fields dd { min-width: 0; }
.source-fields .mono { font: 12px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.subtle-details { margin-top: 15px; border-top: 1px solid var(--line); }
.subtle-details > div, .subtle-details > dl { padding: 8px 0 12px; }
.subtle-details pre { padding: 12px; background: #f1f3eb; }
.page-footer { margin-top: 36px; padding: 21px 0 35px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.page-footer p { max-width: 920px; margin-bottom: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: 8px; left: 8px; padding: 9px 14px; background: var(--surface); transform: translateY(-180%); z-index: 10; }
.skip-link:focus { transform: none; }
@media (max-width: 800px) {
  .page-shell { width: calc(100% - 40px); }
  .query-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .field-wide { grid-column: span 1; }
  #profile-field { grid-column: span 1; }
  .series-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .period-help { max-width: none; }
}
@media (max-width: 540px) {
  .page-shell { width: calc(100% - 28px); }
  .page-header { padding: 24px 0 22px; }
  h1 { font-size: 27px; }
  h2 { font-size: 21px; }
  .intro { font-size: 15px; }
  .header-bottom { gap: 10px; }
  .query-section { padding: 18px 14px; }
  .section-heading { gap: 10px; align-items: start; }
  .section-heading .quiet-button { font-size: 12px; padding: 7px 9px; }
  .query-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .field-wide, #profile-field { grid-column: 1; }
  input, select { font-size: 16px; }
  .period-fields { display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); width: 100%; gap: 8px; }
  .period-fields .field { width: auto; }
  .period-fields legend { width: 100%; }
  .period-fields .quiet-button { grid-column: 1 / -1; justify-self: start; margin-top: 2px; min-height: 36px; }
  .period-row { margin-top: 17px; }
  .result-heading h2 { font-size: 21px; }
  .series-facts { gap: 13px 17px; }
  .chart-figure { padding: 17px 12px 14px; }
  .chart-toolbar { margin-bottom: 19px; }
  .chart { grid-template-columns: 82px minmax(0, 1fr); grid-template-rows: 232px 40px; padding-right: 10px; }
  .y-axis { margin-right: 10px; }
  .y-tick, .x-tick { font-size: 12px; }
  .x-axis.has-mobile { display: none; }
  .x-axis-mobile { display: block; }
  .record-detail { padding: 18px 14px; }
  .source-fields { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .source-fields dd { margin-bottom: 11px; }
  .source-fields dt { font-size: 12px; font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .page-shell { width: 100%; }
  .query-section, .skip-link, .share-note { display: none; }
  .table-scroll { overflow: visible; }
  table { min-width: 0; }
  .chart-figure, .record-detail { break-inside: avoid; }
}
