:root{font-family:Inter,system-ui,sans-serif;color-scheme:dark;color:#eaf6ff;background:#071a30;font-size:16px}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 80% -5%,#173e63 0%,transparent 42%),#071a30;min-height:100vh}header{display:flex;align-items:center;justify-content:space-between;padding:18px max(20px,calc((100vw - 1140px)/2));border-bottom:1px solid #366181;background:#091f37;gap:16px}a{color:#88dfff}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ffe2a0;outline-offset:2px}.brand{text-decoration:none;color:#f4faff;font-weight:900;letter-spacing:.06em}.brand strong{font-size:1.45rem;color:#f3cb7a}header nav{display:flex;gap:16px}main{max-width:1140px;margin:36px auto;padding:0 18px 70px}.eyebrow{font-size:12px;font-weight:900;letter-spacing:.15em;color:#77dfff}h1{font-size:clamp(30px,5vw,50px);margin:9px 0;color:#ffe2a0}h2{font-size:22px;color:#fff3ce;margin:4px 0 13px}h3{font-size:17px;color:#e5f6ff}.intro{color:#c5dded;max-width:750px;line-height:1.55}.panel{border:1px solid #477a9b;border-radius:15px;background:linear-gradient(150deg,#123454,#0b223b);padding:24px;margin:18px 0;box-shadow:0 14px 35px #0003}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:16px}.tile{background:#0a2843;border:1px solid #386687;border-radius:12px;padding:18px}.tile small{color:#9bdcf2;display:block;margin:8px 0}.tile strong{font-size:25px}.badge{padding:5px 10px;border-radius:20px;background:#2d5270;color:#d7f5ff;font-size:11px;letter-spacing:.08em;font-weight:900}.badge.waiting{background:#6d5329;color:#ffe3a4}form{display:grid;gap:12px;max-width:600px}label{display:grid;gap:6px;font-weight:800;font-size:13px;color:#d2e8fa}input,select{width:100%;background:#eef7ff;color:#14304a;padding:12px;border:2px solid #72b5db;border-radius:8px;font:inherit}input[type=checkbox]{width:auto}button{background:#153c60;border:1px solid #5192b9;border-radius:9px;color:#ecfaff;font:inherit;font-weight:850;padding:11px 16px;cursor:pointer}button:hover{background:#24618a}.primary{background:linear-gradient(130deg,#ffe7a6,#dba84f);color:#182a3b;border-color:#ffe9b5}.primary:hover{filter:brightness(1.1);background:#ffe4a1}.soft{background:#184469}.danger{border-color:#ce8c82;color:#ffd8cf}.tabs{display:flex;gap:9px;margin:16px 0;flex-wrap:wrap}.tabs button.active{background:#f0cb84;color:#192c3c}.notice{padding:12px 15px;border:1px solid #75afd1;border-radius:9px;background:#153b58;color:#ecf9ff;margin:13px 0;line-height:1.5}.error{color:#ffc9c0;font-weight:800;min-height:22px}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:13px 0}.credentials{font-family:ui-monospace,Consolas,monospace;overflow-wrap:anywhere;background:#081a2d;padding:16px;border-radius:9px;line-height:1.9;border:1px solid #466b82}.muted,footer{font-size:13px;color:#a9c7dc}.topic-chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:8px}.topic-chips label{display:flex;align-items:center;background:#102e49;border-radius:8px;padding:9px;border:1px solid #3f6a87;gap:8px}.stats{display:flex;gap:14px;flex-wrap:wrap}.stat{flex:1;min-width:150px;padding:15px;border:1px solid #416b89;border-radius:10px;background:#0b283f}.stat small{display:block;font-size:11px;color:#8cdbf7}.stat strong{font-size:27px;display:block;margin-top:5px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:10px;border-bottom:1px solid #385b79}th{color:#92dfff;font-size:12px}footer{text-align:center;padding:25px;border-top:1px solid #365371}@media(max-width:600px){header{padding:15px;flex-wrap:wrap}main{margin-top:24px}.panel{padding:16px}table{font-size:13px}}


.nr279-learning h3{font-size:22px;margin:28px 0 10px;color:#ffe4a1}
.nr279-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.nr279-stat{border:1px solid #518eae;border-radius:13px;padding:16px;background:#0c2a43;display:flex;flex-direction:column;gap:6px}
.nr279-stat small,.nr279-growth small{font-size:11px;color:#91d9f5;letter-spacing:.06em;font-weight:950}
.nr279-stat strong{font-size:clamp(24px,3vw,37px);color:#ffe2a4}
.nr279-stat span,.nr279-growth span{font-size:12px;color:#c8e3f2}
.nr279-growth{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:12px 0}
.nr279-growth>div{display:flex;flex-direction:column;gap:8px;border:1px solid #437e99;background:#0d304b;border-radius:12px;padding:16px}
.nr279-growth strong{font-size:18px;color:white}
.nr279-activity{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:6px;padding:10px 2px 5px;align-items:end;height:220px;background:#0a2138;border:1px solid #385f7d;border-radius:12px}
.nr279-day{display:flex;flex-direction:column;align-items:center;justify-content:end;min-width:0;gap:3px;height:100%}
.nr279-day b{font-size:10px;color:#ffe0a2}.nr279-day small{font-size:9px;color:#a7c9da;writing-mode:vertical-rl;transform:rotate(180deg)}
.nr279-bar{width:75%;height:150px;display:flex;align-items:end;background:#132b40;border-radius:4px 4px 0 0}.nr279-bar span{width:100%;background:linear-gradient(#61e5e8,#248ab8);border-radius:4px 4px 0 0;display:block}
.nr279-topics td,.nr279-topics th{padding:12px 10px!important}.nr279-care{border:2px solid #d4aa52;border-radius:14px;padding:18px;background:#203a52;display:flex;align-items:center;justify-content:space-between;gap:15px}.nr279-care h3{margin:0 0 6px}.nr279-care p{color:#d2e9f6}.nr279-care button{white-space:nowrap}
@media(max-width:950px){.nr279-stat-grid{grid-template-columns:repeat(2,1fr)}.nr279-growth{grid-template-columns:1fr}}
@media(max-width:650px){.nr279-stat-grid{grid-template-columns:1fr}.nr279-care{flex-direction:column;align-items:flex-start}.nr279-activity{gap:2px}}

.dashboard-section{border:1px solid #426987;border-radius:10px;background:#102b44;margin:.7rem 0;padding:0 1rem}
.dashboard-section>summary{cursor:pointer;padding:.85rem 0;color:#e7f5ff;font-weight:750}
.dashboard-section>summary::marker{color:#72d3e4}
.dashboard-section>summary:focus-visible{outline:3px solid #ffe2a0;outline-offset:2px}
.dashboard-section[open]{padding-bottom:1rem}
.dashboard-section[open]>summary{border-bottom:1px solid #395972;margin-bottom:.8rem}
.class-tools{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}
.class-tools>button{width:auto;margin:0}
#class-roster canvas{display:block;margin-top:1rem}

/* Teacher workspace */
html.teacher-workspace { color-scheme:light; background:#f5f7fa; color:#223849; }
.teacher-workspace body { background:#f5f7fa; line-height:1.5; }
.teacher-workspace header { background:#fff; border-color:#d4dfe5; box-shadow:inset 0 3px #18757b; }
.teacher-workspace .brand,.teacher-workspace h1,.teacher-workspace h2,.teacher-workspace h3 { color:#173548; }
.teacher-workspace .brand strong { color:#14666e; }
.teacher-workspace a,.teacher-workspace .eyebrow { color:#12656e; }
.teacher-workspace main { max-width:1080px; }
.teacher-workspace h1 { font-size:clamp(1.85rem,4vw,2.6rem); letter-spacing:-.035em; line-height:1.15; }
.teacher-workspace h2 { letter-spacing:-.018em; }
.teacher-workspace .intro,.teacher-workspace .muted,.teacher-workspace footer { color:#516574; }
.teacher-workspace .panel { background:white; border:1px solid #d4dfe5; border-radius:14px; box-shadow:0 3px 14px #19364b09; padding:clamp(1rem,2.4vw,1.65rem); }
.teacher-workspace .dashboard-section { background:#fff; border-color:#d5e0e5; }
.teacher-workspace .dashboard-section>summary { color:#253e50; font-weight:650; }
.teacher-workspace summary::marker { color:#18757b; }
.teacher-workspace .dashboard-section[open] { border-color:#a0bfc1; }
.teacher-workspace .dashboard-section[open]>summary,.teacher-workspace footer { border-color:#d4dfe5; }
.teacher-workspace label,.teacher-workspace legend { color:#314b59; font-weight:650; }
.teacher-workspace fieldset { border:1px solid #cedce2; border-radius:8px; min-width:0; }
.teacher-workspace input,.teacher-workspace select { background:white; color:#193748; border:1px solid #9cadb8; padding:.65rem .8rem; accent-color:#166b70; }
.teacher-workspace button { color:#244959; background:#fff; border:1px solid #afc2ca; font-weight:650; padding:.56rem .95rem; }
.teacher-workspace button:hover,.teacher-workspace summary:hover { color:#105b62; background:#edf6f6; }
.teacher-workspace button.primary,.teacher-workspace .tabs .active,.teacher-workspace button[aria-pressed=true] { color:white; background:#14676b; border-color:#14676b; }
.teacher-workspace button:disabled { opacity:.55; cursor:default; }
.teacher-workspace .danger,.teacher-workspace .error { color:#943927; }
.teacher-workspace :is(button,a,input,select,summary):focus-visible { outline:3px solid #167682; outline-offset:3px; }
.teacher-workspace .class-tools { background:#edf4f5; border-radius:10px; padding:.5rem; }
.teacher-workspace :is(.tile,.stat,.credentials,.topic-chips label,.nr279-stat,.nr279-growth>div,.nr279-activity) { color:#243f50; background:#f6f9fa; border-color:#cfdee3; }
.teacher-workspace :is(.tile small,.stat small,.nr279-stat small,.nr279-growth small,.nr279-day b) { color:#17646b; }
.teacher-workspace :is(.nr279-stat strong,.nr279-growth strong,.nr279-learning h3) { color:#203e50; }
.teacher-workspace :is(.nr279-stat span,.nr279-growth span,.nr279-day small) { color:#526a77; }
.teacher-workspace .nr279-bar { background:#e2ebef; }
.teacher-workspace .nr279-bar span { background:#25838a; }
.teacher-workspace th { background:#edf3f6; color:#354f60; }
.teacher-workspace th,.teacher-workspace td { border-color:#d9e3e8; }
.teacher-workspace .badge,.teacher-workspace .notice { color:#155d61; background:#e4f3ef; border-color:#9bcac2; }
.teacher-workspace .badge.waiting { background:#fff2cf; color:#735113; }
.teacher-workspace #teacher-profile-photo { box-shadow:0 0 0 3px #fff,0 0 0 5px #dec484; }
@media(max-width:600px){.teacher-workspace .class-tools { display:grid;grid-template-columns:repeat(2,minmax(0,1fr)); }.teacher-workspace .class-tools button { padding:.55rem .3rem; }}

.teacher-settings{position:relative;margin-left:auto}
.teacher-settings>summary{display:grid;place-items:center;width:44px;height:44px;list-style:none;cursor:pointer;color:#24545c;background:#edf4f5;border:1px solid #b6cacc;border-radius:50%;font:26px/1 system-ui}
.teacher-settings>summary::-webkit-details-marker{display:none}
.settings-dropdown{position:absolute;z-index:8;right:0;top:calc(100% + 6px);width:min(310px,calc(100vw - 64px));max-height:60vh;overflow:auto;padding:14px;background:#fff;border:1px solid #b9cdd1;border-radius:12px;box-shadow:0 8px 28px #16344428}
.settings-dropdown .dashboard-section{margin-top:0}
.settings-actions{display:grid;gap:5px}
.settings-actions button{text-align:left}
.settings-dropdown [role=status]:empty{display:none}

.family-workspace body{background:#f6f1e8;color:#43392e}
.family-workspace header{background:#fffaf2;border-color:#dfd2bd;box-shadow:inset 0 3px #92734c}
.family-workspace .panel{background:#fffdf8;border-color:#ded1bd;box-shadow:0 3px 14px #54442c09}
.family-workspace .dashboard-section,.family-workspace .settings-dropdown{background:#fffdf8;border-color:#d4c5af}
.family-workspace .class-tools,.family-workspace th{background:#f1e6d4}
.family-workspace :is(h1,h2,h3,summary,.brand){color:#493c2c}
.family-workspace button{border-color:#c6b59d;color:#4e402f}
.family-workspace :is(.primary,button[aria-pressed=true]){background:#665032;border-color:#665032;color:white}
.family-workspace [data-child]{margin:0 .5rem .5rem 0}


/* Teacher Workspace: calm surfaces and clear teaching priorities. Parent theme stays independent. */
html.teacher-workspace:not(.family-workspace){background:#f3f1e9;color:#273e36}
.teacher-workspace:not(.family-workspace) body{background:#f3f1e9;color:#273e36}
.teacher-workspace:not(.family-workspace) header{background:#faf8f1;border-color:#d5ddcf;box-shadow:inset 0 3px #607b5f}
.teacher-workspace:not(.family-workspace) :is(h1,h2,h3,h4,.brand){color:#293f36}
.teacher-workspace:not(.family-workspace) :is(a,.eyebrow,.brand strong){color:#38624d}
.teacher-workspace:not(.family-workspace) main{max-width:1180px;margin-top:28px}
.teacher-workspace:not(.family-workspace) .panel{background:#fffdf7;border-color:#d6ddcf;box-shadow:0 5px 20px #344c3710}
.teacher-workspace:not(.family-workspace) .dashboard-section{background:#fafaf3;border-color:#d2dbcd}
.teacher-workspace:not(.family-workspace) :is(.intro,.muted,footer){color:#536358}
.teacher-workspace:not(.family-workspace) :is(button,input,select){border-color:#a9b9a7;color:#2d493b}
.teacher-workspace:not(.family-workspace) button:hover{background:#edf2e7;color:#253f31}
.teacher-workspace:not(.family-workspace) :is(button.primary,button[aria-current=page]){background:#3b624c;border-color:#3b624c;color:#fff}
.teacher-workspace:not(.family-workspace) :is(button,a,input,select,summary):focus-visible{outline-color:#477653}
.teacher-workspace:not(.family-workspace) .class-tools{background:#e8eddf;margin:0 0 24px;padding:7px;gap:6px;border:1px solid #d1dcc8}
.teacher-workspace:not(.family-workspace) .class-tools button{border-color:transparent;background:transparent;flex:1;white-space:nowrap}
.teacher-workspace:not(.family-workspace) .class-tools button[aria-current=page]{background:#3b624c;color:white}
.teacher-workspace:not(.family-workspace) .workspace-profile{padding:12px 20px;margin-bottom:12px;background:#e9eedf}
.workspace-profile .row{margin:0}.workspace-identity{display:grid!important;grid-template-columns:44px 1fr;column-gap:12px!important;row-gap:0!important}.workspace-identity img{grid-row:1/3;width:40px;height:40px}.workspace-identity h2{font-size:17px;margin:0;line-height:1.4}.workspace-welcome{font-size:11px;letter-spacing:.05em;color:#56694f}
.workspace-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:85px;gap:16px;padding:0 8px 14px}.workspace-toolbar p{margin:4px 0;font-size:23px;font-weight:700}.workspace-kicker{font-size:11px;font-weight:750;letter-spacing:.12em;color:#5d7055}
.workspace-plant{position:relative;flex:0 0 76px;height:82px;margin-right:12px}.workspace-plant:before{content:'';position:absolute;left:37px;top:15px;width:3px;height:48px;background:#56724b;border-radius:3px;transform:rotate(-6deg)}.workspace-plant i{position:absolute;background:#799467;border-radius:80% 0 80% 0;width:25px;height:15px;left:16px;top:16px;transform:rotate(45deg)}.workspace-plant i:nth-child(2){left:39px;top:7px;transform:rotate(-16deg);background:#526f49}.workspace-plant i:nth-child(3){left:18px;top:36px;transform:rotate(40deg);background:#59774c}.workspace-plant i:nth-child(4){left:40px;top:29px;transform:rotate(-12deg);background:#8a9e75}.workspace-plant b{position:absolute;left:24px;bottom:4px;width:32px;height:26px;border-radius:3px 3px 12px 12px;background:#c38f6d;border-top:5px solid #d6ab8b;box-shadow:0 4px 0 #32482a10}
.workspace-overview{margin:20px 0 24px}.workspace-overview-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}.workspace-overview-heading h3{font-size:23px;margin:4px 0}.workspace-overview-heading label{max-width:200px}.workspace-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.workspace-metrics article{background:#eef2e7;border:1px solid #d1ddc8;border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:7px}.workspace-metrics article:nth-child(2){background:#f5efe2;border-color:#e6dbc6}.workspace-metrics article:nth-child(3){background:#eaf0ed;border-color:#d1ded5}.workspace-metrics span{font-size:13px;font-weight:650}.workspace-metrics strong{font-size:32px;line-height:1.2;letter-spacing:-.04em}.workspace-metrics small,.workspace-next small{font-size:12px;color:#526154;line-height:1.55}.workspace-next{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:18px;padding:20px;background:#f8f7ef;border:1px solid #dfdfd1;border-radius:12px}.workspace-next h4{margin:0 0 8px;font-size:15px}.workspace-next p{font-size:14px;margin:0 0 12px;line-height:1.6}
.teacher-workspace:not(.family-workspace) #workspace-view>h2{font-size:20px}.teacher-workspace:not(.family-workspace) #focus-form{max-width:100%}.teacher-workspace:not(.family-workspace) #focus-form [data-skills]>details{margin:12px 0}.teacher-workspace:not(.family-workspace) #focus-form [data-skills] summary{cursor:pointer;padding:10px 0;font-weight:650}.teacher-workspace:not(.family-workspace) #focus-form [data-skills] label{display:flex;align-items:center;gap:9px;margin:8px 0;line-height:1.5}
@media(max-width:720px){.workspace-metrics{grid-template-columns:1fr}.workspace-next{grid-template-columns:1fr;gap:18px}.workspace-overview-heading{align-items:flex-start;flex-direction:column;gap:10px}.workspace-overview-heading label{max-width:none;width:100%}.workspace-toolbar p{font-size:20px}.teacher-workspace:not(.family-workspace) .class-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-workspace:not(.family-workspace) .class-tools button{white-space:normal;padding:10px 5px}.workspace-metrics article{padding:16px}.workspace-plant{margin-right:0}.teacher-workspace:not(.family-workspace) main{margin-top:20px}}

.auth-link{border:0;background:none;color:#315e49;text-decoration:underline;text-underline-offset:3px;padding:0;min-height:0;font:inherit;font-weight:700;cursor:pointer}.auth-link:hover{color:#193e2d;background:none}.auth-link:focus-visible{outline:2px solid #315e49;outline-offset:4px}

/* Parent Dashboard: a welcoming family corner, separate from the teaching workspace. */
html.family-workspace,.family-workspace body{background:#f5eee5;color:#4c3b33}
.family-workspace header{background:#fff8ee;border-color:#e4ccba;box-shadow:inset 0 3px #ac6950}
.family-workspace main{max-width:1180px;margin-top:28px}
.family-workspace :is(h1,h2,h3,h4,.brand){color:#513b32}
.family-workspace :is(a,.eyebrow,.brand strong,.workspace-kicker){color:#8a4938}
.family-workspace :is(.intro,.muted,footer,.workspace-welcome){color:#735d51}
.family-workspace .panel{background:#fffaf2;border-color:#e2cfc0;box-shadow:0 5px 22px #70472b0b;border-radius:18px}
.family-workspace .workspace-profile{padding:12px 20px;background:#eee0d2;margin-bottom:12px}
.family-workspace .teacher-settings>summary{background:#fff7eb;border-color:#d7bcaa;color:#754b3b}
.family-workspace .settings-dropdown{background:#fffaf2;border-color:#d9beaa}
.family-workspace .family-welcome{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:8px 4px 20px}
.family-workspace .family-welcome h2{font:600 clamp(24px,3vw,34px)/1.2 Georgia,serif;margin:8px 0}
.family-workspace .family-welcome p{color:#775c4f;margin:0;font-size:14px}
.family-workspace .family-home-mark{display:grid;place-items:center;flex:0 0 74px;height:74px;border-radius:50% 50% 14px 14px;background:#eed2bc;color:#99563d;font:64px/1 Georgia,serif}
.family-workspace .family-tools{display:flex;gap:6px;padding:7px;background:#efdfcf;border:1px solid #dfc4af;border-radius:12px;margin:0 0 12px}
.family-workspace .family-tools button{flex:1;background:transparent;border-color:transparent;white-space:nowrap}
.family-workspace :is(button.primary,button[aria-current=page],button[aria-pressed=true]){background:#8b4d3c;border-color:#8b4d3c;color:#fff}
.family-workspace button:hover{background:#f2dfd0;color:#633e31}
.family-workspace :is(button,input,select){border-color:#c7aa96;color:#563e32}
.family-workspace :is(button,a,input,select,summary):focus-visible{outline:3px solid #a35e46;outline-offset:3px}
.family-workspace .family-context{font-size:12px;color:#7d6151;margin:12px 4px 22px}
.family-workspace .family-overview-head{display:flex;align-items:center;justify-content:space-between;gap:20px}
.family-workspace .family-overview-head h3{font:600 24px/1.3 Georgia,serif;margin:0}
.family-workspace .family-overview-head label{min-width:180px;max-width:280px}
.family-workspace .family-evidence-date{font-size:12px;color:#795e50;margin:18px 0 12px}
.family-workspace .family-metrics article{background:#f4e4d8;border-color:#e3c9b5}
.family-workspace .family-metrics article:nth-child(2){background:#eee6d3;border-color:#dfd1ae}
.family-workspace .family-metrics article:nth-child(3){background:#efe1df;border-color:#dfc6c0}
.family-workspace .workspace-metrics small{color:#71594c}
.family-workspace :is(.family-next,.family-empty,.family-note){padding:22px;border:1px solid #e4d2bf;border-radius:14px;margin-top:18px;background:#fff6e8}
.family-workspace .family-note{background:#eee5d5}
.family-workspace :is(.family-next,.family-empty,.family-note) h4{font:600 21px/1.3 Georgia,serif;margin:0 0 8px}
.family-workspace :is(.family-next,.family-empty,.family-note) p{font-size:14px;line-height:1.7;margin:0 0 14px}
.family-workspace .family-next small{display:block;color:#7a6354;font-size:12px;margin-top:14px}
.family-workspace :is(.nr279-stat,.nr279-growth>div,.nr279-activity,.tile){background:#f7eee1;border-color:#e2ccb6;color:#513b32}
.family-workspace :is(.nr279-stat strong,.nr279-growth strong,.nr279-learning h3){color:#563d32}
.family-workspace :is(.nr279-stat small,.nr279-growth small,.nr279-day b){color:#8b4d3c}
.family-workspace .nr279-bar{background:#ebd9c7}.family-workspace .nr279-bar span{background:#ab7255}
.family-workspace .dashboard-section{background:#fff6e9;border-color:#dec5ad}
.family-workspace [data-skills] label{display:flex;align-items:center;gap:8px;margin:10px 0}
.family-workspace .auth-link{background:transparent;color:#8a4938;border:0;padding:0}
@media(max-width:720px){.family-workspace main{margin-top:20px}.family-workspace .family-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.family-workspace .family-tools button{white-space:normal;padding:10px 6px}.family-workspace .family-overview-head{align-items:flex-start;flex-direction:column;gap:12px}.family-workspace .family-overview-head label{max-width:none;width:100%}.family-workspace .family-home-mark{flex-basis:56px;height:64px;font-size:52px}}
.teacher-workspace form.roster-move { display:flex; flex-wrap:wrap; gap:.75rem; align-items:end; margin:1rem 0; max-width:none; }
.roster-move [data-count] { align-self:center; font-weight:650; }
.roster-move label { flex:0 1 16rem; min-width:0; }
.roster-move select { max-width:100%; }

/* Teacher planning: separated task actions and per-class setup, no parent styles. */
.tw-plan{margin-top:1rem}.tw-page-heading{display:flex;align-items:start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.tw-page-heading h2{margin:.2rem 0 .3rem}.tw-page-heading p,.tw-focus-status p,.tw-plan-step p,.tw-next p{margin:.2rem 0;color:#345850}
.tw-class-picker{display:grid;grid-template-columns:minmax(10rem,auto) minmax(0,1fr);align-items:center;gap:.8rem;background:#eff5e9;border:1px solid #c7d8bd;border-radius:.8rem;padding:.75rem .9rem;margin:0 0 .8rem}.tw-class-picker select,.tw-plan label select,.tw-settings-dialog select{margin:0}
.tw-plan b{display:inline-grid;place-items:center;width:1.55rem;height:1.55rem;border-radius:50%;background:#315d49;color:#fff;font-size:.83rem;margin-right:.25rem}
.tw-focus-status,.tw-plan-save,.tw-step-heading,.tw-next,.tw-dialog-heading{display:flex;gap:.8rem 1rem;justify-content:space-between;align-items:center}.tw-focus-status{font-size:.9rem;margin-bottom:1rem;color:#3e5650;padding:0 .15rem}.tw-focus-status button,.tw-skill-tools button{width:auto;min-height:44px}
.tw-plan-step{background:#fffdf7;border:1px solid #d3ddc8;border-radius:.9rem;padding:1rem;margin-bottom:.8rem}.tw-plan-step h3{font-size:1.05rem;margin:0}.tw-step-heading{margin-bottom:.7rem}.tw-step-heading [data-selection-count]{font-size:.87rem;font-weight:700;color:#315d49}
.tw-skill-tools{display:grid;grid-template-columns:minmax(8rem,13rem) minmax(0,1fr);align-items:end;gap:.5rem 1.2rem;margin-bottom:.8rem;color:#38544b;font-size:.88rem}.tw-skill-tools label,.tw-plan-save label{margin:0}.tw-skill-tools button{background:none;border:0;text-decoration:underline;color:#285448;padding:.4rem .45rem;box-shadow:none}.tw-skill-tools a,.tw-inline-actions a{color:#205749;text-underline-offset:.18em}
.tw-skill-groups details{border-top:1px solid #d8e2d8;padding:.25rem .15rem .15rem}.tw-skill-groups summary,.tw-plan-help summary{cursor:pointer;padding:.55rem 0;min-height:44px}.tw-skill-groups fieldset{margin:0 0 .65rem;padding:.5rem .7rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem .8rem}.tw-skill-groups fieldset label,.tw-assignment fieldset label{display:flex;align-items:start;gap:.5rem;margin:0;min-height:36px}.tw-skill-groups input,.tw-assignment input[type=radio],.tw-assignment input[type=checkbox]{flex:none;width:auto;margin:.25rem 0 0;min-width:1.15rem;min-height:1.15rem}
.tw-plan-help{color:#3c5750;font-size:.88rem}.tw-plan-save>div{flex:1}.tw-plan-save label{max-width:17rem;margin-top:.5rem}.tw-plan-save button,.tw-next button,.tw-inline-actions button{width:auto;min-height:44px}
.tw-next{margin-top:1rem;padding:.85rem 1rem;background:#f5efdd;border:1px solid #dcd1a8;border-radius:.85rem}.tw-next h4{margin:.2rem 0;font-size:1.04rem}.tw-next small,.tw-report-context{color:#465f55;font-size:.84rem}.tw-report-context{margin:.75rem 0 0}
.tw-settings-dialog{background:#fffdf7;color:#183d32;width:min(34rem,calc(100% - 2rem));border:1px solid #aabfa8;border-radius:.9rem;padding:1.2rem;max-height:90vh;overflow:auto}.tw-settings-dialog::backdrop{background:#102b246b}.tw-dialog-heading h2{margin:.25rem 0}.tw-inline-actions{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center}.tw-dialog-heading button{width:auto;min-height:44px}.tw-assignment{margin-top:1.25rem}
@media(max-width:620px){.tw-skill-tools,.tw-class-picker,.tw-skill-groups fieldset{grid-template-columns:minmax(0,1fr)}.tw-next,.tw-plan-save{align-items:stretch;flex-direction:column}.tw-plan-save label{max-width:none}.tw-plan-save button,.tw-next button{align-self:flex-start}.tw-focus-status{flex-wrap:wrap}.tw-focus-status button{padding-inline:.55rem}}

.tw-token-preview{display:flex;align-items:center;gap:.65rem;color:#315046;font-weight:650}
.tw-token-preview img{object-fit:contain;flex:none}

/* Compact teacher roster. The table stays sortable; on small screens only the table scrolls. */
.teacher-workspace .roster-page-head{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:0 0 1.1rem}
.teacher-workspace .roster-page-head h2{margin:.2rem 0 0}
.teacher-workspace .roster-page-head [data-back]{padding:.45rem .7rem;font-size:.8rem}
.teacher-workspace .class-roster-panel{padding:0;min-width:0;border-radius:14px}
.teacher-workspace .class-roster-panel>summary{padding:.9rem 1.1rem;background:#edf1e5;border-radius:13px;font-size:1rem;font-weight:750}
.teacher-workspace .class-roster-panel[open]>summary{border-radius:13px 13px 0 0;border-bottom:1px solid #d6dfd2}
.teacher-workspace .class-roster-panel>:not(summary){margin-inline:clamp(.55rem,2.5vw,1.2rem)}
.teacher-workspace .roster-heading{margin-block:.95rem .55rem}
.teacher-workspace .roster-heading h3{margin:0 0 .24rem;font-size:1.07rem}
.teacher-workspace .roster-heading .muted{margin:0}
.teacher-workspace .roster-feedback{margin-block:.45rem;color:#2b5641;font-size:.85rem;font-weight:650}
.teacher-workspace .roster-feedback:empty{margin:0}
.teacher-workspace form.roster-bulk{display:flex;flex-wrap:wrap;align-items:end;gap:.65rem;max-width:none;margin:.8rem 0;padding:.72rem .8rem;background:#e6efe6;border:1px solid #c9dacb;border-radius:10px}
.teacher-workspace .roster-bulk>div{flex:1 1 12rem;align-self:center}
.teacher-workspace .roster-bulk strong,.teacher-workspace .roster-bulk small{display:block}
.teacher-workspace .roster-bulk small{margin-top:.2rem;font-size:.75rem;color:#475e50;line-height:1.3}
.teacher-workspace .roster-bulk label{flex:0 1 12.5rem;min-width:0}
.teacher-workspace .roster-bulk select,.teacher-workspace .roster-bulk button{min-height:36px;padding:.36rem .58rem;font-size:.82rem}
.teacher-workspace .roster-bulk button:disabled{opacity:.55}
.teacher-workspace .class-roster-panel .roster-move{gap:.65rem;margin:.5rem 0 .75rem}
.teacher-workspace .roster-move label{flex-basis:11rem}
.teacher-workspace .roster-move :is(select,button){min-height:34px;padding:.3rem .6rem;font-size:.8rem}
.teacher-workspace .roster-move [data-count]{font-size:.8rem}
.teacher-workspace .roster-table-wrap{overflow:auto;max-width:100%;margin:0 0 1rem;border:1px solid #d4dfd6;border-radius:10px;background:#fff}
.teacher-workspace .roster-table-wrap:focus-visible{outline:2px solid #477653;outline-offset:2px}
.teacher-workspace .roster-table-wrap table{min-width:760px;background:#fff;font-size:.83rem}
.teacher-workspace .roster-table-wrap :is(th,td){padding:.52rem .5rem;border-bottom:1px solid #dee7de}
.teacher-workspace .roster-table-wrap th{background:#e8f0eb;color:#355247;font-size:.75rem;line-height:1.22}
.teacher-workspace .roster-table-wrap th button{background:transparent;border:0;color:inherit;padding:0;min-height:26px;font:inherit;font-weight:750;text-align:left}
.teacher-workspace .roster-table-wrap th button:hover,.teacher-workspace .roster-text-action:hover{text-decoration:underline;color:#1b4e37}
.teacher-workspace .roster-table-wrap tr:nth-child(even) td{background:#f6f9f4}
.teacher-workspace .roster-table-wrap tbody tr:hover td{background:#edf5eb}
.teacher-workspace .roster-table-wrap tbody tr:last-child td{border-bottom:0}
.teacher-workspace .roster-table-wrap td:is(:nth-last-child(3),:nth-last-child(4)){font-variant-numeric:tabular-nums}
.teacher-workspace .roster-student>strong{display:block;color:#233d32}
.teacher-workspace .roster-table-wrap .roster-text-action{padding:0;min-height:23px;background:transparent;border:0;color:#365e4b;font-size:.75rem;font-weight:650;text-align:left;white-space:nowrap}
.teacher-workspace .roster-last-login>span,.teacher-workspace .roster-last-login>small{display:block;white-space:nowrap}
.teacher-workspace .roster-last-login>small,.teacher-workspace .roster-linked{font-size:.72rem;color:#516657}
.teacher-workspace .roster-linked{display:block}
.teacher-workspace .roster-table-wrap form[data-roster-year]{min-width:112px;gap:.25rem}
.teacher-workspace .roster-table-wrap form[data-roster-year] select{font-size:.78rem;padding:.3rem .45rem;margin:0;border-radius:6px;min-height:32px}
.teacher-workspace .roster-table-wrap form[data-roster-year] button{font-size:.72rem;padding:.22rem .4rem;min-height:25px;background:#edf4e9}
.teacher-workspace .roster-table-wrap form[data-roster-year] button[hidden]{display:none}
@media(max-width:620px){
 .teacher-workspace .roster-bulk label{flex:1 1 8rem}
 .teacher-workspace .roster-bulk>div{flex-basis:100%}
 .teacher-workspace .class-roster-panel>summary{padding:.7rem .75rem}
}
