/* ================================================================
   ATELIER v3 — 맵시 스타일 랩 디자인 시스템
   다크 프리미엄 사이드바 · 정제된 라이트 캔버스 · 언더라인 탭
   화면별 헤더 배너 · 완전한 라이트/다크 모드
   (app.css → pro.css 위에 덮어씀. 색은 모두 토큰으로)
   ================================================================ */
:root {
  --bg: #F4F4F7;
  --surface: #FFFFFF;
  --surface-2: #F6F6F9;
  --surface-3: #ECECF1;
  --paper: #FFFFFF;
  --ink: #101016;
  --ink-2: #2A2A33;
  --ink-3: #565663;
  --muted: #7B7B88;
  --muted-2: #A8A8B5;
  --line: #E5E5EC;
  --line-2: #D4D4DE;
  --hairline: rgba(16, 16, 22, .06);
  --focus: #5B4BFF;

  --accent: #5B4BFF;
  --accent-hover: #4A39F0;
  --accent-soft: #EEEBFF;
  --accent-fg: #FFFFFF;
  --accent-2: #FF5A8E;
  --grad: linear-gradient(135deg, #5B4BFF 0%, #9D5BFF 50%, #FF6A97 100%);
  --grad-soft: linear-gradient(135deg, #F1EEFF 0%, #FAF0FB 55%, #FFF0F4 100%);

  --good: #10A15A;
  --good-bg: #E2F7EC;
  --ok: #5E9E1F;
  --warn: #DB8400;
  --warn-bg: #FFF3DA;
  --bad: #E23B45;
  --bad-bg: #FFE7E8;
  --gold: #B8860B;
  --gold-light: #E3B23C;
  --figure: #D6D6DE;
  --drape-bg: #A9A9B2;

  /* 사이드바 (라이트·다크 모두 어두운 프리미엄 톤) */
  --side-bg: #0F0F15;
  --side-bg-2: #17171F;
  --side-ink: #ECECF3;
  --side-muted: #8B8B99;
  --side-line: rgba(255, 255, 255, .07);
  --side-hover: rgba(255, 255, 255, .05);
  --side-on: rgba(255, 255, 255, .09);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 30, .04), 0 1px 3px rgba(16, 16, 30, .03);
  --shadow-md: 0 10px 28px -12px rgba(30, 20, 90, .18), 0 2px 6px rgba(16, 16, 30, .04);
  --shadow-lg: 0 28px 64px -20px rgba(30, 20, 90, .32);
  --shadow: var(--shadow-sm);
  --serif: var(--font);
  --latin: var(--font);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B10; --surface: #14141B; --surface-2: #1A1A23; --surface-3: #24242F; --paper: #14141B;
    --ink: #F3F3F8; --ink-2: #DCDCE6; --ink-3: #AAAABA; --muted: #8A8A9C; --muted-2: #5E5E70;
    --line: #262631; --line-2: #363645; --hairline: rgba(255, 255, 255, .05);
    --accent: #8C7DFF; --accent-hover: #A396FF; --accent-soft: #221E44; --accent-fg: #fff;
    --grad-soft: linear-gradient(135deg, #1C1838 0%, #241A33 55%, #2A1826 100%);
    --good: #34C77B; --good-bg: #0E2A1C; --ok: #8CC152; --warn: #F3A73B; --warn-bg: #2E2208; --bad: #FF5C66; --bad-bg: #2E1214;
    --figure: #3A3A48; --side-bg: #08080C; --side-bg-2: #101016;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 10px 28px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 28px 64px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B10; --surface: #14141B; --surface-2: #1A1A23; --surface-3: #24242F; --paper: #14141B;
  --ink: #F3F3F8; --ink-2: #DCDCE6; --ink-3: #AAAABA; --muted: #8A8A9C; --muted-2: #5E5E70;
  --line: #262631; --line-2: #363645; --hairline: rgba(255, 255, 255, .05);
  --accent: #8C7DFF; --accent-hover: #A396FF; --accent-soft: #221E44; --accent-fg: #fff;
  --grad-soft: linear-gradient(135deg, #1C1838 0%, #241A33 55%, #2A1826 100%);
  --good: #34C77B; --good-bg: #0E2A1C; --ok: #8CC152; --warn: #F3A73B; --warn-bg: #2E2208; --bad: #FF5C66; --bad-bg: #2E1214;
  --figure: #3A3A48; --side-bg: #08080C; --side-bg-2: #101016;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 10px 28px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 28px 64px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- 바탕 ---------- */
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); font-size: 14.5px; line-height: 1.55; letter-spacing: -0.008em; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 35%, transparent); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
.boot { font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.boot::before { content: '맵'; display: block; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 16px; background: var(--grad); color: #fff; font-size: 24px; font-weight: 800; line-height: 52px; animation: bootPulse 1.2s ease-in-out infinite; }
@keyframes bootPulse { 50% { transform: scale(.92); opacity: .7; } }

.shell { grid-template-columns: 264px minmax(0, 1fr); background: var(--bg); }
.view { padding: 28px 40px 100px; max-width: 1320px; margin: 0 auto; width: 100%; animation: viewIn .32s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes viewIn { from { opacity: .001; transform: translateY(8px); } }

/* ================================================================
   사이드바 (다크)
   ================================================================ */
.side {
  background: linear-gradient(180deg, var(--side-bg) 0%, var(--side-bg-2) 100%);
  border-right: 0; color: var(--side-ink);
  padding: 20px 14px 16px; gap: 4px; overflow-y: auto;
}
.side::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); }
.brand { flex-direction: row; align-items: center; gap: 11px; padding: 4px 8px 18px; text-decoration: none; color: var(--side-ink); }
.brand-logo {
  width: 38px; height: 38px; border-radius: 12px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; flex: none;
  box-shadow: 0 8px 20px -6px rgba(124, 92, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-mark { font-size: 16.5px; font-weight: 800; letter-spacing: -0.03em; color: var(--side-ink); }
.brand-sub { margin: 3px 0 0; font-size: 9.5px; letter-spacing: .18em; color: var(--side-muted); font-weight: 600; }
.side-search {
  display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; padding: 9px 11px; border-radius: 11px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--side-line); color: var(--side-muted); font-size: 13px; text-align: left; cursor: pointer; transition: background .15s, border-color .15s;
}
.side-search:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: var(--side-ink); }
.side-search kbd, .top-search kbd { margin-left: auto; }
kbd { font-family: var(--font); font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 6px; border: 1px solid currentColor; opacity: .6; }
.nav { border-top: 0; padding-top: 0; margin-top: 0; gap: 2px; }
.nav-group { font-size: 10.5px; font-weight: 700; color: var(--side-muted); letter-spacing: .1em; padding: 16px 12px 6px; opacity: .8; }
.nav-a {
  padding: 9px 12px; border-radius: 10px; font-size: 13.8px; font-weight: 550; color: rgba(236, 236, 243, .72);
  position: relative; gap: 11px; border: 0; transition: background .14s, color .14s;
}
.nav-a .ico { color: var(--side-muted); }
.nav-a:hover { background: var(--side-hover); color: var(--side-ink); }
.nav-a:hover .ico { color: var(--side-ink); }
.nav-a.on { background: var(--side-on); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); font-weight: 700; }
.nav-a.on .ico { color: #B8AEFF; }
.nav-a.on::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.nav-badge { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--side-muted); background: rgba(255, 255, 255, .07); border-radius: 999px; padding: 1px 8px; }
.nav-a.on .nav-badge { color: #fff; background: rgba(140, 125, 255, .35); }
.nav-new { margin-left: auto; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--grad); border-radius: 999px; padding: 2px 7px; }
.side-foot {
  margin-top: auto; border: 1px solid var(--side-line); border-radius: 12px; background: rgba(255, 255, 255, .03);
  padding: 10px 12px; font-size: 12px; color: var(--side-muted); text-decoration: none;
}
.side-foot:hover { color: var(--side-ink); background: rgba(255, 255, 255, .06); }
.ai-dot { width: 7px; height: 7px; }

/* ================================================================
   상단 바
   ================================================================ */
.top {
  height: 64px; padding: 0 40px; gap: 12px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--hairline);
}
.top-title { font-size: 14.5px; font-weight: 700; letter-spacing: -0.02em; margin-right: auto; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.top-title small { font-weight: 600; color: var(--muted); font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); }
.top-search {
  display: none; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; min-width: 210px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13px; cursor: pointer;
}
.top-search:hover { border-color: var(--line-2); color: var(--ink); }
.theme-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.theme-btn:hover { color: var(--ink); border-color: var(--line-2); }
.ps-btn { padding: 3px 14px 3px 3px; box-shadow: none; background: var(--surface); border: 1px solid var(--line); }
.ps-btn.on { border-color: transparent; box-shadow: 0 0 0 2px var(--accent); }
.ps-btn > span:not(.avatar) { font-size: 13px; font-weight: 650; }
.top-cta { height: 36px; }

/* ================================================================
   버튼 · 입력 · 칩
   ================================================================ */
.btn { border-radius: 10px; padding: 8px 15px; font-weight: 600; font-size: 13.5px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn:hover:not(:disabled) { background: var(--surface-2); border-color: var(--line-2); color: var(--ink); }
.btn.primary {
  background: var(--accent); border-color: transparent; color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 16px -8px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); color: #fff; border-color: transparent; }
.btn.grad, .top-cta.btn.primary { background: var(--grad); }
.btn.grad:hover:not(:disabled), .top-cta.btn.primary:hover:not(:disabled) { background: var(--grad); filter: brightness(1.07); }
.btn.dark { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn.dark:hover:not(:disabled) { background: var(--ink-2); color: var(--surface); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-3); }
.btn.ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--ink); border-color: transparent; }
.btn.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn.sm { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }
.btn.xs { padding: 3px 9px; font-size: 11.5px; border-radius: 7px; }
.btn.lg { padding: 12px 22px; font-size: 15px; border-radius: 12px; }
.btn.white { background: #fff; color: #101016; border-color: transparent; }
.btn.white:hover:not(:disabled) { background: #fff; color: #101016; filter: brightness(.97); }
.btn.glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .32); box-shadow: none; }
.btn.glass:hover:not(:disabled) { background: rgba(255, 255, 255, .24); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn.danger { color: var(--bad); }
.icon-btn { color: var(--muted); border-radius: 9px; }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }

input, select, textarea { border-radius: 10px; padding: 9px 12px; font-size: 14px; box-shadow: none; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
input:hover, select:hover, textarea:hover { border-color: var(--line-2); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
input[type="range"] { accent-color: var(--accent); }
input[type="checkbox"] { accent-color: var(--accent); }
.field-label { font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.chip { padding: 6px 13px; font-size: 13px; font-weight: 550; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); }
.chip:hover { border-color: var(--line-2); color: var(--ink); background: var(--surface-2); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips.small .chip { padding: 4px 10px; font-size: 12px; }
.qopt { border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.qopt:hover { border-color: var(--accent); }
.qopt.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag { border-radius: 999px; font-weight: 650; background: var(--surface-3); border: 0; color: var(--ink-3); }

/* ---------- 탭 (언더라인) ---------- */
.seg {
  display: flex; width: 100%; max-width: 100%; gap: 2px; padding: 0; background: transparent; border: 0;
  border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; overflow-x: auto;
}
.seg-btn {
  padding: 11px 14px 12px; border-radius: 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 600; gap: 7px; transition: color .15s, border-color .15s;
}
.seg-btn:hover { color: var(--ink); background: transparent; }
.seg-btn.on { color: var(--ink); background: transparent; box-shadow: none; border-bottom-color: var(--accent); font-weight: 700; }
.seg-btn.on .ico { color: var(--accent); }

/* ================================================================
   카드 · 타이포 · 공통
   ================================================================ */
.card { border-radius: var(--radius-lg); padding: 22px 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.card:hover { border-color: var(--line); box-shadow: var(--shadow-sm); }
.card-t { font-size: 15.5px; font-weight: 750; letter-spacing: -0.02em; color: var(--ink); }
.card-t small { font-weight: 500; color: var(--muted); }
.title { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); line-height: 1.2; }
.title small { font-size: 13px; font-weight: 600; color: var(--muted); }
.display { font-family: var(--font); font-weight: 800; letter-spacing: -0.04em; }
.display.sm { font-size: clamp(22px, 2.4vw, 30px); }
.eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .14em; font-weight: 750; margin-bottom: 6px; }
.lead { color: var(--ink-3); }
.mini-t { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-transform: none; }
.mini-t.good { color: var(--good); } .mini-t.warn { color: var(--warn); }
.sec-t { font-weight: 800; letter-spacing: -0.03em; }
.link { color: var(--accent); font-weight: 650; }
.step { background: var(--ink); color: var(--surface); width: 22px; height: 22px; font-size: 11.5px; }
.page { gap: 20px; }
.page.check { display: flex; flex-direction: column; align-items: stretch; font-size: inherit; cursor: auto; color: inherit; gap: 20px; }
.note, .gallery-tip { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.helper-banner {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
  padding: 12px 14px; gap: 12px; align-items: center; position: relative; overflow: hidden;
}
.helper-banner::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.helper-banner .helper-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; margin: 0; }
.helper-banner .helper-body { flex: 1; min-width: 0; }
.helper-banner b { font-size: 13.5px; }
.helper-banner p { color: var(--ink-3); font-size: 12.8px; }
.helper-banner p b, .helper-banner p strong { display: inline; margin: 0; font-size: inherit; color: var(--ink); }
.empty { padding: 40px 16px; }
.empty > .ico { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.empty-inline { border-radius: 16px; }
.modal { border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--surface); }
.modal-back { background: rgba(8, 8, 14, .5); backdrop-filter: blur(6px); }
.toast { border-radius: 12px; background: var(--ink); color: var(--surface); }
.drop { border-radius: 16px; border-color: var(--line-2); background: var(--surface-2); }
.drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.drop.has { background: #fff; }
.kv span { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.kv b { color: var(--ink); }
.guide div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.bar-track { background: var(--surface-3); }
.ring-bg { stroke: var(--surface-3); }
.avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ring, var(--line-2)); }
.cl-card { border-radius: 18px; }
.cl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.skey { border-radius: 12px; }
.skey.on { border-color: var(--accent); background: var(--accent-soft); }
table.cmp thead th, .sizetable thead th { background: var(--surface-2); }
table.cmp tbody th, .sizetable tbody th { background: var(--surface-2); }

/* ================================================================
   화면별 헤더 배너 (각 화면 첫 머리말)
   ================================================================ */
.view { --h1: #7B6BFF; --h2: #FF7BA5; }
.view-profile { --h1: #3D8BFF; --h2: #7B6BFF; }
.view-color { --h1: #FF8A5B; --h2: #FF5A8E; }
.view-beauty { --h1: #FF6FA8; --h2: #C86BFF; }
.view-hair { --h1: #19B8A6; --h2: #3D8BFF; }
.view-check { --h1: #7B6BFF; --h2: #3D8BFF; }
.view-closet { --h1: #3D8BFF; --h2: #19B8A6; }
.view-coordi { --h1: #F2A100; --h2: #FF7B5B; }
.view-insights { --h1: #6E56F8; --h2: #19B8A6; }
.view-settings { --h1: #8B8B99; --h2: #5B4BFF; }
.view-report { --h1: #9D5BFF; --h2: #FF6A97; }
.page > .page-head:first-child {
  position: relative; overflow: hidden; isolation: isolate; align-items: center;
  padding: 26px 30px; margin: 0; border-radius: 22px; border: 1px solid var(--line);
  background:
    radial-gradient(520px 220px at 100% 0%, color-mix(in srgb, var(--h1) 22%, transparent), transparent 72%),
    radial-gradient(420px 220px at 72% 130%, color-mix(in srgb, var(--h2) 18%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
.page > .page-head:first-child::after {
  content: ''; position: absolute; z-index: -1; right: -70px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
  border: 34px solid color-mix(in srgb, var(--h1) 12%, transparent);
}
.page > .page-head:first-child::before {
  content: ''; position: absolute; z-index: -1; right: 150px; bottom: -40px; width: 90px; height: 90px; border-radius: 50%;
  background: color-mix(in srgb, var(--h2) 14%, transparent);
}
.page > .page-head:first-child .eyebrow { color: color-mix(in srgb, var(--h1) 75%, var(--ink)); }
.season-chip { background: var(--surface); }

/* ================================================================
   한 문항씩 카드 (QuizStepper)
   ================================================================ */
.qz { display: flex; flex-direction: column; gap: 14px; }
.qz-top { display: flex; align-items: center; gap: 12px; }
.qz-count { font-size: 12px; font-weight: 750; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qz-bar { flex: 1; height: 6px; display: flex; gap: 3px; }
.qz-bar i { flex: 1; border-radius: 999px; background: var(--surface-3); transition: background .2s; }
.qz-bar i.ok { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.qz-bar i.now { background: var(--accent); }
.qz-toggle { font-size: 12px; font-weight: 650; color: var(--muted); background: none; border: 0; padding: 4px 6px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.qz-toggle:hover { color: var(--ink); background: var(--surface-3); }
.qz-q { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.4; margin: 4px 0 2px; color: var(--ink); animation: qzIn .25s ease both; }
@keyframes qzIn { from { opacity: 0; transform: translateX(10px); } }
.qz-opts { display: grid; gap: 8px; animation: qzIn .25s .03s ease both; }
.qz-opt {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; text-align: left;
  border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: border-color .14s, background .14s, transform .1s;
}
.qz-opt:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--surface-2); }
.qz-opt:active { transform: scale(.99); }
.qz-opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.qz-k { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--surface-3); color: var(--ink-3); }
.qz-opt.on .qz-k { background: var(--accent); color: #fff; }
.qz-nav { display: flex; align-items: center; gap: 8px; }
.qz-nav .push { margin-left: auto; }
.qz-done { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--good-bg); color: var(--good); font-weight: 700; font-size: 14px; }
.qz-done .ico { flex: none; }
.qz-done span { color: var(--ink-2); font-weight: 500; font-size: 13px; }

/* ================================================================
   명령 팔레트 (Ctrl+K)
   ================================================================ */
.cmdk-back { position: fixed; inset: 0; z-index: 300; background: rgba(8, 8, 14, .45); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; animation: fade .12s; }
.cmdk { width: min(620px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; animation: rise .16s ease; }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmdk-in input { border: 0; box-shadow: none !important; padding: 4px 0; font-size: 16px; background: transparent; }
.cmdk-list { max-height: min(56vh, 460px); overflow-y: auto; padding: 8px; }
.cmdk-g { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .08em; padding: 10px 10px 4px; }
.cmdk-i { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px; border-radius: 11px; border: 0; background: transparent; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.cmdk-i .ci-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-3); display: grid; place-items: center; color: var(--ink-3); flex: none; overflow: hidden; }
.cmdk-i .ci-ico img { width: 100%; height: 100%; object-fit: cover; }
.cmdk-i b { font-size: 14px; font-weight: 650; }
.cmdk-i small { display: block; font-size: 12px; color: var(--muted); }
.cmdk-i.on { background: var(--accent-soft); }
.cmdk-i.on .ci-ico { background: var(--accent); color: #fff; }
.cmdk-i .ci-go { margin-left: auto; color: var(--muted-2); }
.cmdk-empty { padding: 28px; text-align: center; color: var(--muted); }
.cmdk-foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }

/* ================================================================
   얼굴 측정선 (FaceMap)
   ================================================================ */
.facemap { position: relative; border-radius: 16px; overflow: hidden; background: #111; line-height: 0; align-self: start; }
.facemap img { width: 100%; display: block; }
.facemap svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fm-oval { fill: rgba(140, 125, 255, .1); stroke: #fff; stroke-width: .5; stroke-dasharray: 1.4 1; vector-effect: non-scaling-stroke; }
.fm-line { stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.fm-dot { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.fm-legend { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; line-height: 1.3; }
.fm-legend span { display: inline-flex; align-items: center; gap: 6px; background: rgba(10, 10, 16, .72); backdrop-filter: blur(6px); color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.fm-legend i { width: 8px; height: 8px; border-radius: 50%; }
.fm-hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-size: 12.5px; line-height: 1.45; }
.face-shape-grid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 4px 0 0; }
.fs { border-radius: 14px; padding: 14px 8px 12px; gap: 6px; cursor: pointer; color: var(--ink-3); transition: border-color .14s, background .14s; }
.fs:hover { border-color: var(--accent); color: var(--ink); }
.fs.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); color: var(--accent); }
.fs.on .face-ico path { fill: color-mix(in srgb, var(--accent) 16%, transparent); }
.shape-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.shape-hero .face-ico { width: 64px; height: 64px; flex: none; }
.shape-hero .face-ico path { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2.4; }
.ratio-bars { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.rb { display: grid; grid-template-columns: 96px 1fr 52px; gap: 10px; align-items: center; font-size: 12.5px; }
.rb-track { position: relative; height: 8px; border-radius: 999px; background: var(--surface-3); }
.rb-track i { position: absolute; top: -3px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface); }
.rb-track em { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--muted-2); }
.rb b { text-align: right; font-variant-numeric: tabular-nums; }
.rb span { color: var(--muted); }

/* ================================================================
   옷 평가 — 시작 안내 · 임시 점수
   ================================================================ */
.start-panel { padding: 26px; }
.start-panel h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.start-steps { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 6px; }
.start-steps div { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.start-steps b { display: block; font-size: 14px; }
.start-steps small { color: var(--muted); font-size: 12.5px; }
.start-steps .sn { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 12.5px; }
.color-row > .color-side:only-child { grid-column: 1 / -1; }
.partial-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--warn); background: var(--warn-bg); padding: 3px 10px; border-radius: 999px; margin-top: 6px; }

/* ================================================================
   홈 대시보드
   ================================================================ */
.dash { display: flex; flex-direction: column; gap: 20px; }
.dash-hero {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; padding: 36px 38px;
  background: radial-gradient(700px 360px at 85% -10%, #FF7AA8 0%, transparent 60%), radial-gradient(700px 400px at 0% 120%, #3D2CF5 0%, transparent 60%), linear-gradient(135deg, #2A1E7A 0%, #5B3FE0 45%, #9A4DE8 100%);
  color: #fff; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 30px; align-items: center;
  box-shadow: 0 34px 70px -34px rgba(70, 40, 200, .75);
}
.dash-hero::after { content: ''; position: absolute; z-index: -1; right: -110px; top: -140px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .07); }
.dash-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); }
.dash-hero .hello { font-size: 13px; font-weight: 650; opacity: .85; margin: 0 0 10px; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.dash-hero .hello .avatar { box-shadow: none; }
.dash-hero h1 { margin: 0 0 12px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 850; letter-spacing: -0.045em; line-height: 1.16; }
.dash-hero h1 em { font-style: normal; background: linear-gradient(90deg, #FFE1EC, #FFFFFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dash-hero p.sub { margin: 0 0 24px; opacity: .88; font-size: 14.5px; line-height: 1.65; max-width: 540px; }
.dash-hero .hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.next-card { position: relative; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 20px; padding: 20px 22px; }
.next-card .nc-k { font-size: 11px; font-weight: 750; letter-spacing: .12em; opacity: .8; }
.next-card .nc-t { font-size: 18px; font-weight: 800; margin: 6px 0 4px; letter-spacing: -0.03em; }
.next-card .nc-d { font-size: 13px; opacity: .88; margin: 0 0 14px; line-height: 1.55; }
.nc-steps { display: flex; gap: 5px; margin-bottom: 14px; }
.nc-steps i { flex: 1; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.nc-steps i.ok { background: #fff; }
.nc-meta { font-size: 12px; opacity: .75; margin-left: 10px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 14px; cursor: pointer; transition: transform .16s, box-shadow .16s; text-align: left; font: inherit; color: var(--ink); }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi .k-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; }
.kpi .k-v { font-size: 20px; font-weight: 850; letter-spacing: -0.04em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .k-l { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi > div { min-width: 0; }

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile {
  position: relative; border-radius: 20px; padding: 18px; background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 5px; min-height: 140px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s; box-shadow: var(--shadow-sm); color: var(--ink); font: inherit; overflow: hidden;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); }
.tile .t-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; margin-bottom: 8px; box-shadow: 0 8px 18px -10px currentColor; }
.tile b { font-size: 15px; font-weight: 750; letter-spacing: -0.02em; }
.tile small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.tile .t-go { position: absolute; right: 16px; top: 18px; color: var(--muted-2); transition: transform .18s, color .18s; }
.tile:hover .t-go { transform: translateX(3px); color: var(--accent); }
.tile .t-stat { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 700; color: var(--accent); }
.tile.feature { grid-column: span 2; flex-direction: row; align-items: center; gap: 18px; background: var(--grad-soft); }
.tile.feature .t-body { display: flex; flex-direction: column; gap: 4px; }
.tile.feature .t-ico { margin: 0; width: 54px; height: 54px; border-radius: 16px; }
.c1 { background: linear-gradient(135deg, #5B4BFF, #8F7BFF); }
.c2 { background: linear-gradient(135deg, #FF4F8B, #FF8A6B); }
.c3 { background: linear-gradient(135deg, #0FB5A6, #40D6A0); }
.c4 { background: linear-gradient(135deg, #2F7BFF, #5BB6FF); }
.c5 { background: linear-gradient(135deg, #F29A00, #FFC44B); }
.c6 { background: linear-gradient(135deg, #2E2A40, #5E5878); }
.c7 { background: linear-gradient(135deg, #9D5BFF, #FF6A97); }

.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.pcard { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.pcard-top { display: flex; gap: 16px; padding: 20px 20px 16px; align-items: center; cursor: pointer; position: relative; isolation: isolate; }
.pcard-top::before { content: ''; position: absolute; z-index: -1; inset: 0 0 auto; height: 74px; background: var(--fam-soft, var(--grad-soft)); }
.pcard-photo { width: 80px; height: 80px; border-radius: 24px; overflow: hidden; background: var(--surface-2); flex: none; box-shadow: 0 0 0 4px var(--surface), var(--shadow-md); display: grid; place-items: center; font-weight: 800; color: var(--muted); font-size: 26px; }
.pcard-photo img { width: 100%; height: 100%; object-fit: cover; }
.pcard-name { font-size: 21px; font-weight: 850; letter-spacing: -0.035em; margin: 20px 0 2px; }
.pcard-meta { font-size: 12.5px; color: var(--muted); }
.pcard-pct { margin-left: auto; align-self: flex-start; margin-top: 14px; }
.pcard-body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.season-pill { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.season-pill:hover { background: var(--surface-3); }
.season-pill b { font-size: 14.5px; font-weight: 750; }
.season-pill .pal { display: flex; }
.season-pill .pal i { width: 20px; height: 20px; border-radius: 50%; margin-left: -6px; box-shadow: 0 0 0 2px var(--surface-2); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.facts div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; cursor: pointer; min-width: 0; transition: border-color .15s; }
.facts div:hover { border-color: var(--accent); }
.facts dt { font-size: 11px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 3px 0 0; font-size: 13.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo { display: flex; flex-wrap: wrap; gap: 6px; }
.todo button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.todo button:hover { border-color: var(--accent); color: var(--accent); }
.todo button.ok { background: var(--good-bg); border-color: transparent; color: var(--good); }
.todo button i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.todo button.ok i { background: var(--good); }
.pcard-foot { display: flex; gap: 8px; padding: 0 20px 20px; }
.pcard-foot .btn { flex: 1; }
.add-person { border: 1.5px dashed var(--line-2); background: transparent; box-shadow: none; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 32px 28px; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, background .15s; min-height: 300px; }
.add-person:hover { border-color: var(--accent); background: var(--accent-soft); }
.add-person .t-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.add-person b { font-size: 16px; font-weight: 750; }
.add-person small { color: var(--muted); font-size: 13px; max-width: 320px; line-height: 1.55; }
.pct-ring { position: relative; width: 54px; height: 54px; }
.pct-ring svg { transform: rotate(-90deg); }
.pct-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; }
.sec-row { display: flex; align-items: baseline; justify-content: space-between; margin: 10px 0 -4px; }
.sec-row h2 { margin: 0; font-size: 18px; font-weight: 850; letter-spacing: -0.035em; }
.recent-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.rcard { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; box-shadow: var(--shadow-sm); }
.rcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rcard .r-img { aspect-ratio: 4 / 5; background: #fff; display: grid; place-items: center; overflow: hidden; }
.rcard .r-img img { width: 100%; height: 100%; object-fit: cover; }
.rcard .r-img span { width: 56%; aspect-ratio: 1; border-radius: 50%; }
.rcard .r-body { padding: 10px 12px 12px; }
.rcard .r-body b { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard .r-sc { display: flex; gap: 8px; margin-top: 6px; }
.rcard .r-sc span { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; }
.empty-card { border: 1.5px dashed var(--line-2); border-radius: 20px; padding: 30px; text-align: center; color: var(--muted); }
.empty-card b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.empty-card .btn { margin-top: 12px; }
.stylist-note { border-radius: 22px; padding: 24px 26px; background: #121218; color: #F3F3F8; display: flex; gap: 20px; align-items: center; border: 1px solid var(--line); }
.stylist-note .sn-k { font-size: 11px; letter-spacing: .14em; font-weight: 700; opacity: .6; }
.stylist-note .sn-q { font-size: 18px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.5; margin: 6px 0 4px; }
.stylist-note .sn-d { font-size: 13px; opacity: .7; margin: 0; }
.stylist-note .pal { display: flex; gap: 6px; flex: none; }
.stylist-note .pal i { width: 30px; height: 46px; border-radius: 10px; }

/* ================================================================
   스타일 리포트
   ================================================================ */
.report { display: flex; flex-direction: column; gap: 18px; }
.rp-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rp-bar .push { margin-left: auto; }
.rp-doc { display: flex; flex-direction: column; gap: 18px; }
.rp-cover {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; padding: 34px 36px; color: #fff;
  background: radial-gradient(600px 300px at 100% 0%, rgba(255, 122, 168, .55), transparent 65%), linear-gradient(135deg, #17123F 0%, #3A2AA8 55%, #7A3FD0 100%);
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: center;
}
.rp-cover::after { content: ''; position: absolute; z-index: -1; right: -90px; bottom: -130px; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .06); }
.rp-photo { width: 150px; height: 190px; border-radius: 24px; overflow: hidden; background: rgba(255, 255, 255, .1); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5); display: grid; place-items: center; font-size: 46px; font-weight: 800; }
.rp-photo img { width: 100%; height: 100%; object-fit: cover; }
.rp-cover .rp-k { font-size: 11px; letter-spacing: .22em; font-weight: 700; opacity: .7; }
.rp-cover h1 { margin: 8px 0 6px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 850; letter-spacing: -0.045em; line-height: 1.15; }
.rp-cover .rp-meta { opacity: .8; font-size: 14px; }
.rp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rp-tags span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .2); font-size: 12.5px; font-weight: 650; }
.rp-tags span b { font-weight: 800; }
.rp-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; box-shadow: var(--shadow-sm); break-inside: avoid; }
.rp-sec-h { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rp-sec-h .rp-n { font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: .1em; }
.rp-sec-h h2 { margin: 0; font-size: 20px; font-weight: 850; letter-spacing: -0.035em; }
.rp-sec-h .rp-res { margin-left: auto; font-size: 13px; font-weight: 750; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.rp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rp-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rp-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; min-width: 0; }
.rp-box h4 { margin: 0 0 8px; font-size: 12px; font-weight: 750; color: var(--muted); letter-spacing: .04em; }
.rp-box p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.rp-box ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.rp-box.good h4 { color: var(--good); }
.rp-box.bad h4 { color: var(--bad); }
.rp-lead { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); margin: 0 0 16px; }
.rp-pal { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin: 6px 0 16px; }
.rp-pal.small { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.rp-pal div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rp-pal i { aspect-ratio: 1 / 1.15; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.rp-pal small { font-size: 11px; color: var(--ink-3); line-height: 1.25; word-break: keep-all; }
.rp-pal.avoid i { position: relative; }
.rp-pal.avoid i::after { content: ''; position: absolute; left: 50%; top: 8%; bottom: 8%; width: 2px; background: rgba(255, 255, 255, .85); transform: rotate(40deg); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.rp-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.rp-kv div { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.rp-kv dt { font-size: 11.5px; color: var(--muted); font-weight: 650; }
.rp-kv dd { margin: 4px 0 0; font-size: 13.5px; font-weight: 650; line-height: 1.5; color: var(--ink); }
.rp-missing { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 14px; border: 1.5px dashed var(--line-2); color: var(--muted); font-size: 13.5px; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-chips span { padding: 4px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.rp-chips.good span { background: var(--good-bg); border-color: transparent; color: var(--good); }
.rp-chips.bad span { background: var(--bad-bg); border-color: transparent; color: var(--bad); }
.rp-mk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rp-mk-row { display: flex; gap: 6px; margin-top: 6px; }
.rp-mk-row i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); flex: none; }
.rp-formula { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.rp-f { border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.rp-f-sw { display: flex; height: 56px; }
.rp-f-sw i { flex: 1; }
.rp-f div:last-child { padding: 10px 12px; }
.rp-f b { font-size: 13.5px; display: block; }
.rp-f small { font-size: 12px; color: var(--muted); }
.rp-foot { text-align: center; font-size: 12px; color: var(--muted); padding: 6px 0 2px; }
.rp-person-switch { display: flex; gap: 6px; }

@media print {
  @page { size: A4; margin: 12mm; }
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    --bg: #fff; --surface: #fff; --surface-2: #F6F6F9; --surface-3: #ECECF1; --ink: #101016; --ink-2: #2A2A33; --ink-3: #565663;
    --muted: #7B7B88; --line: #E2E2EA; --line-2: #D4D4DE; --accent: #5B4BFF; --accent-soft: #EEEBFF; --good: #10A15A; --good-bg: #E2F7EC; --bad: #E23B45; --bad-bg: #FFE7E8;
    color-scheme: light;
  }
  html, body { background: #fff !important; }
  .side, .top, .tabbar, .toasts, .rp-bar, .no-print, .more-sheet, .more-sheet-back { display: none !important; }
  .shell { display: block !important; }
  .view { padding: 0 !important; max-width: none !important; animation: none !important; }
  .rp-sec, .rp-cover { box-shadow: none !important; break-inside: avoid; page-break-inside: avoid; }
  .rp-sec { border-color: #ddd !important; }
  .rp-cover, .rp-pal i, .rp-f-sw i, .rp-mk-row i, .rp-tags span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rp-doc { gap: 10mm; }
  /* 종이 폭(약 700px)에서도 화면용 2~3단 배치를 유지 */
  .rp-cover { grid-template-columns: 120px minmax(0, 1fr) !important; padding: 26px 28px !important; }
  .rp-photo { width: 120px !important; height: 152px !important; }
  .rp-grid:not([style*="grid-template-columns"]) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .rp-grid.three, .rp-mk { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .rp-pal { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; }
  .rp-pal.small { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}

/* ================================================================
   오늘의 코디 · 착용 기록
   ================================================================ */
.view-today { --h1: #FFB020; --h2: #3D8BFF; }
.wx-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; }
.wx-card { background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, #FFB020 18%, transparent), transparent 70%), var(--surface); }
.wx-main { display: flex; align-items: center; gap: 16px; }
.wx-ico { font-size: 54px; line-height: 1; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .12)); }
.wx-t { font-size: 52px; font-weight: 850; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.wx-t em { font-style: normal; font-size: 20px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.wx-s { font-size: 13.5px; color: var(--ink-3); font-weight: 600; margin-top: 6px; }
.wx-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 12px; }
.wx-kv span { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.wx-kv b { color: var(--ink); font-variant-numeric: tabular-nums; }
.wx-days { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wx-days div { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; border: 1px dashed var(--line-2); font-size: 13px; }
.wx-days div span { font-size: 20px; }
.wx-days b { margin-right: auto; font-variant-numeric: tabular-nums; }
.wx-days small { color: var(--muted); font-size: 11.5px; }
.wx-src { font-size: 11px; color: var(--muted-2); margin: 10px 0 0; }
.guide-card .gc-t { margin: 0 0 14px; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.guide-card .gc-t b { color: var(--accent); }
.gc-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.gc-items div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.gc-items small { display: block; font-size: 11px; color: var(--muted); font-weight: 650; }
.gc-items b { font-size: 13.5px; }
.occ-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.occ-scroll .occ { flex: none; white-space: nowrap; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.tp-card { display: flex; flex-direction: column; gap: 6px; }
.tp-head { display: flex; align-items: center; gap: 12px; }
.tp-head > div:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.tp-head b { font-size: 16px; font-weight: 800; }
.tp-head small { color: var(--muted); font-size: 12.5px; }
.tp-score { margin-left: auto; }
.tp-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.tp-item { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit; min-width: 0; }
.tp-item b { font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-item small { font-size: 11px; color: var(--muted); }
.tp-img { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.tp-img img { width: 100%; height: 100%; object-fit: cover; }
.tp-img i { width: 60%; aspect-ratio: 1; border-radius: 50%; }
.tp-img.sm { width: 34px; flex: none; border-radius: 8px; }
.tp-pal { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.tp-piece { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tp-piece i { width: 40px; height: 40px; border-radius: 12px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.tp-piece span { display: flex; flex-direction: column; min-width: 0; }
.tp-piece small { font-size: 11px; color: var(--muted); font-weight: 650; }
.tp-piece b { font-size: 14px; }
.tp-piece em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.tp-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.tp-actions > :last-child { margin-left: auto; }
.tp-logged { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--good); background: var(--good-bg); padding: 6px 12px; border-radius: 999px; }
.cal-top { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.cal-top b { font-size: 15px; font-weight: 800; min-width: 96px; text-align: center; }
.cal-legend { margin-left: auto; display: flex; gap: 10px; font-size: 12px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pc0 { background: var(--accent); } .pc1 { background: var(--accent-2); }
.cal-legend i, .cal-dots i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-dow:first-child { color: var(--bad); }
.cal-d { aspect-ratio: 1 / .86; border-radius: 10px; border: 1px solid transparent; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.cal-d:hover { border-color: var(--line-2); }
.cal-d.has { background: var(--accent-soft); }
.cal-d.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-d.sel { background: var(--ink); color: var(--surface); }
.cal-dots { display: flex; gap: 3px; }
.cal-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.cal-list .mini-t { margin: 4px 0 2px; }
.cal-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.cal-things { display: flex; gap: 6px; flex-wrap: wrap; margin-right: auto; }
.cal-sw { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.wi-kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.wi-kpi div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.wi-kpi b { display: block; font-size: 22px; font-weight: 850; letter-spacing: -0.04em; }
.wi-kpi small { font-size: 11.5px; color: var(--muted); }
.wi-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; text-decoration: none; color: inherit; }
.wi-row:hover { background: var(--surface-2); }
.wi-row b { font-size: 13px; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wi-row span:last-child { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.log-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; max-height: 46vh; overflow-y: auto; }
.log-it { position: relative; display: flex; flex-direction: column; gap: 4px; background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; text-align: left; }
.log-it small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-it.on .tp-img { box-shadow: 0 0 0 3px var(--accent); }
.log-it em { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.home-today { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer; text-align: left; font: inherit; color: var(--ink); transition: transform .16s, box-shadow .16s; width: 100%; }
.home-today:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.home-today .ht-ico { font-size: 40px; line-height: 1; }
.home-today .ht-t { font-size: 26px; font-weight: 850; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.home-today .ht-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.home-today .ht-b b { font-size: 14.5px; }
.home-today .ht-b small { color: var(--muted); font-size: 12.5px; }
.home-today .ht-pal { margin-left: auto; display: flex; gap: 6px; }
.home-today .ht-pal i { width: 30px; height: 40px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.phone-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 10px; }
.lan-pill { margin-left: auto; font-size: 12px; font-weight: 750; padding: 3px 11px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.lan-pill.on { background: var(--good-bg); color: var(--good); }
.lan-urls { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.lan-url { font-size: 24px; font-weight: 850; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--accent); user-select: all; word-break: break-all; }
.lan-url.off { color: var(--muted-2); }
@media (max-width: 900px) {
  .phone-grid { grid-template-columns: 1fr; }
  .wx-row { grid-template-columns: 1fr; }
  .tp-grid { grid-template-columns: 1fr; }
  .home-today .ht-pal { display: none; }
  .wx-t { font-size: 44px; }
}

/* ================================================================
   인사이트
   ================================================================ */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-sm); }
.stat-card.accent { background: var(--grad); color: #fff; border-color: transparent; }
.sc-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.stat-card.accent .sc-label { color: rgba(255, 255, 255, .85); }
.sc-value { font-size: 28px; font-weight: 850; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat-card.small .sc-value { font-size: 22px; }
.sc-value em { font-style: normal; font-size: 13px; font-weight: 600; margin-left: 3px; opacity: .7; }
.color-dist { display: flex; flex-direction: column; gap: 10px; }
.color-dist-row { display: grid; grid-template-columns: 24px 90px 1fr 100px; gap: 10px; align-items: center; font-size: 13px; }
.cdr-sw { width: 24px; height: 24px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.cdr-name { font-weight: 650; }
.cdr-bar, .cat-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.cdr-bar i, .cat-bar i { display: block; height: 100%; border-radius: 999px; }
.cat-bar i { background: var(--grad); }
.cdr-count { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.cat-dist { display: flex; flex-direction: column; gap: 10px; }
.cat-row { display: grid; grid-template-columns: 80px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; }
.cat-row span { text-align: right; color: var(--muted); }
.formality-dist { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.fd-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.fd-bar { width: 100%; border-radius: 10px 10px 4px 4px; background: var(--grad); position: relative; min-height: 4px; }
.fd-bar span { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.fd-col small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.person-avg { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pa-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.pa-text { display: flex; flex-direction: column; margin-right: auto; }
.pa-text small { color: var(--muted); font-size: 12px; }
.under-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.under-col .mini-t { display: flex; align-items: center; gap: 6px; margin-top: 0; }
.under-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; text-decoration: none; color: inherit; }
.under-item:hover { background: var(--surface-2); }
.ui-img { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--surface-2); flex: none; display: grid; place-items: center; }
.ui-img img { width: 100%; height: 100%; object-fit: cover; }
.ui-img i { width: 60%; height: 60%; border-radius: 50%; }
.ui-txt { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.ui-txt b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-txt small { font-size: 11.5px; color: var(--muted); }
.ui-score { font-weight: 800; font-size: 15px; }
.occ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.occ { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; text-align: left; transition: all .12s; color: var(--ink-2); }
.occ:hover { border-color: var(--accent); }
.occ.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.occ span { font-size: 17px; }
.auto-coords { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.auto-coord { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm); }
.auto-coord.couple { grid-column: 1 / -1; }
.auto-coord .couple-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.ac-head { display: flex; align-items: center; gap: 12px; }
.ac-rank { font-size: 13px; font-weight: 800; color: var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 2px 8px; }
.ac-meta { display: flex; flex-direction: column; }
.ac-meta small { font-size: 12px; color: var(--muted); }
.ac-items { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-item { width: 70px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.ac-item img, .ac-item i { width: 70px; height: 84px; border-radius: 12px; object-fit: cover; background: var(--surface-2); display: block; }
.ac-item small { font-size: 11px; color: var(--muted); }
.ac-notes { margin: 0; padding-left: 16px; font-size: 12px; color: var(--ink-3); }
.ac-notes .n-bad { color: var(--bad); } .ac-notes .n-warn { color: var(--warn); }
.pri { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: 12px; font-weight: 800; color: #fff; }
.pri-1 { background: var(--bad); } .pri-2 { background: var(--warn); } .pri-3 { background: var(--accent); }
.shop-list { display: flex; flex-direction: column; gap: 8px; }
.shop-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.si-color { width: 28px; height: 28px; border-radius: 9px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.si-body { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.si-body b { font-size: 13.5px; }
.si-body small { font-size: 12px; color: var(--muted); }
.si-cat { font-size: 11.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; flex: none; }
.tpo-grid { display: flex; flex-direction: column; gap: 6px; }
.tpo-row { display: grid; grid-template-columns: 32px 140px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; }
.tpo-row:hover { background: var(--surface-2); }
.tr-ico { font-size: 18px; }
.tr-name b { font-size: 13.5px; }
.tr-coverage { display: flex; gap: 6px; flex-wrap: wrap; }
.tr-person { font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 999px; display: inline-flex; gap: 5px; }
.tr-person.ready { background: var(--good-bg); color: var(--good); }
.tr-person.incomplete { background: var(--warn-bg); color: var(--warn); }

/* ================================================================
   모바일 탭바 + 더보기 시트
   ================================================================ */
.more-sheet-back { position: fixed; inset: 0; z-index: 90; background: rgba(8, 8, 14, .4); backdrop-filter: blur(3px); animation: fade .15s; }
.more-sheet { position: fixed; left: 10px; right: 10px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 91; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; animation: rise .2s ease; }
.more-sheet a, .more-sheet button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; text-decoration: none; color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 600; background: var(--surface-2); border: 0; cursor: pointer; }
.more-sheet a.on { background: var(--accent-soft); color: var(--accent); }

/* ================================================================
   반응형
   ================================================================ */
@media (min-width: 1100px) { .top-search { display: flex; } }
@media (max-width: 1180px) {
  .view { padding: 24px 24px 90px; }
  .top { padding: 0 24px; }
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .view { padding: 14px 14px 116px; }
  .top { padding: 0 14px; height: 58px; }
  .top-title { display: none; }
  .top-brand { display: flex; align-items: center; gap: 8px; margin-right: auto; text-decoration: none; font-family: var(--font); font-size: 16px; font-weight: 800; color: var(--ink); }
  .top-brand .brand-logo { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
  .top-cta { display: none; }
  .page > .page-head:first-child { padding: 20px 20px; border-radius: 20px; }
  .title { font-size: 23px; }
  .dash-hero { grid-template-columns: 1fr; padding: 26px 22px; border-radius: 22px; gap: 22px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { min-height: 120px; padding: 15px; }
  .tile.feature { grid-column: 1 / -1; }
  .people { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stylist-note { flex-direction: column; align-items: flex-start; }
  .color-dist-row { grid-template-columns: 22px 70px 1fr 70px; }
  .tpo-row { grid-template-columns: 28px 1fr; }
  .tpo-row .tr-coverage { grid-column: 2; }
  .auto-coord .couple-grid { grid-template-columns: 1fr; }
  .rp-cover { grid-template-columns: 1fr; padding: 26px 22px; }
  .rp-photo { width: 110px; height: 140px; }
  .rp-grid, .rp-grid.three, .rp-mk { grid-template-columns: 1fr; }
  .rp-pal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rp-sec { padding: 20px 18px; }
  .qz-q { font-size: 17px; }
  .face-shape-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr !important; }
  .tabbar {
    display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 92;
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 6px; justify-content: space-around;
  }
  .tab-a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 14px; text-decoration: none; font: inherit; font-size: 11px; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer; }
  .tab-a.on { color: var(--accent); background: var(--accent-soft); }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px; gap: 10px; }
  .kpi .k-ico { width: 34px; height: 34px; border-radius: 10px; }
  .kpi .k-v { font-size: 16px; }
}

/* ───────── 휴대폰 홈 화면 구성 (모바일 전용) ─────────
   데스크톱용 큰 소개 영역이 휴대폰 첫 화면을 다 차지하던 문제를 고친다.
   · 오늘의 코디 띠를 맨 위로 올려 첫 화면에서 바로 보이게
   · 소개 문단과 중복 버튼(옷 평가·자리별 코디 — 하단 탭에 이미 있음)은 숨김
   · 제목·여백을 휴대폰 크기에 맞게 줄임 */
@media (max-width: 900px) {
  .dash { display: flex; flex-direction: column; }
  .dash > * { min-width: 0; }
  .home-today { order: -1; }
  .dash-hero { padding: 20px 18px; gap: 14px; }
  .dash-hero h1 { font-size: 26px; line-height: 1.25; }
  .dash-hero .sub,
  .dash-hero .hero-cta { display: none; }
  .dash-hero .hello { margin-bottom: 10px; }
  .next-card { padding: 16px 16px 14px; }
}

/* ───────── 첫 실행 화면 아이콘 (이모지 → 앱 공통 선 아이콘) ─────────
   app.css·luxe.css·pro.css 의 .bc-icon 은 이모지용 font-size 기준이라
   여기서 앱 전체와 같은 '색 칩 + 흰 선 아이콘' 형태로 맞춘다. (c1~c7 색 사용) */
.big-card .bc-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  color: #fff; font-size: 0; opacity: 1; filter: none;
  margin-bottom: 8px; flex: none;
  box-shadow: 0 8px 18px -10px currentColor;
}
.big-card .bc-icon .ico { width: 24px; height: 24px; }
@media (max-width: 900px) {
  .big-card .bc-icon { width: 42px; height: 42px; border-radius: 13px; margin-bottom: 6px; }
  .big-card .bc-icon .ico { width: 22px; height: 22px; }
}
/* 휴대폰에서는 첫 실행 카드를 가로형으로 — 3단계가 한 화면에 모두 보이도록 */
@media (max-width: 900px) {
  .big-card {
    display: grid; grid-template-columns: 42px 1fr;
    grid-template-areas: "ico title" "ico desc";
    column-gap: 13px; row-gap: 3px; padding: 15px 16px; align-items: start;
  }
  .big-card .bc-icon { grid-area: ico; margin-bottom: 0; align-self: center; }
  .big-card > b { grid-area: title; font-size: 16px; }
  .big-card > small { grid-area: desc; }
  .wizard-head { margin-bottom: 20px; }
  .wizard-head .display { font-size: 24px; margin-bottom: 8px; }
  .wizard-head .lead { font-size: 14px; }
}

/* ================================================================
   로그인 · 시스템 · 계정
   ================================================================ */
.login-wrap {
  position: fixed; inset: 0; z-index: 400; overflow-y: auto; display: grid; place-items: center; padding: 24px 18px;
  background: radial-gradient(700px 460px at 85% 0%, #7a4fe0 0%, transparent 60%), radial-gradient(600px 400px at 0% 100%, #ff6a97 0%, transparent 55%), #0F0F15;
}
.login-card { width: min(380px, 100%); text-align: center; color: #F3F3F8; display: flex; flex-direction: column; gap: 14px; padding: 8px 0; }
.login-logo { width: 68px; height: 68px; margin: 0 auto 4px; border-radius: 22px; background: var(--grad); display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #fff; box-shadow: 0 16px 34px -10px rgba(124, 92, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.login-card h1 { margin: 0; font-size: 24px; font-weight: 850; letter-spacing: -0.04em; }
.login-sub { margin: -6px 0 6px; color: #B7B7C8; font-size: 14px; }
.login-field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.login-field > span { font-size: 12.5px; font-weight: 700; color: #C9C9D8; }
.login-card input[type="text"], .login-card input[type="password"] {
  width: 100%; font-size: 17px; padding: 14px 16px; border-radius: 14px; border: 1px solid #353550; background: rgba(255, 255, 255, .06); color: #fff; box-shadow: none;
}
.login-card input::placeholder { color: #77778C; }
.login-card input:focus { border-color: #9D8BFF; box-shadow: 0 0 0 4px rgba(140, 125, 255, .22); background: rgba(255, 255, 255, .09); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px !important; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.pw-eye:hover { color: var(--ink); background: var(--surface-3); }
.login-card .pw-eye { color: #A9A9BC; }
.login-card .pw-eye:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.login-remember { display: flex; align-items: center; gap: 10px; text-align: left; font-size: 14.5px; font-weight: 600; color: #E3E3EE; cursor: pointer; padding: 4px 2px; }
.login-remember input { width: 20px; height: 20px; accent-color: #8C7DFF; flex: none; }
.login-hint { margin: -8px 0 0; text-align: left; font-size: 12px; color: #8C8CA2; padding-left: 32px; line-height: 1.5; }
.login-err { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 90, 106, .14); border: 1px solid rgba(255, 90, 106, .4); color: #FF9AA3; font-size: 13.5px; font-weight: 600; text-align: left; }
.login-notice { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 190, 70, .13); border: 1px solid rgba(255, 190, 70, .35); color: #FFD58A; font-size: 13px; text-align: left; line-height: 1.5; }
.login-btn { margin-top: 4px; width: 100%; padding: 15px; border: 0; border-radius: 15px; font-size: 16.5px; font-weight: 750; color: #fff; background: var(--grad); cursor: pointer; box-shadow: 0 12px 26px -10px rgba(124, 92, 255, .8); }
.login-btn:disabled { opacity: .7; cursor: default; }
.login-btn .spin { justify-content: center; color: #fff; }
.login-foot { display: block; margin-top: 10px; color: #77778C; font-size: 12px; line-height: 1.7; }

.side-user { display: flex; align-items: center; gap: 8px; margin: 0 2px 8px; padding: 8px 8px 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--side-line); }
.side-user .icon-btn { color: var(--side-muted); width: 30px; height: 30px; margin-left: auto; }
.side-user .icon-btn:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.su-ico { width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.side-user .su-ico { background: rgba(140, 125, 255, .22); color: #C9C0FF; }
.su-id { font-size: 13px; font-weight: 650; color: var(--side-ink); display: flex; flex-direction: column; line-height: 1.25; min-width: 0; word-break: break-all; }
.su-id em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #C9C0FF; }

.sys-list { display: flex; flex-direction: column; }
.sys-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.sys-row:last-child { border-bottom: 0; }
.sys-row .sk { color: var(--muted); font-weight: 650; font-size: 12.5px; padding-top: 1px; }
.sys-row .sv { min-width: 0; word-break: break-word; line-height: 1.55; }
.sys-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; background: var(--muted-2); }
.sys-dot.on { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent); }
.sys-dot.off { background: var(--muted-2); }
.sys-path { font-size: 11.5px; word-break: break-all; }
.usebar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 4px 0 6px; max-width: 360px; }
.usebar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.usebar i.warn { background: var(--warn); }
.sys-table { overflow-x: auto; }

.user-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.ur-main { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.ur-main b { font-size: 14px; word-break: break-all; }
.ur-main small { color: var(--muted); font-size: 11.5px; }

@media (max-width: 900px) {
  .sys-row { grid-template-columns: 1fr auto; gap: 2px 10px; }
  .sys-row .sk { grid-column: 1 / -1; }
  .sys-row .sv { grid-column: 1; }
  .sys-row .sys-dot { grid-column: 2; grid-row: 2; }
}
