:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #e8edf5;
  background: #0b111c;
  font-synthesis: none;
  --surface: #111a29;
  --surface-raised: #162233;
  --line: #273548;
  --muted: #a2afc1;
  --accent: #62e1cc;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse 850px 400px at 54% 0, #122237 0, transparent 83%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .43; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.shell { width: min(1320px, calc(100% - 80px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); background: #0e1725; }
.topbar-inner { min-height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { font-size: 19px; font-weight: 750; letter-spacing: -.035em; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.breadcrumb a:hover, .breadcrumb [aria-current] { color: #dae6f4; }
.breadcrumb-divider { color: #657991; }

.main { padding-block: 43px 64px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.page-heading h1 { margin: 0; font-size: clamp(32px, 4vw, 43px); font-weight: 730; line-height: 1.18; letter-spacing: -.055em; }
.page-heading p { color: var(--muted); margin: 12px 0 0; font-size: 14px; line-height: 1.6; }
.report-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.report-through { color: #d6e2f2; font-size: 13px; font-weight: 650; }

.toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.filters { display: flex; align-items: stretch; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #0c1523; }
.filters button { padding: 7px 13px; min-height: 35px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 13px; white-space: nowrap; font-weight: 600; }
.filters button:hover { color: #eef5fc; }
.filters button[aria-pressed="true"] { color: #9bf2e2; background: #1c3a43; }
.search { position: relative; width: min(100%, 310px); }
.search::before { content: ""; position: absolute; top: 14px; left: 14px; width: 12px; height: 12px; border: 1.5px solid #899bb2; border-radius: 50%; pointer-events: none; }
.search::after { content: ""; position: absolute; top: 25px; left: 23px; width: 6px; height: 1.5px; transform: rotate(45deg); background: #899bb2; pointer-events: none; }
.search input { width: 100%; min-height: 45px; padding: 9px 11px 9px 37px; border: 1px solid var(--line); border-radius: 10px; color: #e8edf5; background: #111b2a; font-size: 13px; }
.search input::placeholder { color: #a1aec0; opacity: 1; }
.search input:focus { border-color: var(--accent); outline: none; }

.results-info { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; min-height: 44px; padding: 15px 0 9px; font-size: 12px; color: var(--muted); }
.results-info p { margin: 0; line-height: 1.5; }
.chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { min-width: 0; min-height: 248px; padding: 16px; border: 1px solid var(--line); background: var(--surface); border-radius: 13px; }
.card-header { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.identity { min-width: 0; }
.identity h2 { margin: 0; font-size: 15px; font-weight: 650; line-height: 1.45; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.identity p, .card-total p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.identity p { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-total { flex: 0 0 auto; text-align: right; }
.card-total strong { display: block; color: #9cf5e4; font-weight: 680; font-size: 19px; font-variant-numeric: tabular-nums; line-height: 1.14; }
.chart { position: relative; margin: 14px 0 0; }
.chart-unit { margin: 0 0 3px; color: var(--muted); font-size: 11px; }
.chart canvas { width: 100%; height: 154px; display: block; touch-action: pan-y; }
.chart canvas:focus-visible { border-radius: 4px; outline-offset: 2px; }
.tooltip { position: absolute; z-index: 1; transform: translateX(-50%); width: max-content; max-width: 100%; pointer-events: none; display: grid; gap: 4px; padding: 8px 11px; color: #e9f3fb; background: #19293b; border: 1px solid #3a5169; border-radius: 8px; font-size: 11px; line-height: 1.35; font-variant-numeric: tabular-nums; box-shadow: 0 8px 22px #060c14a0; }
.tooltip strong { color: #9cf5e4; font-size: 12px; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.pagination p { margin: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pagination button, .primary-action { min-height: 37px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); color: #edf3fa; font-size: 13px; font-weight: 650; }
.pagination button:not(:disabled):hover, .primary-action:hover { border-color: var(--accent); }
.primary-action { display: inline-flex; align-items: center; margin-top: 17px; }
.notice { margin-top: 24px; padding: 34px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; text-align: center; }
.notice h2 { margin: 0; font-size: 17px; }
.notice p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 1110px) {
  .shell { width: calc(100% - 48px); }
  .chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 660px) {
  .shell { width: calc(100% - 30px); }
  .topbar-inner { min-height: 57px; gap: 16px; }
  .main { padding-top: 28px; }
  .report-meta { align-items: start; }
  .toolbar { margin-top: 20px; padding-top: 16px; }
  .search { width: 100%; }
  .chart-grid { grid-template-columns: 1fr; gap: 12px; }
}
