:root {
  --brand: #ffe600;        /* jaune CapT&fun */
  --brand-dark: #7a5f00;   /* jaune foncé lisible (liens, textes) */
  --brand-ink: #26292c;    /* texte posé sur le jaune */
  --brand-soft: #fffbcc;
  --ink: #2b2f33;          /* gris anthracite */
  --ink-2: #555b61;
  --muted: #868c92;
  --line: #e3e5e7;
  --bg: #f2f3f4;
  --card: #ffffff;
  --ok: #2b8a3e;
  --ok-bg: #e9f7ec;
  --warn: #b35c00;
  --warn-bg: #fff4e5;
  --err: #c92a2a;
  --err-bg: #fdecec;
  --info-bg: #e7f1fb;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 33, 43, .06), 0 2px 8px rgba(20, 33, 43, .05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--brand-dark); }
h1 { font-size: 1.55rem; margin: 0 0 .25rem; line-height: 1.25; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
p { margin: 0 0 .75rem; }
small, .muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 1rem; }
.mb0 { margin-bottom: 0; }

/* ---------- En-tête ---------- */
.topbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 10; }
.topbar .inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 16px; min-height: 56px; }
.logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: .3px; white-space: nowrap; }
.logo span { color: var(--brand); }
.logo img { display: block; height: 44px; width: auto; border-radius: 8px; background: var(--brand); }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #cfd8de; text-decoration: none; padding: 8px 11px; border-radius: 7px; white-space: nowrap; font-size: .93rem; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.active { color: var(--brand-ink); background: var(--brand); font-weight: 600; }
.who { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: #cfd8de; white-space: nowrap; }
.who form { margin: 0; }
.who button { background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; padding: 5px 10px; border-radius: 7px; cursor: pointer; font-size: .85rem; }
.who button:hover { background: rgba(255,255,255,.1); }

@media (max-width: 760px) {
  .topbar .inner { flex-wrap: wrap; gap: 6px 12px; padding: 8px 16px 0; }
  .nav { order: 3; flex-basis: 100%; padding-bottom: 6px; }
  .who { margin-left: auto; }
  .who .name { display: none; }
}

/* ---------- Mise en page ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 48px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }

.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; text-decoration: none; color: inherit; display: block; }
.stat .v { font-size: 1.7rem; font-weight: 750; line-height: 1.1; }
.stat .l { color: var(--ink-2); font-size: .88rem; }
.stat.alert .v { color: var(--err); }
.stat.warn .v { color: var(--warn); }

/* ---------- Messages ---------- */
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; border: 1px solid transparent; }
.flash.ok { background: var(--ok-bg); color: #1e5e2b; border-color: #c4e6cc; }
.flash.err { background: var(--err-bg); color: #8f1f1f; border-color: #f4c7c7; }
.flash.info { background: var(--info-bg); color: #184c7a; border-color: #c6dcf2; }
.linkbox { display: flex; gap: 8px; margin-top: 8px; }
.linkbox input { flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: .82rem; }

/* ---------- Boutons ---------- */
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 14px; border-radius: 8px; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #c5cfd5; background: #fafbfb; }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: #e6cf00; }
.btn.primary:hover { background: #f5dc00; border-color: #d9c200; }
.btn.danger { color: var(--err); border-color: #f0c2c2; }
.btn.danger:hover { background: var(--err-bg); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.small { padding: 4px 10px; font-size: .84rem; }
.btn.block { width: 100%; }
.inline { display: inline; margin: 0; }

/* ---------- Formulaires ---------- */
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=datetime-local], input[type=number], input[type=tel], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #cdd0d3; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(255, 230, 0, .55); border-color: #d9c200; }
textarea { min-height: 84px; resize: vertical; }
input[type=color] { width: 48px; height: 38px; padding: 2px; border: 1px solid #cdd0d3; border-radius: 8px; background: #fff; }
.field { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; color: var(--ink); }
.check input { margin-top: 4px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters input, .filters select { width: auto; }
.filters input[type=search] { min-width: 200px; }
.hp { position: absolute; left: -9999px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 4px; margin: 0 0 14px; }
legend { font-weight: 700; font-size: .9rem; padding: 0 6px; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 650; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfb; }
td.actions { white-space: nowrap; text-align: right; }
td a.rowlink { color: var(--ink); font-weight: 600; text-decoration: none; }
td a.rowlink:hover { color: var(--brand-dark); text-decoration: underline; }

/* ---------- Pastilles ---------- */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 650; background: #eef1f3; color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.err { background: var(--err-bg); color: var(--err); }
.badge.info { background: var(--info-bg); color: #1c5d99; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.group-tag { display: inline-flex; align-items: center; font-size: .85rem; white-space: nowrap; }

/* ---------- Onglets ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a.active { color: var(--brand-dark); border-bottom-color: var(--brand); }

/* ---------- Listes de séances ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: none; }
.list .grow { flex: 1; min-width: 0; }
.list .t { font-weight: 650; }
.list .s { color: var(--ink-2); font-size: .88rem; }
.datebox { width: 52px; flex: none; text-align: center; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); padding: 5px 0; line-height: 1.1; }
.datebox .d { font-size: 1.25rem; font-weight: 800; }
.datebox .m { font-size: .72rem; text-transform: uppercase; font-weight: 700; }
.cancelled .t { text-decoration: line-through; color: var(--muted); }
.empty { color: var(--muted); padding: 14px 0; text-align: center; }

/* ---------- Programme : semaines ---------- */
.week { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.week-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding: 10px 16px; background: #fbfcfc; border-bottom: 1px solid var(--line); }
.week-head b { font-size: .95rem; }
.week-head .sum { color: var(--ink-2); font-size: .86rem; }
.week.current { outline: 2px solid var(--brand); }
.wo { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.wo:last-child { border-bottom: none; }
.wo .when { width: 78px; flex: none; font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.wo .when.today { color: var(--brand-dark); }
.wo .body { flex: 1; min-width: 0; }
.wo .type { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #fff; padding: 2px 7px; border-radius: 5px; margin-right: 6px; vertical-align: 1px; }
.wo .title { font-weight: 650; }
.wo .details { white-space: pre-line; color: var(--ink-2); font-size: .9rem; margin-top: 4px; }
.wo .meta { font-size: .84rem; color: var(--muted); margin-top: 3px; }
.wo.done { background: #f6fbf7; }
.wo .side { flex: none; text-align: right; }
.feedback { background: #f4f6f7; border-radius: 8px; padding: 8px 10px; font-size: .88rem; margin-top: 6px; white-space: pre-line; }
details.done-form summary { cursor: pointer; list-style: none; }
details.done-form summary::-webkit-details-marker { display: none; }
details.done-form[open] { flex-basis: 100%; }
.done-panel { margin-top: 10px; padding: 12px; background: #fbfcfc; border: 1px solid var(--line); border-radius: 8px; text-align: left; }
@media (max-width: 640px) {
  .wo { flex-wrap: wrap; }
  .wo .when { width: 100%; }
  .wo .side { width: 100%; text-align: left; }
}

/* ---------- Pages publiques ---------- */
.auth { max-width: 440px; margin: 6vh auto 0; }
.auth .brand { text-align: center; margin-bottom: 18px; }
.auth .brand .logo { color: var(--ink); font-size: 2rem; }
.auth .brand .logo span { color: var(--brand); }
.brand-logo { display: block; width: 180px; height: auto; margin: 0 auto 6px; border-radius: 18px; box-shadow: var(--shadow); background: var(--brand); }
.logo img { display: block; height: 44px; width: auto; border-radius: 8px; background: var(--brand); }
.auth .brand p { color: var(--ink-2); margin: 4px 0 0; }
.auth.wide { max-width: 640px; }

footer.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 0 16px 24px; }

.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 12px; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv { grid-template-columns: minmax(0, 1fr); } .kv dd { margin-bottom: 6px; } }

.progress { height: 8px; background: #edf0f2; border-radius: 99px; overflow: hidden; min-width: 80px; }
.progress > span { display: block; height: 100%; background: var(--ok); }

/* ---------- Programme : mise en page coach ---------- */
.plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.plan-layout aside .card + .card { margin-top: 16px; }
.plan-layout .sticky { position: sticky; top: 72px; }
@media (max-width: 960px) {
  .plan-layout { grid-template-columns: minmax(0, 1fr); }
  .plan-layout aside { order: -1; }
  .plan-layout .sticky { position: static; }
}
.details-text { white-space: pre-line; color: var(--ink-2); }
details.card summary { cursor: pointer; }
select[multiple] { padding: 4px; }
.entry-grid { display: grid; grid-template-columns: 150px 110px 130px minmax(0, 1fr) auto; gap: 8px; margin-top: 8px; align-items: end; }
.entry-grid label { font-size: .78rem; margin-bottom: 2px; }
@media (max-width: 700px) {
  .entry-grid { grid-template-columns: 1fr 1fr; }
  .entry-grid .entry-btn { grid-column: 1 / -1; }
}

/* ---------- VMA ---------- */
.vma-badge { display: inline-flex; align-items: baseline; gap: 6px; background: var(--brand); color: var(--brand-ink); border-radius: 10px; padding: 6px 12px; font-weight: 800; font-size: 1.2rem; }
.vma-badge small { color: var(--brand-ink); font-weight: 600; font-size: .78rem; opacity: .75; }
.vma-table td, .vma-table th { padding: 6px 8px; }
.vma-table tr.vma-100 td { background: var(--brand-soft); }

/* ---------- Impression ---------- */
.print-only { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 12px; }
  .topbar, .no-print, footer.foot, .flash, .tabs, .linkbox { display: none !important; }
  .print-only { display: block; }
  main { padding: 0; max-width: none; }
  .card, .stat, .week { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  a { color: inherit; text-decoration: none; }
  .badge { border: 1px solid #bbb; }
  .vma-table tr.vma-100 td { background: #eee; }
}
.print-head { margin-bottom: 10px; } .print-head img { vertical-align: middle; border-radius: 6px; background: var(--brand); margin-right: 8px; }

/* ---------- Profil sportif ---------- */
.form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.days { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-top: 6px; }
.days .check { margin: 0; }
fieldset.health { border-color: #f0c2c2; background: #fffafa; }
.alerts { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Générateur : graphique de volume ---------- */
.vol-chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; margin: 14px 0 4px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.vol-bar { flex: 1; min-width: 6px; border-radius: 4px 4px 0 0; position: relative; background: #8fb8de; }
.vol-bar span { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: .68rem; color: var(--muted); }
.vol-bar.foncier, .legend.foncier { background: #2e7d32; }
.vol-bar.developpement, .legend.developpement { background: #ef6c00; }
.vol-bar.specifique, .legend.specifique { background: #c62828; }
.vol-bar.affutage, .legend.affutage { background: #1565c0; }
.vol-bar.rec, .legend.rec { background: #b0b7bd; }
.legend { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 3px 0 8px; vertical-align: middle; }
@media (max-width: 640px) { .vol-bar span { display: none; } }

.intensity-note { font-size: .9rem; color: var(--ink-2); }
.intensity-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.intensity-switch .check { margin: 0; }

.mode-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0; }
@media (max-width: 700px) { .mode-compare { grid-template-columns: 1fr; } }
.mode-col { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.mode-col h4 { margin: 0 0 4px; font-size: 1rem; }
.mode-col ul { margin: 6px 0; padding-left: 0; list-style: none; font-size: .9rem; }
.mode-col li { padding-left: 22px; position: relative; margin-bottom: 4px; }
.mode-col .pros li::before { content: "+"; position: absolute; left: 4px; color: var(--ok); font-weight: 800; }
.mode-col .cons li::before { content: "–"; position: absolute; left: 5px; color: var(--err); font-weight: 800; }
details.mode-help summary { cursor: pointer; color: var(--brand-dark); font-weight: 600; margin: 4px 0 8px; }
input[readonly] { background: #f2f3f4; color: var(--ink-2); }

/* ---------- Assistant pas à pas (générateur) ---------- */
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; counter-reset: s; }
.stepper li { flex: 1; min-width: 0; }
.stepper .step { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; }
.stepper li { display: flex; }
.stepper .step { flex: 1; min-width: 0; }
.stepper .num { width: 24px; height: 24px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e6e8ea; color: var(--ink-2); font-size: .8rem; }
.stepper li.current .step { color: var(--ink); outline: 2px solid var(--brand); }
.stepper li.current .num { background: var(--brand); color: var(--brand-ink); }
.stepper li.done .step { color: var(--ink-2); }
.stepper li.done .num { background: var(--ok); color: #fff; }
.stepper .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .stepper li:not(.current) .lbl { display: none; }
  .stepper li:not(.current) { flex: none; }
}
.wizard { max-width: 760px; }
.wizard-search { margin-bottom: 10px; }
.pick-list { display: grid; gap: 8px; }
.pick { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; }
.pick:hover { border-color: #c9ced2; background: #fcfcfc; }
.pick-t { font-weight: 650; flex: 1 1 60%; }
.pick-s { color: var(--ink-2); font-size: .88rem; flex-basis: 100%; }
.pick.radio { padding-left: 42px; position: relative; }
.pick.radio input[type=radio] { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; accent-color: #b39b00; }
.pick.radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.pick select { width: auto; margin-top: 6px; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.wizard-nav .btn.primary { min-width: 180px; }
@media (max-width: 640px) { .wizard-nav .btn { flex: 1; } }
details.week-fold > summary { cursor: pointer; list-style: none; }
details.week-fold > summary::-webkit-details-marker { display: none; }
details.week-fold > summary b::before { content: "▸ "; color: var(--muted); }
details.week-fold[open] > summary b::before { content: "▾ "; }
.fit-link { margin-right: 4px; }
.garmin-card .card-head { flex-wrap: wrap; }

/* App installable (PWA) */
.install-app { border-left: 4px solid var(--accent, #ffe600); }
.install-row { display: flex; gap: 12px; align-items: center; }
.install-row img { border-radius: 12px; flex: none; }
.install-steps { margin: 12px 0 10px; padding-left: 20px; }
[hidden] { display: none !important; }
@media (display-mode: standalone) { .install-app { display: none !important; } }

/* Messagerie */
.nav-badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; border-radius: 9px; background: var(--err); color: #fff; font-size: .72rem; font-weight: 700; line-height: 18px; text-align: center; vertical-align: 1px; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 8px; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 14px; background: #eef0f2; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.bubble.me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble .meta { display: block; margin-top: 4px; font-size: .74rem; opacity: .7; white-space: normal; }
.chat-day { align-self: center; font-size: .78rem; color: var(--muted); margin: 6px 0 2px; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: 0; background: var(--card); padding-top: 8px; }
.chat-form textarea { flex: 1; min-height: 44px; max-height: 40vh; resize: vertical; }
.conv { display: flex; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.conv:last-child { border-bottom: 0; }
.conv:hover { background: #fafafa; }
.conv .avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.conv .txt { flex: 1; min-width: 0; }
.conv .txt .preview { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.unread .txt b { color: var(--ink); }
.annonce { border-left: 4px solid var(--brand); padding: 8px 12px; margin-bottom: 10px; background: var(--brand-soft); border-radius: 0 8px 8px 0; }
.annonce.new { box-shadow: 0 0 0 2px var(--brand) inset; }
.annonce .body { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; }
.notif-status { font-weight: 600; }
.conv .txt b, .conv .txt .preview { display: block; }
.conv > .right { flex: none; font-size: .8rem; }
.thread-card { max-width: 760px; }
