
.colorDetail {align-items:start;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(225px,.75fr);gap:clamp(14px,2.4vw,32px)}
.colorDetail .finishInfo {display:grid;align-content:start;justify-items:start;gap:10px}
.finishInfo strong {font-size:clamp(23px,2.4vw,36px);line-height:1.13;letter-spacing:-.035em}
.finishPhotoStrip {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:12px;width:100%}
.finishPhotoFigure {margin:0;min-width:0}
.finishPhotoOpen {position:relative;display:block;width:100%;min-width:0;padding:0;border:0;background:#191c19;color:#fff;border-radius:4px;cursor:zoom-in}
.colorDetail .finishPhotoFigure img {display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:4px;background:#191c19}
.finishMagnifier {position:absolute;right:8px;bottom:8px;padding:4px 9px;background:#151615db;color:#fff;font-size:12px;border-radius:3px}
.finishPhotoFigure figcaption {display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap;font-size:13px;color:#cbc9c3}
.finishTextButton {background:transparent;color:#edd2a9;border:0;padding:9px 0;text-align:left;text-decoration:underline;text-underline-offset:3px}
.finishDetailOpen img {display:block}
.finishLightbox {color:inherit;width:min(1120px,calc(100% - 24px));max-width:100%;height:min(950px,calc(100dvh - 24px));max-height:100%;padding:12px;border:1px solid #5d6059;border-radius:8px;background:#141715}
.finishLightbox[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px}
.finishLightbox::backdrop {background:#090b09ee}
.finishLightboxBar {display:flex;align-items:center;justify-content:space-between;gap:8px}
.finishLightboxBar .btn {min-height:42px;padding:7px 12px;font-size:14px}
.finishLightboxControls {justify-content:center}
.finishPhotoPane {overflow:auto;width:100%;height:100%;min-height:0;background:#0d100e;overscroll-behavior:contain}
.finishPhotoPane img {display:block;width:100%;height:100%;object-fit:contain;cursor:zoom-in}
.finishPhotoPane.zoomed img {width:200%;height:200%;max-width:none;cursor:zoom-out}
#browseFinishPhotos {font-size:14px}
.paletteSampleNote {display:block;color:#c0c3be}
@media(max-width:760px){
  .colorDetail {grid-template-columns:minmax(0,1fr);padding:12px}
  .finishPhotoStrip {grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr))}
  .finishPhotoFigure figcaption {padding-bottom:3px}
  .finishLightbox {width:calc(100% - 8px);height:calc(100dvh - 8px);padding:8px}
  .finishLightboxControls .btn {padding:6px}
}
@media(max-width:760px){
  .colorDetail .finishInfo {display:contents}
  .colorDetail .finishInfo strong {order:-3}
  .colorDetail .finishInfo strong + div {order:-2}
  .colorDetail .finishPhotoStrip,.colorDetail .sample {order:-1}
}

.collection-modes {display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-top:.75rem}
.collection-modes [aria-pressed=true] {background:#dfc59c;color:#181916;border-color:#dfc59c}
.palette-layout {display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(20px,3.6vw,58px);align-items:start}
.palette-layout .colorDetail {position:sticky;top:82px;display:flex;flex-direction:column;gap:14px;margin:0;max-height:calc(100dvh - 95px);overflow:auto;padding:clamp(12px,2vw,22px);scroll-margin-top:82px}
.palette-layout .finishInfo {display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.palette-layout .finishInfo strong,.palette-layout .finishInfo .paletteSampleNote {width:100%}
.palette-layout .finishInfo p {margin:0}
.palette-layout .colorDetail .finishPhotoFigure img {width:100%;height:clamp(115px,23vw,310px);max-height:38vh}
.palette-layout .finishPhotoStrip {grid-template-columns:repeat(auto-fit,minmax(min(135px,100%),1fr))}
.palette-layout .colorDetail .sample {width:100%;height:clamp(115px,17vw,200px);border:1px solid #62645f}
.palette-list {min-width:0}
.palette-list .tools {margin:0;grid-template-columns:repeat(2,minmax(0,1fr));display:grid}
.palette-list .swatches {grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr))}
.palette-list .sw {min-height:64px}
#colorCount {margin:12px 0;color:#c7c5bc;font-size:14px}
#brief .actions {display:flex;gap:.6rem;flex-wrap:wrap}
@media(max-width:760px){
 .palette-layout {grid-template-columns:1fr}
 .palette-layout .colorDetail {position:static;max-height:none;overflow:visible}
 .palette-layout .colorDetail .finishPhotoFigure img {height:clamp(126px,43vw,210px)}
 .palette-list .tools {grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){html:focus-within {scroll-behavior:auto}}
