/* v5(토스형) 화면별 규칙: 나 · 가입 · 시작 · 알림 · 입혀 보기 등 나머지. 색·크기 토큰과 공통 부품(.say, .cta-dock, .stat)은 style.css. style.css · nav.css 뒤에 읽는다. */

/* ---------- 나(#/settings): 묶음 = 흰 카드, 줄마다 색 아이콘 칩 ---------- */
.set-group { margin: 0 0 24px; }
.set-cap { padding: 0 4px 10px; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.set-cap .tag { margin-left: 6px; }
.set-list { border-radius: var(--r-xl); padding: 4px 16px; }
.set-list > li, .set-list > li.set-row { border-bottom-color: var(--line); }
.set-list :is(.set-row, .privacy-link) { min-height: 60px; font-size: 16px; }
.set-label small { color: var(--quiet); }
.set-wrap:has(> .me-card) .set-label { min-width: 5em; } .set-wrap:has(> .me-card) .set-value { min-width: 0; } /* 칩이 자리를 먹어 'AI 사용액'이 값에 눌려 겹쳤다 */
.set-note { color: var(--sub); font-size: 13px; }

/* 스위치: 흑백 테두리 대신 회색 바탕 + 흰 손잡이(토스) */
.set-switch input[type=checkbox] { width: 52px; height: 32px; border: 0; background: var(--line-2); }
.set-switch input[type=checkbox]::before { top: 3px; left: 3px; width: 26px; height: 26px; background: #fff; box-shadow: 0 2px 6px rgba(25, 31, 40, .22); }
.set-switch input[type=checkbox]:checked::before { transform: translateX(20px); }
.set-switch input[type=checkbox]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* 내 모델 카드: 사진 크게, '모델 바꾸기'는 회색 알약 */
.set-wrap .me-card { gap: 18px; padding: 18px; margin-bottom: 28px; border-radius: var(--r-xl); background: var(--card); }
.set-wrap .me-face { width: 104px; height: 136px; border-radius: 18px; }
.set-wrap .me-card strong { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.set-wrap .me-card p { margin: 4px 0 12px; font-size: 14px; line-height: 1.5; color: var(--sub); }
.set-wrap .me-card .btn:not(.primary) { min-height: 44px; padding: 0 18px; border-radius: 14px; background: var(--soft); font-size: 15px; }

/* 아이콘 칩: 설정 첫 화면(.me-card 가 있는 화면)의 줄에만. 아이콘은 흰 선 SVG, 바탕색은 줄마다 */
.set-wrap:has(> .me-card) .set-list > li > :is(.set-row, .privacy-link)::before {
  content: ''; flex: none; width: 34px; height: 34px; border-radius: 11px;
  background: var(--ico, url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'><circle cx='12' cy='12' r='3'/></svg>")) center / 20px no-repeat, var(--chip, #8B95A1);
}
.set-wrap .set-row[data-id="pc-sheet"] { --chip: #DB2777; --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21a9 9 0 1 1 9-9c0 2-1.5 3-3 3h-2a2 2 0 0 0-1.5 3.3A1.6 1.6 0 0 1 12 21z'/><circle cx='7.5' cy='11' r='1'/><circle cx='11' cy='7' r='1'/><circle cx='16' cy='8.5' r='1'/></svg>"); }
.set-wrap .set-row[data-id="city-sheet"] { --chip: #2563EB; --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/><circle cx='12' cy='9.5' r='2.5'/></svg>"); }
.set-wrap .set-row[href="#/settings/taste"] { --chip: #7C3AED; --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'><path d='M12 3l2 5.5 5.5 2-5.5 2L12 18l-2-5.5-5.5-2 5.5-2z'/></svg>"); }
.set-wrap .set-row[href="#/settings/plan"] { --chip: #D97706; --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'><rect x='3' y='6' width='18' height='13' rx='3'/><path d='M3 10h18M7 15h4'/></svg>"); }
.set-wrap .set-switch:has([data-on="ownedOnly"]) { --chip: #0D9488; --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'><path d='M8 4 4 7l2 3 2-1v11h8V9l2 1 2-3-4-3c-.5 1.5-2 2.5-4 2.5S8.5 5.5 8 4z'/></svg>"); }
.set-wrap .set-switch:has([data-on="weeklyAuto"]) { --chip: #EA580C; --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'><rect x='4' y='5' width='16' height='15' rx='3'/><path d='M4 10h16M9 3v4M15 3v4'/></svg>"); }
.set-wrap .set-switch:has([data-on="aiConsent"]) { --chip: #4F46E5; --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l7 3v5c0 4.5-3 8-7 10-4-2-7-5.5-7-10V6z'/><path d='M9 12l2 2 4-4'/></svg>"); }
.set-wrap .set-switch:has([data-on="failNext"]) { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 3h6M10 3v6l-5 10h14L14 9V3'/></svg>"); }
.set-wrap .privacy-link { --chip: #16A34A; --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='6' width='18' height='14' rx='3'/><circle cx='12' cy='13' r='3.5'/><path d='M9 6l1.5-2h3L15 6'/></svg>"); }
.set-wrap .set-row[data-act="deleteImages"] { --chip: #E5484D; --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='3'/><circle cx='9' cy='10' r='1.5'/><path d='M21 16l-5-5-8 8'/></svg>"); }
.set-wrap .set-row:is([data-act="deleteAll"], [data-id="leave-sheet"], [data-act="emailRemove"]) { --chip: #E5484D; --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/></svg>"); }
.set-wrap .set-row[href="/terms"] { --chip: #6B7684; --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7 3h7l5 5v13H7z'/><path d='M14 3v5h5M10 13h6M10 17h6'/></svg>"); }
.set-wrap .set-row[href="/privacy"] { --chip: #4E5968; --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'><rect x='5' y='11' width='14' height='10' rx='2'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>"); }
.set-wrap .set-row[data-id="pw-sheet"] { --chip: #0891B2; --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'><circle cx='8' cy='15' r='4'/><path d='M11 12l9-9M16 7l3 3'/></svg>"); }
.set-wrap .set-row[data-act="pushToggle"] { --chip: #F43F5E; --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 16v-5a6 6 0 0 1 12 0v5l2 2H4z'/><path d='M10 21h4'/></svg>"); }
.set-wrap .set-row[data-act="logout"] { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 4H5v16h5M15 8l4 4-4 4M19 12H9'/></svg>"); }
.set-wrap .set-row[href="#/admin"] { --chip: #191F28; --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'><path d='M4 18a8 8 0 1 1 16 0'/><path d='M12 18l4-6'/></svg>"); }
.set-wrap .set-row[data-id="diff-sheet"] { --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='9'/><path d='M12 11v6M12 7.5v.5'/></svg>"); }
.set-wrap .set-row[data-id="usage-sheet"] { --chip: #059669; --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'><path d='M5 20V10M12 20V4M19 20v-7'/></svg>"); }
.set-wrap .set-row[data-act="adminCopy"] { --chip: #DB2777; --ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='8' y='8' width='12' height='12' rx='2'/><path d='M16 8V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3'/></svg>"); }

/* ---------- 내 모델(#/me) · 퍼스널컬러(#/personal) ---------- */
[data-submit="meGenerate"] .chip input[type=radio] { accent-color: var(--brand); }
.drape-pick { flex: 1 1 0; min-height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-ink); font-size: 15px; }
.drape-pick:hover { background: #FBCFE8; }

/* ---------- 알림(#/notices): 흰 카드 줄 + 종류별 색 아이콘 ---------- */
.notices .muted { margin: -8px 0 14px; font-size: 15px; line-height: 1.55; }
.notice-acts { display: flex; justify-content: flex-start; gap: 8px; margin: 0 0 14px; }
.notices .notice-acts button { min-height: 44px; padding: 0 16px; border-radius: var(--pill); background: var(--card); font-size: 14px; }
.notice-list { margin: 0; gap: 10px; }
.notice, .notice.unread { border: 0; border-radius: var(--r-xl); background: var(--card); box-shadow: none; }
.notice-main { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 18px 4px 18px 18px; border-radius: var(--r-xl); }
.notice-main > :not(.notice-ic) { grid-column: 2; }
.notice-main:hover { background: none; }
.notice-ic { grid-row: 1 / span 4; align-self: start; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #8B95A1; color: #fff; }
.notice-ic .ic { width: 22px; height: 22px; stroke-width: 2; }
.notice-ic.k-book { background: #DB2777; } .notice-ic.k-tryon { background: #7C3AED; } .notice-ic.k-model { background: #2563EB; }
.notice-ic.k-policy { background: #4E5968; } .notice-ic.k-notice { background: #EA580C; }
.notice-kind { color: var(--quiet); font-size: 13px; }
.notice.unread .notice-kind::before { background: var(--brand); }
.notice-main strong { font-size: 16px; font-weight: 700; line-height: 1.4; }
.notice:not(.unread) .notice-main strong { color: var(--sub); font-weight: 600; }
.notice-main time { color: var(--quiet); font-size: 13px; }
.notice-x { align-self: flex-start; margin: 8px 8px 0 0; border-radius: 50%; color: var(--quiet); }
.notice-x .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.notice-x:hover { background: var(--soft); }
.notice-empty { padding: 40px 20px; border-radius: var(--r-xl); background: var(--card); }

/* ---------- 이용약관 · 개인정보 처리방침: 긴 글은 흰 카드 안에서 읽는다 ---------- */
.policy { margin: 4px auto 24px; padding: 12px 20px 28px; border-radius: var(--r-xl); background: var(--card); }
.policy h1 { margin: 8px 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.policy h2 { margin: 28px 0 8px; font-size: 18px; font-weight: 700; }
.policy-sum { border: 0; border-radius: 18px; background: var(--bg); } .policy .policy-sum h2 { margin-top: 0; }
.policy-table { border-color: var(--line); border-radius: 14px; }
.policy-table thead th { background: var(--bg); }

/* ---------- 관리자(#/admin): 숫자 카드는 공통 .stat, 아래 작은 글은 한 줄씩 ---------- */
.admin-stat small { display: block; margin-top: 8px; color: var(--sub); font-size: 13px; line-height: 1.45; }
.admin-table thead th { white-space: nowrap; } /* 좁은 칸에서 '첫 룩북 완성'이 한 글자씩 꺾였다(표는 .scroll 안에서 가로로 밀린다) */
.admin-stat b small { display: inline; margin: 0 0 0 2px; color: inherit; font-size: 18px; }
