[hidden] {
  display: none !important;
}

/* Official product candidates V2: preserve the site template and add only
   candidate-specific controls, statuses, and compact official-spec details. */
.candidate-list-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.candidate-list-controls > .candidate-list-controls__label:first-child {
  grid-column: 1 / -1;
}

.candidate-list-controls__label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  font-weight: 700;
}

.candidate-list-controls__label input,
.candidate-list-controls__label select {
  width: 100%;
  min-width: 0;
}

.candidate-product__status {
  display: inline-block;
  margin: 0.25rem 0;
  padding: 0.2rem 0.55rem;
  border: 2px solid currentColor;
  border-radius: 0.35rem;
  font-weight: 800;
}

.candidate-product__status--match { color: #176b35; }
.candidate-product__status--conditional { color: #7a5200; }
.candidate-product__status--hold { color: #6b4b91; }
.candidate-product__status--insufficient { color: #a32525; }

.candidate-product__specs dl {
  display: grid;
  grid-template-columns: minmax(9rem, 0.8fr) minmax(0, 1.2fr);
  gap: 0.35rem 0.8rem;
  margin: 0.75rem 0 0;
}

.candidate-product__specs dt { font-weight: 700; }
.candidate-product__specs dd { margin: 0; overflow-wrap: anywhere; }
.candidate-product__multi-value-note { margin: 0 0 0.25rem; font-weight: 600; }
.candidate-product__multi-value-list { margin: 0; padding-left: 1.25rem; }
.candidate-category__reasons { margin-block: 1rem; }

@media (max-width: 48rem) {
  .candidate-list-controls { grid-template-columns: 1fr; }
  .candidate-product__specs dl { grid-template-columns: 1fr; }
  .candidate-product__specs dd { margin-bottom: 0.35rem; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

.planner-workspace,
.planner-workspace > #planner-form,
.planner-workspace > .planner-output-pane,
.planner-workspace > #product-detail-pane,
.planner-workspace > * {
  min-width: 0;
}

.planner-detail-pane {
  min-width: 0;
  width: 100%;
  margin-top: 2rem;
  padding: 1rem;
  border: 2px solid var(--color-accent);
  background: var(--color-surface);
  overflow-wrap: anywhere;
}

.planner-detail-pane > h2 {
  margin: 0 0 0.7rem;
  font-size: 1.4rem;
  line-height: 1.4;
}

#game-condition-details {
  margin-top: 1rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

#game-condition-details summary { cursor: pointer; }
#game-condition-content section { margin-top: 1rem; }
#game-condition-content ul { padding-left: 1.25rem; }

#product-detail-content {
  min-width: 0;
  overflow-wrap: anywhere;
}

#product-detail-content :where(p, ul, ol, dl, table, figure) {
  max-width: 100%;
}

#product-detail-content :where(p, li, dt, dd, a, button) {
  overflow-wrap: anywhere;
}

#product-detail-content dl,
#game-condition-content dl {
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.7fr) minmax(0, 1.3fr);
  gap: 0.45rem 0.75rem;
  margin: 1rem 0 0;
}

#product-detail-content dt,
#game-condition-content dt {
  font-weight: 700;
}

#product-detail-content dd,
#game-condition-content dd {
  min-width: 0;
  margin: 0;
}

#product-detail-content ul,
#product-detail-content ol {
  margin-block: 0.45rem 0;
  padding-left: 1.35rem;
}

#product-detail-content a {
  display: inline-block;
  max-width: 100%;
}

.product-detail__empty {
  margin: 0;
  color: var(--color-muted);
}

.planner-detail-pane .planner-button {
  max-width: 100%;
  white-space: normal;
}

.planner-section {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--color-border);
}

.planner-section > h2 {
  margin: 0 0 0.7rem;
  font-size: 1.4rem;
  line-height: 1.4;
}

.planner-section > h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.08rem;
  line-height: 1.45;
}

.planner-section p {
  margin-top: 0;
}

.planner-page fieldset {
  min-width: 0;
  margin: 1rem 0 0;
  padding: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.planner-page legend {
  max-width: 100%;
  padding-inline: 0.35rem;
  font-weight: 700;
}

.purpose-options {
  min-width: 0;
}

.purpose-selection-descriptions {
  margin-top: 0.75rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--color-border);
}

.purpose-selection-description {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.selection-count {
  margin: 0.35rem 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.purpose-option__name {
  display: block;
  font-weight: 700;
}

.question-help,
.multiple-selection-help {
  display: block;
  margin-top: 0.1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.detail-fieldset + .detail-fieldset {
  margin-top: 1.25rem;
}

.question-group + .question-group {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--color-border);
}

.question-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.question-error {
  margin: 0.55rem 0 0;
  color: #6f1717;
  font-weight: 700;
}

.question-group[aria-invalid="true"] {
  padding: 0.75rem;
  border: 2px solid #a42c2c;
}

.planner-page select,
.planner-page textarea {
  max-width: 100%;
  border: 1px solid #9da8ac;
  background: #ffffff;
  color: var(--color-text);
  font: inherit;
}

.planner-page select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.45rem 2.25rem 0.45rem 0.65rem;
}

.planner-page select[multiple] {
  padding-inline: 0.65rem;
}

.planner-page option {
  max-width: 100%;
}

.planner-page textarea {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.75rem;
  line-height: 1.55;
  resize: vertical;
}

.spec-memo-print {
  display: none;
}

.planner-page :where(button, input, select, textarea):focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.planner-page :where(a[href], button, input, select, textarea, summary, [tabindex]) {
  scroll-margin-block: 0.75rem;
  scroll-margin-inline: 0.75rem;
}

html {
  scroll-padding-block: 0.75rem;
  scroll-padding-inline: 0.75rem;
}

#main-content:focus-visible {
  outline-offset: -3px;
}

.planner-output-pane #spec-memo {
  scroll-margin-block: 2.5rem;
}

html:has(.planner-output-pane #spec-memo:focus-visible) {
  scroll-padding-block: 3.875rem 0;
}

.planner-page fieldset:disabled {
  color: var(--color-muted);
}

.planner-note {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.planner-message {
  margin: 1rem 0;
  padding: 0.7rem 0.85rem;
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface);
}

.planner-message--error {
  border-left-color: #a42c2c;
  color: #6f1717;
}

.planner-primary-action {
  margin-top: 1.75rem;
}

.planner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.planner-button {
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #7c888d;
  border-radius: 0;
  background: #ffffff;
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.planner-button:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.planner-button--primary {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #ffffff;
}

.planner-button--primary:hover {
  background: #115648;
  color: #ffffff;
}

.planner-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.result-table-wrap {
  width: 100%;
  margin-top: 1rem;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.94rem;
}

.result-table caption {
  padding-bottom: 0.55rem;
  text-align: left;
  font-weight: 700;
}

.result-table th,
.result-table td {
  padding: 0.7rem;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.result-table thead th {
  background: var(--color-surface);
}

.result-table th[scope="row"] {
  width: 14%;
}

.result-table td:last-child {
  width: 31%;
  color: #3f494d;
  font-size: 0.88rem;
}

.result-table td[colspan="3"],
.result-table__common {
  min-width: 0;
}

.result-value {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
}

.result-value__known,
.result-value__unresolved {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.result-value__known {
  font-weight: 650;
}

.result-value__unresolved {
  padding-top: 0.35rem;
  border-top: 1px solid var(--color-border);
  color: #4b565a;
  font-size: 0.92em;
}

.result-value__label {
  font-weight: 700;
}

.result-extra {
  margin-top: 1.25rem;
  padding-top: 0.25rem;
}

.result-extra h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.04rem;
}

.result-extra p,
.result-extra ul {
  margin-top: 0.35rem;
}

.result-extra ul {
  padding-left: 1.35rem;
}

.decision-details {
  margin-top: 1.5rem;
  padding-block: 0.8rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.decision-details summary {
  width: fit-content;
  font-weight: 700;
  cursor: pointer;
}

.decision-details summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.decision-details[open] > summary {
  margin-bottom: 0.75rem;
}

.decision-details h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1rem;
}

.decision-details ul {
  margin-block: 0.35rem 0;
  padding-left: 1.35rem;
}

.decision-details li + li {
  margin-top: 0.45rem;
}

.source-details {
  margin-top: 1.4rem;
  padding-block: 0.8rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.source-details[hidden] {
  display: none;
}

.source-details summary {
  width: fit-content;
  max-width: 100%;
  font-weight: 700;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.source-details summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.source-details[open] summary {
  margin-bottom: 0.75rem;
}

.source-details .source-list {
  margin-block: 0;
}

.source-list {
  padding-left: 1.35rem;
}

.source-list li + li {
  margin-top: 0.55rem;
}

.source-list a {
  overflow-wrap: anywhere;
}

.basis-description {
  display: block;
  color: var(--color-muted);
  font-size: 0.88rem;
}

#candidate-results {
  min-width: 0;
  margin-top: 1.5rem;
}

#candidate-results[hidden] {
  display: none;
}

.laptop-spec-guide,
.laptop-product-grid {
  min-width: 0;
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border: 2px solid var(--color-accent);
  background: var(--color-surface);
}

.laptop-spec-guide__heading,
.laptop-product-grid__heading {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.laptop-spec-guide__notice,
.laptop-spec-guide__scope,
.laptop-spec-guide__status,
.laptop-spec-guide__boundary,
.laptop-product-grid__notice,
.laptop-product-grid__scope,
.laptop-product-grid__boundary {
  color: var(--color-muted);
  overflow-wrap: anywhere;
}

.laptop-spec-guide__table-wrap,
.laptop-product-grid__table-wrap {
  width: 100%;
  margin-top: 1rem;
  overflow-x: auto;
}

.laptop-spec-guide__table,
.laptop-product-grid__table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.94rem;
}

.laptop-spec-guide__table caption,
.laptop-product-grid__table caption {
  margin-bottom: 0.5rem;
  text-align: left;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.laptop-spec-guide__table th,
.laptop-spec-guide__table td,
.laptop-product-grid__table th,
.laptop-product-grid__table td {
  padding: 0.65rem;
  border: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

.laptop-spec-guide__corner,
.laptop-spec-guide__row-heading,
.laptop-product-grid__corner,
.laptop-product-grid__category {
  width: 22%;
  background: var(--color-surface);
}

.laptop-spec-guide__profile,
.laptop-product-grid__tier {
  background: var(--color-surface);
}

.laptop-spec-guide__value,
.laptop-product-grid__cell {
  min-width: 0;
}

.laptop-product-grid__name {
  display: block;
  min-width: 0;
  margin-bottom: 0.45rem;
  overflow-wrap: anywhere;
}

.laptop-product-grid__details {
  max-width: 100%;
  white-space: normal;
}

.laptop-spec-guide__product-grid {
  display: grid;
  min-width: 0;
  gap: 1rem;
  margin-top: 1rem;
}

.laptop-spec-guide__product-tier {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.laptop-spec-guide__product-tier-heading {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.laptop-spec-guide__product-cells {
  display: grid;
  min-width: 0;
  gap: 0.5rem;
}

.laptop-spec-guide__product-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  min-width: 0;
  gap: 0.65rem;
  padding: 0.65rem;
  border: 1px solid var(--color-border);
  background: var(--color-background);
}

.laptop-spec-guide__product-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.laptop-spec-guide__product-detail,
.laptop-spec-guide__product-cell button[data-candidate-action="product-detail"] {
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}

.laptop-spec-guide__product-detail:focus-visible,
.laptop-spec-guide__product-cell button[data-candidate-action="product-detail"]:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.laptop-spec-guide__product-grid :where(a, button) {
  overflow-wrap: anywhere;
}

.candidate-results__heading {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  line-height: 1.45;
}

.candidate-results__notice,
.candidate-results__empty,
.candidate-category__note {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.candidate-profile {
  min-width: 0;
  margin-top: 1rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.candidate-profile > summary,
.candidate-list-details > summary,
.candidate-product__sources > summary {
  max-width: 100%;
  font-weight: 700;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.candidate-profile > summary:focus-visible,
.candidate-list-details > summary:focus-visible,
.candidate-product__sources > summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.candidate-profile[open] > summary,
.candidate-list-details[open] > summary,
.candidate-product__sources[open] > summary {
  margin-bottom: 0.75rem;
}

.candidate-category {
  min-width: 0;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.candidate-category__heading {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.5;
}

.candidate-category__status-counts,
.candidate-category__note,
.candidate-product__identity,
.candidate-product__status,
.candidate-product__mpn,
.candidate-product__reason-heading {
  margin-bottom: 0.45rem;
  overflow-wrap: anywhere;
}

.candidate-category__status-counts {
  font-size: 0.9rem;
}

.candidate-list {
  margin: 0;
  padding-left: 1.5rem;
}

.candidate-product {
  min-width: 0;
  padding-block: 0.75rem;
  border-top: 1px solid var(--color-border);
  overflow-wrap: anywhere;
}

.candidate-product:first-child {
  border-top: 0;
}

.candidate-product__identity,
.candidate-product__status,
.candidate-product__reason-heading {
  font-weight: 700;
}

.candidate-product__mpn {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
}

.candidate-product__select {
  margin: 0.15rem 0 0.65rem;
}

.candidate-product__select[aria-pressed="true"] {
  border-color: var(--color-accent);
  background: var(--color-surface-accent, #e7f3ef);
}

.candidate-selection {
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border: 2px solid var(--color-accent);
  background: var(--color-surface);
}

.candidate-selection__heading {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.candidate-selection__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1rem;
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.candidate-selection__item {
  min-width: 0;
  overflow-wrap: anywhere;
}

.candidate-selection__check {
  width: auto;
}

.candidate-product__reasons,
.candidate-product__sources ul {
  margin-block: 0.35rem 0.75rem;
  padding-left: 1.35rem;
}

.candidate-product__sources {
  margin-top: 0.65rem;
}

.candidate-product__sources a {
  overflow-wrap: anywhere;
}

.example-builds {
  min-width: 0;
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border: 2px solid var(--color-accent);
  background: var(--color-surface);
}

.example-builds__heading {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.example-builds__notice,
.example-builds__status {
  color: var(--color-muted);
  overflow-wrap: anywhere;
}

.example-builds__table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  table-layout: fixed;
}

.example-builds__table caption {
  margin-bottom: 0.5rem;
  text-align: left;
  font-weight: 700;
}

.example-builds__table th,
.example-builds__table td {
  padding: 0.65rem;
  border: 1px solid var(--color-border);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.example-builds__part-heading,
.example-builds__part {
  width: 22%;
  text-align: left;
  background: var(--color-surface);
}

.example-builds__band-heading {
  text-align: left;
}

.example-builds__value {
  min-width: 0;
}

.example-builds__change {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  font-size: 0.86rem;
}

.example-builds__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.example-builds__reroll {
  grid-column: 1 / -1;
}

.example-builds__check {
  margin-top: 0.75rem;
}

.legacy-candidate-picker {
  position: relative;
  min-width: 0;
  margin-top: 1rem;
  padding: 1rem;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
}

.legacy-candidate-picker__heading {
  margin: 0 5.5rem 0.75rem 0;
  font-size: 1.05rem;
}

.legacy-candidate-picker__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

@media print {
  .example-builds,
  .legacy-candidate-picker {
    display: none !important;
  }
}

@media (max-width: 48rem) {
  .planner-workspace {
    display: block;
  }

  .planner-workspace > #planner-form,
  .planner-workspace > .planner-output-pane,
  .planner-workspace > #product-detail-pane {
    width: 100%;
  }

  .planner-detail-pane {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .laptop-spec-guide__product-grid,
  .laptop-spec-guide__product-cells {
    grid-template-columns: minmax(0, 1fr);
  }

  .laptop-spec-guide__product-cell {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .laptop-product-grid__table-wrap {
    overflow-x: auto;
  }

  .laptop-product-grid__table {
    min-width: 36rem;
  }

  .planner-page fieldset {
    padding: 0.8rem;
  }

  .result-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .result-table,
  .result-table tbody,
  .result-table tr,
  .result-table th,
  .result-table td {
    display: block;
    width: 100%;
  }

  .result-table {
    table-layout: auto;
  }

  .result-table caption {
    display: block;
    inline-size: 100%;
    max-inline-size: 100%;
    box-sizing: border-box;
    caption-side: top;
    white-space: normal;
    writing-mode: horizontal-tb;
  }

  .result-table tr {
    margin-top: 1rem;
    border: 1px solid var(--color-border);
  }

  .result-table th,
  .result-table td {
    border: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .result-table th[scope="row"] {
    width: 100%;
    background: var(--color-surface);
  }

  .result-table td {
    display: grid;
    grid-template-columns: minmax(5.5rem, 34%) minmax(0, 1fr);
    gap: 0.7rem;
  }

  .result-table td::before {
    content: attr(data-label);
    font-weight: 700;
  }

  .result-table td:last-child {
    width: 100%;
    font-size: 0.9rem;
  }

  .result-table td[colspan="3"],
  .result-table__common {
    width: 100%;
  }

  .result-table__common {
    grid-template-columns: minmax(0, 1fr);
  }

  .result-table td.result-table__common::before {
    content: none;
  }

  .result-value {
    gap: 0.3rem;
  }

  .result-value__unresolved {
    padding-top: 0.3rem;
  }

  .planner-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .planner-button {
    width: 100%;
  }

  .example-builds__table,
  .example-builds__table tbody,
  .example-builds__table tr,
  .example-builds__table th,
  .example-builds__table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .example-builds__table caption {
    display: block;
    inline-size: 100%;
    max-inline-size: 100%;
    box-sizing: border-box;
    caption-side: top;
    white-space: normal;
    writing-mode: horizontal-tb;
  }

  .example-builds__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .example-builds__table tr {
    margin-top: 1rem;
    border: 1px solid var(--color-border);
  }

  .example-builds__table th,
  .example-builds__table td {
    border: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .example-builds__table td {
    display: grid;
    grid-template-columns: minmax(6.5rem, 35%) minmax(0, 1fr);
    gap: 0.7rem;
  }

  .example-builds__table td::before {
    content: attr(data-band-label);
    font-weight: 700;
  }

  .example-builds__table tr > :last-child {
    border-bottom: 0;
  }

  .example-builds__actions {
    grid-template-columns: 1fr;
  }

  .example-builds__reroll {
    grid-column: auto;
  }
}

@media screen and (min-width: 64rem) {
  .planner-workspace {
    display: grid;
    grid-template-columns:
      minmax(14rem, 1fr)
      minmax(20rem, 1.35fr)
      minmax(16rem, 1fr);
    align-items: start;
    gap: 1.5rem;
  }

  .planner-workspace > #product-detail-pane {
    position: sticky;
    top: 1rem;
    align-self: start;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    margin-top: 0;
    overflow: auto;
    scroll-padding-block: 0.75rem;
  }

  .planner-workspace > #planner-form {
    position: sticky;
    top: 1rem;
    align-self: start;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    padding-inline: 0.375rem;
    padding-block-end: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-padding-block: 0.5rem;
  }

  .planner-workspace > #planner-form :where(select, button) {
    scroll-margin-block: 0.5rem;
  }

  .planner-output-pane .result-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .planner-output-pane .result-table,
  .planner-output-pane .result-table tbody,
  .planner-output-pane .result-table tr,
  .planner-output-pane .result-table th,
  .planner-output-pane .result-table td {
    display: block;
    width: 100%;
  }

  .planner-output-pane .result-table {
    table-layout: auto;
  }

  .planner-output-pane .result-table caption {
    display: block;
    inline-size: 100%;
    max-inline-size: 100%;
    box-sizing: border-box;
    caption-side: top;
    white-space: normal;
    writing-mode: horizontal-tb;
  }

  .planner-output-pane .result-table tr {
    margin-top: 1rem;
    border: 1px solid var(--color-border);
  }

  .planner-output-pane .result-table th,
  .planner-output-pane .result-table td {
    border: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .planner-output-pane .result-table th[scope="row"] {
    width: 100%;
    background: var(--color-surface);
  }

  .planner-output-pane .result-table td {
    display: grid;
    grid-template-columns: minmax(5.5rem, 34%) minmax(0, 1fr);
    gap: 0.7rem;
  }

  .planner-output-pane .result-table td::before {
    content: attr(data-label);
    font-weight: 700;
  }

  .planner-output-pane .result-table td:last-child {
    width: 100%;
    font-size: 0.9rem;
  }

  .planner-output-pane .result-table td[colspan="3"],
  .planner-output-pane .result-table__common {
    width: 100%;
  }

  .planner-output-pane .result-table__common {
    grid-template-columns: minmax(0, 1fr);
  }

  .planner-output-pane .result-table td.result-table__common::before {
    content: none;
  }

  .planner-output-pane .result-value {
    gap: 0.3rem;
  }

  .planner-output-pane .result-value__unresolved {
    padding-top: 0.3rem;
  }
}

.candidate-list-panel {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.candidate-list-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.candidate-list-controls label {
  display: grid;
  gap: 0.25rem;
  font-weight: 600;
}

.candidate-list-controls input,
.candidate-list-controls select {
  width: 100%;
  min-height: 2.4rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font: inherit;
}

.candidate-list__more {
  margin-top: 0.75rem;
}

.candidate-category__status-reasons {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.actionable-results {
  min-width: 0;
}

.actionable-results__heading {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.45;
}

.actionable-results__intro,
.actionable-results__boundary,
.actionable-results__verification,
.actionable-results__laptop-note {
  margin: 0.75rem 0 0;
  overflow-wrap: anywhere;
}

.actionable-results__status {
  margin: 1rem 0 0.45rem;
  font-weight: 700;
}

.actionable-results__tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 0.45rem 1rem;
}

.actionable-results__tier {
  min-width: 7rem;
  white-space: normal;
}

.actionable-results__tier.is-selected,
.actionable-results__tier-heading.is-selected,
.actionable-results__cell.is-selected {
  outline: 3px solid var(--color-accent);
  outline-offset: -3px;
}

.actionable-results__table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--color-border);
}

.actionable-results__table {
  width: 100%;
  min-width: 40rem;
  table-layout: fixed;
  border-collapse: collapse;
}

.actionable-results__table caption {
  padding: 0.65rem;
  text-align: left;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
}

.actionable-results__table th,
.actionable-results__table td {
  padding: 0.65rem;
  border: 1px solid var(--color-border);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.actionable-results__corner,
.actionable-results__row-heading {
  width: 8.5rem;
  text-align: left;
}

.actionable-results__tier-heading {
  text-align: left;
}

.actionable-results__cell {
  min-width: 0;
}

.actionable-results__product {
  display: block;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.actionable-results__detail {
  max-width: 100%;
  margin-top: 0.55rem;
  white-space: normal;
}

.actionable-results__checker {
  margin-top: 1rem;
  max-width: 100%;
  white-space: normal;
}

.cpu-search-relaxation {
  min-width: 0;
  max-width: 100%;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface);
  overflow-wrap: anywhere;
}

.cpu-search-relaxation__heading {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.cpu-search-relaxation__description,
.cpu-search-relaxation__reason,
.cpu-search-relaxation__next-search {
  margin: 0.65rem 0 0;
  overflow-wrap: anywhere;
}

.cpu-search-relaxation__summary {
  display: grid;
  grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1.2fr);
  gap: 0.4rem 0.75rem;
  margin: 0.75rem 0 0;
}

.cpu-search-relaxation__summary dt {
  font-weight: 700;
}

.cpu-search-relaxation__summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.cpu-search-relaxation__next-search {
  padding-top: 0.65rem;
  border-top: 1px solid var(--color-border);
}

.cpu-search-relaxation__next-search-label {
  display: block;
  font-weight: 700;
}

.cpu-search-relaxation__next-search-value {
  display: block;
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
}

.cpu-search-relaxation__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.cpu-search-relaxation__button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.cpu-search-relaxation__status {
  margin: 0.7rem 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.cpu-search-relaxation :where(button, [tabindex="-1"]):focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.product-detail__sources {
  margin-top: 1rem;
}

@media (max-width: 40rem) {
  .actionable-results__tiers {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .actionable-results__tier {
    width: 100%;
  }

  .actionable-results__table {
    min-width: 37rem;
  }

  .cpu-search-relaxation {
    padding: 0.75rem;
  }

  .cpu-search-relaxation__summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .cpu-search-relaxation__summary dd {
    margin-bottom: 0.35rem;
  }

  .cpu-search-relaxation__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .cpu-search-relaxation__button {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 40rem) {
  .candidate-list-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .candidate-selection__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  .skip-link,
  .site-header,
  .site-footer,
  #planner-form,
  #load-status,
  #result-status,
  .result-introduction,
  .planner-actions,
  #copy-status,
  .page-introduction,
  .result-section,
  #product-detail-pane {
    display: none !important;
  }

  .page-layout {
    width: 100%;
    padding: 0;
  }

  .planner-workspace {
    display: block !important;
  }

  #planner-form {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .planner-output-pane {
    width: 100%;
    min-width: 0;
  }

  .planner-main {
    max-width: none;
  }

  .memo-section {
    break-inside: auto;
  }

  .planner-page textarea {
    display: none;
  }

  .spec-memo-print {
    display: block;
    margin: 0.45rem 0 0;
    padding: 0.75rem;
    border: 1px solid #9da8ac;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: inherit;
    line-height: 1.55;
  }

  .cpu-search-relaxation__actions,
  .cpu-search-relaxation__status {
    display: none !important;
  }

  a {
    color: #000000;
    text-decoration: none;
  }
}
#known-game-search .planner-button {
  margin: 0.25rem 0.5rem 0.25rem 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Keep optional explanations out of the main selection path. */
.question-guidance {
  margin: 0.2rem 0;
  font-size: 0.85rem;
}
.question-guidance summary,
.actionable-results__notes summary { cursor: pointer; }
.question-guidance .question-help { margin: 0.35rem 0; }
.question-group > .question-guidance { order: 3; }
.actionable-results__notes { margin: 0.6rem 0; }
.product-detail__value { font-size: 1.05rem; overflow-wrap: anywhere; }
.product-detail__specification-heading { font-size: 0.95rem; }
#result-summary:empty { display: none; }
