.build-guide-page {
  color-scheme: dark;
  --bg-surface: #191d25;
  --bg-border: #3a414e;
  --bg-text: #f4f5f7;
  --bg-muted: #c0c7d1;
  --bg-accent: #ffc266;
  margin: 0;
  min-width: 0;
  background: #111419;
  color: var(--bg-text);
  font: 1rem/1.5 Inter, system-ui, sans-serif;
}
.build-guide-page *, .build-guide-page *::before, .build-guide-page *::after { box-sizing: border-box; }
.build-guide-page [hidden] { display: none !important; }
.build-guide-page a { color: inherit; text-underline-offset: .22em; }
.build-guide-page :focus-visible { outline: 3px solid var(--bg-accent); outline-offset: 4px; }
.bg-wrap { width: min(1380px, calc(100% - clamp(32px, 7vw, 100px))); margin-inline: auto; }
.bg-header { background: #14171d; border-bottom: 1px solid var(--bg-border); }
.bg-header .bg-wrap { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.bg-header nav, .bg-collections { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; }
.bg-header nav { color: var(--bg-muted); font-size: .9rem; }
.bg-brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 780; text-decoration: none; }
.bg-brand img { display: block; width: 42px; height: 42px; object-fit: contain; border-radius: 7px; }
.bg-breadcrumb { display: flex; gap: .65rem; color: var(--bg-muted); font-size: .92rem; margin-block: 1.75rem 1rem; }
.build-guide-page h1 { margin: 0; font-size: clamp(2.1rem, 5vw, 3.65rem); letter-spacing: -.045em; line-height: 1.06; }
.bg-intro { margin: .55rem 0 1.5rem; color: var(--bg-muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.bg-filters { margin: 0 0 1.65rem; }
.bg-brands { display: flex; gap: .5rem; flex-wrap: wrap; padding: 0; margin: 0 0 1rem; border: 0; min-width: 0; }
.bg-sr, .bg-brands input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bg-brands span, .bg-filter-row select, .bg-filter-row input {
  display: block; min-height: 44px; border: 1px solid var(--bg-border); border-radius: 8px;
  color: var(--bg-text); background: var(--bg-surface); font: inherit;
}
.bg-brands span { padding: .55rem clamp(.6rem, 2vw, 1.45rem); cursor: pointer; font-weight: 650; }
.bg-brands input:checked + span { color: var(--bg-accent); border-color: var(--bg-accent); background: #342919; }
.bg-brands input:focus-visible + span { outline: 3px solid var(--bg-accent); outline-offset: 3px; }
.bg-filter-row { display: flex; gap: .85rem; flex-wrap: wrap; }
.bg-filter-row label { color: var(--bg-muted); font-size: .9rem; width: min(100%, 220px); }
.bg-filter-row select, .bg-filter-row input { width: 100%; margin-top: .25rem; padding: .5rem .7rem; }
.bg-filter-row input::placeholder { color: var(--bg-muted); opacity: 1; }
.bg-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; gap: clamp(1rem, 2.5vw, 2rem); }
.bg-layout h2 { font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.2; margin: 0; }
.bg-message { color: var(--bg-muted); margin: .6rem 0; }
.bg-message:empty { display: none; }
.bg-kits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem; margin-top: .8rem; }
.bg-kit { min-width: 0; }
.bg-kit-choice { display: block; width: 100%; overflow: hidden; text-align: left; border: 2px solid var(--bg-border); border-radius: 12px; color: inherit; font: inherit; background: var(--bg-surface); padding: 0; cursor: pointer; }
.bg-kit-choice:hover { border-color: #8e97a8; }
.bg-kit-choice[aria-pressed="true"] { border-color: var(--bg-accent); box-shadow: 0 0 0 1px #ffc26628; }
.bg-kit-photo { display: grid; place-items: center; aspect-ratio: 6 / 5; background: #242a34; color: var(--bg-muted); overflow: hidden; }
.bg-kit-photo picture, .bg-kit-photo img { display: block; width: 100%; height: 100%; min-height: 0; }
.bg-kit-photo img { object-fit: contain; }
.bg-kit-info { display: grid; gap: .35rem; padding: .8rem; }
.bg-kit-name { font-size: 1.1rem; line-height: 1.25; overflow-wrap: anywhere; }
.bg-specs, .bg-kit-note, .bg-kit-details, .bg-tool-details { color: var(--bg-muted); font-size: .9rem; overflow-wrap: anywhere; }
.bg-kit-details { display: inline-block; margin: .5rem 0 0 .15rem; }
.bg-kit-price { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; justify-content: space-between; color: var(--bg-accent); }
.bg-in-stock { background: #1e3b2a; color: #ccf3d6; padding: .15rem .55rem; border-radius: 5px; font-size: .78rem; }
.bg-collections { margin-top: 1.15rem; font-size: .9rem; color: var(--bg-muted); }
.bg-checklist { background: var(--bg-surface); border: 1px solid var(--bg-border); border-radius: 12px; padding: clamp(1rem, 2vw, 1.5rem); overflow-wrap: anywhere; }
.bg-checklist h3 { margin: 1.05rem 0 .3rem; padding-top: .75rem; border-top: 1px solid var(--bg-border); font-size: 1.02rem; }
.bg-checklist p { margin: .25rem 0; color: var(--bg-muted); }
.bg-box-text { white-space: pre-line; }
.bg-tools { padding: 0; margin: 0; list-style: none; display: grid; gap: .65rem; }
.bg-tool { display: grid; gap: .1rem; }
.bg-check { display: flex; align-items: center; gap: .5rem; min-height: 40px; cursor: pointer; font-size: .9rem; }
.bg-check input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--bg-accent); }
.bg-total { margin-top: 1rem; padding: .8rem 0; border-top: 1px solid var(--bg-border); }
.bg-total-line { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.bg-total strong { color: var(--bg-accent); font-size: clamp(1.25rem, 2vw, 1.55rem); white-space: nowrap; }
.build-guide-page .bg-contact { display: block; text-align: center; padding: .65rem; border-radius: 8px; background: #276739; color: white; font-weight: 750; text-decoration: none; }
.build-guide-page .bg-contact:hover { background: #307a45; }
.build-guide-page footer { color: var(--bg-muted); padding-block: 2rem; font-size: .9rem; }
.build-world-link { width: min(1360px, calc(100% - 32px)); margin: 1rem auto; padding: .65rem 1rem; display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; align-items: center; justify-content: space-between; border: 1px solid #977440; border-radius: 10px; }
.build-world-link p { margin: 0; }
.build-world-link a { text-decoration: none; }
.build-product-checklist { max-width: 1120px; margin: 1.25rem auto; padding: 1.15rem; border: 1px solid #8b714e; border-radius: 12px; }
.build-product-checklist h2 { margin-top: 0; }
.build-product-checklist h3 { margin: .85rem 0 .25rem; font-size: 1.05rem; }
.build-product-checklist p { margin: .3rem 0; }
.build-product-checklist a { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 800px) {
  .bg-layout { grid-template-columns: 1fr; }
  .bg-header .bg-wrap { align-items: flex-start; flex-direction: column; justify-content: center; gap: .45rem; padding-block: .65rem; }
}
@media (max-width: 520px) {
  .bg-kits { grid-template-columns: 1fr; }
  .bg-kit-photo { aspect-ratio: 7 / 5; }
  .bg-filter-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .bg-filter-row label { width: 100%; min-width: 0; font-size: .83rem; }
  .bg-filter-row input, .bg-filter-row select { font-size: 16px; }
}
@media (max-width: 520px) {
  .bg-kits {
    display: flex;
    align-items: start;
    overflow-x: auto;
    padding: 5px;
    margin-inline: -5px;
    scroll-padding-inline: 5px;
    scroll-snap-type: x mandatory;
  }
  .bg-kit { flex: 0 0 90%; scroll-snap-align: start; }
  .bg-kit:only-child { flex-basis: 100%; }
}
