/* ================================================================
   WhisperDictate Admin Dashboard — style.css v3.0
   Brand: navy #0D1931 + orange #c94010 — matching getwhisperdictate.com
   Premium admin dashboard with dark mode, charts, modals, toasts
   ================================================================ */


/* ================================================================
   1. RESET & BASE
   ================================================================ */

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

:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #0D1931;
  --text-secondary: #374151;
  --muted: #6b7a94;
  --accent: #c94010;
  --accent2: #0D1931;
  --green: #16a34a;
  --green-bg: rgba(34, 197, 94, .08);
  --red: #dc2626;
  --red-bg: rgba(239, 68, 68, .08);
  --orange: #c94010;
  --orange-bg: rgba(201, 64, 16, .06);
  --blue: #2563eb;
  --blue-bg: rgba(37, 99, 235, .08);
  --purple: #7c3aed;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(13, 25, 49, .06);
  --shadow-md: 0 4px 16px rgba(13, 25, 49, .08);
  --shadow-lg: 0 12px 40px rgba(13, 25, 49, .12);
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --transition-fast: .12s cubic-bezier(.16,1,.3,1);
  --transition-med: .2s cubic-bezier(.16,1,.3,1);
  --ease-out-expo: cubic-bezier(.16,1,.3,1);
  --ease-out-quad: cubic-bezier(.25,.46,.45,.94);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
               'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

::selection {
  background: var(--accent2);
  color: #fff;
}

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
}


/* ── Dark mode ──────────────────────────────── */

[data-theme="dark"] {
  --bg: #0f1117;
  --surface: #1a1d27;
  --card: #1a1d27;
  --border: #2a2d3a;
  --text: #e8eaed;
  --text-secondary: #b0b4bc;
  --muted: #8891a4;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .4);
  --green-bg: rgba(34, 197, 94, .12);
  --red-bg: rgba(239, 68, 68, .12);
  --orange-bg: rgba(201, 64, 16, .1);
  --blue-bg: rgba(37, 99, 235, .12);
}

[data-theme="dark"] .auth-card {
  background: var(--surface);
}

[data-theme="dark"] #auth-screen {
  background: linear-gradient(180deg, #0f1117 0%, #161824 100%);
}


/* ================================================================
   2. AUTH SCREEN
   ================================================================ */

#auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: linear-gradient(180deg, #0D1931 0%, #060c1a 100%);
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 380px;
  width: 100%;
  text-align: center;
}

.auth-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.auth-card h1 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}

.auth-card p {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.auth-card input[type="password"],
.auth-card input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .9rem;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  margin-bottom: 16px;
}

.auth-card input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 64, 16, .12);
}

.auth-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.auth-btn:hover {
  background: #b33a0e;
}

/* no scale on click */

.auth-error {
  display: none;
  color: var(--red);
  font-size: .82rem;
  margin-top: 12px;
  font-weight: 500;
}

.auth-spinner {
  display: none;
  color: var(--muted);
  font-size: .82rem;
  margin-top: 12px;
}


/* ================================================================
   3. SESSION WARNING BANNER
   ================================================================ */

.session-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--orange);
  color: #fff;
  padding: 10px 20px;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: .82rem;
  font-weight: 600;
}

.session-warning button {
  background: #fff;
  color: var(--orange);
  border: none;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.session-warning button:hover {
  opacity: .9;
}


/* ================================================================
   4. APP HEADER
   ================================================================ */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
}

.header-title {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.header-spacer {
  flex: 1;
}

.header-refresh-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--accent2);
  color: #fff;
  border-radius: 20px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .3px;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.header-btn:hover {
  background: rgba(13, 25, 49, .05);
}

[data-theme="dark"] .header-btn:hover {
  background: rgba(255, 255, 255, .06);
}

.header-btn.disconnect {
  color: var(--red);
}

.header-btn.disconnect:hover {
  background: var(--red-bg);
}


/* ================================================================
   5. NAVIGATION TABS
   ================================================================ */

.nav-tabs {
  display: flex;
  align-items: center;
  overflow-x: auto;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  gap: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition-fast), border-color var(--transition-fast),
              background var(--transition-fast);
  position: relative;
}

.nav-tab:hover {
  color: var(--text);
  background: rgba(201, 64, 16, .05);
}

.nav-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-emoji {
  font-size: .9rem;
  line-height: 1;
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  background: rgba(201, 64, 16, .15);
  color: var(--accent);
  border-radius: 20px;
  font-size: .65rem;
  font-weight: 700;
  min-width: 18px;
}


/* ================================================================
   6. MAIN CONTENT
   ================================================================ */

.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}


/* ================================================================
   7. STATS ROW
   ================================================================ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
  border: 1px solid var(--border);
}

/* stat-card: no hover effect — static display */

.stat-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.stat-value.orange { color: var(--orange); }
.stat-value.green  { color: var(--green); }
.stat-value.blue   { color: var(--blue); }
.stat-value.red    { color: var(--red); }
.stat-value.purple { color: var(--purple); }

.stat-detail {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 4px;
}


/* ================================================================
   8. CARDS
   ================================================================ */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  overflow: hidden;
}

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

.card-header h2 {
  font-size: .88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 20px;
}

.card-body-compact {
  padding: 0;
  overflow-x: auto;
}

.card-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* ================================================================
   9. INFO GRID
   ================================================================ */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
}


/* ================================================================
   10. INFO ROWS
   ================================================================ */

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: .8rem;
  color: var(--text-secondary);
}

.info-value {
  font-size: .8rem;
  font-weight: 600;
  font-family: var(--mono);
}


/* ================================================================
   11. TABLES
   ================================================================ */

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 10px 16px;
  text-align: left;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  background: rgba(248, 249, 251, .5);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  white-space: nowrap;
}

[data-theme="dark"] th {
  background: rgba(15, 17, 23, .5);
}

td {
  padding: 10px 16px;
  font-size: .82rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

/* table rows: no hover highlight — clean static display */


/* ================================================================
   12. BADGES
   ================================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge.active  { background: var(--green-bg); color: var(--green); }
.badge.expired { background: var(--orange-bg); color: var(--orange); }
.badge.revoked { background: var(--red-bg); color: var(--red); }
.badge.info    { background: var(--blue-bg); color: var(--blue); }


/* ================================================================
   13. BUTTONS
   ================================================================ */

.btn-create {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-create:hover {
  background: #b33a0e;
}

/* no scale on click */

.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--muted);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.btn-export:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 600;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast),
              background var(--transition-fast);
}

.btn-sm:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm.danger {
  color: var(--red);
  border-color: var(--red);
}

.btn-sm.danger:hover {
  background: var(--red-bg);
}

.btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.btn-cancel:hover {
  border-color: var(--muted);
  background: rgba(13, 25, 49, .03);
}

.btn-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-confirm:hover {
  background: #b33a0e;
}

.btn-confirm.danger {
  background: var(--red);
}

.btn-confirm.danger:hover {
  background: #b91c1c;
}


/* ================================================================
   14. FORMS
   ================================================================ */

.form-input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 64, 16, .1);
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  background: var(--surface);
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.filter-select:focus {
  border-color: var(--accent);
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrapper .search-icon {
  position: absolute;
  left: 10px;
  color: var(--muted);
  font-size: .82rem;
  pointer-events: none;
}

.search-input {
  padding: 8px 12px 8px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  background: var(--surface);
  color: var(--text);
  outline: none;
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 64, 16, .1);
}


/* ================================================================
   15. BAR CHARTS
   ================================================================ */

.chart-container {
  padding: 16px 20px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 80px;
}

.bar {
  flex: 1;
  min-width: 2px;
  background: linear-gradient(to top, var(--accent), rgba(201, 64, 16, .7));
  border-radius: 2px 2px 0 0;
  position: relative;
  transition: height .3s var(--ease-out-expo);
  cursor: pointer;
}

.bar-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent2);
  color: #fff;
  font-size: .65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  margin-bottom: 4px;
}

.bar:hover .bar-tooltip {
  opacity: 1;
}

.bar-chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: .65rem;
  color: var(--muted);
  margin-top: 6px;
}


/* ================================================================
   16. STACKED BAR CHART (costs)
   ================================================================ */

.stacked-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 80px;
}

.stacked-bar {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  min-width: 3px;
  position: relative;
  cursor: pointer;
}

.stacked-bar .bar-segment {
  transition: height .3s var(--ease-out-expo);
  min-height: 0;
}

.stacked-bar .bar-segment.whisper {
  background: var(--orange);
  border-radius: 0;
}

.stacked-bar .bar-segment.whisper:last-child {
  border-radius: 2px 2px 0 0;
}

.stacked-bar .bar-segment.mistral {
  background: var(--purple);
  border-radius: 2px 2px 0 0;
}

.stacked-bar .bar-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent2);
  color: #fff;
  font-size: .65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity var(--transition-fast);
  margin-bottom: 4px;
  line-height: 1.4;
}

.stacked-bar:hover .bar-tooltip {
  opacity: 1;
}


/* ================================================================
   17. DONUT CHARTS
   ================================================================ */

.donut-chart-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.donut-svg {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.donut-legend-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.donut-legend-label {
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.donut-legend-value {
  font-size: .78rem;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}


/* ================================================================
   18. HEATMAP
   ================================================================ */

.heatmap-row {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.heatmap-cell {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  border-radius: 4px;
  color: var(--muted);
  font-weight: 600;
}

/* heatmap: no hover zoom */

.heatmap-cell.h0 { background: rgba(201, 64, 16, .04); }
.heatmap-cell.h1 { background: rgba(201, 64, 16, .12); color: var(--text); }
.heatmap-cell.h2 { background: rgba(201, 64, 16, .22); color: var(--text); }
.heatmap-cell.h3 { background: rgba(201, 64, 16, .35); color: #fff; }
.heatmap-cell.h4 { background: rgba(201, 64, 16, .55); color: #fff; }
.heatmap-cell.h5 { background: var(--accent); color: #fff; }


/* ================================================================
   19. PROGRESS BARS
   ================================================================ */

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .4s var(--ease-out-expo);
}

.progress-fill.green  { background: var(--green); }
.progress-fill.orange { background: var(--orange); }
.progress-fill.red    { background: var(--red); }
.progress-fill.blue   { background: var(--blue); }
.progress-fill.purple { background: var(--purple); }


/* ================================================================
   20. CHAT MESSAGES
   ================================================================ */

.msg-pair {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}

.msg-pair:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.msg {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.msg:last-child {
  margin-bottom: 0;
}

.msg-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.msg-icon.user {
  background: var(--blue-bg);
  color: var(--blue);
}

.msg-icon.bot {
  background: rgba(124, 58, 237, .1);
  color: var(--purple);
}

.msg-body {
  flex: 1;
  min-width: 0;
}

.msg-text {
  font-size: .82rem;
  line-height: 1.5;
  word-break: break-word;
}

.msg-meta {
  margin-top: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .68rem;
  color: var(--muted);
  align-items: center;
}

.on-topic-yes {
  color: var(--green);
  font-weight: 600;
}

.on-topic-no {
  color: var(--red);
  font-weight: 600;
}

.category-tag {
  background: rgba(201, 64, 16, .08);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.feedback-positive {
  font-size: .85rem;
  line-height: 1;
}

.feedback-negative {
  font-size: .85rem;
  line-height: 1;
}


/* ================================================================
   21. TIME FILTER BAR
   ================================================================ */

.time-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.time-filter-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.time-pills {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 3px;
}

.time-pill {
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.time-pill:hover {
  color: var(--text-primary);
  background: var(--bg-primary);
}

.time-pill.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 3px rgba(59, 130, 246, .3);
}

.time-filter-range {
  font-size: .72rem;
  color: var(--muted);
  font-family: var(--mono);
  margin-left: auto;
}

.header-count {
  font-size: .72rem;
  font-weight: 400;
  color: var(--muted);
}

.time-ago {
  font-size: .72rem;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

tr.row-alert {
  background: rgba(239, 68, 68, .04);
}

tr.row-alert td {
  border-bottom-color: rgba(239, 68, 68, .12);
}


/* ================================================================
   22. CLIENT LABELS & ACTIVITY
   ================================================================ */

.client-label {
  font-weight: 600;
  font-size: .82rem;
  display: block;
}

.client-id {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.client-badge {
  display: inline-block;
  font-size: .62rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.client-badge.primary {
  background: rgba(34, 197, 94, .12);
  color: #16a34a;
}

.client-badge.new {
  background: rgba(59, 130, 246, .12);
  color: #3b82f6;
}

.activity-bar {
  width: 100%;
  height: 3px;
  background: var(--bg-secondary);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.activity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  border-radius: 2px;
  transition: width .4s var(--ease-out-expo);
}

.stat-detail {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 4px;
}


/* ================================================================
   23. SUPPORT ENHANCEMENTS
   ================================================================ */

.btn-sm.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}

.btn-sm.primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.email-link {
  font-size: .68rem;
  color: var(--accent);
  text-decoration: none;
  margin-left: 4px;
}

.email-link:hover {
  text-decoration: underline;
}

/* ── File upload & attachments ── */

.upload-btn {
  display: inline-block;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--bg-secondary);
  border: 1px dashed var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.upload-btn:hover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, .05);
}

.attachments-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .75rem;
}

.attachment-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.attachment-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.attachment-file {
  font-size: .72rem;
}

.attachment-remove {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
}

/* ── Template chips ── */

.templates-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.template-chip {
  padding: 5px 10px;
  font-size: .72rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.template-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59, 130, 246, .05);
}

.template-chip.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}


/* ================================================================
   24. CONVERSATIONS & USER PROFILES
   ================================================================ */

.stat-clickable {
  cursor: pointer;
}

.stat-clickable:hover {
  border-color: var(--accent);
}

.conv-card {
  border-bottom: 1px solid var(--border);
}

.conv-card:last-child {
  border-bottom: none;
}

.conv-header {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  grid-template-rows: auto auto;
  gap: 0 12px;
  align-items: center;
  padding: 14px 20px;
  cursor: pointer;
}

.conv-header:hover {
  background: rgba(59, 130, 246, .02);
}

.conv-avatar {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .5px;
}

.conv-avatar.large {
  width: 48px;
  height: 48px;
  font-size: .85rem;
}

.conv-info {
  min-width: 0;
}

.conv-name {
  font-weight: 600;
  font-size: .85rem;
  line-height: 1.3;
}

.conv-email {
  font-size: .72rem;
}

.conv-meta {
  text-align: right;
  font-size: .72rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
}

.conv-count {
  font-weight: 600;
  color: var(--accent);
}

.conv-time {
  color: var(--muted);
}

.conv-preview {
  grid-column: 2 / 4;
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.conv-chevron {
  grid-row: 1 / 3;
  font-size: .7rem;
  color: var(--muted);
  padding-left: 8px;
}

.conv-body {
  padding: 0 20px 16px 70px;
}

.conv-msg {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.conv-msg:first-child {
  border-top: none;
}

.conv-msg-q, .conv-msg-a {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: .82rem;
  line-height: 1.5;
  margin-bottom: 4px;
}

.conv-msg-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conv-msg-icon.bot {
  background: #8b5cf6;
}

.conv-msg-a {
  color: var(--text-secondary);
}

.conv-msg-meta {
  font-size: .68rem;
  color: var(--muted);
  padding-left: 30px;
  margin-top: 2px;
}

/* User profiles grid */
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 16px 20px;
}

.user-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
}

.user-card:hover {
  border-color: var(--accent);
}

.user-card .conv-avatar {
  margin: 0 auto 10px;
}

.user-card-name {
  font-weight: 600;
  font-size: .88rem;
}

.user-card-email {
  font-size: .72rem;
  margin-top: 2px;
}

.user-card-stats {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 8px;
}

.user-card-time {
  font-size: .68rem;
  color: var(--muted);
  margin-top: 4px;
}


/* ================================================================
   25. PAGINATION
   ================================================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}

.pagination button {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast),
              background var(--transition-fast);
}

.pagination button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.page-info {
  font-size: .78rem;
  color: var(--muted);
}


/* ================================================================
   22. EMPTY STATE
   ================================================================ */

.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  line-height: 1;
}

.empty-state-title {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 4px;
}

.empty-state-text {
  font-size: .82rem;
  color: var(--muted);
}


/* ================================================================
   23. QUICK ACTIONS
   ================================================================ */

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.quick-action {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.quick-action-icon.orange { background: rgba(201, 64, 16, .1); color: var(--orange); }
.quick-action-icon.red    { background: var(--red-bg); color: var(--red); }
.quick-action-icon.green  { background: var(--green-bg); color: var(--green); }
.quick-action-icon.blue   { background: var(--blue-bg); color: var(--blue); }
.quick-action-icon.purple { background: rgba(124, 58, 237, .1); color: var(--purple); }

.quick-action-text h3 {
  font-size: .82rem;
  font-weight: 700;
}

.quick-action-text p {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 2px;
}


/* ================================================================
   24. MODAL SYSTEM
   ================================================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  min-width: 400px;
  max-width: 520px;
  width: 90%;
  overflow: hidden;
  animation: modal-in .2s var(--ease-out-expo);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.modal-header p {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 4px;
}

.modal-body {
  padding: 20px 24px;
}

.modal-body label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 4px;
  margin-top: 12px;
  color: var(--text-secondary);
}

.modal-body label:first-child {
  margin-top: 0;
}

.modal-body input,
.modal-body textarea,
.modal-body select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .85rem;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.modal-body input:focus,
.modal-body textarea:focus,
.modal-body select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 64, 16, .1);
}

.modal-body textarea {
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
}

.modal-footer {
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
}


/* ================================================================
   25. TOAST SYSTEM
   ================================================================ */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 600;
  transform: translateX(100%);
  opacity: 0;
  transition: transform .25s var(--ease-out-expo), opacity .2s var(--ease-out-quad);
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  max-width: 360px;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success { background: #059669; color: #fff; }
.toast.error   { background: #dc2626; color: #fff; }
.toast.warning { background: #d97706; color: #fff; }
.toast.info    { background: #2563eb; color: #fff; }


/* ================================================================
   26. SECTION TITLE
   ================================================================ */

.section-title {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
}


/* ================================================================
   27. AUDIT ACTION BADGES
   ================================================================ */

.audit-action {
  display: inline-flex;
  align-items: center;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.audit-action.create { background: var(--green-bg); color: var(--green); }
.audit-action.revoke { background: var(--orange-bg); color: var(--orange); }
.audit-action.delete { background: var(--red-bg); color: var(--red); }
.audit-action.update { background: var(--blue-bg); color: var(--blue); }


/* ================================================================
   28. HEALTH DOT
   ================================================================ */

.health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.health-dot.online {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.health-dot.offline {
  background: var(--red);
}


/* ================================================================
   29. CREATE FORM
   ================================================================ */

.create-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.create-form input {
  flex: 1;
}


/* ================================================================
   30. CELL CODE (contributor)
   ================================================================ */

.cell-code {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .5px;
}


/* ================================================================
   31. PERIOD SELECTOR
   ================================================================ */

.period-selector {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.period-btn {
  padding: 4px 12px;
  font-size: .72rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.period-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.period-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}


/* ================================================================
   32. COST ALERT
   ================================================================ */

.cost-alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 600;
}

.cost-alert.warning {
  background: var(--orange-bg);
  border: 1px solid var(--orange);
  color: var(--orange);
}

.cost-alert.danger {
  background: var(--red-bg);
  border: 1px solid var(--red);
  color: var(--red);
}

.cost-alert-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}


/* ================================================================
   33. LIVE INDICATOR
   ================================================================ */

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  margin-right: 6px;
  position: relative;
}

.live-dot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-live 1.5s ease-out infinite;
}

@keyframes pulse-live {
  0%   { opacity: .5; transform: scale(1); }
  100% { opacity: 0;  transform: scale(1.8); }
}


/* ================================================================
   34. ACTIVITY FEED
   ================================================================ */

.feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .78rem;
  transition: background var(--transition-fast);
}

.feed-item:last-child {
  border-bottom: none;
}

/* feed-item: no hover highlight */

/* dark mode feed-item: no hover */

.feed-ts {
  color: var(--muted);
  font-size: .68rem;
  white-space: nowrap;
  min-width: 50px;
  font-family: var(--mono);
}

.feed-provider {
  font-weight: 700;
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.feed-provider.openai { background: var(--orange-bg); color: var(--orange); }
.feed-provider.local  { background: var(--blue-bg); color: var(--blue); }
.feed-provider.api    { background: rgba(124, 58, 237, .1); color: var(--purple); }

.feed-success { color: var(--green); font-weight: 600; }
.feed-error   { color: var(--red); font-weight: 600; }


/* ================================================================
   35. IDEA STATUS SELECT
   ================================================================ */

.idea-status-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: .78rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.idea-status-select:focus {
  border-color: var(--accent);
}


/* ================================================================
   36. RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .donut-chart-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal {
    min-width: unset;
    max-width: 95%;
    width: 95%;
  }
}

@media (max-width: 600px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: 12px;
  }

  .nav-tab {
    font-size: .72rem;
    padding: 8px 10px;
  }

  .app-header {
    padding: 0 12px;
    gap: 8px;
  }

  .header-title {
    font-size: .88rem;
  }

  .card-header {
    padding: 12px 16px;
  }

  .card-body {
    padding: 16px;
  }

  .auth-card {
    padding: 28px 24px;
  }

  th, td {
    padding: 8px 10px;
  }
}


/* ================================================================
   37. AUTO-REFRESH INDICATOR
   ================================================================ */

.header-refresh-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  display: inline-block;
  animation: pulse-refresh 2s ease-in-out infinite;
}

@keyframes pulse-refresh {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

#refresh-text {
  font-size: .68rem;
  color: var(--muted);
}


/* ================================================================
   38. SCROLLBAR STYLING
   ================================================================ */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}


/* ================================================================
   UTILITY: HIDDEN / VISIBLE
   ================================================================ */

.hidden {
  display: none !important;
}

.visible {
  display: flex !important;
}


/* ================================================================
   UTILITY: TEXT ALIGNMENT
   ================================================================ */

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.text-mono {
  font-family: var(--mono);
}

.text-muted {
  color: var(--muted);
}

.text-accent {
  color: var(--accent);
}

.text-green {
  color: var(--green);
}

.text-red {
  color: var(--red);
}

.fw-700 {
  font-weight: 700;
}

.fs-sm {
  font-size: .78rem;
}

.fs-xs {
  font-size: .68rem;
}


/* ================================================================
   TRANSITIONS: tab content panels
   ================================================================ */

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Tab panel enter animation — clean fade, no bounce, no translate */
.tab-panel {
  animation: tab-enter .18s var(--ease-out-expo);
}

@keyframes tab-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ================================================================
   NEW: Period Selector
   ================================================================ */

.period-selector {
  display: flex;
  gap: 4px;
}

.period-btn {
  padding: 4px 12px;
  font-size: .72rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.period-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.period-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}


/* ================================================================
   NEW: Cost Alerts
   ================================================================ */

.cost-alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 500;
}

.cost-alert.warning {
  background: var(--orange-bg);
  border: 1px solid var(--orange);
  color: var(--orange);
}

.cost-alert.danger {
  background: var(--red-bg);
  border: 1px solid var(--red);
  color: var(--red);
}

.cost-alert-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}


/* ================================================================
   NEW: Live Indicator
   ================================================================ */

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  margin-right: 4px;
  position: relative;
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); }
  50%      { opacity: .7; box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}


/* ================================================================
   NEW: Activity Feed
   ================================================================ */

.feed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .78rem;
  transition: background var(--transition-fast);
}

/* feed-item: no hover highlight */

.feed-item:last-child {
  border-bottom: none;
}

.feed-ts {
  color: var(--muted);
  font-size: .68rem;
  white-space: nowrap;
  min-width: 55px;
}

.feed-provider {
  font-weight: 700;
  font-size: .65rem;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
}

.feed-provider.openai {
  background: var(--orange-bg);
  color: var(--orange);
}

.feed-provider.local {
  background: var(--blue-bg);
  color: var(--blue);
}

.feed-provider.api {
  background: rgba(124, 58, 237, .1);
  color: var(--purple);
}

.feed-success {
  font-size: .72rem;
  margin-left: auto;
}

.feed-error {
  font-size: .72rem;
  margin-left: auto;
}


/* ================================================================
   NEW: Sortable Table Headers
   ================================================================ */

th[data-sort] {
  cursor: pointer;
  user-select: none;
}

/* sort headers: no arrows, no color change on hover — just clickable */
