/* =========================================================================
   suivi.css — habillage de l'app Suivi des dossiers : thème clair « lin »
   (fond sable, cartes lin clair — le blanc pur fatiguait les yeux sur une
   journée), Inter + Fraunces, accent doré assombri pour rester lisible.
   ========================================================================= */
:root {
  --bg: #e9e3d6; --panel: #f6f2e9; --panel-2: #ece6d9; --line: #d6cdbb;
  --text: #2a2620; --muted: #736c5f; --accent: #8a6b2e; --accent-ink: #ffffff;
  --ok: #2d8656; --warn: #a8780a; --bad: #c14237; --info: #33679f;
}
* { box-sizing: border-box; margin: 0; }
html { color-scheme: light; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, sans-serif; font-size: 14px;
  min-height: 100vh;
}
button { font: inherit; cursor: pointer; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input[type="date"] { min-width: 130px; }
input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
a { color: var(--accent); }

/* ------------------------------- Topbar -------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px; background: rgba(246,242,233,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__brand { display: flex; align-items: center; gap: 12px; }
.topbar__brand img { height: 34px; width: auto; background: #fff; padding: 4px 8px; border-radius: 8px; }
.topbar__brand strong { font-family: "Fraunces", Georgia, serif; font-weight: 550; font-size: 17px; display: block; }
.topbar__brand small { color: var(--muted); font-size: 11.5px; display: block; }
.topbar nav { display: flex; gap: 4px; margin-left: 18px; flex-wrap: wrap; }
/* Sélecteur d'agence (Saint-Médard / Caudéran) de la barre du haut. */
.sites { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sites .site {
  background: transparent; border: none; color: var(--muted);
  font: inherit; font-size: 12.5px; padding: 7px 12px; cursor: pointer; white-space: nowrap;
}
.sites .site + .site { border-left: 1px solid var(--line); }
.sites .site.on { background: var(--panel-2); color: var(--text); font-weight: 600; }
/* Réunion : sélection multiple des conseillers et des familles (puces). */
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips .chip {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font: inherit; font-size: 12.5px; padding: 6px 12px; cursor: pointer;
}
.chips .chip.on { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chips__label { color: var(--muted); font-size: 12.5px; min-width: 78px; }
.topbar nav a {
  text-decoration: none; color: var(--muted); padding: 7px 13px; border-radius: 8px; font-weight: 500;
}
.topbar nav a.on { background: var(--panel-2); color: var(--text); }
.topbar nav a:hover { color: var(--text); }
.topbar .spacer { flex: 1; }
.topbar .who { color: var(--muted); font-size: 12px; text-align: right; }

.btn {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 14px; font-weight: 500;
  transition: border-color .12s, background .12s;
}
.btn:hover { border-color: var(--accent); }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn--primary:hover { filter: brightness(1.07); }
.btn--danger:hover { border-color: var(--bad); color: var(--bad); }
.btn--sm { padding: 4px 9px; font-size: 12.5px; border-radius: 7px; }
.btn[disabled] { opacity: .5; cursor: default; }

/* ------------------------------- Layout -------------------------------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 22px 18px 80px; }
.view { display: none; }
.view.on { display: block; }
h2.viewtitle { display: flex; align-items: center; font-family: "Fraunces", Georgia, serif; font-weight: 550; font-size: 24px; margin-bottom: 16px; }
h2.viewtitle small { color: var(--muted); font-family: "Inter", sans-serif; font-size: 13px; font-weight: 400; margin-left: 10px; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(28,27,24,.04);
}
.card h3 {
  font-family: "Fraunces", Georgia, serif; font-weight: 550; font-size: 16.5px;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.card h3 .cnt { color: var(--muted); font-family: "Inter", sans-serif; font-size: 12px; font-weight: 400; }
.hintline { color: var(--muted); font-size: 12px; margin-top: 8px; line-height: 1.5; }

/* --------------------------- Tableau de bord ---------------------------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kpi b { font-size: 26px; font-family: "Fraunces", Georgia, serif; font-weight: 550; display: block; }
.kpi span { color: var(--muted); font-size: 12px; }
.kpi.bad b { color: var(--bad); } .kpi.warn b { color: var(--warn); } .kpi.ok b { color: var(--ok); }

/* Barre de répartition (part du CA par étape d'avancement). */
.bar {
  display: inline-block; width: 110px; height: 8px; border-radius: 4px;
  background: var(--panel-2); border: 1px solid var(--line);
  vertical-align: middle; margin-right: 9px; overflow: hidden;
}
.bar i { display: block; height: 100%; background: var(--accent); }

/* Tableau de bord : une ligne dépliable par vente. */
.vente { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.vente > summary {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 11px 14px; cursor: pointer; list-style: none;
}
.vente > summary::-webkit-details-marker { display: none; }
.vente > summary::before { content: "▸"; color: var(--muted); }
.vente[open] > summary::before { content: "▾"; }
.vente > summary:hover { color: var(--accent); }
.vente__ref { font-weight: 600; flex: 1 1 220px; }
.vente__n { color: var(--bad); font-size: 12.5px; font-weight: 600; }
.vente__due { color: var(--muted); font-size: 12.5px; }
.vente__actions { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px; }
.vente__actions .todo__item { background: var(--panel); }

/* Replis : étapes faites de l'échéancier, notes anciennes du journal. */
.faites { margin-top: 6px; }
.faites > summary {
  cursor: pointer; color: var(--muted); font-size: 12.5px; padding: 5px 2px; list-style: none;
}
.faites > summary::-webkit-details-marker { display: none; }
.faites > summary::before { content: "▸ "; }
.faites[open] > summary::before { content: "▾ "; }
.faites > summary:hover { color: var(--accent); }

/* Fiches du dossier repliées : seul le titre reste visible. */
.card--repli > h3 { cursor: pointer; margin-bottom: 0; }
.card--repli > h3::before { content: "▸"; color: var(--muted); margin-right: 6px; font-family: "Inter", sans-serif; }
.card--repli > h3:hover { color: var(--accent); }
.card--repli.card--ouvert > h3 { margin-bottom: 12px; }
.card--repli.card--ouvert > h3::before { content: "▾"; }
.card--repli > :not(h3) { display: none; }
.card--repli.card--ouvert > :not(h3) { display: revert; }
.card--repli.card--ouvert > .grid2 { display: grid; }
.card--repli.card--ouvert > .grid3 { display: grid; }

/* Rappel du rendez-vous de signature, en tête du dossier. */
.rdv {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 16px;
}
.rdv__quoi { font-size: 15px; }
.rdv__quoi b { font-family: "Fraunces", Georgia, serif; font-weight: 550; font-size: 17px; }
.rdv__delai { color: var(--muted); font-size: 13px; }
.rdv__lieu { color: var(--muted); font-size: 12.5px; flex: 1 1 240px; }
.rdv--proche { border-left-color: var(--warn); }
.rdv--proche .rdv__delai { color: var(--warn); font-weight: 600; }
.rdv--tard { border-left-color: var(--bad); }
.rdv--tard .rdv__delai { color: var(--bad); font-weight: 600; }
.rdv--fait { border-left-color: var(--ok); }

/* Info capitale : une note épinglée en haut du journal, et rappelée sur la
   vente au tableau de bord. */
.capital {
  background: rgba(201,70,58,.08); border: 1px solid var(--bad); border-radius: 10px;
  color: var(--bad); font-weight: 600; font-size: 15.5px; line-height: 1.45; padding: 11px 14px;
}
.capital--board { margin: 0 12px 10px; font-size: 14px; }
/* Date de l'info capitale (réunion) : petite, mais lue avant le texte. */
.capital__date { font-size: 12px; font-weight: 600; white-space: nowrap; opacity: .85; }

/* Avenants au compromis : un bloc par avenant, les valeurs d'origine barrées. */
.avenant { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; background: var(--panel-2); }
.avenant__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.avenant__head .spacer { flex: 1; }
.avenant__objet { color: var(--muted); }
.avenant__mods { margin: 6px 0 0 18px; line-height: 1.6; }
.avenant__avant { color: var(--muted); }
.journal__item--capital { border-color: var(--bad); background: rgba(201,70,58,.07); }
.journal__item--capital .journal__text { color: var(--bad); font-weight: 600; font-size: 15.5px; }
.journal__cap { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.journal__cap input { width: 14px; height: 14px; }

/* Vigies : compteurs cliquables des points de vigilance (onglet Stats). */
.vigies { display: flex; flex-wrap: wrap; gap: 8px; }
.vigie {
  display: flex; align-items: baseline; gap: 8px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 13px; color: var(--text); font-size: 13px; font-family: inherit;
  transition: border-color .12s, background .12s;
}
.vigie:hover { border-color: var(--accent); }
.vigie.on { border-color: var(--accent); background: var(--panel); }
.vigie b { font-family: "Fraunces", Georgia, serif; font-weight: 550; font-size: 18px; }
.vigie.alerte b { color: var(--warn); }
.vigie.vide b { color: var(--muted); }

.todo { display: flex; flex-direction: column; gap: 8px; }
.todo__item {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.todo__item .when { min-width: 92px; font-weight: 600; font-size: 12.5px; }
.todo__item.late .when { color: var(--bad); }
.todo__item.soon .when { color: var(--warn); }
.todo__item .what { flex: 1 1 260px; }
.todo__item .what small { display: block; color: var(--muted); }
.todo__empty { color: var(--muted); padding: 14px 4px; }

/* ------------------------------- Listes --------------------------------- */
.toolrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolrow input[type="search"] { flex: 1 1 220px; }
table.liste { width: 100%; border-collapse: collapse; }
table.liste th {
  text-align: left; color: var(--muted); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .05em; font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line);
}
table.liste td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
/* En-têtes triables de la liste des dossiers. */
table.liste th[data-tri] { cursor: pointer; user-select: none; }
table.liste th[data-tri]:hover { color: var(--text); }
table.liste th[data-tri]::after { content: attr(data-sens); margin-left: 5px; color: var(--accent); }
table.liste th.tri { color: var(--accent); }
table.liste tr.row { cursor: pointer; }
table.liste tr.row:hover td { background: var(--panel-2); }
.tablewrap { overflow-x: auto; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: baseline; }
.dot.vert { background: var(--ok); } .dot.orange { background: var(--warn); }
.dot.rouge { background: var(--bad); } .dot.gris { background: var(--muted); }
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.badge.en_cours { color: var(--info); border-color: var(--info); }
.badge.signe { color: var(--ok); border-color: var(--ok); }
.badge.annule { color: var(--bad); border-color: var(--bad); }

/* ------------------------------ Dossier --------------------------------- */
.doshead { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.doshead h2 { font-family: "Fraunces", Georgia, serif; font-weight: 550; font-size: 23px; }
.doshead .sub { color: var(--muted); margin-top: 4px; }
.doshead .spacer { flex: 1; }
.doshead .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; }
@media (max-width: 900px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.field label { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select, .field textarea { width: 100%; }
.field textarea { min-height: 74px; resize: vertical; }

.partie {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px;
  background: var(--panel-2); position: relative;
}
.partie .rm { position: absolute; top: 8px; right: 8px; }
.addrow { margin-top: 4px; }

/* ----------------------------- Échéancier ------------------------------- */
.phase { margin: 18px 0 6px; color: var(--accent); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; }
/* Une note du journal marquée « financement » / « conditions suspensives »
   met le titre de sa phase en alerte. */
.phase--alerte { color: var(--bad); font-weight: 800; }
.phase__alerte { font-weight: 600; text-transform: none; letter-spacing: 0; }
.etape {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 10px; border-bottom: 1px solid var(--line);
}
.etape:last-child { border-bottom: none; }
.etape .lab { flex: 1 1 300px; }
.etape .lab small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.etape.done .lab { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(107,103,94,.6); }
.etape.done .lab small { text-decoration: none; }
.etape .due { display: flex; align-items: center; gap: 8px; }
.etape .due input { padding: 4px 6px; font-size: 12.5px; }
.etape .due .datefield { width: auto; }
.etape .due .efface { width: 26px; height: 26px; font-size: 12px; }
.etape .delta { font-size: 11.5px; font-weight: 600; min-width: 74px; text-align: right; }
.etape .delta.late { color: var(--bad); } .etape .delta.soon { color: var(--warn); } .etape .delta.far { color: var(--muted); }
.etape .delta.okd { color: var(--ok); }

/* « ＋ Ajouter » une action à l'échéancier (catalogue ou libre). */
.ajout-action { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.ajout-action select { flex: 1 1 260px; }
.ajout-action input[type="text"] { flex: 1 1 200px; }
.ajout-action .datefield { width: auto; }
.etape__tag { display: inline !important; color: var(--accent); font-size: 11px; font-weight: 600; margin-left: 4px; }

/* ------------------------------- Journal -------------------------------- */
.journal { display: flex; flex-direction: column; gap: 8px; }
.journal__item { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; position: relative; }
.journal__item .meta { color: var(--muted); font-size: 11.5px; margin-bottom: 3px; }
.journal__item .jdel { position: absolute; top: 6px; right: 6px; padding: 1px 7px; opacity: 0; transition: opacity .12s; }
.journal__item:hover .jdel, .journal__item:focus-within .jdel { opacity: 1; }
/* La note se corrige sur place : un textarea déguisé en texte courant.
   Repliée à quatre lignes quand elle est longue (un e-mail collé), elle se
   déploie au survol ou dès qu'on clique dedans. */
.journal__body { position: relative; }
.journal__text {
  display: block; width: 100%; resize: none; padding: 2px 60px 2px 0;
  background: transparent; border: none; border-radius: 6px; line-height: 1.5;
  overflow: hidden;
}
.journal__text:hover { background: rgba(28,27,24,.04); }
.journal__text:focus { outline: none; background: var(--panel); box-shadow: 0 0 0 1px var(--accent); padding-left: 6px; }
.journal__body.long .journal__text { max-height: 6em; transition: max-height .18s ease; }
.journal__body.long:hover .journal__text,
.journal__body.long:focus-within .journal__text { max-height: 90em; resize: vertical; }
/* Dégradé + rappel « message complet », le temps que la note soit repliée. */
.journal__body.long::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.2em;
  background: linear-gradient(to bottom, transparent, var(--panel-2));
  pointer-events: none; transition: opacity .18s ease;
}
.journal__body.long:hover::after, .journal__body.long:focus-within::after { opacity: 0; }
.journal__more {
  position: absolute; right: 4px; bottom: 2px; color: var(--accent);
  font-size: 11.5px; pointer-events: none; transition: opacity .18s ease;
}
.journal__body.long:hover .journal__more, .journal__body.long:focus-within .journal__more { opacity: 0; }
.journal__lien { display: inline-block; margin-top: 5px; font-size: 12.5px; }
.journal__mail { margin-top: 6px; font-size: 12.5px; }
.journal__mail summary { color: var(--accent); cursor: pointer; }
.journal__mail > div { color: var(--muted); margin: 6px 0; }
.journal__mail pre {
  white-space: pre-wrap; font: inherit; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; max-height: 260px; overflow: auto;
}
.journal__add { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.journal__add input { flex: 1 1 240px; }

/* ----------------------------- Conditions ------------------------------- */
.cond { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cond:last-child { border-bottom: none; }
/* Champ date/heure + son bouton d'effacement. Indispensable sur téléphone :
   le sélecteur natif ne propose jamais de revenir à vide. */
.datefield { display: inline-flex; align-items: center; gap: 4px; width: 100%; }
.datefield input { flex: 1 1 auto; min-width: 0; }
.efface {
  flex: 0 0 auto; width: 30px; height: 30px; padding: 0; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
  color: var(--muted); font: inherit; font-size: 13px; line-height: 1;
}
.efface:hover { color: var(--bad); border-color: var(--bad); }
/* Condition de pur droit : présente au dossier, absente de l'échéancier. */
.cond--droit { opacity: .78; }
.cond__droit { flex: 1 1 100%; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.cond input[type="text"] { flex: 1 1 180px; }
.cond textarea { flex: 2 1 260px; min-height: 38px; }

/* ------------------------------ Annuaire --------------------------------- */
.annrow { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.annrow:last-of-type { border-bottom: none; }
.annrow .field { margin-bottom: 0; }
.annrow .btn { margin-bottom: 2px; }

/* ------------------------------- Modales -------------------------------- */
.overlay {
  position: fixed; inset: 0; background: rgba(28,27,24,.45); z-index: 90;
  display: none; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow: auto;
}
.overlay.on { display: flex; }
.modal {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  width: 100%; max-width: 720px; padding: 22px;
}
.modal h3 { font-family: "Fraunces", Georgia, serif; font-weight: 550; font-size: 19px; margin-bottom: 12px; }
.modal .foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }

.drop {
  border: 2px dashed var(--line); border-radius: 12px; padding: 26px; text-align: center;
  color: var(--muted); cursor: pointer; transition: border-color .12s;
}
.drop:hover, .drop.over { border-color: var(--accent); color: var(--text); }
.drop input { display: none; }
.filelist { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.filelist div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; display: flex; justify-content: space-between; gap: 8px; }

.spin {
  display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line);
  border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 7px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------------- Toast --------------------------------- */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text); border: 1px solid var(--text); color: #fff;
  padding: 11px 18px; border-radius: 10px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 120; max-width: 90vw;
}
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { border-color: var(--bad); }

/* ---------------------------- Écran connexion ---------------------------- */
.gate { max-width: 520px; margin: 10vh auto; text-align: center; }
.gate img { height: 60px; background: #fff; padding: 10px 16px; border-radius: 12px; margin-bottom: 18px; }
.gate h1 { font-family: "Fraunces", Georgia, serif; font-weight: 550; font-size: 26px; margin-bottom: 10px; }
.gate p { color: var(--muted); line-height: 1.6; margin-bottom: 18px; }

/* ------------------------------ Modèles --------------------------------- */
.modele { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: var(--panel-2); }
.modele .head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.modele .head input[type="text"] { flex: 1 1 220px; font-weight: 600; }
.modele textarea { width: 100%; min-height: 130px; font-size: 13px; line-height: 1.5; }
.mergehelp { color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.mergehelp code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 11px; }

@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; }
  .topbar nav { margin-left: 0; order: 3; width: 100%; }
  .doshead .actions { width: 100%; }
}
@media print {
  .topbar, .btn, .journal__add { display: none !important; }
  body { background: #fff; color: #111; }
  .card { border-color: #ccc; break-inside: avoid; }
}
