:root{font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#1b2c46;background:#f4f6fa;line-height:1.45}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}a{color:#17508d}
header{background:#102c51;color:#fff;padding:22px max(24px,calc((100vw - 1100px)/2))}
.brand{font-size:12px;letter-spacing:2.2px;opacity:.75}.brand + h1{margin:7px 0 2px;font-size:27px}
main{max-width:1100px;margin:24px auto;padding:0 20px}.panel{background:#fff;border:1px solid #e4e9f2;border-radius:16px;padding:24px;margin-bottom:18px;box-shadow:0 4px 16px #183e7009}
small,.muted{color:#64758d}.error{color:#aa2836;margin:12px 0}.hidden{display:none!important}
.input{width:100%;max-width:460px;padding:13px;border:1px solid #bfcadc;border-radius:9px}
button,.btn{border:0;border-radius:9px;background:#17508d;color:white;cursor:pointer;padding:10px 16px;margin:4px 6px 4px 0;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}
button:disabled{cursor:not-allowed;opacity:.52}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #f6b744}
button.secondary,.btn.secondary{background:#eaf1fa;color:#183d70}
button.active{background:#163b6f;color:white}.topline{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;align-items:center}
.nav{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}.nav button{flex:0 0 auto}
.program-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 23px}.program-tabs button{background:#eaf1fa;color:#214a7b}.program-tabs button.active{background:#173f72;color:white}
.section-title{margin:8px 0 12px;font-size:20px}.group{margin:15px 0 24px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}
.resource{border:1px solid #e1e8f0;border-radius:12px;background:#fff;padding:17px;min-height:133px}
.module-group{border:1px solid #dde5f0;border-radius:12px;padding:12px 15px;margin:12px 0;background:#f9fbff}.module-group summary{cursor:pointer;font-weight:650;padding:8px;color:#203c63}.module-group .grid{padding:11px 0}
.resource h3{font-size:15px;margin:0 0 7px}.resource .meta{font-size:12px;color:#677991;margin:4px 0 12px}.status{font-size:11px;font-weight:700;display:inline-block;margin:4px 0 9px;border-radius:20px;padding:4px 9px;background:#eef2f6;color:#456}
.status.available{background:#e4f4eb;color:#116043}.status.coming_soon{background:#f1eafc;color:#64439d}
.status.expired{background:#fcebed;color:#933748}.status.processing,.status.not_configured{background:#fff1d9;color:#8c601e}
.legend{font-size:13px;color:#64758d}.empty{border:1px dashed #cad4e4;border-radius:12px;padding:22px;color:#64758d}
dialog{width:min(900px,96vw);padding:0;border:0;border-radius:15px;box-shadow:0 18px 45px #0004;overflow:hidden}
dialog::backdrop{background:#0c1c35c7}.playerbar{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#102c51;color:white}
.playerbar button{background:#fff;color:#173759;margin:0}.frame-wrap{background:#0c1423;aspect-ratio:16/9}.frame-wrap iframe{display:block;width:100%;height:100%;border:0}
.note{padding:13px 16px;background:#eef4fd;border-left:3px solid #245ba0;border-radius:7px;font-size:13px}
@media(max-width:620px){header{padding:19px}main{padding:0 12px}.panel{padding:16px}.brand + h1{font-size:22px}.program-tabs button{flex:1}.nav button{flex:1}}