.calendar-empty{padding:24px;color:var(--muted);list-style:none;margin:0}.calendar-assignment{padding:24px;border-bottom:1px solid var(--line)}.calendar-assignment:last-child{border-bottom:0}.calendar-assignment h3{overflow-wrap:anywhere}.calendar-assignment-actions{margin-top:18px}.calendar-description{white-space:pre-wrap;overflow-wrap:anywhere;}.calendar-info-body{padding:24px}.calendar-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;grid-column:1/-1;margin-bottom:8px}.calendar-info-grid>div{min-width:0}.calendar-info-grid span{display:block;color:var(--muted);margin-bottom:7px}.calendar-info-grid strong{overflow-wrap:anywhere}.calendar-delivery{border-top:1px solid var(--line);padding:20px 0}.calendar-delivery h3{}.calendar-delivery>.actions{margin-top:16px}.calendar-history{margin-top:20px}.calendar-history summary{padding:12px 0;cursor:pointer;color:var(--gold);min-height:44px}.calendar-history .note{margin-top:20px}.calendar-panel .panel-head>.actions{flex-wrap:wrap}.cohort-subjects .row-action .actions{flex-direction:column;align-items:stretch}.cohort-subjects .row-action .button{margin-bottom:4px}#calendar-info .calendar-info-body>.actions{margin-top:20px}

.calendar-cohort-heading{margin-bottom:12px!important;gap:0!important}.calendar-cohort-heading .eyebrow{display:none}.calendar-cohort-heading h1{margin-bottom:4px}.calendar-cohort-heading p{margin:4px 0}.calendar-cohort-heading>.actions:empty{display:none}.calendar-cohort-heading~.tabs{margin-bottom:16px}
.weekly{min-width:0}.week-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}.week-topbar h2{margin:0 0 6px}.week-topbar p{color:var(--muted);margin:0}.week-view-actions{display:flex;gap:8px;flex-wrap:wrap}.week-view-actions .button{padding:9px 12px}
.week-navigation{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:12px}.week-navigation>.actions{margin-right:auto;gap:8px}.week-navigation label{color:var(--muted);display:flex;gap:6px;flex-direction:column;min-width:0}.week-navigation input{min-height:44px;max-width:190px}.week-navigation .button{padding:9px 12px}.week-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:var(--muted);min-height:44px;padding:8px 0 14px}.week-status strong{color:var(--gold);}.week-status small{margin-left:auto;color:var(--muted);}
.weekly-workspace{display:grid;grid-template-columns:220px minmax(0,1fr);align-items:start;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--panel)}.week-palette{min-width:0;padding:16px;max-height:610px;overflow-y:auto;scrollbar-width:thin}.week-palette h3{margin:0 0 10px}.week-help{color:var(--muted);margin:0 0 14px}.week-subject{display:flex;align-items:start;flex-direction:column;gap:7px;width:100%;padding:12px;border:1px solid var(--line);border-left:3px solid var(--week-accent);border-radius:7px;text-align:left;background:var(--panel-2);color:var(--text);margin-bottom:10px;cursor:pointer;overflow-wrap:anywhere}.week-subject strong{}.week-subject span{color:var(--muted)}.week-subject small{color:var(--muted);}.week-subject b{color:var(--week-accent);}.week-subject:disabled{opacity:.7;cursor:default}.week-subject.selected,.week-subject:hover:not(:disabled){border-color:var(--week-accent);background:var(--week-fill)}.week-pause-palette{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.week-pause-choice{width:100%;text-align:left;display:flex;flex-direction:column;gap:6px;background:var(--panel-2);color:var(--text);border:1px solid var(--line);border-left:3px solid var(--week-accent);padding:12px;border-radius:7px;margin-bottom:10px;cursor:pointer;min-height:62px}.week-pause-choice strong{}.week-pause-choice small{color:var(--muted)}.week-pause-choice.selected,.week-pause-choice:hover{background:var(--week-fill);border-color:var(--week-accent)}
.week-mobile-picker{display:none}.week-scroller{overflow:auto;max-height:610px;height:min(610px,calc(100dvh - 340px));min-height:360px;border-left:1px solid var(--line);scrollbar-width:thin;position:relative;overscroll-behavior:contain;min-width:0}.week-matrix{display:grid;grid-template-columns:58px repeat(5,minmax(126px,1fr));grid-template-rows:52px var(--week-height,1056px);min-width:688px;isolation:isolate}.week-matrix.with-weekend{grid-template-columns:58px repeat(7,minmax(126px,1fr));min-width:940px}.week-corner,.week-day-title{position:sticky;top:0;z-index:6;background:#1d2b3d;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:center;min-width:0}.week-corner{left:0;z-index:9;color:var(--muted)}.week-day-title{flex-direction:column;gap:4px;border-left:1px solid var(--line);}.week-day-title strong{}.week-day-title span{color:var(--muted);}.week-day-title.is-today{color:var(--gold);box-shadow:inset 0 3px 0 var(--gold)}
.week-time-axis{position:sticky;left:0;z-index:5;background:#172231;border-right:1px solid var(--line);height:var(--week-height)}.week-time-label{position:absolute;left:0;width:100%;text-align:center;color:#9caec5;transform:translateY(-50%);pointer-events:none}.week-time-label:first-child{transform:none;padding-top:2px}.week-track{position:relative;height:var(--week-height);border-right:1px solid var(--line);min-width:0;background:repeating-linear-gradient(to bottom,transparent 0,transparent 23px,#26364a 23px,#26364a 24px,transparent 24px,transparent 47px,#35455b 47px,#35455b 48px)}.week-track.is-today{background-color:#d9b56a03}.week-slot{position:absolute;left:0;width:100%;height:48px;min-height:0;border:0;background:transparent;color:transparent;text-align:left;cursor:crosshair;z-index:1;padding:8px;}.week-slot:hover,.week-slot:focus-visible{background:#d9b56a12;color:var(--gold);outline:1px solid #d9b56a50;outline-offset:-2px}.week-event{position:absolute;left:3px;width:calc(100% - 6px);min-height:0;padding:6px 7px;display:flex;flex-direction:column;align-items:start;gap:4px;border:1px solid var(--week-accent);border-left:3px solid var(--week-accent);border-radius:5px;background:var(--week-fill);color:var(--text);overflow:hidden;text-align:left;cursor:pointer;z-index:2;margin:0;box-sizing:border-box}.week-event small{white-space:nowrap;max-width:100%}.week-event strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.week-event>span{color:#d3ddeb;max-width:100%}.week-event:hover,.week-event:focus-visible{filter:brightness(1.18);outline:2px solid var(--gold);outline-offset:-2px;z-index:4}.week-event.is-realized{border-right:4px solid var(--green)}.week-pause{gap:1px;padding:2px 6px}.week-pause strong{-webkit-line-clamp:1}.week-pause small{}.week-event.is-short{padding:1px 5px;gap:0}.week-event.is-short strong{-webkit-line-clamp:1}.week-event.is-short small,.week-event.is-short>span{display:none}.week-legacy-note{color:var(--muted);margin:12px 0}.week-subject[draggable=true],.week-pause-choice[draggable=true],.week-event[draggable=true]{cursor:grab}.week-event[draggable=true]:active{cursor:grabbing}
.week-color-0{--week-accent:var(--accent);--week-fill:#3c3525}.week-color-1{--week-accent:var(--blue);--week-fill:#253b56}.week-color-2{--week-accent:var(--green);--week-fill:#234438}.week-color-3{--week-accent:#c8a5ee;--week-fill:#3d3052}.week-color-4{--week-accent:#e5a27f;--week-fill:#50392f}.week-color-5{--week-accent:#85d3de;--week-fill:#24414a}.week-color-6{--week-accent:#e2a8cb;--week-fill:#4a3043}.week-color-7{--week-accent:#b8d68a;--week-fill:#36452c}.is-break{--week-accent:#9daec3;--week-fill:#303d50}.is-lunch{--week-accent:#ddc48b;--week-fill:#493f2b}
@media(min-width:1600px){.week-scroller{height:min(700px,calc(100dvh - 310px));max-height:700px}.week-palette{max-height:700px}.week-matrix{grid-template-columns:58px repeat(5,minmax(140px,1fr))}}
@media(max-width:1100px){.weekly-workspace{grid-template-columns:190px minmax(0,1fr)}.week-palette{padding:12px}.week-status small{margin-left:0}.week-topbar{gap:12px}.week-view-actions .button{padding:9px 10px}}
@media(max-width:800px){.weekly-workspace{grid-template-columns:minmax(0,1fr)}.week-palette{display:none}.week-mobile-picker{display:flex;flex-direction:column;gap:6px;color:var(--muted);margin:0 0 10px}.week-mobile-picker select{width:100%;min-height:44px;}.week-scroller{border-left:0;min-height:380px;height:500px;max-height:65dvh}.week-status{gap:6px}.week-status small{width:100%}.calendar-cohort-heading h1{}}
@media(max-width:600px){.week-topbar h2{}.week-view-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}.week-view-actions>.button:last-child{grid-column:1/-1}.week-navigation{align-items:stretch}.week-navigation>.actions{width:100%;display:grid;grid-template-columns:1fr 1fr 1fr;margin-right:0}.week-navigation>.actions>.button{padding:9px 6px;}.week-navigation label{flex:1}.week-navigation>.button{align-self:end;flex:1;padding:9px;}.week-navigation input{width:100%;max-width:100%;}.week-status{padding:4px 0 12px}.week-scroller{min-height:360px;max-height:62dvh}.calendar-info-grid{grid-template-columns:1fr}.calendar-info-body,.calendar-assignment{padding:20px 16px}.calendar-assignment-actions>.button{flex:1 1 100%}.calendar-delivery .actions>.button,.calendar-delivery .actions>a{width:100%}.calendar-info-body>.actions>.button{flex:1 1 100%}}

.week-scroller{scroll-padding-top:60px;scroll-padding-bottom:10px}

.week-mobile-view{display:none}.back:has(+.calendar-cohort-heading){margin-bottom:10px}
@media(max-width:600px){
 .week-view-actions{display:none}.week-mobile-view{display:block;min-width:0;flex:0 1 166px;margin-left:auto}.week-mobile-view select{width:100%;min-height:44px;padding:8px}.week-topbar{align-items:center;margin-bottom:12px;gap:8px}.week-topbar h2{}.week-topbar p{}.week-topbar>div:first-child{flex:1 1 142px}
 .week-navigation label>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.week-navigation label{gap:0}.week-status{min-height:32px;align-items:center;padding-bottom:10px}.week-status .week-selected-label{display:none}.week-status small{width:auto;margin-left:0}.calendar-cohort-heading~.tabs button{min-height:44px;padding:10px 8px}
}

.week-inline-field{display:flex;flex-direction:column;gap:6px;color:var(--muted);margin:0 0 14px}.week-inline-field input{width:100%;min-width:0;min-height:38px;padding:8px;}.weekly.is-saving{pointer-events:none;cursor:progress}.weekly.is-saving .weekly-workspace{opacity:.75}

.week-selection-message{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;flex:1}.week-selection-message.is-previewing{color:var(--gold);}.week-selection-message.is-invalid{color:var(--red)}
.week-event{padding:0;gap:0}.week-event-open{display:flex;flex-direction:column;align-items:start;gap:4px;width:100%;height:100%;min-height:0;min-width:0;border:0;margin:0;padding:6px 7px;border-radius:3px;background:transparent;color:inherit;text-align:left;cursor:inherit;overflow:hidden}.week-event-open>span{color:#d3ddeb;max-width:100%}.week-event.has-remove .week-event-open{padding-right:29px}.week-pause .week-event-open{padding-top:2px;padding-bottom:2px;gap:1px}.week-event.is-short{padding:0;overflow:visible}.week-event.is-short .week-event-open{padding-top:1px;padding-bottom:1px;gap:0}.week-event.is-short .week-event-open>span{display:none}.week-event:focus-within{outline:2px solid var(--gold);outline-offset:-2px;z-index:4}
.week-event-remove{position:absolute;top:2px;right:2px;z-index:3;width:24px;height:24px;min-width:24px;min-height:24px;display:grid;place-items:center;padding:0;border:1px solid #d1dced66;border-radius:4px;background:#172231;color:#fff;cursor:pointer}.week-event-remove:hover,.week-event-remove:focus-visible{background:#653039;border-color:#f0a0a0;color:#fff}.week-event.is-short .week-event-remove{top:50%;transform:translateY(-50%)}
.week-drag-preview{position:absolute;left:2px;width:calc(100% - 4px);z-index:5;pointer-events:none;display:flex;flex-direction:column;gap:4px;padding:6px;border:2px dashed #f6d586;border-radius:5px;background:#3d4e5cf0;color:#fff;box-shadow:0 0 0 1px #152131,0 4px 12px #0005;overflow:hidden;}.week-drag-preview small{white-space:nowrap}.week-drag-preview strong{overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.week-drag-preview>span{color:#ffe4a8}.week-drag-preview.is-invalid{background:#63323deb;border-color:var(--red)}.week-drag-preview.is-invalid>span{color:#ffd8dc}.week-drag-time{position:absolute;left:1px;width:calc(100% - 2px);transform:translateY(-50%);padding:2px 0;border-radius:3px;background:#f6d586;color:#172130;text-align:center;z-index:2;pointer-events:none}.week-drag-time.is-invalid{background:var(--red)}.week-day-title.week-preview-day{background:#4b422d;color:#ffe4a8;box-shadow:inset 0 3px 0 #f6d586}.week-drag-image{position:fixed;left:-10px;top:-10px;width:1px;height:1px;pointer-events:none}.week-drag-source{opacity:.45}

.week-status.is-dragging{height:var(--week-status-height);flex-wrap:nowrap;overflow:hidden}.week-status.is-dragging small{flex-shrink:0}.week-selection-message.is-previewing{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.week-quick-settings{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:10px 0}.week-quick-settings label,.agenda-toolbar>label{display:flex;flex-direction:column;gap:5px;color:var(--muted);min-width:0}.week-quick-settings label:first-child{flex:1 1 230px}.week-quick-settings input{width:100%;}.week-quick-settings label:not(:first-child){flex:0 1 120px}.week-quick-settings .button{align-self:end}.week-base-editor{padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--panel);margin:12px 0}.week-base-editor h3{}.week-base-editor p,.week-exact p{color:var(--muted);}.week-base-days{display:flex;flex-wrap:wrap;gap:10px}.week-base-days label,.week-base-pause>label:first-child{display:flex;align-items:center;gap:7px;}.week-base-days input,.week-base-pause input[type=checkbox]{min-height:24px;width:24px;padding:0}.week-base-pause{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.week-base-pause>label:not(:first-child){display:flex;align-items:center;gap:6px;color:var(--muted)}.week-base-pause input[type=time]{}.week-exact{margin:8px 0;color:var(--muted);}.week-exact summary{cursor:pointer;padding:6px 0;min-height:30px}.week-save-status{color:var(--muted);margin:0 0 10px;min-height:16px}.week-slot{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:4px;overflow:hidden;box-sizing:border-box;left:3px;width:calc(100% - 6px);height:auto;background:#1a293a85;color:#9baec6;border:1px dashed #50617b70;border-radius:4px;text-align:center}.week-slot small{white-space:nowrap}.week-slot span{}.weekly.is-distributing .week-slot:not(.week-gap){background:#d9b56a0a;color:#e7cb94;border-color:#d9b56a65}.week-slot.week-gap{background:transparent;border-color:#43526950;color:#8495ab}.week-slot.is-short small,.week-slot.is-short span{display:none}.week-event-open{gap:2px}.week-event-team{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.week-short-list{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:7px}.week-short-list p{color:var(--muted);margin-bottom:8px}.week-short-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;}.week-short-list .week-event-remove{position:static;transform:none;flex-shrink:0;width:32px;height:32px}.week-undo{position:fixed;bottom:20px;right:20px;max-width:min(500px,calc(100% - 32px));background:#273b35;color:#d6f6e7;border:1px solid #4b7866;border-radius:9px;padding:12px 16px;display:flex;align-items:center;gap:12px;z-index:100;box-shadow:0 6px 30px #0005;}.week-undo .button{flex-shrink:0}
.reader-agenda{min-width:0}.agenda-next{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border:1px solid #d9b56a60;border-left:4px solid var(--gold);border-radius:8px;background:#d9b56a0b;margin:12px 0 16px;overflow-wrap:anywhere;}.agenda-next>strong{color:var(--gold);}.agenda-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:12px}.agenda-toolbar>.actions{margin-right:auto}.agenda-toolbar input,.agenda-toolbar select{min-height:44px;max-width:100%}.agenda-day{min-width:0}.agenda-day>h3{color:var(--muted);padding:10px 0;margin:4px 0}.agenda-card{border:1px solid var(--line);border-left:3px solid var(--week-accent,var(--muted));border-radius:7px;background:var(--panel);padding:14px;margin-bottom:10px;min-width:0;overflow-wrap:anywhere}.agenda-card h4{margin:0 0 8px}.agenda-card p{color:var(--muted);margin:4px 0}.agenda-card .agenda-time{color:var(--text);margin:0 0 8px}.agenda-card>.actions{margin-top:12px;justify-content:space-between}.agenda-card.agenda-pause{background:#29344555}.agenda-week{display:grid;grid-template-columns:repeat(7,minmax(155px,1fr));gap:10px;overflow-x:auto;min-width:0;align-items:start;padding-bottom:12px}.agenda-week-nav{justify-content:space-between;margin-bottom:12px;}.agenda-week .agenda-card{padding:10px}.agenda-week .agenda-card h4{}.agenda-week .agenda-card p{}.agenda-week .agenda-time{}.agenda-empty{padding:18px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);margin-bottom:12px}
@media(max-width:600px){.week-quick-settings{gap:8px}.week-quick-settings label:first-child{flex-basis:100%}.week-quick-settings label:not(:first-child){flex:1 1 100px}.week-status .button{min-height:34px;padding:5px 8px;}.week-base-pause{gap:8px}.week-base-pause>label:first-child{width:100%}.week-base-pause>label:not(:first-child){flex:1}.week-base-pause input[type=time]{width:100%}.week-undo{flex-wrap:wrap;bottom:16px;right:16px}.agenda-toolbar>.actions{width:100%}.agenda-toolbar>.actions .button{flex:1;padding:8px}.agenda-toolbar>label{flex:1 1 130px}.reader-agenda .week-topbar>.actions{width:100%}.reader-agenda .week-topbar>.actions .button{flex:1;}.agenda-next{}}
.week-topbar{margin-bottom:10px}.week-navigation{margin-bottom:6px}.week-quick-settings{margin:6px 0}.week-exact{margin:4px 0}.week-exact summary{padding:3px 0;min-height:26px}.week-status{padding:4px 0;min-height:38px}.week-save-status{margin-bottom:6px;min-height:12px}.week-slot.is-incompatible{color:#96a1b2;background:#1b2534;border-color:#3d495b}.week-drag-preview{background:#344758}.week-drag-preview.is-invalid{background:#63323d}
.week-jump{display:flex;align-items:center;gap:8px;color:var(--muted);margin:6px 0}.week-jump select{min-height:38px;max-width:230px}.week-time-label:last-child{transform:translateY(-100%)}.week-pause-editor{margin:8px 0;padding:0 0 6px;color:var(--muted);}.week-pause-editor summary{cursor:pointer;padding:7px 0;color:var(--gold);min-height:32px}.week-pause-editor[open]{padding:12px;border:1px solid var(--line);border-radius:7px;background:var(--panel)}.week-pause-editor p{margin:8px 0 12px}.week-pause-editor>small{display:block;margin-top:10px}.week-pause-fields{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.week-pause-fields label{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1 1 120px}.week-pause-fields label:nth-child(2){flex-basis:160px}.week-pause-fields input,.week-pause-fields select{width:100%;}.week-base-pause input[type=text]{width:110px;}
@media(max-width:600px){.week-jump{justify-content:space-between}.week-jump select{flex:1;max-width:240px}.week-pause-fields label{flex:1 1 120px}.week-pause-fields .button{width:100%}.week-base-pause input[type=text]{width:100%}}
.week-quick-settings .week-jump{display:flex;align-items:stretch;gap:5px;margin:0;flex:0 1 190px}.week-quick-settings .week-jump select{max-width:100%;min-height:42px}.week-inline-tools{display:flex;gap:14px;flex-wrap:wrap;align-items:start}.week-inline-tools>details{margin:4px 0}.week-inline-tools>details[open]{flex:1 1 100%;order:1}.week-inline-tools>details>summary{min-height:32px;padding:7px 0}
@media(max-width:600px){.week-quick-settings .week-jump{flex:1 1 100%}.week-quick-settings .week-jump select{max-width:none}.week-inline-tools{gap:0 12px}}
.week-quick-settings label.week-jump{flex:0 1 190px}
@media(max-width:600px){.week-quick-settings label.week-jump{flex:1 1 100%}}

/* Shared calendar palette; colored disciplines remain distinguishable. */
.weekly,.reader-agenda{background:var(--panel);color:var(--text);border-color:var(--line);border-radius:12px;box-shadow:var(--shadow)}
.week-topbar{padding:20px 22px}.week-topbar h2{}.week-topbar p,.week-help,.week-save-status{color:var(--muted)}
.week-navigation,.agenda-toolbar,.week-quick-settings{background:var(--panel);border-color:var(--line)}
.week-palette{background:var(--panel);border-color:var(--line)}.week-palette h3{color:var(--text)}
.week-palette .week-help{}.week-subject,.week-pause-choice{border-radius:8px;}
.week-scroller,.week-matrix,.week-track,.week-time-axis{background:var(--panel);border-color:var(--line)}
.week-day-title,.week-corner{background:var(--panel-2);color:var(--text);border-color:var(--line)}
.week-time-label,.week-slot{color:var(--muted)}.week-slot{border-color:var(--line);background:transparent}.week-slot:hover{background:var(--accent-soft)}
.week-base-editor,.week-exact,.week-pause-editor{background:var(--panel-2);border-color:var(--line);color:var(--text)}
.week-status,.week-selection-message{color:var(--text)}.week-status{background:var(--accent-soft);border-color:var(--line)}
.agenda-next{background:var(--accent-soft);border-color:var(--line);color:var(--brand-light)}.agenda-card{border-color:var(--line);border-radius:9px}
.week-event-open{color:inherit}.week-event-remove{color:inherit}.week-jump select,.week-mobile-picker select{background:var(--panel);color:var(--text)}
.week-inline-tools summary{}.week-quick-settings label{}.week-selected-label{color:var(--brand-light)}
.week-color-0{--week-color:#275b92;--week-wash:#edf3fb}.week-color-1{--week-color:#166e61;--week-wash:#eaf5f0}.week-color-2{--week-color:#7955a1;--week-wash:#f3eef9}.week-color-3{--week-color:#8c6425;--week-wash:#fbf4e8}.week-color-4{--week-color:#286d85;--week-wash:#eaf4f8}.week-color-5{--week-color:#965566;--week-wash:#f9eff2}.week-color-6{--week-color:#5b7161;--week-wash:#eef5ef}.week-color-7{--week-color:#665b98;--week-wash:#f1eff8}
html[data-theme=dark] [class*=week-color-]{--week-wash:#192d49;--week-color:#9ac0ff}
html[data-theme=dark] .week-color-1{--week-wash:#18362e;--week-color:#91d5b0}
html[data-theme=dark] .week-color-2{--week-wash:#312644;--week-color:#c7a8ed}
html[data-theme=dark] .week-color-3{--week-wash:#3a3020;--week-color:#e7bd69}
html[data-theme=dark] .week-color-4{--week-wash:#1b3440;--week-color:#94cce3}
html[data-theme=dark] .week-color-5{--week-wash:#3e2937;--week-color:#e3adca}
html[data-theme=dark] .week-color-6{--week-wash:#29382c;--week-color:#accbb0}
html[data-theme=dark] .week-color-7{--week-wash:#2d2941;--week-color:#c4b7eb}
[class*=week-color-]:is(.week-event,.week-subject,.agenda-card){background:var(--week-wash);color:var(--week-color);border-color:var(--week-color)}
.week-pause{background:var(--panel-2);color:var(--muted)}.week-pause.is-lunch{background:var(--gold-wash);color:var(--gold)}
@media(max-width:650px){.week-topbar{padding:18px 15px}.week-navigation,.week-quick-settings{padding-left:15px;padding-right:15px}.week-topbar .week-view-actions .button{}.week-mobile-view select{}}

/* Calendar controls follow the same content margins as its grid. */
.weekly{border:1px solid var(--line);overflow:hidden}
.week-topbar{border-bottom:1px solid var(--line);padding:20px 22px}
.week-navigation{padding:16px 20px;margin:0;border-bottom:1px solid var(--line)}
.week-quick-settings{padding:15px 20px;margin:0}
.week-inline-tools{padding:0 20px 15px;gap:10px;display:flex;flex-wrap:wrap}
.week-status{margin:0 20px;padding:13px 15px;border:1px solid var(--line);border-radius:8px;gap:12px;flex-wrap:wrap}
.week-save-status{padding:0 20px;margin:12px 0;}
.weekly-workspace{margin:0 20px 20px;border-radius:9px;overflow:hidden;border:1px solid var(--line)}
.week-palette{border-right:1px solid var(--line)}
.week-event :is(strong,span,small){color:inherit!important;opacity:1}
.week-event-open strong{}.week-event-team{}.week-event-remove{background:var(--panel);color:var(--text);border-color:var(--line)}
.week-slot:disabled{color:var(--muted);opacity:.6}
.week-pause-choice small,.week-pause-choice strong{color:var(--text)}
.week-short-list,.week-legacy-note{margin-left:20px;margin-right:20px}
.week-exact>summary,.week-pause-editor>summary{padding:10px 12px}
.week-help,.week-time-label{}
@media(max-width:650px){.week-navigation{padding:15px}.week-quick-settings{padding:12px 15px}.week-inline-tools{padding:0 15px 12px}.week-status{margin:0 15px}.weekly-workspace{margin:0 12px 15px}.week-save-status{padding:0 15px}}

/* Let the selection message and its explanation take independent rows when needed. */
.week-selection-message { display:block; flex:1 1 320px; overflow-wrap:anywhere; line-height:1.5; }
.week-selection-message>span { margin-left:8px; }
.week-status>small { min-width:0; max-width:100%; line-height:1.5; }
.week-status.is-dragging .week-selection-message { flex:1 1 0; }
@media(max-width:800px) {
  .week-mobile-picker { margin:12px 15px; }
  .week-status { align-items:flex-start; }
  .week-status>.week-selection-message,.week-status>small { flex:1 1 100%; width:100%; }
  .week-status.is-dragging>.week-selection-message { flex:1 1 0; width:auto; }
  .week-status.is-dragging>small { display:none; }
}
@media(max-width:600px) {
  .week-navigation { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:end; }
  .week-navigation>.actions { grid-column:1/-1; min-width:0; }
  .week-navigation>label { grid-column:1/-1; width:100%; gap:6px; }
  .week-navigation>label>span { position:static; width:auto; height:auto; padding:0; margin:0; overflow:visible; clip:auto; white-space:normal; }
  .week-navigation>label>input { width:100%; max-width:none; }
  .week-navigation>[data-week-action=base-toggle] { grid-column:1/-1; }
  .week-navigation>.button { width:100%; }
}

/* Calendar geometry: keep headings, controls and time blocks on one spacing scale. */
body #app[data-dgarp-ui] .weekly { --calendar-gutter:20px; border-radius:var(--radius); }
body #app[data-dgarp-ui] .week-topbar { padding:20px var(--calendar-gutter); margin:0; gap:16px; }
body #app[data-dgarp-ui] .week-topbar h2 { margin:0 0 6px; line-height:1.4; }
body #app[data-dgarp-ui] .week-topbar p { margin:0; line-height:1.5; }
body #app[data-dgarp-ui] .week-navigation { padding:16px var(--calendar-gutter); gap:16px; }
body #app[data-dgarp-ui] .week-navigation>label { gap:8px; font-size:var(--text-sm); line-height:1.5; }
body #app[data-dgarp-ui] .week-quick-settings { gap:16px; padding:20px var(--calendar-gutter) 16px; }
body #app[data-dgarp-ui] .week-quick-settings label { gap:8px; font-size:var(--text-sm); line-height:1.5; }
body #app[data-dgarp-ui] .week-inline-tools { padding:0 var(--calendar-gutter) 16px; gap:12px; align-items:flex-start; }
body #app[data-dgarp-ui] .week-inline-tools>details { margin:0; padding:0; min-width:0; }
body #app[data-dgarp-ui] .week-inline-tools summary { padding:10px 12px; min-height:44px; font-size:var(--text-sm); line-height:1.5; }
body #app[data-dgarp-ui] .week-inline-tools>details[open] { flex:1 1 100%; padding:16px; }
body #app[data-dgarp-ui] .week-inline-tools>details[open]>summary { margin:-8px -4px 12px; }
body #app[data-dgarp-ui] .week-status { margin:0 var(--calendar-gutter); padding:14px 16px; gap:12px 20px; align-items:center; font-size:var(--text-sm); line-height:1.5; }
body #app[data-dgarp-ui] .week-save-status { margin:12px 0; padding:0 var(--calendar-gutter); font-size:var(--text-xs); line-height:1.5; }
body #app[data-dgarp-ui] .week-selection-message>span { margin:4px 0 0; display:block; }
body #app[data-dgarp-ui] .week-status>small { font-size:var(--text-xs); }
body #app[data-dgarp-ui] .weekly-workspace { margin:0 var(--calendar-gutter) 20px; grid-template-columns:220px minmax(0,1fr); }
body #app[data-dgarp-ui] .week-palette { padding:16px; font-size:var(--text-sm); line-height:1.5; }
body #app[data-dgarp-ui] .week-palette h3 { margin:0 0 12px; font-size:var(--text-sm); line-height:1.5; }
body #app[data-dgarp-ui] .week-help { margin:0 0 16px; line-height:1.5; }
body #app[data-dgarp-ui] :is(.week-subject,.week-pause-choice) { padding:12px; gap:8px; font-size:var(--text-sm); line-height:1.5; }
body #app[data-dgarp-ui] :is(.week-subject,.week-pause-choice)>* { max-width:100%; min-width:0; }
body #app[data-dgarp-ui] :is(.week-subject,.week-pause-choice) small { font-size:var(--text-xs); line-height:1.5; }
body #app[data-dgarp-ui] .week-pause-palette { padding-top:20px; margin-top:20px; }
body #app[data-dgarp-ui] .week-scroller { height:600px; max-height:72dvh; min-height:360px; scroll-padding-top:72px; }
body #app[data-dgarp-ui] .week-matrix { grid-template-columns:64px repeat(5,minmax(148px,1fr)); grid-template-rows:64px var(--week-height); min-width:804px; }
body #app[data-dgarp-ui] .week-matrix.with-weekend { grid-template-columns:64px repeat(7,minmax(148px,1fr)); min-width:1100px; }
body #app[data-dgarp-ui] :is(.week-corner,.week-day-title) { padding:8px 6px; font-size:var(--text-sm); line-height:1.5; gap:4px; }
body #app[data-dgarp-ui] .week-track { background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--week-half-hour) - 1px),var(--line) calc(var(--week-half-hour) - 1px),var(--line) var(--week-half-hour)); }
body #app[data-dgarp-ui] .week-time-label { font-size:var(--text-xs); line-height:1.5; font-variant-numeric:tabular-nums; }
body #app[data-dgarp-ui] :is(.week-event,.week-slot) { left:4px; width:calc(100% - 8px); font-size:var(--text-sm); line-height:1.4; }
body #app[data-dgarp-ui] .week-slot { padding:6px; gap:6px; }
body #app[data-dgarp-ui] .week-event-open { padding:8px; gap:4px; font-size:inherit; line-height:1.4; justify-content:flex-start; }
body #app[data-dgarp-ui] .week-event-open>* { flex-shrink:0; min-width:0; max-width:100%; margin:0; }
body #app[data-dgarp-ui] .week-event.has-remove .week-event-open { padding-right:30px; }
body #app[data-dgarp-ui] :is(.week-slot,.week-event) small { font-size:var(--text-xs); line-height:1.4; font-variant-numeric:tabular-nums; }
body #app[data-dgarp-ui] .week-event-open strong { line-height:1.4; -webkit-line-clamp:2; }
body #app[data-dgarp-ui] .week-event-team { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:1; white-space:normal; overflow:hidden; font-size:var(--text-xs); line-height:1.4; }
body #app[data-dgarp-ui] .week-event.is-spacious .week-event-team { -webkit-line-clamp:2; }
body #app[data-dgarp-ui] .week-event.is-compact .week-event-open { padding-top:6px; padding-bottom:6px; }
body #app[data-dgarp-ui] .week-event.is-compact .week-event-team { display:none; }
body #app[data-dgarp-ui] .week-event.is-tight .week-event-open { padding-top:2px; padding-bottom:2px; gap:0; }
body #app[data-dgarp-ui] .week-event.is-tight strong { -webkit-line-clamp:1; line-height:1.25; }
body #app[data-dgarp-ui] .week-event.is-tight .week-event-open>span { display:none; }
body #app[data-dgarp-ui] .week-event.is-short .week-event-open { padding-top:0; padding-bottom:0; gap:0; justify-content:center; }
body #app[data-dgarp-ui] .week-event.is-marker { border-top:0; border-bottom:0; }
body #app[data-dgarp-ui] .week-event.is-marker .week-event-open>* { display:none; }
body #app[data-dgarp-ui] .week-slot.is-tight>span { display:none; }
body #app[data-dgarp-ui] .week-event-remove { top:4px; right:4px; }
body #app[data-dgarp-ui] .week-event.is-short .week-event-remove { top:50%; }
@media(max-width:1100px) and (min-width:801px) {
  body #app[data-dgarp-ui] .weekly-workspace { grid-template-columns:200px minmax(0,1fr); }
}
@media(max-width:800px) {
  body #app[data-dgarp-ui] .weekly-workspace { grid-template-columns:minmax(0,1fr); }
  body #app[data-dgarp-ui] .week-mobile-picker { margin:16px var(--calendar-gutter) 0; gap:8px; font-size:var(--text-sm); line-height:1.5; }
  body #app[data-dgarp-ui] .week-status { align-items:flex-start; }
}
@media(max-width:600px) {
  body #app[data-dgarp-ui] .weekly { --calendar-gutter:14px; }
  body #app[data-dgarp-ui] .week-topbar>div:first-child { flex:1 1 100%; }
  body #app[data-dgarp-ui] .week-mobile-view { flex:1 1 100%; margin:0; }
  body #app[data-dgarp-ui] .week-navigation { gap:12px; }
  body #app[data-dgarp-ui] .week-quick-settings { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 12px; }
  body #app[data-dgarp-ui] .week-quick-settings>label:first-child,
  body #app[data-dgarp-ui] .week-quick-settings>.week-jump { grid-column:1/-1; }
  body #app[data-dgarp-ui] .week-inline-tools { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
  body #app[data-dgarp-ui] .week-inline-tools summary { padding:10px 0; }
  body #app[data-dgarp-ui] .week-status { padding:12px; }
  body #app[data-dgarp-ui] .week-scroller { height:560px; max-height:72dvh; }
}
