

@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;
  --warn-bg: #fdecea;
  --warn-bar: #c62828;
  --warn-ink: #7a1712;
  --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);

  
  --shadow-raise: 0 1px 2px rgba(40, 30, 20, .07),
                  0 10px 24px -10px rgba(40, 30, 20, .13);
  --shadow-lift:  0 2px 4px rgba(40, 30, 20, .08),
                  0 16px 32px -10px rgba(40, 30, 20, .17);
  --shadow-float: 0 2px 8px rgba(40, 30, 20, .14),
                  0 32px 80px -16px rgba(40, 30, 20, .38);
}

* { box-sizing: border-box; }


[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  
  overflow: hidden;
  
  background: linear-gradient(180deg, #f0f0ee 0%, var(--bg) 45%, #e5e5e2 100%);
  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);
  
  box-shadow: 0 1px 0 rgba(40, 30, 20, .06),
              0 12px 28px -14px rgba(40, 30, 20, .35);
}
.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);
}



.sitenav { position: relative; }
.menubtn {
  position: absolute;
  left: 8px; top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 14px;
  font: inherit; font-size: 13px; line-height: 1.3;
  background: none;
  
  border: 0;
  border-radius: 4px;
  color: #fff; cursor: pointer;
  white-space: nowrap;
  z-index: 1;
}
.menubtn:hover, .menubtn[aria-expanded="true"] { background: rgba(255, 255, 255, .12); }
.menubtn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.menubtn-bars, .menubtn-bars::before, .menubtn-bars::after {
  display: block; width: 18px; height: 2px; border-radius: 1px;
  background: currentColor; content: "";
}
.menubtn-bars { position: relative; }
.menubtn-bars::before { position: absolute; top: -6px; }
.menubtn-bars::after  { position: absolute; top: 6px; }
.menubtn[hidden] { display: none; }
.sitenav:has(.menubtn:not([hidden])) .sitenav-inner {
  padding-left: max(15px, calc(124px - max(0px, (100vw - 1320px) / 2)));
}

@media (max-width: 560px) {
  .menubtn { padding: 9px 11px; }
  .menubtn-label { display: none; }
  .sitenav:has(.menubtn:not([hidden])) .sitenav-inner { padding-left: 62px; }
}


.sitemenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 8px;
  width: 320px;
  max-width: calc(100vw - 16px);
  padding: 8px 0;
  background: var(--surface);
  color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18), 0 10px 28px rgba(0, 0, 0, .22);
  z-index: 1100;
}
.sitemenu[hidden] { display: none; }
.menugroup { display: none; }
.menugroup.shown { display: block; padding: 4px 0; }
.menugroup.shown ~ .menugroup.shown { border-top: 1px solid var(--line-soft); }
.sitemenu .navwho { display: block; margin: 0; }
.menuitem {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 4px 16px;
  background: none; border: 0;
  font: inherit; font-size: 20px; line-height: 28px;
  color: var(--ink); text-align: left; text-decoration: none;
  cursor: pointer;
}
.menuitem[hidden] { display: none; }
.menuitem:hover, .menuitem:focus-visible { background: var(--surface-alt); outline: none; }
.menuitem::before {
  content: ""; flex: 0 0 20px; width: 20px; height: 20px;
  background: var(--ink-soft);
  -webkit-mask: url("/static/menu-icons.svg") no-repeat 0 0 / 140px 20px;
          mask: url("/static/menu-icons.svg") no-repeat 0 0 / 140px 20px;
}
.menuitem.mi-saved::before { -webkit-mask-position: -0px 0; mask-position: -0px 0; }
.menuitem.mi-quotes::before { -webkit-mask-position: -20px 0; mask-position: -20px 0; }
.menuitem.mi-over::before { -webkit-mask-position: -40px 0; mask-position: -40px 0; }
.menuitem.mi-room::before { -webkit-mask-position: -60px 0; mask-position: -60px 0; }
.menuitem.mi-pass::before { -webkit-mask-position: -80px 0; mask-position: -80px 0; }
.menuitem.mi-out::before { -webkit-mask-position: -100px 0; mask-position: -100px 0; }
.menuitem.mi-in::before { -webkit-mask-position: -120px 0; mask-position: -120px 0; }
.menuitem:not([class*="mi-"])::before { background: none; }
.sitemenu .menuwho {
  display: block;
  max-width: none;
  padding: 4px 16px 6px;
  font-size: 16px;
  color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sitemenu .ihslookup { display: flex; gap: 8px; padding: 6px 16px 8px; }
.sitemenu .ihslookup input { flex: 1; width: auto; min-width: 0; padding: 7px 10px; font-size: 16px; }
.sitemenu .ihslookup .btn { font-size: 16px; }



.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-soft);
  box-shadow: var(--shadow-raise);
  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);
}


.controls .combofig + .combofig { margin-top: -1px; }



.bench { gap: 9px; }
.bench .group { gap: 4px; }

.bench #profileBtns { flex-direction: row; gap: 6px; }
.bench #profileBtns .opt.pick {
  flex: 1 1 0;
  min-width: 0;
  gap: 6px;
}

.bench #pairModeSlot { flex-wrap: nowrap; gap: 4px; }
.bench #pairModeSlot .opt { flex: 1 1 0; min-width: 0; padding-left: 3px; padding-right: 3px;
                            font-size: 12px; }

.bench #pairModeSlot select.choose { flex: 1 1 auto; }

.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; }


.choosebox { position: relative; display: block; }
.choosebox::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(45deg);
  pointer-events: none;
}
select.choose {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 8px 30px 8px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .12s;
}
select.choose:hover { border-color: var(--ink-faint); }
select.choose:focus-visible { outline: 2px solid var(--ink); outline-offset: -1px; }
.sheet select.choose { border-radius: var(--r-ctl); }


.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-soft);
  box-shadow: var(--shadow-lift);
  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;
}


.specsbar { margin-top: 10px; }
.specsswitch {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px;
  cursor: pointer;
}
.specsswitch:hover { border-color: var(--ink-faint); }
.specsswitch i {
  position: relative; width: 34px; height: 18px; border-radius: 9px; background: var(--line); flex: none;
  transition: background .15s;
}
.specsswitch i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); transition: transform .15s;
}
.specsswitch[aria-checked="true"] i { background: var(--ink); }
.specsswitch[aria-checked="true"] i::after { transform: translateX(16px); }
.specspanel {
  margin-top: 8px; padding: 10px 14px 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 28px;
}
.specsec h4 {
  margin: 10px 0 4px; font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--ink-soft);
}
.specsec table { width: 100%; border-collapse: collapse; font-size: 12px; }
.specsec td, .specsec th { padding: 3px 0; border-top: 1px solid var(--line-soft); text-align: right; color: var(--ink); }
.specsec th { border-top: none; font-size: 10px; font-weight: 500; color: var(--ink-faint); padding-bottom: 2px; }
.specsec td:first-child, .specsec th:first-child { text-align: left; color: var(--ink-soft); }
.specsec td:not(:first-child) { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .specspanel { grid-template-columns: 1fr; } }

.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);
}

.fldhead { line-height: 1.35; }
.fldhead .pair-opening { margin-left: 6px; font-weight: 500; text-transform: none; letter-spacing: .02em;
  color: var(--ink); }
.fldhead .pair-opening[hidden] { display: none; }
.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; }

.qtyrow { display: flex; align-items: flex-end; gap: 16px; }
.doorprice { display: flex; flex-direction: column; justify-content: center;
             min-height: 40px; line-height: 1.2; color: var(--ink); }
.doorprice:empty { display: none; }
.doorprice-each { font-weight: 600; font-size: 17px; }
.doorprice-line { font-size: 12.5px; color: var(--ink-soft); }

.whwrap { position: relative; }
.help.is-float { display: none; position: absolute; left: 0; right: 0;
                 top: calc(100% + 6px); z-index: 6; background: #fff;
                 border: 1px solid var(--line-soft); border-radius: 4px;
                 box-shadow: 0 4px 14px rgba(0, 0, 0, .12); padding: 7px 9px;
                 pointer-events: none; }
.whwrap:focus-within .help.is-float { display: block; animation: helpfade .4s ease 4s forwards; }

@keyframes helpfade { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .whwrap:focus-within .help.is-float { animation-duration: .01s; }
}

#addToJob.is-waiting { opacity: .4; cursor: default; }
.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;
  
  box-shadow: 0 1px 2px rgba(40, 30, 20, .18);
  transition: border-color .12s, background .12s, transform .1s ease,
              box-shadow .12s ease;
}
.btn:hover:not(:disabled) { background: #000; }
.btn:active:not(:disabled) { box-shadow: none; }
.btn.ghost, .btn.btn-onbar { box-shadow: none; }
.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); }

.combofig.is-waiting img { visibility: hidden; }

.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); }
.jobline button {
  background: none;
  border: 0;
  
  padding: 6px 8px;
  margin: -6px 0;
  font-size: 15px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
}
.jobline button:hover:not(:disabled) { color: var(--ink-soft); }

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

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

.jobline .rowtext {
  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 .rowspec {
  flex: 1 0 100%;
  font-size: 10px;
  line-height: 1.3;
  color: var(--ink);
}

@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); }


.panelstack { position: relative; }
.panel[hidden] { display: none; }

.panel-glass {
  animation: panel-in 340ms cubic-bezier(.22, .61, .36, 1);
}
@keyframes panel-in {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .panel-glass { animation: none; }
}
.panelhead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.panelhead h2 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
}

.panelback {
  width: 26px; height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: none;
  position: relative;
  cursor: pointer;
}
.panelback::before {
  content: "";
  position: absolute;
  top: 50%; left: 52%;
  width: 7px; height: 7px;
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
}
.panelback:hover { background: var(--surface-alt); }


.glassrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.glassrow-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  min-width: 20px;
}
.glassrow-size {
  font-size: 11px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.glassrow-modes { flex: 1 1 140px; }
.glassrow-why {
  flex: 1 1 100%;
  font-size: 11px;
  color: var(--ink-faint);
}
.glassstep {
  display: flex;
  align-items: center;
  gap: 4px;
}
.glassstep-n {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  min-width: 12px;
  text-align: center;
}
.glassstep-cap {
  font-size: 11px;
  color: var(--ink-faint);
}



.bench > .btn.wide + .btn.wide,
.panel > .btn.wide + .btn.wide,
.panel > .btn.wide + .sizenote,
.panel > .sizenote + .btn.wide,
.panel-standard #openLead { margin-top: 10px; }

.panel > .btn.wide + [hidden] + .btn.wide,
.panel > .btn.wide + [hidden] + [hidden] + .btn.wide,
.panel > .btn.wide + .jobnote,
.panel > .btn.wide + .editnote,
.panel > .glassrows + .btn.wide { margin-top: 10px; }

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

.leadprompt {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.leadpromise {
  margin: -4px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.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: var(--shadow-float);
}

.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.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 {
  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 {
  background: #222;
  border-color: #fff;
  color: #fff;
}
.sheet.gallery .btn:disabled,
.sheet.picker .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,
.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);
}

.savedlines { display: flex; flex-direction: column; gap: 6px; }

.savedtools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.savedtick { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; cursor: pointer; }

.sheet.confirm .sheet-foot { flex-wrap: wrap; }

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

.sheet-head .jobquote { color: var(--ink); font-weight: 700; }

.pairadd { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pairadd .btn { display: flex; flex-direction: column; align-items: flex-start;
                gap: 2px; text-align: left; padding: 10px 14px; }
.pairadd .pairadd-what { font-size: 14px; }
.pairadd .pairadd-count { font-size: 11px; opacity: .75; }
.savedrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.savedmain { display: flex; flex-direction: column; gap: 2px; flex: 1 1 0; min-width: 0; }
.savedname {
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.savedmeta { font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.savedrow .btn { flex: 0 0 auto; }

.savedrm {
  flex: 0 0 auto;
  background: none;
  border: 0;
  padding: 6px 4px;
  margin: -6px 0;
  font: inherit;
  font-size: 12px;
  color: var(--ink-faint);
  cursor: pointer;
}
.savedrm:hover { color: var(--danger); }


.savenote { margin: 0; padding: 0 22px 4px; font-size: 12px; color: var(--ink-soft); }

.savenote.err { color: var(--danger); }


.err:not([hidden]):not(:empty) {
  display: block; box-sizing: border-box;
  margin: 6px 0; padding: 8px 12px 8px 36px;
  font-size: 12px; font-weight: 600; line-height: 1.4; text-align: left;
  color: var(--warn-ink, #7a1712); background: var(--warn-bg, #fdecea);
  border: 0; border-left: 5px solid var(--warn-bar, #c62828); border-radius: 6px;
}

.err:not(.ihsnote):not([hidden]):not(:empty) { position: relative; }
.err:not([hidden]):not(:empty)::before {
  content: "!"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--warn-bar, #c62828); color: #fff;
  font: 700 12px/18px system-ui, -apple-system, sans-serif; text-align: center;
}

.savenote.err:not([hidden]):not(:empty), #jobEmptyNote.err:not([hidden]):not(:empty) { margin: 6px 22px; }


.savewarn { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.savewarn .savenote { flex: 1 0 100%; padding: 0; font-size: 13px; line-height: 1.4; }




.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;
}


.sheet.gallery .gallery-refusal {
  margin: 8px 0 0;
  padding: 7px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .96);
  max-width: 62ch;
}


#designDialog[open] { height: 88vh; }


.gallerykinds {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}
.gallerykinds .kind {
  appearance: none;
  font: inherit;
  font-size: 19px;
  line-height: 1.15;
  padding: 7px 15px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: var(--r-ctl);
  color: rgba(255, 255, 255, .62);
  cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.gallerykinds .kind:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
}
.gallerykinds .kind[aria-pressed="true"],
.gallerykinds .kind[aria-pressed="true"]:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  cursor: default;
}


.gallerytabs {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 8px 22px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallerytabs::-webkit-scrollbar { display: none; }
.gallerytabs .opts { display: flex; align-items: flex-end; gap: 2px; }

.gallerytabs .galleryslot { margin-left: auto; padding-left: 24px; }
.gallerytabs .galleryslot[hidden] { display: none; }

.gallerytabs .galleryslot { margin-bottom: 7px; }
.gallerytabs .galleryslot.choosebox::after { border-color: #fff; }
.gallerytabs .galleryslot select.choose {
  width: auto;
  min-width: 150px;
  background: #000;
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
  border-radius: var(--r-ctl);
  font-weight: 600;
}
.gallerytabs .galleryslot select.choose:hover { border-color: #fff; }
.gallerytabs .galleryslot select.choose option { background: #fff; color: #000; }


.gallerytabs .opt {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  padding: 11px 16px 10px;
  font-size: 14px;
  line-height: 1;
  color: rgba(255, 255, 255, .85);
  white-space: nowrap;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.gallerytabs .opt:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}
.gallerytabs .opt[aria-pressed="true"],
.gallerytabs .opt[aria-pressed="true"]:hover {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(255, 255, 255, .72);
  color: var(--ink);
  font-weight: 600;
}

.gallerytabs .opt.offscope {
  background: none;
  border-color: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .42);
}
.gallerytabs .opt.offscope:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .62);
}


.sheet.gallery .sheet-body .chiprow { padding: 0 0 14px; }
.sheet.gallery .sheet-body .chip {
  background: none;
  border: 1px solid rgba(0, 0, 0, .22);
  color: var(--ink);
}
.sheet.gallery .sheet-body .chip:hover {
  background: rgba(0, 0, 0, .06);
  border-color: rgba(0, 0, 0, .38);
  color: var(--ink);
}
.sheet.gallery .sheet-body .chip[aria-pressed="true"] {
  background: #000;
  border-color: #000;
  color: #fff;
}

.tilegrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 14px;
}

.tilegrid.pairs { grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); }
.tilegrid.pairs .tile img { aspect-ratio: 668 / 876; }
.tile {
  appearance: none;
  background: none;
  border: 1px solid transparent;
  
  border-radius: var(--r-card);
  padding: 8px;
  cursor: pointer;
  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font: inherit;
  color: inherit;
}

.tile:hover {
  border-color: var(--line);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .45);
}
.tile:active { transform: scale(.97); box-shadow: none; }
.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 {
  background: rgba(0, 0, 0, .06);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: .95; } }


.rendercard img, .tile img { opacity: 0; }
.rendercard.loaded img, .tile.loaded img {
  opacity: 1;
  transition: opacity .2s ease-out;
}


.tile.swapping img { opacity: .35; transition: opacity .12s ease-out; }
.tile.swapping { background: none; animation: none; }


.flyghost {
  position: fixed;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  pointer-events: none;
  z-index: 3000;
}
.flyghost svg { width: 100%; height: 100%; display: block; }


.pickscrim {
  position: fixed;
  inset: 0;
  background: rgba(52, 52, 49, .93);
  pointer-events: none;
  z-index: 2990;
}
.pickghost {
  position: fixed;
  left: 0;
  top: 0;
  object-fit: contain;
  transform-origin: 0 0;
  pointer-events: none;
  z-index: 3000;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .25));
}

.sheet.pickghost-sheet {
  position: fixed;
  left: 0;
  top: 0;
  margin: 0;
  max-width: none;
  max-height: none;
  display: flex;
  background: rgba(52, 52, 49, .96);
  transform-origin: 0 0;
  pointer-events: none;
  z-index: 3000;
}


.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; } }



.sheet.picker .sheet-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.pickerpair {
  display: grid;
  
  grid-template-columns: 292px minmax(0, 1fr) 292px;
  gap: 0 14px;
  
  flex: 1 1 auto;
  min-height: 0;
}
.pickercol {
  display: flex;
  flex-direction: column;
  
  min-height: 0;
}


.pickercol-head {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0 0 8px;
  padding: 7px 10px;
  background: #000;
  color: #fff;
  border-radius: var(--r-ctl);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
}
.pickercol .rendergrid {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  flex: 1 1 auto;
  padding-right: 4px;
}

#pickerPanelGrid {
  direction: rtl;
  padding-right: 0;
  padding-left: 4px;
}
#pickerPanelGrid > * { direction: ltr; }


.rendergrid.pair { grid-template-columns: 1fr; gap: 4px 0; }
.rendergrid.pair .rendercard img { height: 132px; }


.rendercard.off img {
  filter: grayscale(1) brightness(.94) contrast(.85) opacity(.62);
}



.rendergrid:not(.grouped) .rendercard.first-off {
  border-top: 1px solid rgba(0, 0, 0, .22);
  margin-top: 10px;
  padding-top: 14px;
}


.pickerhero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 0;
  
  background: none;
  border-radius: var(--r-card);
  padding: 12px;
}
.pickerhero img {
  max-width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.pickerhero-pic {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
.pickerhero-pic > img,
.pickerhero-pic > model-viewer { grid-area: 1 / 1; min-width: 0; min-height: 0; }
.pickerhero-pic > img {
  width: 100%;
  height: 100%;
  max-width: none;
  transition: opacity .25s ease;
}
.pickerhero-pic > model-viewer {
  width: 100%;
  height: 100%;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-height: 0px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  cursor: grab;
  
  mix-blend-mode: multiply;
}
.pickerhero-pic > model-viewer:active { cursor: grabbing; }
.pickerhero.is-3d .pickerhero-pic > img { opacity: 0; }
.pickerhero.is-3d .pickerhero-pic > model-viewer { opacity: 1; pointer-events: auto; }

.h3hint {
  grid-area: 1 / 1;
  position: relative;
  min-width: 0;
  min-height: 0;
  pointer-events: none;
  color: #1f1f1f;
  opacity: 0;
  transition: opacity .35s ease;
}
.pickerhero.is-3d .h3hint.on { opacity: .62; }
.h3hint-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }


.pickerhero-say {
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}


.pickerthick { display: flex; gap: 6px; margin-left: auto; padding-right: 10px; }
.pickerthick .opt {
  appearance: none;
  background: #000;
  border: 1px solid #fff;
  color: #fff;
  border-radius: var(--r-ctl);
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.pickerthick .opt:hover { background: #222; }
.pickerthick .opt[aria-pressed="true"] { background: #fff; color: #000; }

.sheet.picker .pickerfoot { flex: 0 0 auto; justify-content: flex-end; }


@media (max-width: 1000px) {
  .sheet.picker .sheet-body { display: block; overflow-y: auto; }
  
  .pickerpair { display: flex; flex-direction: column; min-height: 0; }
  .pickercol { display: block; }
  .pickercol .rendergrid { overflow: visible; }
  
  .rendergrid.pair { grid-template-columns: repeat(2, 1fr); gap: 4px 12px; }
  .pickerhero {
    order: -1;
    position: sticky;
    top: 0;
    z-index: 2;
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    height: 104px;
    margin-bottom: 10px;
    
    background: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
  }
  .pickerhero img { max-height: 80px; }
  
  .pickerhero-pic { display: contents; }
  .pickerhero-pic > model-viewer, .h3hint { display: none; }
  .pickerhero.is-3d .pickerhero-pic > img { opacity: 1; }
  .pickerhero-pic > img { width: auto; height: auto; max-width: 100%; }
  .pickerhero-say { text-align: right; max-width: 40%; }
  .pickercol + .pickercol { margin-top: 10px; }
}
@media (max-width: 560px) {
  .rendergrid.pair .rendercard img { height: 104px; }
  .pickerhero { height: 88px; }
  .pickerhero img { max-height: 68px; }
  .pickerhero-say { font-size: 12px; }
}


.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 .12s ease, opacity .12s ease,
              box-shadow .12s ease;
}

.rendercard:hover {
  border-bottom-color: var(--line);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .45);
}
.rendercard:active { transform: scale(.97); box-shadow: none; }

.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;
}




@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;
  }
}


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


@media (max-width: 560px) {
  
  .rendergrid.pair .rendercard img { height: 104px; }

  
  .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; }
}


.rowopts {
  grid-column: 2 / -1;
  justify-self: start;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 11px;
  line-height: 1.3;
  text-align: left;
  color: var(--ink-faint);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--line);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.jobline .rowopts {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-decoration-color: currentColor;
}
.jobline .rowopts:hover {
  color: var(--ink-soft);
  text-decoration-color: currentColor;
}
.jobline .rowopts.is-set {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.jobline .rowedit {
  margin: 2px 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: currentColor;
}
.jobline .rowedit:hover {
  color: var(--ink-soft);
  text-decoration-color: currentColor;
}

.editnote {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.editnote[hidden] { display: none; }
.editnote .linkbtn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 400;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lineopts { max-width: 420px; }
.optgroup { border: 0; margin: 0 0 14px; padding: 0; }
.optgroup legend,
.optlabel {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.optgroup .hint { margin-top: 4px; color: var(--ink-faint); font-size: 11px; }
.optgroup input[type="text"] {
  width: 100%;
  padding: 7px 9px;
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
}
.checkrow { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.checkrow input { width: 15px; height: 15px; }
.sheet-foot { display: flex; gap: 8px; padding: 0 20px 18px; }


.frame { cursor: pointer; }


.sheet.jobsheet { width: min(640px, 94vw); }
.sheet.jobsheet .joblines { display: flex; flex-direction: column; gap: 8px; }


#projectName {
  margin-top: 4px;
  width: min(320px, 100%);
  padding: 6px 9px;
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
}


#nameInput {
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
}


.pillrow { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  appearance: none;
  font: inherit;
  font-size: 13px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
}
.pill:hover { border-color: var(--ink-faint); }
.pill.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}


.dooropts { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 12px; }
.dooropts .optrow { display: flex; flex-direction: column; gap: 4px; }

.dooropts .optpair { display: flex; gap: 8px; align-items: flex-end; }   
.dooropts .optpair > .optrow { flex: 1 1 0; min-width: 0; }
.dooropts .optkey {
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-faint);
}
.dooropts .pillrow { gap: 6px; }
.dooropts .pill { padding: 4px 9px; font-size: 12px; }
.dooropts .checkrow { flex-direction: row; }
.dooropts .optnote {
  width: 100%; box-sizing: border-box; padding: 6px 8px; font: inherit;
  font-size: 12px; border: 1px solid var(--line, #d9d9d9); border-radius: 6px;
  background: #fff;
}


.gallery-more { margin: 6px 0 0; font-size: 12px; color: var(--ink-faint); }
.gallery-more-foot { margin: 18px 0 4px; text-align: center; }


.tile, .rendercard { position: relative; }
.tiletag {
  position: absolute; top: 6px; right: 6px;
  padding: 2px 6px; border-radius: 999px;
  font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  background: var(--ink, #1a1a1a); color: #fff; pointer-events: none;
}


.sheet.howto { width: min(1180px, 96vw); height: 88vh; }
.sheet.howto .sheet-head p { max-width: none; }
.howto-wrap {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 0;
  flex: 1 1 auto;
}
.howto-index {
  border-right: 1px solid var(--line);
  background: var(--surface-alt);
  overflow-y: auto;
  padding: 14px 12px 20px;
  font-family: var(--font-sans);
}
.howto-index input[type=search] {
  width: 100%;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--surface);
  color: var(--ink);
  margin-bottom: 12px;
}
.howto-index ol { list-style: none; margin: 0; padding: 0; }
.howto-ix { margin: 0 0 10px; }
.howto-ix a {
  display: block;
  padding: 5px 8px;
  border-radius: var(--r-ctl);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
}
.howto-ix-sec { font-weight: 600; }
.howto-ix-items { margin: 2px 0 0 10px !important; }
.howto-ix-items a { font-size: 12px; color: var(--ink-soft); padding: 3px 8px; }
.howto-ix a:hover { background: rgba(0, 0, 0, .05); }
.howto-ix a.on { background: var(--ink); color: #fff; }
.howto-tier {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: middle;
  border-radius: 999px;
  background: #b5811d;
  color: #fff;
}
.howto-ix a.on .howto-tier { background: #fff; color: var(--ink); }
.howto-body {
  padding: 8px 34px 40px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  scroll-behavior: smooth;
}
.howto-sec { padding-top: 18px; scroll-margin-top: 8px; }
.howto-sec + .howto-sec { border-top: 1px solid var(--line); margin-top: 18px; }
.howto-sec h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 6px;
}
.howto-sec h3 .howto-tier { position: relative; top: -3px; }
.howto-intro { color: var(--ink-soft); margin: 0 0 10px; max-width: 70ch; }
.howto-item { padding: 10px 0 6px; max-width: 72ch; scroll-margin-top: 8px; }
.howto-item h4 { margin: 0 0 6px; font-family: var(--font-sans); font-size: 15px; font-weight: 600; }
.howto-item p { margin: 0 0 8px; }
.howto-steps, .howto-list { margin: 0 0 8px; padding-left: 22px; }
.howto-steps li, .howto-list li { margin: 0 0 4px; }
.howto-fig { margin: 10px 0 12px; }
.howto-fig img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-raise);
}
.howto-fig figcaption { margin-top: 6px; font-size: 12px; color: var(--ink-faint); }
.howto-note { font-size: 13px; color: var(--ink-soft); }
.howto-warn {
  margin: 8px 0 4px;
  padding: 9px 12px;
  border-left: 3px solid #b5811d;
  background: #faf5ea;
  font-size: 13px;
}

.howto-flag {
  margin: 8px 0 4px;
  padding: 9px 12px;
  border-left: 3px solid #9b2c1f;
  background: #fbf0ee;
  font-size: 13px;
}
.howto-none { margin: 0; padding: 10px 22px 14px; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 760px) {
  .howto-wrap { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .howto-index { border-right: 0; border-bottom: 1px solid var(--line); max-height: 34vh; }
  .howto-body { padding: 8px 18px 30px; }
}


.glasstype { margin: 0 0 14px; }
.glasstype h3 { font: inherit; font-weight: 600; font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase; color: #6b6b68; margin: 0 0 8px; }

.glasstype-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  width: 100%; padding: 8px 10px; margin: 0 0 8px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px;
  font: inherit; text-align: left; cursor: pointer;
}
.glasstype-row:hover { border-color: var(--ink-faint); }
.glasstype-rowlabel { font-size: 12px; color: var(--ink-soft); }
.glasstype-rowvalue { font-size: 13px; font-weight: 500; }

.glasstype-rowvalue.is-unset { font-weight: 400; color: var(--ink-faint); }


.sheet.gallery .glasstiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

.glasstiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.glasstile { display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 4px; border: 1px solid #d9d9d5; border-radius: 6px; background: #fff;
  cursor: pointer; font: inherit; font-size: 10px; line-height: 1.2; color: #4a4a48;
  text-align: center; min-width: 0; overflow: hidden; transition: transform .12s ease; }
.glasstile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; display: block; }
.glasstile-label { display: block; }
.glasstile:hover { border-color: #8a8a87; }
.glasstile.on { grid-column: span 2; grid-row: span 2; border-color: #1a1a1a; border-width: 2px;
  font-weight: 600; color: #1a1a1a; font-size: 12px; }


.projectnote { margin: 12px 0 0; padding: 10px 12px; font-size: 13px; line-height: 1.4;
  color: var(--ink); background: var(--surface-2, #f2f0ec); border-left: 3px solid var(--ink-soft); }
.projectnote-staff { display: none; }
body.ihsmode .projectnote-staff { display: inline; font-weight: 600; }


.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 6px; font-size: 14px;
  line-height: 1.35; text-align: center; color: #fff; background: #1d1d1b;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .28); z-index: 10;
  animation: toast-in .18s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
