/* 타일짱 사이트 스타일. 1부: 디자인 시스템 프로토타입(마케팅/디자인/prototype/tilezzang.css) 그대로. 2부: 사이트 전용 추가. */
/* 타일짱 디자인 시스템 v1 — "글레이즈 라이브러리(Glaze Library)"
   토큰·컴포넌트 프로토타입. 사이트 적용 시 site/app/static/css/style.css 의 :root 를 이 토큰으로 교체.
   패턴은 ../patterns/patterns.css (.tp .tp-*) 를 함께 불러온다. */

:root {
  /* 바탕 */
  --chalk: #F4F3EF;      /* 기본 배경. 베이지가 아닌 저채도 초크 화이트 */
  --paper: #FFFFFF;      /* 카드·입력 */
  --stone: #E9E8E3;      /* 보조 섹션 */
  --line: #D6D5CF;       /* 장식용 구분선(텍스트·컨트롤 경계엔 쓰지 않음) */
  --line-strong: #7C827E;/* 입력·컨트롤 경계(3:1 이상) */
  /* 글자 */
  --ink: #121714;        /* 본문·기본 버튼 · 초크 위 16.3:1 */
  --ink-2: #3A413D;      /* 보조 본문 9.4:1 */
  --muted: #59605C;      /* 캡션 5.8:1 (stone 위 5.3:1) */
  --on-ink: #F4F3EF;
  --on-ink-muted: #A7AEA9; /* 잉크 위 8.0:1 */
  /* 유약 컬러(브랜드) */
  --emerald: #1F6E59;    /* 브랜드 키컬러 · 링크 · 선택 상태 5.5:1 */
  --emerald-deep: #134A3C;
  --yolk: #E9AE35;       /* 포인트 · 잉크 배경 위 CTA(글자는 잉크) */
  --cobalt: #2C4FA3;
  --celadon: #A9C6B5;
  --blush: #E2B3A3;
  --oxblood: #7A2E28;
  --err: #B3261E;
  /* 타이포 */
  --f-display: "Hahmlet", "Noto Serif KR", serif;
  --f-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-latin: "Instrument Serif", "Hahmlet", serif;
  /* 간격(4px 기반) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --wrap: 1320px;
  --gutter: 16px;
  --radius: 2px;        /* 타일처럼 거의 각진 모서리 */
  --radius-pill: 999px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--chalk); color: var(--ink); font-family: var(--f-body);
  font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ── 타이포 ───────────────────────────── */
.display, h1, h2 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.045em; line-height: 1.14; margin: 0; }
h1 { font-size: clamp(2.3rem, 9.6vw, 4.3rem); }
@media (min-width: 1024px) { h1 { font-size: clamp(3.2rem, 4.8vw, 4.3rem); } }
h2 { font-size: clamp(1.75rem, 4.4vw, 3.1rem); }
h3 { font-family: var(--f-body); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 .35em; line-height: 1.4; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--ink-2); line-height: 1.75; max-width: 34em; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.latin { font-family: var(--f-latin); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.caption { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.num { font-family: var(--f-latin); font-style: italic; font-weight: 400; }

/* ── 로고 ─────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-type { display: flex; flex-direction: column; line-height: 1; }
.logo-ko { font-family: var(--f-display); font-weight: 600; font-size: 1.36rem; letter-spacing: -0.05em; }
.logo-en { font-size: .54rem; font-weight: 600; letter-spacing: .32em; margin-top: 4px; color: var(--muted); }

/* ── 버튼 ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius-pill); border: 1px solid var(--ink);
  background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: var(--emerald-deep); border-color: var(--emerald-deep); }
.btn-ghost:hover { background: var(--ink); color: var(--on-ink); }
.btn-yolk { background: var(--yolk); border-color: var(--yolk); color: var(--ink); }
.btn-yolk:hover { background: #f2c25a; }
.btn-on-ink { border-color: var(--on-ink); color: var(--on-ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--stone); border-color: var(--stone); color: var(--muted); cursor: not-allowed; }
.textlink { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; color: var(--ink); }
.textlink:hover { color: var(--emerald); }

/* ── 칩 ───────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 6px;
  border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--paper);
  font: inherit; font-size: .92rem; font-weight: 500; color: var(--ink); cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.chip .sw { position: relative; overflow: hidden; width: 28px; height: 28px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.chip .sw .sw-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip.static { cursor: default; padding: 0 16px; }

/* ── 헤더 ─────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(244, 243, 239, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: none; gap: 30px; font-size: .95rem; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn-quote { display: none; }
.menu-btn { width: 44px; height: 44px; border: 0; background: none; display: grid; place-content: center; gap: 6px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--ink); }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .header-actions .btn-quote { display: inline-flex; }
}

/* ── 섹션 ─────────────────────────────── */
.section { padding: var(--s8) 0; }
@media (min-width: 1024px) { .section { padding: var(--s10) 0; } }
.section-ink { background: var(--ink); color: var(--on-ink); }
.section-ink .lead, .section-ink .caption { color: var(--on-ink-muted); }
.section-ink .kicker { color: var(--on-ink-muted); }
.section-stone { background: var(--stone); }
.section-head { display: grid; gap: var(--s4); margin-bottom: var(--s7); }
@media (min-width: 1024px) {
  .section-head { grid-template-columns: 7fr 5fr; align-items: end; gap: var(--s7); margin-bottom: var(--s8); }
  .section-head .lead { margin: 0; justify-self: end; }
}

/* ── 히어로 ───────────────────────────── */
.hero { padding: var(--s6) 0 var(--s7); }
.hero-grid { display: grid; gap: var(--s6); }
.hero-copy h1 { margin: var(--s4) 0 var(--s5); }
.hero-copy h1 em { font-style: normal; color: var(--emerald); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: var(--s5); }
.hero-fine { margin-top: var(--s5); font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hero-fine span::before { content: "·"; margin-right: 8px; color: var(--line-strong); }
.hero-fine span:first-child::before { content: none; }

/* 샘플 월(hero의 타일 보드) */
.sample-wall { display: grid; gap: 6px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 64px; }
.sample-wall .tile { position: relative; overflow: hidden; background-color: var(--stone); }
.sample-wall .tile .tp { position: absolute; inset: -2px; transition: transform 1.2s var(--ease); }
.sample-wall .tile:hover .tp { transform: scale(1.06); }
.sample-wall .tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 1; background: rgba(244,243,239,.94); color: var(--ink);
  font-size: .72rem; font-weight: 600; letter-spacing: -.01em; padding: 5px 9px; border-radius: 2px; line-height: 1.2;
}
.sample-wall .tag i { font-family: var(--f-latin); font-style: italic; font-weight: 400; margin-right: 6px; color: var(--muted); }
.t-a { grid-column: 1 / 5; grid-row: span 4; }
.t-b { grid-column: 5 / 7; grid-row: span 2; }
.t-c { grid-column: 5 / 7; grid-row: span 2; }
.t-d { grid-column: 1 / 3; grid-row: span 2; }
.t-e { grid-column: 3 / 7; grid-row: span 2; }
.sample-wall .t-f, .sample-wall .t-g { display: none; }
@media (max-width: 1023px) {
  .hero { padding-top: var(--s4); }
  .sample-wall { order: -1; grid-auto-rows: 36px; gap: 5px; }
  .sample-wall .tp { --tp-scale: .6 !important; }
  .sample-wall .tag { left: 6px; bottom: 6px; font-size: .68rem; padding: 3px 7px; }
  .board-note { text-align: left; margin-top: 2px; }
}
.board-note { grid-column: 1 / -1; margin: 6px 0 0; font-size: .74rem; color: var(--muted); text-align: right; }
@media (min-width: 1024px) {
  .hero { padding: var(--s8) 0 var(--s9); }
  .hero-grid { grid-template-columns: 11fr 13fr; gap: var(--s8); align-items: center; }
  .sample-wall { grid-auto-rows: 92px; gap: 8px; }
  .t-a { grid-column: 1 / 4; grid-row: 1 / 6; }
  .t-b { grid-column: 4 / 7; grid-row: 1 / 3; }
  .t-c { grid-column: 4 / 6; grid-row: 3 / 6; }
  .sample-wall .t-f { display: block; grid-column: 6 / 7; grid-row: 3 / 6; }
  .t-d { grid-column: 1 / 3; grid-row: 6 / 8; }
  .t-e { grid-column: 3 / 7; grid-row: 6 / 8; }
}

/* ── 무드 카드 ───────────────────────── */
.moods { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.moods::-webkit-scrollbar { display: none; }
.mood { scroll-snap-align: start; text-decoration: none; color: inherit; display: block; }
.mood-swatch { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.mood-swatch .wall { position: absolute; inset: 0 0 26% 0; }
.mood-swatch .floor { position: absolute; inset: 74% 0 0 0; box-shadow: inset 0 10px 18px -8px rgba(0,0,0,.35); }
.mood-swatch .tp { transition: transform 1.2s var(--ease); }
.mood:hover .mood-swatch .wall { transform: scale(1.04); }
.mood-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
.mood-meta h3 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 1.28rem; letter-spacing: -.03em; }
.mood-meta .num { color: var(--muted); font-size: 1.1rem; }
.mood p { font-size: .88rem; color: var(--muted); margin: 4px 0 0; line-height: 1.55; }
@media (min-width: 768px) { .moods { grid-auto-columns: 40%; } }
@media (min-width: 1200px) {
  .moods { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; gap: 40px 24px; }
}

/* ── 단계(잉크 섹션) ──────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s6); counter-reset: s; }
.steps li { border-top: 1px solid rgba(244,243,239,.22); padding-top: var(--s5); display: grid; gap: var(--s4); }
.steps .num { font-size: 3.2rem; line-height: 1; color: var(--yolk); }
.steps h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.6rem; letter-spacing: -.03em; }
.steps p { color: var(--on-ink-muted); margin: 0; }
.step-visual { height: 150px; position: relative; overflow: hidden; display: flex; gap: 6px; }
.step-visual .tp { flex: 1; }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s7); } }

/* ── 룸(공간 합성 일러스트 · 샘플 시안) ── */
.room { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #cfccc4; container-type: inline-size; isolation: isolate; }
.room .face { position: absolute; inset: 0; overflow: hidden; }
.room .face > .tp { position: absolute; }
.room .back { clip-path: polygon(16% 0, 84% 0, 84% 70%, 16% 70%); }
.room .back > .tp { inset: 0; }
.room .left { clip-path: polygon(0 0, 16% 0, 16% 70%, 0 100%); }
.room .left > .tp { left: -40%; width: 56%; top: -30%; height: 160%; transform: perspective(300px) rotateY(58deg); transform-origin: 100% 50%; }
.room .right { clip-path: polygon(84% 0, 100% 0, 100% 100%, 84% 70%); }
.room .right > .tp { right: -40%; width: 56%; top: -30%; height: 160%; transform: perspective(300px) rotateY(-58deg); transform-origin: 0 50%; }
.room .floor { clip-path: polygon(16% 70%, 84% 70%, 100% 100%, 0 100%); }
.room .floor > .tp { left: -60%; right: -60%; top: 70%; height: 90%; transform: perspective(260px) rotateX(62deg); transform-origin: 50% 0; }
.room .shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,0) 16%, rgba(0,0,0,0) 84%, rgba(0,0,0,.22)),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,0) 40%, rgba(0,0,0,.12) 70%, rgba(0,0,0,.30));
  mix-blend-mode: multiply; }
.room .light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 38% 28%, rgba(255,255,255,.28), rgba(255,255,255,0) 70%); }
/* 가구: 둥근 거울 + 떠 있는 세면대 */
.room .mirror { position: absolute; left: 41%; top: 12%; width: 18%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(145deg, #e9ecea, #b9c0bd 60%, #d9dedb); box-shadow: 0 0 0 .5cqi #2b2e2c, 0 1.4cqi 2.4cqi rgba(0,0,0,.28); }
.room .vanity { position: absolute; left: 36%; top: 44%; width: 28%; height: 11%; background: linear-gradient(#3b3530, #2a2521); box-shadow: 0 2cqi 3cqi rgba(0,0,0,.35); }
.room .vanity::before { content: ""; position: absolute; left: 22%; right: 22%; top: -1.8cqi; height: 2.2cqi; border-radius: 1cqi 1cqi 40% 40%; background: linear-gradient(#fff, #dcdcd8); box-shadow: 0 .3cqi .6cqi rgba(0,0,0,.2); }
.room .vanity::after { content: ""; position: absolute; left: 49%; top: -5cqi; width: .8cqi; height: 3.6cqi; background: #2b2e2c; border-radius: 1cqi 1cqi 0 0; }
.room .label { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: .7rem; font-weight: 600; background: rgba(18,23,20,.78); color: var(--on-ink); padding: 4px 8px; border-radius: 2px; letter-spacing: .02em; }

/* 무드 전환 데모 */
.swap { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); }
.swap > * { min-width: 0; }
.swap-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-padding-inline: var(--gutter); }
.swap-chips::-webkit-scrollbar { display: none; }
.swap .room .tp { transition: opacity .5s var(--ease); }
@media (min-width: 1024px) {
  .swap { grid-template-columns: 8fr 4fr; gap: var(--s7); align-items: start; }
  .swap-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; flex-direction: column; align-items: flex-start; }
}

/* ── 시공 정보(보조) ─────────────────── */
.facts { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { background: var(--chalk); padding: var(--s5) 0; }
.facts h3 { font-size: 1rem; }
.facts p { font-size: .95rem; color: var(--ink-2); margin: 0; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(3, 1fr); background: none; gap: var(--s6); border: 0; } .facts > div { border-top: 1px solid var(--ink); padding: var(--s5) 0 0; } }
.placeholder { background: #fff3cf; color: #6a4a00; padding: 0 4px; border-radius: 2px; font-size: .9em; }
.area-list { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s4) 0 0; padding: 0; list-style: none; }

/* ── 마지막 CTA ──────────────────────── */
.final { position: relative; overflow: hidden; color: var(--on-ink); background: var(--ink); }
.final .tp { position: absolute; inset: 0; opacity: .9; }
.final .veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,23,20,.94) 0%, rgba(18,23,20,.86) 45%, rgba(18,23,20,.25) 100%); }
.final .wrap { position: relative; padding-top: var(--s9); padding-bottom: var(--s9); }
.final h2 { max-width: 12em; }
.final .lead { color: var(--on-ink-muted); margin-top: var(--s4); }
@media (max-width: 767px) { .final .veil { background: linear-gradient(180deg, rgba(18,23,20,.96) 0%, rgba(18,23,20,.88) 38%, rgba(18,23,20,.5) 78%, rgba(18,23,20,.32) 100%); } }

/* ── 푸터 ─────────────────────────────── */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: var(--s8) 0 calc(var(--s8) + 72px); font-size: .88rem; border-top: 1px solid rgba(244,243,239,.12); }
.site-footer .logo { color: var(--on-ink); }
.site-footer .logo-en { color: var(--on-ink-muted); }
.footer-grid { display: grid; gap: var(--s6); }
.footer-grid a { color: var(--on-ink); }
/* msumer 병기(중개전환 종합안 "관계 1안" — 로고 옆에 작게, 링크 없음, 중개 표현 없음) */
.footer-msumer { margin-top: 8px; font-size: .74rem; color: var(--on-ink-muted); letter-spacing: .01em; }
.footer-msumer-wm { font-family: var(--f-latin); font-style: italic; color: var(--on-ink-muted); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 5fr 4fr 3fr; } .site-footer { padding-bottom: var(--s8); } }

/* ── 모바일 하단 고정 CTA ─────────────── */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(244,243,239,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.mobile-bar .btn { min-height: 50px; }
.mobile-bar .btn-primary { flex: 1; }
@media (min-width: 1024px) { .mobile-bar { display: none; } }

/* ── 미리보기 결과 ───────────────────── */
.progress { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 var(--s6); font-size: .78rem; color: var(--muted); }
.progress li { flex: 1; }
.progress li::before { content: ""; display: block; height: 3px; background: var(--line); margin-bottom: 8px; }
.progress li.done::before { background: var(--ink-2); }
.progress li.current { color: var(--ink); font-weight: 700; }
.progress li.current::before { background: var(--emerald); }
.notice { font-size: .85rem; color: var(--ink-2); border-left: 2px solid var(--yolk); padding: 2px 0 2px 12px; margin: var(--s4) 0 var(--s6); }
.results { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .results { grid-template-columns: repeat(3, 1fr); gap: 28px 24px; } }
.result { position: relative; background: transparent; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.result .room { outline: 0 solid var(--emerald); outline-offset: 0; transition: outline-width .15s var(--ease), outline-offset .15s var(--ease); }
.result:hover .room { outline: 1px solid var(--ink); outline-offset: 3px; }
.result[aria-pressed="true"] .room { outline: 3px solid var(--emerald); outline-offset: 4px; }
.result .pick { position: absolute; right: 8px; top: 8px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(244,243,239,.92); border: 1px solid var(--line-strong); font-weight: 700; font-size: .95rem; }
.result[aria-pressed="true"] .pick { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.result-meta { padding-top: 12px; }
.result-meta .no { font-family: var(--f-latin); font-style: italic; color: var(--muted); font-size: 1rem; margin-right: 6px; }
.result-meta b { font-family: var(--f-display); font-size: 1.12rem; letter-spacing: -.03em; font-weight: 500; }
.result-meta .spec { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: .78rem; color: var(--muted); }
.result-meta .spec span { display: inline-flex; align-items: center; gap: 6px; }
.result-meta .spec i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
/* 구역 조합 시안: 벽 상단·벽 하단·바닥 3줄이 한 줄로 뒤섞이지 않게 세로로 쌓는다(검토 R4 가독성) */
.result-meta .spec.spec-zone { display: grid; gap: 3px; color: var(--ink-2); }
.result-meta .spec.spec-zone span { display: block; }
.result-meta .spec.spec-zone b { color: var(--muted); font-weight: 600; }
@media (max-width: 899px) { .result-meta b { font-size: .98rem; } .result-meta .spec { display: none; } }

.pick-bar { position: sticky; bottom: 0; z-index: 30; margin-top: var(--s7); background: var(--ink); color: var(--on-ink); }
.pick-bar-inner { display: flex; align-items: center; gap: 16px; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); max-width: var(--wrap); margin: 0 auto; }
.pick-slots { display: flex; gap: 8px; }
.pick-slot { width: 56px; height: 42px; position: relative; overflow: hidden; outline: 1px dashed rgba(244,243,239,.4); }
.pick-slot .tp { position: absolute; inset: 0; }
.pick-slot b { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--emerald); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.pick-text { flex: 1; min-width: 0; font-size: .9rem; line-height: 1.4; }
.pick-text small { display: block; color: var(--on-ink-muted); font-size: .78rem; }
@media (max-width: 599px) { .pick-slots { display: none; } .pick-bar-inner { flex-wrap: wrap; gap: 10px; } .pick-bar-inner .btn { width: 100%; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── 스타일 단계(레퍼런스 사진 + 프리셋 + 직접 입력) ── */
.page-top { padding: var(--s6) 0 var(--s5); }
.page-top h1 { font-size: clamp(2rem, 7vw, 3.4rem); margin: var(--s3) 0 var(--s3); }
.page-top .lead { margin: 0; }
.block { padding: var(--s6) 0; border-top: 1px solid var(--line); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: var(--s5); }
.block-head h2 { font-size: clamp(1.35rem, 3.6vw, 1.9rem); }
.block-head .caption { white-space: nowrap; }
.ref { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .ref { grid-template-columns: 5fr 7fr; gap: var(--s7); align-items: start; } }
.dropzone { position: relative; display: grid; place-items: center; text-align: center; gap: 10px; min-height: 220px; padding: var(--s6) var(--s5);
  background: var(--paper); border: 1.5px dashed var(--line-strong); cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover { border-color: var(--ink); background: #fbfbf9; }
.dropzone .dz-icon { width: 56px; height: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.dropzone .dz-icon i { background: var(--stone); }
.dropzone .dz-icon i:nth-child(2) { background: var(--emerald); }
.dropzone b { font-size: 1.05rem; }
.dropzone .caption { max-width: 22em; }
.ref-done { display: grid; grid-template-columns: 120px 1fr; gap: var(--s4); align-items: start; background: var(--paper); padding: var(--s4); border: 1px solid var(--line); }
.ref-thumb { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.ref-thumb .tp { position: absolute; inset: 0; }
.ref-thumb .x { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(18,23,20,.8); color: #fff; font-size: 14px; cursor: pointer; }
.ref-done h3 { margin-bottom: 6px; }
.kw { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; padding: 0; list-style: none; }
.kw li { font-size: .82rem; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--stone); display: inline-flex; gap: 6px; align-items: center; }
.kw li button { border: 0; background: none; padding: 0; font-size: .9rem; line-height: 1; cursor: pointer; color: var(--muted); }
.kw li.add { background: none; border: 1px dashed var(--line-strong); color: var(--ink-2); }
.ref-rules { margin: var(--s4) 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .84rem; color: var(--ink-2); }
.ref-rules li { padding-left: 16px; position: relative; }
.ref-rules li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; background: var(--emerald); }
@media (max-width: 599px) { .ref-done { grid-template-columns: 96px 1fr; } }

/* 13종 + '직접 적기' 타일. 직접 적기 칸의 폭을 바꿔 모든 화면에서 줄이 딱 떨어지게 한다.
   2열: 13+1=14 / 3열: 13+2=15 / 4열: 13+3=16 / 7열: 13+1=14 */
.style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; }
.style-grid .write-card { grid-column: span 1; }
@media (min-width: 768px) { .style-grid { grid-template-columns: repeat(3, 1fr); } .style-grid .write-card { grid-column: span 2; } }
@media (min-width: 1024px) { .style-grid { grid-template-columns: repeat(4, 1fr); gap: 28px 18px; } .style-grid .write-card { grid-column: span 3; } }
@media (min-width: 1280px) { .style-grid { grid-template-columns: repeat(7, 1fr); gap: 28px 16px; } .style-grid .write-card { grid-column: span 1; } }
.write-card { text-decoration: none; }
.write-card .sw { border: 1.5px dashed var(--line-strong); background: transparent; }
.style-grid .write-card .sw { aspect-ratio: auto; height: 100%; min-height: 100%; }
.write-inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; padding: 16px; }
.write-inner b { font-family: var(--f-display); font-weight: 500; font-size: 1.12rem; letter-spacing: -.03em; }
.write-inner span:last-child { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.write-icon { font-size: 1.4rem; line-height: 1; color: var(--emerald); }
.write-card:hover .sw { border-color: var(--ink); }
@media (min-width: 1280px) { .style-grid .nm { font-size: 1rem; } .style-grid .ln { font-size: .76rem; } }
.style-card { position: relative; display: block; border: 0; background: none; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.style-card .sw { display: block; position: relative; aspect-ratio: 1; overflow: hidden; outline: 0 solid var(--emerald); transition: outline-offset .15s var(--ease); }
.style-card .sw .tp { display: block; position: absolute; inset: 0; transition: transform 1s var(--ease); }
.style-card:hover .sw .tp { transform: scale(1.05); }
.style-card .check { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(244,243,239,.92); border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: .9rem; font-weight: 700; color: transparent; }
.style-card[aria-pressed="true"] .sw { outline: 3px solid var(--emerald); outline-offset: 4px; }
.style-card[aria-pressed="true"] .check { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.style-card .nm { display: block; margin-top: 12px; font-family: var(--f-display); font-weight: 500; font-size: 1.12rem; letter-spacing: -.03em; line-height: 1.3; }
.style-card .ln { display: block; margin-top: 3px; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.style-card.soon { cursor: default; }
.style-card.soon .sw { display: grid; place-items: center; border: 1.5px dashed var(--line-strong); background: transparent; font-size: .8rem; color: var(--muted); }
.field label { display: block; font-weight: 600; margin-bottom: 8px; }
.textarea { width: 100%; min-height: 104px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); font: inherit; color: var(--ink); resize: vertical; }
.textarea:focus { outline: 2px solid var(--emerald); outline-offset: 1px; border-color: var(--emerald); }
.textarea::placeholder { color: var(--muted); }
.result .ref-badge { position: absolute; left: 10px; top: 38px; z-index: 3; font-size: .7rem; font-weight: 700; background: var(--yolk); color: var(--ink); padding: 3px 8px; border-radius: 2px; }
/* 보정: 버튼 카드 내용 위 정렬(버튼 기본 세로 가운데 정렬 해제) */
button.style-card { align-self: start; }
/* 보정: 작은 결과 카드(모바일)에서 라벨 축소 */
@media (max-width: 599px) {
  .room .label { font-size: .6rem; padding: 2px 5px; left: 6px; top: 6px; }
  .result .ref-badge { top: 26px; left: 6px; font-size: .6rem; padding: 2px 5px; }
  .result .pick { width: 28px; height: 28px; font-size: .82rem; right: 6px; top: 6px; }
}

/* ══════════════ 2부: 사이트 전용 추가 (프로토타입 토큰만 사용) ══════════════ */
html { scroll-padding-top: calc(var(--header-h) + 12px); }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.center { text-align: center; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
em.key { font-style: normal; color: var(--emerald); }

/* 헤더: 현재 메뉴, 모바일 메뉴 패널 */
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu-btn span { transition: transform .2s var(--ease); }
@media (max-width: 1023px) {
  .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--chalk); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); }
  .nav.open .nav-quote { display: inline-flex; margin-top: 16px; border-bottom: 1px solid var(--ink); justify-content: center; }
}
.nav .nav-quote { display: none; }
.header-actions .btn-quote { white-space: nowrap; }

/* 히어로 보조 링크 */
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: .95rem; }

/* 무드 카드: 룩북 그리드(/styles) */
.lookbook { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
@media (min-width: 768px) { .lookbook { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; } }
@media (min-width: 1200px) { .lookbook { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; } }
.lookbook .mood { min-width: 0; }
.mood-link { display: block; text-decoration: none; color: inherit; }
.mood-link:hover .mood-swatch .wall { transform: scale(1.04); }
.mood-fits { margin: 6px 0 0; }
.mood-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mood-actions .btn { flex: 1 1 auto; min-width: 0; padding: 0 12px; }
@media (max-width: 599px) {
  .lookbook .mood-meta h3 { font-size: 1.05rem; }
  .lookbook .mood p { font-size: .8rem; }
  .mood-actions .btn { min-height: 40px; font-size: .85rem; }
}
.lookbook-empty { padding: var(--s6) 0; color: var(--muted); }

/* 필터 */
.filters { display: grid; gap: 14px; margin-bottom: var(--s7); }
.filter-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row .flabel { flex: none; font-size: .78rem; font-weight: 600; letter-spacing: .12em; color: var(--muted); min-width: 3.4em; }
.filter-row .chip { padding: 0 16px; }
@media (min-width: 1024px) { .filter-row { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }

/* 페이지 머리(하위 페이지) */
.page-head { padding-top: var(--s7); padding-bottom: var(--s6); }
.page-head h1 { font-size: clamp(2.1rem, 7.4vw, 3.8rem); margin: var(--s4) 0 var(--s4); }
.page-head .lead { margin: 0; }
@media (min-width: 1024px) { .page-head { padding-top: var(--s9); padding-bottom: var(--s7); } }

/* 스타일 상세 */
.style-hero { display: grid; gap: var(--s6); padding-top: var(--s5); padding-bottom: var(--s7); }
.style-hero h1 { font-size: clamp(2.3rem, 8.4vw, 4.3rem); margin: var(--s4) 0 var(--s4); }
.style-board { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; aspect-ratio: 4 / 3; }
.style-board .tile { position: relative; overflow: hidden; background: var(--stone); }
.style-board .tile .tp { position: absolute; inset: -2px; transition: transform 1.2s var(--ease); }
.style-board .tile:hover .tp { transform: scale(1.06); }
.style-board .board-0 { grid-row: 1 / 3; }
.style-board .board-1:last-child { grid-row: 1 / 3; }
.style-board .tag { position: absolute; left: 10px; bottom: 10px; z-index: 1; background: rgba(244,243,239,.94); font-size: .72rem; font-weight: 600; padding: 5px 9px; border-radius: 2px; }
.style-board .tag i { font-family: var(--f-latin); font-style: italic; font-weight: 400; margin-right: 6px; color: var(--muted); }
@media (min-width: 1024px) { .style-hero { grid-template-columns: 11fr 13fr; gap: var(--s8); align-items: center; padding-top: var(--s8); padding-bottom: var(--s9); } }
@media (max-width: 1023px) { .style-board { order: -1; } }
.spec-list { display: grid; gap: 0; border-top: 1px solid var(--ink); margin: 0; }
.spec-list > div { display: grid; gap: 4px; padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-size: .78rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.spec-list dd { margin: 0; font-size: 1.02rem; color: var(--ink-2); }
@media (min-width: 900px) { .spec-list > div { grid-template-columns: 12em 1fr; gap: var(--s6); } }
.two-col { display: grid; gap: var(--s7); }
@media (min-width: 1024px) { .two-col { grid-template-columns: 7fr 5fr; gap: var(--s8); align-items: start; } }

/* 홈: 디테일 목록 */
.detail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.detail-list li { display: grid; grid-template-columns: 3.2em 1fr; gap: 12px; padding: var(--s5) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.detail-list .num { font-size: 1.6rem; color: var(--emerald); line-height: 1; }
.detail-list b { font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; letter-spacing: -.03em; }
.detail-list p { margin: 6px 0 0; color: var(--ink-2); }
@media (min-width: 900px) { .detail-list { grid-template-columns: repeat(2, 1fr); column-gap: var(--s7); } }
.area-line { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: var(--s4) 0 0; }

/* 시공사례 */
.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
@media (min-width: 900px) { .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
.work-card img, .work-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-ph { display: grid; place-items: center; background: var(--stone); border: 1.5px dashed var(--line-strong); color: var(--muted); font-size: .85rem; font-weight: 600; text-align: center; padding: 8px; }
.work-meta { margin: 10px 0 0; font-size: .9rem; }
.work-meta b { font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; }

/* 시공 과정 */
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); counter-reset: p; }
.process-steps li { display: grid; grid-template-columns: 3em 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.process-steps .num { font-size: 1.5rem; color: var(--muted); }
.process-steps b { font-size: 1.05rem; }
.process-steps p { margin: 4px 0 0; font-size: .95rem; color: var(--ink-2); }
@media (min-width: 1024px) { .process-steps { grid-template-columns: repeat(7, 1fr); border-top: 0; gap: 16px; }
  .process-steps li { grid-template-columns: 1fr; border-top: 1px solid var(--ink); border-bottom: 0; padding-top: 16px; } }
/* 시공 진행과정 · 실제 현장 사진 타임라인 (content/progress.json, 비면 섹션 자체가 없음) */
.progress-cases { display: grid; gap: var(--s6); }
.progress-case h3 { font-size: 1.1rem; margin-bottom: var(--s4); }
.progress-rail { list-style: none; margin: 0; padding: 0 0 8px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.progress-step { flex: 0 0 220px; scroll-snap-align: start; }
.progress-step .stage { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--emerald); margin-bottom: 6px; }
.progress-step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--stone); }
.progress-step .caption { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.progress-case > .caption { margin-top: 8px; }
@media (min-width: 900px) { .progress-step { flex-basis: 260px; } }

.care { background: var(--stone); padding: var(--s6) var(--s5); }
@media (min-width: 900px) { .care { padding: var(--s7); } }
.care .facts > div { background: var(--stone); }

/* 지역 */
.region { display: grid; gap: var(--s5); }
.region > div { border-top: 1px solid var(--ink); padding-top: var(--s4); }
.region h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.region p { margin: 8px 0 0; font-size: 1.1rem; color: var(--ink-2); }
@media (min-width: 900px) { .region { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }

/* FAQ */
.faq-group { margin-bottom: var(--s7); }
.faq-group h2 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); margin-bottom: var(--s4); }
details.faq { border-top: 1px solid var(--line); }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; font-weight: 600; font-size: 1.02rem; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-family: var(--f-latin); font-size: 1.7rem; color: var(--emerald); line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq .answer { padding: 0 0 20px; color: var(--ink-2); max-width: 46em; }

/* 폼 */
.form-wrap { max-width: 760px; }
.field { margin-bottom: var(--s5); }
.field > label, .field > .label { display: block; font-weight: 600; margin-bottom: 8px; }
.field .hint { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.field .error-text { font-size: .86rem; color: var(--err); margin: 6px 0 0; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--paper); font: inherit; font-size: 16px; color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--emerald); outline-offset: 1px; border-color: var(--emerald); }
.field ::placeholder { color: var(--muted); }
.invalid input, .invalid select, .invalid textarea { border-color: var(--err); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row label { position: relative; }
.choice-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-row .chip { padding: 0 18px; }
.choice-row input:checked + .chip { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.choice-row input:focus-visible + .chip { outline: 2px solid var(--emerald); outline-offset: 3px; }
.consent { border-top: 1px solid var(--ink); padding-top: var(--s5); margin: var(--s6) 0; }
.consent label.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.consent input[type="checkbox"] { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--emerald); }
.consent ul { font-size: .86rem; color: var(--ink-2); margin: 10px 0 10px 34px; padding-left: 1em; }
.consent .sub { margin-top: var(--s4); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 14px; margin: var(--s4) 0; font-size: .95rem; border-left: 2px solid var(--err); background: #fbeceb; color: var(--err); }
.alert .btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.summary-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: var(--s4) 0; }
.summary-picks figure { margin: 0; }
.summary-picks img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.summary-picks figcaption { margin-top: 6px; font-family: var(--f-display); font-size: 1.02rem; }
.summary-box { background: var(--paper); border: 1px solid var(--line); padding: var(--s5); margin-bottom: var(--s6); }
.summary-box p { margin: 4px 0; font-size: .92rem; }
.done-box { padding-top: var(--s7); padding-bottom: var(--s7); }
.done-mark { width: 64px; height: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-bottom: var(--s5); }
.done-mark i { background: var(--ink); } .done-mark i:nth-child(2) { background: var(--emerald); }

/* ── 미리보기(스텝) ───────────────────── */
.step { padding-bottom: var(--s7); }
.step .page-top h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
.mock-note { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-2); margin: 0 0 var(--s4); }
.mock-note b { background: var(--ink); color: var(--on-ink); font-size: .7rem; padding: 3px 8px; border-radius: 2px; }
.upload-zone { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .upload-zone { grid-template-columns: 7fr 5fr; gap: var(--s7); align-items: start; } }
.dropzone .btn-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.upload-preview { max-height: 360px; width: auto; margin: 0 auto; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; color: var(--ink-2); }
.tips li { padding-left: 16px; position: relative; }
.tips li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; background: var(--emerald); }
.loading { display: flex; align-items: center; gap: 12px; padding: 14px 0; font-size: .95rem; color: var(--ink-2); }
.spinner { width: 22px; height: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; flex: none; animation: spin 1.4s steps(4) infinite; }
.spinner i { background: var(--ink); } .spinner i:nth-child(2) { background: var(--emerald); }
@keyframes spin { to { transform: rotate(360deg); } }
.elements { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 var(--s5); }
.elements li { font-size: .88rem; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--stone); }
.elements li.off { background: none; border: 1px dashed var(--line-strong); color: var(--muted); text-decoration: line-through; }
.dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dims label { font-size: .82rem; font-weight: 600; display: block; margin-bottom: 6px; }
.dims input { text-align: right; }
.basis { list-style: none; margin: 10px 0 0; padding: 0; font-size: .82rem; color: var(--muted); }
.surface-row { display: flex; gap: 20px; margin: var(--s4) 0; }
.surface-row label { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.surface-row input { width: 20px; height: 20px; accent-color: var(--emerald); }
.calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: var(--s4) 0; }
.calc div { background: var(--paper); padding: 14px 10px; }
.calc b { display: block; font-family: var(--f-latin); font-style: italic; font-weight: 400; font-size: 2rem; line-height: 1.1; }
.calc span { font-size: .76rem; color: var(--muted); }
.step-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s6); }
@media (max-width: 599px) { .step-actions .btn { flex: 1 1 100%; } }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin: 0 0 var(--s5); }
.tabs button { flex: 1; min-height: 52px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-weight: 600; font-size: 1rem; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--emerald); }
@media (min-width: 900px) { .tabs button { flex: 0 0 auto; padding: 0 28px; } }
.deeplink-note { font-size: .92rem; color: var(--ink-2); border-left: 2px solid var(--emerald); padding: 2px 0 2px 12px; margin: 0 0 var(--s5); }
.style-card[hidden] { display: none; }
.ref-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.ref-thumbs .ref-thumb { width: 96px; }
.ref-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ref-done { grid-template-columns: 1fr; }
.kw li input { border: 0; background: none; font: inherit; font-size: .82rem; width: 7em; outline: none; }
.ref-summary { width: 100%; }
.results .result img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone); }
.result .shot { position: relative; outline: 0 solid var(--emerald); transition: outline-width .15s var(--ease), outline-offset .15s var(--ease); }
.result:hover .shot { outline: 1px solid var(--ink); outline-offset: 3px; }
.result[aria-pressed="true"] .shot { outline: 3px solid var(--emerald); outline-offset: 4px; }
.result .card-label { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: .7rem; font-weight: 600; background: rgba(18,23,20,.78); color: var(--on-ink); padding: 4px 8px; border-radius: 2px; }
.result-failed { aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 12px; background: var(--stone); color: var(--err); font-size: .85rem; }
.skeleton { position: relative; aspect-ratio: 4 / 3; background: var(--stone); overflow: hidden; display: grid; place-items: center; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); animation: sh 1.6s infinite; }
.skeleton span { position: relative; z-index: 1; font-size: .82rem; color: var(--ink-2); }
@keyframes sh { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.results-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.pick-bar .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.pick-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 선택 바: 잉크 배경을 화면 끝까지(가로 스크롤 없이 box-shadow + clip-path), 내용은 본문 그리드에 정렬 — 디자이너 검토 v2 */
.pick-bar.in-step { margin-left: 0; margin-right: 0; box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax); }
.pick-bar.in-step .pick-bar-inner { padding-left: 0; padding-right: 0; }
@media (max-width: 599px) { .result .card-label { font-size: .6rem; padding: 2px 5px; left: 6px; top: 6px; } }

/* 개인정보처리방침 */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: var(--s7) 0 var(--s4); }
.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; background: var(--paper); }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--stone); }

/* 푸터 링크 줄 */
.footer-links a { margin-right: 14px; }
body.has-mobile-bar .site-footer { padding-bottom: calc(var(--s8) + 80px); }
@media (min-width: 1024px) { body.has-mobile-bar .site-footer { padding-bottom: var(--s8); } }
.mobile-bar.is-hidden { transform: translateY(110%); }
.mobile-bar { transition: transform .2s var(--ease); }
@media (min-width: 1024px) { .steps.four { grid-template-columns: repeat(4, 1fr); gap: var(--s6); } }
.sample-wall a.tile { display: block; color: inherit; text-decoration: none; }
@media (max-width: 1023px) { .sample-wall a.t-f { display: none; } }
@media (min-width: 1200px) { .moods.six { grid-template-columns: repeat(3, 1fr); gap: 48px 32px; } }

.mood-swatch.floor-feature .wall { inset: 0 0 48% 0; }
.mood-swatch.floor-feature .floor { inset: 52% 0 0 0; }

/* ── AI 생성 스타일 사진(마케팅/디자인/ai_images → static/img/styles) ─────────────
   패턴 SVG 위에 사진을 겹쳐 그린다. 사진 로드 실패 시 onerror로 스스로 사라져 패턴이 대체로 남는다. */
.tp-photo { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); object-fit: cover; display: block; z-index: 1; }
.mood-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ai-cap { position: absolute; left: 8px; bottom: 8px; z-index: 2; font-size: .66rem; letter-spacing: .01em;
  color: var(--on-ink-muted); background: rgba(18,23,20,.72); padding: 2px 7px; border-radius: 2px; line-height: 1.3; }
.sample-wall .tile .ai-cap, .style-board .tile .ai-cap { left: 6px; bottom: auto; top: 6px; }

/* 홈 히어로 와이드 사진 */
.hero-photo { position: relative; margin-top: var(--s6); overflow: hidden; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-photo .ai-cap { color: var(--muted); background: rgba(244,243,239,.9); }
@media (min-width: 1024px) { .hero-photo img { aspect-ratio: 16 / 7; } }

/* /styles/<key> 상세 대표 사진(욕실 컷 + 타일 클로즈업) */
.detail-photos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.detail-photos .dp { position: relative; overflow: hidden; }
.detail-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 767px) { .detail-photos { grid-template-columns: 1fr 1fr; } }

/* 미리보기 스타일 칩 썸네일(타일 클로즈업) */
.style-card .sw .sw-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* 홈 마지막 CTA 배경 사진 */
.final-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.final .ai-cap { z-index: 1; right: 16px; left: auto; bottom: 16px; }
.step .tabs { margin-top: var(--s6); }
.mock-note b { white-space: nowrap; flex: none; }
.step h1 + .lead, .results-head .lead { margin-top: var(--s4); }

/* 스타일 목록: 13종 + '목록에 없는 무드' 칸 → 마지막 줄이 한 장만 남지 않게(2열 1칸 · 3열 2칸 · 4열 3칸). 필터 중에는 한 줄 전체 — 디자이너 검토 v2 */
.look-more { grid-column: span 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px;
  min-height: 220px; padding: 24px; border: 1.5px dashed var(--line-strong); }
.look-more b { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; letter-spacing: -.03em; line-height: 1.3; }
.look-more .lm-desc { font-size: .88rem; color: var(--muted); line-height: 1.55; max-width: 26em; }
.look-more .lm-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 6px; font-size: .95rem; }
.look-more .write-icon { font-size: 1.5rem; line-height: 1; color: var(--emerald); }
@media (min-width: 768px) { .look-more { grid-column: span 2; } }
@media (min-width: 1200px) { .look-more { grid-column: span 3; padding: 40px; } .look-more b { font-size: 1.7rem; } }
.lookbook:has(.lookbook-card[hidden]) .look-more { grid-column: 1 / -1; min-height: 0; }
.mood-meta .num { flex: none; white-space: nowrap; }  /* 좁은 카드에서 번호(11 등)가 두 줄로 쪼개지던 문제 */

/* ── 회원(이메일 인증코드) — 마케팅/디자인/시뮬레이션_3방식_회원.md C절, 목업 signup.html ── */
.auth-menu { position: relative; }
.auth-menu-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 6px; border-radius: var(--radius-pill); }
.auth-menu-btn .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--emerald); color: #fff; display: grid; place-items: center; flex: none; }
.auth-menu-btn .avatar svg { width: 14px; height: 14px; }
.auth-menu-btn .quota-pill { display: inline-flex; align-items: center; font-size: .76rem; font-weight: 600; color: var(--emerald); background: rgba(31,110,89,.09); border-radius: var(--radius-pill); padding: 3px 10px; white-space: nowrap; }
.auth-dropdown { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 280px; background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px; box-shadow: 0 8px 24px rgba(18,23,20,.14); }
.auth-remaining { display: flex; align-items: center; justify-content: space-between; font-size: .88rem; color: var(--ink-2); margin: 0 0 var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.auth-remaining b { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; color: var(--ink); }
.auth-nosave { font-size: .78rem; color: var(--ink-2); margin: 0 0 12px; line-height: 1.5; }
.auth-dropdown-item { display: block; width: 100%; text-align: left; font: inherit; font-size: .88rem; background: none;
  border: 0; border-top: 1px solid var(--line); padding: 10px 0; cursor: pointer; }
.auth-danger { color: #b3261e; }
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(18,23,20,.5); display: flex; align-items: center; justify-content: center; padding: var(--s5); }
.modal-overlay[hidden] { display: none; }
.modal { position: relative; width: 100%; max-width: 420px; background: var(--paper); border-radius: var(--radius); padding: var(--s6); max-height: 90vh; overflow-y: auto; }
.modal h2 { margin-top: 0; }
.modal-close { position: absolute; right: 14px; top: 14px; font: inherit; font-size: 1.3rem; line-height: 1; background: none; border: 0; cursor: pointer; }
.consent-block { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); padding: var(--s3) var(--s4); margin: var(--s4) 0; }
.consent-row { display: flex; align-items: flex-start; gap: 8px; font-size: .84rem; cursor: pointer; }
.consent-row input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--emerald); }
.consent-detail { font-size: .72rem; color: var(--ink-2); line-height: 1.5; margin: 2px 0 10px 26px; }
.auth-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .8rem;
  color: var(--ink-2); border-top: 1px solid var(--line); padding: 10px 0; cursor: pointer; }
.auth-toggle-row input { width: 34px; height: 20px; accent-color: var(--emerald); flex: none; }
#signup-code { letter-spacing: .6em; text-indent: .6em; font-size: 1.25rem; font-weight: 700; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; background: var(--ink); color: var(--on-ink);
  padding: 10px 18px; border-radius: var(--radius-pill); font-size: .86rem; }
.toast[hidden] { display: none; }

/* ── 구역별로 다르게: 방식 선택(①②③) — 마케팅/디자인/시뮬레이션_3방식_회원.md A절, 목업 sim_modes.html ── */
.mode-cards { display: grid; grid-template-columns: 1fr; gap: 10px; margin: var(--s5) 0; }
@media (min-width: 700px) { .mode-cards { grid-template-columns: repeat(3, 1fr); } }
.mode-card { position: relative; text-align: left; font: inherit; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); padding: 14px 16px; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; }
.mode-card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mode-card b { font-size: .95rem; }
.mode-card span:not(.badge-pop) { font-size: .8rem; color: var(--ink-2); }
.mode-card[aria-pressed="true"] { border-color: var(--emerald); outline: 2px solid var(--emerald); outline-offset: -3.5px; background: var(--paper); }
.mode-card[hidden] { display: none; }
.mode-card .badge-pop { position: absolute; right: 10px; top: -10px; font-size: .64rem; font-weight: 700; color: var(--ink); background: var(--yolk); padding: 2px 8px; border-radius: var(--radius-pill); }

/* 미니 단면 다이어그램(방식 카드): 실사 타일 사진을 좁은 세로 보드에 겹쳐 보여준다. 마케팅/디자인/prototype/sim_modes.html .m-diagram과 동일 규칙 */
.m-diagram { flex: none; width: 46px; height: 58px; position: relative; border: 1px solid var(--line); overflow: hidden; background: var(--stone); }
.m-diagram .m-band { position: absolute; left: 0; right: 0; overflow: hidden; }
.m-diagram .m-band img { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; display: block; }
.m-diagram .m-trim { position: absolute; left: 0; right: 0; height: 2px; background: #cfa15a; z-index: 2; }

/* ── 구역 조합(바닥 / 벽 하단 / 벽 상단) — 마케팅/디자인/구역조합_기획.md 3절, 목업 zone_combo.html ── */
.zone-seg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: var(--s5) 0; }
.zone-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); overflow: hidden; }
.zone-seg button { font: inherit; font-size: .86rem; font-weight: 600; border: 0; background: var(--paper); color: var(--ink-2); padding: 9px 16px; cursor: pointer; }
.zone-seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.zone-height { display: flex; gap: 6px; overflow-x: auto; }
.zone-height button { flex: none; height: 34px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--paper); font: inherit; font-size: .8rem; color: var(--ink-2); cursor: pointer; }
.zone-height button[aria-pressed="true"] { background: var(--emerald); border-color: var(--emerald); color: #fff; }

/* 포인트 벽 지정(방식③) — 마케팅/디자인/시뮬레이션_3방식_회원.md B절, 목업 sim_modes.html .point-picker */
.point-picker { background: var(--stone); padding: var(--s4); margin: var(--s5) 0; }
.point-picker .point-picker-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: .95rem; font-weight: 700; }
.point-picker #accent-side-row { margin: 0; }
.point-picker .zone-seg { background: var(--paper); }
.point-picker #accent-hint-caption { margin: 10px 0 0; }

/* 미니 단면 다이어그램: 위(벽 상단) / 중간(벽 하단) / 아래(바닥). 패턴 SVG 위에 실사 타일 클로즈업(.tp-photo)을 겹친다 — 실패 시 onerror로 사라지고 패턴만 남는다. */
.zonemap { position: relative; width: 100%; aspect-ratio: 3 / 4; border: 1px solid var(--line); overflow: hidden; background: var(--stone); min-width: 0; }
.zonemap .zb { position: absolute; left: 0; right: 0; overflow: hidden; }
.zonemap .zb .tp { position: absolute; inset: -10%; width: 120%; height: 120%; }
.zonemap .zb-upper { top: 0; height: 45%; }
.zonemap .zb-lower { top: 45%; height: 32%; }
.zonemap .zb-floor { top: 77%; height: 23%; }
.zonemap .trim { position: absolute; left: 0; right: 0; top: 45%; height: 3px; background: var(--trim, #cfa15a); z-index: 2; }
.zonemap.whole .zb-upper { height: 77%; }
.zonemap.whole .zb-lower { display: none; }
.zonemap.whole .trim { display: none; }
.zonemap .zlabel { position: absolute; z-index: 3; font-size: .58rem; font-weight: 700; color: #fff; background: rgba(18,23,20,.62); padding: 1px 5px; border-radius: 2px; left: 4px; }
.zonemap .zb-upper .zlabel, .zonemap .zb-lower .zlabel { top: 4px; }
.zonemap .zb-floor .zlabel { top: 3px; }
.zonemap.big { aspect-ratio: 16 / 10; }
.zonemap.big .zb { cursor: pointer; border: 0; }
.zonemap.big .zb:focus-visible, .zonemap.big .zb.active { outline: 3px solid var(--emerald); outline-offset: -3px; }

/* 조합 카드: 매거진 톤 — 썸네일을 크게 위에, 텍스트는 작고 절제되게 아래에 */
.combo-rail { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.combo-card { position: relative; flex: none; width: 78vw; max-width: 280px; scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
@media (min-width: 640px) { .combo-rail { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; } .combo-card { width: auto; max-width: none; } }
@media (min-width: 1024px) { .combo-rail { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.combo-card .zonemap { aspect-ratio: 4 / 3; border: 0; border-bottom: 1px solid var(--line); }
.combo-card-body { padding: 14px 16px 16px; }
.combo-card h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.12rem; letter-spacing: -.02em; margin: 0 0 3px; }
.combo-card .mood { font-size: .8rem; color: var(--muted); line-height: 1.45; margin: 0 0 10px; }
.combo-card .spec3 { list-style: none; padding: 0; margin: 0 0 12px; font-size: .7rem; color: var(--ink-2); display: grid; gap: 2px; }
.combo-card .spec3 li { display: flex; gap: 5px; }
.combo-card .spec3 b { color: var(--muted); font-weight: 600; flex: none; width: 44px; }
.combo-card .use-btn { width: 100%; height: 36px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; border-radius: var(--radius-pill); }
.combo-card .use-btn:hover { background: var(--ink); color: var(--on-ink); }
.combo-select { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .78rem; color: var(--ink-2); cursor: pointer; }
.pick-text small.low-remaining, .pick-bar small.low-remaining { color: var(--emerald); font-weight: 700; }
.combo-card .badge { position: absolute; right: 8px; top: 8px; z-index: 4; font-size: .64rem; font-weight: 700; background: var(--yolk); color: var(--ink); padding: 2px 6px; border-radius: 2px; }

.zone-picker { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); margin-top: var(--s5); min-width: 0; }
@media (min-width: 900px) { .zone-picker { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } }
.zone-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); min-width: 0; }
.zone-row { min-width: 0; }
.zone-row[hidden] { display: none; }
.zone-row h4 { display: flex; align-items: center; gap: 8px; font-size: .92rem; margin: 0 0 8px; }
.zone-row .hint { font-size: .74rem; color: var(--muted); font-weight: 400; }
/* 모바일은 가로 스크롤 + 오른쪽 끝 페이드로 "더 있다"는 신호를 준다. 900px 이상은 줄바꿈해 잘림 없이 다 보이게 한다(검토 R1). */
.zone-chip-rail { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; min-width: 0;
  -webkit-mask-image: linear-gradient(to right, #000 94%, transparent); mask-image: linear-gradient(to right, #000 94%, transparent); }
.zone-chip-rail .chip { flex: none; }
@media (min-width: 900px) {
  .zone-chip-rail { flex-wrap: wrap; overflow-x: visible; padding-bottom: 0; -webkit-mask-image: none; mask-image: none; }
}

.divider-label { display: flex; align-items: center; gap: 12px; margin: var(--s7) 0 var(--s5); color: var(--muted); font-size: .8rem; }
.divider-label::before, .divider-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ══════════════════════════════════════════════════════════════════════
   /preview 스튜디오형 재설계 — 마케팅/디자인/UX_스튜디오_재설계.md · 검토_스튜디오.md
   목업: 마케팅/디자인/prototype/studio.html. 한 화면(스크롤 없음), 왼쪽 캔버스 + 오른쪽 패널.
   이 페이지에서는 공용 site-header·site-footer를 숨기고 전용 상단바(.st-top)를 쓴다.
   ══════════════════════════════════════════════════════════════════════ */
body[data-page="preview"] { overflow: hidden; }
body[data-page="preview"] .site-header,
body[data-page="preview"] .site-footer { display: none; }
@media (max-width: 899px) { body[data-page="preview"] { overflow: visible; } }

.st-top { height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--chalk); }
.st-top .logo-mark { width: 26px; height: 26px; }
.st-title { font-family: var(--f-display); font-size: 1.08rem; letter-spacing: -.04em; padding-left: 16px; border-left: 1px solid var(--line); }
.st-sp { flex: 1; }
.st-quota { font-size: .8rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.st-quota b { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: .74rem; padding: 0 6px; }
.st-top a.st-tl { font-size: .84rem; font-weight: 600; color: var(--ink); text-underline-offset: 5px; }

.studio { display: grid; grid-template-columns: minmax(0, 1fr) 420px; height: calc(100vh - 56px); }
@media (min-width: 900px) and (max-width: 1279px) { .studio { grid-template-columns: minmax(0, 1fr) 380px; } }
.stage { display: flex; flex-direction: column; gap: 10px; padding: 16px 24px 14px; min-width: 0; min-height: 0; }
.cwrap { position: relative; flex: 1; min-height: 0; container-type: size; display: flex; align-items: center; justify-content: center; }
.canvas { position: relative; width: min(100cqw, 133.33cqh); aspect-ratio: 4 / 3; background: #d9d6ce; overflow: hidden; border-radius: 2px; user-select: none; }
.canvas img, .canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.canvas .qp-hit { position: absolute; z-index: 2; cursor: pointer; background: transparent; border: 0; padding: 0; }
.canvas .qp-hit:hover { background: rgba(255,255,255,.10); }

.ov { position: absolute; z-index: 3; }
.badge-q { left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(18,23,20,.82); color: var(--on-ink); }
.badge-q.ai { background: var(--emerald); }
.badge-q i { width: 7px; height: 7px; border-radius: 50%; background: var(--yolk); }
.badge-q.ai i { background: #fff; }
.st-tools { right: 12px; top: 12px; display: flex; gap: 6px; }
.st-tool { height: 32px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font: inherit; font-size: .76rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.st-tool[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.st-tool svg { position: static; width: 14px; height: 14px; }
.space-chip { left: 12px; bottom: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; padding: 5px 6px 5px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); }
.space-chip button { border: 0; background: var(--stone); font: inherit; font-weight: 700; font-size: .72rem; padding: 3px 9px; border-radius: 999px; cursor: pointer; color: var(--ink); }
.space-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }
.space-chip.busy .dot { background: var(--yolk); animation: st-blink 1s infinite; }
@keyframes st-blink { 50% { opacity: .25; } }
.space-menu { left: 12px; bottom: 80px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 2px; padding: 6px; display: flex; gap: 4px; flex-wrap: wrap; max-width: 320px; }
.space-menu button { border: 1px solid var(--line-strong); background: var(--paper); border-radius: 999px; font: inherit; font-size: .78rem; padding: 5px 12px; cursor: pointer; }
.space-menu button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.strip { left: 0; right: 0; bottom: 0; padding: 8px 12px; font-size: .72rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; }
.strip a, .strip button.linkish { color: #fff; font-weight: 700; background: none; border: 0; font: inherit; font-size: .74rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 0; }
.zl { position: absolute; z-index: 2; transform: translate(-50%, -50%); font-size: .72rem; font-weight: 600; white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.88); color: var(--ink); border: 0; font-family: inherit; cursor: pointer; }
.zl small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.zl.on { background: var(--emerald); color: #fff; }
.zl.on small { color: #d7eee6; }
/* bottom: 44px였을 때 하단 고지(.strip, bottom:0·높이 약 34~40px)와 4px밖에 안 떨어져 화면에서 겹쳐 보였다
   (2026-09-25 대표 확인) — 고지 줄과 확실히 떨어지도록 64px로 올린다. */
.upload-bar { left: 50%; bottom: 64px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--on-ink); padding: 8px 8px 8px 16px; border-radius: 999px; font-size: .84rem; white-space: nowrap; }
.upload-bar button { height: 36px; border-radius: 999px; border: 0; background: var(--yolk); color: var(--ink); font: inherit; font-weight: 700; font-size: .84rem; padding: 0 16px; cursor: pointer; }
.upload-bar button.g { background: transparent; color: var(--on-ink); border: 1px solid var(--on-ink-muted); }

.three { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; overflow: hidden; }
.three-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.three-head h2 { font-size: 1.35rem; }
.three-head h2 em { font-style: normal; color: var(--emerald); }
.three-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.tcard { text-align: left; border: 0; padding: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.tcard .mini { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #d9d6ce; outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .15s var(--ease); }
.tcard:hover .mini { outline-color: var(--ink); }
.tcard .mini img, .tcard .mini canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tcard .mini .n { position: absolute; left: 8px; top: 8px; z-index: 2; font-size: .72rem; font-weight: 700; background: rgba(18,23,20,.82); color: #fff; padding: 3px 9px; border-radius: 999px; }
.tcard b { display: block; margin-top: 10px; font-size: .95rem; }
.tcard ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: .78rem; color: var(--ink-2); line-height: 1.5; }
.tcard ul span { color: var(--muted); display: inline-block; min-width: 58px; }
.tcard .edit { display: inline-block; margin-top: 6px; font-size: .78rem; font-weight: 700; color: var(--emerald); text-decoration: underline; text-underline-offset: 4px; }

.notice-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; row-gap: 4px; }
.notice-s { margin: 0; border-left: 2px solid var(--yolk); padding: 2px 0 2px 10px; font-size: .78rem; color: var(--ink-2); line-height: 1.5; }
.notice-s b { color: var(--ink); }
.notice-s.pv { border-left-color: var(--line-strong); color: var(--muted); }
.notice-s a { color: inherit; }
/* 공개 사례 갤러리(공개사례_갤러리_기획.md 1-2, 1차 축소 구현) — 필름스트립 위 얇은 줄, 결과 있을 때만 */
.case-row { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.case-row-h { display: flex; align-items: baseline; gap: 10px; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.case-row-h b { color: var(--ink); font-size: .84rem; }
.case-row-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.case-thumb { position: relative; flex: none; width: 116px; aspect-ratio: 4 / 3; border: 0; padding: 0; background: var(--stone); cursor: pointer; border-radius: 2px; overflow: hidden; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-thumb .tier { position: absolute; left: 4px; bottom: 4px; font-size: .6rem; font-weight: 700; background: rgba(18,23,20,.78); color: #fff; padding: 1px 6px; border-radius: 999px; }
.case-thumb .n { position: absolute; right: 4px; top: 4px; font-size: .6rem; font-weight: 700; background: var(--emerald); color: #fff; padding: 1px 6px; border-radius: 999px; }
.share-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.share-item img { width: 64px; height: 48px; object-fit: cover; border-radius: 2px; }
.share-item label { display: flex; align-items: center; gap: 8px; font-size: .84rem; }

.film { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 100px; border-top: 1px solid var(--line); padding-top: 10px; }
.film-h b { display: block; font-size: .9rem; }
.film-h span { font-size: .74rem; color: var(--muted); line-height: 1.4; display: block; }
.film-list { display: flex; gap: 10px; overflow-x: auto; min-width: 0; padding: 4px; }
.film-empty { font-size: .8rem; color: var(--muted); border: 1.5px dashed var(--line-strong); border-radius: 2px; padding: 14px 16px; width: 100%; }
.fi { position: relative; flex: none; width: 116px; aspect-ratio: 4 / 3; border: 0; padding: 0; background: var(--stone); cursor: pointer; outline: 1px solid transparent; outline-offset: 2px; }
.fi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fi.viewing { outline: 2px solid var(--ink); }
.fi.picked { outline: 3px solid var(--emerald); outline-offset: 3px; }
.fi .lab { position: absolute; left: 4px; bottom: 4px; font-size: .64rem; font-weight: 700; background: rgba(18,23,20,.8); color: #fff; padding: 1px 6px; border-radius: 999px; max-width: calc(100% - 8px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi .pk { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.95); border: 1.5px solid var(--line-strong); font-size: .74rem; font-weight: 700; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.fi.picked .pk { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.fi.sk { cursor: default; background: linear-gradient(100deg, var(--stone) 30%, #f4f3ef 50%, var(--stone) 70%); background-size: 300% 100%; animation: st-sh 1.6s infinite linear; }
@keyframes st-sh { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.fi.sk .lab { background: rgba(18,23,20,.55); }
.film-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.btn-q { height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; white-space: nowrap; }
.btn-q[aria-disabled="true"] { background: var(--stone); color: var(--muted); border-color: var(--stone); cursor: not-allowed; }
.film-act a { font-size: .74rem; color: var(--ink-2); text-underline-offset: 4px; }

.panel { display: flex; flex-direction: column; min-height: 0; background: var(--paper); border-left: 1px solid var(--line); }
.pbody { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px 12px; display: flex; flex-direction: column; gap: 14px; }
.ptitle { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: .86rem; font-weight: 700; margin: 0 0 8px; }
.ptitle small { font-weight: 500; color: var(--muted); font-size: .74rem; }
.askbox { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); padding: 4px; }
.askbox:focus-within { outline: 2px solid var(--emerald); outline-offset: 1px; }
.askbox input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: .9rem; padding: 0 6px; background: transparent; height: 38px; }
.askbox input::placeholder { color: var(--muted); }
.icon-btn { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; background: var(--stone); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.icon-btn[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.pulse-ref { outline: 2px solid var(--emerald); outline-offset: 2px; }
.st-go { height: 38px; flex: none; border-radius: 999px; border: 0; background: var(--ink); color: var(--on-ink); font: inherit; font-weight: 700; font-size: .82rem; padding: 0 14px; cursor: pointer; white-space: nowrap; }
.chiprow { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.chiprow::-webkit-scrollbar { display: none; }
.ex { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.ex .tri { display: inline-flex; }
.ex .tri img { width: 16px; height: 24px; object-fit: cover; }
.ex .tri img:first-child { border-radius: 12px 0 0 12px; }
.ex .tri img:last-child { border-radius: 0 12px 12px 0; }
.ex.more { padding: 0 12px; background: var(--stone); border-color: var(--stone); position: sticky; right: 0; box-shadow: -10px 0 0 var(--paper); }
.read { margin-top: 8px; padding: 10px 12px; background: var(--chalk); border-radius: 2px; }
.read p { margin: 0 0 6px; font-size: .74rem; color: var(--muted); }
.st-kw { display: flex; gap: 6px; flex-wrap: wrap; }
.st-kw span { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-strong); font-size: .76rem; font-weight: 600; }
.st-kw span.ref { background: #fff3cf; border-color: #c9a24a; }
.st-kw span button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; font-size: .9rem; line-height: 1; color: var(--muted); }
.st-kw input { width: 72px; height: 28px; border-radius: 999px; border: 1px dashed var(--line-strong); padding: 0 10px; font: inherit; font-size: .76rem; background: transparent; }
.refchip { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: .76rem; color: var(--ink-2); }
.refchip img { width: 40px; height: 40px; object-fit: cover; border-radius: 2px; }
.refchip button { margin-left: auto; border: 0; background: none; font: inherit; font-size: .74rem; text-decoration: underline; cursor: pointer; color: var(--muted); }
.three-hint { margin: 0; font-size: .8rem; color: var(--ink-2); background: var(--chalk); padding: 12px 14px; border-left: 2px solid var(--emerald); }
.st-or { display: flex; align-items: center; gap: 10px; font-size: .74rem; color: var(--muted); }
.st-or::before, .st-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.st-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.st-type { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1.5px solid var(--line-strong); border-radius: 2px; background: var(--paper); font: inherit; cursor: pointer; text-align: left; color: var(--ink); min-width: 0; }
.st-type svg { width: 30px; height: 36px; flex: none; }
.st-type span { font-size: .8rem; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.st-type span small { display: none; }
.st-type[aria-pressed="true"] { border-color: var(--emerald); outline: 2px solid var(--emerald); outline-offset: -3.5px; }
.st-zones { display: flex; gap: 6px; margin-top: 8px; }
.zt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 8px 0 4px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; color: var(--ink); white-space: nowrap; }
.zt .sw { width: 30px; height: 30px; border-radius: 50%; flex: none; background: #e3dccd center / cover; border: 1px solid rgba(0,0,0,.12); }
.zt .t { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.zt .t small { font-weight: 500; font-size: .66rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.zt[aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.zt[aria-selected="true"] .t small { color: var(--on-ink-muted); }
.side-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .74rem; color: var(--muted); }
.side-row button { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); font: inherit; font-size: .74rem; cursor: pointer; }
.side-row button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.tiles-h { margin: 12px 0 0; font-size: .8rem; color: var(--ink-2); }
.tiles-h b { color: var(--emerald); }
.st-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 8px; margin-top: 10px; }
.tl-b { border: 0; padding: 0; background: none; font: inherit; cursor: pointer; text-align: center; color: var(--ink); min-width: 0; position: relative; }
.tl-b .sq { display: block; aspect-ratio: 1; border-radius: 2px; overflow: hidden; outline: 1px solid rgba(0,0,0,.08); outline-offset: -1px; background: var(--stone); position: relative; }
.tl-b .sq img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.tl-b:hover .sq img { transform: scale(1.06); }
.tl-b .nm { display: block; font-size: .68rem; line-height: 1.25; margin-top: 4px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-b[aria-pressed="true"] .sq { outline: 3px solid var(--emerald); outline-offset: 2px; }
.tl-b .used { position: absolute; right: 4px; top: 4px; font-size: .6rem; font-weight: 700; background: rgba(255,255,255,.92); border-radius: 999px; padding: 1px 5px; }
.tl-b[disabled] { opacity: .35; cursor: not-allowed; }
.tl-b .st-keep { display: flex; align-items: center; justify-content: center; height: 100%; font-size: .68rem; color: var(--ink-2); font-weight: 700; background: repeating-linear-gradient(0deg, #e3dccd 0 17px, #c9bfae 17px 18px), #e3dccd; }
.tl-b .st-keep span { background: rgba(255,255,255,.85); padding: 2px 6px; border-radius: 999px; }

.pfoot { background: var(--ink); color: var(--on-ink); padding: 14px 20px 16px; position: relative; }
.btn-ai { width: 100%; height: 52px; border-radius: 999px; border: 0; background: var(--yolk); color: var(--ink); font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-ai[aria-disabled="true"] { background: #3a413d; color: var(--on-ink-muted); cursor: not-allowed; }
.btn-ai .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: st-rot .8s linear infinite; }
@keyframes st-rot { to { transform: rotate(360deg); } }
.pfoot p { margin: 8px 0 0; font-size: .74rem; color: var(--on-ink-muted); text-align: center; line-height: 1.45; }
.pfoot p b { color: var(--on-ink); }
/* 넛지는 타일 위에 덮지 않고 잉크 바 안 한 줄(in-flow)로 둔다(검토_스튜디오.md 필수1) */
.nudge { position: relative; margin: 0 0 10px; padding: 0 28px 0 0; color: var(--on-ink); font-size: .8rem; line-height: 1.45; }
.nudge button { position: absolute; right: 0; top: -4px; width: 28px; height: 28px; border: 0; background: none; color: var(--on-ink-muted); font-size: 1rem; cursor: pointer; }
.nudge b { color: var(--yolk); }

.sheet-bg { position: fixed; inset: 0; background: rgba(18,23,20,.45); z-index: 150; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet { background: var(--paper); width: min(760px, 100%); max-height: min(720px, 90vh); overflow: auto; padding: 22px 24px; border-radius: 2px; position: relative; }
.sheet h2 { font-size: 1.4rem; }
.sheet .x { position: absolute; right: 12px; top: 10px; border: 0; background: none; font-size: 1.4rem; cursor: pointer; }
.sheet h3 { margin: 18px 0 8px; font-size: .9rem; }
.st-cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.st-cc { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.st-cc:hover { border-color: var(--ink); }
.st-cc .tri { display: flex; flex: none; }
.st-cc .tri img { width: 18px; height: 40px; object-fit: cover; }
.st-cc b { font-size: .8rem; display: block; }
.st-cc small { font-size: .68rem; color: var(--muted); display: block; line-height: 1.35; }

@media (min-width: 900px) and (max-height: 860px) {
  .pbody { padding: 12px 20px 8px; gap: 10px; }
  .ptitle { margin-bottom: 4px; }
  .chiprow { padding-top: 6px; }
  .st-or { display: none; }
  .st-type { padding: 4px 8px; }
  .st-type svg { width: 24px; height: 28px; }
  .st-zones { margin-top: 6px; }
  .zt { height: 36px; }
  .tiles-h { margin-top: 6px; }
  .st-tiles { gap: 6px 8px; margin-top: 6px; }
  .tl-b .sq { aspect-ratio: 4 / 3; }
  .tl-b .nm { -webkit-line-clamp: 1; margin-top: 2px; }
  .pfoot { padding: 10px 20px 12px; }
  .btn-ai { height: 48px; }
  .pfoot p { margin-top: 6px; }
}

@media (max-width: 899px) {
  body[data-page="preview"] { overflow-x: hidden; }
  .st-top { height: 48px; padding: 0 12px; gap: 10px; position: sticky; top: 0; z-index: 20; }
  .st-title { font-size: .95rem; padding-left: 10px; }
  .st-top a.st-tl, .st-quota .lbl-long { display: none; }
  .studio { display: block; height: auto; }
  .stage { padding: 0 0 var(--sheet-h, 330px); gap: 0; }
  .cwrap { container-type: normal; display: block; position: sticky; top: 48px; z-index: 10; }
  .canvas { width: 100%; }
  .st-tools { right: 8px; top: 8px; gap: 4px; }
  .st-tool { height: 30px; padding: 0 9px; font-size: .7rem; }
  .st-tool .lbl { display: none; }
  .badge-q { left: 8px; top: 8px; font-size: .66rem; padding: 4px 8px; }
  .zl { font-size: .62rem; padding: 3px 7px; }
  .zl small { display: none; }
  .space-chip { left: 8px; bottom: 32px; font-size: .66rem; }
  .strip { font-size: .62rem; padding: 6px 8px; }
  .strip a, .strip button.linkish { font-size: .64rem; }
  .upload-bar { bottom: 52px; font-size: .74rem; padding: 6px 6px 6px 12px; gap: 8px; }
  .upload-bar button { height: 32px; font-size: .76rem; padding: 0 12px; }
  .upload-bar .g { display: none; }
  .notice-row { padding: 5px 12px; }
  .notice-s { line-height: 1.4; font-size: .7rem; }
  .notice-s .long { display: none; }
  /* 검토_스튜디오.md 권고3: 설비 고지 문장은 0.75rem 아래로 내리지 않는다(캔버스 위 라벨·고지문과 달리 계약상 중요한 문장) */
  #notice-fix { font-size: .75rem; }
  /* 검토_스튜디오.md 필수1·UX_스튜디오_재설계.md 2-3: 모바일은 캔버스 위 "다른 집 AI 사례 N" 알약이 1차 접점이라
     스크롤 없는 첫 화면을 지키기 위해 캔버스 아래 사례 줄(.case-row)은 숨긴다(사례 상세는 알약 → 모달로 본다) */
  .case-row { display: none; }
  /* 캔버스 오른쪽 아래 "다른 집 AI 사례 N" 알약 — 목업 prototype/studio.html .case-pill과 같은 자리·크기(표시부만) */
  .case-pill { right: 8px; bottom: 32px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border-radius: 999px; border: 0; background: rgba(255,255,255,.94); color: var(--ink); font: inherit; font-size: .66rem; font-weight: 700; cursor: pointer; }
  .case-pill .st { display: inline-flex; }
  /* position:static로 .canvas img(전역, position:absolute·inset:0)를 덮어써야 아바타가 알약 안에 정상 크기로 쌓인다 */
  .case-pill .st img { position: static; width: 18px; height: 18px; border-radius: 50%; object-fit: cover; border: 1.5px solid #fff; margin-left: -7px; }
  .case-pill .st img:first-child { margin-left: 0; }
  .film { grid-template-columns: minmax(0, 1fr) auto; min-height: 0; padding: 6px 12px; gap: 8px; }
  .film-h { display: none; }
  .film.empty { display: none; }
  .fi { width: 76px; }
  .film-act a { display: none; }
  .btn-q { height: 40px; padding: 0 14px; font-size: .8rem; }
  .three { position: static; padding: 8px 0; gap: 6px; }
  .three-head { padding: 0 12px; }
  .three-head h2 { font-size: 1rem; }
  .three-head .caption { display: none; }
  .three-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding: 0 12px; }
  .tcard { flex: none; width: 78%; scroll-snap-align: start; }
  .tcard b { margin-top: 6px; font-size: .84rem; }
  .tcard ul { font-size: .7rem; }
  .tcard .edit { display: none; }
  .panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-left: 0; border-top: 1px solid var(--line-strong); }
  .pbody { padding: 10px 12px 8px; gap: 8px; overflow: visible; }
  .ptitle, .st-or, .ask-cap { display: none; }
  .askbox input { height: 34px; font-size: .86rem; }
  .icon-btn { width: 34px; height: 34px; }
  .st-go { height: 34px; font-size: .76rem; padding: 0 12px; }
  .chiprow { padding-top: 6px; }
  .ex { height: 30px; font-size: .74rem; }
  .read { padding: 6px 8px; margin-top: 6px; }
  .read p { display: none; }
  .st-kw { flex-wrap: nowrap; overflow-x: auto; }
  .st-kw span { flex: none; }
  .direct-top { display: flex; gap: 6px; align-items: center; }
  .st-types { display: flex; gap: 4px; flex: none; }
  .st-type { padding: 3px; border-width: 1px; min-width: 40px; min-height: 40px; justify-content: center; }
  .st-type svg { width: 24px; height: 28px; }
  .st-type span { display: none; }
  .st-zones { margin-top: 0; flex: 1; overflow-x: auto; gap: 4px; }
  .zt { flex: none; height: 36px; font-size: .72rem; padding: 0 10px 0 3px; }
  .zt .sw { width: 28px; height: 28px; }
  .zt .t small { display: none; }
  .side-row { margin-top: 2px; }
  .tiles-h { margin: 0; font-size: .7rem; }
  .st-tiles { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 60px; grid-template-columns: none; overflow-x: auto; gap: 6px 8px; margin-top: 0; padding: 4px 2px 2px; scrollbar-width: none; }
  .st-tiles::-webkit-scrollbar { display: none; }
  .tl-b { width: 60px; }
  .tl-b .nm { -webkit-line-clamp: 2; font-size: .64rem; min-height: 2.5em; }
  .toast { top: auto; bottom: calc(var(--sheet-h, 330px) + 8px); left: 50%; }
  .pfoot { padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); }
  .btn-ai { height: 46px; font-size: .92rem; }
  .pfoot p { margin-top: 5px; font-size: .68rem; }
  .nudge { display: none !important; }
  .btn-ai.pulse { animation: st-pulse 1.8s 3; }
  @keyframes st-pulse { 0% { box-shadow: 0 0 0 0 rgba(233,174,53,.7); } 100% { box-shadow: 0 0 0 14px rgba(233,174,53,0); } }
  .strip .long-s { display: none; }
  .space-chip { bottom: 28px; }
  .st-cgrid { grid-template-columns: 1fr; }
  .sheet { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { .studio *, .studio *::before, .studio *::after { animation: none !important; transition: none !important; } }
