/* Shared persistent notifications: independent of page layout and modal stacking. */
html .school-notices { position:fixed; inset:auto; inset-block-start:24px; inset-inline-end:24px; z-index:2147483000; display:grid; gap:12px; width:min(440px,calc(100vw - 32px)); margin:0; padding:0; border:0; background:transparent; overflow:visible; pointer-events:none; font-family:inherit; }
html .school-notices[popover]:not(:popover-open) { display:none; }
html .school-notices::backdrop { background:transparent; pointer-events:none; }
html .school-notices .school-notice { --notice-color:#1d4ed8; --notice-surface:#ffffff; --notice-text:#0f172a; --notice-muted:#475569; --notice-border:#cbd5e1; position:relative; display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:start; gap:12px; box-sizing:border-box; padding:18px 16px 20px; margin:0; overflow:hidden; border:1px solid var(--notice-border); border-inline-start:4px solid var(--notice-color); border-radius:16px; color:var(--notice-text); background:var(--notice-surface); box-shadow:0 12px 35px #0f172a26; pointer-events:auto; text-align:start; animation:school-notice-enter .18s ease-out; }
html .school-notices .school-notice::after { display:none; }
html .school-notices .school-notice--success { --notice-color:#047857; }
html .school-notices .school-notice--warning { --notice-color:#92400e; }
html .school-notices .school-notice--error { --notice-color:#b91c1c; }
html[data-theme="dark"] .school-notices .school-notice,html.dark .school-notices .school-notice { --notice-surface:#172033; --notice-text:#f8fafc; --notice-muted:#cbd5e1; --notice-border:#475569; --notice-color:#93c5fd; }
html[data-theme="dark"] .school-notices .school-notice--success,html.dark .school-notices .school-notice--success { --notice-color:#34d399; }
html[data-theme="dark"] .school-notices .school-notice--warning,html.dark .school-notices .school-notice--warning { --notice-color:#fbbf24; }
html[data-theme="dark"] .school-notices .school-notice--error,html.dark .school-notices .school-notice--error { --notice-color:#fda4af; }
html .school-notices .school-notice-icon { display:grid;place-items:center;width:40px;height:40px;box-sizing:border-box;border-radius:12px;color:var(--notice-color);background:color-mix(in srgb,var(--notice-color) 10%,var(--notice-surface));border:1px solid color-mix(in srgb,var(--notice-color) 28%,var(--notice-surface)); }
html .school-notices svg { width:22px;height:22px; }
html .school-notices .school-notice-title { display:block;margin:0;font-size:15px;font-weight:700;line-height:1.65;color:var(--notice-text); }
html .school-notices .school-notice-message { margin:4px 0 0;font-size:14px;line-height:1.75;color:var(--notice-muted);white-space:pre-line;overflow-wrap:anywhere; }
html .school-notices .school-notice-close { display:inline-flex;align-items:center;justify-content:center;align-self:end;min-width:68px;height:34px;margin:0;padding:0 12px;cursor:pointer;border:1px solid color-mix(in srgb,var(--notice-color) 35%,var(--notice-border));border-radius:9px;background:color-mix(in srgb,var(--notice-color) 10%,var(--notice-surface));color:var(--notice-color);font-family:inherit;font-size:13px;font-weight:700;white-space:nowrap; }
html .school-notices .school-notice-close:hover { background:color-mix(in srgb,var(--notice-color) 18%,var(--notice-surface)); }
html .school-notices .school-notice-close:focus-visible { outline:2px solid var(--notice-color);outline-offset:2px; }
@keyframes school-notice-enter { from { opacity:0;transform:translateY(-8px); } to { opacity:1;transform:translateY(0); } }
@media(max-width:600px) { html .school-notices { inset-block-start:12px;inset-inline-end:16px; } }
@media(prefers-reduced-motion:reduce) { html .school-notices .school-notice { animation:none; } }
