:root { color-scheme: light; --ink: #242922; --muted: #767e71; --panel: #fafaf7; --studio: #f1f1ee; --line: #dce1d6; --hover: #eaf0e5; --active: #344f3b; --active-ink: #fff; --float: rgb(250 250 247 / 95%); }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: var(--studio); color: var(--ink); font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif; }
button, input, select { font: inherit; color: inherit; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; border: 0; }
button:disabled { opacity: .45; cursor: default; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #709271; outline-offset: 3px; }
[hidden] { display: none !important; }
.site-header { height: 72px; padding: 0 27px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--panel); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.wordmark { display: flex; align-items: center; gap: 20px; font-size: 27px; letter-spacing: -1.4px; font-weight: 850; line-height: 1; }
.wordmark span { font-size: 8px; font-weight: 500; letter-spacing: 1.4px; color: var(--muted); }
.header-context { color: var(--muted); font-size: 8px; letter-spacing: 1.6px; }
.header-context span { margin: 0 12px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.text-button { background: transparent; padding: 8px 0; font-size: 11px; }
.drawer-toggle { display: none; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--float); display: grid; place-items: center; box-shadow: 0 2px 10px #24322105; }
.icon-button svg { width: 17px; height: 17px; }
.icon-button:hover { background: var(--hover); }
.icon-button[aria-pressed="true"] { background: var(--active); color: var(--active-ink); border-color: var(--active); }
.theme-button { background: transparent; box-shadow: none; }
.workspace { height: calc(100% - 72px); display: grid; grid-template-columns: 246px minmax(0, 1fr) 276px; }
.catalog-panel { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-right: 1px solid var(--line); padding: 28px 17px 18px; }
.catalog-heading { padding: 0 9px; }
.eyebrow { font-size: 8px; font-weight: 600; letter-spacing: 1.55px; color: var(--muted); }
h1 { font-size: 28px; letter-spacing: -.9px; line-height: 1.14; font-weight: 450; margin: 14px 0 12px; }
.catalog-heading p { margin: 0 0 24px; font-size: 10px; color: var(--muted); }
.search { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--float); }
.search svg { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }
.search input { width: 100%; min-width: 0; outline: 0; border: 0; background: transparent; font-size: 11px; }
.search input::placeholder { color: var(--muted); }
.search:focus-within { outline: 2px solid #709271; outline-offset: 2px; }
.family-filters { display: flex; flex-wrap: wrap; gap: 4px; padding: 16px 0 12px; }
.family-filters button { padding: 6px 10px; background: transparent; color: var(--muted); border-radius: 15px; font-size: 10px; }
.family-filters button.active { background: var(--active); color: var(--active-ink); }
.family-filters button:not(.active):hover { background: var(--hover); }
.kind-field { display: grid; gap: 6px; padding: 0 2px 15px; border-bottom: 1px solid var(--line); }
.kind-field > span, .variant-section > label { font-size: 9px; color: var(--muted); }
select { width: 100%; min-width: 0; padding: 9px 25px 9px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--float); font-size: 10px; }
.model-list { flex: 1; min-height: 50px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c3ccbb transparent; padding: 9px 0 15px; }
.model-card { display: flex; align-items: center; width: 100%; gap: 12px; text-align: left; margin: 4px 0; padding: 12px 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; }
.model-card:hover { background: var(--hover); }
.model-card.active { background: var(--hover); border-color: #c6d3be; }
.model-thumb { width: 43px; height: 49px; flex-shrink: 0; border-radius: 5px; background: #fff; display: grid; place-items: center; overflow: hidden; font-size: 8px; letter-spacing: 1px; color: #7a8874; }
.model-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.model-copy { min-width: 0; }
.model-name { display: block; font-size: 12px; font-weight: 500; line-height: 1.35; }
.model-family { display: block; margin-top: 5px; font-size: 8px; color: var(--muted); letter-spacing: .45px; }
.model-meta { display: block; margin-top: 4px; font-size: 9px; color: var(--muted); line-height: 1.5; }
.list-empty { padding: 25px 9px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.heater-link { border-top: 1px solid var(--line); padding: 18px 8px 0; display: flex; justify-content: space-between; gap: 8px; font-size: 10px; }
.heater-link:hover { color: #527653; }
.stage { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; position: relative; }
.stage-heading { padding: 30px 30px 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.heading-copy { min-width: 0; }
.heading-copy h2 { font-weight: 450; letter-spacing: -1.25px; font-size: clamp(27px, 2.5vw, 39px); line-height: 1.16; margin: 10px 0 8px; }
.heading-copy p { font-size: 10px; color: var(--muted); margin: 0; line-height: 1.6; }
.model-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 13px; }
.model-actions:not(:has(> :not([hidden]))) { display: none; }
.part-views { display: inline-flex; flex-wrap: wrap; gap: 3px; border: 1px solid var(--line); border-radius: 6px; padding: 3px; }
.part-views button { padding: 5px 9px; border-radius: 4px; background: transparent; font-size: 9px; color: var(--muted); }
.part-views button.active { background: var(--active); color: var(--active-ink); }
.part-views button:not(.active):hover { background: var(--hover); }
.cover-toggle { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--float); font-size: 9px; white-space: nowrap; }
.cover-toggle:hover { background: var(--hover); }
.cover-toggle[aria-pressed="true"] { background: var(--active); border-color: var(--active); color: var(--active-ink); }
.heading-copy .inspection-caption { margin-top: 9px; font-size: 9px; max-width: 340px; }
.photo-toggle { background: transparent; border: 1px solid var(--line); border-radius: 20px; padding: 8px 11px; display: flex; align-items: center; gap: 7px; font-size: 10px; flex-shrink: 0; margin-top: 1px; white-space: nowrap; }
.photo-toggle svg { width: 14px; height: 14px; }
.photo-toggle[aria-pressed="true"] { background: var(--active); border-color: var(--active); color: var(--active-ink); }
.stage-body { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; min-width: 0; }
.photo-comparison .stage-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.model-viewport { position: relative; min-width: 0; min-height: 0; overflow: hidden; touch-action: none; }
#canvas { width: 100%; height: 100%; display: block; cursor: grab; outline: none; }
#canvas:active { cursor: grabbing; }
.view-label { color: var(--muted); font-size: 8px; letter-spacing: 1.4px; text-align: center; pointer-events: none; }
.model-viewport > .view-label { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); display: none; }
.photo-comparison .model-viewport > .view-label { display: block; }
.scene-tools { display: flex; flex-direction: column; gap: 8px; position: absolute; top: 16px; right: 20px; }
.photo-comparison .scene-tools { right: 12px; top: 43px; }
.photo-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; align-items: center; padding: 16px 21px 0; border-left: 1px solid var(--line); gap: 15px; }
.comparison-photo-link { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 6px; width: 100%; flex: 1; min-height: 0; overflow: hidden; }
.comparison-photo-link img { display: block; object-fit: contain; width: 100%; height: 100%; padding: 20px; }
.photo-note { max-width: 290px; font-size: 9px; color: var(--muted); line-height: 1.6; text-align: center; margin: 0; }
#photo-compare-error { color: var(--muted); font-size: 11px; text-align: center; }
.stage-footer { padding: 23px 15px 22px; display: grid; justify-items: center; gap: 13px; }
.view-controls { display: flex; flex-wrap: wrap; justify-content: center; border: 1px solid var(--line); border-radius: 26px; padding: 4px; background: var(--float); box-shadow: 0 4px 20px #22301905; }
.view-controls button { border-radius: 21px; padding: 10px 14px; background: transparent; font-size: 10px; }
.view-controls button.active { background: var(--active); color: var(--active-ink); }
.view-controls button:not(.active):hover { background: var(--hover); }
.interaction-hint { margin: 0; color: var(--muted); font-size: 9px; text-align: center; }
.touch-hint { display: none; }
.details-panel { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c3ccbb transparent; background: var(--panel); padding: 29px 23px 22px; border-left: 1px solid var(--line); gap: 21px; }
.details-heading h3 { margin: 12px 0 12px; font-size: 25px; font-weight: 450; line-height: 1.17; letter-spacing: -.7px; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.meta-chips span { color: var(--muted); font-size: 9px; border: 1px solid var(--line); padding: 3px 6px; border-radius: 4px; }
.variant-section { display: grid; gap: 7px; }
.variant-meta { color: var(--muted); font-size: 9px; line-height: 1.6; }
.variant-status { display: inline-block; padding: 2px 6px; border-radius: 3px; background: #ede7d7; color: #756444; margin-top: 5px; }
.panel-section { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.specs { display: grid; gap: 15px; }
#dimension-label { display: block; margin-top: 5px; font-size: 9px; font-weight: 400; letter-spacing: 0; }
#dimension-label:empty { display: none; }
.specs > div:not(.eyebrow) { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.specs > div > span { color: var(--muted); font-size: 10px; }
.specs strong { font-size: 18px; font-weight: 450; letter-spacing: -.4px; }
.specs small { font-size: 9px; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.specs .finish-row strong { font-size: 10px; font-weight: 500; line-height: 1.5; text-align: right; letter-spacing: 0; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; position: relative; cursor: pointer; }
.toggle-row input { position: absolute; opacity: 0; right: 0; width: 36px; height: 23px; margin: 0; cursor: pointer; z-index: 1; }
.switch { width: 33px; height: 19px; background: #d6dccf; border-radius: 15px; flex-shrink: 0; position: relative; }
.switch::after { content: ""; position: absolute; width: 13px; height: 13px; background: #fff; border-radius: 50%; top: 3px; left: 3px; box-shadow: 0 1px 3px #0002; transition: transform .16s; }
.toggle-row input:checked + .switch { background: #496d49; }
.toggle-row input:checked + .switch::after { transform: translateX(14px); }
.toggle-row input:focus-visible + .switch { outline: 2px solid #709271; outline-offset: 3px; }
.toggle-row input:disabled + .switch { opacity: .4; }
.dimension-option p { margin: 10px 0 0; font-size: 9px; line-height: 1.6; color: var(--muted); }
.dimension-option p:empty { display: none; }
.info-section { font-size: 10px; }
.info-section summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; list-style: none; cursor: pointer; }
.info-section summary::-webkit-details-marker { display: none; }
.info-section summary span { font-size: 18px; font-weight: 300; line-height: 1; }
.info-section[open] summary span { transform: rotate(45deg); }
.info-section p { font-size: 10px; color: var(--muted); line-height: 1.7; margin: 12px 0; }
.inspection-components { list-style: none; margin: 0; padding: 0; }
.inspection-component { display: grid; gap: 5px; padding: 11px 0; border-top: 1px solid var(--line); }
.inspection-component strong { font-size: 10px; line-height: 1.5; font-weight: 550; }
.inspection-component .component-part { font-size: 9px; font-variant-numeric: tabular-nums; }
.inspection-component p { font-size: 9px; margin: 0; }
.component-confidence { color: var(--muted); font-size: 8px; line-height: 1.5; }
.inspection-component a { font-size: 9px; text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.source-links { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.source-links a { text-decoration: underline; text-underline-offset: 3px; font-size: 9px; line-height: 1.6; }
.reference-photo-link { display: block; margin-top: 13px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.reference-photo-link img { display: block; width: 100%; max-height: 310px; object-fit: contain; padding: 8px; }
.download { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 11px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; margin-top: auto; }
.download:hover { background: var(--hover); }
.download-format { color: var(--muted); font-size: 8px; white-space: nowrap; }
.disabled { pointer-events: none; opacity: .4; }
.details-footnote { font-size: 8px; line-height: 1.7; color: var(--muted); margin: -8px 0 0; }
.loading { position: absolute; inset: 0; padding: 35px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 13px; background: var(--studio); text-align: center; color: var(--muted); line-height: 1.6; z-index: 4; font-size: 11px; }
.loading.hidden { display: none; }
.loading strong { font-size: 18px; font-weight: 450; letter-spacing: -.3px; color: var(--ink); }
.loading img { max-width: 65%; max-height: 45%; object-fit: contain; border-radius: 6px; background: #fff; }
.spinner { width: 23px; height: 23px; border: 1px solid #a3b197; border-right-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }
.loading.error .spinner, .loading.empty .spinner { display: none; }
.scene-notice { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); max-width: 90%; padding: 8px 12px; background: var(--float); border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 10px; text-align: center; z-index: 5; }
#dimension-labels { position: absolute; inset: 0; pointer-events: none; }
.dimension-label { position: absolute; padding: 4px 6px; border: 1px solid var(--line); border-radius: 4px; color: #54794b; background: var(--float); white-space: nowrap; font-size: 10px; font-variant-numeric: tabular-nums; transform: translate(-50%, -50%); }
.drawer-backdrop { position: fixed; inset: 72px 0 0; height: calc(100% - 72px); width: 100%; z-index: 10; background: #202c1c55; }
body.dark { color-scheme: dark; --ink: #e6ebdf; --muted: #a1ad97; --panel: #232a21; --studio: #252a24; --line: #414d39; --hover: #303f2e; --active: #bdcfad; --active-ink: #263421; --float: rgb(38 47 35 / 95%); }
body.dark .model-card.active { border-color: #526749; }
body.dark .dimension-label { color: #c7ddb5; }
body.dark .variant-status { background: #4c4937; color: #ded1aa; }
body.dark .switch { background: #54604a; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1350px) {
  .workspace { grid-template-columns: 226px minmax(0, 1fr) 254px; }
  .catalog-panel { padding-left: 13px; padding-right: 13px; }
  .details-panel { padding-left: 20px; padding-right: 20px; }
  .stage-heading { padding: 28px 23px 12px; gap: 12px; }
  .photo-toggle { font-size: 9px; padding: 8px 10px; }
  .photo-toggle svg { display: none; }
  .photo-panel { padding-left: 14px; padding-right: 14px; }
  .comparison-photo-link img { padding: 12px; }
}
@media (max-width: 1110px) {
  .workspace { grid-template-columns: 226px minmax(0, 1fr); }
  .details-panel { display: none; position: fixed; right: 0; top: 72px; bottom: 0; width: 284px; z-index: 15; box-shadow: -10px 0 35px #17221118; }
  .details-open .details-panel { display: flex; }
  #details-toggle { display: block; }
  .header-context { display: none; }
  .heading-copy h2 { font-size: 33px; }
}
@media (max-width: 760px) {
  .site-header { height: 64px; padding: 0 17px; gap: 14px; }
  .wordmark { font-size: 25px; gap: 12px; }
  .wordmark span { display: none; }
  .header-actions { gap: 16px; }
  .workspace { height: calc(100dvh - 64px); display: block; }
  .catalog-panel { display: none; position: fixed; left: 0; top: 64px; bottom: 0; width: 280px; z-index: 15; box-shadow: 10px 0 35px #17221118; }
  .catalog-open .catalog-panel { display: flex; }
  #catalog-toggle { display: block; }
  .details-panel { top: 64px; width: 285px; }
  .drawer-backdrop { inset: 64px 0 0; height: calc(100% - 64px); }
  .stage { height: 100%; min-height: 400px; }
  .stage-heading { padding: 22px 20px 8px; gap: 12px; }
  .heading-copy h2 { font-size: 29px; letter-spacing: -.8px; margin-top: 9px; }
  .heading-copy .eyebrow { font-size: 7px; letter-spacing: 1.2px; }
  .heading-copy p { font-size: 9px; }
  .photo-toggle { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; }
  .photo-toggle svg { display: block; width: 15px; height: 15px; }
  .photo-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .stage-footer { padding: 15px 12px 18px; gap: 10px; }
  .view-controls button { font-size: 9px; padding: 9px 11px; }
  .interaction-hint { font-size: 8px; }
  .desktop-hint { display: none; }
  .touch-hint { display: inline; }
  .scene-tools { right: 16px; top: 14px; }
  .photo-comparison .stage-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .photo-panel { padding: 14px 8px 0; gap: 10px; }
  .photo-note { font-size: 8px; }
  .comparison-photo-link img { padding: 8px; }
  .photo-comparison .scene-tools { top: auto; bottom: 14px; right: 10px; }
  .photo-comparison .scene-tools .icon-button { width: 30px; height: 30px; }
  .photo-comparison .scene-tools svg { width: 14px; height: 14px; }
  .view-label { font-size: 7px; letter-spacing: .8px; }
  .dimension-label { font-size: 9px; }
}
@media (max-width: 380px) {
  .header-actions { gap: 12px; }
  .stage-heading { padding-left: 15px; padding-right: 15px; }
  .heading-copy h2 { font-size: 26px; }
  .view-controls button { padding: 8px 9px; }
}
@media (max-height: 750px) and (min-width: 761px) {
  .catalog-panel, .details-panel { padding-top: 22px; }
  .catalog-heading h1 { font-size: 25px; }
  .catalog-heading p { margin-bottom: 17px; }
  .details-panel { gap: 17px; }
  .specs { gap: 12px; }
  .stage-heading { padding-top: 23px; }
  .stage-footer { padding-top: 16px; padding-bottom: 17px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Accessory catalog and contextual scene controls. */
.catalog-filters { display: grid; gap: 9px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-field { display: grid; gap: 4px; }
.filter-field > span { font-size: 9px; color: var(--muted); }
.filter-field select { padding-top: 7px; padding-bottom: 7px; }
.light-toggle { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--float); font-size: 9px; white-space: nowrap; }
.light-toggle:hover { background: var(--hover); }
.light-toggle[aria-pressed="true"] { background: #e7dbb8; color: #51431d; border-color: #cdbd87; }
.heading-copy .context-caption { margin-top: 9px; font-size: 9px; max-width: 470px; }
.context-section { display: grid; gap: 8px; }
.context-section > label { font-size: 10px; }
.context-section > p { color: var(--muted); font-size: 9px; line-height: 1.6; margin: 0; }
.context-section > a { width: fit-content; font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }
.context-section .toggle-row { margin-top: 6px; }
.compatibility-list { margin: 0; padding: 0; list-style: none; }
.compatibility-list li { display: grid; gap: 4px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 9px; }
.compatibility-list a { text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.compatibility-list p { margin: 0; font-size: 9px; }
body.dark .light-toggle[aria-pressed="true"] { background: #665b33; color: #f6e3ab; border-color: #9e8846; }
@media (max-height: 750px) and (min-width: 761px) { .catalog-heading h1 { font-size: 23px; } .catalog-heading p { margin-bottom: 12px; } .catalog-filters { gap: 6px; padding: 10px 0; } }

.heading-copy .product-purpose { font-size: 11px; color: var(--ink); margin-top: 10px; max-width: 540px; line-height: 1.65; }
@media (max-width: 760px) { .heading-copy .product-purpose { font-size: 10px; line-height: 1.55; } }

.dimension-note { font-size: 10px; line-height: 1.6; color: var(--muted); margin: -8px 0 18px; }

#assembly-base-row { display:grid; gap:8px; margin:16px 0; }
#assembly-base-row label { font-size:10px; color:var(--muted); }
#assembly-base { width:100%; padding:10px; border:1px solid var(--line); border-radius:5px; background:var(--panel); font-size:11px; }
#base-source { font-size:10px; text-decoration:underline; text-underline-offset:3px; }
