:root {
  color-scheme: dark;
  --bg: #09080d;
  --panel: rgba(18, 16, 23, 0.9);
  --panel-strong: rgba(28, 23, 34, 0.96);
  --line: rgba(255, 255, 255, 0.12);
  --text: #fff8e8;
  --muted: #c9b8a7;
  --pink: #ff3fa4;
  --cyan: #12e3ff;
  --gold: #ffd166;
  --green: #5dff9d;
  --red: #ff5b5b;
  --blue: #68a7ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.5;
  background: #f6f9fc;
}

body[data-page="cpu"],
body[data-page="gpu"],
body[data-page="notebook"],
body[data-page="server"],
body[data-page="sources"] {
  color: #162235;
  background: #ffffff;
  min-width: max-content;
}

body[data-page="cpu"] .site-header,
body[data-page="gpu"] .site-header,
body[data-page="notebook"] .site-header,
body[data-page="server"] .site-header,
body[data-page="sources"] .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: #d8e3ee;
}

body[data-page="cpu"] .site-header,
body[data-page="gpu"] .site-header,
body[data-page="notebook"] .site-header,
body[data-page="server"] .site-header {
  position: relative;
  top: auto;
  width: max-content;
  min-width: 100vw;
}

body[data-page="cpu"] .nav,
body[data-page="gpu"] .nav,
body[data-page="notebook"] .nav,
body[data-page="server"] .nav {
  width: max-content;
  min-width: 100vw;
  max-width: none;
  margin: 0;
}

body[data-page="cpu"] .brand strong,
body[data-page="gpu"] .brand strong,
body[data-page="notebook"] .brand strong,
body[data-page="server"] .brand strong,
body[data-page="sources"] .brand strong,
body[data-page="cpu"] .nav-link.active,
body[data-page="gpu"] .nav-link.active,
body[data-page="notebook"] .nav-link.active,
body[data-page="server"] .nav-link.active,
body[data-page="sources"] .nav-link.active {
  color: #162235;
}

body[data-page="cpu"] .brand span,
body[data-page="gpu"] .brand span,
body[data-page="notebook"] .brand span,
body[data-page="server"] .brand span,
body[data-page="sources"] .brand span,
body[data-page="cpu"] .nav-link,
body[data-page="gpu"] .nav-link,
body[data-page="notebook"] .nav-link,
body[data-page="server"] .nav-link,
body[data-page="sources"] .nav-link {
  color: #526173;
}

body[data-page="cpu"] .nav-link:hover,
body[data-page="gpu"] .nav-link:hover,
body[data-page="notebook"] .nav-link:hover,
body[data-page="server"] .nav-link:hover,
body[data-page="sources"] .nav-link:hover,
body[data-page="cpu"] .nav-link.active,
body[data-page="gpu"] .nav-link.active,
body[data-page="notebook"] .nav-link.active,
body[data-page="server"] .nav-link.active,
body[data-page="sources"] .nav-link.active {
  border-color: #d8e3ee;
  background: #eef7ff;
}

body[data-page="cpu"] .brand-mark,
body[data-page="gpu"] .brand-mark,
body[data-page="notebook"] .brand-mark,
body[data-page="server"] .brand-mark,
body[data-page="sources"] .brand-mark {
  color: #ffffff;
  background: #1f70c1;
  border-color: #1f70c1;
  box-shadow: none;
}

body[data-page="cpu"] .hero.compact,
body[data-page="gpu"] .hero.compact,
body[data-page="notebook"] .hero.compact,
body[data-page="server"] .hero.compact,
body[data-page="sources"] .hero.compact {
  color: #162235;
  background: #f3f7fb;
  border-bottom: 1px solid #d8e3ee;
}

body[data-page="cpu"] .hero.compact,
body[data-page="gpu"] .hero.compact,
body[data-page="notebook"] .hero.compact,
body[data-page="server"] .hero.compact {
  min-height: 108px;
  width: max-content;
  max-width: none;
  min-width: 100vw;
  padding-top: 20px;
  padding-bottom: 14px;
  padding-right: 32px;
  padding-left: 32px;
}

body[data-page="cpu"] {
  background: #e9eff5;
}

body[data-page="cpu"] .hero.compact {
  min-height: 142px;
  padding: 24px 36px 22px;
  color: #ffffff;
  background-color: #102a43;
  background-image: url("assets/cpu-header-hardware.jpg");
  background-position: center 48%;
  background-size: cover;
  background-blend-mode: multiply;
  border-bottom-color: #0a2035;
}

body[data-page="cpu"] .hero.compact .hero-copy {
  display: grid;
  grid-template-columns: minmax(360px, 720px) minmax(320px, 1fr);
  align-items: end;
  column-gap: 48px;
  width: min(1540px, calc(100vw - 72px));
  max-width: none;
}

body[data-page="cpu"] .hero.compact .eyebrow {
  grid-column: 1;
  margin-bottom: 5px;
  color: #7fc1ff;
  font-size: 11px;
}

body[data-page="cpu"] .hero.compact h1 {
  grid-column: 1;
  margin: 0;
  color: #ffffff;
  font-size: 44px;
  font-weight: 850;
  line-height: 1.06;
}

body[data-page="cpu"] .hero.compact p:not(.eyebrow) {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 560px;
  margin: 0 0 4px;
  padding-left: 22px;
  border-left: 1px solid #55718c;
  color: #d5e3ef;
  font-size: 15px;
  line-height: 1.75;
}

body[data-page="cpu"] .hero.compact .hero-copy,
body[data-page="gpu"] .hero.compact .hero-copy,
body[data-page="notebook"] .hero.compact .hero-copy,
body[data-page="server"] .hero.compact .hero-copy {
  width: max-content;
  max-width: min(960px, calc(100vw - 64px));
}

body[data-page="cpu"] .hero h1,
body[data-page="gpu"] .hero h1,
body[data-page="notebook"] .hero h1,
body[data-page="server"] .hero h1,
body[data-page="sources"] .hero h1 {
  color: #162235;
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 46px);
  text-shadow: none;
}

body[data-page="cpu"] .hero p,
body[data-page="gpu"] .hero p,
body[data-page="notebook"] .hero p,
body[data-page="server"] .hero p,
body[data-page="sources"] .hero p {
  color: #526173;
}

body[data-page="cpu"] .eyebrow,
body[data-page="gpu"] .eyebrow,
body[data-page="notebook"] .eyebrow,
body[data-page="server"] .eyebrow,
body[data-page="sources"] .eyebrow {
  color: #1f70c1;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
  background: rgba(9, 8, 13, 0.72);
  border-bottom: 1px solid var(--line);
}

body[data-page="home"] {
  color: #162235;
}

body[data-page="home"] .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: #d8e3ee;
}

body[data-page="home"] .brand strong,
body[data-page="home"] .nav-link.active {
  color: #162235;
}

body[data-page="home"] .brand span,
body[data-page="home"] .nav-link {
  color: #526173;
}

body[data-page="home"] .nav-link:hover,
body[data-page="home"] .nav-link.active {
  border-color: #d8e3ee;
  background: #eef7ff;
}

body[data-page="home"] .brand-mark {
  color: #ffffff;
  background: #1f70c1;
  border-color: #1f70c1;
  box-shadow: none;
}

body[data-page="home"] .eyebrow {
  color: #1f70c1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #09080d;
  font-weight: 900;
  background: #1f70c1;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 28px rgba(255, 63, 164, 0.35);
}

.brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-link {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.language-switch {
  min-width: 42px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #b9c9d8;
  border-radius: 4px;
  color: #315d86;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.language-switch:hover {
  color: #ffffff;
  border-color: #1f70c1;
  background: #1f70c1;
}

html[lang="en"] body[data-page="cpu"] .page-chart-controls {
  grid-template-columns: 1fr;
  gap: 8px;
}

html[lang="en"] body[data-page="cpu"] .page-chart-controls .mega-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}

html[lang="en"] body[data-page="cpu"] .page-chart-controls .mega-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

html[lang="en"] body[data-page="cpu"] .page-chart-controls .mega-search {
  flex: 1 1 300px;
  max-width: 420px;
}

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px 46px;
  min-height: 420px;
  display: grid;
  align-content: end;
}

.hero-poster {
  max-width: none;
  min-height: 260px;
  padding: 48px max(24px, calc((100vw - 1320px) / 2)) 34px;
  color: #162235;
  border-bottom: 1px solid #d8e3ee;
  background: #f3f7fb;
}

.hero-poster .hero-copy {
  position: relative;
  max-width: 920px;
  padding: 22px 0;
}

.hero-poster .hero-copy::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 10px;
  width: 8px;
  height: calc(100% - 20px);
  background: #1f70c1;
  box-shadow: none;
}

.hero-poster h1 {
  max-width: 720px;
  color: #162235;
  font-size: clamp(42px, 7vw, 88px);
  text-shadow: none;
}

.hero-poster p:not(.eyebrow) {
  max-width: 620px;
  color: #526173;
  font-size: 20px;
  font-weight: 700;
}

.hero.compact {
  min-height: 170px;
  padding-top: 32px;
  padding-bottom: 24px;
}

body[data-page="cpu"] .content,
body[data-page="gpu"] .content,
body[data-page="notebook"] .content,
body[data-page="server"] .content {
  width: max-content;
  max-width: none;
  min-width: 100vw;
  margin-right: 0;
  margin-left: 0;
  padding-right: 24px;
  padding-left: 24px;
  background: #ffffff;
}

body[data-page="cpu"] .content {
  padding-top: 14px;
  background: #e9eff5;
}

.hero-copy {
  max-width: 840px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.34);
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.hero p {
  max-width: 760px;
  color: #f3dfcc;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  color: #120d13;
  background: var(--gold);
}

.content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.mega-shell {
  width: min(1780px, calc(100vw - 28px));
  margin: -18px auto 70px;
  padding: 10px;
  border: 1px solid #d8e3ee;
  background: #f7fbff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.mega-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px 16px;
  background: #f3f7fb;
  border: 1px solid #d8e3ee;
  border-bottom: 0;
}

.mega-topline h2 {
  margin-bottom: 0;
  color: #152033;
  font-size: clamp(28px, 4vw, 56px);
  text-shadow: none;
}

.mega-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.mega-meta span,
.mega-meta a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 10px;
  color: #120d13;
  background: var(--gold);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.mega-meta a {
  background: var(--cyan);
}

.mega-controls {
  position: relative;
  padding: 12px;
  border: 1px solid #d8e3ee;
  border-bottom: 0;
  background: #ffffff;
}

.mega-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mega-tab {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid #d5e2ef;
  color: #205eaf;
  background: #f2f8ff;
  font: inherit;
  font-weight: 1000;
  cursor: pointer;
  transform: none;
}

.mega-tab:hover,
.mega-tab.active {
  color: #ffffff;
  border-color: #1f70c1;
  background: #1f70c1;
  box-shadow: none;
}

.mega-tab,
.mega-tab * {
  letter-spacing: 0;
}

.mega-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.zoom-tools {
  display: flex;
  gap: 6px;
  align-items: flex-end;
}

.zoom-tools button {
  min-width: 42px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #d5e2ef;
  color: #1f70c1;
  background: #f2f8ff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.zoom-tools button:hover {
  color: #ffffff;
  background: #1f70c1;
}

.zoom-tools button.active {
  color: #ffffff;
  border-color: #1262bd;
  background: #1262bd;
}

.mega-search {
  min-width: min(420px, 100%);
}

.mega-note {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  color: #526173;
  border: 1px solid #d8e3ee;
  border-top: 0;
  background: #ffffff;
  font-size: 13px;
}

.mega-note strong {
  color: #d8443b;
}

.home-biglinks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #d8e3ee;
  border-bottom: 0;
  background: #ffffff;
}

.home-biglinks a {
  min-height: 126px;
  padding: 16px;
  color: #1a2a3d;
  text-decoration: none;
  background: #f8fbfe;
  border: 1px solid #d8e3ee;
}

.home-biglinks a:hover {
  border-color: #1f70c1;
  box-shadow: inset 4px 0 0 #1f70c1;
}

.home-biglinks strong {
  display: block;
  margin-bottom: 10px;
  color: #1f70c1;
  font-size: 22px;
}

.home-biglinks span {
  color: #526173;
  font-size: 14px;
}

.page-chart-controls {
  position: sticky;
  top: auto;
  left: 0;
  z-index: 8;
  width: calc(100vw - 24px);
  min-width: 320px;
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #d8e3ee;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

body[data-page="cpu"] .page-chart-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 9px 12px;
  background: #ffffff;
}

body[data-page="cpu"] .page-chart-controls .mega-tabs {
  flex-wrap: nowrap;
  margin-bottom: 0;
}

body[data-page="cpu"] .page-chart-controls .mega-actions {
  justify-content: flex-end;
  min-width: 0;
}

body[data-page="cpu"] .page-chart-controls .mega-metrics {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

body[data-page="cpu"] .page-chart-controls .mega-metrics .seg-button {
  padding-right: 11px;
  padding-left: 11px;
  color: #5a6a7e;
  border-color: #d5e2ef;
  background: #f7fbff;
  white-space: nowrap;
}

body[data-page="cpu"] .page-chart-controls .mega-metrics .seg-button.active,
body[data-page="cpu"] .page-chart-controls .mega-metrics .seg-button:hover {
  color: #0b4e98;
  border-color: #8fb9df;
  background: #dcecff;
}

body[data-page="cpu"] .page-chart-controls .mega-tab {
  min-height: 36px;
  padding: 7px 11px;
}

body[data-page="cpu"] .page-chart-controls .mega-search {
  min-width: 260px;
  max-width: 360px;
}

.neighbor-dock {
  position: fixed;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 12px;
  z-index: 20;
  box-sizing: border-box;
  width: auto;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  margin: 0;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid #c7d7e6;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(35, 58, 84, 0.16);
  backdrop-filter: blur(12px);
}

.neighbor-dock[hidden] {
  display: none;
}

.neighbor-dock-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  padding-right: 40px;
}

.neighbor-dock-head > div {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 6px 12px;
  min-width: 0;
}

.neighbor-dock-head span {
  color: #1262bd;
  font-size: 12px;
  font-weight: 900;
}

.neighbor-dock-head strong {
  overflow: hidden;
  color: #172438;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.neighbor-dock-head small {
  overflow: hidden;
  color: #667487;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.neighbor-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #cbd9e7;
  border-radius: 4px;
  color: #42536a;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.neighbor-ranges {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.neighbor-range {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 5px;
  padding-left: 10px;
  border-left: 2px solid #d5e1ec;
}

.neighbor-range:first-child {
  padding-left: 0;
  border-left: 0;
}

.neighbor-range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #5d6c7f;
  font-size: 11px;
}

.neighbor-range-head strong {
  color: #24344b;
  font-size: 11px;
}

.neighbor-range.higher .neighbor-range-head strong {
  color: #1262bd;
}

.neighbor-range.current .neighbor-range-head strong {
  color: #0b4e98;
}

.neighbor-range.lower .neighbor-range-head strong {
  color: #59697d;
}

.neighbor-range-cards {
  display: grid;
  grid-auto-columns: minmax(156px, 210px);
  grid-auto-flow: column;
  gap: 6px;
}

.neighbor-card {
  display: grid;
  gap: 2px;
  min-height: 82px;
  padding: 7px 9px;
  border: 1px solid #d5e1ec;
  border-radius: 5px;
  color: #24344b;
  background: #f8fbfe;
  text-align: left;
  cursor: pointer;
}

.neighbor-card span,
.neighbor-card small {
  overflow: hidden;
  color: #667487;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.neighbor-card strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.neighbor-relation {
  overflow: hidden;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.neighbor-relation.higher {
  color: #1262bd;
}

.neighbor-relation.current,
.neighbor-relation.equal {
  color: #0b6f78;
}

.neighbor-relation.lower {
  color: #68778a;
}

.neighbor-card.counterpart {
  border-top-color: #e45a4f;
}

.neighbor-card.external {
  cursor: default;
  border-style: dashed;
  background: #fbfcfe;
}

.neighbor-card.selected {
  border-color: #1262bd;
  color: #0b4e98;
  background: #eaf4ff;
  box-shadow: inset 0 0 0 1px #1262bd;
}

.neighbor-card:hover,
.neighbor-close:hover {
  border-color: #4589cc;
  background: #eef6ff;
}

.single-chart {
  position: relative;
  width: max-content;
  margin-bottom: 34px;
}

.chart-canvas {
  width: max-content;
  transform-origin: top left;
}

.chart-canvas.zoomed {
  zoom: var(--chart-zoom);
  transform: none;
}

.matrix-grid.zoomed {
  zoom: var(--chart-zoom);
}

body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) {
  min-width: 0;
  overflow-x: hidden;
}

body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .site-header,
body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .nav,
body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .content {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .single-chart,
body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .chart-canvas,
body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .matrix-board {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .matrix-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .matrix-scroll::-webkit-scrollbar {
  display: none;
}

body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .matrix-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.notice {
  margin-bottom: 26px;
  padding: 16px 18px;
  border: 1px solid #d8e3ee;
  border-left: 4px solid #1f70c1;
  color: #526173;
  background: #f7fbff;
  box-shadow: none;
}

.cpu-method-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-left-width: 3px;
  background: #ffffff;
  font-size: 12px;
}

.cpu-method-note > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.cpu-method-note strong {
  color: #173d63;
  font-size: 13px;
  white-space: nowrap;
}

.cpu-method-note details {
  position: relative;
  flex: 0 0 auto;
}

.cpu-method-note summary {
  color: #1262bd;
  font-weight: 800;
  cursor: pointer;
}

.cpu-method-note details[open] p {
  position: absolute;
  z-index: 15;
  top: 26px;
  right: 0;
  width: min(720px, calc(100vw - 48px));
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #c8d7e5;
  color: #43556a;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(28, 52, 78, 0.18);
  line-height: 1.65;
}

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

.stat-card,
.source-card,
.board {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.matrix-board {
  position: relative;
  overflow: hidden;
  border: 1px solid #cfdce8;
  color: #1f2b3d;
  background: #fbfdff;
  box-shadow: none;
}

.matrix-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  color: #1d2430;
  background: #f3f7fb;
  border-bottom: 1px solid #dde8f3;
}

body[data-page="cpu"] .matrix-title {
  align-items: center;
  padding: 12px 16px 13px;
  background: #f8fafc;
}

body[data-page="cpu"] .matrix-title > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr);
  grid-template-rows: auto auto;
  align-items: baseline;
  column-gap: 16px;
  max-width: 1120px;
}

body[data-page="cpu"] .matrix-title .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: #1760a8;
  font-size: 10px;
}

body[data-page="cpu"] .matrix-title h2 {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  color: #14263a;
  font-size: 28px;
  font-weight: 850;
  line-height: 1.15;
}

body[data-page="cpu"] .matrix-title p:not(.eyebrow) {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding-left: 16px;
  border-left: 1px solid #d4e0eb;
  font-size: 12px;
  line-height: 1.55;
}

.matrix-title h2 {
  color: #111824;
}

.matrix-title p:not(.eyebrow) {
  margin-bottom: 0;
  color: #526173;
}

.matrix-title .eyebrow {
  color: #e24a91;
}

.matrix-title .board-tools span {
  color: #526173;
}

.matrix-vendor-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 34px;
  color: #455364;
  background: #f7f9fc;
  border-bottom: 1px solid #dde8f3;
  font-size: 13px;
}

.matrix-vendor-strip strong {
  padding: 7px 14px;
  color: #1262bd;
  font-size: 16px;
  text-transform: uppercase;
}

.matrix-vendor-strip strong:last-child {
  color: #e34b3f;
  text-align: right;
}

.matrix-vendor-strip span {
  padding: 7px 14px;
  border-right: 1px solid #dde8f3;
  border-left: 1px solid #dde8f3;
}

.matrix-scroll {
  overflow: visible;
  max-height: none;
  background: #fbfdff;
}

.matrix-grid {
  display: grid;
  min-width: 1880px;
  grid-template-rows: 44px repeat(42, 28px);
  grid-auto-rows: 28px;
}

.matrix-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 1px;
  min-height: 44px;
  padding: 4px 6px;
  border-right: 1px solid #dde8f3;
  border-bottom: 1px solid #dde8f3;
  color: #1760b7;
  background: #eef7ff;
  text-align: center;
  font-size: 11px;
}

.matrix-head strong {
  color: inherit;
  font-size: 12px;
}

.matrix-head span {
  color: #506070;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.matrix-head.amd {
  color: #df483f;
  background: #fff0ed;
}

.matrix-head.nvidia,
.matrix-head.intel,
.matrix-head.apple,
.matrix-head.qualcomm,
.matrix-head.ampere {
  color: #1760b7;
  background: #eef7ff;
}

.matrix-head.huawei {
  color: #a52332;
  background: #fff0f2;
}

.matrix-head.unisoc {
  color: #087078;
  background: #eaf8f8;
}

.matrix-head.mediatek {
  color: #9a5610;
  background: #fff5e8;
}

.matrix-head.samsung,
.matrix-head.google,
.matrix-head.microsoft {
  color: #245f8f;
  background: #edf6fb;
}

.matrix-head.rockchip,
.matrix-head.cix {
  color: #176b66;
  background: #eaf7f5;
}

.matrix-head.allwinner,
.matrix-head.amlogic {
  color: #456b2e;
  background: #f0f7e9;
}

.matrix-head.alibaba,
.matrix-head.aws {
  color: #9b5815;
  background: #fff4e7;
}

.matrix-head.fujitsu {
  color: #8d3340;
  background: #faeef0;
}

.matrix-head.zhaoxin {
  color: #0b6c64;
  background: #e9f8f5;
}

.matrix-head.hygon {
  color: #8a365c;
  background: #fbedf3;
}

.matrix-head.phytium {
  color: #75530b;
  background: #fff7d8;
}

.matrix-head.loongson {
  color: #8f1f2d;
  background: #fff0f1;
}

.matrix-head.reference {
  color: #354c67;
  background: #eef2f6;
  box-shadow: inset 0 3px 0 #6e8298;
}

.matrix-head.moore {
  color: #0b6c64;
  background: #e9f8f5;
}

.matrix-head.lisuan {
  color: #8a365c;
  background: #fbedf3;
}

.axis-head {
  color: #ffffff;
  background: linear-gradient(180deg, #073366 0%, #1266b5 48%, #8fd6ff 100%);
}

.matrix-cell,
.matrix-axis {
  min-width: 0;
  border-right: 1px solid #e4edf5;
  border-bottom: 1px solid #e4edf5;
  background: #fbfdff;
}

.matrix-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 1px;
}

.matrix-axis {
  position: relative;
  min-height: 100%;
  background:
    linear-gradient(180deg, #08295d 0%, #0e55a7 34%, #2d8bd4 68%, #a8e2ff 100%);
  border-right: 1px solid rgba(9, 69, 135, 0.42);
  border-left: 1px solid rgba(9, 69, 135, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 18px 28px rgba(255, 255, 255, 0.12),
    inset 0 -28px 36px rgba(4, 30, 78, 0.18);
}

.matrix-axis::before {
  content: "";
  position: absolute;
  inset: 0 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.48), rgba(255,255,255,0.06) 44%, rgba(255,255,255,0.34));
  opacity: 0.5;
}

.matrix-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
  min-height: 16px;
  padding: 1px 4px;
  border-radius: 2px;
  color: #203047;
  background: transparent;
  border: 0;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: default;
  font-family: inherit;
}

.matrix-chip em {
  display: inline-flex;
  margin-left: 3px;
  padding: 0 2px;
  color: #ffffff;
  background: #6d7785;
  border-radius: 2px;
  font-style: normal;
  font-size: 8px;
  line-height: 1.2;
}

.matrix-chip .arch-badge {
  display: inline-flex;
  margin-left: 3px;
  padding: 0 3px;
  border-radius: 2px;
  font-size: 7px;
  font-style: normal;
  font-weight: 1000;
  line-height: 1.35;
}

.matrix-chip .arch-badge.arm {
  color: #ffffff;
  background: #26365f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.matrix-chip .arch-badge.loongarch {
  color: #ffffff;
  background: #9f2432;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.matrix-chip b {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  color: #7a8798;
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
}

.matrix-chip .chip-host-cpu {
  display: block;
  width: 100%;
  overflow: hidden;
  color: #69788b;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matrix-chip i {
  display: inline-flex;
  margin-left: 3px;
  padding: 0 2px;
  color: #1f70c1;
  background: #e7f2ff;
  border-radius: 2px;
  font-style: normal;
  font-size: 8px;
  line-height: 1.2;
}

.matrix-chip.amd {
  color: #c9352f;
  background: transparent;
}

.matrix-chip.intel,
.matrix-chip.apple,
.matrix-chip.qualcomm,
.matrix-chip.ampere,
.matrix-chip.nvidia {
  color: #1c4f9d;
  background: transparent;
}

.matrix-chip.zhaoxin {
  color: #08736a;
  background: transparent;
}

.matrix-chip.hygon {
  color: #963c65;
  background: transparent;
}

.matrix-chip.phytium {
  color: #7b590e;
  background: transparent;
}

.matrix-chip.loongson {
  color: #9f2432;
  background: transparent;
}

.matrix-chip.mediatek,
.matrix-chip.neutral {
  color: #8947a4;
  background: transparent;
}

.matrix-chip.samsung,
.matrix-chip.google,
.matrix-chip.microsoft {
  color: #245f8f;
  background: transparent;
}

.matrix-chip.rockchip,
.matrix-chip.cix {
  color: #176b66;
  background: transparent;
}

.matrix-chip.allwinner,
.matrix-chip.amlogic {
  color: #4f732f;
  background: transparent;
}

.matrix-chip.alibaba,
.matrix-chip.aws {
  color: #9b5815;
  background: transparent;
}

.matrix-chip.fujitsu {
  color: #8d3340;
  background: transparent;
}

.matrix-chip.huawei {
  color: #a52332;
  background: transparent;
}

.matrix-chip.unisoc {
  color: #087078;
  background: transparent;
}

.matrix-chip.moore {
  color: #08736a;
}

.matrix-chip.lisuan {
  color: #8a3f6a;
}

.matrix-chip:hover {
  color: #0b0f18;
  background: #fff3a6;
  outline: 1px solid #ffc400;
}

.matrix-chip.active {
  color: #073b75;
  background: #e8f4ff;
  outline: 2px solid #2586d8;
  box-shadow: 0 0 0 2px rgba(37, 134, 216, 0.14);
}

.matrix-chip.server-reference {
  padding: 2px 4px;
  color: #334b66;
  background: #f1f5f8;
  outline: 1px dashed #8ca0b3;
}

.matrix-chip.server-reference:hover,
.matrix-chip.server-reference.active {
  color: #123f6e;
  background: #e3eef8;
  outline-color: #327fc2;
}

.compare-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border: 0;
  background: rgba(18, 98, 189, 0.68);
  box-shadow: 0 0 7px rgba(43, 139, 213, 0.2);
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}

.compare-line.active {
  opacity: 1;
}

.compare-popover {
  position: absolute;
  z-index: 6;
  width: min(320px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #162235;
  background: #ffffff;
  border: 1px solid #c8d8e7;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(21, 38, 68, 0.18);
  scrollbar-width: thin;
  line-height: 1.35;
}

.compare-popover h3 {
  margin: 0 28px 6px 0;
  font-size: 14px;
}

.compare-popover dl {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 3px 7px;
  margin: 0 0 7px;
  font-size: 11px;
}

.compare-popover dt {
  color: #667487;
}

.compare-popover dd {
  margin: 0;
  font-weight: 800;
}

.compare-popover strong {
  display: block;
  margin-bottom: 4px;
  color: #1768b4;
  font-size: 11px;
}

.compare-close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #cbd9e7;
  border-radius: 4px;
  color: #4a5c72;
  background: #f7fbff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.compare-close:hover {
  color: #ffffff;
  border-color: #1768b4;
  background: #1768b4;
}

.cpu-detail-block {
  margin: 7px 0;
  padding: 7px;
  border: 1px solid #d8e3ee;
  background: #f7fbff;
}

.cpu-detail-block strong {
  color: #1f70c1;
}

.cpu-detail-block dl {
  grid-template-columns: 64px 1fr;
  margin-top: 4px;
}

.cpu-detail-block p {
  margin: 4px 0 0;
  color: #667487;
  font-size: 11px;
}

.compare-popover ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-popover li {
  font-size: 11px;
  font-weight: 900;
}

.compare-popover li span {
  display: block;
  color: #667487;
  font-weight: 600;
}

.matrix-foot {
  padding: 9px 14px;
  color: #667487;
  background: #f6f9fc;
  border-top: 1px solid #dde8f3;
  font-size: 12px;
}

.stat-card {
  min-height: 150px;
  padding: 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card span,
.stat-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.stat-card strong {
  font-size: 20px;
  line-height: 1.15;
}

.section-lead {
  margin: 38px 0 16px;
  color: var(--muted);
}

.metric-wrap {
  margin-bottom: 34px;
}

.seg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.seg-button {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.seg-button.active,
.seg-button:hover {
  color: #0b4e98;
  border-color: #8fb9df;
  background: #dcecff;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 10px;
}

.search-box {
  display: flex;
  align-items: center;
  min-width: min(360px, 100%);
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #d5e2ef;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 34px;
  padding: 6px 0;
  border: 0;
  color: #162235;
  background: transparent;
  font: inherit;
  outline: none;
}

.search-box input:focus {
  box-shadow: none;
}

.search-box:focus-within {
  border-color: #1f70c1;
  box-shadow: 0 0 0 3px rgba(31, 112, 193, 0.12);
}

.search-box span {
  flex: 0 0 auto;
  color: #667487;
}

.board {
  overflow: hidden;
}

.board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-strong);
}

.board-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.metric-badge {
  min-width: max-content;
  padding: 9px 12px;
  color: #120d13;
  font-weight: 900;
  background: var(--gold);
}

.board-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.board-tools span {
  min-width: max-content;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.ladder-axis,
.ladder-row {
  display: grid;
  grid-template-columns: 70px minmax(260px, 1fr) minmax(220px, 36%) 62px;
  gap: 12px;
  align-items: center;
}

.ladder-axis {
  padding: 10px 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
}

.ladder-row {
  min-height: 86px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.ladder-row:hover {
  background: rgba(255, 255, 255, 0.065);
}

.rank {
  color: var(--gold);
  font-weight: 900;
  font-size: 18px;
}

.chip-name {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.chip-name strong {
  font-size: 17px;
}

.vendor {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  color: #08070b;
  font-size: 12px;
  font-weight: 900;
}

.chip-detail,
.source-line {
  color: var(--muted);
  font-size: 12px;
}

.source-line a {
  color: #9fefff;
  text-decoration: none;
}

.source-line a:hover {
  text-decoration: underline;
}

.score-area {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  align-items: center;
}

.score {
  color: var(--text);
  font-size: 28px;
  font-weight: 900;
  text-align: right;
}

.bar-shell {
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.36);
}

.bar-fill {
  display: block;
  height: 100%;
  box-shadow: 0 0 24px currentColor;
}

.tier {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #110d12;
  font-weight: 1000;
  background: var(--gold);
}

.amd,
.bar-fill.amd {
  background: #e4514a;
}

.intel,
.bar-fill.intel {
  background: #3f78d7;
}

.nvidia,
.bar-fill.nvidia {
  background: #58a83b;
}

.apple,
.bar-fill.apple {
  background: #aeb8c6;
}

.qualcomm,
.bar-fill.qualcomm {
  background: #4c78c7;
}

.mediatek,
.bar-fill.mediatek {
  background: #d18b2f;
}

.huawei,
.bar-fill.huawei {
  background: #b42d3d;
}

.unisoc,
.bar-fill.unisoc {
  background: #13858b;
}

.ampere,
.bar-fill.ampere,
.neutral,
.bar-fill.neutral {
  background: #7d6fb2;
}

.samsung,
.bar-fill.samsung,
.google,
.bar-fill.google,
.microsoft,
.bar-fill.microsoft {
  background: #3d7fa8;
}

.rockchip,
.bar-fill.rockchip,
.cix,
.bar-fill.cix {
  background: #27877d;
}

.allwinner,
.bar-fill.allwinner,
.amlogic,
.bar-fill.amlogic {
  background: #6f934d;
}

.alibaba,
.bar-fill.alibaba,
.aws,
.bar-fill.aws {
  background: #d18a34;
}

.fujitsu,
.bar-fill.fujitsu {
  background: #b44a59;
}

.zhaoxin,
.bar-fill.zhaoxin {
  background: #169786;
}

.hygon,
.bar-fill.hygon {
  background: #aa4d75;
}

.phytium,
.bar-fill.phytium {
  background: #c28b1d;
}

.loongson,
.bar-fill.loongson {
  background: #a63240;
}

.tier-splus {
  box-shadow: inset 4px 0 0 var(--pink);
}

.tier-s {
  box-shadow: inset 4px 0 0 var(--gold);
}

.tier-a {
  box-shadow: inset 4px 0 0 var(--cyan);
}

.tier-b,
.tier-c {
  box-shadow: inset 4px 0 0 rgba(255, 255, 255, 0.24);
}

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

.source-card {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.source-card p {
  color: var(--muted);
}

.source-card a {
  align-self: flex-start;
  min-width: max-content;
  padding: 8px 10px;
  color: #0b0a0e;
  background: var(--cyan);
  text-decoration: none;
  font-weight: 900;
}

.footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

body[data-page="cpu"] .footer,
body[data-page="gpu"] .footer,
body[data-page="notebook"] .footer,
body[data-page="server"] .footer {
  width: max-content;
  max-width: none;
  min-width: 100vw;
  margin: 0;
  color: #526173;
  border-top-color: #d8e3ee;
  background: #ffffff;
}

body[data-page="cpu"] .footer a {
  color: #1262bd;
}

@media (max-width: 980px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .overview-grid,
  .source-grid,
  .home-biglinks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .mega-actions,
  .mega-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .zoom-tools {
    flex-wrap: wrap;
  }

  .neighbor-dock-head > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .neighbor-range-cards {
    grid-auto-columns: minmax(145px, 72vw);
  }

  .mega-meta {
    justify-content: flex-start;
  }

  .ladder-axis {
    display: none;
  }

  .ladder-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .score-area,
  .tier {
    grid-column: 2;
  }

  .score-area {
    grid-template-columns: 46px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    background-size: 1200px auto;
  }

  .nav {
    width: 100%;
    gap: 12px;
    padding: 12px;
    box-sizing: border-box;
  }

  .nav-links {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
  }

  .nav-link {
    min-width: 0;
    min-height: 34px;
    padding: 7px 2px;
    text-align: center;
    white-space: nowrap;
    font-size: 13px;
  }

  .language-switch {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 7px 2px;
    border-radius: 0;
  }

  .hero {
    padding-top: 48px;
    min-height: 360px;
  }

  .hero-poster {
    min-height: 430px;
    padding-right: 24px;
    padding-left: 34px;
  }

  .hero-poster h1 {
    font-size: clamp(52px, 18vw, 86px);
  }

  .hero.compact {
    min-height: 260px;
  }

  .overview-grid,
  .source-grid,
  .home-biglinks {
    grid-template-columns: 1fr;
  }

  .board-head,
  .source-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .board-tools {
    width: 100%;
    justify-content: space-between;
  }

  .mega-shell {
    width: calc(100vw - 12px);
    margin-top: -10px;
    padding: 6px;
  }

  .ladder-row {
    padding: 14px;
  }

  .chip-name strong {
    font-size: 15px;
  }
}

@media (max-width: 1280px) {
  body[data-page="cpu"] .page-chart-controls {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body[data-page="cpu"] .page-chart-controls .mega-tabs {
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 900px) {
  body[data-page="cpu"] .hero.compact {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 164px;
    padding: 22px 24px;
    background-position: 62% 50%;
  }

  body[data-page="cpu"] .hero.compact .hero-copy {
    display: block;
    width: 100%;
    max-width: calc(100vw - 48px);
  }

  body[data-page="cpu"] .hero.compact h1 {
    font-size: 38px;
  }

  body[data-page="cpu"] .hero.compact p:not(.eyebrow) {
    width: 100%;
    max-width: min(680px, calc(100vw - 48px));
    margin-top: 12px;
    padding-top: 10px;
    padding-left: 0;
    border-top: 1px solid #55718c;
    border-left: 0;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .cpu-method-note {
    align-items: flex-start;
  }

  .cpu-method-note > div {
    display: grid;
    gap: 2px;
  }

  body[data-page="cpu"] .page-chart-controls .mega-actions {
    align-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  body[data-page="cpu"] .page-chart-controls .mega-search {
    order: 3;
    width: 100%;
    max-width: none;
  }

  body[data-page="cpu"] .matrix-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  body[data-page="cpu"] .matrix-title > div:first-child {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  body[data-page="cpu"] .matrix-title h2 {
    margin-top: 3px;
    font-size: 25px;
  }

  body[data-page="cpu"] .matrix-title p:not(.eyebrow) {
    max-width: calc(100vw - 52px);
    margin-top: 8px;
    padding-top: 8px;
    padding-left: 0;
    border-top: 1px solid #d4e0eb;
    border-left: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 560px) {
  body[data-page="cpu"] .hero.compact {
    min-height: 176px;
    padding: 20px 18px;
  }

  body[data-page="cpu"] .hero.compact h1 {
    font-size: 34px;
  }

  body[data-page="cpu"] .content {
    padding-right: 10px;
    padding-left: 10px;
  }

  .cpu-method-note {
    gap: 8px;
    padding: 8px 10px;
  }

  .cpu-method-note > div > span {
    max-width: 230px;
  }

  body[data-page="cpu"] .page-chart-controls .mega-tabs {
    gap: 5px;
  }

  body[data-page="cpu"] .page-chart-controls .mega-tab {
    min-width: max-content;
  }

  body[data-page="cpu"] .page-chart-controls .mega-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-page="cpu"] .page-chart-controls .zoom-tools {
    overflow-x: auto;
  }
}

body[data-page="home"] {
  min-width: 0;
  overflow-x: hidden;
  background: #e9eff5;
}

body[data-page="home"] .site-header {
  position: relative;
  width: 100%;
}

.home-hero {
  display: flex;
  min-height: 310px;
  align-items: flex-end;
  padding: 52px max(28px, calc((100vw - 1480px) / 2)) 46px;
  color: #ffffff;
  background-color: #102a43;
  background-image: url("assets/cpu-header-hardware.jpg");
  background-position: center 48%;
  background-size: cover;
  background-blend-mode: multiply;
  border-bottom: 1px solid #0a2035;
}

.home-hero .hero-copy {
  width: min(760px, 100%);
  max-width: none;
}

body[data-page="home"] .home-hero .eyebrow {
  margin-bottom: 8px;
  color: #7fc1ff;
  font-size: 11px;
}

.home-hero h1 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 62px;
  font-weight: 850;
  line-height: 1;
  text-shadow: none;
}

.home-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: #d8e6f1;
  font-size: 17px;
  font-weight: 650;
}

.home-workspace {
  width: min(1480px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 30px 0 64px;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #cbd8e5;
}

.home-section-head .eyebrow {
  margin-bottom: 4px;
  color: #1768b4;
  font-size: 10px;
}

.home-section-head h2 {
  margin: 0;
  color: #15263a;
  font-size: 34px;
  font-weight: 850;
}

.home-review {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #5c6c7e;
  font-size: 12px;
}

.home-review a {
  padding: 7px 10px;
  border: 1px solid #bfcfdd;
  color: #1262bd;
  background: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.home-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 22px;
  border: 1px solid #cbd8e5;
  background: #cbd8e5;
}

.home-stat {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  min-height: 118px;
  padding: 13px 15px;
  color: #213449;
  background: #ffffff;
  text-decoration: none;
}

.home-stat:hover {
  box-shadow: inset 0 3px 0 #1f70c1;
}

.home-stat > span {
  color: #607184;
  font-size: 11px;
  font-weight: 750;
}

.home-stat > strong {
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.25;
}

.home-stat > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #1262bd;
  font-size: 11px;
}

.home-stat em {
  font-style: normal;
  font-weight: 800;
}

.home-stat b {
  color: #6c7c8d;
}

body[data-page="home"] .home-biglinks {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

body[data-page="resources"] {
  min-width: 0;
  color: #162235;
  background: #e9eff5;
}

body[data-page="resources"] .site-header {
  color: #162235;
  border-bottom-color: #d8e3ee;
  background: rgba(255, 255, 255, 0.94);
}

body[data-page="resources"] .brand strong,
body[data-page="resources"] .nav-link.active {
  color: #162235;
}

body[data-page="resources"] .brand span,
body[data-page="resources"] .nav-link {
  color: #526173;
}

body[data-page="resources"] .brand-mark {
  color: #ffffff;
  border-color: #1f70c1;
  background: #1f70c1;
  box-shadow: none;
}

body[data-page="resources"] .nav-link:hover,
body[data-page="resources"] .nav-link.active {
  border-color: #d8e3ee;
  background: #eef7ff;
}

.resource-page {
  width: min(1580px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 30px 0 54px;
}

.resource-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 18px;
  padding: 4px 0 22px;
  border-bottom: 1px solid #c8d5e2;
}

.resource-page-head h1 {
  margin: 0 0 8px;
  color: #162235;
  font-size: 42px;
  line-height: 1.05;
  text-shadow: none;
}

.resource-page-head > div:first-child > p:last-child {
  max-width: 680px;
  margin: 0;
  color: #5b6c7e;
  font-size: 14px;
}

.resource-page .eyebrow {
  color: #1f70c1;
}

.resource-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  min-width: min(520px, 48vw);
  border: 1px solid #cbd8e5;
  background: #ffffff;
}

.resource-stats > div {
  min-height: 68px;
  padding: 11px 14px;
  border-left: 1px solid #d8e3ee;
}

.resource-stats > div:first-child {
  border-left: 0;
}

.resource-stats span,
.resource-stats strong {
  display: block;
}

.resource-stats span {
  color: #6b7c8e;
  font-size: 11px;
}

.resource-stats strong {
  margin-top: 4px;
  color: #163e68;
  font-size: 22px;
  line-height: 1;
}

.resource-workspace {
  overflow: hidden;
  border: 1px solid #c4d2df;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(29, 54, 80, 0.08);
}

.resource-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 12px 14px;
  border-bottom: 1px solid #d8e3ee;
  background: #f7f9fb;
}

.resource-search-wrap {
  flex: 1 1 420px;
  max-width: 620px;
}

.resource-search-wrap input {
  width: 100%;
  height: 40px;
  padding: 0 13px;
  border: 1px solid #b9c9d8;
  border-radius: 4px;
  outline: 0;
  color: #162235;
  background: #ffffff;
  font: inherit;
  font-size: 13px;
}

.resource-search-wrap input:focus {
  border-color: #1f70c1;
  box-shadow: 0 0 0 2px rgba(31, 112, 193, 0.12);
}

.resource-provider-tabs {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  border: 1px solid #c3d1df;
  border-radius: 4px;
  background: #ffffff;
}

.resource-provider-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: max-content;
  min-height: 38px;
  padding: 7px 11px;
  border: 0;
  border-left: 1px solid #d8e3ee;
  color: #506377;
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.resource-provider-tabs button:first-child {
  border-left: 0;
}

.resource-provider-tabs button.active {
  color: #ffffff;
  background: #1f70c1;
}

.resource-provider-tabs button span {
  min-width: 20px;
  padding: 1px 5px;
  border-radius: 3px;
  color: inherit;
  background: rgba(86, 110, 134, 0.12);
  text-align: center;
  font-size: 10px;
  font-weight: 800;
}

.resource-layout {
  display: grid;
  grid-template-columns: 190px minmax(430px, 1fr) minmax(330px, 420px);
  align-items: start;
}

.resource-categories {
  min-height: 620px;
  padding: 10px;
  border-right: 1px solid #d8e3ee;
  background: #f7f9fb;
}

.resource-categories button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  color: #4b5f73;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.resource-categories button:hover {
  color: #174f88;
  background: #eaf2f9;
}

.resource-categories button.active {
  color: #ffffff;
  background: #1f70c1;
}

.resource-categories b {
  min-width: 24px;
  color: inherit;
  text-align: right;
  font-size: 11px;
}

.resource-results {
  min-width: 0;
  min-height: 620px;
  border-right: 1px solid #d8e3ee;
}

.resource-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 14px;
  border-bottom: 1px solid #d8e3ee;
  color: #314a63;
  background: #ffffff;
  font-size: 13px;
}

.resource-results-head span {
  color: #758598;
  font-size: 11px;
}

.resource-list {
  min-width: 0;
}

.resource-row {
  display: grid;
  grid-template-columns: 92px minmax(200px, 1fr) 130px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #e1e8ef;
  color: #263b50;
  background: #ffffff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.resource-row:hover {
  background: #f4f8fc;
}

.resource-row.active {
  box-shadow: inset 4px 0 0 #1f70c1;
  background: #edf5fc;
}

.resource-type {
  width: max-content;
  max-width: 92px;
  padding: 4px 7px;
  border: 1px solid #c8d6e4;
  border-radius: 3px;
  color: #456078;
  background: #f7f9fb;
  font-size: 10px;
  font-weight: 800;
}

.resource-row-main,
.resource-row-meta {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.resource-row-main strong {
  overflow: hidden;
  color: #172b3e;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.resource-row small,
.resource-row-meta small {
  overflow: hidden;
  color: #718194;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.resource-row-meta {
  justify-items: end;
  text-align: right;
}

.resource-row-meta b {
  color: #486179;
  font-size: 11px;
}

.resource-detail {
  position: sticky;
  top: 14px;
  min-width: 0;
  padding: 18px;
}

.resource-detail-head > span {
  color: #708195;
  font-family: Consolas, monospace;
  font-size: 10px;
}

.resource-detail-head h2 {
  margin: 5px 0 9px;
  color: #172b3e;
  font-size: 22px;
  line-height: 1.2;
}

.resource-detail-head > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-detail-head i,
.resource-detail-head em {
  font-style: normal;
  font-size: 10px;
}

.resource-detail-head i {
  padding: 3px 6px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-weight: 800;
}

.resource-detail-head .risk-low {
  color: #19724b;
}

.resource-detail-head .risk-medium {
  color: #9a6400;
}

.resource-detail-head .risk-high {
  color: #b13a32;
}

.resource-detail-head em {
  color: #637589;
}

.resource-detail > p {
  margin: 16px 0;
  color: #55697c;
  font-size: 12px;
  line-height: 1.7;
}

.resource-detail dl {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid #d8e3ee;
}

.resource-detail dt,
.resource-detail dd {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #e2e9f0;
  overflow-wrap: anywhere;
  font-size: 11px;
}

.resource-detail dt {
  color: #7a8999;
}

.resource-detail dd {
  color: #304a63;
}

.resource-detail code {
  color: #174f88;
  font-family: Consolas, monospace;
  font-weight: 800;
}

.resource-copy {
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid #b9c9d8;
  border-radius: 3px;
  color: #315d86;
  background: #ffffff;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.resource-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 14px 0;
}

.resource-tags span {
  padding: 3px 6px;
  border: 1px solid #ced9e4;
  border-radius: 3px;
  color: #566c81;
  background: #f7f9fb;
  font-size: 10px;
}

.resource-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 4px;
  color: #ffffff;
  background: #1f70c1;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.resource-open:hover {
  background: #175d9f;
}

.resource-empty {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-height: 180px;
  padding: 28px;
  color: #718194;
  text-align: center;
  font-size: 12px;
}

.resource-empty strong {
  color: #3b5269;
  font-size: 14px;
}

body[data-page="resources"] .footer {
  max-width: none;
  color: #647588;
  border-top-color: #cbd8e5;
  background: #ffffff;
}

@media (max-width: 1240px) {
  body[data-page="home"] .home-biglinks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .resource-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .resource-stats {
    width: 100%;
    min-width: 0;
  }

  .resource-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .resource-results {
    border-right: 0;
  }

  .resource-detail {
    position: static;
    grid-column: 1 / -1;
    border-top: 1px solid #d8e3ee;
  }
}

@media (max-width: 760px) {
  .nav-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .resource-page {
    width: calc(100vw - 20px);
    padding-top: 20px;
  }

  .resource-page-head h1 {
    font-size: 34px;
  }

  .resource-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-stats > div:nth-child(3) {
    border-left: 0;
  }

  .resource-stats > div:nth-child(n + 3) {
    border-top: 1px solid #d8e3ee;
  }

  .resource-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .resource-search-wrap {
    flex-basis: auto;
    max-width: none;
  }

  .resource-layout {
    grid-template-columns: 1fr;
  }

  .resource-categories {
    display: flex;
    min-height: 0;
    overflow-x: auto;
    padding: 8px;
    border-right: 0;
    border-bottom: 1px solid #d8e3ee;
  }

  .resource-categories button {
    width: auto;
    min-width: max-content;
  }

  .resource-results {
    min-height: 0;
  }

  .resource-row {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .resource-row-meta {
    display: none;
  }

  .resource-detail {
    grid-column: auto;
    padding: 15px;
  }
}

body[data-page="home"] .home-biglinks a {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 174px;
  padding: 17px;
  border: 1px solid #cbd8e5;
  color: #1d3045;
  background: #ffffff;
}

body[data-page="home"] .home-biglinks a:hover {
  border-color: #1f70c1;
  box-shadow: inset 0 4px 0 #1f70c1;
}

body[data-page="home"] .home-biglinks small {
  color: #718194;
  font-size: 9px;
  font-weight: 850;
}

body[data-page="home"] .home-biglinks strong {
  margin: 8px 0 7px;
  color: #175fa9;
  font-size: 22px;
}

body[data-page="home"] .home-biglinks span {
  color: #5c6d7f;
  font-size: 13px;
}

body[data-page="home"] .home-biglinks b {
  align-self: end;
  margin-top: 16px;
  color: #163e68;
  font-size: 12px;
}

.home-method {
  margin-top: 18px;
  border-top: 1px solid #cbd8e5;
  border-bottom: 1px solid #cbd8e5;
  background: #f4f7fa;
}

.home-method summary {
  padding: 11px 14px;
  color: #27435f;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.home-method p {
  margin: 0;
  padding: 0 14px 14px;
  color: #56697c;
  font-size: 12px;
  line-height: 1.7;
}

body[data-page="home"] .footer {
  max-width: none;
  color: #637386;
  border-top-color: #cbd8e5;
  background: #ffffff;
}

@media (max-width: 980px) {
  .home-hero {
    min-height: 280px;
    padding: 42px 24px 36px;
  }

  .home-overview,
  body[data-page="home"] .home-biglinks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-hero {
    min-height: 250px;
    align-items: flex-end;
    padding: 32px 20px 28px;
    background-position: 62% 50%;
  }

  .home-hero h1 {
    font-size: 44px;
  }

  .home-hero p:not(.eyebrow) {
    max-width: calc(100vw - 40px);
    font-size: 14px;
  }

  .home-workspace {
    width: calc(100vw - 24px);
    padding-top: 22px;
  }

  .home-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .home-section-head h2 {
    font-size: 28px;
  }

  .home-overview,
  body[data-page="home"] .home-biglinks {
    grid-template-columns: 1fr;
  }
}

/* Unified ladder workspace header and controls */
body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .hero.compact {
  display: block;
  min-height: 126px;
  padding: 20px 32px;
}

body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .hero.compact .hero-copy {
  display: grid;
  grid-template-columns: minmax(360px, 640px) minmax(420px, 720px);
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: 48px;
  width: min(1480px, calc(100vw - 64px));
  max-width: none;
}

body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .hero.compact .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 4px;
  font-size: 10px;
}

body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .hero.compact h1 {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: 38px;
  line-height: 1.06;
}

body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .hero.compact p:not(.eyebrow) {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  max-width: 680px;
  margin: 0;
  padding-left: 20px;
  border-left: 1px solid #c1cfdd;
  font-size: 14px;
  line-height: 1.65;
}

body[data-page="cpu"] .hero.compact h1 {
  color: #ffffff;
}

body[data-page="cpu"] .hero.compact p:not(.eyebrow) {
  color: #d5e3ef;
  border-left-color: #55718c;
}

body:is([data-page="gpu"], [data-page="notebook"], [data-page="server"]) .hero.compact h1 {
  color: #162235;
}

body:is([data-page="gpu"], [data-page="notebook"], [data-page="server"]) .hero.compact p:not(.eyebrow) {
  color: #526173;
}

body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .notice {
  min-height: 42px;
  margin-bottom: 12px;
  padding: 9px 13px;
  border-left-width: 3px;
  color: #52677b;
  background: #ffffff;
  font-size: 12px;
  line-height: 1.55;
}

body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .page-chart-controls {
  position: relative;
  top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: calc(100vw - 48px);
  min-width: 320px;
  max-width: calc(100vw - 48px);
  margin: 0 0 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #c8d6e3;
  border-radius: 6px;
  background: #ffffff;
  backdrop-filter: none;
}

.chart-preset-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #d8e3ee;
  background: #f6f8fa;
}

.control-label {
  flex: 0 0 auto;
  min-width: 34px;
  color: #748396;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.chart-preset-row .mega-tabs {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding-bottom: 1px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chart-preset-row .mega-tabs::-webkit-scrollbar {
  display: none;
}

.chart-preset-row .mega-tab {
  min-width: max-content;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
}

body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .page-chart-controls .mega-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 9px 10px;
}

.chart-metric-group,
.chart-view-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.chart-metric-group {
  flex: 0 1 auto;
}

.chart-metric-group .mega-metrics {
  flex-wrap: nowrap;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chart-metric-group .mega-metrics::-webkit-scrollbar {
  display: none;
}

.chart-metric-group .seg-button {
  min-width: max-content;
  min-height: 36px;
  padding: 7px 11px;
  border-color: #cedbe7;
  border-radius: 4px;
  color: #52677b;
  background: #ffffff;
  white-space: nowrap;
}

body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .page-chart-controls .mega-search {
  flex: 1 1 320px;
  min-width: 240px;
  max-width: 460px;
  border-radius: 4px;
}

.chart-view-group {
  flex: 0 0 auto;
  margin-left: auto;
}

.chart-view-group .zoom-tools {
  gap: 4px;
}

.chart-view-group .zoom-tools button {
  min-width: 38px;
  min-height: 36px;
  padding: 6px 9px;
  border-radius: 4px;
  background: #ffffff;
}

body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .matrix-title {
  align-items: center;
  padding: 12px 16px 13px;
  background: #f8fafc;
}

body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .matrix-title > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr);
  grid-template-rows: auto auto;
  align-items: baseline;
  column-gap: 16px;
  max-width: 1120px;
}

body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .matrix-title .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: #1760a8;
  font-size: 10px;
}

body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .matrix-title h2 {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  color: #14263a;
  font-size: 27px;
  font-weight: 850;
  line-height: 1.15;
}

body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .matrix-title p:not(.eyebrow) {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid #d4e0eb;
  font-size: 12px;
  line-height: 1.55;
}

.metric-badge {
  border: 1px solid #b9cde0;
  border-radius: 4px;
  color: #174f88;
  background: #eaf2f9;
}

@media (max-width: 1100px) {
  body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .page-chart-controls .mega-actions {
    flex-wrap: wrap;
  }

  body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .page-chart-controls .mega-search {
    order: 3;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 900px) {
  body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .hero.compact {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 160px;
    padding: 20px 22px;
  }

  body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .hero.compact .hero-copy {
    display: block;
    width: 100%;
    max-width: calc(100vw - 44px);
  }

  body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .hero.compact h1 {
    font-size: 34px;
  }

  body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .hero.compact p:not(.eyebrow) {
    max-width: calc(100vw - 44px);
    margin-top: 10px;
    padding-top: 9px;
    padding-left: 0;
    border-top: 1px solid #c1cfdd;
    border-left: 0;
    font-size: 13px;
    line-height: 1.5;
  }

  body[data-page="cpu"] .hero.compact p:not(.eyebrow) {
    border-top-color: #55718c;
  }

  body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .matrix-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .matrix-title > div:first-child {
    display: block;
    width: 100%;
    max-width: none;
  }

  body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .matrix-title p:not(.eyebrow) {
    max-width: calc(100vw - 52px);
    margin-top: 7px;
    padding-top: 7px;
    padding-left: 0;
    border-top: 1px solid #d4e0eb;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .page-chart-controls {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }

  .chart-preset-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  body:is([data-page="cpu"], [data-page="gpu"], [data-page="notebook"], [data-page="server"]) .page-chart-controls .mega-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .chart-metric-group,
  .chart-view-group {
    width: 100%;
  }

  .chart-view-group {
    margin-left: 0;
  }

  .chart-view-group .zoom-tools {
    max-width: 100%;
    overflow-x: auto;
  }

  .chart-preset-row {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }
}

/* Compact mobile navigation for data-heavy pages */
@media (max-width: 900px) {
  .site-header {
    overflow: hidden;
  }

  .site-header .nav {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
  }

  .site-header .brand {
    flex: 0 0 auto;
  }

  .site-header .nav-links {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 4px;
    width: auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-header .nav-links::-webkit-scrollbar {
    display: none;
  }

  .site-header .nav-link,
  .site-header .language-switch {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    min-height: 34px;
    padding: 7px 9px;
    border-radius: 4px;
  }
}

@media (max-width: 640px) {
  .site-header .brand-mark {
    width: 36px;
    height: 36px;
  }

  .site-header .brand {
    gap: 8px;
  }

  .site-header .brand > span:last-child > span {
    display: none;
  }

  .site-header .brand strong {
    font-size: 14px;
  }
}
