/* MOTA Garage Dream Studio. A precision instrument: mono labels, hairlines, minute ticks.
   Orange only on the one primary action of each step (and the brand dot). */

[data-view="studio"] { --st-sig: var(--signal); }
[data-view="studio"] * { min-width: 0; }
[data-view="studio"] .view-inner { display: block; }

/* ---------- header ---------- */
.st-top { padding-top: calc(72px + clamp(40px, 6vw, 88px)); padding-bottom: 0; background: var(--ink); border-bottom: 1px solid var(--line); }
.st-top .display { margin: 14px 0 20px; }
.st-top .st-lede { max-width: 34ch; margin-bottom: 14px; }
.st-top .small { max-width: 62ch; }

/* ---------- step indicator: a real sequence ---------- */
.st-steps { margin-top: clamp(28px, 4vw, 48px); scroll-margin-top: 88px; }
.st-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.st-steps li { position: relative; border-top: 1px solid var(--line-strong); }
.st-steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 1px solid var(--steel-500); }
.st-steps button {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start; width: 100%; text-align: left;
  min-height: 72px; padding: 22px 12px 18px 0; background: none; border: 0; cursor: pointer; color: var(--steel-500);
  font-family: var(--f-display); font-stretch: 87.5%; font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.st-steps__n { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.06em; }
.st-steps button:disabled { cursor: default; color: #66726c; }
.st-steps button:not(:disabled) { color: var(--steel-300); }
.st-steps button:not(:disabled):hover { color: var(--bone); }
.st-steps li.is-done::before { background: var(--steel-300); border-color: var(--steel-300); }
.st-steps li.is-current { border-top-color: var(--bone); border-top-width: 2px; margin-top: -1px; }
.st-steps li.is-current::before { background: var(--bone); border-color: var(--bone); top: -6px; }
.st-steps li.is-current button { color: var(--bone); }
.st-steps li.is-done { border-top-color: var(--steel-300); }
@media (max-width: 720px) {
  .st-steps__t { font-size: 0.625rem; letter-spacing: 0.06em; overflow-wrap: anywhere; }
  .st-steps button { padding-right: 6px; }
}

/* ---------- panels ---------- */
.st-body { padding-block: clamp(40px, 6vw, 80px) clamp(120px, 12vw, 160px); }
.st-panel[hidden] { display: none; }
.st-panel { scroll-margin-top: 96px; }
.st-panel > .display { margin: 10px 0 clamp(24px, 3vw, 40px); }
.st-panel h2:focus { outline: none; }
.st-kicker { display: block; }
.st-sim { color: var(--signal); }
.st-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: clamp(24px, 3vw, 40px); }
.st-note { max-width: 52ch; }
.st-msg { min-height: 0; margin-top: 12px; font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.04em; color: var(--steel-100); }
.st-msg:empty { display: none; }

/* ---------- form controls ---------- */
[data-view="studio"] input[type="text"], [data-view="studio"] textarea {
  box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: rgba(10, 21, 17, 0.5); color: var(--steel-100); font-family: var(--f-mono); font-size: 16px; letter-spacing: 0.02em;
}
[data-view="studio"] textarea { resize: vertical; line-height: 1.5; }
[data-view="studio"] input[type="text"]::placeholder, [data-view="studio"] textarea::placeholder { color: #75817b; }
[data-view="studio"] input[type="text"]:focus-visible, [data-view="studio"] textarea:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-color: var(--signal); }
[data-view="studio"] input[readonly] { color: var(--steel-500); }
.st-field { display: flex; flex-direction: column; gap: 8px; }
.st-field--wide { grid-column: 1 / -1; }

/* ---------- 01 tiles ---------- */
.st-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.st-tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; box-sizing: border-box;
  min-height: clamp(150px, 16vw, 200px); padding: 22px 22px 24px; background: var(--dial-2); border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--steel-300); cursor: pointer; font: inherit; transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.st-tile::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 7px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 8px); opacity: 0.8; }
.st-tile__n { margin-top: 6px; }
.st-tile__t { font-family: var(--f-display); font-stretch: 112%; font-weight: 300; text-transform: uppercase; font-size: clamp(1.15rem, 1.6vw, 1.45rem); letter-spacing: 0.02em; line-height: 1.1; color: var(--steel-100); }
.st-tile__d { font-size: var(--t-small); line-height: 1.5; max-width: 30ch; }
.st-tile:hover { border-color: var(--steel-300); background: #1a3329; }
.st-tile:focus-within:has(:focus-visible), .st-tile:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.st-tile[aria-pressed="true"], .st-tile.is-on { border-color: var(--bone); background: #1a3329; }
.st-tile[aria-pressed="true"]::after, .st-tile.is-on::after { content: ""; position: absolute; right: 18px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--bone); }
.st-tile.is-over { border-color: var(--signal); background: #17302a; border-style: dashed; }
@media (max-width: 720px) { .st-tiles { grid-template-columns: minmax(0, 1fr); } .st-tile { min-height: 0; } }

.st-source { margin-top: clamp(20px, 3vw, 36px); }
.st-photo { max-width: 640px; }
.st-photo__frame { aspect-ratio: 3 / 2; background: var(--ink); border: 1px solid var(--line); overflow: hidden; }
.st-photo__frame img { width: 100%; height: 100%; object-fit: contain; }
.st-photo figcaption { margin-top: 10px; }
.st-text { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }

/* Upload buttons: the upload tile carries a real button (the whole tile also opens the picker and takes a drop). */
.st-upload { min-height: 44px; padding: 0 18px; gap: 10px; background: rgba(237, 231, 217, 0.06); border-color: var(--steel-300); color: var(--bone); }
.st-upload:hover { background: rgba(237, 231, 217, 0.12); }
.st-tile .st-upload { margin-top: auto; }
.st-tile--upload:focus-within:has(:focus-visible) { outline: none; } /* its button shows the focus ring */
.st-upload__opt { font-family: var(--f-mono); font-stretch: 100%; font-weight: 400; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: none; color: var(--steel-300); }
.st-refs { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.st-refs__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.st-refs__hint { margin: 0; max-width: 40ch; }
.st-refs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.st-refs__list:empty { display: none; }
.st-refs__item { position: relative; width: 132px; }
.st-refs__item img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line-strong); background: var(--ink); }
.st-refs__item span { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 0.6875rem; color: var(--steel-300); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-refs__rm { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%;
  background: rgba(10, 21, 17, 0.86); color: var(--bone); font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; }
.st-refs__rm:hover { border-color: var(--bone); }
.st-text.is-over textarea { border-color: var(--signal); border-style: dashed; }

/* Direction: what the description set */
.st-understood { margin: 0 0 clamp(24px, 3.4vw, 40px); padding: 18px 20px; border: 1px solid var(--line-strong); border-left: 2px solid var(--signal); background: var(--dial-2); max-width: 760px; }
.st-understood[hidden] { display: none; }
.st-understood .cap { margin: 0 0 10px; }
.st-understood__list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-understood__list li { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--t-small); color: var(--steel-100); }
.st-understood .small { margin: 0; }

/* ---------- 02 reading ---------- */
.st-read { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.st-scan { position: relative; aspect-ratio: 3 / 2; background: var(--ink); border: 1px solid var(--line); overflow: hidden; }
.st-scan img { width: 100%; height: 100%; object-fit: contain; }
.st-scan__text { margin: 0; width: 100%; height: 100%; box-sizing: border-box; padding: clamp(18px, 3vw, 36px); display: flex; align-items: center;
  font-family: var(--f-voice); font-style: italic; font-weight: 300; font-size: clamp(1.1rem, 2vw, 1.6rem); line-height: 1.35; color: var(--bone); overflow: hidden; }
.st-scan__text[hidden], .st-scan img[hidden] { display: none; }
.st-scan__line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--signal); box-shadow: 0 0 14px 2px rgba(143, 200, 216, 0.55); opacity: 0; pointer-events: none; }
.st-scan.is-scanning .st-scan__line { opacity: 1; animation: st-sweep 1.6s linear forwards; }
@keyframes st-sweep { from { top: 0; } to { top: calc(100% - 2px); } }
.st-scan__c { position: absolute; width: 22px; height: 22px; border: 0 solid var(--signal); pointer-events: none; }
.st-scan__c--tl { left: 12px; top: 12px; border-width: 2px 0 0 2px; }
.st-scan__c--tr { right: 12px; top: 12px; border-width: 2px 2px 0 0; }
.st-scan__c--bl { left: 12px; bottom: 12px; border-width: 0 0 2px 2px; }
.st-scan__c--br { right: 12px; bottom: 12px; border-width: 0 2px 2px 0; }
.st-read__status { margin-top: 12px; color: var(--signal); }
.st-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-top: 14px; }
.st-example { margin-top: 12px; }
@media (max-width: 960px) { .st-read { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .st-fields { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 03 direction ---------- */
.st-set { border: 0; padding: 0; margin: 0 0 clamp(28px, 4vw, 44px); min-width: 0; }
.st-set legend { padding: 0; margin-bottom: 14px; }
.st-set:disabled { opacity: 0.4; }
.st-machine { margin-bottom: 32px; padding: 16px 18px; border: 1px solid var(--line-strong); background: var(--dial-2); border-radius: var(--radius); }
.st-machine[hidden] { display: none; }

.st-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.st-opt { position: relative; display: block; }
.st-opt label {
  display: flex; flex-direction: column; gap: 6px; box-sizing: border-box; min-height: 88px; padding: 16px 18px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.st-opt label:hover { border-color: var(--steel-300); }
.st-opt input:checked + label { border-color: var(--bone); background: var(--dial-2); box-shadow: inset 0 0 0 1px var(--bone); }
.st-opt input:focus-visible + label { outline: 2px solid var(--orange); outline-offset: 3px; }
.st-opt input:disabled + label { cursor: not-allowed; opacity: 0.4; }
.st-line__name { font-family: var(--f-display); font-stretch: 112%; font-weight: 300; letter-spacing: 0.04em; text-transform: uppercase; font-size: 1.05rem; color: var(--steel-500); }
.st-line__name b { font-weight: 500; color: var(--bone); }
.st-line__voice { font-family: var(--f-voice); font-style: italic; font-weight: 300; font-size: 1.05rem; line-height: 1.25; color: var(--steel-300); }
.st-finishes, .st-moods { display: flex; flex-wrap: wrap; gap: 10px; }
.st-opt--chip label { flex-direction: row; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel-300); }
.st-opt--chip input:checked + label { color: var(--bone); }
.st-sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); flex: none; }
.st-sw--steel { background: linear-gradient(135deg, #e4e8e6, #8e9893 55%, #d3d8d5); }
.st-hex { color: var(--steel-500); }
@media (max-width: 860px) { .st-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .st-line__voice { font-size: 0.95rem; } .st-opt label { padding: 14px; } }

/* switch (checkbox) */
.st-switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: var(--t-small); color: var(--steel-100); }
.st-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.st-switch__box { position: relative; flex: none; width: 38px; height: 22px; border: 1px solid var(--steel-500); border-radius: 11px; transition: background 0.3s var(--ease), border-color 0.3s var(--ease); }
.st-switch__box::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--steel-300); transition: transform 0.3s var(--ease), background 0.3s var(--ease); }
.st-switch input:checked + .st-switch__box { border-color: var(--bone); background: rgba(237, 231, 217, 0.14); }
.st-switch input:checked + .st-switch__box::after { transform: translateX(16px); background: var(--bone); }
.st-switch input:focus-visible + .st-switch__box { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- 04 refine ---------- */
.st-refine { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.st-stage {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden; border: 1px solid var(--line); background:
    radial-gradient(ellipse at 50% 85%, #1d3a2e 0%, rgba(16, 34, 27, 0) 60%), var(--ink);
}
.st-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.st-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.st-fallback[hidden] { display: none; }
.st-fallback img { width: 100%; height: 100%; object-fit: contain; }
.st-fallback img[hidden], .st-fallback__blank[hidden] { display: none; }
.st-fallback__blank { position: absolute; inset: 0; }
.st-fallback__note { position: absolute; left: 14px; bottom: 12px; margin: 0; padding: 6px 10px; background: rgba(10, 21, 17, 0.88); border: 1px solid var(--line-strong); color: var(--signal); }
.st-ref { position: absolute; left: 12px; top: 12px; width: clamp(84px, 14%, 132px); margin: 0; background: rgba(10, 21, 17, 0.8); border: 1px solid var(--line-strong); padding: 4px; z-index: 2; }
.st-ref[hidden] { display: none; }
.st-ref img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.st-ref figcaption { font-size: 9px; padding-top: 3px; }
.st-busy { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; padding: 14px; background: rgba(10, 21, 17, 0.8); overflow: hidden; }
.st-busy[hidden] { display: none; }
.st-busy .cap { color: var(--signal); margin: 0; }
.st-busy__line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--signal); box-shadow: 0 0 14px 2px rgba(143, 200, 216, 0.5); animation: st-sweep 1.4s linear infinite; }
.st-views { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.st-chip {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; box-sizing: border-box; padding: 0 16px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--steel-300);
  font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.06em; text-transform: uppercase; transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.st-chip:hover:not(:disabled) { border-color: var(--bone); color: var(--bone); }
.st-chip[aria-pressed="true"] { background: var(--steel-100); border-color: var(--steel-100); color: var(--ink); }
.st-chip:disabled { opacity: 0.4; cursor: not-allowed; }
.st-stage__note { margin-top: 14px; text-transform: none; letter-spacing: 0.03em; line-height: 1.55; max-width: 70ch; }
.st-summary { margin-top: 8px; color: var(--steel-100); line-height: 1.6; }

.st-concepts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.st-concept { display: flex; flex-direction: column; gap: 8px; padding: 6px 6px 10px; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; text-align: left; color: var(--steel-300); font: inherit; }
.st-concept:hover { border-color: var(--steel-300); }
.st-concept[aria-pressed="true"] { border-color: var(--bone); box-shadow: inset 0 0 0 1px var(--bone); }
.st-concept:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.st-concept__img { aspect-ratio: 8 / 5; background: var(--ink); overflow: hidden; display: block; position: relative; }
.st-concept__img img { width: 100%; height: 100%; object-fit: cover; }
.st-concept__img.blueprint-grid { display: flex; align-items: center; justify-content: center; padding: 8px; box-sizing: border-box; }
.st-concept__ph { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); text-align: center; line-height: 1.4; }
.st-concept__pend { background: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0) 100%) 0 0 / 200% 100% , var(--ink); animation: st-shim 1.4s linear infinite; }
@keyframes st-shim { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.st-concept__cap { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.45; padding: 0 4px; }
.st-concept__cap b { display: block; font-weight: 500; color: var(--steel-100); font-size: 11px; }
.st-concept__alt { display: block; margin-top: 4px; color: var(--signal); }
.st-regen { margin-top: 16px; }
@media (max-width: 720px) { .st-concepts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-stage { aspect-ratio: 1 / 1; } }
@media (min-width: 1100px) and (min-height: 820px) { .st-refine__stage { position: sticky; top: 88px; } }

.st-block { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.st-block:last-of-type { border-bottom: 0; }
.st-block__h { display: block; margin: 0 0 14px; font-weight: 400; }
.st-parts, .st-variants .st-vgroup__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.st-variants { margin-top: 18px; display: grid; gap: 18px; }
.st-vgroup__h { display: block; margin-bottom: 10px; }
.st-chip .st-sw { margin-right: 8px; }
.st-ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.st-ask__out { margin-top: 12px; color: var(--steel-300); min-height: 1.5em; }
.st-meter { display: flex; gap: 6px; height: 22px; align-items: flex-end; margin-bottom: 12px; }
.st-meter span { flex: 1 1 0; height: 12px; border-left: 1px solid var(--steel-500); max-width: 3px; }
.st-meter span:nth-child(4n+1) { height: 22px; }
.st-meter span.is-used { border-left: 3px solid var(--bone); }
.st-meter { gap: 0; justify-content: space-between; }
.st-meter span { flex: 0 0 3px; }
.st-meter__msg { margin-top: 12px; color: var(--steel-100); }
.st-logbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; margin-bottom: 6px; }
.st-logbar .st-block__h { margin: 0; }
.st-log { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; border-top: 1px solid var(--line); }
.st-log:empty { display: none; }
.st-log li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); color: var(--steel-100); }
.st-log .mono { color: var(--steel-500); }
.st-log .st-log__cost { grid-column: 2 / -1; color: var(--steel-300); display: none; }
.st-log.show-cost .st-log__cost { display: block; }
.st-log__empty[hidden] { display: none; }
.st-costbox { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line-strong); background: var(--dial-2); display: grid; gap: 6px; }
.st-costbox[hidden] { display: none; }
.st-costbox strong { color: var(--bone); font-weight: 500; }
.st-costbox .cap { text-transform: none; line-height: 1.5; }

/* ---------- 05 the sheet ---------- */
.st-sheet { position: relative; padding: clamp(20px, 3vw, 40px); border: 1px solid rgba(143, 200, 216, 0.5); color: var(--signal); }
.st-sheet::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(143, 200, 216, 0.3); pointer-events: none; }
.st-sheet .cap { color: var(--signal); }
.st-sheet__views { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(16px, 3vw, 40px); align-items: end; }
.st-sv__frame { aspect-ratio: 1200 / 640; border: 1px solid rgba(143, 200, 216, 0.3); display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgba(13, 31, 42, 0.5); }
.st-sv--sub .st-sv__frame { aspect-ratio: 640 / 420; }
.st-sv__frame img { width: 100%; height: 100%; object-fit: contain; }
.st-sv__frame img[hidden], .st-ph[hidden] { display: none; }
.st-sv figcaption { margin-top: 8px; }
.st-ph { margin: 0; padding: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-align: center; text-transform: uppercase; color: var(--signal); }
.st-sheet__h { display: block; margin: clamp(24px, 3vw, 40px) 0 12px; font-weight: 400; }
.st-table { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.03em; color: var(--steel-100); }
.st-table th { text-align: left; font-weight: 400; text-transform: uppercase; color: var(--signal); padding: 10px 14px 10px 0; border-bottom: 1px solid rgba(143, 200, 216, 0.5); }
.st-table td { padding: 10px 14px 10px 0; border-bottom: 1px solid rgba(143, 200, 216, 0.2); vertical-align: top; }
.st-table td:first-child { text-transform: uppercase; color: var(--signal); }
.st-table .tbc { margin-left: 8px; }
@media (max-width: 720px) {
  .st-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .st-table, .st-table tbody, .st-table tr, .st-table td { display: block; width: 100%; box-sizing: border-box; }
  .st-table tr { padding: 10px 0; border-bottom: 1px solid rgba(143, 200, 216, 0.3); }
  .st-table td { border: 0; padding: 2px 0; display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px; }
  .st-table td::before { content: attr(data-label); color: var(--steel-500); text-transform: uppercase; }
  .st-sheet__views { grid-template-columns: minmax(0, 1fr); }
  .st-sv--sub { max-width: 70%; }
}
.st-sheet__foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(20px, 4vw, 56px); align-items: end; margin-top: 8px; }
.st-notes ul { list-style: none; margin: 0; padding: 0; font-size: var(--t-small); color: var(--steel-100); }
.st-notes li { padding: 8px 0; border-bottom: 1px solid rgba(143, 200, 216, 0.2); }
.st-notes li:first-child { border-top: 1px solid rgba(143, 200, 216, 0.2); }
.st-tb { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); border: 1px solid rgba(143, 200, 216, 0.6); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(10, 21, 17, 0.35); }
.st-tb dt, .st-tb dd { margin: 0; padding: 8px 12px; border-bottom: 1px solid rgba(143, 200, 216, 0.25); }
.st-tb dt { color: var(--signal); border-right: 1px solid rgba(143, 200, 216, 0.25); }
.st-tb dd { color: var(--steel-100); overflow-wrap: anywhere; }
.st-tb dt:nth-last-of-type(1), .st-tb dd:last-of-type { border-bottom: 0; }
.st-tb .st-tb__wide { grid-column: 1 / -1; border-right: 0; color: var(--signal); text-align: center; }
@media (max-width: 860px) { .st-sheet__foot { grid-template-columns: minmax(0, 1fr); } }

.st-send { margin-top: clamp(24px, 3vw, 40px); }
.st-send .st-actions { margin-top: 0; }
.st-form { display: grid; gap: 18px; max-width: 560px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line-strong); background: var(--dial-2); border-radius: var(--radius); }
.st-form[hidden], .st-confirm[hidden], .st-send .st-actions[hidden] { display: none; }
.st-form .st-actions { margin-top: 4px; }
.st-confirm { max-width: 62ch; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--bone); display: grid; gap: 14px; background: var(--dial-2); }
.st-confirm:focus { outline: none; }
.st-confirm .st-actions { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  .st-scan.is-scanning .st-scan__line, .st-busy__line, .st-concept__pend { animation: none; }
}

@media (max-width: 960px) {
  .st-refine { grid-template-columns: minmax(0, 1fr); }
  .st-refine__stage { position: static; }
}

/* ---------- real-bike base choice, notes, swatch placeholders ---------- */
.st-bases { display: flex; flex-wrap: wrap; gap: 10px; }
.st-opt--base label { gap: 2px; flex-direction: column; align-items: flex-start; justify-content: center; padding: 8px 18px; min-height: 52px; }
.st-opt--base input:checked + label { color: var(--bone); }
.st-base__brand { font-weight: 500; color: var(--bone); letter-spacing: 0.08em; }
.st-base__model { font-size: 10px; letter-spacing: 0.05em; color: var(--steel-300); }
.st-base__hint { margin-top: 12px; }
.st-base-note { margin-top: 14px; text-transform: none; letter-spacing: 0.03em; line-height: 1.55; color: var(--signal); }
.st-base-note[hidden] { display: none; }
.st-vnote { flex-basis: 100%; margin: 0 0 4px; }
.st-concept__sw { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.st-concept__sw i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); }
