/* ==========================================================================
   Design studio: options | the case on its drawing sheet | price and request
   ========================================================================== */
.studio { padding-block: 26px 70px; }
.st-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 18px; }
.st-head h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.st-head p { margin: .4em 0 0; }
.st-file { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; }
.st-name { min-width: min(320px, 100%); font-size: .82rem; color: var(--anod); }
.st-name input { font-weight: 650; font-stretch: 108%; }
.st-from { margin: 0 0 12px; padding: 10px 14px; background: var(--sheet); border: 1px solid var(--line); border-left: 3px solid var(--blue); font-size: .93rem; max-width: none; }
.st-grid { display: grid; grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) minmax(280px, 330px); gap: 18px; align-items: start; }
.st-controls, .st-quote { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); }
.st-quote { padding: 20px; position: sticky; top: 84px; display: grid; gap: 14px; }
.st-quote h2 { font-size: 1.3rem; }
.st-view { min-width: 0; display: grid; gap: 10px; position: sticky; top: 84px; }
/* drawing the foam needs the room: the options step aside */
.st-grid.foamMode .st-controls { display: none; }
.st-grid.foamMode .st-view { grid-column: 1 / 3; position: static; }

/* options: one section open at a time, each heading shows what is chosen */
.acc + .acc { border-top: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 15px 18px; background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink); font: 650 1rem var(--font); font-stretch: 108%; }
.acc-head:hover { background: rgba(21, 24, 27, .05); }
.acc-v { font: 500 .86rem var(--font); font-stretch: 80%; color: var(--anod); text-align: right; }
.acc.open .acc-head { border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--orange); }
.acc-body { padding: 16px 18px 20px; display: grid; gap: 16px; }
.acc-body .grp { display: grid; gap: 8px; }
.acc-body .lbl { font-size: .84rem; font-weight: 600; color: var(--anod); }
.acc-body .help { margin: 0; }
.acc-body .seg { display: flex; }
.acc-body .seg button { flex: 1 1 auto; padding: .7em .5em; font-size: .88rem; }
.acc-body .cards { display: grid; gap: 8px; }
.acc-body .cards button { text-align: left; padding: 11px 13px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; display: grid; gap: 3px; color: var(--ink); font: inherit; }
.acc-body .cards button:hover { border-color: var(--ink); }
.acc-body .cards button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.acc-body .cards .cn { font-weight: 650; font-stretch: 106%; }
.acc-body .cards small { color: var(--anod); font-size: .84rem; line-height: 1.35; }
.acc-body .presets { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-body .presets .chip { padding: 5px 11px; min-height: 34px; font-size: .86rem; }
.acc-body .dim { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; font-stretch: 100%; font-weight: 400; }
.acc-body .dim > label { font-size: .84rem; font-weight: 600; color: var(--anod); grid-column: 1 / -1; }
.acc-body .dim input[type="range"] { min-height: 30px; }
.acc-body .dim-n { display: flex; align-items: center; gap: 5px; }
.acc-body .dim-n input { width: 78px; padding: 7px 8px; min-height: 38px; font-stretch: 80%; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.acc-body .unit { color: var(--anod); font-size: .84rem; }
.acc-body .sw { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-body .sw button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(21, 24, 27, .35); cursor: pointer; }
.acc-body .sw button[aria-pressed="true"] { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.acc-body .check, .fe-check { display: flex; grid-template-columns: none; align-items: flex-start; gap: 9px; font-weight: 500; }
.acc-body .check input, .fe-check input { margin-top: 4px; }
.acc-body select { min-height: 42px; padding: 8px 10px; font-size: .93rem; }

/* the case on its sheet */
.st-tabs { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-busy { font-size: .86rem; color: var(--anod); }
.st-stage { position: relative; height: clamp(380px, 64vh, 700px); background: #d9dcd6; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.st-stage canvas { width: 100%; height: 100%; touch-action: none; cursor: grab; }
.st-stage canvas:active { cursor: grabbing; }
.st-nogl { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; }
.st-tools { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; pointer-events: none; }
.st-tools > * { pointer-events: auto; }
.seg.small button { padding: .5em .8em; min-height: 36px; font-size: .84rem; }
.st-lid { display: flex; grid-template-columns: none; align-items: center; gap: 8px; padding: 0 12px; min-height: 36px; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: var(--radius); font-size: .84rem; }
.st-lid input { width: 110px; min-height: 26px; }
.st-tools .btn.small { background: var(--sheet); }
.st-tools .btn.small[aria-pressed="true"] { background: var(--ink); color: #fff; }
.st-notes { list-style: none; margin: 0; padding: 12px 16px; background: var(--sheet); border: 1px solid var(--line); font-size: .88rem; display: grid; gap: 4px; }
.st-notesHead { font-weight: 650; }
.st-foamNote { padding: 30px; background: var(--sheet); border: 1px solid var(--line); display: grid; gap: 12px; justify-items: start; }

/* price and request */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .93rem; }
.kv dt { color: var(--anod); }
.kv dd { margin: 0; text-align: right; }
.st-qty { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.st-qty > label { font-weight: 650; }
.stepper { display: inline-grid; grid-template-columns: 46px 1fr 46px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: #fff; max-width: 220px; }
.stepper button { border: 0; background: none; font: 500 1.3rem var(--font); cursor: pointer; min-height: 46px; color: var(--ink); }
.stepper button:hover { background: rgba(21, 24, 27, .07); }
.stepper input { border: 0; border-inline: 1.5px solid var(--ink); border-radius: 0; text-align: center; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bands { display: flex; flex-wrap: wrap; gap: 6px; }
.bands .chip { padding: 4px 11px; min-height: 34px; font-size: .86rem; font-variant-numeric: tabular-nums; }
.st-price { min-height: 150px; transition: opacity .2s; }
.st-price.wait { opacity: .45; }
.st-unit { margin: 0 0 10px; display: grid; }
.st-unit strong { font-size: 2.5rem; font-stretch: 112%; font-weight: 760; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.st-unit span { color: var(--anod); font-size: .9rem; margin-top: 4px; }
.st-sum { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
.st-sum td { padding: 5px 0; border-top: 1px solid var(--line); }
.st-sum td:last-child { text-align: right; }
.st-sum .grand td { font-weight: 700; border-top: 1.5px solid var(--ink); }
.st-msg { margin: 0; padding: 14px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--orange); }
.st-flow { padding: 16px; background: #fff; border: 1px solid var(--line); }
.st-sent h3 { margin-bottom: 8px; color: var(--ok); }
.st-save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
#reqBtn { width: 100%; }
.st-bar { display: none; }

@media (max-width: 1180px) {
  .st-grid { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); }
  .st-quote { grid-column: 1 / -1; position: static; }
  .st-grid.foamMode .st-view { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .st-grid { grid-template-columns: minmax(0, 1fr); }
  .st-view { order: -1; position: static; }
  .st-stage { height: 52vh; min-height: 300px; }
  .st-bar { position: sticky; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gut); margin-top: 16px; background: var(--ink); color: #fff; }
  .st-bar strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
  .st-bar span { color: #b8c0c8; font-size: .86rem; }
}
/* phones: the view buttons sit under the picture, not over it */
@media (max-width: 620px) {
  .st-stage { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .st-stage canvas { height: 46vh; min-height: 280px; flex: none; }
  .st-tools { position: static; padding: 10px; background: var(--sheet); border-top: 1px solid var(--line); }
  .st-lid { flex: 1 1 auto; } .st-lid input { width: auto; flex: 1 1 60px; min-width: 60px; }
}
