/* ============================================================
   Desiregio Mail — design system
   ============================================================ */
:root {
  --bg: #0a0f1d;
  --bg-soft: #0f1628;
  --panel: rgba(20, 27, 46, 0.82);
  --panel-solid: #141b2e;
  --panel-hover: rgba(109, 140, 255, 0.08);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.26);
  --text: #e7eefb;
  --muted: #8b97b0;
  --accent: #6d8cff;
  --accent-2: #7ee0d0;
  --danger: #ff6b81;
  --warn: #f2c14e;
  --ok: #4ade80;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(2, 6, 20, 0.55);
  --font: "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------------------------------------------------------- auth pages */
.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}
.auth-bg {
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(42% 42% at 18% 22%, rgba(109, 140, 255, 0.28), transparent 65%),
    radial-gradient(38% 38% at 82% 18%, rgba(126, 224, 208, 0.18), transparent 62%),
    radial-gradient(48% 48% at 58% 88%, rgba(168, 109, 255, 0.16), transparent 65%);
  filter: blur(8px);
  animation: drift 22s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}
.auth-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 32px 26px;
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.brand h1 { font-size: 20px; margin: 0; letter-spacing: 0.2px; }
.brand p { margin: 2px 0 0; font-size: 12.5px; }
.brand-mark {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 13px;
  font-size: 21px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #a86dff 60%, var(--accent-2));
  box-shadow: 0 10px 26px rgba(109, 140, 255, 0.4);
}
.brand-mark.small { width: 38px; height: 38px; font-size: 17px; border-radius: 11px; }

.field { display: block; margin-bottom: 15px; }
.field > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
input, textarea, select {
  width: 100%;
  background: rgba(8, 13, 26, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(109, 140, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(109, 140, 255, 0.16);
  background: rgba(8, 13, 26, 0.92);
}
textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.input-suffix { display: flex; align-items: center; gap: 8px; }
.input-suffix .suffix { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.12s, background 0.16s, border-color 0.16s, box-shadow 0.16s;
  white-space: nowrap;
}
.btn:hover { background: rgba(148, 163, 184, 0.14); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #8b6dff 70%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(109, 140, 255, 0.32);
}
.btn.primary:hover { box-shadow: 0 12px 30px rgba(109, 140, 255, 0.45); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.link-btn {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px;
  padding: 6px 4px; cursor: pointer; text-align: left;
}
.link-btn:hover { color: var(--text); }
.form-error { color: var(--danger); font-size: 13px; min-height: 18px; margin: 4px 0 8px; }
.auth-foot { text-align: center; font-size: 13px; margin: 18px 0 0; color: var(--muted); }
.dot-sep { margin: 0 8px; opacity: 0.5; }
.notice-box {
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  padding: 22px; text-align: center;
}
.notice-box p { margin: 4px 0; }

/* ------------------------------------------------------------ app shell */
.app-body { height: 100vh; overflow: hidden; }
.app-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(109, 140, 255, 0.10), transparent 60%),
    var(--bg);
}
.boot { position: fixed; inset: 0; display: grid; place-items: center; color: var(--muted); }

.sidebar {
  display: flex; flex-direction: column;
  padding: 18px 14px;
  border-right: 1px solid var(--border);
  background: rgba(10, 15, 29, 0.72);
  backdrop-filter: blur(18px);
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 18px; }
.side-brand-text { display: flex; flex-direction: column; min-width: 0; }
.side-brand-text strong { font-size: 14.5px; }
.side-brand-text span { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.compose-btn { margin-bottom: 16px; padding: 11px; font-size: 14px; }
.compose-btn .plus { font-size: 17px; line-height: 1; }

.folders { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.folder-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 13.5px; cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.14s, color 0.14s;
  user-select: none;
}
.folder-item:hover { background: var(--panel-hover); color: var(--text); }
.folder-item.active {
  background: rgba(109, 140, 255, 0.14);
  border-color: rgba(109, 140, 255, 0.28);
  color: var(--text);
}
.folder-item .ico { width: 18px; text-align: center; opacity: 0.9; }
.folder-item .count {
  margin-left: auto; font-size: 11px; padding: 2px 7px;
  border-radius: 99px; background: rgba(109, 140, 255, 0.22); color: #c7d4ff;
}
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding: 10px 4px 0; border-top: 1px solid var(--border); }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 15, 29, 0.55);
  backdrop-filter: blur(14px);
}
.topbar-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.topbar-title h2 { margin: 0; font-size: 17px; font-weight: 650; }
.topbar-title .muted { font-size: 12.5px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.search input { width: 230px; padding: 8px 12px; font-size: 13px; }
.icon-btn {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.06);
  color: var(--text); font-size: 15px; cursor: pointer;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.icon-btn:hover { background: rgba(148, 163, 184, 0.14); border-color: var(--border-strong); }
.icon-btn.danger:hover { color: var(--danger); border-color: rgba(255, 107, 129, 0.4); }

.content {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(330px, 420px) 1fr;
}
.list-pane {
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; min-height: 0;
  overflow-y: auto;
}
.loading, .empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13.5px; }
.empty-icon { font-size: 34px; margin-bottom: 10px; opacity: 0.75; }
.empty.big { display: grid; place-content: center; height: 100%; }

.mail-list { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.mail-item {
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
  position: relative;
}
.mail-item:hover { background: var(--panel-hover); }
.mail-item.active { background: rgba(109, 140, 255, 0.14); border-color: rgba(109, 140, 255, 0.3); }
.mail-item.unread::before {
  content: ""; position: absolute; left: 5px; top: 50%; translate: 0 -50%;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.mail-row1 { display: flex; align-items: baseline; gap: 8px; }
.mail-sender { font-size: 13.5px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-item.unread .mail-sender { color: #fff; }
.mail-date { font-size: 11px; color: var(--muted); white-space: nowrap; }
.mail-subject { font-size: 13px; margin-top: 4px; color: #c3cde3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-item.unread .mail-subject { color: var(--text); font-weight: 600; }
.mail-flags { display: inline-flex; gap: 5px; margin-left: 6px; font-size: 11px; color: var(--warn); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); margin-top: auto; }
.pager .btn { padding: 7px 12px; font-size: 12.5px; }

.read-pane { min-width: 0; overflow-y: auto; }
.reader { padding: 26px 30px 40px; max-width: 980px; }
.reader-head { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.reader-head h3 { margin: 0 0 14px; font-size: 20px; line-height: 1.35; grid-column: 1 / -1; }
.reader-meta { display: flex; gap: 12px; align-items: center; min-width: 0; }
.avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--accent), #a86dff);
}
.reader-from { font-size: 13.5px; }
.reader-from .muted { font-size: 12px; margin-left: 6px; }
.reader-actions { display: flex; gap: 8px; }
.reader-body {
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 14px; line-height: 1.72; color: #dbe4f4;
  overflow-wrap: anywhere;
}
.reader-body img { max-width: 100%; height: auto; border-radius: 8px; }
.reader-body a { color: var(--accent-2); }
.reader-body table { max-width: 100%; border-collapse: collapse; }
.reader-body blockquote {
  margin: 12px 0; padding: 8px 14px; border-left: 3px solid var(--border-strong);
  color: var(--muted);
}
.attachments { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 9px; }
.attach-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(148, 163, 184, 0.06);
  font-size: 12.5px; color: var(--text); cursor: pointer;
}
.attach-chip:hover { border-color: var(--border-strong); }

/* --------------------------------------------------------------- modal */
.modal {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(4, 8, 18, 0.66);
  backdrop-filter: blur(6px);
  animation: fade-in 0.14s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  width: min(680px, 100%);
  max-height: 88vh;
  display: flex; flex-direction: column;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  animation: pop-in 0.16s ease;
}
@keyframes pop-in { from { transform: translateY(8px) scale(0.99); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.modal-head h3 { margin: 0; font-size: 16px; }
.compose-form { padding: 18px 20px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.file-field { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
.file-field .muted { font-size: 12px; }
.admin-card { width: min(860px, 100%); }
.tabs { display: flex; gap: 6px; padding: 12px 20px 0; border-bottom: 1px solid var(--border); }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 9px 12px; cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-panel { padding: 18px 20px 22px; overflow-y: auto; }
.admin-stats { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.stat {
  flex: 1; min-width: 110px;
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; background: rgba(148, 163, 184, 0.05);
}
.stat b { display: block; font-size: 20px; }
.stat span { font-size: 12px; color: var(--muted); }
.row-gap { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 140px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 10px 13px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: 0; }
.table th { color: var(--muted); font-weight: 500; font-size: 12px; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 99px; }
.badge.admin { background: rgba(109, 140, 255, 0.2); color: #b9c8ff; }
.badge.on { background: rgba(74, 222, 128, 0.15); color: #86efac; }
.badge.off { background: rgba(255, 107, 129, 0.15); color: #ffa8b6; }
.td-actions { display: flex; gap: 6px; }
.td-actions .btn { padding: 5px 9px; font-size: 12px; }
.hint { font-size: 12px; margin-top: 12px; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 0; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.switch-row p { margin: 3px 0 0; font-size: 12.5px; }
.switch { width: 46px; height: 26px; appearance: none; background: rgba(148, 163, 184, 0.2); border-radius: 99px; position: relative; cursor: pointer; transition: background 0.18s; flex: none; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.18s; }
.switch:checked { background: linear-gradient(135deg, var(--accent), #8b6dff); }
.switch:checked::after { transform: translateX(20px); }
.server-info {
  margin: 14px 0 18px; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(148, 163, 184, 0.05);
  font-size: 12.5px; color: var(--muted); line-height: 1.9;
}
.server-info b { color: var(--text); font-weight: 600; }
.audit-list { display: flex; flex-direction: column; gap: 6px; }
.audit-row {
  display: grid; grid-template-columns: 150px 1fr; gap: 12px;
  padding: 9px 12px; border-radius: 9px; background: rgba(148, 163, 184, 0.05);
  font-size: 12.5px;
}
.audit-row .t { color: var(--muted); font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 11px 16px; border-radius: 11px; font-size: 13px;
  background: var(--panel-solid); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: toast-in 0.18s ease;
}
.toast.ok { border-color: rgba(74, 222, 128, 0.4); }
.toast.err { border-color: rgba(255, 107, 129, 0.45); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* mobile-only controls, hidden on desktop */
.nav-toggle, .back-btn { display: none; }
.nav-overlay {
  position: fixed; inset: 0; z-index: 25;
  background: rgba(4, 8, 18, 0.6);
  backdrop-filter: blur(2px);
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(300px, 84vw); z-index: 30;
    transform: translateX(-100%); transition: transform 0.22s cubic-bezier(.4,0,.2,1);
    padding: 18px 16px max(18px, env(safe-area-inset-bottom));
  }
  .app-shell.nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.6); }
  .nav-toggle { display: grid; }
  .content { grid-template-columns: 1fr; }
  .list-pane { border-right: 0; }
  .read-pane { display: none; }
  .app-shell.reading .list-pane { display: none; }
  .app-shell.reading .read-pane { display: block; }
  .app-shell.reading .back-btn { display: grid; }
  .app-shell.reading .nav-toggle { display: none; }
  .reader { padding: 18px 16px 40px; }
  .search input { width: 150px; }
}

@media (max-width: 560px) {
  /* --- top bar --- */
  .topbar {
    padding: 10px 12px;
    gap: 8px;
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .topbar-title { gap: 6px; flex: 1; min-width: 0; }
  .topbar-title h2 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-title .muted { display: none; }
  .search { display: none; }
  .topbar-actions { gap: 6px; }
  .icon-btn { width: 40px; height: 40px; font-size: 17px; }

  /* --- list: bigger touch targets --- */
  .mail-list { padding: 6px; gap: 2px; }
  .mail-item { padding: 14px 12px; border-radius: 12px; }
  .mail-item.unread::before { left: 3px; }
  .mail-sender { font-size: 14.5px; }
  .mail-subject { font-size: 13.5px; margin-top: 5px; }
  .mail-date { font-size: 11px; }
  .pager { padding: 10px 12px; }
  .pager .btn { padding: 10px 16px; font-size: 13px; }

  /* --- reader --- */
  .reader { padding: 14px 14px 48px; }
  .reader-head h3 { font-size: 18px; margin-bottom: 10px; }
  .reader-actions { gap: 6px; }
  .reader-actions .icon-btn { width: 40px; height: 40px; }
  .reader-body { margin-top: 18px; padding-top: 16px; font-size: 15px; line-height: 1.75; }
  .reader-body img { border-radius: 6px; }
  .reader-body table { display: block; overflow-x: auto; }
  .avatar { width: 36px; height: 36px; font-size: 14px; }

  /* --- compose / admin: near-fullscreen sheets --- */
  .modal { padding: 0; align-items: stretch; }
  .modal-card {
    width: 100%; max-height: 100%;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
    max-height: calc(100dvh - 24px);
    animation: sheet-up 0.2s cubic-bezier(.4,0,.2,1);
  }
  @keyframes sheet-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
  .modal-head { padding: 14px 16px; position: sticky; top: 0; background: var(--panel-solid); z-index: 2; border-radius: 16px 16px 0 0; }
  .compose-form { padding: 14px 16px 20px; }
  .compose-form textarea { min-height: 160px; font-size: 16px; } /* 16px stops iOS zoom-on-focus */
  .field > span { font-size: 12px; }
  input, textarea, select { font-size: 16px; padding: 12px 13px; }
  .modal-foot { position: sticky; bottom: 0; background: var(--panel-solid); padding-top: 10px; }
  .modal-foot .btn { flex: 1; padding: 12px; font-size: 15px; }
  .file-field { flex-wrap: wrap; }

  /* --- admin --- */
  .tabs { padding: 8px 12px 0; overflow-x: auto; }
  .tab { padding: 10px 12px; font-size: 13.5px; white-space: nowrap; }
  .tab-panel { padding: 14px 14px 24px; }
  .admin-stats { gap: 8px; }
  .stat { min-width: calc(50% - 4px); flex: 1 1 calc(50% - 4px); padding: 10px 12px; }
  .stat b { font-size: 18px; }
  .row-gap { flex-direction: column; }
  .row-gap .btn { width: 100%; padding: 12px; }

  /* users table: stack role/status under the address on phones */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr {
    padding: 12px; margin-bottom: 8px;
    border: 1px solid var(--border); border-radius: 12px;
    background: rgba(148, 163, 184, 0.04);
  }
  .table tr:last-child { margin-bottom: 0; }
  .table td {
    border: 0; padding: 0 0 6px;
    font-size: 13px; line-height: 1.5;
  }
  .table td:first-child { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
  .table td:nth-child(2)::before { content: "角色："; color: var(--muted); font-size: 12px; }
  .table td:nth-child(3)::before { content: "状态："; color: var(--muted); font-size: 12px; }
  .table td:nth-child(2), .table td:nth-child(3) { display: inline-block; width: auto; margin-right: 12px; }
  .table td:last-child { padding-top: 8px; padding-bottom: 0; border-top: 1px solid var(--border); }
  .td-actions { display: flex; flex-wrap: wrap; gap: 6px; }
  .td-actions .btn { flex: 1; min-width: 76px; padding: 9px 8px; font-size: 12.5px; }

  .switch-row { align-items: flex-start; }
  .audit-row { grid-template-columns: 1fr; gap: 3px; }

  /* --- auth pages --- */
  .auth-body { padding: 16px; align-items: center; }
  .auth-card { padding: 26px 20px 22px; border-radius: 18px; }
  .brand h1 { font-size: 18px; }

  /* --- toasts --- */
  .toasts { right: 12px; left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .toast { font-size: 13px; padding: 12px 14px; }
}

/* very small / landscape phones */
@media (max-width: 380px) {
  .topbar-title h2 { font-size: 15px; }
  .mail-item { padding: 12px 10px; }
  .compose-form { padding: 12px 12px 16px; }
}
