:root {
  --ink: #17202a;
  --muted: #5d6975;
  --paper: #fbf7ef;
  --surface: #ffffff;
  --line: #ded6c8;
  --navy: #0f2e3d;
  --teal: #0f8b8d;
  --gold: #c28a27;
  --soft: #f2eadc;
  --shadow: 0 18px 45px rgba(23, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(15, 46, 61, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(15, 46, 61, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--navy);
  text-decoration-color: rgba(15, 139, 141, 0.5);
  text-underline-offset: 3px;
}

.site-header,
.site-footer {
  max-width: 1060px;
  margin: 0 auto;
  padding: 18px 24px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(15, 46, 61, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(15, 46, 61, 0.07);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  color: var(--navy);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.94rem;
}

.tool-nav {
  align-items: center;
  justify-content: flex-end;
}

.tool-nav a {
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 750;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.tool-nav a:hover,
.tool-nav a:focus-visible {
  background: var(--soft);
  color: var(--navy);
  transform: translateY(-1px);
}

.tool-nav a[aria-current="page"] {
  background: var(--navy);
  color: white;
}

main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px 42px;
}

.tool-hero,
.page-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: center;
  min-height: 300px;
  padding: 22px 0 24px;
}

.tool-hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 18px auto;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(194, 138, 39, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 34%, rgba(194, 138, 39, 0.10) 35%, transparent 36%);
  pointer-events: none;
}

.page-hero {
  display: block;
  max-width: 820px;
  min-height: auto;
}

.tool-page-hero {
  padding-bottom: 12px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.35rem, 5.6vw, 4.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow),
.page-hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
}

.ip-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  box-shadow: var(--shadow);
}

.panel-topline {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ip-address {
  position: relative;
  z-index: 1;
  margin: 18px 0;
  color: var(--navy);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.7rem, 4.4vw, 3.65rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.ip-toggle {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 4px;
  margin: 0 0 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 247, 239, 0.78);
}

.ip-toggle button {
  min-width: 58px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 8px 10px;
}

.ip-toggle button.is-active {
  background: var(--navy);
  color: #fff;
}

.ip-status {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.privacy-note {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
}

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

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.technical-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  min-width: 0;
  box-shadow: 0 10px 25px rgba(23, 32, 42, 0.04);
}

.tool-surface {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  margin: 0 0 34px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.tool-surface-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 6px;
}

.tool-surface-top h2,
.tool-surface-top p {
  margin: 0;
}

.tool-surface-top p {
  color: var(--muted);
}

.user-agent-card {
  margin-top: 16px;
}

.code-output {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--navy);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  padding: 12px;
  overflow-wrap: anywhere;
}

.detail-card h2,
.content-narrow h2,
.article-body h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 1.05rem;
}

dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

dl div {
  display: grid;
  gap: 2px;
}

dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.95rem;
}

.tech-details {
  margin: 18px 0 0;
}

.tech-details summary {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
}

.content-band {
  margin: 48px -24px 0;
  padding: 42px 24px;
  background: rgba(15, 46, 61, 0.06);
  border-block: 1px solid rgba(15, 46, 61, 0.08);
}

.content-narrow,
.article-body {
  max-width: 780px;
}

.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.guide-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  padding: 10px 12px;
  font-weight: 800;
  text-decoration: none;
}

.article-body {
  padding-bottom: 44px;
  color: #2c3540;
  font-size: 1.05rem;
}

.article-body p {
  margin: 0 0 24px;
}

.inline-cta,
.button-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  padding: 12px 16px;
  font-weight: 800;
}

.inline-cta a,
.button-link {
  color: white;
  text-decoration: none;
}

.download-button {
  padding: 13px 18px;
  font-weight: 800;
}

.download-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.unsigned-notice {
  margin: 0 0 18px;
  border: 1px solid #d7b35b;
  border-radius: 8px;
  background: #fff7dc;
  padding: 14px 16px;
  color: var(--ink);
}

.unsigned-notice code {
  display: block;
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.76rem;
}

.bottom-notice {
  margin: 24px 0 0;
}

.run-guide {
  margin: 8px 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
}

.run-guide-heading h2,
.run-guide-heading p {
  margin-top: 0;
}

.run-guide-heading > p:last-child {
  color: var(--muted);
}

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

.run-guide figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px;
}

.run-guide img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #8d9298;
}

.run-guide figcaption {
  margin-top: 10px;
  color: var(--muted);
}

.step-number {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(12, 37, 53, 0.25);
}

.pc-tool-surface {
  margin-top: 8px;
}

.feature-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.feature-check-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 16px;
}

.feature-check-grid h3,
.feature-check-grid p {
  margin: 0;
}

.feature-check-grid h3 {
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 1rem;
}

.feature-check-grid p,
.steps-list {
  color: var(--muted);
}

.steps-list {
  padding-left: 22px;
}

.steps-list li {
  margin-bottom: 12px;
  padding-left: 4px;
}

.steps-list strong {
  color: var(--ink);
}

.library-section {
  margin: 12px 0 34px;
}

.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.library-heading h2,
.library-heading p {
  margin-top: 0;
  margin-bottom: 0;
}

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hardware-card,
.guide-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.82);
  padding: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.hardware-card:hover,
.hardware-card:focus-visible,
.guide-card:hover,
.guide-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(15, 139, 141, 0.55);
  box-shadow: 0 10px 24px rgba(15, 46, 61, 0.08);
}

.hardware-card span,
.hardware-card small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hardware-card h3,
.hardware-card p,
.guide-card h3,
.guide-card p {
  margin: 8px 0 0;
}

.hardware-card p,
.guide-card p {
  color: var(--muted);
}

.hardware-card small {
  display: block;
  margin-top: 12px;
  color: var(--teal);
}

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

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 28px;
  align-items: center;
  padding: 34px 0 28px;
}

.profile-hero h1,
.profile-hero p {
  margin-top: 0;
}

.survey-badge {
  display: grid;
  border: 1px solid rgba(194, 138, 39, 0.45);
  border-radius: 12px;
  background: #fff7dc;
  padding: 18px;
}

.survey-badge span,
.survey-badge small {
  color: var(--muted);
  font-size: 0.78rem;
}

.survey-badge strong {
  color: var(--navy);
  font-size: 2rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
}

.profile-main {
  min-width: 0;
}

.profile-main > h2 {
  margin-top: 30px;
}

.spec-panel,
.profile-related,
.source-note {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.82);
  padding: 18px;
}

.spec-panel h2,
.profile-related h2,
.source-note h2 {
  margin-top: 0;
}

.spec-panel dl {
  margin: 0;
}

.spec-panel dl div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.spec-panel dt {
  color: var(--muted);
  font-weight: 700;
}

.spec-panel dd {
  margin: 0;
}

.profile-related {
  align-self: start;
  position: sticky;
  top: 16px;
}

.profile-related a {
  display: block;
  border-top: 1px solid var(--line);
  padding: 10px 0;
  text-decoration: none;
}

.profile-related .all-hardware-link {
  color: var(--teal);
  font-weight: 800;
}

.source-note {
  margin-top: 28px;
  color: var(--muted);
}

.trust-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.screen-tool {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  margin-bottom: 30px;
  overflow: hidden;
}

.screen-preview {
  align-items: center;
  color: white;
  display: flex;
  font-size: clamp(2rem, 8vw, 6rem);
  font-weight: 900;
  justify-content: center;
  min-height: 360px;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease;
}

.screen-preview:fullscreen {
  min-height: 100vh;
}

.screen-controls {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px;
}

.screen-controls label {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
}

.screen-controls input[type="color"] {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 42px;
  padding: 3px;
  width: 58px;
}

.screen-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.screen-presets button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
  padding: 9px 12px;
}

.info-stats article {
  min-height: 96px;
}

.calculator-card,
.builder-hero,
.builder-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.calculator-card {
  margin-bottom: 30px;
  padding: 20px;
}

.calculator-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.calculator-row label {
  color: var(--muted);
  font-weight: 800;
}

.calculator-row input,
.calculator-row select {
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--navy);
  display: block;
  font: inherit;
  margin-top: 6px;
  padding: 11px 12px;
  width: 100%;
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.mode-tabs button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
  padding: 10px 13px;
}

.mode-tabs button.is-active,
.screen-presets button:hover {
  background: var(--navy);
  color: white;
}

.calculator-result {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.big-result {
  color: var(--navy);
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 8px 0;
}

.builder-hero {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  margin-bottom: 28px;
  padding: clamp(24px, 5vw, 46px);
}

.builder-hero h1 {
  margin-bottom: 16px;
}

.builder-diagram {
  background: linear-gradient(135deg, rgba(247, 241, 229, 0.8), rgba(255,255,255,0.95));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.pc-wire-diagram {
  display: block;
  height: auto;
  width: 100%;
}

.pc-part,
.pc-line {
  fill: none;
  stroke: var(--navy);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  transition: stroke 0.18s ease, fill 0.18s ease, filter 0.18s ease, transform 0.18s ease;
}

.pc-part.is-active,
.pc-line.is-active {
  fill: rgba(0, 132, 137, 0.16);
  filter: drop-shadow(0 0 12px rgba(0, 132, 137, 0.32));
  stroke: var(--teal);
  stroke-width: 6;
}

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

.builder-card {
  color: var(--navy);
  display: block;
  padding: 18px;
  text-decoration: none;
}

.builder-card span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.builder-card h2 {
  font-size: 1.15rem;
  margin: 8px 0;
}

.builder-card p {
  color: var(--muted);
  margin: 0;
}

.builder-card:hover {
  border-color: rgba(0, 132, 137, 0.55);
  box-shadow: 0 18px 38px rgba(11, 42, 56, 0.08);
}

.builder-workbench,
.builder-dashboard {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  margin-bottom: 28px;
}

.builder-configurator {
  display: grid;
  gap: 14px;
}

.builder-sticky-panel {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 18px;
}

.builder-step,
.build-summary,
.component-options,
.psu-estimator,
.report-import-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.builder-step-head,
.builder-list-item {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

.builder-step-head > span,
.builder-list-item > span {
  align-items: center;
  background: rgba(0, 132, 137, 0.1);
  border: 1px solid rgba(0, 132, 137, 0.22);
  border-radius: 999px;
  color: var(--teal);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.builder-step-head h2,
.build-summary h2,
.report-import-card h2 {
  margin: 0 0 4px;
}

.builder-step-head p,
.build-option-row p,
.build-option-card p,
.report-import-card p {
  color: var(--muted);
  margin: 0;
}

.builder-step-head a,
.builder-list-item em,
.option-actions a {
  color: var(--teal);
  font-style: normal;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.builder-option-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.build-option-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.build-option-row span,
.build-option-card span {
  color: var(--teal);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.build-option-row h3,
.build-option-card h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.build-option-row button,
.build-option-card button {
  background: var(--navy);
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  font-weight: 900;
  padding: 9px 13px;
}

.build-option-row:hover,
.build-option-row.is-selected,
.build-option-card.is-selected {
  border-color: rgba(0, 132, 137, 0.62);
  box-shadow: 0 14px 30px rgba(11, 42, 56, 0.08);
}

.build-option-row.is-selected button,
.build-option-card.is-selected button {
  background: var(--teal);
}

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

.build-option-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  padding: 14px;
}

.option-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.build-summary dl {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.build-summary dl div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.build-summary dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.build-summary dd {
  margin: 2px 0 0;
}

.summary-hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 10px 0 0;
}

.psu-result {
  background: rgba(0, 132, 137, 0.08);
  border-radius: 12px;
  padding: 14px;
}

.mini-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.mini-results span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 900;
  padding: 7px 10px;
}

.calculator-row-simple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.survey-stats article {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 16px;
}

.survey-stats span,
.survey-stats p {
  color: var(--muted);
  font-size: 0.82rem;
}

.survey-stats strong {
  display: block;
  margin: 5px 0;
  color: var(--navy);
  font-size: 1.65rem;
}

.survey-stats p {
  margin: 0;
}

.survey-table {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}

.survey-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px 80px;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  text-decoration: none;
}

.survey-row:first-child {
  border-top: 0;
}

.survey-head {
  background: var(--soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 6px 0 0;
}

@media (max-width: 820px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    margin: 10px 14px 18px;
    padding: 14px;
  }

  .tool-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .tool-nav a {
    white-space: nowrap;
  }

  .tool-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 26px;
  }

  h1 {
    font-size: clamp(2.45rem, 15vw, 4.2rem);
  }

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

  .tool-surface-top {
    display: block;
  }

  .summary-grid,
  .technical-grid {
    grid-template-columns: 1fr;
  }

  .feature-check-grid {
    grid-template-columns: 1fr;
  }

  .hardware-grid,
  .guide-card-grid,
  .builder-grid,
  .survey-stats,
  .profile-layout,
  .profile-hero,
  .builder-hero,
  .calculator-row {
    grid-template-columns: 1fr;
  }

  .profile-related {
    position: static;
  }

  .library-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .run-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
