.hc-configurator{
  --hc-panel:#fbfaf7;
  --hc-line:#dedbd4;
  --hc-text:#34373c;
  --hc-muted:#777b80;
  --hc-accent:#849d8b;
  --hc-active:#3f536c;
  position:relative;
  width:100%;
  min-height:420px;
  color:var(--hc-text);
  font-family:inherit;
  overflow:hidden;
  border-radius:22px;
  background:#e9ecec;
}
.hc-config-main{position:relative;width:100%}.hc-config-stage{position:relative;width:100%;overflow:hidden;background:#e7ebed;line-height:0;min-height:420px}.hc-config-base{display:block;width:100%;height:auto;min-height:420px;object-fit:cover}.hc-config-layers{position:absolute;inset:0;pointer-events:none}.hc-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}.hc-config-layer.hc-layer-enter{opacity:0}.hc-config-layer.hc-layer-enter.is-visible{opacity:1}.hc-config-layer.hc-layer-exit{opacity:0}.hc-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}.hc-config-loading-spinner{width:34px;height:34px;border-radius:50%;border:3px solid rgba(35,49,63,.18);border-top-color:#3b82f6;animation:hc-spin .8s linear infinite;box-sizing:border-box}.hc-config-loading-text{display:block}.hc-config-loading[hidden]{display:none}
.hc-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)}.hc-panel-scroll{flex:1;overflow-y:auto;padding:17px 17px 8px;scrollbar-width:thin}.hc-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}.hc-chevron{position:relative;width:9px;height:9px;display:inline-block;transition:transform .2s ease}.hc-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}.hc-chevron.is-up:before,.hc-option-section.is-open .hc-chevron:before{transform:rotate(-45deg);top:3px}.hc-look-section{padding-bottom:12px}.hc-look-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.hc-look-button{padding:0;border:2px solid transparent;border-radius:5px;background:#e8e5df;overflow:hidden;cursor:pointer;color:var(--hc-text);box-shadow:none;min-width:0}.hc-look-button img{display:block;width:100%;aspect-ratio:1.45/1;object-fit:cover}.hc-look-button span{display:none}.hc-look-button:hover{border-color:#aab0b5}.hc-look-button.is-active{border-color:#7aa2d0;box-shadow:0 0 0 1px #fff inset,0 0 0 1px #7aa2d0}
.hc-option-section{border-top:1px solid var(--hc-line)}.hc-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}.hc-option-body{display:none;padding:2px 0 16px}.hc-option-section.is-open .hc-option-body{display:block}.hc-empty-finish{margin:1px 0 3px;color:var(--hc-muted);font-size:11px;line-height:1.45}.hc-finish-group+.hc-finish-group{margin-top:13px}.hc-finish-label{font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:#8a8c8f;margin:0 0 7px}.hc-color-list{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}.hc-color-button{border:0;background:transparent;padding:0;width:48px;display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer;color:#5e6267}.hc-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}.hc-color-button:hover .hc-color-dot{transform:scale(1.05)}.hc-color-button.is-active .hc-color-dot{box-shadow:0 0 0 2px var(--hc-panel),0 0 0 3px #394e66}.hc-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}.hc-original-dot{background:#f7f5ef;color:#777;font-size:16px}.hc-original-button.is-active .hc-original-dot{border-color:#394e66}
.hc-texture-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.hc-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}.hc-texture-button:hover{border-color:#8c949b}.hc-texture-button.is-active{border-color:#7f8993;box-shadow:0 0 0 1px #7f8993}.hc-texture-thumb{display:block;width:100%;height:42px;background-size:cover;background-position:center;background-color:#efede8;border-bottom:1px solid #e4e0da}.hc-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}.hc-texture-placeholder{background:linear-gradient(135deg,#e7e3db,#f7f5f0)}.hc-original-texture-thumb{display:flex;align-items:center;justify-content:center;font-size:17px;color:#777}
.hc-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)}.hc-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}.hc-config-actions button:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(30,35,40,.08)}.hc-config-actions .hc-download{background:var(--hc-accent);border-color:var(--hc-accent);color:#fff}.hc-config-actions button:disabled{opacity:.6;cursor:wait;transform:none}.hc-config-error{padding:14px;border:1px solid #fecaca;background:#fef2f2;border-radius:8px}
@media(max-width:980px){.hc-config-panel{width:300px;min-width:260px;top:14px;right:14px;bottom:14px}.hc-panel-scroll{padding-left:14px;padding-right:14px}.hc-config-actions{padding-left:14px;padding-right:14px}}
@media(max-width:760px){.hc-configurator{overflow:visible;border-radius:14px;background:transparent}.hc-config-stage,.hc-config-base{min-height:0;border-radius:14px}.hc-config-panel{position:relative;top:auto;right:auto;bottom:auto;width:100%;min-width:0;margin-top:12px;border-radius:18px;max-height:none}.hc-panel-scroll{overflow:visible}.hc-look-button img{aspect-ratio:1.5/1}.hc-texture-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:440px){.hc-look-list{gap:5px}.hc-config-actions{grid-template-columns:1fr}.hc-texture-list{grid-template-columns:repeat(2,minmax(0,1fr))}.hc-color-button{width:44px}.hc-config-panel{border-radius:14px}}
/* v0.2.2 interactive saved-segment targeting */
.hc-config-stage{cursor:default}
.hc-config-stage.has-segment-hover{cursor:pointer}
.hc-segment-overlay{position:absolute;inset:0;width:100%;height:100%;z-index:900;pointer-events:none;display:block}
.hc-config-loading{z-index:999}
.hc-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}
.hc-surface-status>span:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.hc-surface-status strong{font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:#4e5358}
.hc-surface-status small{font-size:9px;line-height:1.35;color:#7b7e82}
.hc-surface-status.is-selected{border-style:solid;border-color:#9fcbb1;background:#edf7f0}
.hc-surface-status.is-selected strong{color:#356c4d}
.hc-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)}
.hc-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}
.hc-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}
.hc-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}
.hc-finish-group.is-disabled{opacity:.48}
.hc-color-button:disabled,.hc-texture-button:disabled{cursor:not-allowed;filter:grayscale(.25)}
.hc-color-button:disabled .hc-color-dot,.hc-texture-button:disabled{transform:none}


/* v0.2.8.1 configurator panel open/close control */
.hc-config-panel{transition:opacity .22s ease,transform .22s ease,visibility .22s ease}
.hc-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}
.hc-config-close:hover{background:#fff;transform:scale(1.04);box-shadow:0 4px 12px rgba(30,35,40,.10)}
.hc-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}
.hc-config-open:hover{background:#fff}
.hc-config-open-icon{font-size:14px;line-height:1;letter-spacing:0}
.hc-configurator.is-panel-closed .hc-config-panel{opacity:0;visibility:hidden;transform:translateX(calc(100% + 34px));pointer-events:none}
.hc-configurator.is-panel-closed .hc-config-open{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.hc-panel-scroll{padding-top:22px}
@media(max-width:980px){.hc-config-open{top:14px;right:14px}}
@media(max-width:760px){
  .hc-config-open{position:relative;top:auto;right:auto;margin:12px 0 0 auto;width:max-content;min-height:38px}
  .hc-configurator.is-panel-closed .hc-config-panel{display:none;transform:none}
  .hc-configurator:not(.is-panel-closed) .hc-config-open{display:none}
  .hc-configurator.is-panel-closed .hc-config-open{display:flex}
  .hc-config-close{top:8px;right:10px}
}


/* v0.2.8.2 look-switch sliding transition */
.hc-config-stage{isolation:isolate}
.hc-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}
.hc-config-stage.is-look-transition-pending .hc-config-base,
.hc-config-stage.is-look-transition-pending .hc-config-layers,
.hc-config-stage.is-look-transition-pending .hc-segment-overlay{opacity:0}
.hc-config-stage.is-look-switching .hc-config-base,
.hc-config-stage.is-look-switching .hc-config-layers,
.hc-config-stage.is-look-switching .hc-segment-overlay{opacity:0;transform:translateX(12%);will-change:transform,opacity}
.hc-config-stage.is-look-switching-active .hc-config-base,
.hc-config-stage.is-look-switching-active .hc-config-layers,
.hc-config-stage.is-look-switching-active .hc-segment-overlay{animation:hcLookSlideIn .42s cubic-bezier(.22,.7,.25,1) both}
.hc-config-stage.is-look-switching-active .hc-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){
  .hc-config-stage.is-look-switching-active .hc-config-base,
  .hc-config-stage.is-look-switching-active .hc-config-layers,
  .hc-config-stage.is-look-switching-active .hc-segment-overlay,
  .hc-config-stage.is-look-switching-active .hc-look-transition-old{animation:none}
  .hc-config-stage.is-look-transition-pending .hc-config-base,
  .hc-config-stage.is-look-transition-pending .hc-config-layers,
  .hc-config-stage.is-look-transition-pending .hc-segment-overlay{opacity:1}
}


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

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


/* v0.2.8.22 CreativeQ frontend refinement */
.hc-configurator{
  --hc-panel:#faf9f6;
  --hc-line:#e8e2d6;
  --hc-text:#424143;
  --hc-accent:#8ba28f;
}
.hc-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);
}
.hc-panel-scroll{padding:28px 30px 20px}
.hc-panel-heading{
  margin:0 0 22px;
  font-size:15px;
  line-height:1.25;
  font-weight:600;
  letter-spacing:.16em;
  color:#444346;
}
.hc-look-section{padding:0 0 28px}
.hc-look-list{gap:14px}
.hc-look-button{
  border:2px solid transparent;
  border-radius:9px;
  background:#ece9e2;
  overflow:hidden;
  box-shadow:0 2px 7px rgba(35,35,35,.08);
}
.hc-look-button img{aspect-ratio:1.38/1;object-fit:cover}
.hc-look-button:hover{border-color:#a2a0a0}
.hc-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);
}
.hc-option-section{border-top:1px solid #e6dfd0}
.hc-option-header{
  min-height:66px;
  font-size:13px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:.14em;
  color:#454447;
}
.hc-chevron{width:15px;height:15px}
.hc-chevron:before{width:9px;height:9px;border-width:0 2px 2px 0;transform:rotate(45deg);top:0;left:1px}
.hc-chevron.is-up:before,.hc-option-section.is-open .hc-chevron:before{transform:rotate(225deg);top:5px}
.hc-option-body{padding:2px 0 30px}
.hc-finish-group+.hc-finish-group{margin-top:22px}
.hc-finish-label,.hc-color-name,.hc-surface-status,.hc-select-surface-hint,.hc-selected-category-marker{display:none!important}
.hc-color-list{gap:16px;flex-wrap:wrap}
.hc-color-button{width:auto;display:block}
.hc-color-dot{
  width:25px;
  height:25px;
  border:1px solid rgba(30,30,30,.12);
  box-shadow:none;
}
.hc-color-button:hover .hc-color-dot{transform:none}
.hc-color-button.is-active .hc-color-dot{
  box-shadow:0 0 0 2px var(--hc-panel),0 0 0 4px #757575;
}
.hc-texture-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hc-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;
}
.hc-texture-button:hover{border-color:#aaa5a0}
.hc-texture-button.is-active{
  border-color:#777;
  box-shadow:0 0 0 1px #777,0 3px 10px rgba(30,35,40,.10);
}
.hc-texture-name{display:block;width:100%;text-align:center;overflow-wrap:anywhere}
.hc-texture-thumb,.hc-texture-placeholder,.hc-original-texture-thumb{display:none!important}
.hc-color-button:disabled,.hc-texture-button:disabled{opacity:.42;filter:none}
.hc-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;
}
.hc-config-loading{
  background:rgba(255,255,255,.24);
  backdrop-filter:blur(1px);
}
.hc-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);
}
.hc-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){
  .hc-config-panel{width:320px;min-width:280px}
  .hc-panel-scroll{padding:24px 22px 16px}
  .hc-panel-heading,.hc-option-header{font-size:12px}
  .hc-color-dot{width:22px;height:22px}
  .hc-texture-list{gap:9px}
  .hc-texture-button{min-height:62px;font-size:12px}
}
@media(max-width:760px){
  .hc-config-panel{width:100%;min-width:0;border-radius:24px}
  .hc-panel-scroll{padding:24px 22px 18px}
  .hc-property-name{left:18px;bottom:14px;max-width:70%;font-size:clamp(28px,9vw,48px)}
}
@media(max-width:440px){
  .hc-look-list{gap:9px}
  .hc-texture-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .hc-texture-button{min-height:58px;padding:8px 5px;font-size:11px}
  .hc-color-list{gap:12px}
  .hc-color-dot{width:20px;height:20px}
}


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

/* Compact the sidebar progressively on shorter desktop/laptop viewports. */
@media (min-width:761px) and (max-height:820px){
  .hc-config-panel{border-radius:28px}
  .hc-panel-scroll{padding:20px 24px 12px}
  .hc-panel-heading{margin-bottom:14px;font-size:12px}
  .hc-look-section{padding-bottom:18px}
  .hc-look-list{gap:10px}
  .hc-option-header{min-height:50px;font-size:12px}
  .hc-option-body{padding-bottom:18px}
  .hc-finish-group+.hc-finish-group{margin-top:14px}
  .hc-texture-list{gap:8px}
  .hc-texture-button{min-height:54px;padding:7px 6px;font-size:11px}
  .hc-config-actions{padding:9px 24px 11px}
  .hc-config-actions button{height:34px}
}
@media (min-width:761px) and (max-height:680px){
  .hc-config-panel{top:8px;bottom:8px;max-height:calc(100% - 16px);border-radius:22px}
  .hc-panel-scroll{padding:16px 20px 10px}
  .hc-panel-heading{margin-bottom:10px;font-size:11px}
  .hc-look-section{padding-bottom:12px}
  .hc-look-list{gap:8px}
  .hc-option-header{min-height:42px;font-size:11px}
  .hc-option-body{padding-bottom:12px}
  .hc-texture-button{min-height:46px;font-size:10px}
  .hc-config-actions{padding:7px 20px 9px;gap:6px}
  .hc-config-actions button{height:31px;font-size:8px}
  .hc-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. */
.hc-config-base,.hc-config-layer,.hc-look-transition-old{object-fit:cover;object-position:center center}
