/* The builder. Canvas on the left, panel on the right, phones stack them. */
.st { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.st[hidden] { display: none; }
.st > * { pointer-events: auto; }
.in-studio { overflow: hidden; }
.in-studio #stage { touch-action: none; cursor: grab; }
.in-studio #poster { opacity: 0; }
.st-logo { position: absolute; left: 0; top: 0; z-index: 3; background: #fff; padding: 12px 18px 10px 16px; display: block; }
.st-logo img { height: 44px; width: auto; }

.st-view { position: absolute; inset: 0 var(--panel-w) 0 0; pointer-events: none; }
.st-overlay { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.st-overlay[hidden] { display: none; }
.ov-svg { position: absolute; inset: 0; }
.ov-line { stroke: #fff; stroke-width: 1.5; fill: none; filter: drop-shadow(0 0 2px #0009); }
.ov-tag { position: absolute; left: 0; top: 0; background: var(--ink); color: #fff; font: 600 20px/1 var(--disp); padding: 5px 9px; border-radius: 2px; white-space: nowrap; }
.ov-h { position: absolute; left: 0; top: 0; width: 44px; height: 44px; pointer-events: auto; border-radius: 50%; touch-action: none; cursor: grab; display: grid; place-items: center; }
.ov-h::before { content: ''; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 1px 6px #0007; transition: transform .14s; }
.ov-h:hover::before, .ov-h.is-drag::before { transform: scale(1.25); }
.ov-h.is-drag { cursor: grabbing; }

.st-dock { position: absolute; left: 0; bottom: 0; right: 0; padding: 0 16px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; }
.st-caption { margin: 0; color: #fff; background: rgba(14,17,20,.8); padding: 8px 14px 7px; border-radius: var(--r); font: 500 21px/1.05 var(--disp); display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.st-cap-size { font-weight: 700; font-size: 31px; letter-spacing: -.005em; }
.st-tools { display: flex; flex-wrap: wrap; gap: 6px; pointer-events: auto; }
.tool { background: rgba(14,17,20,.8); color: #fff; padding: 9px 13px; font-weight: 500; font-size: 15px; line-height: 1.1; border-radius: var(--r); min-height: 38px; white-space: nowrap; transition: background .14s; }
.tool:hover { background: var(--ink); }
.tool[aria-pressed=true] { background: #fff; color: var(--ink); }
.tool-main { background: var(--ink); font-weight: 600; }
.tool-group { display: inline-flex; gap: 0; background: rgba(14,17,20,.8); border-radius: var(--r); overflow: hidden; }
.tool-group .tool { background: none; border-radius: 0; }
.tool-group .tool[aria-pressed=true] { background: #fff; }

/* Panel. */
.st-panel { position: absolute; top: 0; right: 0; bottom: 0; width: var(--panel-w); background: #fff; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; box-shadow: -1px 0 0 #0002; transform: translateX(100%); transition: transform .5s cubic-bezier(.2,.75,.2,1); }
.st.is-in .st-panel { transform: none; }
.st-head { border-bottom: 1px solid var(--line); }
.st-steps { display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 12px; }
.st-steps::-webkit-scrollbar { display: none; }
.st-step { position: relative; flex: 1 0 auto; padding: 14px 6px 12px; font-size: 14.5px; font-weight: 500; color: var(--mute); white-space: nowrap; }
.st-step-n { display: none; }
.st-step:hover { color: var(--ink); }
.st-step.is-done { color: var(--ink); }
.st-step.is-on { color: var(--ink); font-weight: 600; }
.st-step.is-on::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: -1px; height: 3px; background: var(--ink); }
.st-util { display: flex; justify-content: space-between; padding: 8px 18px; font-size: 15px; border-top: 1px solid var(--line); }
.st-util a { text-decoration: none; color: var(--ink); font-weight: 500; }
.st-body { overflow-y: auto; padding: 20px 18px 24px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.st-title { font: 600 clamp(34px, 2.6vw, 42px)/1 var(--disp); margin-bottom: 16px; outline: none; }
.st-foot { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.btn-back { padding: 14px 16px; font-weight: 500; border: 1px solid var(--line); border-radius: var(--r); }
.btn-back:hover { border-color: var(--ink); }
.btn-next { background: var(--ink); color: #fff; padding: 13px 20px; font: 600 23px/1 var(--disp); border-radius: var(--r); text-align: center; cursor: pointer; transition: background .15s; }
.btn-next:hover { background: var(--blue-d); }
.btn-next:disabled { opacity: .55; cursor: progress; }
.btn-quiet { padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r); font-weight: 500; text-align: left; transition: border-color .12s; }
.btn-quiet:hover { border-color: var(--ink); }

.fld { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.fld legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 16.5px; width: 100%; display: flex; justify-content: space-between; gap: 12px; }
.fld-val { font-weight: 400; color: var(--mute); }
.note { color: var(--mute); margin: 12px 0 0; font-size: 15.5px; line-height: 1.4; }
.note.is-warn { color: var(--warn); }
.hint { color: var(--mute); margin: 8px 0 0; font-size: 15px; line-height: 1.4; }
.lede { font-size: 19px; line-height: 1.3; font-weight: 500; }

/* Size. */
.dims { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dim label { font-weight: 600; font-size: 16.5px; display: block; margin-bottom: 4px; }
.dim-row { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); }
.dim-row:focus-within { border-color: var(--ink); }
.dim-num { width: 100%; min-width: 0; border: 0; text-align: center; font: 700 clamp(38px, 3vw, 46px)/1 var(--disp); padding: 6px 0 4px; background: none; outline: none; letter-spacing: -.01em; }
.stp { width: 40px; height: 44px; font-size: 24px; line-height: 1; color: var(--ink); touch-action: manipulation; }
.stp:hover { background: var(--panel); }
.dim-range { width: 100%; margin: 10px 0 0; height: 28px; accent-color: var(--ink); }
.presets { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(52px, 1fr); gap: 4px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.presets::-webkit-scrollbar { display: none; }
.preset { border: 1px solid var(--line); border-radius: var(--r); padding: 6px 2px 5px; display: grid; justify-items: center; gap: 2px; font-size: 12.5px; font-weight: 500; white-space: nowrap; letter-spacing: -.01em; }
.preset:hover { border-color: var(--ink); }
.preset.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.dg-size { width: 40px; height: 32px; }
.dg-size rect { fill: var(--line); stroke: var(--ink); stroke-width: 1; }
.preset.is-on .dg-size rect { fill: var(--ink); }
.check { display: flex; gap: 10px; margin-top: 14px; cursor: pointer; line-height: 1.35; font-size: 16px; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.fits { display: grid; }
.fit { display: block; cursor: pointer; border-top: 1px solid var(--line); }
.fit:last-child { border-bottom: 1px solid var(--line); }
.fit input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fit-box { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 10px 10px 30px; position: relative; }
.fit-box::before { content: ''; position: absolute; left: 4px; top: 13px; width: 16px; height: 16px; border: 1.5px solid #9aa2a8; border-radius: 50%; }
.fit input:checked + .fit-box { background: var(--panel); }
.fit input:checked + .fit-box::before { border: 5px solid var(--ink); }
.fit input:focus-visible + .fit-box { outline: 3px solid var(--blue); outline-offset: -3px; }
.fit-size { color: var(--mute); font-size: 15px; white-space: nowrap; }
.fit-size[data-state=no] { color: var(--warn); font-weight: 500; }
.verdict { margin-top: 10px; font-size: 16px; line-height: 1.38; }
.verdict p { margin: 0; }
.verdict-ok strong { color: var(--ok); }
.verdict-tight strong { color: #a2670c; }
.verdict-no strong { color: var(--warn); }
.verdict-sub { color: var(--mute); }
.verdict > .verdict-sub { display: block; margin-top: 4px; font-size: 15px; }
.verdict-fix { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.btn-fix { background: var(--ink); color: #fff; padding: 9px 13px; font-weight: 500; border-radius: var(--r); }
.btn-fix:hover { background: var(--blue-d); }

/* Radios that look like choices. */
.opts { display: grid; gap: 6px; }
.opts-3 { grid-template-columns: repeat(3, 1fr); }
.opts-2 { grid-template-columns: repeat(2, 1fr); }
.opt { display: block; cursor: pointer; }
.opt.is-off { opacity: .5; cursor: not-allowed; }
.opt input, .type input, .sw input, .seg-i input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-box { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); height: 100%; transition: border-color .12s; }
.opts-3 .opt-box, .opts-2 .opt-box { display: block; padding: 8px; }
.opt:hover .opt-box { border-color: #8d959b; }
.opt input:checked + .opt-box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--panel); }
.opt input:focus-visible + .opt-box, .type input:focus-visible + .type-box, .seg-i input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 1px; }
.opt-fig { flex: none; display: block; }
.opts-3 .opt-fig, .opts-2 .opt-fig { margin-bottom: 6px; }
.opts-fig .opt-fig { width: 44px; }
.opt-txt { display: block; min-width: 0; }
.opt-name { display: block; font-weight: 600; line-height: 1.2; }
.opt-line { display: block; color: var(--mute); font-size: 14.5px; line-height: 1.3; margin-top: 2px; font-weight: 400; }

.seg { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.seg-i { flex: 1; cursor: pointer; }
.seg-i span { display: block; text-align: center; padding: 10px 6px; font-weight: 500; font-size: 15px; line-height: 1.15; }
.seg-i + .seg-i span { border-left: 1px solid var(--line); }
.seg-i input:checked + span { background: var(--ink); color: #fff; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.sw { display: block; cursor: pointer; }
.sw-chip { display: block; height: 44px; border-radius: 2px; box-shadow: inset 0 0 0 1px #0002; position: relative; transition: transform .12s; }
.sw:hover .sw-chip { transform: translateY(-1px); }
.sw input:checked + .sw-chip { box-shadow: inset 0 0 0 1px #0002, 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.sw input:focus-visible + .sw-chip { outline: 3px solid var(--blue); outline-offset: 5px; }

.more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.more summary { cursor: pointer; font-weight: 500; color: var(--blue-d); padding: 4px 0; }
.more p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.42; }
.custom { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 10px; align-items: start; }
.custom-pick { display: grid; justify-items: center; gap: 3px; font-size: 14px; color: var(--mute); cursor: pointer; }
.custom-pick input { width: 62px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 2px; background: none; cursor: pointer; }
.custom-name span { display: block; font-size: 14px; color: var(--mute); margin-bottom: 3px; }
.custom-name input { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); font: inherit; font-size: 16px; }

/* Types. */
.types { display: grid; gap: 6px; }
.type { display: block; cursor: pointer; }
.type.is-off { opacity: .5; cursor: not-allowed; }
.type-box { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: var(--r); align-items: center; }
.type:hover:not(.is-off) .type-box { border-color: #8d959b; }
.type input:checked + .type-box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--panel); }
.type-name { display: block; font: 600 23px/1.02 var(--disp); }
.type-rec { display: block; color: var(--ok); font-size: 14.5px; font-weight: 500; margin-top: 3px; }
.dg { display: block; width: 100%; height: auto; }
.dg-ground { stroke: var(--ink); stroke-width: 2; }
.dg-wall { stroke: #8d959b; stroke-width: 5; fill: none; }
.dg-wall-thin { stroke-width: 3; }
.dg-track { stroke: #b6bcc0; stroke-width: 1.4; fill: none; stroke-dasharray: 2 2; }
.dg-door { stroke: var(--blue-d); stroke-width: 4; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.dg-door-thin { stroke-width: 3.4; }
.dg-pin { fill: var(--ink); }
.rail-fig .dg-door { stroke: var(--blue-d); }
.dg-facebg { fill: #d9dcdd; }
.dg-face { border-radius: 1px; }
.dg-seam { stroke: #5d656b; stroke-width: 1; }
.dg-rib { stroke: #a4abb0; stroke-width: .8; }
.dg-rib-strong { stroke: #6e767c; stroke-width: 1.4; }
.dg-line { fill: none; stroke: #6e767c; stroke-width: .9; }

/* Door map. */
.map { width: min(100%, calc(240px / var(--aspect, 1))); display: grid; grid-auto-rows: 1fr; aspect-ratio: calc(1 / var(--aspect, 1)); max-height: 240px; border: 2px solid var(--ink); }
.map-row { display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; border-bottom: 1px solid #0003; min-height: 26px; transition: background .12s; }
.map-row:last-child { border-bottom: 0; }
.map-s { background: #d9dcdd; }
.map-s:hover { background: #cdd1d3; }
.map-w { background: repeating-linear-gradient(90deg, #d9dcdd 0 10%, #5b7f96 10% 25%, #d9dcdd 25% 33.3%); color: #000; }
.map-w span, .map-f span, .map-p span { background: #fffd; padding: 0 5px; border-radius: 2px; }
.map-f { background: linear-gradient(120deg, #bcd3df, #8fb0c2 60%, #cfe0e7); }
.map-p { background: #6f777d; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.quick .btn-quiet { padding: 8px 11px; font-size: 15px; }
.lnk-dusk { display: inline-block; margin-top: 14px; }
.stepper { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stepper-l { font-weight: 600; }
.stepper-c { display: inline-grid; grid-template-columns: 40px minmax(54px, auto) 40px; align-items: center; text-align: center; }
.stepper-v { font: 700 26px/1 var(--disp); }
.tgl { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; cursor: pointer; }
.tgl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tgl-box { flex: none; width: 42px; height: 24px; border-radius: 3px; background: #c7ccd0; position: relative; transition: background .15s; margin-top: 1px; }
.tgl-box::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 2px; background: #fff; transition: transform .15s; }
.tgl input:checked + .tgl-box { background: var(--ink); }
.tgl input:checked + .tgl-box::after { transform: translateX(18px); }
.tgl input:focus-visible + .tgl-box { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Wall button. */
.wallbtn { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding: 12px; background: var(--panel); border-radius: var(--r); }
.wallbtn-b { width: 92px; height: 92px; border-radius: 50%; background: #1f6e43; color: #fff; font: 600 19px/1.02 var(--disp); box-shadow: 0 5px 0 #124a2b, 0 7px 14px #0004; transition: transform .08s, box-shadow .08s; touch-action: none; user-select: none; -webkit-user-select: none; }
.wallbtn-b:active, .wallbtn-b.is-held { transform: translateY(4px); box-shadow: 0 1px 0 #124a2b, 0 2px 5px #0004; }
.extras { display: grid; gap: 0; }
.extras .check { margin-top: 8px; }

/* Review. */
.spec { margin: 12px 0 0; border-top: 1px solid var(--line); }
.spec-r { display: grid; grid-template-columns: 34% 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.3; }
.spec dt { color: var(--mute); }
.spec dd { margin: 0; }
.spec-e { font-size: 14.5px; }
.area { display: block; margin-top: 16px; font-weight: 600; }
.area textarea { display: block; width: 100%; margin-top: 5px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); font: 400 16px/1.35 var(--body); resize: vertical; }
.area textarea:focus { outline: 0; border-color: var(--ink); }
.review-acts { display: grid; gap: 6px; margin-top: 16px; }
.project { margin-top: 16px; }
.project h3 { font: 600 22px/1 var(--disp); margin-bottom: 6px; }
.project-r { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }

/* Send. */
.send .st-title { margin-bottom: 8px; }
.send-door { font-weight: 500; margin: 0 0 14px; color: var(--mute); }
.send-doors { margin: 0 0 14px; padding-left: 18px; color: var(--mute); }
.f { display: block; margin-top: 12px; }
.f > span { display: block; font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.f input, .f select { width: 100%; padding: 11px 10px; font: 400 17px/1.2 var(--body); border: 1px solid #b4babf; border-radius: var(--r); background: #fff; color: var(--ink); min-height: 46px; }
.f input[type=file] { padding: 9px; font-size: 15px; }
.f input:focus, .f select:focus { outline: 0; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.f input[aria-invalid=true] { border-color: var(--warn); }
.f-err { display: block; color: var(--warn); font-style: normal; font-size: 14.5px; line-height: 1.25; margin-top: 3px; }
.f-err:empty { display: none; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-hp { position: absolute; left: -9999px; }
.send .fld { margin-top: 16px; }
.form-err { margin-top: 12px; color: var(--warn); font-weight: 500; }
.sent .st-title { font-size: 48px; }
.sent p { margin-top: 10px; }
.sent-q { font-size: 16px; color: var(--mute); }
.sent-q strong { display: block; font: 700 54px/1 var(--disp); color: var(--ink); letter-spacing: .012em; margin-top: 2px; }
.sent-tel { font: 600 34px/1 var(--disp); text-decoration: none; }
.demo { margin-top: 20px; padding: 12px; background: var(--panel); border-left: 3px solid var(--blue); font-size: 15px; }
.demo p { margin: 0 0 8px; }
.demo pre { margin: 0; white-space: pre-wrap; font: 13px/1.4 ui-monospace, Menlo, Consolas, monospace; max-height: 340px; overflow: auto; }

/* Try-on. */
.ty { position: fixed; inset: 0; z-index: 30; background: var(--ink); color: #fff; }
.ty[hidden] { display: none; }
.ty-frame { display: grid; grid-template-columns: 1fr clamp(320px, 26vw, 400px); height: 100%; }
.ty-view { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 0; }
.ty-empty { max-width: 24em; text-align: center; font-size: 20px; padding: 24px; color: #d4d9dd; }
.ty-canvas { position: relative; }
.ty-canvas[hidden], .ty-empty[hidden] { display: none; }
.ty-canvas #ty-photo { width: 100%; height: 100%; user-select: none; }
.ty-door { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.ty-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ty-lines polygon { fill: none; stroke: #fff; stroke-width: 1; stroke-dasharray: 4 4; }
.ty-h { position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; touch-action: none; cursor: grab; border-radius: 50%; }
.ty-h::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-d); box-shadow: 0 1px 6px #0009; }
.ty-side { background: #fff; color: var(--ink); padding: 18px; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.ty-side h2 { font: 600 38px/1 var(--disp); margin-top: 6px; }
.ty-side p { font-size: 16px; line-height: 1.4; }
.ty-close { align-self: flex-start; color: var(--blue-d); text-decoration: underline; text-underline-offset: 3px; }
.ty-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ty-pick:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.ty-range { display: grid; gap: 4px; font-weight: 600; margin-top: 6px; }
.ty-range[hidden], .ty-done[hidden] { display: none; }
.ty-range input { width: 100%; accent-color: var(--ink); }
.ty-done { display: grid; gap: 6px; }

/* Phone on its side: keep the door beside the panel and tighten everything. */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --panel-w: 46vw; }
  .st-util { display: none; }
  .st-logo { padding: 6px 10px 5px 8px; }
  .st-logo img { height: 28px; }
  .st-step { padding: 8px 5px 7px; font-size: 13.5px; }
  .st-body { padding: 10px 14px 14px; }
  .st-title { font-size: 26px; margin-bottom: 8px; }
  .st-foot { padding: 6px 12px; }
  .btn-next { padding: 8px 12px; font-size: 19px; }
  .btn-back { padding: 7px 12px; }
  .st-dock { padding: 0 8px 8px; gap: 4px; }
  .st-caption { padding: 3px 8px; font-size: 14px; }
  .st-cap-size { font-size: 20px; }
  .st-tools { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .tool { padding: 5px 9px; font-size: 13px; min-height: 30px; flex: none; }
  .tool-group { flex: none; }
}

/* Phone: stage on top, panel under it. */
@media (max-width: 899px) and (orientation: portrait), (max-width: 559px) {
  .in-studio #stage-wrap { height: 42svh; bottom: auto; }
  :root { --panel-w: 100%; }
  .st-logo { padding: 7px 10px 6px 8px; }
  .st-logo img { height: 30px; }
  .st-view { inset: 0 0 auto 0; height: 42svh; }
  .st-dock { padding: 0 8px 8px; gap: 5px; }
  .st-caption { padding: 4px 8px; font-size: 15px; }
  .st-cap-size { font-size: 22px; }
  .st-tools { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .st-tools::-webkit-scrollbar { display: none; }
  .tool { padding: 7px 10px; font-size: 13.5px; min-height: 34px; flex: none; }
  .tool-group { flex: none; }
  .st-panel { top: 42svh; left: 0; right: 0; width: 100%; transform: translateY(100%); box-shadow: 0 -1px 0 #0002; }
  .st-step { flex: none; padding: 11px 8px 9px; }
  .st-util { display: none; }
  .st-body { padding: 14px 14px 18px; }
  .st-title { font-size: 30px; margin-bottom: 12px; }
  .st-foot { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .ov-tag { font-size: 16px; padding: 3px 6px; }
  .ty-frame { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .ty-side { max-height: 46vh; }
  .ty-side h2 { font-size: 28px; }
}
