/* polices servies par Perchoir lui-même (aucune requête vers Google) – licence SIL OFL, voir fonts/ */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ground: #F2F4EF;
  --card: #FFFFFF;
  --ink: #16211A;
  --muted: #59645C;
  --line: #DDE3DA;
  --line-soft: #E6EAE3;
  --accent: #2E6B4E;
  --accent-soft: #E2EFE6;
  --accent-ink: #235A40;
  --warn-soft: #FBE9D9;
  --warn-line: #F1CDAE;
  --warn-ink: #8A3F08;
  --danger: #A42A22;
  --danger-line: #E4B8B3;
  --night: #1E2622;
  --off: #7F8A82;
  --on-accent: #FFFFFF;
  /* détections (oiseaux / à vérifier / faux positifs) : couleurs vérifiées pour le daltonisme */
  --c-birds: #1B8566; --c-review: #E2802A; --c-fp: #4C6FD0;
  --radius: 18px;
  --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0F1612; --card: #18211C; --ink: #E8EEE9; --muted: #A3B0A7;
    --line: #2C3832; --line-soft: #243029; --accent: #6FBF93; --accent-soft: #1F3A2B;
    --accent-ink: #A9D8BD; --warn-soft: #3A2716; --warn-line: #5A3A1E; --warn-ink: #F2B583;
    --danger: #F08A80; --danger-line: #5A2B27; --night: #0B100D; --off: #5E6A62; --on-accent: #0F1612;
    --c-birds: #2E9E7E; --c-review: #CF7A2E; --c-fp: #7286DA;
  }
}
:root[data-theme="dark"] {
  --ground: #0F1612; --card: #18211C; --ink: #E8EEE9; --muted: #A3B0A7;
  --line: #2C3832; --line-soft: #243029; --accent: #6FBF93; --accent-soft: #1F3A2B;
  --accent-ink: #A9D8BD; --warn-soft: #3A2716; --warn-line: #5A3A1E; --warn-ink: #F2B583;
  --danger: #F08A80; --danger-line: #5A2B27; --night: #0B100D; --off: #5E6A62; --on-accent: #0F1612;
  --c-birds: #2E9E7E; --c-review: #CF7A2E; --c-fp: #7286DA;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body);
  -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
img, video { display: block; max-width: 100%; }
.app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }
.noscroll { scrollbar-width: none; } .noscroll::-webkit-scrollbar { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* en-tête */
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: calc(18px + env(safe-area-inset-top)) 0 8px; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 4px 0 0; font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.daynav { display: flex; align-items: center; gap: 2px; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink); flex: 0 0 auto; }
.icon-btn[disabled] { opacity: .35; cursor: default; }
.icon-btn.ghost { border-color: transparent; background: transparent; }
.today-btn { height: 36px; padding: 0 13px; margin: 0 2px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--card); color: var(--accent); font-size: 13.5px; font-weight: 600; white-space: nowrap; flex: 0 0 auto; }
.today-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* téléphone : avec la pastille, la navigation passe sous le titre (sinon elle déborde) */
@media (max-width: 559px) {
  .top.past { flex-wrap: wrap; row-gap: 4px; }
  .top.past > div:first-child { flex: 1 1 100%; }
  .top.past .daynav { flex: 1 1 100%; margin-left: -10px; }
  .top.past .daynav [data-filters] { margin-left: auto; }
}
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* état de la caméra */
.camcard { margin-top: 6px; padding: 10px 12px; background: var(--night); color: #F2F4EF; border-radius: 20px;
  display: flex; align-items: center; gap: 12px; }
.camcard .dot { width: 10px; height: 10px; border-radius: 99px; background: #7F8A82; flex: 0 0 auto; }
.camcard .dot.on { background: #7EE0A6; box-shadow: 0 0 0 4px rgba(126, 224, 166, .18); }
.camcard .dot.rec { background: #F2A65A; box-shadow: 0 0 0 4px rgba(242, 166, 90, .2); }
.camcard p { margin: 0; }
.camcard .t { font-size: 15px; font-weight: 600; }
.camcard .s { font-size: 12.5px; color: #B8C4BC; margin-top: 2px; }

/* chiffres */
.stats { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px; padding: 10px 12px; text-align: left; }
.stat p { margin: 0; font-size: 12px; font-weight: 500; color: var(--muted); }
.stat b { display: block; margin-top: 2px; font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.1; }
.stat.warn { background: var(--warn-soft); border-color: var(--warn-line); }
.stat.warn p { color: var(--warn-ink); font-weight: 600; }

/* puces de filtre */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 6px; margin: 0 -16px; }
.chip { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--card); font-size: 14px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.chip small { font-size: 13px; font-weight: 500; opacity: .8; }

/* liste des visites */
.part { margin: 16px 2px 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.list { display: flex; flex-direction: column; gap: 10px; }
.visit { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 10px;
  display: flex; flex-direction: column; gap: 10px; }
.visit.review { border-color: var(--warn-line); }
.visit .row { display: flex; gap: 12px; align-items: center; background: none; border: 0; padding: 0; text-align: left; width: 100%; }
.thumb { flex: 0 0 auto; width: 88px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--night); position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .tag { position: absolute; left: 4px; bottom: 4px; padding: 1px 5px; border-radius: 5px; background: rgba(0,0,0,.55);
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.visit .body { flex: 1 1 auto; min-width: 0; }
.visit h2 { margin: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visit .head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.visit .time { flex: 0 0 auto; font-size: 13px; color: var(--muted); }
.visit .sub { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.badge { display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.badge.warn { background: var(--warn-soft); color: var(--warn-ink); }
.badge.ok { background: var(--accent-soft); color: var(--accent-ink); }
.badge.off { background: var(--line-soft); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* deux boutons côte à côte s'ils tiennent, l'un sous l'autre sinon (jamais hors de la carte) */
.actions .btn { flex: 1 1 auto; padding: 0 10px; }
.btn { flex: 1 1 0; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground);
  font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px;
  white-space: nowrap; }
.btn.primary { border: 0; background: var(--accent); color: var(--on-accent); }
.btn.danger { color: var(--danger); border-color: var(--danger-line); background: var(--card); }
.btn.danger-solid { border: 0; background: var(--danger); color: var(--card); }

/* carte SD (corbeille) */
.sdcard { margin-top: 16px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
.sdcard h2 { margin: 0; font-size: 16px; font-weight: 700; }
.sdcard .meta { margin-top: 4px; line-height: 1.45; }
.sdcard .notice { margin: 8px 0 0; }
.sd-action .btn { width: 100%; }
.confirm .lead { margin: 10px 0 0; font-size: 15px; line-height: 1.5; }
.facts { list-style: none; padding: 0; margin: 16px 0 20px; display: flex; flex-direction: column; gap: 10px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.facts .icon { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; color: var(--accent); }
.btn .icon { width: 18px; height: 18px; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.5; }
.more { margin: 14px auto 0; display: flex; }

/* panneaux (détail, filtres) */
.scrim { position: fixed; inset: 0; background: rgba(22, 33, 26, .55); z-index: 20; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 92vh; max-height: 92dvh; overflow-y: auto;
  background: var(--card); border-radius: 26px 26px 0 0; padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
  max-width: 560px; margin: 0 auto; overscroll-behavior: contain; transition: transform .2s ease; }
.sheet.dragging { transition: none; }
/* téléphone : poignée et bouton Fermer restent visibles en haut du panneau, même après défilement */
.sheet-top { position: sticky; top: -8px; z-index: 3; display: flex; align-items: center; justify-content: center;
  min-height: 44px; margin: -8px -16px 0; padding: 0 56px; background: var(--card); border-radius: 26px 26px 0 0;
  touch-action: none; }
.sheet .close { position: absolute; top: 2px; right: 6px; width: 40px; height: 40px; }
/* filtres : seul le contenu défile, le bouton « Afficher » reste toujours visible */
.sheet.drawer { display: flex; flex-direction: column; overflow: hidden; }
.sheet.drawer .sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 8px; overscroll-behavior: contain; }
.sheet.drawer .sheet-top { flex: 0 0 auto; position: relative; top: 0; }
.sheet-foot { flex: 0 0 auto; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.sheet .grab { width: 40px; height: 5px; border-radius: 99px; background: var(--line); }
.sheet h2 { margin: 6px 0 0; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.sheet h3 { margin: 18px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sheet .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.media { border-radius: 18px; overflow: hidden; background: var(--night); aspect-ratio: 16 / 9; }
.media video, .media img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.meta { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--ground); }
.seg button { min-height: 44px; border: 0; border-radius: 11px; background: transparent; font-size: 14px; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--card); font-weight: 700; box-shadow: 0 1px 3px rgba(22, 33, 26, .18); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field select { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground); padding: 0 10px; }
input[type="range"] { width: 100%; height: 44px; margin: 0; accent-color: var(--accent); }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.cta { display: flex; align-items: center; justify-content: center; min-height: 52px; width: 100%; border: 0; border-radius: 16px;
  background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 700; }

/* tri rapide */
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0 14px; }
.progress span { display: block; height: 6px; background: var(--accent); border-radius: 99px; }
.triage { background: var(--card); border: 1px solid var(--line-soft); border-radius: 26px; overflow: hidden; }
.triage .info { padding: 14px 16px 16px; }
.triage .info p { margin: 0; }
.triage h2 { margin: 3px 0 0; font-family: var(--display); font-size: 24px; font-weight: 700; }
.ai { margin-top: 6px !important; font-size: 14px; font-weight: 600; color: var(--warn-ink); }
.verdict { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; align-items: start; }
.verdict button { border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; }
.round { width: 68px; height: 68px; border-radius: 99px; display: flex; align-items: center; justify-content: center; }
.round.no { background: var(--card); border: 1.5px solid var(--danger-line); color: var(--danger); }
.round.later { width: 48px; height: 48px; margin-top: 10px; background: var(--line-soft); }
.round.yes { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 12px rgba(46, 107, 78, .3); }
.round .icon { width: 28px; height: 28px; stroke-width: 2.2; }
.bulk { margin-top: 14px; width: 100%; min-height: 44px; border: 1px dashed var(--danger-line); border-radius: 14px;
  background: transparent; color: var(--danger); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 12px; }
.bulk .icon { width: 18px; height: 18px; flex: 0 0 auto; }

/* bandeau d'info, toast, navigation */
.notice { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--warn-soft); color: var(--warn-ink); font-size: 13px; line-height: 1.4; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 30; max-width: 528px; margin: 0 auto;
  background: var(--ink); color: var(--ground); border-radius: 14px; padding: 4px 6px 4px 14px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(22, 33, 26, .25); }
.toast span { flex: 1 1 auto; font-size: 14px; }
.toast button { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--accent-soft); font-weight: 700; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); }
.tabs nav { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: 64px; }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none;
  color: var(--muted); font-size: 11.5px; font-weight: 500; position: relative; min-width: 0; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.tabs .count { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--warn-ink); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.count[hidden] { display: none !important; }

/* raccourcis clavier : visibles seulement avec souris et grand écran */
.side { display: none; }
.kbd, .kbd-hint { display: none; }
kbd { font-family: var(--body); font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--ground); color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- tablette : visites en grille ---------- */
@media (min-width: 700px) {
  .app { max-width: 1100px; padding-left: 24px; padding-right: 24px; }
  .camstatus { max-width: 640px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 200px)); }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 16px 0 4px; }
  .list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; align-items: start; }
  .sdcard { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
  .sd-action { flex: 0 0 auto; }
  .sd-action .btn { width: auto; padding: 0 18px; }
  .part { grid-column: 1 / -1; margin: 18px 2px 0; }
  .visit .row { flex-direction: column; align-items: stretch; gap: 10px; }
  .thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .more { grid-column: 1 / -1; }
}

/* ---------- grand écran : fenêtres centrées, filtres à droite, tri sur deux colonnes ---------- */
@media (min-width: 900px) {
  .sheet .grab { display: none; }
  .sheet-top, .sheet.drawer .sheet-top { position: static; min-height: 0; margin: 0; padding: 0; background: none; }
  .sheet .close { top: 12px; right: 12px; width: 44px; height: 44px; z-index: 2; }
  .sheet.modal { top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); margin: 0;
    width: min(1120px, calc(100vw - 64px)); max-width: none; max-height: calc(100vh - 64px);
    border-radius: 24px; padding: 56px 28px 28px; }
  .sheet.modal.narrow { width: min(540px, calc(100vw - 64px)); padding: 44px 28px 28px; }
  .detail { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 28px; align-items: start; }
  .detail-info h2 { margin-top: 0; }
  .sheet.drawer { top: 0; bottom: 0; left: auto; right: 0; margin: 0; width: 420px; max-width: 100vw; max-height: none;
    border-radius: 24px 0 0 24px; padding: 20px 24px 24px; }
  .sheet.drawer .head { padding-right: 48px; }
  .tri-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 28px; align-items: start; }
  .tri-side { position: sticky; top: 24px; }
  .tri-side > h3:first-child { margin-top: 0 !important; }
}
@media (min-width: 900px) and (hover: hover) {
  .kbd { display: inline-block; margin-left: 6px; }
  .verdict .kbd { margin-left: 0; }
  .kbd-hint { display: block; margin: 20px 2px 0; font-size: 13px; line-height: 1.9; color: var(--muted); }
}

/* ---------- ordinateur : menu latéral ---------- */
@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
  .side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
    padding: 24px 16px; background: var(--card); border-right: 1px solid var(--line); }
  .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; text-decoration: none; color: var(--ink);
    font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
  .brand img { border-radius: 10px; }
  .sidenav { display: flex; flex-direction: column; gap: 4px; }
  .sidenav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px;
    color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
  .sidenav a:hover { background: var(--ground); color: var(--ink); }
  .sidenav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
  .sidenav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px;
    background: var(--warn-ink); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
  .side-status .camcard { margin-top: 0; }
  .tabs { display: none; }
  .app { max-width: 1440px; width: 100%; margin: 0; padding: 28px 40px 48px; }
  .app .camstatus { display: none; }
  h1 { font-size: 38px; }
  .toast { left: calc(248px + 40px); right: 40px; bottom: 24px; }
}

/* survol à la souris */
@media (hover: hover) {
  .visit { transition: border-color .15s, box-shadow .15s; }
  .visit:hover { border-color: var(--line); box-shadow: 0 6px 20px rgba(22, 33, 26, .08); }
  .chip:hover, .btn:hover, .icon-btn:hover:not([disabled]), .seg button:hover, .today-btn:hover { filter: brightness(.96); }
  .btn.primary:hover, .cta:hover, .round.yes:hover { filter: brightness(1.08); }
}

/* version affichée en bas du menu latéral et de la corbeille */
.version { margin: auto 8px 0; font-size: 12px; color: var(--muted); }
.thumb .tag.ir { left: auto; right: 4px; }

/* anciens styles en ligne (interdits par la politique de sécurité du contenu) */
.stat.link { text-decoration: none; color: inherit; }
.btn.fixed { flex: 0 0 auto; }
.done-title { font-family: var(--display); font-size: 26px; margin: 0 0 8px; color: var(--ink); }
a.cta { text-decoration: none; }
.media.flat { border-radius: 0; }
.meta.m0 { margin: 0; }
.field.mt12 { margin-top: 12px; }
.list.mt16 { margin-top: 16px; }
.meta.reason-title { margin: 16px 2px 8px; font-weight: 600; }

/* apprentissage sur la mangeoire */
button.linkish { all: unset; cursor: pointer; display: block; text-decoration: underline; text-underline-offset: 2px; }
button.linkish:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.learning .scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 6px; }
.learning .score { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.learning .score.good { border-color: var(--accent); }
.learning .score .v { font-family: var(--display); font-size: 28px; font-weight: 700; }
.learning .score .k { font-size: 13px; color: var(--muted); }
.learning h3 { margin: 18px 0 6px; font-size: 14px; }
.learning .meta { margin: 8px 0 0; line-height: 1.45; }
.classes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.classes li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.classes .n { font-variant-numeric: tabular-nums; color: var(--muted); }
.notice.hint { margin: 10px 0 0; }

/* ---------- collection ---------- */
.stat b small { font-size: 15px; font-weight: 600; color: var(--muted); }
.kpi-sub { display: block; font-size: 12px; color: var(--muted); }
.toolbar { margin: 16px 0 12px; }
.toolbar .seg { max-width: 420px; background: var(--line-soft); }
.toolbar .seg button[aria-pressed="true"] { background: var(--card); }
.species-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.species { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.species:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.species .cover { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--night); }
.species .cover img, .gallery .ph img, .sp-hero img { width: 100%; height: 100%; object-fit: cover; }
.noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--off); }
.noimg .icon { width: 40px; height: 40px; }
.species .txt { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; min-width: 0; }
.species .nm { font-size: 15px; font-weight: 700; line-height: 1.25; }
.species .sub { font-size: 12.5px; color: var(--muted); }
.tag.new, .tag.fav { position: absolute; top: 8px; padding: 2px 7px; border-radius: 99px; font-size: 11px; font-weight: 700;
  letter-spacing: .02em; }
.tag.new { left: 8px; background: var(--accent); color: var(--on-accent); }
.tag.fav { right: 8px; width: 26px; height: 26px; padding: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .55); color: #FFD27A; }
.tag.fav .icon { width: 15px; height: 15px; fill: currentColor; stroke-width: 1.4; }
.ph .tag.ir { position: absolute; right: 6px; bottom: 6px; padding: 1px 5px; border-radius: 5px; background: rgba(0,0,0,.55);
  color: #fff; font-size: 10px; font-weight: 700; }
h2.section { margin: 28px 2px 2px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.meta.pending { margin: 14px 2px 0; }
.discover { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.discover li { display: block; }
.disc { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; min-height: 56px; display: flex; align-items: center;
  gap: 10px; padding: 6px 12px 6px 6px; border: 1px dashed var(--line); border-radius: 16px; font-size: 13.5px; color: var(--muted); }
.disc:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.disc .thumb { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--line-soft);
  display: flex; align-items: center; justify-content: center; }
.disc .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.disc .icon { width: 22px; height: 22px; color: var(--off); }
.disc .nm { min-width: 0; line-height: 1.25; }

/* crédits des photos de Wikipédia (licences libres : auteur et licence toujours indiqués) */
.credit { margin: 6px 2px 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.credit a, .credits a { color: inherit; }
.credits { margin: 28px 2px 0; font-size: 13px; color: var(--muted); }
.credits summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; font-weight: 600; }
.credits ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; line-height: 1.4; }
.credits b { color: var(--ink); font-weight: 600; }
.sp-side { min-width: 0; }
.ref-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn.small { flex: 0 0 auto; min-height: 40px; padding: 0 14px; font-size: 14px; display: inline-flex; align-items: center;
  justify-content: center; background: var(--card); }
label.btn { cursor: pointer; position: relative; }
label.btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.ref-missing { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft);
  border: 1px solid var(--warn-line); color: var(--warn-ink); font-size: 14px; }
.ref-missing p { margin: 0; }
.unseen { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.lpo { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; min-height: 32px; font-size: 14px; font-weight: 600;
  color: var(--accent); text-decoration: none; }
.lpo:hover { text-decoration: underline; }
.lpo .icon { width: 16px; height: 16px; }
.credit-input { width: 100%; margin-top: 10px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card); font-size: 14px; color: var(--ink); }
.credit-input::placeholder { color: var(--muted); }

/* fiche espèce */
.spsheet { display: flex; flex-direction: column; gap: 14px; }
.sp-hero { border-radius: 18px; overflow: hidden; background: var(--night); aspect-ratio: 4 / 3; }
.sp-hero .noimg .icon { width: 56px; height: 56px; }
.sp-info h2 { margin-top: 0; }
.meta.sci { margin-top: 2px; font-style: italic; }
.kv { margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.kv div { min-width: 0; }
.kv dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.kv dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.kv.rows { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line-soft); }
.kv.rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 2px;
  border-bottom: 1px solid var(--line-soft); }
.kv.rows dt { font-size: 14px; font-weight: 500; color: var(--muted); }
.kv.rows dd { margin: 0; font-size: 14px; text-align: right; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gallery .ph { position: relative; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--night); }
.linkish.back { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 8px -4px; text-decoration: none; font-size: 14px;
  font-weight: 600; color: var(--accent); min-height: 32px; }
.linkish.back .icon { width: 18px; height: 18px; }
.linkish.inline { display: inline; color: var(--accent); font-weight: 600; }
.btn.fav[aria-pressed="true"] { color: var(--warn-ink); border-color: var(--warn-line); background: var(--warn-soft); }
.btn.fav[aria-pressed="true"] .icon { fill: currentColor; }

/* ---------- statistiques ---------- */
.stats-page.loading { opacity: .6; transition: opacity .2s; }
.stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 16px 16px; min-width: 0; }
.card h2 { margin: 0; font-size: 16px; font-weight: 700; }
.card h3 { margin: 16px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.card .kv.rows { margin-top: 10px; }

/* barres verticales : une série, couleur d'accent, 24 px au plus, bout arrondi, base carrée */
.chart { margin: 12px 0 0; }
.plot { position: relative; height: 150px; padding-top: 20px; }
.plot::before { content: ""; position: absolute; left: 0; right: 0; top: 20px; border-top: 1px solid var(--line-soft); }
.tick { position: absolute; top: 2px; left: 0; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cols { position: relative; height: 100%; display: flex; align-items: stretch; gap: 2px; border-bottom: 1px solid var(--line); }
.col { flex: 1 1 0; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; display: flex;
  align-items: flex-end; justify-content: center; border-radius: 4px 4px 0 0; }
.col .bar { position: relative; display: block; width: 100%; max-width: 24px; min-height: 0; background: var(--accent);
  border-radius: 4px 4px 0 0; transition: filter .15s; }
.col .bar.zero { background: transparent; }
.col .bar b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 3px; font-size: 12px;
  font-weight: 700; color: var(--ink); white-space: nowrap; }
.col.on { background: var(--ground); }
.col.on .bar { filter: brightness(1.15); }
.col:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.xaxis { display: flex; gap: 2px; margin-top: 5px; height: 16px; }
.xaxis span { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; white-space: nowrap; font-size: 11px; color: var(--muted); }
.readout { margin: 8px 0 0; min-height: 20px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.readout b { color: var(--ink); }
.table-view { margin-top: 6px; font-size: 13px; }
.table-view summary { cursor: pointer; color: var(--muted); min-height: 32px; display: flex; align-items: center; }
.table-view table { width: 100%; border-collapse: collapse; margin-top: 4px; font-variant-numeric: tabular-nums; }
.table-view th, .table-view td { padding: 5px 2px; border-bottom: 1px solid var(--line-soft); text-align: left; font-weight: 500; }
.table-view td { text-align: right; }

/* espèces : barres horizontales classées */
.ranks { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.rank { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; min-height: 40px; display: grid; align-items: center; gap: 10px;
  grid-template-columns: minmax(0, 10.5em) minmax(0, 1fr) 2.5em; padding: 4px 2px; border-radius: 10px; }
.rank:focus-visible { outline: 2px solid var(--accent); }
.rank .nm { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank .track { display: block; height: 10px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.rank .fill { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.rank .n { font-size: 14px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* détections : barre segmentée fine + légende avec les chiffres */
.segbar { display: flex; gap: 2px; height: 10px; margin: 14px 0 10px; border-radius: 99px; overflow: hidden; }
.segbar .seg-part { display: block; height: 100%; min-width: 3px; }
.seg-part.birds, .sw.birds { background: var(--c-birds); }
.seg-part.review, .sw.review { background: var(--c-review); }
.seg-part.fp, .sw.fp { background: var(--c-fp); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto 3.2em; align-items: center; gap: 10px; padding: 7px 2px;
  border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.legend .sw { width: 12px; height: 12px; border-radius: 4px; }
.legend .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.legend .p { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.news { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.news .linkish { display: inline; font-weight: 600; }
.news .meta { font-size: 13px; }

/* individus : « Qui est-ce ? » (photos côte à côte), sexe et âge, fiche d'un oiseau */
.ind-name { font-weight: 600; color: var(--accent-ink); }
.species .sub.named { color: var(--accent-ink); font-weight: 600; }
.who, .traits { margin-top: 4px; }
.who-ask { margin: 0 0 10px; font-size: 17px; }
.who-ask b { font-weight: 700; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.compare figure { margin: 0; min-width: 0; }
.cmp { display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--night); }
.cmp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp .noimg .icon { width: 36px; height: 36px; }
.compare figcaption { margin-top: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn.primary.small { background: var(--accent); color: var(--on-accent); }
.meta.more-title { margin-top: 12px; }
.compare-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.compare-more .cmp { border-radius: 10px; }
.who-assigned { display: flex; align-items: center; gap: 12px; }
.who-name { margin: 0; font-size: 17px; }
.avatar { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--line-soft);
  display: inline-flex; align-items: center; justify-content: center; }
.avatar.big { flex-basis: 64px; width: 64px; height: 64px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .icon { width: 22px; height: 22px; color: var(--off); }
.who-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.who-item { all: unset; box-sizing: border-box; cursor: pointer; min-width: 0; min-height: 56px; display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.who-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.who-item .txt { display: flex; flex-direction: column; min-width: 0; }
.who-item .nm { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-item .sub { font-size: 12.5px; color: var(--muted); }
.who-item .sx, .who-name .sx { color: var(--muted); font-weight: 500; }
.who-new { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.who-new input { flex: 1 1 12em; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card); font-size: 16px; color: var(--ink); }
.who-new input::placeholder { color: var(--muted); }
.who-new .seg { flex: 1 1 100%; }
.who-picker { margin-top: 6px; }
.seg.small button { min-height: 40px; font-size: 13.5px; }
.trait { margin-top: 10px; }
.trait-k { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.trait-k .meta { font-weight: 400; font-size: 13px; }
.guess { margin: 8px 0 0; font-size: 14px; }
.ind-edit { margin-top: 22px; font-size: 14px; }
.ind-edit summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-weight: 600; color: var(--muted); }
.ind-edit .btn.danger { margin-top: 12px; }
.meta.sci-plain { margin-top: 2px; }
.ph .tag.juv { position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; border-radius: 5px; background: rgba(0,0,0,.55);
  color: #fff; font-size: 11px; font-weight: 700; }
.rank .nm small { font-size: 12px; font-weight: 400; }
@media (hover: hover) {
  .who-item:hover { border-color: var(--muted); }
}

@media (min-width: 560px) {
  .species-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .discover { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 700px) {
  .species-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
  .discover { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .stats.four { grid-template-columns: repeat(4, minmax(0, 200px)); }
  .plot { height: 170px; }
}
@media (min-width: 900px) {
  .spsheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: start; }
  .sp-hero { aspect-ratio: 1 / 1; }
  .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .card.wide { grid-column: 1 / -1; }
  .card { padding: 18px 20px 20px; }
}
@media (hover: hover) {
  .species { transition: border-color .15s, box-shadow .15s; }
  .species:hover { border-color: var(--line); box-shadow: 0 6px 20px rgba(22, 33, 26, .08); }
  .rank:hover { background: var(--ground); }
  .gallery .ph:hover img { filter: brightness(1.06); }
  .disc:hover { border-color: var(--muted); }
  .disc:hover .thumb img { filter: none; opacity: 1; }
}

/* page de connexion */
.login-page { min-height: 100vh; display: flex; }
.login { flex: 1; display: flex; align-items: center; justify-content: center;
  padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
.login-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 6px;
  padding: 28px 22px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.login-logo { margin: 0 auto 4px; }
.login-card h1 { text-align: center; margin: 0; }
.login-card > .meta { text-align: center; margin: 4px 0 14px; }
.login-card label { margin-top: 8px; font-size: 14px; font-weight: 600; }
.login-card input { min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--ground); font-size: 16px; color: var(--ink); width: 100%; }
.login-card input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.login-card .help { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; }
.login-card .btn { flex: 0 0 auto; margin-top: 16px; min-height: 48px; font-weight: 600; font-size: 16px; }
.login-card .btn[disabled] { opacity: .6; }
.login-card .notice { margin: 10px 0 0; }
.login-card .small { text-align: center; font-size: 12.5px; margin: 12px 0 0; }
#setup-fields, #setup-confirm { display: flex; flex-direction: column; gap: 6px; }
#setup-fields[hidden], #setup-confirm[hidden] { display: none; }

/* page Compte */
.account-btn { margin-top: 4px; color: var(--muted); }
@media (min-width: 1024px) { .account-btn { display: none; } }
.card.acc h2 { margin: 0 0 4px; font-family: var(--display); font-size: 20px; }
.acc-list { list-style: none; margin: 10px 0 0; padding: 0; }
.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0;
  border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.acc-row:first-child { border-top: 0; }
.acc-row .t { margin: 0; font-weight: 600; font-size: 15px; }
.acc-row .s { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.acc-row .ref-actions { margin: 0; }
.pill { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 99px; background: var(--accent-soft);
  color: var(--accent-ink); font-size: 12px; font-weight: 600; vertical-align: 1px; }
.acc-form { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.acc-form h3 { margin: 4px 0; font-size: 16px; }
.acc-form .btn { align-self: flex-start; margin-top: 8px; }
.acc-form .ref-actions .btn { margin-top: 0; }
.acc-label { margin-top: 6px; font-size: 14px; font-weight: 600; }
.acc-input { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--ground); font-size: 16px; color: var(--ink); max-width: 420px; }
.acc-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.acc-add { margin-top: 12px; }
.acc-add summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-weight: 600; color: var(--accent); }
.acc-action { margin-top: 12px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.journal { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13.5px; }
.j-row { display: grid; grid-template-columns: 7.5em 1fr; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.j-row:first-child { border-top: 0; }
.j-row .when { color: var(--muted); font-variant-numeric: tabular-nums; }
.j-row .what { font-weight: 600; }
.j-row .where { grid-column: 2; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.j-row.bad .what { color: var(--warn-ink); }
.card.acc { margin-top: 14px; }
.card.acc .acc-form h3 { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 16px; margin: 4px 0; }
