:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #f2f2f8;
  background: #f6f5f1;
  --muted: #50535c;
  --rule: #cfcec9;
  --accent: #2348be;
  --paper: #f6f5f1;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
[hidden] { display: none !important; }
button, select { font: inherit; }
a, button, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #4568e6; outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
button, select { border: 1px solid var(--rule); background: transparent; color: inherit; padding: 7px 10px; font-size: 12px; }
button, summary { cursor: pointer; }
button:hover, button[aria-pressed="true"] { border-color: var(--accent); }
button[aria-pressed="true"] { color: var(--accent); background: #e6eafa; }
select option { background: white; }
h1, h2, p, dl, dd { margin: 0; }
h1 { font-size: clamp(34px, 4vw, 60px); line-height: 1.15; letter-spacing: -.05em; }
h2 { font-size: 19px; font-weight: 600; }
.sidebar { width: 218px; padding: 37px 22px 26px; position: fixed; inset: 0 auto 74px 0; border-right: 1px solid #242428; display: flex; flex-direction: column; overflow-y: auto; z-index: 2; background: #101014; }
.project { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.055em; padding: 0 8px 27px; border-bottom: 1px solid #3c3c43; }
nav { margin-top: 27px; display: grid; gap: 0; }
.nav-heading { color: #aaaab1; font-size: 11px; padding: 0 8px 13px; }
nav a { position: relative; display: flex; justify-content: space-between; gap: 10px; align-items: center; color: #d2d2db; font-size: 14px; padding: 15px 9px 15px 13px; border-bottom: 1px solid #38383e; }
nav a span { color: #a6a6b0; }
nav a:hover { background: #1a1b22; color: white; }
nav a[aria-current] { color: white; background: #1a2036; }
nav a[aria-current]::before { content: ""; position: absolute; inset: 9px auto 9px 0; width: 3px; background: #6d8aff; }
nav a[aria-current] span { color: #cbd6ff; }
.source { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid #3c3c43; color: #aaaab4; font-size: 11px; line-height: 1.65; }
.source time { display: block; font: 15px/1.45 "Segoe UI", sans-serif; color: #ededf2; margin-top: 5px; font-variant-numeric: tabular-nums; }
.author { position: fixed; inset: auto auto 0 0; z-index: 2; width: 218px; min-height: 74px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 30px; border-top: 1px solid #3c3c43; border-right: 1px solid #242428; background: #101014; font-size: 13px; }
.author span:last-child { font-size: 12px; color: #c1c1ca; font-variant-numeric: tabular-nums; }
[data-view="public"] .sidebar { bottom: 0; }
main { margin-left: 218px; min-width: 0; color: #16161c; }
#status { padding: 44px; }
.cover {
  position: relative; isolation: isolate; min-height: clamp(244px,33vh,355px);
  padding: 34px clamp(24px,4vw,62px) 61px; display: flex; align-items: center;
  color: #fff; background: linear-gradient(90deg,#0a0a0de8 3%,#0a0a0d82 30%,#0a0a0d08 68%), url("assets/architectural-collage.png") center 53%/cover;
}
.cover::after {
  position: absolute; content: ""; inset: auto 0 -1px; height: 62px; z-index: -1;
  clip-path: polygon(0 75%, 35% 13%, 66% 54%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(105deg,#e2e1dd 0%,#f6f5f1 61%,#e8e6df 100%);
}
.cover p { margin-top: 13px; color: #e2e2e8; font-size: 13px; letter-spacing: .12em; }
.light-content { color: #16161c; padding: 0 clamp(22px,4vw,62px) 28px; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
.metrics div { padding: 0 18px; border-left: 1px solid var(--rule); }
.metrics div:first-child { padding-left: 0; border: 0; }
.metrics dt { color: #4d4f58; font-size: 13px; }
.metrics dd { font: 600 clamp(24px,3.4vw,47px)/1.2 "Segoe UI",sans-serif; letter-spacing: -.035em; margin-top: 7px; font-variant-numeric: tabular-nums; }
.overview-grid { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 26px; margin: 20px 0 18px; }
.overview-grid article { min-width: 0; }
.overview-grid article + article { border-left: 1px solid var(--rule); padding-left: 28px; }
.figure-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.overview-chart { height: 235px; width: 100%; }
.note { color: var(--muted); font-size: 12px; line-height: 1.6; }
details { border-top: 1px solid var(--rule); padding-top: 13px; font-size: 13px; }
#quality { display: grid; gap: 8px; margin-top: 13px; }
#quality div { display: flex; gap: 20px; justify-content: space-between; }
#clusters { padding-bottom: 28px; }
.cluster-header { min-height: 185px; padding-block: 23px 47px; background-position: center 50%; }
.cluster-header::after { height: 36px; }
.cluster-header h1 { font-size: clamp(30px,3.4vw,49px); }
.cluster-layout { display: grid; grid-template-columns: minmax(0,2.25fr) minmax(240px,1fr); gap: 0; margin: 18px clamp(22px,4vw,60px) 0; }
.map-panel { min-width: 0; padding-right: 24px; }
.portrait { min-width: 0; padding-left: 24px; border-left: 1px solid var(--rule); }
.controls { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.controls label { font-size: 12px; color: var(--muted); }
#map { height: clamp(270px,43vh,465px); width: 100%; }
.groups { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.groups button { padding: 5px 7px; font-size: 11px; }
.groups i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
#profile { margin-top: 16px; min-height: 85px; }
#profile strong { display: block; font: 500 clamp(29px,4vw,49px)/1.15 "Segoe UI",sans-serif; margin: 6px 0 5px; }
#radar { height: 218px; width: 100%; }
.point { border-top: 1px solid var(--rule); padding-top: 10px; margin-top: 12px; font-size: 12px; line-height: 1.8; color: #353844; }
.analysis-body { margin: 22px clamp(22px, 4vw, 60px) 28px; min-width: 0; }
.section-note { margin-top: 7px; }
.table-wrap { overflow-x: auto; margin-top: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; color: #242632; }
th, td { text-align: right; white-space: nowrap; padding: 11px 10px; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
thead { background: #e9e8e4; }
th:first-child { text-align: left; }
tbody th { font-weight: 500; }
tbody tr:hover { background: #eeede9; }
.analysis-chart { width: 100%; height: clamp(300px, 41vh, 420px); }
.compact-chart { height: 234px; }
.analysis-callout { margin: 17px 0 0; padding: 6px 0 6px 13px; border-left: 2px solid var(--accent); font-size: 14px; line-height: 1.65; }
.analysis-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(205px, 1fr); gap: 24px; }
.analysis-aside { border-left: 1px solid var(--rule); padding-left: 20px; }
.analysis-aside .note { margin-top: 12px; }
.feature-key { margin-top: 15px; }
.feature-key div { display: grid; grid-template-columns: 27px 1fr; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 12px; }
.feature-key dt { color: var(--accent); font-weight: 700; }
.table-heading { margin-top: 19px; }
@media (max-width: 950px) {
  .sidebar { width: 162px; padding-inline: 15px; }
  .author { width: 162px; padding-inline: 23px; }
  main { margin-left: 162px; }
  .map-panel { padding-right: 15px; }
  .portrait { padding-left: 15px; }
}
@media (max-width: 720px) {
  .sidebar { width: auto; position: static; flex-direction: row; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #3c3c43; }
  .project { font-size: 14px; padding: 0 6px 0 0; border: 0; flex-shrink: 0; }
  nav { margin: 0; display: flex; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; }
  .nav-heading, nav a span { display: none; }
  nav a { font-size: 12px; padding: 8px 6px 8px 8px; border: 0; white-space: nowrap; }
  .source { display: none; }
  .author { position: static; width: auto; min-height: 52px; flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; padding-inline: 22px; }
  main { margin: 0; }
  .cover { min-height: 195px; }
  .cluster-header { min-height: 156px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 16px; }
  .metrics div:nth-child(3) { padding-left: 0; border: 0; }
  .overview-grid, .cluster-layout { grid-template-columns: 1fr; gap: 20px; }
  .analysis-split { grid-template-columns: 1fr; }
  .analysis-aside { border-left: 0; border-top: 1px solid var(--rule); padding: 15px 0 0; }
  .overview-grid article + article, .portrait { padding: 15px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .map-panel { padding-right: 0; }
}
