/* =========================================================
   Whagenda — Design System v2
   Padrão: Linear / Cal.com / Vercel — refinamento moderno SaaS 2026.
   Único arquivo de estilo. Todas as telas. Todos os perfis.
   ========================================================= */

/* =================== TOKENS =================== */
:root {
  /* Color scale — slate (neutral) */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* Brand — indigo (primary accent) */
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-300: #a5b4fc;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-800: #3730a3;
  --brand-900: #312e81;

  /* Semantic */
  --success-50: #ecfdf5; --success-500: #10b981; --success-600: #059669; --success-700: #047857;
  --warning-50: #fffbeb; --warning-500: #f59e0b; --warning-600: #d97706; --warning-700: #b45309;
  --danger-50:  #fef2f2; --danger-500:  #ef4444; --danger-600:  #dc2626; --danger-700:  #b91c1c;
  --info-50:    #eff6ff; --info-500:    #3b82f6; --info-600:    #2563eb;

  /* Semantic aliases — use estes nos componentes */
  --bg:           var(--slate-50);
  --bg-elevated:  #ffffff;
  --surface:      #ffffff;
  --surface-hover: var(--slate-50);
  --border:       var(--slate-200);
  --border-hover: var(--slate-300);
  --border-strong: var(--slate-300);

  --fg:           var(--slate-900);
  --fg-secondary: var(--slate-700);
  --fg-muted:     var(--slate-500);
  --fg-subtle:    var(--slate-400);

  --accent:       var(--brand-600);
  --accent-hover: var(--brand-700);
  --accent-soft:  var(--brand-50);
  --accent-text:  var(--brand-700);

  /* Skeleton/placeholder — kept for backwards compat */
  --skel:      var(--slate-100);
  --skel-dark: var(--slate-200);

  /* Status (back-compat aliases para tags antigas) */
  --green: var(--success-500); --green-soft: var(--success-50); --green-text: var(--success-700);
  --red:   var(--danger-500);  --red-soft:   var(--danger-50);  --red-text:   var(--danger-700);
  --yellow: var(--warning-500); --yellow-soft: var(--warning-50); --yellow-text: var(--warning-700);
  --muted: var(--fg-muted); --muted-2: var(--fg-subtle); --text: var(--fg); --panel: var(--surface);

  /* Radii — generous para feel moderno */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius:    8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* Shadows — multi-layer pra profundidade */
  --shadow-xs: 0 1px 2px 0 rgb(15 23 42 / 0.04);
  --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.04), 0 1px 3px 0 rgb(15 23 42 / 0.06);
  --shadow:    0 4px 6px -1px rgb(15 23 42 / 0.05), 0 2px 4px -2px rgb(15 23 42 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(15 23 42 / 0.07), 0 4px 6px -4px rgb(15 23 42 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(15 23 42 / 0.08), 0 8px 10px -6px rgb(15 23 42 / 0.05);
  --shadow-xl: 0 25px 50px -12px rgb(15 23 42 / 0.18);
  --shadow-inset: inset 0 1px 0 0 rgb(255 255 255 / 0.06);
  --ring-focus: 0 0 0 3px rgb(99 102 241 / 0.18);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-500) 100%);
  --gradient-brand-soft: linear-gradient(135deg, var(--brand-50) 0%, var(--brand-100) 100%);
  --gradient-mesh: radial-gradient(at 0% 0%, var(--brand-100) 0px, transparent 50%),
                   radial-gradient(at 100% 0%, var(--brand-50) 0px, transparent 50%);

  /* WhatsApp preview (chat mockup em cliente-comunicacao e campanha-form) */
  --whatsapp-chat-bg: #ECE5DD;
  --whatsapp-msg-sent: #DCF8C6;
  --whatsapp-msg-received: #ffffff;

  /* Bloco de código / log viewer (logs admin, exemplos de payload, etc.) */
  --code-block-bg: #0f172a;
  --code-block-fg: #e5e7eb;
  --code-block-muted: #9ca3af;
  --code-block-border: #334155;

  /* Preview de superfície escura (admin/aparencia para logo branco) */
  --surface-dark-preview: #1f2937;
  --surface-dark-preview-border: #374151;

  /* Transitions */
  --tr-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --tr:      180ms cubic-bezier(0.4, 0, 0.2, 1);
  --tr-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* DARK MODE */
html.dark, body.dark {
  --bg:           var(--slate-950);
  --bg-elevated:  var(--slate-900);
  --surface:      var(--slate-900);
  --surface-hover: var(--slate-800);
  --border:       var(--slate-800);
  --border-hover: var(--slate-700);
  --border-strong: var(--slate-700);

  --fg:           var(--slate-50);
  --fg-secondary: var(--slate-300);
  --fg-muted:     var(--slate-400);
  --fg-subtle:    var(--slate-500);

  --accent:       var(--brand-500);
  --accent-hover: var(--brand-400);
  --accent-soft:  rgb(99 102 241 / 0.12);
  --accent-text:  var(--brand-300);

  --skel:      var(--slate-800);
  --skel-dark: var(--slate-700);
  --green-soft: rgb(16 185 129 / 0.12);
  --green-text: #6ee7b7;
  --red-soft:   rgb(239 68 68 / 0.12);
  --red-text:   #fca5a5;
  --yellow-soft: rgb(245 158 11 / 0.12);
  --yellow-text: #fcd34d;

  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3), 0 1px 3px 0 rgb(0 0 0 / 0.4);
  --shadow:    0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.5);
  --gradient-mesh: radial-gradient(at 0% 0%, rgb(99 102 241 / 0.1) 0px, transparent 50%),
                   radial-gradient(at 100% 0%, rgb(99 102 241 / 0.05) 0px, transparent 50%);
}

/* =================== RESET & BASE =================== */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; padding: 0; border: 0; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11"; /* Inter optical refinements */
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

code, kbd, pre { font-family: 'JetBrains Mono', ui-monospace, monospace; }

a { color: var(--accent); text-decoration: none; transition: color var(--tr-fast); }
a:hover { color: var(--accent-hover); }

::selection { background: var(--brand-100); color: var(--brand-900); }
html.dark ::selection { background: rgb(99 102 241 / 0.35); color: var(--slate-50); }

/* Scrollbar refinada */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-200); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--slate-300); }
html.dark ::-webkit-scrollbar-thumb { background: var(--slate-700); border-color: var(--bg); }

i[data-lucide] { display: inline-block; vertical-align: middle; stroke-width: 2; }

/* =================== APP SHELL =================== */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  position: sticky; top: 0; align-self: start;
  height: 100vh; overflow-y: auto;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px; margin-bottom: 6px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
}
.brand .logo {
  width: 30px; height: 30px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgb(255 255 255 / 0.2);
}

.profile-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 9px; border-radius: var(--radius-full);
  background: var(--slate-100); color: var(--fg-muted);
  margin: 6px 8px 18px;
}
.profile-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.profile-tag.gestor { background: var(--brand-50); color: var(--brand-700); }
.profile-tag.profissional { background: var(--success-50); color: var(--success-700); }
.profile-tag.revendedor { background: #f5f3ff; color: #6d28d9; }
.profile-tag.admin { background: var(--danger-50); color: var(--danger-700); }
html.dark .profile-tag { background: var(--slate-800); color: var(--fg-muted); }
html.dark .profile-tag.gestor { background: rgb(99 102 241 / 0.12); color: var(--brand-300); }
html.dark .profile-tag.profissional { background: rgb(16 185 129 / 0.12); color: #6ee7b7; }
html.dark .profile-tag.revendedor { background: rgb(139 92 246 / 0.12); color: #c4b5fd; }
html.dark .profile-tag.admin { background: rgb(239 68 68 / 0.12); color: #fca5a5; }

.nav-section {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-subtle); margin: 16px 12px 6px;
  font-weight: 600;
}

.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: var(--radius-md);
  color: var(--fg-secondary); font-size: 13.5px; font-weight: 500;
  text-decoration: none;
  transition: background var(--tr-fast), color var(--tr-fast);
  position: relative;
}
.nav a:hover { background: var(--surface-hover); color: var(--fg); }
.nav a.active {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}
.nav a.active::before {
  content: ""; position: absolute; left: -4px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; background: var(--accent); border-radius: 0 3px 3px 0;
}
.nav a .icon { color: var(--fg-subtle); transition: color var(--tr-fast); }
.nav a:hover .icon { color: var(--fg-secondary); }
.nav a.active .icon { color: var(--accent); }

/* =================== TOPBAR =================== */
.main-wrap { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  background: rgb(255 255 255 / 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 5;
}
html.dark .topbar { background: rgb(15 23 42 / 0.7); }

.breadcrumb { font-size: 13px; color: var(--fg-muted); display: flex; align-items: center; gap: 6px; }
.breadcrumb span:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--fg-subtle); font-weight: 300; }
.breadcrumb .current { color: var(--fg); font-weight: 500; }

.user-menu { display: flex; align-items: center; gap: 10px; }

.search-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 10px; border-radius: var(--radius-md);
  background: var(--surface-hover); border: 1px solid var(--border);
  font-size: 13px; color: var(--fg-muted);
  min-width: 200px;
  transition: all var(--tr-fast);
}
.search-btn:hover { background: var(--surface); border-color: var(--border-hover); }
.search-btn span { flex: 1; text-align: left; }
.search-btn kbd {
  font-size: 10px; padding: 2px 5px; border-radius: var(--radius-xs);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--fg-subtle); font-family: 'Inter', sans-serif;
}

.icon-btn {
  position: relative;
  width: 34px; height: 34px; border-radius: var(--radius-md);
  background: transparent; border: 1px solid transparent;
  display: grid; place-items: center;
  color: var(--fg-secondary);
  transition: all var(--tr-fast);
}
.icon-btn:hover { background: var(--surface-hover); border-color: var(--border); color: var(--fg); }
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--danger-500);
  border: 2px solid var(--surface);
}

.avatar {
  width: 32px; height: 32px; border-radius: var(--radius-full);
  background: var(--gradient-brand); color: #fff;
  display: grid; place-items: center;
  font-weight: 600; font-size: 12px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.avatar.xl { width: 80px; height: 80px; font-size: 24px; }
.avatar.sm { width: 26px; height: 26px; font-size: 10px; }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.avatar-ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-soft), var(--shadow-sm); }
.status-dot {
  position: absolute; bottom: -1px; right: -1px;
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--surface);
}
.status-dot.online { background: var(--success-500); }
.status-dot.online::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--success-500); opacity: 0.5;
  animation: pulse-dot 2s ease-out infinite;
}
.status-dot.away { background: var(--warning-500); }
.status-dot.offline { background: var(--slate-400); }

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Avatar groups (overlap stack) */
.avatar-group { display: flex; }
.avatar-group .avatar { border: 2px solid var(--surface); margin-left: -8px; }
.avatar-group .avatar:first-child { margin-left: 0; }

/* Cor por profissional — paleta refinada */
.prof-1 { --prof-color: #6366f1; --prof-bg: #eef2ff; --prof-text: #4338ca; }
.prof-2 { --prof-color: #10b981; --prof-bg: #ecfdf5; --prof-text: #047857; }
.prof-3 { --prof-color: #f59e0b; --prof-bg: #fffbeb; --prof-text: #b45309; }
.prof-4 { --prof-color: #8b5cf6; --prof-bg: #f5f3ff; --prof-text: #6d28d9; }
.prof-5 { --prof-color: #ec4899; --prof-bg: #fdf2f8; --prof-text: #be185d; }
.prof-6 { --prof-color: #14b8a6; --prof-bg: #f0fdfa; --prof-text: #0f766e; }
html.dark .prof-1, html.dark .prof-2, html.dark .prof-3,
html.dark .prof-4, html.dark .prof-5, html.dark .prof-6 {
  --prof-bg: rgb(99 102 241 / 0.12);
}

/* =================== MAIN =================== */
.main { padding: 28px; max-width: 1320px; }

.title-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  margin-bottom: 24px;
}
.title-row h1 {
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.02em;
}
.title-row .subtitle { color: var(--fg-muted); font-size: 14px; margin-top: 4px; }
.title-row .actions { display: flex; gap: 8px; flex-shrink: 0; }

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all var(--tr-fast);
  user-select: none;
}
.btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}
.btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.btn:active { transform: translateY(0.5px); }

.btn.primary {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sm), var(--shadow-inset);
}
.btn.primary:hover {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 100%);
  box-shadow: var(--shadow), var(--shadow-inset);
}

.btn.secondary {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: transparent;
}
.btn.secondary:hover { background: var(--brand-100); }
html.dark .btn.secondary:hover { background: rgb(99 102 241 / 0.2); }

.btn.danger {
  background: var(--danger-600); color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sm), var(--shadow-inset);
}
.btn.danger:hover { background: var(--danger-700); }

.btn.ghost { background: transparent; border-color: transparent; color: var(--fg-secondary); }
.btn.ghost:hover { background: var(--surface-hover); color: var(--fg); }

.btn.link {
  background: transparent; border-color: transparent;
  color: var(--accent); padding: 4px 6px;
}
.btn.link:hover { background: var(--accent-soft); }

.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: var(--radius-sm); gap: 4px; }
.btn.lg { padding: 11px 18px; font-size: 14px; border-radius: var(--radius-md); }
.btn.icon-only { padding: 7px; }

.btn.loading { color: transparent; pointer-events: none; position: relative; }
.btn.loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 14px; height: 14px;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  color: var(--accent);
}
.btn[disabled], .btn:disabled { opacity: .5; pointer-events: none; }

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

/* =================== CARD =================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.card.tight { padding: 14px; }
.card.hoverable:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.card.elevated { box-shadow: var(--shadow); }

.card-title {
  font-size: 15px; font-weight: 600; margin-bottom: 14px;
  display: flex; justify-content: space-between; align-items: center;
  letter-spacing: -0.005em;
}
.card-title .link { font-size: 12px; font-weight: 500; }

/* =================== METRICS =================== */
.metric {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
  position: relative; overflow: hidden;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.metric:hover { border-color: var(--border-hover); box-shadow: var(--shadow-sm); }
.metric .label {
  font-size: 12px; color: var(--fg-muted);
  font-weight: 500; letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 6px;
}
.metric .value {
  font-size: 28px; font-weight: 700; margin-top: 8px;
  letter-spacing: -0.025em; color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.metric .delta {
  font-size: 12px; margin-top: 8px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}
.metric .delta.up { color: var(--success-700); }
.metric .delta.down { color: var(--danger-700); }
.metric .delta.up::before { content: "↑"; }
.metric .delta.down::before { content: "↓"; }
.metric .sparkline {
  position: absolute; bottom: 0; right: 0;
  width: 100%; height: 38px; opacity: 0.6;
  pointer-events: none;
}

html.dark .metric .delta.up { color: #6ee7b7; }
html.dark .metric .delta.down { color: #fca5a5; }

/* =================== GRID =================== */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.grid-1-2 { grid-template-columns: 1fr 2fr; }

/* =================== TABLE =================== */
.table-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.table-toolbar {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 96%, var(--slate-100)) 100%);
}
.table-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
th {
  font-size: 11px; text-transform: uppercase; color: var(--fg-muted);
  font-weight: 600; letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--surface) 96%, var(--slate-100));
}
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background var(--tr-fast); }
tbody tr:hover { background: var(--surface-hover); }

.cell-strong { font-weight: 600; color: var(--fg); }
.cell-muted { color: var(--fg-muted); font-size: 13px; }
.cell-actions { text-align: right; }
.row-stack { display: flex; flex-direction: column; gap: 2px; }
.row-stack .sub { font-size: 12px; color: var(--fg-muted); }
.cell-avatar { display: flex; align-items: center; gap: 10px; }

.pagination {
  padding: 12px 16px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--fg-muted);
  background: color-mix(in srgb, var(--surface) 97%, var(--slate-100));
}
.pagination .pages { display: flex; gap: 4px; }
.pagination .pages .pg {
  min-width: 28px; height: 28px; padding: 0 8px;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 12px; cursor: pointer; background: var(--surface);
  transition: all var(--tr-fast);
}
.pagination .pages .pg:hover { border-color: var(--border-hover); background: var(--surface-hover); }
.pagination .pages .pg.active {
  background: var(--gradient-brand); color: #fff; border-color: transparent;
  box-shadow: var(--shadow-sm);
}

/* =================== TAGS / BADGES =================== */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 500;
  background: var(--slate-100); color: var(--fg-muted);
  white-space: nowrap;
}
.tag.green, .tag.status-confirmado, .tag.status-pago { background: var(--success-50); color: var(--success-700); }
.tag.red, .tag.status-noshow, .tag.status-atrasado { background: var(--danger-50); color: var(--danger-700); }
.tag.yellow, .tag.status-pendente, .tag.status-apagar { background: var(--warning-50); color: var(--warning-700); }
.tag.blue, .tag.status-concluido { background: var(--brand-50); color: var(--brand-700); }
.tag.gray, .tag.status-cancelado { background: var(--slate-100); color: var(--fg-muted); }

html.dark .tag { background: var(--slate-800); color: var(--fg-muted); }
html.dark .tag.green, html.dark .tag.status-confirmado, html.dark .tag.status-pago { background: rgb(16 185 129 / 0.12); color: #6ee7b7; }
html.dark .tag.red, html.dark .tag.status-noshow, html.dark .tag.status-atrasado { background: rgb(239 68 68 / 0.12); color: #fca5a5; }
html.dark .tag.yellow, html.dark .tag.status-pendente, html.dark .tag.status-apagar { background: rgb(245 158 11 / 0.12); color: #fcd34d; }
html.dark .tag.blue, html.dark .tag.status-concluido { background: rgb(99 102 241 / 0.12); color: var(--brand-300); }

/* Tag com dot status */
.tag.with-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

/* =================== INPUTS / FORMS =================== */
.input, .select, .textarea {
  width: 100%; padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--fg);
  font-size: 14px; font-family: inherit;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-hover); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring-focus);
}
.input::placeholder, .textarea::placeholder { color: var(--fg-subtle); }
.input.sm { padding: 6px 10px; font-size: 13px; }
.input.error, .select.error, .textarea.error {
  border-color: var(--danger-500); background: var(--danger-50);
}
.input.error:focus { box-shadow: 0 0 0 3px rgb(239 68 68 / 0.18); }

.input-with-icon { position: relative; display: inline-block; }
.input-with-icon .input { padding-left: 34px; }
.input-with-icon i[data-lucide] {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--fg-subtle); pointer-events: none;
}
.input-with-icon::before { /* fallback emoji se Lucide não carregou */
  content: ""; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
}

.form-group { margin-bottom: 16px; }
.form-group > label {
  display: block; font-size: 13px; font-weight: 500;
  margin-bottom: 6px; color: var(--fg-secondary);
}
.form-group label .required { color: var(--danger-500); margin-left: 2px; }
.form-group .help { font-size: 12px; color: var(--fg-muted); margin-top: 5px; }
.form-group.has-error .help { color: var(--danger-700); font-weight: 500; }

.form-row { display: grid; gap: 14px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  margin-bottom: 16px;
}
.form-section h3 {
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.005em; margin-bottom: 4px;
}
.form-section .section-desc {
  font-size: 13px; color: var(--fg-muted);
  margin-bottom: 18px;
}

.form-actions {
  display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px;
}

.checkbox, .radio {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; cursor: pointer; color: var(--fg-secondary);
}
.checkbox input, .radio input {
  margin: 0; cursor: pointer;
  accent-color: var(--accent);
}

/* =================== TABS =================== */
.tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border);
  margin-bottom: 24px; position: relative;
}
.tabs a {
  padding: 12px 16px; font-size: 13px; font-weight: 500;
  color: var(--fg-muted);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  margin-bottom: -1px;
  transition: color var(--tr-fast), border-color var(--tr-fast);
}
.tabs a:hover { color: var(--fg); text-decoration: none; }
.tabs a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* =================== SKELETONS / PLACEHOLDERS =================== */
.skel {
  background: linear-gradient(90deg,
    var(--skel) 25%,
    color-mix(in srgb, var(--skel) 60%, var(--surface)) 50%,
    var(--skel) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-line { height: 10px; }
.skel-line + .skel-line { margin-top: 7px; }
.skel-line.short  { width: 30%; }
.skel-line.medium { width: 60%; }
.skel-line.long   { width: 90%; }
.skel-block { border-radius: var(--radius-md); }

.image-ph {
  background: var(--gradient-mesh), var(--surface-hover);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  color: var(--fg-subtle); font-size: 12px;
  text-align: center; padding: 16px;
}

/* =================== EMPTY / NOTES =================== */
.note {
  font-size: 13px; padding: 12px 16px;
  background: var(--warning-50); color: var(--warning-700);
  border: 1px solid color-mix(in srgb, var(--warning-500) 30%, transparent);
  border-left: 3px solid var(--warning-500);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  display: flex; gap: 10px; align-items: flex-start;
}
.note.info {
  background: var(--info-50); color: var(--info-600);
  border-color: color-mix(in srgb, var(--info-500) 30%, transparent);
  border-left-color: var(--info-500);
}
.note.success {
  background: var(--success-50); color: var(--success-700);
  border-color: color-mix(in srgb, var(--success-500) 30%, transparent);
  border-left-color: var(--success-500);
}

.empty-state {
  text-align: center; padding: 64px 24px;
  color: var(--fg-muted);
  background: var(--surface); border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.empty-state .illustration {
  width: 96px; height: 96px; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: var(--gradient-mesh);
  border-radius: var(--radius-full);
  color: var(--accent);
}

/* =================== STATES =================== */
.state-loading {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
}
.state-loading .skel-row {
  display: flex; gap: 14px; align-items: center; padding: 10px 0;
}
.state-loading .skel-row .skel { height: 36px; width: 36px; border-radius: 50%; }
.state-loading .skel-row .lines { flex: 1; }

.state-error {
  background: var(--surface); border: 1px solid var(--danger-50);
  border-left: 3px solid var(--danger-500);
  border-radius: var(--radius-lg); padding: 18px;
  display: flex; gap: 14px; align-items: center;
}

.state-no-permission {
  background: var(--surface); border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg); padding: 64px;
  text-align: center; color: var(--fg-muted);
}

/* =================== AUTH (public) =================== */
.auth-shell {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg);
}
.auth-shell .visual {
  background: var(--gradient-brand);
  background-image:
    radial-gradient(at 0% 0%, rgb(255 255 255 / 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgb(255 255 255 / 0.08) 0px, transparent 50%),
    var(--gradient-brand);
  color: #fff; padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-shell .visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 70%, rgb(255 255 255 / 0.06), transparent 50%);
  pointer-events: none;
}
.auth-shell .visual h2 {
  font-size: 32px; font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; max-width: 380px;
  position: relative; z-index: 1;
}
.auth-shell .visual .quote { font-size: 14px; opacity: 0.85; max-width: 380px; position: relative; }
.auth-shell .form-side {
  display: flex; align-items: center; justify-content: center; padding: 32px;
}
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 {
  font-size: 24px; font-weight: 700; margin-bottom: 6px;
  letter-spacing: -0.025em;
}
.auth-card .subtitle { color: var(--fg-muted); font-size: 14px; margin-bottom: 24px; }
.auth-footer { font-size: 13px; color: var(--fg-muted); text-align: center; margin-top: 16px; }

/* =================== PUBLIC SCHEDULER =================== */
.public-shell { max-width: 480px; margin: 0 auto; padding: 24px 16px; }
.public-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.estab-cover {
  height: 140px;
  background: var(--gradient-brand);
  background-image:
    radial-gradient(at 30% 30%, rgb(255 255 255 / 0.15) 0px, transparent 50%),
    var(--gradient-brand);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin: -24px -24px 16px;
  position: relative;
}
.estab-cover .estab-logo {
  position: absolute; bottom: -28px; left: 22px;
  width: 64px; height: 64px; border-radius: var(--radius-lg);
  background: var(--surface); border: 3px solid var(--surface);
  display: grid; place-items: center; font-weight: 700;
  color: var(--accent);
  box-shadow: var(--shadow);
}

/* =================== CALENDAR =================== */
.calendar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.calendar-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 96%, var(--slate-100)) 100%);
}
.cal-grid {
  display: grid; grid-template-columns: 60px repeat(7, 1fr);
  border-top: 1px solid var(--border);
}
.cal-grid .col-head {
  padding: 10px 8px;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--fg-muted); text-align: center;
  font-weight: 500;
}
.cal-grid .time-col {
  padding: 6px 8px;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: 11px; color: var(--fg-subtle); text-align: right;
  min-height: 40px; font-variant-numeric: tabular-nums;
}
.cal-grid .slot {
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  min-height: 40px; padding: 2px; position: relative;
  transition: background var(--tr-fast);
}
.cal-grid .slot:hover { background: var(--accent-soft); }

.cal-event {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  border-radius: var(--radius-xs); padding: 5px 7px;
  font-size: 11px; color: var(--accent-text);
  margin-bottom: 2px; line-height: 1.3;
  cursor: grab;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
}
.cal-event:hover { transform: scale(1.02); box-shadow: var(--shadow-sm); z-index: 1; position: relative; }
.cal-event.prof { background: var(--prof-bg); border-left-color: var(--prof-color); color: var(--prof-text); }
.cal-event.prof.cancelled { opacity: .5; text-decoration: line-through; }
.cal-event.prof.noshow {
  background: repeating-linear-gradient(45deg, var(--prof-bg), var(--prof-bg) 4px, var(--surface) 4px, var(--surface) 6px);
  border-left-color: var(--danger-500);
}

/* =================== MODAL =================== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgb(15 23 42 / 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
  z-index: 50; padding: 24px;
  animation: fade-in 200ms ease-out;
}
.modal {
  background: var(--surface); border-radius: var(--radius-xl);
  max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  animation: slide-up 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.lg { max-width: 760px; }
.modal.sm { max-width: 400px; }
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-header h2 {
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.01em;
}
.modal-header .close {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm); cursor: pointer;
  color: var(--fg-muted);
  transition: all var(--tr-fast);
}
.modal-header .close:hover { background: var(--surface-hover); color: var(--fg); }
.modal-body { padding: 22px 24px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 96%, var(--slate-100));
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* =================== TOAST =================== */
.toast-stack {
  position: fixed; top: 20px; right: 20px; z-index: 60;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 380px;
}
.toast {
  background: var(--surface); color: var(--fg);
  padding: 14px 16px; border-radius: var(--radius-lg);
  display: flex; gap: 12px; align-items: flex-start;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  font-size: 13px;
  animation: slide-in-right 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.toast .toast-icon {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--slate-100); color: var(--fg-secondary);
}
.toast.success .toast-icon { background: var(--success-50); color: var(--success-700); }
.toast.error .toast-icon { background: var(--danger-50); color: var(--danger-700); }
.toast.warning .toast-icon { background: var(--warning-50); color: var(--warning-700); }
.toast .toast-title { font-weight: 600; margin-bottom: 2px; }

@keyframes slide-in-right { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* =================== HAMBURGER / MOBILE =================== */
.hamburger {
  display: none;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: transparent; border: 1px solid transparent;
  cursor: pointer; place-items: center;
  color: var(--fg-secondary);
}
.hamburger:hover { background: var(--surface-hover); border-color: var(--border); color: var(--fg); }

.mobile-frame {
  margin: 24px auto; max-width: 380px; border: 12px solid var(--slate-900);
  border-radius: 36px; overflow: hidden; background: var(--bg);
  box-shadow: var(--shadow-xl);
}
.mobile-frame .device-bar { height: 24px; background: var(--slate-900); }
.mobile-frame .device-screen { height: 720px; overflow-y: auto; }

/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: 0; left: -260px; height: 100vh; width: 240px;
    transition: left var(--tr) ease;
    z-index: 40; box-shadow: var(--shadow-xl);
  }
  .sidebar.open { left: 0; }
  .hamburger { display: grid; }
  .topbar { padding: 10px 14px; }
  .main { padding: 16px; }
  .grid-2, .grid-3, .grid-4, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .search-btn { display: none; }

  .table-card { border: 0; background: transparent; }
  .table-card thead { display: none; }
  .table-card .table-toolbar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 12px; }
  .table-card table, .table-card tbody, .table-card tr, .table-card td { display: block; }
  .table-card tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; margin-bottom: 10px; }
  .table-card tr td { padding: 4px 0; border: 0; }
  .table-card tr td::before { content: attr(data-label); display: block; font-size: 10px; color: var(--fg-muted); text-transform: uppercase; font-weight: 600; }
  .table-card tr td:first-child::before { display: none; }
  .table-card .pagination { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-top: 12px; }

  .calendar .cal-grid { display: none; }
  .calendar .day-list { display: block; }
  .title-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .title-row .actions { flex-wrap: wrap; }

  .auth-shell { grid-template-columns: 1fr; }
  .auth-shell .visual { display: none; }
}

/* =================== INDEX (sitemap) =================== */
.sitemap-shell { max-width: 1100px; margin: 0 auto; padding: 48px 24px; }
.sitemap-shell h1 { font-size: 32px; margin-bottom: 8px; letter-spacing: -0.025em; font-weight: 800; }
.sitemap-shell .subtitle { color: var(--fg-muted); margin-bottom: 32px; font-size: 15px; }
.sitemap-section { margin-bottom: 32px; }
.sitemap-section h2 {
  font-size: 16px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sitemap-grid a {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 14px;
  font-size: 13px; color: var(--fg); text-decoration: none;
  transition: all var(--tr-fast);
  display: flex; align-items: center; gap: 8px;
}
.sitemap-grid a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.sitemap-grid .num { color: var(--fg-subtle); font-size: 11px; font-variant-numeric: tabular-nums; }

/* =================== SKIP LINK =================== */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  padding: 8px 14px; border-radius: var(--radius-md);
  background: var(--accent); color: #fff; font-weight: 500; font-size: 13px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* =================== PROSE (markdown rendered) =================== */
.prose { max-width: 880px; line-height: 1.7; color: var(--fg-secondary); }
.prose h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; color: var(--fg); margin-bottom: 10px; margin-top: 0; }
.prose h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg);
  margin-top: 40px; margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.prose h3 {
  font-size: 17px; font-weight: 600; color: var(--fg);
  margin-top: 28px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.prose h3::before {
  content: ""; width: 3px; height: 16px;
  background: var(--accent); border-radius: 2px;
}
.prose h4 { font-size: 14px; font-weight: 600; color: var(--fg); margin-top: 18px; margin-bottom: 8px; }
.prose p { margin-bottom: 12px; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul, .prose ol { margin: 12px 0 12px 24px; }
.prose ul li, .prose ol li { margin-bottom: 6px; }
.prose ol { counter-reset: item; list-style: none; padding-left: 0; }
.prose ol > li {
  counter-increment: item;
  padding-left: 36px; position: relative; margin-bottom: 10px;
}
.prose ol > li::before {
  content: counter(item);
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-text);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}
.prose code {
  font-size: 12.5px;
  background: var(--surface-hover); color: var(--fg);
  padding: 2px 6px; border-radius: var(--radius-xs);
  border: 1px solid var(--border);
}
.prose a code { color: var(--accent); border-color: transparent; background: var(--accent-soft); }
.prose a { color: var(--accent); font-weight: 500; }
.prose a:hover { text-decoration: underline; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
.prose blockquote {
  border-left: 3px solid var(--border-strong);
  padding: 8px 16px; margin: 12px 0;
  color: var(--fg-muted); font-style: italic;
}
.prose table {
  width: 100%; margin: 16px 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
}
.prose table th, .prose table td {
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.prose table th {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--surface-hover); color: var(--fg-muted); font-weight: 600;
}
.prose table tr:last-child td { border-bottom: 0; }

/* TOC sidebar dentro de prose */
.toc-sidebar {
  position: sticky; top: 80px; align-self: start;
  max-height: calc(100vh - 110px); overflow-y: auto;
  padding-left: 16px; border-left: 1px solid var(--border);
}
.toc-sidebar a {
  display: block; padding: 4px 8px; font-size: 12.5px;
  color: var(--fg-muted); text-decoration: none;
  border-radius: var(--radius-xs);
  transition: all var(--tr-fast);
}
.toc-sidebar a:hover { background: var(--surface-hover); color: var(--fg); }
.toc-sidebar a.toc-h2 { font-weight: 600; color: var(--fg-secondary); margin-top: 8px; }
.toc-sidebar a.toc-h3 { padding-left: 18px; }

/* =================== UTILITIES =================== */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }
.text-muted { color: var(--fg-muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.fw-600 { font-weight: 600; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

kbd {
  font-family: 'Inter', sans-serif;
  font-size: 11px; padding: 2px 6px;
  background: var(--slate-100); color: var(--fg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius-xs);
  box-shadow: 0 1px 0 0 var(--border);
  font-weight: 500;
}
html.dark kbd { background: var(--slate-800); color: var(--fg); }
