:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #25282b;
  background: #f7f8f9;
  --surface: #fff;
  --soft: #f4f4f5;
  --border: #e9eaec;
  --muted: #777d84;
  --link: #2965a9;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; padding: 18px 16px 34px; }
button, a { font: inherit; }
.shell { max-width: 770px; margin: 0 auto; }
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 19px;
  padding: 22px 24px 20px; box-shadow: 0 4px 28px rgba(30, 40, 55, .025);
}
.heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
h1 { font-size: 16px; line-height: 1.35; margin: 0; font-weight: 700; letter-spacing: .01em; }
.eyebrow { color: var(--muted); font-size: 12px; margin-top: 12px; line-height: 1.5; }
.badge { border: 1px solid var(--border); border-radius: 999px; padding: 4px 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.metric { background: var(--soft); border-radius: 12px; padding: 13px 14px 14px; min-height: 82px; }
.metric-label { color: var(--muted); font-size: 12px; line-height: 1.4; }
.metric-value { font-weight: 750; font-variant-numeric: tabular-nums; font-size: clamp(21px, 4.4vw, 28px); line-height: 1.35; margin-top: 5px; overflow-wrap: anywhere; }
.secondary { font-size: 13px; margin: 13px 0 0; color: var(--muted); }
.divider { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
section + section { margin-top: 18px; }
h2 { font-size: 14px; margin: 0 0 11px; line-height: 1.4; }
h3 { font-size: 13px; margin: 0; line-height: 1.4; }
p, li { font-size: 13px; line-height: 1.7; }
p { margin: 0; }
ul { margin: 0; padding-left: 22px; }
li + li { margin-top: 3px; }
.history { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.history-item { border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; }
.history-item strong { display: block; font-size: 16px; margin: 5px 0; font-variant-numeric: tabular-nums; }
.small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.path { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.path span { background: var(--soft); border-radius: 7px; padding: 6px 8px; font-size: 12px; }
.footer { padding-top: 15px; border-top: 1px solid var(--border); margin-top: 22px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.footer p + p { margin-top: 4px; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.group { margin-top: 20px; }
.group-title { border-bottom: 1px solid var(--border); padding-bottom: 9px; }
.list { display: grid; gap: 8px; margin-top: 11px; }
.list-card { width: 100%; text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: 11px; padding: 11px 13px; color: inherit; }
button.list-card { cursor: pointer; }
button.list-card:hover, button.list-card:focus-visible { border-color: var(--link); outline: none; }
.list-card-title { font-size: 13px; font-weight: 650; }
.list-card-value { font-size: 13px; line-height: 1.55; margin-top: 5px; font-variant-numeric: tabular-nums; }
.back { border: 0; background: none; color: var(--link); padding: 0 0 15px; cursor: pointer; font-size: 13px; }
.loading, .error { margin: 80px auto; max-width: 500px; padding: 20px; color: var(--muted); text-align: center; line-height: 1.6; }
.error { background: var(--surface); border-radius: 12px; border: 1px solid var(--border); }
@media (max-width: 540px) {
  body { padding: 8px 8px 24px; }
  .panel { padding: 17px 14px 18px; border-radius: 16px; }
  .metric { padding: 10px 11px; min-height: 76px; }
  .history { grid-template-columns: 1fr; }
}
@media (prefers-color-scheme: dark) {
  :root { color: #ebedef; background: #17191b; --surface: #222529; --soft: #2d3035; --border: #383c42; --muted: #a4aab1; --link: #8cbcff; }
}
body.dark { color: #ebedef; background: #17191b; --surface: #222529; --soft: #2d3035; --border: #383c42; --muted: #a4aab1; --link: #8cbcff; }
