/* ============================================================
   BYD 마이비와이디홈 — 디자인 시스템 (레이아웃 재설계)
   ============================================================ */

/* ─── 1. DESIGN TOKENS ─── */
:root {
  --primary-50:  #FFF7F3;
  --primary-100: #FFEDE5;
  --primary-200: #FFD9C4;
  --primary-300: #FFBEA0;
  --primary-400: #FF9B6E;
  --primary-500: #FF7849;
  --primary-600: #E5612E;
  --primary-700: #C04A1C;
  --primary-800: #993B16;
  --primary-900: #7A3012;

  --neutral-50:  #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #ECECEC;
  --neutral-300: #DADADA;
  --neutral-400: #B8B8B8;
  --neutral-500: #888888;
  --neutral-600: #666666;
  --neutral-700: #555555;
  --neutral-800: #333333;
  --neutral-900: #1A1A1A;

  --success: #10B981; --success-soft: #ECFDF5;
  --warning: #F59E0B; --warning-soft: #FFFBEB;
  --danger:  #EF4444; --danger-soft:  #FEF2F2;
  --info:    #3B82F6; --info-soft:    #EFF6FF;

  --bg-default: #FFFFFF;
  --bg-subtle:  #FFF7F3;
  --bg-canvas:  #FFFFFF;

  --primary: var(--primary-500);
  --primary-dark: var(--primary-600);
  --primary-soft: var(--primary-100);
  --text: var(--neutral-900);
  --text-2: var(--neutral-700);
  --muted: var(--neutral-500);
  --line: var(--neutral-200);
  --bg: var(--bg-canvas);
  --bg-card: var(--bg-default);

  --font-display: 48px;
  --font-h1: 32px;
  --font-h2: 24px;
  --font-h3: 20px;
  --font-body-lg: 18px;
  --font-body: 16px;
  --font-caption: 14px;
  --font-small: 12px;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 64px; --sp-24: 96px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --radius: var(--radius-md);

  --shadow-sm: 0 1px 3px rgba(255,120,73,.06);
  --shadow-md: 0 4px 14px rgba(255,120,73,.08), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 60px rgba(255,120,73,.12), 0 4px 16px rgba(0,0,0,.04);
  --shadow: var(--shadow-md);

  --sidebar-w: 240px;
}

/* ─── 2. RESET ─── */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--font-body);
  color: var(--text);
  background: var(--bg-canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
body.app-shell { display: flex; flex-direction: column; min-height: 100vh; }
body.app-shell.preview-page { height: 100vh; overflow: hidden; }

/* ─── 3. 글로벌 헤더 — 풀폭 ─── */
.app-header {
  background: var(--bg-default);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  width: 100%;
}
.app-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 var(--sp-6);
}
@media (min-width: 768px) {
  .app-header-inner { height: 80px; padding: 0 var(--sp-12); }
}
@media (min-width: 1200px) {
  .app-header-inner { height: 88px; padding: 0 var(--sp-16); }
}
.app-logo { display: flex; align-items: center; }
.app-logo-img { height: 22px; width: auto; }
@media (min-width: 768px) { .app-logo-img { height: 28px; } }
.app-nav { display: flex; align-items: center; gap: var(--sp-6); }
.app-nav a { font-size: 15px; font-weight: 600; color: var(--text-2); transition: color .15s; }
.app-nav a:hover { color: var(--text); }
.app-nav .app-btn-outline { margin-left: var(--sp-4); }
.app-nav .app-btn-primary { margin-left: -4px; }
@media (min-width: 1024px) {
  .app-nav { gap: var(--sp-8); }
  .app-nav a { font-size: 18px; font-weight: 700; }
  .app-nav .app-btn-outline { margin-left: var(--sp-6); }
  .app-nav .app-btn-primary { margin-left: -2px; }
}
.app-actions { display: flex; align-items: center; gap: var(--sp-3); }
.app-btn-ghost { font-size: 15px; font-weight: 600; color: var(--text-2); padding: 10px 20px; border-radius: var(--radius-pill); }
.app-btn-ghost:hover { color: var(--text); }
a.app-btn-outline, .app-btn-outline { font-size: 14px; font-weight: 600; color: var(--text) !important; background: var(--neutral-100); padding: 8px 18px; border-radius: 10px; transition: background .15s; }
a.app-btn-outline:hover, .app-btn-outline:hover { background: var(--neutral-200); }
@media (min-width: 1024px) {
  a.app-btn-outline, .app-btn-outline { font-size: 15px; padding: 10px 22px; }
}
a.app-btn-primary, .app-btn-primary { font-size: 14px; font-weight: 700; color: #fff !important; background: var(--primary); padding: 8px 18px; border-radius: 10px; transition: background .15s; }
a.app-btn-primary:hover, .app-btn-primary:hover { background: var(--primary-dark); color: #fff !important; }
@media (min-width: 1024px) {
  .app-btn-ghost { font-size: 15px; padding: 10px 20px; }
  a.app-btn-primary, .app-btn-primary { font-size: 15px; padding: 10px 22px; }
}
.app-user { display: flex; align-items: center; gap: var(--sp-4); }
.app-logout { font-size: 13px; color: var(--muted); cursor: pointer; }
.app-logout:hover { color: var(--text-2); }

/* ── 모바일 햄버거 메뉴 ── */
.mobile-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; padding: 4px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.mobile-hamburger span {
  display: block; width: 20px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s cubic-bezier(.4,0,.2,1);
}
.mobile-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-hamburger.open span:nth-child(2) { opacity: 0; }
.mobile-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column;
  background: var(--bg-default); border-top: 1px solid var(--line);
  padding: 0; overflow: hidden;
  max-height: 0; opacity: 0;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .3s cubic-bezier(.4,0,.2,1), padding .35s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { max-height: 300px; opacity: 1; padding: var(--sp-2) 0; }
.mobile-menu-item {
  display: block; padding: 16px var(--sp-6);
  font-size: 16px; font-weight: 600; color: var(--text-2);
  cursor: pointer; border: none; background: none; text-align: center;
  font-family: inherit;
  transform: translateY(-8px); opacity: 0;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s cubic-bezier(.4,0,.2,1), background .15s;
}
.mobile-menu.open .mobile-menu-item { transform: translateY(0); opacity: 1; }
.mobile-menu.open .mobile-menu-item:nth-child(1) { transition-delay: .05s; }
.mobile-menu.open .mobile-menu-item:nth-child(2) { transition-delay: .1s; }
.mobile-menu.open .mobile-menu-item:nth-child(3) { transition-delay: .15s; }
.mobile-menu-item:hover { background: var(--neutral-50); color: var(--text); }
.mobile-menu-primary { color: var(--primary); font-weight: 700; }
.mobile-menu-logout { color: var(--muted); font-size: 14px; }

@media (max-width: 576px) {
  .app-nav-desktop { display: none !important; }
  .mobile-hamburger { display: flex; }
}
@media (min-width: 577px) {
  .mobile-hamburger { display: none !important; }
  .mobile-menu { display: none !important; }
}

/* ─── 4. 글로벌 푸터 — 풀폭 배경 ─── */
.app-footer { border-top: 1px solid var(--line); background: var(--bg-default); padding: var(--sp-12) 0 var(--sp-8); margin-top: auto; }
.app-footer-inner { padding: 0 var(--sp-8); display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); text-align: center; }
@media (min-width: 768px) { .app-footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.app-footer-logo { font-size: 14px; font-weight: 800; color: var(--primary); }
.app-footer-links { display: flex; gap: var(--sp-4); }
.app-footer-links a { font-size: var(--font-small); color: var(--muted); }
.app-footer-links a:hover { color: var(--text-2); }
.app-footer-copy { font-size: var(--font-small); color: var(--neutral-400); }
.app-footer-biz { max-width: 900px; margin: var(--sp-6) auto 0; padding: 0 var(--sp-8); font-size: var(--font-small); line-height: 1.8; color: var(--neutral-400); text-align: center; }
.app-footer-biz p { margin: 2px 0; }
.app-footer-biz a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.app-footer-biz a:hover { color: var(--text-2); }
.app-footer-services { margin-top: var(--sp-3) !important; padding-top: var(--sp-3); border-top: 1px dashed var(--line); }
.app-footer-services a { margin: 0 2px; }
@media (max-width: 640px) {
  .app-footer-biz { font-size: 11px; line-height: 1.7; padding: 0 16px; margin-top: var(--sp-5); }
  .app-footer-biz p { margin: 4px 0; }
  .app-footer-services { font-size: 11px; }
  .app-footer-services a { display: inline-block; margin: 2px 4px; }
}

/* ─── 5. 대시보드 사이드바 레이아웃 ─── */
.dash-shell { display: flex; flex: 1; min-height: 0; }

.dash-sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--bg-default); border-right: 1px solid var(--line);
  padding: var(--sp-6) 0; display: flex; flex-direction: column;
  position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto;
}
.dash-sidebar-menu { list-style: none; margin: 0; padding: 0; }
.dash-sidebar-menu li a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 10px var(--sp-6); font-size: var(--font-caption); font-weight: 600;
  color: var(--text-2); transition: background .12s, color .12s;
}
.dash-sidebar-menu li a:hover { background: var(--neutral-50); color: var(--text); }
.dash-sidebar-menu li a.active { background: var(--primary-soft); color: var(--primary); }
.dash-sidebar-bottom { margin-top: auto; padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--line); }

.dash-main {
  flex: 1; min-width: 0;
  padding: var(--sp-8) var(--sp-8) var(--sp-16);
  background: var(--bg-canvas);
}
@media (min-width: 1440px) { .dash-main { padding: var(--sp-8) var(--sp-16) var(--sp-16); } }

/* 모바일/태블릿: 사이드바 숨김 */
.dash-sidebar { display: none; }
@media (min-width: 1024px) { .dash-sidebar { display: flex; } }
/* 모바일: 햄버거 토글 */
.dash-mobile-header { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4); border-bottom: 1px solid var(--line); background: var(--bg-default); }
@media (min-width: 1024px) { .dash-mobile-header { display: none; } }
.hamburger-btn { background: none; border: none; font-size: 24px; cursor: pointer; padding: 4px; }
.dash-mobile-menu { display: none; background: var(--bg-default); border-bottom: 1px solid var(--line); padding: var(--sp-2) 0; }
.dash-mobile-menu.open { display: block; }
.dash-mobile-menu a { display: block; padding: 12px var(--sp-6); font-size: var(--font-caption); font-weight: 600; color: var(--text-2); }
.dash-mobile-menu a:hover { background: var(--neutral-50); }

/* 대시보드 카드 그리드 */
.dash-cards { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 640px) { .dash-cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.dash-section-title { font-size: var(--font-small); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin: var(--sp-8) 0 var(--sp-3) 0; }
.dash-section-title:first-child { margin-top: 0; }

/* ─── 6. 2분할 레이아웃 (가입, 정보입력) ─── */
.split-layout { display: flex; flex-direction: column; flex: 1; }
.split-left { padding: var(--sp-8) var(--sp-6); background: linear-gradient(160deg, #FFE4D4 0%, #FFDBC7 100%); color: var(--text); }

/* 분할 좌측 — 공통 컴포넌트 */
.split-headline { font-size: 40px; font-weight: 900; line-height: 1.15; margin: 0 0 var(--sp-12); color: var(--text); }
@media (min-width: 1440px) { .split-headline { font-size: 48px; } }
.split-benefits { list-style: none; padding: 0; margin: 0; }
.split-benefits li { display: flex; align-items: flex-start; gap: 16px; margin-bottom: var(--sp-8); }
.split-benefits li .icon-box { width: 44px; height: 44px; background: var(--primary); color: #fff; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(255,120,73,.25); }
.split-benefits li strong { display: block; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.split-benefits li span.desc { font-size: 15px; color: var(--text-2); line-height: 1.5; }

/* 분할 우측 — 공통 폼 카드 */
.split-form-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 28px; width: 100%; }
@media (min-width: 1024px) { .split-form-card { padding: var(--sp-12) var(--sp-8); } }
.split-form-card h2 { font-size: 28px; font-weight: 900; margin: 0 0 8px; }
.split-form-card .subtitle { font-size: 15px; color: var(--text-2); margin: 0 0 32px; }
.split-right { padding: var(--sp-8) var(--sp-6); background: #fff; }
@media (min-width: 1024px) {
  .split-layout { flex-direction: row; min-height: calc(100vh - 72px); }
  .split-left { width: 45%; padding: var(--sp-16) var(--sp-12); display: flex; flex-direction: column; justify-content: center; }
  .split-right { width: 55%; padding: var(--sp-12) var(--sp-12); display: flex; flex-direction: column; justify-content: center; }
}
@media (min-width: 1440px) {
  .split-left { padding: var(--sp-16) var(--sp-24); }
  .split-right { padding: var(--sp-16) var(--sp-24) var(--sp-16) var(--sp-12); }
}

/* ─── 7. 풀폭 앱 페이지 (업종선택, 미리보기) ─── */
.app-full { flex: 1; padding: var(--sp-6) var(--sp-6) var(--sp-12); }
@media (min-width: 768px)  { .app-full { padding: var(--sp-8) var(--sp-8) var(--sp-16); } }
@media (min-width: 1024px) { .app-full { padding: var(--sp-8) var(--sp-12) var(--sp-16); } }
@media (min-width: 1440px) { .app-full { padding: var(--sp-8) var(--sp-16) var(--sp-16); } }

/* ─── 8. 미리보기 레이아웃 — 풀스크린 ─── */
.preview-fullscreen { display: flex; flex-direction: column; position: relative; overflow: hidden; flex: 1; }
/* body가 flex column이므로 flex:1로 남은 공간 전부 차지 */
/* 디바이스 토글 — 상단 검정 바 */
.preview-topbar { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); background: #111; padding: 8px; flex-shrink: 0; }
.device-toggle { display: flex; gap: 2px; background: #222; border-radius: var(--radius-sm); padding: 2px; }
.device-btn { padding: 6px 20px; border: none; border-radius: 4px; background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; color: #888; transition: all .15s; }
.device-btn.active { background: #fff; color: #111; }

/* 헤더 결제 버튼 — 펄스 모션 */
@keyframes pulse-pay { 0%,100%{ box-shadow: 0 0 0 0 rgba(255,120,73,.5); } 50%{ box-shadow: 0 0 0 8px rgba(255,120,73,0); } }
.btn-pay-pulse { animation: pulse-pay 2s ease-in-out infinite; }
.preview-iframe-wrap { flex: 1; background: #111; display: flex; align-items: stretch; justify-content: center; overflow: hidden; min-height: 0; position: relative; }
.preview-iframe-wrap.mode-pc iframe { width: 100%; height: 100%; }
.preview-iframe-wrap.mode-mobile { align-items: center; }
.preview-iframe-wrap.mode-mobile iframe { width: 375px; height: 100%; max-height: 812px; background: #fff; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,.4); }
.preview-iframe-wrap iframe { border: 0; display: block; width: 100%; height: 100%; }
.preview-fallback { display: none; padding: var(--sp-12) var(--sp-6); text-align: center; color: var(--muted); position: absolute; inset: 0; top: 40px; background: var(--neutral-100); }
.preview-fallback.show { display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* 플로팅 사이드 패널 */
.preview-float { position: fixed; right: var(--sp-6); top: 50%; transform: translateY(-50%); width: 320px; background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: 0 16px 48px rgba(0,0,0,.15), 0 4px 12px rgba(0,0,0,.08); padding: var(--sp-6); z-index: 50; display: none; }
.preview-float.open { display: block; }
.preview-float-toggle { background: var(--primary); color: #fff; border: none; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.preview-float-close { position: absolute; top: 12px; right: 12px; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted); }
@media (max-width: 1023px) {
  .preview-float { right: var(--sp-4); left: var(--sp-4); width: auto; top: auto; bottom: var(--sp-4); transform: none; }
}

/* ─── 8-1. 인증 레이아웃 (로그인/가입/비밀번호 찾기) ─── */
.auth-body { background: var(--bg-default); }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: var(--sp-6); }
.auth-card { width: 100%; max-width: 440px; }
@media (min-width: 768px) {
  .auth-body { background: linear-gradient(135deg, #FFF8F5 0%, #FFF1EA 100%); }
  .auth-card { background: #fff; padding: var(--sp-12) 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
}

/* ─── 9. 버튼 ─── */
.btn-primary { width: 100%; padding: var(--sp-4); background: var(--primary); color: #fff; border: none; border-radius: var(--radius-md); font-size: var(--font-body); font-weight: 700; font-family: inherit; cursor: pointer; transition: background .15s; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { background: var(--neutral-300); cursor: not-allowed; }
.btn-secondary { width: 100%; padding: var(--sp-4); background: var(--bg-card); color: var(--text); border: 1.5px solid var(--line); border-radius: var(--radius-md); font-size: var(--font-body); font-weight: 600; font-family: inherit; cursor: pointer; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: none; border: none; color: var(--primary); font-size: var(--font-caption); font-weight: 600; cursor: pointer; padding: var(--sp-2); font-family: inherit; }
.btn-sm { padding: 8px 16px; font-size: var(--font-caption); }
.btn-lg { padding: 18px 24px; font-size: var(--font-body-lg); }

/* ─── 10. 인풋/폼 ─── */
label.field { display: block; margin: var(--sp-4) 0 var(--sp-1); font-size: 13px; color: var(--text-2); font-weight: 500; }
.input, .textarea { width: 100%; padding: 14px var(--sp-4); border: 1.5px solid var(--line); border-radius: var(--radius-md); font-size: var(--font-body); font-family: inherit; color: var(--text); background: var(--bg-card); transition: border-color .15s; }
.input:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,120,73,.08); }
.textarea { resize: vertical; min-height: 96px; }
.input.error { border-color: var(--danger); }
.errmsg { color: var(--danger); font-size: var(--font-small); margin-top: var(--sp-1); }
.savetag { font-size: 11px; color: var(--muted); margin-left: var(--sp-1); }
.savetag.ok { color: var(--success); }
.savetag.err { color: var(--danger); }
.req-mark { color: var(--danger); margin-left: 2px; }

/* ─── 11. 체크박스 / 상태 ─── */
.checkrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; }
.checkrow input { width: 18px; height: 18px; accent-color: var(--primary); }
.checkrow span { font-size: var(--font-caption); }
.checkrow .req { color: var(--danger); font-size: 11px; margin-left: auto; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.on { background: var(--success); } .dot.off { background: var(--danger); } .dot.lock { background: var(--muted); }

/* ─── 12. 카드 ─── */
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6); }
.card .label { font-size: var(--font-small); color: var(--muted); margin-bottom: var(--sp-1); }
.card .value { font-size: 15px; font-weight: 600; }

/* ─── 13. 배지 ─── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: #92400E; }
.badge-danger  { background: var(--danger-soft);  color: var(--danger); }
.badge-info    { background: var(--info-soft);    color: var(--info); }
.badge-muted   { background: var(--neutral-100);  color: var(--muted); }

/* ─── 14. 빈 상태 ─── */
.empty-state { text-align: center; padding: var(--sp-12) var(--sp-6); }
.empty-state-icon { font-size: 48px; margin-bottom: var(--sp-4); opacity: .6; }
.empty-state-text { font-size: var(--font-caption); color: var(--muted); margin-bottom: var(--sp-4); line-height: 1.5; }

/* ─── 15. 스텝퍼 ─── */
.stepper { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.stepper-step { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--font-caption); font-weight: 600; color: var(--neutral-400); }
.stepper-step.active { color: var(--primary); }
.stepper-step.done { color: var(--success); }
.stepper-num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--font-small); font-weight: 700; background: var(--neutral-100); color: var(--neutral-400); }
.stepper-step.active .stepper-num { background: var(--primary); color: #fff; }
.stepper-step.done .stepper-num { background: var(--success); color: #fff; }
.stepper-line { flex: 1; height: 2px; background: var(--neutral-200); min-width: 20px; }
.stepper-line.done { background: var(--success); }

/* ─── 16. 페이지 헤더 ─── */
.page-header { margin-bottom: var(--sp-6); }
.page-header .step { font-size: 13px; color: var(--primary); font-weight: 700; margin-bottom: var(--sp-1); }
.page-header h1 { font-size: 28px; font-weight: 900; margin: 0 0 var(--sp-2); }
.page-header p { font-size: 15px; color: var(--text-2); margin: 0; }
@media (min-width: 768px) { .page-header h1 { font-size: 36px; } .page-header p { font-size: 17px; } }

/* ─── 17. 섹션 리스트 (대시보드) ─── */
.section-list .item { display: flex; align-items: center; padding: 14px var(--sp-4); background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: var(--sp-2); cursor: pointer; transition: border-color .12s; }
.section-list .item:hover { border-color: var(--primary); }
.section-list .item .name { flex: 1; font-size: 15px; font-weight: 600; margin-left: 10px; }
.section-list .item .meta { font-size: var(--font-small); color: var(--muted); margin-right: var(--sp-2); }
.section-list .item .arrow { color: var(--muted); font-size: 18px; }
.section-list .item.locked { background: var(--neutral-100); cursor: not-allowed; }
.section-list .item.locked .arrow { display: none; }

/* ─── 18. sub-card ─── */
.sub-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px var(--sp-4); margin-bottom: var(--sp-2); display: flex; align-items: center; justify-content: space-between; }
.sub-card .name { font-size: var(--font-caption); font-weight: 600; }
.sub-card .desc { font-size: var(--font-small); color: var(--muted); margin-top: 2px; }
.sub-card a { color: var(--primary); font-size: 13px; font-weight: 600; }

/* ─── 19. 유틸리티 ─── */
.text-h1 { font-size: var(--font-h1); font-weight: 800; line-height: 1.3; }
.text-h2 { font-size: var(--font-h2); font-weight: 700; line-height: 1.35; }
.text-h3 { font-size: var(--font-h3); font-weight: 700; line-height: 1.4; }
.text-caption { font-size: var(--font-caption); color: var(--text-2); }
.text-small { font-size: var(--font-small); color: var(--muted); }

/* ─── 20. 알럿 카드 ─── */
.alert-card { padding: 14px var(--sp-4); border-radius: var(--radius-md); margin-bottom: var(--sp-3); }
.alert-card-warning { background: var(--warning-soft); border: 1px solid #FFEAA7; }
.alert-card-info { background: var(--info-soft); border: 1px solid #B8DAFF; }
.alert-card h4 { font-size: var(--font-caption); font-weight: 700; margin: 0 0 6px; }
.alert-card p { font-size: 13px; color: var(--neutral-600); margin: 0 0 10px; }
.alert-card .alert-action { display: inline-block; padding: 10px 20px; background: var(--primary); color: #fff; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; }

/* ─── 21. activate-btn ─── */
.activate-btn { padding: 6px 14px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); font-size: var(--font-small); font-weight: 600; cursor: pointer; margin-left: auto; }
.item.off { opacity: .6; }
.item.off .name { color: var(--neutral-400) !important; }
