.hss-configurator{
  --hss-panel:#fbfaf7;
  --hss-line:#dedbd4;
  --hss-text:#34373c;
  --hss-muted:#777b80;
  --hss-accent:#849d8b;
  --hss-active:#3f536c;
  position:relative;
  width:100%;
  min-height:420px;
  color:var(--hss-text);
  font-family:inherit;
  overflow:hidden;
  border-radius:22px;
  background:#e9ecec;
}
.hss-config-main{position:relative;width:100%}.hss-config-stage{position:relative;width:100%;overflow:hidden;background:#e7ebed;line-height:0;min-height:420px}.hss-config-base{display:block;width:100%;height:auto;min-height:420px;object-fit:cover}.hss-config-layers{position:absolute;inset:0;pointer-events:none}.hss-config-layer{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center;opacity:1;transition:opacity .18s ease;will-change:opacity}.hss-config-layer.hss-layer-enter{opacity:0}.hss-config-layer.hss-layer-enter.is-visible{opacity:1}.hss-config-layer.hss-layer-exit{opacity:0}.hss-config-tint{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;mix-blend-mode:normal;mask-repeat:no-repeat;mask-position:center center;mask-size:cover;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center center;-webkit-mask-size:cover}.hss-config-loading{position:absolute;inset:0;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;background:rgba(255,255,255,.48);backdrop-filter:blur(1.5px);line-height:1.4;font-size:13px;letter-spacing:.08em;text-transform:uppercase;z-index:999;color:#23313f;font-weight:600}.hss-config-loading-spinner{width:34px;height:34px;border-radius:50%;border:3px solid rgba(35,49,63,.18);border-top-color:#3b82f6;animation:hss-spin .8s linear infinite;box-sizing:border-box}.hss-config-loading-text{display:block}.hss-config-loading[hidden]{display:none}
.hss-config-panel{position:absolute;z-index:1000;top:24px;right:18px;bottom:18px;width:min(325px,31vw);min-width:280px;display:flex;flex-direction:column;background:rgba(251,250,247,.98);border:1px solid rgba(255,255,255,.85);border-radius:26px;box-shadow:0 14px 34px rgba(26,32,37,.18);overflow:hidden;backdrop-filter:blur(7px)}.hss-panel-scroll{flex:1;overflow-y:auto;padding:17px 17px 8px;scrollbar-width:thin}.hss-panel-heading{display:flex;align-items:center;justify-content:space-between;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.16em;color:#45494e;margin-bottom:11px}.hss-chevron{position:relative;width:9px;height:9px;display:inline-block;transition:transform .2s ease}.hss-chevron:before{content:"";position:absolute;width:6px;height:6px;border-top:1.5px solid #354252;border-right:1.5px solid #354252;transform:rotate(135deg);top:0;left:1px}.hss-chevron.is-up:before,.hss-option-section.is-open .hss-chevron:before{transform:rotate(-45deg);top:3px}.hss-look-section{padding-bottom:12px}.hss-look-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.hss-look-button{padding:0;border:2px solid transparent;border-radius:5px;background:#e8e5df;overflow:hidden;cursor:pointer;color:var(--hss-text);box-shadow:none;min-width:0}.hss-look-button img{display:block;width:100%;aspect-ratio:1.45/1;object-fit:cover}.hss-look-button span{display:none}.hss-look-button:hover{border-color:#aab0b5}.hss-look-button.is-active{border-color:#7aa2d0;box-shadow:0 0 0 1px #fff inset,0 0 0 1px #7aa2d0}
.hss-option-section{border-top:1px solid var(--hss-line)}.hss-option-header{width:100%;min-height:44px;display:flex;align-items:center;justify-content:space-between;padding:0;border:0;background:transparent;color:#45494e;cursor:pointer;font:inherit;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.14em;text-align:left}.hss-option-body{display:none;padding:2px 0 16px}.hss-option-section.is-open .hss-option-body{display:block}.hss-empty-finish{margin:1px 0 3px;color:var(--hss-muted);font-size:11px;line-height:1.45}.hss-finish-group+.hss-finish-group{margin-top:13px}.hss-finish-name{font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:#8a8c8f;margin:0 0 7px}.hss-finish-name-button{display:block;border:0;background:transparent;padding:0;cursor:pointer;font:inherit;text-align:left}.hss-finish-name-button:hover{color:#45494e}.hss-finish-name-button.is-active{color:#394e66;font-weight:700}.hss-finish-name-button:disabled{cursor:not-allowed;opacity:.55}.hss-finish-label{font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:#8a8c8f;margin:0 0 7px}.hss-color-list{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}.hss-color-button{border:0;background:transparent;padding:0;width:48px;display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer;color:#5e6267}.hss-color-dot{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid rgba(20,25,30,.18);box-shadow:0 0 0 2px transparent;transition:box-shadow .15s ease,transform .15s ease}.hss-color-button:hover .hss-color-dot{transform:scale(1.05)}.hss-color-button.is-active .hss-color-dot{box-shadow:0 0 0 2px var(--hss-panel),0 0 0 3px #394e66}.hss-color-name{width:54px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:8.5px;line-height:1.25;color:#666b70}.hss-original-dot{background:#f7f5ef;color:#777;font-size:16px}.hss-original-button.is-active .hss-original-dot{border-color:#394e66}
.hss-texture-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.hss-texture-button{display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:0;border:1px solid #c9c5bd;border-radius:4px;overflow:hidden;background:#fff;cursor:pointer;color:#565b60;text-align:center;box-shadow:none}.hss-texture-button:hover{border-color:#8c949b}.hss-texture-button.is-active{border-color:#7f8993;box-shadow:0 0 0 1px #7f8993}.hss-texture-thumb{display:block;width:100%;height:42px;background-size:cover;background-position:center;background-color:#efede8;border-bottom:1px solid #e4e0da}.hss-texture-button>span:last-child{display:flex;align-items:center;justify-content:center;min-height:36px;padding:4px 3px;font-size:9px;line-height:1.25;overflow:hidden}.hss-texture-placeholder{background:linear-gradient(135deg,#e7e3db,#f7f5f0)}.hss-original-texture-thumb{display:flex;align-items:center;justify-content:center;font-size:17px;color:#777}
.hss-config-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 17px 16px;border-top:1px solid rgba(222,219,212,.65);background:linear-gradient(to bottom,rgba(251,250,247,.86),#fbfaf7)}.hss-config-actions button{height:38px;border:1px solid #ddd8d0;background:#fff;color:#4c5055;border-radius:22px;padding:0 12px;cursor:pointer;font:inherit;font-size:9px;font-weight:600;text-transform:uppercase;letter-spacing:.12em;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}.hss-config-actions button:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(30,35,40,.08)}.hss-config-actions .hss-download{background:var(--hss-accent);border-color:var(--hss-accent);color:#fff}.hss-config-actions button:disabled{opacity:.6;cursor:wait;transform:none}.hss-config-error{padding:14px;border:1px solid #fecaca;background:#fef2f2;border-radius:8px}
@media(max-width:980px){.hss-config-panel{width:300px;min-width:260px;top:14px;right:14px;bottom:14px}.hss-panel-scroll{padding-left:14px;padding-right:14px}.hss-config-actions{padding-left:14px;padding-right:14px}}
@media(max-width:760px){.hss-configurator{overflow:visible;border-radius:14px;background:transparent}.hss-config-stage,.hss-config-base{min-height:0;border-radius:14px}.hss-config-panel{position:relative;top:auto;right:auto;bottom:auto;width:100%;min-width:0;margin-top:12px;border-radius:18px;max-height:none}.hss-panel-scroll{overflow:visible}.hss-look-button img{aspect-ratio:1.5/1}.hss-texture-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:440px){.hss-look-list{gap:5px}.hss-config-actions{grid-template-columns:1fr}.hss-texture-list{grid-template-columns:repeat(2,minmax(0,1fr))}.hss-color-button{width:44px}.hss-config-panel{border-radius:14px}}
/* v0.2.2 interactive saved-segment targeting */
.hss-config-stage{cursor:default}
.hss-config-stage.has-segment-hover{cursor:pointer}
.hss-segment-overlay{position:absolute;inset:0;width:100%;height:100%;z-index:900;pointer-events:none;display:block}
.hss-config-loading{z-index:999}
.hss-surface-status{display:flex;align-items:flex-start;gap:9px;margin:0 -2px 10px;padding:10px;border:1px dashed #d5d1c9;border-radius:9px;background:#f5f3ee;color:#62666a;line-height:1.25}
.hss-surface-status>span:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.hss-surface-status strong{font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:#4e5358}
.hss-surface-status small{font-size:9px;line-height:1.35;color:#7b7e82}
.hss-surface-status.is-selected{border-style:solid;border-color:#9fcbb1;background:#edf7f0}
.hss-surface-status.is-selected strong{color:#356c4d}
.hss-surface-status-dot{flex:0 0 10px;width:10px;height:10px;border-radius:50%;margin-top:2px;background:#4eb97e;box-shadow:0 0 0 3px rgba(78,185,126,.14)}
.hss-surface-status-icon{display:flex;align-items:center;justify-content:center;flex:0 0 22px;width:22px;height:22px;margin-top:-2px;border-radius:50%;background:#e7e9e8;color:#697176;font-size:14px}
.hss-selected-category-marker{display:inline-flex;margin-left:5px;padding:2px 5px;border-radius:999px;background:#e4f2e9;color:#3b7855;font-size:7px;letter-spacing:.08em;vertical-align:1px}
.hss-select-surface-hint{margin:0 0 10px;padding:7px 8px;border-radius:6px;background:#f5f3ee;color:#777b80;font-size:9.5px;line-height:1.4}
.hss-finish-group.is-disabled{opacity:.48}
.hss-color-button:disabled,.hss-texture-button:disabled{cursor:not-allowed;filter:grayscale(.25)}
.hss-color-button:disabled .hss-color-dot,.hss-texture-button:disabled{transform:none}


/* v0.2.8.1 configurator panel open/close control */
.hss-config-panel{transition:opacity .22s ease,transform .22s ease,visibility .22s ease}
.hss-config-close{position:absolute;z-index:4;top:10px;right:10px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid rgba(76,80,85,.16);border-radius:50%;background:rgba(255,255,255,.88);color:#50555a;cursor:pointer;font:400 22px/1 Arial,sans-serif;box-shadow:0 2px 8px rgba(30,35,40,.06);transition:background .15s ease,transform .15s ease,box-shadow .15s ease}
.hss-config-close:hover{background:#fff;transform:scale(1.04);box-shadow:0 4px 12px rgba(30,35,40,.10)}
.hss-config-open{position:absolute;z-index:1001;top:24px;right:18px;display:flex;align-items:center;gap:8px;min-height:40px;padding:0 15px;border:1px solid rgba(255,255,255,.88);border-radius:22px;background:rgba(251,250,247,.97);color:#45494e;cursor:pointer;box-shadow:0 8px 22px rgba(26,32,37,.16);backdrop-filter:blur(7px);font:inherit;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;opacity:0;visibility:hidden;transform:translateY(-5px);pointer-events:none;transition:opacity .2s ease,transform .2s ease,visibility .2s ease,background .15s ease}
.hss-config-open:hover{background:#fff}
.hss-config-open-icon{font-size:14px;line-height:1;letter-spacing:0}
.hss-configurator.is-panel-closed .hss-config-panel{opacity:0;visibility:hidden;transform:translateX(calc(100% + 34px));pointer-events:none}
.hss-configurator.is-panel-closed .hss-config-open{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.hss-panel-scroll{padding-top:22px}
@media(max-width:980px){.hss-config-open{top:14px;right:14px}}
@media(max-width:760px){
  .hss-config-open{position:relative;top:auto;right:auto;margin:12px 0 0 auto;width:max-content;min-height:38px}
  .hss-configurator.is-panel-closed .hss-config-panel{display:none;transform:none}
  .hss-configurator:not(.is-panel-closed) .hss-config-open{display:none}
  .hss-configurator.is-panel-closed .hss-config-open{display:flex}
  .hss-config-close{top:8px;right:10px}
}


/* v0.2.8.2 look-switch sliding transition */
.hss-config-stage{isolation:isolate}
.hss-look-transition-old{position:absolute;inset:0;z-index:820;width:100%;height:100%;object-fit:cover;object-position:center center;pointer-events:none;display:block}
.hss-config-stage.is-look-transition-pending .hss-config-base,
.hss-config-stage.is-look-transition-pending .hss-config-layers,
.hss-config-stage.is-look-transition-pending .hss-segment-overlay{opacity:0}
.hss-config-stage.is-look-switching .hss-config-base,
.hss-config-stage.is-look-switching .hss-config-layers,
.hss-config-stage.is-look-switching .hss-segment-overlay{opacity:0;transform:translateX(12%);will-change:transform,opacity}
.hss-config-stage.is-look-switching-active .hss-config-base,
.hss-config-stage.is-look-switching-active .hss-config-layers,
.hss-config-stage.is-look-switching-active .hss-segment-overlay{animation:hcLookSlideIn .42s cubic-bezier(.22,.7,.25,1) both}
.hss-config-stage.is-look-switching-active .hss-look-transition-old{animation:hcLookSlideOut .42s cubic-bezier(.22,.7,.25,1) both}
@keyframes hcLookSlideIn{from{opacity:0;transform:translateX(12%)}to{opacity:1;transform:translateX(0)}}
@keyframes hcLookSlideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-12%)}}
@media (prefers-reduced-motion: reduce){
  .hss-config-stage.is-look-switching-active .hss-config-base,
  .hss-config-stage.is-look-switching-active .hss-config-layers,
  .hss-config-stage.is-look-switching-active .hss-segment-overlay,
  .hss-config-stage.is-look-switching-active .hss-look-transition-old{animation:none}
  .hss-config-stage.is-look-transition-pending .hss-config-base,
  .hss-config-stage.is-look-transition-pending .hss-config-layers,
  .hss-config-stage.is-look-transition-pending .hss-segment-overlay{opacity:1}
}


/* v0.2.8.10 finish-layer preload/crossfade: avoids progressive scanline painting */
@media (prefers-reduced-motion: reduce){
  .hss-config-layer{transition:none!important}
}

@keyframes hss-spin{to{transform:rotate(360deg)}}


/* v0.2.8.22 CreativeQ frontend refinement */
.hss-configurator{
  --hss-panel:#faf9f6;
  --hss-line:#e8e2d6;
  --hss-text:#424143;
  --hss-accent:#8ba28f;
}
.hss-config-panel{
  width:min(360px,32vw);
  min-width:300px;
  top:18px;
  right:16px;
  bottom:18px;
  border-radius:34px;
  background:rgba(250,249,246,.985);
  border:1px solid rgba(255,255,255,.92);
  box-shadow:0 12px 28px rgba(26,32,37,.18);
}
.hss-panel-scroll{padding:28px 30px 20px}
.hss-panel-heading{
  margin:0 0 22px;
  font-size:15px;
  line-height:1.25;
  font-weight:600;
  letter-spacing:.16em;
  color:#444346;
}
.hss-look-section{padding:0 0 28px}
.hss-look-list{gap:14px}
.hss-look-button{
  border:2px solid transparent;
  border-radius:9px;
  background:#ece9e2;
  overflow:hidden;
  box-shadow:0 2px 7px rgba(35,35,35,.08);
}
.hss-look-button img{aspect-ratio:1.38/1;object-fit:cover}
.hss-look-button:hover{border-color:#a2a0a0}
.hss-look-button.is-active{
  border-color:#777;
  box-shadow:0 0 0 3px #fff,0 0 0 5px #8d8b89,0 4px 10px rgba(35,35,35,.16);
}
.hss-option-section{border-top:1px solid #e6dfd0}
.hss-option-header{
  min-height:66px;
  font-size:13px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:.14em;
  color:#454447;
}
.hss-chevron{width:15px;height:15px}
.hss-chevron:before{width:9px;height:9px;border-width:0 2px 2px 0;transform:rotate(45deg);top:0;left:1px}
.hss-chevron.is-up:before,.hss-option-section.is-open .hss-chevron:before{transform:rotate(225deg);top:5px}
.hss-option-body{padding:2px 0 30px}
.hss-finish-group+.hss-finish-group{margin-top:22px}
.hss-finish-label,.hss-color-name,.hss-surface-status,.hss-select-surface-hint,.hss-selected-category-marker{display:none!important}
.hss-color-list{gap:16px;flex-wrap:wrap}
.hss-color-button{width:auto;display:block}
.hss-color-dot{
  width:25px;
  height:25px;
  border:1px solid rgba(30,30,30,.12);
  box-shadow:none;
}
.hss-color-button:hover .hss-color-dot{transform:none}
.hss-color-button.is-active .hss-color-dot{
  box-shadow:0 0 0 2px var(--hss-panel),0 0 0 4px #757575;
}
.hss-texture-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hss-texture-button{
  min-height:76px;
  padding:10px 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e7e2dc;
  border-radius:9px;
  background:#fff;
  color:#4d4b4d;
  box-shadow:0 3px 10px rgba(30,35,40,.08);
  font:inherit;
  font-size:14px;
  line-height:1.28;
}
.hss-texture-button:hover{border-color:#aaa5a0}
.hss-texture-button.is-active{
  border-color:#777;
  box-shadow:0 0 0 1px #777,0 3px 10px rgba(30,35,40,.10);
}
.hss-texture-name{display:block;width:100%;text-align:center;overflow-wrap:anywhere}
.hss-texture-thumb,.hss-texture-placeholder,.hss-original-texture-thumb{display:none!important}
.hss-color-button:disabled,.hss-texture-button:disabled{opacity:.42;filter:none}
.hss-property-name{
  position:absolute;
  left:28px;
  bottom:18px;
  z-index:930;
  max-width:50%;
  color:#e6bd32;
  font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(30px,4.7vw,62px);
  line-height:.95;
  font-style:italic;
  font-weight:400;
  letter-spacing:-.035em;
  text-shadow:0 1px 1px rgba(25,25,25,.16);
  pointer-events:none;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.hss-config-loading{
  background:rgba(255,255,255,.24);
  backdrop-filter:blur(1px);
}
.hss-config-loading-spinner{
  width:38px;
  height:38px;
  border-width:3px;
  border-color:rgba(255,255,255,.5);
  border-top-color:#34465b;
  background:rgba(255,255,255,.22);
  box-shadow:0 2px 12px rgba(0,0,0,.12);
}
.hss-config-loading-text{
  padding:5px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  color:#3f4650;
  font-size:10px;
  letter-spacing:.1em;
}
@media(max-width:1100px){
  .hss-config-panel{width:320px;min-width:280px}
  .hss-panel-scroll{padding:24px 22px 16px}
  .hss-panel-heading,.hss-option-header{font-size:12px}
  .hss-color-dot{width:22px;height:22px}
  .hss-texture-list{gap:9px}
  .hss-texture-button{min-height:62px;font-size:12px}
}
@media(max-width:760px){
  .hss-config-panel{width:100%;min-width:0;border-radius:24px}
  .hss-panel-scroll{padding:24px 22px 18px}
  .hss-property-name{left:18px;bottom:14px;max-width:70%;font-size:clamp(28px,9vw,48px)}
}
@media(max-width:440px){
  .hss-look-list{gap:9px}
  .hss-texture-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .hss-texture-button{min-height:58px;padding:8px 5px;font-size:11px}
  .hss-color-list{gap:12px}
  .hss-color-dot{width:20px;height:20px}
}


/* v0.2.8.24 viewport-fit layout */
@media (min-width:761px){
  .hss-configurator{
    height:var(--hss-viewport-height,calc(100svh - 12px));
    min-height:0;
    max-height:100svh;
  }
  .hss-config-main,.hss-config-stage{
    height:100%;
    min-height:0;
  }
  .hss-config-stage{border-radius:inherit}
  .hss-config-base{
    width:100%;
    height:100%;
    min-height:0;
    object-fit:cover;
    object-position:center center;
  }
  .hss-config-panel{
    top:12px;
    bottom:12px;
    max-height:calc(100% - 24px);
  }
  .hss-panel-scroll{
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }
  .hss-config-actions{flex:0 0 auto}
}

/* Compact the sidebar progressively on shorter desktop/laptop viewports. */
@media (min-width:761px) and (max-height:820px){
  .hss-config-panel{border-radius:28px}
  .hss-panel-scroll{padding:20px 24px 12px}
  .hss-panel-heading{margin-bottom:14px;font-size:12px}
  .hss-look-section{padding-bottom:18px}
  .hss-look-list{gap:10px}
  .hss-option-header{min-height:50px;font-size:12px}
  .hss-option-body{padding-bottom:18px}
  .hss-finish-group+.hss-finish-group{margin-top:14px}
  .hss-texture-list{gap:8px}
  .hss-texture-button{min-height:54px;padding:7px 6px;font-size:11px}
  .hss-config-actions{padding:9px 24px 11px}
  .hss-config-actions button{height:34px}
}
@media (min-width:761px) and (max-height:680px){
  .hss-config-panel{top:8px;bottom:8px;max-height:calc(100% - 16px);border-radius:22px}
  .hss-panel-scroll{padding:16px 20px 10px}
  .hss-panel-heading{margin-bottom:10px;font-size:11px}
  .hss-look-section{padding-bottom:12px}
  .hss-look-list{gap:8px}
  .hss-option-header{min-height:42px;font-size:11px}
  .hss-option-body{padding-bottom:12px}
  .hss-texture-button{min-height:46px;font-size:10px}
  .hss-config-actions{padding:7px 20px 9px;gap:6px}
  .hss-config-actions button{height:31px;font-size:8px}
  .hss-config-close{top:7px;right:8px;width:26px;height:26px;font-size:18px}
}

/* v0.2.8.26: all image-space overlays use the same cover transform as the base image. */
.hss-config-base,.hss-config-layer,.hss-look-transition-old{object-fit:cover;object-position:center center}

/* v0.2.8.40 Sentinel 2026 design-only refinement
 * Presentation only: no configurator data flow, option generation or interactions changed.
 */
.hss-configurator{
  --hss-sentinel-panel:#f7f6f2;
  --hss-sentinel-panel-strong:#f2f0ea;
  --hss-sentinel-text:#424040;
  --hss-sentinel-muted:#77746f;
  --hss-sentinel-line:#dedbd4;
  --hss-sentinel-sage:#9aa69a;
  --hss-sentinel-active:#354052;
  --hss-panel:var(--hss-sentinel-panel);
  --hss-line:var(--hss-sentinel-line);
  --hss-text:var(--hss-sentinel-text);
  --hss-muted:var(--hss-sentinel-muted);
  --hss-accent:var(--hss-sentinel-sage);
  --hss-active:var(--hss-sentinel-active);
  font-family:inherit;
  border-radius:0;
}

/* Floating panel shell */
.hss-config-panel{
  top:24px;
  right:22px;
  bottom:24px;
  width:min(400px,34vw);
  min-width:330px;
  border:0;
  border-radius:22px;
  background:rgba(247,246,242,.985);
  box-shadow:0 14px 38px rgba(34,36,37,.16);
  backdrop-filter:blur(8px);
}
.hss-panel-scroll{
  padding:28px 28px 18px;
  scrollbar-width:thin;
  scrollbar-color:rgba(66,64,64,.28) transparent;
}
.hss-look-section{padding:0 0 24px}
.hss-panel-heading{
  margin:0 0 18px;
  color:var(--hss-sentinel-text);
  font:inherit;
  font-size:13px;
  line-height:1.3;
  font-weight:600;
  letter-spacing:.11em;
  text-transform:uppercase;
}

/* Figma-style look thumbnails; content remains generated from backend looks. */
.hss-look-list{gap:14px}
.hss-look-button{
  position:relative;
  border:1px solid transparent;
  border-radius:7px;
  background:#e9e7e1;
  box-shadow:0 2px 8px rgba(36,36,36,.07);
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.hss-look-button img{aspect-ratio:1.38/1;object-fit:cover}
.hss-look-button:hover{border-color:#b4b0a9;transform:translateY(-1px)}
.hss-look-button.is-active{
  border-color:#77736e;
  box-shadow:0 0 0 3px var(--hss-sentinel-panel),0 0 0 5px #85817c,0 3px 9px rgba(36,36,36,.13);
}

/* Accordion styling only; open/close behaviour remains in frontend.js. */
.hss-option-section{border-top:1px solid var(--hss-sentinel-line)}
.hss-option-header{
  min-height:58px;
  color:var(--hss-sentinel-text);
  font:inherit;
  font-size:13px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.hss-option-body{padding:4px 0 25px}
.hss-chevron{
  width:20px;
  height:20px;
  flex:0 0 20px;
  background-image:url("icons/chevron-down.svg");
  background-repeat:no-repeat;
  background-position:center;
  background-size:20px 20px;
  transition:transform .18s ease;
}
.hss-chevron:before{display:none!important}
.hss-panel-heading .hss-chevron.is-up,
.hss-option-section.is-open .hss-chevron{transform:rotate(180deg)}

/* Backend-driven colour values remain untouched; only swatch presentation changes. */
.hss-color-list{gap:15px;align-items:center;margin-bottom:14px}
.hss-color-button{width:auto;display:block;padding:2px}
.hss-color-dot{
  width:34px;
  height:34px;
  border:1px solid rgba(40,40,40,.13);
  box-shadow:none;
  transition:box-shadow .15s ease,transform .15s ease;
}
.hss-color-button:hover .hss-color-dot{transform:scale(1.03)}
.hss-color-button.is-active .hss-color-dot{
  box-shadow:0 0 0 3px var(--hss-sentinel-panel),0 0 0 5px #72706c;
}

/* Backend-driven texture/material options rendered as Sentinel cards. */
.hss-texture-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.hss-texture-button{
  min-height:72px;
  padding:12px 9px;
  border:1px solid #dfdcd5;
  border-radius:8px;
  background:#fff;
  color:var(--hss-sentinel-text);
  box-shadow:0 2px 7px rgba(40,40,40,.055);
  font:inherit;
  font-size:12px;
  line-height:1.35;
  font-weight:500;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.hss-texture-button:hover{border-color:#aaa69f;transform:translateY(-1px)}
.hss-texture-button.is-active{
  border-color:#706d68;
  box-shadow:0 0 0 1px #706d68,0 3px 9px rgba(40,40,40,.08);
}
.hss-texture-name{display:block;width:100%;text-align:center}

/* Preserve Reset and Download actions and their existing JS handlers; styling only. */
.hss-config-actions{
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding:14px 28px 20px;
  border-top:1px solid rgba(66,64,64,.09);
  background:var(--hss-sentinel-panel);
}
.hss-config-actions button{
  height:42px;
  border:1px solid #d8d4cc;
  border-radius:7px;
  background:transparent;
  color:var(--hss-sentinel-text);
  font:inherit;
  font-size:11px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  box-shadow:none;
}
.hss-config-actions .hss-download{
  background:var(--hss-sentinel-sage);
  border-color:var(--hss-sentinel-sage);
  color:#fff;
}
.hss-config-actions button:hover{transform:translateY(-1px);box-shadow:0 3px 8px rgba(40,40,40,.08)}

.hss-config-close{
  top:12px;
  right:12px;
  width:32px;
  height:32px;
  border:1px solid rgba(66,64,64,.12);
  background:rgba(255,255,255,.72);
  color:var(--hss-sentinel-text);
  box-shadow:none;
}
.hss-config-open{
  border-radius:7px;
  border-color:rgba(66,64,64,.12);
  background:rgba(247,246,242,.96);
  color:var(--hss-sentinel-text);
}

/* Keep title behaviour; align its visual treatment with the Sentinel composition. */
.hss-property-name{
  left:32px;
  bottom:24px;
  color:#e9bf31;
  text-shadow:0 1px 1px rgba(25,25,25,.13);
}

@media(max-width:1100px){
  .hss-config-panel{width:350px;min-width:300px;right:16px}
  .hss-panel-scroll{padding:24px 22px 16px}
  .hss-config-actions{padding:12px 22px 17px}
  .hss-color-dot{width:30px;height:30px}
  .hss-texture-list{gap:9px}
}
@media(max-width:760px){
  .hss-configurator{border-radius:0}
  .hss-config-panel{
    width:100%;
    min-width:0;
    margin-top:10px;
    border-radius:18px;
    box-shadow:0 8px 24px rgba(34,36,37,.12);
  }
  .hss-panel-scroll{padding:24px 20px 16px}
  .hss-config-actions{padding:12px 20px 18px}
  .hss-option-header{min-height:54px}
  .hss-property-name{left:18px;bottom:14px}
}
@media(max-width:440px){
  .hss-look-list{gap:8px}
  .hss-color-list{gap:12px}
  .hss-color-dot{width:28px;height:28px}
  /* Stay 3-column (Sentinel design intent, matches the reference cards) --
     this used to drop to 2 columns here, which is what made a lone texture
     box on a narrow phone stretch to half the panel instead of sitting
     compact at 1/3 width. */
  .hss-texture-list{gap:8px}
  .hss-texture-button{min-height:62px;padding:9px 7px;font-size:11px}
  .hss-config-actions{gap:8px}
}


/* v0.2.8.41 footer + responsive refinement */
.hss-config-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;
  padding:14px 22px 18px;
  border-top:0;
  background:var(--hss-sentinel-panel);
}
.hss-config-actions button{
  min-width:0;
  height:44px;
  padding:0 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border:1px solid rgba(66,64,64,.10);
  border-radius:999px;
  background:#fff;
  color:var(--hss-sentinel-text);
  box-shadow:0 2px 6px rgba(40,40,40,.12);
  font:inherit;
  font-size:12px;
  line-height:1;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.hss-config-actions button img{width:16px;height:16px;display:block;flex:0 0 16px}
.hss-config-actions .hss-save{background:#fff;border-color:rgba(66,64,64,.10);color:var(--hss-sentinel-text)}
.hss-config-actions .hss-share{background:#fff;border-color:rgba(66,64,64,.10);color:var(--hss-sentinel-text)}
.hss-config-actions .hss-get-estimate{
  grid-column:1 / -1;
  width:100%;
  height:44px;
  background:#8fa293;
  border-color:#8fa293;
  color:#f7f3ea;
  box-shadow:0 2px 6px rgba(40,40,40,.14);
}
.hss-config-actions .hss-get-estimate img{margin-left:2px}
.hss-config-actions .hss-reset[hidden]{display:none!important}

@media(max-width:760px){
  .hss-config-panel{
    width:calc(100% - 24px);
    min-width:0;
    margin-left:12px;
    margin-right:12px;
    margin-top:12px;
    border-radius:24px;
  }
  .hss-panel-scroll{padding:24px 20px 16px}
  .hss-look-section .hss-panel-heading{padding-right:42px}
  .hss-config-close{top:12px;right:12px}
  .hss-config-actions{padding:12px 20px 18px}
  .hss-texture-list{gap:10px}
  .hss-texture-button{min-width:0}
}
@media(max-width:390px){
  .hss-config-panel{
    width:calc(100% - 16px);
    margin-left:8px;
    margin-right:8px;
  }
  .hss-panel-scroll{padding-left:16px;padding-right:16px}
  .hss-config-actions{padding-left:16px;padding-right:16px;gap:8px}
  .hss-config-actions button{padding-left:12px;padding-right:12px;font-size:11px;letter-spacing:.13em}
  .hss-color-list{gap:10px}
}

/* "No color" reset circle (single-finish categories, e.g. a Structure-only
   material like a garage door) — an X drawn with two rotated pseudo-element
   lines sized in %, so it automatically matches whatever px size the
   surrounding .hss-color-dot rules give it at any breakpoint above,
   without duplicating each one's exact width/height here. */
.hss-color-dot--none{
  background:#fff;
  position:relative;
}
.hss-color-dot--none:before,
.hss-color-dot--none:after{
  content:'';
  position:absolute;
  width:64%;
  height:1px;
  background:#8a8a8a;
  top:50%;
  left:18%;
}
.hss-color-dot--none:before{transform:rotate(45deg)}
.hss-color-dot--none:after{transform:rotate(-45deg)}
.hss-color-button--none.is-active .hss-color-dot--none{background:#fff}
