/* Shared finish configurator. Desktop workspace and mobile material dialog. */
.nvp-workspace { grid-template-columns: minmax(0, 1fr) clamp(310px, 26%, 420px); gap: 16px; }
.nv-viewer-card { position: relative; background: #202424; border: 1px solid #383c3c; }
.nvb-page .nv-viewer-card > .nv3-viewer { min-height: 0; height: clamp(380px, 30vw, 480px); background: #202424; }
.nv3-viewer-top { top: 24px; left: 24px; right: 20px; align-items: flex-start; }
.nv3-viewer-top .nv-viewer-heading { gap: 14px; align-items: flex-start; }
.nv-viewer-heading > svg { flex: none; margin-top: 2px; }
.nv-viewer-heading > span { display: grid; gap: 7px; }
.nv-viewer-heading strong { font-size: clamp(19px, 1.65vw, 26px); line-height: 1.2; font-weight: 400; }
.nv-viewer-heading small { color: #9da1a1; font-size: 12px; text-shadow: none; }
.nv3-canvas { inset: 0; }
.nv3-zoom { right: 20px; gap: 8px; }
.nv3-viewer-top button, .nv3-zoom button { width: 44px; min-height: 44px; border-radius: 3px; background: #191d1d; border-color: #424646; }
.nv3-gesture { bottom: 12px !important; color: #8c9494 !important; font-size: 11px; }
.nvp-stage .nv3-viewer-bottom { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 0 20px 18px; border: 0; background: transparent; }
.nvp-stage .nv3-views { width: auto; display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: 0; }
.nvp-stage .nv3-views button { gap: 8px; padding: 0 18px; min-height: 44px; border: 1px solid #414747; border-right: 0; background: #1d2121; font-size: 13px; }
.nvp-stage .nv3-views button:first-child { border-radius: 3px 0 0 3px; }
.nvp-stage .nv3-views button:last-child { border-right: 1px solid #414747; border-radius: 0 3px 3px 0; }
.nvp-stage .nv3-views button[aria-pressed=true] { position: relative; border-color: #ff6a33; color: #ff9467; background: #34271f; box-shadow: inset -1px 0 #ff6a33; }
.nvp-stage .nv3-tools .nv-auto-rotate { width: 44px; height: 44px; padding: 0; min-height: 44px; justify-content: center; border-radius: 3px; background: #1d2121; border-color: #414747; }
.nvp-stage .nv3-tools .nv-auto-rotate span { display: none; }
.nvp-stage .nv3-tools .nv-auto-rotate[aria-pressed=true] { color: #ff9467; border-color: #ff6a33; }
.nv-model-controls { padding: 14px 18px; border-color: #3b4040; background: #242727; }
.nv-model-controls .nvp-stage-controls { grid-template-columns: minmax(250px, .95fr) minmax(180px, 1.05fr); gap: 24px; }
.nv-model-controls .nv3-environments { gap: 4px; }
.nv-model-controls .nv3-environments button { min-height: 44px; padding: 8px; background: #242828; border-color: #454a4a; font-size: 13px; gap: 6px; }
.nv-model-controls .nvp-cut { font-size: 13px; gap: 6px; }
.nv-model-controls .nvp-cut > span > span { color: #989e9e; }
.nv-model-controls .nvp-cut input { cursor: pointer; width: 100%; min-height: 28px; }
.nv-settings-content .nvp-panel { padding: 22px; background: #222525; border-color: #383c3c; }
.nvp-panel-title { display: block; margin: 0 0 20px; }
.nvp-panel-title h3 { margin: 0; font-size: clamp(21px, 1.65vw, 26px); font-weight: 400; color: #efefed; }
.nvp-panel-title > span { display: none; }
.nv-material-select { margin-bottom: 22px; gap: 9px; }
.nv-material-select > span { font-size: 12px; color: #9fa3a3; }
.nv-material-select select { min-height: 46px; font-size: 15px; background-color: #1a1d1d; border-color: #4a5050; }
.nvp-color-heading { align-items: center; margin: 0 0 12px; }
.nvp-color-heading h4 { font-size: 18px; font-weight: 400; color: #eee; }
.nvp-color-heading > span { color: #939b9b; font-size: 12px; }
.nvp-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-bottom: 16px; }
.nvp-search { grid-area: 1 / 1; min-width: 0; }
.nvp-search input { height: 44px; font-size: 13px; color: #eee; background: #1a1d1d; border-color: #4a5050; }
.nvp-search svg { top: 14px; }
.nv-colors-expand { grid-area: 1 / 2; width: auto; margin: 0; padding: 0 0 0 4px; min-height: 44px; background: transparent; border: 0; color: #ff8a5c; font-size: 12px; white-space: nowrap; }
.nv-colors-expand:hover { background: transparent; color: #ffb18f; }
.nvp-filters select { grid-column: 1 / -1; min-height: 38px; background-color: #1d2121; border-color: #3d4444; color: #bfc5c5; font-size: 12px; }
.nvp-color-grid { gap: 10px 7px; }
.nvp-color-grid > button { padding: 4px; min-height: 84px; border: 1px solid transparent; background: transparent; border-radius: 3px; transition: border-color .15s, background .15s; }
.nvp-color-grid > button:hover { background: #2c3030; border-color: #596060; }
.nvp-color-grid > button[aria-pressed=true] { border-color: #ff6a33; background: #30261f; }
.nvp-color-sample { position: relative; isolation: isolate; display: block; height: clamp(40px, 3.8vw, 58px); border: 1px solid #ffffff18; border-radius: 2px; overflow: hidden; }
.nvp-color-grid[data-material=wood] .nvp-color-sample::before,
.nvp-selected[data-material=wood] > i::before { content: ''; position: absolute; inset: 0; background: url('assets/wood-sample.png') center / 100% 100%; filter: grayscale(1); mix-blend-mode: luminosity; opacity: .38; pointer-events: none; }
.nvp-color-sample > i { z-index: 1; position: absolute; right: 5px; bottom: 5px; width: 20px; height: 20px; background: #202727; border: 1px solid #e9eee9; border-radius: 50%; }
.nvp-color-name { font-size: 12px; min-height: 27px; padding-top: 7px; line-height: 1.3; color: #acb2b2; }
.nvp-color-grid > button[aria-pressed=true] .nvp-color-name { color: #ffa77f; }
.nvp-linked-note { color: #a6adad; font-size: 12px; line-height: 1.5; }
.nvp-sheen { margin-top: 22px; padding-top: 18px; border: 0; border-top: 1px solid #3d4343; }
.nvp-sheen legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; color: #c9cece; font-size: 14px; }
.nvp-sheen > div { clear: both; gap: 6px; }
.nvp-sheen button { min-height: 44px; font-size: 13px; background: #252929; border-color: #4c5252; border-radius: 3px; }
.nvp-selected { margin-top: auto; padding-top: 20px; border-color: #3d4343; gap: 10px; min-height: 76px; }
.nvp-selected > i { position: relative; isolation: isolate; overflow: hidden; width: 42px; height: 42px; border-radius: 2px; }
.nvp-selected > div { min-width: 0; }
.nvp-selected > div > span { font-size: 11px; color: #99a1a1; }
.nvp-selected strong { font-size: 13px; line-height: 1.4; color: #e8ecea; }
.nv-selected-check { display: flex; align-items: center; gap: 5px; color: #ff9467; font-size: 11px; }
.nvp-empty { color: #b8c0c0; }
.nv-viewer-card.is-expanded, .nv-viewer-card:fullscreen { position: fixed; inset: 0; z-index: 30; width: 100%; height: 100dvh; border: 0; padding-top: env(safe-area-inset-top); }
.nvb-page .nv-viewer-card.is-expanded > .nv3-viewer.is-expanded { position: relative; inset: auto; height: auto; flex: 1; min-height: 0; }
.nv-viewer-card.is-expanded .nv3-canvas { inset: 0; }
.nv-viewer-card.is-expanded .nv-model-controls { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
button:hover { transition: background .15s, border-color .15s; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #ff6a33; outline-offset: 3px; }
@media (min-width: 901px) {
 /* Match the chosen reference: camera tabs on canvas, one bottom control bar. */
 .nvp-workspace { height: clamp(520px, 34vw, 560px); align-items: stretch; }
 .nvp-stage, .nv-settings, .nv-settings-content { min-height: 0; height: 100%; }
 .nvb-page .nv-viewer-card > .nv3-viewer { height: auto; min-height: 0; flex: 1; }
 .nv3-canvas { inset: 0 0 55px; }
 .nv3-gesture { left: 18px; bottom: 16px !important; }
 .nvp-stage .nv3-viewer-bottom { display: contents; }
 .nvp-stage .nv3-views { position: absolute; bottom: 85px; left: 50%; transform: translateX(-50%); z-index: 3; grid-template-columns: repeat(4, minmax(84px, 1fr)); }
 .nvp-stage .nv3-views button { min-height: 40px; }
 .nvp-stage .nv3-tools { position: absolute; top: 24px; right: 74px; z-index: 3; }
 .nv-model-controls { flex: none; padding: 12px 16px; }
 .nv-model-controls .nvp-stage-controls { grid-template-columns: minmax(240px, .9fr) minmax(170px, 1.1fr); gap: 20px; }
 .nv-model-controls .nv3-environments button { min-height: 40px; }
 .nv-model-controls .nvp-cut input { min-height: 22px; height: 22px; }
 .nv-settings-content .nvp-panel { min-height: 0; height: 100%; padding: 16px 18px; overflow: hidden; }
 .nvp-panel > :not(.nvp-color-grid) { flex-shrink: 0; }
 .nvp-panel-title { margin-bottom: 12px; }
 .nvp-panel-title h3 { font-size: 22px; }
 .nv-material-select { gap: 6px; margin-bottom: 14px; }
 .nv-material-select select { min-height: 38px; padding-block: 7px; font-size: 14px; }
 .nvp-color-heading { margin-bottom: 8px; }
 .nvp-color-heading h4 { font-size: 17px; }
 .nvp-filters { margin-bottom: 10px; gap: 8px; }
 .nvp-search input { height: 38px; }
 .nvp-search svg { top: 11px; }
 .nv-colors-expand { min-height: 38px; }
 .nvp-color-grid { flex: 1; min-height: 0; grid-auto-rows: 70px; align-content: start; gap: 6px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #555e5e transparent; }
 .nvp-color-grid > button { min-height: 0; padding: 3px; }
 .nvp-color-sample { height: 44px; }
 .nvp-color-name { min-height: 0; padding-top: 4px; font-size: 12px; line-height: 1.2; }
 .nvp-color-sample > i { width: 18px; height: 18px; right: 4px; bottom: 4px; }
 .nvp-sheen { margin-top: 10px; padding-top: 12px; }
 .nvp-sheen legend { margin-bottom: 8px; font-size: 13px; }
 .nvp-sheen button { min-height: 38px; font-size: 12px; }
 .nvp-selected { margin-top: 12px; padding-top: 12px; min-height: 0; }
 .nvp-selected > i { width: 34px; height: 34px; }
 .nv-viewer-card.is-expanded .nv3-views { bottom: 85px; }
 .nvp-stage:has(.is-expanded) .nv-viewer-card { height: 100dvh; }
}
@media (min-width: 901px) and (max-width: 1150px) {
 .nvp-workspace { grid-template-columns: minmax(0, 1fr) 310px; gap: 12px; }
 .nv-settings-content .nvp-panel { padding: 16px; }
 .nvp-color-grid { grid-auto-rows: 58px; }
 .nvp-color-sample { height: 32px; }
 .nvp-stage .nv3-views { grid-template-columns: repeat(4, minmax(65px, 1fr)); }
 .nvp-stage .nv3-views button { padding: 0 10px; }
 .nv-model-controls .nvp-stage-controls { grid-template-columns: minmax(0, 1fr) minmax(140px, 1fr); gap: 12px; }
}
@media (max-width: 900px) {
 .nvp-workspace { grid-template-columns: minmax(0, 1fr); gap: 12px; }
 .nvb-page .nv-viewer-card > .nv3-viewer { min-height: 0; height: clamp(250px, 50vw, 340px); }
 .nv3-viewer-top { top: 16px; left: 16px; right: 12px; }
 .nv-viewer-heading strong { font-size: 19px; }
 .nv-viewer-heading small { font-size: 11px; }
 .nv-viewer-heading > svg { width: 25px; height: 25px; }
 .nv3-viewer-top .nv-viewer-heading { gap: 9px; }
 .nv3-canvas { inset: 45px 0 10px; }
 .nv3-zoom { right: 12px; }
 .nv3-viewer-top button, .nv3-zoom button { width: 40px; min-height: 40px; }
 .nvp-stage .nv3-viewer-bottom { flex-wrap: nowrap; padding: 6px 12px 12px; gap: 8px; }
 .nvp-stage .nv3-views { flex: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
 .nvp-stage .nv3-views button { padding: 0 4px; font-size: 12px; gap: 4px; }
 .nvp-stage .nv3-views svg { width: 16px; }
 .nvp-stage .nv3-tools .nv-auto-rotate { width: 40px; }
 .nv3-gesture { display: none; }
 .nv-model-controls { padding: 12px; }
 .nv-model-controls .nvp-stage-controls { grid-template-columns: 1fr; gap: 12px; }
 .nv-model-controls .nv3-environments button { min-height: 44px; font-size: 13px; }
 .nv-settings-toggle { min-height: 54px; font-size: 16px; background: #222525; }
 .nv-settings.is-dialog-open .nv-settings-content { background: #222525; }
 .nv-settings.is-dialog-open .nvp-panel { padding: 20px; }
 .nvp-panel-title { display: none; }
 .nv-dialog-header, .nv-dialog-footer { background: #222525; }
 .nv-material-select select, .nvp-search input { font-size: 16px; min-height: 48px; }
 .nvp-search svg { top: 16px; }
 .nvp-filters select { min-height: 44px; font-size: 16px; }
 .nv-colors-expand { font-size: 13px; }
 .nvp-color-grid { gap: 12px 8px; }
 .nvp-color-grid > button { min-height: 90px; }
 .nvp-color-sample { height: 54px; }
 .nvp-color-name { font-size: 13px; }
 .nvp-selected { margin-top: 22px; }
 .nvp-sheen button { min-height: 48px; font-size: 14px; }
 .nv-dialog-footer button { background: #ff6a33; }
}
@media (max-width: 380px) {
 .nv-viewer-heading small { max-width: 175px; }
 .nvp-stage .nv3-views button { font-size: 11px; }
 .nvp-stage .nv3-views svg { display: none; }
 .nv-settings.is-dialog-open .nvp-panel { padding: 16px; }
 .nvp-color-name { font-size: 12px; }
 .nv-selected-check { font-size: 0; }
}
@media (prefers-reduced-motion: reduce) {
 button, .nvp-color-grid > button { transition: none; }
}

/* Surface and current choice occupy one row each. */
.nvp-sheen { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #3d4343; }
.nv-surface-label { font-size: 12px; color: #aab2b2; }
.nvp-sheen > div { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0; }
.nvp-sheen button { min-height: 32px; padding: 4px 6px; font-size: 12px; border-radius: 0; background: transparent; }
.nvp-sheen button:first-child { border-radius: 3px 0 0 3px; }
.nvp-sheen button:last-child { border-radius: 0 3px 3px 0; margin-left: -1px; }
.nvp-sheen button[aria-pressed=true] { position: relative; background: #34271f; border-color: #ff6a33; }
.nvp-selected { min-height: 0; margin-top: 10px; padding-top: 10px; gap: 9px; }
.nvp-selected > i { width: 26px; height: 26px; }
.nvp-selected > div { display: block; }
.nvp-selected strong { font-size: 12px; line-height: 1.3; }
.nv-selected-check { font-size: 0; }

/* All shades are picked in a separate popup, never by growing the model card. */
.nv-palette-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: #090b0bcb; }
.nv-palette-dialog { display: flex; flex-direction: column; width: min(720px, 100%); max-height: calc(100dvh - 48px); min-height: 0; padding: 24px; background: #222525; border: 1px solid #4c5353; border-radius: 4px; box-shadow: 0 24px 90px #0009; }
.nv-palette-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-shrink: 0; }
.nv-palette-header h3 { margin: 0 0 6px; color: #eee; font-size: 25px; font-weight: 400; }
.nv-palette-header p { margin: 0; color: #9fa8a8; font-size: 13px; }
.nv-palette-header > button { display: grid; place-items: center; width: 40px; height: 40px; flex: none; background: #1c2020; border: 1px solid #4c5353; color: #ddd; font-size: 28px; }
.nv-palette-filters { display: grid; grid-template-columns: minmax(0, 1fr) 180px; align-items: center; gap: 12px; margin-bottom: 16px; flex-shrink: 0; }
.nv-palette-filters .nvp-search { grid-area: auto; }
.nv-palette-filters .nvp-search input { height: 44px; font-size: 14px; }
.nv-palette-filters .nvp-search svg { top: 14px; }
.nv-palette-filters select { width: 100%; min-height: 44px; background: #1a1d1d; border: 1px solid #4c5353; color: #ccc; font: inherit; font-size: 13px; padding: 8px 12px; }
.nv-palette-dialog .nvp-color-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 92px; flex: 1; min-height: 0; align-content: start; overflow-y: auto; gap: 10px; scrollbar-width: thin; scrollbar-color: #596363 transparent; }
.nv-palette-dialog .nvp-color-grid > button { min-height: 0; padding: 5px; }
.nv-palette-dialog .nvp-color-sample { height: 56px; }
.nv-palette-dialog .nvp-color-name { padding-top: 7px; min-height: 0; font-size: 13px; }
.nv-palette-dialog footer { flex-shrink: 0; padding-top: 16px; color: #9aa4a4; font-size: 12px; }
@media (max-width: 900px) {
 .nvp-sheen button { min-height: 40px; font-size: 13px; }
 .nvp-selected { margin-top: 12px; padding-top: 12px; }
 .nvp-selected > i { width: 28px; height: 28px; }
 .nvp-selected strong { font-size: 13px; }
 .nv-palette-backdrop { padding: 12px; }
 .nv-palette-dialog { padding: 18px; max-height: calc(100dvh - 24px); }
 .nv-palette-header { margin-bottom: 16px; }
 .nv-palette-header h3 { font-size: 22px; }
 .nv-palette-filters { grid-template-columns: minmax(0, 1fr); gap: 8px; }
 .nv-palette-filters input, .nv-palette-filters select { font-size: 16px !important; }
 .nv-palette-dialog .nvp-color-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 84px; gap: 8px; }
 .nv-palette-dialog .nvp-color-sample { height: 44px; }
 .nv-palette-dialog .nvp-color-name { font-size: 12px; }
}
@media (min-width: 901px) {
 /* The nine preview samples always fit, including a narrower embedded page. */
 .nvp-panel > .nvp-color-grid { grid-template-rows: repeat(3, minmax(0, 1fr)); grid-auto-rows: 60px; }
 .nvp-panel .nvp-color-sample { height: calc(100% - 20px); min-height: 26px; }
}

/* Text-only camera controls without a background plate. */
.nvp-stage .nv3-views { background: transparent; border: 0; box-shadow: none; }
.nvp-stage .nv3-views button,
.nvp-stage .nv3-views button:first-child,
.nvp-stage .nv3-views button:last-child,
.nvp-stage .nv3-views button[aria-pressed=true] { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.nvp-stage .nv3-views button[aria-pressed=true] { color: #ff9467; text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.nvp-stage .nv3-views button:hover { color: #ff9467; }
.nv3-viewer-top .nv-viewer-heading { align-items: center; }
.nv-viewer-heading > svg { margin-top: 0; }
.nv-viewer-heading > span { display: flex; align-items: center; }
.nv-viewer-heading strong { display: block; }
@media (min-width:769px) { .nv3-canvas { inset: 0; } }
/* A finger-sized cut control while keeping a compact visible track. */
@media (max-width: 900px), (pointer: coarse) {
 .nvp-stage input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 48px; margin: 0; padding: 0; background: transparent; cursor: pointer; touch-action: pan-y; accent-color: #ff6a33; }
 .nvp-stage input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: #484d4d; border: 1px solid #697070; }
 .nvp-stage input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; border: 2px solid #ff9467; background: #ff6a33; }
 .nvp-stage input[type="range"]::-moz-range-track { height: 10px; border-radius: 5px; background: #484d4d; border: 1px solid #697070; }
 .nvp-stage input[type="range"]::-moz-range-progress { height: 10px; background: #ff6a33; border-radius: 5px; }
 .nvp-stage input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #ff9467; background: #ff6a33; }
}
@media (max-width:900px), (pointer:coarse) {
 .nvp-stage input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(to right, #ff6a33 0 var(--cut-progress,100%), #484d4d var(--cut-progress,100%) 100%); }
}

/* Keep canvas labels legible on the automatic light backdrop for dark timber. */
.nv3-viewer:has(canvas[data-dark-wood-contrast="true"]) .nv-viewer-heading strong { color:#252a29; text-shadow:none; }
.nv3-viewer:has(canvas[data-dark-wood-contrast="true"]) .nv-viewer-heading small,
.nv3-viewer:has(canvas[data-dark-wood-contrast="true"]) .nv3-gesture { color:#555e5b!important; text-shadow:none; }
.nv-viewer-card:has(canvas[data-dark-wood-contrast="true"]) .nv3-views button { color:#535c58; text-shadow:none; }
.nv-viewer-card:has(canvas[data-dark-wood-contrast="true"]) .nv3-views button[aria-pressed="true"] { color:#bc481e; }

/* Optional inline disclosure, used only by project-showcase.html. */
.nv-inline-palette .nvp-workspace{grid-template-columns:minmax(0,1fr);height:auto;gap:12px;align-items:start}
.nv-inline-palette .nvp-stage,.nv-inline-palette .nv-settings,.nv-inline-palette .nv-settings-content{height:auto;min-height:0;position:static}
.nv-inline-palette .nvb-page .nv-viewer-card:not(.is-expanded)>.nv3-viewer{height:clamp(320px,48vw,500px);flex:none}
.nv-inline-palette .nv-settings-toggle{display:grid;grid-template-columns:minmax(0,1fr) 24px;gap:5px 16px;align-items:center;width:100%;min-height:72px;padding:14px 18px;background:#202424;border:1px solid #424747;border-radius:2px;color:#eee;text-align:left;font-size:16px;cursor:pointer}
.nv-inline-palette .nv-settings-toggle>span:first-child{grid-area:1/1}
.nv-inline-palette .nv-settings-toggle>span:last-child{grid-area:1/2/3/3;text-align:center;font-size:25px;color:#ff8755}
.nv-inline-palette .nv-settings-toggle::after{content:attr(data-selected);grid-area:2/1;font-size:12px;color:#aeb6b3;line-height:1.4}
.nv-inline-palette .nv-settings-toggle:hover,.nv-inline-palette .nv-settings-toggle[aria-expanded=true]{border-color:#ff6a33}
.nv-inline-palette .nv-settings-content{max-height:390px;overflow:auto;overscroll-behavior-y:contain;border:1px solid #424747;border-top:0}
.nv-inline-palette .nv-settings-content[hidden]{display:none}
.nv-inline-palette .nv-settings-content .nvp-panel{height:auto;padding:20px;border:0;overflow:visible}
.nv-inline-palette .nvp-panel-title{display:none}
.nv-inline-palette .nvp-color-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:auto;max-height:none;overflow:visible;flex:none;gap:10px}
.nv-inline-palette .nvp-color-grid>button{min-height:76px}
.nv-inline-palette .nvp-color-sample{height:44px}
.nv-inline-palette .nvp-selected{margin-top:16px;padding-top:14px}
.nv-inline-palette .nvp-sheen{margin-top:18px}
@media(max-width:640px){
 .nv-inline-palette .nvb-page .nv-viewer-card:not(.is-expanded)>.nv3-viewer{height:280px}
 .nv-inline-palette .nv-settings-content .nvp-panel{padding:16px}
 .nv-inline-palette .nvp-color-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .nv-inline-palette .nv-settings-toggle{padding:12px 15px;font-size:15px}
 .nv-inline-palette .nv-settings-content{max-height:420px}
}

/* Headless viewer: only the model canvas (and its loading state) remains; controls live in the host page. */
.nv-headless,.nv-headless body{background:transparent!important;margin:0!important;overflow:hidden!important}
.nv-headless :is(.nv3-page,.nvb-page,.nv3-wrap,.nvb-main,.nv3-materials,.nvp-section,.nvp-workspace){padding:0!important;margin:0!important;max-width:none!important;width:100%!important;background:transparent!important;border:0!important;box-shadow:none!important;min-height:0!important}
.nv-headless :is(.nv-settings,.nvp-note,.nvp-stage-caption,.nv3-viewer-top,.nv3-zoom,.nv3-viewer-bottom,.nv-model-controls,.nv3-gesture){display:none!important}
.nv-headless :is(.nvp-stage,.nv-viewer-card,.nv3-viewer){height:100vh!important;min-height:0!important;max-height:none!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0!important}
.nv-headless .nv3-canvas{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border:0!important;background:transparent!important}
.nv-headless .nv-palette-backdrop{opacity:0!important;pointer-events:none!important}
