/* Life OS Email - Gmail/Outlook inspired skin using existing gold theme tokens */

:root {
  --email-bg: var(--bg-primary);
  --email-shell: rgba(34, 31, 27, 0.96);
  --email-panel: rgba(43, 39, 34, 0.94);
  --email-panel-2: rgba(50, 45, 39, 0.95);
  --email-elevated: rgba(57, 51, 44, 0.98);

  --email-border: rgba(255, 255, 255, 0.08);
  --email-border-strong: rgba(255, 255, 255, 0.16);
  --email-border-gold: rgba(201, 169, 98, 0.34);

  --email-text: var(--text-primary);
  --email-text-soft: var(--text-secondary);
  --email-text-muted: var(--text-muted);

  --email-gold: var(--accent-gold);
  --email-gold-2: var(--accent-gold-light);
  --email-gold-dark: var(--accent-gold-dark);
  --email-gold-glow: rgba(201, 169, 98, 0.2);

  --email-ok: var(--success);
  --email-danger: var(--error);
  --email-warn: var(--warning);

  --email-radius-xs: 8px;
  --email-radius-sm: 10px;
  --email-radius-md: 14px;
  --email-radius-lg: 18px;

  --email-shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.24);
  --email-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
  --email-shadow-lg: 0 28px 62px rgba(0, 0, 0, 0.46);

  --email-space-1: 8px;
  --email-space-2: 14px;
  --email-space-3: 20px;
  --email-space-4: 28px;
  --email-space-5: 36px;
}

.email-page .dashboard-grid {
  grid-template-columns: 1fr;
  gap: var(--email-space-3);
}

.email-page .dashboard-col {
  display: grid;
  gap: var(--email-space-3);
}

.email-page .quick-nav {
  margin-bottom: var(--email-space-2);
}

.email-setup-section {
  display: flex;
  justify-content: center;
  padding: 14px 0 4px;
}

.email-setup-card {
  width: min(860px, 100%);
  border-radius: var(--email-radius-lg);
  border: 1px solid var(--email-border);
  background: linear-gradient(164deg, var(--email-panel), var(--email-shell));
  box-shadow: var(--email-shadow);
  padding: 24px;
}

.email-setup-header {
  text-align: center;
  margin-bottom: 22px;
}

.email-setup-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.email-setup-header h2 {
  margin: 0 0 6px;
  color: var(--email-text);
  font-size: 24px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0.02em;
}

.email-setup-header p {
  margin: 0;
  color: var(--email-text-muted);
  font-size: 13px;
}

.email-setup-form {
  display: grid;
  gap: 16px;
}

.email-setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.email-field {
  display: grid;
  gap: 6px;
}

.email-field.full-width,
.email-field-divider {
  grid-column: 1 / -1;
}

.email-field label {
  color: var(--email-text-soft);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
}

.email-field input,
.email-field select,
.email-search input,
.email-account-select,
.email-folder-select,
.email-move-select,
.email-compose-field input,
.email-reply-form input,
.email-reply-form textarea,
.email-compose-body textarea {
  width: 100%;
  border: 1px solid var(--email-border);
  border-radius: var(--email-radius-sm);
  background: rgba(26, 24, 20, 0.92);
  color: var(--email-text);
  padding: 11px 12px;
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.email-field input:focus,
.email-field select:focus,
.email-search input:focus,
.email-account-select:focus,
.email-folder-select:focus,
.email-move-select:focus,
.email-compose-field input:focus,
.email-reply-form input:focus,
.email-reply-form textarea:focus,
.email-compose-body textarea:focus {
  outline: none;
  border-color: var(--email-gold);
  box-shadow: 0 0 0 3px var(--email-gold-glow);
  background: rgba(30, 27, 22, 0.96);
}

.email-field-hint,
.email-setup-presets span {
  font-size: 12px;
  color: var(--email-text-muted);
}

.email-field-hint a {
  color: var(--email-gold-2);
  text-decoration: none;
}

.email-field-hint a:hover {
  text-decoration: underline;
}

.email-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.email-field-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

.email-field-divider::before,
.email-field-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--email-border);
}

.email-field-divider span {
  color: var(--email-text-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.email-setup-actions,
.email-setup-presets {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.email-setup-actions {
  justify-content: flex-end;
}

.email-setup-presets {
  border-top: 1px solid var(--email-border);
  padding-top: 12px;
}

.email-btn-primary,
.email-btn-secondary,
.email-icon-btn,
.email-page-btn,
.preset-btn,
.email-text-btn {
  border: 1px solid transparent;
  border-radius: var(--email-radius-sm);
  cursor: pointer;
  transition: all 0.18s ease;
  font-weight: 600;
  font-size: 12px;
}

.email-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--email-gold), var(--email-gold-dark));
  color: #21180b;
}

.email-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(201, 169, 98, 0.3);
}

.email-btn-secondary,
.email-page-btn,
.email-icon-btn,
.preset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  color: var(--email-text-soft);
  background: rgba(39, 35, 30, 0.9);
  border-color: var(--email-border);
}

.email-btn-secondary:hover,
.email-page-btn:hover:not(:disabled),
.email-icon-btn:hover:not(:disabled),
.preset-btn:hover {
  color: var(--email-text);
  border-color: var(--email-border-gold);
  background: rgba(49, 44, 38, 0.96);
}

.email-icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
}

.email-icon-btn.small {
  width: 30px;
  height: 30px;
}

.email-icon-btn:disabled,
.email-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.email-icon-btn.active {
  color: #24190a;
  border-color: var(--email-border-gold);
  background: linear-gradient(135deg, var(--email-gold), var(--email-gold-dark));
}

.email-icon-btn.danger,
.email-text-btn.danger {
  color: #f0afa7;
}

.email-icon-btn.danger:hover,
.email-text-btn.danger:hover {
  color: #ffd4cf;
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(248, 113, 113, 0.12);
}

.email-text-btn {
  background: transparent;
  color: var(--email-text-soft);
  padding: 6px 8px;
}

.email-app {
  border: 1px solid var(--email-border);
  border-radius: var(--email-radius-lg);
  background: linear-gradient(175deg, var(--email-shell), rgba(33, 30, 26, 0.98));
  box-shadow: var(--email-shadow);
  padding: var(--email-space-4);
  display: grid;
  gap: var(--email-space-4);
}

.email-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(280px, 1fr) auto;
  gap: var(--email-space-4);
}

.email-toolbar-left,
.email-toolbar-center,
.email-toolbar-right,
.email-account-switcher,
.email-folder-switcher,
.email-list-actions,
.email-preview-actions,
.email-info-left,
.email-info-right,
.email-compose-right,
.email-compose-left,
.email-reader-actions,
.email-reply-actions,
.email-item-indicators,
.email-message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.email-toolbar-left,
.email-toolbar-center,
.email-toolbar-right,
.email-info-bar,
.email-list-header,
.email-preview-header,
.email-pagination,
.email-compose-header,
.email-reader-header,
.email-reply-header {
  border: 1px solid var(--email-border);
  border-radius: 12px;
  background: linear-gradient(160deg, var(--email-panel-2), var(--email-panel));
  padding: 14px 16px;
}

.email-account-select,
.email-folder-select {
  min-width: 170px;
  padding-right: 32px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23c9a962' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.email-search {
  position: relative;
  width: 100%;
}

.email-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--email-text-muted);
  pointer-events: none;
}

.email-search input {
  padding-left: 34px;
  padding-right: 34px;
}

.email-search-shortcut {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--email-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  color: var(--email-text-muted);
  background: rgba(30, 26, 22, 0.88);
}

.email-info-bar {
  display: flex;
  justify-content: space-between;
  gap: var(--email-space-2);
  margin-top: var(--email-space-2);
  margin-bottom: var(--email-space-3);
}

.email-info-left {
  color: var(--email-text-soft);
  font-size: 12px;
}

.email-unread-badge {
  border-radius: 999px;
  padding: 4px 9px;
  border: 1px solid var(--email-border-gold);
  background: rgba(201, 169, 98, 0.16);
  color: var(--email-gold-2);
  font-size: 11px;
  font-weight: 700;
}

.email-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.94fr) minmax(380px, 1.22fr);
  gap: var(--email-space-4);
  min-height: 720px;
}

.email-list-panel,
.email-preview-panel {
  border: 1px solid var(--email-border);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(44, 39, 34, 0.96), rgba(37, 33, 29, 0.95));
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.email-list-header,
.email-preview-header {
  border: 0;
  border-bottom: 1px solid var(--email-border);
  border-radius: 0;
  background: rgba(30, 27, 23, 0.88);
}

.email-list-meta {
  color: var(--email-text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.email-bulk-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 8px;
  margin-left: 4px;
  border-left: 1px solid var(--email-border);
}

.email-checkbox-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.email-checkbox-wrapper input {
  position: absolute;
  opacity: 0;
}

.email-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid var(--email-border-strong);
  background: rgba(26, 23, 20, 0.88);
  transition: all 0.16s ease;
}

.email-checkbox-wrapper input:checked + .email-checkbox {
  border-color: var(--email-gold);
  background: var(--email-gold);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.email-list {
  overflow-y: auto;
  padding: var(--email-space-3);
}

.email-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 16px;
  margin: 10px 8px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.email-item:hover {
  background: rgba(58, 51, 44, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.email-item.active {
  border-color: var(--email-border-gold);
  background: rgba(201, 169, 98, 0.14);
  box-shadow: inset 2px 0 0 var(--email-gold);
}

.email-item.unread {
  background: rgba(61, 53, 46, 0.66);
}

.email-item.unread .email-item-from,
.email-item.unread .email-item-subject {
  color: var(--email-text);
  font-weight: 700;
}

.email-item-checkbox {
  padding-top: 3px;
}

.email-item-content {
  min-width: 0;
}

.email-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.email-item-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}

.email-item-from {
  color: var(--email-text-soft);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-item-subject {
  color: var(--email-text-soft);
  font-size: 13px;
  line-height: 1.42;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-item-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
}

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

.email-item-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--email-gold);
}

.email-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--email-border);
  border-radius: 0;
  background: rgba(30, 26, 22, 0.84);
}

.email-page-info {
  color: var(--email-text-muted);
  font-size: 12px;
}

.email-preview-panel {
  grid-template-rows: auto 1fr;
}

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

.email-action-divider {
  width: 1px;
  height: 24px;
  background: var(--email-border);
  margin: 0 4px;
}

.email-move-dropdown {
  display: flex;
  align-items: center;
  gap: 6px;
}

.email-move-select {
  width: auto;
  min-width: 118px;
  margin: 0;
}

.email-viewer,
.email-reader-body {
  overflow: auto;
  padding: var(--email-space-5);
  background: rgba(38, 34, 29, 0.56);
}

.email-empty-state,
.email-loading {
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.email-empty-icon {
  font-size: 48px;
  opacity: 0.86;
}

.email-empty-state h3 {
  margin: 0;
  font-size: 20px;
  color: var(--email-text);
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.email-empty-state p {
  margin: 0;
  color: var(--email-text-soft);
  font-size: 13px;
}

.email-shortcuts-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
  background: rgba(46, 41, 36, 0.76);
  border: 1px solid var(--email-border);
  border-radius: 10px;
  padding: 10px;
}

.email-shortcuts-hint span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--email-text-muted);
  font-size: 12px;
}

.email-shortcuts-hint kbd {
  font: 700 11px/1 'Inter', sans-serif;
  color: var(--email-gold-2);
  border: 1px solid var(--email-border-gold);
  border-radius: 4px;
  padding: 3px 6px;
  background: rgba(45, 39, 33, 0.9);
}

.email-message {
  display: grid;
  gap: var(--email-space-4);
  color: var(--email-text);
  max-width: 980px;
}

.email-message-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--email-space-3);
  padding-bottom: var(--email-space-3);
  border-bottom: 1px solid var(--email-border);
}

.email-message-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-message-subject {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.2;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.email-message-meta {
  flex-wrap: wrap;
  color: var(--email-text-soft);
  font-size: 13px;
}

.email-message-body {
  color: var(--email-text);
  font-size: 14px;
  line-height: 1.68;
}

.email-message-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: inherit;
}

.email-html-frame {
  width: 100%;
  height: 62vh;
  min-height: 360px;
  border: 1px solid var(--email-border);
  border-radius: 10px;
  background: #fff;
}

.email-loading {
  color: var(--email-text-muted);
  font-size: 13px;
}

.email-loading-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--email-gold);
  animation: email-spin 0.8s linear infinite;
}

@keyframes email-spin {
  to { transform: rotate(360deg); }
}

.email-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.email-compose-modal,
.email-reader-modal {
  width: min(1100px, 100%);
  border: 1px solid var(--email-border-strong);
  border-radius: 16px;
  background: linear-gradient(168deg, var(--email-panel), var(--email-shell));
  box-shadow: var(--email-shadow-lg);
  transform: translateY(14px);
  transition: transform 0.2s ease;
  overflow: hidden;
}

.email-modal-overlay.open .email-compose-modal,
.email-modal-overlay.open .email-reader-modal {
  transform: translateY(0);
}

.email-compose-modal {
  max-width: 820px;
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.email-compose-header,
.email-reader-header {
  margin: 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--email-border);
}

.email-compose-header h3 {
  margin: 0;
  color: var(--email-text);
  font-size: 18px;
}

.email-compose-form {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 0;
}

.email-compose-field,
.email-compose-field-row {
  border-bottom: 1px solid var(--email-border);
}

.email-compose-field {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: var(--email-space-3);
  padding: 0 var(--email-space-4);
}

.email-compose-field label {
  color: var(--email-text-soft);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.email-compose-field input {
  margin: 8px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 0;
}

.email-compose-field input:focus {
  border: 0;
  box-shadow: none;
}

.email-compose-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.email-compose-field-row .email-compose-field:first-child {
  border-right: 1px solid var(--email-border);
}

.email-compose-body {
  min-height: 260px;
}

.email-compose-body textarea {
  min-height: 260px;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  resize: vertical;
}

.email-compose-body textarea:focus {
  box-shadow: none;
}

.email-compose-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--email-space-3);
  padding: var(--email-space-2) var(--email-space-4);
  border-top: 1px solid var(--email-border);
  background: rgba(35, 31, 26, 0.84);
}

.email-reader-modal {
  width: min(1260px, 98vw);
  height: 95vh;
  max-height: 95vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.email-reader-info h2 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.15;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--email-text);
}

.email-reader-meta {
  color: var(--email-text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.email-reader-reply {
  border-top: 1px solid var(--email-border);
  background: rgba(32, 28, 23, 0.9);
  padding-top: var(--email-space-1);
}

.email-reply-header {
  margin: 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--email-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--email-text-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.email-reply-form {
  display: grid;
  gap: var(--email-space-3);
  padding: var(--email-space-4);
}

.email-reply-form textarea {
  min-height: 70px;
  resize: vertical;
}

.email-reply-actions {
  display: flex;
  justify-content: flex-end;
}

.email-toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1300;
  display: grid;
  gap: 8px;
}

.email-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  max-width: 420px;
  padding: 11px 12px;
  border: 1px solid var(--email-border);
  border-left: 3px solid var(--email-gold);
  border-radius: 10px;
  background: rgba(34, 30, 26, 0.98);
  color: var(--email-text);
  box-shadow: var(--email-shadow-sm);
  transform: translateX(112%);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

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

.email-toast.success { border-left-color: var(--email-ok); }
.email-toast.warning { border-left-color: var(--email-warn); }
.email-toast.error { border-left-color: var(--email-danger); }

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

.email-toast-close {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--email-text-muted);
  cursor: pointer;
}

.email-toast-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--email-text);
}

@media (max-width: 1100px) {
  .email-toolbar {
    grid-template-columns: 1fr;
  }

  .email-layout {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .email-app {
    padding: var(--email-space-2);
    gap: var(--email-space-2);
  }

  .email-info-bar {
    margin-top: var(--email-space-1);
    margin-bottom: var(--email-space-2);
  }

  .email-list-panel {
    min-height: 420px;
  }

  .email-preview-panel {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .email-setup-grid,
  .email-field-row,
  .email-compose-field-row {
    grid-template-columns: 1fr;
  }

  .email-setup-actions {
    justify-content: stretch;
  }

  .email-setup-actions .email-btn-primary,
  .email-setup-actions .email-btn-secondary {
    width: 100%;
  }

  .email-preview-panel {
    display: none;
  }

  .email-list-panel {
    min-height: 540px;
  }

  .email-item {
    grid-template-columns: auto 1fr;
    padding: 14px;
    margin: 8px 4px;
  }

  .email-item-meta {
    grid-column: 2;
    justify-items: start;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .email-compose-modal,
  .email-reader-modal {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .email-compose-actions {
    flex-direction: column;
    align-items: stretch;
    padding: var(--email-space-2);
  }

  .email-compose-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .email-reader-header {
    display: grid;
    gap: var(--email-space-2);
    padding: var(--email-space-2);
  }

  .email-reader-actions {
    flex-wrap: wrap;
  }

  .email-toast-container {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .email-toast {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
