/* quote page: a work surface, not a landing page */
.container.wide { width: min(1500px, 100% - 2rem); }
.quote { display: grid; grid-template-columns: minmax(0, 1fr) 400px; min-height: calc(100dvh - 61px); }
.quote .stage { display: grid; grid-template-rows: auto 1fr auto; border-right: 1px solid var(--line); min-width: 0; }
.stage-bar { display: flex; align-items: center; gap: var(--s4); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 2px; overflow: hidden; }
.seg button { font: 500 var(--t-xs) var(--mono); padding: .45rem .6rem; border: 0; border-right: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button .best { color: var(--laser-ink); margin-left: 3px; }
.seg button[aria-pressed="true"] .best { color: var(--laser); }
.legend { margin-left: auto; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.sw.steel { background: #b9bdc2; } .sw.sup { background: #e2733a; margin-left: 8px; }
.view-wrap { position: relative; min-height: 420px; background: radial-gradient(120% 90% at 50% 20%, var(--surface) 0%, var(--surface-2) 100%); }
.view { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: var(--s8); background: var(--bg); }
.empty h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 18ch; margin-inline: auto; }
.empty p { margin-inline: auto; }
.pick { margin: var(--s4) auto var(--s3); }
.dropping { position: absolute; inset: 12px; border: 2px dashed var(--laser); border-radius: 2px; display: grid; place-content: center; background: color-mix(in oklch, var(--bg) 70%, transparent); font: 600 var(--t-xl) var(--font); pointer-events: none; }
.layer-bar { display: grid; grid-template-columns: 1fr 180px; gap: var(--s4); padding: var(--s3) var(--s4); border-top: 1px solid var(--line); align-items: center; }
.layer-ctl { display: grid; gap: var(--s1); color: var(--muted); font-size: var(--t-sm); }
.layer-ctl input { width: 100%; accent-color: var(--laser-ink); }
.slice { width: 180px; height: 120px; border-radius: 2px; border: 1px solid var(--line); }

.panel { padding: var(--s4); display: grid; gap: var(--s4); align-content: start; background: var(--surface); overflow-y: auto; max-height: calc(100dvh - 61px); position: sticky; top: 61px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; }
.h3 { font-size: var(--t-lg); margin: 0; }
.parts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.parts li.part { display: grid; grid-template-columns: 1fr auto auto; gap: var(--s2); align-items: center; padding: var(--s3); border: 1px solid var(--line); border-radius: 2px; cursor: pointer; background: var(--bg); }
.parts li.part[aria-current="true"] { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--laser); }
.parts .pname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parts .pmeta { grid-column: 1 / -1; font: 400 var(--t-xs) var(--mono); color: var(--muted); }
.parts .pprice { font-family: var(--mono); }
.parts .x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 6px; }
.detail { display: grid; gap: var(--s3); }
.breakdown, .summary { box-shadow: none; padding: var(--s4); }
.breakdown .formula { font: 400 var(--t-xs) var(--mono); color: var(--muted); margin: var(--s2) 0 0; }
.full { width: 100%; margin-top: var(--s3); }
.stack { display: grid; gap: var(--s3); }
.checkout { display: grid; gap: var(--s4); }
.checkout h3 { margin: 0; }
.servercheck { font-size: var(--t-sm); }
@media (max-width: 980px) {
  .quote { grid-template-columns: 1fr; }
  .quote .stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .view-wrap { min-height: 340px; }
  .panel { max-height: none; position: static; }
  .layer-bar { grid-template-columns: 1fr; } .slice { width: 100%; }
}
