  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #fafafa; color: #111; }

  /* ── 로그인 ── */
  .login-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
  }
  .login-box {
    background: #fff; border-radius: 16px; border: 1px solid #ebebeb;
    padding: 40px; width: 360px;
  }
  .login-logo { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
  .login-logo span { color: #0071e3; }
  .login-sub { font-size: 13px; color: #999; margin-bottom: 28px; }
  .login-field {
    width: 100%; padding: 11px 14px; border: 1px solid #ddd; border-radius: 8px;
    font-size: 14px; margin-bottom: 12px; outline: none; font-family: inherit;
  }
  .login-field:focus { border-color: #0071e3; }
  .login-btn {
    width: 100%; padding: 12px; background: #1d1d1f; color: #fff;
    border: none; border-radius: 8px; font-size: 14px; font-weight: 600;
    cursor: pointer; margin-top: 4px; font-family: inherit;
  }
  .login-btn:hover { background: #333; }
  .login-btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .login-error { color: #ff3b30; font-size: 12px; margin-top: 10px; display: none; }

  /* ── 레이아웃 ── */
  .layout { display: flex; min-height: 100vh; }

  /* ── 사이드바 ── */
  .sidebar {
    width: 240px; background: #fff; border-right: 1px solid #ebebeb;
    padding: 28px 0; position: fixed; top: 0; left: 0; height: 100vh;
    display: flex; flex-direction: column;
  }
  .logo { padding: 8px 20px 28px; font-size: 18px; font-weight: 800; border-bottom: 1px solid #ebebeb; cursor: pointer; transition: opacity 0.2s; display: flex; align-items: center; gap: 8px; letter-spacing: -0.3px; flex-wrap: wrap; }
  .logo span { color: #6366f1; }
  .logo:hover { opacity: 0.7; }
  .logo .logo-icon { width: 28px; height: 28px; background: #6366f1; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; color: #fff; flex-shrink: 0; }
  .logo-sub { font-size: 11px; color: #999; font-weight: 400; margin-top: 2px; width: 100%; }
  .nav { padding: 16px 0; flex: 1; }
  .nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 20px; font-size: 13px; color: #666;
    cursor: pointer; transition: all 0.1s; user-select: none;
  }
  .nav-item:hover { color: #111; background: #f5f5f5; }
  .nav-item.active { color: #111; font-weight: 600; background: #f0f0f0; }
  .nav-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #ff3b30;
    margin-left: auto; flex-shrink: 0; display: none;
  }
  .sidebar-footer {
    padding: 20px; border-top: 1px solid #ebebeb; font-size: 12px; color: #999;
  }
  .sidebar-footer strong { display: block; color: #333; font-size: 13px; margin-bottom: 2px; }
  .logout-btn {
    margin-top: 8px; font-size: 12px; color: #0071e3; cursor: pointer;
    background: none; border: none; font-family: inherit; padding: 0;
  }
  .logout-btn:hover { text-decoration: underline; }

  /* ── 메인 ── */
  .main { margin-left: 240px; flex: 1; }
  .topbar {
    background: #fff; padding: 0 32px; height: 56px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #ebebeb; position: sticky; top: 0; z-index: 10;
  }
  .topbar-title { font-size: 15px; font-weight: 600; }
  .admin-chip {
    background: #f0f0f0; color: #666;
    padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
  }
  .content { padding: 28px 32px; max-width: 1400px; }

  /* ── 화면 전환 ── */
  .screen { display: none; }
  .screen.active { display: block; }

  /* ── 통계 ── */
  .stats { display: flex; gap: 1px; background: #ebebeb; border-radius: 12px; overflow: hidden; margin-bottom: 28px; }
  .stat { flex: 1; background: #fff; padding: 20px 24px; }
  .stat-n { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
  .stat-l { font-size: 12px; color: #999; }

  /* ── 섹션 ── */
  .section-title {
    font-size: 13px; font-weight: 600; color: #999;
    text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px;
  }
  .section { margin-bottom: 32px; }

  /* ── 리스트 공통 ── */
  .list-box { background: #fff; border-radius: 12px; border: 1px solid #ebebeb; overflow: hidden; }
  .list-row {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 20px; border-bottom: 1px solid #f5f5f5; transition: background 0.1s;
  }
  .list-row:last-child { border-bottom: none; }
  .list-row.clickable { cursor: pointer; }
  .list-row.clickable:hover { background: #fafafa; }

  /* ── 포스팅 ── */
  .post-name { font-size: 14px; font-weight: 600; }
  .post-sub { font-size: 12px; color: #999; margin-top: 2px; }
  .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
  .dot-green { background: #34c759; }
  .dot-red { background: #ff3b30; }
  .post-time { font-size: 12px; color: #999; margin-left: auto; white-space: nowrap; }

  /* ── 칩 ── */
  .chip { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
  .chip-green { background: #f0fdf4; color: #16a34a; }
  .chip-gray { background: #f5f5f5; color: #999; }
  .chip-red { background: #fef2f2; color: #dc2626; }

  /* ── GBP 배지 (파트너 포털과 동일한 색상 체계) ── */
  .gbp-badge {
    font-size: 11px; font-weight: 600;
    padding: 3px 9px; border-radius: 20px;
    display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  }
  .gbp-badge.verified { background: #e8f5e9; color: #2e7d32; }
  .gbp-badge.unverified { background: #fff8e1; color: #f57c00; }
  .gbp-badge.reminder { background: #e3f2fd; color: #1565c0; }
  .gbp-badge.stale { background: #ff5252; color: #fff; }
  .gbp-badge.none { background: #ffebee; color: #c62828; }
  .gbp-badge.gone { background: #fafafa; color: #616161; border: 1px dashed #999; }

  /* ── GBP 요약 pill (파트너 헤더) ── */
  .gbp-summary {
    display: inline-flex; gap: 4px; align-items: center;
    font-size: 11px; font-weight: 600;
  }
  .gbp-summary .pill {
    padding: 2px 7px; border-radius: 20px; white-space: nowrap;
  }
  .gbp-summary .pill.ok { background: #e8f5e9; color: #2e7d32; }
  .gbp-summary .pill.warn { background: #fff8e1; color: #f57c00; }
  .gbp-summary .pill.danger { background: #ffebee; color: #c62828; }
  .gbp-summary .pill.gone { background: #fafafa; color: #616161; border: 1px dashed #999; }

  /* ── 지도 링크 ── */
  .gbp-map-link {
    font-size: 11px; color: #0071e3; text-decoration: none;
    padding: 2px 7px; border-radius: 6px; background: #f0f7ff;
    white-space: nowrap;
  }
  .gbp-map-link:hover { background: #e3f2fd; }

  /* ── 파트너 ── */
  .partner-email { font-size: 13px; color: #333; flex: 1; }
  .partner-count { font-size: 13px; color: #999; }
  .partner-active { font-size: 12px; font-weight: 600; margin-left: 12px; white-space: nowrap; }
  .partner-billing { font-size: 13px; font-weight: 700; margin-left: 16px; white-space: nowrap; }
  .billing-total-row {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 20px; background: #f9f9f9; border-top: 2px solid #ebebeb;
  }
  .billing-total-label { font-size: 13px; font-weight: 700; flex: 1; }
  .billing-total-amount { font-size: 16px; font-weight: 800; color: #34c759; }

  /* ── 전체 거래처 ── */
  .client-name { font-size: 14px; font-weight: 600; }
  .client-domain { font-size: 12px; color: #999; margin-top: 2px; }

  /* ── 거래처 상세 ── */
  .back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: #666; cursor: pointer; margin-bottom: 24px;
    padding: 6px 0; background: none; border: none; font-family: inherit;
  }
  .back-btn:hover { color: #111; }
  .client-header {
    background: #fff; border-radius: 12px; border: 1px solid #ebebeb;
    padding: 24px; margin-bottom: 20px; display: flex; align-items: center; gap: 20px;
  }
  .client-header-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
  .client-header-domain { font-size: 13px; color: #0071e3; }
  .history-date {
    font-size: 12px; font-weight: 600; color: #999;
    padding: 12px 20px 8px; background: #fafafa; border-bottom: 1px solid #f0f0f0;
  }
  .history-row {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 20px; border-bottom: 1px solid #f5f5f5;
  }
  .history-row:last-child { border-bottom: none; }
  .history-time { font-size: 12px; color: #999; width: 50px; flex-shrink: 0; }
  .history-title { font-size: 13px; font-weight: 500; flex: 1; }
  .history-sub { font-size: 11px; color: #999; margin-top: 2px; }

  /* ── 거래처 상세 정보 ── */
  .detail-row {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 14px 20px; border-bottom: 1px solid #f5f5f5;
  }
  .detail-row:last-child { border-bottom: none; }
  .detail-label { font-size: 12px; color: #999; width: 80px; flex-shrink: 0; padding-top: 1px; }
  .detail-value { font-size: 13px; color: #111; flex: 1; line-height: 1.5; }
  .detail-value a { color: #0071e3; text-decoration: none; }
  .detail-value a:hover { text-decoration: underline; }
  .detail-toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #f5f5f5;
  }
  .detail-toggle-label { font-size: 13px; font-weight: 600; }
  .detail-toggle-desc { font-size: 12px; color: #999; margin-top: 2px; }
  .toggle-sw {
    width: 44px; height: 26px; border-radius: 13px; background: #34c759;
    position: relative; cursor: pointer; flex-shrink: 0; transition: background 0.2s;
  }
  .toggle-sw.off { background: #e5e5ea; }
  .toggle-sw::after {
    content: ''; width: 20px; height: 20px; border-radius: 50%;
    background: #fff; position: absolute; top: 3px; right: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: left 0.2s, right 0.2s;
  }
  .toggle-sw.off::after { left: 3px; right: auto; }

  /* ── 상태 ── */
  .loading { text-align: center; padding: 40px; color: #bbb; font-size: 14px; }
  .empty { text-align: center; padding: 32px; color: #bbb; font-size: 13px; }

  /* ── 검색바 ── */
  .search-wrap { position: relative; margin-bottom: 10px; }
  .search-input { width: 100%; padding: 10px 14px 10px 38px; border: 1px solid #e5e5e5; border-radius: 10px; font-size: 13px; outline: none; background: #fff; font-family: inherit; transition: border-color 0.15s; }
  .search-input:focus { border-color: #0071e3; }
  .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #bbb; pointer-events: none; }
  .search-count { font-size: 12px; color: #bbb; margin-bottom: 12px; min-height: 16px; }

  /* ── 수동 포스팅 버튼 ── */
  .posting-btn { padding: 9px 18px; background: #1d1d1f; color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; margin-left: auto; flex-shrink: 0; }
  .posting-btn:hover { background: #333; }
  .posting-btn:disabled { opacity: 0.6; cursor: not-allowed; }

  /* ── 크론 상태 ── */
  .cron-bar { display: flex; gap: 8px; flex-wrap: wrap; }
  .cron-card { flex: 1; min-width: 140px; background: #fff; border-radius: 10px; border: 1px solid #ebebeb; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
  .cron-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .cron-dot.green { background: #34c759; }
  .cron-dot.red { background: #ff3b30; }
  .cron-dot.gray { background: #d1d1d6; }
  .cron-label { font-size: 12px; font-weight: 600; color: #333; }
  .cron-time { font-size: 11px; color: #bbb; margin-top: 2px; }

  /* ── 날짜 탭 ── */
  .date-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
  .date-tab { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid #e5e5e5; background: #fff; color: #666; font-family: inherit; }
  .date-tab.active { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }

  /* ── 토스트 ── */
  .toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: #1d1d1f; color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 13px; font-weight: 500; opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 100; white-space: nowrap; }
  .toast.show { opacity: 1; }

  /* ── 리드 포탈 ── */
  .btn { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; font-family: inherit; transition: background 0.15s; }
  .btn-primary { background: #0071e3; color: #fff; }
  .btn-primary:hover { background: #005bb5; }
  .btn-secondary { background: #f5f5f7; color: #333; }
  .btn-secondary:hover { background: #eee; }
  .btn-danger { background: #ff3b30; color: #fff; }
  .btn-danger:hover { background: #cc2f26; }
  .btn:disabled { opacity: 0.4; cursor: not-allowed; }
  .btn-save { background: #34c759; color: #fff; }
  .btn-save:hover { background: #28a745; }
  .btn-check-replies { padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; background: #af52de; color: #fff; font-family: inherit; }
  .btn-check-replies:hover { background: #9b42c8; }
  .btn-check-replies:disabled { opacity: 0.4; cursor: not-allowed; }
  .leads-page-header { margin-bottom: 24px; }
  .leads-page-title { font-size: 20px; font-weight: 700; }
  .leads-page-sub { font-size: 13px; color: #999; margin-top: 4px; }
  .stats-row { display: flex; gap: 12px; margin-bottom: 24px; }
  .stat-card { background: #fff; border: 1px solid #ebebeb; border-radius: 12px; padding: 16px 20px; flex: 1; }
  .stat-card .stat-label { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 0.5px; }
  .stat-card .stat-value { font-size: 24px; font-weight: 700; margin-top: 4px; }
  .stat-card .stat-sub { font-size: 11px; color: #bbb; margin-top: 2px; }
  .filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; background: #fff; border: 1px solid #ebebeb; border-radius: 12px; padding: 14px 16px; flex-wrap: wrap; }
  .filter-bar select, .filter-bar input { padding: 7px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; font-family: inherit; outline: none; background: #fafafa; }
  .filter-bar select:focus, .filter-bar input:focus { border-color: #0071e3; }
  .filter-bar input { flex: 1; min-width: 160px; }
  .bulk-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid #ebebeb; border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; }
  .bulk-toolbar label { font-size: 13px; color: #555; cursor: pointer; }
  .bulk-toolbar input[type="number"] { width: 56px; padding: 6px 8px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; text-align: center; outline: none; font-family: inherit; }
  .bulk-sep { color: #ddd; }
  .bulk-count { font-size: 13px; font-weight: 600; color: #0071e3; margin-left: auto; }
  .send-progress { display: none; background: #fff; border: 1px solid #ebebeb; border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
  .send-progress.active { display: block; }
  .progress-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
  .progress-bar-wrap { background: #f0f0f0; border-radius: 8px; height: 8px; overflow: hidden; }
  .progress-bar { background: #0071e3; height: 8px; border-radius: 8px; transition: width 0.3s; width: 0%; }
  .progress-log { margin-top: 10px; font-size: 12px; color: #666; max-height: 80px; overflow-y: auto; }
  .log-success { color: #34c759; }
  .log-fail { color: #ff3b30; }
  .table-wrap { background: #fff; border: 1px solid #ebebeb; border-radius: 12px; overflow-x: auto; }
  .table-wrap table { width: 100%; border-collapse: collapse; min-width: 900px; }
  .table-wrap thead { background: #f5f5f7; }
  .table-wrap th { padding: 11px 16px; text-align: left; font-size: 11px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
  .table-wrap td { padding: 13px 16px; font-size: 13px; border-top: 1px solid #f0f0f0; }
  .table-wrap tr:hover td { background: #fafafe; }
  .table-wrap tr.row-selected td { background: #f0f6ff; }
  .num-col { width: 36px; color: #bbb; font-size: 12px; text-align: center; }
  .check-col { width: 36px; text-align: center; }
  input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: #0071e3; }
  .platform-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }
  .platform-youtube { background: #fff0f0; color: #cc0000; }
  .platform-apple_podcast { background: #f0ecff; color: #5c5ce0; }
  .platform-podcast_index { background: #fff5e6; color: #cc6a00; }
  .platform-wordpress { background: #e8f4fd; color: #21759b; }
  .platform-blogger { background: #fff8dc; color: #ff8000; }
  .platform-tumblr { background: #e8eef7; color: #36465d; }
  .country-badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; background: #f5f5f7; color: #555; }
  .email-cell { color: #0071e3; font-size: 12px; min-width: 160px; word-break: break-all; }
  .follower-cell { font-weight: 600; color: #333; }
  .status-new { color: #34c759; font-size: 11px; font-weight: 600; }
  .status-contacted { color: #ff9500; font-size: 11px; font-weight: 600; }
  .status-replied { color: #af52de; font-size: 11px; font-weight: 600; }
  .status-converted { color: #0071e3; font-size: 11px; font-weight: 600; }
  .channel-link { color: #111; text-decoration: none; font-weight: 500; }
  .channel-link:hover { color: #0071e3; }
  .pagination { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-top: 1px solid #f0f0f0; font-size: 12px; color: #999; }
  .page-btns { display: flex; gap: 6px; }
  .page-btn { padding: 5px 10px; border: 1px solid #ddd; border-radius: 6px; background: #fff; cursor: pointer; font-size: 12px; }
  .page-btn:hover:not(:disabled):not(.dots) { background: #f5f5f7; }
  .page-btn.active { background: #0071e3; color: #fff; border-color: #0071e3; }
  .page-btn.dots { border: none; background: none; cursor: default; color: #aaa; }
  .page-btn:disabled { opacity: 0.4; cursor: default; }
  .leads-section { display: none; }
  .leads-section.active { display: block; }
  .tpl-lang-dd-wrap { position: relative; margin-bottom: 20px; display: inline-block; min-width: 220px; }
  .tpl-lang-dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px; border: 1.5px solid #ddd; border-radius: 10px; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; min-width: 220px; font-family: inherit; color: #111; }
  .tpl-lang-dd-btn:hover { border-color: #0071e3; }
  .tpl-lang-dd-panel { position: absolute; top: calc(100% + 4px); left: 0; min-width: 240px; background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 100; overflow: hidden; }
  .tpl-lang-search { width: 100%; padding: 10px 14px; border: none; border-bottom: 1px solid #f0f0f0; font-size: 13px; outline: none; font-family: inherit; background: #fafafa; box-sizing: border-box; }
  .tpl-lang-list { max-height: 280px; overflow-y: auto; }
  .tpl-lang-item { padding: 9px 14px; font-size: 13px; cursor: pointer; color: #333; }
  .tpl-lang-item:hover { background: #f0f6ff; color: #0071e3; }
  .tpl-lang-item.active { background: #e8f0fe; color: #0071e3; font-weight: 600; }
  .template-wrap { background: #fff; border: 1px solid #ebebeb; border-radius: 12px; overflow: hidden; }
  .template-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; background: #f5f5f7; }
  .template-meta { font-size: 12px; color: #999; }
  .template-meta strong { color: #555; }
  .template-subject { padding: 14px 16px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 10px; }
  .subject-label { font-size: 11px; font-weight: 700; color: #999; text-transform: uppercase; white-space: nowrap; }
  .subject-input { flex: 1; border: none; font-size: 13px; font-family: inherit; outline: none; background: transparent; color: #111; }
  .template-body { width: 100%; min-height: 460px; padding: 16px; border: none; resize: vertical; font-size: 13px; font-family: inherit; line-height: 1.8; color: #333; outline: none; background: #fff; }
  .variables-row { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #f0f0f0; background: #fafafa; flex-wrap: wrap; align-items: center; }
  .var-label { font-size: 11px; color: #999; margin-right: 4px; }
  .var-chip { padding: 3px 9px; background: #e8f0fe; color: #0071e3; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; font-family: monospace; }
  .var-chip:hover { background: #d0e4ff; }
  .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 1000; align-items: center; justify-content: center; }
  .modal-overlay.active { display: flex; }
  .modal-box { background: #fff; border-radius: 16px; padding: 32px; width: 420px; box-shadow: 0 8px 40px rgba(0,0,0,0.15); }
  .modal-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
  .modal-field { margin-bottom: 14px; }
  .modal-field label { display: block; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 6px; }
  .modal-field input, .modal-field select { width: 100%; padding: 10px 12px; border: 1px solid #d2d2d7; border-radius: 8px; font-size: 14px; outline: none; font-family: inherit; box-sizing: border-box; }
  .modal-field input:focus, .modal-field select:focus { border-color: #0071e3; }
  .modal-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
  .leads-nav-sub { display: flex; gap: 4px; padding: 8px 12px; border-bottom: 1px solid #f0f0f0; }
  .leads-nav-sub-item { padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; color: #666; }
  .leads-nav-sub-item:hover { background: #f5f5f7; color: #111; }
  .leads-nav-sub-item.active { background: #e8f0fe; color: #0071e3; }
  .empty-state { text-align: center; padding: 60px 20px; color: #bbb; }
  .empty-icon { font-size: 40px; margin-bottom: 12px; }
  .empty-text { font-size: 14px; }

  /* ── 햄버거 버튼 (모바일 전용) ── */
  .hamburger-btn {
    display: none; width: 34px; height: 34px; border: none; background: #f5f5f5;
    border-radius: 8px; cursor: pointer; align-items: center; justify-content: center;
    flex-direction: column; gap: 4px; padding: 8px; flex-shrink: 0;
  }
  .hamburger-btn span { display: block; width: 16px; height: 2px; background: #333; border-radius: 2px; }

  /* 사이드바 오버레이 (모바일) */
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99; }

  /* ── 모바일 반응형 ── */
  @media (max-width: 768px) {
    /* 로그인 */
    .login-box { width: calc(100% - 32px); padding: 28px 20px; }

    /* 사이드바 */
    .sidebar { transform: translateX(-100%); transition: transform 0.25s ease; z-index: 100; }
    .sidebar.mobile-open { transform: translateX(0); }
    .sidebar-overlay.visible { display: block; }

    /* 메인 */
    .main { margin-left: 0; }
    .topbar { padding: 0 16px; }
    .hamburger-btn { display: flex; }
    .content { padding: 16px; max-width: 100%; }

    /* 통계 */
    .stats { flex-wrap: wrap; }
    .stat { flex: 1 1 calc(50% - 1px); min-width: 0; padding: 16px; }

    /* 크론 카드 */
    .cron-card { min-width: 120px; }

    /* 리스트 */
    .list-row { flex-wrap: wrap; gap: 8px; }
    .post-time { margin-left: 0; }

    /* 파트너 */
    .partner-billing { margin-left: auto; }

    /* 날짜 탭 */
    .date-tabs { flex-wrap: wrap; }

    /* 거래처 헤더 */
    .client-header { flex-wrap: wrap; }

    /* 테이블 모바일 개선: 가로 스크롤 + 폰트/패딩 최적화 + 불필요 컬럼 숨김 */
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table-wrap table { min-width: 600px; } /* 900px → 600px 완화 */
    .table-wrap th { padding: 9px 10px; font-size: 10px; }
    .table-wrap td { padding: 10px 10px; font-size: 12px; }
    .table-wrap .num-col,
    .table-wrap tr > td:first-child.num-col,
    .table-wrap tr > th:first-child { display: none; } /* 번호 컬럼 모바일에서 숨김 */
    .email-cell { min-width: 120px; font-size: 11px; }
    .page-btn { padding: 8px 14px; min-height: 36px; } /* 터치 타겟 확대 */

    /* 모달 */
    .modal-box { width: calc(100% - 32px); max-width: 420px; padding: 24px 20px; }

    /* 메일 템플릿 언어 드롭다운 */
    .tpl-lang-dd-wrap { width: 100%; display: block; }
    .tpl-lang-dd-btn { width: 100%; min-width: 0; box-sizing: border-box; }
    .tpl-lang-dd-panel { width: 100%; min-width: 0; }

    /* 리드 서브 탭 */
    .leads-nav-sub { flex-wrap: wrap; }

    /* 리드 필터 */
    .filter-bar select { min-width: 0; flex: 1 1 120px; }
    .bulk-count { margin-left: 0; }

    /* 크론 카드 가로 스크롤 */
    .cron-section-cards { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  }
