:root {
  --bg-primary: #080b11;
  --bg-shell: #0e1422;
  --bg-card: rgba(22, 30, 48, 0.7);
  --bg-card-hover: rgba(28, 38, 62, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-normal: 0.2s ease;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Core Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-focus);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

/* Status Badges */
.status-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-success);
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-success);
  box-shadow: 0 0 8px var(--accent-success);
}

/* Base Toast Notifications */
.toast-container {
  position: fixed;
  z-index: 120;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(18, 26, 42, 0.95);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.825rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.toast.toast-success {
  border-left-color: var(--accent-success);
}

.toast.toast-error {
  border-left-color: var(--accent-danger);
}

/* Shared Modal Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-dialog {
  background: #111827;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.item-label {
  color: var(--text-secondary);
}

.item-val {
  font-weight: 500;
  color: var(--text-primary);
}

.modal-footer {
  padding: 0.95rem 1.25rem;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes toastSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Clean Space & Pulsating Turn On Button */
.login-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.clean-power-space {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.clean-power-space.is-hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.power-center-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}

.pulsating-ring-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(99, 102, 241, 0.6);
  pointer-events: none;
  box-sizing: border-box;
}

.pulse-ring.ring-1 {
  animation: pulse-ring-expand 3s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  animation-delay: 0s;
}

.pulse-ring.ring-2 {
  animation: pulse-ring-expand 3s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  animation-delay: 1s;
}

.pulse-ring.ring-3 {
  animation: pulse-ring-expand 3s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  animation-delay: 2s;
}

@keyframes pulse-ring-expand {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
    border-color: rgba(99, 102, 241, 0.75);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
  }
  50% {
    opacity: 0.35;
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
    border-color: rgba(99, 102, 241, 0);
    box-shadow: none;
  }
}

.btn-turn-on {
  position: relative;
  z-index: 2;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1e293b 0%, #0f172a 70%, #080d1a 100%);
  border: 1.5px solid rgba(129, 140, 248, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  outline: none;
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.35), 0 12px 28px rgba(0, 0, 0, 0.55), inset 0 0 15px rgba(99, 102, 241, 0.25);
  animation: pulse-glow-core 3s ease-in-out infinite;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

@keyframes pulse-glow-core {
  0%, 100% {
    border-color: rgba(129, 140, 248, 0.5);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.35), 0 12px 28px rgba(0, 0, 0, 0.55), inset 0 0 15px rgba(99, 102, 241, 0.25);
  }
  50% {
    border-color: rgba(56, 189, 248, 0.85);
    box-shadow: 0 0 45px rgba(56, 189, 248, 0.55), 0 12px 35px rgba(0, 0, 0, 0.65), inset 0 0 25px rgba(56, 189, 248, 0.35);
  }
}

.btn-turn-on:hover {
  transform: scale(1.06);
  border-color: rgba(56, 189, 248, 0.95);
  box-shadow: 0 0 55px rgba(99, 102, 241, 0.7), 0 0 95px rgba(56, 189, 248, 0.4), inset 0 0 25px rgba(56, 189, 248, 0.4);
}

.btn-turn-on:active {
  transform: scale(0.96);
}

.power-icon-glow {
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(129, 140, 248, 0.65));
  transition: color 0.25s ease, filter 0.25s ease;
}

.btn-turn-on:hover .power-icon-glow {
  color: #38bdf8;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.9));
}

.power-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f8fafc;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.power-ambient-caption {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  opacity: 0.8;
  transition: opacity 0.25s ease;
}

.power-demo-link-wrap {
  margin-top: 0.75rem;
}

.btn-subtle-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.775rem;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease, color 0.2s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 8px;
}

.btn-subtle-link:hover {
  opacity: 0.95;
  color: var(--text-secondary);
}

/* Power On Activation Keyframe */
.btn-turn-on.power-active {
  animation: power-surge 0.45s cubic-bezier(0.2, 0.8, 0.4, 1) forwards !important;
}

@keyframes power-surge {
  0% {
    transform: scale(1);
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.4);
  }
  35% {
    transform: scale(0.92);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.9);
  }
  75% {
    transform: scale(1.18);
    box-shadow: 0 0 90px rgba(56, 189, 248, 1), 0 0 150px rgba(99, 102, 241, 0.9);
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

/* Auth Shell Visibility States */
.auth-shell.is-hidden {
  display: none !important;
  opacity: 0;
}

.auth-shell.is-visible {
  display: flex !important;
  animation: auth-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes auth-fade-in {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-top-bar {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: -0.5rem;
}

.btn-power-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-power-toggle:hover {
  color: var(--accent-danger);
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}

/* ============================================================
   Priority Attention Cards & Glassmorphic Modal
   ============================================================ */

.priority-email-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  margin-bottom: 0.85rem;
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.priority-email-card:hover {
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.priority-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.priority-sender-info {
  display: flex;
  flex-direction: column;
}

.priority-sender-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.priority-sender-email {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.priority-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.score-urgent {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.score-high {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.score-normal {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.score-low {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.priority-subject {
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
}

.priority-ai-box {
  background: rgba(99, 102, 241, 0.06);
  border-left: 3px solid var(--accent-primary);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.priority-recommendation-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #38bdf8;
  margin-top: 0.25rem;
}

.priority-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* Glassmorphic Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-shell);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(22, 30, 48, 0.5);
}

.modal-header-text {
  flex: 1;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.modal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.modal-close-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.modal-close-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.modal-body {
  padding: 1.25rem 1.35rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-height: calc(88vh - 140px);
}

.modal-email-content-box {
  background: rgba(8, 11, 17, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
  max-height: 240px;
  overflow-y: auto;
  word-break: break-word;
}

.modal-ai-reply-section {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.modal-reply-textarea {
  width: 100%;
  min-height: 110px;
  background: rgba(14, 20, 34, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-family: inherit;
  font-size: 0.88rem;
  color: #fff;
  line-height: 1.5;
  resize: vertical;
}

.modal-reply-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.modal-footer {
  padding: 0.85rem 1.35rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(22, 30, 48, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* ============================================================
   Executive Single-Screen Email Triage Deck (Zero Scroll)
   ============================================================ */

/* Locked viewport on mobile app shell for dashboard */
.mobile-app-shell.locked-viewport {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 64px; /* Exact height of bottom nav */
}

.mobile-app-shell.locked-viewport .mobile-app-bar {
  padding: 0.55rem 1rem;
  flex-shrink: 0;
}

.single-email-flow {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-width: 580px;
  margin: 0 auto;
  width: 100%;
  padding: 0.4rem 0.85rem;
  gap: 0.35rem;
  overflow: hidden;
}

.deck-pager-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 0.15rem 0.25rem;
}

.deck-counter-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.deck-counter-badge strong {
  color: #ffffff;
}

.deck-nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.deck-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.deck-nav-btn:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}

.deck-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.single-email-deck {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

.deck-email-card {
  flex: 1;
  min-height: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Card Header: Score, Date & Sender */
.card-top-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
}

.card-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card-score-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.score-urgent { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.score-high   { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.score-normal { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.score-low    { background: rgba(148, 163, 184, 0.12); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.25); }

.card-date {
  font-size: 0.68rem;
  color: #64748b;
  white-space: nowrap;
}

/* Sender & Email Box */
.card-sender-card {
  background: rgba(10, 15, 28, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-shrink: 0;
}

.card-info-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
  overflow: hidden;
}

.card-info-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  flex-shrink: 0;
  min-width: 50px;
}

.card-sender-name-val {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.card-sender-email-val {
  font-size: 0.73rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.card-subject-val {
  font-size: 0.84rem;
  font-weight: 600;
  color: #38bdf8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}

/* Body snippet quote */
.card-body-quote {
  background: rgba(15, 23, 42, 0.4);
  border-left: 2px solid #6366f1;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.35rem 0.6rem;
  flex-shrink: 0;
}

.card-body-text {
  font-size: 0.78rem;
  line-height: 1.35;
  color: #cbd5e1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* What is it */
.card-explain-section {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex-shrink: 0;
}

.card-explain-header {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-explain-text {
  font-size: 0.8rem;
  line-height: 1.35;
  color: #f1f5f9;
  font-weight: 500;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* AI Recommended Reply / Action Banner */
.card-reply-preview-box {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-shrink: 0;
}

.card-reply-preview-header {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #818cf8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-reply-preview-text {
  font-size: 0.78rem;
  line-height: 1.3;
  color: #e0e7ff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-rec-action-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.card-rec-action-val {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Action Area */
.card-action-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-action-primary-main {
  width: 100%;
  height: 38px;
  justify-content: center;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  gap: 0.5rem;
}

.btn-action-danger-main {
  width: 100%;
  height: 38px;
  justify-content: center;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  gap: 0.5rem;
}

.btn-action-danger-main:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

.deck-forward-input-wrap {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.45rem;
  height: 38px;
}

.deck-forward-prefix {
  font-size: 0.78rem;
  font-weight: 600;
  color: #38bdf8;
  white-space: nowrap;
}

.deck-forward-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.82rem;
  padding: 0.2rem 0.35rem;
  min-width: 0;
}

.deck-forward-field:focus {
  outline: none;
}

.deck-alt-actions-toggle {
  text-align: center;
  line-height: 1;
}

.btn-toggle-alt {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  transition: color 0.15s ease;
}

.btn-toggle-alt:hover {
  color: var(--text-primary);
}

.deck-alt-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
}

.deck-empty-state {
  flex: 1;
  min-height: 0;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}



