.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 0.85fr) minmax(480px, 1.15fr);
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.14), transparent 28%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.auth-brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 44px;
  background:
    radial-gradient(circle at 24% 18%, rgba(37, 99, 235, 0.36), transparent 28%),
    linear-gradient(145deg, var(--color-primary-deep), var(--color-primary) 52%, #111827);
  color: var(--text-on-dark-soft);
}

.auth-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 90%);
}

.auth-brand-panel > * {
  position: relative;
  z-index: 1;
}

.auth-brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  width: fit-content;
}

.auth-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
  font-weight: var(--font-weight-extrabold);
  border: 1px solid var(--line-on-dark);
}

.auth-brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}

.auth-brand-copy strong {
  color: #ffffff;
  font-size: 15px;
}

.auth-brand-copy span {
  color: var(--text-on-dark-muted);
  font-size: var(--text-caption);
  font-weight: var(--font-weight-semibold);
}

.auth-brand-message {
  max-width: 560px;
  margin-top: var(--space-11);
}

.auth-brand-message h1 {
  color: #ffffff;
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.auth-brand-message p {
  margin-top: var(--space-5);
  color: var(--text-on-dark-soft);
  font-size: var(--text-body-lg);
  line-height: var(--leading-body);
}

.auth-brand-points {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-7);
}

.auth-brand-points li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-on-dark-soft);
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-semibold);
}

.auth-brand-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.13);
  flex-shrink: 0;
}

.auth-brand-footnote {
  margin-top: var(--space-10);
  padding: var(--space-5);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark-soft);
  font-size: var(--text-body-sm);
  line-height: var(--leading-body);
}

/* 메인 패널 */
.auth-main-panel {
  display: grid;
  align-items: center;
  padding: 48px 40px;
  overflow-y: auto;
}

.auth-card {
  width: min(100%, 520px);
  margin-inline: auto;
  padding: 36px;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.auth-card.is-compact {
  width: min(100%, 440px);
}

/* 카드 헤더 - 가운데 정렬 */
.auth-card-header {
  margin-bottom: var(--space-6);
  text-align: center;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: var(--text-caption);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: var(--tracking-label);
}

.auth-card-header h2 {
  margin-top: var(--space-3);
  font-size: clamp(24px, 3vw, 32px);
  line-height: var(--leading-heading);
}

.auth-card-header p {
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-body-sm);
}

/* 뒤로 가기 버튼 */
.back-to-method-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: 0;
  border: none;
  background: none;
  color: var(--color-accent);
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-base);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.back-to-method-btn:hover {
  opacity: 0.8;
}

/* 알림 */
.auth-alert {
  display: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.5;
  margin-bottom: var(--space-5);
  text-align: left;
}

.auth-alert.is-visible {
  display: block;
}

.auth-alert.success {
  border: 1px solid rgba(22, 163, 74, 0.28);
  background: rgba(22, 163, 74, 0.08);
  color: #166534;
}

.auth-alert.error {
  border: 1px solid rgba(220, 38, 38, 0.28);
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
}

/* 폼 */
.auth-form {
  display: grid;
  gap: var(--space-4);
  text-align: left;
}

.form-field {
  display: grid;
  gap: var(--space-2);
}

.form-label {
  color: var(--text-strong);
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-bold);
}

.form-help {
  color: var(--text-muted);
  font-size: var(--text-caption);
  line-height: 1.5;
}

.form-input,
.form-select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-strong);
  font-size: var(--text-body-sm);
  font-family: var(--font-base);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input::placeholder {
  color: var(--text-subtle);
}

.form-input:focus,
.form-select:focus {
  border-color: rgba(37, 99, 235, 0.75);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-select:disabled {
  background-color: #f8fafc;
  cursor: not-allowed;
  opacity: 0.7;
}

/* 전화번호 + 버튼 행 */
.form-row-with-button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
}

.form-row-with-button .form-input {
  min-width: 0;
}

.inline-button {
  height: 48px;
  padding: 0 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #ffffff;
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-base);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.inline-button:hover {
  background: var(--color-primary-soft);
}

.inline-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* 지역 선택 행 */
.form-row-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

/* 활동 유형 칩 */
.type-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.type-chip {
  position: relative;
  cursor: pointer;
}

.type-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--text-body);
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-bold);
  transition: all var(--transition-fast);
  user-select: none;
}

.type-chip:hover span {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.04);
}

.type-chip input:checked + span {
  border-color: rgba(37, 99, 235, 0.6);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.type-chip input:focus-visible + span {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 2px;
}

/* 약관 */
.terms-box {
  padding: var(--space-4);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  color: var(--text-muted);
  font-size: var(--text-caption);
  line-height: 1.6;
  text-align: left;
}

/* 제출 버튼 */
.auth-submit {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: var(--font-weight-extrabold);
  font-family: var(--font-base);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.auth-submit:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.auth-submit:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

/* OAuth 구분선 */
.oauth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-caption);
  font-weight: var(--font-weight-bold);
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  height: 1px;
  background: var(--border-base);
}

/* OAuth 버튼 */
.oauth-grid {
  display: grid;
  gap: var(--space-2);
}

.oauth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-strong);
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-base);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.oauth-button:hover {
  background: #f8fafc;
}

.oauth-button.kakao {
  border-color: #f7df1e;
  background: #fee500;
  color: #181600;
}

.oauth-button.kakao:hover {
  background: #fdd835;
}

.oauth-button.naver {
  border-color: #03c75a;
  background: #03c75a;
  color: #ffffff;
}

.oauth-button.naver:hover {
  background: #02b351;
}

/* 로그인/회원가입 전환 */
.auth-switch {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-body-sm);
}

.auth-switch a {
  color: var(--color-accent);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* 대시보드 */
.dashboard-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.12), transparent 28%),
    var(--color-bg);
}

.dashboard-topbar {
  min-height: 68px;
  border-bottom: 1px solid var(--border-base);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.dashboard-topbar .container {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.dashboard-main {
  padding: var(--space-10) 0;
}

.dashboard-card {
  padding: var(--space-8);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-hero);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.dashboard-card h1 {
  font-size: var(--text-h2);
}

.dashboard-card p {
  margin-top: var(--space-4);
  color: var(--text-body);
  font-size: var(--text-body-lg);
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-7);
}

/* 반응형 */
@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    min-height: auto;
    padding: 32px 24px;
  }

  .auth-brand-message {
    margin-top: var(--space-8);
  }

  .auth-brand-message h1 {
    font-size: clamp(28px, 6vw, 40px);
  }

  .auth-main-panel {
    padding: 24px 16px;
  }
}

@media (max-width: 520px) {
  .auth-card {
    padding: 24px 20px;
  }

  .form-row-double {
    grid-template-columns: 1fr;
  }

  .type-chip-grid {
    gap: var(--space-2);
  }

  .type-chip span {
    height: 36px;
    padding: 0 12px;
    font-size: var(--text-caption);
  }
}

/* ============================================================
   SHERPA Action Hover — 분석 결과에서 의뢰/제휴 바로가기 노출
   - 분석 결과의 컬럼 헤더 / 행 셀에 호버 시 "의뢰참여 / 제휴홍보" 메뉴를 띄움.
   - 적용 위치 예: 플레이스 순위 조회의 블로그/영수증 리뷰 컬럼.
   - 모바일/터치 환경에서는 호버가 동작하지 않으므로 ⋯ 버튼으로 같은 메뉴 호출.
   ============================================================ */

/* 호버 가능한 헤더 셀: 라벨 옆에 항상 보이는 '바로가기' 아이콘 버튼 */
.sherpa-action-th {
  position: relative;
  cursor: default;
  user-select: none;
}

/* 헤더 라벨 옆 바로가기 아이콘 — 항상 보임 (라벨과 짝지어 시각화) */
.sherpa-action-th-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--color-accent, #2563eb);
  cursor: pointer;
  vertical-align: middle;
  opacity: 0.75;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.sherpa-action-th-btn:hover,
.sherpa-action-th-btn:focus-visible,
.sherpa-action-th:hover .sherpa-action-th-btn {
  opacity: 1;
  background: var(--color-accent-faint, rgba(37, 99, 235, 0.10));
  border-color: var(--color-accent, #2563eb);
  outline: none;
  transform: translateY(-1px);
}

.sherpa-action-th-btn svg {
  width: 12px;
  height: 12px;
}

/* 호버 가능한 셀(행 내): 동일한 바로가기 아이콘으로 통일 */
.sherpa-action-cell {
  position: relative;
}

.sherpa-action-cell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--color-accent, #2563eb);
  cursor: pointer;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.sherpa-action-cell-btn svg {
  width: 13px;
  height: 13px;
}

/* 데스크탑: 행 호버 시 바로가기 버튼 슬쩍 노출 */
@media (hover: hover) {
  tr:hover .sherpa-action-cell-btn,
  .sherpa-action-cell:hover .sherpa-action-cell-btn {
    opacity: 0.75;
  }
}

/* 모바일/터치: 항상 보임 */
@media (hover: none) {
  .sherpa-action-cell-btn {
    opacity: 0.75;
  }
}

.sherpa-action-cell-btn:hover,
.sherpa-action-cell-btn:focus-visible {
  opacity: 1;
  background: var(--color-accent-faint, rgba(37, 99, 235, 0.10));
  border-color: var(--color-accent, #2563eb);
  outline: none;
}

/* 오버레이 메뉴 (헤더 호버와 셀 ⋯ 클릭 양쪽에서 사용) */
.sherpa-action-menu {
  position: absolute;
  z-index: 1000;
  min-width: 220px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border-base, #e5e7eb);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  display: none;
  animation: sherpaActionMenuIn 0.12s ease-out;
}

.sherpa-action-menu.is-open {
  display: block;
}

@keyframes sherpaActionMenuIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sherpa-action-menu-header {
  padding: 6px 10px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, #6b7280);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border-base, #e5e7eb);
  margin-bottom: 4px;
}

.sherpa-action-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: var(--text-body, #111827);
  font-size: 13px;
  text-align: left;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}

.sherpa-action-menu-item:hover,
.sherpa-action-menu-item:focus-visible {
  background: var(--bg-body, #f3f4f6);
  outline: none;
}

.sherpa-action-menu-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--color-accent-faint, rgba(37, 99, 235, 0.08));
  color: var(--color-accent, #2563eb);
  font-size: 12px;
  flex-shrink: 0;
}

.sherpa-action-menu-item-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.sherpa-action-menu-item-title {
  font-weight: 600;
  line-height: 1.3;
}

.sherpa-action-menu-item-sub {
  font-size: 11px;
  color: var(--text-muted, #6b7280);
  line-height: 1.3;
  margin-top: 2px;
}

/* 헤더 호버용: 헤더 셀 하단에 자동 배치 (JS가 좌표 계산) */

/* ============================================================
   SHERPA Common UI Components (Phase 3)
   ============================================================ */

/* ── Modal (SHERPA.Modal) ───────────────────────────────── */
.sh-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 9000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.sh-modal-overlay.is-open { display: flex; }
.sh-modal {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  width: 100%;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 80px);
}
.sh-modal-sm { max-width: 440px; }
.sh-modal-md { max-width: 640px; }
.sh-modal-lg { max-width: 880px; }
.sh-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-base);
  background: var(--color-bg);
}
.sh-modal-title { margin: 0; font-size: 16px; font-weight: var(--font-weight-bold); color: var(--text-strong); }
.sh-modal-close {
  background: none; border: none; font-size: 20px; color: var(--text-muted); cursor: pointer;
  width: 32px; height: 32px; border-radius: 3px; display: flex; align-items: center; justify-content: center;
}
.sh-modal-close:hover { background: rgba(0,0,0,0.04); color: var(--text-strong); }
.sh-modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.sh-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-base);
  background: var(--color-bg);
  display: flex; gap: 8px; justify-content: flex-end;
}

/* ── Toast (SHERPA.toast) ───────────────────────────────── */
.sh-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  max-width: 380px;
}
.sh-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  background: var(--text-strong);
  color: #fff;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
  max-width: 100%;
}
.sh-toast-in { opacity: 1; transform: translateY(0); }
.sh-toast-out { opacity: 0; transform: translateY(-8px); }
.sh-toast-icon { width: 18px; height: 18px; flex-shrink: 0; }
.sh-toast-icon svg { width: 18px; height: 18px; display: block; }
.sh-toast-text { flex: 1; word-break: break-word; }
.sh-toast-success { background: var(--color-success); }
.sh-toast-error { background: var(--color-danger); }
.sh-toast-warn { background: var(--color-warning); }
.sh-toast-info { background: var(--text-strong); }

/* ── Notice dismissible ─────────────────────────────────── */
.sh-notice-dismissible { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sh-notice-dismiss {
  background: none; border: none; color: inherit; opacity: 0.6; cursor: pointer;
  font-size: 16px; padding: 0 4px; line-height: 1; flex-shrink: 0;
}
.sh-notice-dismiss:hover { opacity: 1; }

/* ── DataTable (SHERPA.DataTable) ───────────────────────── */
.sh-dt-search { margin-bottom: 12px; }
.sh-dt-search-input {
  width: 100%; max-width: 320px; padding: 8px 12px;
  border: 1px solid var(--border-base); border-radius: var(--radius-xs);
  font-size: 13px; font-family: var(--font-base); color: var(--text-strong);
  outline: none; background: var(--color-surface);
}
.sh-dt-search-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08);
}
.sh-dt-table-wrap { overflow-x: auto; }
.sh-dt-table { width: 100%; border-collapse: collapse; }
.sh-dt-sortable::after {
  content: '';
  display: inline-block; margin-left: 4px;
  width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  vertical-align: middle; opacity: 0.3;
}
.sh-dt-sorted-asc::after { border-bottom: 5px solid var(--color-accent); border-top: none; opacity: 1; }
.sh-dt-sorted-desc::after { border-top: 5px solid var(--color-accent); border-bottom: none; opacity: 1; }
.sh-dt-empty {
  text-align: center; padding: 48px 24px;
  color: var(--text-muted); font-size: 14px;
}
.sh-dt-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 16px;
}
.sh-dt-page-btn {
  padding: 6px 14px; border: 1px solid var(--border-base); border-radius: var(--radius-xs);
  background: var(--color-surface); color: var(--text-body); font-size: 13px;
  font-family: var(--font-base); cursor: pointer; transition: all 0.15s;
}
.sh-dt-page-btn:hover:not(:disabled) { border-color: var(--color-accent); color: var(--color-accent); }
.sh-dt-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.sh-dt-page-info { font-size: 13px; color: var(--text-muted); font-weight: var(--font-weight-semibold); }
.sh-dt-count {
  text-align: center; margin-top: 8px;
  font-size: 12px; color: var(--text-muted);
}

/* ── Loading overlay (SHERPA.Loading) ─────────────────── */
.sh-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.15);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}
.sh-loading-overlay.is-open { display: flex; }
.sh-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px 40px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}
.sh-loading-snowballs {
  display: flex;
  gap: 6px;
  align-items: center;
}
.sh-sb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 16px;
  opacity: 0.15;
  transform: scale(0.7);
  transition: all 0.25s ease;
}
.sh-sb.pulse {
  opacity: 1;
  transform: scale(1.2);
  color: var(--color-accent);
}
.sh-loading-text {
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  color: var(--text-muted);
  text-align: center;
}

/* ── Loading overlay community CTA (KakaoTalk 바로가기) ───────────
   카카오 공식 브랜드 컬러 사용:
   - 배경 #FEE500 (Kakao Yellow), 텍스트 #191919 (Kakao Black)
   - 말풍선 아이콘 + 타이틀/서브 + 화살표 구성으로
     "카카오톡 오픈채팅 바로가기" 인지성 강화.
   --------------------------------------------------------------- */
.sh-loading-community {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 14px 10px 12px;
  min-width: 240px;
  max-width: 320px;
  border-radius: 12px;
  background: #FEE500;
  color: #191919;
  font-weight: 700;
  text-decoration: none;
  text-align: left;
  letter-spacing: -0.01em;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 4px 12px rgba(254, 229, 0, 0.35);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.sh-loading-community:hover,
.sh-loading-community:focus-visible {
  background: #FDD835;
  color: #191919;
  transform: translateY(-1px);
  box-shadow:
    0 2px 0 rgba(0,0,0,0.05),
    0 8px 18px rgba(253, 216, 53, 0.45);
  outline: none;
}
.sh-loading-community:active {
  transform: translateY(0);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.05),
    0 3px 8px rgba(253, 216, 53, 0.4);
}
.sh-loading-community-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: #191919;
  color: #FEE500;
}
.sh-loading-community-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}
.sh-loading-community-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}
.sh-loading-community-title {
  font-size: 13px;
  font-weight: 800;
  color: #191919;
}
.sh-loading-community-sub {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(25, 25, 25, 0.7);
}
.sh-loading-community-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  font-size: 18px;
  font-weight: 800;
  color: #191919;
  opacity: 0.6;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.sh-loading-community:hover .sh-loading-community-go {
  opacity: 1;
  transform: translateX(2px);
}
