/*
  Fyxdo — Agenda: dag, week en maand, met bezet uit een gekoppelde agenda.
  Laadvolgorde: brand/fonts/fonts.css → brand/tokens.css → brand/icons/icons.css
               → screens/auth/auth.css → screens/app/app.css → screens/agenda/agenda.css
  Alleen variabelen uit tokens.css. Geen gradiënten, geen schaduwen, geen inline stijl nodig.

  Mobiel (smaller dan 768 px) en breed (vanaf 768 px, § 11 van de README). In de referentie staan
  smal (< 370 px) en breed in een container query; in de app gebruik je @media (max-width: 369px)
  en @media (min-width: 768px).
*/

/* ---------- Pagina ---------- */
.fx-main--agenda { padding: 0; display: flex; flex-direction: column; }
.fx-main--agenda > .fx-statusbar { margin: 0; padding: var(--space-2) var(--space-4); }

/* ---------- Bovenbalk van de agenda (blijft onder de kop staan) ---------- */
.fx-agenda-bar {
  position: sticky;
  top: 56px;                      /* hoogte van .fx-header op mobiel */
  z-index: 1;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.fx-agenda-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "month nav" "period period";
  align-items: center;
  column-gap: var(--space-2);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
}
.fx-agenda-head .fx-month-btn { grid-area: month; }
.fx-agenda-head .fx-period { grid-area: period; }
.fx-agenda-head .fx-datenav { grid-area: nav; }

/* Maand en jaar: opent de maandkiezer */
.fx-month-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--size-touch);
  max-width: 100%;
  margin: 0 0 0 calc(var(--space-2) * -1);
  padding: 0 var(--space-2);
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 20px; line-height: 28px; font-weight: 600;   /* text-h2 */
  white-space: nowrap;
  cursor: pointer;
}
.fx-month-btn:hover { background: var(--tint); }
.fx-month-btn[aria-expanded="true"] { background: var(--tint); }
.fx-month-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.fx-month-btn :is(.fx-ico, .fx-icon) { width: var(--size-icon-sm); height: var(--size-icon-sm); }

/* "Week 44 · deze week": waar je bent ten opzichte van vandaag */
.fx-period {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px; line-height: 20px;                       /* text-small */
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-period::before {                                          /* ring = elders, gevulde stip = nu */
  content: "";
  flex: none;
  width: 8px; height: 8px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.fx-period.is-current { color: var(--text); }
.fx-period.is-current::before { background: currentColor; }

.fx-agenda-head .fx-datenav { gap: 0; flex: none; }
.fx-agenda-head .fx-iconbtn { border-color: transparent; background: transparent; }
.fx-agenda-head .fx-iconbtn:hover { background: var(--tint); }

/* Vandaag: in de huidige periode een rustige knop zonder werking, elders primair met een pijl naar vandaag */
.fx-today { min-width: 88px; }
.fx-today[aria-disabled="true"] { cursor: default; }
.fx-today--back { padding: 0 var(--space-4) 0 var(--space-2); }       /* ‹ Vandaag */
.fx-today--forward { padding: 0 var(--space-2) 0 var(--space-4); }    /* Vandaag › */

/* ---------- Maandkiezer (klapt open onder de bovenbalk, geen pop-up) ---------- */
.fx-month-picker {
  padding: 0 var(--space-4) var(--space-4);
}
.fx-year-step {
  display: grid;
  grid-template-columns: var(--size-touch) minmax(0, 1fr) var(--size-touch);
  align-items: center;
  margin: 0 0 var(--space-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.fx-year-step .fx-iconbtn { border-color: transparent; background: transparent; }
.fx-year-step__value { text-align: center; font-size: 20px; line-height: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-month-options {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}
.fx-month-option {
  width: 100%;
  min-height: var(--size-control);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px; line-height: 24px;
  cursor: pointer;
}
.fx-month-option:hover { background: var(--tint); }
.fx-month-option.is-current { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.fx-month-option[aria-current="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.fx-month-option:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Weekstrip (alleen dagweergave) ---------- */
.fx-weekstrip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  padding: 0 var(--space-3) var(--space-2);
}
.fx-weekstrip__day {
  position: relative;
  min-height: 60px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}
.fx-weekstrip__day:hover { background: var(--tint); }
.fx-weekstrip__dow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .3px; color: var(--text-muted); }   /* text-label, zonder hoofdletters */
.fx-weekstrip__num { font-size: 16px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-marks { height: 6px; display: flex; align-items: center; gap: 2px; }
.fx-mark-appt { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.fx-mark-busy { width: 5px; height: 5px; box-sizing: border-box; border: 1px solid currentColor; border-radius: 1px; }
.fx-mark-more { font-size: 10px; line-height: 6px; font-weight: 600; }

/* Vandaag: zacht vlak + streep boven. Gekozen: navy vlak. Beide samen: navy vlak met witte streep. */
.fx-weekstrip__day.is-today { background: var(--tint); }
.fx-weekstrip__day.is-today::before {
  content: "";
  position: absolute;
  top: 4px; left: 30%; right: 30%;
  height: 2px;
  border-radius: 1px;
  background: var(--primary);
}
.fx-weekstrip__day[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.fx-weekstrip__day[aria-pressed="true"] .fx-weekstrip__dow { color: var(--on-primary); }
.fx-weekstrip__day[aria-pressed="true"]::before { background: var(--on-primary); }
.fx-weekstrip__day:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Inhoud ---------- */
.fx-agenda-body {
  flex: 1 0 auto;                 /* korte inhoud: de onderbalk staat toch direct boven het menu */
  position: relative;
  padding: var(--space-4) var(--space-4) var(--space-6);
  touch-action: pan-y;            /* verticaal scrollt de pagina, horizontaal is bladeren */
  overflow-x: clip;
}
.fx-agenda-body__inner { will-change: transform; }

.fx-swipe-hint {
  position: absolute;
  top: var(--space-10);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  height: 32px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 12px; line-height: 16px; font-weight: 600;
  opacity: 0;
  pointer-events: none;
}
.fx-swipe-hint--prev { left: var(--space-2); }
.fx-swipe-hint--next { right: var(--space-2); }
.fx-swipe-hint :is(.fx-ico, .fx-icon) { width: 16px; height: 16px; }

/* Statuslabel VANDAAG (zelfde als .fx-tag in klanten.css) */
.fx-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--tint);
  color: var(--text);
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .3px;   /* text-label */
  text-transform: uppercase;
  white-space: nowrap;
  flex: none;
}

/* ---------- Dag ---------- */
.fx-day-head { margin: 0 0 var(--space-4); }
.fx-day-head h2 {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: 20px; line-height: 28px; font-weight: 600;   /* text-h2 */
}
.fx-day-head p { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.fx-day-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.fx-slot { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-3); }
.fx-slot__time {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  font-size: 14px; line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.fx-slot__start { font-weight: 600; }
.fx-slot__end { color: var(--text-muted); }
.fx-slot--busy .fx-slot__time { padding-top: 12px; color: var(--text-muted); }
.fx-slot--busy .fx-slot__start { font-weight: 400; }

/* Afspraak: wit vlak, doorgetrokken rand, inhoud, pijl. Aantikbaar. */
.fx-appt {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 56px;
  padding: var(--space-3) var(--space-2) var(--space-3) var(--space-4);
  box-sizing: border-box;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
}
.fx-appt:hover { background: var(--bg); }
.fx-appt:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.fx-appt__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fx-appt__title { font-size: 16px; line-height: 24px; font-weight: 600; overflow-wrap: anywhere; }
.fx-appt__meta { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.fx-appt__done {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 14px; line-height: 20px; font-weight: 600;
  color: var(--green-text);
}
.fx-appt__warn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-1);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--tint);
  color: var(--text);
  font-size: 14px; line-height: 20px;
}
.fx-appt__done :is(.fx-ico, .fx-icon), .fx-appt__warn :is(.fx-ico, .fx-icon) { width: 16px; height: 16px; }
.fx-appt__chev { flex: none; color: var(--text-muted); }
.fx-appt__chev:is(.fx-ico, .fx-icon) { width: var(--size-icon-sm); height: var(--size-icon-sm); }

/* Bezet: geen vlak, gestippelde rand, alleen het woord Bezet. Niet aantikbaar. */
.fx-busy {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--size-touch);
  padding: 0 var(--space-4);
  box-sizing: border-box;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 14px; line-height: 20px;
}
.fx-busy__label { font-weight: 600; }
.fx-busy__src { margin-left: auto; font-size: 12px; line-height: 16px; }
.fx-busy--allday { margin: 0 0 var(--space-2); }

/* Bezet dat een afspraak overlapt: ingesprongen, met een hoekverbinding naar de afspraak erboven */
.fx-slot--overlap { margin-top: calc(var(--space-1) * -1); }
.fx-slot--overlap .fx-busy { position: relative; margin-left: var(--space-4); }
.fx-slot--overlap .fx-busy::before {
  content: "";
  position: absolute;
  left: -14px; top: -10px;
  width: 9px; height: 30px;
  border-left: 2px solid var(--border-strong);
  border-bottom: 2px solid var(--border-strong);
  border-bottom-left-radius: 6px;
}
.fx-busy__overlap { font-size: 12px; line-height: 16px; font-weight: 600; }

/* Nu-lijn, alleen op vandaag */
.fx-now { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-3); align-items: center; height: 16px; }
.fx-now__time { font-size: 12px; line-height: 16px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.fx-now__rule { position: relative; height: 2px; border-radius: 1px; background: var(--primary); }
.fx-now__rule::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

.fx-day-note { margin: var(--space-4) 0 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }

/* ---------- Week ---------- */
.fx-week { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.fx-week-day {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.fx-week-day.is-today { border-color: var(--primary); }
.fx-week-day--free { background: transparent; }

.fx-week-day__head {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
  box-sizing: border-box;
  border: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
}
.fx-week-day--free .fx-week-day__head { min-height: 48px; background: transparent; }
.fx-week-day.is-today .fx-week-day__head { background: var(--tint); }
.fx-week-day.is-today .fx-tag { background: var(--card); }
.fx-week-day__head:hover { background: var(--tint); }
.fx-week-day__head:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius-md); }

.fx-date-block { width: 36px; flex: none; display: flex; flex-direction: column; align-items: center; }
.fx-date-block__dow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .3px; color: var(--text-muted); }
.fx-date-block__num { font-size: 20px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-week-day__info { flex: 1; min-width: 0; }
.fx-week-day__name { display: flex; align-items: center; gap: var(--space-2); font-size: 16px; line-height: 24px; font-weight: 600; }
.fx-week-day__summary { display: block; font-size: 14px; line-height: 20px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.fx-week-day__head > :is(.fx-ico, .fx-icon) { color: var(--text-muted); width: var(--size-icon-sm); height: var(--size-icon-sm); }

/* Rijen in week en maanddetail */
.fx-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.fx-rows > li + li { border-top: 1px solid var(--border); }
.fx-wrow {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-3);
  box-sizing: border-box;
  color: var(--text);
  text-decoration: none;
  font-size: 14px; line-height: 20px;
}
a.fx-wrow:hover { background: var(--bg); }
a.fx-wrow:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.fx-wrow__time { font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-wrow__title { display: flex; align-items: center; gap: var(--space-1); min-width: 0; }
.fx-wrow__title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-wrow__title b { font-weight: 600; }
.fx-wrow__title :is(.fx-ico, .fx-icon) { width: 16px; height: 16px; color: var(--green-text); }
.fx-wrow__dur { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.fx-wrow--busy { min-height: 40px; background: var(--bg); color: var(--text-muted); }
.fx-wrow--busy .fx-wrow__time { font-weight: 400; }
.fx-wrow--busy .fx-wrow__title { font-weight: 600; }
.fx-wrow--busy .fx-busy__src { margin: 0; }
.fx-wrow--more { color: var(--text-muted); }
.fx-wrow--more :is(.fx-ico, .fx-icon) { width: var(--size-icon-sm); height: var(--size-icon-sm); justify-self: end; }
button.fx-wrow { width: 100%; border: 0; background: transparent; font-family: var(--font-sans); text-align: left; cursor: pointer; }
button.fx-wrow:hover { background: var(--bg); }
button.fx-wrow:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

/* ---------- Maand ---------- */
.fx-month-dows {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  height: 24px;
  align-items: center;
  text-align: center;
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .3px;
  color: var(--text-muted);
}
.fx-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.fx-month-cell {
  min-height: 56px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.fx-month-cell:hover { background: var(--tint); }
.fx-month-cell__num { font-size: 16px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-month-cell.is-out { color: var(--text-muted); }
.fx-month-cell.is-out .fx-month-cell__num { font-weight: 400; }
.fx-month-cell.is-out .fx-load { opacity: .5; }
.fx-month-cell.is-today { background: var(--tint); }
.fx-month-cell.is-today .fx-month-cell__num { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.fx-month-cell[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.fx-month-cell:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Drukte per dag. Volle balk = 8 uur. Breedte in stappen van een uur (klassen, geen inline stijl). */
.fx-load { width: 32px; height: 6px; border-radius: 3px; background: var(--border); display: flex; overflow: hidden; }
.fx-load__appt { background: var(--primary); }
.fx-load__busy { background: var(--border-strong); }
.fx-w1 { width: 12.5%; } .fx-w2 { width: 25%; } .fx-w3 { width: 37.5%; } .fx-w4 { width: 50%; }
.fx-w5 { width: 62.5%; } .fx-w6 { width: 75%; } .fx-w7 { width: 87.5%; } .fx-w8 { width: 100%; }
.fx-month-cell[aria-pressed="true"] .fx-load { background: transparent; outline: 1px solid var(--border-strong); }
.fx-month-cell[aria-pressed="true"] .fx-load__appt { background: var(--on-primary); }

.fx-month-total { margin: var(--space-3) 0 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.fx-month-total b { font-weight: 600; color: var(--text); }
.fx-month-meta {
  margin: var(--space-1) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  font-size: 14px; line-height: 20px;
  color: var(--text-muted);
}
.fx-month-meta span { display: inline-flex; align-items: center; gap: var(--space-2); }
.fx-month-meta b { font-weight: 600; color: var(--text); }
.fx-swatch { width: 16px; height: 6px; border-radius: 3px; }
.fx-swatch--appt { background: var(--primary); }
.fx-swatch--busy { background: var(--border-strong); }

.fx-month-detail {
  margin: var(--space-4) 0 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.fx-month-detail__head { padding: var(--space-3) var(--space-4); }
.fx-month-detail__head h2 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: 16px; line-height: 24px; font-weight: 600; }
.fx-month-detail__head p { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.fx-month-detail__foot { padding: var(--space-3) var(--space-4); border-top: 1px solid var(--border); }

.fx-month-state { margin: var(--space-4) 0 0; }

/* ---------- Laden (pas na 0,4 s, geen animatie) ---------- */
.fx-skel-slot { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-3); }
.fx-skel-time { padding-top: 14px; display: flex; flex-direction: column; gap: var(--space-2); }
.fx-skel-bar { display: block; height: 12px; border-radius: var(--radius-sm); background: var(--border); }
.fx-skel-bar--short { width: 36px; }
.fx-skel-bar--shorter { width: 28px; opacity: .6; }
.fx-skel-card { border-radius: var(--radius-md); background: var(--border); opacity: .6; height: 64px; }
.fx-skel-card--busy { height: 44px; }

/* ---------- Melding: bezet niet te laden ---------- */
.fx-agenda-body .fx-alert { margin: 0 0 var(--space-4); align-items: center; padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4); }
.fx-agenda-body .fx-alert p { flex: 1; }
.fx-alert-btn {
  flex: none;
  min-height: var(--size-touch);
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 14px; line-height: 20px; font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.fx-alert-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Onderbalk: weergave en hoofdactie, met de duim bereikbaar ---------- */
.fx-agenda-dock {
  position: sticky;
  bottom: calc(var(--size-nav-bar) + env(safe-area-inset-bottom));
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background: var(--card);
  border-top: 1px solid var(--border);
}
.fx-agenda-dock .fx-segment button { min-width: 64px; padding: 0 var(--space-3); }
.fx-agenda-add { flex: none; }
.fx-agenda-dock--top { display: none; }          /* werkbalk: alleen breed, zie hieronder */

/* ---------- Beweging ---------- */
@media (prefers-reduced-motion: reduce) {
  .fx-agenda-body__inner { will-change: auto; }
}

/* ---------- Smalle telefoon (< 370 px) ---------- */
@container (max-width: 369px) {
  .fx-month-btn { font-size: 16px; line-height: 24px; }
  .fx-today { min-width: 0; }
  .fx-agenda-dock .fx-segment button { min-width: 0; padding: 0 var(--space-3); }
  .fx-agenda-add { width: var(--size-touch); padding: 0; }
  .fx-agenda-add .fx-add-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fx-weekstrip { padding: 0 var(--space-2) var(--space-2); }
}
/* Korte maandnaam ("Sep 2026") pas onder 340 px, anders past de datumnavigatie er niet naast */
.fx-month-short { display: none; }
@container (max-width: 339px) {
  .fx-month-long { display: none; }
  .fx-month-short { display: inline; }
}

/* ---------- Breed scherm (vanaf 768 px, README § 11) ----------
   Eén kolom van max. 880 px naast het zijmenu, zoals elke pagina. De bovenbalk staat bovenaan
   (er is geen kop) en draagt de werkbalk met Dag/Week/Maand en Afspraak; de onderbalk vervalt.
   Bovenbalk:  [Dag | Week | Maand]                    [+ Afspraak]
               Oktober 2026 ▾                           ‹ Vandaag ›
               ● Week 44 · deze week
               (weekstrip in Dag)                                                       */
@container (min-width: 768px) {
  .fx-main--agenda { padding: 0 var(--space-10) var(--space-10); }
  .fx-main--agenda > .fx-statusbar { margin: 0 calc(var(--space-10) * -1); padding: var(--space-2) var(--space-10); }

  .fx-agenda-bar { top: 0; padding-top: var(--space-6); }
  .fx-agenda-dock { display: none; }
  .fx-agenda-dock.fx-agenda-dock--top {
    display: flex;
    position: static;
    padding: 0 0 var(--space-2);
    background: transparent;
    border: 0;
  }
  .fx-agenda-dock .fx-segment button { min-width: 80px; }
  .fx-agenda-head { padding: var(--space-2) 0; }
  .fx-agenda-head .fx-month-btn { justify-self: start; }   /* vlak bij open kiezer niet over de hele breedte */
  .fx-month-picker { max-width: 400px; padding: 0 0 var(--space-4); }
  .fx-weekstrip { padding: 0 0 var(--space-2); }

  .fx-agenda-body { padding: var(--space-6) 0 0; }
  .fx-swipe-hint--prev { left: 0; }
  .fx-swipe-hint--next { right: 0; }

  .fx-month-cell { min-height: 72px; }
  .fx-load { width: 56px; }                     /* zelfde schaal (volle balk = 8 uur), beter leesbaar */
}
