

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/static/fonts/cormorant-garamond-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/montserrat-variable.woff2") format("woff2");
}

:root {
  --bg: #ececea;
  --surface: #ffffff;
  --surface-alt: #f5f5f3;
  --ink: #1a1a1a;
  --ink-soft: #5c5c5a;
  --ink-faint: #8a8a87;
  --line: #dcdcd8;
  --line-soft: #ebebe8;
  --danger: #b3261e;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, sans-serif;

  --topbar-h: 60px;      
  --gap: 20px;
  --pad: 22px;

  
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --pop-ms: 200ms;

  
  --r-sheet: 14px;
  --r-card: 10px;
  --r-ctl: 6px;
  
  --controls-w: clamp(240px, 31%, 340px);
}

* { box-sizing: border-box; }


[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; margin: 0; }
button, input, select { font: inherit; color: inherit; }



.skiplink {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 10px 16px;
  z-index: 2000;
}
.skiplink:focus { left: 0; }

.sitebar { position: relative; z-index: 1000; height: var(--topbar-h); }
.sitenav { height: 100%; background: rgba(0, 0, 0, .75); }
.sitenav-inner {
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sitebrand { flex: 0 0 auto; display: block; }
.sitebrand img {
  height: 40px;
  width: auto;
  display: block;
  
  filter: brightness(0) invert(1);
}

.sitenav-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.jobcount {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  white-space: nowrap;
}

@keyframes count-tick {
  from { opacity: .3; transform: translateY(-2px); }
  to   { opacity: 1; transform: none; }
}
.jobcount.tick { animation: count-tick .2s ease-out; }

.btn.btn-onbar {
  background: none;
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
  white-space: nowrap;
}
.btn.btn-onbar:hover:not(:disabled) {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .7);
}



.config {
  height: calc(100% - var(--topbar-h));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "controls stage bench";
  gap: var(--gap);
  padding: var(--gap) var(--pad);
  min-height: 0;
}

.controls, .bench {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  
  overflow-y: auto;
}


.controls {
  grid-area: controls;
  gap: 11px;
  width: max-content;
  max-width: clamp(168px, 15vw, 210px);
}

.bench {
  grid-area: bench;
  gap: 12px;
  
  width: clamp(224px, 19vw, 252px);
}

.group { display: flex; flex-direction: column; gap: 6px; }
.group h3 {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}


.opts { display: flex; flex-flow: row wrap; gap: 5px; }

.opt {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: center;
  white-space: nowrap;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .12s, background .12s, transform .1s ease;
}
.opt:hover:not(:disabled) { border-color: var(--ink-faint); }
.opt[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.opt:disabled { opacity: .38; cursor: default; }

.opt.offscope { opacity: .38; }
.opt.offscope:hover { opacity: .68; }


.opt.pick {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex: 1 0 100%;
  text-align: left;
}
.pickLabel { font-size: 13px; }

.pickValue {
  font-size: 12px;
  color: var(--ink-faint);
  white-space: normal;
  text-align: right;
}
.opt.pick.set { border-color: var(--ink-faint); }
.opt.pick.set .pickValue { color: var(--ink); font-weight: 600; }

.stage {
  grid-area: stage;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 7px;
}
.frame {
  flex: 1 1 auto;
  min-height: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.frame svg { max-height: 100%; max-width: 100%; height: 100%; width: auto; }
.hint { color: var(--ink-faint); font-size: 13px; margin: 0; }


.blocked {
  max-width: 42ch;
  padding: 0 12px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.blocked h3 { font-size: 20px; color: var(--ink); margin-bottom: 9px; }
.blocked p { margin: 0 0 9px; }
.blocked .blocked-reason { color: var(--ink); }
.blocked .blocked-lead { color: var(--ink-faint); }

.blocked .blocked-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin: 0;
}
.blocked-contact a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  white-space: nowrap;
}
.blocked-contact a:hover { border-bottom-color: var(--ink); }

.blocked .btn { margin-top: 3px; }
.summary {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  min-height: 17px;
}

.sizeform {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
}

.wh { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 6px; }
.times { color: var(--ink-faint); padding-bottom: 9px; }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fld > span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.fld input {
  width: 100%;
  min-width: 0;
  padding: 8px 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}


.fld input::-webkit-calendar-picker-indicator { display: none !important; }
.fld input::-webkit-list-button { display: none !important; }
.fld.qty { flex: 0 0 auto; }
.fld.qty input { width: 62px; }
.fld input:focus-visible { outline: 2px solid var(--ink); outline-offset: -1px; }

.btn {
  appearance: none;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  padding: 9px 16px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: border-color .12s, background .12s, transform .1s ease;
}
.btn:hover:not(:disabled) { background: #000; }
.btn:disabled { opacity: .4; cursor: default; }

.btn:active:not(:disabled),
.opt:active:not(:disabled) { transform: scale(.97); }

@keyframes pick-pop { from { transform: scale(.97); } to { transform: none; } }
.just-picked { animation: pick-pop var(--pop-ms) var(--ease-pop); }
.btn.wide { width: 100%; }
.btn.ghost { background: none; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-faint); background: none; }

.help { margin: 0; font-size: 11px; color: var(--ink-faint); line-height: 1.35; }

.help--echo { color: var(--ink); }

.fld input[aria-invalid="true"] { border-color: var(--danger); }


.sizenote,
.jobnote {
  padding: 8px 10px;
  background: var(--surface-alt);
  border-left: 2px solid var(--ink);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sizenote-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.sizenote-actions button {
  background: none;
  border: 1px solid var(--line);
  padding: 4px 9px;
  font-size: 12px;
  cursor: pointer;
}
.sizenote-actions button:hover { border-color: var(--ink); }


.combofig {
  margin: 0;
  appearance: none;
  background: none;
  
  border: 1px solid var(--line-soft);
  padding: 2px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: block;
  width: 100%;
}
.combofig:hover { border-color: var(--line); }

.doorfig .combocap { justify-content: center; gap: 6px; }

.combocap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 4px 2px 2px;
  font-size: 11px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.combocap-act {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.combofig:hover .combocap-act { color: #000; }
.combofig:active { transform: scale(.98); }
.combofig:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.combofig img {
  
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
  background: var(--surface-alt);
}

.doorfig img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 190px;
}



.jobwrap { flex: 1 1 auto; min-height: 68px; overflow-y: auto; }
.joblines { display: flex; flex-direction: column; gap: 5px; }
.jobline {
  display: flex;
  
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 5px 5px 5px 8px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.jobline .mark {
  font-size: 10px;
  letter-spacing: .05em;
  color: var(--ink-faint);
  flex: 0 0 auto;
}

.jobline .qtyctl {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}
.jobline .qty { color: var(--ink-soft); }
.jobline button {
  background: none;
  border: 0;
  
  padding: 6px 8px;
  margin: -6px 0;
  font-size: 15px;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
  flex: 0 0 auto;
}
.jobline button:hover:not(:disabled) { color: var(--ink); }

.jobline button:disabled { opacity: .35; cursor: default; }

.jobline button.rm:hover { color: var(--danger); }

.jobline .rowload {
  font-size: 12px;
  color: var(--ink);
  padding: 2px 0;
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.jobline .rowload:hover:not(:disabled) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jobline .rowspec {
  flex: 1 0 100%;
  font-size: 10px;
  line-height: 1.3;
  color: var(--ink-faint);
}

@keyframes row-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
@keyframes row-flash {
  from { background: var(--line); }
  to   { background: var(--surface-alt); }
}

.jobline.is-new { animation: row-in .16s ease-out, row-flash .4s ease-out; }
.jobline.is-changed { animation: row-flash .4s ease-out; }

.small { margin: 0; font-size: 12px; color: var(--ink-soft); }

.ready { margin: 0 0 8px; }
.privacy { font-size: 11px; color: var(--ink-faint); }

.privacylink {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.privacylink:hover, .privacylink:focus-visible { color: var(--ink); }
.err { margin: 0; font-size: 12px; color: var(--danger); }



.sheet {
  width: min(1080px, 94vw);
  max-height: 88vh;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  flex-direction: column;
  
  border-radius: var(--r-sheet);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(26, 26, 26, .22);
}

.sheet[open] { display: flex; animation: rise .16s ease-out; }
.sheet::backdrop { background: rgba(20, 20, 20, .45); }


.sheet.gallery::backdrop,
.sheet.picker::backdrop { background: rgba(52, 52, 49, .93); }


.sheet.gallery,
.sheet.picker {
  background: none;
  border: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .96);
  
  box-shadow: 0 24px 64px rgba(0, 0, 0, .4);
}


.sheet.gallery .sheet-body,
.sheet.picker .sheet-body {
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
}
.sheet.gallery .sheet-head,
.sheet.picker .sheet-head {
  border-bottom-color: rgba(255, 255, 255, .18);
}
.sheet.gallery .sheet-head p,
.sheet.picker .sheet-head p,
.sheet.gallery .sheet-note { color: rgba(255, 255, 255, .72); }

.sheet.gallery .sheet-head .gallery-context { color: rgba(255, 255, 255, .9); }

.sheet.picker .pickerpick { color: rgba(255, 255, 255, .9); }
.sheet.gallery .sheet-close,
.sheet.picker .sheet-close { color: rgba(255, 255, 255, .7); }
.sheet.gallery .sheet-close:hover,
.sheet.picker .sheet-close:hover { color: #fff; }
.sheet.gallery .sheet-foot,
.sheet.picker .sheet-foot { border-top-color: rgba(255, 255, 255, .18); }


.sheet.gallery .btn,
.sheet.picker .btn,
.sheet.gallery .chip,
.sheet.gallery .sheet-close,
.sheet.picker .sheet-close,
.lightbox .btn,
.lb-close,
.lb-arrow {
  background: #000;
  border: 1px solid #fff;
  color: #fff;
}
.sheet.gallery .btn:hover,
.sheet.picker .btn:hover,
.sheet.gallery .chip:hover,
.sheet.gallery .sheet-close:hover,
.sheet.picker .sheet-close:hover,
.lightbox .btn:hover,
.lb-close:hover,
.lb-arrow:hover {
  background: #222;
  border-color: #fff;
  color: #fff;
}
.sheet.gallery .btn:disabled,
.sheet.picker .btn:disabled,
.lightbox .btn:disabled {
  background: #000;
  border-color: rgba(255, 255, 255, .45);
  color: rgba(255, 255, 255, .45);
}
.sheet.gallery .chip[aria-pressed="true"] {
  background: #fff;
  border-color: #fff;
  color: #000;
}


.sheet .btn,
.sheet .sheet-close,
.lightbox .btn,
.lb-close,
.lb-arrow,
.leadrow input[type=email] {
  border-radius: var(--r-ctl);
}


.sheet.picker { width: min(1280px, 96vw); }
.sheet.lead { width: min(520px, 94vw); }
.sheet.confirm { width: min(420px, 94vw); }
.sheet.lead .sheet-body { display: flex; flex-direction: column; gap: 12px; }
.leadrow { display: flex; gap: 8px; }
.leadrow input[type=email] {
  flex: 1 1 auto;
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: var(--surface);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
}
.sheet-head h2 { font-size: 24px; }
.sheet-head p { margin: 4px 0 0; font-size: 12px; color: var(--ink-soft); max-width: 62ch; }
.sheet-close {
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
  
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}
.sheet-close:hover { color: var(--ink); }


.sheet-body { overflow-y: auto; padding: 16px 22px 20px; min-height: 0; }
.sheet-note { margin: 0; padding: 0 22px 16px; font-size: 11px; color: var(--ink-faint); }
.sheet-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
}
.pickerpick { flex: 1 1 auto; font-size: 12px; color: var(--ink-soft); }


.chiprow { display: flex; align-items: center; gap: 8px; padding: 14px 22px 0; }
.chiprow #groupChips { display: flex; gap: 8px; flex-wrap: wrap; }
.chiprow .sheet-note { margin-left: auto; align-self: center; padding: 0; }
.chip {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  cursor: pointer;
}

.tilegrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 14px;
}
.tile {
  appearance: none;
  background: none;
  border: 1px solid transparent;
  
  border-radius: var(--r-card);
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font: inherit;
  color: inherit;
}
.tile:hover { border-color: var(--line); }
.tile:active { transform: scale(.97); }
.tile[aria-pressed="true"] { border-color: var(--ink); background: rgba(0, 0, 0, .04); }
.tile img {
  width: 100%;
  height: auto;
  
  aspect-ratio: 370 / 862;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}
.tile .tilelabel { font-size: 11px; color: var(--ink-soft); }
.tile[aria-pressed="true"] .tilelabel { color: var(--ink); font-weight: 600; }


.rendercard.loading, .tile.loading, .lb-combo.loading {
  background: rgba(0, 0, 0, .06);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: .95; } }


.rendergrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 12px;
}

.rendergrid .groupname {
  grid-column: 1 / -1;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  
  color: var(--ink-soft);
  margin: 14px 0 2px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, .18);
}
.rendergrid.grouped .groupname:first-child { margin-top: 0; }
@media (max-width: 900px) { .rendergrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rendergrid { grid-template-columns: 1fr; } }


.rendercard {
  appearance: none;
  background: none;
  
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  
  border-radius: var(--r-card);
  padding: 8px 6px 6px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color .12s ease, transform .1s ease, opacity .12s ease;
}
.rendercard:hover { border-bottom-color: var(--line); }
.rendercard:active { transform: scale(.97); }

.rendercard[aria-pressed="true"] {
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, .85);
  border-bottom: 2px solid var(--ink);
}
.rendercard img {
  width: 100%;
  
  height: 240px;
  object-fit: contain;
  
  mix-blend-mode: multiply;
  display: block;
}



.lightbox {
  border: 0;
  padding: 0;
  background: none;
  max-width: min(980px, 95vw);
  width: 100%;
  max-height: 94vh;
  color: var(--ink);
  overflow: visible;
}
.lightbox[open] { display: block; }

.lightbox::backdrop { background: rgba(52, 52, 49, .93); }

.lightbox[open]::backdrop { animation: rise-fade .18s ease-out; }
@keyframes rise-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}


.lb-inner {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, .96);
  padding: 22px 24px 18px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.lb-panel {
  
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  
  border-radius: var(--r-sheet);
}
.lb-stage { display: flex; align-items: center; gap: 10px; padding: 14px 10px 6px; }
.lb-combos { padding: 0 12px 12px; border-top: 0; margin: 0; }


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.lb-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.lb-imgwrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  
  overflow: hidden;
}
.lb-imgwrap img {
  max-width: 100%;
  
  max-height: min(360px, 42vh);
  width: auto;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.lb-arrow {
  flex: 0 0 auto;
  width: 36px;
  height: 48px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}


.lb-comborow {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  
  min-height: 196px;
  align-items: center;
}

.lb-combo {
  flex: 0 0 auto;
  scroll-snap-align: start;
  appearance: none;
  background: none;
  
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  
  border-radius: var(--r-card);
  padding: 4px 8px 5px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.lb-combo:hover { border-bottom-color: var(--line); }

.lb-combo[aria-pressed="true"] {
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, .85);
  border-bottom: 2px solid var(--ink);
}
.lb-combo img {
  
  height: 170px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.lb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex: 0 0 auto;
}

.lb-pick {
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .95);
}



@media (max-width: 820px) {
  
  html, body { overflow: visible; height: auto; }
  
  .config {
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .controls, .bench {
    width: auto;
    max-width: none;
    overflow: visible;
  }
  .stage {
    order: -1;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding-bottom: 6px;
  }
  
  .frame {
    height: 48vh;
    min-height: 0;
    transition: height .2s ease-out;
  }
  
  .stage.compact .frame {
    min-height: 0;
    height: 22vh;
    padding: 6px;
  }
  .stage.compact .summary {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 12px;
  }
  .jobwrap { overflow: visible; }
  
  .jobline { padding: 8px; }
  .jobline button {
    min-width: 40px;
    min-height: 40px;
    margin: 0;
  }
  .jobline .rm { font-size: 18px; }
  
  .controls { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  #topStyles, #profileBtns { grid-column: 1 / -1; }
  .controls > .group:has(#topStyles),
  .controls > .group:has(#profileBtns) { grid-column: 1 / -1; }

  
  .sheet.gallery,
  .sheet.picker {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    background: rgb(52, 52, 49);
    
    border-radius: 0;
  }
  
  .lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    background: rgb(52, 52, 49);
    overflow: hidden;
    border-radius: 0;
  }
  .lb-inner { max-height: 100dvh; }
  
  .lb-panel { border-radius: 0; }
  
  .lb-close { top: 8px; right: 8px; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


@media (max-width: 560px) {
  
  .rendercard img { height: 200px; }
  
  .lb-imgwrap img { max-height: min(300px, 38vh); }
  .lb-combo img { height: 140px; }

  
  .sitenav-inner { padding: 0 10px; gap: 10px; }
  .sitenav-right { gap: 8px; }
  .jobcount { font-size: 10px; letter-spacing: .04em; }
  .btn.btn-onbar { padding: 6px 10px; font-size: 12px; }
}


@media (max-width: 380px) {
  .sitenav-inner { padding: 0 8px; gap: 6px; }
  .sitenav-right { gap: 6px; }
  .jobcount { font-size: 9px; letter-spacing: .03em; }
  .btn.btn-onbar { padding: 5px 7px; font-size: 11px; }
}
