:root {
  color-scheme: light;
  --paper: #f5f5f0;
  --white: #fff;
  --ink: #131b2b;
  --muted: #546173;
  --line: #d6dce3;
  --accent: #2446e7;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Instrument Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; font: 15px/1.55 var(--sans); color: var(--ink); background: var(--paper); }
button, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: absolute; top: 8px; left: 10px; padding: 8px 12px; z-index: 5; background: white; }
.wrap { width: min(1480px, calc(100% - 104px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); background: #fafaf7; }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; min-height: 65px; gap: 18px; }
.brand, .masthead nav a { color: var(--ink); text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 700 13px var(--mono); letter-spacing: .055em; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; background: var(--accent); color: white; font-size: 15px; letter-spacing: -.08em; }
.masthead nav { display: flex; gap: 28px; font-size: 13px; }
.masthead nav a:hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 370px); align-items: end; gap: 35px; padding: 48px 0 42px; border-bottom: 1px solid var(--line); }
.kicker { margin: 0; color: var(--accent); font: 700 12px/1.5 var(--mono); letter-spacing: .1em; }
.hero .kicker span { display: inline-block; width: 8px; height: 8px; margin-right: 5px; background: var(--accent); }
h1 { margin: 12px 0 15px; font-size: clamp(54px, 6.1vw, 96px); line-height: .99; letter-spacing: -.075em; font-weight: 850; }
h1 em { color: var(--accent); font-style: normal; }
.intro { max-width: 560px; margin: 0; color: var(--muted); font-size: clamp(14px, 1.4vw, 18px); }
.snapshot { overflow: hidden; position: relative; padding: 22px 24px 17px; color: #f7f8ff; background-color: #18254b; background-image: linear-gradient(#8595d325 1px, transparent 1px), linear-gradient(90deg, #8595d325 1px, transparent 1px); background-size: 20px 20px; border: 1px solid #18254b; }
.snapshot-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.snapshot-head { color: #c3d0ff; }
.snapshot time { font-family: var(--mono); }
.snapshot-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 15px 0 20px; }
.snapshot-stats strong { display: block; font: 700 clamp(42px, 5vw, 65px)/1 var(--mono); letter-spacing: -.09em; }
.snapshot-stats span { display: block; margin-top: 5px; font-size: 12px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 29px 0 14px; }
h2 { font-size: clamp(22px, 2.3vw, 34px); line-height: 1.2; letter-spacing: -.035em; margin: 0; }
.section-head p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.view-switch { display: inline-flex; padding: 3px; background: #e9ecf1; border: 1px solid var(--line); white-space: nowrap; }
.view-switch button { padding: 6px 12px; border: 1px solid transparent; background: transparent; font-size: 13px; color: var(--muted); }
.view-switch button[aria-pressed=true] { border-color: #d0d7e1; background: white; color: var(--accent); font-weight: 700; }
.matrix-frame { border: 1px solid #cbd2dc; background: var(--white); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 56px; padding: 9px 15px; }
.legend { display: flex; align-items: center; gap: 8px 15px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.dot { width: 8px; height: 8px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: var(--dot); }
.core { --dot: #2446e7; --cell: #e8eeff; --tone: #1c359d; }
.partial { --dot: #038076; --cell: #e7f4f1; --tone: #165952; }
.ui { --dot: #ad5b19; --cell: #fff2dc; --tone: #784214; }
.unknown { --dot: #70798b; --cell: #edf0f4; --tone: #49576a; }
.na { --dot: #a7adba; --cell: #fafaf8; --tone: #626e80; }
.legend .na .dot { background: transparent; border: 1px solid #8b93a1; }
.filters select { border: 1px solid #cbd2dc; background: #fff; padding: 5px 8px; font-size: 12px; }
.mobile-note { display: block; color: var(--muted); margin: 0; font-size: 12px; padding: 0 15px 7px; }
.table-scroll { overflow: auto; }
.table-scroll:focus-visible { outline-offset: -2px; }
table { border-spacing: 0; table-layout: fixed; width: 100%; min-width: calc(var(--provider-width, 164px) + var(--columns, 17) * 116px); }
th, td { text-align: left; border-top: 1px solid var(--line); }
thead th { background: #f0f2f6; vertical-align: top; }
thead .provider-col, tbody th { position: sticky; left: 0; z-index: 1; width: 164px; border-right: 1px solid var(--line); }
thead .provider-col { padding: 15px; vertical-align: middle; font-size: 12px; }
thead button { width: 100%; min-height: 57px; padding: 9px 7px; border: 0; background: transparent; text-align: left; font-size: 13px; font-weight: 750; }
thead button:hover { background: #e4e9f5; color: var(--accent); }
.stage-number { display: block; color: var(--accent); font: 11px/1.45 var(--mono); }
tbody th { background: #fff; vertical-align: middle; }
.platform { display: flex; gap: 8px; align-items: center; width: 100%; padding: 9px 8px 9px 13px; border: 0; background: transparent; text-align: left; }
.platform:hover .platform-name { color: var(--accent); text-decoration: underline; }
.platform-mark { flex: 0 0 3px; align-self: stretch; background: var(--marker); }
.platform-mark.blue { --marker: #2446e7; }
.platform-mark.teal { --marker: #008778; }
.platform-mark.violet { --marker: #784fd4; }
.platform-mark.orange { --marker: #c3622c; }
.platform-name { display: block; font-size: 13px; font-weight: 800; line-height: 1.4; }
.platform-scope { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 3px; }
td { padding: 4px 3px; }
.cell { width: 100%; min-height: 53px; display: flex; flex-direction: column; justify-content: center; gap: 3px; align-items: start; text-align: left; padding: 5px 6px; border: 1px solid transparent; background: var(--cell); color: var(--tone); }
.cell:hover { border-color: var(--dot); }
.cell strong { display: flex; align-items: center; gap: 4px; font-size: 11px; line-height: 1.32; }
.cell .dot { width: 6px; height: 6px; }
.cell small { font: 10px/1.4 var(--mono); }
.cell.na { align-items: center; background-image: repeating-linear-gradient(135deg, #fff0 0 5px, #b7bec014 5px 6px); }
.cell.na span { font-family: var(--mono); }
.matrix-footer { display: flex; justify-content: space-between; gap: 12px; padding: 8px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.access-table { min-width: 900px; }
.access-table thead th:not(.provider-col) { padding: 13px 9px; font-size: 12px; }
.access-table td { padding: 10px 9px; vertical-align: middle; font-size: 12px; color: var(--muted); }
.access-table .gate { display: inline-block; padding: 2px 5px; color: var(--tone); background: var(--cell); white-space: nowrap; }
.method { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; border-top: 1px solid var(--line); padding: 29px 0 34px; margin-top: 37px; }
.method h3 { font-size: 18px; margin: 0; }
.method p { font-size: 14px; color: var(--muted); margin: 11px 0 0; max-width: 64ch; }
.method-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; font-size: 13px; }
.page-footer { display: flex; justify-content: space-between; padding: 13px 0 20px; border-top: 1px solid var(--line); color: var(--muted); font: 11px var(--mono); }
dialog { inset: 0 0 0 auto; margin: 0; width: min(100%, 510px); max-width: 100%; max-height: 100%; height: 100%; border: 0; border-left: 1px solid var(--line); color: var(--ink); padding: 24px clamp(18px, 4vw, 35px) 35px; background: #fbfbf7; box-shadow: -15px 0 70px #141c3425; }
dialog::backdrop { background: #151d3c66; }
body:has(dialog[open]) { overflow: hidden; }
.detail-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.close { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); background: white; font-size: 24px; line-height: 1; }
#detail-title { margin-top: 18px; }
#detail-body > p { margin: 13px 0; }
.detail-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; background: var(--cell); color: var(--tone); font-size: 12px; }
.detail-note { background: #eef1fa; border-left: 3px solid var(--accent); padding: 8px 11px; font-size: 13px; }
.detail-list { display: grid; grid-template-columns: 6em 1fr; gap: 8px 12px; padding: 12px 0; margin: 13px 0; border-block: 1px solid var(--line); font-size: 13px; }
.detail-list dt { font-weight: 750; }
.detail-list dd { margin: 0; color: var(--muted); }
.detail-sources, .stage-platforms { padding: 0; margin-top: 7px; list-style: none; }
.detail-sources li { margin-top: 7px; font-size: 13px; }
#detail-body h3 { font-size: 15px; margin: 20px 0 0; }
.stage-platforms button { display: flex; justify-content: space-between; gap: 12px; padding: 10px; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.stage-platforms button:hover { background: #e9eeff; }
.stage-platforms span { font-size: 12px; color: var(--muted); }
@media (max-width: 1220px) {
  .wrap { width: calc(100% - 48px); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .masthead-inner { min-height: 54px; }
  .masthead nav { gap: 10px; font-size: 11px; }
  .brand { gap: 6px; font-size: 10px; }
  .brand-mark { width: 25px; height: 25px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 18px; padding: 25px 0 23px; }
  h1 { font-size: clamp(49px, 12vw, 70px); margin: 8px 0 13px; }
  .snapshot { padding: 11px 14px 10px; }
  .snapshot-stats { margin: 9px 0 12px; }
  .snapshot-stats strong { font-size: 36px; }
  .section-head { align-items: start; flex-direction: column; margin-top: 20px; }
  .toolbar { padding: 8px; }
  .legend { gap: 5px 8px; font-size: 10px; }
  .filters select { padding: 4px 2px; font-size: 11px; }
  thead .provider-col, tbody th { width: 118px; }
  .platform { padding-left: 7px; gap: 5px; }
  .platform-name { font-size: 12px; }
  .platform-scope { font-size: 9px; }
  .method { grid-template-columns: 1fr; gap: 22px; margin-top: 25px; padding: 22px 0; }
}

.source-index { padding: 25px 0 30px; border-top: 1px solid var(--line); }
#source-groups { margin-top: 15px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 9px; align-items: start; }
#source-groups details { background: #fafaf7; border: 1px solid var(--line); padding: 10px 12px; }
#source-groups summary { font-weight: 700; font-size: 13px; }
#source-groups summary:hover { color: var(--accent); }
#source-groups .detail-sources { margin-bottom: 0; }
.detail-link, .action-source { font-size: 12px; }
.action-source { white-space: nowrap; }

.route-controls { display: flex; gap: 6px; margin: 0 0 12px; font-size: 12px; }
.route-controls button { border: 1px solid var(--line); background: white; padding: 4px 9px; }
.route-controls button[aria-pressed="true"] { border-color: var(--ink); font-weight: 750; }
.cell.route-highlight { border-color: var(--dot); }
.cell.route-muted:not(:hover):not(:focus-visible) { background-color: #f8f8fa; color: #687385; }
.cell.route-muted:not(:hover):not(:focus-visible) .dot { background: #a4adbb; }

.filters { display: flex; flex-wrap: wrap; gap: 5px; }
.group-head th:not(.provider-col) { background: #e1e7f3; color: #344769; padding: 5px 8px; font-size: 11px; border-left: 1px solid #cbd2dc; }
.platform { padding-bottom: 4px; }
.platform-source { display: inline-block; margin: 0 6px 7px 24px; color: var(--accent); font-size: 10px; }
@media (max-width: 650px) {
  table { --provider-width: 118px; }
  .platform-source { margin-left: 15px; }
}
