/* Guided CNC selection: real requirements first, the existing configurator second. */
#cnc-advisor {
  margin-bottom: 28px;
  font-family: var(--shop-body, 'Inter', sans-serif);
  scroll-margin-top: 114px;
}
#cnc-advisor [hidden], .advisor-builder-context[hidden] { display: none !important; }
#cnc-advisor *, #cnc-advisor *::before, #cnc-advisor *::after { box-sizing: border-box; }
#cnc-advisor :is(button, input) { font-family: inherit; border-radius: 0; }
#cnc-advisor :is(h3, h4) { font-family: var(--shop-heading, 'Montserrat', sans-serif); overflow-wrap: anywhere; }
#cnc-advisor :is(button, input, section, h3, h4), .advisor-builder-context { scroll-margin-top: 118px; }
#cnc-advisor :is(button, label, input) { -webkit-tap-highlight-color: transparent; }
#cnc-advisor :focus-visible { outline: 3px solid #0088ff; outline-offset: 4px; }
#cnc-advisor :is(fieldset, legend) { min-width: 0; padding: 0; border: 0; }
#cnc-advisor :is(button, label, strong, small, p, dt, dd) { overflow-wrap: break-word; }

.advisor-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.advisor-modes button {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 100px;
  padding: 22px 25px;
  border: 0;
  background: #2c3841;
  box-shadow: inset 0 0 0 1px #536572;
  color: #f2f6f9;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.advisor-modes button::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #0088ff;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 160ms ease;
}
.advisor-modes strong { color: inherit; font-size: .94rem; font-weight: 650; line-height: 1.45; }
.advisor-modes span { color: #b9cbd7; font-size: .79rem; line-height: 1.7; }
.advisor-modes button[aria-pressed='true'] { background: #fff; color: #1e272e; box-shadow: none; }
.advisor-modes button[aria-pressed='true'] span { color: #516a7b; }
.advisor-modes button[aria-pressed='true']::before { transform: scaleY(1); }

.advisor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 24px;
}
.advisor-card, .advisor-brief, .advisor-recommendation, .advisor-alternative, .advisor-no-match { min-width: 0; }
.advisor-card {
  padding: 32px;
  background: #fff;
  color: #1e272e;
}
.advisor-progress { margin-bottom: 29px; }
.advisor-progress > :is(p, span, div:first-child) {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #527083;
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .065em;
  line-height: 1.6;
  text-transform: uppercase;
}
.advisor-progress-track {
  width: 100%;
  height: 3px;
  overflow: hidden;
  background: #e5ecf1;
}
.advisor-progress-track > span {
  display: block;
  height: 100%;
  background: #0088ff;
  transition: width 160ms ease;
}
.advisor-step h3 {
  max-width: 660px;
  color: #1e272e;
  font-size: clamp(1.4rem, 2.25vw, 1.8rem);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.25;
}
.advisor-step > p, .advisor-step > fieldset > p {
  max-width: 650px;
  margin-top: 12px;
  color: #536c7d;
  font-size: .84rem;
  line-height: 1.8;
}
.advisor-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 25px;
}
.advisor-choice {
  position: relative;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  min-width: 0;
  min-height: 113px;
  margin: 0;
  padding: 20px;
  border: 0;
  background: #f5f8fa;
  box-shadow: inset 0 0 0 1px #d6e1e8;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.advisor-choice::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #0088ff;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 160ms ease;
}
.advisor-choice input[type='radio'] {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  accent-color: #0073d6;
  cursor: pointer;
}
.advisor-choice > span { display: block; min-width: 0; }
.advisor-choice strong { display: block; color: #213b4d; font-size: .84rem; font-weight: 650; line-height: 1.55; }
.advisor-choice small { display: block; margin-top: 7px; color: #566f80; font-size: .75rem; line-height: 1.7; }
.advisor-choice:has(input:checked) { background: #eaf4fc; box-shadow: inset 0 0 0 1px #8eb9d8; }
.advisor-choice:has(input:checked)::before, .advisor-choice:focus-within::before { transform: scaleY(1); }
.advisor-choice:has(input:focus-visible) { outline: 3px solid #0088ff; outline-offset: 3px; }
.advisor-choice input:focus-visible { outline: none !important; }
.advisor-choice:has(input:disabled) { background: #f3f5f7; box-shadow: inset 0 0 0 1px #e0e6eb; cursor: not-allowed; }
.advisor-choice:has(input:disabled) :is(strong, small) { color: #6a7c88; }
.advisor-choice:has(input:disabled) input { cursor: not-allowed; }
.advisor-choice:has(input:disabled)::before { transform: scaleY(0); }
.advisor-choice .advisor-choice-restriction { display: block; margin-top: 9px; color: #5a6b77; font-size: .7rem; font-weight: 500; line-height: 1.75; }
.shop-section .advisor-compatibility-note { margin-top: 17px; padding: 12px 14px; border-left: 2px solid #8db5d0; background: #eef5fa; color: #416177; font-size: .75rem; line-height: 1.8; }
.advisor-compatibility-note strong { color: #2e526b; font-weight: 650; }
.advisor-compatibility-note :is(p, span) { font-size: inherit; line-height: inherit; }
.advisor-icon { display: block; width: 27px; height: 27px; margin-bottom: 10px; color: #3d718f; }
.advisor-icon svg, svg.advisor-icon { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.advisor-dimensions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.advisor-dimensions label { display: block; min-width: 0; color: #35566d; font-size: .78rem; font-weight: 600; line-height: 1.6; }
.advisor-dimensions input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  margin-top: 9px;
  padding: 13px 14px;
  border: 1px solid #aebfc9;
  background: #fff;
  color: #1e272e;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  transition: border-color 160ms ease;
}
.advisor-dimensions input::placeholder { color: #6d7e8a; opacity: 1; }
.advisor-dimensions input:disabled { background: #f0f3f5; border-color: #d6e0e7; color: #667985; }
.advisor-dimensions input[aria-invalid='true'] { border-color: #a93832; }
.advisor-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.advisor-sizes button {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #c3d3dd;
  background: #f5f8fa;
  color: #345b75;
  font-size: .73rem;
  font-weight: 550;
  line-height: 1.6;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.advisor-sizes button[aria-pressed='true'] { border-color: #0088ff; background: #eaf4fc; color: #164d73; }
.advisor-sizes button:disabled { border-color: #dbe3e9; background: #f3f5f7; color: #74848f; cursor: not-allowed; }
.shop-section .advisor-size-note { margin-top: 12px; color: #5f7584; font-size: .73rem; line-height: 1.75; }
.advisor-unknown { display: flex; align-items: center; gap: 11px; min-height: 44px; margin-top: 19px; padding: 6px 0; color: #35566d; font-size: .8rem; line-height: 1.6; cursor: pointer; }
.advisor-unknown input { flex: 0 0 17px; width: 17px; height: 17px; margin: 0; accent-color: #0073d6; cursor: pointer; }
.advisor-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 30px; padding-top: 24px; border-top: 1px solid #dce5eb; }
.shop-section .advisor-actions .shop-primary { width: auto; min-width: 160px; margin: 0 0 0 auto; padding-right: 24px; padding-left: 24px; }
.shop-section .advisor-actions .shop-secondary { margin: 0; padding: 12px 0; text-align: left; }
.shop-section .advisor-error { margin-top: 18px; padding: 12px 15px; border-left: 3px solid #ad413b; background: #fcf1ef; color: #8b2d29; font-size: .79rem; line-height: 1.65; }

.advisor-brief { padding: 26px; border-top: 3px solid #0088ff; background: #eef3f7; color: #1e272e; }
.advisor-brief > span { display: block; margin-bottom: 10px; color: #4a7089; font-size: .65rem; font-weight: 650; letter-spacing: .09em; line-height: 1.6; text-transform: uppercase; }
.advisor-brief h3, .advisor-current-answer h3, .advisor-current-answer h4 { color: #233b4d; font-size: 1.04rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.45; }
.advisor-brief > p, .advisor-current-answer > p { margin-top: 10px; color: #597283; font-size: .77rem; line-height: 1.75; }
.advisor-brief dl, .advisor-current-answer dl { margin-top: 20px; }
.advisor-brief dl > div, .advisor-current-answer dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 9px; padding: 14px 0; border-top: 1px solid #d4e0e8; }
.advisor-brief dt, .advisor-current-answer dt { color: #597487; font-size: .65rem; font-weight: 550; line-height: 1.6; letter-spacing: .055em; text-transform: uppercase; }
.advisor-brief dd, .advisor-current-answer dd { grid-column: 1; margin: 0; color: #294a60; font-size: .81rem; font-weight: 550; line-height: 1.65; }
.advisor-edit { display: inline-block; min-height: 44px; padding: 10px 0; border: 0; background: transparent; color: #24688f; font-size: .74rem; font-weight: 600; line-height: 1.65; text-align: left; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.advisor-brief .advisor-edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; font-size: .66rem; }
.shop-section .advisor-brief .advisor-data-note { margin-top: 19px; padding-top: 18px; border-top: 1px solid #d4e0e8; color: #536f81; font-size: .7rem; }

.advisor-result { min-width: 0; scroll-margin-top: 114px; }
.advisor-result-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 12px 40px; margin: 31px 0 21px; }
.advisor-result-head > span { grid-column: 1 / -1; color: #a8cdeb; font-size: .65rem; font-weight: 650; letter-spacing: .1em; line-height: 1.7; text-transform: uppercase; }
.advisor-result-head h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.25; }
.advisor-result-head p, .advisor-result-head small { display: block; max-width: 710px; margin: 0; color: #b7cbd9; font-size: .82rem; line-height: 1.8; }
.advisor-result-head .advisor-edit { flex: none; margin-top: -2px; color: #b7dcf7; }
.advisor-result-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); align-items: stretch; gap: 22px; }
.advisor-result-grid:not(:has(.advisor-alternative:not([hidden]))) { grid-template-columns: minmax(0, 1fr); }
.advisor-result-grid:not(:has(.advisor-alternative:not([hidden]))) .advisor-recommendation:has(.advisor-machine-image) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 34px; }
.advisor-result-grid:not(:has(.advisor-alternative:not([hidden]))) .advisor-recommendation > .advisor-machine-image { grid-column: 1; grid-row: 1 / span 8; align-self: center; margin: 0; }
.advisor-result-grid:not(:has(.advisor-alternative:not([hidden]))) .advisor-recommendation:has(.advisor-machine-image) > :not(.advisor-machine-image) { grid-column: 2; }
.advisor-recommendation { position: relative; padding: 32px; border-top: 3px solid #0088ff; background: #fff; color: #1e272e; }
.advisor-result-tag { display: block; margin-bottom: 15px; color: #3c6c8b; font-size: .67rem; font-weight: 650; line-height: 1.6; letter-spacing: .1em; text-transform: uppercase; }
.advisor-result-model, .advisor-result-model h4 { color: #1e272e; font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 700; line-height: 1.2; letter-spacing: -.04em; overflow-wrap: anywhere; }
.advisor-recommendation > p, .advisor-result-model > p { margin-top: 12px; color: #4e697b; font-size: .83rem; line-height: 1.8; }
.advisor-result-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; margin-top: 22px; padding-bottom: 22px; border-bottom: 1px solid #dce5eb; }
.advisor-result-price strong { color: #1e272e; font: 700 1.65rem/1.3 var(--shop-heading, 'Montserrat', sans-serif); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.advisor-result-price small, .advisor-result-price > span { color: #567285; font-size: .73rem; line-height: 1.7; }
.advisor-reasons { display: grid; gap: 12px; margin: 23px 0 0; padding: 0; list-style: none; }
.advisor-reasons li { position: relative; padding-left: 22px; color: #35546a; font-size: .81rem; line-height: 1.75; }
.advisor-reasons li::before { content: ''; position: absolute; top: .5em; left: 2px; width: 6px; height: 10px; border-right: 2px solid #2876a3; border-bottom: 2px solid #2876a3; transform: rotate(45deg); }
.shop-section .advisor-caveat { margin-top: 22px; padding: 14px 16px; border-left: 2px solid #91adbf; background: #f1f5f8; color: #516b7c; font-size: .75rem; line-height: 1.8; }
.shop-section .advisor-caveat p { color: inherit; font-size: inherit; line-height: inherit; }
.shop-section .advisor-caveat p + p { margin-top: 9px; }
.advisor-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 23px; }
.shop-section .advisor-result-actions .shop-primary { width: auto; min-width: 215px; margin: 0; padding-left: 22px; padding-right: 22px; }
.shop-section .advisor-result-actions .shop-secondary { margin: 0; padding: 12px 0; }
.shop-section .advisor-result > .advisor-result-actions .shop-secondary { color: #b7dcf7; }
.advisor-alternative { padding: 29px; border-top: 3px solid #8badc3; background: #eef3f7; color: #1e272e; }
.advisor-alternative h4 { color: #233b4d; font-size: 1.5rem; font-weight: 650; line-height: 1.3; letter-spacing: -.03em; overflow-wrap: anywhere; }
.advisor-alternative > p { margin-top: 13px; color: #4e697b; font-size: .79rem; line-height: 1.8; }
.advisor-alternative .advisor-result-price { display: block; margin-top: 20px; }
.advisor-alternative .advisor-result-price strong { font-size: 1.4rem; }
.advisor-alternative .advisor-result-price :is(small, span) { display: block; margin-top: 5px; }
.advisor-alternative .advisor-result-actions { display: block; }
.shop-section .advisor-alternative .shop-primary { min-width: 0; width: 100%; }
.advisor-alternative .advisor-result-tag { margin-bottom: 14px; }
.advisor-no-match { padding: 32px; border-top: 3px solid #8badc3; background: #fff; color: #1e272e; }
.advisor-no-match h3, .advisor-no-match h4 { color: #1e272e; font-size: 1.5rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.35; }
.advisor-no-match > p { max-width: 800px; margin-top: 14px; color: #536c7d; font-size: .85rem; line-height: 1.85; }
.advisor-no-match .shop-primary { width: fit-content; }
.advisor-answer-summary { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; padding: 0; color: #526f83; font-size: .75rem; line-height: 1.8; list-style: none; }
.advisor-answer-summary > :is(div, li) { min-width: 0; }
.advisor-answer-summary dt { font-weight: 650; }
.advisor-answer-summary dd { margin: 2px 0 0; }
.shop-section .advisor-result > .advisor-answer-summary { display: block; margin: 0 0 23px; color: #b7cbd9; font-size: .75rem; line-height: 1.85; }
.advisor-accessory-hint { display: flex; justify-content: space-between; align-items: center; gap: 18px 30px; margin-top: 22px; padding: 22px 27px; border-left: 3px solid #75a4c1; background: #eaf1f6; color: #31556d; }
.advisor-accessory-hint strong, .advisor-accessory-hint h4 { display: block; margin-bottom: 7px; color: #25465d; font-size: .89rem; font-weight: 650; line-height: 1.6; }
.advisor-accessory-hint p { max-width: 760px; color: #536f82; font-size: .78rem; line-height: 1.8; }
.shop-section .advisor-accessory-hint .shop-secondary { flex: none; margin: 0; padding: 11px 16px; border: 1px solid #7c9bb0; text-align: center; text-decoration: none; }
.shop-section .advisor-accessory-hint .shop-primary { flex: 0 0 auto; width: auto; max-width: 340px; margin: 0; }
.shop-section .advisor-data-note { max-width: 950px; margin-top: 19px; color: #b0c3d0; font-size: .73rem; line-height: 1.85; }
.advisor-live { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.shop-section .shop-equipment-help { margin: 2px 0 16px; color: #526d7f; font-size: .77rem; line-height: 1.85; }
.advisor-builder-context { display: flex; justify-content: space-between; align-items: center; gap: 16px 30px; margin: 26px 0 18px; padding: 21px 26px; border-left: 3px solid #0088ff; background: #eaf3fa; color: #294a61; }
.advisor-builder-context h3, .advisor-builder-context strong { color: #23445c; font-size: .94rem; font-weight: 650; line-height: 1.5; }
.advisor-builder-context p { max-width: 850px; margin-top: 6px; color: #526e81; font-size: .79rem; line-height: 1.8; }
.advisor-builder-context .advisor-edit { flex: none; }
#shop-builder .shop-base-price { flex-wrap: wrap; }
#shop-builder :is(h3, dt, strong) { overflow-wrap: anywhere; }

.advisor-machine-image { margin: 0 0 24px; }
.advisor-machine-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 370px;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #fff;
}
.advisor-machine-image figcaption { margin-top: 7px; color: #647d8e; font-size: .65rem; line-height: 1.65; }
.advisor-alternative .advisor-machine-image { margin-bottom: 20px; }
.advisor-alternative .advisor-machine-image img { max-height: 235px; }
.advisor-builder-image { margin-top: 24px; }
.advisor-builder-image[hidden] { display: none !important; }
.advisor-builder-image .advisor-machine-image { margin: 0; }
.advisor-builder-image .advisor-machine-image img { height: 290px; max-height: none; aspect-ratio: auto; object-fit: contain; }
.advisor-builder-image .advisor-machine-image figcaption { margin-top: 10px; font-size: .64rem; }

.advisor-gallery { margin: 38px 0 30px; scroll-margin-top: 114px; }
.advisor-gallery > header, .advisor-gallery-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px 28px; margin-bottom: 20px; }
.advisor-gallery h3 { color: #fff; font: 650 clamp(1.3rem, 2.1vw, 1.65rem)/1.35 var(--shop-heading, 'Montserrat', sans-serif); letter-spacing: -.03em; }
.advisor-gallery-heading > div > span { display: block; margin-bottom: 10px; color: #a8cdeb; font-size: .65rem; font-weight: 650; letter-spacing: .1em; line-height: 1.7; text-transform: uppercase; }
.advisor-gallery > p, .advisor-gallery > header p, .advisor-gallery-heading p { max-width: 710px; margin-top: 10px; color: #b7cbd9; font-size: .81rem; line-height: 1.8; }
.advisor-gallery-controls { display: flex; flex: none; align-items: center; justify-content: flex-end; gap: 8px; }
.advisor-gallery > .advisor-gallery-controls { margin: 16px 0; }
.advisor-gallery-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  padding: 0;
  border: 1px solid #7792a4;
  background: transparent;
  color: #e3eef6;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.advisor-gallery-controls button svg { width: 20px; height: 20px; stroke: currentColor; }
.advisor-gallery-controls button:disabled { border-color: #4d606d; color: #718593; cursor: default; }
.advisor-gallery-count { min-width: 42px; margin: 0 10px 0 0; color: #b7cbd9; font-size: .74rem; line-height: 1.5; font-variant-numeric: tabular-nums; text-align: center; }
.advisor-gallery-carousel { display: block; }
.advisor-gallery-arrow { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; padding: 0; border: 1px solid #7792a4; background: transparent; color: #e3eef6; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease; }
.advisor-gallery-arrow svg { display: block; flex: none; width: 24px; height: 24px; }
.advisor-gallery-arrow:disabled { border-color: #4d606d; color: #718593; cursor: default; }
.advisor-gallery-carousel .advisor-gallery-track { min-width: 0; }
.advisor-gallery-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 15px;
  margin: -4px -4px 0;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: thin;
  scrollbar-color: #819caf #33444f;
  -webkit-overflow-scrolling: touch;
}
.advisor-gallery-track::-webkit-scrollbar { height: 6px; }
.advisor-gallery-track::-webkit-scrollbar-track { background: #33444f; }
.advisor-gallery-track::-webkit-scrollbar-thumb { background: #819caf; }
.advisor-gallery-track:focus-visible { outline-offset: 3px; }
.advisor-gallery-card {
  display: flex;
  flex: 0 0 calc((100% - 40px) / 3);
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  color: #1e272e;
  scroll-snap-align: start;
}
.advisor-gallery-card > img, .advisor-gallery-card figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #fff;
}
.advisor-gallery-card figure { margin: 0; }
.advisor-gallery-card figcaption { padding: 0 23px 12px; color: #667d8b; font-size: .62rem; line-height: 1.65; }
.advisor-gallery-card > div, .advisor-gallery-card .advisor-gallery-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-width: 0; padding: 22px 23px 23px; border-top: 1px solid #e7edf1; }
.advisor-gallery-card :is(.family, .advisor-gallery-family) { display: block; margin-bottom: 8px; color: #47748f; font-size: .63rem; font-weight: 650; letter-spacing: .09em; line-height: 1.6; text-transform: uppercase; }
.advisor-gallery-content > span { display: block; margin-bottom: 8px; color: #47748f; font-size: .63rem; font-weight: 650; letter-spacing: .065em; line-height: 1.6; text-transform: uppercase; }
.advisor-gallery-card strong { display: block; color: #213b4d; font-size: .76rem; font-weight: 650; line-height: 1.6; }
.advisor-gallery-card h4 { margin-top: 6px; color: #1e272e; font: 650 1.12rem/1.45 var(--shop-heading, 'Montserrat', sans-serif); letter-spacing: -.025em; overflow-wrap: anywhere; }
.advisor-gallery-card p { flex: 1; margin-top: 11px; color: #566f80; font-size: .75rem; line-height: 1.8; }
.advisor-gallery-card b { display: block; margin-top: 19px; padding-top: 2px; color: #2b4e65; font-size: .84rem; font-weight: 650; line-height: 1.6; font-variant-numeric: tabular-nums; }
.advisor-gallery-card small { display: block; margin-top: 7px; color: #607a8b; font-size: .66rem; line-height: 1.75; }
.advisor-gallery-card button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid #d8e3eb;
  background: transparent;
  color: #24688f;
  font-size: .73rem;
  font-weight: 650;
  line-height: 1.65;
  text-align: left;
  text-underline-offset: 4px;
  cursor: pointer;
}
.advisor-gallery-card button > span { flex: none; transition: transform 160ms ease; }
.advisor-gallery-card button:focus-visible { outline-offset: -3px; }

@media (hover: hover) and (pointer: fine) {
  .advisor-modes button:hover { background: #354650; box-shadow: inset 0 0 0 1px #7694a9; }
  .advisor-modes button[aria-pressed='true']:hover { background: #edf6fc; box-shadow: none; }
  .advisor-modes button:hover::before, .advisor-choice:hover::before { transform: scaleY(1); }
  .advisor-choice:hover { background: #eaf4fc; box-shadow: inset 0 0 0 1px #8eb9d8; }
  .advisor-dimensions input:not(:disabled):hover { border-color: #6695b4; }
  .advisor-sizes button:not(:disabled):hover { border-color: #6c9fbe; background: #eaf4fc; }
  .advisor-edit:hover { color: #0065a4; text-decoration-thickness: 2px; }
  .advisor-result-head .advisor-edit:hover { color: #fff; }
  .advisor-gallery-controls button:not(:disabled):hover { border-color: #a3c5dc; background: #354b5a; }
  .advisor-gallery-arrow:not(:disabled):hover { border-color: #a3c5dc; background: #354b5a; }
  .advisor-gallery-card button:hover { color: #0065a4; text-decoration: underline; }
  .advisor-gallery-card button:hover > span { transform: translateX(3px); }
  .shop-section .advisor-result > .advisor-result-actions .shop-secondary:hover { color: #fff; }
}

@media (max-width: 1180px) {
  .advisor-layout { grid-template-columns: minmax(0, 1fr) 275px; gap: 20px; }
  .advisor-card { padding: 28px; }
  .advisor-brief { padding: 24px; }
  .advisor-choice { padding: 18px 16px; gap: 11px; }
  .advisor-result-grid { grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 20px; }
  .advisor-recommendation { padding: 28px; }
  .advisor-alternative { padding: 25px; }
  .advisor-gallery-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 960px) {
  .advisor-layout { grid-template-columns: minmax(0, 1fr); }
  .advisor-brief { padding: 24px 28px; }
  .advisor-brief dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .advisor-result-grid { grid-template-columns: minmax(0, 1fr); }
  .advisor-alternative { padding: 28px; }
  .advisor-accessory-hint { align-items: flex-start; }
  .advisor-result-grid:not(:has(.advisor-alternative:not([hidden]))) .advisor-recommendation:has(.advisor-machine-image) { display: block; }
  .advisor-result-grid:not(:has(.advisor-alternative:not([hidden]))) .advisor-recommendation > .advisor-machine-image { margin-bottom: 24px; }
}
@media (max-width: 700px) {
  .advisor-modes { gap: 9px; }
  .advisor-modes button { min-height: 120px; padding: 20px 17px; }
  .advisor-modes strong { font-size: .83rem; }
  .advisor-modes span { font-size: .73rem; }
  .advisor-choice-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .advisor-choice { min-height: 0; padding: 19px; }
  .advisor-result-head { display: block; }
  .advisor-result-head > span { margin-bottom: 12px; }
  .advisor-result-head p, .advisor-result-head small { margin-top: 13px; }
  .advisor-result-head .advisor-edit { margin-top: 8px; }
  .advisor-accessory-hint { display: block; padding: 22px; }
  .shop-section .advisor-accessory-hint .shop-secondary { margin-top: 15px; }
  .shop-section .advisor-accessory-hint .shop-primary { margin-top: 17px; max-width: none; }
  .advisor-builder-context { display: block; padding: 20px 23px; }
  .advisor-builder-context .advisor-edit { margin-top: 8px; }
  .advisor-gallery > header, .advisor-gallery-heading { align-items: flex-start; gap: 18px; }
  .advisor-gallery-card { flex-basis: 86%; }
  .advisor-gallery-track { gap: 14px; }
  .advisor-gallery-count { display: none; }
  .advisor-gallery-carousel .advisor-gallery-card { flex-basis: 100%; }
}
@media (max-width: 480px) {
  #cnc-advisor { margin-bottom: 22px; }
  .advisor-modes { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 18px; }
  .advisor-modes button { min-height: 0; gap: 5px; padding: 17px 20px; }
  .advisor-modes strong { font-size: .86rem; }
  .advisor-modes span { font-size: .73rem; }
  .advisor-layout { gap: 18px; }
  .advisor-card, .advisor-recommendation, .advisor-alternative, .advisor-no-match { padding: 24px 20px; }
  .advisor-progress { margin-bottom: 23px; }
  .advisor-progress > :is(p, span, div:first-child) { font-size: .65rem; }
  .advisor-step h3 { font-size: 1.45rem; }
  .advisor-step > p, .advisor-step > fieldset > p { margin-top: 11px; font-size: .8rem; }
  .advisor-choice-grid { margin-top: 21px; }
  .advisor-choice { gap: 11px; padding: 17px 16px; }
  .advisor-choice strong { font-size: .82rem; }
  .advisor-choice small { font-size: .72rem; margin-top: 5px; }
  .advisor-dimensions { gap: 12px; margin-top: 22px; }
  .advisor-dimensions label { font-size: .75rem; }
  .advisor-dimensions input { padding-left: 11px; padding-right: 8px; }
  .advisor-sizes { gap: 7px; }
  .advisor-sizes button { padding-left: 11px; padding-right: 11px; font-size: .69rem; }
  .advisor-unknown { align-items: flex-start; font-size: .77rem; }
  .advisor-unknown input { margin-top: 4px; }
  .advisor-actions { gap: 12px; margin-top: 24px; padding-top: 20px; }
  .shop-section .advisor-actions .shop-primary { min-width: 0; padding-right: 16px; padding-left: 16px; }
  .shop-section .advisor-actions .shop-secondary { font-size: .72rem; }
  .advisor-brief { padding: 23px 20px; }
  .advisor-brief dl { grid-template-columns: minmax(0, 1fr); }
  .advisor-brief dl > div { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; }
  .advisor-brief dt { padding-top: 3px; font-size: .61rem; }
  .advisor-brief dd { margin-top: 0; font-size: .75rem; }
  .advisor-result-head { margin-top: 25px; }
  .advisor-result-head h3 { font-size: 1.6rem; }
  .advisor-result-head p, .advisor-result-head small { font-size: .78rem; }
  .advisor-result-tag { font-size: .63rem; margin-bottom: 12px; }
  .advisor-result-model, .advisor-result-model h4 { font-size: 1.75rem; }
  .advisor-result-price { margin-top: 19px; padding-bottom: 19px; }
  .advisor-result-price strong { font-size: 1.5rem; }
  .advisor-reasons { gap: 11px; margin-top: 20px; }
  .advisor-reasons li { font-size: .77rem; }
  .shop-section .advisor-caveat { padding: 12px 14px; font-size: .73rem; }
  .advisor-result-actions { display: block; margin-top: 20px; }
  .shop-section .advisor-result-actions .shop-primary { min-width: 0; width: 100%; padding-left: 12px; padding-right: 12px; }
  .shop-section .advisor-result-actions .shop-secondary { margin-top: 7px; text-align: left; }
  .advisor-no-match h3, .advisor-no-match h4 { font-size: 1.35rem; }
  .advisor-no-match > p { font-size: .8rem; }
  .advisor-no-match .shop-primary { width: 100%; }
  .advisor-accessory-hint { padding: 20px; }
  .advisor-accessory-hint p { font-size: .75rem; }
  .shop-section .advisor-accessory-hint .shop-secondary { width: 100%; }
  .shop-section .advisor-accessory-hint .shop-primary { width: 100%; }
  .shop-section .advisor-data-note { font-size: .7rem; }
  .advisor-builder-context { padding: 18px 20px; }
  .advisor-builder-context p { font-size: .76rem; }
  .shop-section .shop-equipment-help { font-size: .75rem; }
  .advisor-machine-image { margin-bottom: 20px; }
  .advisor-machine-image img { max-height: 270px; }
  .advisor-machine-image figcaption { font-size: .61rem; }
  .advisor-builder-image { margin-top: 21px; }
  .advisor-builder-image .advisor-machine-image img { height: auto; max-height: 260px; aspect-ratio: 3 / 2; }
  .advisor-builder-image .advisor-machine-image figcaption { font-size: .6rem; }
  .advisor-gallery { margin-top: 30px; margin-bottom: 24px; }
  .advisor-gallery > header, .advisor-gallery-heading { flex-wrap: wrap; gap: 15px; }
  .advisor-gallery h3 { font-size: 1.35rem; }
  .advisor-gallery > p, .advisor-gallery > header p, .advisor-gallery-heading p { font-size: .76rem; }
  .advisor-gallery-controls { margin-left: auto; }
  .advisor-gallery-card > div, .advisor-gallery-card .advisor-gallery-content { padding: 20px; }
  .advisor-gallery-card h4 { font-size: 1.06rem; }
  .advisor-gallery-card figcaption { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 359px) {
  .advisor-card, .advisor-recommendation, .advisor-alternative, .advisor-no-match { padding-left: 17px; padding-right: 17px; }
  .advisor-choice { padding-left: 14px; padding-right: 14px; }
  .advisor-dimensions { gap: 9px; }
  .advisor-brief dl > div { gap: 4px 10px; }
  .advisor-actions { align-items: stretch; }
  .shop-section .advisor-actions .shop-primary { max-width: 180px; padding-left: 12px; padding-right: 12px; }
}
@container (max-width: 60em) {
  .advisor-layout { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 44em) {
  .advisor-result-grid { grid-template-columns: minmax(0, 1fr); }
  .advisor-gallery-card { flex-basis: 86%; }
}
@media (prefers-reduced-motion: reduce) {
  #cnc-advisor *, #cnc-advisor *::before, #cnc-advisor *::after { transition: none !important; animation: none !important; }
}
