/* ── CSS Custom Properties (Dark/Light Mode) ─────────────────────────────── */
:root {
  --bg: #0f172a; --bg2: #111827; --bg3: #1e293b; --bg4: #0a0f1e;
  --border: #334155; --border2: #1e293b;
  --text: #e5e7eb; --text2: #cbd5e1; --text3: #94a3b8; --text4: #64748b;
  --accent: #2563eb; --accent-hover: #1d4ed8;
  --card: #111827; --sidebar: #111827;
}
body.light-mode {
  --bg: #f1f5f9; --bg2: #ffffff; --bg3: #e2e8f0; --bg4: #f8fafc;
  --border: #cbd5e1; --border2: #e2e8f0;
  --text: #0f172a; --text2: #1e293b; --text3: #475569; --text4: #94a3b8;
  --card: #ffffff; --sidebar: #f8fafc;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--text);transition:background .2s,color .2s;}.app-shell{display:grid;grid-template-columns:260px 1fr;height:100vh;overflow:hidden}
.sidebar{background:var(--sidebar);border-right:1px solid var(--border2);padding:24px;display:flex;flex-direction:column;height:100vh;overflow-y:auto;position:sticky;top:0;}
.main{overflow-y:auto;height:100vh;}.brand{font-size:26px;font-weight:800;margin-bottom:28px}.nav{display:flex;flex-direction:column;gap:8px}.nav-item{color:#cbd5e1;text-decoration:none;padding:12px 14px;border-radius:12px}.nav-item:hover{background:#1f2937;color:#fff}.sidebar-footer{margin-top:auto}.connect,.logout,.primary-link{display:block;text-decoration:none;text-align:center;background:#2563eb;color:white;padding:12px;border-radius:12px;font-weight:700}.logout{background:#374151;margin-top:12px}.user-box{background:#1f2937;border:1px solid #334155;border-radius:14px;padding:12px;margin-bottom:10px}.user-box small,.muted{color:#94a3b8}.main{padding:28px;max-width:1500px;width:100%}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.page-header h1{margin:0;font-size:34px}.page-header p{margin:6px 0 0;color:#94a3b8}.icon-btn{width:48px;height:48px;border-radius:14px;border:1px solid #334155;background:#1e293b;color:white;font-size:22px;cursor:pointer}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:20px;flex-wrap:wrap}.primary-btn,.secondary-btn,.danger-btn{border:0;border-radius:12px;padding:12px 16px;color:white;font-weight:700;cursor:pointer}.primary-btn{background:#2563eb}.secondary-btn{background:#334155}.danger-btn{background:#991b1b}.primary-btn:hover{background:#1d4ed8}.danger-btn:hover{background:#7f1d1d}.search,.select,input,textarea,select{background:#111827;color:#e5e7eb;border:1px solid #334155;border-radius:12px;padding:12px}.search{min-width:280px;flex:1}.usage-chip,.badge{border-radius:999px;padding:7px 11px;background:#1e293b;border:1px solid #334155;color:#cbd5e1;font-size:13px}.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:16px}.email-card{background:#1e293b;border:1px solid #334155;border-radius:18px;padding:20px}.card-top{display:flex;justify-content:space-between;gap:12px}.card-top h3{margin:0 0 8px;font-size:19px}.meta-row{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.prio-hoch{background:#7f1d1d;color:#fecaca}.prio-mittel{background:#78350f;color:#fde68a}.prio-niedrig{background:#064e3b;color:#bbf7d0}.blue{background:#1e3a8a;color:#bfdbfe}.amber{background:#78350f;color:#fde68a}.success-note{background:#064e3b;border:1px solid #047857;color:#bbf7d0;border-radius:12px;padding:12px;margin:12px 0}.success-note a{color:#bfdbfe}.alert{padding:14px 16px;border-radius:14px;margin:14px 0}.alert.success{background:#064e3b;color:#bbf7d0}.alert.error{background:#7f1d1d;color:#fecaca}.empty-state{background:#1e293b;border:1px dashed #475569;border-radius:18px;padding:28px;color:#94a3b8}.modal-bg{display:none;position:fixed;inset:0;background:rgba(0,0,0,.65);align-items:center;justify-content:center;z-index:50}.modal{background:#1e293b;border:1px solid #334155;border-radius:18px;max-width:620px;width:95%;padding:24px}.modal-head{display:flex;justify-content:space-between;align-items:center}.modal-head button{background:none;border:0;color:#fff;font-size:28px;cursor:pointer}.modal label{display:block;margin:16px 0 6px;color:#cbd5e1}.check-row{display:flex!important;gap:10px;align-items:center}.check-row input{width:auto}table{width:100%;border-collapse:collapse;background:#1e293b;border-radius:14px;overflow:hidden;margin-bottom:24px}th,td{border-bottom:1px solid #334155;padding:12px;text-align:left}.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-bottom:22px}.metric{background:#1e293b;border:1px solid #334155;border-radius:18px;padding:22px}.metric strong{display:block;font-size:32px}.metric span{color:#94a3b8}a{color:#60a5fa}textarea{width:100%;margin-top:10px}details{margin-top:12px}summary{cursor:pointer;color:#bfdbfe}
/* ── Mobile header ───────────────────────────────────────────────────────── */
.mobile-header {
  display:none;
  position:fixed; top:0; left:0; right:0; z-index:9000;
  background:#111827; border-bottom:1px solid #1e293b;
  padding:0 16px; align-items:center; justify-content:space-between;
  height:56px; box-shadow:0 2px 12px rgba(0,0,0,.5);
}
.mobile-brand { font-size:18px; font-weight:800; }
.hamburger {
  background:#1e293b; border:1px solid #334155; color:#e5e7eb; font-size:22px;
  cursor:pointer; padding:6px 12px; border-radius:10px; line-height:1;
}
.sidebar-overlay {
  display:none; position:fixed; inset:0; background:rgba(0,0,0,.75);
  z-index:9001;
}

/* ── MOBILE BREAKPOINT ────────────────────────────────────────────────────── */
@media(max-width:900px) {

  /* 1. Show mobile header bar */
  .mobile-header { display:flex; }

  /* 2. App shell: simple block, no grid */
  .app-shell {
    display:block !important;
    grid-template-columns:none !important;
    height:auto !important;
    overflow:visible !important;
  }

  /* 3. Sidebar: COMPLETELY HIDDEN by default (no position tricks) */
  #appSidebar {
    display:none !important;
  }

  /* 4. Sidebar VISIBLE when .open is added */
  #appSidebar.open {
    display:flex !important;
    flex-direction:column !important;
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    width:260px !important;
    height:100vh !important;
    z-index:9002 !important;
    overflow-y:auto !important;
    box-shadow:8px 0 32px rgba(0,0,0,.6) !important;
  }

  /* 5. Main content: full width, starts below mobile header */
  .main {
    display:block !important;
    height:auto !important;
    min-height:100vh !important;
    overflow:visible !important;
    padding-top:68px !important;
    box-sizing:border-box !important;
  }

  /* 6. Layout fixes for small screens */
  .toolbar { flex-direction:column !important; align-items:stretch !important; gap:10px !important; }
  .search-input { width:100% !important; min-width:0 !important; }
  .mail-card-top { flex-direction:column !important; gap:12px !important; }
  .badge-column { align-items:flex-start !important; flex-direction:row !important; flex-wrap:wrap !important; }
  .settings-layout, .mail-info-grid, .admin-form-grid, .admin-grid,
  .form-grid-5, .modal-form-grid { grid-template-columns:1fr !important; }
  .dashboard-header { flex-direction:column !important; gap:6px !important; }
  .dashboard-header h1 { font-size:24px !important; }
  .admin-tabs { overflow-x:auto; }

  /* Mail card mobile fixes */
  .mail-card { padding:14px !important; }
  .mail-title-block h2 { font-size:16px !important; word-break:break-word !important; overflow-wrap:break-word !important; }
  .mail-actions { flex-wrap:wrap !important; gap:6px !important; }
  .btn-icon { width:36px !important; height:36px !important; font-size:14px !important; }
  .mail-info-grid { gap:8px !important; }
  .mail-section h3 { font-size:14px !important; }
  .mail-section p { font-size:13px !important; }
  .answer-details textarea { font-size:13px !important; }

  /* Toolbar mobile: Analyse button full width, then search */
  .toolbar > div:first-child { width:100% !important; }
  .toolbar > div:first-child .primary-button { width:100% !important; }

  /* Filter bar: scrollable on mobile */
  .filter-bar { overflow-x:auto !important; flex-wrap:nowrap !important; padding-bottom:8px !important; }
  .filter-bar::-webkit-scrollbar { height:3px; }
  .filter-bar::-webkit-scrollbar-thumb { background:#334155; border-radius:3px; }
  .filter-chip { white-space:nowrap !important; font-size:12px !important; padding:5px 10px !important; }

  /* Priority badges smaller on mobile */
  .priority-badge, .answer-badge { font-size:11px !important; padding:4px 8px !important; }

  /* Hide usage bar text on mobile, show compact */
  .usage-info { font-size:12px !important; }

  /* Progress wrap mobile */
  #progressWrap { padding:14px !important; }
}

/* Final product layout extensions */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}
.dashboard-header h1 { margin: 0; font-size: 34px; letter-spacing: -0.03em; }
.dashboard-header p { margin-top: 8px; color: #94a3b8; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-button {
    width: 44px; height: 44px; border-radius: 12px; display: inline-flex;
    align-items: center; justify-content: center; background: #1e293b;
    border: 1px solid #334155; color: white; text-decoration: none; font-size: 20px;
}
.icon-button:hover { background: #334155; }
.toolbar { display: grid; grid-template-columns: auto 1fr 190px auto; gap: 12px; align-items: center; margin-bottom: 24px; }
.primary-button, .secondary-button, .primary-link-button, .primary-btn, .danger-btn {
    border: none; border-radius: 12px; padding: 12px 16px; font-weight: 700; cursor: pointer;
    text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.primary-button, .primary-link-button, .primary-btn { background: #2563eb; color: white; }
.primary-button:hover, .primary-link-button:hover, .primary-btn:hover { background: #1d4ed8; }
.secondary-button { background: #334155; color: white; }
.secondary-button:hover { background: #475569; }
.danger-btn { background: #991b1b; color: white; }
.danger-btn:hover { background: #7f1d1d; }
.search-input, .select-input, .form-group input, .form-group textarea {
    width: 100%; background: #0f172a; color: white; border: 1px solid #334155;
    border-radius: 12px; padding: 12px 14px; outline: none;
}
.search-input:focus, .select-input:focus, .form-group input:focus, .form-group textarea:focus { border-color: #60a5fa; }
.usage-info { color: #cbd5e1; white-space: nowrap; font-size: 14px; }
.alert { padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 600; }
.alert.success { background: #064e3b; color: #d1fae5; }
.alert.error { background: #7f1d1d; color: #fee2e2; }
.mail-list { display: flex; flex-direction: column; gap: 22px; }
.mail-card, .email-card, .settings-card {
    background: #111827; border: 1px solid #334155; border-radius: 20px; padding: 22px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}
.mail-card-top, .card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 18px; }
.mail-title-block { min-width: 0; }
.mail-title-block h2 { margin: 0; font-size: 22px; line-height: 1.3; color: #f8fafc; }
.mail-meta, .mail-date, .muted { margin: 6px 0 0 0; color: #94a3b8; font-size: 14px; }
.badge-column { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 130px; }
.priority-badge, .answer-badge, .badge {
    display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
    padding: 7px 12px; font-size: 13px; font-weight: 800; white-space: nowrap;
}
.priority-hoch, .prio-hoch { background: #7f1d1d; color: #fecaca; }
.priority-mittel, .prio-mittel { background: #78350f; color: #fde68a; }
.priority-niedrig, .prio-niedrig { background: #064e3b; color: #bbf7d0; }
.answer-badge { background: #1e3a8a; color: #bfdbfe; }
.mail-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.mail-info-grid > div { background: #0f172a; border: 1px solid #1e293b; border-radius: 14px; padding: 14px; }
.label { display: block; color: #94a3b8; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.mail-section { margin-top: 16px; }
.mail-section h3 { margin: 0 0 6px 0; font-size: 15px; color: #e2e8f0; }
.mail-section p { margin: 0; color: #cbd5e1; line-height: 1.55; }
.calendar-created, .success-note {
    background: #052e16; border: 1px solid #166534; color: #bbf7d0; border-radius: 14px;
    padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px;
}
.calendar-created a, .success-note a { color: #86efac; font-weight: 700; }
.calendar-form { margin-top: 18px; }
.answer-details { margin-top: 18px; background: #0f172a; border: 1px solid #1e293b; border-radius: 14px; padding: 14px; }
.answer-details summary { cursor: pointer; font-weight: 700; color: #e2e8f0; }
.answer-details textarea, .email-card textarea {
    width: 100%; margin-top: 12px; background: #020617; color: #e5e7eb;
    border: 1px solid #334155; border-radius: 12px; padding: 12px; resize: vertical;
}
.empty-state { background: #111827; border: 1px dashed #475569; border-radius: 20px; padding: 32px; text-align: center; color: #94a3b8; }
.empty-state h2 { color: #f8fafc; margin-top: 0; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.form-group { margin-bottom: 20px; }
.form-group label, .form-check label { display: block; font-weight: 700; color: #f8fafc; margin-bottom: 8px; }
.form-group small { display: block; margin-top: 8px; color: #94a3b8; }
.form-check { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.form-check input { width: 18px; height: 18px; }
.form-check label { margin: 0; }
.admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.metric { background: #111827; border: 1px solid #334155; border-radius: 18px; padding: 18px; }
.metric strong { display: block; font-size: 28px; color: #f8fafc; }
.metric span { color: #94a3b8; }
.admin-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; }
.license-output { font-size: 18px; letter-spacing: 0.04em; }
table { width: 100%; border-collapse: collapse; margin: 14px 0 28px 0; background: #111827; border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #334155; }
th { color: #cbd5e1; background: #0f172a; }
td { color: #e5e7eb; }
@media (max-width: 1100px) { .admin-form-grid, .admin-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
    .toolbar, .settings-layout, .mail-info-grid, .admin-form-grid, .admin-grid { grid-template-columns: 1fr; }
    .mail-card-top { flex-direction: column; }
    .badge-column { align-items: flex-start; }
    .calendar-created { flex-direction: column; }
}
.danger-button {
    background: #991b1b;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}
.danger-button:hover { background: #7f1d1d; }

/* Navigation improvements */
.nav-icon { font-size: 16px; margin-right: 4px; opacity: 0.8; }
.nav-item { display: flex; align-items: center; gap: 2px; transition: all .15s; }
.nav-item:hover { background: #1f2937; color: #fff; }
.nav-admin { border: 1px solid #1e3a8a; color: #93c5fd !important; }
.nav-admin:hover { background: #1e3a8a !important; color: #fff !important; }
.nav-divider { height: 1px; background: #1e293b; margin: 10px 0; }
.user-box img { display: block; }
.connect, .logout, .primary-link { display: block; text-decoration: none; text-align: center; background: #2563eb; color: white; padding: 12px; border-radius: 12px; font-weight: 700; }
.logout { background: #374151; margin-top: 8px; }

/* Alert warning variant */
.alert.warning { background: #78350f; color: #fde68a; }

/* Drag & Drop */
.mail-card { cursor:grab; }
.mail-card.drag-over { border-color:#2563eb!important; box-shadow:0 0 0 2px #2563eb40; }
.mail-card:active { cursor:grabbing; }

/* ── Light Mode – comprehensive overrides for all hardcoded dark elements ─── */
body.light-mode {
  background: #f1f5f9;
  color: #0f172a;
}

/* Sidebar & Nav */
body.light-mode .sidebar { background:#ffffff; border-right:1px solid #e2e8f0; }
body.light-mode .brand { color:#0f172a; }
body.light-mode .nav-item { color:#475569; }
body.light-mode .nav-item:hover { background:#f1f5f9; color:#0f172a; }
body.light-mode .nav-admin { border-color:#bfdbfe; color:#1d4ed8 !important; }
body.light-mode .nav-admin:hover { background:#eff6ff !important; color:#1d4ed8 !important; }
body.light-mode .nav-divider { background:#e2e8f0; }
body.light-mode .sidebar-footer .user-box { background:#f8fafc; border-color:#e2e8f0; color:#0f172a; }
body.light-mode .user-box small { color:#64748b; }
body.light-mode .logout { background:#e2e8f0; color:#374151; }
body.light-mode .connect { background:#2563eb; color:#fff; }

/* Main area */
body.light-mode .main { background:#f1f5f9; }
body.light-mode .app-footer { border-top-color:#e2e8f0; }
body.light-mode .app-footer a, body.light-mode .app-footer span { color:#94a3b8; }

/* Cards */
body.light-mode .mail-card,
body.light-mode .email-card,
body.light-mode .settings-card,
body.light-mode .create-card { background:#ffffff; border-color:#e2e8f0; box-shadow:0 1px 4px rgba(0,0,0,.06); }
body.light-mode .mail-done { opacity:.6; }
body.light-mode .mail-title-block h2 { color:#0f172a; }
body.light-mode .mail-meta, body.light-mode .mail-date, body.light-mode .muted { color:#64748b; }
body.light-mode .mail-section h3 { color:#1e293b; }
body.light-mode .mail-section p { color:#475569; }

/* Mail info grid boxes */
body.light-mode .mail-info-grid > div { background:#f8fafc; border-color:#e2e8f0; }
body.light-mode .label { color:#64748b; }

/* Answer details */
body.light-mode .answer-details { background:#f8fafc; border-color:#e2e8f0; }
body.light-mode .answer-details summary { color:#1e293b; }
body.light-mode .answer-details textarea { background:#ffffff; color:#0f172a; border-color:#e2e8f0; }

/* Forms */
body.light-mode input, body.light-mode textarea, body.light-mode select,
body.light-mode .search-input, body.light-mode .select-input,
body.light-mode .form-group input, body.light-mode .form-group textarea {
  background:#ffffff; color:#0f172a; border-color:#cbd5e1;
}
body.light-mode input:focus, body.light-mode textarea:focus, body.light-mode select:focus,
body.light-mode .search-input:focus, body.light-mode .form-group input:focus { border-color:#2563eb; }
body.light-mode .form-group label, body.light-mode .form-check label { color:#1e293b; }
body.light-mode .form-group small { color:#64748b; }

/* Buttons */
body.light-mode .btn-icon { background:#f1f5f9; border-color:#cbd5e1; color:#374151; }
body.light-mode .btn-icon:hover { background:#e2e8f0; border-color:#2563eb; color:#2563eb; }
body.light-mode .btn-icon.done-active { background:#dcfce7; border-color:#16a34a; color:#15803d; }
body.light-mode .secondary-button { background:#e2e8f0; color:#1e293b; }
body.light-mode .secondary-button:hover { background:#cbd5e1; }
body.light-mode .filter-chip { background:#ffffff; border-color:#cbd5e1; color:#475569; }
body.light-mode .filter-chip:hover, body.light-mode .filter-chip.active { background:#eff6ff; border-color:#2563eb; color:#2563eb; }

/* Metrics & Admin */
body.light-mode .metric { background:#ffffff; border-color:#e2e8f0; }
body.light-mode .metric strong { color:#0f172a; }
body.light-mode .metric span { color:#64748b; }

/* Tables */
body.light-mode table, body.light-mode .data-table, body.light-mode .inv-table { background:#ffffff; }
body.light-mode th { background:#f8fafc; color:#475569; border-bottom-color:#e2e8f0; }
body.light-mode td { color:#1e293b; border-bottom-color:#f1f5f9; }
body.light-mode tr:hover td { background:#f8fafc; }

/* Badges & priorities */
body.light-mode .priority-hoch, body.light-mode .prio-hoch { background:#fee2e2; color:#dc2626; }
body.light-mode .priority-mittel, body.light-mode .prio-mittel { background:#fef3c7; color:#d97706; }
body.light-mode .priority-niedrig, body.light-mode .prio-niedrig { background:#dcfce7; color:#16a34a; }
body.light-mode .answer-badge { background:#dbeafe; color:#1d4ed8; }

/* Calendar & success notes */
body.light-mode .calendar-created, body.light-mode .success-note { background:#f0fdf4; border-color:#86efac; color:#15803d; }
body.light-mode .calendar-created a { color:#16a34a; }

/* Alert */
body.light-mode .alert.success { background:#f0fdf4; color:#15803d; }
body.light-mode .alert.error { background:#fef2f2; color:#dc2626; }
body.light-mode .alert.warning { background:#fefce8; color:#ca8a04; }

/* Empty state */
body.light-mode .empty-state { background:#ffffff; border-color:#cbd5e1; color:#64748b; }
body.light-mode .empty-state h2 { color:#1e293b; }

/* Toolbar */
body.light-mode .toolbar { border-color:#e2e8f0; }
body.light-mode .usage-info { color:#475569; }
body.light-mode .usage-bar { background:#e2e8f0; }

/* Dashboard header */
body.light-mode .dashboard-header h1 { color:#0f172a; }
body.light-mode .dashboard-header p { color:#64748b; }
body.light-mode .icon-button { background:#ffffff; border-color:#e2e8f0; color:#374151; }
body.light-mode .icon-button:hover { background:#f1f5f9; }

/* Progress bar */
body.light-mode #progressWrap { background:#ffffff; border-color:#e2e8f0; }
body.light-mode #progressLabel { color:#1e293b; }

/* Modals */
body.light-mode .modal-overlay, body.light-mode #shortcutsModal > div,
body.light-mode #editCompanyModal .modal-box, body.light-mode #snoozeModal > div { background:#ffffff; border-color:#e2e8f0; color:#0f172a; }

/* Admin tabs */
body.light-mode .tab-btn { color:#64748b; }
body.light-mode .tab-btn.active { color:#2563eb; border-bottom-color:#2563eb; }

/* Notification panel */
body.light-mode #notificationPanel { background:#ffffff; border-color:#e2e8f0; }
body.light-mode #notificationPanel a { color:#0f172a; }

/* Mobile header */
body.light-mode .mobile-header { background:#ffffff; border-bottom-color:#e2e8f0; }
body.light-mode .mobile-brand { color:#0f172a; }
body.light-mode .hamburger { background:#f1f5f9; border-color:#e2e8f0; color:#374151; }
body.light-mode .sidebar-overlay { background:rgba(0,0,0,.4); }

/* Notification Bell ───────────────────────────────────────────────────── */
/* Bell button is styled inline in base.html for simplicity */

/* Done / erledigt state */
.mail-done { opacity: .55; }
.mail-done .mail-title-block h2 { text-decoration: line-through; color: #64748b; }
.btn-icon.done-active { background:#052e16; border-color:#166534; color:#22c55e; }
.btn-icon.done-active:hover { background:#14532d; border-color:#22c55e; }

/* Trial banner */
.trial-badge { background:#f59e0b; color:#1c1917; border-radius:8px; padding:3px 10px; font-size:12px; font-weight:800; }

/* App footer */
.app-footer { margin-top:48px; padding:20px 0 8px; border-top:1px solid #1e293b;
  display:flex; gap:20px; align-items:center; color:#475569; font-size:13px; }
.app-footer a { color:#475569; text-decoration:none; }
.app-footer a:hover { color:#94a3b8; }

/* Pagination */
.pagination { display:flex; gap:8px; align-items:center; margin-top:24px; flex-wrap:wrap; }
.page-btn { padding:8px 14px; border-radius:10px; border:1px solid #334155; background:#111827;
  color:#94a3b8; text-decoration:none; font-size:14px; font-weight:600; }
.page-btn:hover { border-color:#60a5fa; color:#60a5fa; }
.page-btn.active { background:#2563eb; border-color:#2563eb; color:#fff; }
.page-btn.disabled { opacity:.35; pointer-events:none; }

/* Reply sent indicator */
.reply-sent-badge { display:inline-flex; align-items:center; gap:6px; background:#052e16; border:1px solid #166534; color:#86efac; border-radius:999px; padding:5px 12px; font-size:13px; font-weight:700; margin-top:10px; }
