/* Class agenda: generous touch targets, quiet paper tones and small celebrations. */
.agenda-page{--agenda-paper:#fffefa;--agenda-line:#dce7d8;--agenda-mint:#edf3e8;--agenda-ink:#174c3d;max-width:1180px;margin:0 auto;padding:24px 20px 40px;color:var(--agenda-ink);isolation:isolate}
.agenda-page *{box-sizing:border-box}
.school-page .agenda-page{padding-inline:0}
.agenda-page button,.agenda-page input,.agenda-page select,.agenda-page textarea{font:inherit}
.agenda-page button{cursor:pointer}
.agenda-page button:disabled{cursor:wait}
.agenda-page :is(button,input,select,textarea):focus-visible{outline:3px solid #c28a28;outline-offset:4px}
.agenda-page .ui-icon{flex:none;width:23px;height:23px;object-fit:contain}
.agenda-hero{display:flex;position:relative;justify-content:space-between;align-items:center;gap:20px;min-height:208px;padding:26px 32px;border-radius:28px;background:linear-gradient(110deg,#edf3e6,#f2f5e9 70%,#e9f1df);overflow:hidden}
.agenda-hero-copy{position:relative;z-index:1;min-width:0;flex:1}
.agenda-eyebrow{display:block;font-size:.68rem;font-weight:800;letter-spacing:.13em;line-height:1.5;color:#647863}
.agenda-hero h1{font-size:clamp(1.8rem,4vw,2.65rem);letter-spacing:-.04em;line-height:1.15;margin:6px 0 9px}
.agenda-hero p{font-size:1rem;line-height:1.5;margin:0;color:#57705d}
.agenda-class-line{display:flex;margin-top:19px}
.agenda-class-chip,.agenda-class-picker{display:flex;align-items:center;gap:8px;min-height:36px;padding:5px 12px;border:1px solid #cedcc6;border-radius:12px;background:#ffffffbd;font-size:.87rem;font-weight:750}
.agenda-class-picker{padding:2px 10px;min-width:0;max-width:100%}.agenda-class-picker select{border:0;border-radius:9px;background:transparent;color:inherit;max-width:230px;min-width:0;min-height:40px;font-weight:750;padding:4px 22px 4px 0}
.agenda-class-chip .ui-icon,.agenda-class-picker .ui-icon{width:21px;height:21px}
.agenda-hero-art{display:grid;place-items:center;flex:none;width:245px;aspect-ratio:1456/1056;align-self:center}
.agenda-hero-art>img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}

.agenda-quick-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 2px 20px;min-height:79px}
.agenda-birthday-button{display:flex;align-items:center;gap:9px;min-height:44px;border:0;background:transparent;color:#806333;font-size:.86rem;font-weight:750;text-align:left;padding:8px 0}
.agenda-birthday-button small{font-size:.73rem;background:#f6ebd5;border-radius:20px;padding:4px 8px;font-weight:700;white-space:nowrap}
.agenda-sharing-note{display:flex;align-items:center;gap:9px;color:#6d7c67;font-size:.85rem;line-height:1.5}
.agenda-new{min-height:44px;padding:10px 16px;gap:8px;font-size:.9rem;flex:none}
.agenda-notice,.agenda-error{display:flex;align-items:center;gap:10px;padding:14px 17px;border:1px solid #c2dcb9;border-radius:15px;background:#eef7e8;font-size:.9rem;line-height:1.5;margin:0 0 18px}
.agenda-error{border-color:#e0b7ae;background:#fff1eb;color:#854732;flex-wrap:wrap}
.agenda-error>span{flex:1;min-width:200px}.agenda-error button{display:flex;align-items:center;gap:7px;border:1px solid #d9b09f;background:#fffaf5;padding:8px 10px;min-height:42px;border-radius:9px;color:inherit;font-weight:750}
.agenda-calendar{border:1px solid var(--agenda-line);border-radius:23px;background:var(--agenda-paper);box-shadow:0 5px 0 #e9eddf80;overflow:hidden}
.agenda-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:21px 21px 16px}
.agenda-period{display:flex;align-items:center;gap:7px;min-width:0}
.agenda-period h2{font-size:1.3rem;line-height:1.3;margin:0 6px;letter-spacing:-.025em;text-transform:capitalize;min-width:0}
.agenda-round-button{border:1px solid #e1e9dc;border-radius:50%;width:40px;height:40px;display:grid;place-items:center;flex:none;background:#f8faf3;color:inherit;padding:8px}
.agenda-round-button .ui-icon{width:20px;height:20px}
.agenda-view-tools{display:flex;align-items:center;gap:13px;flex:none}.agenda-today{background:transparent;border:0;color:inherit;font-weight:750;padding:8px;min-height:42px;font-size:.84rem}
.agenda-view-switch{display:flex;gap:3px;border:1px solid #dce5d5;border-radius:12px;background:#edf2e8;padding:4px}
.agenda-view-switch button{border:0;background:transparent;min-height:33px;padding:7px 13px;border-radius:8px;color:#60725a;font-size:.84rem;font-weight:750}
.agenda-view-switch button[aria-pressed=true]{background:#fffef9;color:#244f3c;box-shadow:0 2px 4px #263d2420}
.agenda-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding:4px 12px 10px;text-align:center;font-size:.74rem;font-weight:750;color:#83907b}
.agenda-weekdays span:nth-last-child(-n+2){color:#a09980}
.agenda-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;margin:0 12px;border-top:1px solid var(--agenda-line);background:var(--agenda-line)}
.agenda-day{position:relative;display:flex;flex-direction:column;align-items:stretch;min-width:0;min-height:96px;gap:7px;border:0;padding:8px 5px;background:#fffefa;text-align:left;color:var(--agenda-ink);transition:background .15s ease;isolation:isolate}
.agenda-day:hover{background:#f1f5e8}.agenda-day.is-weekend{background:#fafaf2}.agenda-day.is-outside{background:#f6f8f1;color:#a0aa94}.agenda-day.is-outside .agenda-day-events{opacity:.65}
.agenda-day-number{display:grid;place-items:center;align-self:flex-start;min-width:29px;height:29px;border-radius:50%;font-size:.89rem;font-weight:650;margin-left:4px}
.agenda-day.is-today .agenda-day-number{background:#e3edd9;color:#345c3e;font-weight:850;box-shadow:inset 0 0 0 1px #b6caaa}
.agenda-day.is-selected{z-index:1;box-shadow:inset 0 0 0 2px #557a4b;background:#f0f5e8}
.agenda-day.is-selected .agenda-day-number{background:#3e6949;color:white;box-shadow:none;font-weight:850}
.agenda-day-events{display:grid;gap:4px;min-width:0;width:100%}.agenda-event-pill{display:flex;gap:4px;align-items:center;min-width:0;width:100%;padding:4px 5px;background:var(--kind-soft);color:var(--kind-ink);border-radius:5px;line-height:1.2;font-size:.64rem;font-weight:650;text-align:left}
.agenda-event-pill>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agenda-event-pill .agenda-dot{width:5px;height:5px}
.kind-exam{--kind-color:#ba7958;--kind-soft:#f8ece2;--kind-ink:#8b533b}.kind-trip{--kind-color:#52875f;--kind-soft:#e8f1e0;--kind-ink:#426849}.kind-presentation{--kind-color:#6e83b1;--kind-soft:#eaf0fa;--kind-ink:#51668d}.kind-birthday{--kind-color:#c39331;--kind-soft:#fff4cf;--kind-ink:#917024}.kind-other{--kind-color:#9b83ae;--kind-soft:#f0eaf5;--kind-ink:#776486}
.agenda-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--kind-color);flex:none}.agenda-more{font-size:.6rem;padding:0 5px;font-weight:750;color:#677c5e}.agenda-day-dots{display:none}
.agenda-days.is-week .agenda-day{min-height:156px}.agenda-days.is-week .agenda-event-pill{padding:6px 5px}.agenda-days.is-week .agenda-event-pill>span{white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.agenda-calendar-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:17px 19px}
.agenda-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;font-size:.67rem;color:#6d7a67}.agenda-legend>span{display:flex;align-items:center;gap:5px}.agenda-calendar-hint,.agenda-loading-inline{font-size:.64rem;color:#8a937f}
.agenda-day-panel{padding:27px 2px 0}.agenda-day-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.agenda-day-heading h2{font-size:1.28rem;line-height:1.3;letter-spacing:-.02em;text-transform:capitalize;margin:4px 0 0}
.agenda-add-day{display:flex;gap:5px;align-items:center;flex:none;color:inherit;border:1px solid #d1dfc9;border-radius:12px;background:#f4f7ed;min-height:42px;padding:9px 12px;font-size:.79rem;font-weight:750}
.agenda-event-list{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))}
.agenda-event-card{display:flex;align-items:center;gap:15px;min-width:0;width:100%;min-height:100px;padding:18px;border:1px solid var(--agenda-line);border-radius:18px;background:var(--agenda-paper);color:var(--agenda-ink);text-align:left;box-shadow:0 3px 0 #ecf0e480}
.agenda-event-card:hover{border-color:#a8c09e}.agenda-event-symbol{width:55px;height:60px;display:grid;place-items:center;flex:none;background:var(--kind-soft);border-radius:15px;transform:rotate(-4deg)}.agenda-event-symbol .ui-icon{width:32px;height:32px}
.agenda-event-copy{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.agenda-event-category{font-size:.64rem;font-weight:750;color:var(--kind-ink);letter-spacing:.03em}.agenda-event-copy strong{font-size:1.03rem;line-height:1.3;overflow-wrap:anywhere}.agenda-event-preview{font-size:.79rem;color:#78816e;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.agenda-event-copy small{font-size:.65rem;color:#6f7c65}.agenda-event-card>.ui-icon{width:17px;height:17px;opacity:.6}
.agenda-day-empty{display:flex;align-items:center;gap:15px;padding:22px;background:#f4f6ec;border:1px dashed #d5dec8;border-radius:18px}.agenda-day-empty>span{display:grid;place-items:center;width:53px;height:53px;background:#e8efdc;flex:none;border-radius:50%}.agenda-day-empty .ui-icon{width:31px;height:31px}.agenda-day-empty strong{font-size:.94rem}.agenda-day-empty p{font-size:.83rem;line-height:1.5;margin:5px 0 0;color:#75806b}
.agenda-day-placeholder{padding:20px 0;color:#78816f;font-size:.87rem}.agenda-empty-class{text-align:center;padding:32px 20px;max-width:480px;margin:auto}.agenda-empty-class img{object-fit:contain}.agenda-empty-class h2{font-size:1.5rem;margin:18px 0 8px}.agenda-empty-class p{line-height:1.6;color:#75806b;font-size:.92rem}
.agenda-loading{display:flex;align-items:center;justify-content:center;gap:13px;min-height:240px;color:#75816b}.agenda-spinner{width:24px;height:24px;border:3px solid #dbe6d1;border-top-color:#56744a;border-radius:50%;animation:agenda-spin 1s linear infinite}@keyframes agenda-spin{to{transform:rotate(360deg)}}
.agenda-dialog{width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 40px);border:1px solid #d4deca;border-radius:25px;padding:30px;color:var(--agenda-ink);background:#fffef8;box-shadow:0 24px 100px #182e2540;overflow-y:auto;overscroll-behavior:contain}
.agenda-dialog::backdrop{background:#183b335c;backdrop-filter:blur(5px)}.agenda-dialog-close{position:absolute;right:14px;top:14px;display:grid;place-items:center;width:36px;height:36px;padding:8px;border:0;border-radius:50%;background:#edf2e5}.agenda-dialog-close .ui-icon{width:19px;height:19px}
.agenda-dialog h2{font-size:1.7rem;line-height:1.2;letter-spacing:-.035em;margin:9px 30px 10px 0;overflow-wrap:anywhere}.agenda-dialog-intro{font-size:.9rem;line-height:1.6;color:#72806a;margin:8px 0 24px}.agenda-dialog>.agenda-eyebrow{padding-right:26px}
.agenda-form{display:grid;gap:18px}.agenda-form fieldset{min-width:0;border:0;padding:0;margin:0}.agenda-form label,.agenda-form legend{display:block;color:#486347;font-size:.84rem;font-weight:750;line-height:1.5}.agenda-form legend{margin:0 0 8px}.agenda-form label small{font-size:.72rem;font-weight:450;color:#8a9480}
.agenda-form input:not([type=radio]),.agenda-form select,.agenda-form textarea{display:block;width:100%;min-width:0;margin-top:6px;padding:11px 12px;min-height:46px;border:1px solid #cfdcc5;border-radius:11px;background:#fff;color:#294e3a;font-size:.95rem;font-weight:500}.agenda-form input[type=date],.agenda-form input[type=time]{-webkit-appearance:none;appearance:none}.agenda-form input[type=date]{min-inline-size:0}.agenda-form textarea{resize:vertical;line-height:1.5}.agenda-form input::placeholder,.agenda-form textarea::placeholder{color:#9ba18f;font-size:.86rem}
.agenda-form-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:14px}.agenda-kind-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.agenda-kind-option{position:relative;min-width:0}.agenda-kind-option input{position:absolute;width:1px;height:1px;opacity:0;inset:0}.agenda-kind-option>span{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;min-height:85px;padding:11px 4px;background:#f7f8f1;border:1px solid #dce3d2;border-radius:13px;font-size:.68rem;overflow-wrap:anywhere;cursor:pointer}.agenda-kind-option .ui-icon{width:26px;height:26px}.agenda-kind-option input:checked+span{background:var(--kind-soft);border:2px solid var(--kind-color);padding:10px 3px;color:var(--kind-ink)}.agenda-kind-option input:focus-visible+span{outline:3px solid #c28a28;outline-offset:3px}
.agenda-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:5px}.agenda-form-actions button{min-height:44px;font-size:.84rem;padding:10px 16px;gap:7px}.agenda-delete{margin-right:auto;display:flex;align-items:center;gap:7px;border:0;color:#946348;background:transparent;padding:8px 0!important;text-align:left;font-size:.78rem!important}.agenda-delete .ui-icon{width:18px;height:18px}.agenda-danger-button{background:#ae563f;border:1px solid #954b35;color:#fff;border-radius:12px;font-weight:750}
.agenda-publish-note{display:flex;align-items:center;gap:9px;background:#f1f5e9;color:#78826a;border-radius:10px;padding:10px;font-size:.72rem;line-height:1.5}.agenda-publish-note .ui-icon{width:20px;height:20px}.agenda-form-error{padding:12px 14px;border:1px solid #e1bbae;border-radius:11px;background:#fff0e9;color:#964a37;font-size:.88rem;line-height:1.5}.agenda-form-error[hidden]{display:none}
.agenda-detail-top{padding-top:3px}.agenda-detail-icon{display:grid;place-items:center;width:62px;height:65px;border-radius:17px;background:var(--kind-soft,#f2ece2);margin-bottom:19px}.agenda-detail-icon .ui-icon{width:35px;height:35px}.agenda-detail-top .agenda-eyebrow{color:var(--kind-ink)}.agenda-detail-meta{display:grid;gap:10px;margin:21px 0}.agenda-detail-meta p{display:flex;gap:10px;align-items:center;font-size:.87rem;line-height:1.5;margin:0;color:#63765b}.agenda-detail-meta .ui-icon{width:20px;height:20px}.agenda-detail-description{font-size:.96rem;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;border-top:1px solid #e5eadb;padding-top:20px}.agenda-managed-note{font-size:.8rem;line-height:1.6;background:#eef2e6;border-radius:10px;padding:12px;color:#6c7c60}.agenda-birthday-heading{display:flex;align-items:center;gap:16px;margin:0 0 16px}.agenda-birthday-heading img{object-fit:contain;width:90px;height:96px}.agenda-birthday-heading h2{margin-right:15px;font-size:1.75rem}.birthday-fields{grid-template-columns:90px minmax(0,1fr)}
@media(min-width:1050px){.agenda-page{padding-top:28px}.agenda-hero{min-height:205px}.agenda-hero-art{margin-right:25px}.agenda-day{min-height:109px}.agenda-event-pill{font-size:.7rem}.agenda-period h2{font-size:1.45rem}.agenda-calendar-hint{font-size:.68rem}}
@media(max-width:700px){.agenda-page{padding:16px 14px 28px}.agenda-hero{min-height:178px;padding:22px 21px;border-radius:23px;gap:0}.agenda-hero h1{font-size:1.95rem}.agenda-hero p{font-size:.85rem;max-width:210px}.agenda-eyebrow{font-size:.59rem;letter-spacing:.11em}.agenda-hero-art{width:148px;margin-left:8px}.agenda-class-line{margin-top:14px}.agenda-class-chip,.agenda-class-picker{font-size:.76rem;padding:4px 9px;min-height:33px}.agenda-class-picker select{max-width:170px;font-size:.78rem;min-height:34px}.agenda-quick-actions{padding:12px 0 16px;min-height:67px}.agenda-birthday-button{font-size:.78rem;gap:7px;flex-wrap:wrap}.agenda-birthday-button small{display:none}.agenda-sharing-note{font-size:.71rem;max-width:210px;gap:6px}.agenda-new{font-size:.77rem;padding:9px 12px}.agenda-toolbar{flex-wrap:wrap;padding:15px 12px 11px;gap:12px}.agenda-period{justify-content:space-between;width:100%;gap:2px}.agenda-period h2{font-size:1.22rem;text-align:center}.agenda-round-button{width:38px;height:38px}.agenda-view-tools{justify-content:space-between;width:100%;padding:0 2px}.agenda-today{font-size:.79rem;min-height:36px}.agenda-view-switch button{min-height:29px;padding:5px 15px;font-size:.76rem}.agenda-weekdays{padding:8px 8px 10px;font-size:.63rem}.agenda-days{margin:0 8px}.agenda-day,.agenda-days.is-week .agenda-day{min-height:60px;gap:5px;align-items:center;padding:6px 2px}.agenda-day-number{align-self:auto;min-width:28px;height:28px;font-size:.79rem;margin:0}.agenda-day-events{display:none}.agenda-day-dots{display:flex;gap:3px;min-height:6px;flex-wrap:wrap;justify-content:center}.agenda-day-dots .agenda-dot{width:5px;height:5px}.agenda-days.is-week .agenda-day{min-height:69px}.agenda-calendar-footer{padding:13px 13px 15px;gap:12px}.agenda-legend{font-size:.57rem;gap:6px 10px}.agenda-legend .agenda-dot{width:5px;height:5px}.agenda-calendar-hint{font-size:.59rem;width:100%}.agenda-day-panel{padding-top:22px}.agenda-day-heading h2{font-size:1.1rem}.agenda-add-day{padding:8px;gap:4px;font-size:.72rem;min-height:39px}.agenda-add-day .ui-icon{width:18px;height:18px}.agenda-event-card{padding:14px;gap:12px;border-radius:16px;min-height:94px}.agenda-event-symbol{width:47px;height:53px;border-radius:13px}.agenda-event-symbol .ui-icon{width:29px;height:29px}.agenda-event-copy strong{font-size:.97rem}.agenda-event-category{font-size:.61rem}.agenda-event-preview{font-size:.76rem}.agenda-day-empty{padding:17px 13px;gap:12px}.agenda-day-empty>span{width:44px;height:44px}.agenda-day-empty strong{font-size:.84rem}.agenda-day-empty p{font-size:.74rem}.agenda-dialog{padding:25px 20px;width:calc(100% - 24px);border-radius:22px;max-height:calc(100dvh - 24px)}.agenda-dialog h2{font-size:1.52rem}.agenda-dialog-intro{font-size:.84rem}.agenda-form-row{gap:10px}.agenda-form-actions{gap:8px}.agenda-form-actions button{font-size:.78rem;padding:10px 12px}.agenda-birthday-heading img{width:75px;height:85px}.agenda-birthday-heading h2{font-size:1.52rem}.agenda-kind-options{gap:5px}.agenda-kind-option>span{font-size:.58rem;min-height:79px;padding:10px 2px}.agenda-kind-option input:checked+span{padding:9px 1px}.agenda-form input:not([type=radio]),.agenda-form select,.agenda-form textarea{font-size:16px}.agenda-delete{font-size:.7rem!important}}
@media(max-width:390px){.agenda-page{padding-inline:10px}.agenda-hero{padding:20px 15px;min-height:170px}.agenda-hero h1{font-size:1.7rem;max-width:170px}.agenda-hero p{font-size:.76rem;max-width:166px}.agenda-hero-art{width:122px;margin-left:5px}.agenda-class-chip{font-size:.7rem;max-width:175px}.agenda-class-picker select{max-width:132px}.agenda-sharing-note{max-width:155px}.agenda-new{font-size:.71rem;padding:8px}.agenda-new .ui-icon{width:18px;height:18px}.agenda-day-panel .agenda-eyebrow{font-size:.53rem}.agenda-day-heading h2{font-size:.99rem}.agenda-add-day span{display:none}.agenda-event-copy strong{font-size:.91rem}.agenda-birthday-button{font-size:.71rem}.agenda-dialog{padding:24px 15px}.agenda-kind-options{grid-template-columns:repeat(2,minmax(0,1fr))}.agenda-kind-option>span{min-height:62px;flex-direction:row;font-size:.65rem}.agenda-form-actions{flex-wrap:wrap}.agenda-form-actions .agenda-delete{flex-basis:100%;justify-content:center;margin:0}.agenda-form-row{grid-template-columns:minmax(0,1fr)}.agenda-form-row.birthday-fields{grid-template-columns:72px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.agenda-spinner{animation:none}.agenda-day{transition:none}}
