
  :root {
    --brand-50: #f0f9ff;
    --brand-100: #e0f2fe;
    --brand-200: #bae6fd;
    --brand-300: #7dd3fc;
    --brand-400: #38bdf8;
    --brand-500: #0ea5e9;
    --brand-600: #0284c7;
    --brand-700: #0369a1;
    --brand-800: #075985;
    --ink-50: #f9fafb;
    --ink-100: #f3f4f6;
    --ink-200: #e5e7eb;
    --ink-300: #d1d5db;
    --ink-400: #9ca3af;
    --ink-500: #6b7280;
    --ink-600: #4b5563;
    --ink-700: #374151;
    --ink-800: #1f2937;
    --ink-900: #111827;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --voupin-focus-ring: 0 0 0 3px #e0f2fe;
    --voupin-bottom-nav-h: 64px;
  }

  html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  html, body {
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #111827;
    background-color: #ffffff;
    margin: 0;
  }

  /* 모바일 기본 15px, 데스크탑 16px */
  body {
    font-size: 15px;
    line-height: 1.55;
  }
  @media (min-width: 768px) {
    body {
      font-size: 16px;
      line-height: 1.6;
    }
  }

  *, *::before, *::after {
    box-sizing: border-box;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  /* 포커스 일관성: 마우스에는 outline 숨김, 키보드에는 brand ring */
  :focus {
    outline: none;
  }
  :focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
    border-radius: 4px;
  }

  button {
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
  }
  button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
  }

  input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
  }
  input::placeholder, textarea::placeholder {
    color: #9ca3af;
  }

  /* 이미지 기본 반응형 */
  img, svg, video {
    max-width: 100%;
    display: block;
  }

  /* 모바일 하단 네비 영역만큼 본문 padding 확보 (safe-area 포함) */
  @media (max-width: 767px) {
    body {
      padding-bottom: calc(var(--voupin-bottom-nav-h) + env(safe-area-inset-bottom));
    }
  }

  /* 하단 sticky 네비 자체에도 safe-area 적용용 utility */
  .voupin-safe-bottom {
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* iOS 입력 zoom 방지 (모바일에서 input 최소 16px) */
  @media (max-width: 767px) {
    input, select, textarea {
      font-size: 16px;
    }
  }

  /* 스크롤바 가벼운 톤 */
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 8px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
  }
  ::-webkit-scrollbar-track {
    background: transparent;
  }

  /* ── 공용 레이어 다이얼로그 (voupinDialog) — 화면 정중앙 고정 ── */
  .voupin-dlg-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
  }
  .voupin-dlg {
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: voupin-dlg-in 0.15s ease-out;
  }
  @keyframes voupin-dlg-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: none; }
  }
  .voupin-dlg-header { padding: 18px 20px 0; }
  .voupin-dlg-title { font-size: 16px; font-weight: 600; color: #0f172a; }
  .voupin-dlg-body { padding: 14px 20px; color: #334155; font-size: 14px; line-height: 1.5; }
  .voupin-dlg-input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
  }
  .voupin-dlg-input:focus { outline: none; border-color: #0f172a; }
  .voupin-dlg-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 4px 20px 18px;
  }
  .voupin-dlg-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
  }
  .voupin-dlg-btn-cancel { background: #ffffff; border-color: #cbd5e1; color: #334155; }
  .voupin-dlg-btn-cancel:hover { background: #f8fafc; }
  .voupin-dlg-btn-ok { background: #0f172a; color: #ffffff; }
  .voupin-dlg-btn-ok:hover { background: #1e293b; }
  .voupin-dlg-btn-danger { background: #e11d48; color: #ffffff; }
  .voupin-dlg-btn-danger:hover { background: #be123c; }

  /* ── 공용 로딩 오버레이 (voupinLoading/voupinBusy) ── */
  .voupin-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
  }
  .voupin-loading-box { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .voupin-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #cbd5e1;
    border-top-color: #0f172a;
    border-radius: 50%;
    animation: voupin-spin 0.7s linear infinite;
  }
  @keyframes voupin-spin { to { transform: rotate(360deg); } }
  .voupin-loading-text { font-size: 13px; color: #475569; }
