/* Gate workbench uses the site's existing LTS black, white, red and gold palette. */
[hidden]{display:none!important}
.anchor{display:block;scroll-margin-top:1rem}
.gate-models{grid-template-columns:repeat(3,minmax(0,1fr))}
#gate-stage{width:100%;height:auto;aspect-ratio:var(--stage-aspect,1.5);overflow:hidden;isolation:isolate;background:#dfdcd5;border-radius:5px}
#gate-stage canvas,#gate-stage #backplate{position:absolute;inset:0;width:100%;height:100%;display:block;aspect-ratio:auto}
#backplate,#foreground{pointer-events:none}
#gate-stage:not(.on-site) #backplate,#gate-stage:not(.on-site) #foreground{display:none}
#gate-stage.on-site #scene{cursor:default}
#gate-stage .signature{color:#fff;letter-spacing:.14em;text-shadow:0 1px 3px #000;font-weight:bold}
#gate-stage:not(.on-site) .signature{color:#595752;text-shadow:none}
#viewer .toolbar #expand{position:static;order:3;display:grid;place-items:center;width:40px;height:40px;padding:0;background:var(--surface);border:1px solid var(--line);border-radius:4px;color:var(--text);font-size:1.2rem}
.toolbar{gap:5px;padding:10px 0 13px;border-bottom:1px solid var(--line)}
.toolbar button,.gate-motion button{border-radius:5px;background:transparent;white-space:normal;line-height:1.18}
.toolbar button[aria-pressed=true],.gate-motion button[aria-pressed=true]{background:#232427;border-color:var(--gold);color:var(--text)}
.motion-control{padding:13px 0 10px;border-bottom:1px solid var(--line)}
.motion-head,.dim-head,.dim-limits{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.motion-head{font-size:.9rem;font-weight:650}.motion-head output{font-weight:500;color:var(--muted);font-variant-numeric:tabular-nums}
.playback{display:grid;grid-template-columns:minmax(96px,auto) 1fr;align-items:center;gap:16px;margin-top:8px}
#play{display:flex;align-items:center;justify-content:center;gap:9px;background:var(--red);border:0;border-radius:4px;min-height:44px;color:white;font-weight:700;font-size:.91rem;padding:0 15px}
#play i{width:0;height:0;border-style:solid;border-width:5px 0 5px 8px;border-color:transparent transparent transparent currentColor}
#play[data-playing=true] i{width:8px;height:11px;border:0;border-left:3px solid white;border-right:3px solid white}
#reglages .fields{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
#reglages fieldset{margin-top:23px;padding-bottom:20px}
#reglages legend{font-size:1.12rem;margin-bottom:12px}
#reglages h3,#reglages h4,#reglages .dim-head label{font:600 .9rem/1.35 Manrope,"Helvetica Neue",Arial,sans-serif;letter-spacing:0;color:var(--text);margin:0 0 8px}
#reglages .dim-head label{margin:0}
.dimension{border:1px solid var(--line);border-radius:7px;background:#141619;padding:12px 14px}
.dim-head output{font:600 1.07rem/1.3 Manrope,Arial,sans-serif;color:var(--text);white-space:nowrap;font-variant-numeric:tabular-nums}
.dim-track{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;align-items:start;gap:9px;margin-top:5px}
.dim-track button{font-size:1.1rem;min-width:38px;height:44px;background:transparent;border:0;padding:0;border-radius:4px}
.dim-track button:hover{background:#24272a}.dim-track button:disabled{opacity:.3}
.dim-limits{font-size:.69rem;color:var(--muted);font-variant-numeric:tabular-nums;margin-top:-5px}
input[type=range]{--fill:0%;width:100%;min-width:0;height:44px;display:block;appearance:none;-webkit-appearance:none;cursor:pointer;background:transparent;margin:0;border:0;padding:0;touch-action:pan-y}
input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:linear-gradient(to right,var(--red) 0 var(--fill),#45484d var(--fill) 100%)}
input[type=range]::-moz-range-track{height:4px;border-radius:4px;background:#45484d}input[type=range]::-moz-range-progress{height:4px;background:var(--red)}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;border-radius:50%;background:#fff;border:3px solid #ce3841;margin-top:-8px;box-shadow:0 1px 4px #0009}
input[type=range]::-moz-range-thumb{width:15px;height:15px;border:3px solid #ce3841;border-radius:50%;background:white}
#opening-track::-webkit-slider-runnable-track{background:linear-gradient(to right,var(--gold) 0 var(--fill),#45484d var(--fill) 100%)}
#opening-track::-webkit-slider-thumb{border-color:var(--gold)}
#opening-track::-moz-range-thumb{border-color:var(--gold)}#opening-track::-moz-range-progress{background:var(--gold)}
.option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.choice{display:flex;align-items:center;gap:8px;text-align:left;border-radius:5px;border:1px solid var(--line);background:#17191c;min-height:44px;font-size:.83rem;line-height:1.25;padding:9px 11px;white-space:normal;overflow-wrap:anywhere}
.choice:hover{border-color:#7f7971}
.choice[aria-pressed=true]{border-color:var(--gold);background:#242321;color:white;box-shadow:inset 0 0 0 1px #d0b67d38}
.choice[aria-pressed=true]::after{content:'✓';margin-left:auto;font-weight:700;font-size:.83rem;color:var(--gold)}
#reglages .option-toggle,.motion-control .option-toggle{display:flex;flex-flow:row;align-items:center;gap:10px;min-height:44px;margin:0;font-size:.9rem;color:var(--text);cursor:pointer}
.option-toggle input{appearance:none;-webkit-appearance:none;flex:0 0 32px;width:32px;height:19px;border-radius:15px;border:1px solid #64666a;background:#33363a;position:relative;margin:0;cursor:pointer;align-self:center}
.option-toggle input::before{content:'';position:absolute;left:3px;top:3px;width:11px;height:11px;background:#fff;border-radius:50%}
.option-toggle input:checked{background:#bd303a;border-color:#d64a52}.option-toggle input:checked::before{left:16px}
#reglages #field-paired{margin-bottom:3px}
#reglages .finish-families{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.finish-families .choice{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;overflow:hidden;position:relative;padding:0;min-width:0}
.finish-families .choice img{display:block;width:100%;height:auto;aspect-ratio:1.75;object-fit:cover}
.finish-families .choice span{padding:8px 6px;font-size:.77rem;font-weight:600}
.finish-families .choice[aria-pressed=true]::after{position:absolute;right:4px;top:4px;display:grid;place-content:center;border-radius:50%;width:18px;height:18px;background:#171819;color:var(--gold);border:1px solid var(--gold)}
#variants-row,#lames-color,#rail-paint{margin-top:15px}
.metal-sample,.ral-dot{width:24px;height:24px;flex:0 0 24px;border-radius:3px;border:1px solid #ffffff32}
.metal-sample.brut{background:linear-gradient(134deg,#8e9192,#686b6b 45%,#4e5052)}
.metal-sample.galva{background:repeating-conic-gradient(from 8deg at 43% 60%,#abb2b5 0deg 38deg,#d1d5d2 75deg,#8f999d 118deg)}
.metal-sample.thermolaque{background:linear-gradient(130deg,#717775,#373c3d 52%,#282d2e)}
.metal-sample.duplex{background:linear-gradient(133deg,#bdc2c2 0 24%,#555d5d 25%,#292f30 69%)}
#finishes,#infill-color{display:grid;grid-template-columns:repeat(auto-fit,minmax(65px,1fr));gap:5px}
.ral-grid .choice{flex-direction:column;gap:5px;align-items:center;justify-content:center;padding:6px 3px;position:relative;font:550 .74rem/1.15 Manrope,Arial,sans-serif}
.ral-grid .choice[aria-pressed=true]::after{position:absolute;top:2px;right:4px}
.ral-dot{background:linear-gradient(145deg,#ffffff26,transparent 55%),var(--chip);width:32px;height:18px;flex:0 0 18px}
#finish-label{font-size:.85rem;margin:0 0 8px}
#reglages .quote-options{display:grid;gap:1px}
#apercu .caption{margin-top:12px}.hint{margin-top:8px}
.expanded #viewer{width:100%;align-items:center;overflow:auto}
.expanded #gate-stage{height:auto;width:min(100%,calc((100dvh - 202px)*var(--stage-aspect,1.5)));aspect-ratio:var(--stage-aspect,1.5);flex-shrink:0}
.expanded #viewer .toolbar,.expanded #viewer .motion-control{width:min(100%,820px)}
@media(min-width:821px) and (max-height:890px){#apercu{position:static}}
@media(max-width:570px){.gate-models{grid-template-columns:repeat(3,minmax(0,1fr))}.gate-models .model b{font-size:.86rem}.gate-models .model small{font-size:.7rem}.gate-models .model span{padding:7px}.toolbar button{min-height:42px}.zoom{margin-left:0}.finish-families .choice span{min-height:32px}.primary{min-height:48px}}
@media(max-width:360px){.option-grid{grid-template-columns:1fr}.dimension{padding:10px}.gate-models .model small{display:none}}

.mobile-link{white-space:nowrap;flex-shrink:0}.toolbar:has(#view-photo[aria-pressed=true]) .zoom{display:none}

#gate-ground{pointer-events:none}
#gate-stage.on-site #gate-ground{display:none}
#gate-stage.on-site #backplate,#gate-stage.on-site #foreground{inset:auto;left:var(--plate-left,0%);top:var(--plate-top,0%);width:var(--plate-width,100%);height:var(--plate-height,100%);max-width:none;object-fit:fill}

#gate-stage[data-view="front"] .signature{display:none}
#gate-stage:not(.on-site){min-height:min(166px,54vw)}
