@font-face { font-family: 'Pretendard'; font-weight: 300; font-display: swap; src: url('../fonts/Pretendard-Light.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 500; font-display: swap; src: url('../fonts/Pretendard-Medium.woff2') format('woff2'); }

/* =============================================================
   Whoshot · 2안 화이트 디자인
   흰 바탕 · 큰 단계 숫자 · 점선 · 검정 칩 · 아래 회색 칸 + 검정 동그라미 버튼
   ============================================================= */
:root {
  --bg: #FFFFFF;
  --ink: #111111;
  --ink-2: #3A3A3C;
  --muted: #8A847C;
  --faint: #A09A92;
  --line: #E6E3DE;
  --line-2: #D6D1C9;
  --dot: #CFCAC2;
  --row: #DAD6D0;
  --soft: #F3F2F0;
  --coral: #E2603A;
  --sun: #C4553D;
  --accent: #111111;
  --danger: #A3222F;
  --sans: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --display: 'Gothic A1', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --logo: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', sans-serif;
  --pretendard: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --invite: 'Cormorant Garamond', 'Gowun Batang', serif;
  --hand: 'Caveat', 'Nanum Pen Script', cursive;
  --pen: 'Nanum Pen Script', cursive;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.demo-banner { background: var(--ink); color: #fff; text-align: center; font-size: 12px; font-weight: 500; padding: 6px 12px; }

/* ---------- 페이지 뼈대 ---------- */
.page {
  max-width: 480px; margin: 0 auto; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: 0 24px calc(28px + env(safe-area-inset-bottom));
}
.spacer { flex: 1 1 auto; min-height: 16px; }
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: calc(10px + env(safe-area-inset-top)); min-height: 64px; margin: 0 -10px; }
.nav .mono { padding-right: 10px; }
.icon-btn {
  width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; border-radius: 22px; cursor: pointer; text-decoration: none; color: var(--ink);
}
.icon-btn:disabled { opacity: .3; cursor: default; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); }

/* ---------- 제목 ---------- */
.step-head { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; padding: 0 4px; }
.step-head .num { font-family: var(--display); font-weight: 700; font-size: 46px; letter-spacing: -1.5px; line-height: 1; }
.step-head .ttl { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -.6px; line-height: 1.25; }
.big-title { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.25; letter-spacing: -.8px; margin: 18px 4px 0; }
.dots { border-top: 2px dotted var(--dot); margin: 20px 4px 0; }
.lbl { font-size: 13px; color: var(--muted); margin: 18px 4px 10px; display: block; }
.sub { font-size: 13px; color: var(--muted); margin: 6px 4px 0; line-height: 1.5; }

/* ---------- 칩 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 19px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); font-size: 14px; font-weight: 500; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.chip.soft { background: var(--soft); border: 1.5px solid var(--soft); font-size: 13.5px; }
.chip.soft[aria-pressed="true"] { background: var(--soft); color: var(--ink); border-color: var(--ink); }
.chip.soft .plus { opacity: .5; }

/* ---------- 입력 ---------- */
.line-input {
  width: 100%; height: 52px; border: 0; border-bottom: 2px solid var(--ink); background: transparent;
  font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--ink); outline: none; padding: 0 2px; border-radius: 0;
}
.line-input::placeholder { color: #C9C4BC; font-weight: 500; }
.counter { text-align: right; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 6px; }

/* ---------- 아래 막대: 회색 요약 칸 + 검정 동그라미 ---------- */
.bar { display: flex; gap: 12px; align-items: center; margin-top: 20px; }
.bar .pill {
  flex: 1; min-width: 0; height: 58px; border-radius: 29px; background: var(--soft);
  display: flex; align-items: center; gap: 6px; padding: 0 22px; font-size: 16px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar .pill.empty { color: var(--faint); }
.bar .go:only-child { margin-left: auto; } /* 둥근 칸이 없을 때 다음 버튼은 오른쪽 */
.bar.tight { margin-top: 6px; }                    /* 04단계: 미리보기를 크게 쓰려고 버튼 위 여백만 좁게 */
.spacer:has(+ .bar.tight) { min-height: 0; }
.bar .pill b { font-weight: 700; }
.go {
  width: 58px; height: 58px; border-radius: 50%; background: var(--ink); border: 0; color: #fff; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px -10px rgba(0,0,0,.5); text-decoration: none;
}
.go:disabled { opacity: .25; box-shadow: none; cursor: default; }

/* ---------- 버튼 ---------- */
.btn {
  height: 52px; padding: 0 28px; border-radius: 26px; border: 0; background: var(--ink); color: #fff;
  font-size: 15.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-decoration: none; width: 100%;
}
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.kakao { background: #FEE500; color: #191919; }
.btn.apple { background: #000; color: #fff; }
.btn.google { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.danger { background: var(--danger); }
.btn.auto { width: auto; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-row { display: flex; gap: 8px; }
.btn-row > .btn.ghost { width: auto; flex-shrink: 0; }
.text-link { font-size: 12px; font-weight: 500; color: var(--ink-2); padding: 10px 6px; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; text-decoration: underline; }
.text-danger { align-self: center; min-height: 40px; padding: 0 14px; border: 0; background: transparent; color: var(--danger); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- 목록 줄 (점선) ---------- */
.rows { display: flex; flex-direction: column; padding: 0 12px; }
.opt {
  width: 100%; min-height: 50px; padding: 8px 4px; border: 0; border-bottom: 1px dotted var(--row); border-radius: 0;
  background: transparent; color: var(--ink); text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer;
}
.opt .t { display: block; font-size: 15px; font-weight: 700; }
.opt .s { display: block; margin-top: 2px; font-size: 12px; opacity: .65; }
.opt .r { font-size: 13px; font-weight: 700; flex-shrink: 0; }
.opt .muted { color: var(--muted); font-weight: 500; }
.opt[aria-checked="true"], .opt[aria-pressed="true"] {
  width: calc(100% + 24px); margin: 0 -12px; padding: 8px 16px; border-radius: 27px; border-bottom: 0; background: var(--ink); color: #fff;
}
.opt[aria-pressed="true"] .muted { color: #fff; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 46px; padding: 0 4px; border-bottom: 1px dotted var(--row); font-size: 15px; }
.kv > :last-child { color: var(--muted); text-align: right; }
.kv.link { width: 100%; border-left: 0; border-right: 0; border-top: 0; background: none; cursor: pointer; text-align: left; color: var(--ink); text-decoration: none; }
.kv .tag { padding: 6px 12px; border-radius: 14px; background: var(--ink); color: #fff !important; font-size: 12px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 4px 0; }
.total b { font-family: var(--display); font-size: 24px; }
.note { font-size: 14px; line-height: 1.75; color: var(--ink-2); padding: 0 8px; }

/* ---------- 달력 ---------- */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 6px; padding: 0 0 0 4px; }
.cal-head b { font-family: var(--display); font-size: 17px; }
.cal-head .nav-btns { display: flex; gap: 6px; }
.cal-head .nav-btns button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--soft); font-size: 16px; cursor: pointer; }
.cal-head .nav-btns button:disabled { opacity: .35; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; }
.cal .wd { text-align: center; font-size: 11px; color: var(--muted); padding-bottom: 4px; }
.cal .wd.sun { color: var(--sun); }
.day { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; margin: 0 auto; display: block; padding: 0;
  font-family: var(--mono); font-size: 14px; color: var(--ink); cursor: pointer; }
.day[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 700; }
.day:disabled { color: #CFCAC2; cursor: default; }
.day.today { box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- 시간 바퀴 ---------- */
.wheels { position: relative; height: 180px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.wheels .band { position: absolute; left: 0; right: 0; top: 72px; height: 36px; border-radius: 12px; background: var(--soft); }
.wheels .fade { position: absolute; left: 0; right: 0; height: 72px; pointer-events: none; z-index: 2; }
.wheels .fade.t { top: 0; background: linear-gradient(#fff, rgba(255,255,255,.4)); }
.wheels .fade.b { bottom: 0; background: linear-gradient(rgba(255,255,255,.4), #fff); }
.wheel { position: relative; z-index: 1; height: 180px; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; outline: none; }
.wheel::-webkit-scrollbar { display: none; }
.wheel .pad { height: 72px; }
.wheel .it { height: 36px; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 22px; font-weight: 700; color: #B9B4AC; }
.wheel .it.on { color: var(--ink); }
.wheels .colon { position: relative; z-index: 1; font-family: var(--display); font-size: 22px; font-weight: 700; }
.wheels.sm { height: 90px; }
.wheels.sm .band { top: 30px; height: 30px; }
.wheels.sm .fade { height: 30px; }
.wheels.sm .wheel { height: 90px; }
.wheels.sm .wheel .pad { height: 30px; }
.wheels.sm .wheel .it { height: 30px; font-size: 18px; }

/* ---------- 원형 컷 칩 ---------- */
.circles { display: flex; justify-content: space-between; gap: 6px; padding: 0 4px; }
.circle { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-family: var(--mono); font-size: 15px; cursor: pointer; padding: 0; }
.circle:disabled { opacity: .3; cursor: default; text-decoration: line-through; }
.circle[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }

/* ---------- 초대장 미리보기 (4단계) ---------- */
.preview-box { margin-top: 22px; border-radius: 26px; background: var(--soft); padding: 22px 0 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone { width: 198px; height: 429px; border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 5px var(--ink), 0 18px 30px -16px rgba(0,0,0,.45); position: relative; background: #0B0B0B; }
.phone > .invite { width: 390px; height: 844px; min-height: 844px; transform: scale(.5077); transform-origin: 0 0; pointer-events: none; }
.preview-actions { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pchip { height: 38px; padding: 0 14px; border-radius: 19px; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; color: var(--ink); white-space: nowrap; }

/* ---------- 초대장 (하객 첫 화면 · 클래식) ---------- */
body.dark { background: #0B0B0B; color: #fff; }
.invite { position: relative; width: 100%; max-width: 480px; margin: 0 auto; min-height: 100dvh; background: #0B0B0B; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.invite .cover { position: absolute; left: 0; right: 0; top: 0; height: 82%; overflow: hidden; background: #1A1A1A; }
.invite .cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.invite .cover .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.invite .cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(11,11,11,0) 0%, rgba(11,11,11,0) 72%, rgba(11,11,11,.55) 88%, #0B0B0B 100%); }
.invite .body { position: relative; z-index: 1; padding: 0 32px calc(34px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; text-align: center; text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.invite .by { align-self: center; padding: 6px 11px; border-radius: 4px; border: 1px solid rgba(255,255,255,.4); background: rgba(11,11,11,.25); font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; }
.invite h1 { margin: 0; font-family: var(--invite); font-weight: 500; font-size: 40px; letter-spacing: 0; line-height: 1.1; word-break: keep-all; }
.invite .meta { margin-top: 14px; align-self: center; display: grid; grid-template-columns: auto auto; column-gap: 14px; row-gap: 5px; text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; }
.invite .meta .k { color: rgba(255,255,255,.6); }
.invite .name-box { margin-top: 20px; height: 52px; border-radius: 6px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); display: flex; align-items: center; padding: 0 16px; }
.invite .name-box input { flex: 1; min-width: 0; text-align: center; border: 0; background: transparent; color: #fff; font-size: 16px; outline: none; }
.invite .name-box input::placeholder { color: rgba(255,255,255,.5); }
.invite .join { margin-top: 10px; height: 54px; border-radius: 6px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.55); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 700; cursor: pointer; text-shadow: none; text-decoration: none; width: 100%; }
.invite .join.ghost { background: transparent; border-color: rgba(255,255,255,.3); font-weight: 500; font-size: 14px; height: 46px; }
.invite .foot { margin-top: 12px; font-size: 12.5px; color: rgba(255,255,255,.7); }
.invite .msg-box { margin-top: 20px; padding: 14px; border-radius: 6px; background: rgba(255,255,255,.08); font-size: 14px; line-height: 1.6; text-shadow: none; }
.invite .err { margin-top: 10px; padding: 12px; border-radius: 6px; background: rgba(163,34,47,.85); font-size: 13px; text-shadow: none; }

/* ---------- 첫 화면 · 도착 알림 ---------- */
.intro { position: relative; max-width: 480px; margin: 0 auto; min-height: 100dvh; overflow: hidden; background: #fff; }
.intro .cards { position: absolute; inset: 0; pointer-events: none; }
.ncard { position: absolute; transform-origin: 0 0; width: 228px; background: rgba(244,244,246,.97); border-radius: 22px; padding: 12px 14px 13px 12px; display: flex; gap: 10px; align-items: flex-start; box-shadow: 0 10px 28px -14px rgba(0,0,0,.22); }
.ncard .av { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.ncard .tx { flex: 1; min-width: 0; }
.ncard .hd { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.ncard .hd b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncard .hd span { font-size: 11.5px; color: #6E6E73; flex-shrink: 0; }
.ncard .bd { font-size: 13px; color: #2C2C2E; margin-top: 2px; line-height: 1.38; word-break: keep-all; }
.intro .center { position: absolute; top: 39%; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.logo { font-family: var(--logo); font-weight: 300; font-size: 50px; line-height: 1; letter-spacing: 1px; padding-left: 1px; color: var(--ink); }
.logo-sm { font-family: var(--logo); font-weight: 300; font-size: 20px; line-height: 1; letter-spacing: 1px; }
.intro .tag { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.intro .cta { position: absolute; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* ---------- 내 이벤트 ---------- */
.ev-card { display: flex; gap: 14px; align-items: center; min-height: 72px; padding: 10px 4px; border-bottom: 1px dotted var(--row); text-decoration: none; color: var(--ink); }
.ev-card .thumb { width: 52px; height: 52px; border-radius: 12px; background: var(--soft) center/cover no-repeat; flex-shrink: 0; }
.ev-card .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ev-card .meta b { font-family: var(--display); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-card .meta span { font-size: 12px; color: var(--muted); }
.badge { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; padding: 4px 8px; border-radius: 10px; background: var(--soft); color: var(--ink-2); flex-shrink: 0; }
.badge.live { background: var(--ink); color: #fff; }
.empty { padding: 48px 12px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.7; }
.legal-links { display: flex; justify-content: center; gap: 14px; margin-top: 14px; font-size: 12px; }
.legal-links a { color: var(--muted); }

/* ---------- QR ---------- */
.qr-card { margin: 24px 46px 0; background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: 20px 20px 16px; box-shadow: 0 16px 30px -18px rgba(0,0,0,.3); text-align: center; }
.qr-box { width: 206px; height: 206px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.qr-box svg, .qr-box img { width: 206px; height: 206px; }
.qr-card .nm { margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: 17px; word-break: keep-all; }
.qr-card .dt { margin-top: 2px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.paid { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.print-card { display: none; }
@media print {
  body { background: #fff; }
  body > *:not(.print-card) { display: none !important; }
  .print-card { display: flex !important; flex-direction: column; align-items: center; gap: 16px; padding: 40px; text-align: center; font-family: var(--sans); color: #111; }
  .print-card .logo-sm { font-size: 22pt; }
  .print-card h1 { font-family: var(--display); font-size: 28pt; margin: 0; }
  .print-card .qr-box, .print-card .qr-box svg, .print-card .qr-box img { width: 8cm; height: 8cm; }
  .print-card p { margin: 0; font-size: 13pt; }
}

/* ---------- 사진 격자 ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.ph { position: relative; border: 0; padding: 0; background: var(--soft); border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 3 / 4; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .no { position: absolute; right: 6px; bottom: 5px; font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,.9); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.ph .who { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; font-size: 10px; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.55)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph .sel { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 12px; border: 2px solid #fff; background: rgba(0,0,0,.25); display: none; align-items: center; justify-content: center; }
.selecting .ph .sel { display: flex; }
.ph[aria-pressed="true"] .sel { background: var(--ink); }
.ph[aria-pressed="true"] img { opacity: .7; }
.lock { margin-top: 28px; padding: 30px 20px; border-radius: 24px; background: var(--soft); text-align: center; }
/* 앨범 잠금 화면 글꼴·크기: 디자인 캔버스 "Whoshot 앨범 잠금 화면 글꼴"에서 정함 (2026-10-30) */
.lock .lock-title { font-family: Arial, var(--sans); font-weight: 500; font-size: 26px; line-height: 1.05; letter-spacing: -.5px; }
.lock .cap { margin-top: 18px; font-size: 12px; color: #6F6A63; letter-spacing: .02em; }
.lock .clock { font-family: Arial, var(--sans); font-size: 26px; letter-spacing: .06em; margin: 2px 0 10px; line-height: 1.2; }
.lock p { margin: 0; font-size: 13px; color: #6F6A63; line-height: 1.6; }

/* ---------- G3 강조 문구 (Pretendard Medium) ---------- */
.hand-big { font-family: var(--pretendard); font-weight: 500; font-size: 30px; line-height: 1.05; letter-spacing: -.5px; text-align: center; }
.hand { font-family: var(--pretendard); font-weight: 500; font-size: 20px; line-height: 1.3; color: var(--ink-2); text-align: center; }
.promo { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1.5px dashed var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); margin-top: 18px; }
.promo .p1 { display: block; font-family: var(--pretendard); font-weight: 500; font-size: 16px; line-height: 1.3; }
.promo .p2 { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.center-muted { text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- 카메라 ---------- */
body.cam { background: #111; color: #fff; overscroll-behavior: none; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.cam-app { width: 100%; max-width: 520px; margin: 0 auto; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cam-top { padding: calc(8px + env(safe-area-inset-top)) 16px 8px; display: flex; justify-content: space-between; align-items: center; }
.cam-top .icon-btn { color: #fff; }
.cam-top .count { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; }
.viewport { position: relative; flex: 1; min-height: 0; margin: 4px 16px 0; border-radius: 24px; overflow: hidden; background: #2A2A2E; }
.viewport video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewport.mirror video { transform: scaleX(-1); }
.viewport[data-f="polaroid"] video { filter: brightness(1.1) contrast(.92) saturate(.94) sepia(.04); }
.viewport[data-f="film"] video { filter: contrast(.82) brightness(1.08) sepia(.14) saturate(1.02); }
.viewport[data-f="digital"] video { filter: contrast(1.14) saturate(1.2) brightness(1.04); }
.viewport .crop { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100%; pointer-events: none; }
.viewport .corner { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(255,255,255,.85); }
.viewport .c1 { top: 16px; left: 16px; border-top-width: 2px; border-left-width: 2px; }
.viewport .c2 { top: 16px; right: 16px; border-top-width: 2px; border-right-width: 2px; }
.viewport .c3 { bottom: 16px; left: 16px; border-bottom-width: 2px; border-left-width: 2px; }
.viewport .c4 { bottom: 16px; right: 16px; border-bottom-width: 2px; border-right-width: 2px; }
.viewport .stamp { position: absolute; bottom: 20px; right: 50px; font-family: var(--mono); font-size: 12px; color: #FBF6B4; letter-spacing: .04em; }
.viewport .square { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); aspect-ratio: 1 / 1; box-shadow: 0 0 0 999px rgba(17,17,17,.45); pointer-events: none; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .35s ease-out; z-index: 5; }
.flash.on { opacity: .9; transition: none; }
.cam-msg { position: absolute; inset: 0; z-index: 6; background: rgba(17,17,17,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 32px; text-align: center; }
.cam-msg h2 { font-family: var(--hand); font-size: 40px; font-weight: 400; margin: 0; line-height: 1.1; }
.cam-msg p { margin: 0; font-size: 14px; line-height: 1.6; color: #D6D1C9; }
.cam-msg .btn { width: auto; background: transparent; border: 1px solid #5A5650; height: 44px; font-size: 14px; }
.filters { display: flex; justify-content: center; gap: 4px; padding: 14px 0 0; }
.filters button { padding: 8px 13px; border-radius: 16px; border: 0; background: transparent; color: rgba(255,255,255,.7); font-size: 13.5px; cursor: pointer; min-height: 36px; }
.filters button[aria-checked="true"] { background: #fff; color: #111; font-weight: 700; }
.cam-bottom { padding: 16px 30px calc(22px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; align-items: center; }
.last-thumb { width: 48px; height: 48px; border-radius: 10px; border: 2px solid #fff; background: #333 center/cover no-repeat; display: block; }
.shutter { width: 78px; height: 78px; border-radius: 50%; border: 4px solid #fff; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.shutter i { width: 62px; height: 62px; border-radius: 50%; background: #fff; transition: transform .1s; }
.shutter:active i { transform: scale(.9); }
.shutter:disabled { opacity: .4; }
.cam-round { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.15); border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; }

/* ---------- 시트 · 라이트박스 · 토스트 ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(17,17,17,.5); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 480px; background: #fff; border-radius: 26px 26px 0 0; padding: 24px 24px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
@media (min-width: 520px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 26px; } }
.sheet-title { font-family: var(--display); font-size: 22px; margin: 0; }
.warn-box { padding: 14px 16px; border-radius: 14px; background: #FBEDEE; color: #6E1E27; font-size: 14px; line-height: 1.6; }
.warn-box ul { margin: 8px 0; padding-left: 18px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; cursor: pointer; padding: 4px 0; }
.check-row input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--danger); }
.legal-note { margin: 4px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); text-align: center; }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(17,17,17,.98); display: flex; flex-direction: column; color: #fff; }
.lightbox .lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; gap: 12px; }
.lightbox .lb-top .icon-btn { color: #fff; background: #262524; }
.lightbox .lb-img { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 12px; min-height: 0; }
.lightbox .lb-img img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 4px; }
.lightbox .lb-bottom { padding: 12px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; gap: 8px; }
.lightbox .lb-bottom .btn { white-space: nowrap; }
.lightbox .lb-bottom .btn.ghost { flex-shrink: 0; width: auto; background: transparent; color: #fff; border-color: #5A5650; }
.lightbox .lb-bottom .btn.main { background: #fff; color: #111; }

.toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s ease; z-index: 100; max-width: calc(100vw - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.cam .toast { background: #fff; color: #111; bottom: auto; top: calc(64px + env(safe-area-inset-top)); width: max-content; max-width: calc(100vw - 48px); line-height: 1.45; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; margin: 40vh auto 0; }
body.dark .spinner { border-color: #333; border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { padding: 14px; border-radius: 14px; background: #FBEDEE; color: #7A2630; font-size: 14px; line-height: 1.5; }

/* ---------- G4 공유받은 앨범 (검정 · 커버 사진) ---------- */
.sa { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: #0B0B0B; color: #F4F1EA; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.sa-cover { position: relative; height: 440px; overflow: hidden; background: #1A1A1A; }
.sa-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.sa-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(11,11,11,.45) 0%, rgba(11,11,11,0) 22%, rgba(11,11,11,0) 50%, rgba(11,11,11,.85) 82%, #0B0B0B 100%); }
.sa-share { position: absolute; z-index: 2; top: calc(14px + env(safe-area-inset-top)); right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(244,241,234,.16); color: #F4F1EA; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sa-body { position: relative; z-index: 1; margin-top: -66px; padding: 0 24px; }
.sa-title { margin: 0; font-family: var(--invite); font-weight: 500; font-size: 34px; line-height: 1.1; letter-spacing: 0; word-break: keep-all; }
.sa-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
.sa-stats div { padding: 14px 0; display: flex; flex-direction: column; gap: 4px; }
.sa-stats b { font-family: var(--pretendard); font-weight: 500; font-size: 22px; }
.sa-stats b.d { font-family: var(--mono); font-size: 20px; line-height: 1.3; }
.sa-stats span { font-size: 12px; color: rgba(244,241,234,.6); }
.sa-actions { display: flex; gap: 10px; margin-top: 14px; }
.sa-save { flex: 1; height: 52px; border-radius: 14px; border: 0; background: #F4F1EA; color: #111; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.sa-save svg { width: 18px; height: 18px; }
.sa-mine { width: 112px; height: 52px; border-radius: 14px; border: 0; background: rgba(244,241,234,.1); color: #F4F1EA; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sa-save:disabled, .sa-mine:disabled { opacity: .5; cursor: default; }
.sa .promo { margin-top: 18px; border: 0; background: #1A1918; color: #F4F1EA; padding: 14px 16px; }
.sa .promo .p2 { color: rgba(244,241,234,.6); margin-top: 3px; }
.sa .promo .mk { padding: 7px 12px; border-radius: 16px; border: 1px solid rgba(244,241,234,.35); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sa .chips { margin-top: 22px; }
.sa .chip { background: transparent; color: rgba(244,241,234,.85); border-color: rgba(244,241,234,.25); }
.sa .chip[aria-pressed="true"] { background: #F4F1EA; color: #111; border-color: #F4F1EA; }
.sa .grid3 { gap: 6px; }
.sa .ph { background: #1A1918; border-radius: 10px; }
.sa .empty { color: rgba(244,241,234,.6); }

/* 카메라 플래시: 화면 플래시 + 켜짐 표시 */
.screen-flash { position: fixed; inset: 0; z-index: 100; background: #fff; opacity: 1; transition: opacity .3s ease-out; pointer-events: none; }
.screen-flash.off { opacity: 0; }
.cam-top #torch[aria-pressed="true"] { color: #FFD54A; }

/* QR 저장 · 테이블 카드 고르기 */
.save-opts { display: flex; flex-direction: column; gap: 10px; }
.save-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.save-opt:disabled { opacity: .5; cursor: default; }
.save-opt .thumb { width: 56px; height: 56px; border-radius: 10px; flex-shrink: 0; background: var(--soft) center/contain no-repeat; border: 1px solid var(--line); }
.save-opt .thumb.clear { background-color: #fff; background-image: linear-gradient(45deg, #E6E3DE 25%, transparent 25%, transparent 75%, #E6E3DE 75%), linear-gradient(45deg, #E6E3DE 25%, transparent 25%, transparent 75%, #E6E3DE 75%); background-size: 12px 12px; background-position: 0 0, 6px 6px; }
.save-opt .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.save-opt .tx span { font-size: 12px; color: var(--muted); line-height: 1.45; }
.card-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0; }
.card-pick { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 10px 12px; border: 2px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); cursor: pointer; font: inherit; }
.card-pick[aria-checked="true"] { border-color: var(--ink); }
.card-pick b { font-size: 15px; margin-top: 6px; }
.card-pick > span:last-child { font-size: 12px; color: var(--muted); }
.cp-img { width: 100%; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--soft); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.cp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-wait { font-size: 12px; color: var(--muted); }
.sheet { max-height: 92dvh; overflow-y: auto; }

/* 커버 사진 맞추기 (초대장 4단계) */
.crop-wrap { position: fixed; inset: 0; z-index: 80; background: #0B0B0B; color: #fff; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 calc(16px + env(safe-area-inset-bottom)); }
.crop-top { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 8px; }
.crop-top b { font-size: 16px; font-weight: 600; }
.crop-txt { min-width: 64px; height: 44px; border: 0; background: none; color: rgba(255,255,255,.75); font: inherit; font-size: 16px; cursor: pointer; }
.crop-txt.strong { color: #fff; font-weight: 700; }
.crop-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.crop-frame { position: relative; overflow: hidden; border-radius: 6px; background: #1A1A1A; touch-action: none; cursor: grab; outline: 2px solid rgba(255,255,255,.9); outline-offset: 0; user-select: none; -webkit-user-select: none; }
.crop-frame:active { cursor: grabbing; }
.crop-frame:focus-visible { outline-color: var(--coral); }
.crop-frame img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; -webkit-user-drag: none; }
.crop-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(11,11,11,0) 72%, rgba(11,11,11,.55) 88%, #0B0B0B 100%); }
.crop-grid { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.25) calc(33.33% - .5px), rgba(255,255,255,.25) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.25) calc(66.66% - .5px), rgba(255,255,255,.25) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
  linear-gradient(transparent calc(33.33% - .5px), rgba(255,255,255,.25) calc(33.33% - .5px), rgba(255,255,255,.25) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.25) calc(66.66% - .5px), rgba(255,255,255,.25) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.crop-tip { margin: 14px 24px 0; text-align: center; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.8); }
.crop-tip span { color: rgba(255,255,255,.5); font-size: 12px; }
.crop-zoom { display: flex; align-items: center; gap: 12px; padding: 12px 28px 0; max-width: 420px; width: 100%; margin: 0 auto; }
.crop-zoom input { flex: 1; accent-color: #fff; height: 32px; }
.crop-z { width: 44px; height: 44px; border-radius: 22px; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.preview-actions .pchip { padding: 0 11px; gap: 5px; }

/* 04 카메라 고르기 + 촬영 화면 카메라 이름 */
.cam-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.cam-pick { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 8px 14px; border: 2px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; text-align: center; }
.cam-pick[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.cam-pick b { margin-top: 10px; font-size: 15px; }
.cam-pick > span:last-child { font-size: 11.5px; line-height: 1.4; color: var(--muted); word-break: keep-all; }
.cam-sample { position: relative; display: flex; flex-direction: column; width: 100%; height: 0; padding-bottom: 133%; }
.cam-sample > * { position: absolute; }
.cs-photo { inset: 0; overflow: hidden; border-radius: 6px; background: #ddd; }
.cs-photo svg { width: 100%; height: 100%; display: block; }
.cam-sample[data-f="polaroid"] { width: 83.5%; padding-bottom: 133%; margin: 0 auto; background: linear-gradient(#F8F7F3, #F1F0EB); border-radius: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.16); }
.cam-sample[data-f="polaroid"] .cs-photo { left: 7.4%; right: 7.4%; top: 7.6%; bottom: 20.3%; border-radius: 0; box-shadow: inset 0 0 3px rgba(0,0,0,.2); }
.cam-sample[data-f="polaroid"] .cs-photo svg { filter: brightness(1.1) contrast(.9) saturate(.92) sepia(.04); }
.cam-sample[data-f="film"] .cs-photo svg { filter: contrast(.82) brightness(1.06) sepia(.14); }

.cam-sample[data-f="film"] .cs-photo::before { content: ''; position: absolute; inset: 0; z-index: 1; opacity: .35; background-image: radial-gradient(rgba(0,0,0,.5) 0.6px, transparent 0.7px), radial-gradient(rgba(255,255,255,.5) 0.6px, transparent 0.7px); background-size: 3px 3px, 4px 4px; background-position: 0 0, 1px 2px; }
.cam-sample[data-f="digital"] .cs-photo svg { filter: contrast(1.22) saturate(1.45) brightness(1.04) hue-rotate(-6deg); }
.cam-name { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 16px; background: rgba(255,255,255,.1); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: rgba(255,255,255,.85); }

.cam-try { margin-top: 16px; gap: 8px; }

/* 카메라로 비춰 보기 */
.camtest { position: fixed; inset: 0; z-index: 85; background: #0B0B0B; color: #fff; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 calc(14px + env(safe-area-inset-bottom)); }
.ct-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; }
.ct-top .icon-btn { color: #fff; }
.ct-ttl { font-size: 15px; font-weight: 600; }
.ct-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 6px 20px; }
.ct-stage canvas { max-width: 100%; max-height: 100%; border-radius: 4px; background: #1A1A1A; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.ct-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.85); padding: 0 30px; }
.ct-retry { margin-top: 12px; height: 42px; padding: 0 18px; border-radius: 21px; border: 1px solid rgba(255,255,255,.4); background: none; color: #fff; font: inherit; cursor: pointer; }
.ct-desc { margin: 10px 0 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.7); min-height: 18px; }
.ct-filters { display: flex; justify-content: center; gap: 6px; padding-top: 14px; }
.ct-filters button { min-height: 40px; padding: 0 16px; border-radius: 20px; border: 0; background: transparent; color: rgba(255,255,255,.7); font: inherit; font-size: 14.5px; cursor: pointer; }
.ct-filters button[aria-checked="true"] { background: #fff; color: #111; font-weight: 700; }
.ct-note { margin: 8px 0 0; text-align: center; font-size: 11.5px; color: rgba(255,255,255,.45); }
.ct-bottom { padding: 12px 20px 0; max-width: 480px; width: 100%; margin: 0 auto; }
.ct-use { background: #fff !important; color: #111 !important; }

/* 04 카메라: 바로 뜨는 카메라 화면 + 옆으로 넘기는 필터 (js/livecam.js) */
.lc { margin-top: 8px; }
.lc-stage { position: relative; height: min(calc((min(100vw, 480px) - 40px) * 4 / 3), calc(100dvh - 400px)); /* 처음 값 · create.js fitStage() 가 화면에 맞춰 다시 정해요 */ min-height: 220px; aspect-ratio: 3 / 4; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #1A1A1A; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.lc-stage:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.lc-stage canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-name { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96); padding: 10px 20px; border-radius: 22px; background: rgba(17,17,17,.45); color: #fff; font-size: 20px; font-weight: 700; letter-spacing: .02em; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.lc-name.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.lc-msg { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(17,17,17,.6); color: #fff; font-size: 12px; line-height: 1.5; text-align: center; }
.lc-flip { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 20px; border: 0; background: rgba(17,17,17,.45); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lc-strip { display: flex; justify-content: center; gap: 10px; margin-top: 10px; overflow-x: auto; padding: 2px 4px 4px; scrollbar-width: none; }
.lc-strip::-webkit-scrollbar { display: none; }
.lc-item { position: relative; flex: 0 0 auto; width: 60px; height: 80px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--soft); cursor: pointer; }
.lc-item canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 0 4px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.lc-item[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }
.lc .legal-note { margin-top: 8px; }

/* 하객 카메라 화면 미리보기: 기본 · 흑백 */
.viewport[data-f="basic"] video { filter: none; }
.viewport[data-f="bw"] video { filter: grayscale(1) contrast(1.12) brightness(1.03); }

/* 포스터 만들기 (js/poster.js) */
.poster-wrap { position: fixed; inset: 0; z-index: 70; background: #F3F2F0; display: flex; flex-direction: column; overflow-y: auto; padding: env(safe-area-inset-top) 0 calc(16px + env(safe-area-inset-bottom)); }
.pw-top { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 8px; flex-shrink: 0; }
.pw-top b { font-size: 16px; font-weight: 700; }
.pw-tabs { display: flex; justify-content: center; gap: 6px; padding: 2px 16px 10px; }
.pw-tabs button { min-height: 40px; padding: 0 18px; border-radius: 20px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.pw-tabs button[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.pw-stage { position: relative; display: flex; justify-content: center; padding: 0 24px; }
.pw-canvas { width: min(100%, 360px, calc((100dvh - 330px) * 840 / 1188)); min-width: 220px; aspect-ratio: 840 / 1188; height: auto; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.pw-wait { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
.pw-actions { display: flex; justify-content: center; gap: 8px; padding: 14px 16px 0; }
.pw-fields { display: flex; flex-direction: column; gap: 10px; padding: 14px 20px 0; max-width: 480px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.pw-fields > div { display: flex; flex-direction: column; gap: 10px; }
.pf { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.pf input, .pf textarea { font: inherit; font-size: 16px; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; resize: none; }
.pw-bottom { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px 0; max-width: 480px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.pw-size { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.pw-size > span { font-size: 12px; color: var(--muted); margin-right: 4px; }
.pw-size button { flex: 1; min-height: 46px; padding: 6px 10px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.pw-size button small { font-size: 11px; font-weight: 400; color: var(--muted); }
.pw-size button[aria-checked="true"] { border: 2px solid var(--ink); }
.pw-range { display: flex; align-items: center; gap: 10px; max-width: 360px; width: 100%; margin: 12px auto 0; padding: 0 20px; box-sizing: border-box; }
.pw-range > span { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.pw-range input { flex: 1; accent-color: var(--ink); height: 32px; }
.pw-range .crop-z { color: var(--ink); border-color: var(--line); background: #fff; width: 40px; height: 40px; }
