/* ==========================================================================
   공디딤(gongdidim) 디자인 시스템 v1
   칠판 그린 + 형광펜 옐로 · Pretendard · 8px 그리드
   ========================================================================== */
@font-face {
  font-family: "Pretendard";
  src: url("../fonts/PretendardVariable.woff2") format("woff2-variations"), url("../fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  /* 색 (라이트) */
  --green-900: #082A1F; --green-700: #0D4532; --green-600: #12573F; --green-500: #1F7A5A;
  --green-200: #B5D4C5; --green-100: #DCEBE3; --green-50: #EEF5F1;
  --yellow: #FFDD33; --yellow-soft: #FFF3B0;
  --ink: #141A17; --text: #2B3430; --sub: #5B6660; --mute: #8A948F;
  --line: #E6EAE8; --line-strong: #C9D0CC; --bg: #FFFFFF; --bg-soft: #F5F7F6;
  --surface: #FFFFFF; --on-ink: #FFFFFF; --header-bg: rgba(255, 255, 255, .92);
  --skel: #E9EDEB; --skel-hi: rgba(255, 255, 255, .7);
  --ok: #1B7F54; --ok-bg: #E7F5EE; --warn: #9A5B00; --warn-bg: #FFF3D6;
  --danger: #C93434; --danger-bg: #FDECEC; --info: #2458D6; --info-bg: #EAF0FF;
  --shadow-pop: 0 12px 32px rgba(8, 42, 31, .14), 0 2px 6px rgba(8, 42, 31, .06);
  color-scheme: light;
  /* 형태 */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;
  --header-h: 64px; --wrap: 1120px;
  --ease-spring: cubic-bezier(.3, 1.5, .5, 1); --ease-out: cubic-bezier(.2, .8, .2, 1);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}
/* 다크 모드: 헤더의 해/달 버튼으로 켜고 끕니다(선택은 브라우저에 저장). */
html[data-theme="dark"] {
  --green-900: #082A1F; --green-700: #1B7D5B; --green-600: #22906A; --green-500: #3DB88C;
  --green-200: #2B5444; --green-100: #1B3429; --green-50: #13251E;
  --yellow: #FFDD33; --yellow-soft: #4A4210;
  --ink: #F2F6F4; --text: #D3DBD7; --sub: #9BA8A1; --mute: #76837C;
  --line: #25302B; --line-strong: #3B4942; --bg: #0E1512; --bg-soft: #141D19;
  --surface: #18221D; --on-ink: #0E1512; --header-bg: rgba(14, 21, 18, .9);
  --skel: #1F2A25; --skel-hi: rgba(255, 255, 255, .06);
  --ok: #4CC28F; --ok-bg: #12291F; --warn: #F0B35A; --warn-bg: #2E2410;
  --danger: #F07878; --danger-bg: #321919; --info: #7EA2FF; --info-bg: #16203A;
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
/* 화면 예시(휴대폰 목업 등)는 다크 모드에서도 밝은 화면 그대로 보여 줍니다. */
html[data-theme="dark"] .theme-light {
  --green-900: #082A1F; --green-700: #0D4532; --green-600: #12573F; --green-500: #1F7A5A;
  --green-200: #B5D4C5; --green-100: #DCEBE3; --green-50: #EEF5F1;
  --yellow: #FFDD33; --yellow-soft: #FFF3B0;
  --ink: #141A17; --text: #2B3430; --sub: #5B6660; --mute: #8A948F;
  --line: #E6EAE8; --line-strong: #C9D0CC; --bg: #FFFFFF; --bg-soft: #F5F7F6;
  --surface: #FFFFFF; --on-ink: #FFFFFF; --header-bg: rgba(255, 255, 255, .92);
  --skel: #E9EDEB; --skel-hi: rgba(255, 255, 255, .7);
  --ok: #1B7F54; --ok-bg: #E7F5EE; --warn: #9A5B00; --warn-bg: #FFF3D6;
  --danger: #C93434; --danger-bg: #FDECEC; --info: #2458D6; --info-bg: #EAF0FF;
  --shadow-pop: 0 12px 32px rgba(8, 42, 31, .14), 0 2px 6px rgba(8, 42, 31, .06);
  color-scheme: light;
  color: var(--text);
}
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .3s, border-color .3s, color .3s, fill .3s !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ── 레이아웃 ─────────────────────────────────────────────── */
.container { width: 100%; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 768px; }
.container-form { max-width: 488px; }
.page { padding-top: 40px; padding-bottom: 96px; min-height: 60vh; }
.section { padding: 96px 0; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 32px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.row-wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.split-wide { grid-template-columns: minmax(0, 1fr) 340px; }
@media (min-width: 721px) { .hide-d { display: none !important; } }

/* ── 타이포그래피 ─────────────────────────────────────────── */
.h1 { font-size: 32px; line-height: 1.3; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.h2 { font-size: 24px; line-height: 1.35; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.h3 { font-size: 18px; line-height: 1.45; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.h4 { font-size: 15px; line-height: 1.5; font-weight: 700; color: var(--ink); }
.display { font-size: 40px; line-height: 1.25; font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.lead { font-size: 17px; line-height: 1.65; color: var(--sub); }
.sub { color: var(--sub); }
.muted { color: var(--mute); }
.small { font-size: 13px; line-height: 1.5; }
.tiny { font-size: 12px; line-height: 1.45; }
.strong { font-weight: 700; color: var(--ink); }
.num { font-variant-numeric: tabular-nums; }
.mark { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding: 0 2px; }
.link { color: var(--green-600); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.center { text-align: center; }
.prose { font-size: 16px; line-height: 1.8; color: var(--text); }
.prose h2 { font-size: 21px; font-weight: 700; color: var(--ink); margin: 40px 0 12px; letter-spacing: -.01em; }
.prose h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; list-style: disc; }
.prose li + li { margin-top: 6px; }
.prose ol { margin: 0 0 16px; padding-left: 22px; list-style: decimal; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose-table { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--r-md); }
.prose-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; min-width: 520px; }
.prose-table th { text-align: left; padding: 10px 14px; background: var(--bg-soft); font-size: 13px; color: var(--sub); font-weight: 700; white-space: nowrap; }
.prose-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.prose > :first-child { margin-top: 0; }

/* ── 버튼 ─────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r-md); font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s, transform .05s; user-select: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); }
.btn-secondary { background: var(--green-50); color: var(--green-600); }
.btn-secondary:hover { background: var(--green-100); }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { color: var(--sub); padding: 0 12px; }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-danger { background: var(--surface); border-color: #F0C4C4; color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); }
.btn-yellow { background: var(--yellow); color: var(--green-900); }
.btn-yellow:hover { background: #F5D21F; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); gap: 6px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-secondary.is-loading::after, .btn-outline.is-loading::after { border-color: var(--green-200); border-top-color: var(--green-600); }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-md); color: var(--sub); position: relative; }
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); }
.dot { position: absolute; top: 7px; right: 7px; min-width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--surface); }

/* ── 폼 ───────────────────────────────────────────────────── */
.field { display: block; }
.field + .field { margin-top: 20px; }
.label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.label .opt { font-weight: 400; font-size: 13px; color: var(--mute); }
.input, .select, .textarea { display: block; width: 100%; height: 48px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s; appearance: none; }
.textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235B6660' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input::placeholder, .textarea::placeholder { color: var(--mute); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--mute); }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(18, 87, 63, .14); }
.input:disabled, .select:disabled { background: var(--bg-soft); color: var(--mute); }
.input-sm, .select-sm { height: 38px; font-size: 14px; border-radius: var(--r-sm); padding-left: 12px; }
.select-sm { padding-right: 34px; background-position: right 8px center; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.hint { margin-top: 6px; font-size: 13px; color: var(--sub); }
.hint .ic { display: inline-block; vertical-align: -2px; margin-right: 4px; }
.field-error { margin-top: 6px; font-size: 13px; color: var(--danger); display: flex; gap: 4px; align-items: center; }
.field-ok { margin-top: 6px; font-size: 13px; color: var(--ok); }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.input-group:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(18, 87, 63, .14); }
.input-group .addon { display: flex; align-items: center; padding: 0 0 0 14px; color: var(--mute); font-size: 15px; white-space: nowrap; }
.input-group .input { border: 0; box-shadow: none; padding-left: 2px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; line-height: 1.5; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--surface) center / 16px no-repeat; transition: background-color .12s, border-color .12s; }
.check input[type=radio] { border-radius: 50%; }
.check input:checked { background-color: var(--green-600); border-color: var(--green-600); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.500 4.500 4.500 9.500-10.500'/%3E%3C/svg%3E"); }
.check input[type=radio]:checked { background-image: radial-gradient(#fff 0 4px, transparent 5px); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.switch input { appearance: none; flex: none; width: 46px; height: 28px; margin: 0; border-radius: 14px; background: var(--line-strong); position: relative; transition: background-color .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--green-600); }
.switch input:checked::after { transform: translateX(18px); }
.optcard { position: relative; display: block; cursor: pointer; }
.optcard input { position: absolute; opacity: 0; inset: 0; }
.optcard .optcard-body { display: block; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); transition: border-color .12s, background-color .12s, box-shadow .12s; }
.optcard:hover .optcard-body { border-color: var(--mute); }
.optcard input:checked + .optcard-body { border-color: var(--green-600); background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-600); }
.optcard input:focus-visible + .optcard-body { outline: 2px solid var(--green-600); outline-offset: 2px; }
.optcard input:disabled + .optcard-body { opacity: .5; cursor: not-allowed; }
.form-actions { display: flex; gap: 8px; margin-top: 32px; }
.form-actions.end { justify-content: flex-end; }
.filebox { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); background: var(--bg-soft); cursor: pointer; }
.filebox:hover { border-color: var(--green-600); }
.filebox input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.filebox:focus-within { outline: 2px solid var(--green-600); outline-offset: 2px; }
.filebox .fb-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface); color: var(--green-600); border: 1px solid var(--line); }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { color: var(--line-strong); cursor: pointer; padding: 2px; }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { color: #F2B705; }
.rating-input input:focus-visible + label { outline: 2px solid var(--green-600); border-radius: 6px; }

/* ── 칩/탭/배지 ───────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-full); border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; transition: border-color .12s, background-color .12s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chip .cnt { font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.chip.is-on .cnt { color: rgba(255, 255, 255, .7); }
.chip-x { height: 32px; padding: 0 8px 0 12px; background: var(--green-50); border-color: transparent; color: var(--green-600); font-weight: 600; font-size: 13px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--mute); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--ink); }
.tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.tab .cnt { font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--green-50); color: var(--green-600); display: inline-flex; align-items: center; justify-content: center; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-wait { background: var(--yellow-soft); color: #6B5200; }
.badge-done { background: var(--ink); color: var(--on-ink); }
.badge-mute { background: var(--bg-soft); color: var(--sub); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--green-600); }
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars .on { color: #F2B705; } .stars .off { color: var(--line-strong); }

/* ── 카드/리스트 ──────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 24px; }
.card-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-soft { background: var(--bg-soft); border-color: transparent; }
a.card:hover, .card-link:hover { border-color: var(--ink); }
.divide > * + * { border-top: 1px solid var(--line); }
.list-item { display: flex; align-items: center; gap: 14px; padding: 16px 24px; }
a.list-item:hover { background: var(--bg-soft); }
.kv { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px 16px; font-size: 15px; }
.kv dt { color: var(--sub); }
.kv dd { color: var(--ink); font-weight: 500; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; overflow: hidden; font-weight: 700; color: var(--green-700); background: var(--green-100); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 36px; height: 36px; font-size: 14px; }
.avatar-md { width: 48px; height: 48px; font-size: 18px; }
.avatar-lg { width: 72px; height: 72px; font-size: 26px; }
.avatar-xl { width: 96px; height: 96px; font-size: 34px; }
.avatar-t1 { background: #FFF3B0; color: #6B5200; }
.avatar-t2 { background: #E3ECFF; color: #2447A8; }
.avatar-t3 { background: #F1E9E2; color: #6B4A2B; }
.mcard { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .15s, transform .15s; }
.mcard:hover { border-color: var(--ink); }
.mcard-top { display: flex; gap: 14px; align-items: center; }
.mcard-name { font-size: 16px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.mcard-exam { font-size: 13px; color: var(--green-600); font-weight: 600; margin-top: 2px; }
.mcard-headline { font-size: 15px; line-height: 1.55; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 46px; }
.mcard-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tagline { display: inline-flex; align-items: center; height: 26px; padding: 0 8px; border-radius: 6px; background: var(--bg-soft); font-size: 12px; font-weight: 500; color: var(--sub); }
.mcard-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--sub); margin-top: auto; }
.mcard-price { font-size: 15px; font-weight: 700; color: var(--ink); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 24px; }
.empty-art { width: 64px; height: 64px; border-radius: 20px; background: var(--green-50); color: var(--green-600); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.empty .h3 { margin-bottom: 6px; }
.empty p { color: var(--sub); max-width: 360px; }
.empty .btn { margin-top: 20px; }
.alert { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--r-md); font-size: 14px; line-height: 1.55; }
.alert .ic { margin-top: 1px; }
.alert-info { background: var(--bg-soft); color: var(--text); }
.alert-warn { background: var(--warn-bg); color: #6B4000; }
.alert-error { background: var(--danger-bg); color: #8E1F1F; }
.alert-ok { background: var(--ok-bg); color: #0F5A3A; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--mute); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-strong); }
.crumbs a:hover { color: var(--ink); }
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 40px; }
.pg { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--sub); font-variant-numeric: tabular-nums; }
a.pg:hover { background: var(--bg-soft); color: var(--ink); }
.pg.is-current { background: var(--ink); color: var(--on-ink); }
.pg.is-disabled { opacity: .3; }

/* 진행 단계 */
.steps { display: flex; gap: 8px; counter-reset: st; }
.steps li { flex: 1; counter-increment: st; padding-top: 12px; border-top: 3px solid var(--line); font-size: 13px; font-weight: 600; color: var(--mute); }
.steps li::before { content: counter(st) ". "; }
.steps li.is-done { border-color: var(--green-200); color: var(--green-600); }
.steps li.is-on { border-color: var(--green-600); color: var(--ink); }
.timeline { position: relative; }
.timeline li { position: relative; padding: 0 0 20px 32px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 16px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.is-done::before { background: var(--green-600); border-color: var(--green-600); }
.timeline li.is-done::after { background: var(--green-200); }
.timeline li.is-on::before { border-color: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); }
.timeline .tl-title { font-weight: 600; color: var(--mute); font-size: 15px; }
.timeline li.is-done .tl-title, .timeline li.is-on .tl-title { color: var(--ink); }
.timeline .tl-desc { font-size: 13px; color: var(--sub); margin-top: 2px; }

/* ── 오버레이: 모달/토스트/드롭다운 ───────────────────────── */
dialog.modal { width: calc(100% - 32px); max-width: 440px; padding: 0; border: 0; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-pop); color: var(--text); }
dialog.modal::backdrop { background: rgba(20, 26, 23, .5); }
.modal-body { padding: 28px 24px 8px; }
.modal-body .h3 { margin-bottom: 8px; }
.modal-foot { display: flex; gap: 8px; padding: 16px 24px 24px; }
.modal-foot .btn { flex: 1; }
.toast-wrap { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 14px; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-pop); animation: toast-in .25s ease-out; }
.toast .ic { color: var(--yellow); }
.toast.is-error .ic { color: #FF8F8F; }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); z-index: 60; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--text); text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg-soft); }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.dropdown-menu .dm-head { padding: 8px 12px 12px; }
.spinner { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--green-100); border-top-color: var(--green-600); animation: spin .7s linear infinite; }
.loading-block { display: flex; justify-content: center; padding: 40px; }

/* ── 헤더/푸터/탭바 ───────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 28px; width: auto; }
.gnb { display: flex; gap: 4px; flex: 1; }
.gnb > a, .gnb summary { display: inline-flex; align-items: center; gap: 2px; padding: 8px 12px; border-radius: var(--r-sm); font-size: 15px; font-weight: 600; color: var(--sub); }
.gnb > a:hover, .gnb summary:hover { color: var(--ink); background: var(--bg-soft); }
.gnb > a.is-on, .gnb summary.is-on { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-actions .btn { margin-left: 4px; }
.mobile-menu { display: none; }
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 56px 0 40px; font-size: 13px; color: var(--sub); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h2 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.footer-grid li + li { margin-top: 8px; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand img { height: 24px; margin-bottom: 12px; }
.footer-legal { margin-top: 20px; line-height: 1.7; color: var(--mute); font-size: 12px; }
.tabbar { display: none; }

/* ── 랜딩 ─────────────────────────────────────────────────── */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 48px; align-items: center; }
.hero-title { font-size: 56px; line-height: 1.18; font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.hero-desc { margin-top: 20px; font-size: 18px; line-height: 1.65; color: var(--sub); max-width: 460px; }
.hero-search { margin-top: 32px; display: flex; gap: 8px; padding: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; max-width: 540px; }
.hero-search .select:disabled { background-color: transparent; }
.hero-search .btn { flex: none; }
.hero-search:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(18, 87, 63, .14); }
.hero-search .select { border: 0; box-shadow: none; height: 48px; font-weight: 600; }
.hero-search .sep { width: 1px; background: var(--line); margin: 10px 0; }
.hero-cta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; color: var(--sub); }
.hero-facts { margin-top: 40px; display: flex; gap: 32px; }
.hero-facts dt { font-size: 13px; color: var(--mute); }
.hero-facts dd { font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.hero-stage { position: relative; height: 600px; }
.hero-stage::before { content: ""; position: absolute; left: -40px; right: -200px; top: 56px; bottom: 0; background: var(--green-50); border-radius: 48px 0 0 0; }
.hero-stage .phone-a { position: absolute; left: 0; top: 0; z-index: 2; }
.hero-stage .phone-b { position: absolute; left: 252px; top: 96px; z-index: 1; }
.hero-note { position: absolute; left: 300px; bottom: 132px; z-index: 3; display: flex; gap: 10px; align-items: center; padding: 12px 16px 12px 12px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-pop); font-size: 13px; font-weight: 600; color: var(--ink); }
.hero-note .hn-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--yellow); color: var(--green-900); display: flex; align-items: center; justify-content: center; }
.hero-note small { display: block; font-weight: 400; color: var(--sub); font-size: 12px; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .lead { margin-top: 12px; }
.section-title { font-size: 36px; line-height: 1.3; font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.value { background: var(--bg-soft); border-radius: var(--r-xl); padding: 28px 28px 32px; display: flex; flex-direction: column; }
.value-demo { height: 168px; margin-bottom: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 8px; overflow: hidden; }
.value h3 { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.015em; line-height: 1.4; }
.value p { margin-top: 8px; color: var(--sub); }
.exam-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.exam-tile { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); min-height: 260px; }
.exam-tile h3 a { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 4px; }
.exam-tile h3 a:hover { color: var(--green-600); }
.exam-tile .cnt { margin-top: 4px; font-size: 13px; color: var(--mute); }
.exam-tile ul { margin-top: 20px; display: flex; flex-direction: column; gap: 2px; }
.exam-tile li a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; margin: 0 -12px; border-radius: var(--r-sm); font-size: 15px; font-weight: 500; color: var(--text); }
.exam-tile li a:hover { background: var(--green-50); color: var(--green-600); }
.exam-tile li a .ic { color: var(--line-strong); }
.how { background: var(--bg-soft); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: center; }
.how-steps { counter-reset: how; }
.how-steps li { counter-increment: how; position: relative; padding: 24px 0 24px 64px; border-top: 1px solid var(--line); }
.how-steps li:last-child { border-bottom: 1px solid var(--line); }
.how-steps li::before { content: counter(how); position: absolute; left: 0; top: 24px; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--green-600); font-size: 16px; }
.how-steps h3 { font-size: 18px; font-weight: 700; color: var(--ink); }
.how-steps p { margin-top: 4px; color: var(--sub); }
.how-stage { position: relative; display: flex; justify-content: center; }
.mentor-band { background: var(--green-600); color: #fff; border-radius: 32px; padding: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.mentor-band .section-title { color: #fff; }
.mentor-band .lead { color: rgba(255, 255, 255, .78); margin-top: 16px; }
.mentor-band .btn { margin-top: 32px; }
.band-list li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.band-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.band-list .bl-k { flex: none; width: 96px; font-size: 22px; font-weight: 800; color: var(--yellow); letter-spacing: -.02em; }
.band-list .bl-v { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .86); }
.band-list .bl-v strong { display: block; color: #fff; font-size: 16px; }
.final-cta { text-align: center; padding: 104px 0; }
.final-cta .row { justify-content: center; margin-top: 32px; }

/* 스마트폰 목업 — 실제 제품 UI를 축소해 담습니다 */
.phone { width: 288px; height: 588px; border-radius: 44px; background: var(--ink); padding: 10px; box-shadow: 0 32px 64px rgba(8, 42, 31, .22), 0 4px 12px rgba(8, 42, 31, .1); flex: none; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; font-size: 11px; line-height: 1.45; color: var(--text); }
.phone-screen::before { content: ""; position: absolute; top: 8px; left: 50%; width: 76px; height: 22px; margin-left: -38px; border-radius: 12px; background: var(--ink); z-index: 3; }
.ps-status { height: 38px; flex: none; }
.ps-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px; font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.ps-bar .ic { color: var(--sub); }
.ps-body { flex: 1; padding: 0 14px; overflow: hidden; }
.ps-chips { display: flex; gap: 5px; margin-bottom: 10px; }
.ps-chip { height: 24px; padding: 0 9px; border-radius: 12px; border: 1px solid var(--line-strong); font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; }
.ps-chip.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.ps-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 8px; background: var(--surface); }
.ps-row { display: flex; align-items: center; gap: 9px; }
.ps-av { width: 32px; height: 32px; border-radius: 50%; background: var(--green-100); color: var(--green-700); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.ps-av.t1 { background: var(--yellow-soft); color: #6B5200; } .ps-av.t2 { background: #E3ECFF; color: #2447A8; }
.ps-name { font-size: 12px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 3px; }
.ps-name .ic { color: var(--green-600); }
.ps-exam { font-size: 10px; font-weight: 600; color: var(--green-600); }
.ps-text { margin-top: 8px; font-size: 11px; color: var(--text); }
.ps-tags { display: flex; gap: 4px; margin-top: 8px; }
.ps-tag { height: 19px; padding: 0 6px; border-radius: 5px; background: var(--bg-soft); font-size: 9.500px; color: var(--sub); display: inline-flex; align-items: center; }
.ps-foot { margin-top: auto; padding: 10px 14px 16px; border-top: 1px solid var(--line); }
.ps-btn { height: 38px; border-radius: 11px; background: var(--green-600); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ps-tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 8px 8px 14px; border-top: 1px solid var(--line); color: var(--mute); font-size: 9px; font-weight: 600; }
.ps-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ps-tabbar .on { color: var(--green-600); }
.ps-chat { display: flex; flex-direction: column; gap: 7px; padding-top: 4px; }
.ps-bubble { max-width: 78%; padding: 8px 11px; border-radius: 14px; font-size: 11px; line-height: 1.5; }
.ps-bubble.them { background: var(--bg-soft); border-top-left-radius: 4px; align-self: flex-start; color: var(--ink); }
.ps-bubble.me { background: var(--green-600); color: #fff; border-top-right-radius: 4px; align-self: flex-end; }
.ps-time { font-size: 9px; color: var(--mute); align-self: center; margin: 2px 0; }
.ps-input { display: flex; align-items: center; gap: 8px; margin: auto 12px 14px; padding: 0 6px 0 14px; height: 38px; border-radius: 19px; background: var(--bg-soft); color: var(--mute); font-size: 11px; justify-content: space-between; }
.ps-input i { width: 28px; height: 28px; border-radius: 50%; background: var(--green-600); color: #fff; display: flex; align-items: center; justify-content: center; }
.ps-h { font-size: 13px; font-weight: 800; color: var(--ink); margin: 4px 0 8px; letter-spacing: -.01em; }
.ps-slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.ps-slot { height: 30px; border-radius: 9px; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: 10.500px; font-weight: 600; }
.ps-slot.on { background: var(--green-50); border-color: var(--green-600); color: var(--green-600); box-shadow: inset 0 0 0 1px var(--green-600); }
.ps-days { display: flex; gap: 5px; margin-bottom: 10px; }
.ps-day { flex: 1; padding: 6px 0; border-radius: 10px; text-align: center; font-size: 9px; color: var(--mute); border: 1px solid var(--line); }
.ps-day b { display: block; font-size: 13px; color: var(--ink); }
.ps-day.on { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, .7); } .ps-day.on b { color: var(--on-ink); }
.ps-kv { display: flex; justify-content: space-between; padding: 7px 0; font-size: 11px; border-bottom: 1px solid var(--line); }
.ps-kv b { color: var(--ink); }
.mock-caption { margin-top: 16px; font-size: 12px; color: var(--mute); text-align: center; }

/* ── 멘토 탐색/프로필 ─────────────────────────────────────── */
.page-head { padding: 40px 0 24px; }
.page-head .h1 + p { margin-top: 8px; color: var(--sub); font-size: 16px; }
.filterbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) repeat(3, minmax(0, .8fr)) auto; gap: 8px; padding: 16px; background: var(--bg-soft); border-radius: var(--r-lg); }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 16px; flex-wrap: wrap; }
.profile-hero { display: flex; gap: 24px; align-items: flex-start; }
.profile-name { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.3; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-headline { margin-top: 6px; font-size: 17px; color: var(--text); }
.pass-list { margin-top: 20px; display: grid; gap: 8px; }
.pass-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--green-50); }
.pass-item .pi-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--green-600); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.pass-item .pi-title { font-weight: 700; color: var(--ink); }
.pass-item .pi-meta { font-size: 13px; color: var(--sub); }
.profile-section { padding: 40px 0; border-top: 1px solid var(--line); }
.profile-section > .h2 { margin-bottom: 16px; font-size: 21px; }
.sticky-card { position: sticky; top: calc(var(--header-h) + 24px); }
.product-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.product-row + .product-row { border-top: 1px solid var(--line); }
.slot-days { display: flex; flex-direction: column; gap: 16px; }
.slot-day-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.slot-grid .optcard-body { padding: 10px 8px; text-align: center; font-weight: 600; font-size: 14px; }
.slot-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: var(--r-sm); background: var(--bg-soft); font-size: 13px; font-weight: 600; color: var(--text); }
.review { padding: 20px 0; }
.review + .review { border-top: 1px solid var(--line); }
.review-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.review-reply { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-soft); font-size: 14px; }
.review-reply b { display: block; font-size: 13px; color: var(--green-600); margin-bottom: 2px; }
.policy-card { display: flex; gap: 16px; align-items: flex-start; }
.policy-card .pc-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--green-50); color: var(--green-600); display: flex; align-items: center; justify-content: center; flex: none; }
.policy-card > .ic { color: var(--line-strong); margin-top: 12px; }
.safe-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.safe-points li { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-lg); background: var(--bg-soft); font-size: 14px; color: var(--sub); line-height: 1.55; }
.safe-points strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.safe-points .sp-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--green-600); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.hotline { margin-top: 12px; display: grid; gap: 6px; }
.hotline a { display: flex; align-items: baseline; gap: 12px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface); font-size: 14px; color: var(--text); }
.hotline a:hover { outline: 1px solid #E5A3A3; }
.hotline b { width: 52px; flex: none; white-space: nowrap; font-size: 17px; font-weight: 800; color: var(--danger); font-variant-numeric: tabular-nums; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-links a { color: var(--text); font-weight: 500; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links a.is-strong { font-weight: 800; color: var(--ink); }
.mobile-cta { display: none; }
.rating-big { font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }

/* ── 인증/폼 페이지 ───────────────────────────────────────── */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: flex; align-items: flex-start; justify-content: center; padding: 64px 24px 96px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .h1 { font-size: 28px; }
.auth-card .lead { font-size: 15px; margin: 8px 0 32px; }
.auth-alt { margin-top: 24px; text-align: center; font-size: 14px; color: var(--sub); }
.wizard-head { margin-bottom: 32px; }
.wizard-head .steps { margin-bottom: 32px; }

/* ── 마이페이지/주문 ──────────────────────────────────────── */
.app-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.side-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.side-nav .sn-group + .sn-group { margin-top: 24px; }
.side-nav .sn-title { font-size: 12px; font-weight: 700; color: var(--mute); padding: 0 12px 8px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 15px; font-weight: 500; color: var(--sub); }
.side-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.side-nav a.is-on { background: var(--green-50); color: var(--green-600); font-weight: 700; }
.side-nav a .cnt { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--green-600); background: var(--green-100); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.next-action { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--green-600); color: #fff; }
.next-action .na-ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; flex: none; color: var(--yellow); }
.next-action .na-title { font-weight: 700; font-size: 16px; }
.next-action .na-desc { font-size: 14px; color: rgba(255, 255, 255, .78); }
.next-action .btn { margin-left: auto; flex: none; }
.order-item { display: flex; align-items: center; gap: 16px; padding: 18px 24px; }
a.order-item:hover { background: var(--bg-soft); }
.order-item .oi-title { font-weight: 700; color: var(--ink); }
.order-item .oi-meta { font-size: 13px; color: var(--sub); margin-top: 2px; }
.order-item .oi-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.pay-box { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pay-amount { padding: 24px; background: var(--green-50); }
.pay-amount .pa-label { font-size: 13px; color: var(--sub); }
.pay-amount .pa-value { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }
.pay-rows { padding: 8px 24px; }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.pay-row + .pay-row { border-top: 1px solid var(--line); }
.pay-row dt { color: var(--sub); font-size: 14px; }
.pay-row dd { font-weight: 700; color: var(--ink); font-size: 16px; display: flex; align-items: center; gap: 8px; }
.deadline { display: flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--warn-bg); color: #6B4000; font-size: 14px; font-weight: 600; }
.sess-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.sess-row + .sess-row { border-top: 1px solid var(--line); }
.sess-no { width: 32px; height: 32px; border-radius: 10px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--sub); flex: none; }
.sess-row.is-done .sess-no { background: var(--green-600); color: #fff; }
.noti { display: flex; gap: 14px; padding: 16px 24px; }
.noti.is-unread { background: #FBFDFC; }
.noti .n-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); margin-top: 8px; flex: none; }
.noti.is-read .n-dot { background: transparent; }
.noti-title { font-weight: 600; color: var(--ink); }
.noti-body { font-size: 14px; color: var(--sub); margin-top: 2px; }
.noti-time { font-size: 12px; color: var(--mute); margin-top: 4px; }

/* ── 채팅 ─────────────────────────────────────────────────── */
.chat-shell { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - var(--header-h) - 48px); min-height: 480px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list-head { padding: 20px 20px 12px; font-size: 20px; font-weight: 800; color: var(--ink); }
.chat-room { display: flex; gap: 12px; padding: 14px 20px; align-items: center; }
.chat-room:hover { background: var(--bg-soft); }
.chat-room.is-on { background: var(--green-50); }
.chat-room .cr-name { font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 8px; }
.chat-room .cr-name time { font-size: 12px; font-weight: 400; color: var(--mute); flex: none; }
.chat-room .cr-last { font-size: 13px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; justify-content: space-between; gap: 8px; }
.chat-room .cr-last span:first-child { overflow: hidden; text-overflow: ellipsis; }
.unread { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.chat-main { display: flex; flex-direction: column; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.chat-head .ch-name { font-weight: 700; color: var(--ink); }
.chat-head .ch-sub { font-size: 12px; color: var(--mute); }
.chat-scroll { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.chat-date { align-self: center; margin: 12px 0 8px; padding: 4px 12px; border-radius: 12px; background: var(--bg-soft); font-size: 12px; color: var(--sub); }
.msg { display: flex; align-items: flex-end; gap: 6px; max-width: 76%; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .bubble { padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; background: var(--bg-soft); color: var(--ink); border-top-left-radius: 6px; }
.msg.me .bubble { background: var(--green-600); color: #fff; border-top-left-radius: 18px; border-top-right-radius: 6px; }
.msg-stack { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.msg.me .msg-stack { align-items: flex-end; }
.msg-img { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); max-width: 240px; }
.msg-img img { display: block; width: 100%; max-height: 280px; object-fit: cover; min-width: 96px; min-height: 64px; }
.msg-file { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); max-width: 260px; }
.msg-file:hover { border-color: var(--ink); }
.msg-file .mf-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--green-50); color: var(--green-600); display: flex; align-items: center; justify-content: center; flex: none; }
.msg-file .mf-text { min-width: 0; display: flex; flex-direction: column; }
.msg-file .mf-name { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-file .mf-size { font-size: 12px; color: var(--mute); }
.msg .bubble.is-hidden { font-style: normal; color: var(--mute); background: var(--bg-soft); }
.msg .meta { font-size: 11px; color: var(--mute); white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.msg .meta .read { color: var(--green-600); font-weight: 600; }
.msg .msg-report { opacity: 0; color: var(--mute); padding: 4px; }
.msg:hover .msg-report, .msg-report:focus-visible { opacity: 1; }
.chat-form { display: flex; align-items: flex-end; gap: 4px; padding: 12px 16px 12px 8px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; margin-right: 4px; min-height: 44px; max-height: 120px; height: 44px; padding: 10px 16px; border-radius: 22px; border: 1px solid var(--line-strong); resize: none; font-size: 16px; line-height: 1.4; }
.chat-form textarea:focus { outline: 0; border-color: var(--green-600); }
.chat-clip { width: 44px; height: 44px; border-radius: 50%; color: var(--sub); display: flex; align-items: center; justify-content: center; flex: none; }
.chat-clip:hover { background: var(--bg-soft); color: var(--ink); }
.chat-attach { display: flex; align-items: center; gap: 8px; margin: 0 16px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--green-50); color: var(--green-700); font-size: 13px; font-weight: 600; }
.chat-attach .ca-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-attach button { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--green-700); }
.chat-attach button:hover { background: var(--green-100); }
.chat-send { width: 44px; height: 44px; border-radius: 50%; background: var(--green-600); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.chat-send:disabled { background: var(--line-strong); }
.chat-closed { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--bg-soft); font-size: 14px; color: var(--sub); text-align: center; }
.chat-state { align-self: center; font-size: 12px; color: var(--mute); padding: 4px 0; }

/* ── 관리자 ───────────────────────────────────────────────── */
.admin { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; background: var(--bg-soft); }
.admin-side { background: var(--green-900); color: rgba(255, 255, 255, .7); padding: 20px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { padding: 4px 12px 20px; }
.admin-side .brand img { height: 24px; }
.admin-side .as-title { padding: 16px 12px 6px; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .4); }
.admin-side a.as-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; }
.admin-side a.as-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-side a.as-link.is-on { background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; }
.admin-side a.as-link .cnt { margin-left: auto; background: var(--yellow); color: var(--green-900); font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; }
.admin-main { min-width: 0; }
.admin-top { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.admin-top .at-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.admin-body { padding: 32px; max-width: 1280px; }
.admin-body .h2 { margin-bottom: 4px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: block; }
a.stat:hover { border-color: var(--ink); }
.stat .st-label { font-size: 13px; color: var(--sub); display: flex; align-items: center; gap: 6px; }
.stat .st-value { margin-top: 8px; font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .st-sub { margin-top: 4px; font-size: 12px; color: var(--mute); }
.stat.is-alert { border-color: #EBCB6A; background: var(--warn-bg); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.toolbar .input-sm { width: 240px; }
.toolbar .select-sm { width: auto; min-width: 128px; }
.toolbar .spacer { flex: 1; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 700; color: var(--sub); background: var(--bg-soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FBFCFB; }
.table .t-strong { font-weight: 600; color: var(--ink); }
.table .t-sub { font-size: 12px; color: var(--mute); }
.table .t-right { text-align: right; }
.table .t-actions { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.table td.t-empty { padding: 56px 16px; text-align: center; color: var(--mute); }
.admin-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; max-width: 760px; }
.admin-form + .admin-form { margin-top: 16px; }
.admin-form .h3 { margin-bottom: 4px; }
.admin-form .form-sub { color: var(--sub); font-size: 14px; margin-bottom: 24px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-row .field + .field { margin-top: 0; }
.field-row + .field, .field + .field-row, .field-row + .field-row { margin-top: 20px; }
.tree-l1 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 12px; overflow: hidden; }
.tree-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.tree-row + .tree-row, .tree-l2 { border-top: 1px solid var(--line); }
.tree-row.l1 { background: var(--bg-soft); font-weight: 700; color: var(--ink); padding: 14px 16px; }
.tree-row.l2 { padding-left: 32px; font-weight: 600; color: var(--ink); }
.tree-row.l3 { padding-left: 56px; font-size: 14px; }
.tree-row .tr-slug { font-size: 12px; color: var(--mute); }
.tree-row .tr-actions { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.tree-row.is-off { opacity: .5; }
.doc-preview { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--bg-soft); }
.doc-preview img { max-height: 560px; margin: 0 auto; }
.chatlog { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; font-size: 14px; background: var(--bg-soft); }
.chatlog p { padding: 6px 0; }
.chatlog p.is-target { background: var(--yellow-soft); margin: 0 -8px; padding: 6px 8px; border-radius: 6px; }

/* ── 설치 마법사 ──────────────────────────────────────────── */
.install { min-height: 100vh; display: grid; grid-template-columns: 400px minmax(0, 1fr); }
.install-side { background: var(--green-600); color: #fff; padding: 48px 40px; display: flex; flex-direction: column; }
.install-side img { height: 28px; align-self: flex-start; }
.install-side h1 { margin-top: 56px; font-size: 30px; line-height: 1.35; font-weight: 800; letter-spacing: -.02em; }
.install-side p { margin-top: 12px; color: rgba(255, 255, 255, .76); }
.install-steps { margin-top: 48px; }
.install-steps li { display: flex; align-items: center; gap: 14px; padding: 12px 0; font-weight: 600; color: rgba(255, 255, 255, .5); }
.install-steps .is-no { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .4); display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.install-steps li.is-on { color: #fff; }
.install-steps li.is-on .is-no { background: var(--yellow); border-color: var(--yellow); color: var(--green-900); }
.install-steps li.is-done { color: rgba(255, 255, 255, .86); }
.install-steps li.is-done .is-no { background: rgba(255, 255, 255, .16); border-color: transparent; }
.install-side .install-foot { margin-top: auto; font-size: 12px; color: rgba(255, 255, 255, .5); }
.install-main { padding: 72px 64px; max-width: 720px; }
.install-main .h1 { margin-bottom: 8px; }
.install-main .lead { margin-bottom: 32px; font-size: 16px; }
.check-list { border: 1px solid var(--line); border-radius: var(--r-lg); }
.check-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 20px; }
.check-row + .check-row { border-top: 1px solid var(--line); }
.check-row .cr-ic { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.check-row.ok .cr-ic { background: var(--ok-bg); color: var(--ok); }
.check-row.fail .cr-ic { background: var(--danger-bg); color: var(--danger); }
.check-row.optional .cr-ic { background: var(--warn-bg); color: var(--warn); }
.check-row.pending .cr-ic { background: var(--bg-soft); }
.check-row .cr-name { font-weight: 600; color: var(--ink); }
.check-row .cr-val { margin-left: auto; font-size: 13px; color: var(--sub); text-align: right; flex: none; }
.check-row .cr-help { font-size: 13px; color: var(--danger); margin-top: 2px; }
.check-row.optional .cr-help { color: var(--warn); }

/* ── 오류 페이지 ──────────────────────────────────────────── */
.error-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 24px; }
.error-code { font-size: 96px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--green-100); }
.error-page .h1 { margin-top: 8px; }
.error-page p { margin-top: 12px; color: var(--sub); max-width: 420px; }
.error-page .row { margin-top: 32px; }

/* ==========================================================================
   반응형 — 태블릿(≤1024) / 모바일(≤720)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { height: 520px; max-width: 520px; margin: 24px auto 0; width: 100%; }
  .hero-stage::before { right: -24px; left: -24px; border-radius: 40px 40px 0 0; }
  .hero-title { font-size: 48px; }
  .exam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .mentor-band { grid-template-columns: minmax(0, 1fr); padding: 48px; gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
  .filterbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin { grid-template-columns: minmax(0, 1fr); }
  .admin-side { position: static; height: auto; display: flex; overflow-x: auto; padding: 8px 12px; gap: 2px; align-items: center; scrollbar-width: none; }
  .admin-side .brand { padding: 4px 12px 4px 4px; }
  .admin-side .as-title { display: none; }
  .admin-side a.as-link { white-space: nowrap; }
  .admin-top { position: static; padding: 0 20px; }
  .admin-body { padding: 24px 20px; }
  .install { grid-template-columns: minmax(0, 1fr); }
  .install-side { padding: 28px 24px; }
  .install-side h1 { margin-top: 24px; font-size: 22px; }
  .install-steps { display: flex; gap: 6px; margin-top: 20px; }
  .install-steps li { flex: 1; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 11px; padding: 0; }
  .install-side .install-foot { display: none; }
  .install-main { padding: 40px 24px 72px; }
}
@media (max-width: 720px) {
  :root { --header-h: 56px; }
  body { font-size: 15px; }
  .container { padding: 0 20px; }
  .hide-m { display: none !important; }
  .page { padding-top: 24px; padding-bottom: 72px; }
  .section { padding: 64px 0; }
  .h1 { font-size: 26px; }
  .h2 { font-size: 21px; }
  .display { font-size: 30px; }
  .grid-2, .grid-3, .grid-4, .value-grid, .field-row { grid-template-columns: minmax(0, 1fr); }
  .field-row .field + .field { margin-top: 20px; }
  .split, .split-wide, .app-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gnb, .header-actions .hide-m { display: none; }
  .site-header .container { gap: 12px; }
  .brand img { height: 24px; }
  .mobile-menu { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--surface); z-index: 49; padding: 16px 20px 32px; overflow-y: auto; }
  .mobile-menu a.mm-link { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; font-size: 18px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
  .mobile-menu .mm-actions { display: grid; gap: 8px; margin-top: 24px; }
  body.has-tabbar { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 48; background: var(--header-bg); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; font-size: 11px; font-weight: 600; color: var(--mute); position: relative; }
  .tabbar a.is-on { color: var(--green-600); }
  .tabbar .dot { top: 0; right: calc(50% - 16px); }
  .toast-wrap { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .safe-points { grid-template-columns: minmax(0, 1fr); }
  .safe-points li { flex-direction: row; align-items: flex-start; padding: 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer { padding: 40px 0 32px; }
  /* 랜딩 */
  .hero { padding-top: 32px; }
  .hero-title { font-size: 36px; letter-spacing: -.03em; }
  .hero-desc { font-size: 16px; margin-top: 16px; }
  .hero-search { flex-direction: column; border-radius: 16px; margin-top: 24px; }
  .hero-search .sep { display: none; }
  .hero-search .select { background-color: var(--bg-soft); border-radius: 10px; }
  .hero-facts { gap: 20px; margin-top: 28px; }
  .hero-facts dd { font-size: 15px; }
  .hero-stage { height: 440px; margin-top: 32px; }
  .hero-stage::before { top: 40px; left: -20px; right: -20px; border-radius: 32px 32px 0 0; }
  .hero-stage .phone { transform: scale(.78); transform-origin: top left; }
  .hero-stage .phone-a { left: 0; }
  .hero-stage .phone-b { left: 46%; top: 72px; }
  .hero-note { display: none; }
  .section-title { font-size: 26px; }
  .section-head { margin-bottom: 32px; }
  .value { padding: 20px 20px 24px; border-radius: 20px; }
  .value-demo { height: 152px; margin-bottom: 20px; }
  .value h3 { font-size: 18px; }
  .exam-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .exam-tile { min-height: 0; padding: 20px; border-radius: 20px; }
  .how-steps li { padding-left: 56px; }
  .how-stage .phone { transform: scale(.9); margin: -28px 0; }
  .mentor-band { padding: 32px 24px; border-radius: 24px; margin: 0 -4px; }
  .band-list .bl-k { width: 80px; font-size: 19px; }
  .final-cta { padding: 72px 0; }
  .final-cta .row { flex-direction: column; align-items: stretch; }
  /* 탐색/프로필 */
  .page-head { padding: 24px 0 16px; }
  .filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .filterbar .btn { grid-column: 1 / -1; }
  .profile-hero { gap: 16px; }
  .profile-hero .avatar-xl { width: 72px; height: 72px; font-size: 26px; }
  .profile-name { font-size: 22px; }
  .profile-headline { font-size: 15px; }
  .profile-section { padding: 32px 0; }
  .sticky-card { position: static; }
  .mobile-cta { display: flex; gap: 12px; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 48; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .mobile-cta .mc-price { flex: none; font-size: 12px; color: var(--sub); line-height: 1.3; }
  .mobile-cta .mc-price b { display: block; font-size: 17px; color: var(--ink); }
  .mobile-cta .btn { flex: 1; }
  body.has-mobile-cta { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  body.has-mobile-cta .toast-wrap { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .auth-wrap { padding: 32px 20px 64px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  /* 마이페이지 */
  .side-nav { position: static; display: flex; gap: 6px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav .sn-group { display: contents; }
  .side-nav .sn-title { display: none; }
  .side-nav a { flex: none; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; }
  .side-nav a .ic { display: none; }
  .side-nav a.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
  .side-nav a.is-on .cnt { background: rgba(255, 255, 255, .2); color: #fff; }
  .side-nav a .cnt { margin-left: 4px; }
  .next-action { flex-wrap: wrap; padding: 20px; }
  .next-action .btn { margin-left: 0; width: 100%; }
  .card-pad { padding: 20px; }
  .card-head { padding: 16px 20px; }
  .list-item, .order-item, .noti { padding-left: 20px; padding-right: 20px; }
  .order-item { flex-wrap: wrap; gap: 12px; }
  .order-item .oi-right { margin-left: 0; width: 100%; justify-content: space-between; padding-left: 62px; }
  .pay-amount .pa-value { font-size: 28px; }
  .kv { grid-template-columns: 88px minmax(0, 1fr); }
  /* 채팅 */
  .chat-shell { grid-template-columns: minmax(0, 1fr); border: 0; border-radius: 0; margin: 0 -20px; height: auto; min-height: 0; }
  .chat-shell.in-room .chat-list { display: none; }
  .chat-shell:not(.in-room) .chat-main { display: none; }
  .chat-shell.in-room { position: fixed; inset: var(--header-h) 0 0 0; margin: 0; z-index: 47; height: auto; }
  .chat-list { border-right: 0; }
  .msg { max-width: 86%; }
  .msg .msg-report { opacity: 1; }
  body.chat-open .tabbar { display: none; }
  body.chat-open { padding-bottom: 0; overflow: hidden; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat .st-value { font-size: 22px; }
  .toolbar .input-sm { width: 100%; }
  .admin-form { padding: 20px; }
  .error-code { font-size: 72px; }
}

/* ==========================================================================
   인터랙션 컴포넌트 v1.3
   토글 · 찜 · 전송 · 체크박스 · 라디오 · 별점 · 다크 모드 · 스피너 · 스켈레톤
   프로그래스 바 · 무한 스크롤 · 플로팅 라벨 · 스테퍼 · 흔들기 · 드롭다운 · 바텀 시트
   ========================================================================== */

/* ── 토글 스위치 ───────────────────────────────────────────── */
.switch input { cursor: pointer; transition: background-color .2s; }
.switch input::after { box-shadow: 0 1px 3px rgba(0, 0, 0, .28); transition: transform .3s var(--ease-spring), width .15s; }
.switch input:active::after { width: 27px; }
.switch input:checked:active::after { transform: translateX(13px); }
.switch input:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; }
.switch input:disabled { opacity: .5; cursor: not-allowed; }
.switch-inline { display: inline-flex; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.switch-inline input { width: 40px; height: 24px; border-radius: 12px; }
.switch-inline input::after { width: 18px; height: 18px; }
.switch-inline input:checked::after { transform: translateX(16px); }
.switch-inline input:active::after { width: 22px; }
.switch-inline input:checked:active::after { transform: translateX(12px); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ── 찜(좋아요) 버튼 ───────────────────────────────────────── */
.like { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 8px; border-radius: 18px; color: var(--mute); font-size: 13px; font-weight: 700; transition: color .15s, background-color .15s, border-color .15s; -webkit-tap-highlight-color: transparent; }
.like:hover { color: #E5484D; background: var(--danger-bg); }
.like .like-ic { position: relative; display: flex; }
.like.is-on { color: #E5484D; }
.like.is-on svg { fill: currentColor; }
.like.is-pop .like-ic { animation: like-pop .45s var(--ease-spring); }
.like.is-pop .like-ic::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid #E5484D; animation: like-ring .5s ease-out forwards; }
.like.is-pop .like-ic::before { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; color: #FFB02E; box-shadow: 0 -18px 0 currentColor, 16px -9px 0 #E5484D, 16px 9px 0 currentColor, 0 18px 0 #E5484D, -16px 9px 0 currentColor, -16px -9px 0 #E5484D; animation: like-spark .55s ease-out forwards; }
@keyframes like-pop { 0% { transform: scale(.55); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes like-ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
@keyframes like-spark { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.1); opacity: 0; } }
.like-lg { height: 44px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 14px; }
.like-lg .like-ic { color: var(--mute); }
.like-lg.is-on { border-color: #F3B4B6; color: var(--ink); }
.like-lg.is-on .like-ic, .like-lg:hover .like-ic { color: #E5484D; }
.mcard-wrap { position: relative; display: flex; min-width: 0; }
.mcard-wrap > .mcard { flex: 1; min-width: 0; }
.mcard-wrap .mcard-top { padding-right: 36px; }
.mcard-wrap > .like { position: absolute; top: 14px; right: 12px; z-index: 2; }

/* ── 전송 버튼 ─────────────────────────────────────────────── */
.chat-send { position: relative; overflow: hidden; transition: background-color .15s, transform .12s; }
.chat-send:not(:disabled):hover { background: var(--green-700); }
.chat-send:not(:disabled):active { transform: scale(.9); }
.chat-send.is-fly .ic { animation: send-fly .5s ease-in-out; }
.chat-send.is-sending .ic { opacity: 0; }
.chat-send.is-sending::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
.chat-send.is-sending:disabled { background: var(--green-600); }
@keyframes send-fly { 0% { transform: none; opacity: 1; } 45% { transform: translate(26px, -26px); opacity: 0; } 46% { transform: translate(-26px, 26px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.btn-send .ic { transition: transform .25s var(--ease-spring); }
.btn-send:hover .ic { transform: translate(3px, -3px); }
.btn-send.is-loading .ic { opacity: 0; }

/* ── 체크박스 · 라디오 ─────────────────────────────────────── */
.check input { cursor: pointer; transition: background-color .12s, border-color .12s, transform .1s, box-shadow .15s; }
.check:hover input:not(:checked):not(:disabled) { border-color: var(--green-600); }
.check input:active { transform: scale(.88); }
.check input:checked { animation: check-pop .3s var(--ease-spring); }
.check input:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; }
.check input[type=checkbox]:checked + span { color: var(--ink); }
@keyframes check-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.radio-list { display: grid; }
.radio-list .check { align-items: center; justify-content: space-between; flex-direction: row-reverse; padding: 13px 2px; border-bottom: 1px solid var(--line); font-weight: 500; }
.radio-list .check:last-child { border-bottom: 0; }
.radio-list .check input:checked + span { color: var(--ink); font-weight: 700; }
.pillset { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--text); transition: background-color .15s, border-color .15s, color .15s, transform .1s; }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pill input:active + span { transform: scale(.95); }
.pill input:focus-visible + span { outline: 2px solid var(--green-600); outline-offset: 2px; }

/* ── 별점 ──────────────────────────────────────────────────── */
.rating-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rating-input label { transition: color .12s, transform .15s var(--ease-spring); }
.rating-input label:hover { transform: scale(1.15); }
.rating-input input:checked + label { animation: star-pop .4s var(--ease-spring); }
.rating-input.is-set input:checked ~ label { animation: star-wave .4s var(--ease-spring) backwards; }
@keyframes star-pop { 0% { transform: scale(.6) rotate(-18deg); } 60% { transform: scale(1.3) rotate(6deg); } 100% { transform: none; } }
@keyframes star-wave { 0% { transform: scale(.8); } 60% { transform: scale(1.15); } 100% { transform: none; } }
.rating-text { font-size: 15px; font-weight: 700; color: var(--mute); transition: color .15s; }
.rating-text.is-set { color: var(--ink); }

/* ── 다크 모드 토글 ────────────────────────────────────────── */
.theme-toggle .ic { transition: transform .45s var(--ease-spring), opacity .2s; }
.theme-toggle .i-moon { position: absolute; opacity: 0; transform: rotate(-90deg) scale(.4); }
html[data-theme="dark"] .theme-toggle .i-sun { opacity: 0; transform: rotate(90deg) scale(.4); }
html[data-theme="dark"] .theme-toggle .i-moon { opacity: 1; transform: none; }
.logo-d { display: none !important; }
html[data-theme="dark"] .logo-l { display: none !important; }
html[data-theme="dark"] .logo-d { display: block !important; }
html[data-theme="dark"] .toast { background: #2A3731; color: #fff; }
html[data-theme="dark"] .btn-danger { border-color: #5A2A2A; }
html[data-theme="dark"] .like-lg.is-on { border-color: #6B2F33; }
html[data-theme="dark"] .mark { color: var(--ink); }
html[data-theme="dark"] .site-footer { background: #0B110F; }
html[data-theme="dark"] .input:disabled, html[data-theme="dark"] .select:disabled { color: var(--mute); }
html[data-theme="dark"] .avatar img, html[data-theme="dark"] .msg-img img, html[data-theme="dark"] .doc-preview img { filter: brightness(.92); }

/* ── 스피너 ────────────────────────────────────────────────── */
.spinner-sm { width: 14px; height: 14px; border-width: 2px; display: inline-block; vertical-align: -2px; margin-right: 6px; }

/* ── 스켈레톤 로딩 ─────────────────────────────────────────── */
.skel { position: relative; overflow: hidden; background: var(--skel); border-radius: 8px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--skel-hi), transparent); animation: skel 1.3s infinite; }
@keyframes skel { to { transform: translateX(100%); } }
.skel-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.skel-card .sk-top { display: flex; gap: 12px; align-items: center; }
.skel-card .sk-av { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.skel-card .sk-l { height: 12px; margin-top: 10px; }
.skel-card .sk-l.w40 { width: 40%; } .skel-card .sk-l.w60 { width: 60%; } .skel-card .sk-l.w90 { width: 90%; } .skel-card .sk-l.w75 { width: 75%; }
.skel-card .sk-tags { display: flex; gap: 6px; margin-top: 16px; }
.skel-card .sk-tags i { width: 64px; height: 24px; border-radius: 12px; }
.skel-card .sk-foot { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.msg-img.is-loading { display: block; width: 220px; height: 160px; border-radius: 14px; }
.msg-img.is-loading img { opacity: 0; }
.msg-img img { transition: opacity .25s; }
.is-fresh { animation: fresh-in .35s var(--ease-out) backwards; }
@keyframes fresh-in { from { opacity: 0; transform: translateY(10px); } }

/* ── 프로그래스 바 ─────────────────────────────────────────── */
.progress { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: var(--green-600); transition: width .6s var(--ease-out), background-color .3s; }
.progress.is-thin { height: 4px; }
.progress[data-level="1"] > i { background: var(--danger); }
.progress[data-level="2"] > i { background: #E0A100; }
.progress[data-level="3"] > i, .progress[data-level="4"] > i { background: var(--ok); }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 13px; color: var(--sub); }
.progress-head b { color: var(--ink); font-size: 15px; }
#nprog { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300; opacity: 0; pointer-events: none; background: linear-gradient(90deg, var(--green-600), var(--yellow)); border-radius: 0 2px 2px 0; transition: width .4s var(--ease-out), opacity .3s; }
#nprog.is-on { opacity: 1; }
.pw-meter { margin-top: 8px; }
.pw-meter .progress { height: 4px; }
.pw-meter .pw-text { margin-top: 4px; font-size: 12px; color: var(--sub); min-height: 18px; }
.chat-upload { margin: 0 16px 8px; }
.chat-upload .progress { height: 4px; }

/* ── 무한 스크롤 ───────────────────────────────────────────── */
.inf-status { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 0 8px; font-size: 13px; color: var(--mute); }
.inf-status .spinner { width: 22px; height: 22px; }
.inf-end { display: inline-flex; align-items: center; gap: 12px; }
.inf-end::before, .inf-end::after { content: ""; width: 32px; height: 1px; background: var(--line-strong); }
.js-inf .pagination { display: none; }

/* ── 플로팅 라벨 ───────────────────────────────────────────── */
.fl { position: relative; display: block; }
.fl > .input { height: 58px; padding: 24px 14px 8px; }
.fl > .input::placeholder { color: transparent; transition: color .15s; }
.fl > .input:focus::placeholder { color: var(--mute); }
.fl > .fl-label { position: absolute; left: 15px; top: 18px; max-width: calc(100% - 30px); font-size: 16px; line-height: 22px; color: var(--mute); pointer-events: none; transform-origin: left top; transition: transform .18s var(--ease-out), color .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl > .input:focus ~ .fl-label, .fl > .input:not(:placeholder-shown) ~ .fl-label, .fl > .input:-webkit-autofill ~ .fl-label { transform: translateY(-11px) scale(.75); color: var(--sub); font-weight: 600; max-width: calc((100% - 30px) / .75); }
.fl > .input:focus ~ .fl-label { color: var(--green-600); }
.fl.has-error > .fl-label, .fl > .input.is-invalid ~ .fl-label { color: var(--danger); }
.fl-aside { display: flex; justify-content: flex-end; margin-top: 8px; }

/* ── 스테퍼(단계 표시 · 숫자 조절) ─────────────────────────── */
.stepper { display: flex; margin: 4px 0 32px; }
.stepper li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 600; color: var(--mute); transition: color .2s; }
.stepper li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: linear-gradient(var(--green-600), var(--green-600)) no-repeat left / 0% 100%, var(--line); transition: background-size .45s var(--ease-out); }
.stepper li:first-child::before { display: none; }
.stepper li.is-on::before, .stepper li.is-done::before { background-size: 100% 100%, auto; }
.stepper .sp-no { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface) center / 18px no-repeat; color: var(--mute); font-size: 14px; font-weight: 700; transition: background-color .25s, border-color .25s, color .2s, box-shadow .25s, transform .3s var(--ease-spring); }
.stepper li.is-on { color: var(--ink); }
.stepper li.is-on .sp-no { border-color: var(--green-600); color: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); transform: scale(1.06); }
.stepper li.is-done { color: var(--green-600); }
.stepper li.is-done .sp-no { border-color: var(--green-600); background-color: var(--green-600); color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5 9.5-10.5'/%3E%3C/svg%3E"); }
.numstep { display: inline-flex; align-items: stretch; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.numstep:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(18, 87, 63, .14); }
.numstep button { width: 46px; display: flex; align-items: center; justify-content: center; color: var(--sub); transition: background-color .12s, color .12s; }
.numstep button:hover { background: var(--bg-soft); color: var(--ink); }
.numstep button:active { background: var(--green-50); color: var(--green-600); }
.numstep button:disabled { opacity: .3; pointer-events: none; }
.numstep .input { width: 76px; height: auto; border: 0; border-radius: 0; text-align: center; font-weight: 700; padding: 0 4px; box-shadow: none !important; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.numstep .input::-webkit-outer-spin-button, .numstep .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.numstep .input.is-bump { animation: num-bump .2s var(--ease-out); }
@keyframes num-bump { 50% { transform: scale(1.18); } }

/* ── 입력 오류 흔들기 ──────────────────────────────────────── */
.is-shake { animation: shake .42s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(201, 52, 52, .12); }
.check input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(201, 52, 52, .12); }
.rating-input.is-invalid label { color: #EBB9B9; }

/* ── 드롭다운 ──────────────────────────────────────────────── */
.dropdown[open] > .dropdown-menu { animation: dd-in .18s var(--ease-out); transform-origin: top right; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.dropdown > summary .ic:last-child { transition: transform .2s; }
.dropdown[open] > summary .chev { transform: rotate(180deg); }
.dd-select > summary { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink); transition: border-color .15s, box-shadow .15s; user-select: none; }
.dd-select > summary:hover { border-color: var(--mute); }
.dd-select[open] > summary { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(18, 87, 63, .14); }
.dd-select .chev { color: var(--sub); transition: transform .2s; }
.dropdown-menu a.is-current { color: var(--green-600); font-weight: 700; background: var(--green-50); }
.dropdown-menu a .dd-check { margin-left: auto; }
.dropdown-menu { background: var(--surface); }

/* ── 바텀 시트 ─────────────────────────────────────────────── */
dialog.sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 520px; max-height: 88vh; margin: auto auto 0; padding: 0; border: 0; border-radius: 24px 24px 0 0; background: var(--surface); color: var(--text); box-shadow: 0 -8px 40px rgba(0, 0, 0, .2); overflow: hidden; touch-action: pan-y; }
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheet-up .34s cubic-bezier(.2, .9, .3, 1); }
dialog.sheet.is-closing { animation: sheet-down .2s ease-in forwards; }
dialog.modal.is-closing { animation: modal-out .15s ease-in forwards; }
@keyframes modal-out { to { opacity: 0; transform: translateY(6px) scale(.97); } }
dialog.sheet::backdrop { background: rgba(10, 14, 12, .5); animation: fade-in .25s; }
dialog.modal[open] { animation: modal-in .22s var(--ease-out); }
dialog.modal::backdrop { animation: fade-in .2s; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); opacity: .6; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
.sheet-grip { flex: none; padding: 10px 0 6px; cursor: grab; }
.sheet-grip::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto; border-radius: 2px; background: var(--line-strong); }
.sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 20px 12px; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 20px 20px; overscroll-behavior: contain; }
.sheet-body .sheet-group + .sheet-group { margin-top: 24px; }
.sheet-body .sheet-label { font-size: 13px; font-weight: 700; color: var(--sub); margin-bottom: 10px; }
.sheet-foot { flex: none; display: flex; gap: 8px; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1; }
.sheet-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.sheet-option:last-child { border-bottom: 0; }
.sheet-option:hover .so-go { transform: translateX(3px); color: var(--green-600); }
.sheet-option .so-go { color: var(--mute); transition: transform .2s, color .2s; }
.filter-open { display: none; }
.filter-open .cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--green-600); color: #fff; font-size: 11px; }

/* 도메인 변경 화면 */
.domain-now { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--green-50); color: var(--green-600); font-size: 17px; }
.domain-now strong { flex: 1; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.domain-link { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 12px 12px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: var(--bg-soft); }
.domain-link code { flex: 1; min-width: 0; font-size: 13px; overflow-wrap: anywhere; color: var(--ink); }
html[data-theme="dark"] .admin-top { border-bottom-color: var(--line); }

@media (max-width: 720px) {
  dialog.sheet { max-width: none; }
  dialog.modal { width: 100%; max-width: none; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  dialog.modal[open] { animation: sheet-up .32s cubic-bezier(.2, .9, .3, 1); }
  dialog.modal.is-closing { animation: sheet-down .2s ease-in forwards; }
  dialog.modal::before { content: ""; display: block; width: 40px; height: 4px; margin: 10px auto 0; border-radius: 2px; background: var(--line-strong); }
  dialog.modal .modal-body { padding-top: 20px; }
  dialog.modal .modal-foot { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .filter-open { display: inline-flex; }
  .filterbar.is-desktop { display: none; }
  .stepper { margin-bottom: 24px; }
  .stepper li { font-size: 12px; }
  .domain-link { flex-direction: column; align-items: stretch; }
  .mobile-menu, .mobile-cta { background: var(--surface); }
  .numstep { width: 100%; }
  .numstep .input { flex: 1; width: auto; }
}
html[data-theme="dark"] .hero-stage::before { background: #13251E; }
html[data-theme="dark"] .avatar { color: #BFE5D3; }
html[data-theme="dark"] .avatar-t1 { color: #6B5200; } html[data-theme="dark"] .avatar-t2 { color: #2447A8; } html[data-theme="dark"] .avatar-t3 { color: #6B4A2B; }

/* ── 브랜드 페이지 ─────────────────────────────────────────── */
.brand-hero { padding: 40px 0 8px; }
.brand-hero img { height: 48px; width: auto; margin-bottom: 32px; }
.brand-hero .lead { margin-top: 12px; }
.brand-mean { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.brand-mean .bm-k { display: flex; align-items: center; height: 40px; margin-bottom: 12px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--green-600); }
.brand-mean p { font-size: 14px; color: var(--sub); }
.brand-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.brand-logo { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.brand-logo .bl-stage { display: flex; align-items: center; justify-content: center; height: 168px; padding: 24px; background: #fff; }
.brand-logo .bl-stage.is-green { background: #12573F; }
.brand-logo .bl-stage.is-ink { background: #141A17; }
.brand-logo .bl-stage img { max-height: 72px; max-width: 78%; width: auto; }
.brand-logo figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.brand-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bl-clear { display: flex; align-items: center; justify-content: center; margin-top: 16px; padding: 18px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); }
.bl-clear img { height: 36px; width: auto; outline: 1px dashed #1F7A5A; outline-offset: 18px; }
.brand-colors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.brand-colors .bc { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 104px; padding: 14px; border-radius: var(--r-md); font-size: 13px; }
.brand-donts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin-top: 12px; }
.brand-donts li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.brand-donts .ic { color: var(--danger); }
@media (max-width: 720px) { .brand-mean, .brand-logos, .brand-rules, .brand-donts { grid-template-columns: minmax(0, 1fr); } .brand-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); } .brand-hero img { height: 40px; } }
