:root {
  --bg: #f3f5f2; --paper: #fff; --ink: #10231f; --muted: #5f6f6a; --line: #dfe6e2; --soft: #eaf1ec;
  --brand: #10231f; --lime: #c8f169; --lime-ink: #10231f; --green: #1f7a4d; --red: #b4432b; --amber: #9a6a12;
  --info-bg: #eaf2fb; --warn-bg: #fdf3e2; --good-bg: #e8f5ec;
  --radius: 18px; --shadow: 0 1px 2px rgba(16, 35, 31, .05);
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1714; --paper: #13211d; --ink: #e7efeb; --muted: #95a8a1; --line: #243631; --soft: #1a2c27;
    --green: #6fd39a; --red: #f08a73; --amber: #e8b45a; --info-bg: #15263a; --warn-bg: #2d2413; --good-bg: #13301f;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -.035em; line-height: 1.1; }
h2 { font-size: 1.25rem; letter-spacing: -.02em; }
h3 { font-size: 1.05rem; }
p + p { margin-top: .6em; }
a { color: var(--green); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; touch-action: manipulation; }
button:disabled { opacity: .45; cursor: not-allowed; }
input, select, textarea { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.ic { flex-shrink: 0; vertical-align: -3px; }
.muted { color: var(--muted); }
.small, small { font-size: .85rem; }
.good { color: var(--green); }
.bad { color: var(--red); }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); }
.row { display: flex; align-items: center; }
.row.gap { gap: 10px; }
.gap { gap: 10px; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.row.gap:not(:first-child), .alert .row { margin-top: 12px; }

/* ——— Structure ——— */
.shell { min-height: 100vh; }
.nav { position: fixed; z-index: 20; inset: auto 0 0 0; display: flex; justify-content: space-around; background: var(--paper); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.brand, .sync-pill { display: none; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; }
.tab.active { color: var(--ink); background: var(--soft); }
.main { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); max-width: 1180px; margin: 0 auto; }
@media (min-width: 900px) {
  .nav { inset: 0 auto 0 0; width: 220px; flex-direction: column; justify-content: flex-start; gap: 6px; padding: 28px 16px; border-top: 0; border-right: 1px solid var(--line); }
  .brand { display: flex; align-items: center; gap: 10px; font-size: 1.7rem; font-weight: 800; letter-spacing: -.06em; margin: 0 8px 28px; }
  .brand b { color: var(--green); }
  .mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--brand); color: var(--lime); }
  .tab { flex-direction: row; gap: 12px; font-size: .95rem; padding: 12px 14px; }
  .sync-pill { display: flex; gap: 6px; align-items: center; margin-top: auto; font-size: .8rem; color: var(--muted); padding: 8px; }
  .main { margin-left: 220px; padding: 36px 40px 60px; }
}
.page-head { margin-bottom: 22px; }
.page-head h1 { margin: 6px 0 6px; }
.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.grid > .card { margin-bottom: 0; }
.stack { display: grid; gap: 16px; align-content: start; }
.stack > * { margin-bottom: 0 !important; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid.two:has(> .stack) { grid-template-columns: 1.35fr 1fr; } }

/* ——— Cartes ——— */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card-title { font-size: 1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.scroll-x { overflow-x: auto; }
.hero { background: var(--brand); color: #eef5f1; border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; }
.hero > .ic { color: var(--lime); }
.hero .eyebrow { color: var(--lime); }
.hero h2 { font-size: 1.6rem; }
.hero p { color: #c3d3cb; }
.hero .link { color: var(--lime); }
.hero .muted { color: #9fb5ab; }
.hero.done > .ic { color: #7ee2a8; }
.ex-mini { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: ex; display: grid; gap: 2px; }
.ex-mini li { counter-increment: ex; display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.card .ex-mini li { border-color: var(--line); }
.ex-mini li::before { content: counter(ex); font-weight: 700; opacity: .5; width: 1.4em; }
.ex-mini li span, .ex-mini li .link { flex: 1; text-align: left; }
.ex-mini small { opacity: .75; white-space: nowrap; }
.checklist { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; }
.checklist .ic { color: var(--lime); margin-top: 4px; }
.checklist small { display: block; color: #a9bdb4; }
.plain { margin: 6px 0; padding-left: 1.2em; display: grid; gap: 4px; }
.plain.detail { list-style: none; padding: 0; }
.plain.detail small { display: block; color: var(--muted); }

/* ——— Boutons ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 650; text-decoration: none; line-height: 1.2; }
@media (prefers-color-scheme: dark) { .btn { background: #2b4a42; } }
.btn.lime { background: var(--lime); color: var(--lime-ink); }
.btn.secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.hero .btn.secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn.danger { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn.small { padding: 8px 12px; font-size: .88rem; border-radius: 10px; }
.btn.block { width: 100%; margin-top: 8px; }
.btn.big { padding: 18px; font-size: 1.15rem; }
.link { color: var(--green); font-weight: 600; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink); }
.icon-btn:hover { background: var(--soft); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--lime); color: var(--lime-ink); }
.badge.ok { background: var(--good-bg); color: var(--green); font-size: .85rem; padding: 6px 12px; }
.resume { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--lime); color: var(--lime-ink); border-radius: 14px; padding: 12px 16px; font-weight: 650; margin-bottom: 18px; text-align: left; }
.resume span { margin-left: auto; display: flex; gap: 6px; align-items: center; }

/* ——— Alertes et coach ——— */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-bottom: 14px; background: var(--info-bg); }
.alert.warn { background: var(--warn-bg); }
.alert.small { padding: 10px 12px; font-size: .88rem; }
.alert > .ic { margin-top: 2px; }
.coach { border-left: 4px solid var(--muted); padding-left: 14px; display: grid; gap: 8px; }
.coach.good { border-color: var(--green); }
.coach.warn { border-color: var(--amber); }
.coach.info { border-color: #4b8bd6; }
.coach .btn { justify-self: start; }

/* ——— Journal ——— */
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 12px; }
.field { display: grid; gap: 6px; font-size: .88rem; }
.field > span { color: var(--muted); font-weight: 600; }
.field output { font-weight: 700; font-size: 1.1rem; }
.field input[type=range] { padding: 0; border: 0; accent-color: var(--green); }
.input-unit { position: relative; }
.input-unit input { padding-right: 58px; font-size: 1.05rem; font-weight: 600; }
.input-unit em { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: .78rem; pointer-events: none; }
.drinks { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper b { min-width: 2ch; text-align: center; font-size: 1.2rem; }
.stepper .icon-btn { border: 1px solid var(--line); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.check input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--green); margin: 1px 0 0; }
.hero .check { border-color: rgba(255, 255, 255, .12); }

/* ——— Semaine ——— */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 10px; }
.day { display: grid; justify-items: center; gap: 1px; padding: 8px 2px; border-radius: 12px; background: var(--soft); border: 2px solid transparent; font-size: .75rem; color: var(--muted); position: relative; }
.day b { font-size: 1.05rem; color: var(--ink); }
.day small { font-size: .62rem; overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.day.today { border-color: var(--green); }
.day.done { background: var(--good-bg); color: var(--green); }
.day.done > .ic { position: absolute; top: 3px; right: 3px; }
.day.missed small { color: var(--red); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin-bottom: 10px; }
.kpis > div { background: var(--soft); border-radius: 12px; padding: 12px; display: grid; }
.kpis b { font-size: 1.5rem; letter-spacing: -.03em; }
.kpis em { font-style: normal; font-size: .75rem; color: var(--muted); }

/* ——— Séance guidée ——— */
.focus { min-height: 100vh; }
.focus-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: var(--paper); border-bottom: 1px solid var(--line); }
.focus-bar > div { flex: 1; display: grid; min-width: 0; }
.focus-bar b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus-bar small { color: var(--muted); font-variant-numeric: tabular-nums; }
.focus-body { max-width: 720px; margin: 0 auto; padding: 16px 16px 120px; }
.scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; margin: 12px 0; }
.scale button { padding: 10px 0; border-radius: 8px; background: var(--soft); font-weight: 700; }
.scale button.on { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .scale button.on { background: var(--lime); color: var(--lime-ink); } }
.ex.current { border: 2px solid var(--green); }
.ex.complete { opacity: .72; }
.ex.skipped { opacity: .5; }
.ex-head { display: flex; justify-content: space-between; gap: 10px; }
.ex-head h3 { font-size: 1.2rem; margin: 2px 0; }
.scheme { margin: 10px 0 6px; }
.note { font-size: .9rem; background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.plates { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.plates.warn { color: var(--amber); }
.sets { display: grid; gap: 8px; margin: 14px 0 10px; }
.set { display: flex; align-items: center; gap: 8px; }
.set .n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.set label { position: relative; flex: 1; }
.set input { font-size: 1.15rem; font-weight: 700; padding: 10px 44px 10px 12px; text-align: center; }
.set label em { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: .78rem; }
.set.done input { background: var(--good-bg); border-color: transparent; }
.tick { width: 48px; height: 46px; border-radius: 12px; border: 2px solid var(--line); display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.tick.on { background: var(--green); border-color: var(--green); color: #fff; }
.feel { display: flex; gap: 4px; }
.feel button { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: .85rem; }
.feel button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (prefers-color-scheme: dark) { .feel button.on { background: var(--lime); color: var(--lime-ink); } }
.rest-bar { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 696px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; background: var(--brand); color: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.rest-bar > div:first-child { display: grid; }
.rest-bar b { font-size: 1.8rem; font-variant-numeric: tabular-nums; line-height: 1; }
.rest-bar .btn.secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.rest-bar .btn:not(.secondary) { background: var(--lime); color: var(--lime-ink); }
.finisher .card-title .ic { color: var(--red); }

/* ——— Minuteur ——— */
.timer { display: grid; gap: 12px; text-align: center; padding: 18px 0; }
.timer.idle { text-align: left; }
.timer h2 { font-size: 1.6rem; }
.timer .clock { font-size: clamp(4.5rem, 24vw, 8rem); font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.timer.work .clock, .timer.work h2 { color: var(--green); }
.timer.rest .clock { color: #4b8bd6; }
.timer.finished h2 { color: var(--green); }
.progress { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; margin: 6px 0; }
.progress span { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .25s linear; }
.phases { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 4px; }
.phases li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: var(--soft); }
.phases li.work { background: var(--good-bg); }

/* ——— Progrès ——— */
.stat { display: grid; gap: 4px; }
.stat > b { font-size: 2rem; letter-spacing: -.03em; }
.stat em { font-style: normal; font-size: 1rem; color: var(--muted); }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .target { stroke: var(--green); stroke-dasharray: 5 5; stroke-width: 1.5; }
.chart .target-label { fill: var(--green); }
.chart .dot { fill: var(--muted); opacity: .45; }
.chart polyline { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .line { stroke: var(--green); }
.chart .line-pt { fill: var(--green); }
.chart .alt { stroke: #4b8bd6; }
.chart-empty { padding: 36px 12px; text-align: center; color: var(--muted); background: var(--soft); border-radius: 12px; }
.legend { font-size: .78rem; color: var(--muted); display: flex; gap: 14px; align-items: center; margin-top: 6px; }
.legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.legend i.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; }
.legend i.line { background: var(--green); }
.lifts { display: grid; gap: 8px; }
.lift { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.lift > div { flex: 1; display: grid; }
.lift small { color: var(--muted); }
.spark polyline { fill: none; stroke: var(--green); stroke-width: 2; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px; border-bottom: 2px solid var(--line); }
.table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.history { display: grid; }
.h-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.h-row > div { flex: 1; display: grid; min-width: 0; }
.h-row small { color: var(--muted); }
.h-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--soft); flex-shrink: 0; }

/* ——— Programme ——— */
.why p { max-width: 75ch; }
.cycle { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-bottom: 12px; }
.cw { text-align: center; padding: 8px 0; border-radius: 8px; font-weight: 700; font-size: .85rem; }
.cw.b1 { background: #dff0e5; color: #1f5d3c; }
.cw.b2 { background: #cfe7f5; color: #1c4f75; }
.cw.b3 { background: #f6dfcf; color: #7a3d17; }
.cw.deload { opacity: .55; }
.cw.now { outline: 3px solid var(--ink); outline-offset: 1px; }
.blocks { display: grid; gap: 8px; margin-bottom: 10px; }
@media (min-width: 760px) { .blocks { grid-template-columns: repeat(3, 1fr); } }
.blk { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border-left: 4px solid; background: var(--soft); }
.blk.b1 { border-color: #3a9a64; } .blk.b2 { border-color: #3b86bd; } .blk.b3 { border-color: #c46a2d; }
.blk small { color: var(--muted); }
.levers { display: grid; gap: 10px; margin: 12px 0; }
@media (min-width: 760px) { .levers { grid-template-columns: repeat(4, 1fr); } }
.levers > div { background: var(--soft); border-radius: 12px; padding: 12px; }
.levers p { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.rules { display: grid; gap: 8px; padding-left: 1.3em; margin: 0; }

/* ——— Modale et toast ——— */
dialog { border: 0; border-radius: 20px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: 88vh; background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
dialog::backdrop { background: rgba(8, 18, 15, .55); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 16px 0 20px; }
.modal-body { padding: 12px 20px 20px; display: grid; gap: 12px; overflow-y: auto; }
.how { padding-left: 1.2em; display: grid; gap: 6px; margin: 0; }
.list { display: grid; gap: 6px; }
.list-item { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.list-item:hover { background: var(--soft); }
.list-item > div, .list-item:not(:has(> div)) { display: grid; }
.list-item small { color: var(--muted); }
#toast { position: fixed; z-index: 50; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; transition: .25s; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.fatal { max-width: 640px; margin: 10vh auto; padding: 20px; display: grid; gap: 14px; }

/* ——— Repas ——— */
@media (max-width: 899px) { .tab { flex: 1; min-width: 0; padding: 6px 2px; } .tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.idea { display: grid; gap: 8px; align-content: start; }
.idea .card-title { margin-bottom: 0; }
.seg { display: flex; gap: 4px; background: var(--soft); padding: 4px; border-radius: 12px; margin: 12px 0 8px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; padding: 8px 12px; border-radius: 9px; font-weight: 650; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.seg.small { margin: 0; justify-self: start; }
.seg.small button { padding: 5px 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); font-size: .85rem; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (prefers-color-scheme: dark) { .chip.on { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); } }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip:has(input:checked) { background: var(--warn-bg); border-color: var(--red); color: var(--red); text-decoration: line-through; }
.check-chip:has(input:focus-visible) { outline: 2px solid var(--green); }
.fam { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 4px; }
.meals { display: grid; }
.meal { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.meal-main { flex: 1; min-width: 0; display: grid; gap: 2px; text-align: left; padding: 12px 0; }
.meal-main small { color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.badge.soft { background: var(--good-bg); color: var(--green); }
.badge.muted { background: var(--soft); color: var(--muted); font-weight: 600; }
.votes { display: flex; gap: 2px; flex-shrink: 0; }
.vote { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); }
.vote:hover { background: var(--soft); }
.vote.like.on { color: var(--red); }
.vote.like.on svg { fill: currentColor; }
.vote.nope.on { color: #fff; background: var(--muted); }
.hidden-list { opacity: .75; }
.ing { margin: 6px 0 0; padding-left: 1.2em; display: grid; gap: 3px; }
.ing li.off { text-decoration: line-through; color: var(--muted); }
.ing li.bad { color: var(--red); }
.ing small { color: var(--muted); }
.protein-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.protein-list > div { background: var(--soft); border-radius: 12px; padding: 10px 12px; display: grid; }
.protein-list small { color: var(--muted); }
textarea { resize: vertical; }

/* ——— Journal : matin / bilan ——— */
.journal .j-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.journal .j-head h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 1rem; }
.journal .j-head.bilan { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.journal .saved { margin: 10px 0 0; display: flex; align-items: center; gap: 6px; }
input.invalid { border-color: var(--red); outline-color: var(--red); }

/* ——— Mode essai ——— */
.trial-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--red); font-size: .72rem; font-weight: 700; vertical-align: middle; }
