/* 3D 스튜디오 — 토큰만 쓴다(design-tokens.css). 큰 판 하나 + 번호 줄(누르면 큰 판이 바뀐다), 왼쪽에서 넣기·고르기.
   폰: 한 칼럼(넣기 → 받을 것 → 큰 판) · 901px+: 왼쪽 넣기·고르기, 오른쪽 번호 줄 + 큰 판. 세로 스크롤 상자는 페이지 하나(안쪽에 가두지 않는다) */
/* 움직임 토큰 — 관찰한 수치(색·배경 100ms / 묶음 200ms / 큰 것 350~500ms, 곡선 easeInOutCubic)를 에인연 값으로. studio.js 의 타이머도 이 값을 읽는다 */
:root { --t-fast: 100ms; --t-base: 200ms; --t-slow: 350ms; --t-wait: 250ms; --ease: cubic-bezier(.645, .045, .355, 1); --ease-out: cubic-bezier(.22, 1, .36, 1); }
.st-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); }
.st-head-btns { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; margin-bottom: calc((var(--lh-1) * var(--fs-1) - 44px) / 2); }   /* 44px 단추의 중심을 제목 줄에 맞춘다 */
.st-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.st-sh { font-size: var(--fs-2); font-weight: var(--fw-bold); color: var(--c-ink); letter-spacing: -0.015em; margin-bottom: var(--sp-2); }
.st-sh:focus { outline: none; }
.st-wiz { --st-th: 72px; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); padding: var(--sp-4) 24px 0; }
.st-left { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); min-width: 0; align-content: start; }
.st-right { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); min-width: 0; align-content: start; }   /* minmax(0) — 번호 줄이 칸을 밀어 넓히지 않게 */
@media (min-width: 901px) { .st-wiz { grid-template-columns: clamp(280px, 30vw, 340px) minmax(0, 1fr); align-items: start; } }   /* 좁은 창에서는 왼쪽을 줄여 큰 판을 지킨다 */
@media (min-width: 1100px) { .wrap.st-main { width: min(100%, var(--w-max)); } }   /* 큰 판이 주인공 — 이 화면만 넓게 */
@keyframes st-in { from { opacity: 0; translate: 0 var(--sp-2); } }
@keyframes st-fade { from { opacity: 0; } }
.st-msg.say { animation: st-in var(--t-slow) var(--ease-out) backwards; }   /* 상태 글이 바뀌면 떠오른다(studio.js rise) */
#stLiveNav > * { animation: st-fade var(--t-slow) var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 30ms); }   /* 실내기 단추는 순서대로 — 투명도만(번역은 가로 스크롤 상자에 세로 스크롤을 만든다) */
/* 나타나는 것은 떠오른다. #stPickSec 자신과 그 조상에는 걸지 않는다(폰 고정 바의 기준이 바뀐다) */
.st-drop, .st-file, #stPickSec > :not(.st-bar), #stPickM > span, #stEta > span, #stCapT > *, #stCapA > *, .st-set > .wide, .st-run, .st-tail > *, .st-sum > *, .st-jobs, .st-panel, .st-outsec .note { animation: st-in var(--t-slow) var(--ease-out) backwards; }
.bye { opacity: 0; transition: opacity var(--t-base) var(--ease); pointer-events: none; }

/* 큰 판: 조감 그림 → 모형(iframe) → 그림 층. 모형은 숨기지 않고 덮는다(돌아왔을 때 보던 자리 그대로) */
.st-stage { position: relative; min-width: 0; }
.st-live { scroll-margin-top: var(--sp-4); }           /* 붙은 메뉴 높이는 html 의 scroll-padding-top 이 이미 뺀다 */
.st-live-box { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: max(240px, calc(100dvh - var(--nav-h) - 200px)); border: 0; border-radius: var(--r-3); overflow: hidden; background: var(--c-surface-sub); }   /* 가로로 든 폰에서도 큰 판과 번호 줄이 한 화면에 */
.st-live-box > img, .st-live-box > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; transition: opacity var(--t-slow) var(--ease); }
.st-live-box > iframe { opacity: 0; pointer-events: none; }
.st-live-box.on > iframe { opacity: 1; pointer-events: auto; }
.st-live-box.on > img { opacity: 0; }                   /* 모형 바탕이 투명이라 그림은 사라져야 한다 — 띡 바뀌지 않게 겹쳐 넘긴다 */
.st-live-box::after { content: ""; position: absolute; inset: 0 auto auto 0; z-index: 3; width: 40%; height: var(--sp-1); background: var(--c-accent); opacity: 0; pointer-events: none; transition: opacity var(--t-base) var(--ease); }
.st-live-box[aria-busy=true]::after { opacity: 1; transition-delay: var(--t-wait); animation: st-run 1.6s linear infinite; }   /* 큰 그림을 여는 동안 — 빨리 열리면 보이지 않는다 */
@media (prefers-reduced-motion: reduce) { .st-live-box[aria-busy=true]::after { width: 100%; opacity: .4; } }
.st-live-box > .st-tag { position: absolute; top: var(--sp-2); left: var(--sp-2); z-index: 2; margin: 0; transition: opacity var(--t-base) var(--ease), visibility var(--t-base); }
.st-live-box > .st-tag.off { opacity: 0; visibility: hidden; }
.st-pic { position: absolute; inset: 0; z-index: 1; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; background: var(--c-surface-sub); opacity: 0; translate: var(--sp-2) 0;
  transition: opacity var(--t-slow) var(--ease), translate var(--t-slow) var(--ease); }
.st-pic[data-d=p] { translate: calc(-1 * var(--sp-2)) 0; }   /* 앞 번호로 가면 반대쪽에서 */
.st-pic:not(.in) { pointer-events: none; }               /* 걷히는 층이 모형의 첫 누름을 가로채지 않게 */
.st-pic > img { width: 100%; height: 100%; object-fit: contain; }
.st-doc { display: grid; justify-items: center; gap: var(--sp-2); padding: var(--sp-4); text-align: center; }
.st-doc strong { font-size: var(--fs-1); font-weight: var(--fw-bold); letter-spacing: .04em; color: var(--c-ink-sub); }
.st-doc span { font-size: var(--fs-3); color: var(--c-ink-sub); overflow-wrap: anywhere; }
/* 번호 줄: 폰은 큰 판 아래 가로, 901px+ 는 큰 판 왼쪽 세로(큰 판 높이만큼, 끝에서는 페이지로 이어진다) */
.st-rail { position: relative; display: flex; gap: var(--sp-2); min-height: 96px; margin: 0 calc(-1 * var(--sp-1)); padding: var(--sp-3) var(--sp-1) var(--sp-1);
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.st-th { position: relative; flex: none; display: grid; align-content: start; gap: 2px; width: var(--st-th); cursor: pointer;
  animation: st-in var(--t-slow) var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 30ms); }
.st-th.kept { animation: none; }                       /* 다시 그릴 때 이미 있던 칸은 그대로 — 깜빡이지 않는다 */
.st-th input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.st-th .b { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; border: 1px solid var(--c-line); border-radius: var(--r-1); overflow: hidden;
  background: var(--c-surface); font-size: var(--fs-3); font-weight: var(--fw-bold); color: var(--c-ink-sub);
  transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), translate var(--t-base) var(--ease), scale var(--t-fast) var(--ease); }
.st-th .b img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-th .n, .st-th .ai { position: absolute; min-width: 18px; padding: 0 4px; border-radius: var(--r-1); background: var(--c-surface); font-size: var(--fs-4); font-weight: var(--fw-bold);
  line-height: 18px; text-align: center; color: var(--c-ink-sub); font-variant-numeric: tabular-nums; }
.st-th .n { top: 2px; left: 2px; }
.st-th .ai { right: 2px; bottom: 2px; color: var(--c-accent); background: var(--c-accent-bg); }
.st-th .t { font-size: var(--fs-3); color: var(--c-ink-sub); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--t-base) var(--ease), font-weight var(--t-base) var(--ease); }
.st-th.mine { margin-right: var(--sp-2); }
.st-th input:checked + .b { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); translate: 0 calc(-1 * var(--sp-1)); }   /* 고른 칸은 큰 판 쪽으로 */
.st-th input:checked ~ .t { color: var(--c-accent); font-weight: var(--fw-bold); }
.st-th input:focus-visible + .b { outline: 2px solid var(--c-accent); outline-offset: 2px; }
@media (min-width: 901px) {
  .st-stage, .st-under, .st-outsec { padding-left: calc(var(--st-th) + var(--sp-7)); }   /* 번호 줄 자리 — 아래 줄도 큰 판에 맞춘다 */
  .st-live-box { aspect-ratio: 16 / 9; max-height: max(320px, calc(100dvh - var(--nav-h) - 300px)); }   /* 결과 그림 비율 그대로 · 큰 판 + 아래 줄이 한 화면에 */
  #stLiveNav { flex-wrap: wrap; overflow-x: visible; }   /* 넓은 화면은 가로 스크롤 없이 — 실내기가 많을 때만 두 줄 */
  .st-rail { position: absolute; inset: calc(-1 * var(--sp-1)) auto calc(-1 * var(--sp-1)) calc(-1 * var(--sp-1)); width: calc(var(--st-th) + var(--sp-6));
    flex-direction: column; min-height: 0; margin: 0; padding: var(--sp-1); overflow: hidden auto; overscroll-behavior-x: auto; scrollbar-gutter: stable; }
  .st-th.mine { margin: 0 0 var(--sp-2); }
  .st-th input:checked + .b { translate: var(--sp-1) 0; }
  .st-pic { translate: 0 var(--sp-2); }
  .st-pic[data-d=p] { translate: 0 calc(-1 * var(--sp-2)); }
  .st-th .t { font-size: var(--fs-4); }
}
.st-pic.in { opacity: 1; translate: 0 0; }
/* 큰 판 아래: 모형용(안내 + 실내기 버튼)과 그림용(이름 + 크게·저장)을 같은 칸에 겹쳐 둔다 — 바꿔도 아래가 안 밀린다 */
.st-under { display: grid; }
.st-under > * { grid-area: 1 / 1; min-width: 0; transition: opacity var(--t-base) var(--ease), visibility var(--t-base); }
.st-live.pic .st-mdl, .st-live:not(.pic) .st-cap { opacity: 0; visibility: hidden; }
#stLiveMsg, #stCapT { min-height: 1.6em; margin-top: var(--sp-2); }
#stLiveNav, .st-acts { display: flex; align-items: center; gap: var(--sp-2); min-height: 52px; margin: var(--sp-1) -4px 0; padding: 4px; }   /* 버튼이 생겨도 아래가 안 밀리게 높이를 잡아 두고, 초점 테두리가 잘리지 않게 안쪽 여백 */
#stLiveNav { position: relative; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; }
#stLiveNav button { flex: none; }
#stCapT { display: flex; align-items: center; gap: var(--sp-1); }
#stCapT .c { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--fw-semi); color: var(--c-ink); }
#stCapT .w { flex: none; }
#stCapT .w::before { content: "· "; }
#stCapT .st-tag { padding-block: 0; }                    /* AI 표시가 있어도 줄 높이가 같게 */
.st-save { min-height: 44px; padding: 0 var(--sp-5); border-radius: var(--r-1); border: 0; background: var(--c-accent); color: var(--c-surface);
  font: inherit; font-size: var(--fs-3); font-weight: var(--fw-bold); cursor: pointer; }
.st-save:disabled { opacity: .6; cursor: default; }
/* 받기: 큰 판 바로 아래 한 줄(막대 + 상태) */
.st-run { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--sp-3); min-height: 44px; }   /* 막대 · 상태 · [물량] 한 줄(폰은 접힌다) */
.st-steps { flex: none; display: flex; gap: var(--sp-1); width: 96px; margin: 0; padding: 0; list-style: none; }
.st-steps li { position: relative; flex: 1; height: var(--sp-1); border-radius: var(--r-3); overflow: hidden; background: var(--c-line-strong); transition: background-color var(--t-slow) var(--ease); }
.st-steps li[data-s=done] { background: var(--c-accent); }
.st-steps li::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: inherit; background: var(--c-accent); opacity: 0; transition: opacity var(--t-base) var(--ease); animation: st-run 1.6s linear infinite; }
.st-steps li[data-s=now]::after { opacity: 1; }                /* 켜고 끌 때 쓸기가 뚝 사라지지 않고 흐려진다 */
.st-steps.stop li[data-s=now]::after { width: 100%; background: var(--c-up); animation: none; opacity: 1; }   /* 멈춘 막대는 40% 가짜 수치가 아니라 한 칸이 찬 오류 색 */
@media (prefers-reduced-motion: reduce) { .st-steps:not(.stop) li::after { display: none; } .st-steps:not(.stop) li[data-s=now] { background: var(--c-control); } }   /* 움직임 줄이기 — 쓸기 대신 옅은 색 '지금 이 칸' */
@keyframes st-run { from { translate: -100% 0; } to { translate: 250% 0; } }
.st-tail { display: flex; align-items: center; min-height: 44px; flex-wrap: wrap; gap: var(--sp-3); }
.st-msg { font-size: var(--fs-3); color: var(--c-ink-sub); }
.st-msg.err { color: var(--c-up); }
.st-outsec .note, .st-tail .note, .st-out .note { font-size: var(--fs-3); color: var(--c-ink-faint); line-height: 1.6; }
.st-out .note { margin-top: var(--sp-2); }
/* 넣기 칸 */
.st-fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--t-base) var(--ease), opacity var(--t-base) var(--ease); }
.st-fold.off { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
.st-fold-in { min-height: 0; overflow: hidden; }   /* 접히는 칸 — 안쪽 상자의 여백·테두리는 한 겹 더 안에서 자른다 */
.st-drop { display: grid; justify-items: center; align-content: center; gap: var(--sp-2); min-height: 160px; padding: var(--sp-5) var(--sp-4);
  border: 2px dashed var(--c-control); border-radius: var(--r-3); background: var(--c-surface); text-align: center; transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease); }
.st-drop.over { border-color: var(--c-accent); background: var(--c-accent-bg); }   /* 끌어 놓는 중에만 — 초점이 들어왔다고 카드 전체를 바꾸면 보조 단추가 바탕에 묻힌다 */
.st-drop strong { font-size: var(--fs-1); font-weight: var(--fw-bold); color: var(--c-ink); letter-spacing: -0.02em; }
.st-hint { font-size: var(--fs-3); color: var(--c-ink-sub); }
@media (pointer: fine) { .coarse { display: none !important; } }
@media (pointer: coarse) { .st-hint.fine { display: none; } }
.st-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.st-row button { min-height: 44px; padding: 0 var(--sp-4); border-radius: var(--r-1); border: 1px solid transparent;
  background: var(--c-fill); font: inherit; font-size: var(--fs-3); font-weight: var(--fw-bold); color: var(--c-ink-sub); cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.st-row button.primary { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-surface); }
.st-row button.on { border-color: transparent; background: var(--c-accent); color: var(--c-surface); }   /* 고른 것은 번호 칸·받을 것 카드와 같은 두 겹 링 */
.st-file { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border: 1px solid transparent; border-radius: var(--r-2); background: var(--c-surface); }
.st-file img, .st-file .ext { flex: none; width: 56px; height: 56px; border-radius: var(--r-1); object-fit: cover; background: var(--c-surface-sub); }
.st-file .ext { display: grid; place-items: center; font-size: var(--fs-3); font-weight: var(--fw-bold); color: var(--c-ink-sub); }
.st-file .nm { flex: 1; min-width: 0; font-size: var(--fs-3); color: var(--c-ink); overflow-wrap: anywhere; }
.st-file .nm small { display: block; color: var(--c-ink-sub); font-size: var(--fs-3); }
/* 받을 것: 그림으로 고른다 */
.st-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.st-opt { position: relative; display: block; min-width: 0; cursor: pointer; }
.st-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.st-opt-b { display: grid; gap: var(--sp-1); padding: var(--sp-1); border: 1px solid transparent; border-radius: var(--r-2); background: var(--c-surface);
  transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), scale var(--t-fast) var(--ease); }
.st-opt-b .p { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--r-1); overflow: hidden; background: var(--c-surface-sub); }
.st-opt-b img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-opt-b .st-tag { position: absolute; top: var(--sp-1); left: var(--sp-1); margin: 0; }
.st-opt-b .t { padding: var(--sp-1) 0; font-size: var(--fs-3); font-weight: var(--fw-bold); color: var(--c-ink); text-align: center; white-space: nowrap; transition: color var(--t-base) var(--ease); }
.st-opt input:checked + .st-opt-b { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); background: var(--c-accent-bg); }
.st-opt input:checked + .st-opt-b .t { color: var(--c-accent); }
.st-opt input:focus-visible + .st-opt-b { outline: 2px solid var(--c-accent); outline-offset: 2px; }
#stPickM { min-height: 1.6em; margin-top: var(--sp-2); color: var(--c-ink); }
#stPickM > span { display: inline-block; }
#stAlso { color: var(--c-ink-faint); }
.st-set { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--sp-2) var(--sp-3); margin-top: var(--sp-4); }
.st-set .lbl { font-size: var(--fs-3); font-weight: var(--fw-semi); color: var(--c-ink-sub); }
.st-set .st-row { margin-top: 0; }
.st-set .wide { grid-column: 1 / -1; }
.st-set label.wide { margin-top: var(--sp-1); }
.st-set input[type=number] { min-height: 44px; width: 100%; max-width: 16em; padding: 0 var(--sp-3); border-radius: var(--r-1); border: 1px solid var(--c-control);
  background: var(--c-surface); color: var(--c-ink); font: inherit; font-size: 16px /* iOS 확대 방지 예외 */; }
/* 만들기 바: 폰은 maker.css 고정 바, 901px+ 는 왼쪽 열 아래에 붙어 따라온다(열이 화면보다 길어도 주 버튼이 보인다) */
.st-bar { align-items: center; animation: st-in var(--t-slow) var(--ease-out) backwards; }
.st-bar .st-eta { flex: none; font-size: var(--fs-3); color: var(--c-ink-sub); padding-left: var(--sp-1); }
#stEta > span { display: inline-block; }
#stGo { background: var(--c-accent); color: var(--c-surface); }
#stRe { background: var(--c-fill); border: 1px solid transparent; color: var(--c-ink); }
.st-bar button:disabled { opacity: .6; cursor: default; }
#stGo:disabled { opacity: 1; }
@media (min-width: 901px) {
  .st-wiz .action-bar { position: sticky; left: auto; right: auto; bottom: var(--sp-4); z-index: 1; width: auto; margin-top: var(--sp-4); background: var(--c-surface);
    backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: var(--sh-1); }
}
@media (max-width: 900px) { .st-wiz:not([data-file="1"]):not([data-set="1"]) #stPickSec { display: none; } }   /* 폰은 도면을 넣은 뒤에 받을 것 — 말로 설정을 바꾸면 펼친다(data-set) */
@media (min-width: 769px) and (max-width: 900px) { .st-wiz .action-bar { bottom: var(--sp-3); } }   /* 탭바가 없는 폭 — 바가 허공에 뜨지 않게 */
/* 물량 · 확인 필요: 두 칼럼 아래 폭 전체 */
.st-sum { padding: 0 24px; scroll-margin-top: var(--sp-4); }
.st-sum:empty { display: none; }
.st-sum:focus { outline: none; }
.st-out { margin-top: var(--sp-3); }
.st-out h3 { margin: var(--sp-5) 0 var(--sp-2); font-size: var(--fs-2); font-weight: var(--fw-bold); color: var(--c-ink); }
.st-gal { display: grid; gap: var(--sp-3); }
@media (min-width: 640px) { .st-gal { grid-template-columns: 1fr 1fr; } }
.st-gal figure { margin: 0; border: 0; border-radius: var(--r-2); overflow: hidden; background: var(--c-surface-sub); }
.st-gal img { display: block; width: 100%; height: auto; }
.st-gal figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3); font-size: var(--fs-3); color: var(--c-ink-sub); background: var(--c-surface); }
.st-gal figcaption a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-weight: var(--fw-bold); color: var(--c-accent); }
.st-tag { display: inline-block; margin-right: var(--sp-1); padding: 2px var(--sp-2); border-radius: var(--r-1); font-size: var(--fs-4); line-height: var(--lh-4); font-weight: var(--fw-bold);   /* 번호 줄 'AI' 와 같은 크기 */
  color: var(--c-accent); background: var(--c-accent-bg); }
.st-sumhead { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin: var(--sp-5) 0 var(--sp-2); }
.st-sumhead h3 { margin: 0; }
.st-table { width: 100%; border-collapse: collapse; font-size: var(--fs-3); }
.st-table th, .st-table td { padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.st-table th { color: var(--c-ink-faint); font-weight: var(--fw-semi); white-space: nowrap; background: var(--c-surface-sub); border-bottom-color: var(--c-line-strong); }
.st-table tr:last-child td { border-bottom: 0; }
.st-table td:nth-child(4) { font-variant-numeric: tabular-nums; text-align: right; }   /* 수량은 오른쪽 맞춤 */
.st-table th:nth-child(4) { text-align: right; }
.st-wrap { overflow-x: auto; overscroll-behavior-x: contain; border: 0; border-radius: var(--r-2); background: var(--c-surface); }
/* 내 작업: 창 */
.st-dlg { width: min(calc(100% - 2 * var(--sp-4)), 420px); max-height: min(70svh, 560px); margin: auto; padding: 0; border: 0; border-radius: var(--r-3);
  background: var(--c-surface); color: var(--c-ink); box-shadow: var(--sh-2); opacity: 0; translate: 0 var(--sp-2);
  transition: opacity var(--t-base) var(--ease), translate var(--t-base) var(--ease), overlay var(--t-base) allow-discrete, display var(--t-base) allow-discrete; }
.st-dlg[open] { display: flex; flex-direction: column; opacity: 1; translate: 0 0; }
@starting-style { .st-dlg[open] { opacity: 0; translate: 0 var(--sp-2); } }
/* 구형(Chrome<122·Safari<17.4)은 ::backdrop 이 :root 변수를 못 받아 대체값(black)을 둔다 */
.st-dlg::backdrop { background: color-mix(in srgb, var(--c-ink, black) 40%, transparent); opacity: 0; transition: opacity var(--t-base) var(--ease), overlay var(--t-base) allow-discrete, display var(--t-base) allow-discrete; }
.st-dlg[open]::backdrop { opacity: 1; }
@starting-style { .st-dlg[open]::backdrop { opacity: 0; } }   /* 뒷막도 창과 함께 어두워지고 걷힌다 */
#stJobsBody { min-height: calc(3 * 48px); }   /* 목록이 올 때 창이 한 번에 커지지 않게 */
.st-dlg header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-4) var(--sp-2); }
.st-dlg header .st-sh { margin: 0; }
.st-dlg-in { min-height: 0; padding: var(--sp-2) var(--sp-4) var(--sp-4); overflow-y: auto; overscroll-behavior: contain; }
.st-jobs { display: grid; gap: 0; }
.st-jobs button { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 48px; padding: 0 var(--sp-3); text-align: left;
  border-radius: 0; border: 0; border-top: 1px solid var(--c-line); background: transparent; font: inherit; font-size: var(--fs-3); color: var(--c-ink); cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.st-jobs button:first-child { border-top: 0; }
.st-jobs .s { color: var(--c-ink-sub); white-space: nowrap; }
/* 사용법: 창 — 그림 + 이름 + 한 문장, 한 번에 한 단계(셋) · 아래에 점과 [이전][다음] */
.st-tour-dlg { width: min(calc(100% - 2 * var(--sp-4)), 460px); max-height: min(88svh, 640px); }
.st-tour { display: grid; }
.st-tour-p { display: grid; gap: var(--sp-2); }
.st-tour-p[hidden] { display: none; }
@keyframes st-slide { from { opacity: 0; translate: calc(var(--dx, 0) * var(--sp-4)) 0; } }
.st-tour-p:not([hidden]) { animation: st-slide var(--t-slow) var(--ease-out) backwards; }   /* [다음]은 오른쪽에서, [이전]은 왼쪽에서(열 때는 제자리에서 떠오른다) */
.st-tour-art img { transition: opacity var(--t-slow) var(--ease); }
.st-tour-art img.wait { opacity: 0; }   /* 그림이 오기 전에는 회색 판 — 오면 떠오른다 */
.st-tour-art { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; aspect-ratio: 16 / 9; border-radius: var(--r-2); background: var(--c-surface-sub); overflow: hidden; }
.st-tour-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-tour-art.plan img { object-fit: contain; }           /* 도면은 잘리지 않게 */
.st-tour-art.trio { grid-template: none / repeat(3, minmax(0, 1fr)); gap: var(--sp-2); padding: var(--sp-3); }
.st-tour-art.trio img { height: auto; aspect-ratio: 16 / 10; border-radius: var(--r-1); }
.st-tour-p h3 { margin-top: var(--sp-2); font-size: var(--fs-1); font-weight: var(--fw-bold); letter-spacing: -0.02em; color: var(--c-ink); }
.st-tour-p p { font-size: var(--fs-3); line-height: var(--lh-3); color: var(--c-ink-sub); word-break: keep-all; overflow-wrap: break-word; }   /* 뜻 단위로 줄을 바꾼다 */
.st-tour-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) var(--sp-4) var(--sp-4); }   /* 스크롤 영역 밖 — 낮은 화면에서도 단추가 보인다 */
.st-tour-foot .st-row { flex-wrap: nowrap; margin-top: 0; }
.st-tour-dots { display: flex; gap: var(--sp-1); }
.st-tour-dots span { width: var(--sp-2); height: var(--sp-2); border-radius: var(--r-3); background: var(--c-ink-faint); transition: width var(--t-base) var(--ease), background-color var(--t-base) var(--ease); }   /* 색만으로 알리지 않는다 — 지금 단계는 길다 */
.st-tour-dots span.on { width: var(--sp-5); background: var(--c-ink); }
@media (max-height: 520px) { .st-tour-art { aspect-ratio: 3 / 1; } }   /* 가로로 든 폰 — 그림을 낮춘다(넘치면 본문만 안에서 스크롤) */
@media (max-width: 640px) { .st-tour-p p { min-height: calc(var(--lh-3) * 2em); } }   /* 단계마다 문장 줄 수가 달라도 창 높이가 뛰지 않게 */
/* 말로 시키기 — 입력 카드 + 예시 문장 알약 + 응답 줄(정해진 말을 알아듣는다). 구조·동작만 참고: 카드 하나, 아래에 눌러 보는 예시 */
html[data-embed] .st-start, html[data-embed] .st-recent { display: none; }
.st-ask { padding: var(--sp-4) 24px 0; }
.st-ask-card { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1); background: var(--c-surface); border: 1px solid var(--c-control); border-radius: var(--r-2);   /* 안쪽 단추 r-1 6 + 여백 4 = 10 — 같은 중심의 둥글기 */
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.st-ask-card:focus-within { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
.st-ask-card input { flex: 1; min-width: 0; min-height: 44px; padding: 0 var(--sp-3); border: 0; background: transparent; color: var(--c-ink); font: inherit; font-size: 16px /* iOS 확대 방지 예외 */; }
.st-ask-card input:focus { outline: none; }
.st-main input::placeholder { color: var(--c-ink-faint); opacity: 1; }   /* 브라우저 기본(연한 회색)은 대비가 모자란다 */
.st-main .fineprint { font-size: var(--fs-4); }
.st-ask-send { min-height: 44px; padding: 0 var(--sp-5); border: 0; border-radius: var(--r-1); background: var(--c-accent); color: var(--c-surface); font: inherit; font-size: var(--fs-3); font-weight: var(--fw-bold); cursor: pointer; }
.st-ask-chips { display: flex; gap: var(--sp-2); margin: var(--sp-1) calc(-1 * var(--sp-1)) 0; padding: var(--sp-1); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.st-chip { flex: none; min-height: 44px; padding: 0 var(--sp-4); border: 1px solid transparent; border-radius: var(--r-3); background: var(--c-fill); color: var(--c-ink); font: inherit; font-size: var(--fs-3); font-weight: var(--fw-semi); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), scale var(--t-fast) var(--ease); }
.st-chip:focus-visible, .st-ask-send:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.st-ask-log { margin: var(--sp-2) 0 0; display: grid; gap: var(--sp-1); }
.st-ask-log:empty { display: none; }
.st-ask-log p { margin: 0; font-size: var(--fs-3); line-height: var(--lh-3); overflow-wrap: anywhere; word-break: keep-all; animation: st-in var(--t-slow) var(--ease-out) backwards; }
.st-ask-me { justify-self: end; padding: var(--sp-2) var(--sp-3); border: 0; border-radius: var(--r-2); background: var(--c-accent-bg); color: var(--c-ink); }
.st-ask-bot { color: var(--c-ink-sub); }
.st-ask-go { display: flex; align-items: center; min-height: 44px; margin-top: var(--sp-1); padding: 0 var(--sp-3); border: 0; border-radius: var(--r-1); background: var(--c-fill); color: var(--c-ink); font: inherit; font-size: var(--fs-sub); font-weight: var(--fw-semi); cursor: pointer; -webkit-tap-highlight-color: transparent; }   /* 답 아래 [설정 보기] — 회색 단추 */
.st-ask-go:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
html[data-embed] .st-ask { display: none; }   /* 호스트 화면 안에서는 조용히 */
/* 사진 손질(기존 도구 화면) */
.st-tools { padding: var(--sp-7) 24px 0; }
.st-panel { margin-top: var(--sp-4); padding: var(--sp-5) 0 0; border-top: 1px solid var(--c-line); }   /* 상자 대신 선 하나 — 안의 캔버스·사진 상자가 이중 상자가 되지 않게 */
.st-panel h3 { font-size: var(--fs-1); font-weight: var(--fw-bold); letter-spacing: -0.02em; color: var(--c-ink); }
.st-panel .sub { margin-top: 4px; font-size: var(--fs-3); color: var(--c-ink-sub); }
.st-panel .back { margin-bottom: var(--sp-3); }
.st-form { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.st-form label { display: grid; gap: 4px; font-size: var(--fs-3); font-weight: var(--fw-semi); color: var(--c-ink-sub); }
.st-form input[type=text] { min-height: 44px; padding: 0 var(--sp-3); border-radius: var(--r-1); border: 1px solid var(--c-control); background: var(--c-surface);
  font: inherit; font-size: 16px /* iOS 확대 방지 예외 */; color: var(--c-ink); }
.st-form input[type=file] { font-size: var(--fs-3); }
.st-doit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-top: var(--sp-4); }
.st-doit button { min-height: 48px; padding: 0 var(--sp-5); border-radius: var(--r-1); border: 0; background: var(--c-accent); color: var(--c-surface);
  font: inherit; font-size: var(--fs-3); font-weight: var(--fw-bold); cursor: pointer; }
.st-doit button:disabled { opacity: .6; cursor: default; }
.st-canvas { position: relative; margin-top: var(--sp-3); border: 0; border-radius: var(--r-2); overflow: hidden; background: var(--c-surface-sub); }
.st-canvas canvas { display: block; width: 100%; height: auto; }
.st-canvas canvas + canvas { position: absolute; inset: 0; touch-action: none; }   /* 칠 캔버스만 손가락을 잡는다 — 다른 캔버스 위에서는 세로 밀기가 페이지로 */
.st-sliders { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
@media (min-width: 900px) { .st-sliders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-sliders label { display: grid; grid-template-columns: 5em 1fr; align-items: center; gap: var(--sp-2); min-height: 44px; font-size: var(--fs-3); color: var(--c-ink-sub); }
.st-row button:focus-visible, .st-jobs button:focus-visible, .st-doit button:focus-visible, .st-bar button:focus-visible, .st-save:focus-visible,
.st-acts a:focus-visible, .st-tail button:focus-visible, .st-dlg button:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
/* 단추 질감 한 가지 — 흰 단추: hover 는 배경·테두리가 한 단계, 눌림은 한 단계 더 / 채운 단추: hover 는 어둡게(.94), 눌림은 더 어둡게(.88)와 .98 로 눌림. 번쩍이지 않는다 */
.st-main .btn-line, .st-dlg .btn-line, .st-row button, .st-jobs button, .st-save, .st-doit button, .st-bar button, .st-ask-send { -webkit-tap-highlight-color: transparent;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), filter var(--t-fast) var(--ease), scale var(--t-fast) var(--ease), opacity var(--t-base) var(--ease); }
@media (hover: hover) {
  .st-chip:hover { background: var(--c-fill-strong); }
  .st-main .btn-line:hover, .st-dlg .btn-line:hover, .st-row button:not(.primary):not(.on):hover, .st-jobs button:hover, #stRe:not(:disabled):hover { background: var(--c-fill-strong); color: var(--c-ink); }
  .st-opt:hover input:not(:checked) + .st-opt-b, .st-th:hover input:not(:checked) + .b { background: var(--c-surface-sub); }
  .st-opt:hover input:not(:checked) + .st-opt-b .t, .st-th:hover input:not(:checked) ~ .t { color: var(--c-ink); }
  .st-row button.primary:hover, .st-ask-send:hover, .st-save:not(:disabled):hover, .st-doit button:not(:disabled):hover, #stGo:not(:disabled):hover { filter: brightness(.94); }
}
.st-main .btn-line:active, .st-dlg .btn-line:active, .st-row button:not(.primary):not(.on):active, .st-jobs button:active, #stRe:not(:disabled):active { background: var(--c-bg); }
.st-row button.primary:active, .st-ask-send:active, .st-save:not(:disabled):active, .st-doit button:not(:disabled):active, #stGo:not(:disabled):active { filter: brightness(.88); scale: .98; }
.st-th:active .b, .st-opt:active .st-opt-b, .st-chip:active { scale: .97; }
/* 흰 단추(btn-line)는 한 규격 — 44px · 같은 안쪽 여백·글자(터치 노트북·가로 태블릿도 같게) */
.st-main .btn-line, .st-dlg .btn-line { min-height: 44px; padding: 0 var(--sp-4); font-size: var(--fs-3); font-weight: var(--fw-bold); }
/* 채운 단추도 한 규격 — 글자·모서리는 같고 높이만 44(만들기 바 안은 48) */
.st-save, .st-doit button, .st-row button.primary, .st-bar button { font-size: var(--fs-3); font-weight: var(--fw-bold); border-radius: var(--r-1); }
.st-save:disabled, .st-doit button:disabled, #stGo:disabled { opacity: 1; background: var(--c-accent-line); color: var(--c-ink-sub); cursor: default; }   /* 비활성도 읽히게 — 흰 글자 3.07 → 4.5 이상 */
@media (hover: hover) { .st-jobs button:hover { border-color: var(--c-line); } }   /* 눌러 볼 때 구분선은 그대로, 배경만 */
@media (max-width: 768px) {
  .st-wiz, .st-tools, .st-sum, .st-ask, .st-apps { padding-left: 16px; padding-right: 16px; }
  .st-panel { padding: var(--sp-4) 0 0; }
  .st-canvas[style] { max-width: min(100%, calc(60svh * var(--ar))); margin-inline: auto; }   /* 칠 캔버스 위아래에 페이지를 밀 자리를 남긴다 */
}
@media (forced-colors: active) {
  .st-drop.over, .st-row button.on, .st-opt input:checked + .st-opt-b, .st-th input:checked + .b, .st-steps li[data-s=done] { outline: 3px solid Highlight; outline-offset: -3px; }
  .st-tour-dots span { forced-color-adjust: none; background: GrayText; }
  .st-tour-dots span.on { background: Highlight; }
}
/* 공동 브랜드(파트너) · 임베드 — 호스트의 로고·색만 보이고 제공사는 아래 한 줄(?partner=<이름>, ?embed=1). 첫 그림 전에 partner-boot.js 가 표시를 건다 */
html[data-partner] .tnav, html[data-partner] .tabbar, html[data-embed] .tnav, html[data-embed] .tabbar, html[data-embed] .page-head > div:first-child, html[data-embed] #stMine { display: none; }   /* 임베드는 제목 없이 [사용법]만 남긴다 */
html[data-embed] .st-head { padding-top: var(--sp-2); padding-bottom: 0; }
html[data-embed] .st-head-btns { margin-bottom: 0; }   /* 제목 칸이 빠진 머리줄 — 단추 하나에 위 여백 32px 가 남지 않게 */
html[data-partner], html[data-embed] { --nav-h: 0px; }
html[data-partner] .page-head .sec-label { display: none; }   /* 에인연 사이트의 분류 이름 — 호스트 화면에는 없다 */
html[data-partner] body.has-tabbar, html[data-embed] body.has-tabbar { padding-bottom: 0; }
.pt-bar { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) max(24px, calc((100% - var(--w-max)) / 2 + 24px)); background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.pt-bar[hidden], .pt-foot[hidden] { display: none; }
.pt-logo { display: inline-flex; align-items: center; min-height: 44px; }
.pt-logo img { display: block; height: 24px; width: auto; }
.pt-logo:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.pt-auth { display: flex; align-items: center; margin-left: auto; }
.pt-foot { padding: var(--sp-2) 24px var(--sp-7); text-align: center; font-size: var(--fs-3); }
.pt-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-ink-faint); text-decoration: none; }
@media (max-width: 768px) {
  .pt-bar { padding-inline: 16px; } .pt-foot { padding-inline: 16px; }
  /* 폰의 만들기 바(maker.css)는 탭바 위 70px — 파트너·임베드는 탭바가 없으니 바닥에 붙인다(769~900px 은 위 규칙이 이미 12px) */
  html[data-partner] .st-wiz .action-bar, html[data-embed] .st-wiz .action-bar { bottom: calc(var(--sp-3) + env(safe-area-inset-bottom)); }
}
@media (max-width: 900px) {   /* 고정 바가 있는 폭 — 바 높이(70)만큼 페이지 아래를 비워 '에인연 제공' 링크가 가려지지 않게 */
  html[data-partner] body:has(.st-bar:not([hidden])), html[data-embed] body:has(.st-bar:not([hidden])) { padding-bottom: calc(var(--sp-3) + 70px + var(--sp-3) + env(safe-area-inset-bottom)); }
}

/* ═══ 토스식 첫 화면 (02-spec · 11-18) — 처음 화면(이어서·새로 시작) ↔ 만들기 화면(넣기·받을 것·받기·예시) ═══
   폰: 왼쪽 칸이 통째로 바뀐다(처음 화면에는 큰 판 대신 예시 카드) · 901px+: 오른쪽 큰 판은 그대로, 왼쪽 칸만 바뀐다.
   카드 = 흰 면 r20(선·그림자 없음), 목록 행 = 아이콘 틀 40 + 제목 17/600 + 설명 15 + 꺾쇠, 행 전체가 눌림 영역 */
.st-main[data-mode=home] :is(#stIn, #stPickSec, .st-back) { display: none; }
.st-main[data-mode=make] :is(.st-recent, .st-start, .st-sample, .st-q, .st-tools, .st-tip) { display: none; }
.st-recent:has(.st-recent-e) { display: none; }
.st-main[data-mode=home] .st-left { gap: var(--sp-3); }   /* 카드 사이 12 */          /* 저장한 도면이 없으면 '이어서' 카드는 없다(빈 안내를 첫 화면에 두지 않는다) */
@media (max-width: 900px) {
  .st-main[data-mode=home] :is(.st-right, .st-sum) { display: none; }
  .st-main[data-mode=make] .st-wiz[data-view=in]:not([data-file="1"]):not([data-sample="1"]) .st-right { display: none; }   /* 올리기 단계는 도면 카드 하나 */
}
@media (min-width: 901px) { .st-main .st-left > .st-sample .st-sample-p { display: none; } .st-main .st-left > .st-sample { flex-wrap: nowrap; padding: var(--sp-2); } .st-main .st-left > .st-sample .st-go-t { padding: var(--sp-1); } .st-left { grid-column: 1; grid-row: 1; } .st-right { grid-column: 2; grid-row: 1; } }   /* 데스크톱은 오른쪽 큰 판이 곧 예시 그림 — 왼쪽은 그림 없이 [예시 평면 둘러보기] 행만(누르면 예시에 말로 요청할 수 있다) · 칸 자리는 grid 로 고정 */
.st-left > :is(.st-recent, .st-start, .st-sample, #stIn, #stPickSec), .st-back, .st-q { animation: st-in var(--t-slow) var(--ease-out) backwards; }   /* 화면이 바뀌면 띡 바뀌지 않고 차례로 떠오른다 */
.st-left > .st-start { --i: 1; animation-delay: calc(var(--i, 0) * 30ms); }
.st-left > .st-sample { --i: 2; animation-delay: calc(var(--i, 0) * 30ms); }

/* 머리: 위치 이름(17/600) + [사용법] · 아래 큰 질문 26/700 */
.st-head { align-items: center; padding-top: var(--sp-5); padding-bottom: 0; }
.st-head-btns .btn-line { min-height: 44px; padding: 0 var(--sp-3); background: transparent; color: var(--c-ink-sub); font-size: var(--fs-sub); font-weight: var(--fw-semi); }
@media (hover: hover) { .st-head-btns .btn-line:hover { background: var(--c-fill); } }
.st-head .page-title { font-size: var(--fs-3); font-weight: var(--fw-semi); color: var(--c-ink-sub); letter-spacing: -0.01em; }
.st-head-btns { margin-bottom: 0; }
.st-q { padding: var(--sp-1) 24px 0; font-size: var(--fs-1); font-weight: var(--fw-bold); line-height: var(--lh-1); letter-spacing: -0.03em; color: var(--c-ink); }
.st-main[data-mode=make] .st-head { padding-bottom: 0; }
.st-main[data-mode=make] .st-head .page-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* 만들기 화면: 위 줄은 [← 처음으로] 하나(제목은 읽기 도구에 남긴다) */
.st-back { display: inline-flex; align-items: center; gap: var(--sp-1); min-height: 44px; margin: 0 0 0 calc(-1 * var(--sp-2)); padding: 0 var(--sp-2);
  border: 0; border-radius: var(--r-1); background: transparent; font: inherit; font-size: var(--fs-3); font-weight: var(--fw-semi); color: var(--c-ink); cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), scale var(--t-slow) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.st-back::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("/assets/icons/arrow-left.svg") center / contain no-repeat; mask: url("/assets/icons/arrow-left.svg") center / contain no-repeat; }
.st-back:active { background: var(--c-fill); scale: .96; transition-duration: var(--t-fast); }

/* 카드 묶음: 이어서 · 새로 시작 · 예시 */
.st-start, .st-recent, .st-sample { display: block; padding: var(--sp-2); border-radius: var(--r-2); background: var(--c-surface); }
.st-start > .st-sh, .st-recent-h { padding: var(--sp-3) var(--sp-3) var(--sp-1); }
.st-start > .st-sh, .st-recent-h .st-sh { margin: 0; font-size: var(--fs-2); }
.st-recent-h { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.st-more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-1); font-size: var(--fs-sub); font-weight: var(--fw-semi); color: var(--c-ink-sub); }
.st-more::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("/assets/icons/caret-right.svg") center / contain no-repeat; mask: url("/assets/icons/caret-right.svg") center / contain no-repeat; }
.st-gos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
/* 목록 행 — 행 전체가 링크. 누르면 바탕이 한 단계 진해지고 .98 로 눌린다 */
.st-go, .st-pj, .st-sample { display: flex; align-items: center; gap: var(--sp-3); min-height: 72px; padding: var(--sp-3); border: 0; border-radius: var(--r-1);
  color: var(--c-ink); text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-fast) var(--ease), scale var(--t-slow) var(--ease-out); }
.st-go::after, .st-pj::after, .st-sample::after { content: ""; flex: none; width: 20px; height: 20px; margin-left: auto; background: var(--c-ink-faint);
  -webkit-mask: url("/assets/icons/caret-right.svg") center / contain no-repeat; mask: url("/assets/icons/caret-right.svg") center / contain no-repeat; }
@media (hover: hover) { .st-go:hover, .st-pj:hover, .st-sample:hover { background: var(--c-surface-sub); } }
.st-go:active, .st-pj:active, .st-sample:active { background: var(--c-fill); scale: .98; transition-duration: var(--t-fast); }
.st-go:focus-visible, .st-pj:focus-visible, .st-more:focus-visible, .st-sample:focus-visible, .st-back:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
.st-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-1); background: var(--c-accent-bg); }
.st-ico::before { content: ""; width: 24px; height: 24px; background: var(--c-accent); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.i-magnifying-glass { --i: url("/assets/icons/magnifying-glass-fill.svg"); }
.i-question { --i: url("/assets/icons/question-fill.svg"); }
/* 처음 방문: 창 대신 막지 않는 행 하나 */
.st-tip { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 64px; padding: var(--sp-3) var(--sp-4); border: 0; border-radius: var(--r-2); background: var(--c-accent-bg); color: var(--c-ink); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: filter var(--t-fast) var(--ease), scale var(--t-slow) var(--ease-out); animation: st-in var(--t-slow) var(--ease-out) backwards; }
.st-tip .st-ico { background: var(--c-surface); }
.st-tip::after { content: ""; flex: none; width: 18px; height: 18px; margin-left: auto; background: var(--c-accent); -webkit-mask: url("/assets/icons/caret-right.svg") center / contain no-repeat; mask: url("/assets/icons/caret-right.svg") center / contain no-repeat; }
.st-tip:active { filter: brightness(.96); scale: .98; transition-duration: var(--t-fast); }
.st-tip:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.i-file-arrow-up { --i: url("/assets/icons/file-arrow-up-fill.svg"); }
.i-pencil-ruler { --i: url("/assets/icons/pencil-ruler-fill.svg"); }
.i-image { --i: url("/assets/icons/file-arrow-up-fill.svg"); }
.i-blueprint { --i: url("/assets/icons/pencil-ruler-fill.svg"); }
.st-go-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-go-t strong { font-size: var(--fs-3); font-weight: var(--fw-semi); color: var(--c-ink); }
.st-go-t span { font-size: var(--fs-sub); color: var(--c-ink-faint); }
/* 이어서: 썸네일 56 + 이름 + 고친 날 · 맨 위 행은 '이어서 편집' */
.st-recent-l { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.st-recent-e { padding: var(--sp-3); font-size: var(--fs-sub); color: var(--c-ink-faint); }
.st-pj-th { flex: none; display: block; width: 56px; height: 56px; border-radius: var(--r-1); background: var(--c-bg); overflow: hidden; }
.st-pj-th svg { display: block; width: 100%; height: 100%; }
.st-pj-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-pj-t strong { font-size: var(--fs-3); font-weight: var(--fw-semi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-pj-t span { font-size: var(--fs-sub); color: var(--c-ink-faint); }
.st-pj-go { flex: none; margin-left: auto; font-size: var(--fs-sub); font-weight: var(--fw-semi); color: var(--c-accent); }
.st-pj:has(.st-pj-go)::after { display: none; }
.st-pj-th .th-room { fill: var(--c-accent-bg); stroke: none; } .st-pj-th .th-wall { fill: none; stroke: var(--c-ink-sub); stroke-linecap: square; } .st-pj-th .th-col { fill: var(--c-ink-sub); } .st-pj-th .th-ac { fill: var(--c-accent); }   /* 썸네일 SVG(projects/thumb.js) — 내 프로젝트와 같은 색 */
/* 예시 카드(폰 처음 화면): 그림 16:9 + 행 하나 */
.st-sample { flex-wrap: wrap; padding: var(--sp-2) var(--sp-2) var(--sp-2); }
.st-sample-p { position: relative; display: block; flex: 1 0 100%; aspect-ratio: 16 / 9; border-radius: var(--r-1); overflow: hidden; background: var(--c-bg); }
.st-sample-p img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-sample-p .st-tag { position: absolute; top: var(--sp-2); left: var(--sp-2); margin: 0; }
.st-sample .st-go-t { flex: 1; padding: var(--sp-2) var(--sp-1) var(--sp-1); }
.st-sample::after { align-self: center; }

/* 넣기: 점선 상자 대신 흰 카드. 끌어 놓는 중에만 강조색 링 */
.st-drop { gap: var(--sp-2); min-height: 0; padding: var(--sp-7) var(--sp-5) var(--sp-6); border: 2px solid transparent; border-radius: var(--r-2); background: var(--c-surface); }
.st-drop .st-ico { width: 56px; height: 56px; }
.st-drop .st-ico::before { width: 32px; height: 32px; }
.st-drop strong { font-size: var(--fs-1); letter-spacing: -0.03em; }
.st-drop .st-hint { font-size: var(--fs-sub); color: var(--c-ink-sub); }
.st-drop #stAiNote { font-size: var(--fs-4); color: var(--c-ink-faint); }
.st-drop-btns { justify-content: center; width: 100%; }
.st-drop-btns button { min-height: 48px; }
.st-drop-btns .primary { flex: 1 1 100%; }
.st-drop-btns .coarse { flex: 1 1 0; background: var(--c-accent-bg); color: var(--c-accent-ink); }
.st-file { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-2); }
.st-file .nm { font-size: var(--fs-3); font-weight: var(--fw-semi); }
.st-file .nm small { font-size: var(--fs-sub); font-weight: var(--fw-reg); color: var(--c-ink-faint); }
/* 받을 것: 그림 카드 3칸 대신 세로 목록 행(그림 96×60 · 이름 · 고르면 연한 강조 바탕 + 체크) */
#stPickSec > .st-sh { margin: var(--sp-2) 0 var(--sp-3); font-size: var(--fs-1); letter-spacing: -0.03em; }
.st-pick { grid-template-columns: minmax(0, 1fr); gap: 0; padding: var(--sp-2); border-radius: var(--r-2); background: var(--c-surface); }
.st-opt-b { grid-template-columns: 96px minmax(0, 1fr) 24px; align-items: center; gap: var(--sp-3); padding: var(--sp-2); border: 0; border-radius: var(--r-1); background: transparent; }
.st-opt-b .p { aspect-ratio: 8 / 5; }
.st-opt-b .t { padding: 0; text-align: left; font-size: var(--fs-3); font-weight: var(--fw-semi); white-space: normal; }
.st-opt-b::after { content: ""; width: 24px; height: 24px; border-radius: var(--r-3); box-shadow: inset 0 0 0 2px var(--c-control); transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.st-opt input:checked + .st-opt-b { border-color: transparent; box-shadow: none; background: var(--c-accent-bg); }
.st-opt input:checked + .st-opt-b::after { box-shadow: none; background: var(--c-accent); -webkit-mask: url("/assets/icons/check-circle-fill.svg") center / contain no-repeat; mask: url("/assets/icons/check-circle-fill.svg") center / contain no-repeat; }
.st-opt:active .st-opt-b { scale: .98; }
#stAlso { margin-top: var(--sp-2); padding: 0 var(--sp-1); font-size: var(--fs-4); }
/* 설정: 고르기 줄은 세그먼트(회색 판 위 흰 칸) */
.st-set { margin-top: var(--sp-4); padding: var(--sp-4); border-radius: var(--r-2); background: var(--c-surface); }
.st-set .lbl { font-size: var(--fs-sub); }
.st-set .st-row { display: inline-flex; flex-wrap: nowrap; justify-self: start; gap: 0; padding: var(--sp-1); border-radius: var(--r-1); background: var(--c-fill); }
.st-set .st-row button { min-height: 40px; background: transparent; color: var(--c-ink-sub); border-radius: var(--r-1); font-size: var(--fs-sub); font-weight: var(--fw-semi); transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.st-set .st-row button { font-weight: var(--fw-reg); color: var(--c-ink-faint); }
.st-set .st-row button.on { background: var(--c-surface); color: var(--c-ink); box-shadow: var(--sh-3); font-weight: var(--fw-bold); }   /* 고른 칸은 흰 칸 + 진한 굵은 글자(색만으로 알리지 않는다) */
/* 고르기 칩(실내기 줄·예시 문장): 회색 칩, 고르면 진한 채움(강조색 채움 아님) */
.st-row button.on { background: var(--c-ink); color: var(--c-surface); }
#stLiveNav button { min-height: 40px; border-radius: var(--r-3); background: var(--c-surface); color: var(--c-ink-sub); font-weight: var(--fw-semi); }
#stLiveNav button.on { background: var(--c-ink); color: var(--c-surface); }
/* 만들기 바: 유리·흐림 띠 없이 흰 단색 + 위 1px 선. 폰은 탭바 위에 붙고, 단추는 폭 가득 56 */
.st-wiz .action-bar.st-bar { background: var(--c-surface); box-shadow: 0 -1px 0 var(--c-line-strong); -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; gap: var(--sp-2); }
.st-bar button { min-height: 56px; border-radius: var(--r-1); font-size: var(--fs-3); font-weight: var(--fw-semi); }
#stGo { flex: 1; }
.st-wiz .action-bar.st-bar { flex-wrap: wrap; }
.st-bar .st-eta { flex: 1 0 100%; padding: 0 var(--sp-1); }
.st-bar .st-eta:empty { display: none; }
#stRe:not([hidden]) { flex: 0 0 34%; }
.st-bar .st-eta { font-size: var(--fs-4); }
@media (min-width: 901px) { .st-wiz .action-bar.st-bar { border-radius: var(--r-2); box-shadow: var(--sh-2); } }
@media (max-width: 900px) { .st-wiz .action-bar.st-bar { left: 0; right: 0; bottom: 0; padding: var(--sp-3) var(--sp-5) calc(var(--sp-3) + env(safe-area-inset-bottom)); border: 0; border-radius: 0; } }
@media (max-width: 768px) { .st-wiz .action-bar.st-bar { bottom: calc(57px + env(safe-area-inset-bottom)); padding-bottom: var(--sp-3); } }   /* 탭바(56 + 선 1) 바로 위 */
/* 말로 시키기: 큰 판 아래(모형을 연 뒤에 쓰는 것) */
.st-wiz .st-ask { padding: var(--sp-4) 0 0; }
.st-ask-card { border-radius: var(--r-1); }
.st-ask-card input { min-height: 48px; font-size: var(--fs-3); }
.st-ask-send { min-height: 44px; font-size: var(--fs-sub); font-weight: var(--fw-semi); }
.st-chip { min-height: 40px; background: var(--c-surface); color: var(--c-ink-sub); font-size: var(--fs-sub); }
/* 사진 손질: 카드 하나 + 도구 칩 */
.st-tools { margin: var(--sp-3) 24px 0; padding: var(--sp-4) var(--sp-4) var(--sp-4); border-radius: var(--r-2); background: var(--c-surface); }
.st-tools > .st-sh { margin: 0 0 var(--sp-1) var(--sp-1); }
.st-tools > .st-row { margin-top: var(--sp-2); }
.st-tools > .st-row button { border-radius: var(--r-3); }
.st-main .fineprint { padding: var(--sp-5) 24px 0; font-size: var(--fs-4); color: var(--c-ink-faint); }
@media (max-width: 768px) {
  .st-q { padding-inline: 16px; }
  .st-head { padding: var(--sp-4) 16px 0; }
  .st-tools { margin-inline: 16px; }
  .st-main .fineprint { padding-inline: 16px; }
}

/* ═══ 2회차(11-18 독립 검토 반영) ═══ */
/* 폰 위 막대: 하위 화면이라 사이트 막대(로고·로그인)를 빼고 '← 3D 스튜디오 · 사용법' 한 줄. 만들기 화면은 '← 처음으로' */
.st-up { display: none; }
@media (max-width: 768px) {
  body:has(#stMain) .tnav { display: none; }
  .st-head { position: sticky; top: 0; z-index: 60; min-height: 56px; padding: 0 var(--sp-2); background: var(--c-bg); }
  .st-head > div:first-child { display: flex; align-items: center; gap: var(--sp-1); }
  .st-main[data-mode=home] .st-up { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-1); color: var(--c-ink); -webkit-tap-highlight-color: transparent; }
  .st-up::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("/assets/icons/arrow-left.svg") center / contain no-repeat; mask: url("/assets/icons/arrow-left.svg") center / contain no-repeat; }
  .st-up:active { background: var(--c-fill); }
  .st-up:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
  .st-head .page-title { color: var(--c-ink); }
  .st-q { padding-top: var(--sp-3); }
}
/* 만들기 화면(폰): 흐름 화면 — 흰 바탕, 카드 대신 여백, 왼쪽 큰 제목 */
@media (max-width: 900px) {
  body:has(#stMain[data-mode=make]) { background: var(--c-surface); }
  .st-main[data-mode=make] .st-head { background: var(--c-surface); }
  .st-main[data-mode=make] :is(.st-drop, .st-file, .st-pick, .st-set) { background: transparent; }
  .st-main[data-mode=make] .st-drop { justify-items: start; padding: var(--sp-4) 0 var(--sp-2); text-align: left; }
  .st-main[data-mode=make] .st-drop-btns { justify-content: flex-start; }
  .st-main[data-mode=make] .st-pick, .st-main[data-mode=make] .st-set { padding-inline: 0; }
}
/* 창(사용법·내 작업): 폰은 아래에서 올라오는 시트(좌우·아래 8, r24, 딤 20%) */
.st-dlg::backdrop { background: color-mix(in srgb, var(--c-ink, black) 20%, transparent); }
@media (max-width: 768px) {
  .st-dlg { position: fixed; inset: auto 0 0 0; width: auto; max-width: none; max-height: 88dvh; margin: 0 var(--sp-2) var(--sp-2); translate: 0 var(--sp-6); }
  @starting-style { .st-dlg[open] { opacity: 0; translate: 0 var(--sp-6); } }
}
/* 폰에서 누르는 곳 44 이상 — 칩·세그먼트·실내기 줄 */
@media (pointer: coarse) { .st-row button, .st-chip, .st-set .st-row button, #stLiveNav button { min-height: 44px; } }
/* 강제 색상(윈도 고대비): 마스크 아이콘이 바탕색으로 지워지지 않게 글자색으로 */
@media (forced-colors: active) {
  .st-ico::before, .st-go::after, .st-pj::after, .st-sample::after, .st-tip::after, .st-back::before, .st-up::before, .st-more::after { forced-color-adjust: none; background: CanvasText; }
  .st-opt input:checked + .st-opt-b::after { forced-color-adjust: none; background: Highlight; }
}

/* 말로 요청하기: 어느 도면에 적용되는지 정해진 뒤에만 보인다(GPT 04) — 처음 화면·도면 없는 넣기 단계에서는 숨긴다(Tab 으로도 닿지 않게) */
.st-main[data-mode=home] .st-ask, .st-main[data-mode=make] .st-wiz[data-view=in]:not([data-sample="1"]):not([data-file="1"]) .st-ask { display: none; }
.st-ask-h { margin: 0 0 var(--sp-2) var(--sp-1); font-size: var(--fs-sub); font-weight: var(--fw-semi); color: var(--c-ink-sub); }

.st-project-all { display:inline-flex; align-items:center; min-height:44px; color:var(--c-accent); font-weight:600; align-self:flex-start }
.st-main[data-mode=make] .st-project-all,.st-left:has(.st-pj) .st-project-all,html[data-embed] .st-project-all { display:none }

#stImageRead { margin-block: var(--sp-4); font-size: var(--fs-sub); line-height: 1.6; color: var(--c-ink-sub); }
#stReadChoice { min-inline-size: 0; margin-block-start: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--c-control); border-radius: var(--r-1); overflow-wrap: anywhere; }
#stReadChoice legend { color: var(--c-ink); font-weight: var(--fw-bold); }
#stReadChoice p + p { margin-block-start: var(--sp-2); }
#stReadChoice label { display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; margin-block: var(--sp-2); color: var(--c-ink); }
#stReadChoice input { flex-shrink: 0; width: 20px; height: 20px; }
