/* ============================================================
   Nexus - Mobile Stylesheet (Mobile View: <= 767px)
   ============================================================ */

/* Mobile Shell */
.mobile-app-shell {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  background: var(--bg-shell);
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 78px; /* Room for bottom navigation */
}

/* Mobile App Bar */
.mobile-app-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 20, 34, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo-icon {
  color: var(--accent-primary);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-bar-left {
  display: flex;
  align-items: center;
}

.app-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* User Profile Badge */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.user-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #38bdf8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.user-info-text {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.user-email-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile Feed Content */
.mobile-content {
  flex: 1;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Mobile Hero Banner */
.mobile-hero, .dashboard-banner {
  padding: 0.5rem 0.25rem;
}

.hero-headline {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.hero-subtext {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Dashboard Core Icon Grid */
.dashboard-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.icon-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.icon-tile:active {
  transform: scale(0.98);
}

.tile-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tile-purple { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.tile-blue   { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.tile-emerald{ background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tile-cyan   { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.icon-badge-plus {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.tile-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.tile-status-tag {
  font-size: 0.675rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  align-self: flex-start;
  font-weight: 500;
}

/* Connect Google Card */
.connect-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(22, 30, 48, 0.85) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.connect-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.connect-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.connect-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.connect-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.btn-connect-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* AI Assistant Card */
.ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  backdrop-filter: blur(10px);
}

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

.ai-card-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.ai-badge {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-weight: 500;
}

.mobile-input-bar {
  display: flex;
  gap: 0.5rem;
}

.mobile-text-input {
  flex: 1;
  background: rgba(10, 13, 20, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.95rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
}

.mobile-text-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-send-ai {
  background: var(--accent-primary);
  border: none;
  color: #ffffff;
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-chips-row {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.mobile-chips-row::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.75rem;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.chip-active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.mobile-response-box {
  background: rgba(8, 11, 18, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: fadeIn 0.25s ease-out;
}

.response-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.response-text {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-primary);
  white-space: pre-wrap;
}

/* Feed & Triage Cards */
.feed-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-heading-sm {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0 0.25rem;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.25rem;
}

.header-link-sm {
  font-size: 0.75rem;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}

.email-triage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.triage-sender {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.triage-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.triage-subject {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

.triage-summary-box {
  background: rgba(99, 102, 241, 0.08);
  border-left: 2px solid var(--accent-primary);
  padding: 0.5rem 0.65rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.triage-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.btn-triage {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.775rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: inherit;
  transition: all var(--transition-normal);
}

.btn-triage.btn-triage-primary {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-success);
}

/* Multi-Account Cards */
.account-card-detailed {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.account-card-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.account-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.account-email {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-name {
  font-size: 0.725rem;
  color: var(--text-muted);
}

.account-permissions-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
}

.perm-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.725rem;
  color: var(--text-secondary);
}

.account-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Empty State Card */
.empty-state-card {
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.empty-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.empty-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 280px;
}

.accounts-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.account-summary-row {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.acc-row-icon {
  color: var(--accent-primary);
  display: flex;
  align-items: center;
}

.acc-row-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.acc-row-email {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-row-meta {
  font-size: 0.675rem;
  color: var(--text-muted);
}

.acc-badge-live {
  font-size: 0.675rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-success);
  font-weight: 500;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(14, 20, 34, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 50;
  padding: 0 0.5rem;
}

.nav-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 6px 0;
  background: transparent;
  border: none;
}

.nav-tab-item.active {
  color: var(--accent-primary);
}

/* Mobile Modal Bottom-Sheet */
.modal-backdrop {
  align-items: flex-end;
  justify-content: center;
}

.modal-dialog {
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-sheet-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin: 10px auto 4px auto;
}

/* Mobile Toast Positioning */
.toast-container {
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
}

/* Auth / Login Page Mobile */
.auth-shell {
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
}

.auth-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-brand-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-icon-large {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: 0 0 30px var(--accent-glow);
}

.auth-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  backdrop-filter: blur(14px);
}

.auth-card-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

.auth-card-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-google-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 0.25rem 0;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-divider span {
  padding: 0 0.75rem;
}

.auth-footer-notes {
  text-align: center;
  padding-top: 0.5rem;
}

.security-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

/* Locked viewport on mobile app shell for dashboard */
.mobile-app-shell.locked-viewport {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  padding-bottom: 58px; /* Room for bottom nav */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.mobile-app-shell.locked-viewport .mobile-app-bar {
  padding: 0.4rem 0.85rem;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-app-shell.locked-viewport .mobile-content.single-email-flow {
  flex: 1;
  min-height: 0;
  height: calc(100% - 46px);
  padding: 0.35rem 0.75rem 0.45rem;
  gap: 0.35rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

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

.deck-counter-badge {
  font-size: 0.78rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

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

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

.deck-nav-btn {
  background: rgba(22, 30, 48, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.deck-nav-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
}

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

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

.deck-email-card {
  flex: 1;
  min-height: 0;
  max-height: 100%;
  background: linear-gradient(180deg, rgba(20, 27, 45, 0.96) 0%, rgba(13, 19, 33, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
  overflow: hidden;
  box-sizing: border-box;
}

/* 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 Quote (Clamped to 2-3 lines with ...) */
.card-body-quote {
  background: rgba(10, 15, 28, 0.45);
  border-left: 2.5px solid #6366f1;
  border-radius: 0 4px 4px 0;
  padding: 0.28rem 0.55rem;
  flex-shrink: 0;
}

.card-body-text {
  font-size: 0.76rem;
  line-height: 1.32;
  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: 6px;
  padding: 0.35rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  flex-shrink: 0;
}

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

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

/* AI Recommended Response */
.card-reply-preview-box {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 6px;
  padding: 0.32rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  flex-shrink: 0;
}

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

.card-reply-preview-text {
  font-size: 0.76rem;
  line-height: 1.28;
  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.35rem;
  padding: 0.22rem 0.45rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  flex-shrink: 0;
}

.card-rec-action-val {
  font-size: 0.74rem;
  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.2rem;
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-action-primary-main {
  width: 100%;
  height: 36px;
  min-height: 36px;
  justify-content: center;
  font-weight: 600;
  font-size: 0.84rem;
  border-radius: 6px;
  gap: 0.45rem;
}

.btn-action-danger-main {
  width: 100%;
  height: 36px;
  min-height: 36px;
  justify-content: center;
  font-weight: 600;
  font-size: 0.84rem;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #f87171;
  gap: 0.45rem;
}

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

.deck-forward-input-wrap {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  background: rgba(10, 15, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.15rem 0.35rem;
  height: 36px;
  min-height: 36px;
}

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

.deck-forward-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.78rem;
  padding: 0.2rem 0.3rem;
  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: #64748b;
  font-size: 0.68rem;
  cursor: pointer;
  padding: 0.15rem 0.3rem;
  transition: color 0.15s ease;
}

.btn-toggle-alt:hover {
  color: #cbd5e1;
}

.deck-alt-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.4rem;
  background: rgba(10, 15, 28, 0.9);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}
