/* Cutout designer (/configure/) + shared RFQ widgets (drop zone, file list, confirmation). Brand tokens from site.css. */
.dzpage { background: var(--s50); }
.dzhead { padding: clamp(22px, 3.4vw, 36px) 0 clamp(20px, 3vw, 30px); }
.dzhead h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 8px; }
.dzhead .lead { color: var(--on-dark-2); max-width: 54em; margin: 0; }
.dzwrap { padding-top: 18px; padding-bottom: 40px; }
.dz { position: relative; background: #fff; border: 1px solid var(--s200); border-radius: var(--r-lg); box-shadow: var(--shadow); scroll-margin-top: calc(var(--hdr) + 8px); }
.dz__loading { padding: 80px 20px; text-align: center; color: var(--muted); }
.dz__fail, .dzp { padding: clamp(20px, 3vw, 32px); }
.dz__warn { background: #fff4e5; border: 1px solid #f5c48a; padding: 10px 14px; border-radius: 10px; }

/* ---- top bar */
.dz__bar { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) auto; gap: 14px 22px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--s200); }
.dz__prod { display: flex; gap: 12px; align-items: center; min-width: 0; }
.dz__prod img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--s100); flex: none; }
.dz__kick { margin: 0; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); font-weight: 650; }
.dz__t { font-size: 1.3rem; margin: 2px 0 2px; }
.dz__chg { font-size: .82rem; color: var(--muted); }
.dz__opts { display: flex; gap: 10px; flex-wrap: wrap; }
.dz__opt { display: grid; gap: 4px; flex: 1 1 200px; min-width: 0; }
.dz__opt span, .dz__sel span, .dz__fld span { font-size: .7rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dz select, .dz__fld input, .dz__fld textarea { min-height: 40px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--s300); background: var(--s50); font: inherit; color: inherit; width: 100%; min-width: 0; }
.dz select:focus, .dz__fld input:focus, .dz__fld textarea:focus { border-color: var(--ink-2); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(255,91,20,.22); }
.dz__steps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.dz__steps button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--s300); background: #fff; font-weight: 650; cursor: pointer; white-space: nowrap; }
.dz__steps button span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--s100); font-size: .8rem; }
.dz__steps button[aria-current="step"] { background: var(--ink-2); color: #fff; border-color: var(--ink-2); }
.dz__steps button[aria-current="step"] span { background: var(--accent); color: var(--accent-ink); }
.dz__steps button.is-done span { background: var(--accent); color: var(--accent-ink); }
.dz__steps button:disabled { opacity: .5; cursor: default; }

/* ---- step 1: three columns */
.dz__s1 { display: grid; grid-template-columns: 290px minmax(0, 1fr) 330px; min-height: 620px; }
.dz__left { border-right: 1px solid var(--s200); padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dz__3d { position: relative; aspect-ratio: 1 / .92; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #e8ecef 60%, #d9dee2 100%); border: 1px solid var(--s200); }
.dz__3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.dz__3dl { position: absolute; inset: auto 0 44%; text-align: center; color: var(--muted); font-size: .9rem; margin: 0; padding: 0 12px; }
.dz__3dctl { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none; }
.dz__3dctl > * { pointer-events: auto; }
.dz__3dh { font-size: .74rem; color: var(--s700); background: rgba(255,255,255,.8); padding: 3px 8px; border-radius: 999px; }
.chip--sm { min-height: 32px; padding: 0 11px; font-size: .8rem; }
.chip--danger { color: #b91c1c; border-color: #f1b4b4; }
.chip--danger:hover { background: #fdeaea; }
.dz__faces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.dz__face { position: relative; display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--s300); background: #fff; font-weight: 650; cursor: pointer; text-align: left; font-size: .9rem; }
.dz__face:hover { border-color: var(--s400); }
.dz__face.is-on { border-color: var(--ink-2); background: var(--ink-2); color: #fff; }
.dz__fic { width: 18px; height: 18px; border: 2px solid var(--s400); border-radius: 3px; flex: none; background: #fff; }
.dz__face.is-on .dz__fic { border-color: #8a949e; background: transparent; }
.dz__fic--door, .dz__fic--front { background: var(--accent) !important; border-color: var(--accent) !important; }
.dz__fic--top { border-top: 5px solid var(--accent) !important; }
.dz__fic--bottom { border-bottom: 5px solid var(--accent) !important; }
.dz__fic--left { border-left: 5px solid var(--accent) !important; }
.dz__fic--right { border-right: 5px solid var(--accent) !important; }
.dz__fic--back, .dz__fic--rear { border-style: dashed !important; border-color: var(--accent) !important; }
.dz__fic--panel { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 9px var(--accent); }
.dz__fn { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--s100); color: var(--ink); font-size: .74rem; display: grid; place-items: center; }
.dz__fn.is-bad { background: #dc2626; color: #fff; }
.dz__face.is-on .dz__fn:not(.is-bad) { background: var(--accent); color: var(--accent-ink); }

.dz__ed { display: flex; flex-direction: column; min-width: 0; background: var(--s50); }
.dz__edbar { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--s200); background: #fff; }
.dz__fname { display: grid; line-height: 1.2; }
.dz__fname strong { font-family: var(--font-display); font-size: 1.12rem; }
.dz__fname span { font-size: .8rem; color: var(--muted); }
.dz__ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dz__sel { display: inline-flex; align-items: center; gap: 6px; }
.dz__sel select { min-height: 34px; width: auto; padding: 2px 8px; }
.dz__sel--full { display: grid; gap: 4px; margin-top: 10px; }
.dz__sel--full select { width: 100%; }
.seg--sm { display: inline-flex; border: 1px solid var(--s300); border-radius: 9px; overflow: hidden; }
.seg--sm button { min-height: 32px; padding: 0 10px; border: 0; background: #fff; font-weight: 650; cursor: pointer; }
.seg--sm button[aria-pressed="true"] { background: var(--ink-2); color: #fff; }
.iconbtn--sm { width: 34px; height: 34px; font-size: 1.1rem; display: inline-grid; place-items: center; }
.iconbtn:disabled { opacity: .4; cursor: default; }
.dz__hist { display: inline-flex; gap: 4px; }
/* zoom in / fit / out float over the editor's top-right corner (every width, so phones keep all three) */
.dz__zoom { position: absolute; top: 10px; right: 10px; z-index: 6; display: flex; flex-direction: column; gap: 5px; padding: 5px; border-radius: 12px;
  background: rgba(255,255,255,.94); border: 1px solid var(--s200); box-shadow: 0 4px 14px rgba(16,20,24,.12); }
@media (max-width: 900px) { .dz__zoom .iconbtn--sm { width: 38px; height: 38px; } }
.dz__dxf { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 14px; background: #eef4ff; border-bottom: 1px solid #c9dafb; font-size: .86rem; }
.dz__dxfn { margin-right: auto; }
.dz__svgwrap { position: relative; flex: 1; min-height: 480px; }
.dz__svgwrap svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.dz__svgwrap svg:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 0; }
.dz__hud { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font: 600 .78rem/1 var(--font-display); padding: 7px 10px; border-radius: 8px; white-space: nowrap; box-shadow: var(--shadow); }
.dz__hint { margin: 0; padding: 8px 14px; font-size: .76rem; color: var(--muted); border-top: 1px solid var(--s200); background: #fff; }

/* svg drawing */
.dz svg .face { fill: #e6eaed; }
.dz svg .face__edge { fill: none; stroke: var(--ink); stroke-width: 1.6px; vector-effect: non-scaling-stroke; }
.dz svg .g1 { fill: none; stroke: rgba(16,20,24,.07); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.dz svg .g2 { fill: none; stroke: rgba(16,20,24,.14); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.dz svg .cl { stroke: rgba(16,20,24,.25); stroke-width: 1px; stroke-dasharray: 8 4 2 4; vector-effect: non-scaling-stroke; }
.dz svg .zone { fill: url(#hatch); stroke: rgba(220,38,38,.35); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.dz svg .zone--w { fill: url(#hatchw); stroke: rgba(217,119,6,.35); }
.dz svg .hz { stroke: rgba(220,38,38,.32); stroke-width: 1.2px; vector-effect: non-scaling-stroke; }
.dz svg .hzw { stroke: rgba(217,119,6,.28); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.dz svg .fx__s { fill: rgba(91,101,111,.28); stroke: #5b656f; stroke-width: 1.2px; stroke-dasharray: 5 3; vector-effect: non-scaling-stroke; }
.dz svg .fx__plate { fill: rgba(138,148,158,.22); stroke: #8a949e; stroke-width: 1px; stroke-dasharray: 5 3; vector-effect: non-scaling-stroke; }
.dz svg .body { fill: rgba(70,98,140,.07); stroke: #4f6d96; stroke-width: 1.2px; stroke-dasharray: 7 4; vector-effect: non-scaling-stroke; }
.dz svg .body__t { fill: #3d5a82; font-family: var(--font-display); font-weight: 650; pointer-events: none; }
.dz svg .env { fill: none; stroke: #8a949e; stroke-width: 1px; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.dz svg .ct { cursor: grab; outline: none; }
.dz svg .ct:active { cursor: grabbing; }
.dz svg .ct__s { fill: #1d2329; stroke: #0b0d0f; stroke-width: 1.3px; vector-effect: non-scaling-stroke; transition: fill .12s; }
.dz svg .ct__din { fill: #b9c0c6; stroke: #5b656f; stroke-width: 1.2px; vector-effect: non-scaling-stroke; }
.dz svg .ct:hover .ct__s { fill: #2f3841; }
.dz svg .ct.is-warn .ct__s { stroke: #d97706; stroke-width: 2.4px; }
.dz svg .ct.is-err .ct__s { stroke: #dc2626; stroke-width: 2.6px; }
.dz svg .ct.is-err .env { stroke: #dc2626; }
.dz svg .ct.is-sel .ct__s { stroke: var(--accent); stroke-width: 3px; filter: drop-shadow(0 0 4px rgba(255,91,20,.55)); }
.dz svg .ct:focus-visible .ct__s { stroke: var(--accent); stroke-width: 3px; }
.dz svg .lbl { fill: var(--ink); font-family: var(--font-display); font-weight: 750; paint-order: stroke; stroke: #fff; stroke-width: calc(var(--px) * 3.5); pointer-events: none; }
.dz svg .lbl--on { fill: var(--accent-text); }
.dz svg .note { fill: var(--s700); font-family: var(--font); font-weight: 600; font-style: italic; paint-order: stroke; stroke: #fff; stroke-width: calc(var(--px) * 3); pointer-events: none; }
.dz svg .edge text { fill: var(--s600); font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; pointer-events: none; }
.dz svg .datum circle, .dz svg .datum line { fill: none; stroke: var(--accent); stroke-width: 1.6px; vector-effect: non-scaling-stroke; }
.dz svg .dim line { stroke: var(--accent); stroke-width: 1.2px; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.dz svg .pill rect { fill: var(--ink); }
.dz svg .pill text { fill: #fff; font-family: var(--font-display); font-weight: 650; pointer-events: none; }
.dz svg .pill { pointer-events: none; }
.dz svg .guide { stroke: #0ea5e9; stroke-width: 1.2px; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.dz svg .dxf { fill: none; stroke: #2563eb; stroke-width: 1.3px; vector-effect: non-scaling-stroke; opacity: .85; pointer-events: none; }

/* ---- right column / bottom sheet */
.dz__right { border-left: 1px solid var(--s200); min-width: 0; display: flex; flex-direction: column; background: #fff; }
.dz__sheethead { display: flex; align-items: center; gap: 8px; padding: 10px 12px 0; }
.dz__grab, .dz__mnext { display: none; }
.dz__tabs { display: flex; gap: 4px; background: var(--s100); padding: 4px; border-radius: 11px; flex: 1; }
.dz__tabs button { flex: 1; min-height: 36px; border: 0; border-radius: 8px; background: transparent; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.dz__tabs button.is-on { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.dz__tabs b { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; font-size: .72rem; display: inline-grid; place-items: center; }
.dz__tabs b:empty { display: none; }
.dz__tabs b.is-bad { background: #dc2626; color: #fff; }
.dz__tabs b.is-warn { background: #f59e0b; color: #1d1105; }
.dz__panel { padding: 12px 14px 18px; overflow: auto; max-height: 720px; }
.dz__h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 16px 0 8px; font-family: var(--font); font-weight: 700; }
.dz__tpl h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 2px 0 8px; font-family: var(--font); font-weight: 700; }
.dz__tpls { display: grid; gap: 6px; }
.dz__tplb { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; align-items: center; text-align: left; padding: 9px 10px; border-radius: 11px; border: 1px solid var(--s200);
  background: linear-gradient(180deg, #fff, #f7f8f9); cursor: pointer; }
.dz__tplb:hover { border-color: var(--accent); }
.dz__tplb strong { font-size: .88rem; line-height: 1.25; }
.dz__tplb small { grid-column: 2; color: var(--muted); font-size: .76rem; }
.dz__tpli { grid-row: span 2; width: 30px; height: 30px; border-radius: 8px; background: var(--ink-2); display: grid; place-items: center; }
.dz__tpli svg { display: block; }
.dz__tpli .o { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.dz__tpli .a { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dz__lib { border-top: 1px solid var(--s200); }
.dz__lib summary { cursor: pointer; padding: 11px 2px; font-weight: 700; font-size: .92rem; list-style: none; display: flex; justify-content: space-between; }
.dz__lib summary::after { content: "+"; color: var(--muted); font-weight: 600; }
.dz__lib[open] summary::after { content: "−"; }
.dz__lib summary::-webkit-details-marker { display: none; }
.dz__items { display: grid; gap: 4px; padding-bottom: 10px; }
.dz__item { display: flex; gap: 10px; align-items: center; text-align: left; padding: 7px 8px; border-radius: 10px; border: 1px solid transparent; background: none; cursor: pointer; width: 100%; }
.dz__item:hover, .dz__item:focus-visible { background: var(--s50); border-color: var(--s200); }
.dz__item strong { display: block; font-size: .87rem; line-height: 1.25; }
.dz__item small { display: block; font-size: .75rem; color: var(--muted); }
.dz__ico { width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--s100); position: relative; }
.dz__ico::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--ink-2); }
.dz__ico--pb::after { box-shadow: 0 0 0 3px var(--s100), 0 0 0 5px var(--s400); inset: 10px; }
.dz__ico--estop::after { background: #dc2626; box-shadow: 0 0 0 3px #f5d000; inset: 9px; }
.dz__ico--m::after { inset: 10px; box-shadow: 0 0 0 4px var(--s400); }
.dz__ico--npt::after { inset: 9px; box-shadow: 0 0 0 5px #6b7480; }
.dz__ico--rect::after { border-radius: 0; inset: 10px 6px; }
.dz__ico--rrect::after { border-radius: 4px; inset: 10px 6px; }
.dz__ico--window::after { border-radius: 4px; inset: 8px 6px; background: #8fb4d6; box-shadow: 0 0 0 2px var(--ink-2); }
.dz__ico--fan::after { border-radius: 2px; inset: 6px; background: radial-gradient(circle, var(--s100) 0 5px, var(--ink-2) 5.5px); }
.dz__ico--poly::after { border-radius: 0; inset: 7px; clip-path: polygon(0 100%, 100% 100%, 100% 40%, 50% 0, 0 40%); }
.dz__ico--din::after { border-radius: 0; inset: 12px 4px; background: repeating-linear-gradient(90deg, var(--s400) 0 4px, var(--s600) 4px 6px); }
.dz__disp { padding-bottom: 10px; }
.dz__gens { display: grid; gap: 6px; margin: 10px 0; }
.dz__gen { position: relative; display: block; cursor: pointer; }
.dz__gen input { position: absolute; opacity: 0; }
.dz__gen span { display: grid; padding: 8px 10px; border: 1px solid var(--s300); border-radius: 10px; }
.dz__gen strong { font-size: .86rem; } .dz__gen small { font-size: .76rem; color: var(--muted); }
.dz__gen input:checked + span { border-color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--ink-2); background: var(--s50); }
.dz__gen input:focus-visible + span { outline: 3px solid var(--accent); }
.dz__small { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }

/* inspector */
.dz__empty { color: var(--muted); font-size: .92rem; }
.dz__clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dz__clist button { width: 100%; text-align: left; padding: 8px 10px; border: 1px solid var(--s200); border-radius: 9px; background: #fff; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.dz__sev { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; }
.dz__sev--err { background: #dc2626; } .dz__sev--warn { background: #f59e0b; }
.dz__ihead { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.dz__ihead strong { display: block; line-height: 1.2; } .dz__ihead small { color: var(--muted); font-size: .8rem; }
.dz__inum { min-width: 36px; height: 36px; border-radius: 10px; background: var(--ink-2); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.05rem; }
.dz__iss { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.dz__iss li { font-size: .84rem; padding: 8px 10px 8px 12px; border-radius: 9px; border-left: 4px solid; line-height: 1.35; }
.dz__iss li.is-err { background: #fdecec; border-color: #dc2626; color: #7f1d1d; }
.dz__iss li.is-warn { background: #fff5e0; border-color: #f59e0b; color: #78350f; }
.dz__iss--all button { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.dz__ok, .dz__allok { font-size: .86rem; background: #ecf8ef; color: #14532d; border-radius: 9px; padding: 8px 10px; margin: 0 0 10px; border-left: 4px solid #16a34a; }
.dz__allok p { margin: 4px 0 0; }
.dz__h4 { font-size: .86rem; margin: 12px 0 6px; font-family: var(--font); }
.dz__lg { font-weight: 700; } .dz__lg--err { color: #b91c1c; } .dz__lg--warn { color: #b45309; }
.dz__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.dz__sub { grid-column: 1 / -1; margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.dz__sub select { width: auto; min-height: 30px; padding: 0 6px; font-size: .82rem; }
.dz__fld { display: grid; gap: 3px; position: relative; }
.dz__fld em { position: absolute; right: 9px; bottom: 11px; font-style: normal; font-size: .74rem; color: var(--muted); pointer-events: none; }
.dz__fld input { padding-right: 34px; }
.dz__fld--wide { grid-column: 1 / -1; margin-top: 4px; }
.dz__fld--wide input { padding-right: 10px; }
.dz__fld textarea { font-family: var(--mono); font-size: .85rem; }
.dz__clear { font-size: .78rem; color: var(--muted); margin: 0 0 6px; }
.dz__acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dz__array { margin-top: 10px; padding: 10px; background: var(--s50); border-radius: 10px; border: 1px solid var(--s200); }

/* ---- steps 2, 3 */
.dz__pane { padding: clamp(18px, 3vw, 34px); }
.dz__card { max-width: 760px; margin: 0 auto; }
.dz__card--rfq { max-width: 1100px; }
.dz__card h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.dz__rfq { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: clamp(20px, 4vw, 44px); align-items: start; }
.dz__sumcard { border: 1px solid var(--s200); border-radius: 14px; padding: 14px 16px; background: var(--s50); }
.dz__sumcard dl { margin: 0; display: grid; gap: 10px; }
.dz__sumcard dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.dz__sumcard dd { margin: 2px 0 0; font-weight: 600; }
.dz__sumcard small { display: block; color: var(--muted); font-weight: 500; }
.dz__sumcard small.is-warn { color: #b45309; }
.dz__sumb { margin-top: 12px; font-size: .88rem; }
.rfq__f select { width: 100%; min-height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--s300); background: var(--s50); font: inherit; color: inherit; }
.dz__send .btn { width: 100%; }
.dz__msg { margin: 10px 0 0; font-weight: 600; }
.dz__msg.is-err, .rfqmsg.is-err { color: #b91c1c; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dz__okbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ---- footer + toast + menu */
.dz__foot { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--s200); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.dz__sum { margin: 0; font-size: .92rem; }
.dz__sum .is-bad { color: #b91c1c; font-weight: 700; } .dz__sum .is-warn { color: #b45309; font-weight: 700; }
.dz__fbtn { display: flex; gap: 8px; align-items: center; }
.dz__more { position: relative; }
.dz__menu { position: absolute; bottom: calc(100% + 6px); right: 0; z-index: 20; background: #fff; border: 1px solid var(--s200); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: grid; min-width: 220px; }
.dz__menu button, .dz__open { text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.dz__menu button:hover, .dz__open:hover { background: var(--s50); }
.dz__toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: .9rem; max-width: min(560px, calc(100vw - 32px)); }
.dz__toast .linkbtn { color: var(--accent-hi); font-size: inherit; padding: 0; }

/* ---- picker (no handle) */
.dzp__head { margin-bottom: 18px; } .dzp__head p { color: var(--muted); max-width: 60em; }
.dzp__f input { width: min(100%, 420px); min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--s300); background: var(--s50); font: inherit; }
.dzp__g h2 { font-size: 1.2rem; margin: 22px 0 10px; }
.dzp__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.dzp__i { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--s200); border-radius: 12px; text-decoration: none; background: #fff; }
.dzp__i:hover { border-color: var(--accent); }
.dzp__i img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--s100); }
.dzp__i strong { display: block; } .dzp__i small { color: var(--muted); }

/* ---- shared RFQ widgets (product pages, /custom/, designer step 2) */
.drop { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 26px 16px; border: 2px dashed var(--s300); border-radius: 14px; background: var(--s50); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: #fff6f1; }
.drop:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.drop__ic svg { width: 34px; height: 34px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop__t u { color: var(--accent-text); text-underline-offset: 3px; }
.drop__s { font-size: .8rem; color: var(--muted); }
.files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.files li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--s200); border-radius: 10px; background: #fff; }
.files__ext { font: 700 .68rem/1 var(--font-display); letter-spacing: .05em; background: var(--ink-2); color: #fff; padding: 6px 6px; border-radius: 6px; min-width: 40px; text-align: center; }
.files__n { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; font-size: .9rem; }
.files__n small { display: block; color: var(--muted); font-weight: 500; }
.iconbtn--sm.iconbtn { width: 32px; height: 32px; }
.files__err { color: #b91c1c; font-size: .86rem; margin: 8px 0 0; }
.rfqok { text-align: left; padding: 6px 0; outline: none; }
.rfqok__ic { width: 48px; height: 48px; border-radius: 50%; background: #16a34a; display: grid; place-items: center; margin-bottom: 12px; }
.rfqok__ic svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rfqok h3 { font-size: 1.4rem; }
.rfqok__id { font-family: var(--font-display); background: var(--ink-2); color: #fff; padding: 2px 10px; border-radius: 8px; white-space: nowrap; }
.rfqok p { color: var(--muted); }
.rfqmsg { margin: 8px 0 0; font-weight: 600; }

/* ---- product page: designer CTA */
.dzcta { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, var(--ink-2), #232b33); color: #fff; text-decoration: none; border: 1px solid #2a323a; transition: transform .15s, box-shadow .15s; }
.dzcta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(16,20,24,.25); }
.dzcta__ic { width: 44px; height: 44px; border-radius: 11px; background: var(--accent); display: grid; place-items: center; }
.dzcta__ic svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dzcta strong { display: block; font-family: var(--font-display); font-size: 1.08rem; letter-spacing: .01em; color: #fff; }
.dzcta small { color: var(--on-dark-2); font-size: .82rem; }
.rfq__intro a.dzcta { color: #fff; font-weight: inherit; text-decoration: none; }
.dzcta__go { font-weight: 700; color: var(--accent-hi); white-space: nowrap; }
.buy__quote { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.buy__quote a { color: var(--accent-text); font-weight: 650; }
.pdprfq { scroll-margin-top: calc(var(--hdr) + 12px); }

/* ---- tablet */
@media (max-width: 1180px) {
  .dz__s1 { grid-template-columns: 250px minmax(0, 1fr) 300px; }
  .dz__bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dz__steps { grid-column: 1 / -1; }
}
/* ---- phone: 2D editor first, tools in a bottom sheet */
@media (max-width: 900px) {
  .dzwrap { padding-left: 0; padding-right: 0; padding-top: 0; }
  .dz { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .dz__bar { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 14px; }
  .dz__prod img { width: 44px; height: 44px; }
  .dz__t { font-size: 1.12rem; }
  .dz__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dz__steps button { width: 100%; justify-content: center; padding: 0 8px 0 4px; font-size: .84rem; gap: 5px; }
  .dz__s1 { display: flex; flex-direction: column; min-height: 0; }
  .dz__left { border-right: 0; padding: 10px 14px 6px; gap: 8px; }
  .dz__3d { aspect-ratio: auto; height: 190px; }
  .dz__faces { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; }
  .dz__faces::-webkit-scrollbar { display: none; }
  .dz__face { flex: none; min-height: 40px; }
  .dz__edbar { padding: 8px 14px; }
  .dz__ctl { width: 100%; justify-content: space-between; }
  .dz__sel span { display: none; }
  .dz__svgwrap { min-height: 0; flex: none; height: 54svh; max-height: 560px; }
  .dz__hint { display: none; }
  .dz[data-step="1"] { padding-bottom: 62px; }
  .dz[data-step="1"] .dz__foot { display: none; }
  .dz__right { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; border: 0; border-top: 1px solid var(--s200); border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 30px rgba(16,20,24,.16); max-height: 62svh; transform: translateY(calc(100% - 60px)); transition: transform .25s ease; }
  .dz[data-step="2"] .dz__right, .dz[data-step="3"] .dz__right { display: none; }
  .dz__right.is-open { transform: none; }
  .dz__sheethead { padding: 14px 12px 8px; position: relative; }
  .dz__grab { display: block; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 64px; height: 16px; border: 0; background: none; cursor: pointer; }
  .dz__grab::before { content: ""; position: absolute; left: 16px; right: 16px; top: 5px; height: 4px; border-radius: 2px; background: var(--s300); }
  .dz__mnext { display: inline-flex; min-height: 36px; padding: 0 12px; }
  .dz__panel { max-height: calc(62svh - 64px); padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .dz__rfq { grid-template-columns: minmax(0, 1fr); }
  .dz__foot { border-radius: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .dz__sum { flex: 1 1 100%; font-size: .85rem; }
  .dz__fbtn { flex: 1; justify-content: flex-end; }
  .dz__toast { bottom: 76px; }
  .dzcta { grid-template-columns: 40px minmax(0, 1fr); }
  .dzcta__go { display: none; }
}
@media (max-width: 420px) { .seg--sm button { padding: 0 8px; } }
