/* Mail-Client – Handy zuerst, hoher Kontrast, Touch ≥ 44px */
.mc-app {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 56px);
  min-height: 320px;
  background: #0f172a;
  color: #f8fafc;
  font-family: system-ui, sans-serif;
}
.mc-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 6px 10px;
  background: #020617;
  border-bottom: 2px solid #facc15;
  flex-shrink: 0;
}
.mc-top h1, .mc-top-subj {
  flex: 1;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-icon, .mc-send {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: #134e4a;
  color: #ecfeff;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
}
.mc-send { background: #15803d; font-size: 0.95rem; padding: 0 12px; min-width: 72px; }
.mc-icon:disabled, .mc-send:disabled, .mc-btn:disabled { opacity: .45; }
.mc-toolbar, .mc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  background: #1e293b;
  flex-shrink: 0;
}
.mc-pill, .mc-btn, .mc-att {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #334155;
  color: #f8fafc;
  font-weight: 700;
  cursor: pointer;
}
.mc-pill.is-on { background: #0f766e; }
.mc-text { min-height: 40px; min-width: 40px; border: 0; background: transparent; color: #f8fafc; font-size: 1.2rem; cursor: pointer; }
.mc-danger { background: #b91c1c; }
.mc-search { padding: 8px 10px; background: #1e293b; }
.mc-search input, .mc-input, .mc-select, .mc-area {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #475569;
  border-radius: 10px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 1rem;
}
.mc-area { min-height: 40vh; resize: vertical; }
.mc-label { display: block; margin: 10px 0 4px; font-size: .8rem; font-weight: 800; color: #facc15; }
.mc-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 10px 24px; }
.mc-folder, .mc-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 10px;
  margin: 0 0 6px;
  border: 0;
  border-radius: 12px;
  background: #1e293b;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.mc-folder.is-on, .mc-row:active { background: #0f766e; }
.mc-row.is-unread { background: #164e63; font-weight: 800; }
.mc-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: #0f766e; font-weight: 800; flex-shrink: 0;
}
.mc-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mc-row-top { display: flex; justify-content: space-between; gap: 8px; }
.mc-from, .mc-subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-subj { color: #cbd5e1; font-weight: 600; }
.mc-date { font-size: .75rem; color: #94a3b8; flex-shrink: 0; }
.mc-badge {
  min-width: 28px; min-height: 28px; padding: 0 8px;
  border-radius: 999px; background: #facc15; color: #0f172a;
  font-weight: 800; display: grid; place-items: center;
}
.mc-meta { margin: 0 0 6px; font-size: .9rem; color: #cbd5e1; }
.mc-html { background: #fff; color: #0f172a; padding: 12px; border-radius: 10px; overflow-x: auto; }
.mc-plain { white-space: pre-wrap; font-family: inherit; }
.mc-atts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.mc-folder-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.mc-folder-path { font-size: .75rem; color: #94a3b8; font-weight: 500; }
.mc-file-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 4px 0 8px;
  border-radius: 12px;
  background: #0f766e;
  color: #ecfeff;
  font-weight: 800;
  cursor: pointer;
  position: relative;
}
.mc-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.mc-att-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 8px 4px 12px;
  border-radius: 999px;
  background: #334155;
  font-weight: 650;
}
.mc-att-x {
  min-width: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 50%;
  background: #7f1d1d;
  color: #fecaca;
  font-weight: 800;
  cursor: pointer;
}
.mc-empty { padding: 2rem 1rem; text-align: center; }
.mc-muted { color: #94a3b8; }
.mc-err { color: #fecaca; background: #7f1d1d; padding: 10px; border-radius: 10px; }
.mc-compose { padding-bottom: 80px; }
.mc-frage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px;
  background: #0b1220;
  border-bottom: 2px solid #facc15;
}
.mc-frage-titel {
  margin: 0 0 4px;
  font-weight: 800;
  word-break: break-all;
}
.mc-frage .mc-btn { min-height: 48px; width: 100%; border-radius: 12px; }
.mc-frage-ok { background: #15803d; }

@media (min-width: 900px) {
  .mc-app { max-width: 720px; margin: 0 auto; border-left: 1px solid #334155; border-right: 1px solid #334155; }
}
