/* Clinitech agenda enhancements: existing palette, type and clinical layout. */
.agenda-views-panel{padding:20px 24px;margin-bottom:20px;border:1px solid #e0e6e4;border-radius:16px;background:rgba(255,255,255,.88);box-shadow:0 5px 20px #15372905;backdrop-filter:blur(8px)}
.agenda-views-heading,.agenda-views-row{display:flex;gap:12px;align-items:center;justify-content:space-between}.agenda-views-heading h2{margin:4px 0 16px;font-size:18px}.agenda-views-row{justify-content:flex-start;flex-wrap:wrap}.agenda-views-row label{flex:1;min-width:220px}.agenda-views-row select{width:100%;margin-top:5px}.agenda-view-shortcuts{display:flex;gap:8px;overflow-x:auto;padding:14px 0 2px}.agenda-view-shortcuts button{white-space:nowrap;flex-shrink:0}.agenda-view-shortcuts button[aria-pressed=true]{background:#e8f3ee;color:#19754c;border:1px solid #b5d4c3}.agenda-views-panel summary{cursor:pointer;color:#19754c;font-weight:600;padding:10px 0}.agenda-calendar-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px;margin:12px 0}.agenda-calendar-choice{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #e5e9e7;border-radius:10px}.agenda-calendar-choice input{width:18px;height:18px;flex-shrink:0}.agenda-calendar-choice i,.workspace-color-preview{display:inline-block;width:14px;height:14px;border:1px solid #9da9a5;border-radius:4px;flex-shrink:0}.agenda-calendar-choice span{overflow-wrap:anywhere;flex:1}.agenda-calendar-choice small{color:#697c76;font-size:10px}.workspace-dialog{width:min(760px,94vw);max-height:90dvh;padding:24px;border:1px solid #dfe6e2;border-radius:18px;overflow:auto;color:var(--dark);background:#fff}.workspace-dialog::backdrop{background:#10242366;backdrop-filter:blur(3px)}.workspace-dialog label{display:block;font-weight:600}.workspace-dialog input:not([type=checkbox]),.workspace-dialog select{width:100%;margin:6px 0 10px}.workspace-dialog form{display:grid;gap:12px}.workspace-account{padding:16px 0;border-bottom:1px solid #e3e8e5}.workspace-account button{margin:0 8px 6px 0}.workspace-calendar{grid-template-columns:minmax(0,1fr) 16px 150px auto;align-items:center;padding:15px 0;border-bottom:1px solid #edf0ef}.workspace-calendar label{font-size:11px;color:#6c7d75}.workspace-calendar input{font-size:14px;color:var(--dark)}.workspace-calendar select{font-size:13px}.appointment-workspace-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}.appointment-workspace-fields label:last-child{grid-column:1/-1}.appointment-workspace-fields input:not([type=checkbox]),.appointment-workspace-fields select,.appointment-workspace-fields textarea{width:100%;margin-top:6px}.calendar-event.has-agenda-color{border-left-color:var(--agenda-calendar-color)!important;border-left-style:solid;border-left-width:4px}.agenda-month-event-list{gap:4px}.agenda-month .calendar-event-month{display:block;width:100%;min-width:0;min-height:24px;height:26px;margin:0;padding:4px 6px;border-radius:6px;text-align:left;font:inherit;font-size:11px;line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;box-shadow:none;border-top:1px solid #e2e9e5;border-right:1px solid #e2e9e5;border-bottom:1px solid #e2e9e5;background:#f2f7f4;color:#173e30}.agenda-month .calendar-event-month:focus-visible{outline:2px solid #208b60;outline-offset:1px}.agenda-month-more{font:inherit;font-size:11px;border:0;background:transparent;color:#19754c;padding:5px 1px;cursor:pointer;text-align:left}.agenda-month-day{min-height:205px}.agenda-views-panel .form-error{margin-top:12px}.agenda-panel{background:rgba(255,255,255,.96)}
@media(max-width:760px){.agenda-views-panel{padding:14px;margin-bottom:14px}.agenda-views-heading{align-items:flex-start}.agenda-views-heading h2{font-size:16px}.agenda-views-heading .button{font-size:12px;padding:10px}.agenda-views-row{gap:8px}.agenda-views-row label{min-width:100%;font-size:12px}.agenda-views-row .button{font-size:12px;padding:9px}.agenda-calendar-checks{grid-template-columns:1fr}.agenda-calendar-choice{font-size:13px}.workspace-dialog{width:100%;max-width:100%;max-height:100dvh;margin:0;border-radius:0;padding:16px;height:100dvh}.workspace-calendar{grid-template-columns:minmax(0,1fr) 16px 100px}.workspace-calendar button{grid-column:1/-1}.appointment-workspace-fields{grid-template-columns:1fr}.agenda-month-day{min-height:148px}.agenda-month .calendar-event-month{height:24px;font-size:10px}.agenda-month-more{font-size:10px}.agenda-view-controls #agenda-sync{font-size:12px;min-height:38px}}
@media(prefers-reduced-motion:reduce){.agenda-views-panel,.workspace-dialog::backdrop{backdrop-filter:none}}
.agenda-view{grid-template-columns:minmax(0,1fr)}.agenda-view>.agenda-panel,.agenda-view>.agenda-views-panel,.agenda-view>.calendar-connection-card{min-width:0}.agenda-toolbar{flex-wrap:wrap}.agenda-view-controls{flex-wrap:wrap;max-width:100%}.agenda-views-row select{min-width:0;max-width:100%}
@media(max-width:760px){.agenda-toolbar{align-items:flex-start}.agenda-navigation{flex-wrap:wrap}.agenda-navigation h2{flex:1 0 100%;margin:8px 0 0}.agenda-views-heading>div{min-width:0}.agenda-views-heading>button{max-width:52%;white-space:normal}.agenda-view-controls{gap:8px}.agenda-view-controls>label:not(.agenda-date-label){width:100%}}
.agenda-views-panel select,.workspace-dialog input:not([type=checkbox]),.workspace-dialog select,.appointment-workspace-fields input:not([type=checkbox]),.appointment-workspace-fields select,.appointment-workspace-fields textarea{min-height:44px;max-width:100%;padding:10px 12px;border:1px solid var(--line,#dce4df);border-radius:8px;background:#fff;color:var(--ink,#23352d);font:inherit;font-size:14px}.agenda-views-panel select:focus-visible,.workspace-dialog input:focus-visible,.workspace-dialog select:focus-visible,.appointment-workspace-fields input:focus-visible,.appointment-workspace-fields textarea:focus-visible{outline:2px solid #218c6270;outline-offset:2px}.workspace-calendar label{min-width:0;overflow-wrap:anywhere}.appointment-workspace-fields label{font-size:12px;color:var(--muted,#6a7d71)}.appointment-workspace-fields .meet-option{align-self:center}

.home-agenda-summary{margin-top:20px}.home-agenda-items{list-style:none;padding:0;margin:0;display:grid;gap:8px}.home-agenda-item{display:grid;grid-template-columns:90px minmax(0,1fr);gap:5px 12px;border-left:4px solid var(--agenda-calendar-color,#218c62);padding:10px 12px;background:#f7faf8;border-radius:8px}.home-agenda-item time{font-size:12px}.home-agenda-item strong{font-size:13px;overflow-wrap:anywhere}.home-agenda-item small{grid-column:2;font-size:11px;color:var(--muted)}#agenda-events[aria-busy=true]{opacity:.7;transition:opacity .15s}@media(max-width:760px){.home-agenda-item{grid-template-columns:70px minmax(0,1fr);padding:10px;gap:5px 8px}.home-agenda-summary .overview-panel-heading{gap:8px}}

/* Compact appointment lists: visual spacing is independent of event duration. */
.agenda-compact-days{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-top:14px;align-items:start}.agenda-compact-days[data-view=week]{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.agenda-compact-day{min-width:0;align-self:start;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--canvas,#f5f7f5)}.agenda-compact-day-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}.agenda-compact-day-heading h3{min-width:0;margin:0;font-size:14px}.agenda-compact-day-title{padding:0;border:0;background:transparent;text-align:left;font:inherit;font-weight:700;line-height:1.45;color:var(--dark);cursor:pointer;text-transform:capitalize}.agenda-compact-day-title:focus-visible{outline:2px solid var(--dark-soft);outline-offset:4px}.agenda-compact-day-count{display:inline-flex;justify-content:center;min-width:26px;padding:3px 7px;border-radius:7px;background:var(--paper,#fff);font-size:12px;font-weight:700;color:var(--muted)}.agenda-compact-day.is-today>.agenda-compact-day-heading{border-bottom-color:var(--dark-soft)}.agenda-compact-day-events{display:grid;gap:10px}.agenda-compact-empty{margin:0;padding:4px 0;font-size:13px;line-height:1.45;color:var(--muted)}
.agenda-compact-days .calendar-event.calendar-event{position:static;inset:auto;display:flex;flex-direction:column;gap:12px;width:100%;height:auto;min-height:0;max-height:none;overflow:visible;padding:16px;border:1px solid var(--line);border-left:4px solid var(--agenda-calendar-color,#438966);border-radius:10px;background:var(--paper,#fff);color:var(--ink);box-shadow:0 2px 8px #18352505;line-height:1.45}.agenda-compact-days .calendar-event.has-agenda-color{border-left-color:var(--agenda-calendar-color)!important}.agenda-compact-days .calendar-event.calendar-event .calendar-event-copy{display:flex;flex-direction:column;gap:6px;min-width:0;padding:0}.agenda-compact-days .calendar-event-copy strong{display:block;min-width:0;font-size:16px;font-weight:700;line-height:1.45;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;color:var(--ink)}.agenda-compact-days .calendar-event-copy time{font-size:14px;font-weight:650;line-height:1.45;white-space:normal;overflow:visible;color:var(--dark);font-variant-numeric:tabular-nums}.agenda-compact-days .calendar-event-copy small,.agenda-compact-days .calendar-event-copy a{font-size:13px;line-height:1.45;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;color:var(--muted)}.agenda-compact-days .calendar-event-copy a{color:var(--dark-soft)}.agenda-compact-days .calendar-event-badge{position:static;align-self:flex-start;font-size:12px;line-height:1.4;padding:4px 8px;background:var(--canvas);color:var(--muted)}.agenda-compact-days .calendar-event-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.agenda-compact-days .calendar-event-action,.agenda-compact-days .calendar-event-edit{position:static;inset:auto;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;width:auto;height:auto;padding:8px 12px;font:inherit;font-size:13px;line-height:1.4;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--dark);cursor:pointer}.agenda-compact-days .calendar-event-cancel{font-size:22px;color:#a73b35}.agenda-compact-days .calendar-event-description{font-size:13px;line-height:1.45;color:var(--muted)}.agenda-compact-days .calendar-event-description summary{cursor:pointer}.agenda-compact-days .calendar-event-description p{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.agenda-compact-days .calendar-event:focus-visible{outline:2px solid var(--dark-soft);outline-offset:3px}
@media(max-width:760px){.agenda-compact-days[data-view=week]{grid-template-columns:minmax(0,1fr)}.agenda-compact-day{padding:12px}.agenda-compact-days .calendar-event.calendar-event{padding:15px}.agenda-compact-days .calendar-event-copy strong{font-size:15px}.agenda-compact-days .calendar-event-copy time{font-size:14px}.agenda-compact-days .calendar-event-copy small{font-size:13px}}
/* Compact clinical agenda: calendar colour, creation origin and sync are distinct. */
.agenda-toolbar{gap:12px;margin-bottom:12px}.agenda-view-controls{gap:12px;align-items:end}.agenda-view-controls select,.agenda-view-controls input,.agenda-toolbar .button{min-height:42px;height:42px;padding-top:8px;padding-bottom:8px}.agenda-group-label{display:grid;gap:4px;font-size:12px}.agenda-group-label[hidden]{display:none}.agenda-creator-legend{margin:8px 0;font-size:12px;color:var(--muted)}
.agenda-compact-days{gap:10px;margin-top:16px}.agenda-compact-day{background:#fff;padding:18px;min-width:0}.agenda-compact-day-heading{margin-bottom:10px}.agenda-compact-day-title{font-size:14px;min-height:44px}.agenda-compact-day-events,.agenda-origin-group-events{display:grid;gap:10px;min-width:0}
.agenda-compact-days .calendar-event.calendar-event{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:12px;padding:14px;line-height:1.4;border-left-width:4px;min-width:0;height:auto;min-height:0;overflow:visible}
.agenda-compact-days .calendar-event>time{font-size:14px;font-weight:600;line-height:1.4;white-space:normal}.agenda-compact-days .calendar-event-copy{min-width:0;gap:4px}.agenda-compact-days .calendar-event-copy strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere}.agenda-compact-days .calendar-event-copy small{font-size:13px;line-height:1.4}.calendar-event-aside{display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-width:180px}.agenda-compact-days .calendar-event-badge{font-size:12px;align-self:auto;white-space:normal}.agenda-compact-days .calendar-event-actions{display:flex;flex-wrap:wrap;gap:4px;margin:0}.agenda-compact-days .calendar-event-actions button{min-width:44px;min-height:44px;padding:8px 10px}.calendar-event-creator{color:var(--muted)}.calendar-event-description p{white-space:pre-wrap;overflow-wrap:anywhere}.agenda-origin-group{min-width:0;border:1px solid var(--line);border-radius:12px;background:white}.agenda-origin-group>summary{cursor:pointer;min-height:44px;padding:12px;font-size:13px;font-weight:600;border-left:4px solid var(--agenda-calendar-color,var(--line));border-radius:12px}.agenda-origin-group-events{padding:0 10px 10px}.agenda-origin-group .calendar-event-origin{display:none}.calendar-event-week-details>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:13px}.calendar-event-week-details small{display:block}
.agenda-compact-days[data-view=week] .calendar-event.calendar-event{grid-template-columns:minmax(0,1fr) auto;gap:8px}.agenda-compact-days[data-view=week] .calendar-event>time{grid-column:1;grid-row:1}.agenda-compact-days[data-view=week] .calendar-event-copy{grid-column:1/-1;grid-row:2}.agenda-compact-days[data-view=week] .calendar-event-aside{display:contents}.agenda-compact-days[data-view=week] .calendar-event-badge{grid-column:2;grid-row:1;justify-self:end}.agenda-compact-days[data-view=week] .calendar-event-actions{grid-column:1/-1;grid-row:3}
@media(max-width:900px){.agenda-compact-days .calendar-event.calendar-event{grid-template-columns:minmax(0,1fr) auto;gap:8px}.agenda-compact-days .calendar-event>time{grid-column:1;grid-row:1}.agenda-compact-days .calendar-event-copy{grid-column:1/-1;grid-row:2}.agenda-compact-days .calendar-event-aside{display:contents}.agenda-compact-days .calendar-event-badge{grid-column:2;grid-row:1;justify-self:end}.agenda-compact-days .calendar-event-actions{grid-column:1/-1;grid-row:3}.agenda-compact-day{padding:12px}.agenda-view-controls{flex-wrap:wrap}.agenda-compact-days .calendar-event.calendar-event{padding:12px}.agenda-compact-days .calendar-event-copy strong{font-size:16px}}

/* Connection management is available in the upper menu. */
.agenda-view .calendar-connection-card[hidden]{display:none!important}
.agenda-compact-days .calendar-event.calendar-event{border-left-width:16px}
.agenda-month .calendar-event.calendar-event-month{border-left-width:16px}

/* Familiar controls in the Clinitech visual system. */
.agenda-views-row{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:12px;align-items:end}.agenda-views-row label{min-width:0}.agenda-views-row button,.agenda-views-row select{min-height:44px}.agenda-views-panel{background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(255,255,255,.88));backdrop-filter:blur(8px)}#agenda-selection{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}#agenda-selection>summary{min-height:44px;cursor:pointer;display:flex;align-items:center}.agenda-controls-bar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.94)}.agenda-mode-tabs{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px}.agenda-mode-tabs button{min-height:44px;padding:8px 14px}.agenda-mode-tabs button[aria-pressed=true]{background:var(--green,#218c62);color:#fff}.agenda-controls-bar .agenda-navigation{justify-content:center;gap:8px;min-width:0;flex-wrap:nowrap}.agenda-controls-bar input{min-width:0;max-width:170px;height:44px}.agenda-controls-bar .agenda-date-label{margin:0;min-width:0}.agenda-controls-bar .agenda-view-controls{margin:0}.agenda-controls-bar button{min-height:44px}.agenda-results-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}.agenda-results-heading h2{margin:0;font-size:18px}.agenda-results-heading .agenda-group-label{display:flex;align-items:center;gap:8px}.agenda-results-heading select{min-height:44px}.agenda-controls-bar #agenda-view-mode[hidden]{display:none}
@media(max-width:1100px){.agenda-controls-bar{grid-template-columns:1fr auto}.agenda-controls-bar .agenda-navigation{grid-row:2;grid-column:1/-1}.agenda-controls-bar .agenda-view-controls{grid-row:1;grid-column:2}.agenda-mode-tabs{justify-self:start}}
@media(max-width:600px){.agenda-views-row{grid-template-columns:1fr 1fr}.agenda-views-row label{grid-column:1/-1}.agenda-views-row button{padding:8px;font-size:12px}.agenda-controls-bar{gap:12px;padding:12px}.agenda-mode-tabs button{padding:8px 10px;font-size:13px}.agenda-controls-bar .agenda-navigation{gap:6px}.agenda-controls-bar input{width:145px;max-width:100%;font-size:14px}.agenda-controls-bar .agenda-nav-button{min-width:36px;padding:6px}.agenda-controls-bar .agenda-today-button{padding:8px}.agenda-results-heading h2{font-size:15px}.agenda-results-heading .agenda-group-label{font-size:12px}.agenda-results-heading select{max-width:125px}}

.workspace-account{border:1px solid var(--line);border-radius:14px;padding:16px;margin-top:16px}.workspace-account>strong{display:block;overflow-wrap:anywhere}.workspace-calendar-visibility{grid-column:1/-1;display:flex!important;align-items:center;gap:8px;font-size:13px!important}.workspace-calendar-visibility input{width:20px;height:20px;flex:none}.workspace-booking-origin{margin-left:12px;padding-left:12px;border-left:3px solid var(--line)}.workspace-account .workspace-calendar{margin-top:10px}.workspace-account .workspace-calendar label{overflow-wrap:anywhere}@media(max-width:600px){.workspace-account{padding:12px}.workspace-account .workspace-calendar{grid-template-columns:minmax(0,1fr) 18px}.workspace-account .workspace-calendar select{grid-column:1}.workspace-account .workspace-calendar button{grid-column:2;min-width:70px;justify-self:end}.workspace-booking-origin{margin-left:4px;padding-left:8px}}

/* Week uses compact, content-sized cards; day and month retain their own layouts. */
.agenda-compact-days[data-view=week]{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.agenda-compact-days[data-view=week] .agenda-compact-day{padding:10px}.agenda-compact-days[data-view=week] .agenda-compact-day-heading{margin-bottom:8px}.agenda-compact-days[data-view=week] .agenda-compact-day-title{font-size:13px}.agenda-compact-days[data-view=week] .agenda-compact-day-events{gap:8px}.agenda-compact-days[data-view=week] .calendar-event.calendar-event{display:flex;flex-direction:column;gap:4px;padding:10px;border-left-width:8px;border-radius:10px}.agenda-compact-days[data-view=week] .calendar-event>time{font-size:13px;line-height:1.35}.agenda-compact-days[data-view=week] .calendar-event-copy{gap:3px}.agenda-compact-days[data-view=week] .calendar-event-copy>strong{font-size:15px;line-height:1.35}.agenda-compact-days[data-view=week] .calendar-event-origin{font-size:11px;line-height:1.3}.agenda-compact-days[data-view=week] .calendar-event-week-details>summary{min-height:28px;font-size:12px;padding:2px 0}.agenda-compact-days[data-view=week] .calendar-event-week-details .calendar-event-aside{display:flex;align-items:flex-start;max-width:none;margin-top:6px;gap:6px}.agenda-compact-days[data-view=week] .calendar-event-week-details .calendar-event-actions{display:flex;gap:4px}.agenda-compact-days[data-view=week] .calendar-event-week-details small{font-size:12px}.agenda-compact-days[data-view=week] .calendar-event-week-details .calendar-event-description>summary{min-height:44px;display:flex;align-items:center}.agenda-compact-days[data-view=week] .calendar-event-week-details p{font-size:13px;line-height:1.4;overflow-wrap:anywhere}.agenda-compact-days[data-view=week] .agenda-origin-group-events{padding:0 6px 6px}
@media(max-width:760px){.agenda-compact-days[data-view=week]{grid-template-columns:minmax(0,1fr)}.agenda-compact-days[data-view=week] .calendar-event.calendar-event{padding:10px 12px}.agenda-compact-days[data-view=week] .calendar-event-week-details>summary{min-height:44px}.agenda-compact-days[data-view=week] .calendar-event-copy>strong{font-size:15px}}

/* A complete desktop week always occupies one row, Monday through Sunday. */
@media(min-width:761px){
.agenda-compact-days[data-view=week]{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;width:100%;min-width:0}
.agenda-compact-days[data-view=week] .agenda-compact-day{padding:7px;min-width:0;border-radius:10px}
.agenda-compact-days[data-view=week] .agenda-compact-day-heading{gap:3px;margin-bottom:6px;flex-wrap:wrap;align-items:center}
.agenda-compact-days[data-view=week] .agenda-compact-day-heading h3{min-width:0;margin:0;flex:1}
.agenda-compact-days[data-view=week] .agenda-compact-day-title{font-size:12px;line-height:1.3;min-height:32px;padding:0;white-space:normal;overflow-wrap:anywhere}
.agenda-compact-days[data-view=week] .agenda-compact-day-count{font-size:10px;min-width:18px;padding:2px 4px}
.agenda-compact-days[data-view=week] .agenda-compact-day-events{gap:6px}
.agenda-compact-days[data-view=week] .calendar-event.calendar-event{padding:8px 6px;border-left-width:6px;gap:3px;border-radius:8px}
.agenda-compact-days[data-view=week] .calendar-event>time{font-size:12px;line-height:1.3;overflow-wrap:anywhere}
.agenda-compact-days[data-view=week] .calendar-event-copy>strong{font-size:13px;line-height:1.35}
.agenda-compact-days[data-view=week] .calendar-event-origin{font-size:10px;line-height:1.3;overflow-wrap:anywhere}
.agenda-compact-days[data-view=week] .calendar-event-week-details>summary{font-size:11px;min-height:26px}
.agenda-compact-days[data-view=week] .agenda-compact-empty{font-size:11px;padding:8px 0}
.agenda-compact-days[data-view=week] .calendar-event-actions{flex-direction:column;align-items:stretch;width:100%}
.agenda-compact-days[data-view=week] .calendar-event-actions button{max-width:100%;font-size:11px;white-space:normal;padding:6px}
.agenda-compact-days[data-view=week] .agenda-origin-group>summary{font-size:11px;padding:6px;overflow-wrap:anywhere}
.agenda-compact-days[data-view=week] .agenda-origin-group-events{padding:0 3px 5px}
}

/* Weekly cards expose only time and title; full information stays in the editor. */
.agenda-compact-days[data-view=week] .calendar-event-copy>.calendar-event-origin,.agenda-compact-days[data-view=week] .calendar-event-copy>.calendar-event-week-details{display:none}
.agenda-compact-days[data-view=week] .calendar-event.calendar-event{gap:3px}

.agenda-compact-days .calendar-event-birthday.calendar-event{background:#FFF4F4;border-color:#E8A5A5;border-left-color:#D04444}
.agenda-compact-days .calendar-event-birthday .calendar-event-badge{background:#FFE3E3;color:#9F2020}
.agenda-month .calendar-event-birthday.calendar-event-month{background:#FFF4F4;color:#9F2020;border-left-color:#D04444}
