/* 맵시 스타일 랩 — 에디토리얼 톤: 아이보리 종이 · 잉크 · 와인 포인트 */
:root {
  --bg: #F5F1EA;
  --surface: #FFFFFF;
  --surface-2: #FAF7F2;
  --ink: #1F1B18;
  --ink-2: #3B3531;
  --muted: #7B736B;
  --line: #E7E0D6;
  --line-2: #D6CCBF;
  --accent: #7C2D3E;
  --accent-soft: #F4E7E9;
  --gold: #9C7B46;
  --good: #2E7A58;
  --ok: #6E8A33;
  --warn: #C0832A;
  --bad: #B7433A;
  --figure: #DDD5CB;
  --drape-bg: #B8B5B0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 27, 24, .04), 0 10px 30px rgba(31, 27, 24, .06);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', 'Batang', serif;
  --latin: 'Cormorant Garamond', 'Times New Roman', serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141210; --surface: #1D1A17; --surface-2: #231F1B; --ink: #F2EDE5; --ink-2: #D9D2C8; --muted: #A1978C;
    --line: #322C27; --line-2: #463E37; --accent: #D98A99; --accent-soft: #3A2328; --gold: #C9A56C;
    --good: #5FBF8F; --ok: #A5C265; --warn: #E0A84E; --bad: #E4766C; --figure: #4A443E;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141210; --surface: #1D1A17; --surface-2: #231F1B; --ink: #F2EDE5; --ink-2: #D9D2C8; --muted: #A1978C;
  --line: #322C27; --line-2: #463E37; --accent: #D98A99; --accent-soft: #3A2328; --gold: #C9A56C;
  --good: #5FBF8F; --ok: #A5C265; --warn: #E0A84E; --bad: #E4766C; --figure: #4A443E; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; width: 100%; min-width: 0; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent); }
input[type="range"] { padding: 0; border: 0; box-shadow: none; accent-color: var(--ink); background: transparent; }
input[type="checkbox"] { width: auto; accent-color: var(--ink); }
input[type="color"] { width: 0; height: 0; padding: 0; border: 0; opacity: 0; position: absolute; }
textarea { resize: vertical; line-height: 1.5; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }
.ico { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.boot { min-height: 100vh; display: grid; place-items: center; text-align: center; font-family: var(--serif); font-size: 20px; color: var(--muted); padding: 24px; }
.boot.err { color: var(--bad); }

/* ---------- 레이아웃 ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 26px 16px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 26px; background: var(--bg); }
.brand { text-decoration: none; display: flex; flex-direction: column; padding: 0 10px; }
.brand-mark { font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -0.03em; }
.brand-sub { font-family: var(--latin); font-size: 11.5px; letter-spacing: .22em; color: var(--gold); margin-top: 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s; }
.nav-a:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.nav-a.on { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 0 10px; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; display: inline-block; }
.ai-dot.on { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 20%, transparent); }
.main { min-width: 0; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 36px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.view { padding: 26px 36px 90px; max-width: 1360px; }
.tabbar { display: none; }
.top-brand { display: none; font-family: var(--serif); font-weight: 700; font-size: 22px; text-decoration: none; letter-spacing: -0.03em; }
.top .top-gear { display: none; color: var(--muted); }

.person-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.ps-btn { display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; }
.ps-btn.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

.avatar { position: relative; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ring, var(--line)); flex: none; }
.avatar img { object-fit: cover; }
.avatar b { font-family: var(--serif); font-size: .9em; color: var(--muted); }

/* ---------- 타이포 ---------- */
.eyebrow { font-family: var(--latin); letter-spacing: .2em; font-size: 12px; font-weight: 600; color: var(--gold); text-transform: uppercase; margin: 0 0 6px; }
.display { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.2; letter-spacing: -0.03em; margin: 0 0 14px; }
.display.sm { font-size: clamp(24px, 2.6vw, 34px); }
.title { font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; margin: 0; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.title small { font-family: var(--font); font-weight: 500; font-size: 13.5px; color: var(--muted); letter-spacing: 0; }
.lead { font-size: 16.5px; color: var(--ink-2); max-width: 620px; margin: 0 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.link { color: var(--accent); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
.mini-t { font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 16px 0 8px; letter-spacing: .02em; }
.mini-t.good { color: var(--good); }
.mini-t.warn { color: var(--warn); }
.warn-t { color: var(--warn); font-weight: 600; }
.ok-t { color: var(--good); font-weight: 600; }
.bad-t { color: var(--bad); font-weight: 600; margin: 6px 0; }
.tag { display: inline-block; font-family: var(--font); font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); margin-left: 8px; vertical-align: middle; letter-spacing: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin: 34px 0 14px; }
.sec-t { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0; }

/* ---------- 공통 박스 ---------- */
.page { display: flex; flex-direction: column; gap: 18px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ph-left { display: flex; align-items: center; gap: 16px; }
.ph-right { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; min-width: 0; }
.card-t { font-size: 16px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; letter-spacing: -0.01em; }
.card-t small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.card-t .push { margin-left: auto; }
.step { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.row { display: flex; align-items: center; }
.row.gap { gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid-2.wide-left { grid-template-columns: 1.35fr 1fr; }
.grid-2.wide-right { grid-template-columns: 1fr 1.25fr; }
.grid-2.tight, .grid-3.tight { gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.note { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-top: 16px; font-size: 13.5px; }
.note ul { margin: 6px 0 0; padding-left: 18px; }
.note li { margin: 3px 0; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 16px; color: var(--muted); }
.empty b { color: var(--ink); font-size: 16px; }
.empty .btn { margin-top: 8px; }
.empty-inline { padding: 22px; border: 1px dashed var(--line-2); border-radius: 14px; color: var(--muted); text-align: center; }
.kv { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.kv span { font-size: 13px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 5px 10px; }
.kv b { color: var(--ink); margin-left: 4px; font-weight: 700; }
.kv.col { flex-direction: column; align-items: flex-start; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 3px 0 3px 22px; font-size: 14px; }
.ticks li::before { content: ''; position: absolute; left: 3px; top: 11px; width: 9px; height: 5px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.ticks.x li::before { width: 10px; height: 2px; border: 0; background: var(--bad); transform: none; top: 13px; }
.steps { padding-left: 20px; margin: 0 0 14px; font-size: 14px; }
.steps li { margin: 6px 0; }

/* ---------- 버튼 · 입력 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 650; font-size: 14px; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; position: relative; }
.btn:hover:not(:disabled) { border-color: var(--ink-2); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover:not(:disabled) { background: var(--ink-2); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--surface-2); border-color: var(--line); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.xs { padding: 3px 9px; font-size: 12px; }
.btn.lg { padding: 13px 22px; font-size: 15.5px; }
.btn.block { width: 100%; }
.btn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.danger { color: var(--bad); }
.btn.danger:not(.ghost) { border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn.disabled { opacity: .6; pointer-events: none; }
.icon-btn { border: 0; background: transparent; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); }
.colorpick { cursor: pointer; }
select.sm { width: auto; padding: 6px 10px; font-size: 13px; border-radius: 999px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.field-hint { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 10px; color: var(--muted); cursor: help; }
.num-input { position: relative; display: block; }
.num-input input { padding-right: 38px; }
.num-input .unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); pointer-events: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid.one { grid-template-columns: 1fr; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; cursor: pointer; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 550; transition: all .12s; }
.chip:hover { border-color: var(--ink-2); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips.small { margin-top: 8px; }
.chips.small .chip { padding: 4px 10px; font-size: 12.5px; }
.chip-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }

.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%; }
.seg::-webkit-scrollbar { display: none; }
.seg-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 0; background: transparent; font-weight: 650; font-size: 13.5px; color: var(--muted); }
.seg-btn.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

.spin { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.spin i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sw { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; width: 66px; background: none; border: 0; padding: 0; cursor: default; text-align: center; }
.sw.clickable { cursor: pointer; }
.sw i { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: transform .12s; }
.sw.clickable:hover i { transform: scale(1.07); }
.sw.on i { outline: 2px solid var(--ink); outline-offset: 3px; }
.sw-l { font-size: 11.5px; line-height: 1.25; color: var(--ink-2); word-break: keep-all; }
.sw-s { font-size: 10.5px; line-height: 1.25; color: var(--muted); word-break: keep-all; }
.sw-l i, .sw-l { display: block; }
.sw.sw-l { width: 78px; }
.sw.sw-l i { width: 56px; height: 56px; }
.sw.sw-s { width: 52px; }
.sw.sw-s i { width: 30px; height: 30px; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px 6px; }

.ring { position: relative; flex: none; }
.ring svg { display: block; }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 9; }
.ring-fg { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ring-c b { font-family: var(--serif); font-weight: 700; letter-spacing: -0.03em; }
.ring-g { font-family: var(--latin); font-weight: 700; font-size: 15px; margin-top: 4px; letter-spacing: .1em; }
.ring-l { font-size: 11px; color: var(--muted); margin-top: 3px; }

.bars { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.bar-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.bar-track { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 4px; }
.bar-track i { display: block; height: 100%; border-radius: 999px; transition: width .5s ease; }
.bar.muted .bar-top span { color: var(--muted); }
.bar-note { font-size: 12px; color: var(--muted); margin-top: 3px; }

.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(20, 18, 16, .45); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 18px; width: min(560px, 100%); max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.modal.wide { width: min(860px, 100%); }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-b { padding: 16px 20px 22px; overflow: auto; }
@keyframes fade { from { opacity: 0; } }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); animation: rise .2s ease; }
.toast.ok { border-left: 4px solid var(--good); }
.toast.warn { border-left: 4px solid var(--warn); }
.toast.error { border-left: 4px solid var(--bad); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

/* ---------- 사진 넣기 ---------- */
.drop { position: relative; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--surface-2); overflow: hidden; cursor: pointer; display: grid; place-items: center; width: 100%; transition: border-color .15s, background .15s; }
.drop:hover, .drop:focus-visible { border-color: var(--ink-2); }
.drop.drag { border-color: var(--accent); background: var(--accent-soft); }
.drop.has { border-style: solid; border-color: var(--line); cursor: default; background: #fff; }
.drop img { width: 100%; height: 100%; object-fit: contain; display: block; }
.drop-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 14px; color: var(--muted); }
.drop-empty b { color: var(--ink); font-size: 14px; }
.drop-empty span { font-size: 12px; }
.drop-empty small { font-size: 11px; opacity: .8; margin-top: 4px; }
.drop-actions { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.drop:hover .drop-actions, .drop:focus-within .drop-actions { opacity: 1; }
.drop-actions button { border: 0; background: rgba(20, 18, 16, .72); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.drop-busy { position: absolute; inset: 0; background: color-mix(in srgb, var(--surface) 80%, transparent); display: grid; place-items: center; }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.photo-row .mini-t { margin-top: 0; }

/* ---------- 온보딩 · 홈 ---------- */
.onboard { max-width: 760px; padding: 20px 0; }
.onboard-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.ob-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px; text-align: left; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.ob-card:hover { transform: translateY(-2px); border-color: var(--ink-2); }
.ob-card b { font-family: var(--serif); font-size: 22px; }
.ob-card small { color: var(--muted); }
.ob-ico { font-size: 34px; }

.hero { display: grid; grid-template-columns: 1.4fr .6fr; gap: 20px; align-items: center; padding: 18px 0 8px; }
.hero-art { position: relative; height: 230px; }
.hero-art i { position: absolute; width: 150px; height: 190px; border-radius: 90px 90px 14px 14px; top: calc(var(--i) * 10px); left: calc(var(--i) * 44px); box-shadow: 0 12px 30px rgba(0, 0, 0, .12); transform: rotate(calc(-8deg + var(--i) * 5deg)); }
.couple-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.person-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; position: relative; overflow: hidden; }
.person-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--fam); }
.pc-head { display: flex; align-items: center; gap: 16px; cursor: pointer; }
.pc-head h2 { font-family: var(--serif); font-size: 24px; margin: 0; }
.pc-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.pc-season { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.pc-season b { font-family: var(--serif); font-size: 17px; }
.pc-strip { display: flex; }
.pc-strip i { width: 18px; height: 26px; }
.pc-strip i:first-child { border-radius: 6px 0 0 6px; }
.pc-strip i:last-child { border-radius: 0 6px 6px 0; }
.pc-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 14px; }
.pc-facts div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.pc-facts dt { font-size: 11.5px; color: var(--muted); }
.pc-facts dd { margin: 0; font-weight: 700; font-size: 13.5px; }
.pcp-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.pcp-bar { height: 6px; border-radius: 999px; background: var(--line); margin: 6px 0 10px; overflow: hidden; }
.pcp-bar i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.pcp-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.pcp-steps button { border: 1px solid var(--line); background: transparent; border-radius: 999px; font-size: 12px; padding: 3px 10px; color: var(--muted); }
.pcp-steps button.ok { color: var(--good); border-color: color-mix(in srgb, var(--good) 35%, transparent); }
.tip-card { background: var(--ink); color: var(--bg); border: 0; }
.tip-card .muted { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.tip-q { font-family: var(--serif); font-size: 22px; line-height: 1.5; margin: 6px 0; }

/* ---------- 프로필 ---------- */
.shape-card .shape-name { font-family: var(--serif); font-size: 24px; margin: 0 0 6px; }
.figure-card { position: sticky; top: 84px; }
.fitfig { width: 100%; display: block; max-width: 100%; }
.ff-body path, .ff-body rect, .ff-body ellipse { fill: var(--figure); }
.ff-ruler line { stroke: var(--muted); stroke-width: .25; }
.ff-ruler text { font-size: 3px; fill: var(--muted); font-family: var(--font); }
.ff-mark { stroke: var(--line-2) !important; stroke-dasharray: 1 1.2; }
.ff-markt { font-size: 2.7px !important; fill: var(--muted); }
.ff-label path { fill: none; stroke-width: .3; }
.ff-label text { font-size: 3.7px; fill: var(--ink); font-weight: 650; font-family: var(--font); paint-order: stroke; stroke: var(--surface); stroke-width: .8px; }
.ff-h { font-size: 3.2px; fill: var(--muted); font-family: var(--font); }
.intro-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; }
.mguide { width: 100%; max-width: 420px; }
.mg-cloth path { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.2; }
.mg-arr line { stroke: var(--accent); stroke-width: 1.3; marker-end: none; }
.mg-arr line.alt { stroke: var(--gold); stroke-dasharray: 3 2; }
.mg-arr text { font-size: 9px; fill: var(--ink-2); font-weight: 600; }
.quiz { padding-left: 20px; margin: 0; }
.quiz li { margin: 0 0 14px; }
.quiz li p { margin: 0 0 6px; font-weight: 650; font-size: 14px; }
.quiz.compact li { margin-bottom: 10px; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.qopt { border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; padding: 6px 11px; font-size: 13px; text-align: left; }
.qopt:hover { border-color: var(--ink-2); }
.qopt.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.result-card .frame-bars { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 14px; }
.frame-bars div { display: grid; grid-template-columns: 70px 1fr 20px; align-items: center; gap: 8px; font-size: 13px; }
.frame-bars i { height: 7px; border-radius: 999px; background: var(--accent); display: block; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); }

.bodyphoto { position: relative; line-height: 0; border-radius: 12px; overflow: hidden; user-select: none; }
.bodyphoto > img { width: 100%; display: block; }
.bodyphoto.editable { touch-action: none; }
.bp-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bp-line line { stroke-width: .3; stroke-dasharray: 1.4 .9; }
.bp-tag { position: absolute; right: 6px; transform: translateY(-50%); background: rgba(20, 18, 16, .78); color: #fff; font-size: 11.5px; padding: 3px 8px; border-radius: 6px; line-height: 1.4; border-left: 4px solid var(--c); max-width: 62%; }
.bp-handle { position: absolute; left: 0; right: 0; height: 0; cursor: ns-resize; z-index: 2; }
.bp-handle::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 24px; }
.bp-handle i { position: absolute; left: 0; right: 0; top: -1px; border-top: 2px solid #E8465E; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .3); }
.bp-handle.est i { border-top: 2px dashed rgba(255, 255, 255, .9); }
.bp-handle span { position: absolute; left: 6px; top: -22px; background: #E8465E; color: #fff; font-size: 11.5px; line-height: 1.5; padding: 1px 8px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.bp-handle.est span { background: rgba(20, 18, 16, .65); }
.bp-center { position: absolute; top: 0; bottom: 0; width: 24px; margin-left: -12px; cursor: ew-resize; z-index: 1; }
.bp-center i { position: absolute; left: 12px; top: 0; bottom: 0; border-left: 1.5px dashed rgba(255, 255, 255, .95); filter: drop-shadow(0 0 1px rgba(0, 0, 0, .6)); }

/* ---------- 퍼스널 컬러 ---------- */
.season-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px !important; font-weight: 700 !important; color: var(--ink) !important; background: var(--surface); border: 1px solid var(--line); padding: 3px 12px 3px 8px; border-radius: 999px; }
.season-chip::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--fam); }
.sampler-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 14px; align-items: start; }
.sampler { position: relative; line-height: 0; border-radius: 12px; overflow: hidden; user-select: none; }
.sampler img { width: 100%; display: block; }
.sampler.picking { cursor: crosshair; }
.pin { position: absolute; transform: translate(-50%, -50%); pointer-events: none; line-height: 1; }
.pin i { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--pin); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); }
.pin.on i { width: 18px; height: 18px; }
.pin em { position: absolute; left: 14px; top: -7px; font-style: normal; font-size: 11px; color: #fff; background: rgba(0, 0, 0, .6); padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
.loupe { position: absolute; width: 110px; height: 110px; border-radius: 50%; transform: translate(-50%, -125%); border: 3px solid #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); background-repeat: no-repeat; pointer-events: none; }
.loupe b::before, .loupe b::after { content: ''; position: absolute; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .5); }
.loupe b::before { left: 54px; top: 42px; width: 1px; height: 26px; }
.loupe b::after { top: 54px; left: 42px; height: 1px; width: 26px; }
.sample-keys { display: flex; flex-direction: column; gap: 6px; }
.skey { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 7px 10px; text-align: left; }
.skey i { width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed var(--line-2); flex: none; }
.skey.done i { border: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.skey span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.skey b { font-size: 13.5px; }
.skey small { font-size: 11.5px; color: var(--muted); }
.skey.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.lab-readout { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.lab-readout b { color: var(--ink); margin: 0 6px 0 2px; font-variant-numeric: tabular-nums; }
.res-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.res-viz { display: flex; flex-direction: column; gap: 10px; }
.pct { font-family: var(--latin); font-size: .6em; color: var(--gold); margin-left: 10px; }
.cand { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.cand-b { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; min-width: 150px; text-align: left; }
.cand-b.on { border-color: var(--ink); }
.cand-b small { color: var(--muted); }
.cand-strip { display: flex; }
.cand-strip i { width: 18px; height: 12px; }
.manual { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.manual select { width: auto; }
.smap { width: 100%; max-width: 360px; display: block; margin: 0 auto; }
.smap-p { font-size: 9.5px; fill: var(--accent); font-weight: 800; }
.smap-me line { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 2; }
.smap-bg { fill: var(--surface-2); stroke: var(--line); }
.smap-axis { stroke: var(--line-2); stroke-dasharray: 3 3; }
.smap-t { font-size: 9.5px; fill: var(--muted); font-weight: 700; letter-spacing: .05em; }
.smap-n { font-size: 9.5px; fill: var(--ink-2); font-weight: 600; }
.smap-n.on { fill: var(--ink); font-weight: 700; }
.smap-me circle { fill: none; stroke: var(--accent); stroke-width: 2.4; }
.smap-me circle.dot { fill: var(--accent); stroke: none; }
.smap-me text { font-size: 11px; font-weight: 800; fill: var(--accent); }
.axes { display: flex; flex-direction: column; gap: 10px; }
.axis { display: grid; grid-template-columns: 44px 40px 1fr 54px; align-items: center; gap: 8px; font-size: 12px; }
.axis-n { font-weight: 700; }
.axis-l { color: var(--muted); text-align: right; }
.axis-r { color: var(--muted); }
.axis-track { position: relative; height: 10px; border-radius: 999px; }
.axis-track i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); transform: translate(-50%, -50%); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }

.drape { margin: 0; }
.drape-stage { position: relative; aspect-ratio: 4 / 5; background: var(--drape-bg); border-radius: 14px; overflow: hidden; user-select: none; touch-action: none; }
.drape-stage.movable { cursor: grab; }
.drape-stage img { position: absolute; max-width: none; height: auto; pointer-events: none; }
.drape-cloth { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.drape-noface { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 13px; }
.drape-badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.drape figcaption { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.drape figcaption i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }
.drape figcaption span { display: flex; flex-direction: column; line-height: 1.3; }
.drape figcaption small { color: var(--muted); font-size: 12px; }
.drape-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.drape-card .drape-pair { max-width: 760px; margin: 14px auto 0; }
.drape-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.vote { display: flex; justify-content: center; gap: 10px; margin: 18px 0 8px; flex-wrap: wrap; }
.vote .btn { min-width: 130px; }
.drape-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); max-width: 760px; margin: 0 auto; text-align: center; }
.drape-ctl { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; }
.drape-ctl label { display: flex; align-items: center; gap: 8px; }
.drape-ctl input[type="range"] { width: 160px; }
.tipbox { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.tipbox ul { margin: 6px 0 0; padding-left: 18px; }
.tipbox.good b { color: var(--good); }
.tipbox.bad b { color: var(--bad); }
.season-hero { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.season-hero::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--fam); }
.kw { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.kw span { font-size: 13px; color: var(--accent); font-weight: 600; }
.guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0; }
.guide div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.guide dt { font-size: 12px; color: var(--muted); font-weight: 700; }
.guide dd { margin: 3px 0 0; font-size: 14px; }
.ai-card { border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 140px); }
.ai-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.ai-head p { margin: 0; }
.ai-body { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.ai-body p { margin: 0; }
.ai-verdict { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ai-verdict b { font-family: var(--serif); font-size: 20px; }
.ai-person { background: var(--surface-2); border-radius: 12px; padding: 10px 14px; }

/* ---------- 옷 평가 ---------- */
.check-grid { display: grid; grid-template-columns: minmax(360px, 470px) minmax(0, 1fr); gap: 20px; align-items: start; }
.check-inputs { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.check-results { min-width: 0; }
.sticky-col { position: sticky; top: 76px; }
.url-row { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 4px 4px 14px; background: var(--surface-2); margin-bottom: 14px; }
.url-row input { border: 0; background: transparent; padding: 6px 0; box-shadow: none; }
.url-row .ico { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: 160px 1fr; gap: 14px; align-items: start; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.thumb { width: 44px; height: 54px; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 0; overflow: hidden; display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { outline: 2px solid var(--ink); outline-offset: 1px; }
.thumb.remote { opacity: .7; border-style: dashed; }
.color-row { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: start; }
.eyedrop { position: relative; border-radius: 12px; overflow: hidden; line-height: 0; background: #fff; border: 1px solid var(--line); }
.eyedrop img { width: 100%; display: block; }
.eyedrop.on { cursor: crosshair; outline: 2px solid var(--accent); }
.eyedrop span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(20, 18, 16, .75); color: #fff; font-size: 11px; line-height: 1.4; padding: 4px 6px; text-align: center; }
.main-color { display: flex; align-items: center; gap: 12px; }
.main-color i { width: 48px; height: 48px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); flex: none; }
.main-color div { display: flex; flex-direction: column; line-height: 1.35; }
.main-color b { font-size: 16px; }
.main-color small { color: var(--muted); font-size: 12px; }
.color-side .row { margin-top: 12px; }
.attr-grid .mini-t { margin: 12px 0 0; }
.attr-grid .chips.small { margin-top: 6px; }
.formality { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; }
.formality b { font-size: 13px; }
.sizetable .st-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }
.st-paste { margin-bottom: 12px; }
.st-paste textarea { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.st-preview { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; margin-top: 6px; }
.st-scroll { overflow-x: auto; }
.sizetable table, table.cmp { border-collapse: separate; border-spacing: 0; font-size: 13px; width: 100%; }
.sizetable th, .sizetable td, table.cmp th, table.cmp td { border-bottom: 1px solid var(--line); padding: 5px 6px; text-align: center; white-space: nowrap; }
.sizetable tbody th, table.cmp tbody th { text-align: left; font-weight: 600; color: var(--ink-2); }
.sizetable td input { width: 64px; padding: 5px 4px; text-align: center; font-size: 13px; border-radius: 8px; }
.sizetable .sel { background: var(--accent-soft); }
.sizetable thead th { position: relative; vertical-align: bottom; }
.st-label { width: 64px !important; font-weight: 700; text-align: center; padding: 4px !important; border-color: transparent !important; background: transparent !important; }
.st-head-actions { display: flex; justify-content: center; gap: 2px; margin-top: 2px; }
.st-head-actions .pick { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.st-head-actions .pick.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.st-head-actions .x { border: 0; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; padding: 0 4px; }
.rec-tag { position: absolute; top: -2px; right: 2px; font-style: normal; font-size: 10px; font-weight: 800; color: var(--good); }
.who { display: flex; flex-wrap: wrap; gap: 8px; }
.who-b { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 650; font-size: 14px; }
.who-b.sm { font-size: 13px; padding: 3px 12px 3px 3px; }
.who-b.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.occ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 6px; }
.occ { display: flex; align-items: center; gap: 8px; text-align: left; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 550; line-height: 1.3; }
.occ span { font-size: 17px; }
.occ:hover { border-color: var(--ink-2); }
.occ.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.score-card { padding: 20px; }
.scores { display: flex; gap: 12px; }
.scores.two > * { flex: 1; }
.score-person { display: flex; align-items: center; gap: 16px; border: 1px solid transparent; background: transparent; border-radius: 14px; padding: 8px; text-align: left; min-width: 0; }
.scores.two .score-person { border-color: var(--line); }
.scores.two .score-person.on { border-color: var(--ink); background: var(--surface-2); }
.sp-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-name { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.verdict { font-family: var(--serif); font-size: 22px; }
.sp-text p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.better { display: flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; border-radius: 12px; padding: 8px 12px; margin: 12px 0 0; }
.notes { list-style: none; padding: 0; margin: 0; }
.notes li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; line-height: 1.55; }
.notes li:last-child { border-bottom: 0; }
.notes li .ico { margin-top: 3px; }
.n-good .ico { color: var(--good); }
.n-warn .ico { color: var(--warn); }
.n-bad .ico { color: var(--bad); }
.n-tip .ico { color: var(--muted); }
.note-group .mini-t { margin-top: 10px; }
.pairing { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pair-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pair-main, .pair-item { display: flex; flex-direction: column; gap: 3px; width: 128px; font-size: 12.5px; line-height: 1.35; }
.pair-main i, .pair-item i { height: 60px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.pair-main { width: 72px; }
.pair-item em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.light-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.light-strip div { display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 1.3; }
.light-strip i { height: 64px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.light-strip em { font-style: normal; color: var(--muted); font-size: 11px; }
table.cmp thead th { font-size: 12px; color: var(--muted); font-weight: 600; }
table.cmp td { font-variant-numeric: tabular-nums; }
.st-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); }
tr.s-ok .st-badge { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
tr.s-big .st-badge, tr.s-small .st-badge, tr.s-alter .st-badge { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
tr.s-toobig .st-badge, tr.s-toosmall .st-badge { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.size-rank { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.size-rank .mini-t { width: 100%; }
.size-pill { display: flex; flex-direction: column; align-items: center; gap: 1px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 6px 14px; position: relative; }
.size-pill span { font-size: 12px; color: var(--muted); }
.size-pill.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.size-pill.best { background: color-mix(in srgb, var(--good) 8%, var(--surface)); }
.size-pill em { font-style: normal; font-size: 10px; font-weight: 800; color: var(--good); }
.fig-wrap { max-width: 520px; margin: 0 auto; }
.multi-fig { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; }
.mf { flex: 0 0 180px; display: flex; flex-direction: column; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 8px; cursor: pointer; text-align: center; }
.mf.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.mf small { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.bp-wrap { max-width: 440px; margin: 10px auto 0; }
.tryon-stage { position: relative; line-height: 0; border-radius: 12px; overflow: hidden; touch-action: none; max-width: 480px; margin: 0 auto; user-select: none; }
.tryon-body { width: 100%; display: block; pointer-events: none; }
.tryon-cloth { position: absolute; cursor: grab; transform-origin: 50% 20%; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .25)); max-width: none; }
.tryon-cloth:active { cursor: grabbing; }
.tryon-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: center; margin: 14px 0 8px; font-size: 13px; }
.tryon-tools label { display: flex; align-items: center; gap: 6px; }
.tryon-tools input[type="range"] { width: 110px; }
.formality-scale { margin: 14px 0; }
.fs-track { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #C9D8C5, #E9E1D2, #3A3632); }
.fs-range { position: absolute; top: -3px; bottom: -3px; border: 2px solid var(--accent); border-radius: 999px; }
.fs-dot { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); transform: translate(-50%, -50%); }
.fs-lab { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.place-demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.place-demo div { height: 110px; border-radius: 12px; display: grid; place-items: center; }
.place-demo i { width: 44px; height: 62px; border-radius: 22px 22px 6px 6px; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }

/* ---------- 옷장 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters .chips.small { margin: 0; }
.search { max-width: 260px; border-radius: 999px; }
.closet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.closet-grid.compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.cl-card { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.cl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cl-img { position: relative; aspect-ratio: 4 / 5; background: #fff; display: grid; place-items: center; }
.cl-img img { width: 100%; height: 100%; object-fit: contain; }
.cl-noimg { width: 50%; height: 60%; border-radius: 40px 40px 10px 10px; }
.cl-status { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; background: rgba(20, 18, 16, .72); color: #fff; padding: 2px 8px; border-radius: 999px; }
.cl-status.s-bought, .cl-status.s-own { background: var(--good); }
.cl-status.s-pass { background: var(--muted); }
.cl-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.cl-brand { margin: 0; font-size: 11.5px; color: var(--muted); font-weight: 700; letter-spacing: .02em; }
.cl-name { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.cl-color { display: inline-flex; align-items: center; gap: 4px; }
.cl-color i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.cl-scores { display: flex; gap: 10px; margin-top: 6px; }
.cl-score { display: inline-flex; align-items: center; gap: 5px; }
.cl-score b { font-family: var(--serif); font-size: 17px; }
.cl-score small { font-family: var(--latin); font-weight: 700; color: var(--muted); }

/* ---------- 코디 ---------- */
.tpo-guide .tg-head { display: flex; gap: 14px; align-items: flex-start; }
.tg-ico { font-size: 34px; line-height: 1; }
.tg-head p { margin: 0; color: var(--ink-2); }
.tg-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.tg-person { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.tg-name { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 8px; }
.tg-name small { color: var(--muted); font-weight: 500; }
.formula { display: flex; gap: 4px; height: 64px; }
.formula div { display: flex; flex-direction: column; gap: 3px; min-width: 40px; }
.formula i { flex: 1; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.formula small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-dont { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0 6px; font-size: 13px; }
.tg-dont span { background: color-mix(in srgb, var(--bad) 9%, transparent); color: var(--bad); border-radius: 999px; padding: 2px 10px; }
.board-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.board { display: grid; grid-template-columns: minmax(0, 520px); gap: 18px; justify-content: center; }
.board.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.board-person { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--surface-2); min-width: 0; }
.bp-top { display: flex; justify-content: space-between; align-items: center; }
.bp-score { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; }
.board-fig { max-width: 300px; margin: 0 auto; }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.slot { position: relative; }
.slot-b { display: flex; align-items: center; gap: 8px; width: 100%; border: 1px dashed var(--line-2); background: var(--surface); border-radius: 12px; padding: 6px 8px; text-align: left; min-height: 48px; }
.slot.filled .slot-b { border-style: solid; }
.slot-b img, .slot-b > i { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex: none; background: #fff; }
.slot-b span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.slot-b small { font-size: 11px; color: var(--muted); }
.slot-b b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-b em { margin-left: auto; font-style: normal; font-family: var(--serif); font-weight: 700; }
.slot-x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 13px; line-height: 1; padding: 0; }
.harmony { margin-top: 10px; }
.couple { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border-radius: 14px; padding: 12px 16px; margin-top: 14px; color: var(--ink); }
.couple .ico { color: var(--accent); margin-top: 2px; }
.couple p { margin: 2px 0 0; font-size: 14px; }
.board-actions { margin-top: 14px; }
.name-in { max-width: 260px; border-radius: 999px; }
.outfit-ai { border-top: 1px solid var(--line); padding-top: 14px; }
.saved-outfits { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.so { position: relative; }
.so-b { width: 100%; display: flex; flex-direction: column; gap: 4px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; }
.so-b small { color: var(--muted); font-size: 12px; }
.so-strip { display: flex; height: 10px; border-radius: 4px; overflow: hidden; }
.so-strip i { flex: 1; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.pick { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 6px; text-align: left; font-size: 12px; }
.pick img, .pick > i { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; border-radius: 8px; background: #fff; }
.pick small { color: var(--muted); }
.status-line { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0 0 14px; }
.about p { margin: 6px 0 0; }

/* ---------- 반응형 ---------- */
@media (max-width: 1180px) {
  .check-grid { grid-template-columns: minmax(0, 1fr); }
  .sticky-col { position: static; }
  .res-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .top { padding: 10px 16px; }
  .top-brand, .top .top-gear { display: grid; }
  .ps-btn > span:not(.avatar) { display: none; }
  .ps-btn { padding: 3px; }
  .view { padding: 18px 16px 110px; }
  .tabbar { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tab-a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 4px 0; }
  .tab-a.on { color: var(--ink); }
  .grid-2, .grid-2.wide-left, .grid-2.wide-right, .grid-3, .intro-card, .season-hero, .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
  .figure-card { position: static; }
  .form-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sampler-wrap { grid-template-columns: minmax(0, 1fr); }
  .sample-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board.two { grid-template-columns: minmax(0, 1fr); }
  .season-hero .sh-drape { max-width: 260px; }
  .title { font-size: 24px; }
  .toasts { right: 12px; left: 12px; bottom: 84px; max-width: none; }
}
@media (max-width: 560px) {
  .top-cta { display: none; }
  .photo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid, .color-row { grid-template-columns: minmax(0, 1fr); }
  .product-grid > div:first-child { max-width: 260px; }
  .color-row .eyedrop { max-width: 180px; }
  .form-grid, .form-grid.two, .form-grid.three { grid-template-columns: minmax(0, 1fr); }
  .onboard-cards { grid-template-columns: minmax(0, 1fr); }
  .scores { flex-direction: column; }
  .light-strip { grid-template-columns: repeat(3, 1fr); }
  .drape-pair { gap: 8px; }
  .pc-facts { grid-template-columns: repeat(2, 1fr); }
  .closet-grid, .closet-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .slots { grid-template-columns: minmax(0, 1fr); }
  .drape-nav { flex-direction: column; }
}

/* ---------- 피부 · 메이크업 ---------- */
.skin-hero { display: flex; align-items: center; gap: 18px; margin: 4px 0 14px; }
.skin-chip { width: 92px; height: 92px; border-radius: 50%; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 8px 20px rgba(0, 0, 0, .1); color: #3A2A22; }
.skin-chip b { font-family: var(--serif); font-size: 24px; line-height: 1; }
.skin-chip span { font-family: var(--latin); font-weight: 700; font-size: 15px; letter-spacing: .1em; }
.skin-hero .display { margin-bottom: 4px; }
.skin-hero p { margin: 0; }
.tone-bar { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); margin: 6px 0 4px; }
.tb-track { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #E7B3BF, #EBCFB8, #EDC98E); }
.tb-track i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); transform: translate(-50%, -50%); }
.result-line { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.intensity { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 0 0 6px; }
.look-row { display: flex; flex-wrap: wrap; gap: 8px; }
.look-sw { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px 4px 4px; text-align: left; transition: border-color .12s; }
.look-sw:hover { border-color: var(--ink-2); }
.look-sw.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.look-sw i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); flex: none; }
.look-sw b { font-size: 13px; }
.look-sw small { font-size: 11px; color: var(--muted); }
.mlbb { display: flex; flex-direction: column; gap: 4px; max-width: 240px; }
.mlbb > small { font-size: 11.5px; color: var(--muted); padding-left: 6px; }
.eye-pal { display: flex; border-radius: 14px; overflow: hidden; max-width: 480px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.eye-pal div { flex: 1; display: flex; flex-direction: column; }
.eye-pal i { height: 54px; }
.eye-pal small { font-size: 11px; text-align: center; padding: 4px 2px; background: var(--surface-2); color: var(--ink-2); }
.inline-sw { display: inline-flex; gap: 3px; margin-right: 6px; vertical-align: middle; }
.inline-sw i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); display: inline-block; }
.inline-sw.big i { width: 34px; height: 34px; }
.occ-looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.occ-looks .ol { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.occ-looks .ol p { margin: 4px 0 0; font-size: 13.5px; }
.mk-stage { background: #C9C4BD; }
.mk-img { position: absolute; line-height: 0; }
.mk-img img { width: 100%; display: block; }
.mk-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mk-warn { position: absolute; left: 10px; bottom: 10px; background: rgba(20, 18, 16, .75); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.mk-pair { max-width: 760px; margin: 12px auto 0; }
.mk-pick { border-radius: 16px; padding: 6px; border: 2px solid transparent; cursor: pointer; }
.mk-pick.on { border-color: var(--ink); }
.dot-sw { width: 14px; height: 14px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.cos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cos-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 8px; text-align: left; }
.cos-card:hover { border-color: var(--ink-2); }
.cos-img { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.cos-img img { width: 100%; height: 100%; object-fit: cover; }
.cos-dot { position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; }
.cos-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.cos-body small { color: var(--muted); font-size: 11.5px; }
.cos-body b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cos-body span { font-size: 12px; color: var(--muted); }
.cos-score { display: flex; flex-direction: column; align-items: flex-end; padding-right: 6px; }
.cos-score b { font-family: var(--serif); font-size: 22px; }
.cos-score small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.shade-scale { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 12px; }
.shade-scale span { width: 38px; text-align: center; font-size: 12px; padding: 4px 0; border-radius: 8px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.shade-scale span.mine { border-radius: 999px; border-color: var(--good); color: var(--good); font-weight: 800; }
.shade-scale span.prod { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 800; }
.shade-scale span.mine.prod { box-shadow: 0 0 0 2px var(--good); }
.shade-scale small { width: 100%; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 900px) { .tabbar { grid-template-columns: repeat(7, 1fr); } .skin-chip { width: 72px; height: 72px; } }

/* ---------- 새 온보딩 · 시작 흐름 ---------- */
.wizard { max-width: 820px; margin: 0 auto; padding: 20px 0; }
.wizard-head { text-align: center; margin-bottom: 32px; }
.wizard-head .display { margin-bottom: 8px; }
.step-track { display: flex; gap: 4px; max-width: 380px; margin: 20px auto; }
.step-track i { flex: 1; height: 4px; border-radius: 999px; background: var(--line); transition: background .3s; }
.step-track i.done { background: var(--ink); }
.step-track i.now { background: var(--accent); }

.big-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.big-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 24px; text-align: left; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s; cursor: pointer; }
.big-card:hover { transform: translateY(-4px); border-color: var(--ink-2); box-shadow: 0 14px 40px rgba(0, 0, 0, .1); }
.big-card .bc-icon { font-size: 40px; margin-bottom: 4px; }
.big-card b { font-family: var(--serif); font-size: 20px; }
.big-card small { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- 홈 화면 개선 ---------- */
.hero-v2 { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 32px 40px; border-radius: 24px; background: linear-gradient(135deg, #F5F1EA 0%, #EFE7DA 100%); border: 1px solid var(--line); margin-bottom: 24px; position: relative; overflow: hidden; }
.hero-v2::before { content: ''; position: absolute; right: -100px; top: -50px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(124, 45, 62, .15), transparent 60%); pointer-events: none; }
.hero-v2 .eyebrow { color: var(--accent); }
.hero-v2 h1 { font-family: var(--serif); font-size: clamp(28px, 3.5vw, 42px); line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.02em; position: relative; }
.hero-v2 p { font-size: 16px; color: var(--ink-2); margin: 0 0 20px; max-width: 640px; position: relative; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.hero-cta .btn { padding: 12px 22px; font-size: 14.5px; }

.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 20px 0; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; cursor: pointer; }
.qa:hover { transform: translateY(-2px); border-color: var(--ink-2); }
.qa .qa-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); color: var(--accent); }
.qa b { font-size: 13.5px; font-weight: 650; text-align: center; }
.qa small { font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.3; }

/* ---------- 헤어 화면 ---------- */
.face-shape-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.fs { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.fs:hover { border-color: var(--ink-2); }
.fs.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--surface-2); }
.fs b { font-size: 12.5px; }
.face-ico { width: 40px; height: 40px; }
.face-ico path { fill: none; stroke: currentColor; stroke-width: 2; }
.fs.on .face-ico path { fill: var(--surface-2); }

.style-list { display: flex; flex-direction: column; gap: 6px; }
.style-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.style-row:hover { border-color: var(--ink-2); }
.style-row.on { border-color: var(--ink); background: var(--surface-2); }
.sr-num { font-family: var(--latin); font-weight: 700; color: var(--muted); font-size: 15px; text-align: center; }
.sr-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.sr-body b { font-size: 14px; }
.sr-body small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-score { font-family: var(--serif); font-weight: 700; font-size: 20px; }
.hair-stage { background: #E8E1D5; overflow: hidden; position: relative; border-radius: 12px; }
.hair-body { pointer-events: none; }
.hair-svg { pointer-events: none; }
.hairfig { margin: 0; }

/* ---------- 소품 매트릭스 ---------- */
.acc-matrix { overflow-x: auto; }
.acc-matrix table { border-collapse: collapse; width: 100%; font-size: 13px; }
.acc-matrix th, .acc-matrix td { padding: 6px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.acc-matrix tbody th { text-align: left; font-weight: 600; }
.acc-matrix tr.on { background: var(--surface-2); }
.acc-matrix td.good { color: var(--good); font-weight: 700; font-size: 15px; }
.acc-matrix td.bad { color: var(--bad); font-weight: 700; font-size: 15px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; margin-right: 4px; }
.pill.ok { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); }
.pill.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }

/* ============================================================
   최종 마감 (Final polish)
   ============================================================ */

/* 상단 여백·크기 정돈 */
.view { padding: 32px 40px 100px; }
.page-head { margin-bottom: 8px; }
.title { font-size: 30px; letter-spacing: -0.025em; }
.eyebrow { font-size: 11.5px; letter-spacing: .24em; margin-bottom: 8px; }

/* 사이드바 브랜드 개선 */
.brand-mark { font-size: 36px; font-weight: 600; }
.brand-sub { font-size: 10.5px; letter-spacing: .28em; margin-top: 6px; }
.nav { gap: 3px; margin-top: 6px; }
.nav-a { padding: 11px 14px; font-size: 14px; border-radius: 12px; }
.nav-a .ico { color: var(--muted); transition: color .15s; }
.nav-a:hover .ico, .nav-a.on .ico { color: var(--ink); }
.nav-a.on { font-weight: 700; }

/* 카드 그림자·모서리 부드럽게 */
.card { border-radius: 18px; box-shadow: 0 1px 2px rgba(31, 27, 24, .03); transition: box-shadow .2s; }
.card:hover { box-shadow: 0 1px 2px rgba(31, 27, 24, .03), 0 8px 24px rgba(31, 27, 24, .04); }
.card-t { font-size: 17px; margin-bottom: 16px; letter-spacing: -0.015em; }
.card-t small { font-weight: 400; font-size: 12.5px; }

/* 버튼 다듬기 */
.btn { padding: 10px 18px; font-size: 14px; font-weight: 600; letter-spacing: -0.005em; border-width: 1.5px; }
.btn.primary { box-shadow: 0 2px 6px rgba(31, 27, 24, .1); }
.btn.primary:hover:not(:disabled) { box-shadow: 0 4px 12px rgba(31, 27, 24, .15); transform: translateY(-1px); }
.btn.lg { padding: 14px 26px; font-size: 15.5px; }
.btn.sm { padding: 7px 14px; }
.btn .ico { margin-right: -2px; }

/* 세그먼트 선택 (탭) */
.seg { padding: 5px; border-radius: 999px; }
.seg-btn { padding: 8px 16px; font-size: 13.5px; font-weight: 600; transition: all .15s; }
.seg-btn.on { box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }

/* 칩 톤 개선 */
.chip { padding: 7px 14px; font-size: 13px; font-weight: 500; border-width: 1.5px; }
.chip.on { font-weight: 600; }

/* 스코어 링 그림자 */
.ring-c b { text-shadow: 0 1px 2px rgba(0, 0, 0, .04); }

/* 홈 히어로 개선 */
.hero-v2 { padding: 44px 48px; border-radius: 28px; }
.hero-v2 h1 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; }
.hero-v2 .lead { max-width: 640px; }

/* 빠른 메뉴 카드 개선 */
.qa { padding: 22px 14px; border-radius: 18px; transition: transform .2s, border-color .15s, box-shadow .2s; }
.qa:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(31, 27, 24, .08); }
.qa .qa-ico { width: 48px; height: 48px; box-shadow: inset 0 0 0 1px var(--line); }
.qa b { font-size: 14px; }

/* 사람 카드 개선 */
.person-card { padding: 24px; border-radius: 22px; box-shadow: 0 1px 2px rgba(31, 27, 24, .03); transition: transform .2s, box-shadow .2s; }
.person-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(31, 27, 24, .08); }
.person-card::before { height: 4px; border-radius: 22px 22px 0 0; }
.pc-head h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.pc-head p { font-size: 13px; margin-top: 4px; }

/* 옷장 카드 */
.cl-card { border-radius: 18px; box-shadow: 0 1px 2px rgba(31, 27, 24, .03); }
.cl-card:hover { box-shadow: 0 8px 24px rgba(31, 27, 24, .08); }
.cl-name { font-size: 14.5px; font-weight: 600; }

/* 필드·입력 */
.field-label { font-size: 12px; font-weight: 700; color: var(--ink-2); letter-spacing: 0.01em; }
input, select, textarea { padding: 10px 13px; border-radius: 12px; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
input:hover:not(:focus):not(:disabled), select:hover:not(:focus):not(:disabled) { border-color: var(--muted); }

/* 스와치 마감 */
.sw i { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04); transition: transform .12s, box-shadow .12s; }
.sw.clickable:hover i { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 4px 8px rgba(0, 0, 0, .1); }

/* 모달 개선 */
.modal { border-radius: 20px; }
.modal-h { padding: 18px 22px 14px; }
.modal-h b { font-family: var(--serif); font-size: 18px; }
.modal-b { padding: 6px 22px 22px; }

/* 에러/경고 문구 색 톤 */
.n-good .ico { color: var(--good); }
.n-warn .ico { color: var(--warn); }
.n-bad .ico { color: var(--bad); }
.n-tip .ico { color: var(--muted); opacity: .8; }
.notes li { padding: 10px 0; font-size: 14px; line-height: 1.6; }

/* 안내 문구 (첫 방문 시 도움말) */
.helper-banner { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 60%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line)); border-radius: 14px; margin-bottom: 16px; }
.helper-banner .helper-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: none; }
.helper-banner .helper-body { flex: 1; }
.helper-banner b { display: block; font-size: 14px; margin-bottom: 3px; }
.helper-banner p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.helper-banner .helper-close { background: transparent; border: 0; color: var(--muted); padding: 4px 8px; cursor: pointer; font-size: 18px; line-height: 1; }
.helper-banner .helper-close:hover { color: var(--ink); }

/* 다크 모드 마감 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --figure: #3A3530;
  }
  .hero-v2 { background: linear-gradient(135deg, #1D1A17 0%, #231F1B 100%); }
  .hero-v2::before { background: radial-gradient(circle at 30% 30%, rgba(217, 138, 153, .15), transparent 60%); }
}

/* 모바일 최종 정리 */
@media (max-width: 900px) {
  .view { padding: 20px 16px 120px; }
  .top { padding: 12px 16px; height: 56px; }
  .title { font-size: 22px; }
  .hero-v2 { padding: 28px 24px; border-radius: 22px; }
  .hero-v2 h1 { font-size: 26px; }
  .hero-v2 .lead { font-size: 14.5px; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .qa { padding: 18px 10px; }
  .qa .qa-ico { width: 42px; height: 42px; }
  .person-card { padding: 20px; }
  .card { padding: 18px 18px; border-radius: 16px; }
  .card-t { font-size: 15.5px; }
  .btn.lg { padding: 12px 20px; font-size: 15px; }
  .hero-cta .btn { padding: 12px 18px; }
  .seg-btn { padding: 7px 12px; font-size: 12.5px; }
  .tabbar { grid-template-columns: repeat(7, 1fr); }
  .tabbar .tab-a { font-size: 10px; padding: 6px 2px; gap: 3px; }
  .tabbar .tab-a .ico { width: 20px; height: 20px; }
  /* 6번째 이후 탭은 모바일에서 숨기고 설정으로 통합 */
  .wizard { padding: 16px 8px; }
  .wizard-head .display { font-size: 26px; }
  .big-cards { gap: 12px; }
  .big-card { padding: 22px 20px; }
}

/* ---------- PC 카메라 촬영 ---------- */
.cam-hint { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 14px; padding: 10px 14px; background: var(--surface-2); border-radius: 10px; }
.cam-hint .ico { flex: none; margin-top: 2px; color: var(--muted); }
.cam-stage { position: relative; width: 100%; max-width: 480px; margin: 0 auto; background: #111; border-radius: 14px; overflow: hidden; }
.cam-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cam-count { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.3); pointer-events: none; }
.cam-count b { font-family: var(--serif); font-size: 120px; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,.5); animation: cam-pop .3s ease-out; }
@keyframes cam-pop { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cam-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; }
.cam-loading .spin { color: #fff; }
.cam-error { padding: 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--bad); background: color-mix(in srgb, var(--bad) 6%, transparent); border-radius: 12px; }
.cam-error p { margin: 0; color: var(--ink); }
.cam-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 16px; }
.cam-actions .check { margin-right: auto; }
.drop-cam-btn { margin-top: 8px; }
@media (max-width: 560px) {
  .cam-count b { font-size: 80px; }
  .cam-actions { gap: 6px; }
  .cam-actions .check { margin-right: 0; width: 100%; justify-content: center; margin-bottom: 4px; }
}
