/* ═══════════════════════════════════════════════════════════════════
   WAFL Admin UI — Shared Stylesheet
   for wafl-console / rise / sonnim / naver-scraper / hanaro dashboards.

   Principles
   - Light theme only (tool-focused, data-dense)
   - Brand: WAFL.AI Deep Orange #FF5722 (single accent, used sparingly)
   - Pairs with Tailwind CDN + wafl-admin.js (shared tailwind.config)
   - Component classes are prefixed .wa-* to avoid collision

   See /DESIGN_SYSTEM_ADMIN.md at monorepo root for full rationale.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Design tokens (CSS variables) ─────────────────────────────── */
:root {
  /* Brand — WAFL.AI Deep Orange */
  --wa-brand:          #FF5722;
  --wa-brand-hover:    #E64A1F;
  --wa-brand-active:   #C23D18;
  --wa-brand-subtle:   #FFE0D6;
  --wa-brand-tint:     #FFF3F0;

  /* Surfaces (warm neutral, slightly off-white) */
  --wa-bg:             #FAFAF9;
  --wa-surface:        #FFFFFF;
  --wa-surface-alt:    #F5F5F4;
  --wa-surface-sunken: #E7E5E4;

  /* Borders */
  --wa-border-subtle:  #E7E5E4;
  --wa-border:         #D6D3D1;
  --wa-border-strong:  #A8A29E;

  /* Text */
  --wa-text:           #1C1917;
  --wa-text-muted:     #57534E;
  --wa-text-subtle:    #78716C;
  --wa-text-disabled:  #A8A29E;
  --wa-text-inverse:   #FAFAF9;

  /* Status */
  --wa-success:        #16A34A;
  --wa-success-bg:     #DCFCE7;
  --wa-warning:        #D97706;
  --wa-warning-bg:     #FEF3C7;
  --wa-danger:         #DC2626;
  --wa-danger-bg:      #FEE2E2;
  --wa-info:           #0284C7;
  --wa-info-bg:        #E0F2FE;

  /* Radius */
  --wa-radius-sm:      4px;
  --wa-radius-md:      6px;
  --wa-radius-lg:      8px;
  --wa-radius-xl:      12px;
  --wa-radius-pill:    999px;

  /* Shadow */
  --wa-shadow-e1:      0 1px 2px rgba(28, 25, 23, 0.06);
  --wa-shadow-e2:      0 2px 8px rgba(28, 25, 23, 0.08);
  --wa-shadow-e3:      0 8px 24px rgba(28, 25, 23, 0.12);
  --wa-shadow-focus:   0 0 0 3px rgba(255, 87, 34, 0.25);

  /* Motion */
  --wa-ease:           cubic-bezier(0.2, 0, 0, 1);
  --wa-ease-decel:     cubic-bezier(0.05, 0.7, 0.1, 1);
  --wa-dur-fast:       150ms;
  --wa-dur-normal:     250ms;
  --wa-dur-slow:       400ms;
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--wa-bg);
  color: var(--wa-text);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

code, pre, .wa-mono {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

:focus-visible {
  outline: none;
  box-shadow: var(--wa-shadow-focus);
  border-radius: var(--wa-radius-sm);
}

/* Default scrollbar styling (subtle) */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--wa-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--wa-border-strong); }

/* ═══════════════════════════════════════════════════════════════════
   Layout — AppShell
   ═══════════════════════════════════════════════════════════════════ */
.wa-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wa-header {
  background: var(--wa-surface);
  border-bottom: 1px solid var(--wa-border-subtle);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wa-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--wa-text);
}

.wa-header-brand .wa-brand-mark {
  color: var(--wa-brand);
  font-weight: 700;
}

.wa-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--wa-text-subtle);
}

.wa-tabs-bar {
  background: var(--wa-surface);
  border-bottom: 1px solid var(--wa-border-subtle);
  padding: 0 24px;
}

.wa-content {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

/* ═══════════════════════════════════════════════════════════════════
   Typography
   ═══════════════════════════════════════════════════════════════════ */
.wa-display {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--wa-text);
}

.wa-heading {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--wa-text);
}

.wa-subheading {
  font-size: 13px;
  font-weight: 600;
  color: var(--wa-text-muted);
}

.wa-caption {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wa-text-subtle);
}

.wa-meta {
  font-size: 12px;
  color: var(--wa-text-subtle);
}

/* ═══════════════════════════════════════════════════════════════════
   Card / Section
   ═══════════════════════════════════════════════════════════════════ */
.wa-card {
  background: var(--wa-surface);
  border: 1px solid var(--wa-border-subtle);
  border-radius: var(--wa-radius-lg);
  box-shadow: var(--wa-shadow-e1);
}

.wa-card-elevated { box-shadow: var(--wa-shadow-e2); }

.wa-card-body { padding: 20px; }

.wa-card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--wa-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wa-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--wa-border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Stat card */
.wa-stat {
  padding: 16px 20px;
  background: var(--wa-surface);
  border: 1px solid var(--wa-border-subtle);
  border-radius: var(--wa-radius-lg);
}

.wa-stat-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wa-text-subtle);
  margin-bottom: 6px;
}

.wa-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--wa-text);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.wa-stat-sub {
  font-size: 12px;
  color: var(--wa-text-subtle);
  margin-top: 4px;
}

.wa-stat.is-success .wa-stat-value { color: var(--wa-success); }
.wa-stat.is-warning .wa-stat-value { color: var(--wa-warning); }
.wa-stat.is-danger  .wa-stat-value { color: var(--wa-danger); }
.wa-stat.is-info    .wa-stat-value { color: var(--wa-info); }
.wa-stat.is-brand   .wa-stat-value { color: var(--wa-brand); }

/* ═══════════════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════════════ */
.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--wa-radius-md);
  cursor: pointer;
  transition: background var(--wa-dur-fast) var(--wa-ease),
              border-color var(--wa-dur-fast) var(--wa-ease),
              color var(--wa-dur-fast) var(--wa-ease);
  user-select: none;
  white-space: nowrap;
}

.wa-btn:focus-visible { box-shadow: var(--wa-shadow-focus); }
.wa-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Primary (brand) */
.wa-btn-primary {
  background: var(--wa-brand);
  color: white;
}
.wa-btn-primary:hover:not(:disabled) { background: var(--wa-brand-hover); }
.wa-btn-primary:active:not(:disabled) { background: var(--wa-brand-active); }

/* Secondary (outlined) */
.wa-btn-secondary {
  background: var(--wa-surface);
  color: var(--wa-text);
  border-color: var(--wa-border);
}
.wa-btn-secondary:hover:not(:disabled) {
  background: var(--wa-surface-alt);
  border-color: var(--wa-border-strong);
}

/* Ghost */
.wa-btn-ghost {
  background: transparent;
  color: var(--wa-text-muted);
}
.wa-btn-ghost:hover:not(:disabled) {
  background: var(--wa-surface-alt);
  color: var(--wa-text);
}

/* Danger */
.wa-btn-danger {
  background: var(--wa-danger);
  color: white;
}
.wa-btn-danger:hover:not(:disabled) { background: #B91C1C; }

/* Size variants */
.wa-btn-sm { padding: 4px 10px; font-size: 12px; }
.wa-btn-lg { padding: 10px 18px; font-size: 14px; }
.wa-btn-xs { padding: 2px 8px; font-size: 11px; }

.wa-btn-block { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════
   Form inputs
   ═══════════════════════════════════════════════════════════════════ */
.wa-input,
.wa-select,
.wa-textarea {
  width: 100%;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  color: var(--wa-text);
  background: var(--wa-surface);
  border: 1px solid var(--wa-border);
  border-radius: var(--wa-radius-md);
  transition: border-color var(--wa-dur-fast) var(--wa-ease),
              box-shadow var(--wa-dur-fast) var(--wa-ease);
}

.wa-input:focus,
.wa-select:focus,
.wa-textarea:focus {
  outline: none;
  border-color: var(--wa-brand);
  box-shadow: var(--wa-shadow-focus);
}

.wa-input::placeholder,
.wa-textarea::placeholder {
  color: var(--wa-text-subtle);
}

.wa-input:disabled,
.wa-select:disabled,
.wa-textarea:disabled {
  background: var(--wa-surface-alt);
  color: var(--wa-text-disabled);
  cursor: not-allowed;
}

.wa-textarea { min-height: 80px; resize: vertical; }

.wa-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--wa-text-muted);
  margin-bottom: 4px;
}

.wa-label-required::after {
  content: " *";
  color: var(--wa-danger);
}

.wa-help {
  font-size: 11px;
  color: var(--wa-text-subtle);
  margin-top: 4px;
}

.wa-error {
  font-size: 11px;
  color: var(--wa-danger);
  margin-top: 4px;
}

.wa-field { margin-bottom: 14px; }

/* ═══════════════════════════════════════════════════════════════════
   Badges & status dots
   ═══════════════════════════════════════════════════════════════════ */
.wa-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  border-radius: var(--wa-radius-pill);
  background: var(--wa-surface-alt);
  color: var(--wa-text-muted);
  white-space: nowrap;
}

.wa-badge-success { background: var(--wa-success-bg); color: var(--wa-success); }
.wa-badge-warning { background: var(--wa-warning-bg); color: var(--wa-warning); }
.wa-badge-danger  { background: var(--wa-danger-bg);  color: var(--wa-danger); }
.wa-badge-info    { background: var(--wa-info-bg);    color: var(--wa-info); }
.wa-badge-brand   { background: var(--wa-brand-subtle); color: var(--wa-brand-hover); }
.wa-badge-outline { background: transparent; border: 1px solid var(--wa-border); }

.wa-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa-text-subtle);
  flex-shrink: 0;
}
.wa-dot-success { background: var(--wa-success); }
.wa-dot-warning { background: var(--wa-warning); }
.wa-dot-danger  { background: var(--wa-danger); }
.wa-dot-brand   { background: var(--wa-brand); }

.wa-dot-pulse {
  animation: wa-pulse 1.8s ease-in-out infinite;
}

@keyframes wa-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ═══════════════════════════════════════════════════════════════════
   Tables
   ═══════════════════════════════════════════════════════════════════ */
.wa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.wa-table thead th {
  position: sticky;
  top: 0;
  background: var(--wa-surface-alt);
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wa-text-subtle);
  border-bottom: 1px solid var(--wa-border-subtle);
  white-space: nowrap;
}

.wa-table tbody td {
  padding: 10px 12px;
  color: var(--wa-text-muted);
  border-bottom: 1px solid var(--wa-border-subtle);
  vertical-align: middle;
}

.wa-table tbody tr:last-child td { border-bottom: none; }

.wa-table tbody tr:hover {
  background: var(--wa-surface-alt);
}

.wa-table tbody tr.is-selected {
  background: var(--wa-brand-tint);
}

.wa-table .wa-td-right  { text-align: right; }
.wa-table .wa-td-center { text-align: center; }
.wa-table .wa-td-mono   { font-family: SFMono-Regular, Consolas, monospace; font-size: 12px; }
.wa-table .wa-td-strong { color: var(--wa-text); font-weight: 500; }

/* Compact variant — tighter rows for log-like tables */
.wa-table-compact thead th,
.wa-table-compact tbody td {
  padding: 6px 10px;
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   Tabs
   ═══════════════════════════════════════════════════════════════════ */
.wa-tabs {
  display: flex;
  gap: 2px;
  align-items: flex-end;
}

.wa-tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--wa-text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color var(--wa-dur-fast) var(--wa-ease),
              border-color var(--wa-dur-fast) var(--wa-ease);
}

.wa-tab:hover { color: var(--wa-text); }

.wa-tab.is-active {
  color: var(--wa-brand);
  border-bottom-color: var(--wa-brand);
}

.wa-tab-count {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  background: var(--wa-surface-alt);
  color: var(--wa-text-subtle);
  border-radius: var(--wa-radius-pill);
}

.wa-tab.is-active .wa-tab-count {
  background: var(--wa-brand-subtle);
  color: var(--wa-brand-hover);
}

/* Panels (tab content) */
.wa-panel { display: none; }
.wa-panel.is-active { display: block; animation: wa-fade-in 250ms var(--wa-ease-decel) both; }

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

/* ═══════════════════════════════════════════════════════════════════
   Modal / Dialog
   ═══════════════════════════════════════════════════════════════════ */
.wa-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: wa-fade-in 200ms var(--wa-ease) both;
}

.wa-modal {
  background: var(--wa-surface);
  border-radius: var(--wa-radius-xl);
  box-shadow: var(--wa-shadow-e3);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: wa-modal-in 260ms var(--wa-ease-decel) both;
}

.wa-modal-lg { max-width: 840px; }
.wa-modal-sm { max-width: 400px; }

@keyframes wa-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-modal-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--wa-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wa-modal-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--wa-text);
}

.wa-modal-close {
  background: transparent;
  border: none;
  padding: 4px;
  color: var(--wa-text-subtle);
  cursor: pointer;
  border-radius: var(--wa-radius-sm);
  line-height: 1;
  font-size: 20px;
}
.wa-modal-close:hover { background: var(--wa-surface-alt); color: var(--wa-text); }

.wa-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.wa-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--wa-border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: var(--wa-bg);
}

/* ═══════════════════════════════════════════════════════════════════
   Toast (top-right, auto-dismissing notifications)
   ═══════════════════════════════════════════════════════════════════ */
.wa-toast-region {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.wa-toast {
  padding: 10px 14px;
  background: var(--wa-surface);
  border: 1px solid var(--wa-border-subtle);
  border-radius: var(--wa-radius-md);
  box-shadow: var(--wa-shadow-e2);
  font-size: 13px;
  color: var(--wa-text);
  pointer-events: auto;
  animation: wa-toast-in 250ms var(--wa-ease-decel) both;
  max-width: 360px;
}

.wa-toast-success { border-left: 3px solid var(--wa-success); }
.wa-toast-error   { border-left: 3px solid var(--wa-danger); }
.wa-toast-info    { border-left: 3px solid var(--wa-info); }

@keyframes wa-toast-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ═══════════════════════════════════════════════════════════════════
   Empty state / loading
   ═══════════════════════════════════════════════════════════════════ */
.wa-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--wa-text-subtle);
}

.wa-empty-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--wa-text-muted);
  margin-bottom: 4px;
}

.wa-empty-sub {
  font-size: 12px;
  color: var(--wa-text-subtle);
}

.wa-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--wa-border-subtle);
  border-top-color: var(--wa-brand);
  border-radius: 50%;
  animation: wa-spin 600ms linear infinite;
}

.wa-spinner-lg { width: 32px; height: 32px; border-width: 3px; }

@keyframes wa-spin { to { transform: rotate(360deg); } }

/* Progress bar */
.wa-progress {
  height: 6px;
  background: var(--wa-surface-sunken);
  border-radius: var(--wa-radius-pill);
  overflow: hidden;
}

.wa-progress-fill {
  height: 100%;
  background: var(--wa-brand);
  border-radius: var(--wa-radius-pill);
  transition: width 300ms var(--wa-ease);
}

.wa-progress-fill.is-success { background: var(--wa-success); }
.wa-progress-fill.is-danger  { background: var(--wa-danger); }

/* ═══════════════════════════════════════════════════════════════════
   WAFL Logo — mark + wordmark 조합. 헤더 왼쪽 브랜드 앵커로 사용.
   Usage:
     <a class="wa-wafl-logo" href="/">
       <img class="wa-wafl-mark"     src="/static/wafl-mark.svg"     alt="">
       <img class="wa-wafl-wordmark" src="/static/wafl-wordmark.svg" alt="WAFL">
     </a>
   첨부 브랜드 이미지의 비율(mark 1 : wordmark cap-height ≈ 0.58) 근사.
   ═══════════════════════════════════════════════════════════════════ */
.wa-wafl-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  line-height: 1;
  flex-shrink: 0;
}
.wa-wafl-logo:focus-visible {
  outline: none;
  box-shadow: var(--wa-shadow-focus);
  border-radius: var(--wa-radius-sm);
}
/* Default size (60% scale of original 32/18 → 19/11)
 * mark-to-wordmark cap-height ratio ≈ 56% (첨부 이미지 근사) 유지 */
.wa-wafl-mark {
  height: 19px;
  width: 19px;
  display: block;
  flex-shrink: 0;
}
.wa-wafl-wordmark {
  height: 11px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Large variant — 로그인/가입 페이지의 중앙 정렬 브랜드 블록 (60% of 64/36 → 38/22) */
.wa-wafl-logo-lg .wa-wafl-mark     { height: 38px; width: 38px; }
.wa-wafl-logo-lg .wa-wafl-wordmark { height: 22px; }
.wa-wafl-logo-lg { gap: 10px; }

/* Small variant — 좁은 헤더용 (60% of 24/14 → 14/8) */
.wa-wafl-logo-sm .wa-wafl-mark     { height: 14px; width: 14px; }
.wa-wafl-logo-sm .wa-wafl-wordmark { height: 8px; }
.wa-wafl-logo-sm { gap: 5px; }

/* ═══════════════════════════════════════════════════════════════════
   Service Switcher — 5개 관리자 콘솔 간 상호 네비게이션
   [data-wafl-switcher="<key>"] 엘리먼트에 wafl-admin.js 가 자동 주입.
   ═══════════════════════════════════════════════════════════════════ */
.wa-service-switcher {
  position: relative;
  display: inline-block;
}

.wa-service-switcher-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--wa-surface);
  border: 1px solid var(--wa-border);
  border-radius: var(--wa-radius-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--wa-text);
  cursor: pointer;
  transition: background var(--wa-dur-fast) var(--wa-ease),
              border-color var(--wa-dur-fast) var(--wa-ease);
}
.wa-service-switcher-trigger:hover {
  background: var(--wa-surface-alt);
  border-color: var(--wa-border-strong);
}
.wa-service-switcher-trigger:focus-visible {
  outline: none;
  box-shadow: var(--wa-shadow-focus);
}

/* 앱스 그리드 아이콘 — switcher 가 "다른 서비스로 이동" 임을 암시 */
.wa-service-switcher-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: var(--wa-text-subtle);
}

.wa-service-switcher-label {
  font-weight: 500;
  color: var(--wa-text);
}

.wa-service-switcher-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 240px;
  padding: 6px;
  background: var(--wa-surface);
  border: 1px solid var(--wa-border-subtle);
  border-radius: var(--wa-radius-lg);
  box-shadow: var(--wa-shadow-e3);
  z-index: 300;
  animation: wa-fade-in 180ms var(--wa-ease-decel) both;
}

.wa-service-switcher-header {
  padding: 8px 10px 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wa-text-subtle);
}

.wa-service-switcher-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas: "label check" "sub check";
  align-items: center;
  column-gap: 10px;
  padding: 8px 10px;
  border-radius: var(--wa-radius-md);
  color: var(--wa-text);
  text-decoration: none;
  transition: background var(--wa-dur-fast) var(--wa-ease);
}
.wa-service-switcher-item:hover {
  background: var(--wa-surface-alt);
}
.wa-service-switcher-item.is-current {
  background: var(--wa-brand-tint);
}
.wa-service-switcher-item.is-current .wa-service-switcher-item-label {
  color: var(--wa-brand);
  font-weight: 600;
}

.wa-service-switcher-item-label {
  grid-area: label;
  font-size: 13px;
  font-weight: 500;
  color: var(--wa-text);
}

.wa-service-switcher-item-sub {
  grid-area: sub;
  font-size: 11px;
  color: var(--wa-text-subtle);
}

.wa-service-switcher-check {
  grid-area: check;
  color: var(--wa-brand);
}

/* ═══════════════════════════════════════════════════════════════════
   Utility: dividers, scrolling, reduced motion
   ═══════════════════════════════════════════════════════════════════ */
.wa-divider {
  height: 1px;
  background: var(--wa-border-subtle);
  margin: 16px 0;
}

.wa-link {
  color: var(--wa-brand);
  text-decoration: none;
  transition: color var(--wa-dur-fast);
}
.wa-link:hover { color: var(--wa-brand-hover); text-decoration: underline; }

.wa-scroll-shadow-bottom {
  background:
    linear-gradient(var(--wa-surface) 30%, transparent),
    linear-gradient(transparent, var(--wa-surface) 70%) 0 100%,
    radial-gradient(at top, rgba(28,25,23,0.08), transparent 70%),
    radial-gradient(at bottom, rgba(28,25,23,0.08), transparent 70%) 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 24px, 100% 24px, 100% 12px, 100% 12px;
  background-attachment: local, local, scroll, scroll;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
