.portal-tool-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:18px 0}.portal-tool-filters label,.portal-single-filter{display:grid;gap:6px;min-width:130px;flex:1;font-size:13px;font-weight:700}.portal-tool-filters input,.portal-tool-filters select,.portal-single-filter select,.portal-snippets select{font:inherit;min-height:42px;max-width:100%;min-width:0;border:1px solid var(--line);border-radius:9px;padding:9px;background:white;color:var(--navy)}.portal-snippets{padding:14px;background:#f0f9f7;border:1px solid #c6e4df;border-radius:12px}.portal-snippets [role=status]:empty{display:none}.portal-snippets .button-row{margin:8px 0}.portal-substitute-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:16px}.portal-substitute-card,.portal-task-card,.portal-but-card{border:1px solid var(--line);padding:18px;border-radius:14px;margin:12px 0;background:white;min-width:0;overflow-wrap:anywhere}.portal-substitute-card h3,.portal-task-card h3,.portal-but-card h3{margin:4px 0 10px}.portal-substitute-card h4{margin:18px 0 8px}.portal-brief{padding:12px;background:#f3f7f8;border-radius:9px;margin:8px 0}.portal-brief strong{display:block;margin-top:8px}.portal-brief p{font-size:13px;margin:8px 0}.portal-task-card{display:flex;justify-content:space-between;align-items:center;gap:16px}.portal-task-card>div{min-width:0}.portal-task-card.overdue{border-left:4px solid #c26013}.portal-task-card p{white-space:pre-wrap;margin:7px 0}.portal-task-card small{color:var(--muted)}.portal-checklist,.portal-capacity-list{list-style:none;padding:0;margin:12px 0}.portal-checklist li,.portal-capacity-list li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:14px 0}.portal-checklist li>div:first-child{display:grid;gap:8px}.portal-checklist .tag{width:max-content}.portal-checklist small{color:var(--muted)}.portal-capacity-room{border:1px solid var(--line);border-top:4px solid var(--room-color);border-radius:14px;margin:18px 0;padding:18px}.portal-capacity-room h3{margin:0 0 12px}.portal-capacity-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:10px;margin-bottom:16px}.portal-capacity-options>div{display:grid;gap:7px;padding:14px;border-radius:10px;background:var(--room-bg);border:1px solid var(--line)}.portal-capacity-options span{font-weight:700;color:#06675f}.portal-capacity-options small,.portal-capacity-list small{color:var(--muted)}.portal-capacity-room summary{cursor:pointer;color:var(--teal-dark);font-weight:700}.portal-compact-toggle{margin:0 0 14px;display:flex;gap:8px;justify-content:center;align-items:center}.portal-compact .card{padding:18px}.portal-compact .planning-hero{padding:18px}.portal-compact .daily-workbar{padding:12px}.portal-compact .field-help{font-size:12px}
@media(min-width:761px){
 .portal-compact .app-shell{grid-template-columns:94px minmax(0,1fr)}
 .portal-compact .sidebar{min-width:0;padding:12px 9px}
 .portal-compact .sidebar .brand{padding:8px 0 18px}
 .portal-compact .sidebar .brand-logo{width:min(100%,62px);height:auto;margin-inline:auto;object-fit:contain}
 .portal-compact .sidebar .brand small,.portal-compact .sidebar .role-card,.portal-compact .sidebar .contact-mini,.portal-compact .sidebar .sidebar-legal,.portal-compact .sidebar .compact-label{display:none}
 .portal-compact #nav{grid-template-columns:minmax(0,1fr)}
 .portal-compact #nav .clarity-nav-label{
  position:absolute;inline-size:1px;block-size:1px;margin:0;padding:0;
  clip-path:inset(50%);overflow:hidden;white-space:nowrap
 }
 .portal-compact #nav .nav-item{min-width:0;font-size:0;gap:0;justify-content:center;padding:10px 4px;min-height:48px}
 .portal-compact #nav .clarity-nav-label:not(:first-child)+.nav-item{margin-block-start:6px}
 .portal-compact #nav .nav-item .nav-icon{display:grid;place-items:center;width:23px;height:23px;flex:0 0 23px}
 .portal-compact .sidebar :is(#helpButton,#installButton,#logoutButton){
  width:100%;min-height:44px;padding:6px 3px;font-size:12px;overflow-wrap:break-word
 }
 .portal-compact .sidebar #helpButton{margin-inline:0}
 .portal-compact .ux-topbar{padding-top:14px;padding-bottom:12px}
}
@media(max-width:760px){.portal-task-card{align-items:stretch;flex-direction:column}.portal-compact .card{padding:14px}.portal-checklist li{flex-direction:column}}

.portal-boot{min-height:75vh;display:grid;place-content:center;gap:12px;text-align:center;font-size:1.5rem;color:var(--navy)}.portal-boot small{font-size:1rem;color:#52647b}.portal-conflicts{border-left:4px solid #bd5700}.portal-conflicts h2{font-size:1.05rem}.portal-time-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px;margin:18px 0}.portal-time-grid article,.portal-archive-diff{padding:18px;border:1px solid #d6e4e8;border-radius:14px;background:#f7fbfb}.portal-time-grid dl>div{display:flex;justify-content:space-between;gap:18px;margin:10px 0}.portal-time-grid dd{font-weight:700;white-space:nowrap}.portal-record-collapse>summary{font-size:1.05rem;font-weight:700;cursor:pointer}.portal-record-collapse[open]>summary{margin-bottom:20px}.portal-capacity-options>div{display:flex;flex-direction:column;gap:8px}.portal-record-collapse .card-head h2{display:none}

.hub-tabs-grouped{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px}.hub-tab-group{min-width:0;flex:1 1 auto}.hub-tab-group>div{display:flex;flex-wrap:wrap;gap:4px}.hub-group-label{display:block;font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);padding:2px 10px 6px}.hub-tabs-grouped .hub-tab{font-size:.82rem;padding:10px 12px}@media(min-width:1100px){.hub-tab-group+.hub-tab-group{border-left:1px solid var(--border);padding-left:12px}}

.day-goal{display:block;max-width:54ch;margin-top:.25rem;color:var(--muted);overflow-wrap:anywhere;font-weight:500}
.daily-room-header{flex-wrap:wrap;gap:.45rem}
.daily-room-header [data-day-new]{margin-inline-start:auto}
.daily-lesson-head [data-day-action]{align-self:center;min-width:0}
.day-changes{background:var(--card,#fff);padding:.75rem 1rem;border:1px solid var(--line,#dce5ea);border-inline-start:4px solid var(--teal,#007d76);border-radius:12px;margin-block:.8rem}
.day-changes summary{cursor:pointer;font-weight:700}
.day-changes ul{list-style:none;display:grid;gap:.35rem;padding:0;margin:.6rem 0 0}
.day-changes button{text-align:start;white-space:normal}
[data-day-sources]:focus,[data-day-excused]:focus{outline:3px solid var(--teal,#007d76);outline-offset:2px}
.group-topic-choices{display:grid;gap:.4rem;border:1px solid var(--line,#dce5ea);border-radius:.65rem;min-width:0;padding:.65rem 1rem}
.group-topic-option{display:flex;align-items:center;gap:.75rem;padding:.4rem 0;cursor:pointer}
.group-topic-option input{width:1.1rem;height:1.1rem;flex:none}
.group-topic-option small{display:block;font-weight:400}
.daily-lesson-head [data-day-action]{display:flex;gap:.4rem;flex-wrap:wrap}
.daily-room-header{flex-wrap:wrap}
#roomPacket{display:grid;gap:.7rem}
#roomPacket ul{padding-inline-start:1.3rem}
#roomPacket .field{min-width:0}
#roomPacket select{max-width:100%}
.teacher-remuneration{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.teacher-remuneration dl>div,.teacher-remuneration-totals dl>div{display:flex;justify-content:space-between;gap:14px;margin:8px 0}
.teacher-remuneration dd,.teacher-remuneration-totals dd{margin:0;font-weight:800;text-align:right}
.teacher-remuneration-totals{padding:18px;border:1px solid var(--line);border-radius:14px;background:#f2faf8;margin:16px 0}
.teacher-remuneration-totals dl{max-width:540px}
