:root{color-scheme:light;--ink:#182820;--muted:#53635a;--green:#235742;--accent:#347254;--line:#dce4db;--cream:#f5f6f0;--white:#fff;font:100%/1.45 "DM Sans",system-ui,sans-serif;color:var(--ink);background:var(--cream)}
*{box-sizing:border-box}body{margin:0}a{color:var(--green);text-underline-offset:3px}button,input,select{font:inherit}button,select{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #387a55;outline-offset:3px}[hidden]{display:none!important}
.shell{width:min(1392px,calc(100% - 80px));margin-inline:auto}.site-header{background:#fff;border-bottom:1px solid var(--line)}.masthead{height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}.masthead img{width:150px;max-height:55px;object-fit:contain;display:block}.masthead nav{display:flex;gap:28px}.masthead a,.site-footer a{text-decoration:none;font-weight:650;font-size:.875rem}.header-visit{border:1px solid #a6bbab;padding:10px 15px;border-radius:7px;white-space:nowrap}.breadcrumb{display:flex;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:.84rem}.breadcrumb a{color:inherit;text-decoration:none}.intro h1{font-family:"Spartan",sans-serif;letter-spacing:-.02em;line-height:1.15;font-size:clamp(22px,2.4vw,26px);font-weight:600;margin:10px 0 2px;color:#16382d}.intro p{margin:0;color:var(--muted);font-size:.86rem;line-height:1.35}
.studio{display:grid;grid-template-columns:minmax(0,1.67fr) minmax(370px,1fr);align-items:start;gap:22px}.workspace,.controls{min-width:0;display:grid;gap:16px}.preview,.estimate,.control-card{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.preview-head h2,.estimate h2,.control-card h2{font-size:14px;letter-spacing:-.024em;margin:0}.preview-head p,.estimate-head p,.helper{font-size:12px;color:var(--muted);margin:4px 0 0}.view-switch{display:flex;border-radius:8px;background:#edf1eb;padding:3px;flex:none}.view-switch button{padding:0px 10px;border:0;border-radius:5px;background:transparent;color:var(--muted);font-size:11px;font-weight:750;min-height:25px}.view-switch button[aria-pressed=true]{background:white;color:var(--green);box-shadow:0 1px 3px #17231625}.scene{position:relative;background:#e8e9df}.scene canvas{width:100%;height:clamp(315px,38vw,525px);display:block;cursor:pointer}
.layouts{padding:5px 10px 9px}.layout-grid{margin-top:2px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.layout-grid button{display:grid;place-items:center;gap:3px;padding:5px 2px;background:#f8faf6;border:1px solid var(--line);border-radius:7px;font-size:.72rem;color:#3a5246;font-weight:650;min-height:52px}.layout-grid button[aria-pressed=true]{background:#e8f1e8;border-color:var(--accent);color:var(--green)}.layout-grid canvas{width:34px;height:26px;pointer-events:none}
.tabs{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line);padding:0 10px}.tabs button{padding:5px 3px;background:none;border:0;border-bottom:2px solid transparent;font-size:12px;font-weight:650;color:var(--muted);min-height:30px}.tabs [aria-selected=true]{color:var(--green);border-bottom-color:var(--green)}.panel{padding:15px 16px 18px}.panel .helper{margin-bottom:12px}.field{display:grid;gap:5px;font-size:12px;font-weight:600;min-width:0}.panel>.field+.field{display:grid;gap:5px;font-size:12px;font-weight:600;min-width:0}select,input[type=text],input[type=number]{width:100%;min-width:0;border:1px solid #ccd8cd;border-radius:7px;background:white;color:var(--ink);min-height:30px;padding:5px 10px;font-size:12px;font-weight:600}select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#3b5848 50%),linear-gradient(135deg,#3b5848 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 11px) 50%;background-size:5px 5px;background-repeat:no-repeat;padding-right:28px}
.palette{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:12px 0}.swatch{border:1px solid #1f302e28;border-radius:8px;min-height:43px;background:var(--swatch);position:relative}.swatch[aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--green)}.swatch[aria-pressed=true]::after{content:none}.picker{display:block;height:42px}.picker input{width:35px;height:35px;padding:0px;background:white;border:0px solid #ccd8cd;border-radius:7px;cursor:pointer}.subtle{min-height:auto;background:#eaf2e9;border:0;border-radius:8px;color:var(--green);padding:3px 12px 5px;font-weight:700;font-size:11px}.panel .colour-note{margin:8px 0 12px}.schemes{border-top:1px solid var(--line);padding-top:10px}.schemes h3{margin:0 0 7px;font-size:.86rem}.schemes>div{display:flex;flex-wrap:wrap;gap:5px}.schemes i{width:11px;height:11px;border:1px solid #27352d30;border-radius:50%;margin-right:-2px}.schemes i+i{margin-right:2px}
.measurements{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.toggle-list{border-top:1px solid var(--line)}.toggle{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);cursor:pointer}.toggle:last-child{border:0;padding-bottom:0}.toggle strong,.basket strong{display:block;font-size:.9rem}.toggle small,.basket small{display:block;color:var(--muted);font-size:.82rem}.toggle input{appearance:none;flex:none;width:43px;height:25px;border-radius:20px;border:1px solid #8c9e92;background:#e8ede7;position:relative;cursor:pointer}.toggle input::before{content:"";position:absolute;top:3px;left:3px;width:17px;height:17px;border-radius:50%;background:#6d8275}.toggle input:checked{background:var(--green);border-color:var(--green)}.toggle input:checked::before{left:21px;background:white}.toggle input:disabled{opacity:.5;cursor:default}.basket{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);padding:7px 0}.basket:last-child{border:0}.basket input{width:72px}.panel .rate-note{margin-top:12px}
.estimate{padding:16px 19px}.estimate-head{display:grid;grid-template-columns:minmax(max-content,1fr) minmax(0,230px);align-items:start;justify-content:space-between;gap:12px}.estimate-head output{display:block;line-height:1.12;margin-top:3px}.estimate .rate-note{margin-top:8px}.estimate-quality select{min-width:0}.estimate-head output{font-size:clamp(1.55rem,3.2vw,2.45rem);color:var(--green);font-weight:750;white-space:nowrap;letter-spacing:-.04em}.estimate dl{display:grid;gap:6px;margin:12px 0;padding-block:10px;border-block:1px solid var(--line)}.estimate dl div{display:flex;gap:10px;justify-content:space-between;font-size:.88rem}.estimate dd{margin:0;font-weight:700;white-space:nowrap}.estimate-note{font-size:.84rem;color:var(--muted);margin:0 0 10px}.quote{display:inline-block;padding:9px 13px;border-radius:7px;color:white;background:var(--green);font-size:.87rem;text-decoration:none;font-weight:700;min-height:42px}.site-footer{padding-block:24px;display:flex;justify-content:space-between;gap:12px;font-size:.875rem;color:var(--muted)}
@media(max-width:1050px){.shell{width:calc(100% - 36px)}.studio{gap:12px;grid-template-columns:minmax(0,1.45fr) minmax(340px,1fr)}}
@media(max-width:760px){.shell{width:calc(100% - 24px)}.masthead{height:61px}.masthead img{width:125px}.masthead nav{display:none}.intro h1{margin-top:9px}.studio,.workspace,.controls{display:contents}.preview,.layouts,.custom,.estimate{margin-bottom:12px}.studio{display:grid;grid-template-columns:minmax(0,1fr);gap:0}.layouts{padding:5px 10px 9px}.preview{order:-1}.custom{order:0}.estimate{order:1;scroll-margin-top:15px}.scene canvas{height:clamp(265px,59vw,420px)}.site-footer{flex-wrap:wrap;padding-bottom:26px}}
@media(max-width:370px){.preview-head p{max-width:165px}.view-switch button{padding:0px 10px;border:0;border-radius:5px;background:transparent;color:var(--muted);font-size:11px;font-weight:750;min-height:25px}.masthead img{width:112px}.header-visit{padding-inline:9px}}
.scene canvas[data-view="room"]{cursor:grab;touch-action:none}.scene canvas.orbiting{cursor:grabbing}
.cabinet-manager{border:1px solid var(--line);border-radius:0 0 10px 10px;background:#f8faf6}
.cabinet-tier-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:9px}
.cabinet-tier-tabs button{min-height:42px;padding:7px 8px;border:1px solid var(--line);border-radius:8px 8px 0 0;background:#f8faf6;color:inherit;font-size:.87rem;font-weight:750;cursor:pointer}
.cabinet-tier-tabs button[aria-selected="true"]{background:var(--green);border-color:var(--green);color:#fff}
.cabinet-tier-tabs button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.cabinet-zone{margin:0 10px;padding:8px 0;border-top:1px solid var(--line)}
.cabinet-manager .cabinet-zone:first-child{border-top:0}
.cabinet-zone-head,.cabinet-item{display:flex;align-items:center;justify-content:space-between;gap:8px}
.cabinet-zone-head h3{margin:0;font-size:.82rem;min-width:0;overflow-wrap:anywhere}
.cabinet-stepper{display:flex;align-items:center;gap:6px;flex:none}
.cabinet-stepper output{min-width:2ch;text-align:center;font-weight:750;color:var(--green)}
.cabinet-stepper button,.cabinet-item button{min-height:36px;border:1px solid var(--line);background:#fff;color:var(--green);border-radius:7px;padding:4px 8px;font-size:.78rem;font-weight:650}
.cabinet-stepper button{min-width:40px;font-size:1.1rem}
.cabinet-stepper button:disabled{opacity:.45;cursor:default}
.cabinet-item{font-size:.8rem;margin-top:4px}
.cabinet-item .cabinet-edit{border-color:transparent;background:transparent;text-align:left;padding-inline:0;overflow-wrap:anywhere}
.cabinet-item .cabinet-edit:hover,.cabinet-item .cabinet-edit[aria-current=true]{text-decoration:underline}
.cabinet-item .cabinet-remove{color:#833d32}
.cabinet-item .cabinet-gap,.cabinet-zone .helper{color:var(--muted)}
.cabinet-item button:last-child{flex-shrink:0}
.cabinet-inline-editor:empty{display:none}
.cabinet-inline-editor{margin:4px 0 6px;padding:8px;border:1px solid var(--line);border-radius:7px;background:#fff}
.cabinet-inline-editor .measurements{margin:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.cabinet-inline-editor .field,.cabinet-inline-editor input{min-width:0;width:100%}
.cabinet-inline-editor #dimension-help{margin:6px 0 0}
#cabinet-status:empty{display:none}
.basket-builder{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.basket-builder .field{min-width:0}.basket-builder button{justify-self:start;grid-column:1/-1;min-height:36px}
.basket-board{display:grid;gap:8px;margin-top:10px;overflow-anchor:none}
.basket-group{min-width:0;border:1px solid var(--line);border-radius:8px;padding:8px;background:#f7f9f5}
.basket-group h3{font-size:.82rem;color:var(--green);margin:2px 4px 6px}
.basket-empty{font-size:.8rem;color:var(--muted);margin:7px 4px}
.basket-row{display:flex;justify-content:space-between;align-items:center;gap:8px;background:white;border:1px solid #d7e2d6;border-radius:6px;margin-top:4px;padding:4px 6px 4px 9px}
.basket-row span{font-size:.8rem;line-height:1.2;font-weight:650;overflow-wrap:anywhere}
.basket-row small{display:block;color:var(--muted);font-size:.75rem;margin-top:3px;font-weight:500}
.basket-remove{flex:none;min-height:34px;background:white;border:1px solid var(--line);color:#833d32;border-radius:6px;padding:4px 8px;font-weight:650;font-size:.78rem}
.basket-remove:hover{background:#fff4ee}
#storage-status:empty{display:none}
.space-alert{margin:0;grid-column:1/-1;font-size:.84rem;line-height:1.4}
.space-alert:not(:empty){margin-top:6px;padding:7px 9px;border:1px solid #ebc8a1;border-radius:6px;background:#fff4e6;color:#693901}
@media(max-width:420px){.basket-builder{grid-template-columns:minmax(0,1fr)}}

.preview-tools{display:flex;align-items:end;gap:7px;flex-wrap:wrap;border-top:1px solid var(--line);padding:10px 14px}.preview-tools .subtle{min-height:auto;background:#eaf2e9;border:0;border-radius:8px;color:var(--green);padding:3px 12px 5px;font-weight:700;font-size:11px}.preview-tools:not(:has(> :not([hidden]):not(#placement-status), > #placement-status:not(:empty))){display:none}#placement-status{flex-basis:100%;margin:0;font-size:.82rem;color:var(--muted)}#placement-status:empty{display:none}#placement-field{min-width:145px;flex:1}#scene-actions{position:absolute;inset:0;pointer-events:none}#scene-actions button{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;width:40px;height:40px;border-radius:50%;border:2px solid white;display:grid;place-items:center;padding:0;color:white;background:#275b44;box-shadow:0 2px 12px #152c2380;touch-action:none;font-size:1.3rem;font-weight:750}#scene-actions .valid-slot{background:#2a6c51db}#scene-actions .active-slot{background:#a76a23}#scene-actions .drag-slot{background:#cf8e27;outline:3px solid #ffeac2}.scene canvas[data-view]{touch-action:none}

#scene-actions .active-slot{pointer-events:none}#scene-actions .active-slot:disabled{opacity:1}

.portfolio{margin-top:35px}.portfolio-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.portfolio-head h2{font-size:1.25rem;margin:0}.portfolio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.portfolio figure{margin:0;background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.portfolio img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}.portfolio figcaption{padding:9px 12px;color:var(--muted);font-size:.85rem}
@media(max-width:550px){.portfolio-grid{grid-template-columns:repeat(3,1fr);gap:6px}.portfolio img{aspect-ratio:3/2}}
@media(max-width:760px){.preview-head p{min-height:2.9em}}
@media(max-width:370px){.preview-head p{min-height:4.35em}}

.layout-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
#wall-size-form{margin-top:8px;padding-top:8px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr auto;gap:6px 8px;align-items:end}#wall-size-form .wall-head{grid-column:1/-1;display:flex;align-items:baseline;gap:8px;margin-bottom:6px;background:#f0f7ef;padding:2px 6px;border-radius:4px}#wall-size-form h3{margin:0;font-size:.82rem}#wall-size-form .wall-head .helper{font-size:.74rem;margin:0;line-height:1.3;color:var(--muted)}#run-lengths{display:contents}#wall-size-form input{min-height:26px;padding:3px 8px;font-size:11px}#wall-size-form .field{display:grid;gap:5px;font-size:12px;font-weight:600;min-width:0}#wall-size-form .subtle{min-height:auto;background:#eaf2e9;border:0;border-radius:8px;color:var(--green);padding:3px 12px 5px;font-weight:700;font-size:11px}#wall-size-status{margin:3px 0 0;font-size:.78rem;color:var(--green);grid-column:1/-1}#wall-size-status:empty{display:none}#elevation-wall{display:flex;align-items:center;gap:10px;padding:0 19px 10px}
#elevation-run{width:auto;min-width:145px}
.scene{container-type:inline-size}
@container (max-width:540px){
  .scene canvas.elevation-scroll{touch-action:pan-y}
  .scene canvas[data-elevation-count="2"]{height:calc(2 * clamp(190px,59cqw,264px))}
  .scene canvas[data-elevation-count="3"]{height:calc(3 * clamp(190px,59cqw,264px))}
}
@media(max-width:760px){#elevation-wall{padding-inline:12px}}
@media(max-width:395px){.layout-grid{gap:4px}.layout-grid button{font-size:.7rem}.view-switch button{padding:0px 10px;border:0;border-radius:5px;background:transparent;color:var(--muted);font-size:11px;font-weight:750;min-height:25px}.preview-head p{min-width:0}}
.colour-family{margin-top:10px}.palette{grid-template-columns:repeat(8,minmax(0,1fr));margin-bottom:5px}.palette-range{display:flex;justify-content:space-between;margin-bottom:10px;color:var(--muted);font-size:.78rem}
@media(max-width:520px){.palette{grid-template-columns:repeat(4,minmax(0,1fr))}}

.colour-family{margin:10px 0 2px}
.family-row{display:grid;grid-template-columns:repeat(8,minmax(36px,1fr));gap:4px;overflow-x:auto;padding:3px;scrollbar-width:thin}
.family-option{display:grid;justify-items:stretch;gap:3px;border:0;padding:2px 0;background:transparent;color:var(--ink,#25302b);font-size:10px;line-height:1.15;text-align:center;white-space:nowrap}
.family-chip{display:block;height:25px;border:1px solid #4b3d342e;border-radius:3px;background-color:var(--swatch)}
.family-option[aria-pressed=true]{font-weight:750;color:var(--green)}
.family-option[aria-pressed=true] .family-chip{box-shadow:inset 0 0 0 1px var(--green)}
.family-option:focus-visible{outline-offset:0}
.wood-swatch{
  background-color:var(--swatch);
  background-image:
    repeating-linear-gradient(93deg,transparent 0 6px,#3b201b23 7px,transparent 8px 13px,#fff5db36 15px,transparent 17px 23px),
    repeating-linear-gradient(87deg,#fff1d737 0 2px,transparent 3px 7px,#4b271e20 8px 9px,transparent 10px 16px),
    linear-gradient(100deg,#ffecd32e,transparent 40%,#44291f21);
  background-position:var(--grain-offset,0) 0,0 var(--grain-offset,0),0 0;
}

.camera-tools{display:flex;flex-wrap:wrap;gap:7px;padding:8px 14px;border-bottom:1px solid var(--line)}
.camera-tools[hidden]{display:none}
.camera-tools .subtle{min-height:auto;background:#eaf2e9;border:0;border-radius:8px;color:var(--green);padding:3px 12px 5px;font-weight:700;font-size:11px}
.camera-tools span{font-size:1.2em}

.design-history{position:absolute;right:10px;bottom:10px;z-index:3;display:flex;gap:4px;padding:4px;border:1px solid #cad7cb;border-radius:10px;background:#fffffff5;box-shadow:0 2px 8px #26392e26}
.design-history[hidden]{display:none}
.design-history button{min-height:auto;padding:2px 6px;border:0;border-radius:5px;background:#edf3ed;color:#28523c;font:inherit;font-size:11px;font-weight:700}
.design-history button:hover:not(:disabled){background:#dceade}
.design-history button:disabled{color:#666f68;background:#f2f3f1;cursor:default}
.design-history span{font-size:1.15em}
.history-status{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.section-head{display:flex;align-items:baseline;gap:8px;margin-bottom:8px;background:#f0f7ef;padding:2px 6px;border-radius:4px}
.section-head h2{font-size:14px;letter-spacing:-.024em;margin:0}
.section-head .helper{font-size:12px;color:var(--muted);margin:0}

#colours-panel .field:first-of-type{display:flex;align-items:center;gap:10px}
#colours-panel .field:first-of-type select{flex:1}

#hex{width:150px !important;}




select, input[type=text], input[type=number]{width:100%;min-width:0;border:1px solid #ccd8cd;border-radius:7px;background:white;color:var(--ink);min-height:27px;padding:4px 10px;font-size:12px;font-weight:600}
































.custom-colour {
  display: flex !important;
  align-items: end !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}
.custom-colour .picker {
  display: flex !important;
  align-items: center !important;
  height: auto !important;
  flex: 0 0 auto;
  margin-bottom: 0 !important;
  align-self: end;
}
.custom-colour .picker input {
  width: 35px !important;
  height: 27px !important;
  min-height: 27px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 7px !important;
  box-sizing: border-box !important;
}
.custom-colour .field {
  display: grid !important;
  gap: 4px !important;
  flex: 0 0 auto !important;
  white-space: nowrap;
}
.custom-colour .field input {
  width: 150px !important;
  height: auto !important;
  min-height: 27px !important;
}
.custom-colour .subtle {
  flex: 0 0 auto !important;
  margin-left: 0 !important;
  align-self: end;
  height: auto !important;
  min-height: 27px !important;
}


.schemes button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--green);
  font-size: 11px;
  min-height: 25px;
}


.family-row {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 8px;
}


.palette .swatch {
  min-height: 25px;
}


.camera-tools {
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.design-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-left: auto;
}
.cabinet-dialog.download-dialog {
  width: min(320px, calc(100% - 24px));
}
.download-dialog form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.download-dialog form .field {
  flex-basis: 100%;
}
.download-dialog form button {
  min-height: 36px;
}
.camera-tools #design-action-status {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}
.camera-tools #design-action-status:empty {
  display: none;
}

.intro {
  padding: 10px 0;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
}

/* Portfolio grid - 4 per row */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.portfolio-grid figure {
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4/3;
}
.portfolio-grid figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.portfolio-grid figure:hover img {
  transform: scale(1.05);
}
@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  z-index: 1;
}
.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  z-index: 2;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.3);
}
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox-content { max-width: 95vw; }
  .lightbox-close, .lightbox-prev, .lightbox-next {
    width: 36px; height: 36px; font-size: 22px;
  }
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

.sample-kitchens-link {
  color: #1e5a3a;
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  background: #e8f5e9;
  padding: 4px 10px;
  border-radius: 4px;
  margin-left: 4px;
}
.sample-kitchens-link:hover {
  background: #c8e6c9;
}

.wall-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.wall-head h3 { margin: 0; }
.wall-head .helper { flex: 1; }
.sample-kitchens-btn {
  color: #1e5a3a;
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  background: #e8f5e9;
  padding: 4px 10px;
  border-radius: 4px;
  margin-left: auto;
  white-space: nowrap;
}
.sample-kitchens-btn:hover {
  background: #c8e6c9;
}

.basket-tooltip {
  position: fixed;
  z-index: 10000;
  display: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  padding: 6px;
  pointer-events: none;
}
.basket-tooltip img {
  width: min(200px, calc(100vw - 28px));
  height: min(150px, 40vh);
  object-fit: contain;
  display: block;
  border-radius: 4px;
}
.basket-tooltip strong {
  display: block;
  margin: 4px 2px 2px;
  font-size: .8rem;
}


.cabinet-dialog{width:min(480px,calc(100% - 24px));max-height:calc(100% - 24px);padding:20px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);box-shadow:0 15px 50px #162b2440}
.cabinet-dialog::backdrop{background:#14282380}
.cabinet-dialog [hidden]{display:none}
.cabinet-dialog h2{margin:0 0 12px}
.cabinet-dialog p{margin:8px 0}
.cabinet-dialog input,.cabinet-dialog select{width:100%;min-width:0}
.fit-baskets{margin-top:12px}
.fit-baskets .field+.field{margin-top:8px}
.fit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
#fit-submit:not(:disabled){background:var(--green);color:#fff}
#fit-submit:disabled{opacity:.5;cursor:default}
#fit-result.fits:not(:empty){background:#edf5ec;color:#234e3e;border-color:#c8dbca}

.corner-options{display:flex;justify-content:flex-end;margin-top:4px}

.corner-cover-options{margin:12px 0;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#f8faf6}
.corner-cover-options h3,.corner-cover-row h4{margin:0}
.corner-cover-row{display:flex;flex-wrap:wrap;column-gap:6px;row-gap:4px;align-items:center;margin-top:6px}
.corner-cover-row h4{flex:1 0 100%;font-size:.82rem}
.corner-cover-row button{min-height:36px}
#corner-apply{background:var(--green);color:#fff}

.cabinet-baskets{margin:2px 0 7px 10px}
.cabinet-baskets > button{margin-top:4px}
.basket-row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}
.basket-row-actions button{white-space:nowrap}

@media (max-width: 767px) {
  .preview-tools {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .preview-head {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .preview-head > div:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }
  .preview-head h2 {
    font-size: 14px !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }
  .preview-head .view-switch {
    width: 100% !important;
    justify-content: center !important;
  }
  .sample-kitchens-btn {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }
}

@media (max-width: 767px) {
  .preview-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 8px 10px !important;
  }
  .preview-head > div:first-child {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }
  .preview-head h2 {
    font-size: 13px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 !important;
  }
  .preview-head p {
    display: none !important;
  }
  .preview-head .view-switch {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 4px !important;
  }
}

.custom-colour {
  display: none !important;
}

@media (max-width: 767px) {
  .wall-head .helper {
    display: none !important;
  }
}
