/* Notices and class calendar, scoped to the LMS portal. */
#lms-portal#lms-portal#lms-portal #announcement-slot:empty{display:none}
#lms-portal#lms-portal#lms-portal .announcement-bar{display:flex;align-items:center;gap:14px;background:#f0eafe;border:1px solid #dfd2f4;border-left:3px solid #7c3aed;border-radius:12px;padding:14px 16px;margin-bottom:24px;min-width:0;color:#432168}
#lms-portal#lms-portal#lms-portal .announcement-bar>div{min-width:0;flex:1}
#lms-portal#lms-portal#lms-portal .announcement-bar b{display:block;font-size:12px;color:#432168!important}
#lms-portal#lms-portal#lms-portal .announcement-bar small{display:block;font-size:11px;line-height:1.5;color:#5e4776!important;white-space:pre-wrap;overflow-wrap:anywhere}
#lms-portal#lms-portal#lms-portal .announcement-bar.urgent{background:#fff2f0;border-color:#f3c9c1;border-left-color:#b42318}
#lms-portal#lms-portal#lms-portal .announcement-bar.important{background:#fff9ed;border-color:#eddfbd;border-left-color:#854d0e}
#lms-portal#lms-portal#lms-portal .announcement-bar .text{font-size:11px;flex-shrink:0;min-height:36px}
#lms-portal#lms-portal#lms-portal .notice-dismiss{border:0;background:transparent;color:#665b74;font-size:22px;min-height:36px;min-width:36px;padding:4px;border-radius:8px}
#lms-portal#lms-portal#lms-portal .notification-bell{position:relative;overflow:visible;flex-shrink:0}
#lms-portal#lms-portal#lms-portal .notification-count{position:absolute;top:-5px;right:-5px;display:flex;align-items:center;justify-content:center;background:#b42318!important;color:#fff!important;min-width:18px;height:18px;padding:0 4px;border:2px solid #fff;border-radius:20px;font-size:9px;font-weight:700;line-height:1}
#lms-portal#lms-portal#lms-portal #notification-slot{display:inline-flex}
#lms-portal#lms-portal#lms-portal .notice-card header{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:12px}
#lms-portal#lms-portal#lms-portal .notice-card header>small{margin-left:auto;font-size:11px}
#lms-portal#lms-portal#lms-portal .notice-card.urgent{border-left:3px solid #b42318!important}
#lms-portal#lms-portal#lms-portal .notice-card.important{border-left:3px solid #854d0e!important}
#lms-portal#lms-portal#lms-portal .notice-card .post-body{white-space:pre-wrap;line-height:1.8;font-size:13px;overflow-wrap:anywhere}
#lms-portal#lms-portal#lms-portal .notice-card .actions{margin-top:16px}
#lms-portal#lms-portal#lms-portal .calendar-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:20px}
#lms-portal#lms-portal#lms-portal .calendar-toolbar h2{margin:0 0 4px}
#lms-portal#lms-portal#lms-portal .calendar-toolbar .actions{gap:8px}
#lms-portal#lms-portal#lms-portal .calendar-toolbar .secondary{min-width:40px}
#lms-portal#lms-portal#lms-portal .calendar-filters{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:20px}
#lms-portal#lms-portal#lms-portal .calendar-filters label{margin:0;min-width:180px;max-width:320px}
#lms-portal#lms-portal#lms-portal .calendar-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:10px;color:#5b21b6}
#lms-portal#lms-portal#lms-portal .calendar-legend span:nth-child(2){color:#854d0e}
#lms-portal#lms-portal#lms-portal .calendar-legend span:nth-child(3){color:#166534}
#lms-portal#lms-portal#lms-portal .month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid #e8e3ef;border-left:1px solid #e8e3ef;border-radius:10px;overflow:hidden}
#lms-portal#lms-portal#lms-portal .weekday{background:#f7f4fb;padding:10px 4px;text-align:center;font-size:10px;font-weight:700;color:#665b74;border-right:1px solid #e8e3ef;border-bottom:1px solid #e8e3ef}
#lms-portal#lms-portal#lms-portal .calendar-day{background:#fff;color:#241b35;border:0;border-right:1px solid #e8e3ef;border-bottom:1px solid #e8e3ef;border-radius:0;min-height:108px;padding:8px;text-align:left;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:6px;min-width:0;font-size:11px}
#lms-portal#lms-portal#lms-portal .calendar-day:hover{background:#fbf8ff}
#lms-portal#lms-portal#lms-portal .calendar-day.outside{background:#faf9fc;pointer-events:none}
#lms-portal#lms-portal#lms-portal .calendar-day.today .day-number{background:#6d28d9;color:#fff;border-radius:50%}
#lms-portal#lms-portal#lms-portal .calendar-day.selected{background:#f1eafe;box-shadow:inset 0 0 0 2px #a78bfa}
#lms-portal#lms-portal#lms-portal .day-number{width:25px;height:25px;display:grid;place-items:center;font-weight:650;flex-shrink:0}
#lms-portal#lms-portal#lms-portal .day-events{display:flex;flex-direction:column;gap:4px;min-width:0}
#lms-portal#lms-portal#lms-portal .day-event{background:#eee5fc;color:#5b21b6;border-left:2px solid #8b5cf6;border-radius:4px;padding:3px 5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;line-height:1.4;font-size:10px}
#lms-portal#lms-portal#lms-portal .day-event.holiday{background:#fff4d9;color:#854d0e;border-left-color:#b7791f}
#lms-portal#lms-portal#lms-portal .day-event:is(.workshop,.exam){background:#eaf8ee;color:#166534;border-left-color:#22a456}
#lms-portal#lms-portal#lms-portal .day-event.cancelled{text-decoration:line-through;opacity:.75}
#lms-portal#lms-portal#lms-portal .calendar-agenda{margin-top:28px;scroll-margin-top:100px}
#lms-portal#lms-portal#lms-portal .schedule-event{display:flex;gap:16px;align-items:flex-start;border-top:1px solid #e8e3ef;padding:20px 0;min-width:0}
#lms-portal#lms-portal#lms-portal .schedule-event.archived{opacity:.8}
#lms-portal#lms-portal#lms-portal .event-date{width:46px;min-width:46px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f2ebfc;border:1px solid #e9ddf9;border-radius:10px;padding:8px}
#lms-portal#lms-portal#lms-portal .event-date b{font-size:20px;line-height:1.2;color:#5b21b6!important}
#lms-portal#lms-portal#lms-portal .event-date small{font-size:10px;color:#665b74!important}
#lms-portal#lms-portal#lms-portal .schedule-event.holiday .event-date{background:#fff8e8;border-color:#eddfbd}
#lms-portal#lms-portal#lms-portal .event-summary{flex:1;min-width:0}
#lms-portal#lms-portal#lms-portal .event-summary h3{margin:7px 0 4px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
#lms-portal#lms-portal#lms-portal .event-summary p{font-size:12px;margin:4px 0;line-height:1.7;overflow-wrap:anywhere}
#lms-portal#lms-portal#lms-portal .event-summary small{font-size:11px}
#lms-portal#lms-portal#lms-portal .event-summary .post-body{white-space:pre-wrap}
#lms-portal#lms-portal#lms-portal .event-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:180px}
#lms-portal#lms-portal#lms-portal .upcoming-panel .schedule-event:last-child{padding-bottom:0}
#lms-portal#lms-portal#lms-portal details.panel>summary{cursor:pointer;font-weight:650;padding:4px 0}
@media(max-width:640px){
 #lms-portal#lms-portal#lms-portal .announcement-bar{gap:8px;padding:12px;flex-wrap:wrap;margin-bottom:20px}
 #lms-portal#lms-portal#lms-portal .announcement-bar>div{flex-basis:calc(100% - 76px)}
 #lms-portal#lms-portal#lms-portal .announcement-bar>.text{margin-left:28px}
 #lms-portal#lms-portal#lms-portal .announcement-bar .notice-dismiss{margin-left:auto}
 #lms-portal#lms-portal#lms-portal .app-header .notification-bell{width:38px!important;height:40px!important;min-width:38px}
 #lms-portal#lms-portal#lms-portal .calendar-toolbar .actions{width:100%;gap:6px}
 #lms-portal#lms-portal#lms-portal .calendar-toolbar #new-schedule{margin-left:auto;padding:10px;font-size:11px}
 #lms-portal#lms-portal#lms-portal .calendar-filters{gap:12px}
 #lms-portal#lms-portal#lms-portal .calendar-filters label{min-width:0;width:100%;max-width:none}
 #lms-portal#lms-portal#lms-portal .calendar-legend{gap:8px;font-size:9px}
 #lms-portal#lms-portal#lms-portal .calendar-day{min-height:64px;padding:4px 2px;gap:4px}
 #lms-portal#lms-portal#lms-portal .day-number{height:22px;width:22px;font-size:10px;margin:0 auto}
 #lms-portal#lms-portal#lms-portal .day-events{flex-direction:row;flex-wrap:wrap;gap:3px;justify-content:center}
 #lms-portal#lms-portal#lms-portal .day-event{width:6px;height:6px;border:0;padding:0;border-radius:50%;background:#8b5cf6;font-size:0;display:block}
 #lms-portal#lms-portal#lms-portal .day-event.holiday{background:#b7791f}
 #lms-portal#lms-portal#lms-portal .day-event:is(.workshop,.exam){background:#22a456}
 #lms-portal#lms-portal#lms-portal .day-events>small{font-size:8px;line-height:1}
 #lms-portal#lms-portal#lms-portal .weekday{font-size:9px;padding:8px 0}
 #lms-portal#lms-portal#lms-portal .schedule-event{gap:10px;flex-wrap:wrap}
 #lms-portal#lms-portal#lms-portal .event-date{min-width:38px;width:38px;padding:6px}
 #lms-portal#lms-portal#lms-portal .event-actions{max-width:none;justify-content:flex-start;width:100%;padding-left:48px}
 #lms-portal#lms-portal#lms-portal .event-summary h3{font-size:13px}
 #lms-portal#lms-portal#lms-portal .event-summary p{font-size:11px}
 #lms-portal#lms-portal#lms-portal .notice-card header>small{margin-left:0;width:100%}
}
/* 2.9.3: a gentle announcement pulse without hiding any message. */
@keyframes zenx-announcement-pulse{0%,100%{opacity:1}50%{opacity:.65}}
#lms-portal#lms-portal#lms-portal .announcement-bar> .dashicons,
#lms-portal#lms-portal#lms-portal .announcement-bar>div>b{animation:zenx-announcement-pulse 2.6s ease-in-out infinite}
#lms-portal#lms-portal#lms-portal .announcement-bar:hover>div>b,
#lms-portal#lms-portal#lms-portal .announcement-bar:focus-within>div>b{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){#lms-portal#lms-portal#lms-portal .announcement-bar :is(b,.dashicons){animation:none!important}}
