/* 깔끔한 모던: 흰 바탕, 넉넉한 여백, 브랜드 색 하나(인디고), 부드러운 그림자의 카드. */
:root {
  --bg: #FAFAFB; --card: #FFFFFF; --ink: #111318; --sub: #5B6170; --faint: #8A90A0; --soft: #F2F3F5; --line: #E7E9EE;
  --brand: #5046E5; --brand-2: #B14CF2; --brand-soft: #EEF0FF; --brand-ink: #3A31C4;
  --ok: #0B7A53; --ok-soft: #E3F6EE; --warn: #8A5A00; --warn-soft: #FFF4D6; --danger: #C0352B; --danger-soft: #FDECEA;
  --r-lg: 24px; --r-md: 16px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .06);
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 400 16px/1.6 var(--sans); letter-spacing: -.01em; word-break: keep-all; -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 420px at 15% -8%, #E8EEFF 0%, transparent 62%), radial-gradient(800px 420px at 92% -6%, #F4E8FF 0%, transparent 60%), var(--bg); background-repeat: no-repeat; }
[hidden] { display: none !important; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
h1 { font-size: 1.75rem; font-weight: 800; line-height: 1.25; letter-spacing: -.03em; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .5rem; display: flex; align-items: center; gap: .4rem; }
h3 { font-size: 1rem; font-weight: 700; margin: .8rem 0 .3rem; }
h4 { font-size: .8rem; font-weight: 600; margin: 1.2rem 0 .4rem; color: var(--sub); }
p { margin: .4rem 0; }
small { font-size: .84em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 50; }
.muted { color: var(--sub); } .hint { color: var(--sub); font-size: .87rem; }
.note { font-size: .85rem; color: var(--sub); background: var(--soft); border-radius: var(--r-sm); padding: .65rem .9rem; }
.warn { color: var(--warn); background: var(--warn-soft); border-radius: var(--r-sm); padding: .5rem .8rem; font-size: .9rem; font-weight: 500; }
.okline { color: var(--ok); font-weight: 600; }
.quote { background: var(--brand-soft); color: #23206B; border-radius: var(--r-sm); padding: .75rem .95rem; margin: .7rem 0; }
.empty { color: var(--sub); padding: 1.4rem 0; text-align: center; }
.alert { background: var(--warn-soft); color: #5C3D00; border-radius: var(--r-md); padding: .8rem 1rem; margin: .7rem 0; }
.req { font-size: .72rem; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); border-radius: 6px; padding: 1px 6px; }
.tag { font-size: .7rem; font-weight: 600; color: var(--sub); background: var(--soft); border-radius: 6px; padding: 2px 7px; white-space: nowrap; vertical-align: middle; }
.ic { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.22em; }

:focus-visible { outline: 3px solid rgba(80, 70, 229, .45); outline-offset: 2px; }
button, .btn, select, input, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button, .btn { min-height: 46px; padding: .5rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; }
button:hover, .btn:hover { background: #F7F8FA; border-color: #D5D9E2; }
button:active, .btn:active { transform: scale(.98); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary, .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(80, 70, 229, .25); }
button.primary:hover, .btn.primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
button.danger { color: var(--danger); border-color: #F3C9C5; } button.danger:hover { background: var(--danger-soft); }
button.big { min-height: 56px; font-size: 1.05rem; padding: .6rem 1.8rem; border-radius: var(--r-md); }
button.link { min-height: 0; padding: 0; border: 0; background: none; color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; border-radius: 4px; display: inline; }
button[aria-pressed="true"], button[aria-selected="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea { width: 100%; min-height: 48px; padding: .55rem .9rem; border: 1px solid #D5D9E2; border-radius: var(--r-sm); background: #fff; transition: border-color .15s, box-shadow .15s; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(80, 70, 229, .12); outline: none; }
input[type=color] { width: 64px; height: 48px; padding: 3px; border: 1px solid #D5D9E2; border-radius: var(--r-sm); background: #fff; }
input[type=range] { width: 100%; min-height: 32px; accent-color: var(--brand); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--brand); }
label { display: block; font-weight: 600; font-size: .9rem; margin: .7rem 0; }
label > input, label > select, label > textarea { margin-top: .4rem; font-weight: 400; }
label h2 { display: inline-flex; }
fieldset { border: 0; padding: 0; margin: 1rem 0; } legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: .45rem; }
.inline { display: flex; gap: .5rem; align-items: center; margin-top: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; font-size: .9rem; margin: .15rem .3rem .15rem 0; padding: .35rem .85rem; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; transition: background .15s, border-color .15s; }
.chip:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin: .8rem 0; } .row.center { justify-content: center; }
.row > input { flex: 1 1 160px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 .9rem; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; margin: .7rem 0 .2rem; }
.choices button, .choices .btn { border-radius: 999px; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.head h1, .head h2 { margin: 0; } .head a { display: inline-flex; align-items: center; gap: .3rem; font-size: .9rem; font-weight: 600; text-decoration: none; }
details > summary { cursor: pointer; min-height: 46px; display: flex; align-items: center; justify-content: space-between; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform .2s; margin-right: 6px; }
details[open] > summary::after { transform: rotate(-135deg); }
details > summary h2 { margin: 0; }
ul.plain, ul.items { list-style: none; padding: 0; margin: .3rem 0; }
ul.plain li { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; padding: .3rem 0; }
ul.items li { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; padding: .6rem 0; border-top: 1px solid var(--line); }
ul.items .grow { flex: 1 1 140px; font-weight: 600; } ul.items select { width: auto; flex: 0 1 150px; min-height: 42px; } ul.items button { min-height: 42px; padding: .3rem .85rem; font-size: .86rem; }
.scroll { overflow-x: auto; }

/* 상단 바 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(231, 233, 238, .8); display: flex; align-items: center; gap: 1rem; padding: .55rem max(1.25rem, env(safe-area-inset-left)); }
.brand { font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.brand i { width: 26px; height: 26px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: inline-block; }
.brand small { font-size: .68rem; font-weight: 600; letter-spacing: 0; color: var(--sub); background: var(--soft); border-radius: 6px; padding: 2px 7px; }
nav { display: flex; gap: 2px; margin-left: auto; }
nav a { display: flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem; border-radius: var(--r-sm); color: var(--sub); text-decoration: none; font-size: .92rem; font-weight: 600; transition: background .15s, color .15s; }
nav a:hover { color: var(--ink); background: var(--soft); } nav a[aria-current] { color: var(--brand-ink); background: var(--brand-soft); }
main { max-width: 1120px; margin: 0 auto; padding: 1.6rem 1.25rem 7rem; } main:focus { outline: none; }
section { margin: 1.6rem 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); } .pad { padding: 1.3rem 1.4rem; }
.card.pad { margin: 0 0 1.1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 1rem; }
.cards .card { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.cards .card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16, 24, 40, .05), 0 20px 40px rgba(16, 24, 40, .1); }
.thumb { display: block; aspect-ratio: 1; background: var(--soft); } .outfit .thumb { aspect-ratio: 320 / 430; overflow: hidden; }
.thumb img, .thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.outfit .thumb svg { height: auto; margin-top: -8%; }
.cards .body { padding: .85rem .95rem 1rem; } .cards h3 { margin: 0 0 .3rem; font-size: 1rem; } .cards h3 a { color: var(--ink); text-decoration: none; }
.cards .row { margin: .55rem 0 0; } .cards button { min-height: 40px; padding: .3rem .75rem; font-size: .85rem; }
.badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .74rem; font-weight: 600; border-radius: 6px; padding: 2px 8px; white-space: nowrap; background: var(--soft); color: var(--sub); }
.b-owned { background: var(--ok-soft); color: var(--ok); } .b-wish { background: var(--brand-soft); color: var(--brand-ink); } .b-new { background: var(--warn-soft); color: var(--warn); }
.sw { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; font-size: .87rem; }
.sw i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(17, 19, 24, .22); display: inline-block; flex: none; }

/* 홈 */
.hero { margin: 1.6rem 0 2.2rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; } .hero-copy .upload { max-width: none; }
.hero-photo { position: relative; display: block; border-radius: 28px; overflow: hidden; box-shadow: 0 2px 4px rgba(16, 24, 40, .06), 0 24px 48px rgba(16, 24, 40, .14); aspect-ratio: 4 / 3.4; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; } .hero-photo:hover img { transform: scale(1.03); }
.hero-tag, .hero-go { position: absolute; bottom: 14px; padding: .4rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-tag { left: 14px; background: rgba(17, 19, 24, .55); color: #fff; } .hero-go { right: 14px; background: rgba(255, 255, 255, .92); color: var(--ink); display: inline-flex; align-items: center; gap: .3rem; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.feature { display: flex; gap: 1.2rem; align-items: center; padding: 1.2rem; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; } .feature:hover { transform: translateY(-3px); }
.feature h2 { margin: .5rem 0 .3rem; } .feature .btn { margin-top: .6rem; }
.feature-stage { flex: 0 0 132px; } .feature-ic { display: grid; place-items: center; aspect-ratio: 1; border-radius: 24px; background: var(--brand-soft); color: var(--brand); } .feature-ic .ic { width: 44px; height: 44px; } .feature-stage .stage { box-shadow: none; background: linear-gradient(160deg, #EEF0FF, #F7F1FF 55%, #F2F3F5); }
.feature-swatch { flex: 0 0 132px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .feature-swatch i { aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(17, 19, 24, .1); }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--brand-ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; margin: 0 0 1.2rem; box-shadow: var(--shadow); }
.display { font-size: clamp(2.2rem, 6vw, 3.9rem); font-weight: 800; line-height: 1.16; letter-spacing: -.045em; margin: 0 0 1rem; }
.display em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.1rem; color: var(--sub); max-width: 32em; margin: 0 0 1.8rem; }
.upload { width: 100%; max-width: 620px; padding: 1rem; }
.drop { border: 1.5px dashed #C9CEDB; border-radius: 18px; background: #FBFBFD; padding: 2rem 1rem 1.4rem; display: flex; flex-direction: column; align-items: center; gap: .9rem; transition: border-color .15s, background .15s; }
.drop:hover { border-color: var(--brand); background: var(--brand-soft); }
.drop-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.3rem; }
.drop p { margin: 0; font-size: .87rem; }
.upload .row { margin: 1rem 0 .2rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.stat strong.pc { font-size: 1.5rem; line-height: 1.85; } .stat small i { display: inline-block; width: 16px; height: 16px; border-radius: 50%; margin-right: 4px; border: 1px solid rgba(17, 19, 24, .15); }
.stat { padding: 1.2rem 1.3rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .1rem; transition: transform .2s, box-shadow .2s; }
.stat:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16, 24, 40, .05), 0 20px 40px rgba(16, 24, 40, .1); }
.stat span { font-size: .87rem; font-weight: 600; color: var(--sub); } .stat strong { font-size: 2.3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.2; } .stat small { color: var(--faint); }
ol.start { list-style: none; padding: 0; margin: .5rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
ol.start li { display: flex; align-items: center; gap: .85rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.1rem; }
ol.start li > div { flex: 1; } ol.start p { margin: 0; font-size: .85rem; }
ol.start .num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
ol.start li.done .num { background: var(--ok-soft); color: var(--ok); }

/* 무대 */
svg.avatar { display: block; width: 100%; height: auto; }
.studio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.3rem; align-items: start; }
.stage-col { position: sticky; top: 80px; }
.stage { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--soft); max-height: 70vh; aspect-ratio: 320 / 430; margin: 0 auto; box-shadow: var(--shadow); }
.stage-zoom { position: relative; transform-origin: 50% 35%; height: 100%; transition: transform .25s; } .stage svg { height: 100%; width: 100%; display: block; }
.overlay { position: absolute; inset: auto 14px 14px 14px; background: rgba(17, 19, 24, .82); color: #fff; padding: .7rem 1rem; text-align: center; font-weight: 600; border-radius: var(--r-sm); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.controls { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 .6rem; justify-content: center; }
.seg { display: inline-flex; background: var(--soft); border-radius: var(--r-sm); padding: 3px; }
.seg button { border: 0; background: none; min-height: 40px; padding: .2rem .8rem; font-size: .88rem; border-radius: 9px; color: var(--sub); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.zoomv { display: inline-flex; align-items: center; padding: 0 .3rem; font-size: .84rem; font-weight: 600; min-width: 48px; justify-content: center; font-variant-numeric: tabular-nums; color: var(--sub); }
.steps { list-style: none; display: flex; gap: .35rem; padding: 0; margin: .9rem 0; font-size: .8rem; font-weight: 600; }
.steps li { flex: 1; text-align: center; padding: .4rem .2rem; border-radius: 999px; background: var(--soft); color: var(--faint); }
.steps li.done { background: var(--ok-soft); color: var(--ok); } .steps li[aria-current] { background: var(--brand); color: #fff; }
.origin { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .6rem 0; } .origin img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }

.chat { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: .45rem; padding: .3rem 0; }
.msg { margin: 0; padding: .6rem .9rem; max-width: 86%; font-size: .95rem; }
.msg.assistant { background: var(--soft); align-self: flex-start; border-radius: 18px 18px 18px 6px; }
.msg.user { background: var(--brand); color: #fff; align-self: flex-end; border-radius: 18px 18px 6px 18px; }
.rec { border: 1px solid var(--line); border-radius: var(--r-md); padding: .95rem 1.1rem; margin: .8rem 0; background: #fff; transition: border-color .2s, box-shadow .2s; } .rec.on { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(80, 70, 229, .1); }
.rec header { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; } .rec header h3 { margin: 0; flex: 1 1 auto; font-size: 1.08rem; }
.rec header button { min-height: 40px; padding: .2rem .85rem; font-size: .85rem; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; } th, td { text-align: left; padding: .55rem .5rem; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; color: var(--faint); font-weight: 600; font-size: .78rem; }
.difftable tr.diff { background: #FFFBEA; }
.buy { background: var(--soft); border-radius: var(--r-sm); padding: .75rem .95rem; } .buy ul { padding-left: 0; list-style: none; margin: .3rem 0 0; } .buy li { padding: .4rem 0; border-top: 1px solid #fff; }
.schemes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.scheme { margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; } .scheme.on { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(80, 70, 229, .1); }
.scheme figcaption { display: flex; flex-direction: column; gap: .3rem; padding: .6rem; font-size: .8rem; } .scheme figcaption span { display: flex; flex-wrap: wrap; gap: .25rem; }
.scheme button { min-height: 40px; font-size: .84rem; }
.compare { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 1rem; overflow-x: auto; margin: .7rem 0; }
.compare figure { margin: 0; } .compare figcaption { display: flex; justify-content: space-between; align-items: center; gap: .4rem; padding: .5rem 0; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.3rem; align-items: start; }
.crop { width: 100%; height: auto; border-radius: var(--r-md); touch-action: none; cursor: crosshair; display: block; }
.photo { width: 100%; max-height: 360px; object-fit: contain; border-radius: var(--r-md); background: var(--soft); display: block; overflow: hidden; } .photo.ph svg { display: block; width: 100%; max-height: 300px; }
.tabs { display: flex; gap: 3px; margin: .6rem 0; background: var(--soft); border-radius: var(--r-sm); padding: 3px; } .tabs button { flex: 1; border: 0; background: none; color: var(--sub); border-radius: 9px; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .5rem; margin: .6rem 0 1.1rem; }
.sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; }
.sticky-actions { position: sticky; bottom: 0; background: var(--card); padding: .8rem 0; border-top: 1px solid var(--line); z-index: 5; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 16px); background: var(--ink); color: #fff; font-weight: 500; padding: .8rem 1.1rem; border-radius: var(--r-sm); max-width: min(92vw, 520px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 40; box-shadow: 0 12px 32px rgba(16, 24, 40, .25); }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.error { background: var(--danger); }

/* 코디 보드와 옷 사진 */
.board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 14px; height: 100%; align-content: center; background: var(--soft); }
.board.empty { display: grid; place-items: center; color: var(--faint); font-weight: 500; text-align: center; padding: 2rem; }
.bt { grid-column: span 3; margin: 0; background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.bt.b-shoes, .bt.b-bag, .bt.b-accessory { grid-column: span 2; }
.bt img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 8%; display: block; }
.bt figcaption { font-size: .76rem; font-weight: 600; color: var(--sub); padding: .1rem .6rem .5rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt.new { border: 1.5px dashed #C9CEDB; background: #FBFBFD; }
.noimg { width: 100%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--sub); text-align: center; padding: .5rem; }
.noimg i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(17, 19, 24, .2); } .noimg small { font-weight: 500; color: var(--faint); }
.thumb .board { padding: 8px; gap: 6px; } .thumb .board figcaption { display: none; } .thumb .bt { border-radius: 10px; }
.thumb { position: relative; } .thumb > img, .thumb > .noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; background: #fff; aspect-ratio: auto; }
.thumb > .board { position: absolute; inset: 0; }
.cutout { border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; min-height: 240px; max-height: 420px;
  background: conic-gradient(#EEF0F4 25%, #fff 0 50%, #EEF0F4 0 75%, #fff 0) 0 0 / 20px 20px; }
.cutout img { max-width: 100%; max-height: 400px; display: block; padding: 12px; object-fit: contain; } .cutout.small { min-height: 180px; } .cutout.small img { max-height: 260px; }
.cutout .noimg { aspect-ratio: auto; padding: 3rem 1rem; }
.cutout.bad { border-color: #F3C9C5; } .cutout.bad img { opacity: .55; }
.verdict { border-radius: var(--r-md); padding: .8rem 1rem; margin: .7rem 0; font-size: .92rem; } .verdict p { margin: 0 0 .3rem; }
.verdict.fail { background: var(--danger-soft); color: #7A1F18; } .verdict.warn { background: var(--warn-soft); color: #5C3D00; }
.verdict ul { margin: 0; padding-left: 1.1rem; } .verdict li { margin: .45rem 0; } .verdict li span { display: block; font-size: .87rem; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.scheme-row { display: flex; flex-direction: column; gap: .3rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.sws { display: flex; flex-wrap: wrap; gap: .4rem .9rem; } .swl { display: inline-flex; flex-direction: column; } .swl small { color: var(--faint); font-size: .72rem; padding-left: 1.3rem; }

/* 화면이 바뀔 때 한 번, 살짝 올라온다 */
@keyframes rise { from { transform: translateY(10px); } }
.enter > * { animation: rise .3s ease-out both; }
.enter > :nth-child(2) { animation-delay: .04s; } .enter > :nth-child(3) { animation-delay: .08s; } .enter > :nth-child(n+4) { animation-delay: .12s; }

@media (max-width: 820px) {
  .studio, .split, .split.even { grid-template-columns: 1fr; }
  .stage-col { position: static; } .stage { max-height: 62vh; }
  .hero { margin: 1.2rem 0 1.8rem; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; } .lede { font-size: 1rem; }
  .upload .row button { flex: 1 1 auto; }
  .stats { gap: .6rem; } .stat { padding: .9rem; } .stat strong { font-size: 1.7rem; } .stat small { font-size: .74rem; }
  /* 모바일: 하단 탭 */
  .top { position: static; backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-bottom: 0; }
  nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; background: rgba(255, 255, 255, .94); border-top: 1px solid var(--line); justify-content: space-around; padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom)); }
  nav a { flex: 1; flex-direction: column; gap: .15rem; min-height: 52px; padding: .2rem; font-size: .7rem; border-radius: var(--r-sm); } nav a .ic { width: 22px; height: 22px; }
  nav a[aria-current] { background: none; }
  .filters { grid-template-columns: 1fr 1fr; } .filters input { grid-column: 1 / -1; }
  .schemes { grid-template-columns: repeat(3, minmax(130px, 1fr)); overflow-x: auto; }
  .sticky-actions { bottom: 64px; }
  .toast { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { *, .enter > * { animation: none !important; transition: none !important; } }

/* 로그인 */
.signed-out nav { display: none; }
.card.pad.login { max-width: 420px; margin: 12vh auto 0; display: flex; flex-direction: column; gap: .8rem; } .login h1 { margin: 0; } .login .hint:empty { display: none; } .login .hint[role="alert"] { color: #B42318; font-weight: 600; }

/* AI 착장 사진 */
.ai { margin-top: 1rem; } .ai h2 { display: flex; align-items: center; gap: .5rem; } .ai code { background: var(--soft); padding: .1rem .35rem; border-radius: 6px; }
.ai-person { width: 56px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.ai-result { margin: .6rem 0; } .ai-result img { width: 100%; border-radius: var(--r-md); display: block; }
.ai-result figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem; font-size: .82rem; color: var(--sub); padding-top: .5rem; }

/* 퍼스널컬러 드레이핑 */
.drape { position: relative; aspect-ratio: 4 / 5; max-height: 62vh; margin: 0 auto; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); transition: background .25s; }
.drape-top { position: absolute; inset: 0 0 52% 0; background: var(--soft); }
.drape-face { position: absolute; left: 50%; top: 9%; width: 62%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 8px 24px rgba(16, 24, 40, .18); }
.drape-face.none { display: grid; place-items: center; text-align: center; background: #fff; color: var(--faint); font-size: .85rem; font-weight: 600; }
.drape-name { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(255, 255, 255, .92); border-radius: 999px; padding: .3rem .9rem; font-size: .85rem; font-weight: 700; white-space: nowrap; }

/* 내 모델 */
.me-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-stage .me-stage { aspect-ratio: 3 / 4; }
.ai .row span { font-size: .9rem; font-weight: 600; }

/* 쇼룸: 자세 바꿔 보기. 자세 6개가 든 한 장(3x2)에서 한 칸만 보여 준다. 칸 사이 흰 줄이 보이지 않게 살짝 키운다 */
.sheet-view { width: 100%; aspect-ratio: 1; border-radius: var(--r-md); background-size: 306% 204%; background-repeat: no-repeat; }
.pose-tabs { display: flex; flex-wrap: wrap; margin-top: .6rem; } .pose-tabs button { flex: 1 1 auto; }
.ai-result img { transition: opacity .2s; }

/* 바로 입어보기 */
.wear-actions { margin: .6rem 0 .2rem; } .wear-actions .btn, .wear-actions button { flex: 1 1 auto; text-align: center; justify-content: center; }
.wear-wait { display: flex; align-items: center; gap: 1rem; padding: 2.2rem 1rem; justify-content: center; } .wear-wait p { margin: 0; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--brand-soft); border-top-color: var(--brand); animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.try-item { display: flex; gap: 1rem; align-items: center; } .try-item .thumb { flex: 0 0 84px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); } .try-item h2 { margin: 0 0 .2rem; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .6rem; margin-top: .7rem; }
.pick-item { display: flex; flex-direction: column; gap: .3rem; padding: .35rem; min-height: 0; border-radius: var(--r-md); font-size: .76rem; font-weight: 600; text-align: center; }
.pick-item img, .pick-item .noimg { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 10px; }
.pick-item[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.pick-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
@media (max-width: 820px) {
  .try .stage-col { order: -1; } .ai .big { width: 100%; }
  .display { font-size: clamp(2rem, 9vw, 2.6rem); } .hero-photo { aspect-ratio: 4 / 3; }
  main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* 룩북: 코디 여러 개를 한 장으로 만든 사진을 칸별로 잘라 보여 준다 */
.book { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0; }
.book-look { overflow: hidden; display: flex; flex-direction: column; }
.book-photo { width: 100%; background-repeat: no-repeat; background-color: #f3f3f1; }
.book-look .board { border-radius: 0; }
.book-look .body { padding: .85rem .95rem 1rem; } .book-look h3 { margin: 0 0 .3rem; font-size: 1rem; }
.book-look .row { margin: .55rem 0 0; } .book-look button { min-height: 40px; padding: .3rem .75rem; font-size: .85rem; }
@media (max-width: 520px) { .book { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } }

/* ---- 룩북: 따뜻한 진주빛 스튜디오, 세리프 번호, 먹색 버튼. 앱의 다른 화면(인디고)과 구분되는 화보 지면 ---- */
:root { --pearl: #E9E6E1; --paper: #F6F4F0; --ink-2: #2A2D2B; --rule: #DDD8CF; --serif: Georgia, "Times New Roman", serif; }
.cover { margin: .2rem 0 1.8rem; }
.cover-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .6rem 1.5rem; margin-bottom: .9rem; }
.kicker { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sub); margin: 0 0 .3rem; }
.cover-title { font-size: clamp(1.7rem, 5vw, 2.6rem); letter-spacing: -.045em; margin: 0; }
.occ { flex-wrap: nowrap; overflow-x: auto; margin: 0; padding: 2px; max-width: 100%; scrollbar-width: none; } .occ::-webkit-scrollbar { display: none; }
.occ button { flex: none; min-height: 40px; padding: .3rem .95rem; font-size: .9rem; background: transparent; border-color: var(--ink-2); color: var(--ink-2); }
.occ button:hover { background: var(--ink-2); color: #fff; }
.runway { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -1.25rem; padding: 0 1.25rem 6px; scroll-padding-inline: 1.25rem; scrollbar-width: none; } .runway::-webkit-scrollbar { display: none; }
.look { position: relative; flex: 0 0 84%; margin: 0; scroll-snap-align: start; background: var(--paper); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; }
.look-photo { display: block; width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; overflow: hidden; background: var(--pearl); cursor: zoom-in; }
.look-photo:hover { background: var(--pearl); } .look-photo:active { transform: none; }
.look-photo span { display: block; width: 100%; background-repeat: no-repeat; transition: transform .25s ease; }
.look-photo.zoomed { cursor: zoom-out; } .look-photo.zoomed span { transform: scale(2.8); }
.src-tag { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: .68rem; font-weight: 600; letter-spacing: .02em; color: #fff; background: rgba(32, 34, 32, .62); border-radius: 999px; padding: .22rem .6rem; pointer-events: none; }
.look-no { position: absolute; right: 12px; top: 9px; z-index: 2; font: italic 400 .95rem/1.4 var(--serif); letter-spacing: .06em; color: #45463F; pointer-events: none; }
.look figcaption { padding: .8rem .95rem 1rem; } .look figcaption strong { display: block; font-size: .95rem; line-height: 1.45; }
.look .row { margin: .6rem 0 0; gap: .4rem; } .look .row button { min-height: 40px; padding: .3rem .8rem; font-size: .85rem; }
.look button.primary, .fit button.primary, .shop button.primary { background: var(--ink-2); border-color: var(--ink-2); box-shadow: none; } .look button.primary:hover, .fit button.primary:hover, .shop button.primary:hover { background: #000; border-color: #000; }
.look .board { border-radius: 0; aspect-ratio: 3 / 4; width: 100%; height: auto; background: var(--pearl); }
.look-why { font-size: 1.05rem; font-weight: 600; line-height: 1.6; margin: 1rem 0 .3rem; padding-left: .9rem; border-left: 3px solid var(--ink-2); max-width: 46rem; }
.shop .drop { padding: 1.2rem 1rem; } .feature.wide { margin: 1rem 0; }
.noimg.drawn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; } .sketch { width: 78%; height: auto; }
.b-try { background: #EFEDE8; color: #55524B; }
/* 전후 비교 */
.fit { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.fit-stage { position: sticky; top: 80px; } .fit-side { display: grid; gap: 1rem; }
.ba { position: relative; overflow: hidden; border-radius: 20px; background: var(--pearl); border: 1px solid var(--rule); }
.ba:focus-within { outline: 3px solid rgba(42, 45, 43, .5); outline-offset: 2px; }
.ba-in { position: relative; transition: transform .3s ease; }
.ba-before { display: block; width: 100%; height: auto; background-repeat: no-repeat; }
.ba-after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; clip-path: inset(0 calc(100% - var(--cut)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--line); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .22); pointer-events: none; }
.ba-line::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink-2); display: grid; place-items: center; font-style: normal; font-weight: 700; box-shadow: 0 2px 10px rgba(0, 0, 0, .28); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba-tag { position: absolute; bottom: 10px; font-size: .72rem; font-weight: 600; color: #fff; background: rgba(32, 34, 32, .62); border-radius: 999px; padding: .22rem .6rem; pointer-events: none; } .ba-tag.l { left: 10px; } .ba-tag.r { right: 10px; }
.ba .overlay { display: flex; align-items: center; justify-content: center; gap: .6rem; } .ba .overlay .spin { width: 22px; height: 22px; border-width: 3px; }
.fit-zoom { margin: .7rem 0 .1rem; flex-wrap: wrap; }
.fit-orig figure { display: flex; gap: .9rem; align-items: center; margin: 0 0 .5rem; } .fit-orig img { width: 128px; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.pieces .buy-line { font-weight: 600; } a.pick-item { text-decoration: none; color: inherit; border: 1px solid var(--line); background: var(--card); align-items: center; }
@media (min-width: 821px) {
  .runway { margin: 0; padding: 0 0 6px; scroll-padding-inline: 0; } .runway:not(.many) { max-width: 860px; }
  .look { flex: 1 1 0; min-width: 0; } .runway.many .look { flex: 0 0 calc((100% - 24px) / 3); }
}
@media (max-width: 820px) { .fit { grid-template-columns: minmax(0, 1fr); } .fit-stage { position: static; } .cover-head { margin-bottom: .7rem; } }
/* 퍼스널컬러: 얼굴 바로 아래에 색 설명(왼쪽)과 볼 곳(오른쪽) */
.drape-notes { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .7rem 0; } .drape-notes p { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .6rem .75rem; font-size: .9rem; line-height: 1.5; }
.drape-notes b { display: block; font-size: .72rem; letter-spacing: .08em; color: var(--sub); margin-bottom: .15rem; }
.drape-flip { display: flex; justify-content: center; margin: .6rem 0 0; }

.pick-tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--ink-2); border-radius: 999px; padding: .15rem .6rem; margin-bottom: .35rem; }
.look-tip { font-size: .86rem; line-height: 1.5; color: var(--sub); margin: .35rem 0 0; } .look-tip b { color: var(--ink); font-weight: 700; margin-right: .2rem; }
.look .row button[aria-pressed="true"] { background: var(--ok-soft); border-color: var(--ok-soft); color: var(--ok); }

.ask-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin: 0 0 .9rem; padding: .7rem 1rem; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); color: var(--ink-2); text-decoration: none; }
.ask-bar span { color: var(--sub); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ask-bar strong { flex: none; display: inline-flex; align-items: center; gap: .3rem; font-size: .9rem; }
.ask textarea { width: 100%; min-height: 6.5rem; font: inherit; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--r-md); resize: vertical; }
.ask-picks { display: grid; gap: .7rem; margin: .8rem 0; padding: 0; list-style: none; counter-reset: pick; }
.ask-picks li { border: 1px solid var(--rule); background: var(--paper); border-radius: 14px; padding: .8rem 1rem; } .ask-picks li:first-child { border-color: var(--ink-2); }
.ask-picks h3 { margin: 0 0 .25rem; font-size: 1.02rem; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; } .ask-picks p { margin: .15rem 0; font-size: .92rem; }
.ask button.primary { background: var(--ink-2); border-color: var(--ink-2); box-shadow: none; }

/* ==== 4173(옷결)의 화보 지면을 가져옴: 따뜻한 종이색 바탕, 명조 제목, 밑줄 메뉴, 사진 옆 설명 패널 ==== */
:root { --eh-ink: #20211e; --eh-muted: #676864; --eh-iris: #49468c; --eh-rule: #deddd7; --myeongjo: "Nanum Myeongjo", AppleMyungjo, "Apple SD Gothic Neo", "Noto Serif CJK KR", serif; }
body { background: #fbfaf8; }
.top { background: #fbfaf8; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid #e7e4df; padding-block: 0; min-height: 64px; gap: clamp(1rem, 3vw, 3rem); }
.brand small { display: none; }
.header-add { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-size: .82rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.header-add:hover { background: var(--soft); }
main { max-width: 1320px; }
.cover { color: var(--eh-ink); }
.cover-head { align-items: baseline; margin-bottom: 0; }
.cover-title { font-family: var(--myeongjo); font-size: clamp(35px, 3.65vw, 61px); font-weight: 650; letter-spacing: -.082em; line-height: 1.14; }
.cover-head time { color: var(--eh-muted); font-size: 13px; font-weight: 580; white-space: nowrap; }
.filters-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0; border-top: 1px solid var(--eh-rule); padding-top: 13px; }
.occ { gap: 5px; } .occ button { border: 0; border-radius: 22px; background: transparent; min-height: 0; padding: 7px 13px; color: #64635e; font-weight: 580; font-size: 14px; letter-spacing: -.035em; }
.occ button:hover { background: #292a26; color: #fff; }
.ask-link { flex: none; display: inline-flex; align-items: center; gap: .3rem; font-size: 13px; font-weight: 650; color: var(--eh-iris); text-decoration: none; white-space: nowrap; }
.ask-bar { display: none; }
.spread { display: grid; grid-template-columns: minmax(0, 2.85fr) minmax(218px, 1fr); gap: clamp(21px, 2.65vw, 45px); align-items: start; color: var(--eh-ink); }
.deck { --gap: clamp(10px, 1.15vw, 18px); display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; min-width: 0; } .deck::-webkit-scrollbar { display: none; }
.take { flex: 0 0 calc((100% - var(--gap)) / 2); min-width: 0; margin: 0; scroll-snap-align: start; } .take:only-child { flex-basis: min(65%, 580px); }
.deck.many .take { flex-basis: calc((100% - 2 * var(--gap)) / 3); }
.take-photo { position: relative; border-radius: 5px; overflow: hidden; background: #e9e5df; }
.take .look-photo { cursor: pointer; background: #e9e5df; } .take .look-photo.zoomed { cursor: move; }
.take .src-tag { left: 12px; top: 12px; color: #42423e; background: #fcfaf5ed; border: 1px solid #ffffff70; font-size: 10.5px; font-weight: 640; padding: 5px 9px; }
.take .look-no { right: 12px; top: 12px; }
.take-zoom { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 34px; height: 34px; min-height: 0; padding: 0; display: grid; place-items: center; border: 1px solid #ffffff98; background: #faf9f2e8; color: #31312e; border-radius: 50%; }
.take-zoom:hover { background: #fff; } .take-zoom[aria-pressed="true"] { background: var(--eh-ink); color: #fff; }
.take figcaption { border-bottom: 2px solid transparent; padding: 12px 1px 11px; } .take.selected figcaption { border-color: var(--eh-iris); }
.take-title { display: block; width: 100%; min-height: 0; border: 0; padding: 2px 0; background: none; text-align: left; color: #292924; line-height: 1.3; letter-spacing: -.04em; font-size: clamp(15px, 1.35vw, 20px); font-weight: 680; overflow-wrap: anywhere; white-space: normal; }
.take-title:hover { background: none; } .take-title .pick-tag { margin: 0 .45rem .2rem 0; vertical-align: middle; background: var(--eh-iris); }
.details { align-self: stretch; padding: clamp(6px, 1.25vw, 20px) 0 11px; min-width: 0; }
.details .origin { font-size: 12px; font-weight: 640; color: var(--eh-iris); margin: 0; }
.details h2 { display: block; font-family: var(--myeongjo); font-weight: 650; line-height: 1.32; letter-spacing: -.06em; margin: 10px 0; font-size: clamp(24px, 2.2vw, 39px); overflow-wrap: anywhere; }
.details .reason { color: #575750; line-height: 1.6; font-size: 14px; letter-spacing: -.025em; margin: .2rem 0; }
.items-list { margin: clamp(17px, 2.2vw, 33px) 0 12px; padding: 0; list-style: none; border-top: 1px solid var(--eh-rule); }
.items-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--eh-rule); }
.items-list li > span { font-size: 12px; color: var(--eh-muted); flex: none; } .items-list li strong { font-size: 13px; font-weight: 620; text-align: right; overflow-wrap: anywhere; }
.details-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.details-actions button, .details-actions .btn { min-height: 42px; padding: .4rem .95rem; font-size: .88rem; border-radius: 10px; }
.details-actions .primary { flex: 1 1 100%; min-height: 48px; background: var(--eh-iris); border-color: var(--eh-iris); box-shadow: none; } .details-actions .primary:hover { background: #3a3775; border-color: #3a3775; }
.details-actions button[aria-pressed="true"] { background: var(--ok-soft); border-color: var(--ok-soft); color: var(--ok); }
.shop { border-radius: 8px; box-shadow: none; border: 1px solid var(--eh-rule); background: transparent; } .shop h2 { font-family: var(--myeongjo); font-size: 1.5rem; letter-spacing: -.06em; }
.shop .drop { background: transparent; border-color: #cfcdc4; } .shop button.primary { background: var(--eh-iris); border-color: var(--eh-iris); }
@media (min-width: 821px) {
  .top nav { margin-left: 0; gap: clamp(.4rem, 2vw, 2rem); align-self: stretch; } .top nav .ic { display: none; }
  .top nav a { position: relative; min-height: 64px; padding: 0 .2rem; border-radius: 0; background: none; font-size: 14px; letter-spacing: -.25px; }
  .top nav a:hover { background: none; color: var(--brand-ink); } .top nav a[aria-current] { background: none; color: var(--brand-ink); }
  .top nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand); border-radius: 3px 3px 0 0; }
  .header-add { margin-left: auto; }
}
@media (max-width: 820px) {
  .top { min-height: 0; padding-block: .55rem; border-bottom: 0; justify-content: space-between; }
  .spread { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .deck { margin: 0 -1.25rem; padding: 0 1.25rem; scroll-padding-inline: 1.25rem; } .take, .deck.many .take { flex-basis: 84%; }
  .filters-line { margin: 12px 0; flex-wrap: wrap; } .cover-title { font-size: clamp(30px, 9vw, 38px); }
  .details-actions .primary { flex-basis: 100%; }
}

/* ==== 나머지 화면도 4173(옷결)의 지면으로: 큰 제목과 가는 줄, 평평한 카드, 밑줄 탭, 테두리 없는 옷 타일 ==== */
#app > h1, #app > .head h1 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 800; letter-spacing: -.065em; line-height: 1.15; margin: .2rem 0 .5rem; }
#app > h1 + p.muted { font-size: 13px; margin: 0 0 1.6rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--eh-rule); }
#app > .head { align-items: flex-end; padding-bottom: 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--eh-rule); }
#app > p:first-child a { font-size: 13px; font-weight: 600; color: var(--eh-muted); text-decoration: none; } #app > p:first-child a:hover { color: var(--ink); }
.card { border-radius: 14px; border-color: #e7e4df; box-shadow: 0 1px 2px rgba(16, 24, 40, .03); }
.card h2 { letter-spacing: -.04em; }
button, .btn { border-radius: 10px; } button.big { border-radius: 12px; } .choices button, .choices .btn { border-radius: 999px; }
.tabs { background: none; border-radius: 0; padding: 0; gap: 1.7rem; margin: .2rem 0 1.2rem; border-bottom: 1px solid var(--eh-rule); }
.tabs button { flex: none; min-height: 0; padding: .7rem 0; border-radius: 0; font-size: .9rem; font-weight: 600; margin-bottom: -1px; border-bottom: 2px solid transparent; }
.tabs button:hover { background: none; color: var(--ink); } .tabs button[aria-selected="true"] { background: none; box-shadow: none; color: var(--ink); font-weight: 750; border-bottom-color: var(--ink); }
.filters input, .filters select { border-radius: 10px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.7rem 1.4rem; }
.cards .card.item, .cards .card.outfit { background: none; border: 0; border-bottom: 1px solid var(--eh-rule); border-radius: 0; box-shadow: none; padding-bottom: .9rem; }
.cards .card.item:hover, .cards .card.outfit:hover { transform: none; box-shadow: none; }
.cards .card.item .thumb, .cards .card.outfit .thumb { background: #f1eee9; border-radius: 6px; overflow: hidden; }
.cards .card.item .thumb > img { background: transparent; mix-blend-mode: multiply; padding: 9%; transition: transform .25s; } .cards .card.item:hover .thumb > img { transform: scale(1.04); }
.cards .card.item .thumb > .noimg { background: transparent; }
.cards .card.item .body, .cards .card.outfit .body { padding: .8rem 0 0; } .cards h3 { font-size: 1.05rem; letter-spacing: -.04em; }
.cards .card.outfit .thumb .board { background: #f1eee9; } .board { background: #f1eee9; } .bt { border-radius: 8px; border-color: #e7e4df; } .bt img { mix-blend-mode: multiply; }
.stage { border-radius: 8px; border-color: #e7e4df; box-shadow: none; background: #f1eee9; }
.stats .stat, .duo .feature, .feature.wide { border-radius: 10px; box-shadow: none; }
.note { background: #f3f1ec; } .seg { background: #f1eee9; }
.fit-orig img, .pick-item img { mix-blend-mode: multiply; background: #f1eee9; border-color: transparent; }
.ask-picks li, .look, .ba { border-radius: 8px; }
@media (max-width: 820px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem .8rem; } .tabs { gap: 1.1rem; overflow-x: auto; } .tabs button { white-space: nowrap; } }
.bt { background: transparent; border: 0; } .bt figcaption { color: var(--eh-muted); }

/* 관리자 */
.admin-list li { justify-content: space-between; border-bottom: 1px solid var(--eh-rule); padding: .6rem 0; } .admin-list .row, .admin-table .row { margin: 0; gap: .35rem; flex-wrap: wrap; }
.admin-table th[scope=row] { text-align: left; min-width: 9rem; } .admin-table input[type=number] { width: 5.5rem; min-height: 40px; padding: .2rem .5rem; }
.admin-table button, .admin-list button { min-height: 40px; padding: .25rem .7rem; font-size: .84rem; } .admin-table tr.off { opacity: .55; }
code.wrap { display: block; margin: .5rem 0; padding: .55rem .7rem; background: #fff; border: 1px solid var(--eh-rule); border-radius: 8px; overflow-wrap: anywhere; user-select: all; }

.sample-kind { margin: 0 0 .7rem; } .sample-kind button { min-height: 36px; font-size: .84rem; }

/* 주간 룩북 안내 */
.week-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1.2rem; margin: 0 0 1.1rem; padding: .9rem 1.1rem; border: 1px solid var(--eh-iris); border-radius: 10px; background: #f4f3fb; }
.week-cta strong { font-size: 1rem; } .week-cta p { margin: .15rem 0 0; font-size: .88rem; } .week-cta .row { margin: 0; gap: .5rem; flex-wrap: wrap; }
.week-cta select { min-height: 44px; border-radius: 10px; padding: 0 .7rem; } .week-cta .primary { background: var(--eh-iris); border-color: var(--eh-iris); box-shadow: none; min-height: 44px; }
.week-cta .chip { font-size: .84rem; }

/* 시작 화면: 사진 한 장 + 옷 고르기 → 첫 룩북 */
.start-flow { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1rem; }
.start-flow h2 { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 .6rem; } .start-flow h2 small { font-size: .85rem; font-weight: 500; }
.start-flow h3 { margin: 1rem 0 .4rem; font-size: .9rem; color: var(--sub); }
.start-flow .num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; font-weight: 700; background: var(--ink-2); color: #fff; flex: none; }
.start-flow li.done .num { background: var(--ok-soft); color: var(--ok); }
.start-me { display: flex; gap: 1rem; align-items: center; } .start-me img { width: 84px; height: 126px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.starter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; }
.starter { position: relative; flex-direction: column; gap: .2rem; padding: .35rem .35rem .5rem; min-height: 0; font-size: .82rem; font-weight: 600; line-height: 1.3; }
.starter img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #fff; }
.starter small { font-weight: 500; color: var(--faint); }
.starter[aria-pressed="true"] { border-color: var(--ink-2); background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-2); }
.starter[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-2); color: #fff; font-size: .8rem; }
.starter:disabled { opacity: .55; }
@media (max-width: 480px) { .starter-grid { grid-template-columns: repeat(3, 1fr); } .starter { font-size: .76rem; } }
.start-peek { margin: 1rem 0 0; } .start-peek img { display: block; width: 100%; max-width: 520px; border-radius: var(--r-md); border: 1px solid var(--line); } .start-peek figcaption { margin-top: .4rem; font-weight: 600; font-size: .9rem; }

/* ==== 통일(2026-11-17): 강조색 하나, 제목 글꼴 하나, 휴대폰에서의 정렬 ====
   강조색이 밝은 보라·남보라·검정 세 가지로 섞여 있던 것을 남보라 하나로, 화면 제목은 모두 명조로 맞춘다. */
:root { --brand: #49468c; --brand-ink: #3a3775; --brand-soft: #efeef7; --brand-2: #49468c; }
button.primary, .btn.primary, :is(.look, .fit, .shop, .ask, .week-cta, .details-actions) :is(button, .btn).primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: none; }
button.primary:hover, .btn.primary:hover, :is(.look, .fit, .shop, .ask, .week-cta, .details-actions) :is(button, .btn).primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px rgba(73, 70, 140, .14); }
.brand { font-family: var(--myeongjo); font-weight: 700; font-size: 1.4rem; letter-spacing: -.07em; } .brand i { display: none; }
#app > h1, #app > .head h1, .login h1 { font-family: var(--myeongjo); font-weight: 650; letter-spacing: -.075em; }
.start-flow .num, .pick-tag, .take-title .pick-tag { background: var(--brand); }
.starter[aria-pressed="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); } .starter[aria-pressed="true"]::after { background: var(--brand); }
.look-why { border-left-color: var(--brand); }
.signed-out .header-add { display: none; }
/* 코디 설명의 옷 목록: 종류와 이름을 왼쪽에 나란히(오른쪽 끝에 붙이면 줄마다 들쭉날쭉하다) */
.items-list li { justify-content: flex-start; gap: 14px; } .items-list li > span { width: 3.4rem; } .items-list li strong { text-align: left; font-size: 14px; }
.details .hint { margin: .5rem 0; font-size: .8rem; } .details .look-tip { margin: .6rem 0 0; padding: .7rem .85rem; background: #f3f1ec; border-radius: 10px; }
.chip:has(input[type=checkbox]) { border-radius: 14px; align-items: flex-start; line-height: 1.45; padding: .6rem .85rem; } .chip:has(input[type=checkbox]) input { flex: none; margin-top: .1rem; }

@media (max-width: 820px) {
  main { padding: 1rem 1.1rem 6.5rem; } section { margin: 1.3rem 0; }
  .header-add { padding: .4rem .7rem; font-size: .8rem; }
  nav a[aria-current] { color: var(--brand); background: none; } nav a { font-size: .72rem; }
  #app > h1, #app > .head h1 { font-size: 30px; }
  /* 상황 고르기: 테두리 있는 칩 한 줄, 그 아래 말로 물어보기 막대 */
  .filters-line { display: block; margin: 10px 0 12px; padding-top: 12px; }
  .occ { gap: 6px; margin: 0 -1.1rem; padding: 2px 1.1rem; max-width: none; }
  .occ button { border: 1px solid #d9d6cf; background: #fff; padding: 8px 14px; color: var(--eh-ink); }
  .ask-link { display: none; } .ask-bar { display: flex; margin: 0 0 12px; background: #fff; border-color: #d9d6cf; }
  .deck { margin: 0 -1.1rem; padding: 0 1.1rem; scroll-padding-inline: 1.1rem; }
  .take-title { font-size: 15px; }
  .details h2 { font-size: 24px; margin: 6px 0 8px; } .items-list { margin: 14px 0 10px; }
  /* 코디 아래 버튼: 큰 버튼 하나, 그 아래 같은 너비 세 개, 맨 아래 글자 링크 */
  .details-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .details-actions .primary, .details-actions a.btn { grid-column: 1 / -1; }
  .details-actions button, .details-actions .btn { padding: .4rem .3rem; font-size: .84rem; white-space: nowrap; }
  .details-actions [data-act="weekBook"] { grid-column: 1 / -1; min-height: 36px; border: 0; background: none; color: var(--eh-muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
  /* 칩과 단계 표시: 크기를 줄이고 줄바꿈이 고르게 */
  .choices { gap: 6px; } .choices button, .choices .btn { min-height: 38px; padding: .3rem .8rem; font-size: .86rem; }
  .steps { gap: 4px; font-size: .72rem; } .steps li { white-space: nowrap; padding: .45rem 0; letter-spacing: -.04em; }
  .card.pad, .pad { padding: 1.1rem 1.05rem; } .card h2 { font-size: 1.15rem; margin-top: 0; }
  .row > button.primary:only-child, .row > .btn.primary:only-child, .row > button.big, .card .row > label.btn.primary { flex: 1 1 100%; }
  .week-cta { padding: .9rem 1rem; } .week-cta .row { width: 100%; } .week-cta .row > * { flex: 1 1 auto; }
  .shop .drop .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .shop .drop button { padding: .5rem .4rem; font-size: .9rem; min-height: 48px; }
  .card.pad.login { margin-top: 6vh; }
  .hint { font-size: .82rem; line-height: 1.55; }
}
/* 체크박스가 든 안내 칩: 글과 덧붙임 말이 옆으로 갈라지지 않게 체크박스 오른쪽에 위아래로 쌓는다 */
.chip:has(input[type=checkbox]) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .55rem; } .chip:has(input[type=checkbox]) small { grid-column: 2; }
[hidden] { display: none !important; }
@media (max-width: 820px) {
  /* 카드 안 버튼 줄: 두 개면 반반, 주 버튼 혼자면 꽉 차게 */
  .card .row > :is(button, .btn, label.btn) { flex: 1 1 auto; }
  .tag { white-space: nowrap; }
}
/* 빈 화면 안내가 여섯 칸 중 한 칸에 끼여 세로로 길게 줄바꿈되던 것 */
.board.empty { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 820px) { .stage:has(.board.empty) { aspect-ratio: auto; min-height: 150px; } }

/* ==== 요즘 토스 같은 화면 문법(2026-11-17, 사용자 결정) ====
   "토스식" = 토스 앱의 디자인 스타일을 따르라는 뜻. 단, 파랑 하나만 쓰던 예전 토스가 아니라 요즘 토스:
   흰 바탕, 테두리·그림자 없는 옅은 회색 면, 크고 굵은 제목과 넉넉한 여백, 꽉 찬 둥근 버튼, 채운 회색 보조 버튼, 이모지 아이콘, 색은 필요한 곳에만.
   강조색은 토스 파랑이 아니라 이 앱의 인디고를 쓰고, 상태는 초록·주황 같은 보조색으로 구분한다.
   위쪽의 화보·통일 블록은 여기서 토큰으로 덮는다. 룩북 구성과 휴대폰 정렬은 그대로 쓴다. */
:root {
  --bg: #fff; --card: #F7F8FA; --ink: #191F28; --sub: #4E5968; --faint: #8B95A1; --soft: #F2F4F6; --line: #E5E8EB;
  --brand: #5046E5; --brand-2: #B14CF2; --brand-ink: #3A31C4; --brand-soft: #EEF0FF;
  --ink-2: #191F28; --paper: #F7F8FA; --pearl: #F2F4F6; --rule: #E5E8EB;
  --eh-ink: #191F28; --eh-muted: #6B7684; --eh-iris: #5046E5; --eh-rule: #E5E8EB;
  --myeongjo: var(--sans); --serif: var(--sans);
  --r-lg: 24px; --r-md: 18px; --r-sm: 14px; --shadow: none;
}
body { background: #fff; color: var(--ink); line-height: 1.55; }
.top { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 0; }
.brand { font-family: var(--sans); font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; } .brand i { display: inline-block; }
.header-add { border: 0; background: var(--soft); color: #333D4B; border-radius: 999px; font-weight: 700; } .header-add:hover { background: #E5E8EB; }
/* 제목: 크고 굵게, 줄 간격 넉넉히 */
#app > h1, #app > .head h1, .login h1, .cover-title, .details h2, .shop h2 { font-family: var(--sans); font-weight: 700; letter-spacing: -.03em; line-height: 1.3; }
.cover-title { font-size: clamp(28px, 3vw, 40px); } .details h2 { font-size: clamp(22px, 1.9vw, 30px); }
#app > h1 + p.muted { border-bottom: 0; padding-bottom: 0; margin-bottom: 1.4rem; font-size: 15px; color: var(--sub); } #app > .head { border-bottom: 0; padding-bottom: 0; }
.cover-head time { color: var(--faint); font-weight: 500; } .filters-line { border-top: 0; padding-top: 6px; }
.card h2 { font-weight: 700; letter-spacing: -.03em; } .muted { color: var(--sub); } .hint { color: var(--faint); }
/* 면: 테두리와 그림자 없이 옅은 회색 */
.card, .shop, .stats .stat, .duo .feature, .feature.wide { background: var(--card); border: 0; border-radius: 24px; box-shadow: none; }
.card.pad.login { background: #fff; } .shop .drop { background: #fff; border: 0; border-radius: 18px; }
.note, .details .look-tip, .seg, .stage, .board, .cards .card.item .thumb, .cards .card.outfit .thumb, .cards .card.outfit .thumb .board, .take-photo, .take .look-photo, .fit-orig img, .pick-item img { background-color: var(--soft); }
.note, .details .look-tip { border-radius: 16px; } .details .look-tip { background: #FFF7E6; color: #5C4A1E; } .details .look-tip b { color: #B7791F; }
.take-photo, .stage, .ba, .look, .ask-picks li { border-radius: 20px; border-color: transparent; } .cards .card.item .thumb, .cards .card.outfit .thumb { border-radius: 18px; }
.cards .card.item, .cards .card.outfit { border-bottom: 0; }
.ask-picks li { background: var(--card); border: 0; } .ask-picks li:first-child { background: var(--brand-soft); }
/* 버튼: 테두리 없이 채운 회색, 주 버튼은 인디고로 크고 둥글게 */
button, .btn { border-radius: 14px; border: 0; background: var(--soft); color: #333D4B; font-weight: 600; } button:hover, .btn:hover { background: #E5E8EB; }
button.big { border-radius: 16px; }
.card button:not(.primary):not(.link):not(.starter), .card .btn:not(.primary), .shop button:not(.primary) { background: #fff; }
button.primary, .btn.primary, :is(.look, .fit, .shop, .ask, .week-cta, .details-actions) :is(button, .btn).primary { background: var(--brand); color: #fff; box-shadow: none; border-radius: 16px; font-weight: 700; }
button.primary:hover, .btn.primary:hover, :is(.look, .fit, .shop, .ask, .week-cta, .details-actions) :is(button, .btn).primary:hover { background: var(--brand-ink); }
button.danger, .card button.danger:not(.primary) { background: #FFF0EF; color: #E5484D; }
button.link, .details-actions [data-act="weekBook"] { background: none; }
button[aria-pressed="true"], button[aria-selected="true"], .card button[aria-pressed="true"]:not(.primary):not(.starter) { background: var(--brand-soft); color: var(--brand-ink); }
.details-actions button[aria-pressed="true"], .look .row button[aria-pressed="true"] { background: var(--ok-soft); color: var(--ok); }
.details-actions button, .details-actions .btn { border-radius: 14px; } .details-actions .primary { min-height: 56px; font-size: 1.05rem; border-radius: 16px; }
.choices button, .choices .btn, .occ button { border-radius: 999px; }
.occ button { background: var(--soft); color: #333D4B; font-weight: 600; } .occ button:hover { background: var(--ink); color: #fff; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea { border-color: var(--line); border-radius: 14px; background: #fff; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(80, 70, 229, .14); }
.chip { background: #fff; border-color: var(--line); } .chip:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.tabs button, .tabs button:hover { background: none; border-radius: 0; border-bottom: 2px solid transparent; } .tabs button[aria-selected="true"] { border-bottom-color: var(--ink); background: none; color: var(--ink); }
.seg button, .seg button:hover { background: none; } .seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.take-title, .take-title:hover, .look-photo, .look-photo:hover { background-color: transparent; border-radius: 0; } .take .look-photo { background-color: var(--soft); }
/* 룩북 */
.take .src-tag { background: rgba(255, 255, 255, .92); color: var(--sub); border: 0; }
.look-no, .take .look-no { font: 700 .72rem/1 var(--sans); font-style: normal; letter-spacing: 0; color: #fff; background: rgba(25, 31, 40, .6); border-radius: 999px; padding: .38rem .6rem; }
.take-zoom, .take-zoom:hover { background: rgba(255, 255, 255, .92); color: #333D4B; border-radius: 50%; } .take-zoom[aria-pressed="true"] { background: var(--ink); color: #fff; }
.take-title { color: var(--ink); font-weight: 700; letter-spacing: -.02em; } .take.selected figcaption { border-color: var(--ink); }
.details .origin { color: var(--brand); font-weight: 700; } .details .reason { color: var(--sub); font-size: 15px; letter-spacing: -.01em; }
.items-list { border: 0; background: var(--card); border-radius: 18px; padding: 6px 18px; } .items-list li { border-bottom: 1px solid #ECEEF0; padding: 14px 0; } .items-list li:last-child { border-bottom: 0; }
.items-list li strong { font-size: 15px; font-weight: 600; }
.week-cta { border: 0; background: var(--brand-soft); border-radius: 20px; padding: 1.1rem 1.2rem; } .ask-bar { border: 0; background: var(--soft); border-radius: 16px; color: var(--ink); }
.ask-link { color: var(--brand); }
.tabs { border-bottom-color: var(--line); } .steps li { background: var(--soft); } .steps li[aria-current] { background: var(--ink); } .tag { background: var(--soft); color: var(--sub); }
.starter { background: #fff; box-shadow: none; border-radius: 16px; } .starter img { background: transparent; }
.card .starter[aria-pressed="true"], .starter[aria-pressed="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand-ink); } .starter[aria-pressed="true"]::after { background: var(--brand); }
.start-flow .num { background: var(--ink); } .pick-tag, .take-title .pick-tag { background: var(--brand); } .start-peek img { border: 0; border-radius: 20px; }
.cards .card.item .thumb > img, .bt img, .fit-orig img, .pick-item img { mix-blend-mode: normal; } .cards .card.item .thumb > img { padding: 0; }
.bt { background: #fff; border-radius: 14px; } .toast { border-radius: 16px; }
.occ button .em, .em { font-style: normal; margin-right: .3rem; }
@media (min-width: 821px) { .top { border-bottom: 1px solid var(--line); } .top nav a:hover, .top nav a[aria-current] { color: var(--ink); } .top nav a[aria-current]::after { background: var(--ink); height: 2px; } }
@media (max-width: 820px) {
  /* 상단 바에 흐림 효과를 주면 그 안의 고정 메뉴(휴대폰 아래 메뉴)가 상단 바 기준으로 붙는다. 휴대폰에서는 끈다. */
  .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; border-bottom: 0; }
  main { padding: 1rem 1.25rem 6.5rem; } section { margin: 1.5rem 0; }
  nav { background: rgba(255, 255, 255, .96); border-top-color: var(--line); } nav a, nav a:hover { color: var(--faint); background: none; } nav a[aria-current] { color: var(--ink); background: none; }
  .occ { margin: 0 -1.25rem; padding: 2px 1.25rem; } .occ button { padding: 10px 16px; font-size: 15px; } .deck { margin: 0 -1.25rem; padding: 0 1.25rem; scroll-padding-inline: 1.25rem; }
  .cover-title { font-size: 30px; } #app > h1, #app > .head h1 { font-size: 28px; } .details h2 { font-size: 24px; }
  .card.pad, .pad { padding: 1.3rem 1.2rem; } .card h2 { font-size: 1.2rem; }
  button.primary.big, .btn.primary.big, .row > button.primary:only-child { min-height: 56px; font-size: 1.05rem; }
}
@media (max-width: 820px) { .occ button { border: 0; background: var(--soft); color: #333D4B; } .ask-bar { border: 0; background: var(--soft); } }
/* 옷장·코디 목록의 카드는 바탕이 흰색이라, 그 안의 버튼은 회색으로 채워야 버튼으로 보인다 */
.cards .card.item button:not(.primary), .cards .card.outfit button:not(.primary), .cards .card .btn:not(.primary) { background: var(--soft); }

/* ==== 홈: 한 화면에 한 가지(오늘 입을 코디). 나머지는 목록 줄로 ==== */
.cover-title { line-height: 1.32; } .cover-head { align-items: flex-end; margin-bottom: 14px; }
.sec { font-size: 20px; font-weight: 700; letter-spacing: -.03em; margin: 0 0 4px; } .sec-sub { margin: 0 0 12px; font-size: 14px; color: var(--faint); }
.other .occ { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.card.menu { padding: 8px; display: grid; gap: 2px; }
.card.menu .menu-row, .menu-row { display: flex; align-items: center; justify-content: flex-start; gap: 14px; width: 100%; min-height: 68px; padding: 10px 12px; border: 0; border-radius: 16px; background: none; box-shadow: none; color: var(--ink); text-align: left; text-decoration: none; font-weight: 400; }
.card.menu .menu-row:hover { background: #ECEEF0; } .menu-row:active { transform: scale(.99); }
.menu-row .em { flex: none; width: 44px; height: 44px; margin: 0; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 22px; }
.menu-row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.menu-row strong { font-size: 16px; font-weight: 600; letter-spacing: -.02em; } .menu-row small { font-size: 13px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-row > .ic { flex: none; width: 18px; height: 18px; color: #B0B8C1; }
@media (max-width: 820px) {
  /* 코디 아래: 큰 버튼 하나, 나머지 동작은 목록 줄(누를 수 있는 한 줄 + 오른쪽 화살표) */
  .details-actions { display: flex; flex-direction: column; gap: 0; margin-top: 16px; }
  .details-actions .primary { margin-bottom: 6px; }
  .details-actions :is(button, .btn):not(.primary), .details-actions [data-act="weekBook"] { justify-content: space-between; min-height: 54px; padding: 0 4px; background: none; border-radius: 0; border-bottom: 1px solid #F2F4F6; font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: normal; text-align: left; }
  .details-actions :is(button, .btn):not(.primary):last-child { border-bottom: 0; }
  .details-actions :is(button, .btn):not(.primary)::after { content: "›"; color: #B0B8C1; font-size: 22px; line-height: 1; }
  .details-actions button[aria-pressed="true"] { background: none; }
  .details .hint { color: var(--faint); } .cover { margin-bottom: 8px; }
  .other .occ button { padding: 10px 14px; }
}
.cover-head { flex-direction: column-reverse; align-items: flex-start; gap: 4px; flex-wrap: nowrap; } .cover-head time { font-size: 14px; }
.card.menu button.menu-row:not(.primary):not(.link):not(.starter) { background: none; box-shadow: none; } .card.menu button.menu-row:not(.primary):not(.link):not(.starter):hover { background: #ECEEF0; }
@media (min-width: 821px) { .card.menu { max-width: 720px; } .other { max-width: 720px; } }

/* ==== 나머지 화면: 옷 추가·옷장·옷 상세·만드는 동안 ==== */
.cards .meta { margin: 0; font-size: 13px; color: var(--faint); } .cards h3 { font-size: 15px; font-weight: 600; margin: 0 0 2px; letter-spacing: -.02em; }
details.more, .card details { margin: 1rem 0 .4rem; } details > summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 15px; list-style: none; border-top: 1px solid var(--line); }
details > summary::-webkit-details-marker { display: none; } details > summary::after { content: "›"; font-size: 22px; color: #B0B8C1; transform: rotate(90deg); transition: transform .15s; } details[open] > summary::after { transform: rotate(-90deg); }
.wear-wait { flex-wrap: wrap; } .wait-bar { flex: 1 1 100%; height: 6px; margin-top: 14px; border-radius: 999px; background: #E5E8EB; overflow: hidden; }
.wait-bar i { display: block; height: 100%; width: 4%; border-radius: inherit; background: var(--brand); animation: wait-fill 45s cubic-bezier(.2, .7, .3, 1) forwards; } @keyframes wait-fill { to { width: 94%; } }
@media (prefers-reduced-motion: reduce) { .wait-bar i { animation: none; width: 60%; } }
#app > .head { align-items: center; } #app > .head .btn.primary { min-height: 44px; padding: .4rem 1rem; border-radius: 999px; font-size: .9rem; }
@media (max-width: 820px) { nav a { flex: 1; justify-content: center; } }
/* 옷장·옷 추가 화면에서는 위쪽의 '옷 추가'를 숨긴다(같은 버튼이 두 개 보이지 않게) */
body:has(#app > .head .btn.primary[href="#/add"]) .header-add, body:has(#names) .header-add { display: none; }
@media (max-width: 820px) { .card .details-actions :is(button, .btn):not(.primary):not(.link):not(.starter) { background: none; border-bottom-color: #E5E8EB; } .card .details-actions button.danger:not(.primary) { background: none; color: #E5484D; } }

/* 말로 물어보기의 예시: 잘린 칩 대신 한 줄씩 */
.ask-examples { display: grid; gap: 6px; margin: 0 0 14px; } .ask-examples button, .card .ask-examples button:not(.primary):not(.link):not(.starter) { justify-content: flex-start; text-align: left; min-height: 0; padding: 12px 14px; border-radius: 14px; background: #fff; font-weight: 500; font-size: 14px; line-height: 1.45; color: var(--sub); white-space: normal; }

/* ==== 넓은 화면(컴퓨터): 휴대폰 배치를 그대로 늘리지 않는다. 빈 곳 없이 옆으로 나눠 쓴다 ==== */
@media (min-width: 1000px) {
  main { max-width: 1240px; padding-top: 2rem; }
  /* 홈: 사진을 크게(두 장씩) 보여 설명 패널과 높이를 맞추고, 그 아래는 세 칸으로 나눈다 */
  body[data-route="home"] .spread { grid-template-columns: minmax(0, 2.2fr) minmax(300px, 1fr); gap: 40px; }
  body[data-route="home"] .deck.many .take, body[data-route="home"] .deck .take { flex-basis: calc((100% - var(--gap)) / 2); }
  .details-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .details-actions .primary, .details-actions a.btn { grid-column: 1 / -1; }
  .home-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; margin-top: 2rem; }
  .home-more > section { margin: 0; max-width: none; } .home-more .other { background: var(--card); border-radius: 24px; padding: 22px 20px; }
  .home-more .other .occ button { background: #fff; }
  .home-more:has(> section:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 설정: 카드를 두 줄로 */
  body[data-route="settings"] #app { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
  body[data-route="settings"] #app > h1 { grid-column: 1 / -1; margin-bottom: 0; } body[data-route="settings"] #app > section { margin: 0; }
  /* 옷 추가: 왼쪽에 사진, 오른쪽에 이름으로 추가 */
  body[data-route="add"] #app:has(#names) { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
  body[data-route="add"] #app:has(#names) > h1, body[data-route="add"] #app:has(#names) > p { grid-column: 1 / -1; margin-bottom: 0; }
  body[data-route="add"] #app:has(#names) > section, body[data-route="add"] #app:has(#names) > form { margin: 0; }
  /* 시작 화면: 왼쪽에 사진과 받기, 오른쪽에 옷 고르기 */
  .start-flow { grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; } .start-flow > li:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
  .start-peek { float: right; width: 300px; margin: -4.5rem 0 1rem 2rem; } .start-flow { clear: both; }
  .starter-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  /* 한 가지만 묻는 화면(물어보기·로그인)은 가운데 한 줄로 */
  body[data-route="ask"] #app { max-width: 720px; margin-inline: auto; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 20px; }
}

/* ==== 시작 설문과 미리 보기: 한 화면에 한 가지만 묻는다 ==== */
.survey, .peek { max-width: 560px; margin: 0 auto; padding-top: 4vh; }
.survey h1, .peek h1 { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.3; margin: 14px 0 8px; }
.survey-dots { display: flex; gap: 6px; margin: 0; } .survey-dots i { width: 28px; height: 4px; border-radius: 999px; background: #E5E8EB; } .survey-dots i.on { background: var(--brand); }
.survey-opts { display: grid; gap: 10px; margin: 28px 0 20px; } .survey-opts.two { grid-template-columns: 1fr 1fr; }
.survey-opt { justify-content: flex-start; gap: 14px; min-height: 76px; padding: 14px 18px; border-radius: 20px; background: var(--card); text-align: left; color: var(--ink); }
.survey-opt:hover { background: #ECEEF0; } .survey-opt .em { flex: none; width: 44px; height: 44px; margin: 0; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 22px; }
.survey-opt > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .survey-opt strong { font-size: 17px; font-weight: 600; letter-spacing: -.02em; } .survey-opt small { font-size: 13px; color: var(--faint); font-weight: 400; }
.survey-opt[aria-pressed="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand-ink); }
.survey-opts.two .survey-opt { min-height: 68px; padding: 12px 14px; gap: 10px; } .survey-opts.two .survey-opt .em { width: 38px; height: 38px; font-size: 19px; }
.survey .row > .primary, .peek .row > .primary { flex: 1 1 100%; min-height: 56px; }
.survey-skip { text-align: center; margin: 14px 0 0; } .survey-skip .link { color: var(--faint); font-weight: 500; font-size: 14px; text-decoration: none; }
.peek { max-width: 980px; } .peek-deck { margin-top: 20px; } .peek-deck .look-photo { cursor: default; } .peek .take-title { cursor: default; }
.peek .row, .peek .survey-skip, .peek > .hint { max-width: 560px; margin-inline: auto; } .peek > .hint { text-align: center; }
@media (min-width: 1000px) { .start-peek { display: none; } .survey, .peek { padding-top: 6vh; } .survey h1, .peek h1 { font-size: 36px; } }
@media (max-width: 820px) { .peek-deck { margin-inline: -1.25rem; padding: 0 1.25rem; } .survey-opts.two .survey-opt strong { font-size: 15px; } }

/* 관심 태그(여러 개 고르기) */
.tag-label { margin: 26px 0 10px; font-size: 14px; font-weight: 600; color: var(--faint); letter-spacing: -.01em; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { min-height: 46px; padding: 10px 16px; border-radius: 999px; background: var(--soft); color: #333D4B; font-size: 16px; font-weight: 600; letter-spacing: -.02em; transition: background .12s, color .12s, transform .12s; }
.topic .em { font-style: normal; margin-right: 6px; } .topic:hover { background: #E5E8EB; }
.topic[aria-pressed="true"] { background: var(--brand); color: #fff; box-shadow: none; } .topic[aria-pressed="true"]:hover { background: var(--brand-ink); }
.survey-cta { position: sticky; bottom: 0; margin-top: 28px; padding: 12px 0 8px; background: linear-gradient(to top, #fff 75%, rgba(255, 255, 255, 0)); }
.survey-cta .primary { width: 100%; min-height: 56px; }
@media (max-width: 820px) { .survey-cta { bottom: 64px; } }
/* 스플래시: 앱을 불러오는 동안에만 보이는 로고 화면(일부러 붙잡아 두지 않는다) */
.splash { min-height: 62vh; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; animation: splash-in .35s ease both; }
.splash i { width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg, #5046E5, #B14CF2); }
.splash strong { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; } .splash span { font-size: 14px; color: var(--faint); }
@keyframes splash-in { from { opacity: 0; transform: translateY(6px); } }
/* 태그 고르기와 미리 보기 동안에는 메뉴와 옷 추가를 숨겨 한 가지에 집중하게 한다 */
body:has(#app > .survey) nav, body:has(#app > .peek) nav, body:has(#app > .survey) .header-add, body:has(#app > .peek) .header-add { display: none; }
@media (max-width: 820px) { body:has(#app > .survey) .survey-cta { bottom: 0; } }

/* ==== 전용 아이콘: 이모지 대신 같은 굵기의 선 아이콘. 목록 줄에는 옅은 색 타일에 담는다 ==== */
.tile, .menu-row .em.tile, .survey-opt .em.tile { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: 0; border-radius: 14px; font-style: normal; }
.tile .ic { width: 22px; height: 22px; stroke-width: 1.9; }
.t-indigo { background: #EEF0FF; color: #5046E5; } .t-pink { background: #FFEFF4; color: #E0457B; } .t-orange { background: #FFF3E6; color: #E8772E; }
.t-blue { background: #E8F3FF; color: #2F7DE1; } .t-green { background: #E6F7EE; color: #12915B; } .t-teal { background: #E4F6F6; color: #0E8F96; } .t-purple { background: #F4ECFF; color: #8B46D9; }
.occ button .ic, .topic .ic { width: 18px; height: 18px; margin-right: 6px; stroke-width: 1.9; color: var(--faint); }
.occ button:hover .ic, .topic[aria-pressed="true"] .ic { color: currentColor; }

/* 미리 보기: 고른 상황마다 다른 예시(탭), 세로형 칸은 휴대폰에서 한 장이 화면에 다 들어오게 */
.peek-tabs { margin: 16px 0 0; } .peek-tabs button { min-height: 40px; padding: 8px 14px; } .peek-tabs button .ic { width: 16px; height: 16px; margin-right: 5px; }
.peek-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; } .peek-tabs button[aria-pressed="true"] .ic { color: #fff; }
@media (max-width: 820px) { .peek-deck .take { flex-basis: 72%; } }

/* 한 번 더 눌러야 실행되는 버튼(삭제 같은 되돌릴 수 없는 동작) */
button.sure, .card button.sure:not(.primary) { background: #E5484D; color: #fff; box-shadow: none; }
/* 위의 카드 안 버튼 규칙(흰 배경)이 더 세서 빨간 배경이 지워지고 흰 글자만 남았다. 확인 상태는 어디서든 빨간 바탕에 흰 글자로 보이게 한다. */
button.sure, .card button.sure, .card .details-actions button.sure { background: #E5484D !important; color: #fff !important; box-shadow: none !important; border-color: transparent !important; }

/* ==== 날씨와 요금제 ==== */
.wx-line { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 14px; font-weight: 600; color: #2F7DE1; } .wx-line .ic { width: 18px; height: 18px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.plan { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: #fff; } .plan.on { box-shadow: inset 0 0 0 2px var(--brand); }
.plan > strong { font-size: 16px; } .plan-price { font-size: 20px; font-weight: 700; letter-spacing: -.03em; } .plan button, .plan .tag { margin-top: 8px; align-self: flex-start; } .plan button { min-height: 40px; }
.card .plan button:not(.primary) { background: var(--soft); }
.tag.ask { background: #FFF3E6; color: #B7791F; font-weight: 700; }
.admin-table select { min-height: 40px; width: auto; padding: 0 .5rem; }

/* ==== 오늘 입은 옷 찍기 ==== */
label.menu-row { cursor: pointer; }
.selfie-part { margin-bottom: 12px; } .selfie-part .starter img { object-fit: contain; }
.selfie-skip { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 8px; background: #fff; color: var(--faint); }
