*{box-sizing:border-box}body{margin:0;background:#edf4fa;color:#173450;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}a{color:#06618f}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #aac7db;background:#f5fafd;color:#17577e;border-radius:8px;padding:9px 12px}button:disabled{opacity:.5;cursor:not-allowed}header.r321-top{background:white;border-bottom:1px solid #d1e1ed;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 4vw;flex-wrap:wrap}main{max-width:1380px;margin:24px auto 60px;padding:0 17px}[hidden]{display:none!important}.r321-hero{background:#103e67;color:#fff;padding:24px 27px;border-radius:17px}.r321-hero span{font-size:11px;letter-spacing:.12em;color:#97d5ee;font-weight:700}.r321-hero h1{margin:6px 0 10px;font-size:clamp(1.5rem,3.5vw,2rem)}.r321-hero p{margin:0;max-width:850px;line-height:1.6}.r321-summary{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.r321-summary span{background:#fff;border:1px solid #ccdfec;padding:10px;border-radius:10px;font-weight:700}.r321-toolbar{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:10px;margin-bottom:17px}label{display:grid;gap:7px;font-weight:600;font-size:.91rem}input:not([type=checkbox]):not([type=radio]),select{background:#fff;color:#18354c;min-height:42px;border:1px solid #aac2d5;border-radius:8px;padding:8px 10px;width:100%}.r321-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.r321-panel{border-radius:15px;background:#fff;border:1px solid #c9dce8;padding:19px;margin-bottom:15px;box-shadow:0 4px 14px #123c5710}.r321-panel h2{font-size:1.17rem;margin:0 0 12px}.r321-panel h3{font-size:.99rem}.r321-section-head{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap}.r321-section-head h2{margin:0}.r321-scroll{max-height:340px;min-height:85px;overflow:auto;border:1px solid #d6e4ed;border-radius:9px;margin-top:10px}.r321-scroll.r321-lessons{max-height:195px}.r321-checkline{display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid #e6edf4;font-size:.91rem;cursor:pointer}.r321-checkline:last-child{border-bottom:0}.r321-checkline:hover{background:#f1f8fe}.r321-checkline:has(input:checked){background:#e3f2fc}.r321-checkline input{width:19px;height:19px;flex-shrink:0}.r321-checkline span{flex:1;min-width:0;overflow-wrap:anywhere}.r321-checkline small{display:block;color:#5f7488;font-size:.77rem;margin-top:3px}.r321-actions{margin-top:10px}.r321-submit-row{display:flex;gap:11px;flex-wrap:wrap;align-items:end}.r321-submit-row label{max-width:140px}.r321-submit-row button{min-height:43px}.r321-primary{background:#096e9f;color:#fff;border-color:#096e9f;font-weight:700}.r321-small{font-size:.85rem;color:#5d7082;line-height:1.5}.r321-invite-form{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:14px}.r321-invite-form fieldset{border:1px solid #cfdeea;border-radius:10px;grid-column:1/-1}.r321-invite-form fieldset label{display:flex;align-items:center;margin:9px 0;gap:9px}.r321-invite-form>button{width:max-content}.r321-empty{padding:13px;color:#57718a}#r321InviteResult{background:#f1f8fd;border:1px solid #c8e2f4;border-radius:9px;padding:13px;margin-top:12px}#r321InviteResult button{margin-top:10px}#r321Guard,[id$=Status]{line-height:1.5}#r321BatchStatus:not(:empty),#r321InviteStatus:not(:empty){padding:10px;border-radius:7px;background:#f0f6fa}@media(max-width:900px){.r321-grid{grid-template-columns:1fr}.r321-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.r321-toolbar,.r321-invite-form{grid-template-columns:1fr}.r321-panel{padding:14px}.r321-submit-row button{flex:1 1 100%}.r321-top{font-size:.88rem}}
/* SEG R321.2 — published lessons scoped to chosen ECUEs */
.r321-selection-help{background:#eef7fc;border-left:3px solid #0b70a3;padding:9px 11px;border-radius:5px}
.r321-lesson-ecue-group{padding:0 0 5px;border-bottom:2px solid #d5e3ed}
.r321-lesson-ecue-group:last-child{border-bottom:0}
.r321-lesson-ecue-heading{font-size:.92rem;color:#123e65;margin:0;padding:12px 11px 7px;background:#eaf3f9}
.r321-lesson-ecue-group>.r321-checkline:first-of-type{background:#f0f8fe;font-weight:700;color:#0d507e}
.r321-lesson-ecue-group>.r321-checkline:first-of-type:has(input:checked){background:#d9f0e6;color:#136042}
#r321LessonSelectionInfo{margin:5px 0 8px;font-weight:700}
