/* ===== LevelPlan V10.3 · agenda (façon Calendrier d'iOS : titre, bande de la semaine, feuille du mois) ===== */
body[data-route=agenda] main { max-width: 1180px; }
body[data-route=agenda] .app { padding-bottom: calc(var(--nav-h) + var(--nav-sb)); }
.ag.day, .ag.week { display: flex; flex-direction: column; height: calc(100vh - var(--top-h) - var(--safe-t) - var(--nav-h) - var(--nav-sb) - 8px); height: calc(100dvh - var(--top-h) - var(--safe-t) - var(--nav-h) - var(--nav-sb) - 8px); min-height: 420px; }
@media (min-width: 1024px) {
  body[data-route=agenda] .app { padding-bottom: 0; }
  .ag.day, .ag.week { height: calc(100dvh - var(--top-h) - var(--safe-t) - 8px); }
}

/* ---------- en-tête ---------- */
.aghead { flex: none; padding-bottom: 6px; }
.agtop { display: flex; align-items: center; gap: 6px; min-height: 46px; margin: 0 0 4px; }
.agtitle { flex: 1; min-width: 0; margin: 0; font-family: var(--font-d); font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agtitle em { font-style: normal; color: var(--acs); }
.agtbtn { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; padding: 6px 6px 6px 2px; margin-left: -2px; border-radius: 12px; font: inherit; letter-spacing: inherit; color: inherit; text-align: left; white-space: nowrap; overflow: hidden; }
.agtbtn .chev { width: 18px; height: 18px; flex: none; color: var(--acs); margin-top: 2px; transition: transform .2s; }
.agtbtn:hover { background: var(--s2); }
.agtbtn:active .chev { transform: translateX(2px); }
.agacts { display: flex; align-items: center; gap: 6px; flex: none; }
.agarrows { display: none; align-items: center; gap: 2px; margin-right: 4px; }
.agarrows .btn { margin-left: 4px; }
.agview { position: relative; }
.agvbtn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 9px 0 11px; border-radius: 99px; background: var(--s2); border: 1px solid var(--line2); color: var(--tx); font-size: 13px; font-weight: 650; white-space: nowrap; }
.agvbtn > svg { width: 17px; height: 17px; color: var(--acs); }
.agvbtn .cv { display: inline-flex; color: var(--mu); transition: transform .2s; }
.agvbtn .cv svg { width: 14px; height: 14px; }
.agvbtn[aria-expanded=true] { border-color: var(--acline); }
.agvbtn[aria-expanded=true] .cv { transform: rotate(180deg); }
.agmenu { position: absolute; z-index: 40; right: 0; top: calc(100% + 6px); min-width: 200px; padding: 6px; border-radius: 16px; background: var(--s2); border: 1px solid var(--line2); box-shadow: 0 18px 44px #0009; }
.agmenu button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 11px; font-size: 14.5px; font-weight: 600; color: var(--tx); text-align: left; }
.agmenu button > svg { width: 19px; height: 19px; color: var(--mu); flex: none; }
.agmenu button[aria-checked=true] > svg { color: var(--acs); }
.agmenu button:hover, .agmenu button:focus-visible { background: var(--s3); outline: none; }
.agmenu .ck { margin-left: auto; display: inline-flex; color: var(--acs); }
.agmenu .ck svg { width: 16px; height: 16px; }
.agadd { width: 36px; height: 36px; border-radius: 50%; background: var(--ac); color: var(--actx); box-shadow: 0 4px 14px color-mix(in srgb, var(--ac) 30%, transparent); }
.agadd svg { width: 20px; height: 20px; }
.agadd:hover { background: var(--ac2); }
.ibtn.agadd { border-radius: 50%; }

/* ---------- bande de la semaine ---------- */
.wkstrip { display: flex; align-items: stretch; margin: 0 -8px; touch-action: pan-y; }
.wsnav { flex: none; width: 26px; display: grid; place-items: center; color: var(--mu2); border-radius: 10px; }
.wsnav svg { width: 16px; height: 16px; }
.wsnav:hover { color: var(--tx); background: var(--s2); }
.wsdays { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wsd { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 0 3px; border-radius: 14px; min-width: 0; }
.wsd .wdn { font-size: 11.5px; color: var(--mu); }
.wsd b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tx); transition: background .15s, color .15s; }
.wsd.today b { color: var(--acs); }
.wsd.sel b { background: var(--ac); color: var(--actx); box-shadow: 0 4px 14px color-mix(in srgb, var(--ac) 32%, transparent); }
.wsd.sel .wdn { color: var(--tx); }
.wsd:not(.sel):hover b { background: var(--s2); }
.wdots { display: flex; justify-content: center; gap: 3px; height: 5px; }
.wdots i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
.wdots i.dn { opacity: .45; }

/* ---------- « Aujourd'hui » flottant, suggestion ---------- */
.tlwrap { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.agtoday { position: absolute; z-index: 8; left: 50%; bottom: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 99px; background: color-mix(in srgb, var(--s3) 94%, transparent); border: 1px solid var(--acline); color: var(--tx); font-size: 13.5px; font-weight: 650; white-space: nowrap; box-shadow: 0 10px 26px #0007; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.agtoday svg { width: 15px; height: 15px; color: var(--acs); }
.agsugg { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 10px; margin: 0 0 8px; border-radius: 14px; background: var(--vgbg); border: 1px solid color-mix(in srgb, var(--vg) 30%, transparent); }
.agsugg p { flex: 1; min-width: 0; margin: 0; line-height: 1.3; }
.agsugg p b { display: block; font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agsugg p span { display: block; font-size: 12px; color: var(--tx2); }
.agsugg .sbtn { display: flex; gap: 2px; flex: none; }

/* ---------- bande « toute la journée » ---------- */
.allday { flex: none; display: flex; gap: 0; margin-bottom: 6px; }
.adlab { width: 44px; flex: none; }
.adgrid { flex: 1; display: grid; gap: 3px; grid-auto-flow: row dense; }
.allday.wk .adgrid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.adchip { height: 26px; padding: 0 8px; border-radius: 7px; background: color-mix(in srgb, var(--c) 24%, var(--s1)); border-left: 3px solid var(--c); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adchip.st-done { opacity: .6; }

/* ---------- grille horaire ---------- */
.tl-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; position: relative; border-top: 1px solid var(--line); outline: none; -webkit-overflow-scrolling: touch; }
.ag.day .tl-scroll { touch-action: pan-y; }
.tl { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); }
.tl-hours { position: relative; }
.tl-hours span { position: absolute; right: 7px; transform: translateY(-50%); font-size: 10.5px; color: var(--mu2); font-variant-numeric: tabular-nums; }
.tl-cols { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.tl-col { position: relative; container-type: inline-size; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, var(--grid2) 0, var(--grid2) 1px, transparent 1px, transparent var(--hh)), repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hh) / 2), var(--grid) calc(var(--hh) / 2), var(--grid) calc(var(--hh) / 2 + 1px), transparent calc(var(--hh) / 2 + 1px), transparent var(--hh)); }
.tl-col.today { background-color: color-mix(in srgb, var(--ac) 4%, transparent); }
.tl-col.past .tl-work { opacity: .5; }
.tl-work { position: absolute; left: 0; right: 0; background: color-mix(in srgb, var(--s1) 50%, transparent); pointer-events: none; }
.tl-empty { position: absolute; z-index: 4; top: 34%; left: 58px; right: 12px; max-width: 420px; margin: 0 auto; padding: 10px 14px; border-radius: 14px; border: 1px dashed var(--line2); background: color-mix(in srgb, var(--bg) 88%, transparent); text-align: center; font-size: 13px; line-height: 1.45; color: var(--tx2); pointer-events: none; }
.tl-sticky { position: sticky; top: 0; z-index: 6; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tl-sticky .allday { margin: 0; padding: 0 0 5px; }
.tl-dayheads { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); }
.tl-dh { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 0 5px; }
.tl-dh span { font-size: 11px; color: var(--mu); }
.tl-dh b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-dh.today b { color: var(--acs); }
.tl-dh.sel b { background: var(--ac); color: var(--actx); }
.tl-dh:not(.sel):hover b { background: var(--s2); }
.nowline { position: absolute; left: -1px; right: 0; height: 2px; margin-top: -1px; background: var(--ko); z-index: 3; pointer-events: none; }
.nowline::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ko); }

/* ---------- blocs ---------- */
.evb { position: absolute; z-index: 2; left: calc(100% * var(--col, 0) / var(--cols, 1) + 2px); width: calc(100% / var(--cols, 1) - 4px); display: flex; flex-direction: column; gap: 1px; padding: 5px 8px 5px 9px; border-radius: 9px; overflow: hidden; background: color-mix(in srgb, var(--c) 30%, var(--bg)); border-left: 3px solid var(--c); color: var(--tx); font-size: 12.5px; line-height: 1.25; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y; box-shadow: 0 0 0 1px color-mix(in srgb, var(--bg) 75%, transparent); }
.evb:hover { background: color-mix(in srgb, var(--c) 38%, var(--bg)); }
.evb:focus-visible { outline: 2px solid var(--vgs); outline-offset: 1px; z-index: 5; }
.evb-t { font-weight: 650; font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.evb-m { font-size: 11.5px; color: color-mix(in srgb, var(--c) 50%, var(--tx)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.evb.short { flex-direction: row; align-items: baseline; gap: 6px; padding-top: 2px; padding-bottom: 2px; }
.evb.short .evb-t { -webkit-line-clamp: 1; flex: 0 1 auto; white-space: nowrap; text-overflow: ellipsis; display: block; }
.evb.short .evb-m { flex: 0 1 auto; }
.evb.tiny { font-size: 11px; padding-top: 1px; padding-bottom: 1px; }
.evb.tiny .evb-t { font-size: 11.5px; }
.evb.st-done, .evb.conflict { padding-right: 22px; }
.evb.st-done { opacity: .6; }
.evb.st-missed { opacity: .45; background-image: repeating-linear-gradient(135deg, transparent 0 6px, #ffffff08 6px 12px); }
.evb.st-missed .evb-t { text-decoration: line-through; text-decoration-color: var(--mu); }
.evb.late { box-shadow: 0 0 0 1px color-mix(in srgb, var(--warn) 60%, transparent) inset; }
.evb.now { box-shadow: 0 0 0 1.5px var(--vg) inset; }
.evb.conflict { box-shadow: 0 0 0 1.5px var(--warn) inset; }
.evb-warn, .evb-ok { position: absolute; top: 4px; right: 4px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; font-style: normal; }
.evb-warn { background: var(--warn); color: var(--bg); font-size: 10px; font-weight: 900; }
.evb-ok { background: var(--c); color: var(--bg); }
.evb-ok svg { width: 10px; height: 10px; }
.evb.cont-top { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 1px dashed color-mix(in srgb, var(--c) 70%, transparent); }
.evb.cont-bot { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.evb-more { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(transparent, color-mix(in srgb, var(--c) 35%, var(--s1))); }
.evb-rz { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; cursor: ns-resize; touch-action: none; }
.evb-rz::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 22px; height: 3px; margin-left: -11px; border-radius: 2px; background: var(--c); opacity: .0; transition: opacity .15s; }
.evb:hover .evb-rz::after, .evb:focus-visible .evb-rz::after { opacity: .9; }
@media (hover: none) { .evb-rz::after { opacity: .55; } }
.evb.short .evb-rz, .evb.tiny .evb-rz { height: 9px; }
.evb.lifted { opacity: .3; }
.evb.ghost { z-index: 7; pointer-events: none; opacity: .95; background: color-mix(in srgb, var(--c) 32%, var(--s2)); border: 1.5px dashed var(--c); border-left-width: 3px; box-shadow: var(--shadow-s); }
.evb.ghost .evb-m { font-weight: 700; color: var(--tx); }
.evb.ghost.conflict { border-color: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 25%, transparent), 0 0 18px color-mix(in srgb, var(--warn) 35%, transparent); }
.week .evb { padding: 4px 5px 4px 6px; font-size: 11px; border-left-width: 2.5px; border-radius: 7px; }
.week .evb-t { font-size: 11.5px; word-break: normal; overflow-wrap: anywhere; -webkit-line-clamp: 3; }
.week .evb .evb-m { font-size: 10.5px; }
.week .evb.short { flex-direction: column; gap: 0; }
.week .evb.st-done, .week .evb.conflict { padding-right: 16px; }
.week .evb-ok, .week .evb-warn { top: 3px; right: 3px; width: 12px; height: 12px; font-size: 8.5px; }
.week .evb-ok svg { width: 8px; height: 8px; }
body.dragging, body.dragging * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
.dragfloat { position: fixed; z-index: 150; pointer-events: none; transform: translate(-50%, -140%); max-width: 230px; padding: 8px 12px; border-radius: 12px; background: var(--inv); color: var(--invtx); font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: var(--shadow); }

/* ---------- semaine sur téléphone : la grille défile de côté, un peu plus de trois jours lisibles ---------- */
@media (max-width: 759px) {
  /* exactement trois jours visibles (pas de colonne coupée), le jour choisi au milieu */
  .ag.week { --colw: max(80px, calc((100vw - 32px - 44px - var(--safe-l) - var(--safe-r)) / 3)); }
  .ag.week .tl-scroll { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 44px; scrollbar-width: none; }
  .ag.week .tl-scroll::-webkit-scrollbar { display: none; }
  .ag.week .tl-sticky, .ag.week .tl { width: calc(44px + 7 * var(--colw)); }
  .ag.week .tl-dayheads { grid-template-columns: 44px repeat(7, var(--colw)); }
  .ag.week .allday.wk .adgrid { grid-template-columns: repeat(7, var(--colw)); }
  .ag.week .tl { grid-template-columns: 44px auto; }
  .ag.week .tl-cols { grid-auto-columns: var(--colw); }
  .ag.week .tl-col { scroll-snap-align: start; }
  .ag.week .tl-hours, .ag.week .tl-gut, .ag.week .adlab { position: sticky; left: 0; z-index: 5; background: var(--bg); }
  /* en-têtes de colonne sur une ligne : la bande de la semaine au-dessus donne déjà le détail */
  .ag.week .tl-dh { flex-direction: row; justify-content: center; gap: 6px; padding: 5px 0; }
  .ag.week .tl-dh b { width: 26px; height: 26px; font-size: 13.5px; }
}
@media (max-width: 374px) {
  .agvbtn { padding: 0 8px 0 10px; gap: 4px; }
  .agvbtn > span { display: none; }
  .agtitle { font-size: 21px; }
}
@media (min-width: 760px) {
  .agarrows { display: inline-flex; }
  .ag.week .wkstrip, .agtoday.narrow-only { display: none; }
  .agtitle { font-size: 28px; }
  .wkstrip { margin: 0; }
  .wsd b { width: 38px; height: 38px; }
}

/* ---------- zone « À planifier » (une ligne) ---------- */
.tray { flex: none; display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 7px 0; border-top: 1px solid var(--line); background: var(--bg); }
.trayhead { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 6px 0 2px; border-radius: 12px; }
.trayhead b { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.trayhead .chip { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--s3); color: var(--tx); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.trayhead .tchev { display: inline-flex; color: var(--mu); transition: transform .2s; }
.trayhead .tchev svg { width: 14px; height: 14px; }
.tray:not(.open) .tchev { transform: rotate(-90deg); }
.trayhint { flex: 1; min-width: 0; font-size: 12.5px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.traylist { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 2px 2px 2px 0; scrollbar-width: none; }
.traylist[hidden] { display: none; }
.traylist::-webkit-scrollbar { display: none; }
.traylist .addline { flex: 1; margin: 0; }
.traychip { flex: none; display: inline-flex; align-items: center; gap: 7px; max-width: 230px; height: 38px; padding: 0 12px 0 10px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line2); border-left: 3px solid var(--c); text-align: left; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-x; }
.traychip b { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.traychip span { flex: none; font-size: 11.5px; color: var(--mu); white-space: nowrap; }
.traychip.lifted { opacity: .35; }

/* ---------- mois : grille commune (vue Mois et feuille) ---------- */
.agbody { padding-bottom: calc(var(--nav-h) + 24px); }
#v-agenda .sech .more { white-space: nowrap; }
.mnav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -4px 8px; }
.mnb { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 8px; border-radius: 10px; color: var(--tx2); font-size: 13.5px; font-weight: 600; }
.mnb svg { width: 16px; height: 16px; color: var(--acs); }
.mnb:hover { background: var(--s2); }
.mcard { padding: 6px 4px 10px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); }
.mcal { display: grid; gap: 2px; touch-action: pan-y; }
.mcrow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mcrow.wd span { text-align: center; font-size: 12px; color: var(--mu); padding: 4px 0 4px; }
.mcd { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 62px; padding: 3px 0 6px; border-radius: 12px; min-width: 0; }
.mcd.blank { pointer-events: none; }
.mcd b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tx); transition: background .15s; }
.mcd.today b { color: var(--acs); }
.mcd.sel b { background: var(--ac); color: var(--actx); box-shadow: 0 4px 14px color-mix(in srgb, var(--ac) 30%, transparent); }
.mcd:not(.sel):hover b { background: var(--s3); }
.mcic { display: flex; align-items: center; justify-content: center; height: 17px; }
.mcic .cati + .cati { margin-left: -4px; }
.mcic em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--mu); margin-left: 2px; }
.mcd.past .cati { opacity: .5; }
.cati { width: 17px; height: 17px; border-radius: 50%; background: var(--c); color: var(--bg); display: inline-grid; place-items: center; flex: none; box-shadow: 0 0 0 1.5px var(--s1); }
.cati svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mlegend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; padding: 10px 8px 0; font-size: 12px; color: var(--tx2); }
.mlegend span { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 760px) { .mcd { min-height: 84px; } .mcard { padding: 10px 10px 14px; } }
/* grand écran : la vue Mois affiche l'heure et le titre des premiers événements de chaque jour */
.mcev { display: none; }
@media (min-width: 1024px) {
  .mcard.evchips .mcrow:not(.wd) { border-top: 1px solid var(--line); }
  .mcard.evchips .mcd { align-items: stretch; min-height: 112px; padding: 5px 4px 6px; border-radius: 10px; }
  .mcard.evchips .mcd b { align-self: center; width: 30px; height: 30px; font-size: 15px; flex: none; }
  .mcard.evchips .mcic { display: none; }
  .mcard.evchips .mcev { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .mce { display: block; padding: 1px 6px 1px 5px; border-radius: 5px; border-left: 2.5px solid var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--tx); font-size: 11.5px; font-weight: 600; line-height: 1.5; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mce u { text-decoration: none; margin-right: 4px; color: color-mix(in srgb, var(--c) 50%, var(--tx)); font-weight: 650; font-variant-numeric: tabular-nums; }
  .mce.dn { opacity: .55; }
  .mcev em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--mu); text-align: left; padding-left: 7px; }
  .mcard.evchips .mcd:not(.sel):hover { background: var(--s2); }
  .mcard.evchips .mcd:not(.sel):hover b { background: none; }
}

/* feuille du mois */
.msh { display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; }
.mshnav { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0; }
.mshnav h2 { margin: 0 2px; font-family: var(--font-d); font-size: 23px; font-weight: 600; white-space: nowrap; }
.mshnav h2 em { font-style: normal; color: var(--acs); }
.mshnav .ibtn { width: 34px; height: 34px; } .mshnav .ibtn svg { width: 18px; height: 18px; }
.msh .btn.sm { border-radius: 99px; flex: none; }
.sheet .mcd { min-height: 58px; }
.sheet .cati { box-shadow: 0 0 0 1.5px var(--s1); }

/* colonnes étroites : titres lisibles sur plusieurs lignes, heure masquée (elle reste dans l'étiquette
   d'accessibilité), et événements simultanés en cascade plutôt qu'en bandes impossibles à toucher. */
@container (max-width: 72px) {
  .tl-col .evb { left: calc(var(--col, 0) * 22% + 1px); width: calc(100% - var(--col, 0) * 22% - 2px); padding: 3px 3px 3px 4px; font-size: 10.5px; line-height: 1.2; border-left-width: 2px; border-radius: 6px; }
  .tl-col .evb.stk { box-shadow: -2px 0 0 var(--bg), 0 1px 0 #0000001f; }
  .tl-col .evb-t { overflow-wrap: anywhere; -webkit-line-clamp: 4; }
  .tl-col .evb.short .evb-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; }
  .tl-col .evb.tiny .evb-t { -webkit-line-clamp: 1; }
  .tl-col .evb-m { display: none; }
  .tl-col .evb-warn, .tl-col .evb-ok { width: 12px; height: 12px; top: 2px; right: 2px; font-size: 8.5px; }
}
