/* Courrier en ligne — même langage que le panel.
 *
 * La feuille précédente portait l'ANCIENNE identité nstudio.ca : coins carrés,
 * teal #278bb3, Open Sans. Le panel a quitté ce langage lors de la refonte V4,
 * et le webmail était resté derrière. Les valeurs ci-dessous sont celles de
 * ui/app/globals.css, reprises à l'identique — un client qui passe du portail
 * au courrier ne doit pas avoir l'impression de changer de produit.
 *
 * Trois zones, comme la maquette : une barre latérale encre, une liste de
 * messages, un panneau de lecture. Les deux dernières sont des surfaces en
 * verre posées sur le fond quadrillé — c'est la grille qu'on aperçoit au
 * travers, et sans elle le flou n'a rien à flouter.
 *
 * Tout est rendu par le serveur. Ouvrir un message est un lien ordinaire :
 * l'adresse se partage, le bouton « précédent » marche, et rien ne dépend d'un
 * script pour s'afficher.
 */

/* ── Jetons, thème clair ─────────────────────────────────────────── */
:root {
  --bg:            #f4f1ea;
  --bg-1:          #faf9f6;
  --bg-2:          #edeae2;
  --surface:       #ffffff;
  --grid:          rgba(0,0,0,0.025);

  --ink:    #1c1c1e;
  --muted:  #636366;
  --subtle: #8e8e93;
  --line:   #e4ded1;

  --accent:      #0ea5e9;
  --accent-bg:   rgba(14,165,233,0.10);
  /* Déclinaisons accessibles d'Apple : sur du crème, les teintes vives tombent
     à 2,2:1 et deviennent illisibles en petit. */
  --ok:      #248a3d;
  --warn:    #b25000;
  --bad:     #d70015;
  --star:    #d19c00;

  --sidebar-bg:     #111111;
  --sidebar-fg:     #ffffff;
  --sidebar-muted:  #a1a1a6;
  --sidebar-hover:  rgba(255,255,255,0.06);
  --sidebar-active: rgba(56,189,248,0.12);

  --glass-bg:        rgba(255,255,255,0.65);
  --glass-bg-hover:  rgba(255,255,255,0.85);
  --glass-bg-active: rgba(255,255,255,0.95);
  --glass-border:    rgba(255,255,255,0.70);
  --glass-blur:      blur(20px) saturate(180%);
  --glass-shadow:       0 8px 32px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --glass-shadow-hover: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);

  --radius:    16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  color-scheme: light;
}

/* ── Thème sombre ────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #0a0a0b;
    --bg-1:    #131315;
    --bg-2:    #1e1e20;
    --surface: #161618;
    --grid:    rgba(255,255,255,0.02);

    --ink:    #f5f5f7;
    --muted:  #a1a1a6;
    --subtle: #636366;
    --line:   rgba(255,255,255,0.10);

    --accent:    #38bdf8;
    --accent-bg: rgba(56,189,248,0.15);
    --ok:   #30d158;
    --warn: #ff9f0a;
    --bad:  #ff453a;
    --star: #ffd60a;

    --sidebar-bg: #000000;

    --glass-bg:        rgba(30,30,32,0.60);
    --glass-bg-hover:  rgba(40,40,42,0.75);
    --glass-bg-active: rgba(50,50,52,0.85);
    --glass-border:    rgba(255,255,255,0.10);
    --glass-shadow:       0 8px 32px rgba(0,0,0,0.40), 0 2px 8px rgba(0,0,0,0.20);
    --glass-shadow-hover: 0 12px 40px rgba(0,0,0,0.50), 0 4px 12px rgba(0,0,0,0.30);

    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  overflow: hidden;

  /* La grille de 24px, celle du panel. Elle n'est pas décorative : c'est elle
     qu'on aperçoit à travers les surfaces en verre. */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
}

a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.mono { font-family: var(--mono); }

/* ── Barre latérale ──────────────────────────────────────────────── */
.wm-side {
  width: 240px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.05);
  z-index: 20;
}

.wm-brand {
  height: 64px; flex-shrink: 0;
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--sidebar-fg); text-decoration: none;
  font-weight: 600; font-size: 15px;
}
.wm-brand-mark {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0; overflow: hidden;
}
.wm-brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.wm-compose-wrap { padding: 16px; }
.wm-compose {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 100px;
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none;
  box-shadow: 0 4px 15px rgba(14,165,233,0.30);
  transition: transform .2s, box-shadow .2s;
}
.wm-compose:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(14,165,233,0.40); }
.wm-compose:active { transform: scale(0.97); }

.wm-nav { flex: 1; overflow-y: auto; padding: 0 12px 16px; }
.wm-nav::-webkit-scrollbar { width: 4px; }
.wm-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.wm-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin-bottom: 2px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-muted); text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: background .2s, color .2s;
}
.wm-nav a:hover { background: var(--sidebar-hover); color: #ddd; }
.wm-nav a[aria-current] { background: var(--sidebar-active); color: var(--sidebar-fg); }
.wm-nav svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .7; stroke-width: 1.8; }
.wm-nav a[aria-current] svg { opacity: 1; color: var(--accent); }
.wm-nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wm-badge {
  background: rgba(255,255,255,0.15); color: #fff;
  font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 10px;
  flex-shrink: 0;
}
.wm-count { color: var(--sidebar-muted); font-size: 11px; font-family: var(--mono); flex-shrink: 0; }

.wm-side-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,0.05); }
.wm-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); }
.wm-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #e0d4c3, #c3d8e0);
  color: #1c1c1e; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.wm-user-info { flex: 1; min-width: 0; }
.wm-user-addr {
  color: #fff; font-size: 12px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wm-user-link {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--sidebar-muted); font: inherit; font-size: 11px; text-decoration: underline;
}
.wm-user-link:hover { color: #fff; }

/* ── Zone principale ─────────────────────────────────────────────── */
.wm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }

.wm-top {
  height: 64px; flex-shrink: 0;
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
}
.wm-search {
  display: flex; align-items: center; gap: 10px;
  flex: 1; max-width: 600px; padding: 8px 16px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  box-shadow: var(--glass-shadow);
  transition: background .3s, box-shadow .3s;
}
.wm-search:focus-within {
  background: var(--glass-bg-hover);
  box-shadow: 0 0 0 2px var(--accent-bg), var(--glass-shadow-hover);
}
.wm-search svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.wm-search input {
  flex: 1; min-width: 0; border: none; background: transparent;
  font: inherit; font-size: 14px; color: var(--ink);
}
.wm-search input:focus { outline: none; }
.wm-search input::placeholder { color: var(--muted); }

.wm-top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.wm-icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--muted);
  cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s;
}
.wm-icon-btn:hover { background: rgba(128,128,128,0.10); color: var(--ink); }
.wm-icon-btn svg { width: 18px; height: 18px; stroke-width: 1.8; }

/* ── Contenu : liste + lecture ───────────────────────────────────── */
.wm-split { flex: 1; display: flex; gap: 20px; padding: 0 24px 24px; overflow: hidden; }

.wm-pane {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}
.wm-list { width: 380px; flex-shrink: 0; }
.wm-read { flex: 1; min-width: 0; position: relative; }

/* Le reflet du haut, comme les cartes du panel. */
.wm-read::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 120px;
  background: linear-gradient(180deg, rgba(255,255,255,0.30), transparent);
  pointer-events: none; border-radius: var(--radius) var(--radius) 0 0;
}
@media (prefers-color-scheme: dark) {
  .wm-read::before { background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent); }
}

.wm-pane-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px; flex-shrink: 0;
  border-bottom: 1px solid rgba(128,128,128,0.12);
  position: relative; z-index: 1;
}
.wm-pane-title { font-size: 14px; font-weight: 700; letter-spacing: -0.3px; margin: 0; }
.wm-pane-count { font-size: 12px; color: var(--muted); font-family: var(--mono); }

.wm-scroll { flex: 1; overflow-y: auto; }
.wm-scroll::-webkit-scrollbar { width: 6px; }
.wm-scroll::-webkit-scrollbar-thumb { background: rgba(128,128,128,0.20); border-radius: 10px; }

/* ── Une ligne de message ────────────────────────────────────────── */
.wm-item {
  display: flex; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid rgba(128,128,128,0.08);
  text-decoration: none; color: inherit; position: relative;
  transition: background .2s;
}
.wm-item:hover { background: var(--glass-bg-hover); }
.wm-item[aria-current] {
  background: var(--glass-bg-active);
  border-left: 3px solid var(--accent);
  padding-left: 13px;
}
/* Non lu : la pastille et la graisse, comme la maquette. */
.wm-item.unread .wm-from,
.wm-item.unread .wm-subject { font-weight: 700; color: var(--ink); }
.wm-item.unread::after {
  content: ''; position: absolute; left: 6px; top: 22px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.wm-item[aria-current].unread::after { display: none; }

.wm-item-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #fff;
  background: var(--subtle);
}
.wm-item-body { flex: 1; min-width: 0; }
.wm-item-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.wm-from { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-when { font-size: 11px; color: var(--subtle); font-family: var(--mono); flex-shrink: 0; }
.wm-subject-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.wm-subject { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-item-meta { font-size: 11px; color: var(--subtle); font-family: var(--mono); }

.wm-tag {
  flex-shrink: 0; font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 10px;
  background: var(--accent-bg); color: var(--accent);
}
.wm-tag.warn { background: rgba(255,159,10,0.15); color: var(--warn); }

/* ── Le message ouvert ───────────────────────────────────────────── */
.wm-read-head { padding: 20px 24px; border-bottom: 1px solid rgba(128,128,128,0.12); position: relative; z-index: 1; flex-shrink: 0; }
.wm-read-actions { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.wm-act {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px;
  border: 1px solid rgba(128,128,128,0.18); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.5); color: var(--muted);
  font: inherit; font-size: 12.5px; font-weight: 500; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, box-shadow .2s, transform .1s;
}
@media (prefers-color-scheme: dark) { .wm-act { background: rgba(255,255,255,0.05); } }
.wm-act:hover { background: rgba(255,255,255,0.9); color: var(--ink); box-shadow: var(--glass-shadow); }
@media (prefers-color-scheme: dark) { .wm-act:hover { background: rgba(255,255,255,0.15); } }
.wm-act:active { transform: scale(0.96); }
.wm-act svg { width: 15px; height: 15px; }
.wm-act.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.wm-act.primary:hover { background: var(--accent); color: #fff; filter: brightness(1.08); }

.wm-read-subject { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.3; margin: 0 0 16px; }
.wm-read-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wm-read-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff; background: var(--subtle);
}
.wm-read-who { flex: 1; min-width: 0; }
.wm-read-from { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-read-to { font-size: 12px; color: var(--muted); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-read-date { font-size: 12px; color: var(--muted); font-family: var(--mono); flex-shrink: 0; }

.wm-read-body { flex: 1; overflow-y: auto; padding: 24px; position: relative; z-index: 1; font-size: 14px; line-height: 1.7; }
.wm-read-body::-webkit-scrollbar { width: 6px; }
.wm-read-body::-webkit-scrollbar-thumb { background: rgba(128,128,128,0.20); border-radius: 10px; }
/* Le corps reste du TEXTE : il vient de l'expéditeur, et on ne lui laisse pas
   exécuter de mise en forme dans le navigateur du client. */
.wm-body-text {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
}

/* ── Pièces jointes, en cartes ───────────────────────────────────── */
.wm-attach-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 24px 0 10px; }
.wm-attachments { display: flex; flex-wrap: wrap; gap: 10px; }
.wm-attach {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); box-shadow: var(--glass-shadow);
  text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.wm-attach:hover { background: var(--glass-bg-hover); transform: translateY(-2px); box-shadow: var(--glass-shadow-hover); }
.wm-attach svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.wm-attach-name { font-size: 12px; font-weight: 600; }
.wm-attach-size { font-size: 10px; color: var(--muted); font-family: var(--mono); }

/* ── État vide ───────────────────────────────────────────────────── */
.wm-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px; position: relative; z-index: 1;
}
.wm-empty-icon {
  width: 72px; height: 72px; border-radius: 50%; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
}
.wm-empty-icon svg { width: 32px; height: 32px; color: var(--muted); }
.wm-empty-title { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; margin: 0 0 8px; }
.wm-empty-desc { font-size: 14px; color: var(--muted); max-width: 300px; margin: 0; line-height: 1.6; }

/* ── Pages simples : connexion, écriture, journal ────────────────── */
.wm-page { flex: 1; overflow-y: auto; padding: 0 24px 24px; }
.wm-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 24px;
}
.wm-card + .wm-card { margin-top: 16px; }
.wm-card h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; margin: 0 0 8px; }
.wm-card h2 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.wm-card p { color: var(--muted); line-height: 1.6; margin: 0 0 16px; }
.wm-narrow { max-width: 520px; margin: 0 auto; }

.wm-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.wm-field > span { font-size: 13px; font-weight: 600; }
.wm-input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 14px;
}
.wm-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea.wm-input { min-height: 220px; resize: vertical; line-height: 1.6; font-family: var(--mono); font-size: 13px; }

.wm-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.wm-notice, .wm-error {
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.55; margin-bottom: 16px;
}
.wm-notice { background: var(--accent-bg); color: var(--ink); }
.wm-error  { background: rgba(255,59,48,0.12); color: var(--bad); }

.wm-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 16px; font-size: 13px; }
.wm-facts dt { color: var(--muted); }
.wm-facts dd { margin: 0; overflow-wrap: anywhere; }

.wm-rows { display: flex; flex-direction: column; }
.wm-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid rgba(128,128,128,0.12); font-size: 13px;
}
.wm-row:last-child { border-bottom: none; }
.wm-row .wm-grow { flex: 1; min-width: 0; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1000px) { .wm-list { width: 320px; } }

@media (max-width: 768px) {
  body { overflow: auto; }

  /* La barre latérale passe en bas, en pilule de verre — même geste que le
     panel en mobile. Le pouce atteint le bas de l'écran, pas le haut. */
  .wm-side {
    position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 32px); max-width: 420px; height: 60px;
    flex-direction: row; align-items: center;
    border: 1px solid var(--glass-border); border-radius: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow-hover);
    z-index: 100; padding: 0; overflow: hidden;
  }
  .wm-brand, .wm-side-foot, .wm-nav-label, .wm-badge, .wm-count { display: none; }
  .wm-compose-wrap { padding: 0 0 0 8px; }
  .wm-compose { width: 44px; height: 44px; padding: 0; border-radius: 14px; }
  .wm-compose-label { display: none; }
  .wm-nav { display: flex; flex-direction: row; align-items: center; gap: 4px; padding: 0 8px; overflow-x: auto; }
  .wm-nav::-webkit-scrollbar { display: none; }
  .wm-nav a { width: 44px; height: 44px; justify-content: center; padding: 0; margin: 0; border-radius: 12px; }
  .wm-nav a[aria-current] { background: rgba(128,128,128,0.18); }
  .wm-nav svg { width: 20px; height: 20px; opacity: 1; }

  .wm-main { padding-bottom: 88px; }
  .wm-top { padding: 0 16px; }
  .wm-split { flex-direction: column; padding: 0 16px 16px; overflow: visible; }
  .wm-list, .wm-read { width: 100%; }
  /* Sur un écran étroit, on ne montre qu'une chose à la fois : la liste, ou le
     message. Les deux côte à côte n'y tiendraient pas. */
  .wm-split.lecture .wm-list { display: none; }
  .wm-split.liste .wm-read { display: none; }
  .wm-back { display: inline-flex; }
  .wm-page { padding: 0 16px 16px; }
}

/* Le retour n'a de sens qu'en mobile : ailleurs, la liste est déjà à côté. */
.wm-back { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Le repli « Ajouter une copie » du formulaire d'écriture. */
details.cc { margin-bottom: 16px; }
details.cc > summary {
  cursor: pointer; font-size: 13px; color: var(--muted);
  padding: 4px 0; list-style-position: inside;
}
details.cc > summary:hover { color: var(--ink); }
details.cc[open] > summary { margin-bottom: 10px; }
