/* Scoped school-year widget; header, cards and footer retain the existing theme. */
#brd-year{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:990;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#222}
#brd-year-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;width:58px;height:58px;padding:0;border:0;border-radius:50%;background:#C62828;color:#fff;font-family:inherit;font-size:14px;font-weight:500;line-height:1.1;text-align:center;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.12);transition:background .15s,box-shadow .15s}
#brd-year-toggle:hover{background:#b92323;box-shadow:0 4px 18px rgba(0,0,0,.18)}
#brd-year-toggle:active{background:#a91e1e}
#brd-year-toggle span{display:block}
#brd-year-panel{position:absolute;right:0;bottom:70px;width:224px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 116px);overflow:auto;padding:12px;background:#fff;border:1px solid #eee;border-radius:13px;box-shadow:0 5px 22px rgba(0,0,0,.12)}
#brd-year-panel[hidden]{display:none}
.brd-year-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}
#brd-year-panel h2{margin:0 0 0 5px;font:600 16px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#222}
#brd-year-close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;background:none;color:#666;font-size:24px;font-weight:400;cursor:pointer}
#brd-year-options button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:40px;padding:9px 7px;margin:0;background:transparent;border:0;border-radius:5px;color:#222;font-family:inherit;font-size:14px;font-weight:400;line-height:1.4;text-align:left;cursor:pointer}
#brd-year-options button[aria-pressed=true]{color:#C62828;font-weight:500}
#brd-year-options button[aria-pressed=true]::after{content:'✓';color:#C62828;font-size:17px}
#brd-year-options button:hover{background:#f7f7f7}
#brd-year button:focus-visible,.brd-year-more:focus-visible,.brd-year-message button:focus-visible{outline:2px solid #C62828;outline-offset:3px}
#brd-year-status{margin:8px 5px 0;font-size:13px;line-height:1.4;color:#555}
#brd-year-status:empty{display:none}
.brd-year-message{grid-column:1/-1;padding:24px 0;margin:0;font-size:16px;line-height:1.5}
.brd-year-message button,.brd-year-more{display:block;width:fit-content;margin:14px auto;padding:10px 18px;border:1px solid #C62828;border-radius:5px;background:#fff;color:#a51f1f;font:inherit;font-size:15px;text-decoration:none;cursor:pointer}
.brd-year-more[hidden]{display:none}
body.brd-year-ready iframe.ghost-portal-triggerbtn-iframe{display:none!important}
@media(max-width:767px){#brd-year{right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom))}#brd-year-toggle{width:56px;height:56px;font-size:14px}#brd-year-panel{bottom:68px}}
