/* =====================================================================================
   QUOTE STUDIO — parts · 3D · configure (priced options) · order
   ===================================================================================== */
.st { --bar: 62px; position: fixed; inset: 0; z-index: 120; display: grid; grid-template-rows: var(--bar) minmax(0, 1fr); background: var(--paper); color: var(--ink); opacity: 0; transform: scale(.985); transition: opacity .35s var(--ease), transform .5s var(--ease); font-size: 15px; }
.st.is-in, .st--inline { opacity: 1; transform: none; }
.st--inline { position: absolute; inset: 0; z-index: 1; border-radius: inherit; overflow: hidden; }
.st.is-drag::after { content: ""; position: absolute; inset: 10px; border: 2px dashed var(--acc); border-radius: 22px; background: rgba(19, 56, 190, .05); pointer-events: none; z-index: 50; }

/* Bar */
.st__bar { display: flex; align-items: center; gap: 16px; padding: 0 14px 0 18px; background: var(--ink); color: #fff; min-width: 0; }
.st__logo img { height: 26px; width: auto; }
.st__tabs { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.st__tabs > * { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .6); text-decoration: none; white-space: nowrap; }
.st__tabs [aria-current] { background: #fff; color: var(--ink); }
.st__tabs a:hover { color: #fff; }
.st__proj { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.st__proj input { min-width: 0; width: 100%; max-width: 280px; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 7px 10px; color: #fff; font-weight: 600; }
.st__proj input::placeholder { color: rgba(255, 255, 255, .45); }
.st__proj input:hover { border-color: rgba(255, 255, 255, .15); }
.st__proj input:focus { outline: 0; border-color: var(--acc); background: rgba(255, 255, 255, .05); }
.st__proj .mono { color: rgba(255, 255, 255, .45); font-size: 12px; white-space: nowrap; }
.st__save { font-size: 12px; color: rgba(255, 255, 255, .45); white-space: nowrap; }
.st__save.is-on { color: #9DB4FF; }
.st__tools { display: flex; align-items: center; gap: 6px; }
.st__basket { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; font-size: 13.5px; white-space: nowrap; }
.st__basket svg { width: 18px; height: 18px; }
.st__basket:hover { border-color: #fff; }
.st__btotal { background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st__basket i { font-style: normal; font-size: 11.5px; color: #9DB4FF; }
.st__ib { color: #fff; }
.st__ib:hover { background: rgba(255, 255, 255, .1); }

/* Body grid */
.st__body { display: grid; grid-template-columns: 252px minmax(0, 1fr) 420px; min-height: 0; }
.st__parts { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--paper); }
.st__ph { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 10px; }
.st__ph b { font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.st__add { display: inline-flex; align-items: center; gap: 4px; border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 12px 6px 8px; font-size: 12.5px; font-weight: 600; }
.st__add svg { width: 15px; height: 15px; }
.st__list { flex: 1; overflow-y: auto; padding: 4px 10px; display: grid; gap: 6px; align-content: start; }
.st__part { display: grid; grid-template-columns: 52px minmax(0, 1fr) 10px; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; border: 1.5px solid transparent; background: transparent; text-align: left; transition: background .2s, border-color .2s; }
.st__part:hover { background: var(--white); }
.st__part[aria-current="true"] { background: var(--white); border-color: var(--ink); }
.st__thumb { width: 52px; height: 52px; border-radius: 11px; background: var(--white); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line-2); flex: none; }
.st__thumb img { width: 100%; height: 100%; object-fit: contain; }
.st__thumb svg { width: 22px; height: 22px; color: var(--faint); }
.st__pmeta { display: grid; gap: 1px; min-width: 0; }
.st__pmeta b { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st__pmeta small { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st__pmeta small b { color: var(--ink); font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: block; }
.dot--ok { background: var(--ok); } .dot--warn { background: #E39B1B; } .dot--bad { background: var(--acc); }
.st__none { padding: 10px 6px; color: var(--mute); font-size: 13px; }
.st__more { margin: 10px; display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 14px; border: 1.5px dashed var(--line); background: transparent; text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.st__more:hover { border-color: var(--acc); color: var(--acc); }
.st__more svg { width: 20px; height: 20px; flex: none; }
.st__more small { display: block; font-weight: 400; color: var(--mute); font-size: 11.5px; }

/* Viewer */
.st__view { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: radial-gradient(90% 80% at 50% 40%, #FFFFFF 0%, #F1EEE7 60%, #E6E2DA 100%); }
.st__view::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(13, 13, 15, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 13, 15, .045) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 85%); pointer-events: none; }
.st__view canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; outline: none; }
.st__tb { position: absolute; z-index: 4; top: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; pointer-events: none; }
.st__seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(13, 13, 15, .08); box-shadow: 0 10px 24px -14px rgba(13, 13, 15, .35); pointer-events: auto; }
.st__seg button { display: inline-flex; align-items: center; gap: 6px; height: 34px; min-width: 34px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; font: 600 12.5px/1 var(--sans); color: var(--ink-2); justify-content: center; transition: background .2s, color .2s; }
.st__seg button svg { width: 17px; height: 17px; }
.st__seg button:hover { background: var(--paper-2); }
.st__seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.st__hud { position: absolute; z-index: 3; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-between; align-items: end; gap: 10px; pointer-events: none; flex-wrap: wrap; }
.st__dims { display: flex; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 14px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); border: 1px solid rgba(13, 13, 15, .06); font: 600 12.5px/1 var(--mono); pointer-events: auto; }
.st__dims span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; background: var(--white); }
.st__dims i { font-style: normal; color: var(--acc); }
.st__dims em { font-style: normal; color: var(--mute); padding-right: 4px; }
.st__dims .st__vol { background: var(--ink); color: #fff; }
.st__status { display: inline-grid; grid-template-columns: 22px auto; column-gap: 8px; align-items: center; padding: 8px 14px 8px 10px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); text-align: left; pointer-events: auto; box-shadow: 0 10px 24px -16px rgba(13, 13, 15, .4); }
.st__status svg { grid-row: span 2; width: 22px; height: 22px; padding: 3px; border-radius: 50%; }
.st__status span { font-size: 13px; font-weight: 700; }
.st__status small { font-size: 11.5px; color: var(--mute); text-decoration: underline; text-underline-offset: 2px; }
.st__status--ready svg { background: var(--ok-soft); color: var(--ok); }
.st__status--warning svg, .st__status--proc svg { background: var(--warn-soft); color: var(--warn); }
.st__status--review svg, .st__status--bad svg { background: var(--acc-soft); color: var(--acc); }
.st__secbar { position: absolute; z-index: 4; right: 14px; top: 50%; transform: translateY(-50%); display: grid; justify-items: center; gap: 10px; padding: 14px 8px; border-radius: 999px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); }
.st__secbar input { writing-mode: vertical-lr; direction: rtl; height: 180px; accent-color: var(--acc); }
.st__secbar span { font-size: 11px; }
.st__mlabel { position: absolute; z-index: 5; left: 50%; top: 70px; transform: translate(-50%, -50%); padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 13px/1 var(--mono); pointer-events: none; white-space: nowrap; }
.st__mlabel.is-val { background: var(--acc); }
.st__legend { position: absolute; z-index: 4; left: 50%; bottom: 70px; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 12px; white-space: nowrap; }
.st__legend span { display: inline-flex; align-items: center; gap: 6px; }
.st__legend i { width: 12px; height: 12px; border-radius: 3px; }
.st__hint { position: absolute; z-index: 2; left: 50%; bottom: 72px; transform: translateX(-50%); font: 500 11px/1 var(--mono); letter-spacing: .04em; color: var(--mute); transition: opacity .5s; pointer-events: none; white-space: nowrap; }
.st__load { position: absolute; z-index: 6; inset: 0; display: grid; place-items: center; background: rgba(244, 242, 237, .78); backdrop-filter: blur(4px); transition: opacity .35s, visibility .35s; }
.st__load.is-off { opacity: 0; visibility: hidden; pointer-events: none; }
.prog { width: min(420px, 88%); background: var(--white); border-radius: var(--r3); padding: 20px; box-shadow: var(--sh3); }
.prog__file { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.prog__file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog__file em { font: 500 13px/1.4 var(--mono); font-style: normal; color: var(--mute); flex: none; }
.prog__bar { height: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.prog__bar i { display: block; height: 100%; width: 0; background: var(--acc); border-radius: 3px; transition: width .2s; }
.prog__steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--faint); }
.prog__steps li { display: flex; align-items: center; gap: 10px; }
.prog__steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.prog__steps li.is-act { color: var(--ink); }
.prog__steps li.is-act::before { border-color: var(--acc); border-top-color: transparent; animation: spin .8s linear infinite; }
.prog__steps li.is-done { color: var(--ink-2); }
.prog__steps li.is-done::before { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5 7 11l5-6' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 10px no-repeat; border-color: var(--ok); }
.prog__steps li.is-err { color: var(--bad); }
.st__empty { display: grid; justify-items: center; text-align: center; gap: 10px; max-width: 420px; padding: 20px; }
.st__emptyic { width: 72px; height: 72px; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; margin-bottom: 6px; box-shadow: 0 20px 40px -18px rgba(19, 56, 190, .8); }
.st__emptyic svg { width: 30px; height: 30px; }
.st__empty h3 { font-size: 26px; }
.st__empty p { color: var(--mute); margin: 0; }
.st__emptyacts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 6px; }
.st__empty small { display: inline-flex; gap: 6px; align-items: center; color: var(--mute); font-size: 12.5px; }

/* Config panel */
.st__cfg { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; background: var(--white); border-left: 1px solid var(--line); }
.st__scroll { overflow-y: auto; overscroll-behavior: contain; }
.st__cfgempty { padding: 32px 24px; }
.st__cfgempty h3 { font-size: 24px; margin-bottom: 8px; }
.st__cfgempty p { color: var(--mute); }
.st__sec { padding: 20px 22px; border-bottom: 1px solid var(--line-2); }
.st__sec--part { padding-bottom: 16px; }
.st__pname { width: 100%; border: 1px solid transparent; border-radius: 10px; padding: 4px 8px; margin: 0 -8px; font: 700 21px/1.2 var(--display); letter-spacing: -.01em; background: transparent; }
.st__pname:hover { border-color: var(--line); }
.st__pname:focus { outline: 0; border-color: var(--ink); }
.st__pfile { font-size: 11.5px; color: var(--mute); margin: 4px 0 12px; }
.st__pacts { display: flex; gap: 6px; flex-wrap: wrap; }
.st__pacts button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 12.5px; font-weight: 600; }
.st__pacts button:hover { border-color: var(--ink); }
.st__pacts svg { width: 14px; height: 14px; }
.st__sh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.st__sh h3 { font: 700 16px/1.2 var(--display); letter-spacing: -.01em; display: flex; gap: 10px; align-items: baseline; }
.st__sh h3 i { font: 500 11px/1 var(--mono); font-style: normal; color: var(--acc); }
.st__sh-s { font-size: 12px; color: var(--mute); }
.st__help { border: 0; background: none; padding: 0; font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.st__note { font-size: 12.5px; color: var(--mute); margin: 10px 0 0; }
.st__techs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st__tech { display: grid; gap: 2px; text-align: left; padding: 12px 12px 10px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--white); transition: border-color .2s, background .2s, transform .3s var(--ease); }
.st__tech:hover { border-color: var(--ink); }
.st__tech[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.st__tech.is-off { opacity: .45; }
.st__tech-a { font: 800 22px/1 var(--display); letter-spacing: -.015em; }
.st__tech-n { font-size: 11.5px; color: var(--mute); line-height: 1.3; min-height: 2.6em; }
.st__tech[aria-checked="true"] .st__tech-n, .st__tech[aria-checked="true"] .st__tech-l { color: rgba(255, 255, 255, .6); }
.st__tech-p { font-size: 12.5px; margin-top: 4px; }
.st__tech-p b { font-size: 15px; font-variant-numeric: tabular-nums; }
.st__tech[aria-checked="true"] .st__tech-p b { color: #9DB4FF; }
.st__tech-l { font-size: 11px; color: var(--mute); }
.st__mats { display: grid; gap: 4px; }
.st__mat { display: grid; grid-template-columns: minmax(0, 1fr) 54px auto 28px; gap: 10px; align-items: center; padding: 10px 10px 10px 12px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, border-color .2s; }
.st__mat:hover { background: var(--paper); }
.st__mat[aria-checked="true"] { border-color: var(--ink); background: var(--paper); }
.st__mat.is-off { opacity: .45; }
.st__mat-n b { display: block; font-size: 14px; }
.st__mat-n small { display: block; font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st__mat-s { display: grid; gap: 3px; }
.st__mat-s i { display: block; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--v), var(--line-2) var(--v)); }
.st__mat-p { text-align: right; display: grid; }
.st__mat-p b { font-size: 14px; font-variant-numeric: tabular-nums; }
.st__mat-p small { font-size: 11px; color: var(--mute); }
.st__mat-i { width: 28px; height: 28px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--mute); }
.st__mat-i:hover { background: var(--white); color: var(--ink); }
.st__mat-i svg { width: 16px; height: 16px; }
.st__sw { display: flex; flex-wrap: wrap; gap: 6px; }
.st__sw button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--white); font-size: 13px; font-weight: 600; }
.st__sw button i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); }
.st__sw button[aria-checked="true"] { border-color: var(--ink); }
.st__field { margin-top: 12px; }
.st__pl { display: grid; gap: 8px; margin-top: 12px; }
.st__pl > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.st__seg2 { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--paper-2); }
.st__seg2 button { display: grid; gap: 1px; min-height: 44px; place-content: center; border: 0; border-radius: 10px; background: transparent; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.st__seg2 button small { font-size: 10.5px; font-weight: 500; color: var(--mute); }
.st__seg2 button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(13, 13, 15, .1); }
.st__fins { display: grid; gap: 6px; }
.st__fin { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line-2); cursor: pointer; }
.st__fin:hover { border-color: var(--ink); }
.st__fin.is-on { border-color: var(--ink); background: var(--paper); }
.st__fin[role="note"] { cursor: default; }
.st__chk { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center; margin-top: 1px; }
.st__fin.is-on .st__chk { background: var(--ink); border-color: var(--ink); color: #fff; }
.st__chk svg { width: 14px; height: 14px; }
.st__fin b { font-size: 14px; }
.st__fin em { font-style: normal; font-size: 11px; color: var(--ok); font-weight: 600; }
.st__fin small { display: block; font-size: 12px; color: var(--mute); }
.st__finq { grid-column: 2; display: flex; gap: 8px; align-items: center; font-size: 12px; }
.st__finq input { width: 70px; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; }
.st__qty { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-2); margin-bottom: 12px; }
.st__qty button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--white); font-size: 18px; font-weight: 600; }
.st__qty input { width: 76px; height: 38px; border: 0; background: transparent; text-align: center; font: 700 18px/1 var(--display); }
.st__qty span { font-size: 12.5px; color: var(--mute); padding-right: 10px; }
.st__ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.st__ladder button { display: grid; gap: 1px; padding: 9px 10px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--white); text-align: left; }
.st__ladder button span { font-size: 11.5px; color: var(--mute); }
.st__ladder button b { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.st__ladder button small { font-size: 11px; color: var(--ok); font-weight: 700; }
.st__ladder button:hover { border-color: var(--ink); }
.st__ladder button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.st__ladder button[aria-pressed="true"] span { color: rgba(255, 255, 255, .6); }
.st__ladder button[aria-pressed="true"] small { color: #7BE3A2; }
.st__speeds { display: grid; gap: 6px; }
.st__opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--white); text-align: left; }
.st__opt:hover { border-color: var(--ink); }
.st__opt[aria-checked="true"] { border-color: var(--ink); background: var(--paper); }
.st__opt-t { font-weight: 700; font-size: 14.5px; }
.st__opt-d { grid-column: 1; font-size: 12.5px; color: var(--mute); }
.st__opt-p { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 700 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.st__req summary { list-style: none; cursor: pointer; }
.st__req summary::-webkit-details-marker { display: none; }
.st__req summary .st__sh { margin: 0; }
.st__req[open] summary .st__sh { margin-bottom: 4px; }
.st__draw { display: flex; flex-wrap: wrap; gap: 6px; }
.st__draw span { padding: 4px 8px; border-radius: 8px; background: var(--paper); font: 500 12px/1.4 var(--mono); }
.st__draw button { border: 0; background: none; padding: 0 0 0 4px; }
.st__help2 { display: grid; gap: 8px; }
.st__help2 button { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--white); text-align: left; }
.st__help2 button:hover { border-color: var(--ink); }
.st__help2 svg { width: 22px; height: 22px; color: var(--acc); flex: none; }
.st__help2 b { display: block; font-size: 14px; }
.st__help2 small { font-size: 12px; color: var(--mute); }

/* Buy bar */
.st__buy { padding: 14px 22px 18px; border-top: 1px solid var(--line); background: var(--white); display: grid; gap: 10px; box-shadow: 0 -18px 30px -24px rgba(13, 13, 15, .35); }
.st__buy .alert { font-size: 13px; padding: 10px 12px; }
.st__price { display: flex; justify-content: space-between; align-items: end; gap: 12px; transition: opacity .2s; }
.st__price.is-calc, .st__buy.is-calc .st__price { opacity: .5; }
.st__price small { display: block; font-size: 11.5px; color: var(--mute); }
.st__unit { font: 700 20px/1.1 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.st__price em { display: block; font-style: normal; font-size: 11.5px; color: var(--ok); font-weight: 700; }
.st__tot { text-align: right; }
.st__tot b { display: block; font: 800 34px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.st__ship { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 0; }
.st__ship svg { width: 18px; height: 18px; color: var(--acc); }
.st__ship .muted { margin-left: auto; font-size: 12px; }
.st__cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.st__cta .btn--ghost { padding: 0 18px; }

/* Order sheet */
.st__sheet { position: absolute; inset: var(--bar) 0 0; z-index: 60; background: rgba(13, 13, 15, .4); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; overflow-y: auto; }
.st__sheet.is-open { opacity: 1; visibility: visible; }
.st__sheetbox { max-width: 1100px; margin: 24px auto; background: var(--paper); border-radius: 26px; padding: clamp(18px, 3vw, 36px); transform: translateY(20px); transition: transform .5s var(--ease); }
.st__sheet.is-open .st__sheetbox { transform: none; }
.ord__head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; }
.ord__head h2 { font-size: clamp(28px, 3.44vw, 45px); }
.ord__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.ord__rows { display: grid; gap: 8px; }
.ord__row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: var(--white); }
.ord__n b { display: block; font-size: 15px; }
.ord__n small { font-size: 12.5px; color: var(--mute); }
.ord__q { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ord__t { font: 700 17px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ord__a { display: flex; gap: 4px; }
.ord__a button { border: 1px solid var(--line); background: transparent; border-radius: 999px; height: 32px; padding: 0 12px; font-size: 12.5px; font-weight: 600; display: inline-grid; place-items: center; }
.ord__a button svg { width: 14px; height: 14px; }
.ord__a button:hover { border-color: var(--ink); }
.ord__add { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 16px; border-radius: 16px; border: 1.5px dashed var(--line); background: transparent; font-weight: 600; font-size: 14px; }
.ord__add:hover { border-color: var(--acc); color: var(--acc); }
.ord__add svg { width: 18px; height: 18px; }
.ord__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.ord__sum { position: sticky; top: 0; display: grid; gap: 8px; padding: 22px; border-radius: 20px; background: var(--white); font-size: 14px; }
.ord__sum > div { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.ord__sum > div span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ord__line { border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: 4px; font-weight: 600; color: var(--ink) !important; }
.ord__grand { font: 800 26px/1 var(--display); letter-spacing: -.015em; color: var(--ink) !important; padding: 8px 0 6px; }
.ord__links { display: flex; flex-wrap: wrap; gap: 6px; }
.ord__links button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; }
.ord__links svg { width: 14px; height: 14px; }
.ordpage { padding: clamp(21px, 3.44vw, 48px) 0 80px; }
.ordpage .ord { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }

/* Modals */
.modal { position: fixed; z-index: 130; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(13, 13, 15, .45); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box { width: min(580px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--white); border-radius: var(--r4); box-shadow: var(--sh3); transform: translateY(14px) scale(.98); transition: transform .45s var(--ease); }
.modal.is-open .modal__box { transform: none; }
.modal__box--wide { width: min(940px, 100%); }
.modal__head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 22px 24px 0; }
.modal__head h3 { font-size: 24px; }
.modal__head p { margin: 6px 0 0; color: var(--mute); font-size: 14.5px; }
.modal__body { padding: 18px 24px 24px; display: grid; gap: 12px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 24px 24px; flex-wrap: wrap; }
.attached { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-radius: 12px; background: var(--paper); font-size: 13px; }
.attached b { width: 100%; font-size: 12px; color: var(--mute); font-weight: 600; }
.attached span { padding: 4px 8px; border-radius: 6px; background: var(--white); font: 500 12px/1.4 var(--mono); }
.cmpopts { display: grid; gap: 6px; }
.cmpopt { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 12px 16px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--white); text-align: left; }
.cmpopt:hover { border-color: var(--ink); }
.cmpopt.is-cur { border-color: var(--acc); }
.cmpopt b { font-size: 15px; font-variant-numeric: tabular-nums; }
.cmpopt small { display: block; color: var(--mute); font-size: 12.5px; }
.ptable { border-collapse: collapse; font-size: 13.5px; width: 100%; }
.ptable td { padding: 10px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.ptable td:first-child { width: 22px; text-align: center; font-weight: 700; }
.ptable td:last-child { text-align: right; }

/* Responsive */
@media (max-width: 1240px) { .st__body { grid-template-columns: 220px minmax(0, 1fr) 380px; } .st__tabs { display: none; } }
@media (max-width: 980px) {
	.st { --bar: 56px; }
	.st__bar { gap: 8px; padding: 0 8px 0 12px; }
	.st__proj .mono, .st__save, .st__ib[data-a="share"], .st__ib[data-a="pdf"] { display: none; }
	.st__basket > span:not(.st__btotal) { display: none; }
	.st__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: 44svh auto minmax(0, 1fr); overflow: hidden; }
	.st__view { grid-row: 1; }
	.st__parts { grid-row: 2; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; align-items: center; }
	.st__ph, .st__more { display: none; }
	.st__list { display: flex; overflow-x: auto; padding: 8px; gap: 6px; }
	.st__part { grid-template-columns: 40px auto; padding: 5px 10px 5px 5px; flex: none; max-width: 220px; }
	.st__part .dot { display: none; }
	.st__thumb { width: 40px; height: 40px; }
	.st__cfg { grid-row: 3; border-left: 0; min-height: 0; }
	.st__tb { top: 8px; left: 8px; right: 8px; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.st__seg button span { display: none; }
	.st__hud { left: 8px; right: 8px; bottom: 8px; }
	.st__status small { display: none; }
	.st__hint { display: none; }
	.st__sec { padding: 16px; }
	.st__buy { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
	.st__tot b { font-size: 28px; }
	.ord__grid { grid-template-columns: minmax(0, 1fr); }
	.ord__row { grid-template-columns: 48px minmax(0, 1fr) auto; }
	.ord__q, .ord__a { grid-column: 2 / -1; }
	.ord__meta { grid-template-columns: 1fr; }
	.st__sheetbox { margin: 0; border-radius: 0; min-height: 100%; }
}

/* Instant quote page: the studio embedded as the page hero */
.phead--calc { padding-bottom: 24px; }
.calc__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 24px 56px; align-items: end; }
.calc__head h1 { margin: 0; font-size: clamp(34px, 4.3vw, 65px); }
.calc__head .answer { margin: 0; font-size: 16px; }
.calc__frame { position: relative; height: min(84vh, 860px); min-height: 600px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh3); background: var(--white); }
.calc__frame .st { border-radius: 28px; }
@media (max-width: 900px) { .calc__head { grid-template-columns: minmax(0, 1fr); } .calc__frame { height: 88svh; min-height: 560px; border-radius: 20px; } }

/* Compactness */
.st [hidden] { display: none !important; }
.st__hint { bottom: auto; top: 64px; }
.st__view:has(.st__hud:not(:empty)) .st__hint { top: 64px; }
.st__buy .alert { padding: 8px 12px; align-items: center; }
.st__buy .alert > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.st__buy .alert b { margin: 0; }
.st__buy .alert > div > :not(b):not(.acts) { display: none; }
.st__buy .alert .acts { margin: 0; }
@media (max-width: 1400px) { .st__seg button span { display: none; } .st__seg button { padding: 0 9px; } }
.st--inline .st__body { grid-template-columns: 200px minmax(0, 1fr) 380px; }
@media (min-width: 981px) and (max-width: 1100px) { .st--inline .st__body { grid-template-columns: 76px minmax(0, 1fr) 360px; } .st--inline .st__ph b, .st--inline .st__pmeta, .st--inline .st__part .dot, .st--inline .st__more span { display: none; } .st--inline .st__part { grid-template-columns: 52px; justify-content: center; } .st--inline .st__ph { justify-content: center; padding: 12px 6px; } .st--inline .st__add { padding: 8px; } .st--inline .st__add { font-size: 0; } .st--inline .st__more { justify-content: center; padding: 12px; margin: 8px; } }
.st__flag { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--paper-2); font-size: 12.5px; font-weight: 600; }
.st__flag svg { width: 16px; height: 16px; flex: none; color: var(--ink-2); }
.st__flag span { flex: 1; min-width: 0; }
.st__flag button { flex: none; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 12px; }
.st__flag--bad { background: var(--acc-soft); }
.st__flag--bad svg { color: var(--acc); }
body.tpl-calculator .aifab { display: none; }

@media (max-width: 980px) {
	.st--inline .st__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: 42% auto minmax(0, 1fr); }
	.st__empty h3 { font-size: 21px; }
	.st__empty { padding: 12px; gap: 6px; }
	.st__emptyic { width: 52px; height: 52px; }
}
.calc__frame--launch { height: auto; min-height: 0; background: var(--ink); color: #fff; }
.st__launch { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 36px 20px 24px; }
.st__launch h3 { font-size: 26px; color: #fff; }
.st__launch p { color: #A3A3AA; margin: 0 0 8px; }
.st__launch .btn--ghost { --c: #fff; border-color: rgba(255, 255, 255, .25); }
.st__dest { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center; font-size: 12.5px; padding: 8px 10px; border-radius: 12px; background: var(--paper); }
.st__dest:empty { display: none; }
.st__cc { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 6px 2px 8px; background: var(--white); }
.st__cc span { font-size: 15px; line-height: 1; }
.st__cc select { border: 0; background: transparent; font: 600 12.5px/1 var(--sans); max-width: 120px; padding: 4px 0; }
.st__eta b { font-variant-numeric: tabular-nums; }
.st__vat { grid-column: 1 / -1; color: var(--ok); font-weight: 600; font-size: 11.5px; }

/* Compact buy bar (leaves room for configuration) */
.st__buy { gap: 8px; padding: 12px 18px 14px; }
.st__unit { font-size: 16px; }
.st__tot b { font-size: 30px; }
.st__dest { grid-template-columns: auto minmax(0, 1fr); }
.st__vat { font-weight: 500; }
.st__buy .prelim { font-size: 11.5px; }
.st__cta .btn--lg { min-height: 54px; }
@media (max-height: 820px) and (min-width: 981px) { .st__price small:first-child, .st__ship .muted, .st__buy .prelim { display: none; } .st__vat { display: none; } }

/* Sample library */
.smp { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.smp__c { display: grid; gap: 4px; text-align: left; padding: 10px 10px 14px; border-radius: 18px; border: 1.5px solid var(--line-2); background: var(--white); transition: border-color .2s, transform .35s var(--ease); }
.smp__c:hover { border-color: var(--acc); transform: translateY(-3px); }
.smp__img { aspect-ratio: 1; border-radius: 12px; background: radial-gradient(80% 80% at 50% 40%, #fff, var(--paper)); display: grid; place-items: center; overflow: hidden; margin-bottom: 6px; }
.smp__img img { width: 100%; height: 100%; object-fit: contain; animation: rise .5s var(--ease); }
.smp__tt { --f: 24; width: 100%; height: 100%; background-repeat: no-repeat; background-size: calc(var(--f) * 100%) 100%; animation: smptt 3.6s steps(24) infinite paused; }
.smp__c:hover .smp__tt, .smp__c:focus-visible .smp__tt { animation-play-state: running; }
@keyframes smptt { to { background-position: calc(100% * 24 / 23) 0; } }
.smp__spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--acc); animation: spin .8s linear infinite; }
.smp__c b { font-size: 14.5px; }
.smp__c small { font-size: 12px; color: var(--mute); line-height: 1.35; }
.smp__c em { font-style: normal; font: 600 10.5px/1 var(--mono); color: var(--acc); margin-top: 4px; }
@media (max-width: 640px) { .smp { grid-template-columns: 1fr 1fr; } }

/* ---------- v2.4: everything that sets the price is above the fold ---------- */
.st__techs--row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.st__techs--row .st__tech { padding: 9px 8px 8px; border-radius: 12px; gap: 3px; justify-items: center; text-align: center; }
.st__techs--row .st__tech-a { font-size: 16px; }
.st__techs--row .st__tech-p { margin: 0; font-size: 11px; line-height: 1.2; }
.st__techs--row .st__tech-p b { font-size: 12.5px; display: block; }
.st__note--tech { margin: 10px 0 10px; font-size: 12.5px; }
.st__note--tech .st__help { margin-left: 4px; }
.st__fold > summary { list-style: none; cursor: pointer; }
.st__fold > summary::-webkit-details-marker { display: none; }
.st__fold > summary .st__sh { margin: 0; }
.st__fold[open] > summary .st__sh { margin-bottom: 12px; }
.st__fold > summary h3::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease); opacity: .55; align-self: center; }
.st__fold[open] > summary h3::after { transform: translateY(1px) rotate(-135deg); }
.st__sum { display: inline-flex; align-items: center; gap: 6px; max-width: 58%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.st__sumdot { flex: none; width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(13, 13, 15, .15); }
.st__fold:not([open]):hover .st__sum { color: var(--acc); }
.st__quick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.st__quick > label, .st__qq { display: grid; gap: 4px; min-width: 0; }
.st__quick span { font-size: 11px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.st__quick select { width: 100%; height: 40px; padding: 0 34px 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230D0D0F' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; -webkit-appearance: none; font: 600 14px/1 var(--sans); color: var(--ink); text-overflow: ellipsis; }
.st__quick select:hover, .st__quick select:focus { border-color: var(--acc); outline: none; }
.st__qty--sm { margin: 0; padding: 3px; }
.st__qty--sm button { width: 34px; height: 34px; font-size: 16px; }
.st__qty--sm input { width: 52px; height: 34px; font-size: 16px; }
.st__flag button[data-qty] { white-space: nowrap; }
