
/* R28 QA03 - production experience upgrade */
:root{--r28-navy:#102d57;--r28-blue:#315ee6;--r28-soft:#f5f8fc;--r28-line:#dbe6f2;--r28-green:#21845b;--r28-amber:#a56616}
.r28-context-status{margin-top:5px!important;font-size:.72rem!important;line-height:1.35!important}.r23-context-shell{padding:8px 10px!important;border:1px solid rgba(255,255,255,.18);border-radius:16px;background:rgba(255,255,255,.07)}.r23-context-shell select{min-width:150px!important;max-width:235px!important;background:#fff!important;color:#17325a!important;border-radius:11px!important}
.r28-context-disabled{filter:saturate(.7)}.r28-context-disabled .r23-context-chip{background:#64748b!important}
.r28-admin-hero,.r28-library-hero,.r28-calendar-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:22px 24px;border:1px solid var(--r28-line);border-radius:22px;background:linear-gradient(135deg,#f9fbff 0%,#edf4ff 100%);box-shadow:0 12px 32px rgba(18,48,91,.06);margin-bottom:16px}.r28-admin-hero h2,.r28-library-hero h2,.r28-calendar-hero h2{margin:.2rem 0 .45rem}.r28-admin-hero p,.r28-library-hero p,.r28-calendar-hero p{margin:0;max-width:780px;color:#62758e;line-height:1.55}.r28-kpis{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.r28-kpi{min-width:92px;padding:10px 12px;border:1px solid #d7e3f3;border-radius:14px;background:#fff;text-align:center}.r28-kpi strong{display:block;font-size:1.25rem;color:var(--r28-navy)}.r28-kpi span{display:block;font-size:.72rem;color:#71829a;margin-top:3px}
.r28-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) repeat(2,minmax(145px,220px)) auto;gap:10px;align-items:end;margin:0 0 16px}.r28-toolbar label{display:grid;gap:5px;font-size:.76rem;font-weight:800;color:#5f728c}.r28-toolbar input,.r28-toolbar select{width:100%;min-height:43px;border:1px solid #ccd9e9;border-radius:12px;background:#fff;padding:9px 11px;font:inherit;color:#17325a}.r28-toolbar .btn{min-height:43px}
.r28-resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.r28-resource-card{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:14px;align-items:start;padding:18px;border:1px solid var(--r28-line);border-radius:20px;background:#fff;box-shadow:0 8px 24px rgba(17,45,87,.045)}.r28-resource-card:hover{border-color:#b9cae0;box-shadow:0 12px 30px rgba(17,45,87,.08)}.r28-resource-card.inactive{opacity:.58;background:#f7f8fa}.r28-resource-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-weight:900;background:#edf3ff;color:#315ee6}.r28-resource-card.official .r28-resource-icon{background:#edf9f4;color:#21845b}.r28-resource-copy{min-width:0}.r28-resource-copy h3{margin:4px 0 6px;font-size:1rem;line-height:1.25}.r28-resource-copy p{margin:0;color:#657894;line-height:1.48;font-size:.88rem}.r28-resource-meta{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:7px}.r28-pill{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;background:#eef3f9;color:#526984;font-size:.69rem;font-weight:850}.r28-pill.ok{background:#eaf7f1;color:#1f754f}.r28-pill.info{background:#edf3ff;color:#3155bb}.r28-pill.warn{background:#fff4de;color:#8c5b10}.r28-resource-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.r28-source-note{display:block;margin-top:8px;font-size:.75rem;color:#8190a3}
.r28-course-group{margin:0 0 20px}.r28-course-group-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;padding:0 2px}.r28-course-group-head h3{margin:0;font-size:1rem;color:#18365f}.r28-course-group-head span{font-size:.75rem;color:#6e8096}
.r28-student-library-intro{margin-bottom:16px;padding:20px 22px;border-radius:22px;background:linear-gradient(135deg,#102d57,#254b84);color:#fff;display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center}.r28-student-library-intro h2{margin:0 0 6px;color:#fff}.r28-student-library-intro p{margin:0;color:#dce7f6;line-height:1.5}.r28-student-library-intro .r28-kpi{border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.1)}.r28-student-library-intro .r28-kpi strong,.r28-student-library-intro .r28-kpi span{color:#fff}.r28-student-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(160px,220px);gap:10px;margin-bottom:14px}.r28-student-toolbar input,.r28-student-toolbar select{width:100%;min-height:44px;border:1px solid #ccd9e9;border-radius:12px;padding:9px 11px;background:#fff;font:inherit}.r28-student-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.r28-student-resource{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;padding:16px;border:1px solid var(--r28-line);border-radius:18px;background:#fff}.r28-student-resource h3{font-size:.96rem;margin:2px 0 5px}.r28-student-resource p{margin:0 0 10px;color:#677991;font-size:.84rem;line-height:1.46}.r28-student-resource .btn-row{margin-top:auto}.r28-student-resource.featured{border-color:#b8cbed;background:#fbfdff}.r28-student-resource .r28-resource-icon{width:42px;height:42px;border-radius:13px}
.r28-calendar-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.r28-event-card{padding:17px;border:1px solid var(--r28-line);border-radius:18px;background:#fff;display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:13px;align-items:start}.r28-event-date{border-radius:14px;background:#edf3ff;color:#21488d;padding:9px 6px;text-align:center}.r28-event-date strong{display:block;font-size:1.45rem;line-height:1}.r28-event-date span{display:block;margin-top:4px;font-size:.72rem;font-weight:850;text-transform:uppercase}.r28-event-copy h3{margin:2px 0 5px;font-size:1rem}.r28-event-copy p{margin:0;color:#687b93;line-height:1.45;font-size:.84rem}.r28-event-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.r28-content-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.r28-content-card{padding:16px;border:1px solid var(--r28-line);border-radius:18px;background:#fff}.r28-content-card h3{font-size:.96rem;margin:7px 0 5px;line-height:1.35}.r28-content-card p{margin:0;color:#6a7b91;font-size:.84rem;line-height:1.45}.r28-quality-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#edf7f2;color:#22704e;font-size:.69rem;font-weight:850}.r28-quality-badge.meta{background:#fff3e1;color:#936019}
.r28-empty{padding:28px 20px;border:1px dashed #cbd9e9;border-radius:18px;background:#fafcff;text-align:center;color:#687b93}.r28-empty strong{display:block;color:#1c3a64;margin-bottom:4px}
@media(max-width:900px){.r28-resource-grid,.r28-student-library-grid,.r28-calendar-grid,.r28-content-grid{grid-template-columns:1fr}.r28-toolbar{grid-template-columns:1fr 1fr}.r28-toolbar label:first-child{grid-column:1/-1}.r28-admin-hero,.r28-library-hero,.r28-calendar-hero,.r28-student-library-intro{grid-template-columns:1fr}.r28-kpis{justify-content:flex-start}}
@media(max-width:620px){.r28-toolbar,.r28-student-toolbar{grid-template-columns:1fr}.r28-resource-card{grid-template-columns:40px minmax(0,1fr)}.r28-resource-actions{grid-column:1/-1;justify-content:flex-start}.r28-event-card{grid-template-columns:58px minmax(0,1fr)}.r28-event-actions{grid-column:1/-1;justify-content:flex-start}}
