:root{
  color-scheme:dark;
  --bg:#0c1014;
  --surface:#141a20;
  --raised:#1a222b;
  --line:#29323d;
  --text:#eaf0f5;
  --muted:#99a8b7;
  --accent:#82dfce;
  --amber:#e8c387;
  --radius:14px
}
*{
  box-sizing:border-box
}
html{
  scroll-behavior:smooth;
  scroll-padding-top:32px
}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:14px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;
  -webkit-font-smoothing:antialiased
}
a{
  color:var(--accent);
  text-decoration:none
}
a:hover{
  text-decoration:underline
}
button,input,select{
  font:inherit
}
button{
  cursor:pointer
}
a,button,input,select,summary{
  touch-action:manipulation
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,tr:focus-visible,svg [tabindex]:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:4px
}
.skipLink{
  position:absolute;
  top:-60px;
  left:16px;
  z-index:10;
  background:var(--accent);
  color:var(--bg);
  padding:12px
}
.skipLink:focus{
  top:12px
}
.sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:218px;
  padding:36px 24px;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  background:#10151a
}
.brand{
  display:flex;
  gap:12px;
  align-items:center;
  font-size:18px;
  font-weight:700;
  letter-spacing:-.5px
}
.brandMark{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid #47756e;
  border-radius:12px;
  color:var(--accent);
  font-size:16px
}
.brandSub{
  display:block;
  font-size:9px;
  font-weight:500;
  letter-spacing:2px;
  color:var(--muted);
  margin-top:2px
}
.navLabel{
  margin:56px 10px 14px;
  color:var(--muted);
  font-size:11px;
  letter-spacing:1px
}
.sectionNav{
  display:grid;
  gap:7px
}
.sectionNav a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:11px 10px;
  border-radius:7px;
  color:#bac6d0;
  font-size:13px
}
.sectionNav a:hover{
  background:var(--raised);
  color:var(--accent);
  text-decoration:none
}
.sectionNav span{
  font-size:10px;
  color:#677687
}
.sidebarFoot{
  margin-top:auto;
  font-size:12px;
  line-height:2.2
}
.sidebarFoot .muted{
  font-size:9px;
  letter-spacing:.8px
}
.statusDot{
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent);
  margin-right:8px
}
main{
  max-width:1560px;
  margin-left:218px;
  padding:0 42px 28px
}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:80px;
  border-bottom:1px solid var(--line)
}
.breadcrumb{
  font-size:12px;
  color:var(--muted)
}
.breadcrumb span{
  padding:0 10px;
  color:#516272
}
.languageNav{
  display:flex;
  gap:3px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:8px
}
.languageNav a{
  color:var(--muted);
  font-size:12px;
  padding:4px 11px;
  border-radius:5px
}
.languageNav a[aria-current=page]{
  background:var(--raised);
  color:var(--text)
}
.languageNav a:hover{
  text-decoration:none;
  color:var(--accent)
}
.overview{
  padding:42px 0 0
}
.eyebrow{
  color:var(--accent);
  font-size:10px;
  letter-spacing:2px;
  font-weight:600
}
.headingRow{
  display:flex;
  gap:24px;
  justify-content:space-between;
  align-items:center
}
h1{
  font-size:clamp(27px,3vw,44px);
  letter-spacing:-1.5px;
  line-height:1.25;
  margin:14px 0
}
h2{
  font-size:22px;
  line-height:1.35;
  letter-spacing:-.5px;
  margin:8px 0 0
}
h3{
  font-size:15px;
  line-height:1.5;
  margin:0;
  font-weight:600
}
p{
  margin:12px 0;
  color:var(--muted)
}
.intro{
  font-size:15px;
  max-width:690px
}
.versionTag{
  flex-shrink:0;
  border:1px solid #3d605a;
  color:var(--accent);
  font-size:10px;
  padding:7px 10px;
  border-radius:5px;
  letter-spacing:1px
}
.scopeLine{
  display:flex;
  gap:10px 22px;
  flex-wrap:wrap;
  margin:22px 0 18px;
  color:var(--muted);
  font-size:12px
}
.scopeLine span+span:before{
  content:'·';
  margin-right:22px;
  color:#52616e
}
.notice{
  background:#1f1d18;
  border:1px solid #4b402c;
  border-left:3px solid var(--amber);
  color:#decdae;
  padding:12px 16px;
  border-radius:7px;
  font-size:12px;
  line-height:1.8
}
.controlPanel{
  margin:24px 0 18px;
  padding:20px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius)
}
.controls{
  display:grid;
  grid-template-columns:1.45fr 1fr 1.2fr;
  gap:16px
}
.controls label{
  display:grid;
  gap:7px;
  color:var(--muted);
  font-size:11px;
  min-width:0
}
input,select,button{
  background:var(--raised);
  color:var(--text);
  border:1px solid #36414d;
  border-radius:7px;
  padding:10px 12px;
  font-size:12px;
  min-width:0;
  max-width:100%
}
input,select{
  width:100%;
  min-height:42px
}
input::placeholder{
  color:#8796a5
}
input:hover,select:hover,button:hover{
  border-color:var(--accent)
}
.primaryButton{
  background:var(--accent);
  border-color:var(--accent);
  color:#0d2621;
  font-weight:650
}
.statGrid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px
}
.statCard{
  padding:20px 22px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius)
}
.statCard span,.statCard small{
  display:block;
  color:var(--muted);
  font-size:11px
}
.statCard strong{
  display:block;
  font-size:34px;
  letter-spacing:-1px;
  line-height:1.3;
  margin:10px 0 8px;
  font-variant-numeric:tabular-nums
}
.statCard:first-child strong{
  color:var(--accent)
}
.statContext{
  font-size:11px;
  color:var(--muted);
  margin:12px 2px 0
}
.sectionHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin:36px 0 18px
}
.chartGrid{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);
  gap:18px;
  align-items:start
}
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
  min-width:0
}
.cardHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:18px
}
.pill{
  font-size:10px;
  color:var(--muted);
  padding:4px 9px;
  border:1px solid var(--line);
  border-radius:5px;
  white-space:nowrap
}
.legend{
  display:flex;
  gap:10px 18px;
  flex-wrap:wrap;
  margin:12px 0;
  font-size:11px;
  color:var(--muted)
}
.swatch{
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:2px;
  margin-right:6px
}
.chart{
  width:100%;
  height:auto;
  display:block
}
.chartScroll{
  overflow:auto
}
svg text{
  fill:#c6d2de;
  font-family:inherit;
  font-size:16px;
  font-weight:400;
  font-variant-numeric:tabular-nums;
  letter-spacing:0
}
svg line{
  stroke:#3a4855
}
svg g[data-name],svg circle[data-name]{
  cursor:pointer
}
svg g[data-name]:hover text{
  fill:var(--accent)
}
svg image{
  pointer-events:none
}
.small{
  font-size:11px
}
.muted{
  color:var(--muted)
}
.scroll{
  overflow:auto;
  overscroll-behavior-x:contain
}
table{
  border-collapse:collapse;
  width:100%;
  font-size:12px;
  font-variant-numeric:tabular-nums
}
th,td{
  padding:13px 15px;
  text-align:right;
  white-space:nowrap;
  border-bottom:1px solid var(--line)
}
th{
  color:var(--muted);
  font-size:10px;
  font-weight:500;
  background:var(--surface)
}
td:first-child,th:first-child{
  text-align:left
}
.tableCard{
  padding:0;
  overflow:hidden
}
.tableHint{
  padding:16px 20px;
  border-bottom:1px solid var(--line);
  font-size:11px;
  color:var(--muted)
}
.championTable{
  max-height:660px
}
.championTable thead th{
  position:sticky;
  top:0;
  z-index:2
}
.championTable td:first-child,.championTable th:first-child{
  position:sticky;
  left:0;
  background:var(--surface);
  z-index:1;
  min-width:190px
}
.championTable th:first-child{
  z-index:3
}
#rows tr{
  cursor:pointer
}
#rows tr:hover td{
  background:#1c2830
}
#rows tr:focus-visible td{
  background:#1c2830
}
.heroCell{
  display:flex;
  align-items:center;
  gap:10px;
  text-align:left
}
.heroCell small{
  display:block;
  color:var(--muted);
  font-size:10px
}
.championIcon{
  width:34px;
  height:34px;
  object-fit:cover;
  border-radius:8px;
  border:1px solid #3a4651;
  flex-shrink:0
}
.championIcon.large{
  width:56px;
  height:56px
}
.roleCard{
  margin-top:18px
}
.heroControls{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap
}
.heroControls label{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  color:var(--muted)
}
.heroControls select{
  width:auto;
  max-width:260px
}
.roleSummary{
  display:flex;
  gap:12px 18px;
  flex-wrap:wrap;
  color:var(--muted);
  margin:15px 0
}
.roleSummary>span{
  white-space:nowrap
}
.roleSummary strong{
  color:var(--text)
}
details.card{
  margin-bottom:12px
}
summary{
  cursor:pointer;
  font-size:13px;
  font-weight:600
}
details[open]>summary{
  margin-bottom:18px
}
details:not(.card){
  border-top:1px solid var(--line);
  padding-top:16px
}
#parameterRows p{
  font-size:12px;
  max-width:850px
}
.pageFooter{
  display:flex;
  justify-content:space-between;
  gap:16px;
  border-top:1px solid var(--line);
  margin-top:40px;
  padding-top:22px;
  color:var(--muted);
  font-size:10px
}
.pageFooter span:first-child{
  color:var(--accent)
}
dialog{
  color:var(--text);
  background:var(--surface);
  border:1px solid #465763;
  border-radius:16px;
  width:min(900px,calc(100% - 32px));
  max-height:calc(100% - 32px);
  padding:24px
}
dialog::backdrop{
  background:#05080dd9;
  backdrop-filter:blur(5px)
}
.dialogHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px
}
.dialogHead h2{
  font-size:20px;
  margin:0
}
/* Shared entry page */
body.portal main{
  margin:0 auto;
  max-width:1180px;
  padding:0 36px 32px
}
.portal .topbar{
  min-height:90px
}
.portalHero{
  padding:76px 0 36px
}
.portalHero h1{
  font-size:clamp(36px,5vw,64px);
  max-width:820px;
  margin:20px 0;
  letter-spacing:-2px
}
.portalHero .intro{
  max-width:700px;
  line-height:1.9
}
.portalMeta{
  display:flex;
  gap:32px;
  margin:32px 0 0;
  flex-wrap:wrap
}
.portalMeta strong{
  font-size:26px;
  display:block;
  line-height:1.5
}
.portalMeta span{
  font-size:11px;
  color:var(--muted)
}
.entryGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin:20px 0 32px
}
.entryCard{
  display:block;
  padding:30px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  color:var(--text);
  transition:border-color .15s,background .15s
}
.entryCard:hover{
  border-color:var(--accent);
  background:#19232a;
  text-decoration:none
}
.entryCard .eyebrow{
  display:block;
  margin-bottom:24px
}
.entryCard strong{
  display:block;
  font-size:26px;
  letter-spacing:-.7px
}
.entryCard p{
  font-size:13px;
  margin:8px 0 30px
}
.entryCard .entryAction{
  display:flex;
  justify-content:space-between;
  color:var(--accent);
  font-size:12px
}
.reportLinks{
  display:flex;
  flex-wrap:wrap;
  gap:12px 24px;
  font-size:12px;
  margin:22px 0
}
.portalNote{
  font-size:12px;
  line-height:1.9;
  padding:22px 24px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  color:var(--muted)
}
@media(min-width:1800px){
  main{
    margin-right:auto
  }
}
@media(max-width:1150px){
  .sidebar{
    width:180px;
    padding:28px 18px
  }
  main{
    margin-left:180px;
    padding:0 24px 24px
  }
  .controls{
    grid-template-columns:1fr 1fr
  }
  .searchLabel{
    grid-column:1/-1
  }
  .statCard{
    padding:16px
  }
  .statCard strong{
    font-size:28px
  }
  .chartGrid{
    grid-template-columns:1fr 1fr
  }
  .card{
    padding:16px
  }
  .heroControls{
    width:100%
  }
  .roleCard .cardHead{
    flex-wrap:wrap
  }
}
@media(max-width:900px){
  .sidebar{
    position:static;
    width:auto;
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:16px 22px;
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:20px
  }
  .navLabel,.sidebarFoot,.brandSub{
    display:none
  }
  .brand{
    font-size:15px;
    flex-shrink:0
  }
  .brandMark{
    width:32px;
    height:32px;
    font-size:12px
  }
  .sectionNav{
    display:flex;
    overflow:auto;
    gap:4px
  }
  .sectionNav a{
    padding:8px 10px;
    white-space:nowrap;
    font-size:11px
  }
  .sectionNav span{
    display:none
  }
  main{
    margin-left:0
  }
  .overview{
    padding-top:28px
  }
  .topbar{
    min-height:65px
  }
  .statGrid{
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
  .chartGrid{
    grid-template-columns:1fr
  }
  .chart{
    max-height:640px
  }
  .chartScroll .chart{
    min-width:610px
  }
  .versionTag{
    display:none
  }
}
@media(max-width:600px){
  html{
    scroll-padding-top:18px
  }
  .sidebar{
    padding:12px 16px;
    gap:12px
  }
  .sectionNav a{
    font-size:10px;
    padding:6px 8px
  }
  .brand{
    font-size:13px;
    gap:8px
  }
  main{
    padding:0 16px 20px
  }
  .headingRow h1{
    letter-spacing:-.8px
  }
  .intro{
    font-size:13px
  }
  .scopeLine{
    gap:8px 14px;
    font-size:10px
  }
  .scopeLine span+span:before{
    margin-right:14px
  }
  .notice{
    font-size:11px;
    padding:10px 12px
  }
  .controls{
    grid-template-columns:1fr
  }
  .searchLabel{
    grid-column:auto
  }
  .controlPanel{
    padding:16px
  }
  .statGrid{
    grid-template-columns:1fr 1fr;
    gap:10px
  }
  .statCard{
    padding:16px
  }
  .statCard strong{
    font-size:30px
  }
  .statContext{
    font-size:10px
  }
  .sectionHead{
    margin-top:28px;
    gap:12px;
    align-items:center;
    flex-wrap:wrap
  }
  h2{
    font-size:20px
  }
  .sectionHead>.small{
    display:none
  }
  .heroControls{
    gap:12px
  }
  .heroControls label{
    width:100%;
    display:grid;
    gap:6px
  }
  .heroControls select{
    width:100%;
    max-width:none
  }
  .roleSummary>span{
    white-space:normal
  }
  .pageFooter{
    flex-direction:column;
    gap:5px
  }
  .chartScroll .chart{
    min-width:580px
  }
  .cardHead h3{
    font-size:13px
  }
  dialog{
    padding:16px
  }
  .dialogHead h2{
    font-size:16px
  }
  body.portal main{
    padding:0 18px 24px
  }
  .portalHero{
    padding:44px 0 24px
  }
  .portalHero h1{
    font-size:38px;
    letter-spacing:-1.5px
  }
  .portalMeta{
    gap:24px
  }
  .entryGrid{
    grid-template-columns:1fr;
    gap:14px
  }
  .entryCard{
    padding:24px
  }
  .entryCard .eyebrow{
    margin-bottom:16px
  }
  .entryCard p{
    margin-bottom:22px
  }
  .portalNote{
    padding:18px
  }
  .portal .topbar .brandSub{
    display:block
  }
}
@media(prefers-reduced-motion:reduce){
  html{
    scroll-behavior:auto
  }
  .entryCard{
    transition:none
  }
}
.reportContent{
  padding:32px 0;
  font-size:14px;
  line-height:1.9
}
.reportContent h1{
  font-size:30px;
  letter-spacing:-.7px;
  margin-bottom:24px
}
.reportContent h2{
  margin:36px 0 16px
}
.reportContent h3{
  margin:26px 0 14px
}
.reportContent p{
  overflow-wrap:anywhere
}
.reportContent code{
  background:var(--raised);
  padding:3px 6px;
  border-radius:4px;
  font-size:12px
}
.reportContent .tablewrap{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:10px;
  margin:20px 0
}
.reportContent th,.reportContent td{
  padding:11px 14px
}
.reportContent img{
  width:34px;
  height:34px;
  border-radius:7px;
  object-fit:cover;
  vertical-align:middle
}
.reportContent th:first-child,.reportContent td:first-child{
  white-space:normal;
  min-width:150px
}
.reportContent tr:hover{
  background:var(--raised)
}
@media(max-width:600px){
  .report .topbar{
    flex-wrap:wrap;
    gap:12px;
    padding:14px 0
  }
  .report .topbar>a{
    font-size:10px
  }
  .reportContent h1{
    font-size:25px
  }
}
/* Theme controls and readable charts */
:root {
  --sidebar: #10151a;
  --notice-bg: #1f1d18;
  --notice-line: #4b402c;
  --notice-text: #decdae;
  --chart-text: #c6d2de;
  --chart-line: #3a4855;
  --hover: #1c2830;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7f9;
  --surface: #ffffff;
  --raised: #edf2f5;
  --line: #dbe2e8;
  --text: #1c2b36;
  --muted: #586d7d;
  --accent: #136f60;
  --amber: #8b642b;
  --sidebar: #ffffff;
  --notice-bg: #fff8eb;
  --notice-line: #e5c994;
  --notice-text: #6d512b;
  --chart-text: #344e61;
  --chart-line: #a5b6c2;
  --hover: #eaf3f1;
}
.sidebar { background: var(--sidebar); }
.sectionNav a { color: var(--muted); }
.sectionNav a[aria-current="location"] { background: var(--raised); color: var(--accent); }
.notice { background: var(--notice-bg); border-color: var(--notice-line); color: var(--notice-text); }
input, select, button { border-color: var(--line); }
.homeLink { display: block; margin-bottom: 22px; font-size: 12px; }
.topbarActions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
[data-theme-toggle] { min-height: 34px; padding: 6px 12px; white-space: nowrap; }
.primaryButton { color: var(--bg); }
.entryCard:hover, #rows tr:hover td, #rows tr:focus-visible td { background: var(--hover); }
svg text { fill: var(--chart-text); font-size: 16px; }
svg line { stroke: var(--chart-line); }
.chartGrid { grid-template-columns: minmax(0, 1fr); }
.chart { max-height: none; }
.chartScroll #bars { min-width: 900px; }
.chartScroll #scatter { min-width: 650px; max-width: 760px; margin: 0 auto; }
@media(max-width:900px) {
  .homeLink { margin-bottom: 0; flex-shrink: 0; }
}
@media(max-width:600px) {
  .sidebar { flex-wrap: wrap; }
  .sidebar .sectionNav { width: 100%; }
  .topbar { flex-wrap: wrap; padding: 14px 0; gap: 10px; }
  .topbarActions { gap: 8px; }
}

/* Explicit CJK fallback keeps chart labels consistent with the interface. */
svg {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
svg .chartChampion { font-size: 16px; font-weight: 500; letter-spacing: .01em; }
svg .chartSeries { font-size: 14px; font-weight: 400; fill: var(--muted); }
svg .chartValues { font-size: 16px; font-weight: 500; letter-spacing: -.015em; }
svg .chartSeparator { fill: var(--muted); font-weight: 400; }
