/* tempmailOBM - Disposable Email Client */
:root {
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Light Theme (Faithful to screenshot) */
  --bg-app: #fbfbfc;
  --bg-sidebar: #f4f4f6;
  --bg-card: #ffffff;
  --bg-hover: #f1f1f4;
  --bg-input: #ffffff;
  --border-subtle: #e8e8ed;
  --border-card: #e4e4e8;
  --border-focus: #2563eb;
  
  --text-primary: #121316;
  --text-secondary: #52525b;
  --text-muted: #8e8e93;
  --text-faint: #b4b4b8;
  
  --sidebar-active: #e6e6eb;
  --sidebar-active-text: #121316;
  --sidebar-hover: #ececf0;
  
  --pill-active-bg: #1e1e24;
  --pill-active-text: #ffffff;
  --pill-inactive-bg: transparent;
  --pill-inactive-text: #52525b;
  --pill-hover-bg: #ececf0;
  
  --chip-bg: #f5f5f7;
  --chip-border: #e6e6ea;
  --chip-hover: #ebebef;
  
  --accent-blue: #2563eb;
  --accent-blue-light: #eff6ff;
  --accent-red: #ef4444;
  --accent-red-light: #fee2e2;
  --accent-green: #10b981;
  --accent-green-light: #ecfdf5;
  --accent-purple: #8b5cf6;
  --accent-purple-light: #f5f3ff;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.03), 0 2px 8px -2px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 12px 30px -4px rgba(0, 0, 0, 0.1), 0 6px 16px -4px rgba(0, 0, 0, 0.06);
  --shadow-drawer: -4px 0 28px rgba(0, 0, 0, 0.1);

  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-app: #0c0d10;
  --bg-sidebar: #131418;
  --bg-card: #18191f;
  --bg-hover: #22232b;
  --bg-input: #18191f;
  --border-subtle: #242630;
  --border-card: #282a36;
  --border-focus: #3b82f6;
  
  --text-primary: #f4f4f6;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-faint: #52525b;
  
  --sidebar-active: #23252f;
  --sidebar-active-text: #ffffff;
  --sidebar-hover: #1c1d24;
  
  --pill-active-bg: #f4f4f6;
  --pill-active-text: #121316;
  --pill-inactive-bg: transparent;
  --pill-inactive-text: #a1a1aa;
  --pill-hover-bg: #22232b;
  
  --chip-bg: #20222a;
  --chip-border: #2c2e39;
  --chip-hover: #282a35;
  
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 2px 8px -2px rgba(0, 0, 0, 0.3);
  --shadow-float: 0 12px 30px -4px rgba(0, 0, 0, 0.6);
  --shadow-drawer: -4px 0 28px rgba(0, 0, 0, 0.45);
}

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

html, body {
  height: 100%;
  font-family: var(--font-family);
  letter-spacing: -0.011em;
  background-color: var(--bg-app);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ==========================================================================
   LEFT SIDEBAR
   ========================================================================== */
.sidebar {
  width: 250px;
  min-width: 250px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  transition: width var(--transition-normal), transform var(--transition-normal);
  z-index: 30;
}

.sidebar.collapsed {
  width: 68px;
  min-width: 68px;
  padding: 16px 10px;
}

.sidebar.collapsed .team-name,
.sidebar.collapsed .dropdown-arrow,
.sidebar.collapsed .header-actions,
.sidebar.collapsed .nav-link span:not(.nav-icon),
.sidebar.collapsed .nav-counter,
.sidebar.collapsed .theme-label,
.sidebar.collapsed .server-status-pill,
.sidebar.collapsed .alias-dropdown {
  display: none !important;
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 10px 0;
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  gap: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  height: 36px;
  position: relative;
}

.icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.icon-btn:hover {
  background-color: var(--sidebar-hover);
  color: var(--text-primary);
}

/* Dropdown Selector */
.team-selector-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
}

.team-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  padding: 5px 7px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.team-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.team-selector:hover, .team-selector.open {
  background-color: var(--sidebar-hover);
}

.dropdown-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.team-selector.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.alias-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 270px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.alias-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.dropdown-header-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

.dropdown-count-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background-color: rgba(0, 0, 0, 0.05);
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .dropdown-count-pill {
  background-color: rgba(255, 255, 255, 0.08);
}

.alias-dropdown-list {
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
}

.alias-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.alias-dropdown-item:hover {
  background-color: var(--bg-hover);
}

.alias-dropdown-item.active {
  background-color: var(--chip-bg);
}

.alias-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.alias-active-check {
  color: var(--accent-blue);
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alias-active-check svg,
.alias-active-check i {
  width: 14px;
  height: 14px;
  stroke-width: 1.75;
}

.alias-item-text {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.alias-item-copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.alias-item-copy-btn svg,
.alias-item-copy-btn i {
  width: 14px;
  height: 14px;
  stroke-width: 1.75;
}

.alias-item-copy-btn:hover {
  color: var(--text-primary);
  background-color: var(--border-subtle);
}

.dropdown-footer {
  padding: 6px;
  border-top: 1px solid var(--border-subtle);
}

.dropdown-new-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-new-btn svg,
.dropdown-new-btn i {
  width: 14px;
  height: 14px;
  stroke-width: 1.75;
}

.dropdown-new-btn:hover {
  background-color: var(--sidebar-hover);
  color: var(--text-primary);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.notif-btn {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  background-color: var(--accent-red);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.notif-badge.active {
  opacity: 1;
}

.avatar-container {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

.avatar svg {
  width: 100%;
  height: 100%;
}

.sidebar-nav {
  flex: 1;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-link-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-icon {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.nav-item:hover .nav-icon {
  color: var(--text-primary);
}

.nav-item.active .nav-link {
  background-color: var(--sidebar-active);
  color: var(--sidebar-active-text);
  font-weight: 600;
}

.nav-item.active .nav-icon {
  color: var(--sidebar-active-text);
}

.nav-counter:empty {
  display: none;
}

.nav-counter {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background-color: rgba(0, 0, 0, 0.05);
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .nav-counter:empty {
  display: none;
}

.nav-counter {
  background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.server-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background-color: rgba(0, 0, 0, 0.03);
  font-size: 12px;
  color: var(--text-muted);
}

[data-theme="dark"] .server-status-pill {
  background-color: rgba(255, 255, 255, 0.04);
}

.status-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.theme-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--sidebar-hover);
  color: var(--text-primary);
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 40px 32px 60px;
  display: flex;
  justify-content: center;
}

.content-container {
  width: 100%;
  max-width: 680px;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

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

/* Page Header */
.page-header {
  margin-bottom: 24px;
}

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

.page-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.page-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tab {
  background-color: var(--pill-inactive-bg);
  color: var(--pill-inactive-text);
  border: none;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover:not(.active) {
  background-color: var(--pill-hover-bg);
  color: var(--text-primary);
}

.filter-tab.active {
  background-color: var(--pill-active-bg);
  color: var(--pill-active-text);
}

/* Command / Address Card */
.command-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px 18px 14px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.command-card:focus-within {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-card), 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.input-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}

.mail-display-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.mail-icon-prefix {
  color: var(--accent-blue);
  display: flex;
  align-items: center;
}

.mail-input-active {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-main-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--pill-active-bg);
  color: var(--pill-active-text);
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  white-space: nowrap;
}

.copy-main-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.copy-main-btn:active {
  transform: translateY(0);
}

/* Quick Action Chips */
.quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.quick-actions::-webkit-scrollbar {
  display: none;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: var(--chip-bg);
  border: 1px solid var(--chip-border);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.action-chip:hover {
  background-color: var(--chip-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.action-chip:active {
  transform: translateY(0);
}

.chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.new-icon { color: var(--accent-blue); }
.refresh-icon { color: #0284c7; }
.simulate-icon { color: var(--accent-purple); }
.delete-icon { color: var(--accent-red); }

.spinning {
  animation: spin 0.7s linear infinite;
}

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

/* ==========================================================================
   EMAIL LIST SECTION
   ========================================================================== */
.tasks-section {
  display: flex;
  flex-direction: column;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.section-title:hover {
  color: var(--accent-blue);
}

.chevron-inline {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.section-title:hover .chevron-inline {
  transform: translateX(2px);
}

.section-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.task-item {
  display: flex;
  align-items: center;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  background-color: transparent;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  user-select: none;
}

.task-item:hover {
  background-color: var(--bg-hover);
}

.task-main {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.task-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.task-subject-snippet {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.task-unread-dot-col {
  width: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  margin-right: 2px;
}

.task-item.unread .task-title {
  font-weight: 600;
  color: var(--text-primary);
}

.task-item.unread .task-subject-snippet {
  font-weight: 600;
  color: var(--text-primary);
}

.task-item.read .task-title {
  font-weight: 400;
  color: var(--text-secondary);
}

.task-item.read .task-subject-snippet {
  font-weight: 400;
  color: var(--text-muted);
}

.task-timestamp {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
}

.task-unread-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  transition: opacity var(--transition-fast);
}

.task-unread-dot.hidden {
  opacity: 0;
}

.task-chevron {
  color: var(--text-faint);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.task-item:hover .task-chevron {
  color: var(--text-muted);
  transform: translateX(3px);
}

/* ==========================================================================
   VIEW 2: MIS ALIAS GRID
   ========================================================================== */
.aliases-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alias-card {
  cursor: pointer;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.alias-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.alias-card.is-current {
  background-color: var(--sidebar-active);
  border-color: var(--border-card);
}

.alias-card-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.alias-card-address {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.alias-active-badge {
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background-color: var(--accent-green-light);
  color: #047857;
}

[data-theme="dark"] .alias-active-badge {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.alias-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
}

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

/* ==========================================================================
   VIEW 4: ESTADO DEL SERVICIO (HEALTHCHECK)
   ========================================================================== */
.status-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.status-badge {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
}

.status-badge.operative {
  color: #047857;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .status-badge.operative {
  color: #34d399;
  background-color: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.status-badge.degraded {
  color: #b45309;
  background-color: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.down {
  color: var(--accent-red);
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-meta-text {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.status-components-list {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13.5px;
}

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

.status-component-name {
  font-weight: 500;
  color: var(--text-primary);
}

.status-component-state {
  font-size: 13px;
  font-weight: 500;
}

.status-component-state.operative {
  color: #047857;
}

[data-theme="dark"] .status-component-state.operative {
  color: #34d399;
}

.status-component-state.no-data {
  color: var(--text-muted);
}

.status-component-state.degraded {
  color: #b45309;
}

.status-component-state.down {
  color: var(--accent-red);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
}

.empty-state svg {
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.empty-state-subtitle {
  font-size: 13px;
}

/* ==========================================================================
   DETAIL DRAWER (Full Email Viewer)
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  z-index: 50;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 740px;
  max-width: 96vw;
  height: 100vh;
  background-color: var(--bg-card);
  border-left: 1px solid var(--border-card);
  box-shadow: var(--shadow-drawer);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  z-index: 60;
  display: flex;
  flex-direction: column;
}

.detail-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
}

.drawer-header-left {
  flex: 1;
  min-width: 0;
}

.drawer-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
  margin-bottom: 6px;
}

[data-theme="dark"] .drawer-badge {
  background-color: rgba(59, 130, 246, 0.2);
}

.drawer-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  word-break: break-word;
}

.drawer-body {
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
}


/* Compact Discreet OTP Bar */
.otp-compact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 20px 0;
  padding: 6px 12px;
  background-color: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: var(--radius-md);
  height: 38px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.otp-compact-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.otp-compact-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.otp-compact-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.otp-compact-code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  background-color: rgba(37, 99, 235, 0.15);
  color: var(--accent-blue);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.8px;
}

.otp-compact-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.otp-compact-btn i {
  width: 12px;
  height: 12px;
}

.otp-compact-btn:hover {
  background-color: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

/* OTP Code Feature Card */
.otp-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.otp-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.otp-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.otp-code {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.otp-copy-btn {
  background-color: var(--accent-blue);
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.otp-copy-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.drawer-meta-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  row-gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  padding: 14px 16px;
  background-color: var(--bg-app);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.drawer-meta-label {
  color: var(--text-muted);
  font-weight: 500;
}

.drawer-meta-value {
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-all;
}

.drawer-email-body {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--bg-card);
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  white-space: pre-wrap;
  word-break: break-word;
}

.drawer-actions-row {
  margin-top: 24px;
  display: flex;
  gap: 10px;
}

/* Toast */
.toast-popup {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background-color: var(--pill-active-bg);
  color: var(--pill-active-text);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-float);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
  z-index: 100;
}

.toast-popup.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    height: 100%;
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    padding: 24px 16px;
  }
}

/* ==========================================================================
   LUCIDE OUTLINE ICON SYSTEM (Consistent 1.75px stroke, no fill, clean geometry)
   ========================================================================== */
svg.lucide, i[data-lucide] svg {
  stroke-width: 1.75px !important;
  fill: none !important;
  stroke: currentColor;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-btn svg.lucide {
  width: 17px;
  height: 17px;
}

.nav-icon svg.lucide, .nav-icon.lucide {
  width: 17px;
  height: 17px;
}

.dropdown-arrow svg.lucide, .dropdown-arrow.lucide {
  width: 13px;
  height: 13px;
}

.avatar-outline {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.avatar-outline:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.avatar-outline svg.lucide {
  width: 15px;
  height: 15px;
}

.mail-icon-prefix svg.lucide {
  width: 17px;
  height: 17px;
}

.copy-main-btn svg.lucide {
  width: 14px;
  height: 14px;
}

.action-chip svg.lucide {
  width: 14px;
  height: 14px;
}

.chevron-inline svg.lucide, .chevron-inline.lucide {
  width: 15px;
  height: 15px;
}

.task-chevron svg.lucide, .task-chevron.lucide {
  width: 14px;
  height: 14px;
}

.task-checkbox svg.lucide {
  width: 12px;
  height: 12px;
  stroke: #ffffff !important;
}

.task-tag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: transparent !important;
  color: var(--accent-red);
  flex-shrink: 0;
}

.task-tag-badge svg.lucide {
  width: 14px;
  height: 14px;
  stroke: var(--accent-red) !important;
}

.server-icon-badge svg.lucide {
  width: 18px;
  height: 18px;
}

.alias-active-check svg.lucide {
  width: 13px;
  height: 13px;
  stroke: var(--accent-blue) !important;
}

.alias-item-copy-btn svg.lucide {
  width: 13px;
  height: 13px;
}

.dropdown-new-btn svg.lucide {
  width: 14px;
  height: 14px;
}

.status-live-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-green-light);
  color: #047857;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
}

[data-theme="dark"] .status-live-banner {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

/* ==========================================================================
   NOTIFICATIONS POPOVER & BROWSER PERMISSIONS
   ========================================================================== */
.notif-wrapper {
  position: relative;
}

/* Backdrop for popover dismissal */
.notif-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(1px);
  z-index: 85;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.notif-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.notif-popover {
  position: fixed;
  top: 54px;
  left: 140px;
  width: 330px;
  max-width: calc(100vw - 28px);
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.notif-popover.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.notif-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.notif-popover-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.notif-popover-bell-icon {
  width: 15px;
  height: 15px;
  color: var(--accent-blue);
}

.notif-popover-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.notif-clear-btn {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}

.notif-clear-btn:hover {
  color: var(--text-primary);
}

.notif-toggle-btn.granted {
  background-color: var(--chip-bg);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.notif-items-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-item {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background-color: transparent;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.notif-item:hover {
  background-color: var(--bg-hover);
}

.notif-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.notif-item-sender {
  font-weight: 600;
  color: var(--text-primary);
}

.notif-item-time {
  font-size: 11px;
  color: var(--text-muted);
}

.notif-item-subject {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-empty {
  padding: 20px 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE ARCHITECTURE
   ========================================================================== */
.main-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  min-width: 0;
}

.mobile-top-bar {
  display: none;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   TABLET & MOBILE RESPONSIVE DESIGN (Pixel-perfect & clean)
   ========================================================================== */

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .detail-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(640px, 92vw);
    max-width: 85vw;
    z-index: 70;
  }

  .content-container {
    max-width: 100%;
  }

  .aliases-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* Mobile & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
  }

  .mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 12px;
    background-color: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
    z-index: 30;
  }

  .mobile-top-alias {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    letter-spacing: -0.01em;
  }

  .mobile-top-alias:active {
    opacity: 0.65;
  }

  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    max-width: 80vw;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-drawer);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .main-content {
    padding: 16px 14px 40px;
    height: calc(100vh - 48px);
    justify-content: flex-start;
  }

  .content-container {
    width: 100%;
    max-width: 100%;
  }

  .page-header {
    margin-bottom: 16px;
  }

  .page-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
  }

  .filter-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tab {
    padding: 4px 12px;
    font-size: 12.5px;
    font-weight: 500;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .command-card {
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: none;
  }

  .input-wrapper {
    margin-bottom: 10px;
  }

  .mail-display-row {
    gap: 8px;
  }

  .mail-input-active {
    font-size: 13px;
  }

  .copy-main-btn {
    padding: 4px 10px;
    font-size: 11.5px;
  }

  .quick-actions {
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .action-chip {
    padding: 4px 10px;
    font-size: 11.5px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .tasks-section .section-header {
    margin-bottom: 8px;
  }

  .section-title {
    font-size: 14px;
  }

  .task-item {
    padding: 9px 8px;
    gap: 8px;
    border-radius: 6px;
  }

  .task-main {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
  }

  .task-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    flex-shrink: 0;
  }

  .task-subject-snippet {
    font-size: 12.5px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
  }

  .task-timestamp {
    font-size: 11.5px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .task-meta {
    margin-left: 6px;
    gap: 6px;
    flex-shrink: 0;
  }

  .detail-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(640px, 92vw);
    max-width: 85vw;
    z-index: 70;
  }

  .content-container {
    max-width: 100%;
  }

  .aliases-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* Mobile & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
  }

  .mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 12px;
    background-color: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
    z-index: 30;
  }

  .mobile-top-alias {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    letter-spacing: -0.01em;
  }

  .mobile-top-alias:active {
    opacity: 0.65;
  }

  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    max-width: 80vw;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-drawer);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .main-content {
    padding: 16px 14px 40px;
    height: calc(100vh - 48px);
    justify-content: flex-start;
  }

  .content-container {
    width: 100%;
    max-width: 100%;
  }

  .page-header {
    margin-bottom: 16px;
  }

  .page-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
  }

  .filter-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tab {
    padding: 4px 12px;
    font-size: 12.5px;
    font-weight: 500;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .command-card {
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: none;
  }

  .input-wrapper {
    margin-bottom: 10px;
  }

  .mail-display-row {
    gap: 8px;
  }

  .mail-input-active {
    font-size: 13px;
  }

  .copy-main-btn {
    padding: 4px 10px;
    font-size: 11.5px;
  }

  .quick-actions {
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .action-chip {
    padding: 4px 10px;
    font-size: 11.5px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .tasks-section .section-header {
    margin-bottom: 8px;
  }

  .section-title {
    font-size: 14px;
  }

  .task-item {
    padding: 11px 12px;
    border-radius: 10px;
  }

  .email-card-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 13.5px;
    margin-right: 10px;
  }

  .email-card-sender {
    font-size: 13.5px;
    max-width: 135px;
  }

  .email-card-time {
    font-size: 11.5px;
  }

  .email-card-preview {
    font-size: 12.5px;
  }

  .detail-drawer {
    width: 100vw;
    max-width: 100vw;
    border-left: none;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .drawer-header {
    height: 48px;
    padding: 0 16px;
  }

  .drawer-body {
    padding: 0 0 24px;
    overflow-x: hidden;
  }

  .notif-popover {
    left: auto;
    right: 10px;
    top: 52px;
    width: min(320px, calc(100vw - 20px));
    border-radius: 8px;
  }

  .alias-dropdown {
    width: 250px;
  }

  .alias-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
  }

  .alias-card-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@keyframes rowFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-6px);
    background-color: rgba(37, 99, 235, 0.12);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    background-color: transparent;
  }
}

.task-item.just-arrived {
  animation: rowFadeIn 0.7s ease-out;
}


/* ==========================================================================
   GMAIL-STYLE EMAIL VIEWER
   ========================================================================== */
.drawer-body {
  padding: 0;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gmail-header {
  padding: 16px 24px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
}

.gmail-sender-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.gmail-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--accent-blue);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.gmail-sender-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.gmail-sender-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.gmail-from-email {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 6px;
  font-weight: 400;
}

.gmail-date {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.gmail-to-recipient {
  font-size: 12px;
  color: var(--text-secondary);
}

.gmail-body-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  background-color: #ffffff;
}

.gmail-body-iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  flex: 1;
  border: none;
  background-color: #ffffff;
}

.gmail-plain-body {
  padding: 24px;
  font-size: 14px;
  line-height: 1.65;
  color: #202124;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #ffffff;
  flex: 1;
}

.drawer-actions-bar {
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}
