:root {
  color-scheme: light;
  --paper: #f8f7f1; --surface: #fffefa; --ink: #182a32; --green: #153d35;
  --muted: #586861; --line: #d2d9ce; --soft: #e9eee5;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  font: 100%/1.55 "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper); color: var(--ink); scroll-behavior: smooth;
}
* {box-sizing: border-box}
body {margin: 0}
button, input {font: inherit}
button, a {touch-action: manipulation}
button {cursor: pointer}
a {color: var(--green); text-underline-offset: 3px}
a:focus-visible, button:focus-visible, input:focus-visible {outline: 3px solid #986530; outline-offset: 3px}
.skip {position: absolute; left: .7rem; top: .7rem; z-index: 3; padding: .5rem; background: var(--surface); transform: translateY(-180%)}
.skip:focus {transform: none}
.wrap {width: min(1184px, calc(100% - 80px)); margin-inline: auto}
.mast {border-block-end: 1px solid var(--line)}
.mast-inner, .foot {min-height: 64px; display: flex; align-items: center; gap: .8rem}
.mast a {text-decoration: none}
.mast a:hover {text-decoration: underline}
.home {display: inline-flex; align-items: center; gap: .65rem; font-weight: 750; letter-spacing: .02em}
.home span {font-family: var(--mono); font-size: 1.2rem}
.crumb, .header-jump, .foot {color: var(--muted); font-size: .88rem}
.crumb i {font: normal 1rem var(--mono); margin-right: .6rem; color: #97a499}
.header-jump {margin-left: auto; font-weight: 600}
.intro {display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: clamp(36px, 5.5vw, 74px) 0 29px}
h1, h2, h3, p {margin: 0}
h1 {font-family: "STIX Two Text", "Songti SC", "Noto Serif CJK SC", STSong, serif; font-size: clamp(2.6rem, 4.8vw, 4.4rem); letter-spacing: -.047em; line-height: 1.15; font-weight: 750; color: var(--green)}
.intro p {margin-top: 12px; font-size: 1.03rem; color: var(--muted)}
.timestamp {padding-bottom: 2px; text-align: right; flex-shrink: 0}
.timestamp span {display: block; font-size: .75rem; font-weight: 600; color: var(--muted)}
.timestamp strong {font: 600 .87rem/1.65 var(--mono)}
.summary {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px}
.metric {padding: 19px 24px 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface)}
.metric-green {color: #fafbf0; background: var(--green); border-color: var(--green)}
.metric h2 {font-size: .88rem; font-weight: 650}
.metric strong {display: block; font: 600 clamp(2rem, 3.3vw, 3.2rem)/1.3 var(--mono); letter-spacing: -.055em; margin: .25rem 0}
.metric p {color: var(--muted); font-size: .78rem}
.metric-green p {color: #d4dfd4}
.notice {margin-top: 18px; padding: 13px 16px; border: 1px solid #d9c7a6; border-radius: 7px; background: #fcf4e3; color: #654b20; font-size: .86rem}
.notice ul {margin: 0; padding-left: 1.2rem}
.notice button {padding: .22rem .65rem; background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 5px; margin-left: 12px}
.ledger, .records {margin-top: clamp(27px, 3.5vw, 45px); scroll-margin-top: 15px}
.section-head {display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px}
.section-head h2 {font-size: 1.4rem; letter-spacing: -.04em}
.counter {color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums}
.panel {border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: clip}
.views {display: flex; gap: 26px; padding: 0 22px; border-bottom: 1px solid var(--line)}
.views button {padding: 15px 2px 12px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 650}
.views button[aria-pressed=true] {color: var(--green); border-bottom-color: var(--green)}
.views button:hover, .foot a:hover {color: var(--green)}
.toolbar {padding: 16px 20px 8px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px}
.filters {display: flex; flex-wrap: wrap; gap: 5px}
.filters button {border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 6px; padding: 5px 10px; min-height: 35px; font-size: .84rem}
.filters button[aria-pressed=true] {background: var(--soft); color: var(--green); font-weight: 700; border-color: #c1cfbe}
.filters button:hover {background: var(--soft)}
.search {display: flex; align-items: center; gap: 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); padding-inline: 10px}
.search span {position: relative; display: inline-block; width: .74rem; height: .74rem; border: 1.5px solid currentColor; border-radius: 50%; flex: none}
.search span::after {content: ""; position: absolute; width: 5px; height: 1.5px; background: currentColor; right: -4px; bottom: -2px; transform: rotate(45deg)}
.search input {max-width: 100%; width: 11.5rem; height: 35px; border: 0; background: none; color: var(--ink); font-size: .86rem; min-width: 0}
.search input::placeholder {color: var(--muted)}
.table-note {color: var(--muted); margin: 0 21px; padding: 4px 0 14px; line-height: 1.55; font-size: .78rem}
.off-controls {display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin: 3px 21px 5px; font-size: .78rem; color: var(--muted)}
.off-controls[hidden] {display: none}
.off-controls label {display: inline-flex; align-items: center; gap: 5px}
.off-controls input {margin: 0; accent-color: var(--green)}
.off-controls select {font: inherit; color: var(--green); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; min-height: 28px}
table {width: 100%; border-spacing: 0; border-collapse: collapse; font-size: .87rem}
th, td {text-align: left; padding: 13px 12px; vertical-align: middle}
thead {background: #edf0e8; color: #44564d}
th {font-size: .74rem; font-weight: 650}
th:first-child, td:first-child {padding-left: 22px}
th:last-child, td:last-child {padding-right: 22px}
tbody tr + tr {border-top: 1px solid #e3e7df}
tbody tr:hover {background: #f8f9f3}
.name {display: block; font-weight: 620; line-height: 1.45; overflow-wrap: anywhere}
.sub, .code {display: block; color: var(--muted); font-size: .74rem; margin-top: 2px; line-height: 1.5}
.code, .value, .date {font-family: var(--mono); font-variant-numeric: tabular-nums}
.value {font-weight: 620; white-space: nowrap}
.date {white-space: nowrap; font-size: .79rem}
.tag {display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: .76rem; font-weight: 600; background: var(--soft); color: #355447}
.tag.warn {background: #fcf0d8; color: #7b5216}
.tag.stop, .premium-high {background: #f9e7df; color: #89432d}
.archived {display: block; color: #745d40; font-size: .72rem; font-weight: 650; margin-top: 3px}
.historical-value {color: var(--muted)}
.premium-high {padding: 3px 6px; border-radius: 4px}
td a {overflow-wrap: anywhere}
.empty {padding: 28px 20px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); font-size: .9rem}
.paging {display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem}
.paging button {padding: 4px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--green)}
.paging button:disabled {opacity: .45; cursor: default}
footer.mast {margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 0}
.foot {justify-content: space-between}
@media (max-width: 900px) {
  .wrap {width: calc(100% - 40px)}
  th, td {padding: 10px 7px}
  th:first-child, td:first-child {padding-left: 14px}
  th:last-child, td:last-child {padding-right: 14px}
}
@media (max-width: 700px) {
  .wrap {width: calc(100% - 28px)}
  .mast-inner, .foot {min-height: 51px}
  .intro {align-items: flex-start; flex-direction: column; gap: 12px; padding: 31px 0 20px}
  .intro p {font-size: .92rem; margin-top: 6px}
  .timestamp {display: flex; align-items: baseline; gap: 8px; text-align: left}
  .summary {gap: 6px}
  .metric {border-radius: 7px; padding: 10px 9px}
  .metric h2, .metric p {font-size: .69rem}
  .metric strong {font-size: 1.68rem; line-height: 1.2}
  .section-head h2 {font-size: 1.22rem}
  .views {gap: 19px; padding: 0 14px}
  .views button {font-size: .92rem; padding: 12px 0 9px}
  .toolbar {padding: 12px 13px 7px; gap: 8px}
  .filters {gap: 2px}
  .filters button {padding: 5px 7px; font-size: .76rem}
  .search {width: 100%}
  .search input {width: 100%}
  .table-note {margin-inline: 14px; padding-bottom: 11px}
  .off-controls {margin-inline: 14px}
  .responsive, .responsive tbody {display: block}
  .responsive thead {position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden}
  .responsive tr {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 13px; padding: 12px 14px}
  .responsive tbody tr:first-child {border-top: 1px solid var(--line)}
  .responsive td {padding: 0; min-width: 0}
  .responsive td:first-child {grid-column: 1 / -1}
  .responsive td::before {content: attr(data-label); display: block; font-size: .69rem; color: var(--muted)}
  .responsive td:first-child::before {display: none}
  .history-table {font-size: .77rem}
  .history-table th, .history-table td {padding: 10px 4px}
  .history-table th {font-size: .67rem}
  .history-table th:first-child, .history-table td:first-child {padding-left: 8px}
  .history-table .date {font-size: .7rem}
  .history-table .value {font-size: .76rem}
}
@media (prefers-reduced-motion: reduce) {:root {scroll-behavior: auto}}
