/* Task-first workspaces and calm, durable form feedback. */
.portal-field-help,.portal-field-error,.portal-form-status,.student-form-status,.student-field-error{font-size:var(--portal-font-small);line-height:1.65;overflow-wrap:anywhere}
.portal-field-help{color:var(--hw-muted,var(--l2));margin:6px 0 0;font-weight:400}
.portal-field-error,.student-field-error{color:var(--hw-error,var(--red));margin:6px 0}
.portal-field-error[hidden]{display:none!important}
.portal-field-error:empty,.student-field-error:empty,.portal-form-status:empty,.student-form-status:empty{display:none}
.portal-form-status,.student-form-status{color:var(--hw-muted,var(--l2));padding:12px 14px;margin:12px 0;border:1px solid var(--hw-line,var(--sep));border-radius:var(--portal-radius-control);background:var(--hw-subtle,var(--s2))}
.portal-form-status[data-phase=failed],.portal-form-status[data-phase=conflict],.student-form-status[data-state=error]{color:var(--hw-error,var(--red))}
.student-form-status[data-state=saved]{color:var(--navy);border-color:var(--blue)}
:is(#myc-sheet,.pb-fields,[data-portal-surface=student]) [aria-invalid=true]{border-color:var(--hw-error,var(--red));outline-color:var(--hw-error,var(--red))}
.portal-sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.hw .portal-next-action,.student-next-action-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid var(--hw-action,var(--blue));border-radius:var(--portal-radius-control);background:var(--hw-action,var(--blue));color:var(--hw-on,var(--white));font:inherit;font-size:var(--portal-font-body);font-weight:500;text-decoration:none;cursor:pointer;margin-top:16px}
.student-next-action{margin:0 0 20px;padding:20px;border:1px solid var(--sep);border-radius:var(--portal-radius-card);background:var(--s1);color:var(--navy)}
.student-next-action-label{font-size:var(--portal-font-small);color:var(--l2);margin-bottom:6px}
.student-next-action-title{font-size:var(--portal-font-heading);font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.student-next-action-copy{font-size:var(--portal-font-body);line-height:1.65;color:var(--l2);margin-top:6px}
.student-today-primary,.student-today-secondary{min-width:0}
html[data-hub-workspace] #myc-sheet{max-width:640px}
#myc-sheet .adm-sheet-body{padding-bottom:20px}
#myc-sheet .adm-sheet-actions{position:sticky;bottom:0;z-index:2;background:var(--s1);padding-bottom:max(16px,env(safe-area-inset-bottom))}
#myc-sheet .adm-form-input{min-height:44px}
.pb-header,.pb-fields,.pb-note,.pb-status,.pb-actions{max-width:64rem}
.pb-fields{align-items:start}
.pb-fields label{min-width:0;line-height:1.65}
.pb-fields input,.pb-fields select{min-height:48px}
#ctGo,#hwGo{min-height:48px}
@media(min-width:800px){
 body[data-portal-surface=student].has-tabs .wrap{max-width:1120px;padding:16px 16px 40px}
 body[data-portal-surface=student].has-tabs .top{padding:8px 24px 20px}
 body[data-portal-surface=student].has-tabs .body{padding:0 24px}
 [data-portal-surface=student] #pane-today.on{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:32px;align-items:start}
 [data-portal-surface=student] .student-today-secondary{padding-top:0}
 [data-portal-surface=student] .tabbar-in{max-width:640px}
 [data-portal-surface=student] .tabbar{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;padding:8px 16px max(12px,env(safe-area-inset-bottom));border:0;pointer-events:none}
 [data-portal-surface=student] .tabbar-in{border:1px solid var(--sep);border-radius:var(--portal-radius-card);background:var(--s1);box-shadow:var(--card-shadow);pointer-events:auto;padding:4px}
 [data-portal-surface=student] .tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
 [data-portal-surface=student] .tiles .wide{grid-column:span 2}
 [data-portal-surface=student] #hwPane{max-width:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:28px;align-items:start}
 [data-portal-surface=student] #hwPane>.hw-next{grid-column:1;grid-row:1/3;margin:0}
 [data-portal-surface=student] #hwPane>.ag-g,[data-portal-surface=student] #hwPane>.ag-box{grid-column:2;margin-top:0}
 [data-portal-surface=student] #hwPane>.ag-g{margin:0 0 8px}
 [data-portal-surface=student] #hwPane>.ag-box{margin-bottom:24px}
 [data-portal-surface=student] #hwPane>:is(.block,.empty,.hw-more,.hw-open){grid-column:1/-1}
 [data-portal-surface=student] .sheet{max-width:640px;max-height:88dvh;border:1px solid var(--sep);border-radius:var(--portal-radius-card);bottom:24px}
 @supports selector(:has(*)){
  .pb-fields{grid-template-columns:repeat(6,minmax(0,1fr));gap:20px}
  .pb-fields>label:has(#pb-lead){grid-column:1/4;grid-row:1}.pb-fields>label:has(#pb-teacher){grid-column:4/7;grid-row:1}
  .pb-fields:not(:has(#pb-lead))>label:has(#pb-teacher){grid-column:1/-1}
  .pb-fields>label:has(#pb-date){grid-column:1/3;grid-row:2}.pb-fields>label:has(#pb-start){grid-column:3/5;grid-row:2}.pb-fields>label:has(#pb-end){grid-column:5/7;grid-row:2}
  .pb-fields>label:has(#pb-meet){grid-column:1/-1;grid-row:3}
 }
}
@media(hover:hover) and (pointer:fine){.hw .portal-next-action:hover,.student-next-action-cta:hover{filter:brightness(.94)}}
.portal-form-status[data-state=error]{color:var(--hw-error,var(--red))}
.portal-form-status[data-state=saved]{color:var(--hw-navy,var(--navy));border-color:var(--hw-action,var(--blue))}
[data-portal-surface=student] .sheet{transition:transform var(--portal-exit) var(--portal-ease-out),visibility 0s linear var(--portal-exit)}
[data-portal-surface=student] .sheet.open{transition:transform var(--portal-enter) var(--portal-ease-out)}
@media(prefers-reduced-motion:reduce){[data-portal-surface=student] .sheet,[data-portal-surface=student] .sheet.open{transition:none}}
[data-portal-surface=student] .hw-sh-c{gap:8px;flex-wrap:wrap}
.student-next-action{margin-top:16px}
