/* Séance en cours — saisie en salle. Liste ou focus sur mobile, deux colonnes sur ordinateur. */
.lv, .lv-sheet {
  --lv-ink: #07102a; --lv-muted: #4f5f7c; --lv-faint: #8b97ad; --lv-blue: #0866ff; --lv-link: #0757de;
  --lv-glass: #ffffffd9; --lv-glass2: #ffffffb8; --lv-edge: #ffffffb3; --lv-line: #07102a14; --lv-hair: #07102a0d;
  --lv-soft: #0866ff17; --lv-soft2: #0866ff2b; --lv-field: #eef2f8; --lv-field2: #e5eaf2;
  --lv-ok: #137a55; --lv-ok-bg: #e1efe8; --lv-danger: #b3362e; --lv-danger-bg: #fdecea; --lv-violet: #6d4fd6; --lv-violet-bg: #8370c929;
  --lv-shadow: 0 18px 50px -24px #0b2a5c40; --lv-ease: cubic-bezier(.22,1,.36,1);
  font-family: TodayJakarta, 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--lv-ink);
}
html[data-today-theme="dark"] :is(.lv, .lv-sheet) {
  --lv-ink: #eef4ff; --lv-muted: #a9bdd8; --lv-faint: #7d90ad; --lv-blue: #3d8bff; --lv-link: #6aa6ff;
  --lv-glass: #13314ad9; --lv-glass2: #16344cb8; --lv-edge: #ffffff17; --lv-line: #ffffff17; --lv-hair: #ffffff0d;
  --lv-soft: #3d8bff24; --lv-soft2: #3d8bff3d; --lv-field: #ffffff12; --lv-field2: #ffffff1c;
  --lv-ok: #5fd3a3; --lv-ok-bg: #5fd3a31f; --lv-danger: #ff8f86; --lv-danger-bg: #ff8f861f; --lv-violet: #b4a3f0; --lv-violet-bg: #b4a3f029;
  --lv-shadow: 0 18px 50px -24px #0009;
}

/* Plein écran sur mobile et tablette : l’en-tête et la barre d’onglets laissent la place à la séance (sortie par « Réduire »).
   Sur desktop, la barre de navigation reste visible pour passer aux autres pages pendant la séance. */
@media (max-width: 1023px) { body[data-live-session="true"] .app-header, body[data-live-session="true"] #nav { display: none !important; } }
body[data-live-session="true"] main { max-width: 1240px; margin: 0 auto; padding: 18px 24px 40px; }
body[data-live-session="true"] .alpine-backdrop { opacity: .55; }
.training-app.is-live { display: block; }
:where(.lv) button { font: inherit; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; flex: none; gap: 0; box-shadow: none; }
:where(.lv, .lv-sheet) button:hover { background: none; }
:where(.lv, .lv-sheet) button:disabled { opacity: 1; cursor: default; }
.lv .wellness-icon, .lv-sheet .wellness-icon { width: 20px; height: 20px; }
.lv p { margin: 0; }
.lv :focus-visible, .lv-sheet :focus-visible { outline: 3px solid #75a7ff; outline-offset: 2px; }

/* Barre du haut */
.lv-top { position: sticky; top: 10px; z-index: 20; width: 100%; max-width: none; margin: 0; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 26px; background: var(--lv-glass); border: 1px solid var(--lv-edge); box-shadow: var(--lv-shadow); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); }
.lv-round { display: inline-grid !important; place-items: center; width: 44px; height: 44px; border-radius: 50% !important; background: var(--lv-field) !important; color: var(--lv-ink) !important; flex-shrink: 0 !important; transition: transform .15s var(--lv-ease), background .15s; }
.lv-round:active { transform: scale(.94); }
.lv-round.is-plain { background: transparent !important; }
.lv-round.is-big { width: 52px; height: 52px; }
.lv-title { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.25; }
.lv-title strong { font-size: 17px; font-weight: 750; letter-spacing: -.3px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-title .lv-eyebrow { display: none; }
.lv-meta { font-size: 13px; color: var(--lv-muted); font-variant-numeric: tabular-nums; }
.lv-elapsed { color: var(--lv-blue); font-weight: 700; }
.lv-end { display: inline-flex !important; align-items: center; gap: 6px !important; min-height: 44px !important; padding: 0 18px !important; border-radius: 22px !important; background: var(--lv-blue) !important; color: #fff !important; font-weight: 700 !important; font-size: 15px; }
.lv-end .wellness-icon { display: none; }
.lv-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--lv-muted); }
.lv-eyebrow .wellness-icon { width: 16px; height: 16px; color: var(--lv-blue); }

/* Progression */
.lv-progress { display: flex; gap: 4px; margin: 16px 6px 12px; }
.lv-progress i { flex: 1; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--lv-blue) calc(var(--p) * 100%), var(--lv-line) 0); transition: background .3s; }
.lv-progress i.is-now { box-shadow: 0 0 0 2px var(--lv-soft2); }

/* Liste / Focus */
.lv-mode { display: flex; justify-content: flex-end; gap: 4px; margin: 0 2px 12px; }
.lv-mode button { display: inline-flex !important; align-items: center; gap: 6px !important; min-height: 36px !important; padding: 0 12px !important; border-radius: 18px !important; font-size: 13px; font-weight: 650; color: var(--lv-muted) !important; }
.lv-mode button.is-on { background: var(--lv-glass) !important; color: var(--lv-ink) !important; box-shadow: 0 4px 14px -6px #0b2a5c33; }
.lv-mode .wellness-icon { width: 16px; height: 16px; }

/* Astuce de réorganisation */
.lv-hint { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 8px 10px 14px; border-radius: 16px; background: var(--lv-soft); color: var(--lv-link); font-size: 13px; font-weight: 600; line-height: 1.35; animation: lv-in .35s var(--lv-ease) both; }
.lv-hint > .wellness-icon { width: 18px; height: 18px; flex-shrink: 0; animation: lv-wiggle 2.4s var(--lv-ease) 1s 2; }
.lv-hint > span:not(.wellness-icon) { flex: 1; }
.lv-hint-x { display: inline-grid !important; place-items: center; width: 36px; height: 36px; border-radius: 50% !important; color: var(--lv-link) !important; }
.lv-hint-x .wellness-icon { width: 16px; height: 16px; }
.lv-hint.is-inline { background: transparent; padding: 0; margin: -4px 0 10px; color: var(--lv-muted); font-weight: 500; font-size: 12px; }

/* Cartes d’exercice */
.lv-cards { display: flex; flex-direction: column; gap: 10px; }
.lv-card { background: var(--lv-glass); border: 1px solid var(--lv-edge); border-radius: 24px; box-shadow: 0 10px 30px -22px #0b2a5c40; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: box-shadow .2s, border-color .2s; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.lv-card.is-open { border: 1.5px solid var(--lv-blue); }
.lv-card-head { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 0; }
.lv-card-toggle { flex: 1; min-width: 0; display: flex !important; align-items: center; gap: 12px !important; min-height: 60px !important; padding: 6px 4px 6px 16px !important; text-align: left; }
.lv-card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lv-card-title strong { font-size: 16px; font-weight: 750; letter-spacing: -.2px; display: flex; align-items: center; gap: 6px; }
.lv-sub { font-size: 13px; color: var(--lv-muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-chev { width: 18px !important; height: 18px !important; color: var(--lv-muted); }
.lv-ss { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--lv-violet-bg); color: var(--lv-violet); font-size: 11px; font-weight: 750; letter-spacing: 0; }
.lv-badge { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: var(--lv-soft); color: var(--lv-link); font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.lv-badge.is-now { background: transparent; box-shadow: inset 0 0 0 2px var(--lv-blue); color: var(--lv-blue); }
.lv-badge.is-done { background: var(--lv-blue); color: #fff; }
.lv-badge .wellness-icon { width: 15px; height: 15px; }

/* Poignée : visible en permanence, signale que l’on peut déplacer. */
.lv-grip { display: inline-grid !important; place-items: center; width: 44px; height: 44px; border-radius: 14px !important; color: var(--lv-faint) !important; cursor: grab; touch-action: none; flex-shrink: 0; transition: background .15s, color .15s; }
.lv-grip:hover { background: var(--lv-field) !important; color: var(--lv-ink) !important; }
.lv-grip .wellness-icon { width: 20px; height: 20px; }

/* Glisser-déposer */
body.lv-dragging, body.lv-dragging * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
.is-lifted { pointer-events: none; transform: scale(1.025) rotate(-.4deg); box-shadow: 0 26px 50px -18px #0b2a5c66, 0 0 0 1.5px var(--lv-blue) !important; background: var(--lv-glass) !important; transition: transform .18s var(--lv-ease), box-shadow .18s; }
.is-lifted .lv-grip { background: var(--lv-soft) !important; color: var(--lv-blue) !important; }
.lv-placeholder { border: 1.5px dashed var(--lv-soft2); border-radius: 22px; background: var(--lv-soft); opacity: .7; }
.lv-prog .lv-placeholder { border-radius: 14px; }

/* Tableau des séries */
.lv-card-body { padding: 0 14px 14px; animation: lv-in .25s var(--lv-ease) both; user-select: auto; -webkit-user-select: auto; }
.lv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.lv-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 11px; border-radius: 14px; background: var(--lv-field); color: var(--lv-muted); font-size: 12.5px; font-weight: 600; }
.lv-chip.is-blue { background: var(--lv-soft); color: var(--lv-link); }
.lv-chip.is-small { min-height: 22px; padding: 2px 8px; font-size: 11px; }
.lv-chip.is-btn { cursor: pointer; border: 0; color: var(--lv-ink); }
.lv-chip b { color: var(--lv-link); }
.lv-table { display: flex; flex-direction: column; gap: 6px; }
.lv-tr { display: grid; grid-template-columns: 44px minmax(62px, 1fr) repeat(var(--cols), minmax(56px, 72px)) 50px; align-items: center; gap: 6px; padding: 4px; border-radius: 14px; }
.lv-tr.is-head { padding: 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--lv-muted); }
.lv-tr.is-head > span:nth-child(n+3) { text-align: center; }
.lv-tr.is-done { background: var(--lv-ok-bg); }
.lv-tr.is-next { background: var(--lv-soft); }
.lv-num { display: inline-grid !important; place-items: center; height: 36px; width: 36px; border-radius: 10px !important; background: var(--lv-field2) !important; font-weight: 750 !important; font-size: 14px; }
.lv-num.is-type { color: var(--lv-violet) !important; background: var(--lv-violet-bg) !important; font-size: 12px; }
.lv-prev { font-size: 13px; color: var(--lv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.lv-cell { height: 44px; border-radius: 12px !important; font-size: 18px !important; font-weight: 750 !important; font-variant-numeric: tabular-nums; text-align: center; justify-content: center; display: inline-flex !important; align-items: center; }
.is-next .lv-cell { background: var(--lv-glass) !important; box-shadow: 0 2px 8px -4px #0b2a5c33; }
.is-next .lv-cell.is-set { box-shadow: inset 0 0 0 1.5px var(--lv-blue); }
.is-later .lv-cell, .is-later .lv-prev { color: var(--lv-faint); }
.lv-check { display: inline-grid !important; place-items: center; width: 46px; height: 44px; border-radius: 12px !important; background: var(--lv-field2) !important; color: var(--lv-muted) !important; transition: transform .15s var(--lv-ease), background .2s; }
.lv-check.is-done { background: var(--lv-ok) !important; color: #fff !important; }
html[data-today-theme="dark"] .lv-check.is-done { color: #04261a !important; }
.is-next .lv-check { background: var(--lv-blue) !important; color: #fff !important; }
.lv-check:active:not(:disabled) { transform: scale(.92); }
.lv-add { display: flex !important; width: 100%; align-items: center; justify-content: center; gap: 8px !important; min-height: 48px !important; margin-top: 10px; border-radius: 14px !important; background: var(--lv-field) !important; font-weight: 650 !important; font-size: 14px; }
.lv-add .wellness-icon { width: 18px; height: 18px; color: var(--lv-blue); }
.lv-add.is-quiet { background: transparent !important; border: 1.5px dashed var(--lv-soft2) !important; color: var(--lv-link) !important; }
.lv-empty { padding: 26px 12px; text-align: center; color: var(--lv-muted); font-size: 14px; }
.lv-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 12px; border-radius: 16px; background: var(--lv-field); }
.lv-seg button { min-height: 36px !important; padding: 0 14px !important; border-radius: 12px !important; font-size: 13px; font-weight: 650 !important; color: var(--lv-muted) !important; }
.lv-seg button.is-on { background: var(--lv-glass) !important; color: var(--lv-ink) !important; box-shadow: 0 2px 8px -4px #0b2a5c40; }
.lv-seg.is-wrap { display: flex; }
.lv-seg.is-wrap button { flex: 1 1 auto; min-height: 44px !important; }
.lv-retired { margin: 14px 4px 0; font-size: 13px; color: var(--lv-muted); }
.lv-retired summary { min-height: 44px; padding: 12px 0; }
.lv-retired .lv-link { display: flex !important; min-height: 40px; }
.lv-link { display: inline-flex !important; align-items: center; gap: 6px !important; color: var(--lv-link) !important; font-weight: 650 !important; font-size: 14px; }
.lv-link .wellness-icon { width: 17px; height: 17px; }

/* Focus */
.lv-rail { display: flex; gap: 8px; overflow-x: auto; margin: 0 -24px 12px; padding: 2px 24px 6px; scrollbar-width: none; }
.lv-rail::-webkit-scrollbar { display: none; }
.lv-pill { display: inline-flex !important; align-items: center; gap: 8px !important; flex-shrink: 0 !important; min-height: 44px !important; max-width: 220px; padding: 0 14px 0 8px !important; border-radius: 22px !important; background: var(--lv-glass2) !important; border: 1px solid var(--lv-edge) !important; font-size: 13px; font-weight: 650 !important; }
.lv-pill > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-pill.is-on { background: var(--lv-glass) !important; border-color: var(--lv-blue) !important; }
.lv-pill .lv-badge { width: 26px; height: 26px; font-size: 12px; }
.lv-focus-card { padding: 22px 20px; background: var(--lv-glass); border: 1px solid var(--lv-edge); border-radius: 30px; box-shadow: var(--lv-shadow); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.lv-focus-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.lv-tools { display: flex; gap: 8px; }
.lv-focus-card h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; text-transform: none; }
.lv-focus-card h2 .lv-ss { font-size: 12px; height: 24px; padding: 0 9px; }
.lv-done { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.lv-done-row { display: flex !important; align-items: center; gap: 12px !important; min-height: 56px !important; padding: 0 16px !important; border-radius: 16px !important; background: var(--lv-field) !important; text-align: left; font-size: 15px; }
.lv-done-row > strong { flex: 1; font-weight: 700; }
.lv-done-val { font-weight: 750; font-variant-numeric: tabular-nums; }
.lv-done-row .lv-badge { width: 26px; height: 26px; }
.lv-done-row .lv-link { font-size: 13px; }
.lv-editor { padding: 16px; border: 1.5px solid var(--lv-blue); border-radius: 22px; background: var(--lv-glass); animation: lv-in .3s var(--lv-ease) both; }
.lv-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.lv-editor-title { display: inline-flex !important; align-items: center; gap: 10px !important; min-height: 44px; font-size: 18px; }
.lv-editor-title strong { font-weight: 750; }
.lv-steppers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 22px; margin-bottom: 14px; }
.lv-field { display: flex; flex-direction: column; gap: 6px; }
.lv-label { display: block; font-size: 13px; font-weight: 650; color: var(--lv-muted); margin: 0; }
.lv-stepper { display: flex; align-items: center; gap: 8px; }
.lv-stepper-val { flex: 1; display: flex; flex-direction: column; align-items: center; margin: 0; }
.lv-stepper-val input { width: 100%; min-height: 0; padding: 0; border: 0; background: transparent; text-align: center; font: 800 34px/1.1 TodayJakarta, 'Plus Jakarta Sans', sans-serif; letter-spacing: -1px; color: var(--lv-ink); font-variant-numeric: tabular-nums; border-radius: 10px; }
.lv-stepper-val small { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--lv-muted); }
.lv-rpe { margin-bottom: 14px; }
.lv-rpe-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lv-rpe-list button { min-width: 44px; min-height: 44px !important; padding: 0 10px !important; border-radius: 22px !important; background: var(--lv-field) !important; font-size: 14px; font-weight: 650 !important; color: var(--lv-ink) !important; }
.lv-rpe-list button.is-on { background: var(--lv-ink) !important; color: var(--lv-glass) !important; }
html[data-today-theme="dark"] .lv-rpe-list button.is-on { color: #07102a !important; }
.lv-cta { display: flex !important; align-items: center; justify-content: center; gap: 10px !important; width: 100%; min-height: 56px !important; border-radius: 28px !important; background: var(--lv-blue) !important; color: #fff !important; font-size: 16px; font-weight: 750 !important; box-shadow: 0 12px 28px -12px #0866ffaa !important; transition: transform .15s var(--lv-ease); }
.lv-cta:active { transform: scale(.98); }
.lv-later { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.lv-later-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 16px; background: var(--lv-field); color: var(--lv-faint); font-weight: 650; }
.lv-later-row > span:nth-child(2) { flex: 1; }
.lv-later-row .lv-badge { background: var(--lv-field2); color: var(--lv-faint); width: 24px; height: 24px; font-size: 12px; }
.lv-finished { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px; border-radius: 18px; background: var(--lv-ok-bg); color: var(--lv-ok); font-weight: 700; }
.lv-finished > span { flex: 1; }
.lv-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.lv-navbtn { display: flex !important; align-items: center; gap: 10px !important; min-height: 60px !important; padding: 0 14px !important; border-radius: 18px !important; background: var(--lv-glass2) !important; border: 1px solid var(--lv-edge) !important; text-align: left; min-width: 0; }
.lv-navbtn.is-next { justify-content: flex-end; text-align: right; }
.lv-navbtn > span:not(.wellness-icon) { display: flex; flex-direction: column; min-width: 0; }
.lv-navbtn small { font-size: 11px; color: var(--lv-muted); font-weight: 600; }
.lv-navbtn strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-navbtn:disabled { opacity: .45 !important; }

/* Repos */
.lv-ring { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.lv-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.lv-ring circle { fill: none; stroke-width: 4.5; }
.lv-ring .track { stroke: var(--lv-line); }
.lv-ring circle.bar { stroke: var(--lv-blue); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .3s linear; background: none; margin: 0; min-height: 0; }
.lv-rest { display: flex; align-items: center; gap: 12px; }
.lv-rest-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.lv-rest-copy .lv-label { font-size: 12px; }
.lv-rest-time { font-size: 24px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.lv-rest-of { font-size: 12px; color: var(--lv-muted); font-variant-numeric: tabular-nums; }
.lv-rest-acts { display: flex; gap: 6px; margin-left: auto; }
.lv-pill-btn { min-height: 44px !important; min-width: 48px; padding: 0 12px !important; border-radius: 22px !important; background: var(--lv-field) !important; font-weight: 700 !important; font-size: 14px; font-variant-numeric: tabular-nums; }
.lv-pill-btn.is-blue { background: var(--lv-soft) !important; color: var(--lv-link) !important; }
.lv-rest.is-idle .lv-rest-acts { display: none; }
.lv-rest.is-idle .lv-rest-time { font-size: 18px; color: var(--lv-muted); }
.lv-bottom { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; border-radius: 26px; background: var(--lv-glass); border: 1px solid var(--lv-edge); box-shadow: 0 20px 50px -20px #0b2a5c66; backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); }
.lv-bottom.has-cta .lv-rest.is-idle { display: none; }
.lv-bottom .lv-cta { min-height: 52px !important; }
.lv.is-list, .lv.is-focus { padding-bottom: 110px; }
.lv.is-focus { padding-bottom: 170px; }

@media (max-width: 1023px) { body[data-live-session="true"] #notice { bottom: calc(176px + env(safe-area-inset-bottom)); pointer-events: none; } }

/* Ordinateur */
.lv.is-wide { max-width: 1240px; margin: 0 auto; }
.lv.is-wide .lv-top { padding: 10px 12px; }
.lv.is-wide .lv-title { align-items: flex-start; text-align: left; }
.lv.is-wide .lv-title .lv-eyebrow { display: block; }
.lv.is-wide .lv-end { padding: 0 20px !important; background: var(--lv-glass) !important; color: var(--lv-ink) !important; border: 1px solid var(--lv-line) !important; }
.lv.is-wide .lv-end .wellness-icon { display: block; width: 18px; height: 18px; color: var(--lv-blue); }
.lv.is-wide .lv-meta { font-size: 15px; font-weight: 650; color: var(--lv-ink); }
.lv-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr); gap: 22px; align-items: start; }
.lv-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.lv-col.is-side { position: sticky; top: 96px; }
.lv.is-wide .lv-focus-card { padding: 30px 32px; }
.lv.is-wide .lv-focus-card h2 { font-size: 40px; letter-spacing: -1.5px; }
.lv-rest.is-card { flex-direction: column; align-items: stretch; gap: 14px; padding: 24px; border-radius: 30px; background: var(--lv-glass); border: 1px solid var(--lv-edge); box-shadow: var(--lv-shadow); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.lv-rest.is-card .lv-ring { width: 180px; height: 180px; margin: 4px auto; }
.lv-rest.is-card .lv-ring circle { stroke-width: 3.2; }
.lv-rest.is-card .lv-rest-copy { position: absolute; inset: 0; align-items: center; justify-content: center; }
.lv-rest.is-card .lv-rest-copy .lv-label { display: none; }
.lv-rest.is-card .lv-rest-time { font-size: 44px; letter-spacing: -1.5px; }
.lv-rest.is-card .lv-rest-acts { margin: 0; justify-content: center; flex-wrap: wrap; }
.lv-rest.is-card .lv-rest-acts .is-blue { flex: 1 0 100% !important; min-height: 48px !important; }
.lv-rest.is-card.is-idle .lv-rest-time { font-size: 26px; }
.lv-program { padding: 22px; border-radius: 30px; background: var(--lv-glass); border: 1px solid var(--lv-edge); box-shadow: var(--lv-shadow); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.lv-program h3 { margin: 0 0 12px; font-size: 17px; font-weight: 750; }
.lv-prog { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.lv-prog-row { display: flex; align-items: center; gap: 2px; border-radius: 14px; background: transparent; transition: background .15s; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.lv-prog-row:hover { background: var(--lv-hair); }
.lv-prog-row.is-on { background: var(--lv-soft); }
.lv-prog-go { flex: 1; min-width: 0; display: flex !important; align-items: center; gap: 12px !important; min-height: 48px !important; padding: 0 8px !important; text-align: left; font-size: 14px; }
.lv-prog-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lv-prog-row.is-on .lv-prog-name { font-weight: 750; }
.lv-prog-row.is-done .lv-prog-name { color: var(--lv-muted); }
.lv-prog-count { font-size: 13px; color: var(--lv-muted); font-variant-numeric: tabular-nums; }
.lv-prog-row.is-on .lv-prog-count { color: var(--lv-link); font-weight: 700; }
.lv-prog-row .lv-grip { width: 40px; height: 40px; opacity: .6; }
.lv-prog-row:hover .lv-grip, .lv-prog-row .lv-grip:focus-visible { opacity: 1; }

/* Feuilles */
.lv-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 560px; max-height: min(92dvh, 900px); margin: auto auto 0; padding: 0; border: 0; border-radius: 30px 30px 0 0; background: var(--lv-page, #eef3fa); color: var(--lv-ink); box-shadow: 0 -20px 60px -20px #04101e66; overflow: auto; overscroll-behavior: contain; }
html[data-today-theme="dark"] .lv-sheet { background: #0b2436; }
.lv-sheet::backdrop { background: #04101e59; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lv-sheet.is-entering[open] { animation: lv-up .32s var(--lv-ease) both; }
.lv-sheet-inner { padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); }
.lv-grab { display: block; width: 40px; height: 5px; margin: 2px auto 8px; border-radius: 3px; background: var(--lv-line); }
.lv-sheet-head { width: 100%; max-width: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lv-sheet-head h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.5px; text-transform: none; }
.lv-sheet-head .lv-round { margin-left: auto; }
.lv-sheet-sub { margin: 2px 0 14px; font-size: 14px; color: var(--lv-muted); line-height: 1.45; }
.lv-sheet-body { display: flex; flex-direction: column; gap: 12px; }
:where(.lv-sheet) button { font: inherit; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; flex: none; gap: 0; }
.lv-btn { display: flex !important; align-items: center; justify-content: center; gap: 8px !important; width: 100%; min-height: 52px !important; border-radius: 26px !important; background: var(--lv-blue) !important; color: #fff !important; font-weight: 750 !important; font-size: 15px; }
.lv-btn.is-quiet { background: var(--lv-glass) !important; color: var(--lv-ink) !important; }
.lv-btn.is-danger { background: var(--lv-danger-bg) !important; color: var(--lv-danger) !important; }
.lv-cancel { display: flex !important; align-items: center; justify-content: center; gap: 8px !important; min-height: 44px !important; margin-top: 4px; border-top: 1px solid var(--lv-line) !important; color: var(--lv-danger) !important; font-size: 14px; font-weight: 650 !important; }
.lv-cancel .wellness-icon { width: 18px; height: 18px; }
.lv-btn .wellness-icon { width: 18px; height: 18px; }
.lv-sheet-acts { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 4px; }
.lv-sheet-acts .lv-btn.is-danger { padding: 0 18px !important; }
.lv-menu { display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 20px; background: var(--lv-glass); }
.lv-menu-row { display: flex !important; align-items: center; gap: 14px !important; min-height: 52px !important; padding: 0 12px !important; border-radius: 14px !important; text-align: left; font-size: 15px; font-weight: 650 !important; }
.lv-menu-row:hover { background: var(--lv-hair) !important; }
.lv-menu-row > span:not(.wellness-icon) { flex: 1; min-width: 0; }
.lv-menu-row small { font-size: 13px; color: var(--lv-muted); font-weight: 500; text-align: right; }
.lv-menu-row .wellness-icon { color: var(--lv-blue); }
.lv-menu-row.is-danger, .lv-menu-row.is-danger .wellness-icon { color: var(--lv-danger); }
.lv-menu-row.is-static { cursor: default; }
.lv-menu.is-results { max-height: 46dvh; overflow: auto; }
.lv-search, .lv-select, .lv-textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--lv-line); border-radius: 16px; background: var(--lv-glass); color: var(--lv-ink); font: 500 16px/1.4 TodayJakarta, 'Plus Jakarta Sans', sans-serif; }
.lv-textarea { resize: vertical; }
.lv-custom { font-size: 14px; }
.lv-custom summary { color: var(--lv-link); font-weight: 650; }
.lv-custom[open] { display: flex; flex-direction: column; gap: 10px; }
.lv-diff { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.lv-diff button { min-height: 44px !important; border-radius: 12px !important; background: var(--lv-glass) !important; font-weight: 700 !important; }
.lv-diff button.is-on { background: var(--lv-blue) !important; color: #fff !important; }
.lv-rest-set { display: flex; align-items: center; justify-content: space-between; padding: 8px 6px; }
.lv-rest-set b { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }

/* Pavé numérique */
.lv-sheet.is-keypad .lv-sheet-head { justify-content: flex-end; height: 0; overflow: visible; }
.lv-sheet.is-keypad .lv-sheet-head .lv-round { position: relative; top: 4px; z-index: 1; }
.lv-kp-display { display: flex; flex-direction: column; gap: 2px; padding-right: 54px; }
.lv-kp-big b { font-size: 42px; font-weight: 800; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.lv-kp-big small { font-size: 16px; color: var(--lv-muted); font-weight: 650; }
.lv-kp-helpers { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.lv-kp-helpers .lv-chip { flex-shrink: 0; min-height: 40px; padding: 0 12px; background: var(--lv-glass); }
.lv-kp-fields { display: flex; gap: 6px; }
.lv-kp-fields button { flex: 1; min-height: 40px; border-radius: 12px; background: var(--lv-field); color: var(--lv-muted); font-size: 14px; font-weight: 700; }
.lv-kp-fields button.is-on { background: var(--lv-soft); color: var(--lv-link); }
.lv-kp-types { display: grid; grid-template-columns: .8fr 1.4fr 1.1fr 1.1fr; gap: 5px; }
.lv-kp-types button { min-width: 0; min-height: 44px; padding: 6px 2px; border: 1px solid var(--lv-line); border-radius: 12px; background: var(--lv-glass); font-size: clamp(10px, 2.9vw, 12px); font-weight: 650; white-space: nowrap; }
.lv-kp-types button.is-on { background: var(--lv-soft); color: var(--lv-link); border-color: var(--lv-blue); }
.lv-kp-note { margin: 0; font-size: 12px; line-height: 1.4; color: var(--lv-muted); text-align: center; }
.lv-kp-error { margin: 0; color: var(--lv-danger); font-size: 13px; }
.lv-kp-error:empty, .lv-kp-helpers:empty { display: none; }
.lv-key:disabled { opacity: .35 !important; }
.lv-steppers input[readonly] { cursor: pointer; }
.lv-undo { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 14px; margin: 10px 0; border-radius: 14px; background: var(--lv-soft); font-size: 14px; }
.lv-undo button { min-height: 44px; }
.lv-swipe { position: relative; min-width: 0; overflow: hidden; border-radius: 14px; }
.lv-swipe-content { position: relative; z-index: 1; touch-action: pan-y; transition: transform .2s var(--lv-ease); }
.lv-swipe > .lv-done-row { width: 100%; }
.lv-swipe:has(> .lv-editor) { border-radius: 22px; }
.lv-swipe.is-swiping > .lv-swipe-content { transition: none; user-select: none; }
.lv-swipe-delete { position: absolute; inset: 0 0 0 auto; width: 96px; display: flex !important; flex-direction: column; justify-content: center; align-items: center; gap: 4px !important; border-radius: 0 14px 14px 0 !important; background: var(--lv-danger) !important; color: #fff !important; font-size: 11px !important; font-weight: 700 !important; opacity: 0; }
.lv-swipe.is-revealed > .lv-swipe-delete, .lv-swipe.is-swiping > .lv-swipe-delete { opacity: 1; }
.lv-kp { display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: 8px; }
.lv-key { display: grid !important; place-items: center; min-height: 58px !important; border-radius: 16px !important; background: var(--lv-glass) !important; font-size: 24px !important; font-weight: 700 !important; font-variant-numeric: tabular-nums; transition: transform .1s, background .1s; box-shadow: 0 1px 0 var(--lv-line) !important; }
.lv-key:active { transform: scale(.96); background: var(--lv-field2) !important; }
.lv-key.is-side { background: var(--lv-soft) !important; color: var(--lv-link) !important; font-size: 16px !important; }
.lv-key.is-ok { display: flex !important; gap: 6px !important; background: var(--lv-blue) !important; color: #fff !important; font-size: 16px !important; }
.lv-key .wellness-icon { width: 22px; height: 22px; }

@keyframes lv-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes lv-up { from { transform: translateY(40px); opacity: .4; } }
@keyframes lv-wiggle { 0%, 100% { transform: none; } 20% { transform: translateY(-3px); } 40% { transform: translateY(3px); } 60% { transform: none; } }

@media (min-width: 761px) {
  .lv-sheet { inset: 0; margin: auto; border-radius: 30px; max-height: min(88dvh, 860px); }
  .lv-grab { display: none; }
  .lv-sheet-inner { padding: 22px 24px 24px; }
}
@media (max-width: 760px) {
  body[data-live-session="true"] main { padding: 10px 12px 24px; }
  .lv-tr { grid-template-columns: 40px minmax(48px, 1fr) repeat(var(--cols), minmax(52px, 64px)) 46px; gap: 5px; }
  .lv-focus-card { padding: 18px 16px; border-radius: 26px; }
  .lv-steppers { grid-template-columns: 1fr; }
  .lv-stepper-val input { font-size: 32px; }
}
@media (max-width: 380px) {
  .lv-tr { grid-template-columns: 36px minmax(40px, 1fr) repeat(var(--cols), minmax(48px, 58px)) 44px; }
  .lv-cell { font-size: 16px !important; }
  .lv-end { padding: 0 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .lv *, .lv-sheet, .lv-sheet * { animation: none !important; transition: none !important; }
  .is-lifted { transform: none; }
}
body[data-today-motion="none"] :is(.lv, .lv-sheet) *, body[data-today-motion="none"] .lv-sheet { animation: none !important; transition: none !important; }
.lv-chip.is-up { background: #0f7a4d1a; color: #0f7a4d; font-weight: 750; }
html[data-today-theme="dark"] .lv-chip.is-up { background: #5fd3a31f; color: #5fd3a3; }
.lv-chip.is-up .wellness-icon { width: 14px; height: 14px; }
.lv-chip.is-btn { border: 0; cursor: pointer; min-height: 36px !important; padding: 0 12px !important; display: inline-flex !important; border-radius: 14px !important; }
/* Rest alerts remain reachable in list and focus mode, with a 44 px touch target. */
.lv-notifications{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 18px}
.lv-notifications .lv-pill-btn{min-height:44px;white-space:normal;text-align:left}
.lv-notifications small{font-size:12px;color:var(--lv-faint,#64748b);line-height:1.5;flex:1;min-width:180px}

.lv .lv-name{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;max-width:100%;min-height:44px;cursor:pointer}
.lv-name>.wellness-icon{flex-shrink:0;width:14px;height:14px;color:var(--lv-muted)}
.lv .lv-title .lv-name strong{min-width:0}
