* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: "Google Sans", "Roboto", Arial, sans-serif;
  font-size: 14px;
  color: #202124;
  background: #f6f8fc;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

#mail { display: flex; flex-direction: column; height: 100vh; }

/* Leaked archive banner */
.leak-banner {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(90deg, #b00020, #d93025 60%, #b00020);
  color: #fff;
  padding: 6px 16px;
  font-family: "Roboto Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.leak-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 16px,
    rgba(0,0,0,0.08) 16px 32px
  );
  pointer-events: none;
}
.leak-banner strong { font-weight: 700; letter-spacing: 2px; }
.leak-banner .leak-sep { opacity: 0.6; }
.leak-banner .leak-icon { font-size: 13px; }
.leak-banner .leak-right {
  margin-left: auto;
  opacity: 0.85;
  text-transform: none;
  letter-spacing: 0.5px;
  font-size: 10px;
  position: relative;
}
@media (max-width: 700px) {
  .leak-banner { font-size: 10px; padding: 5px 10px; gap: 6px; }
  .leak-banner .leak-right { display: none; }
}

/* Renes Files label pinned look */
.folder.label-renes {
  background: linear-gradient(90deg, rgba(217,48,37,0.12), transparent);
  color: #b00020;
  font-weight: 700;
}
.folder.label-renes:hover { background: linear-gradient(90deg, rgba(217,48,37,0.22), transparent); }
.folder.label-renes .count { font-size: 13px; }

/* Header */
.gmail-header {
  display: flex; align-items: center; gap: 8px;
  height: 64px; padding: 8px 16px;
  background: #f6f8fc;
  border-bottom: 1px solid #e8eaed;
  flex-shrink: 0;
}
.icon-btn {
  background: transparent; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.icon-btn:hover { background: #e8eaed; }
.hamburger { margin-right: 4px; }
.brand-link { display: flex; align-items: center; gap: 2px; margin: 0 10px 0 4px; }
.brand-logo { flex-shrink: 0; }
.brand-word {
  font-family: "Google Sans", "Product Sans", "Roboto", sans-serif;
  font-size: 22px; font-weight: 400;
  color: #5f6368;
  letter-spacing: -0.5px;
}
.search-bar {
  flex: 1;
  max-width: 720px;
  height: 48px;
  background: #eaf1fb;
  border-radius: 8px;
  display: flex; align-items: center;
  padding: 0 8px;
  margin: 0 16px;
  transition: background .2s, box-shadow .2s;
}
.search-bar:focus-within {
  background: #fff;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
}
.search-bar input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 16px; padding: 0 8px; color: #202124;
}
.search-clear[hidden] { display: none; }
.search-clear { width: 36px; height: 36px; }
.header-right { display: flex; align-items: center; gap: 4px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #1a73e8; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500;
  margin-left: 4px; cursor: pointer;
}

/* Body layout */
.gmail-body {
  flex: 1;
  display: grid;
  grid-template-columns: 256px 1fr;
  overflow: hidden;
  min-height: 0;
}

/* Sidebar */
.sidebar {
  background: #f6f8fc;
  padding: 8px 8px 0 8px;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar > .folders { flex: 1; }
.sidebar-nav {
  display: flex; justify-content: space-around;
  padding: 8px 0;
  border-top: 1px solid #e8eaed;
  margin-top: 8px;
  flex-shrink: 0;
}
.nav-pill {
  background: transparent; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 6px 10px; border-radius: 12px;
  font-size: 11px; font-family: inherit; color: #5f6368;
  transition: background .15s;
}
.nav-pill:hover { background: #e8eaed; }
.nav-pill.active { background: #d3e3fd; color: #001d35; font-weight: 500; }
.more-folder { opacity: 0.8; }
.compose-btn {
  display: flex; align-items: center; gap: 12px;
  background: #c2e7ff;
  color: #001d35;
  border: none;
  padding: 14px 22px 14px 14px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  margin: 8px 0 16px 8px;
  box-shadow: 0 1px 2px 0 rgba(60,64,67,0.15), 0 1px 3px 1px rgba(60,64,67,0.08);
  transition: box-shadow .2s, background .15s;
}
.compose-btn:hover { background: #bfe0fa; box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15); }
.compose-label { font-family: "Google Sans", sans-serif; }

.folders { display: flex; flex-direction: column; gap: 0; }
.folder {
  display: flex; align-items: center; gap: 18px;
  padding: 0 12px 0 24px;
  height: 32px;
  border-radius: 0 16px 16px 0;
  color: #202124;
  font-weight: 500;
  font-size: 14px;
  margin-right: 8px;
  transition: background .15s;
  cursor: pointer;
}
.folder:hover { background: #e8eaed; }
.folder.active {
  background: #d3e3fd;
  font-weight: 700;
  color: #001d35;
}
.folder.active svg { fill: #001d35; }
.folder svg { fill: #5f6368; }
.folder .count { margin-left: auto; font-size: 12px; font-weight: 700; color: #202124; }
.folder.label { padding-left: 24px; }
.lab-dot {
  width: 10px; height: 10px; border-radius: 2px;
  display: inline-block;
  margin-right: 8px;
  flex-shrink: 0;
}
.labels-head {
  font-size: 11px; font-weight: 500; color: #5f6368;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 16px 12px 8px 24px;
}

/* Main content */
.mail-main {
  background: #fff;
  margin: 0 8px 8px 0;
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1px #e8eaed;
  min-height: 0;
}
.list-view, .read-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.list-view[hidden], .read-view[hidden] { display: none; }

/* List toolbar */
.list-toolbar {
  display: flex; align-items: center; gap: 4px;
  padding: 0 12px;
  height: 48px;
  flex-shrink: 0;
}
.master-check { margin: 0 12px 0 0; width: 18px; height: 18px; cursor: pointer; accent-color: #1a73e8; }
.pager {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  color: #5f6368; font-size: 13px;
}
.pager .icon-btn:disabled { opacity: 0.35; cursor: default; }

/* Shuffle-button actief-state in toolbar */
#shuffle-btn.active {
  background: #d3e3fd;
}
#shuffle-btn.active svg { fill: #1967d2; }

/* Balk boven de lijst wanneer shuffle aan staat */
.shuffle-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #e8f0fe;
  border-bottom: 1px solid #d3e3fd;
  font-size: 13px;
  color: #1967d2;
  flex-shrink: 0;
}
.shuffle-bar[hidden] { display: none; }
.shuffle-label { font-weight: 500; flex: 1; }
.shuffle-action, .shuffle-close {
  background: transparent;
  border: 1px solid transparent;
  color: #1967d2;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
}
.shuffle-action:hover, .shuffle-close:hover { background: #d3e3fd; }
.shuffle-close { color: #5f6368; }

.categories {
  display: flex;
  border-bottom: 1px solid #e8eaed;
  padding: 0 8px;
  flex-shrink: 0;
}
.category {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  height: 56px;
  border: none; background: transparent;
  font-size: 14px; font-weight: 500;
  color: #5f6368;
  cursor: pointer;
  position: relative;
  flex: 1; max-width: 300px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: background .15s, color .15s, border-color .15s;
}
.category:hover { background: #f6f8fc; color: #202124; }
.category.active { color: #1a73e8; border-bottom-color: #1a73e8; }
.cat-icon { font-size: 16px; }
.cat-badge {
  background: #1a73e8;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
}

/* Mail list */
.mail-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.mail-row {
  display: grid;
  grid-template-columns: 30px 30px 36px 200px 1fr 100px;
  gap: 8px;
  align-items: center;
  padding: 0 16px;
  min-height: 40px;
  cursor: pointer;
  border-bottom: 1px solid #f1f3f4;
  transition: box-shadow .15s, background .15s;
}
.mail-row.unread { background: #fff; }
.mail-row.read { background: #f2f6fc; }
.mail-row:hover { box-shadow: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0, 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15); z-index: 1; }

.mail-row .check { width: 18px; height: 18px; accent-color: #1a73e8; }
.mail-row .star {
  background: transparent; border: none; cursor: pointer;
  padding: 4px; color: #bdc1c6; display: inline-flex;
}
.mail-row .star.on { color: #f4b400; }
.mail-row .avatar-mini {
  width: 28px; height: 28px; border-radius: 50%;
  background: #1a73e8; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500;
}
.mail-row .sender {
  font-size: 14px;
  color: #202124;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mail-row.unread .sender { font-weight: 700; }
.mail-row .subject-wrap {
  display: flex; align-items: center; gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.mail-row .label-pill {
  background: #e6effc;
  color: #1967d2;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
  flex-shrink: 0;
}
.mail-row .subject {
  font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.mail-row.unread .subject { font-weight: 700; color: #202124; }
.mail-row .subject .snippet { color: #5f6368; font-weight: 400; }
.mail-row.unread .subject .snippet { color: #5f6368; font-weight: 400; }
.mail-row .date {
  font-size: 12px; color: #5f6368;
  text-align: right;
  white-space: nowrap;
}
.mail-row.unread .date { color: #202124; font-weight: 700; }

.list-footnote {
  padding: 16px 24px;
  font-size: 12px; color: #80868b;
  text-align: center;
  border-top: 1px solid #f1f3f4;
}
.list-footnote a { color: #1a73e8; margin-left: 8px; }

/* Read view */
.read-view { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.read-toolbar {
  display: flex; align-items: center; gap: 4px;
  padding: 0 12px;
  height: 48px;
  border-bottom: 1px solid #e8eaed;
  flex-shrink: 0;
}
.read-pager { margin-left: auto; }
.read-pager #read-pager-text { font-size: 12px; color: #5f6368; margin-right: 8px; }
.read-article {
  flex: 1; overflow-y: auto;
  padding: 24px 72px 72px;
  max-width: 100%;
}
.read-article h1 {
  font-size: 22px; font-weight: 400;
  margin: 0 0 24px;
}
.read-article .labels-inline {
  display: inline-block;
  background: #e6effc; color: #1967d2;
  font-size: 11px; padding: 2px 8px;
  border-radius: 4px; margin-left: 8px;
  font-weight: 500; vertical-align: middle;
}
.read-meta {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 8px 0 16px;
  border-bottom: 1px solid #f1f3f4;
  margin-bottom: 16px;
}
.read-meta .avatar-mini.big { width: 40px; height: 40px; font-size: 15px; flex-shrink: 0; }
.read-meta .from-block { flex: 1; min-width: 0; }
.read-meta .from-line { font-size: 14px; }
.read-meta .from-line .name { font-weight: 500; color: #202124; }
.read-meta .from-line .email { color: #5f6368; font-size: 12px; }
.read-meta .to-line {
  font-size: 12px; color: #5f6368; margin-top: 2px;
  display: flex; align-items: center; gap: 2px;
}
.chev-btn {
  background: transparent; border: none; cursor: pointer;
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}
.chev-btn:hover { background: #e8eaed; }
.read-meta .date-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.read-meta .date-line {
  font-size: 12px; color: #5f6368; white-space: nowrap;
}
.meta-icons { display: flex; gap: 2px; }
.meta-icon { width: 28px; height: 28px; }
.read-body {
  font-size: 14px; line-height: 1.6; color: #202124;
  white-space: pre-wrap;
}

/* Twee-kolommen layout: foto links, tekst rechts */
.read-main.has-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 24px;
  align-items: start;
  margin-top: 8px;
}
.read-main.text-only { margin-top: 8px; }

.read-media-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.read-media-col img, .read-media-col video {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
  background: #f1f3f4;
  display: block;
}
.read-media-col img.read-media-img {
  cursor: zoom-in;
  transition: transform .15s;
}
.read-media-col img.read-media-img:hover {
  transform: scale(1.005);
}
.read-text-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* Mobile: stack — foto eerst, tekst eronder */
@media (max-width: 900px) {
  .read-main.has-media {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .read-media-col img, .read-media-col video {
    max-height: 60vh;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  pointer-events: none;
}
.lightbox-close {
  position: absolute;
  top: 16px; right: 20px;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }
.read-reactions {
  display: flex; gap: 8px; align-items: center;
  margin-top: 24px; padding: 12px 16px;
  background: #f6f8fc; border-radius: 8px;
  font-size: 13px; color: #5f6368;
}
.read-reactions .emo { font-size: 16px; }

/* Mobile-only: FAB en bottom nav verborgen op desktop/tablet */
.fab-compose { display: none; }
.mobile-bottom-nav { display: none; }

/* Toast (gmail-stijl, onderin links) */
.toast {
  position: fixed;
  bottom: 24px; left: 24px;
  background: #323232;
  color: #fff;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-family: "Roboto", sans-serif;
  box-shadow: 0 3px 8px rgba(0,0,0,0.28);
  z-index: 200;
  opacity: 0; transform: translateY(10px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Admin panel (verschijnt alleen met ?marcel=1) */
.admin-panel {
  position: fixed;
  bottom: 16px; right: 16px;
  z-index: 300;
  background: #202124;
  color: #e8eaed;
  border: 1px solid #3c4043;
  border-radius: 10px;
  padding: 12px 14px;
  width: 280px;
  font-family: "Roboto Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.admin-panel .admin-title {
  font-weight: 700; letter-spacing: 1.5px;
  color: #d93025; font-size: 10px;
  margin-bottom: 8px;
}
.admin-panel .admin-info {
  font-family: "Roboto", sans-serif;
  font-size: 12px; line-height: 1.5;
  color: #bdc1c6; margin-bottom: 10px;
}
.admin-panel .admin-info code {
  background: #3c4043; color: #fff;
  padding: 1px 5px; border-radius: 3px;
  font-size: 11px;
}
.admin-panel .admin-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-panel .admin-btns button {
  background: #8430ce; color: #fff;
  border: none; border-radius: 4px;
  padding: 6px 10px; font-size: 11px;
  font-family: inherit; cursor: pointer;
  flex: 1;
}
.admin-panel .admin-btns button:hover { background: #9b4dd8; }
.admin-panel .admin-btns button:nth-child(2) { background: #5f6368; }
.admin-panel .admin-btns button:nth-child(3) { background: #3c4043; }

/* Responsive */

/* Tablet: compacte sidebar met icoontjes */
@media (max-width: 900px) and (min-width: 721px) {
  .gmail-body { grid-template-columns: 72px 1fr; }
  .sidebar { padding: 8px 4px 0; }
  .compose-btn { padding: 14px; margin: 8px auto 16px; justify-content: center; }
  .compose-btn .compose-label { display: none; }
  .folder > span:not(.count):not(.lab-dot) { display: none; }
  .folder { justify-content: center; padding: 0 8px; }
  .labels-head { text-align: center; padding: 16px 0 8px; font-size: 0; height: 8px; }
  .nav-pill span { display: none; }
  .read-article { padding: 16px 20px 60px; }
  .mail-row { grid-template-columns: 28px 28px 160px 1fr 80px; }
  .mail-row .avatar-mini { display: none; }
  .brand-word { display: none; }
}

/* Mobile (Gmail-app-stijl): drawer sidebar, FAB compose, full-width list */
@media (max-width: 720px) {
  /* Leak banner compact */
  .leak-banner { padding: 5px 10px; font-size: 9px; gap: 6px; letter-spacing: 1px; }
  .leak-banner .leak-right, .leak-banner .leak-sep { display: none; }

  /* Header compact */
  .gmail-header { height: 56px; padding: 4px 4px; gap: 2px; }
  .brand-link { margin: 0 2px 0 0; }
  .brand-word { display: none; }
  .brand-logo { width: 34px; height: 28px; }
  .search-bar { height: 44px; margin: 0 4px; max-width: none; padding: 0 4px; }
  .search-bar input { font-size: 15px; padding: 0 4px; }
  .header-right .icon-btn[title="Ondersteuning"],
  .header-right .icon-btn[title="Instellingen"],
  .header-right .icon-btn.apps { display: none; }
  .avatar { width: 30px; height: 30px; font-size: 12px; }

  /* Layout: sidebar wordt drawer */
  .gmail-body {
    grid-template-columns: 1fr;
    position: relative;
  }

  .sidebar {
    position: fixed;
    top: 0; left: -300px;
    width: 280px; height: 100vh;
    z-index: 80;
    background: #fff;
    box-shadow: 2px 0 16px rgba(0,0,0,0.2);
    transition: left .22s ease;
    padding: 8px 0 80px 0;
    overflow-y: auto;
  }
  .sidebar.open { left: 0; }

  .sidebar-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 75;
  }
  .sidebar-backdrop.show { display: block; }

  .sidebar .compose-btn { display: none; }  /* we gebruiken FAB */

  .folder { padding: 0 12px 0 24px; justify-content: flex-start; }
  .folder > span:not(.count):not(.lab-dot) { display: inline; }

  /* Bottom nav fixed onder de drawer */
  .sidebar .sidebar-nav {
    position: fixed;
    bottom: 0; left: 0;
    background: #fff;
    border-top: 1px solid #e8eaed;
    padding: 4px 0;
    z-index: 30;
    width: 280px;
    margin-top: 0;
  }

  /* Main full width */
  .mail-main { margin: 0; border-radius: 0; box-shadow: none; }

  /* Categories verbergen */
  .categories { display: none; }

  /* List toolbar compact */
  .list-toolbar { padding: 0 6px; height: 44px; }
  .list-toolbar .master-check { margin-right: 6px; }

  /* Mail rij: Gmail-mobile layout */
  .mail-row {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "avatar header"
      "avatar body";
    gap: 2px 12px;
    padding: 10px 14px;
    min-height: 72px;
    align-items: start;
    border-bottom: 1px solid #e8eaed;
  }
  .mail-row .check, .mail-row .star { display: none; }
  .mail-row .avatar-mini {
    grid-area: avatar;
    width: 40px; height: 40px;
    font-size: 15px;
    align-self: start;
    margin-top: 2px;
    display: flex;
  }
  .mail-row .sender {
    grid-area: header;
    font-size: 14px;
    max-width: calc(100vw - 140px);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .mail-row .date {
    grid-area: header;
    justify-self: end;
    font-size: 12px;
    flex-shrink: 0;
    margin-left: 8px;
  }
  .mail-row .subject-wrap {
    grid-area: body;
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
  }
  .mail-row .subject {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    min-width: 0;
    flex: 1;
  }
  .mail-row .label-pill {
    margin-right: 6px;
    font-size: 10px;
    padding: 1px 5px;
    flex-shrink: 0;
  }

  /* FAB Compose zichtbaar op mobile */
  .fab-compose {
    display: flex;
    position: fixed;
    bottom: 76px; right: 16px;
    width: 56px; height: 56px;
    border: none;
    background: #c2e7ff;
    color: #001d35;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 8px rgba(60,64,67,0.2), 0 6px 12px rgba(60,64,67,0.15);
    cursor: pointer;
    z-index: 40;
  }

  /* Bottom app bar zichtbaar op mobile */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #e8eaed;
    display: flex;
    justify-content: space-around;
    padding: 4px 0;
    z-index: 25;
    height: 64px;
  }
  .mobile-bottom-nav .nav-pill {
    flex: 1;
    padding: 6px 0;
    gap: 2px;
    border-radius: 14px;
    margin: 2px 4px;
  }
  .mobile-bottom-nav .nav-pill span { display: block; font-size: 10px; }

  /* Read view */
  .read-toolbar { padding: 0 4px; height: 48px; }
  .read-article { padding: 16px 16px 80px; }
  .read-article h1 { font-size: 20px; line-height: 1.3; }
  .read-meta {
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 12px;
  }
  .read-meta .avatar-mini.big { width: 36px; height: 36px; font-size: 13px; }
  .read-meta .from-block { flex: 1 1 60%; min-width: 0; }
  .read-meta .date-actions {
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    flex-basis: 100%;
    order: 3;
  }

  /* Toast boven FAB + bottom nav */
  .toast { bottom: 150px; left: 16px; right: 16px; max-width: none; }

  /* Admin-panel compacter */
  .admin-panel { bottom: 150px; right: 8px; left: 8px; width: auto; }
}

/* Heel klein scherm */
@media (max-width: 380px) {
  .mail-row { padding: 10px 10px; }
  .mail-row .avatar-mini { width: 36px; height: 36px; font-size: 13px; }
  .search-bar { height: 40px; }
}
