:root {
  --ink: #17211a;
  --muted: #667169;
  --paper: #f3f5f1;
  --surface: #ffffff;
  --surface-soft: #e8ece8;
  --line: #d5ddd7;
  --forest: #155c49;
  --forest-dark: #103f34;
  --coral: #c24d39;
  --amber: #9a680f;
  --blue: #386ca8;
  --violet: #76538f;
  --focus: #276fc3;
  --shadow: 0 8px 24px rgba(23, 33, 26, 0.07);
  --sans: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  outline-color: var(--focus);
  outline-offset: 3px;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 8px 12px;
  color: #ffffff;
  background: var(--forest-dark);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(243, 245, 241, 0.96);
}

.header-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: var(--forest);
  border-radius: 4px;
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.header-divider {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.data-status-bar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.data-status {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.data-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
}

.data-status strong {
  color: var(--blue);
  font-weight: 500;
}

.data-status time {
  margin-left: 3px;
  padding-left: 11px;
  border-left: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.data-status[data-state="loading"] .data-status-dot {
  animation: pulse 1.2s ease-in-out infinite;
}

.data-status[data-state="fresh"] .data-status-dot {
  background: var(--forest);
}

.data-status[data-state="fresh"] strong {
  color: var(--forest);
}

.data-status[data-state="warning"] .data-status-dot {
  background: var(--amber);
}

.data-status[data-state="warning"] strong {
  color: #775014;
}

.data-status[data-state="error"] .data-status-dot {
  background: var(--coral);
}

.data-status[data-state="error"] strong {
  color: #912f20;
}

@keyframes pulse {
  50% { opacity: 0.35; transform: scale(0.75); }
}

.intro {
  min-height: 298px;
  padding-block: 58px 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(430px, 0.8fr);
  align-items: end;
  gap: 64px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #a9cdc0;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.26;
}

.intro-deck {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.intro-stats {
  margin-bottom: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.intro-stats div {
  min-height: 82px;
  padding: 14px 17px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.intro-stats dt {
  color: var(--muted);
  font-size: 12px;
}

.intro-stats dd {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.control-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.control-inner {
  min-height: 92px;
  padding-block: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.control-block {
  min-width: 0;
}

.region-control {
  flex: 1 1 auto;
}

.control-label {
  margin-bottom: 7px;
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.region-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 2px 1px 4px;
  scrollbar-width: thin;
}

.region-tabs button,
.segmented button,
.metric-tabs button {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}

.region-tabs button[aria-selected="true"] {
  color: #ffffff;
  background: var(--ink);
}

.segmented {
  padding: 3px;
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.segmented button svg {
  width: 15px;
  height: 15px;
}

.segmented button[aria-pressed="true"] {
  color: #ffffff;
  background: var(--forest-dark);
}

.trend-band {
  color: #ffffff;
  background: var(--forest-dark);
}

.trend-shell {
  padding-block: 42px 36px;
}

.trend-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.trend-heading h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
}

.metric-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.metric-tabs button {
  min-height: 34px;
  color: #b9d1c8;
  border-color: rgba(255, 255, 255, 0.16);
}

.metric-tabs button[aria-pressed="true"] {
  color: var(--forest-dark);
  background: #ffffff;
}

.chart-legend {
  min-height: 34px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dbe9e4;
  font-size: 13px;
}

.legend-swatch {
  width: 24px;
  height: 3px;
  border-radius: 0;
}

.legend-swatch.weplay {
  background: #72c8a8;
}

.legend-swatch.toptop {
  background: #f2a18f;
}

.chart-wrap {
  position: relative;
  min-height: 360px;
  margin-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

#trend-chart {
  width: 100%;
  height: 360px;
  overflow: visible;
}

.chart-grid {
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 1;
}

.chart-axis {
  fill: #abc5bb;
  font-family: var(--sans);
  font-size: 11px;
}

.chart-axis-title {
  fill: #dbe9e4;
  font-family: var(--sans);
  font-size: 12px;
}

.chart-line {
  fill: none;
  stroke-width: 2.5;
}

.chart-line.weplay,
.chart-point.weplay {
  stroke: #72c8a8;
}

.chart-line.toptop,
.chart-point.toptop {
  stroke: #f2a18f;
}

.chart-point {
  fill: var(--forest-dark);
  stroke-width: 3;
}

.release-marker {
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.release-label {
  fill: #dbe9e4;
  font-family: var(--sans);
  font-size: 11px;
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  max-width: 230px;
  padding: 8px 10px;
  color: var(--ink);
  background: #ffffff;
  border-radius: 4px;
  box-shadow: var(--shadow);
  font-size: 12px;
  line-height: 1.5;
  pointer-events: none;
}

.chart-tooltip strong {
  display: block;
  font-weight: 500;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #c4d8d0;
  text-align: center;
}

.chart-foot {
  min-height: 42px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #abc5bb;
  font-size: 12px;
}

.chart-foot > :first-child {
  margin-right: auto;
}

.line-key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.line-sample {
  width: 22px;
  height: 0;
  border-top: 2px solid #dbe9e4;
}

.line-sample.dotted {
  border-top-style: dotted;
}

.comparison,
.coverage {
  padding-block: 56px 68px;
}

.section-heading {
  margin-bottom: 26px;
  padding-bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid var(--ink);
}

.section-heading h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
}

.section-heading > p {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 13px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--forest);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-card.toptop {
  border-top-color: var(--coral);
}

.product-card.unavailable {
  border-top-color: #8a948e;
  box-shadow: none;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-soft);
}

.app-icon-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.app-icon-placeholder svg {
  width: 24px;
  height: 24px;
}

.product-title {
  min-width: 0;
  flex: 1;
}

.product-title h3 {
  margin-bottom: 2px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
}

.product-title p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.availability {
  min-height: 24px;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  color: #0f5745;
  background: #d9eee6;
  font-size: 11px;
  white-space: nowrap;
}

.availability.unavailable {
  color: #536058;
  background: #e5eae7;
}

.metric-list {
  margin: 22px 0 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metric-list div {
  min-height: 78px;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8faf8;
}

.metric-list dt {
  color: var(--muted);
  font-size: 11px;
}

.metric-list dd {
  margin-bottom: 0;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.product-note {
  min-height: 50px;
  margin-bottom: 14px;
  color: #3e4a43;
  font-size: 13px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-size: 12px;
  text-underline-offset: 3px;
}

.product-link svg {
  width: 13px;
  height: 13px;
}

.empty-card-message {
  margin: 28px 0 8px;
  color: var(--muted);
}

.updates-band {
  color: #ffffff;
  background: #1d2830;
}

.updates-layout {
  padding-block: 52px 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 64px;
}

.section-heading.inverse {
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.section-heading.inverse > p {
  color: #a9b8c2;
}

.release-item {
  padding: 19px 0 21px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.release-item:first-child {
  padding-top: 3px;
}

.release-meta {
  color: #9eb2bd;
  font-size: 12px;
}

.release-meta time,
.release-meta strong {
  display: block;
}

.release-meta strong {
  color: #ffffff;
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.release-copy h3 {
  margin-bottom: 7px;
  font-size: 16px;
  font-weight: 500;
}

.release-copy p {
  margin-bottom: 0;
  color: #c7d2d8;
  font-size: 13px;
  white-space: pre-line;
}

.binary-note {
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.priority-label {
  padding: 2px 7px;
  display: inline-block;
  border-radius: 3px;
  color: #edd7a9;
  background: rgba(191, 137, 39, 0.2);
  font-size: 11px;
}

.binary-note h3 {
  margin: 16px 0 9px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
}

.binary-note p {
  color: #c7d2d8;
  font-size: 13px;
}

.binary-note dl {
  margin: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.binary-note dl div {
  padding-block: 10px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.binary-note dt {
  color: #9eb2bd;
  font-size: 12px;
}

.binary-note dd {
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 500;
}

.coverage {
  padding-bottom: 72px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.coverage-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.coverage-table th,
.coverage-table td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.coverage-table th {
  color: var(--muted);
  background: #e9eeea;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.coverage-table td {
  font-size: 13px;
}

.coverage-table td:first-child {
  font-weight: 500;
  white-space: nowrap;
}

.table-app {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.table-app span:last-child {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.table-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.table-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest);
  content: "";
}

.table-status.missing::before {
  background: #8a948e;
}

.method-band {
  border-top: 1px solid var(--line);
  background: #e8ece8;
}

.method-layout {
  padding-block: 46px 52px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 64px;
}

.method-layout h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
}

.method-grid {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.method-grid dt {
  margin-bottom: 7px;
  color: var(--forest-dark);
  font-weight: 500;
}

.method-grid dd {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  color: #c5d0ca;
  background: var(--ink);
}

.footer-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
}

@media (max-width: 960px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .intro-stats {
    max-width: 600px;
  }

  .updates-layout,
  .method-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .binary-note {
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 32px, 1180px);
  }

  .header-inner {
    min-height: 58px;
  }

  .header-meta .header-divider,
  .header-meta span:last-child {
    display: none;
  }

  .data-status {
    min-height: 42px;
    padding-block: 6px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .intro {
    min-height: 0;
    padding-block: 44px 38px;
  }

  h1 {
    font-size: 35px;
  }

  .control-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .platform-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .platform-control .control-label {
    margin-bottom: 0;
  }

  .trend-shell {
    padding-block: 34px 30px;
  }

  .trend-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .metric-tabs {
    width: 100%;
    justify-content: flex-start;
  }

  .chart-wrap,
  #trend-chart {
    min-height: 330px;
    height: 330px;
  }

  .chart-foot {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .chart-foot > :first-child {
    width: 100%;
  }

  .comparison,
  .coverage {
    padding-block: 44px 54px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .release-item {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 16px;
  }

  .method-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .coverage-table {
    min-width: 740px;
  }
}

@media (max-width: 430px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .header-meta {
    display: none;
  }

  h1 {
    font-size: 31px;
  }

  .intro-stats div {
    min-height: 72px;
    padding: 12px 13px;
  }

  .platform-control {
    display: block;
  }

  .platform-control .control-label {
    margin-bottom: 7px;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
  }

  .metric-tabs button {
    flex: 1 1 calc(50% - 4px);
  }

  .product-card {
    padding: 19px 16px;
  }

  .product-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .availability {
    margin-left: 72px;
  }

  .metric-list div {
    padding-inline: 11px;
  }

  .release-item {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .release-meta time,
  .release-meta strong {
    display: inline;
    margin-right: 8px;
  }

  .updates-layout {
    gap: 34px;
  }

  .footer-inner {
    min-height: 0;
    padding-block: 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; }
}
