:root { color-scheme:light dark; --paper:#f5f2e9; --ink:#263c32; --muted:#676f62; --rule:#d3d5c7; --accent:#984d37; --panel:#eeece1; --pf:#a24b35; --pm:#275d4e; }
@media (prefers-color-scheme:dark) { :root { --paper:#171e1b; --ink:#ebece1; --muted:#a9b6aa; --rule:#3b4a40; --accent:#dfad91; --panel:#202b24; --pf:#eba58c; --pm:#93cbb3; } }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--paper); color:var(--ink); font:15px/1.8 "Segoe UI","Microsoft YaHei",sans-serif; }
.shell { width:min(1120px,calc(100% - 64px)); margin:auto; }
header { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:24px 0; border-bottom:1px solid var(--rule); }
a { color:inherit; text-underline-offset:5px; }
a:hover { color:var(--accent); }
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible,.table-wrap:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
header a { display:inline-flex; align-items:center; min-height:44px; }
.brand { font:35px/1 Georgia,serif; letter-spacing:-.07em; text-decoration:none; }
.back { font-size:13px; }
.kicker { color:var(--accent); font-size:11px; letter-spacing:.18em; }
h1,h2,p { margin:0; }
h1 { margin:14px 0 16px; font:400 clamp(30px,4.2vw,48px)/1.4 "Songti SC","STSong","SimSun",Georgia,serif; }
h2 { font-size:18px; font-weight:500; }
.intro,.note,.chart-help { color:var(--muted); }
.intro { line-height:1.9; }
.note { font-size:12px; }
.directory { max-width:900px; padding:clamp(60px,10vw,100px) 0 110px; }
.directory h1 { font-size:clamp(36px,7vw,54px); }
.data-card { display:block; max-width:650px; margin-top:48px; padding:30px 32px; border:1px solid var(--rule); border-top:3px solid var(--accent); text-decoration:none; transition:background .15s; }
.data-card:hover { background:var(--panel); color:var(--ink); }
.card-top { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.badge { display:inline-block; color:var(--pm); border:1px solid var(--rule); padding:3px 9px; white-space:nowrap; font-size:11px; letter-spacing:.08em; }
.data-card h2 { margin:24px 0 12px; font:400 clamp(24px,5vw,32px)/1.4 "Songti SC","STSong","SimSun",Georgia,serif; }
.data-card p { color:var(--muted); font-size:13px; }
.card-link { display:flex; justify-content:space-between; margin-top:28px; padding-top:20px; border-top:1px solid var(--rule); font-size:13px; color:var(--accent); }
.directory-note { margin-top:24px; color:var(--muted); font-size:12px; }
.detail { padding:44px 0 64px; }
.title-row { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.status-bar { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:26px 0 24px; padding:16px 0; border-top:1px solid var(--rule); border-bottom:1px solid var(--rule); }
#data-status { font-size:13px; }
#data-status[data-state="delayed"],#data-status[data-state="error"] { color:var(--accent); }
#updated-at:empty { display:none; }
button { min-height:44px; padding:6px 14px; border:1px solid var(--rule); background:transparent; color:var(--ink); font:inherit; font-size:12px; cursor:pointer; white-space:nowrap; }
button:hover { background:var(--panel); }
button:disabled { opacity:.6; cursor:wait; }
.period { display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px 20px; margin-bottom:15px; font-size:12px; color:var(--muted); }
#date-period { color:var(--ink); }
.summary-grid { display:grid; grid-template-columns:1fr 1fr .8fr; margin-bottom:30px; border:1px solid var(--rule); }
.stat { min-width:0; padding:20px 24px; }
.stat + .stat { border-left:1px solid var(--rule); }
.pf { --series:var(--pf); }
.pm { --series:var(--pm); }
.stat-label { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:13px; color:var(--series,var(--ink)); }
.stat-label > span:last-child { font-size:11px; color:var(--muted); }
.dot { display:inline-block; width:6px; height:6px; background:var(--series); border-radius:50%; }
.stat-value { display:flex; align-items:baseline; flex-wrap:wrap; gap:7px; margin:8px 0 4px; }
.stat-value strong { font:400 clamp(25px,3.4vw,39px)/1.35 Georgia,"Times New Roman",serif; font-variant-numeric:tabular-nums; }
.stat-value > span { font-size:11px; color:var(--muted); }
.chart-panel { padding:25px 28px 20px; border:1px solid var(--rule); }
.chart-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.chart-heading .note { margin-top:3px; }
.legend { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:6px 18px; max-width:330px; font-size:11px; }
.legend > span { display:inline-flex; align-items:center; gap:6px; }
.sample { display:inline-block; width:20px; height:3px; background:var(--series); }
.legend .line-note { flex-basis:100%; justify-content:flex-end; color:var(--muted); }
#chart-wrap { margin-top:15px; min-width:0; }
#fees-chart { display:block; width:100%; height:340px; overflow:visible; touch-action:pan-y; }
.chart-grid { stroke:var(--rule); stroke-width:1; }
.chart-axis { fill:var(--muted); font:11px "Segoe UI","Microsoft YaHei",sans-serif; }
.series-daily { fill:none; stroke:var(--series); stroke-width:1.4; opacity:.48; stroke-linejoin:round; }
.series-average { fill:none; stroke:var(--series); stroke-width:2.8; stroke-linecap:round; stroke-linejoin:round; }
.selection-line { stroke:var(--muted); stroke-width:1; stroke-dasharray:3 4; opacity:.7; }
.selection-dot { stroke:var(--paper); stroke-width:2; fill:var(--series); }
.selection-ratio-box { fill:var(--paper); stroke:var(--rule); stroke-width:1; }
.selection-ratio-label { fill:var(--muted); font:11px "Segoe UI","Microsoft YaHei",sans-serif; }
.selection-ratio-value { fill:var(--ink); font:600 18px "Segoe UI","Microsoft YaHei",sans-serif; font-variant-numeric:tabular-nums; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.day-inspector { display:grid; grid-template-columns:160px 1fr; gap:24px; padding:18px 0; border-top:1px solid var(--rule); border-bottom:1px solid var(--rule); }
.selected-date { display:flex; flex-direction:column; justify-content:center; font:20px/1.5 Georgia,serif; font-variant-numeric:tabular-nums; }
.selected-date > span:last-child { font:11px/1.8 "Segoe UI",sans-serif; color:var(--muted); }
.day-values { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.day-values p { display:grid; grid-template-columns:1fr; gap:1px; }
.day-values b { color:var(--series); font-size:12px; font-weight:500; }
.day-values strong { font-size:18px; font-weight:500; font-variant-numeric:tabular-nums; }
.day-values p > span { font-size:11px; color:var(--muted); }
.date-control { display:flex; align-items:center; gap:18px; margin-top:12px; font-size:12px; }
.date-control label,.range-end { white-space:nowrap; }
.range-end { color:var(--muted); font-size:11px; }
input[type="range"] { width:100%; min-width:0; min-height:44px; margin:0; accent-color:var(--accent); cursor:pointer; }
.chart-help { margin-top:8px; font-size:11px; }
.daily-details { margin-top:20px; border-top:1px solid var(--rule); border-bottom:1px solid var(--rule); }
summary { min-height:56px; padding:16px 4px; cursor:pointer; font-size:13px; }
summary > span { margin-left:14px; font-size:11px; color:var(--muted); }
.table-wrap { overflow-x:auto; margin-bottom:16px; }
table { border-collapse:collapse; width:100%; min-width:480px; font-size:12px; font-variant-numeric:tabular-nums; }
caption { text-align:left; padding:0 12px 12px; font-size:11px; color:var(--muted); }
th,td { text-align:right; padding:10px 12px; border-bottom:1px solid var(--rule); }
th:first-child,td:first-child { text-align:left; }
th { font-weight:500; color:var(--muted); }
tbody tr:hover { background:var(--panel); }
.methodology { margin-top:36px; max-width:850px; }
.methodology h2 { margin-bottom:14px; font-size:15px; }
.methodology p { color:var(--muted); font-size:12px; margin-top:9px; }
.source-links { display:flex; flex-wrap:wrap; align-items:center; gap:4px 20px; margin-top:13px; font-size:11px; }
.source-links > span { color:var(--muted); }
.source-links a { display:inline-flex; align-items:center; min-height:44px; }
.message { padding:20px; border:1px solid var(--rule); }
footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:24px 0; border-top:1px solid var(--rule); color:var(--muted); font-size:10px; letter-spacing:.1em; }
@media (max-width:760px) {
  .shell { width:calc(100% - 40px); }
  .stat { padding:17px 16px; }
  .stat-label { gap:5px; }
  .stat-label > span:last-child { width:100%; }
  .chart-panel { padding:20px 16px 16px; }
  .chart-heading { flex-direction:column; gap:12px; }
  .legend { justify-content:flex-start; max-width:none; }
  .legend .line-note { flex-basis:auto; justify-content:flex-start; }
  .day-inspector { grid-template-columns:125px 1fr; gap:12px; }
  .day-values strong { font-size:16px; }
}
@media (max-width:520px) {
  header { padding:16px 0; }
  .detail { padding-top:28px; }
  .title-row { align-items:flex-start; gap:10px; }
  .title-row h1 { font-size:30px; }
  .title-row .badge { margin-top:20px; font-size:10px; padding:2px 6px; }
  .intro { font-size:13px; }
  .status-bar { gap:12px; margin-top:20px; }
  .summary-grid { grid-template-columns:1fr 1fr; }
  .stat { padding:16px 12px; }
  .stat-value { gap:4px; }
  .stat-value strong { font-size:27px; }
  .ratio { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; padding:10px 12px; }
  .stat.ratio { border-left:0; border-top:1px solid var(--rule); }
  .ratio .stat-value { margin:0; }
  .ratio .stat-value strong { font-size:24px; }
  .ratio .note { flex-basis:100%; font-size:11px; }
  .chart-panel { padding:18px 12px 14px; }
  #fees-chart { height:290px; }
  .day-inspector { grid-template-columns:1fr; gap:10px; padding:13px 0; }
  .selected-date { flex-direction:row; align-items:baseline; justify-content:flex-start; gap:9px; font-size:18px; }
  .day-values { gap:10px; }
  .day-values strong { font-size:16px; }
  .date-control { gap:10px; }
  .legend { gap:4px 12px; }
  .legend .line-note { flex-basis:100%; }
  .data-card { padding:24px 22px; }
}
@media (prefers-reduced-motion:reduce) { .data-card { transition:none; } }
