.sfch-agenda { color: inherit; --sfch-hour-height: 42px; --sfch-card-height: 37px; --sfch-day-height: 2.5rem; }
.sfch-agenda [data-venue="sanctuaire"] { --sfch-color: #695975; }
.sfch-agenda [data-venue="maurice"] { --sfch-color: #805e73; }
.sfch-agenda [data-venue="sauveur"] { --sfch-color: #4c607c; }
.sfch-agenda [data-venue="capucins"] { --sfch-color: #4b6b73; }
.sfch-agenda [data-venue="aouste"] { --sfch-color: #4d695b; }
.sfch-agenda [data-venue="saillans"] { --sfch-color: #606d49; }
.sfch-agenda [data-venue="montoison"] { --sfch-color: #795f4b; }
.sfch-agenda [data-venue="autre"] { --sfch-color: #626674; }
.sfch-toolbar, .sfch-week-controls, .sfch-filters, .sfch-legend { display: flex; align-items: center; gap: .45rem; }
.sfch-toolbar, .sfch-legend { margin-block: .55rem; }
.sfch-legend { flex-wrap: wrap; }
.sfch-agenda button, .sfch-agenda select { font: inherit; cursor: pointer; }
.sfch-toolbar button, .sfch-toolbar select, .sfch-dialog button { border: 1px solid #bcc5d0; padding: .3rem .55rem; background: #fff; color: #24354b; border-radius: .3rem; }
.sfch-toolbar select { width: auto; min-width: 0; margin: 0; field-sizing: fixed; }
.sfch-week-controls { display: grid; grid-template-columns: 2.25rem minmax(0, 24ch) 2.25rem; flex: 0 0 auto; }
.sfch-week-controls button { padding-inline: 0; width: 100%; }
.sfch-week-heading { font-weight: 600; text-align: center; line-height: 1.15; }
.sfch-frame { overflow: hidden; }
.sfch-grid-scroll { max-height: calc(var(--sfch-visible-hours) + var(--sfch-day-height) + 2px); overflow: auto; }
.sfch-grid { display: grid; grid-template-columns: 4rem repeat(7,minmax(0,1fr)); border: 1px solid #d5dce5; background: #fff; color: #24354b; }
.sfch-day { position: sticky; top: 0; z-index: 2; box-sizing: border-box; height: var(--sfch-day-height); text-align: center; align-content: center; border-bottom: 1px solid #d5dce5; background: #f8f9fb; }
.sfch-today { background: #f2f5f9; }
.sfch-today .sfch-day { background: #e2eaf4; font-weight: 700; }
.sfch-column { border-left: 1px solid #d5dce5; }
.sfch-timeline { position: relative; background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--sfch-hour-height) - 1px), #d5dce5 calc(var(--sfch-hour-height) - 1px) var(--sfch-hour-height)); }
.sfch-hour { box-sizing: border-box; height: var(--sfch-hour-height); padding-inline: .3rem; font-size: .8rem; }
.sfch-card { box-sizing: border-box; background: var(--sfch-color); color: #fff; border: 1px solid #fff; border-radius: .35rem; padding: .25rem .35rem; font-size: .8rem; line-height: 1.25; }
.sfch-timeline .sfch-card { position: absolute; height: var(--sfch-card-height); padding-block: 1px; }
.sfch-timeline .sfch-short { padding-block: 0; border-block: 0; border-radius: 2px; }
.sfch-short button { height: 100%; font-size: 9px; line-height: 1; }
.sfch-card-header { display: flex; gap: .3rem; align-items: baseline; }
.sfch-card button, .sfch-card a { display: block; width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: inherit; text-align: left; background: none; border: 0; padding: 0; }
.sfch-card-header button:first-child { width: auto; flex-shrink: 0; text-decoration: underline; }
.sfch-card-header button:last-child { min-width: 0; font-weight: 700; }
.sfch-card a { text-decoration: underline; }
.sfch-agenda :focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.sfch-list { display: none; }
.sfch-show-list .sfch-grid-scroll, .sfch-show-list .sfch-week-status { display: none; }
.sfch-show-list .sfch-list { display: block; }
.sfch-list .sfch-card { margin-block: .35rem; font-size: 1rem; padding: .45rem; }
.sfch-list .sfch-card :is(button,a) { white-space: normal; }
.sfch-pair { margin-block: .35rem; }
.sfch-pair .sfch-card { margin: 0; }
.sfch-pair .sfch-card:first-child { border-end-start-radius: 0; border-end-end-radius: 0; }
.sfch-pair .sfch-card:last-child { border-start-start-radius: 0; border-start-end-radius: 0; }
.sfch-legend { list-style: none; padding: 0; font-size: .8rem; }
.sfch-legend li::before { content: ""; display: inline-block; background: var(--sfch-color); width: .8em; height: .8em; margin-right: .35em; border-radius: 50%; }
.sfch-dialog { max-width: min(90vw, 32rem); padding: 1.25rem; border: 1px solid #bcc5d0; border-radius: .55rem; }
.sfch-dialog::backdrop { background: #16253988; }
.sfch-dialog > a { margin-right: .7rem; }
.sfch-week-status:empty { display: none; }
@media (max-width: 899px) {
    .sfch-grid-scroll, .sfch-week-status, .sfch-toolbar .sfch-view-toggle { display: none; }
    .sfch-toolbar { flex-direction: column; align-items: flex-start; }
    .sfch-filters, .sfch-week-controls { max-width: 100%; }
    .sfch-filters select { flex: 0 1 auto; }
    .sfch-frame { touch-action: pan-y pinch-zoom; }
    .sfch-list { display: block; }
}
