/* v336 취향 설정 창 — 내용은 그대로, 정렬·디자인 재정비 */
.tz336-scrim{--tz-v:#4b2f86;--tz-v2:#6b4bb0;--tz-pink:#e48db5;--tz-ink:#1f1a26;--tz-mute:#7a7286;--tz-line:#ece7f2;--tz-soft:#f7f3fb;background:rgba(26,18,38,.48)!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex!important;align-items:center!important;justify-content:center!important;padding:20px!important}
.tz336-scrim .sheet.tz336{width:min(960px,100%)!important;max-width:none!important;height:min(680px,100%)!important;max-height:none!important;padding:0!important;border:0!important;border-radius:28px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 40px 90px -30px rgba(30,16,60,.5)!important;animation:tzPop .4s cubic-bezier(.22,.8,.2,1) both}
@keyframes tzPop{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
.tz336 .taste-layout{display:grid!important;grid-template-columns:320px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;height:100%!important;min-height:0!important}

/* ── 왼쪽: 브랜드 · 진행 (가운데 정렬) ── */
.tz336 .taste-brand{position:relative;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;min-height:0;padding:44px 32px 36px!important;text-align:center!important;background:#fff!important;border-right:1px solid var(--tz-line)!important;overflow:hidden}
.tz336 .taste-lockup{display:block!important;width:170px!important;height:auto!important;margin:0 auto!important}
.tz336 .taste-signature{display:flex!important;flex-direction:column!important;align-items:center!important;gap:22px!important;margin:0!important;width:100%}
.tz336 .taste-progress{width:132px!important;height:auto!important;margin:0 auto!important}
.tz336 .taste-progress svg{display:block;width:100%!important;height:auto!important;overflow:visible}
.tz336 .taste-leaf{transition:opacity .45s ease}
.tz336 .taste-brand-copy{display:flex!important;flex-direction:column!important;align-items:center!important;gap:12px!important;text-align:center!important}
.tz336 .taste-brand-copy p{margin:0!important;font-size:21px!important;font-weight:700!important;line-height:1.4!important;letter-spacing:-.045em!important;color:var(--tz-ink)!important;text-align:center!important}
.tz336 .taste-brand-copy span{display:inline-flex!important;align-items:center;justify-content:center;min-width:56px;height:28px;margin:0!important;padding:0 12px!important;border-radius:999px!important;background:#fff!important;box-shadow:0 0 0 1px var(--tz-line);font-size:12px!important;font-weight:700!important;letter-spacing:.08em!important;color:var(--tz-v)!important}
.tz336 .taste-brand-note{margin:0!important;font-size:12px!important;line-height:1.6!important;color:var(--tz-mute)!important;text-align:center!important}

/* ── 오른쪽: 머리 · 본문 · 버튼 ── */
.tz336 .taste-form{display:grid!important;grid-template-rows:68px minmax(0,1fr) auto!important;min-height:0!important;height:100%!important;padding:0!important;background:#fff!important}
.tz336 .taste-top{position:static!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;height:68px!important;min-height:0!important;margin:0!important;padding:0 24px 0 40px!important;border-bottom:1px solid var(--tz-line)!important;background:#fff!important}
.tz336 .tz-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;width:200px}
.tz336 .tz-steps i{position:relative;display:block;height:4px;border-radius:99px;background:var(--tz-line);overflow:hidden}
.tz336 .tz-steps i::after{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--tz-v);transform:scaleX(0);transform-origin:left;transition:transform .45s cubic-bezier(.22,.8,.2,1)}
.tz336 .tz-steps i.is-done::after{transform:scaleX(1)}
.tz336 .tz-steps i.is-now:not(.is-done)::after{transform:scaleX(.4);background:var(--tz-pink)}
.tz336 .taste-close{position:static!important;display:grid!important;place-items:center!important;flex:none;width:38px!important;height:38px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:var(--tz-soft)!important;color:var(--tz-ink)!important;font-size:22px!important;line-height:1!important;cursor:pointer;transition:background-color .2s}
.tz336 .taste-close:hover{background:#efe8f7!important}
.tz336 .taste-panel-scroll{min-height:0!important;overflow-y:auto!important;padding:28px 40px 28px!important;scrollbar-gutter:stable both-edges;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d9d0e6 transparent}
.tz336 .taste-panel{padding:0!important;margin:0!important}
.tz336 .taste-panel.is-arriving{animation:tzIn .4s cubic-bezier(.22,.8,.2,1) both}
@keyframes tzIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.tz336 .taste-step-meta{display:flex!important;align-items:center!important;justify-content:space-between!important;margin:0 0 10px!important}
.tz336 .taste-step-meta span{font-size:11px!important;font-weight:800!important;letter-spacing:.2em!important;color:var(--tz-v)!important}
.tz336 .taste-step-meta small{font-size:12px!important;font-weight:600!important;color:var(--tz-mute)!important}
.tz336 .taste-panel h2{margin:0!important;font-size:27px!important;font-weight:700!important;line-height:1.3!important;letter-spacing:-.045em!important;color:var(--tz-ink)!important;outline:none}
.tz336 .taste-hint{margin:8px 0 24px!important;font-size:14px!important;line-height:1.55!important;color:var(--tz-mute)!important}

/* 선택 카드 */
.tz336 .taste-choices{display:grid!important;gap:12px!important;margin:0!important;padding:0!important;border:0!important;min-width:0}
.tz336 .taste-option{position:relative;display:block!important;margin:0!important;cursor:pointer}
.tz336 .taste-option input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;pointer-events:none}
.tz336 .taste-option>span{position:relative;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:6px!important;height:100%;min-height:68px!important;padding:18px 56px 18px 20px!important;border:1.5px solid var(--tz-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 1px 2px rgba(31,26,38,.04)!important;transition:border-color .18s,background-color .18s,box-shadow .2s,transform .15s}
.tz336 .taste-option:hover>span{border-color:#d6c9e8!important;box-shadow:0 10px 24px -18px rgba(75,47,134,.55)!important}
.tz336 .taste-option:active>span{transform:scale(.985)}
.tz336 .taste-option b{font-size:16px!important;font-weight:700!important;letter-spacing:-.03em!important;color:var(--tz-ink)!important}
.tz336 .taste-option small{font-size:12.5px!important;line-height:1.5!important;color:var(--tz-mute)!important}
.tz336 .taste-option i{position:absolute!important;right:18px!important;top:50%!important;width:24px!important;height:24px!important;margin:-12px 0 0!important;border:1.5px solid #d6cde3!important;border-radius:50%!important;background:#fff!important;transition:all .18s}
.tz336 .taste-option input:checked+span{border-color:var(--tz-v)!important;background:var(--tz-soft)!important;box-shadow:0 12px 26px -18px rgba(75,47,134,.7)!important}
.tz336 .taste-option input:checked+span i{border-color:var(--tz-v)!important;background:var(--tz-v) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8.5'/%3E%3C/svg%3E") center/14px no-repeat!important}
.tz336 .taste-option input:focus-visible+span{outline:2px solid var(--tz-v);outline-offset:2px}

/* 1단계: 사진 카드 (사진·글·체크 모두 같은 안쪽 여백) */
.tz336 .taste-gender-choices{grid-template-columns:1fr 1fr!important}
.tz336 .taste-option.tz-photo>span{justify-content:flex-start!important;gap:0!important;padding:12px 12px 18px!important}
.tz336 .tz-pic{display:block;aspect-ratio:4/5;margin:0 0 14px;border-radius:12px;overflow:hidden;background:var(--tz-soft)}
.tz336 .tz-pic img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.22,.7,.12,1)}
.tz336 .taste-option.tz-photo:hover .tz-pic img{transform:scale(1.03)}
.tz336 .taste-option.tz-photo b{display:block;padding:0 6px;text-align:center}
.tz336 .taste-option.tz-photo small{display:block;margin-top:5px;padding:0 6px;text-align:center}
.tz336 .taste-option.tz-photo i{top:24px!important;right:24px!important;margin:0!important;border-color:#fff!important;box-shadow:0 2px 8px rgba(0,0,0,.2)}

/* 2단계: 연령대 */
.tz336 .taste-age-choices{grid-template-columns:repeat(3,1fr)!important}
.tz336 .taste-age-choices .taste-option>span{align-items:center!important;justify-content:center!important;min-height:64px!important;padding:14px 10px!important;text-align:center}
.tz336 .taste-age-choices .taste-option i{display:none!important}
.tz336 .taste-age-choices .taste-option input:checked+span{background:var(--tz-v)!important}
.tz336 .taste-age-choices .taste-option input:checked+span b{color:#fff!important}

/* 3단계: 옷장 (좌우 여백 대칭) */
.tz336 .wardrobe-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;margin:-8px 0 16px!important}
.tz336 .wardrobe-toolbar [data-wardrobe-count]{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:999px;background:var(--tz-soft);font-size:12.5px;font-weight:700;color:var(--tz-v)}
.tz336 .wardrobe-toolbar .link{border:0;background:none;padding:6px 0;font:inherit;font-size:13px!important;font-weight:600;color:var(--tz-ink)!important;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.tz336 .wardrobe-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px 12px!important;margin:0!important;padding:0!important}
.tz336 .wardrobe-choice{position:relative;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;margin:0!important;min-width:0;cursor:pointer}
.tz336 .wardrobe-choice input{position:absolute!important;opacity:0!important;pointer-events:none}
.tz336 .wardrobe-visual{position:relative;display:block!important;width:100%!important;aspect-ratio:3/4!important;height:auto!important;margin:0!important;border:0!important;border-radius:14px!important;overflow:hidden!important;background:var(--tz-soft)!important;box-shadow:inset 0 0 0 1px var(--tz-line)!important;transition:box-shadow .18s}
.tz336 .wardrobe-visual .wardrobe-image{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;object-fit:cover!important;transition:transform .5s cubic-bezier(.22,.7,.12,1)}
.tz336 .wardrobe-choice:hover .wardrobe-image{transform:scale(1.035)}
.tz336 .wardrobe-visual i{position:absolute!important;right:8px!important;top:8px!important;left:auto!important;display:grid!important;place-items:center!important;width:24px!important;height:24px!important;margin:0!important;border-radius:50%!important;background:rgba(255,255,255,.95)!important;box-shadow:0 1px 6px rgba(0,0,0,.18)!important;color:transparent!important;font-size:12px!important;font-style:normal!important;font-weight:800!important;line-height:1!important;transition:all .18s}
.tz336 .wardrobe-choice input:checked+.wardrobe-visual{box-shadow:inset 0 0 0 2.5px var(--tz-v),0 12px 24px -18px rgba(75,47,134,.8)!important}
.tz336 .wardrobe-choice input:checked+.wardrobe-visual i{background:var(--tz-v)!important;color:#fff!important}
.tz336 .wardrobe-choice input:focus-visible+.wardrobe-visual{outline:2px solid var(--tz-v);outline-offset:2px}
.tz336 .wardrobe-name{display:block!important;margin:0!important;font-size:13px!important;font-weight:600!important;line-height:1.35!important;color:var(--tz-ink)!important;text-align:center!important;letter-spacing:-.02em}
.tz336 .wardrobe-name small{display:block;margin-top:2px;font-size:11px;font-weight:500;color:var(--tz-mute)}
.tz336 .onboard-photo-note{display:block;margin:20px 0 0!important;font-size:11.5px!important;color:#a39cae!important;text-align:center!important}

/* 4단계 */
.tz336 .taste-realm-choices .taste-option>span{min-height:92px!important;padding:20px 60px 20px 22px!important}
.tz336 .taste-privacy{margin:18px 0 0!important;font-size:12px!important;color:#a39cae!important;text-align:center!important}

/* 버튼 */
.tz336 .taste-footer{display:flex!important;flex-direction:column!important;gap:8px;margin:0!important;padding:16px 40px 22px!important;border-top:1px solid var(--tz-line)!important;background:#fff!important;position:static!important}
.tz336 .taste-footer[hidden]{display:none!important}
.tz336 .taste-footer .err{margin:0!important;font-size:12.5px!important;text-align:right}
.tz336 .taste-footer .err:empty{display:none}
.tz336 .taste-actions{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
.tz336 .taste-back{display:inline-flex!important;align-items:center;height:48px;border:0!important;background:none!important;padding:0 6px!important;font:inherit!important;font-size:14px!important;font-weight:600!important;color:var(--tz-mute)!important;cursor:pointer}
.tz336 .taste-back[hidden]{display:none!important}
.tz336 .taste-next{display:inline-flex!important;align-items:center;justify-content:center;min-width:200px!important;height:54px!important;margin:0 0 0 auto!important;padding:0 28px!important;border:0!important;border-radius:16px!important;background:var(--tz-v)!important;color:#fff!important;font:inherit!important;font-size:15.5px!important;font-weight:700!important;letter-spacing:-.02em!important;box-shadow:0 14px 26px -16px rgba(75,47,134,.9)!important;cursor:pointer;transition:transform .15s,background-color .2s}
.tz336 .taste-next:hover{background:#3d2570!important}
.tz336 .taste-next:active{transform:scale(.98)}
.tz336 .taste-next[hidden]{display:none!important}
.tz336-scrim.taste-saved .taste-next{letter-spacing:.2em!important}

/* ── 모바일: 아래에서 올라오는 시트 ── */
@media (max-width:760px){
 .tz336-scrim{align-items:flex-end!important;padding:0!important}
 .tz336-scrim .sheet.tz336{width:100%!important;height:94%!important;border-radius:24px 24px 0 0!important;animation:tzUp .42s cubic-bezier(.22,.8,.2,1) both}
 @keyframes tzUp{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
 .tz336 .taste-layout{grid-template-columns:1fr!important;grid-template-rows:auto minmax(0,1fr)!important}
 .tz336 .taste-brand{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:0!important;padding:16px 20px!important;border-right:0!important;border-bottom:1px solid var(--tz-line)!important;text-align:left!important}
 .tz336 .taste-lockup,.tz336 .taste-brand-note{display:none!important}
 .tz336 .taste-signature{flex-direction:row!important;align-items:center!important;gap:12px!important}
 .tz336 .taste-progress{width:40px!important;margin:0!important;flex:none}
 .tz336 .taste-brand-copy{flex-direction:row!important;align-items:center!important;justify-content:space-between!important;flex:1;gap:10px!important;min-width:0}
 .tz336 .taste-brand-copy p{display:block!important;flex:1;min-width:0;font-size:15px!important;line-height:1.3!important;text-align:left!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .tz336 .taste-brand-copy p br{display:none}
 .tz336 .taste-form{grid-template-rows:56px minmax(0,1fr) auto!important}
 .tz336 .taste-top{height:56px!important;padding:0 16px 0 20px!important}
 .tz336 .tz-steps{flex:1;width:auto;max-width:none}
 .tz336 .taste-close{width:34px!important;height:34px!important}
 .tz336 .taste-panel-scroll{padding:20px 20px 24px!important;scrollbar-gutter:auto}
 .tz336 .taste-panel h2{font-size:22px!important}
 .tz336 .taste-hint{margin:6px 0 20px!important;font-size:13.5px!important}
 .tz336 .taste-gender-choices{gap:10px!important}
 .tz336 .taste-option.tz-photo>span{padding:10px 10px 16px!important}
 .tz336 .taste-option.tz-photo i{top:20px!important;right:20px!important}
 .tz336 .taste-age-choices{grid-template-columns:repeat(2,1fr)!important;gap:10px!important}
 .tz336 .wardrobe-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px 10px!important}
 .tz336 .taste-footer{padding:12px 20px calc(14px + env(safe-area-inset-bottom,0px))!important}
 .tz336 .taste-next{flex:1;min-width:0!important}
}
@media (max-width:359px){.tz336 .taste-option.tz-photo small{display:none!important}.tz336 .wardrobe-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (prefers-reduced-motion:reduce){.tz336 .taste-panel.is-arriving,.tz336-scrim .sheet.tz336{animation:none}}
.tz336 .taste-option small{word-break:keep-all;text-wrap:balance}
.tz336 .taste-option.tz-photo small{max-width:none!important;width:auto!important;margin-left:0!important;margin-right:0!important}
/* v346 창 높이를 내용에 맞춤 — 하단 빈 공간 제거 */
.tz336-scrim .sheet.tz336{display:flex!important;flex-direction:column!important;height:auto!important;min-height:min(540px,100%)!important;max-height:min(680px,100%)!important}
.tz336 .taste-layout{flex:1 1 auto!important;height:auto!important;min-height:0!important}
.tz336 .taste-form{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important}
.tz336 .taste-top{flex:none!important}
.tz336 .taste-panel-scroll{flex:1 1 auto!important;min-height:0!important}
.tz336 .taste-footer{flex:none!important}
@media (max-width:760px){
 .tz336-scrim .sheet.tz336{height:auto!important;min-height:0!important;max-height:94%!important}
}
