/* The outer tray encloses a native scroll area. End spacers let every sample snap to its centre. */
.lts-palette.lts-palette {
  --sample-width: clamp(52px, 11vw, 68px);
  --sample-gap: 4px;
  display:grid; grid-template-columns:38px minmax(0,1fr) 38px;
  align-items:center; gap:0; min-width:0; max-width:100%; box-sizing:border-box;
  padding:7px 4px 8px; margin:9px 0 8px;
  border:1px solid #414449; border-radius:12px;
  background:linear-gradient(180deg,#272b30 0%,#1b1f23 19%,#111417 80%,#1a1d21);
  box-shadow: inset 0 1px 0 #ffffff16,0 3px 7px #0005;
}
.lts-palette[hidden]{display:none!important}
.lts-palette-track {
  display:flex; position:relative; min-width:0; gap:var(--sample-gap);
  overflow-x:auto; overflow-y:hidden; overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory; scrollbar-width:none; padding:6px 0;
}
.lts-palette-track::-webkit-scrollbar{display:none}
.lts-palette-track::before,.lts-palette-track::after {
  content:""; flex:0 0 max(0px,calc(50% - var(--sample-width) / 2 - var(--sample-gap)));
}
.lts-palette.lts-palette .lts-sample {
  display:grid; grid-template-rows:34px auto; justify-items:center; align-content:start; gap:6px;
  flex:0 0 var(--sample-width); width:var(--sample-width); height:auto; min-height:62px; box-sizing:border-box;
  padding:6px 2px 4px; border:1px solid transparent; border-radius:8px;
  scroll-snap-align:center; background:transparent; box-shadow:none; cursor:pointer;
  color:#bfc3c6; font:500 11px/1.2 system-ui,sans-serif; text-align:center;
}
.lts-palette.lts-palette .lts-sample[aria-pressed=true]{
  border-color:#d1b985; color:#fff5df; background:linear-gradient(#292b2b,#1b1d1e);
  box-shadow:inset 0 1px 0 #fff2,0 2px 4px #0008;
}
.lts-palette .lts-sample-face{
  display:block; position:relative; width:34px; height:34px; border-radius:50%;
  background-color:var(--sample-color);
  background-image:linear-gradient(140deg,#fff4,transparent 38%,transparent 58%,#0003);
  box-shadow:inset 0 1.5px 1px #ffffff70,inset 0 -2px 2px #0005,
    0 1px 0 1px #040608,0 3px 4px #000b;
}
.lts-palette .lts-sample-face.is-dual::after{
  content:"";position:absolute;inset:65% 0 0;background:var(--underside);border-radius:0 0 20px 20px;
}
.lts-palette .lts-sample-face.is-clear{
  background-image:linear-gradient(125deg,transparent 25%,#fffb 28%,transparent 40%,#0002),
    repeating-conic-gradient(#fff6 0 25%,transparent 0 50%);background-size:100% 100%,12px 12px;
}
.lts-palette .lts-sample-code{font-variant-numeric:tabular-nums;letter-spacing:.025em;overflow-wrap:anywhere}
.lts-palette.lts-palette .lts-palette-arrow{
  position:relative;display:grid;place-items:center;justify-self:stretch;
  min-width:0;min-height:58px;width:100%;height:auto;padding:0;
  border:0;background:transparent;box-shadow:none;color:#e6d6b5;cursor:pointer;
}
.lts-palette-arrow::before{
  content:"";width:27px;height:27px;border-radius:50%;border:1px solid #55585a;
  background:linear-gradient(#373c40,#222529);box-shadow:inset 0 1px 0 #fff2,0 2px 3px #0008;
}
.lts-palette-arrow::after{
  content:"";position:absolute;width:7px;height:7px;transform:translateX(1.5px) rotate(45deg);
  border:solid currentColor;border-width:0 0 2px 2px;
}
.lts-palette-arrow[data-direction=next]::after{transform:translateX(-1.5px) rotate(225deg)}
.lts-palette .lts-palette-arrow:disabled{opacity:.32;cursor:default}
.lts-palette .lts-palette-help{
  grid-column:1/-1;margin:1px 0 0;display:block;color:#b6b9bd;text-align:center;font:400 11px/1.4 system-ui,sans-serif;
}
.lts-palette button:focus-visible{outline:2px solid #fff2d8;outline-offset:-2px}
@media(min-width:640px){.lts-palette.lts-palette{grid-template-columns:44px minmax(0,1fr) 44px}}
/* Low relief on selectors, including a visibly depressed selected state. */
:is(.abri-model-choices,.abri-color-targets,.abri-height-options,.abri-roof-options,.abri-material-grid,.abri-bench-materials,.abri-wall-tabs,.mounts,.models) button{
  background-image:linear-gradient(160deg,#ffffff0c,transparent 48%,#0001);
  box-shadow:inset 0 1px 0 #ffffff21,0 2px 0 #060708,0 3px 7px #0004;
}
:is(.abri-model-choices,.abri-color-targets,.abri-height-options,.abri-roof-options,.abri-material-grid,.abri-bench-materials,.abri-wall-tabs,.mounts,.models) button[aria-pressed=true]{
  box-shadow:inset 0 0 0 1px #cbb481,inset 0 2px 5px #0007,0 1px 0 #ffffff1b;
}

#reglages select,.abri-panels select{
  box-shadow:inset 0 1px 1px #ffffff1b,0 2px 3px #0005;
}
/* Long finish names must fit their field without widening the mobile workbench. */
.workbench > section,#reglages .fields > label{min-width:0}
#reglages .fields select{min-width:0;max-width:100%}
