/* The design studio, 2026-10-14. Same language as the home page (home.css loads first: Archivo,
   paper, ink, measuring tape yellow). Desktop: steps, panel, stage. Phone: stage on top, steps as
   tabs, the panel below, Next always at hand. No italics. */

.st-page main { padding: 0; }
.st-page .crumbs, .st-page .bc { display: none; }
.st { --st-panel: clamp(380px, 31vw, 470px); display: grid; grid-template-columns: var(--st-panel) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 100vh; height: 100svh; padding-top: var(--hx-head); position: relative; }
.st [hidden] { display: none !important; }
.st .ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- steps ---------- */
.st-steps { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 10px 12px; border-right: 1px solid var(--hx-line); border-bottom: 1px solid var(--hx-line); background: var(--hx-paper); }
.st-steps button { display: flex; align-items: center; gap: 9px; padding: 8px 8px; min-width: 0; border: 0; border-radius: 14px; background: transparent; color: var(--hx-ink); font: inherit; text-align: left; cursor: pointer; transition: background .2s; }
.st-steps button > span { min-width: 0; }
.st-steps button:hover { background: rgba(20, 20, 20, .05); }
.st-steps i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--hx-line-2); font: 750 .85rem/1 var(--hx-font); font-style: normal; flex: none; transition: .25s; }
.st-steps b { display: block; font-weight: 750; font-size: .98rem; }
.st-steps em { display: block; font-style: normal; font-size: .72rem; line-height: 1.2; color: var(--hx-mute); margin-top: 2px; }
.st-steps [aria-current="true"] { background: var(--hx-card); box-shadow: 0 1px 0 var(--hx-line), 0 8px 22px -14px rgba(0, 0, 0, .35); }
.st-steps [aria-current="true"] i { background: var(--hx-tape); border-color: var(--hx-ink); }

/* ---------- panel ---------- */
.st-panel { grid-column: 1; grid-row: 2; overflow-x: hidden; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--hx-line); background: var(--hx-card); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.st-head { padding: 26px 26px 6px; }
.st-head .hx-kicker { margin-bottom: .8rem; }
.st-h1 { font-size: clamp(2.2rem, 3.2vw, 3.3rem); font-weight: 850; font-stretch: 110%; letter-spacing: -.04em; line-height: .9; margin: 0 0 .9rem; }
.st-h1 span { display: block; }
.st-h1 span + span { position: relative; width: fit-content; }
.st-h1 span + span::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.1em; height: .2em; z-index: -1; background: var(--hx-tape) repeating-linear-gradient(90deg, var(--hx-ink) 0 2px, transparent 2px 12px) bottom / 100% 40% no-repeat; }
.st-lede { font-size: .98rem; line-height: 1.5; color: #2b2925; margin: 0 0 1rem; }
.st-head-act { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.st:not([data-step="pets"]) .st-h1, .st:not([data-step="pets"]) .st-lede { display: none; }
.st:not([data-step="pets"]) .st-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding-bottom: 0; }
.st:not([data-step="pets"]) .st-head .hx-kicker { margin: 0; }
.st-body { padding: 8px 26px 30px; flex: 1; }
.st-foot { position: sticky; bottom: 0; display: flex; align-items: center; gap: .8rem; padding: 12px 18px; background: rgba(251, 250, 247, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--hx-line); z-index: 3; }
.st-foot [data-next] { margin-left: auto; }
.st-foot-price { white-space: nowrap; font-weight: 750; font-variant-numeric: tabular-nums; font-size: .95rem; }

.st-h3 { font-size: .74rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--hx-mute); margin: 1.6rem 0 .65rem; }
.st-body > .st-h3:first-child { font-size: 1.55rem; letter-spacing: -.025em; text-transform: none; color: var(--hx-ink); font-weight: 820; font-stretch: 106%; margin: 1rem 0 .4rem; }
.st-sub { margin: 0 0 1rem; font-size: .92rem; line-height: 1.5; color: var(--hx-mute); }
.st-note { font-size: .84rem; line-height: 1.5; color: var(--hx-mute); margin: .7rem 0 0; }
.st-warn { margin: .6rem 0 0; padding: .6rem .8rem; border-radius: 10px; background: #fff1c9; font-size: .86rem; line-height: 1.4; }
.st-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; align-items: center; }
.st-row-sm { gap: 1.2rem; }
.st-two { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }

/* controls */
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.15rem; border-radius: 999px; border: 0; font: 680 .95rem/1 var(--hx-font); cursor: pointer; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s; color: var(--hx-ink); }
.st-btn:hover { transform: translateY(-1px); }
.st-btn:disabled { opacity: .45; transform: none; cursor: default; }
.st-btn-tape { background: var(--hx-tape); box-shadow: inset 0 0 0 2px var(--hx-ink); }
.st-btn-ink { background: var(--hx-ink); color: var(--hx-paper); min-height: 40px; padding: .55rem 1rem; }
.st-btn-line { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hx-line-2); }
.st-btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--hx-ink); }
.st-link { border: 0; background: none; padding: 0; font: 650 .9rem var(--hx-font); color: var(--hx-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .28em; text-decoration-color: var(--hx-tape-2); cursor: pointer; }
.st-x { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(20, 20, 20, .06); color: var(--hx-ink); cursor: pointer; flex: none; }
.st-x:hover { background: rgba(20, 20, 20, .12); }
.st-x .ico { width: 16px; height: 16px; }
.st-seg { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 16px; background: rgba(20, 20, 20, .06); gap: 2px; max-width: 100%; }
.st-seg button { border: 0; background: transparent; padding: .55rem .85rem; border-radius: 12px; font: 640 .88rem/1.1 var(--hx-font); color: var(--hx-ink); cursor: pointer; }
.st-seg button:hover { background: rgba(255, 255, 255, .7); }
.st-seg button[aria-pressed="true"] { background: var(--hx-ink); color: var(--hx-paper); }
.st-seg-sm button { padding: .45rem .7rem; font-size: .82rem; }
.st-seg-wrap { display: flex; }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.st-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 14px; border: 1.5px solid var(--hx-line); background: #fff; font: 640 .8rem/1.15 var(--hx-font); color: var(--hx-ink); cursor: pointer; text-align: center; }
.st-tile .ico { width: 30px; height: 30px; stroke-width: 1.3; }
.st-tile:hover { border-color: var(--hx-line-2); }
.st-tile[aria-pressed="true"] { border-color: var(--hx-ink); background: #fff8e0; box-shadow: inset 0 -4px 0 var(--hx-tape); }
.st-tgl { display: flex; align-items: center; gap: .75rem; margin: .55rem 0; font-size: .92rem; line-height: 1.3; cursor: pointer; }
.st-tgl input { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; border-radius: 99px; background: rgba(20, 20, 20, .16); position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 0; }
.st-tgl input::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.st-tgl input:checked { background: var(--hx-ink); }
.st-tgl input:checked::after { transform: translateX(16px); background: var(--hx-tape); }
.st-tgl input:focus-visible { outline: 2px solid var(--hx-ink); outline-offset: 2px; }
.st-range { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .1rem .8rem; margin: .7rem 0 .2rem; font-size: .9rem; }
.st-range output { font-weight: 780; font-variant-numeric: tabular-nums; }
.st-range input { grid-column: 1 / -1; width: 100%; margin: .35rem 0 0; appearance: none; -webkit-appearance: none; height: 26px; background: transparent; cursor: pointer; }
.st-range input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--hx-ink), var(--hx-ink)) 0 0 / var(--p, 50%) 100% no-repeat, rgba(20, 20, 20, .15); }
.st-range input::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(20, 20, 20, .15); }
.st-range input::-moz-range-progress { height: 4px; background: var(--hx-ink); }
.st-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--hx-tape); border: 2px solid var(--hx-ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.st-range input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--hx-tape); border: 2px solid var(--hx-ink); }
.st-fld { display: grid; gap: .35rem; font-size: .84rem; font-weight: 650; margin: .7rem 0; }
.st-fld input, .st-fld select, .st-fld textarea, .st-search { width: 100%; min-height: 44px; padding: .6rem .8rem; border-radius: 12px; border: 1.5px solid var(--hx-line-2); background: #fff; font: 450 .95rem var(--hx-font); color: var(--hx-ink); }
.st-fld textarea { min-height: 70px; resize: vertical; }
.st-fld input:focus, .st-fld select:focus, .st-fld textarea:focus, .st-search:focus { outline: none; border-color: var(--hx-ink); box-shadow: 0 0 0 3px rgba(255, 199, 44, .55); }
.st-file { position: relative; overflow: hidden; }
.st-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.st-group { margin: 1.4rem 0 0; border-top: 1px solid var(--hx-line); padding-top: .4rem; }
.st-group > summary { cursor: pointer; font-weight: 760; font-size: 1rem; padding: .7rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.st-group > summary::-webkit-details-marker { display: none; }
.st-group > summary::after { content: '+'; font-weight: 500; font-size: 1.3rem; line-height: 1; }
.st-group[open] > summary::after { content: '\2212'; }
.st-how { margin-top: 1.2rem; font-size: .88rem; color: var(--hx-mute); }
.st-how summary { cursor: pointer; font-weight: 650; color: var(--hx-ink); }
.st-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .7rem; border-radius: 99px; border: 1.5px solid var(--hx-line-2); background: #fff; font: 640 .8rem var(--hx-font); cursor: pointer; color: var(--hx-ink); }
.st-chip:hover { border-color: var(--hx-ink); }
.st-chip .ico { width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; }

/* pets */
.st-pets { display: grid; gap: 12px; }
.st-pet { border: 1.5px solid var(--hx-line); border-radius: 18px; padding: 14px 16px 6px; background: #fff; }
.st-pet-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-pet-img { width: 52px; height: 52px; border-radius: 14px; background: var(--hx-paper); display: grid; place-items: center; overflow: hidden; flex: none; }
.st-pet-img img { width: 100%; height: 100%; object-fit: contain; }
.st-pet-img .ico { width: 26px; height: 26px; }
.st-pet-name { flex: 1; min-width: 100px; }
.st-pet-name b { display: block; font-size: 1.05rem; font-weight: 780; }
.st-pet-name span { font-size: .8rem; color: var(--hx-mute); }
.st-fitlist { display: grid; gap: 8px; margin-top: 1rem; }
.st-fitrow { border-radius: 14px; padding: 10px 14px; background: #f1f6ec; font-size: .86rem; }
.st-fitrow.warn { background: #fff1c9; }
.st-fitrow b { margin-right: .5rem; }
.st-fitrow span { color: var(--hx-mute); }
.st-fitrow ul { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: 2px; }
.st-fitrow li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .5rem; background: #3b8a4c; }
.st-fitrow li.warn::before { background: #d24b2e; }

/* brief */
.st-needs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-need { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; border-radius: 16px; border: 1.5px solid var(--hx-line); background: #fff; text-align: left; cursor: pointer; font-family: var(--hx-font); color: var(--hx-ink); transition: border-color .2s, background .2s; }
.st-need .ico { grid-row: 1 / 3; width: 30px; height: 30px; stroke-width: 1.3; }
.st-need b { font-size: .92rem; font-weight: 760; }
.st-need span { font-size: .76rem; color: var(--hx-mute); line-height: 1.25; }
.st-need[aria-pressed="true"] { border-color: var(--hx-ink); background: #fff8e0; box-shadow: inset 4px 0 0 var(--hx-tape); }
.st-opts { display: grid; gap: 8px; margin-top: 1rem; }
.st-opt { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--hx-line); background: #fff; cursor: pointer; font-family: var(--hx-font); color: var(--hx-ink); text-align: left; transition: transform .15s, border-color .2s; }
.st-opt:hover { transform: translateY(-2px); border-color: var(--hx-ink); }
.st-opt .elev { width: 100%; height: 92px; }
.st-opt-t { display: flex; flex-direction: column; gap: 3px; }
.st-opt b { font-size: .78rem; font-variant-numeric: tabular-nums; }
.st-opt span { font-size: .76rem; color: var(--hx-mute); }
.st-opt-k { font-size: .7rem !important; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--hx-ink) !important; }
.st-forms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-form { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 10px; border-radius: 14px; border: 1.5px solid var(--hx-line); background: #fff; cursor: pointer; font: 650 .76rem/1.2 var(--hx-font); color: var(--hx-ink); text-align: center; }
.st-form img, .st-form-ico { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: contain; border-radius: 9px; background: var(--hx-paper); display: grid; place-items: center; }
.st-form-ico .ico { width: 34px; height: 34px; stroke-width: 1.2; }
.st-form[aria-pressed="true"] { border-color: var(--hx-ink); box-shadow: inset 0 -4px 0 var(--hx-tape); }

/* the drawing */
.elev { display: block; overflow: visible; }
.elev path, .elev rect, .elev circle { vector-effect: non-scaling-stroke; }
.elev .e-floor { stroke: var(--hx-line-2); stroke-width: 1; }
.elev .e-body { fill: #fff; stroke: var(--hx-ink); stroke-width: 1.4; }
.elev .e-top, .elev .e-base { fill: #e9e3d8; stroke: var(--hx-ink); stroke-width: 1; }
.elev .e-shadow { fill: #3a3a3a; }
.elev .e-seat { fill: #cfc3ad; stroke: var(--hx-ink); stroke-width: 1; }
.elev .e-leg { stroke: var(--hx-ink); stroke-width: 1.6; fill: none; }
.elev .e-cell { fill: transparent; }
.elev .e-front { fill: #fbfaf7; stroke: var(--hx-ink); stroke-width: 1; }
.elev .e-feed { fill: #fff3cf; }
.elev .e-glass { fill: rgba(20, 20, 20, .06); }
.elev .e-hole { fill: #2a2825; stroke: var(--hx-ink); stroke-width: 1; }
.elev .e-accent { fill: #d98b4a; }
.elev .e-cut { fill: rgba(20, 20, 20, .14); stroke: var(--hx-ink); stroke-width: .8; }
.elev .e-line { stroke: var(--hx-ink); stroke-width: 1; }
.elev .e-thin { stroke: var(--hx-ink); stroke-width: .8; }
.elev .e-light { stroke: #ffb866; stroke-width: 3; }
.elev .e-bowl { fill: #c9ccce; stroke: var(--hx-ink); stroke-width: .6; }
.elev .e-w, .elev .e-dimt { font: 700 7px var(--hx-font); text-anchor: middle; fill: var(--hx-mute); }
.elev .e-who { font: 800 6px var(--hx-font); text-anchor: middle; fill: var(--hx-tape); }
.elev .e-dim { stroke: var(--hx-mute); stroke-width: .8; fill: none; }
.elev-i { width: 100%; height: auto; max-height: 230px; touch-action: none; user-select: none; }
.elev-i .e-mod { cursor: pointer; }
.elev-i .e-mod:hover .e-cell { fill: rgba(255, 199, 44, .18); }
.elev-i .e-mod.on .e-cell { fill: rgba(255, 199, 44, .32); stroke: var(--hx-ink); stroke-width: 2.2; stroke-dasharray: 5 3; }
.elev-i .e-mod.on .e-w { fill: var(--hx-ink); }
.elev-i .e-div { cursor: ew-resize; }
.elev-i .e-div rect { fill: transparent; }
.elev-i .e-div path { stroke: var(--hx-ink); stroke-width: 4; stroke-linecap: round; }
.elev-i .e-div:hover path, .st-dragging .e-div path { stroke: var(--hx-tape-2); }
.elev-i .e-add { cursor: pointer; }
.elev-i .e-add circle { fill: var(--hx-tape); stroke: var(--hx-ink); stroke-width: 1.2; transition: r .15s; }
.elev-i .e-add path { stroke: var(--hx-ink); stroke-width: 1.4; }
.elev-i .e-add:hover circle { fill: var(--hx-ink); }
.elev-i .e-add:hover path { stroke: var(--hx-tape); }
.st-strip { margin: .8rem -10px 0; padding: 14px 10px 6px; border-radius: 18px; background: var(--hx-paper); background-image: linear-gradient(rgba(20, 20, 20, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 20, 20, .05) 1px, transparent 1px); background-size: 16px 16px; }
.st-insert { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: .6rem; padding: 10px; border-radius: 14px; background: var(--hx-ink); color: var(--hx-paper); }
.st-insert > span { font-size: .8rem; font-weight: 700; margin-right: .3rem; }
.st-insert .st-chip { border-color: transparent; }
.st-insert .st-x { margin-left: auto; background: rgba(255, 255, 255, .12); color: var(--hx-paper); }
.st-mod { margin-top: 1rem; padding: 14px 16px 10px; border-radius: 18px; border: 2px solid var(--hx-ink); background: #fff; box-shadow: 6px 6px 0 var(--hx-tape); }
.st-mod-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.st-mod-head b { font-size: .95rem; }
.st-mod-act { display: flex; gap: 4px; }
.st-mod-act button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--hx-line); background: #fff; cursor: pointer; color: var(--hx-ink); }
.st-mod-act button:hover:not(:disabled) { border-color: var(--hx-ink); }
.st-mod-act button:disabled { opacity: .35; cursor: default; }
.st-mod-act .ico { width: 17px; height: 17px; }
.st-kinds, .st-shapes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: .8rem; }
.st-shapes { grid-template-columns: repeat(6, 1fr); margin-top: 0; }
.st-kinds button, .st-shapes button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px 7px; border-radius: 12px; border: 1.5px solid var(--hx-line); background: #fff; cursor: pointer; font: 640 .7rem/1.1 var(--hx-font); color: var(--hx-ink); }
.st-kinds .ico, .st-shapes .ico { width: 26px; height: 26px; stroke-width: 1.3; }
.st-kinds [aria-pressed="true"], .st-shapes [aria-pressed="true"] { border-color: var(--hx-ink); background: var(--hx-tape); }

/* finishes */
.st-moods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.st-moodb { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; border: 1.5px solid var(--hx-line); background: #fff; cursor: pointer; font: 680 .84rem/1.15 var(--hx-font); color: var(--hx-ink); text-align: left; }
.st-moodb:hover { border-color: var(--hx-line-2); }
.st-moodb[aria-pressed="true"] { border-color: var(--hx-ink); box-shadow: inset 0 -4px 0 var(--hx-tape); }
.st-dots { display: flex; flex: none; }
.st-dots i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #fff; margin-left: -6px; box-shadow: 0 0 0 1px var(--hx-line); }
.st-dots i:first-child { margin-left: 0; }
.st-dots .ico { width: 22px; height: 22px; }
.st-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.st-slots button { display: flex; align-items: center; gap: 7px; padding: 6px 11px 6px 6px; border-radius: 99px; border: 1.5px solid var(--hx-line); background: #fff; cursor: pointer; font: 650 .82rem var(--hx-font); color: var(--hx-ink); }
.st-slots i { width: 24px; height: 24px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.st-slots [aria-selected="true"] { border-color: var(--hx-ink); background: var(--hx-tape); }
.st-cur { font-size: .9rem; margin: .8rem 0 .2rem; }
.st-cur span { color: var(--hx-mute); font-size: .8rem; }
.st-filters { display: grid; gap: 6px; margin: .8rem 0; }
.st-search { min-height: 40px; }
.st-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 360px; overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.st-sw { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: 600 .68rem/1.15 var(--hx-font); color: var(--hx-ink); }
.st-sw img { width: 100%; aspect-ratio: 1; height: auto; border-radius: 10px; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: transform .15s; }
.st-sw:hover img { transform: scale(1.04); }
.st-sw em { display: block; font-style: normal; color: var(--hx-mute); font-weight: 500; }
.st-sw[aria-pressed="true"] img { outline: 3px solid var(--hx-ink); outline-offset: 2px; }
.st-sw-sm { width: 62px; }
.st-palette { display: grid; gap: 8px; margin-top: .8rem; }
.st-pal { display: flex; gap: 10px; align-items: flex-start; }
.st-pal > i { width: 40px; height: 62px; border-radius: 10px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.st-pal > div { display: flex; gap: 6px; flex-wrap: wrap; }
.st-fabrics, .st-walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.st-fab, .st-walls button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 12px; border: 1.5px solid transparent; background: none; cursor: pointer; font: 600 .7rem/1.15 var(--hx-font); color: var(--hx-ink); text-align: center; }
.st-fab i, .st-walls i { width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.st-fab[aria-pressed="true"], .st-walls [aria-pressed="true"] { border-color: var(--hx-ink); background: #fff; }

/* send */
.st-price { margin: .8rem 0; font-size: .86rem; color: var(--hx-mute); line-height: 1.45; }
.st-price b { display: block; font-size: 1.7rem; font-weight: 850; letter-spacing: -.03em; color: var(--hx-ink); font-variant-numeric: tabular-nums; }
.st-spec { margin: 1rem 0 0; display: grid; gap: 0; font-size: .84rem; border-top: 1px solid var(--hx-line); }
.st-spec div { display: grid; grid-template-columns: 38% 1fr; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid var(--hx-line); }
.st-spec dt { color: var(--hx-mute); }
.st-spec dd { margin: 0; font-weight: 560; }
.st-cut { width: 100%; border-collapse: collapse; font-size: .78rem; font-variant-numeric: tabular-nums; }
.st-cut th { text-align: left; font-weight: 700; color: var(--hx-mute); padding: .3rem .4rem .3rem 0; border-bottom: 1px solid var(--hx-line-2); }
.st-cut td { padding: .35rem .4rem .35rem 0; border-bottom: 1px solid var(--hx-line); }
.st-cut em { font-style: normal; font-size: .66rem; font-weight: 750; padding: 1px 5px; border-radius: 4px; background: var(--hx-tape); }
.st-form-send { margin-top: 1.4rem; padding: 16px; border-radius: 18px; background: var(--hx-paper); }
.st-status { font-size: .88rem; margin: .6rem 0 0; min-height: 1.2em; }
.st-saved { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: .8rem; }
.st-savedc { position: relative; }
.st-savedc > button:first-child { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 6px 6px 10px; border-radius: 14px; border: 1.5px solid var(--hx-line); background: #fff; cursor: pointer; text-align: left; font-family: var(--hx-font); color: var(--hx-ink); }
.st-savedc img { width: 100%; height: auto; border-radius: 9px; background: var(--hx-paper); }
.st-savedc b { font-size: .82rem; padding: 0 4px; }
.st-savedc span { font-size: .72rem; color: var(--hx-mute); padding: 0 4px; }
.st-savedc .st-x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; background: rgba(255, 255, 255, .9); }

/* ---------- stage ---------- */
.st-stage { grid-column: 2; grid-row: 1 / 3; position: relative; overflow: hidden; background: radial-gradient(110% 80% at 50% 42%, #ffffff 0%, #f1ede6 55%, #e3ddd3 100%); transition: background .6s; }
.st-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; cursor: grab; touch-action: none; }
.st-stage canvas:active { cursor: grabbing; }
.st-stage.gl-on canvas { opacity: 1; }
.st-draw { position: absolute; inset: 18% 12% 24%; display: grid; place-items: center; transition: opacity .6s; }
.st-draw .elev { width: 100%; height: 100%; }
.st-stage.gl-on .st-draw { opacity: 0; pointer-events: none; }
.st-stage.st-photo { background: #222 var(--photo) center / cover no-repeat; }
.st-stage.st-eve:not(.st-photo) { background: radial-gradient(100% 80% at 50% 46%, #4a4038 0%, #2a2521 55%, #171412 100%); }
.st-stage.st-eve .st-hud, .st-stage.st-eve .st-read { color: #f4ede2; }
.st-stage.st-eve .hx-k { color: #b9ad9c; }
.st-stage.st-photo .st-read, .st-stage.st-photo .st-hud { background: rgba(251, 250, 247, .9); padding: 10px 14px; border-radius: 14px; }
.st-hud { position: absolute; left: clamp(14px, 2vw, 28px); top: clamp(14px, 2vw, 24px); max-width: calc(100% - 330px); pointer-events: none; }
.st-title { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.45rem); font-weight: 800; letter-spacing: -.02em; font-stretch: 106%; }
.st-fit { display: inline-flex; align-items: center; gap: .45rem; margin: .5rem 0 0; padding: .4rem .75rem .4rem .5rem; border-radius: 99px; font-size: .8rem; font-weight: 650; background: #e6f1df; color: #1f4d2a; }
.st-fit.warn { background: #ffe1d4; color: #7a2412; }
.st-fit .ico { width: 18px; height: 18px; }
.st-tools { position: absolute; inset: clamp(12px, 1.6vw, 20px) clamp(12px, 1.6vw, 22px) auto auto; z-index: 4; }
.st-icons { position: absolute; right: 0; top: calc(100% + 8px); }
.st-views { white-space: nowrap; flex-wrap: nowrap; }
.st-tools .st-seg { background: rgba(255, 255, 255, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1px var(--hx-line); }
.st-icons { display: flex; gap: 2px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1px var(--hx-line); }
.st-icons button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--hx-ink); cursor: pointer; }
.st-icons button:hover:not(:disabled) { background: rgba(20, 20, 20, .07); }
.st-icons button[aria-pressed="true"] { background: var(--hx-ink); color: var(--hx-tape); }
.st-icons button:disabled { opacity: .3; cursor: default; }
.st-sep { width: 1px; align-self: stretch; margin: 6px 3px; background: var(--hx-line-2); }
.st-read { position: absolute; left: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2.4vh, 26px); display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; pointer-events: none; max-width: calc(100% - 40px); }
.st-read .hx-k { width: 100%; }
.st-read b { font-size: clamp(1.9rem, 3.4vw, 3.6rem); font-weight: 860; font-stretch: 106%; letter-spacing: -.045em; line-height: .95; font-variant-numeric: tabular-nums; }
.st-pr { font-weight: 720; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.st-delta { font-weight: 800; font-size: .9rem; padding: .25rem .55rem; border-radius: 99px; opacity: 0; font-variant-numeric: tabular-nums; }
.st-delta.up { background: var(--hx-ink); color: var(--hx-tape); }
.st-delta.down { background: #e6f1df; color: #1f4d2a; }
.st-delta.go { animation: st-delta 2.2s ease both; }
@keyframes st-delta { 0% { opacity: 0; transform: translateY(8px); } 12%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
.st-dimlabels span { position: absolute; left: 0; top: 0; margin: -11px 0 0 -18px; min-width: 36px; padding: 3px 6px; border-radius: 6px; background: var(--hx-ink); color: var(--hx-tape); font: 800 .78rem/1 var(--hx-font); text-align: center; font-variant-numeric: tabular-nums; pointer-events: none; }
.st .callouts { position: absolute; inset: 0; pointer-events: none; }
.st .callouts .co { font-family: var(--hx-font); font-weight: 600; font-size: .8rem; z-index: 4; }
.st-toast { position: absolute; left: 50%; top: 70px; translate: -50% 0; margin: 0; padding: .65rem 1rem; border-radius: 99px; background: var(--hx-ink); color: var(--hx-paper); font-weight: 650; font-size: .9rem; opacity: 0; transform: translateY(10px); transition: .3s; pointer-events: none; white-space: nowrap; z-index: 6; }
.st-toast.on { opacity: 1; transform: none; }
.st-nogl { display: none; position: absolute; inset: auto 20px 100px; padding: 14px 16px; border-radius: 14px; background: #fff; font-size: .9rem; }
.no-gl .st-nogl { display: block; }
.no-gl .st-tools { display: none; }
.st-ar { position: fixed; inset: auto 0 0 0; z-index: 100; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); color: #fff; font-weight: 700; }
.st-ar[hidden] { display: none; }
.st-ar div { display: flex; gap: 10px; }
.st-ar .st-btn-line { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }

/* ---------- showcase ---------- */
.st-show { position: fixed; inset: 0; z-index: 80; background: rgba(20, 20, 20, .45); display: flex; justify-content: flex-end; }
.st-show[hidden] { display: none; }
.st-show-in { width: min(820px, 100%); height: 100%; overflow-y: auto; background: var(--hx-paper); padding: 26px clamp(18px, 3vw, 36px) 40px; animation: st-in .35s cubic-bezier(.2, .7, .1, 1) both; }
@keyframes st-in { from { transform: translateX(40px); opacity: 0; } }
.st-show-in header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.st-show-in header p { margin: .4rem 0 0; color: var(--hx-mute); max-width: 52ch; line-height: 1.5; }
.st-h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 850; letter-spacing: -.04em; margin: 0; font-stretch: 108%; }
.st-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.st-case { display: flex; flex-direction: column; gap: 3px; padding: 8px 8px 12px; border-radius: 16px; border: 1.5px solid var(--hx-line); background: #fff; cursor: pointer; text-align: left; font-family: var(--hx-font); color: var(--hx-ink); transition: transform .15s, border-color .2s; }
.st-case:hover { transform: translateY(-3px); border-color: var(--hx-ink); }
.st-case img, .st-case-ph { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: contain; border-radius: 10px; background: radial-gradient(#fff, #efe9df); display: block; }
.st-case b { font-size: .95rem; margin-top: 4px; }
.st-case span { font-size: .78rem; color: var(--hx-mute); line-height: 1.3; }
.st-case em { font-style: normal; font-size: .8rem; font-weight: 700; margin-top: 2px; }
html.st-lock { overflow: hidden; }

/* ---------- the band below ---------- */
.st-band { padding: clamp(4rem, 9vw, 8rem) 0; border-top: 1px solid var(--hx-line); }
.st-feats { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem 2rem; }
.st-feats span { font-weight: 800; font-size: .85rem; padding: .2rem .5rem; background: var(--hx-tape); border-radius: 6px; }
.st-feats h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin: .9rem 0 .5rem; }
.st-feats p { margin: 0; color: #3a3732; line-height: 1.55; }
.st-faq { margin-top: 3.5rem; max-width: 820px; border-top: 1px solid var(--hx-line-2); }
.st-faq details { border-bottom: 1px solid var(--hx-line-2); }
.st-faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 750; font-size: 1.1rem; }
.st-faq p { margin: 0 0 1.2rem; line-height: 1.6; color: #3a3732; max-width: 64ch; }

/* ---------- smaller screens ---------- */
@media (max-width: 1599px) {
  .st-steps em { display: none; }
  .st-steps b { white-space: nowrap; }
}
@media (min-width: 981px) and (max-width: 1240px) {
  .st-steps b { font-size: .88rem; }
  .st-steps button { gap: 7px; padding: 8px 6px; }
}
/* the studio has its own Next button at the bottom: the site's call bar would cover it */
.st-page .callbar { display: none !important; }
@media (max-width: 980px) {
  .st { display: flex; flex-direction: column; height: auto; padding-top: var(--hx-head); }
  .st-stage { order: -2; }
  .st-steps { order: -1; }
  .st-stage { position: sticky; top: var(--hx-head); height: 44vh; height: 44svh; z-index: 5; border-bottom: 1px solid var(--hx-line); }
  .st-steps { position: sticky; top: calc(var(--hx-head) + 44svh); z-index: 6; padding: 6px 10px; gap: 4px; border-right: 0; }
  .st-steps button { padding: 6px 8px 6px 6px; gap: 7px; justify-content: center; }
  .st-steps b { display: block; font-size: .86rem; }
  .st-steps i { width: 26px; height: 26px; font-size: .78rem; }
  .st-panel { overflow: visible; border-right: 0; }
  .st-head { padding: 20px var(--hx-gut) 4px; }
  .st:not([data-step="pets"]) .st-head { display: none; }
  .st-body { padding: 4px var(--hx-gut) 24px; }
  .st-foot { position: sticky; bottom: 0; padding: 10px var(--hx-gut) calc(10px + env(safe-area-inset-bottom)); }
  .st-hud { max-width: calc(100% - 70px); top: 10px; left: 12px; }
  .st-icons { position: static; flex-direction: column; }
  .st-icons .st-sep { width: auto; height: 1px; margin: 3px 6px; }
  .st-title { font-size: .95rem; }
  .st-fit { font-size: .72rem; padding: .3rem .6rem .3rem .4rem; }
  .st-fit .ico { width: 14px; height: 14px; }
  .st-tools { top: 8px; right: 8px; gap: 4px; }
  .st-views { display: none; }
  .st-icons button { width: 32px; height: 32px; }
  .st-icons [data-act="spin"], .st-icons [data-act="full"] + .st-sep { display: none; }
  .st-read { bottom: 10px; left: 12px; }
  .st-read b { font-size: 1.55rem; }
  .st-read .hx-k { display: none; }
  .st-pr { font-size: .88rem; }
  .st .callouts { display: none; }
  .st-draw { inset: 22% 8% 26%; }
  .st-feats { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .st-needs { grid-template-columns: 1fr; }
  .st-forms { grid-template-columns: repeat(2, 1fr); }
  .st-swatches { grid-template-columns: repeat(3, 1fr); }
  .st-moods { grid-template-columns: 1fr 1fr; }
  .st-kinds, .st-shapes { grid-template-columns: repeat(3, 1fr); }
  .st-two { grid-template-columns: 1fr; }
  .st-icons [data-act="explode"] { display: none; }
}

/* ---------- the part you tapped: its options right next to it (studio.js renderInspector) ---------- */
.st-insp { position: absolute; right: 16px; top: 112px; z-index: 7; width: min(340px, calc(100% - 32px)); max-height: calc(100% - 128px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 16px 16px; border-radius: 20px; border: 2px solid var(--hx-ink); background: #fff; box-shadow: 7px 7px 0 var(--hx-tape), 0 24px 50px -24px rgba(0, 0, 0, .45); animation: st-pop .2s ease-out both; }
@keyframes st-pop { from { opacity: 0; scale: .96; } }
.st-insp-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: .6rem; margin: 0 -16px; padding: 12px 12px 10px 16px; background: #fff; border-bottom: 1px solid var(--hx-line); }
.st-insp-head b { font-size: 1.05rem; font-weight: 820; letter-spacing: -.01em; }
.st-insp-head span { font-size: .76rem; color: var(--hx-mute); }
.st-insp-head .st-x { margin-left: auto; }
.st-insp .st-h3 { margin: 1.1rem 0 .5rem; }
.st-insp .st-kinds { margin-top: .9rem; }
.st-kinds-sm button { padding: 7px 2px 6px; font-size: .66rem; }
.st-kinds-sm .ico { width: 22px; height: 22px; }
.st-insp .st-tiles { grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); }
.st-insp .st-range { margin: .6rem 0 .1rem; }
.st-insp-act { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--hx-line); }
.st-insp-act > button:not(.st-chip) { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--hx-line); background: #fff; cursor: pointer; color: var(--hx-ink); }
.st-insp-act > button:hover:not(:disabled) { border-color: var(--hx-ink); }
.st-insp-act > button:disabled { opacity: .35; cursor: default; }
.st-insp-act .ico { width: 17px; height: 17px; }
.st-insp-act .st-chip { margin-left: auto; }
.st-insp .st-insert { margin-top: 1rem; }
.st-qsw { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: .5rem 0 .7rem; }
.st-qsw .st-sw-sm { width: auto; }
.st-qsw .st-sw img { border-radius: 8px; }

/* ---------- the drawer: every finish, the room, three drawn layouts ---------- */
.st-drawer { position: absolute; left: 0; top: var(--hx-head); bottom: 0; width: var(--st-panel); z-index: 9; display: flex; background: var(--hx-card); border-right: 1px solid var(--hx-line); box-shadow: 18px 0 40px -30px rgba(0, 0, 0, .5); animation: st-slide .28s cubic-bezier(.2, .7, .1, 1) both; }
@keyframes st-slide { from { transform: translateX(-24px); opacity: 0; } }
.st-drawer-in { flex: 1; min-width: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.st-drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 18px 12px 26px; background: rgba(251, 250, 247, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--hx-line); }
.st-drawer-head b { font-size: 1.25rem; font-weight: 820; letter-spacing: -.02em; }
.st-drawer-body { padding: 4px 26px 40px; }
.st-drawer-body > .st-h3:first-child { margin-top: 1rem; }

/* ---------- first step: the piece to start from ---------- */
.st-more { margin: .3rem 0 0; font-size: .9rem; }
.st-more > summary { cursor: pointer; font-weight: 650; padding: .4rem 0; color: var(--hx-ink); }
.st-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.st-qc { display: flex; flex-direction: column; gap: 2px; padding: 6px 6px 10px; border-radius: 14px; border: 1.5px solid var(--hx-line); background: #fff; cursor: pointer; text-align: left; font-family: var(--hx-font); color: var(--hx-ink); transition: transform .15s, border-color .2s; }
.st-qc:hover { transform: translateY(-2px); border-color: var(--hx-ink); }
.st-qc[aria-pressed="true"] { border-color: var(--hx-ink); box-shadow: inset 0 -4px 0 var(--hx-tape); }
.st-qc img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: contain; border-radius: 9px; background: radial-gradient(#fff, #efe9df); display: block; }
.st-qc b { font-size: .88rem; margin: 4px 4px 0; }
.st-qc span { font-size: .76rem; color: var(--hx-mute); margin: 0 4px; }

/* ---------- send: transport to their country ---------- */
.st-ship { margin: .2rem 0 1rem; padding: 12px 14px; border-radius: 14px; background: var(--hx-paper); }
.st-ship .st-fld { margin: 0 0 .5rem; }
.st-ship-v { margin: 0; font-size: .86rem; line-height: 1.45; color: #3a3732; }
.st-body .prem, .st-drawer .prem { font-size: .85rem; margin: 1.2rem 0 0; }
.st-pr small { font-weight: 560; font-size: .78em; color: var(--hx-mute); margin-left: .2rem; }
/* a label over a row of choices in a signature form (which square of Fibonacci it sets) */
.st-seg-l { margin: .7rem 0 .3rem; font-size: .78rem; font-weight: 700; color: var(--hx-mute); }
/* the caption of the showcase on the stage: what its price leaves out */
.st-cap-s small { display: block; margin-top: .15rem; font-size: .9em; font-weight: 560; color: var(--hx-mute); }

@media (max-width: 980px) {
  /* phones: the card is a short sheet under the 3D, the drawer a taller one */
  .st-insp { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: calc(100svh - var(--hx-head) - 44svh - 54px); border-radius: 20px 20px 0 0; border-width: 2px 0 0; box-shadow: 0 -18px 40px -20px rgba(0, 0, 0, .45); padding: 0 var(--hx-gut) calc(16px + env(safe-area-inset-bottom)); z-index: 60; animation: st-up .24s ease-out both; }
  .st-insp-head { margin: 0 calc(-1 * var(--hx-gut)); padding-left: var(--hx-gut); }
  .st-drawer { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 78svh; z-index: 70; border-radius: 22px 22px 0 0; border-right: 0; box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .5); animation: st-up .28s cubic-bezier(.2, .7, .1, 1) both; overflow: hidden; }
  .st-drawer-head { padding: 12px 12px 10px var(--hx-gut); }
  .st-drawer-body { padding: 4px var(--hx-gut) calc(30px + env(safe-area-inset-bottom)); }
  .st-insp-on .st-foot, .st-drawer-on .st-foot { visibility: hidden; }
  .st-qsw { grid-template-columns: repeat(8, 1fr); }
}
@keyframes st-up { from { transform: translateY(30px); opacity: 0; } }
@media (max-width: 520px) {
  .st-qsw { grid-template-columns: repeat(6, 1fr); }
  .st-insp .st-kinds { grid-template-columns: repeat(5, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .st-delta.go { animation: none; opacity: 1; }
  .st-show-in { animation: none; }
}

/* ---------- phones, 2026-10-15: the 3D shows the piece and nothing else; every control lives in the panel ---------- */
@media (max-width: 760px) {
  .st-stage { height: 36svh; min-height: 240px; }
  .st-steps { top: calc(var(--hx-head) + max(36svh, 240px)); padding: 6px 10px; }
  .st-steps button { padding: 6px 10px 6px 6px; }
  .st-title, .st .callouts { display: none !important; }
  .st-insp { max-height: calc(100svh - var(--hx-head) - max(36svh, 240px) - 50px); }
  .st-hud { top: 8px; left: 10px; max-width: calc(100% - 140px); }
  .st-fit { margin: 0; font-size: .68rem; }
  .st-fit span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .st-icons { position: static; flex-direction: row; padding: 3px; }
  .st-icons [data-act="lines"], .st-icons [data-act="explode"], .st-icons [data-act="dims"], .st-icons [data-act="spin"], .st-icons .st-sep { display: none; }
  .st-icons button { width: 34px; height: 34px; }
  .st-read { left: 12px; right: 12px; bottom: 10px; flex-wrap: nowrap; align-items: baseline; justify-content: space-between; }
  .st-read b { font-size: 1.3rem; }
  .st-pr { font-size: .9rem; }
  .st-delta { display: none; }
  .st-draw { inset: 16% 6% 22%; }
  .st-body { padding-top: 0; }
  .st-body > .st-h3:first-child { font-size: 1.3rem; margin-top: .9rem; }
  .st-sub { font-size: .86rem; margin-bottom: .8rem; }
  .st-h3 { margin-top: 1.3rem; }
  .st-strip { margin: .4rem -6px 0; padding: 10px 6px 4px; }
  .st-mod { padding: 12px 12px 8px; box-shadow: 4px 4px 0 var(--hx-tape); }
  .st-seg button { padding: .6rem .7rem; }
  .st-foot { gap: .5rem; }
  .st-foot .st-btn { min-height: 46px; padding: .6rem 1rem; }
  .st-toast { top: auto; bottom: 54px; font-size: .82rem; white-space: normal; text-align: center; max-width: 90%; }
}
@media (max-width: 760px) {
  /* no scroll box inside the scrolling page: the swatches simply continue */
  .st-swatches { max-height: none; overflow: visible; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .st-sw span { font-size: .62rem; }
  .st-filters .st-seg { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .st-filters .st-seg::-webkit-scrollbar { display: none; }
  .st-filters .st-seg button { flex: none; }
  .st-moods { grid-template-columns: 1fr 1fr; gap: 5px; }
  .st-moodb { padding: 8px; font-size: .8rem; }
}
.st-easy { font-size: .88rem; margin: .5rem 0 0; } .st-easy a { font-weight: 700; color: inherit; text-decoration: underline; text-decoration-color: var(--hx-tape); text-decoration-thickness: 3px; text-underline-offset: 3px; } .st-body .promise { margin-top: 1rem; }

/* ---------- the UI plan, 2026-10-20 (studio.js): sliders, the parts rail, card tabs, the collection, phones ---------- */
/* sliders and toggles: the site's form styles (site.css) stop at the studio's own controls */
.st-range input, .st-range input:focus { border: 0; padding: 0; min-height: 0; border-radius: 0; box-shadow: none; }
.st-range input:focus-visible { outline: 2px solid var(--hx-ink); outline-offset: 4px; }
.st-tgl input, .st-tgl input:focus { border: 0; padding: 0; min-height: 0; box-shadow: none; }

/* step 1: who it is for, the pieces only made here, the classics */
.st-narrow { display: none; }
.st-h3.st-h3-big { font-size: 1.15rem; letter-spacing: -.01em; text-transform: none; color: var(--hx-ink); font-weight: 800; margin: 2rem 0 .3rem; }
.st-sigs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.st-sig { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 6px 6px 10px; border-radius: 14px; border: 1.5px solid var(--hx-line); background: #fff; cursor: pointer; text-align: left; font-family: var(--hx-font); color: var(--hx-ink); transition: transform .15s, border-color .2s; }
.st-sig:hover { transform: translateY(-2px); border-color: var(--hx-ink); }
.st-sig[aria-pressed="true"] { border-color: var(--hx-ink); box-shadow: inset 0 -4px 0 var(--hx-tape); }
.st-sig img, .st-sig-ph { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: contain; border-radius: 9px; background: radial-gradient(#fff, #efe9df); display: block; }
.st-sig b { font-size: .92rem; margin: 4px 4px 0; }
.st-sig span { font-size: .76rem; color: var(--hx-mute); margin: 0 4px; line-height: 1.3; }
.st-sig em { font-style: normal; font-size: .74rem; font-weight: 650; line-height: 1.3; margin: 5px 4px 0; min-height: 2.6em; }
.st-sig-all { margin-top: .6rem; }
.st-ctabs { margin: 0 0 .7rem; }
.st-qc-own .st-qc-draw { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; padding: 12px; border-radius: 9px; background: var(--hx-paper); }
.st-qc-draw .elev { width: 100%; height: 100%; }
.st-fitmore { margin-top: 1.6rem; padding-top: .4rem; border-top: 1px solid var(--hx-line); }
.st-fitmore > summary { font-weight: 720; }
@media (min-width: 981px) {
  .st-sigs > :nth-child(n+7) { display: none; }
  /* once the visitor starts, the introduction gives the panel its room */
  .st-touched .st-lede { display: none; }
}

/* step 2: the parts rail, a second way into every card */
.st-parts { display: flex; flex-wrap: wrap; gap: 6px; margin: .3rem 0 .5rem; }
.st-part { display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; padding: .4rem .75rem; border-radius: 99px; border: 1.5px solid var(--hx-line-2); background: #fff; font: 650 .82rem var(--hx-font); color: var(--hx-ink); cursor: pointer; white-space: nowrap; }
.st-part .ico { width: 17px; height: 17px; }
.st-part:hover { border-color: var(--hx-ink); }
.st-part[aria-pressed="true"] { border-color: var(--hx-ink); background: var(--hx-tape); }
.st-part:focus-visible, .st-sig:focus-visible, .st-qc:focus-visible { outline: 2px solid var(--hx-ink); outline-offset: 2px; }
.st-quiet { margin-top: 1.4rem; }
.st-quiet .st-link { font-weight: 560; color: var(--hx-mute); text-decoration-color: var(--hx-line-2); }
.st-note.st-note-top { margin: 0 0 .6rem; }

/* the card: title and the module's tools in a sticky head, then tabs */
.st-insp-head { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 10px 8px 16px; }
.st-insp-row { display: flex; align-items: center; gap: 4px; }
.st-insp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.st-insp-head .st-x { margin-left: 4px; }
.st-ia { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1.5px solid var(--hx-line); background: #fff; color: var(--hx-ink); cursor: pointer; }
.st-ia:hover:not(:disabled) { border-color: var(--hx-ink); }
.st-ia:disabled { opacity: .35; cursor: default; }
.st-ia .ico { width: 18px; height: 18px; }
.st-itabs { flex: 1; display: flex; margin-right: 4px; }
.st-itabs button { flex: 1; }
.st-pslots { margin: 1rem 0 .1rem; }
/* the openings in one row: six for a den, five for a signature form, never an empty column */
.st-insp .st-shapes, .st-body .st-shapes { grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); }

/* the toast can carry one action: undo, or take the whole look */
.st-toast { display: flex; align-items: center; gap: .7rem; }
.st-toast.has-act { pointer-events: auto; }
.st-toast-act { border: 0; border-radius: 99px; padding: .4rem .8rem; background: var(--hx-tape); color: var(--hx-ink); font: 750 .82rem var(--hx-font); cursor: pointer; white-space: nowrap; }

/* step 3 */
.st-ship-t { margin: .5rem 0 0; font-size: .9rem; font-weight: 700; line-height: 1.4; }
.st-draw img { width: 100%; height: 100%; object-fit: contain; }

/* a big screen: the card takes its room from the 3D instead of covering the piece (the canvas reframes itself) */
@media (min-width: 981px) {
  .st-insp-on .st-stage:not(.st-photo) canvas { width: calc(100% - min(340px, 100% - 32px) - 32px); }
  .st-insp-on .st-read { max-width: calc(100% - 410px); }
  .st-insp-on .st-hud { max-width: calc(100% - 420px); }
}
@media (max-width: 980px) {
  /* the drawer and the card start where the 3D ends, so the piece stays in view */
  .st-drawer { top: calc(var(--hx-head) + 44svh); bottom: 0; height: auto; }
  .st-insp { height: calc(100svh - var(--hx-head) - 44svh - 54px); max-height: none; }
  .st-ia { width: 44px; height: 44px; }
  .st-insp-head .st-x { width: 40px; height: 40px; }
  .st-parts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: .2rem calc(-1 * var(--hx-gut)) .5rem; padding: 2px var(--hx-gut) 6px; scroll-padding: 0 var(--hx-gut); }
  .st-parts::-webkit-scrollbar { display: none; }
  .st-part { flex: none; min-height: 44px; }
  .st-sigs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 calc(-1 * var(--hx-gut)); padding: 2px var(--hx-gut) 8px; scroll-padding: 0 var(--hx-gut); scrollbar-width: none; }
  .st-sigs::-webkit-scrollbar { display: none; }
  .st-sig { flex: none; width: 80%; scroll-snap-align: start; }
  /* the last step: a small 3D that scrolls away, the tabs on top, the form in reach */
  .st[data-step="send"] .st-stage { position: relative; top: auto; height: 160px; min-height: 0; }
  .st[data-step="send"] .st-steps { top: var(--hx-head); }
  .st[data-step="send"] .st-tools, .st[data-step="send"] .st-hud { display: none; }
  .st-form-send .st-fld { scroll-margin-top: calc(var(--hx-head) + 70px); }
}
@media (max-width: 760px) {
  .st-lede, .st-easy { display: none; }
  .st-h1 { font-size: 1.7rem; }
  .st-wide { display: none; }
  .st-narrow { display: inline; }
  .st-drawer { top: calc(var(--hx-head) + max(36svh, 240px)); }
  .st-insp { height: calc(100svh - var(--hx-head) - max(36svh, 240px) - 50px); max-height: none; }
  /* the qualifier stays on a phone, on its own line under the price */
  .st-pr { white-space: nowrap; text-align: right; }
  .st-pr small { display: block; margin: .15rem 0 0; font-size: .74em; line-height: 1.2; white-space: normal; }
}

/* ---------- the UI plan, pass 2 (2026-10-20): the shell, the play row, the showcase on the stage ---------- */
/* first load: the drawing fades out quickly, then the 3D fades in, so the two never overlap */
.st-stage canvas { transition: opacity .5s .15s; }
.st-stage.gl-on .st-draw { transition: opacity .15s; }
/* evening light: the small print stays readable on the dark stage */
.st-stage.st-eve .st-pr small { color: #d9cfbf; }
.st-stage.st-eve .st-read { text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
/* the looks: one row height, so a long German name never makes a ragged grid */
.st-moods { grid-auto-rows: 1fr; }

/* the footer under the panel: Back, where they are, the price, Next */
.st-foot-mid { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.st-foot-step { display: none; font-size: .72rem; font-weight: 650; color: var(--hx-mute); }
.st-back .ico { display: none; }
/* steps 2 and 3: one quiet row on top, the Showcase and Start again */
.st:not([data-step="pets"]) .st-head .hx-kicker, .st:not([data-step="pets"]) .st-easy { display: none; }
.st:not([data-step="pets"]) .st-head { padding-top: 16px; }
@media (min-width: 981px) {
  .st { grid-template-rows: auto minmax(0, 1fr) auto; }
  .st-foot { grid-column: 1; grid-row: 3; border-right: 1px solid var(--hx-line); }
  .st-stage { grid-row: 1 / 4; }
  /* the drawer takes the panel's place, the tabs and the footer stay in reach */
  .st-drawer { position: relative; grid-column: 1; grid-row: 2; top: auto; bottom: auto; left: auto; width: auto; min-height: 0; box-shadow: none; }
  .st-drawer .st-swatches { max-height: none; overflow: visible; }
}
.st-drawer-body > .st-sub-top:first-child { margin-top: 1rem; }

/* the fit badge is a button: a tap opens the fit check. A short line on phones */
.st-fit { border: 0; font-family: var(--hx-font); pointer-events: auto; cursor: pointer; text-align: left; }
.st-fit:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.st-fit:focus-visible { outline: 2px solid var(--hx-ink); outline-offset: 2px; }
.st-fit .st-fit-s { display: none; }

/* the parts of the drawing stay easy to hit (strip.js sizes them in screen pixels) */
.elev-i .e-add .e-hit, .elev-i .e-add:hover .e-hit { fill: transparent; stroke: none; }

/* step 1: the last design from this browser */
.st-cont { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--hx-ink); background: #fff8e0; box-shadow: 4px 4px 0 var(--hx-tape); text-align: left; cursor: pointer; font-family: var(--hx-font); color: var(--hx-ink); }
.st-cont .ico { width: 24px; height: 24px; }
.st-cont b { display: block; font-size: .98rem; font-weight: 780; }
.st-cont span span { font-size: .8rem; color: var(--hx-mute); }
.st-sig-all { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; }

/* the play row on the stage: take it apart, night, room, measure, AR */
.st-play { position: absolute; right: clamp(12px, 1.6vw, 22px); bottom: clamp(14px, 2.4vh, 26px); z-index: 4; display: flex; gap: 6px; }
.st-play button { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .45rem .85rem; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .84); box-shadow: 0 0 0 1px var(--hx-line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font: 650 .82rem var(--hx-font); color: var(--hx-ink); cursor: pointer; white-space: nowrap; }
.st-play button:hover { box-shadow: 0 0 0 1.5px var(--hx-ink); }
.st-play button[aria-pressed="true"] { background: var(--hx-ink); color: var(--hx-tape); }
.st-play button:focus-visible { outline: 2px solid var(--hx-ink); outline-offset: 2px; }
.st-play .ico { width: 18px; height: 18px; }
.st-read { max-width: calc(100% - 520px); }
.st-read b { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1365px) {
  /* a smaller stage: the chips keep their icons and say what they do on hover */
  .st-play span { display: none; }
  .st-play button { padding: .45rem .6rem; }
  .st-read { max-width: calc(100% - 270px); }
}
@media (min-width: 981px) {
  .st-insp-on .st-play { right: calc(min(340px, 100% - 32px) + 40px); }
  .st-insp-on .st-play span { display: none; }
  .st-insp-on .st-play button { padding: .45rem .6rem; }
  .st-insp-on .st-read { max-width: calc(100% - 640px); }
  .st-insp-on .st-read b { font-size: clamp(1.5rem, 2.4vw, 2.6rem); }
}
/* the tools say what they do on hover (the native title is slow) */
@media (hover: hover) and (min-width: 981px) {
  .st-icons button { position: relative; }
  .st-icons button::after { content: attr(aria-label); position: absolute; top: calc(100% + 6px); right: 0; padding: .3rem .55rem; border-radius: 8px; background: var(--hx-ink); color: var(--hx-paper); font: 650 .74rem/1.2 var(--hx-font); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 6; }
  .st-icons button:hover::after, .st-icons button:focus-visible::after { opacity: 1; }
}

/* another piece on the stage for a moment (a card under the mouse, the attract loop): the visitor's numbers step aside */
.st-read, .st-hud { transition: opacity .2s; }
.st-peek .st-read, .st-peek .st-hud { opacity: 0; }
.st-attract { position: absolute; left: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2.4vh, 26px); z-index: 5; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: .55rem .95rem .6rem; border-radius: 14px; border: 2px solid var(--hx-ink); background: #fff; box-shadow: 4px 4px 0 var(--hx-tape); font: 650 .76rem var(--hx-font); color: var(--hx-mute); cursor: pointer; text-align: left; animation: st-pop .3s ease-out both; }
.st-attract b { font-size: 1.15rem; font-weight: 820; color: var(--hx-ink); letter-spacing: -.01em; }

/* ---------- the showcase, a mode of the stage: the stage takes the screen, the caption sits beside the piece ---------- */
.st[data-show][data-step] .st-stage { position: fixed; top: var(--hx-head); left: 0; right: 0; bottom: 0; height: auto; min-height: 0; z-index: 75; }
.st[data-show] .st-play, .st[data-show] .st-read, .st[data-show] .st-hud, .st[data-show] .st-tools, .st[data-show] .st-insp, .st[data-show] .callouts, .st[data-show] .st-dimlabels, .st[data-show] .st-attract { display: none !important; }
.st[data-show][data-step] .st-stage canvas { left: min(470px, 40%); width: calc(100% - min(470px, 40%)); height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 120px); mask-image: linear-gradient(90deg, transparent, #000 120px); }
.st[data-show] .st-draw { left: calc(min(470px, 40%) + 4%); }
.st-cap { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.st-cap > * { pointer-events: auto; }
.st-cap-in { position: absolute; left: clamp(18px, 2.4vw, 36px); bottom: clamp(18px, 3vh, 36px); width: calc(min(470px, 40%) - clamp(18px, 2.4vw, 36px) - 16px); max-height: calc(100% - 92px); overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px 20px; border-radius: 22px; border: 2px solid var(--hx-ink); background: rgba(251, 250, 247, .97); box-shadow: 7px 7px 0 var(--hx-tape); color: var(--hx-ink); }
.st-cap-k { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .7rem; font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--hx-mute); }
.st-cap-h { margin: 0; font-size: clamp(1.8rem, 2.6vw, 2.6rem); font-weight: 850; font-stretch: 108%; letter-spacing: -.035em; line-height: 1; }
.st-cap-l { margin: .45rem 0 0; font-size: .95rem; font-weight: 650; line-height: 1.35; }
.st-cap-p { margin: .8rem 0 0; font-size: .9rem; line-height: 1.55; color: #3a3732; }
.st-cap-s { margin: .9rem 0 0; padding: .55rem .75rem; border-radius: 10px; background: #fff8e0; font-size: .84rem; font-weight: 650; line-height: 1.4; font-variant-numeric: tabular-nums; }
.st-cap-act { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.1rem; }
.st-cap-nav { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--hx-ink); background: #fff; color: var(--hx-ink); cursor: pointer; box-shadow: 3px 3px 0 var(--hx-tape); }
.st-cap-nav:hover { background: var(--hx-tape); }
.st-cap-nav .ico { width: 22px; height: 22px; }
.st-cap-prev { left: calc(min(470px, 40%) + 14px); }
.st-cap-next { right: clamp(14px, 2vw, 28px); }
.st-cap-x { position: absolute; top: clamp(12px, 2vh, 22px); right: clamp(12px, 2vw, 24px); width: 44px; height: 44px; background: #fff; box-shadow: 0 0 0 1.5px var(--hx-ink); }
.st-cap-nav:focus-visible, .st-cap-x:focus-visible { outline: 3px solid var(--hx-ink); outline-offset: 3px; }

/* the list view of the showcase: a sticky head with the groups, cards sized for the pet */
.st-show-in .st-show-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: start; margin-bottom: 1rem; }
.st-show-head .st-show-f { grid-column: 1 / -1; justify-self: start; margin-top: .8rem; }
.st-case[aria-pressed="true"] { border-color: var(--hx-ink); box-shadow: inset 0 -4px 0 var(--hx-tape); }
.st-case em { font-size: .76rem; font-weight: 650; line-height: 1.3; min-height: 2.6em; margin-top: 4px; }
.st-show-in > .st-note { margin-top: 1.4rem; }

/* ---------- touch layouts (a tablet and a phone) ---------- */
@media (max-width: 980px) {
  /* the stage carries a 44 px band for the play row, so the 3D keeps its height */
  .st { --st-sh: calc(44svh + 44px); }
  .st-stage { height: var(--st-sh); }
  .st-steps { top: calc(var(--hx-head) + var(--st-sh)); }
  .st-drawer { top: calc(var(--hx-head) + var(--st-sh)); }
  .st-insp { height: calc(100svh - var(--hx-head) - var(--st-sh) - 54px); }
  .st-stage canvas { height: calc(100% - 44px); }
  .st-draw { bottom: calc(26% + 44px); }
  .st-read { bottom: 54px; max-width: none; }
  .st-attract { bottom: 54px; left: 12px; }
  .st-play { left: 0; right: 0; bottom: 0; height: 44px; padding: 3px 10px; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; background: var(--hx-card); border-top: 1px solid var(--hx-line); }
  .st-play::-webkit-scrollbar { display: none; }
  .st-play button { flex: none; min-height: 36px; padding: .35rem .75rem; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .st-play button:hover { box-shadow: inset 0 0 0 1.5px var(--hx-line-2); }
  .st[data-step="send"] .st-play { display: none; }
  .st[data-step="send"] .st-stage canvas { height: 100%; }
  .st-toast { bottom: 54px; }
  /* tap targets */
  .st-seg button { min-height: 44px; }
  .st-link { min-height: 44px; display: inline-flex; align-items: center; }
  .st-x { width: 40px; height: 40px; }
  .st-kinds-sm button { font-size: .75rem; }
  /* the showcase: the caption is a sheet at the bottom, the 3D above it */
  .st[data-show][data-step] .st-stage canvas { left: 0; width: 100%; height: calc(100% - var(--cap-h, 45%)); -webkit-mask-image: none; mask-image: none; }
  .st[data-show] .st-draw { left: 6%; bottom: calc(var(--cap-h, 45%) + 6%); top: 10%; }
  .st-cap-in { left: 0; right: 0; bottom: 0; width: auto; max-height: 58%; padding: 16px var(--hx-gut) calc(16px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; border-width: 2px 0 0; box-shadow: 0 -18px 40px -20px rgba(0, 0, 0, .45); }
  .st-cap-h { font-size: 1.6rem; }
  .st-cap-p { font-size: .86rem; }
  /* the arrows sit low in the 3D, clear of the piece */
  .st-cap-nav { top: calc(100% - var(--cap-h, 45%) - 58px); translate: none; width: 46px; height: 46px; }
  .st-cap-prev { left: 10px; }
  .st-cap-next { right: 10px; }
  .st-cap-x { top: 10px; right: 10px; }
  .st-cap-act .st-btn { flex: 1 1 auto; }
  .st-show-in { padding: 0 var(--hx-gut) calc(30px + env(safe-area-inset-bottom)); }
  .st-show-in .st-show-head { position: sticky; top: 0; z-index: 2; margin: 0 calc(-1 * var(--hx-gut)) .8rem; padding: 14px var(--hx-gut) 10px; background: var(--hx-paper); border-bottom: 1px solid var(--hx-line); }
  .st-show-head .st-h2 { font-size: 1.4rem; }
  .st-show-head p { font-size: .86rem; }
  .st-show-head .st-show-f { margin-top: .5rem; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .st-show-head .st-show-f button { flex: none; }
  .st-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .st-case { padding: 6px 6px 10px; }
  .st-case b { font-size: .88rem; }
}
@media (max-width: 760px) {
  /* phones: no tabs, the footer says the step; the 3D and its play band on top */
  .st { --st-sh: calc(max(36svh, 240px) + 44px); }
  .st-stage { min-height: 0; }
  .st-steps { display: none; }
  .st-drawer { top: calc(var(--hx-head) + var(--st-sh)); }
  .st-insp { height: calc(100svh - var(--hx-head) - var(--st-sh)); }
  .st-foot-step { display: block; }
  .st-back { width: 44px; min-height: 44px; padding: 0; flex: none; }
  .st-back span { display: none; }
  .st-back .ico { display: block; }
  .st-fit .st-fit-l { display: none; }
  .st-fit .st-fit-s { display: inline; }
  .st[data-step="send"] .st-stage { height: 160px; }
}
@media (max-width: 760px) and (max-height: 859px) {
  /* a phone: the caption keeps to the name, the line, the size and the buttons; the story is on the piece's page */
  .st-cap-p { display: none; }
}
@media (max-width: 400px) {
  .st-read b, .st-pr { white-space: nowrap; }
  .st-read b { font-size: clamp(1.05rem, 5.4vw, 1.3rem); }
  /* the four chips fit without scrolling: words only */
  .st-play { gap: 2px; padding: 3px 6px; justify-content: space-between; }
  .st-play button { padding: .35rem .55rem; font-size: .8rem; }
  .st-play .ico { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .st-attract { animation: none; }
}

/* ---------- overall size: the space it has to fit (studio.js sizeBox) ---------- */
.st-size { margin: .4rem 0 1.2rem; padding: 14px 16px 12px; border-radius: 18px; border: 2px solid var(--hx-ink); background: #fff; box-shadow: 5px 5px 0 var(--hx-tape); }
.st-size-card { margin: .6rem 0 0; padding: 0; border: 0; box-shadow: none; background: none; }
.st-size-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.st-size-h b { font-size: 1.1rem; font-weight: 820; letter-spacing: -.01em; }
.st-size .st-sub { margin: .3rem 0 .6rem; font-size: .84rem; }
.st-size-row { padding: .55rem 0; border-top: 1px solid var(--hx-line); display: grid; gap: .45rem; }
.st-size-top { display: flex; justify-content: space-between; align-items: baseline; }
.st-size-l { font-weight: 700; font-size: .9rem; }
.st-size-top b { font-variant-numeric: tabular-nums; font-size: .9rem; }
.st-size .st-seg { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
.st-size .st-seg button { padding-left: 4px; padding-right: 4px; }
.st-size-in { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 650; }
.st-size-in input { width: 110px; min-height: 44px; padding: .5rem .7rem; border-radius: 12px; border: 1.5px solid var(--hx-ink); background: #fffbe8; font: 750 1.05rem var(--hx-font); font-variant-numeric: tabular-nums; color: var(--hx-ink); }
.st-size-in input:focus { outline: none; box-shadow: 0 0 0 3px rgba(255, 199, 44, .6); }
.st-size .st-warn { margin-top: .5rem; }
.st-sizebtn { pointer-events: auto; display: inline-flex; align-items: baseline; gap: .6rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.st-sizebtn-t { display: inline-flex; align-items: center; gap: .3rem; align-self: center; padding: .3rem .65rem; border-radius: 99px; background: var(--hx-ink); color: var(--hx-paper); font-size: .78rem; font-weight: 700; }
.st-sizebtn-t .ico { width: 15px; height: 15px; }
.st-sizebtn:hover .st-sizebtn-t { background: var(--hx-tape); color: var(--hx-ink); }
.st-sizebtn[hidden] { display: none !important; }
@media (max-width: 760px) { .st-sizebtn { gap: .35rem; } .st-sizebtn-t { font-size: 0; gap: 0; padding: .32rem; } .st-sizebtn-t .ico { width: 16px; height: 16px; } }
