/* =============================================
   TempMail - Pure HTML/CSS/JS Version
   暗色 / 浅色 双主题 + 多语言
   ============================================= */

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

:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg-base: #0f0f1a;
  --bg-card: #16162a;
  --bg-card2: #1e1e35;
  --bg-hover: #252545;
  --border: rgba(255,255,255,0.08);
  --border-focus: rgba(99,102,241,0.5);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

html[data-theme="light"] {
  --bg-base: #f6f7fb;
  --bg-card: #ffffff;
  --bg-card2: #f1f4f9;
  --bg-hover: #eef2f9;
  --border: rgba(30,41,59,0.10);
  --border-focus: rgba(99,102,241,0.45);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --shadow-sm: 0 2px 8px rgba(15,23,42,0.06);
  --shadow-md: 0 8px 32px rgba(15,23,42,0.08);
  --shadow-lg: 0 16px 64px rgba(15,23,42,0.12);
}

html, body {
  min-height: 100vh;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(127,127,127,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(127,127,127,0.4); }

/* ── 背景光晕 ── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
html[data-theme="light"] .orb { opacity: 0.28; }
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #6366f1, transparent);
  top: -150px; left: -100px;
  animation: float 8s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #06b6d4, transparent);
  top: 30%; right: -100px;
  animation: float 10s ease-in-out infinite reverse;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #8b5cf6, transparent);
  bottom: -100px; left: 40%;
  animation: float 12s ease-in-out infinite;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
html[data-theme="light"] .header {
  background: rgba(246, 247, 251, 0.88);
  border-bottom-color: rgba(30,41,59,0.08);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: default;
}
.logo-icon svg {
  width: 36px; height: 36px;
  filter: drop-shadow(0 0 8px rgba(99,102,241,0.5));
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
  font-size: 18px; font-weight: 700;
  background: linear-gradient(135deg, #818cf8, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-sub { font-size: 11px; color: var(--text-muted); letter-spacing: 0.5px; }

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-tag {
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 99px;
  font-size: 12px;
  color: var(--text-secondary);
  transition: var(--transition);
}
html[data-theme="light"] .nav-tag {
  background: rgba(15,23,42,0.04);
  border-color: rgba(15,23,42,0.08);
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  min-width: 36px; min-height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
html[data-theme="light"] .icon-btn {
  background: #fff;
}
.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: rgba(99,102,241,0.3);
}
.icon-btn svg {
  width: 18px; height: 18px;
}

/* 主题切换 */
.theme-toggle .theme-icon {
  display: none;
}
html[data-theme="dark"] .theme-toggle .moon,
html:not([data-theme="light"]) .theme-toggle .moon { display: block; }
html[data-theme="light"] .theme-toggle .sun { display: block; }

/* 语言切换 */
.lang-toggle {
  padding-left: 10px;
  padding-right: 8px;
}
.lang-current {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 18px;
  text-align: center;
}
.lang-toggle .caret {
  width: 14px; height: 14px;
  transition: transform 0.2s ease;
}
.lang-dropdown.open .caret { transform: rotate(180deg); }

.lang-dropdown {
  position: relative;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 200;
}
html[data-theme="light"] .lang-menu {
  background: #fff;
}
.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.lang-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.lang-item.active {
  color: var(--primary-light);
  background: rgba(99,102,241,0.10);
}
.lang-check {
  width: 16px; height: 16px;
  opacity: 0;
}
.lang-item.active .lang-check { opacity: 1; }

/* ── 主体 ── */
.main-content {
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 0 16px 48px;
  min-height: calc(100vh - 130px);
}

/* ── 按钮 ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  outline: none;
  user-select: none;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 6px 20px rgba(99,102,241,0.5);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
html[data-theme="light"] .btn-ghost { background: rgba(15,23,42,0.04); }
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
}
html[data-theme="light"] .btn-ghost:hover { background: rgba(15,23,42,0.08); border-color: rgba(15,23,42,0.15); }
.btn-danger {
  background: rgba(239,68,68,0.15);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.25);
}
.btn-danger:hover { background: rgba(239,68,68,0.25); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 16px 40px; font-size: 17px; border-radius: var(--radius-lg); }

/* ── 卡片 ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ── 徽标 ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
}
.badge-unread {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.25);
}
html[data-theme="light"] .badge-unread {
  background: rgba(239,68,68,0.10);
}

/* ── 隐藏 ── */
.hidden { display: none !important; }

/* ══════════════════ 欢迎页 ══════════════════ */
.welcome { max-width: 1100px; margin: 0 auto; padding: 64px 24px; }

/* Hero */
.hero { text-align: center; margin-bottom: 80px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 99px;
  font-size: 13px;
  color: var(--primary-light);
  margin-bottom: 24px;
}
html[data-theme="light"] .hero-badge {
  background: rgba(99,102,241,0.08);
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, #818cf8, #22d3ee, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientShift 4s ease infinite;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
}
.hero-actions { display: flex; justify-content: center; }
.generate-btn { animation: pulse-glow 2.5s ease-in-out infinite; }
.hero-error {
  margin-top: 16px;
  color: var(--danger);
  font-size: 13px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: inline-block;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 80px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: rgba(99,102,241,0.3);
  background: var(--bg-card2);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.15);
}
html[data-theme="light"] .feature-card:hover {
  box-shadow: 0 8px 32px rgba(99,102,241,0.12);
}
.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* Steps */
.steps-section { text-align: center; }
.section-title { font-size: 28px; font-weight: 700; color: var(--text-primary); margin-bottom: 40px; }
.steps { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.step { display: flex; align-items: flex-start; gap: 16px; max-width: 280px; text-align: left; }
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}
.step-content h4 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.step-content p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ══════════════════ 工作台 ══════════════════ */
.workspace { max-width: 1200px; margin: 0 auto; padding: 32px 0; animation: fadeIn 0.4s ease; }

/* 地址栏 */
.address-bar { padding: 20px 24px; }
.address-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.address-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.dot-green {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
  animation: pulse-glow 2s ease-in-out infinite;
}
.timer-badge {
  padding: 3px 10px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 99px;
  font-size: 12px;
  color: var(--success);
  font-weight: 500;
}
.timer-badge.warning {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.25);
  color: var(--warning);
}
.address-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.address-display {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: var(--transition);
}
html[data-theme="light"] .address-display {
  background: rgba(15,23,42,0.03);
}
.address-display.copied {
  border-color: rgba(16,185,129,0.4);
  background: rgba(16,185,129,0.05);
}
.mail-icon { flex-shrink: 0; color: var(--primary-light); }
.address-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.3px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}
.address-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.address-hint {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.12);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 工作台主体 */
.workspace-body {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

/* ── 邮件列表 ── */
.mail-list {
  padding: 0;
  overflow: hidden;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
}
.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.list-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.auto-hint {
  padding: 6px 20px;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .auto-hint {
  background: rgba(15,23,42,0.02);
}
.list-body { flex: 1; overflow-y: auto; }

/* 空/加载状态 */
.empty-state, .loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 24px;
  text-align: center;
}
.empty-icon { font-size: 48px; margin-bottom: 4px; }
.empty-state p, .loading-state p { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.empty-state span { color: var(--text-muted); font-size: 12px; line-height: 1.6; }

/* 邮件条目 */
.mail-item {
  position: relative;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.mail-item:hover { background: var(--bg-hover); }
.mail-item.active {
  background: rgba(99,102,241,0.1);
  border-left: 3px solid var(--primary);
}
html[data-theme="light"] .mail-item.active {
  background: rgba(99,102,241,0.08);
}
.mail-item.unread .mail-subject { color: var(--text-primary); font-weight: 600; }
.mail-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.mail-from {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
.mail-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; margin-left: 8px; }
.mail-subject {
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 3px;
}
.mail-intro {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.unread-dot {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 2px rgba(99,102,241,0.3);
}

/* ── 邮件详情 ── */
.mail-detail {
  padding: 0;
  overflow: hidden;
  min-height: 400px;
}
.detail-empty, .detail-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 80px 24px;
  text-align: center;
  min-height: 400px;
}
.detail-empty-icon { opacity: 0.6; animation: float 4s ease-in-out infinite; }
.detail-empty p, .detail-loading p { font-size: 15px; color: var(--text-secondary); font-weight: 500; }
.detail-empty span { font-size: 13px; color: var(--text-muted); }

.detail-content { display: flex; flex-direction: column; }
.detail-head { padding: 24px 28px 20px; }
.detail-subject {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 16px;
}
.detail-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.meta-item { display: flex; align-items: baseline; gap: 10px; font-size: 13px; }
.meta-label { flex-shrink: 0; color: var(--text-muted); width: 48px; }
.meta-value { color: var(--text-secondary); }
.meta-value em { font-style: normal; color: var(--primary-light); margin-left: 6px; }
.detail-actions { display: flex; gap: 8px; }
.detail-divider { height: 1px; background: var(--border); margin: 0; }
.detail-body { padding: 24px 28px; min-height: 200px; }
.mail-html { color: var(--text-primary); line-height: 1.8; font-size: 14px; word-break: break-word; }
.mail-html a { color: var(--primary-light); }
.mail-html img { max-width: 100%; border-radius: var(--radius-sm); }
.mail-text {
  white-space: pre-wrap;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  word-break: break-word;
  font-family: 'SF Mono', 'Consolas', monospace;
}
.mail-empty-body { color: var(--text-muted); font-size: 13px; font-style: italic; text-align: center; padding: 40px 0; }
.detail-attachments { padding: 16px 28px 24px; border-top: 1px solid var(--border); }
.attach-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; }
.attach-list { display: flex; flex-direction: column; gap: 6px; }
.attach-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
}
html[data-theme="light"] .attach-item { background: rgba(15,23,42,0.03); }
.attach-name { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-size { color: var(--text-muted); margin-left: 12px; flex-shrink: 0; }

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 20px 24px;
  text-align: center;
}
html[data-theme="light"] .footer {
  border-top-color: rgba(15,23,42,0.08);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.footer-copy { font-size: 12px; color: var(--text-muted); }
.footer-copy a { color: var(--primary-light); text-decoration: none; }
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  animation: fadeIn 0.3s ease;
}

/* ── 旋转loading ── */
.spinning { animation: spin 0.8s linear infinite; display: inline-block; }

/* ══════════════════ 动画 ══════════════════ */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(99,102,241,0); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes gradientShift {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.animate-fade-in { animation: fadeIn 0.35s ease both; }

/* ══════════════════ 响应式 ══════════════════ */
@media (max-width: 900px) {
  .workspace-body { grid-template-columns: 1fr; }
  .mail-list { position: static; max-height: 350px; }
}
@media (max-width: 700px) {
  .address-row { flex-direction: column; align-items: stretch; }
  .address-btns { justify-content: flex-end; }
  .header-inner { padding: 0 16px; }
  .nav-links { display: none; }
  .header-controls { gap: 10px; }
}
