/* AI NAIL DESIGN STUDIO — 라벤더 디자인 시스템 (레퍼런스 기반)
   #7C4DFF 프라이머리 · #F7F4FB 서피스 · #2B1248 딥퍼플 · Pretendard */
:root {
  --p: #7C4DFF;
  --p-deep: #5B2ECC;
  --p-soft: #EDE6FF;
  --p-grad: linear-gradient(135deg, #8B5CF6 0%, #C08AF2 55%, #E1B6E7 100%);
  --pink: #F7D5E7;
  --bg: #F7F4FB;
  --card: #FFFFFF;
  --ink: #1F1633;
  --ink-2: #6B6285;
  --ink-3: #A79FBE;
  --line: #EAE4F5;
  --dark: #2B1248;
  --danger: #D45B6A;
  --r: 18px;
  --r-lg: 24px;
  --sh: 0 4px 18px rgba(90, 60, 170, 0.09);
  --sh-lg: 0 10px 32px rgba(90, 60, 170, 0.16);
  --dur: 240ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  background: #E9E2F5 radial-gradient(1200px 800px at 20% -10%, #F3EBFA 0%, #E9E2F5 60%);
  color: var(--ink); line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--p); }
.muted { color: var(--ink-3); font-size: 0.78rem; font-weight: 500; }
.center { text-align: center; }

/* ── 폰 프레임 ── */
.phone {
  max-width: 430px; margin: 0 auto; min-height: 100dvh; position: relative;
  background: var(--bg); box-shadow: 0 0 60px rgba(80, 50, 160, 0.18);
  display: flex; flex-direction: column;
}
.screen { flex: 1; padding: 18px 18px 96px; animation: fadeUp var(--dur) var(--ease); overflow-x: hidden; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── 버튼 ── */
.btn-main {
  display: block; width: 100%; background: var(--p); color: #fff;
  border-radius: 16px; padding: 14px 20px; font-weight: 700; font-size: 0.95rem;
  transition: all var(--dur) var(--ease); box-shadow: 0 6px 16px rgba(124, 77, 255, 0.32);
}
.btn-main:hover:not(:disabled) { background: var(--p-deep); transform: translateY(-1px); }
.btn-main:disabled { background: #CFC6E6; box-shadow: none; cursor: not-allowed; }
.btn-main.btn-xl { padding: 16px; font-size: 1rem; border-radius: 18px; }
.btn-main.btn-sm { width: auto; padding: 10px 18px; font-size: 0.85rem; }
.btn-main.glow { box-shadow: 0 8px 26px rgba(124, 77, 255, 0.45); }
.btn-soft {
  background: var(--p-soft); color: var(--p-deep); border-radius: 14px;
  padding: 12px 16px; font-weight: 650; font-size: 0.88rem; transition: all var(--dur) var(--ease);
}
.btn-soft:hover { background: #E2D6FF; }
.btn-soft.btn-sm { padding: 8px 14px; font-size: 0.8rem; border-radius: 12px; }
.btn-soft.dark { background: rgba(255,255,255,0.14); color: #fff; }
.btn-ghost { color: var(--ink-2); padding: 12px; font-weight: 600; font-size: 0.86rem; width: 100%; }
.link-btn { color: var(--p); font-size: 0.8rem; font-weight: 650; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 13px; background: var(--card);
  box-shadow: var(--sh); display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem; position: relative; flex: none;
}
.icon-btn.big { width: 52px; height: 52px; border-radius: 16px; }
.pill-tag { background: var(--p-soft); color: var(--p-deep); font-size: 0.68rem; font-weight: 700; padding: 5px 11px; border-radius: 99px; letter-spacing: 0.04em; }

/* ── 온보딩 ── */
.onboard { padding: 0 0 30px; display: flex; flex-direction: column; }
.onboard-art {
  position: relative; height: 46vh; min-height: 300px;
  background-color: #C4A7F5;
  background-image: url('assets/hero.webp');
  background-size: cover; background-position: center 22%; background-repeat: no-repeat;
  border-radius: 0 0 42px 42px; overflow: hidden;
}
.onboard-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(139,92,246,0.0) 55%, rgba(247,244,251,0.9) 96%); }

/* SVG 아이콘 */
.ico, .tico, .quick-ico { display: inline-flex; align-items: center; justify-content: center; }
.ico svg { width: 19px; height: 19px; }
.icon-btn .ico svg { width: 20px; height: 20px; }
.icon-btn.big .ico svg { width: 23px; height: 23px; }
.search-bar .ico { color: var(--ink-3); }
.search-bar .ico svg { width: 17px; height: 17px; }
.quick-ico { margin: 0 auto 8px; width: 40px; height: 40px; border-radius: 13px; background: var(--p-soft); color: var(--p-deep); }
.quick-ico svg { width: 21px; height: 21px; }
.tico svg { width: 21px; height: 21px; }
.btn-soft .ico { vertical-align: -4px; margin-right: 3px; }
.btn-soft .ico svg { width: 16px; height: 16px; }
#btnLike.liked { color: var(--p); }
.ico-inline svg { width: 13px; height: 13px; vertical-align: -2px; }
.accent-heart { color: var(--p); vertical-align: -3px; }
.accent-heart svg { width: 18px; height: 18px; }
.onboard-feats .ico { color: var(--p-deep); vertical-align: -3px; margin-right: 2px; }
.onboard-feats .ico svg { width: 14px; height: 14px; }
.star-ico { color: #E4C56B; }
.star-ico svg { width: 13px; height: 13px; }
.star-ico:not(.on) { color: #D8D2E4; }
.stars { display: inline-flex; align-items: center; gap: 2px; }
.board-tile .ck svg { width: 12px; height: 12px; }
.upload-tile .ico svg { width: 20px; height: 20px; }
.info-card .star-ico svg { width: 11px; height: 11px; }
.onboard-body { padding: 30px 26px 0; display: flex; flex-direction: column; gap: 14px; }
.brand-kicker { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.22em; color: var(--p); }
.onboard-body h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.onboard-sub { color: var(--ink-2); font-size: 0.86rem; }
.onboard-feats { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.onboard-feats span { background: var(--card); box-shadow: var(--sh); border-radius: 99px; padding: 7px 13px; font-size: 0.74rem; font-weight: 650; color: var(--ink-2); }
/* ── 로그인/회원가입 (풀블리드 히어로 + 글래스 카드) ── */
.screen.auth { padding: 0; position: relative; display: flex; align-items: flex-end; min-height: 100dvh; }
.auth-bg {
  position: absolute; inset: 0;
  background-color: #C4A7F5;
  background-image: linear-gradient(180deg, rgba(43,18,72,0.05) 0%, rgba(43,18,72,0.55) 100%), url('assets/hero.webp');
  background-size: cover; background-position: center 18%;
}
.auth-card {
  position: relative; width: 100%; margin: 0; padding: 30px 26px calc(34px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(18px) saturate(1.3);
  border-radius: 32px 32px 0 0; box-shadow: 0 -18px 50px rgba(43, 18, 72, 0.25);
  display: flex; flex-direction: column; gap: 12px;
  animation: slideUp 320ms var(--ease);
}
.auth-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.auth-sub { color: var(--ink-2); font-size: 0.85rem; margin-top: -6px; }
.auth-seg { margin: 4px 0 2px; width: 100%; }
.auth-seg .seg-btn { flex: 1; }
#authForm { display: flex; flex-direction: column; gap: 11px; }
#authForm .fld input { background: rgba(255,255,255,0.9); }
.auth-foot { text-align: center; color: var(--ink-3); font-size: 0.74rem; line-height: 1.6; }
.account-card .acct-row { display: flex; align-items: center; gap: 12px; }
.acct-info { flex: 1; min-width: 0; }
.acct-info strong { display: block; font-size: 0.92rem; }
.acct-info .muted { display: block; font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 홈 ── */
.home-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.home-hello { color: var(--ink-2); font-size: 0.82rem; }
.home-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.home-head h2 { font-size: 1.25rem; font-weight: 800; }
.noti-dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.search-bar { display: flex; align-items: center; gap: 9px; background: var(--card); border-radius: 15px; padding: 12px 15px; box-shadow: var(--sh); margin-bottom: 8px; }
.search-bar input { border: none; outline: none; flex: 1; font-size: 0.88rem; background: transparent; }
.search-results { background: var(--card); border-radius: 14px; box-shadow: var(--sh); margin-bottom: 10px; overflow: hidden; }
.search-results button { display: flex; justify-content: space-between; width: 100%; padding: 11px 15px; font-size: 0.84rem; border-bottom: 1px solid var(--line); }
.search-results button:last-child { border-bottom: none; }
.resv-card { display: flex; align-items: center; justify-content: space-between; background: var(--p-grad); border-radius: var(--r-lg); padding: 18px; color: #fff; margin: 10px 0 18px; box-shadow: var(--sh-lg); }
.card-label { font-size: 0.72rem; opacity: 0.85; font-weight: 600; }
.resv-info strong { font-size: 1.35rem; font-weight: 800; display: block; margin: 2px 0; }
.resv-info span { font-size: 0.78rem; opacity: 0.9; }
.resv-card .btn-soft { background: rgba(255,255,255,0.22); color: #fff; }
.section-title { font-size: 0.86rem; font-weight: 750; margin: 4px 0 10px; }
.row-head { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.quick { background: var(--card); border-radius: var(--r); padding: 16px 8px 13px; text-align: center; font-size: 0.76rem; font-weight: 650; color: var(--ink-2); box-shadow: var(--sh); line-height: 1.4; transition: all var(--dur) var(--ease); }
.quick:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); color: var(--p-deep); }
.quick-ico { display: block; font-size: 1.5rem; margin-bottom: 7px; }
.recent-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.recent-strip::-webkit-scrollbar { display: none; }
.recent-strip .rp { flex: none; width: 92px; border-radius: 15px; overflow: hidden; box-shadow: var(--sh); position: relative; padding: 0; }
.recent-strip .rp img { width: 92px; height: 92px; object-fit: cover; }
.recent-strip .rp span { position: absolute; bottom: 5px; left: 7px; font-size: 0.62rem; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.5); font-weight: 650; }
.empty-note { color: var(--ink-3); font-size: 0.8rem; padding: 12px 4px; }
.trend-card, .match-card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 15px; }
.trend-item { display: flex; align-items: center; gap: 11px; padding: 7px 0; }
.trend-rank { width: 22px; height: 22px; border-radius: 8px; background: var(--p-soft); color: var(--p-deep); font-size: 0.72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.trend-item strong { font-size: 0.84rem; font-weight: 650; flex: 1; }
.tchip { width: 26px; height: 26px; border-radius: 9px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.15); flex: none; }
.match-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 0.82rem; }
.match-dots { display: flex; gap: 5px; }
.match-dots i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.quote-card { background: var(--dark); color: #EFE8FA; border-radius: var(--r-lg); padding: 20px; margin-top: 20px; }
.quote-card p { font-size: 0.86rem; line-height: 1.65; }
.quote-who { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--p); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; flex: none; }
.quote-who strong { font-size: 0.82rem; display: block; }
.stars { color: #E8C87A; font-size: 0.72rem; }

/* ── 플로우 공통 ── */
.flow-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.flow-head h3 { font-size: 1.02rem; font-weight: 750; flex: 1; text-align: center; }
.flow-head > span:last-child:empty { width: 40px; }
.flow-step { background: var(--p-soft); color: var(--p-deep); font-size: 0.7rem; font-weight: 750; padding: 5px 10px; border-radius: 99px; }
.flow-sub { color: var(--ink-2); font-size: 0.84rem; text-align: center; margin-bottom: 14px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row.wrap { flex-wrap: wrap; overflow: visible; }
.chip { flex: none; background: var(--card); border: 1.5px solid var(--line); color: var(--ink-2); border-radius: 99px; padding: 9px 16px; font-size: 0.82rem; font-weight: 650; transition: all var(--dur) var(--ease); }
.chip.on { background: var(--p); border-color: var(--p); color: #fff; box-shadow: 0 4px 12px rgba(124, 77, 255, 0.3); }
.seg { display: flex; background: var(--card); border-radius: 14px; padding: 4px; box-shadow: var(--sh); margin: 14px auto; width: fit-content; }
.seg.mini { margin: 0; }
.seg-btn { padding: 8px 22px; border-radius: 11px; font-size: 0.82rem; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.seg.mini .seg-btn { padding: 6px 14px; font-size: 0.74rem; }
.seg-btn.on { background: var(--p); color: #fff; }

/* ── 카메라 ── */
.cam-stage { position: relative; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh); height: 46vh; min-height: 300px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hand-guide { position: absolute; height: 78%; color: var(--p); opacity: 0.5; }
#camPreview { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cam-hint { position: absolute; bottom: 12px; font-size: 0.74rem; color: var(--ink-3); background: rgba(255,255,255,0.85); padding: 5px 13px; border-radius: 99px; }
.cam-controls { display: flex; align-items: center; justify-content: center; gap: 26px; margin: 6px 0 16px; }
.shutter { width: 68px; height: 68px; border-radius: 50%; background: var(--p); border: 5px solid var(--p-soft); box-shadow: 0 6px 18px rgba(124, 77, 255, 0.4); cursor: pointer; display: block; }

/* ── 레퍼런스 보드 ── */
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 10px; }
.board-tile { position: relative; aspect-ratio: 0.85; border-radius: 15px; overflow: hidden; padding: 0; box-shadow: var(--sh); transition: transform var(--dur) var(--ease); }
.board-tile:hover { transform: translateY(-2px); }
.board-tile .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.board-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(30,18,50,0.55) 100%); pointer-events: none; }
.board-tile span, .board-tile .ck { z-index: 1; }
.board-tile span { position: absolute; bottom: 7px; left: 9px; color: #fff; font-size: 0.68rem; font-weight: 700; text-shadow: 0 1px 5px rgba(0,0,0,0.45); }
.board-tile .ck { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.85); color: transparent; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.board-tile.on { outline: 3px solid var(--p); outline-offset: -3px; }
.board-tile.on .ck { background: var(--p); color: #fff; }
.upload-row { display: flex; gap: 9px; flex-wrap: wrap; }
.upload-tile { width: 74px; height: 74px; border-radius: 14px; border: 1.5px dashed var(--ink-3); color: var(--p); font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; background: var(--card); flex: none; }
.upload-row .up { position: relative; width: 74px; height: 74px; border-radius: 14px; overflow: hidden; box-shadow: var(--sh); flex: none; }
.upload-row .up img { width: 100%; height: 100%; object-fit: cover; }
.upload-row .up button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(30,20,50,0.65); color: #fff; font-size: 0.65rem; }
.sel-bar { position: sticky; bottom: 86px; display: flex; align-items: center; justify-content: space-between; background: var(--dark); color: #fff; border-radius: 16px; padding: 10px 12px 10px 18px; margin-top: 16px; box-shadow: var(--sh-lg); font-size: 0.82rem; font-weight: 650; }

/* ── 옵션 ── */
.dot-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.dot-row .dot { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.18); transition: transform var(--dur) var(--ease); padding: 0; }
.dot-row .dot.on { outline: 3px solid var(--p); outline-offset: 1px; transform: scale(1.08); }
.dot-row.static .dot { pointer-events: none; width: 28px; height: 28px; }
.slider-group { display: flex; flex-direction: column; gap: 16px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; margin: 14px 0 20px; }
.slider-group.tight { gap: 8px; padding: 13px 16px; margin: 12px 0; }
.slider-group label { font-size: 0.82rem; font-weight: 650; display: flex; flex-direction: column; gap: 7px; }
.slider-group label .muted { float: right; }
input[type=range] { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 99px; background: var(--p-soft); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--p); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(124, 77, 255, 0.4); cursor: pointer; }

/* ── 생성 중 ── */
.gen-wrap { text-align: center; padding: 26vh 20px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gen-orb { display: flex; gap: 10px; margin-bottom: 10px; }
.gen-orb span { width: 16px; height: 26px; border-radius: 8px 8px 10px 10px; background: var(--p); animation: pulse 1.2s infinite; }
.gen-orb span:nth-child(2) { animation-delay: 0.16s; background: #B08AF0; }
.gen-orb span:nth-child(3) { animation-delay: 0.32s; background: #E1B6E7; }
@keyframes pulse { 0%,100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-8px); } }
.gen-wrap h3 { font-size: 1.05rem; font-weight: 750; }
.progress { width: min(300px, 80%); height: 6px; border-radius: 99px; background: #E5DCF7; overflow: hidden; margin: 8px 0; }
.progress-bar { height: 100%; width: 0%; border-radius: 99px; background: var(--p-grad); transition: width 0.8s var(--ease); }

/* ── 비교 ── */
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 10px; }
.cmp-grid.origin { grid-template-columns: 1fr; }
.cmp-card { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); padding: 0; background: var(--card); text-align: left; }
.cmp-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cmp-card .meta { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; font-size: 0.76rem; font-weight: 700; }
.cmp-card .meta .muted { font-size: 0.66rem; }
.cmp-card.on { outline: 3px solid var(--p); outline-offset: -3px; }
.cmp-card .warn { position: absolute; top: 8px; left: 8px; background: rgba(212,91,106,0.92); color: #fff; font-size: 0.62rem; padding: 3px 9px; border-radius: 99px; font-weight: 700; }
.cmp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); margin-bottom: 11px; }
.cmp-pair img { width: 100%; aspect-ratio: 0.9; object-fit: cover; }
.cmp-pair .lbl { position: absolute; }
.cmp-actions { display: flex; gap: 10px; margin-top: 16px; }
.cmp-actions > * { flex: 1; }

/* ── 디테일 ── */
.detail-hero { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
.detail-hero img { width: 100%; max-height: 46vh; object-fit: cover; }
.detail-body { padding-top: 16px; }
.detail-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.detail-title-row h2 { font-size: 1.2rem; font-weight: 800; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 12px 0 16px; }
.info-card { background: var(--card); border-radius: 15px; box-shadow: var(--sh); padding: 12px 8px; text-align: center; }
.info-card span { font-size: 0.66rem; color: var(--ink-3); font-weight: 650; display: block; margin-bottom: 3px; }
.info-card strong { font-size: 0.9rem; font-weight: 750; }
.detail-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }

/* ── 편집 ── */
.edit-stage { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); background: var(--card); }
.edit-stage img { width: 100%; max-height: 38vh; object-fit: contain; background: #F1ECF9; }
#fingerChips { margin-top: 12px; }
#fingerChips .chip { padding: 7px 12px; font-size: 0.74rem; }

/* ── 3D ── */
.stage3d { height: 46vh; min-height: 300px; display: flex; align-items: center; justify-content: center; perspective: 900px; touch-action: none; }
.card3d { border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 24px 60px rgba(60, 30, 120, 0.35); transform-style: preserve-3d; transition: transform 80ms linear; cursor: grab; }
.card3d:active { cursor: grabbing; }
.card3d img { max-height: 42vh; max-width: 82vw; pointer-events: none; }
.thumb-row { display: flex; gap: 9px; justify-content: center; margin-top: 14px; }
.thumb-row button { width: 58px; height: 58px; border-radius: 13px; overflow: hidden; padding: 0; box-shadow: var(--sh); opacity: 0.65; }
.thumb-row button.on { outline: 3px solid var(--p); opacity: 1; }
.thumb-row img { width: 100%; height: 100%; object-fit: cover; }

/* ── 프레젠테이션 ── */
.screen.present { background: var(--dark); color: #fff; display: flex; flex-direction: column; }
.flow-head.dark h3 { color: #fff; }
.flow-head.dark .icon-btn { background: rgba(255,255,255,0.12); color: #fff; box-shadow: none; }
.flow-head.dark .flow-step { background: rgba(255,255,255,0.14); color: #EFE8FA; }
.present-stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 46vh; }
.present-stage img { max-height: 56vh; max-width: 88%; border-radius: 22px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.pnav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; font-size: 1.4rem; z-index: 2; }
.pnav.prev { left: 4px; } .pnav.next { right: 4px; }
.present-caption { text-align: center; font-size: 0.9rem; font-weight: 650; color: #D9CDF2; margin: 10px 0 14px; }
.present-btns { display: flex; gap: 10px; }
.present-btns > * { flex: 1; }
.present.clean .present-btns, .present.clean .pnav, .present.clean .flow-head { display: none; }
.present.clean .present-stage img { max-height: 74vh; }

/* ── 프로젝트/고객/마이 ── */
.proj-list, .cust-list { display: flex; flex-direction: column; gap: 11px; }
.proj-item { display: flex; gap: 11px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 11px; align-items: center; text-align: left; }
.proj-item .pthumbs { display: flex; gap: 4px; flex: none; }
.proj-item .pthumbs img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.proj-item .pinfo { flex: 1; min-width: 0; }
.proj-item .pinfo strong { font-size: 0.86rem; display: block; }
.proj-item .pinfo span { font-size: 0.72rem; color: var(--ink-3); }
.proj-item .del { color: var(--ink-3); font-size: 0.9rem; padding: 6px; }
.cust-item { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 13px 15px; text-align: left; width: 100%; }
.cust-item .cinfo { flex: 1; }
.cust-item .cinfo strong { font-size: 0.9rem; }
.cust-item .cinfo .tags { font-size: 0.72rem; color: var(--ink-3); }
.vip { background: linear-gradient(135deg, #E8C87A, #D9A441); color: #fff; font-size: 0.6rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; }
.my-card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 16px; display: flex; flex-direction: column; gap: 13px; margin-bottom: 14px; }
.fld { font-size: 0.76rem; font-weight: 650; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.fld input, .fld select { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 0.88rem; background: var(--bg); color: var(--ink); }
.fld input:focus, .fld select:focus { outline: 2px solid var(--p); border-color: transparent; }
#btnMySave { width: 100%; margin-bottom: 8px; }

/* ── 탭바 ── */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(430px, 100%); display: flex; background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
  z-index: 40;
}
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 0.62rem; font-weight: 650; color: var(--ink-3); }
.tabbar button span { font-size: 1.15rem; }
.tabbar button.on { color: var(--p); }

/* ── 토스트/모달 ── */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--dark); color: #fff; padding: 12px 20px; border-radius: 13px; font-size: 0.84rem; z-index: 60; max-width: 86vw; box-shadow: var(--sh-lg); animation: fadeUp var(--dur) var(--ease); }
.toast.error { background: var(--danger); }
.modal { position: fixed; inset: 0; background: rgba(31, 22, 51, 0.45); backdrop-filter: blur(3px); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal-card { background: var(--card); border-radius: 26px 26px 0 0; padding: 24px 22px calc(26px + env(safe-area-inset-bottom)); width: min(430px, 100%); max-height: 82vh; overflow-y: auto; animation: slideUp 260ms var(--ease); }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 14px; }
.modal-card .fld { margin-bottom: 11px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions > * { flex: 1; }
.price-row { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 9px 0; border-bottom: 1px solid var(--line); }
.price-row.total { font-weight: 800; font-size: 1rem; border-bottom: none; color: var(--p-deep); }
.resv-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.noti-item { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.84rem; }
.noti-item .muted { display: block; }

/* ── 인쇄 (PDF 저장) ── */
@media print {
  body * { visibility: hidden; }
  .print-sheet, .print-sheet * { visibility: visible; }
  .print-sheet { position: fixed; inset: 0; background: #fff; padding: 24px; }
  .print-sheet img { max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: 12px; }
  .print-sheet h2 { font-size: 18pt; margin-bottom: 8px; }
  .print-sheet p { font-size: 11pt; color: #444; }
}
@media (min-width: 460px) { .phone { border-radius: 34px; margin: 18px auto; min-height: calc(100dvh - 36px); overflow: hidden; } .tabbar { bottom: 18px; border-radius: 0 0 34px 34px; } }
