/* ═══════════════════════════════════════════════════════════════════════
   ADM Client Portal — Liquid Glass at Dusk
   Design system tokens from design-tokens.json
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Fonts ──────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@500;600&family=JetBrains+Mono:wght@400&display=swap');

/* ─── Variables ──────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-deep: #0B0D1A;
  --bg-dusk: #141833;
  --bg-twilight: #1C2347;

  /* Glass tiers */
  --glass-1: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.07);
  --glass-3: rgba(255, 255, 255, 0.12);
  --glass-4: rgba(255, 255, 255, 0.18);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(255, 255, 255, 0.20);

  /* Accents */
  --accent: #7B8FE6;
  --accent-warm: #E8A87C;
  --accent-rose: #D4708F;
  --accent-violet: #9B7FD4;
  --accent-teal: #5BC4B8;

  /* Text */
  --text-primary: #F0F0F5;
  --text-secondary: rgba(240, 240, 245, 0.65);
  --text-tertiary: rgba(240, 240, 245, 0.40);

  /* Gradients */
  --grad-dusk: linear-gradient(135deg, #0B0D1A 0%, #1C2347 50%, #2A1B3D 100%);
  --grad-glow: linear-gradient(135deg, #7B8FE6 0%, #D4708F 50%, #E8A87C 100%);
  --grad-glass: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);

  /* Radius */
  --r-card: 24px;
  --r-input: 16px;
  --r-btn: 12px;
  --r-pill: 100px;

  /* Shadow */
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --shadow-glow: 0 4px 24px rgba(123, 143, 230, 0.3);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Status colours */
  --status-draft: #6B7280;
  --status-pending: #E8A87C;
  --status-scheduled: #7B8FE6;
  --status-published: #5BC4B8;
  --status-failed: #EF4444;
}

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

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 300;
  color: var(--text-primary);
  background: var(--bg-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }

/* ─── Login Page ─────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-dusk);
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--grad-glass);
  backdrop-filter: blur(40px) saturate(1.3);
  -webkit-backdrop-filter: blur(40px) saturate(1.3);
  border: 1px solid var(--border-card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-glass);
  padding: 48px 40px;
}

.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo img {
  height: 40px;
  opacity: 0.9;
}

.login-logo h1 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
}

.login-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--r-btn);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: #FCA5A5;
  display: none;
}

.login-error.visible { display: block; }

/* ─── Forms ──────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--glass-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-input);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123, 143, 230, 0.15);
}

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

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(240,240,245,0.4)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--r-btn);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(123, 143, 230, 0.5);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-full { width: 100%; }

.btn-ghost {
  background: var(--glass-2);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: var(--glass-3);
  border-color: var(--border-card);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  font-size: 1rem;
}

/* ─── Portal Layout ──────────────────────────────────────────────────── */
.portal {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--bg-dusk);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

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

.sidebar-header img {
  height: 28px;
  opacity: 0.9;
}

.sidebar-header .portal-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-teal);
  font-family: 'Space Grotesk', sans-serif;
  margin-top: 8px;
  display: block;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.nav-section {
  padding: 0 12px;
  margin-bottom: 8px;
}

.nav-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 8px;
  font-family: 'Space Grotesk', sans-serif;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-btn);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.nav-item:hover {
  background: var(--glass-2);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(123, 143, 230, 0.12);
  color: var(--accent);
  font-weight: 500;
}

.nav-item .icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Space Grotesk', sans-serif;
}

/* Main content */
.main {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
}

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 13, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar h2 {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.content {
  padding: 32px;
  max-width: 1400px;
}

/* ─── Cards ──────────────────────────────────────────────────────────── */
.card {
  background: var(--grad-glass);
  backdrop-filter: blur(40px) saturate(1.3);
  -webkit-backdrop-filter: blur(40px) saturate(1.3);
  border: 1px solid var(--border-card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-glass);
  padding: 28px;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1rem;
  font-weight: 500;
}

/* ─── Stats Grid ─────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--grad-glass);
  backdrop-filter: blur(40px);
  border: 1px solid var(--border-card);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--shadow-glass);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-value.accent { color: var(--accent); }
.stat-value.teal { color: var(--accent-teal); }
.stat-value.warm { color: var(--accent-warm); }
.stat-value.rose { color: var(--accent-rose); }
.stat-value.violet { color: var(--accent-violet); }

/* ─── Tables ─────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-input);
  border: 1px solid var(--border-subtle);
}

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

th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-family: 'Space Grotesk', sans-serif;
  background: var(--glass-1);
  border-bottom: 1px solid var(--border-subtle);
}

td {
  padding: 14px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

tr:last-child td { border-bottom: none; }

tr:hover td {
  background: var(--glass-1);
}

/* ─── Status Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
}

.badge-draft {
  background: rgba(107, 114, 128, 0.15);
  color: #9CA3AF;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.badge-pending {
  background: rgba(232, 168, 124, 0.12);
  color: var(--accent-warm);
  border: 1px solid rgba(232, 168, 124, 0.3);
}

.badge-scheduled {
  background: rgba(123, 143, 230, 0.12);
  color: var(--accent);
  border: 1px solid rgba(123, 143, 230, 0.3);
}

.badge-published {
  background: rgba(91, 196, 184, 0.12);
  color: var(--accent-teal);
  border: 1px solid rgba(91, 196, 184, 0.3);
}

.badge-failed {
  background: rgba(239, 68, 68, 0.12);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-admin {
  background: rgba(155, 127, 212, 0.12);
  color: var(--accent-violet);
  border: 1px solid rgba(155, 127, 212, 0.3);
}

.badge-client {
  background: rgba(91, 196, 184, 0.12);
  color: var(--accent-teal);
  border: 1px solid rgba(91, 196, 184, 0.3);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ─── Calendar ───────────────────────────────────────────────────────── */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calendar-title {
  font-size: 1.25rem;
  font-weight: 400;
  min-width: 200px;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border-radius: var(--r-input);
  overflow: hidden;
}

.calendar-day-header {
  padding: 12px 8px;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg-dusk);
}

.calendar-day {
  min-height: 120px;
  padding: 8px;
  background: var(--bg-deep);
  cursor: pointer;
  transition: background 0.2s var(--ease);
  position: relative;
}

.calendar-day:hover {
  background: var(--bg-dusk);
}

.calendar-day.other-month {
  opacity: 0.3;
}

.calendar-day.today {
  background: rgba(123, 143, 230, 0.06);
}

.calendar-day.today .day-number {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-number {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.day-posts {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.day-post {
  font-size: 0.6875rem;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: opacity 0.2s;
}

.day-post:hover { opacity: 0.8; }

.day-post.draft {
  background: rgba(107, 114, 128, 0.2);
  color: #9CA3AF;
}

.day-post.pending_approval {
  background: rgba(232, 168, 124, 0.15);
  color: var(--accent-warm);
}

.day-post.scheduled {
  background: rgba(123, 143, 230, 0.15);
  color: var(--accent);
}

.day-post.published {
  background: rgba(91, 196, 184, 0.15);
  color: var(--accent-teal);
}

.day-post.failed {
  background: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
}

/* ─── Modal / Drawer ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-dusk);
  border: 1px solid var(--border-card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-hover);
  padding: 32px;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 400;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--glass-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s;
}

.modal-close:hover {
  background: var(--glass-3);
  color: var(--text-primary);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ─── Post Composer ──────────────────────────────────────────────────── */
.composer-preview {
  background: var(--glass-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-input);
  padding: 20px;
  margin-bottom: 20px;
}

.composer-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--r-btn);
  margin-bottom: 12px;
}

.media-upload-zone {
  border: 2px dashed var(--border-card);
  border-radius: var(--r-input);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  color: var(--text-tertiary);
}

.media-upload-zone:hover {
  border-color: var(--accent);
  background: rgba(123, 143, 230, 0.04);
  color: var(--text-secondary);
}

.media-upload-zone .upload-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* ─── Gallery ────────────────────────────────────────────────────────── */
.gallery-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.gallery-toolbar .form-input {
  padding: 8px 12px;
  font-size: 0.875rem;
  height: 36px;
}

.gallery-toolbar .form-input.search {
  flex: 1;
  min-width: 160px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.gallery-grid.picker {
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

.gallery-item {
  position: relative;
  border-radius: var(--r-btn);
  overflow: hidden;
  background: var(--glass-2);
  border: 1px solid var(--border-card);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  aspect-ratio: 1;
}

.gallery-item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.gallery-item.selected {
  border-color: #5BC4B8;
  box-shadow: 0 0 0 2px rgba(91,196,184,0.35);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,13,26,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-size: 0.7rem;
  font-weight: 500;
  color: #F0F0F5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.gallery-item-meta {
  font-size: 0.62rem;
  color: rgba(240,240,245,0.5);
}

.gallery-type-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(0,0,0,0.6);
  color: rgba(240,240,245,0.85);
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.gallery-item-actions {
  position: absolute;
  top: 5px;
  right: 5px;
  display: none;
  gap: 4px;
}

.gallery-item:hover .gallery-item-actions {
  display: flex;
}

.gallery-action-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.65);
  color: rgba(240,240,245,0.85);
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.gallery-action-btn:hover { background: rgba(239,68,68,0.75); }
.gallery-action-btn.copy:hover { background: rgba(91,196,184,0.65); }

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.gallery-upload-zone {
  grid-column: 1 / -1;
  border: 2px dashed var(--border-card);
  border-radius: var(--r-input);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.gallery-upload-zone:hover {
  border-color: var(--accent);
  color: var(--text-secondary);
}

/* ─── Post Type Selector ─────────────────────────────────────────────── */
.post-type-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.post-type-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-card);
  border-radius: var(--r-btn);
  background: var(--glass-1);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.post-type-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

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

/* ─── Caption Counter ────────────────────────────────────────────────── */
.caption-wrap {
  position: relative;
}

.caption-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  pointer-events: none;
}

.caption-counter.near-limit {
  color: var(--warning, #f59e0b);
}

.caption-counter.at-limit {
  color: var(--danger, #ef4444);
}

.story-caption-note {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 6px;
  font-style: italic;
}

/* ─── Carousel Slides ────────────────────────────────────────────────── */
.carousel-slides {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.carousel-slide {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--r-btn);
  overflow: hidden;
  background: var(--glass-1);
  border: 1px solid var(--border-card);
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide .slide-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.6rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.carousel-add-btn {
  width: 80px;
  height: 80px;
  border: 2px dashed var(--border-card);
  border-radius: var(--r-btn);
  background: transparent;
  color: var(--text-tertiary);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

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

/* ─── Instagram Feed Strip ───────────────────────────────────────────── */
.ig-feed-strip {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.ig-feed-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ig-feed-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.ig-feed-thumb {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--r-btn);
  overflow: hidden;
  background: var(--glass-1);
  border: 1px solid var(--border-card);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.ig-feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.ig-feed-thumb:hover img {
  transform: scale(1.05);
}

.ig-feed-thumb .feed-type-badge {
  position: absolute;
  bottom: 3px;
  right: 3px;
  font-size: 0.55rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
}

/* ─── Empty State ────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

/* ─── Upcoming Posts List ────────────────────────────────────────────── */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--glass-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-input);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.post-item:hover {
  background: var(--glass-2);
  border-color: var(--border-card);
}

.post-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--glass-2);
  flex-shrink: 0;
}

.post-info {
  flex: 1;
  min-width: 0;
}

.post-caption-preview {
  font-size: 0.875rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-meta {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── Audit Log ──────────────────────────────────────────────────────── */
.audit-entry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.audit-entry:last-child { border-bottom: none; }

.audit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

.audit-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.audit-time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}

/* ─── Grid Layouts ───────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ─── Utilities ──────────────────────────────────────────────────────── */
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

.hidden { display: none !important; }

/* ─── Scrollbar ──────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--glass-4); }

/* ─── Toast Notifications ────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--r-btn);
  font-size: 0.875rem;
  font-weight: 400;
  box-shadow: var(--shadow-glass);
  animation: toastIn 0.3s var(--ease);
  max-width: 400px;
}

.toast-success {
  background: rgba(91, 196, 184, 0.15);
  border: 1px solid rgba(91, 196, 184, 0.3);
  color: var(--accent-teal);
}

.toast-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .sidebar {
    width: 100%;
    height: auto;
    min-height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .sidebar-nav { display: none; }

  .main { margin-left: 0; }

  .content { padding: 16px; }

  .calendar-grid { font-size: 0.75rem; }
  .calendar-day { min-height: 80px; padding: 4px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 1.5rem; }
}

/* ─── Marketing Intelligence ──────────────────────────────────────────── */

.intel-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  align-items: start;
  min-height: calc(100vh - 140px);
}

.intel-sidebar {
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 1rem 0;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.intel-client-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.15s;
}

.intel-client-item:hover { background: rgba(255,255,255,0.04); }
.intel-client-item.active {
  background: rgba(94,106,210,0.12);
  border-left-color: #5e6ad2;
}

.intel-client-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #5e6ad2, #9333ea);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

.intel-client-name { font-size: 0.82rem; font-weight: 600; }
.intel-client-meta { font-size: 0.7rem; color: rgba(255,255,255,0.4); }
.intel-client-info { min-width: 0; flex: 1; }

.intel-confidence-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.intel-confidence-dot.low { background: #ef4444; }
.intel-confidence-dot.medium { background: #f59e0b; }
.intel-confidence-dot.high { background: #22c55e; }

.intel-main {
  padding: 0 0 3rem 1.5rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.intel-tabs {
  display: flex; gap: 0.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}

.intel-tab {
  padding: 0.5rem 1rem;
  font-size: 0.82rem; font-weight: 500;
  color: rgba(255,255,255,0.5);
  cursor: pointer; border: none; background: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}

.intel-tab.active { color: #fff; border-bottom-color: #5e6ad2; }
.intel-tab:hover:not(.active) { color: rgba(255,255,255,0.8); }

.voice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.voice-dimension { display: flex; flex-direction: column; gap: 0.4rem; }
.voice-label { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; }
.voice-label-name { color: rgba(255,255,255,0.6); font-weight: 500; }
.voice-label-score { color: #fff; font-weight: 700; font-size: 0.85rem; }

.voice-bar-track {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.08); overflow: hidden;
}
.voice-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #5e6ad2, #9333ea);
  transition: width 0.4s ease;
}

.voice-bar-input {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 2px;
  outline: none; cursor: pointer;
  background: rgba(255,255,255,0.12);
}
.voice-bar-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: #5e6ad2;
  box-shadow: 0 0 0 3px rgba(94,106,210,0.3);
  cursor: pointer;
}

.corpus-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }

.corpus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.corpus-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}

.corpus-card-header { display: flex; justify-content: space-between; align-items: center; }

.corpus-pillar-badge {
  font-size: 0.65rem; font-weight: 600; padding: 0.2rem 0.5rem;
  border-radius: 4px; background: rgba(94,106,210,0.2); color: #818cf8;
  text-transform: uppercase; letter-spacing: 0.04em;
}

.corpus-type-badge { font-size: 0.65rem; color: rgba(255,255,255,0.35); }

.corpus-caption {
  font-size: 0.8rem; line-height: 1.5; color: rgba(255,255,255,0.7);
  display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}

.corpus-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.corpus-stat { font-size: 0.68rem; color: rgba(255,255,255,0.4); }

.corpus-actions {
  display: flex; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.corpus-actions .btn { flex: 1; font-size: 0.72rem; padding: 0.3rem 0.5rem; }

.audit-tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.audit-tier-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 1rem;
  background: rgba(255,255,255,0.02);
}
.audit-tier-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: rgba(255,255,255,0.4); margin-bottom: 0.25rem;
}
.audit-tier-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; }
.audit-tier-desc { font-size: 0.75rem; color: rgba(255,255,255,0.45); line-height: 1.4; }

.audit-status-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 20px;
}
.audit-status-badge.pending { background: rgba(245,158,11,0.15); color: #f59e0b; }
.audit-status-badge.running { background: rgba(59,130,246,0.15); color: #60a5fa; }
.audit-status-badge.completed { background: rgba(34,197,94,0.15); color: #4ade80; }
.audit-status-badge.failed { background: rgba(239,68,68,0.15); color: #f87171; }
.audit-status-badge.seeded { background: rgba(168,85,247,0.15); color: #c084fc; }

.learn-event {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.75rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.learn-event-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; flex-shrink: 0;
}
.learn-event-icon.approve { background: rgba(34,197,94,0.15); color: #4ade80; }
.learn-event-icon.reject { background: rgba(239,68,68,0.15); color: #f87171; }
.learn-event-icon.edit { background: rgba(94,106,210,0.15); color: #818cf8; }
.learn-event-icon.audit { background: rgba(245,158,11,0.15); color: #f59e0b; }
.learn-event-icon.snapshot { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }
.learn-event-title { font-size: 0.8rem; font-weight: 500; }
.learn-event-time { font-size: 0.7rem; color: rgba(255,255,255,0.35); margin-top: 0.1rem; }

.intel-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.intel-stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 1rem;
}
.intel-stat-value, .intel-stat-val { font-size: 1.8rem; font-weight: 700; }
.intel-stat-label, .intel-stat-lbl { font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-top: 0.1rem; }

.no-client-selected {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; color: rgba(255,255,255,0.2); gap: 0.5rem; padding: 2rem; text-align: center;
}
.no-client-selected .icon { font-size: 3rem; }
.no-client-selected p { font-size: 0.85rem; }

/* ── Intelligence supplemental styles ──────────────────────────────────── */
.intel-header { padding: 1.25rem 1.5rem 0; }
.intel-brand-name { font-size: 1.4rem; font-weight: 700; margin: 0 0 0.75rem; }
.intel-section { padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.intel-section:last-child { border-bottom: none; }
.intel-section h3 { font-size: 0.9rem; font-weight: 600; opacity: .7; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 0.75rem; }
.intel-section-header { display: flex; align-items: center; justify-content: space-between; }
.intel-section-header h3 { margin: 0; }
.intel-tab-body { overflow-y: auto; flex: 1; min-height: 0; }
.intel-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.intel-meta-item { background: rgba(255,255,255,0.04); border-radius: 0.5rem; padding: 0.6rem 0.8rem; display: flex; flex-direction: column; gap: 0.2rem; }
.intel-meta-lbl { font-size: 0.7rem; opacity: .5; text-transform: uppercase; letter-spacing: .04em; }
.intel-meta-val { font-size: 0.9rem; font-weight: 500; }
.intel-pillars { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.voice-fields { display: flex; flex-direction: column; gap: 0.6rem; }
.voice-field-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.85rem; }
.voice-field-row span { opacity: .6; white-space: nowrap; }
.voice-field-row input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.4rem; padding: 0.35rem 0.6rem; color: #fff; font-size: 0.85rem; min-width: 0; }
.voice-notes-area { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.4rem; padding: 0.5rem 0.75rem; color: #fff; font-size: 0.85rem; resize: vertical; min-height: 80px; box-sizing: border-box; }
.corpus-status-badge { font-size: 0.65rem; font-weight: 600; padding: 0.15rem 0.45rem; border-radius: 0.25rem; text-transform: uppercase; letter-spacing: .05em; }
.corpus-status-badge.approved { background: rgba(34,197,94,0.15); color: #4ade80; }
.corpus-status-badge.pending  { background: rgba(245,158,11,0.15); color: #fbbf24; }
.corpus-status-badge.archived { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.35); }
.corpus-caption  { font-size: 0.82rem; line-height: 1.45; margin: 0.4rem 0 0.25rem; }
.corpus-hashtags { font-size: 0.72rem; opacity: .45; margin: 0 0 0.4rem; }
.corpus-card-meta { display: flex; gap: 0.5rem; font-size: 0.72rem; opacity: .5; flex-wrap: wrap; }
.corpus-card-actions { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.audit-run-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.audit-run-item { display: flex; align-items: center; gap: 0.75rem; background: rgba(255,255,255,0.04); border-radius: 0.5rem; padding: 0.6rem 0.8rem; font-size: 0.8rem; flex-wrap: wrap; }
.audit-run-tier  { opacity: .6; }
.audit-run-posts { flex: 1; }
.audit-run-when  { opacity: .4; font-size: 0.72rem; }
.learn-event-body { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.learn-event-type { font-size: 0.8rem; font-weight: 500; }
.learn-event-when { font-size: 0.7rem; opacity: .4; }
.manual-import-form { display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem; }
.manual-import-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.82rem; opacity: .8; }
.manual-import-form input, .manual-import-form textarea, .manual-import-form select {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.4rem; padding: 0.4rem 0.6rem; color: #fff; font-size: 0.85rem;
}

/* ── Overview enhanced styles ─────────────────────────────────────────── */
.intel-north-star {
  background: rgba(94,106,210,0.08);
  border-left: 3px solid #5e6ad2;
}
.intel-north-star blockquote {
  font-size: 1.05rem; font-weight: 600; font-style: italic;
  margin: 0 0 0.4rem; color: #fff;
}
.intel-north-star-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: #5e6ad2; font-weight: 600;
}

.intel-handle { font-size: 0.95rem; font-weight: 600; color: #818cf8; margin-bottom: 0.3rem; }
.intel-bio { font-size: 0.82rem; color: rgba(255,255,255,0.5); font-style: italic; }

.intel-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.intel-two-col h3 { margin-top: 0; }

.intel-palette {
  display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.intel-swatch {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: default; flex-shrink: 0;
  position: relative;
}
.intel-swatch:hover::after {
  content: attr(title);
  position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  background: #1a1a2e; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px; padding: 0.2rem 0.4rem;
  font-size: 0.65rem; font-family: monospace; white-space: nowrap; color: #fff;
  pointer-events: none; z-index: 10;
}

.intel-vocab-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.intel-vocab-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 0.6rem;
}
.intel-vocab-label.vocab-use { color: #4ade80; }
.intel-vocab-label.vocab-avoid { color: #f87171; }

.vocab-badge {
  display: inline-block; font-size: 0.72rem; padding: 0.2rem 0.6rem;
  border-radius: 20px; margin: 0.15rem;
}
.vocab-badge.vocab-use   { background: rgba(34,197,94,0.12); color: #4ade80; }
.vocab-badge.vocab-avoid { background: rgba(239,68,68,0.12);  color: #f87171; }

.intel-credentials {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.intel-credentials li {
  font-size: 0.85rem; padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.03); border-radius: 0.5rem;
  border-left: 2px solid #5e6ad2; color: rgba(255,255,255,0.8);
}

.intel-notes {
  font-size: 0.82rem; line-height: 1.65; color: rgba(255,255,255,0.55);
  white-space: pre-wrap;
}

.intel-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 1rem;
}

.voice-dim-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.3rem; }
.voice-dim-label { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.voice-dim-val { font-size: 0.78rem; font-weight: 700; }

/* ─── HTMX Loading Indicator ─────────────────────────────────────────── */
#htmx-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent, #5BC4B8);
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 9998;
  pointer-events: none;
}
.htmx-request #htmx-indicator,
#htmx-indicator.htmx-request {
  opacity: 1;
}
