:root {
  color-scheme: light;
  --main: #14251e;
  --muted: #51645a;
  --line: #e0e9e3;
  --paper: #f5f8f5;
  --green: #147657;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--main);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-size: 1rem; }
button, input, select { font: inherit; color: inherit; }
button, select, input[type="date"] { cursor: pointer; }
button { border: 0; background: none; }
a { color: inherit; text-decoration: none; }
svg { width: 1.16em; height: 1.16em; flex: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.symbols { position: absolute; width: 0; height: 0; }
:focus-visible { outline: 2px solid #159873; outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { display: grid; grid-template-columns: 219px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; align-self: start; background: #13231d; color: #a5b8ae; display: flex; flex-direction: column; padding: 30px 17px 20px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; color: #f2fbf6; }
.brand-icon { width: 43px; height: 43px; flex: none; display: grid; place-items: center; border-radius: 13px; color: #123d2d; background: #a9f3c9; }
.brand-icon svg { width: 27px; height: 27px; }
.brand strong { display: block; font-size: 1.18rem; letter-spacing: .035em; }
.brand small { display: block; color: #a2bdad; margin-top: 4px; font-size: .72rem; letter-spacing: .12em; font-weight: 650; }
.sidebar nav { display: grid; gap: 8px; margin-top: 52px; }
.nav-item { color: #b0c1b8; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 9px; font-size: .94rem; text-align: left; white-space: nowrap; }
.nav-item:hover { color: #fff; background: #263a31; }
.nav-item.active { color: #b8f5d5; background: #29483b; font-weight: 700; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 17px; }
.sidebar-source { display: flex; align-items: center; gap: 10px; border-top: 1px solid #30443a; padding: 20px 8px 0; font-size: .87rem; color: #dce9e1; }
.sidebar-source small { display: block; color: #a0b4a9; font-size: .75rem; margin-top: 4px; white-space: nowrap; }
.source-logo { width: 33px; height: 33px; display: grid; place-items: center; color: #a9f3c9; background: #274438; border-radius: 9px; font-weight: 850; font-size: 1.26rem; }
main { min-width: 0; }
.topbar { height: 65px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; gap: 12px; background: white; border-bottom: 1px solid var(--line); }
.breadcrumb { color: var(--muted); font-size: .89rem; white-space: nowrap; }
.breadcrumb span { color: #8fa198; margin: 0 6px; }
.breadcrumb strong { color: var(--main); }
.top-actions, .sample-status { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.top-actions { gap: 16px; }
.sample-status { color: var(--muted); font-size: .83rem; }
.sample-status i { width: 8px; height: 8px; background: #a7b4ad; border-radius: 50%; }
.sample-status.live i { background: #28a77e; box-shadow: 0 0 0 3px #e5f5ed; }
.sample-status.demo i, .sample-status.stale i { background: #cb943e; }
.workspace { width: min(100%, 1530px); margin: 0 auto; padding: 26px 32px 0; }
.hero { display: flex; align-items: end; justify-content: space-between; overflow: hidden; position: relative; min-height: 180px; border-radius: 16px; padding: 25px 27px; color: #f4fcf7; background: radial-gradient(ellipse at 87% 5%, #285743, transparent 62%), linear-gradient(107deg, #1a3329, #102820); isolation: isolate; }
.hero-copy { position: relative; z-index: 1; }
.hero-label { display: flex; align-items: center; gap: 8px; color: #a1ebbf; font-size: .82rem; font-weight: 700; letter-spacing: .105em; }
.hero-label span { width: 19px; height: 2px; background: #a1ebbf; }
h1 { font-size: clamp(2rem, 3.45vw, 3.08rem); margin: 12px 0 9px; line-height: 1.13; font-weight: 780; letter-spacing: -.045em; }
.hero p { margin: 0 0 3px; color: #c2dbcd; line-height: 1.6; }
.hero-date { z-index: 1; align-items: center; display: flex; gap: 7px; border: 1px solid #58806d; border-radius: 9px; padding: 8px 11px; background: #19382bd9; color: #e5f7eb; font-size: .86rem; white-space: nowrap; }
.radar-art { position: absolute; top: 56%; right: 8%; width: 310px; height: 310px; transform: translate(0,-50%); opacity: .8; }
.radar-art i, .radar-art b { position: absolute; inset: 0; border: 1px solid #a4ffd134; border-radius: 50%; }
.radar-art i:nth-child(2) { inset: 29px; }
.radar-art i:nth-child(3) { inset: 58px; }
.radar-art i:nth-child(4) { inset: 87px; }
.radar-art b { inset: 116px; }
.radar-art em { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 8deg, #92ecb631 61deg, #9dfdcc67 64deg, transparent 65deg); }
.radar-art span { position: absolute; top: 30%; left: 69%; width: 7px; height: 7px; border-radius: 50%; background: #bdffda; box-shadow: 0 0 19px 5px #88eea96e; }
.toolbar, .toolbar-left, .window-controls, .segments, .ranking-actions { display: flex; align-items: center; gap: 10px; }
.toolbar { justify-content: space-between; margin: 21px 0 15px; flex-wrap: wrap; }
.toolbar-left { flex-wrap: wrap; }
.input-wrap, .button { min-height: 39px; display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; background: #fff; border: 1px solid #dce6df; border-radius: 8px; }
.button { padding: 0 12px; white-space: nowrap; font-weight: 650; }
.button:hover { background: #eef7f1; border-color: #bfddcc; }
.button:disabled { opacity: .52; cursor: default; }
.mode { min-height: 31px; color: #265640; }
.input-wrap { padding-left: 10px; }
.input-wrap svg, .button svg { color: #567467; }
.input-wrap input, .input-wrap select { min-width: 0; background: transparent; border: 0; padding: 8px 9px 8px 0; }
.select-wrap { padding: 0; position: relative; }
.select-wrap select { appearance: none; padding: 8px 31px 8px 11px; width: 100%; height: 100%; }
.select-wrap::after { content: ""; border: solid #597768; border-width: 0 1.5px 1.5px 0; padding: 2.5px; position: absolute; right: 12px; top: 42%; transform: rotate(45deg); pointer-events: none; }
.window-controls { margin-bottom: 17px; gap: 14px; font-size: .88rem; }
.window-controls > span { color: var(--muted); white-space: nowrap; }
.segments { gap: 3px; border-radius: 9px; padding: 3px; background: #e8efe9; }
.segments button { padding: 6px 12px; min-height: 33px; border-radius: 7px; color: #43584c; white-space: nowrap; }
.segments button:hover { background: #f7faf7; }
.segments .selected { background: white; color: #136347; box-shadow: 0 1px 4px #1937291c; font-weight: 750; }
.board-tabs { font-size: .88rem; }
.range-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 15px; color: var(--muted); font-size: .875rem; }
.range-coverage { margin-left: auto; font-size: .79rem; }
.window-controls { flex-wrap: wrap; }
.table-trend:disabled { opacity: .45; cursor: default; }
.score-value { font-variant-numeric: tabular-nums; color: #336346; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.stat, .panel { border: 1px solid var(--line); background: white; border-radius: 13px; box-shadow: 0 1px 2px #15362406; }
.stat { padding: 14px 16px; }
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: #43574d; font-size: .88rem; font-weight: 650; }
.stat-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 8px; }
.stat-icon svg { width: 18px; height: 18px; }
.mint { background: #e2f5eb; color: #1b7c57; }
.blue { background: #e8f1fa; color: #386b9e; }
.amber { background: #fff1d9; color: #906015; }
.violet { background: #eeeaf8; color: #6b56a1; }
.stat-value { margin-top: 4px; line-height: 1.12; font-size: 1.85rem; font-weight: 790; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat-note { color: var(--muted); font-size: .79rem; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analysis-grid { display: grid; grid-template-columns: minmax(0, 2.32fr) minmax(245px, 1fr); gap: 16px; align-items: stretch; margin-bottom: 18px; scroll-margin-top: 14px; }
.panel { min-width: 0; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 18px 19px 12px; }
h2 { margin: 0; font-size: 1.16rem; letter-spacing: -.02em; }
.panel-header p { margin: 6px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.panel-chip { border-radius: 6px; background: #eef6ef; color: #36664d; padding: 5px 7px; white-space: nowrap; font-size: .76rem; }
.chart-legend { display: flex; gap: 6px 13px; align-items: center; flex-wrap: wrap; min-height: 30px; padding: 0 18px 6px; }
.legend-item { display: flex; gap: 6px; align-items: center; color: #465850; font-size: .78rem; padding: 3px 0; }
.legend-item span { width: 9px; height: 9px; border-radius: 50%; background: var(--series); }
.legend-item[aria-pressed="false"] { opacity: .55; text-decoration: line-through; }
.plot { height: 254px; position: relative; margin: 0 10px 11px; }
.plot canvas { display: block; width: 100%; height: 100%; }
.chart-tip { position: absolute; inset: 9px auto auto 8px; min-width: 145px; max-width: min(210px, 100%); pointer-events: none; padding: 8px 11px; font-size: .77rem; line-height: 1.6; color: #edf9f2; background: #172e24f5; border-radius: 8px; }
.chart-tip strong, .chart-tip span { display: block; }
.chart-empty { position: absolute; inset: 52px 13% 55px; display: grid; align-content: center; justify-items: center; gap: 8px; text-align: center; pointer-events: none; }
.chart-empty > span { display: grid; place-items: center; width: 36px; height: 36px; background: #e5f3eb; color: #2c7b5b; border-radius: 10px; }
.chart-empty strong { font-size: .94rem; background: white; padding: 1px 8px; }
.chart-empty small { color: var(--muted); font-size: .79rem; background: white; padding: 1px 8px; }
.leaders-panel { display: flex; flex-direction: column; }
.leaders { padding: 0 16px; list-style: none; margin: 0; flex: 1; }
.leaders li { border-bottom: 1px solid #ecf0ed; }
.leader { display: grid; grid-template-columns: 23px 34px minmax(0,1fr) auto; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 0; }
.leader:hover { color: var(--green); }
.place { font-weight: 750; color: #61766a; text-align: center; font-size: .85rem; }
.place.first { color: #147657; background: #e1f4e9; border-radius: 5px; padding: 3px 0; }
.leader-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; font-weight: 650; }
.panel-link { text-align: center; padding: 13px 10px; font-size: .87rem; color: #126c4e; font-weight: 750; }
.panel-link:hover { text-decoration: underline; }
.avatar { display: inline-grid; place-items: center; position: relative; overflow: hidden; width: 34px; height: 34px; flex: none; isolation: isolate; border-radius: 8px; color: var(--avatar-color, #295d4a); background: var(--avatar-bg, #e2f3e9); font-weight: 800; font-size: .95rem; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ranking-panel { scroll-margin-top: 14px; }
.ranking-actions { flex-wrap: wrap; }
.search input { width: 122px; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 725px; text-align: left; font-size: .88rem; }
thead { background: #f4f8f5; color: #465c50; }
th, td { border-top: 1px solid #e9efeb; padding: 11px 12px; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 19px; }
th:last-child, td:last-child { padding-right: 19px; }
th button { display: inline-flex; gap: 4px; align-items: center; padding: 0; font-weight: 700; }
th button.is-sorted { color: var(--green); }
tbody tr:hover { background: #f8fbf9; }
.game-cell { display: flex; gap: 9px; align-items: center; }
.game-cell a { display: block; max-width: 290px; overflow: hidden; text-overflow: ellipsis; font-weight: 730; }
.game-cell a:hover { text-decoration: underline; }
.game-cell small { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; }
.up { color: #137353; font-weight: 750; }
.down { color: #a43a48; font-weight: 750; }
.neutral { color: var(--muted); }
.table-trend { color: #147657; padding: 3px 4px; border-radius: 5px; }
.table-trend.current { background: #e4f4eb; }
.table-footer { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 6px 19px; color: var(--muted); font-size: .83rem; }
#pages { display: flex; align-items: center; gap: 9px; }
#pages .button { min-height: 29px; font-size: .8rem; }
.empty-row { color: var(--muted); padding: 31px 12px; line-height: 1.55; text-align: center; border: none; white-space: normal; }
.footer { padding: 17px 0 21px; display: flex; justify-content: space-between; color: var(--muted); font-size: .79rem; }
.footer a:hover { text-decoration: underline; }
dialog { color: var(--main); width: min(550px, calc(100% - 32px)); padding: 25px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 80px #13271e54; }
dialog::backdrop { background: #172a22a3; }
dialog .close { float: right; min-height: 34px; }
dialog dl { margin: 18px 0 0; }
dialog dt { font-weight: 750; }
dialog dd { margin: 5px 0 13px; color: var(--muted); line-height: 1.57; font-size: .91rem; }
@media (max-width: 1140px) {
  .shell { grid-template-columns: 181px minmax(0,1fr); }
  .workspace { padding-inline: 21px; }
  .topbar { padding-inline: 21px; }
  .sidebar { padding-inline: 12px; }
}
@media (max-width: 890px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 10px 16px; display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 8px; }
  .sidebar nav { display: flex; gap: 4px; margin: 0; }
  .sidebar-bottom { margin: 0; }
  .sidebar-source, .brand small { display: none; }
  .brand { padding: 0; gap: 7px; white-space: nowrap; }
  .brand-icon { width: 32px; height: 32px; border-radius: 8px; }
  .brand-icon svg { width: 22px; height: 22px; }
  .brand strong { font-size: 1rem; }
  .nav-item { padding: 8px; gap: 5px; font-size: .8rem; }
  .topbar { height: 51px; }
}
@media (max-width: 660px) {
  .sidebar { flex-wrap: wrap; padding-inline: 12px; }
  .sidebar nav { order: 2; width: 100%; justify-content: space-between; }
  .sidebar nav a { justify-content: center; }
  .workspace { padding: 14px 12px 0; }
  .topbar { padding-inline: 12px; }
  .top-actions { gap: 8px; }
  .range-bar { gap: 5px 8px; }
  .range-coverage { width: 100%; margin-left: 0; }
  .board-tabs { font-size: .8rem; }
  .hero { display: grid; align-content: center; gap: 12px; padding: 17px; min-height: 158px; }
  .hero-date { justify-self: start; padding: 5px 8px; }
  .hero p { font-size: .88rem; }
  .radar-art { right: -95px; }
  .toolbar { margin: 13px 0; }
  .toolbar-left { gap: 6px; }
  .input-wrap, .button { min-height: 34px; font-size: .81rem; }
  .window-controls { gap: 7px; font-size: .79rem; }
  .segments { gap: 1px; }
  .segments button { padding-inline: 6px; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-bottom: 12px; }
  .stat { padding: 10px 11px; }
  .stat-icon { width: 28px; height: 28px; }
  .stat-value { font-size: 1.53rem; }
  .analysis-grid { grid-template-columns: minmax(0,1fr); gap: 12px; margin-bottom: 12px; }
  .panel-header { padding: 14px 13px 10px; }
  .ranking-panel > .panel-header { flex-wrap: wrap; }
  .plot { height: 227px; }
}
