/* ================================================================
   PRO — 전문 소프트웨어 톤 (Linear · Figma · Vercel · Notion)
   정확한 8px 그리드, 산세리프, 데이터 밀도, 명확한 상태 색
   ================================================================ */

:root {
  /* 베이스 — 라이트 */
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-2: #F4F4F5;
  --surface-3: #ECECED;
  --paper: #FFFFFF;
  --ink: #09090B;
  --ink-2: #27272A;
  --ink-3: #52525B;
  --muted: #71717A;
  --muted-2: #A1A1AA;
  --line: #E4E4E7;
  --line-2: #D4D4D8;
  --hairline: rgba(9, 9, 11, .06);
  --focus: #0066FF;

  /* 액센트 — 전문가용 (브랜드 블루) */
  --accent: #0066FF;
  --accent-hover: #0052CC;
  --accent-soft: #E6F0FF;
  --accent-fg: #FFFFFF;

  /* 상태 색 */
  --good: #16A34A;
  --good-bg: #DCFCE7;
  --ok: #65A30D;
  --warn: #D97706;
  --warn-bg: #FEF3C7;
  --bad: #DC2626;
  --bad-bg: #FEE2E2;
  --gold: #CA8A04;

  /* 역호환 (기존 변수 유지) */
  --accent-soft: #E6F0FF;
  --gold-light: #EAB308;
  --figure: #D4D4D8;
  --drape-bg: #A1A1AA;

  /* 치수 (정확한 8px 그리드) */
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, .05);
  --shadow-md: 0 4px 12px rgba(9, 9, 11, .08);
  --shadow-lg: 0 12px 32px rgba(9, 9, 11, .12);

  /* 서체 */
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'SF Pro', 'Segoe UI', 'Malgun Gothic', sans-serif;
  --mono: 'SF Mono', Consolas, 'Courier New', monospace;
  --serif: var(--font);  /* 전문 톤에서는 세리프 안 씀 */
  --latin: var(--font);
}

/* 다크 모드 — 깊은 중립 회색 (Linear 톤) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0A0B;
    --surface: #131316;
    --surface-2: #1A1A1E;
    --surface-3: #27272A;
    --paper: #131316;
    --ink: #FAFAFA;
    --ink-2: #E4E4E7;
    --ink-3: #A1A1AA;
    --muted: #71717A;
    --muted-2: #52525B;
    --line: #27272A;
    --line-2: #3F3F46;
    --hairline: rgba(250, 250, 250, .06);
    --accent: #3B82F6;
    --accent-hover: #60A5FA;
    --accent-soft: #1E293B;
    --good: #22C55E;
    --good-bg: #052E16;
    --warn: #F59E0B;
    --warn-bg: #451A03;
    --bad: #EF4444;
    --bad-bg: #450A0A;
    --figure: #3F3F46;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
  }
}

/* ================================================================
   기본 요소
   ================================================================ */
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 14px; line-height: 1.5;
  letter-spacing: -0.006em; -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}
* { box-sizing: border-box; }
::selection { background: var(--accent-soft); color: var(--accent); }

/* ================================================================
   타이포 (모두 산세리프, 두께로 위계)
   ================================================================ */
.display { font-family: var(--font); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.display.sm { font-weight: 700; font-size: 24px; }
.title { font-family: var(--font); font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; font-size: 22px; color: var(--ink); }
.title small {
  font-family: var(--font); font-weight: 500; color: var(--muted);
  font-size: 12px; letter-spacing: 0; margin-left: 10px; text-transform: none;
}
.eyebrow {
  font-family: var(--font); font-style: normal; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); font-size: 11px;
}
.lead {
  font-family: var(--font); font-weight: 400; font-size: 15px; line-height: 1.6;
  color: var(--ink-3); font-style: normal; letter-spacing: -0.005em;
}
.card-t {
  font-family: var(--font); font-weight: 600; font-size: 15px;
  letter-spacing: -0.015em; color: var(--ink);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.card-t small {
  font-family: var(--font); font-weight: 500; font-size: 12px;
  letter-spacing: 0; text-transform: none; color: var(--muted);
}
.mini-t {
  font-family: var(--font); font-weight: 500; font-size: 11px;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--muted); margin: 20px 0 10px;
}
.sec-t { font-family: var(--font); font-weight: 650; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* 숫자는 살짝 모노 느낌 (tabular-nums) */
.ring-c b, .cl-score b, .verdict, b.score, .bar-top b,
table.cmp td, .size-pill b, .shade-scale span, .shade-scale small,
.pc-facts dd, .lab-readout b, .kv b {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

/* ================================================================
   레이아웃
   ================================================================ */
.shell { grid-template-columns: 240px minmax(0, 1fr); background: var(--bg); }
.view { padding: 32px 40px 80px; max-width: 1360px; }
.top {
  padding: 0 24px; height: 56px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  backdrop-filter: none; position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
}
.top-brand { font-family: var(--font); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }

/* ================================================================
   사이드바
   ================================================================ */
.side {
  background: var(--surface-2); border-right: 1px solid var(--line);
  padding: 16px 12px; display: flex; flex-direction: column;
}
.brand { padding: 8px 12px 16px; display: flex; align-items: baseline; gap: 6px; }
.brand-mark {
  font-family: var(--font); font-weight: 700; font-size: 18px;
  letter-spacing: -0.03em; color: var(--ink);
}
.brand-sub {
  font-family: var(--font); font-style: normal; font-weight: 500;
  font-size: 10px; letter-spacing: 0.08em; color: var(--muted);
  text-transform: uppercase; margin-top: 2px; margin-left: 4px;
}
.nav { gap: 2px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.nav-a {
  padding: 7px 10px; font-size: 13.5px; font-weight: 500;
  border-radius: var(--radius-sm); color: var(--ink-3);
  letter-spacing: -0.005em; border: 0; gap: 10px;
  transition: background .12s, color .12s;
}
.nav-a:hover { background: var(--surface-3); color: var(--ink); border: 0; }
.nav-a.on {
  background: var(--surface); color: var(--ink); border: 0;
  box-shadow: var(--shadow-sm); font-weight: 600;
}
.nav-a .ico { color: var(--muted); opacity: 1; }
.nav-a:hover .ico, .nav-a.on .ico { color: var(--ink); }
.side-foot {
  font-size: 11px; letter-spacing: 0; color: var(--muted);
  border-top: 1px solid var(--line); padding: 10px 12px; margin-top: 12px;
  display: flex; align-items: center; gap: 6px;
}
.ai-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.ai-dot.on { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 20%, transparent); }

/* ================================================================
   카드 (리니어/피그마 스타일)
   ================================================================ */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px 20px;
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }

/* ================================================================
   버튼 (Linear 스타일)
   ================================================================ */
.btn {
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius);
  font-family: var(--font); font-weight: 500; font-size: 13px;
  letter-spacing: -0.005em; text-transform: none;
  transition: all .12s ease;
  box-shadow: var(--shadow-sm);
  gap: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; cursor: pointer;
}
.btn:hover:not(:disabled) {
  background: var(--surface-2); border-color: var(--line-2); color: var(--ink);
  transform: none; box-shadow: var(--shadow-sm);
}
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }

.btn.primary {
  background: var(--ink); color: var(--surface); border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn.primary:hover:not(:disabled) {
  background: var(--ink-2); color: var(--surface); border-color: var(--ink-2);
}

.btn.ghost {
  background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-3);
}
.btn.ghost:hover:not(:disabled) {
  background: var(--surface-2); color: var(--ink); border-color: transparent;
}

.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn.xs { padding: 3px 8px; font-size: 11.5px; }
.btn.lg { padding: 10px 20px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.on {
  background: var(--ink); color: var(--surface); border-color: var(--ink);
}
.btn .ico { width: 15px; height: 15px; margin: 0; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 20%, var(--line)); }
.btn.danger:hover:not(:disabled) { background: var(--bad-bg); color: var(--bad); }

.icon-btn {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: grid; place-items: center; background: transparent;
  border: 0; color: var(--muted); transition: all .12s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ================================================================
   입력
   ================================================================ */
input, select, textarea {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 7px 10px; font-size: 13px;
  color: var(--ink); font-family: var(--font);
  transition: border-color .12s, box-shadow .12s;
  box-shadow: var(--shadow-sm);
}
input:hover, select:hover, textarea:hover { border-color: var(--line-2); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
input[type="range"] { padding: 0; border: 0; box-shadow: none; accent-color: var(--accent); background: transparent; }
input[type="checkbox"] { width: auto; accent-color: var(--accent); box-shadow: none; }
.field-label {
  font-size: 12px; letter-spacing: 0; text-transform: none;
  color: var(--ink-2); font-weight: 500; margin-bottom: 6px;
}
.form-grid { gap: 14px 16px; }
.num-input input { padding-right: 32px; }
.num-input .unit { font-size: 11px; letter-spacing: 0; color: var(--muted); font-weight: 500; }

/* ================================================================
   칩
   ================================================================ */
.chip {
  padding: 5px 11px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; font-size: 12.5px; letter-spacing: -0.005em;
  font-weight: 500; color: var(--ink-3);
  transition: all .12s; display: inline-flex; align-items: center; gap: 5px;
  box-shadow: none;
}
.chip:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chips.small .chip { padding: 4px 9px; font-size: 11.5px; }

/* ================================================================
   세그먼트 탭 (Linear 느낌)
   ================================================================ */
.seg {
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 3px; border-radius: var(--radius); gap: 2px;
  box-shadow: none; display: inline-flex;
}
.seg-btn {
  padding: 6px 14px; border-radius: var(--radius-sm); background: transparent;
  font-size: 12.5px; letter-spacing: -0.005em; font-weight: 500;
  text-transform: none; color: var(--muted); border: 0;
  transition: all .12s; margin: 0;
}
.seg-btn:hover { color: var(--ink); background: transparent; }
.seg-btn.on {
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm); border: 0; font-weight: 600;
}

/* ================================================================
   홈 히어로 (프로덕티비티 앱 톤)
   ================================================================ */
.hero-v2 {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 48px 48px; position: relative; overflow: hidden;
  grid-template-columns: 1fr; box-shadow: var(--shadow-sm);
}
.hero-v2::before, .hero-v2::after { display: none; }
.hero-v2 .eyebrow { margin-bottom: 16px; color: var(--accent); font-weight: 600; }
.hero-v2 h1 {
  font-family: var(--font); font-weight: 700; font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.035em; line-height: 1.1; margin: 0 0 16px;
  color: var(--ink); max-width: 720px;
}
.hero-v2 p { font-size: 15px; max-width: 580px; margin: 0 0 24px; color: var(--ink-3); line-height: 1.65; }
.hero-cta { gap: 10px; display: flex; flex-wrap: wrap; }

/* ================================================================
   빠른 메뉴 (카드 격자)
   ================================================================ */
.quick-actions {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin: 24px 0 0; background: transparent; border: 0;
}
.qa {
  padding: 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); transition: all .15s;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  cursor: pointer; box-shadow: var(--shadow-sm); text-align: left;
}
.qa:hover {
  border-color: var(--line-2); box-shadow: var(--shadow-md);
  background: var(--surface); transform: translateY(-1px);
}
.qa .qa-ico {
  background: var(--surface-2); color: var(--ink); width: 36px; height: 36px;
  border-radius: var(--radius); display: grid; place-items: center;
  transition: all .15s; border: 0; box-shadow: none;
}
.qa:hover .qa-ico { background: var(--accent); color: var(--accent-fg); }
.qa b { font-family: var(--font); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.qa small { font-size: 12.5px; letter-spacing: -0.005em; color: var(--muted); line-height: 1.5; text-align: left; }

/* ================================================================
   사람 카드 (프로필)
   ================================================================ */
.couple-grid { gap: 16px; margin-top: 40px; }
.person-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm); transition: all .15s;
}
.person-card::before { height: 2px; background: var(--fam); border-radius: var(--radius-lg) var(--radius-lg) 0 0; opacity: 1; top: 0; bottom: auto; }
.person-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.pc-head h2 { font-family: var(--font); font-weight: 650; font-size: 20px; letter-spacing: -0.025em; color: var(--ink); }
.pc-head p { font-size: 12.5px; letter-spacing: 0; color: var(--muted); text-transform: none; margin-top: 4px; }
.pc-season {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.pc-season b { font-family: var(--font); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.pc-season .link { color: var(--accent); border-bottom: 0; font-size: 12.5px; }
.pc-strip { display: flex; }
.pc-strip i { width: 16px; height: 20px; border-radius: 0; }
.pc-strip i:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.pc-strip i:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.pc-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0; margin: 0 0 16px; overflow: hidden;
}
.pc-facts div { background: var(--surface); padding: 10px 12px; border-radius: 0; }
.pc-facts dt {
  font-size: 11px; letter-spacing: 0; text-transform: none;
  color: var(--muted); font-weight: 500; margin: 0;
}
.pc-facts dd {
  font-family: var(--font); font-weight: 600; font-size: 14px; margin-top: 4px;
  letter-spacing: -0.01em; color: var(--ink);
}
.pcp-top { font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 500; display: flex; justify-content: space-between; }
.pcp-top b { font-family: var(--font); font-weight: 600; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.pcp-bar { height: 4px; background: var(--surface-2); border-radius: 999px; margin: 6px 0 12px; overflow: hidden; }
.pcp-bar i { background: var(--accent); border-radius: 999px; height: 100%; display: block; }
.pcp-steps { display: flex; flex-wrap: wrap; gap: 4px; }
.pcp-steps button {
  background: var(--surface-2); border: 1px solid var(--line); font-size: 11.5px;
  letter-spacing: 0; color: var(--muted); padding: 3px 9px; border-radius: var(--radius-sm);
}
.pcp-steps button.ok { color: var(--good); background: var(--good-bg); border-color: transparent; }

/* ================================================================
   섹션
   ================================================================ */
.sec-head { margin: 40px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.link { color: var(--accent); border-bottom: 0; font-size: 12.5px; letter-spacing: 0; font-weight: 500; text-transform: none; padding: 0; }
.link:hover { text-decoration: underline; border-bottom: 0; }

/* ================================================================
   옷장 카드
   ================================================================ */
.closet-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.cl-card:hover { box-shadow: var(--shadow-md); border-color: var(--line-2); transform: translateY(-1px); }
.cl-brand { font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 500; }
.cl-name { font-family: var(--font); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; margin-top: 2px; color: var(--ink); line-height: 1.4; }
.cl-meta { font-size: 12px; color: var(--muted); gap: 8px; margin-top: 4px; }
.cl-status {
  font-size: 10.5px; letter-spacing: 0; border-radius: var(--radius-sm);
  padding: 2px 7px; font-weight: 600; background: rgba(9, 9, 11, .72);
  color: #FFF; text-transform: none;
}
.cl-score b { font-family: var(--font); font-weight: 700; letter-spacing: -0.02em; font-size: 15px; }

/* ================================================================
   사람 전환
   ================================================================ */
.ps-btn {
  background: var(--surface); border: 1px solid var(--line); padding: 3px 12px 3px 3px;
  border-radius: 999px; box-shadow: var(--shadow-sm);
}
.ps-btn:hover { border-color: var(--line-2); }
.ps-btn.on { border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--ink); }
.ps-btn span { font-size: 13px; font-weight: 500; letter-spacing: -0.005em; }

/* ================================================================
   스와치
   ================================================================ */
.sw i { border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(9, 9, 11, .08); }
.sw.sw-l i { width: 56px; height: 56px; }
.sw.sw-m i { width: 40px; height: 40px; }
.sw.sw-s i { width: 28px; height: 28px; }
.sw-l { font-size: 11.5px; letter-spacing: -0.005em; color: var(--ink-2); line-height: 1.4; }
.sw-s { font-size: 11px; letter-spacing: 0; color: var(--muted); }
.swatches { gap: 12px 8px; }

/* ================================================================
   뱃지
   ================================================================ */
.tag {
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0; text-transform: none;
  padding: 2px 8px; font-weight: 500; color: var(--muted);
  border-radius: 999px;
}

/* ================================================================
   노트·헬퍼
   ================================================================ */
.note {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
  padding: 12px 14px; font-size: 13px; color: var(--ink);
}
.note b { font-family: var(--font); font-weight: 600; font-size: 13px; letter-spacing: -0.01em; }
.helper-banner {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
  padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start;
}
.helper-banner .helper-ico { background: transparent; color: var(--accent); width: auto; height: auto; margin-top: 1px; }
.helper-banner b { font-family: var(--font); font-weight: 600; font-size: 13px; letter-spacing: -0.01em; margin-bottom: 2px; display: block; color: var(--ink); }
.helper-banner p { font-size: 12.5px; color: var(--ink-3); margin: 0; line-height: 1.55; }
.helper-close { color: var(--muted); padding: 4px 8px; border: 0; background: transparent; cursor: pointer; }
.helper-close:hover { color: var(--ink); }

/* ================================================================
   점수 링 (전문가 톤: 크게 강조하되 간결)
   ================================================================ */
.ring-bg { stroke: var(--line); stroke-width: 8; }
.ring-fg { stroke-width: 8; stroke-linecap: round; }
.ring-c b { font-family: var(--font); font-weight: 700; letter-spacing: -0.03em; }
.ring-g { font-family: var(--font); font-style: normal; font-weight: 700; letter-spacing: 0; font-size: 12px; }
.ring-l { font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--muted); }

/* ================================================================
   바 (점수 지표)
   ================================================================ */
.bar-track { height: 6px; background: var(--surface-2); border-radius: 999px; margin-top: 6px; overflow: hidden; }
.bar-track i { border-radius: 999px; height: 100%; display: block; }
.bar-top { font-size: 12.5px; letter-spacing: -0.005em; text-transform: none; color: var(--ink-3); font-weight: 500; display: flex; justify-content: space-between; }
.bar-top b { font-family: var(--font); font-weight: 600; font-size: 13px; letter-spacing: -0.01em; text-transform: none; }
.bars { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.bar.muted .bar-top span { color: var(--muted); }
.bar-note { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* ================================================================
   토스트
   ================================================================ */
.toast {
  background: var(--ink); color: var(--surface); border-radius: var(--radius);
  font-size: 13px; letter-spacing: -0.005em; padding: 10px 14px;
  box-shadow: var(--shadow-lg); border-left: 3px solid var(--muted);
}
.toast.ok { border-left-color: var(--good); }
.toast.warn { border-left-color: var(--warn); }
.toast.error { border-left-color: var(--bad); }

/* ================================================================
   모달
   ================================================================ */
.modal { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--surface); }
.modal-h { padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.modal-h b { font-family: var(--font); font-weight: 600; font-size: 16px; letter-spacing: -0.02em; color: var(--ink); }
.modal-b { padding: 16px 20px 20px; }
.modal-back { background: rgba(9, 9, 11, .5); backdrop-filter: blur(4px); }

/* ================================================================
   아바타
   ================================================================ */
.avatar { box-shadow: 0 0 0 1px var(--surface), 0 0 0 2px var(--ring, var(--line-2)); border-radius: 50%; }

/* ================================================================
   사진 넣기
   ================================================================ */
.drop {
  border: 1px dashed var(--line-2); background: var(--surface-2); border-radius: var(--radius-lg);
  transition: all .15s;
}
.drop:hover, .drop:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.drop.drag { border-color: var(--accent); background: var(--accent-soft); }
.drop.has { border-style: solid; border-color: var(--line); background: var(--surface); }
.drop-empty { color: var(--muted); }
.drop-empty b { font-family: var(--font); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; color: var(--ink); }
.drop-empty small { font-size: 11.5px; letter-spacing: 0; color: var(--muted); }
.drop-empty .ico { color: var(--muted); margin-bottom: 2px; }
.drop-cam-btn { font-size: 12px; letter-spacing: 0; padding: 6px 12px; }
.drop-actions { opacity: 0; transition: opacity .15s; }
.drop:hover .drop-actions, .drop:focus-within .drop-actions { opacity: 1; }
.drop-actions button {
  background: rgba(9, 9, 11, .85); color: #FFF; border-radius: var(--radius-sm);
  font-size: 11.5px; letter-spacing: 0; padding: 4px 10px; border: 0;
}

/* ================================================================
   온보딩 (프로덕티비티 앱 시작 흐름)
   ================================================================ */
.wizard { padding: 48px 0; max-width: 920px; margin: 0 auto; }
.wizard-head { margin-bottom: 40px; text-align: center; }
.wizard-head .eyebrow { color: var(--accent); font-size: 11px; letter-spacing: 0.1em; margin-bottom: 16px; display: block; }
.wizard-head .display { font-weight: 700; font-size: clamp(32px, 4.5vw, 44px); margin-bottom: 12px; letter-spacing: -0.035em; }
.wizard-head .lead { font-size: 15px; margin-bottom: 24px; max-width: 540px; margin-left: auto; margin-right: auto; }
.step-track { max-width: 240px; gap: 6px; margin: 0 auto; display: flex; }
.step-track i { height: 3px; background: var(--line); border-radius: 999px; flex: 1; transition: background .3s; }
.step-track i.now { background: var(--accent); }
.step-track i.done { background: var(--accent); opacity: .5; }
.big-cards {
  gap: 12px; background: transparent; border: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.big-card {
  background: var(--surface); padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: all .15s;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; cursor: pointer; text-align: left;
}
.big-card:hover {
  background: var(--surface); border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px);
}
.big-card .bc-icon { font-size: 28px; margin-bottom: 4px; filter: none; opacity: 1; }
.big-card b { font-family: var(--font); font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.big-card small { color: var(--muted); font-size: 13px; line-height: 1.55; letter-spacing: -0.005em; }

/* ================================================================
   kv (키-밸류 리스트)
   ================================================================ */
.kv {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0;
}
.kv span {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 5px 10px;
  font-size: 11.5px; letter-spacing: 0; text-transform: none;
  color: var(--muted); font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.kv b {
  font-family: var(--font); font-weight: 600; font-size: 12.5px;
  color: var(--ink); margin-left: 0; text-transform: none; letter-spacing: -0.005em;
}
.kv.col { flex-direction: column; align-items: stretch; }

/* ================================================================
   가이드 (dl)
   ================================================================ */
.guide {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px; background: transparent; border: 0;
}
.guide div {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px;
}
.guide dt {
  font-size: 11px; letter-spacing: 0; text-transform: none;
  color: var(--muted); font-weight: 500;
}
.guide dd { font-size: 13px; margin-top: 4px; line-height: 1.55; color: var(--ink); }

/* ================================================================
   퍼스널 컬러 사진 샘플링 영역
   ================================================================ */
.sampler { border-radius: var(--radius); }
.skey {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 10px; display: flex; align-items: center; gap: 8px;
}
.skey:hover { border-color: var(--line-2); background: var(--surface-2); }
.skey.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 15%, transparent); }
.skey i { width: 22px; height: 22px; border-radius: var(--radius-sm); border: 1px dashed var(--line-2); flex: none; }
.skey.done i { border: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.skey b { font-size: 13px; font-weight: 600; }
.skey small { font-size: 11px; color: var(--muted); }

/* ================================================================
   체크·간단
   ================================================================ */
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.steps { padding-left: 20px; margin: 0 0 14px; font-size: 13px; color: var(--ink-2); }
.steps li { margin: 4px 0; }

/* ================================================================
   테이블
   ================================================================ */
table.cmp, .sizetable table { font-size: 12.5px; width: 100%; border-collapse: separate; border-spacing: 0; }
table.cmp th, table.cmp td, .sizetable th, .sizetable td {
  border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: center;
}
table.cmp thead th, .sizetable thead th {
  font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0;
  text-transform: none; background: var(--surface-2);
}
table.cmp tbody th, .sizetable tbody th { text-align: left; font-weight: 600; color: var(--ink-2); background: var(--surface-2); }

/* ================================================================
   페이지 헤드
   ================================================================ */
.page-head { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ph-left { display: flex; align-items: center; gap: 14px; }
.ph-right { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.page-head .eyebrow { margin-bottom: 6px; }

/* ================================================================
   상단 바 추가 요소
   ================================================================ */
.top-cta { padding: 6px 12px; font-size: 12.5px; }
.top .person-switch { gap: 4px; }

/* ================================================================
   스핀 로더
   ================================================================ */
.spin i { border-color: currentColor; border-right-color: transparent; }

/* ================================================================
   반응형
   ================================================================ */
@media (max-width: 1180px) { .view { padding: 24px 24px 80px; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .view { padding: 16px 16px 100px; }
  .top { padding: 0 16px; }
  .title { font-size: 20px; }
  .hero-v2 { padding: 32px 24px; }
  .hero-v2 h1 { font-size: 28px; }
  .hero-v2 p { font-size: 14px; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .qa { padding: 16px; }
  .person-card { padding: 20px; }
  .card { padding: 16px; border-radius: var(--radius); }
  .pc-facts { grid-template-columns: repeat(2, 1fr); }
  .big-cards { grid-template-columns: 1fr; }
  .big-card { padding: 20px; }
  .wizard { padding: 24px 16px; }
  .wizard-head .display { font-size: 26px; }
  .tabbar {
    background: var(--surface); border-top: 1px solid var(--line); backdrop-filter: none;
  }
  .tab-a {
    font-size: 10.5px; letter-spacing: 0; color: var(--muted);
    text-transform: none; font-weight: 500;
  }
  .tab-a.on { color: var(--accent); font-weight: 600; }
  .tab-a .ico { color: inherit; }
}

/* ================================================================
   PhotoGallery — 다중 사진 (프로필)
   ================================================================ */
.photo-sections {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px;
  margin-top: 8px;
}
.photo-section .mini-t { margin-top: 0; margin-bottom: 10px; }

.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-empty-hint {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 32px 16px; aspect-ratio: 3 / 4;
  border: 1px dashed var(--line-2); border-radius: var(--radius-lg);
  background: var(--surface-2); color: var(--muted); text-align: center;
  cursor: pointer; transition: all .15s;
}
.gallery-empty-hint:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.gallery-empty-hint .ico { color: var(--muted); }
.gallery-empty-hint:hover .ico { color: var(--accent); }
.gallery-empty-hint b { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.gallery-empty-hint small { font-size: 11.5px; max-width: 220px; line-height: 1.4; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.gallery-item {
  display: flex; flex-direction: column; gap: 6px;
}
.gi-img {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: all .15s;
}
.gi-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item.primary .gi-img { border: 2px solid var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.gi-primary {
  position: absolute; top: 6px; left: 6px;
  background: var(--accent); color: #FFF; font-size: 10px; font-weight: 600;
  padding: 2px 7px 2px 5px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; gap: 3px;
  letter-spacing: 0; box-shadow: var(--shadow-sm);
}
.gi-actions {
  position: absolute; top: 6px; right: 6px; display: flex; gap: 3px;
  opacity: 0; transition: opacity .15s;
}
.gi-img:hover .gi-actions { opacity: 1; }
.gi-actions button {
  width: 24px; height: 24px; border-radius: var(--radius-sm);
  background: rgba(9, 9, 11, .8); color: #FFF; border: 0;
  display: grid; place-items: center; cursor: pointer;
  transition: background .12s;
}
.gi-actions button:hover { background: var(--ink); }
.gi-meta { padding: 0 2px; }
.gi-label {
  width: 100%; background: transparent; border: 0; padding: 2px 0;
  font-size: 11.5px; color: var(--ink); text-align: left;
  cursor: text; min-height: 20px; letter-spacing: -0.005em;
}
.gi-label:hover { color: var(--accent); }
.gi-label em { font-style: normal; }
.gi-meta input {
  width: 100%; padding: 3px 6px; font-size: 11.5px;
  border: 1px solid var(--accent); background: var(--surface);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 15%, transparent);
}

.gallery-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; aspect-ratio: 3 / 4; padding: 8px;
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  background: var(--surface-2); color: var(--muted); cursor: pointer;
  transition: all .15s;
}
.gallery-add:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.gallery-add small { font-size: 11px; font-weight: 500; }
.gallery-add em { font-size: 10px; font-style: normal; color: var(--muted-2); margin-top: 2px; }

.gallery-tip {
  display: flex; gap: 6px; align-items: flex-start;
  padding: 10px 12px; background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
  font-size: 12px; color: var(--ink-2); line-height: 1.5;
}
.gallery-tip .ico { color: var(--accent); flex: none; margin-top: 2px; }

/* 사진 추가 모달 */
.add-photo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.add-photo-left .drop { aspect-ratio: 3 / 4; }
.add-photo-right { display: flex; flex-direction: column; }
.add-photo-right input { margin-bottom: 4px; }

@media (max-width: 900px) {
  .photo-sections { grid-template-columns: 1fr; gap: 20px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .add-photo-grid { grid-template-columns: 1fr; }
}
