/* Render the real workspace while account verification blocks interaction. */
#loggedOutView { display:none !important; }
html[data-workspace-entry="pending"] #loggedInView { display:block !important; }
html[data-workspace-entry="redirecting"] .app-shell { visibility:hidden; }
html[data-workspace-entry] .teacher-sidebar,
html[data-workspace-entry] .context-panel { pointer-events:none; }
html[data-workspace-entry]:not([data-workspace-account-cached]) .teacher-profile-info {
  position:relative;
  overflow:hidden;
  border-radius:6px;
  background:linear-gradient(#e8edf4,#e8edf4) left 6px / 58% 12px no-repeat,
    linear-gradient(#edf1f6,#edf1f6) left 30px / 82% 10px no-repeat,
    linear-gradient(#edf1f6,#edf1f6) left 50px / 65% 10px no-repeat;
}
html[data-workspace-entry]:not([data-workspace-account-cached]) .teacher-profile-info > * { visibility:hidden; }
html[data-workspace-entry] .teacher-account-section .teacher-profile { display:block !important; }
html[data-workspace-entry] .teacher-account-section .web-login-card { display:none !important; }
html[data-workspace-entry]:not([data-workspace-account-cached]) .teacher-stat strong,
.teacher-stats.is-quota-unavailable .teacher-stat strong {
  position:relative;
  overflow:hidden;
  color:transparent;
  border-radius:4px;
  background:#edf1f6;
  max-width:36px;
}
html[data-workspace-entry]:not([data-workspace-account-cached]) .teacher-profile-info::after,
html[data-workspace-entry]:not([data-workspace-account-cached]) .teacher-stat strong::after,
.teacher-stats.is-quota-unavailable .teacher-stat strong::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.78) 48%,transparent) -100% 0 / 50% 100% no-repeat;
  animation:workspace-account-sweep 1.18s ease-in-out infinite;
  pointer-events:none;
}
html[data-workspace-entry]:not([data-workspace-account-cached]) .teacher-profile-info::after {
  mask:linear-gradient(#000,#000) left 6px / 58% 12px no-repeat,
    linear-gradient(#000,#000) left 30px / 82% 10px no-repeat,
    linear-gradient(#000,#000) left 50px / 65% 10px no-repeat;
}
@keyframes workspace-account-sweep {
  to { background-position:200% 0; }
}
/* Keep the account check distinct from the existing student/class refresh. */
html[data-workspace-entry="pending"] #personalStudentPickerView .personal-generation-picker-panel > :not(.personal-generation-picker-topbar):not(#workspaceEntryState),
html[data-workspace-entry="pending"] #groupClassPickerView .group-class-picker-panel > :not(.group-class-picker-topbar):not(#workspaceEntryState) { display:none !important; }
.workspace-entry-state.student-profiles-loading-state { display:none; }
.workspace-entry-state[hidden] { display:none !important; }
html[data-workspace-entry="pending"] .workspace-entry-state {
  display:flex;
  min-height:210px;
  margin-top:18px;
}
.workspace-entry-state[data-state="error"] .student-profiles-spinner,
.workspace-entry-state[data-state="error"] [data-entry-note] { display:none; }
.workspace-entry-actions { display:flex; align-items:center; gap:20px; }
.workspace-entry-actions:empty { display:none; }
.workspace-entry-actions a, .workspace-entry-actions button {
  color:var(--web-accent-primary,var(--green,#3971d3));
  font:500 14px/1.6 system-ui,sans-serif;
  border:0;
  background:transparent;
  cursor:pointer;
  text-decoration:none;
}
.workspace-entry-actions a:hover, .workspace-entry-actions button:hover,
.workspace-legal-links a:hover { text-decoration:underline; }
.workspace-legal-dialog { font:14px/1.7 system-ui,sans-serif; }
.workspace-legal-dialog[data-product="group"] { --web-accent-primary:var(--green,#117a65); }
.workspace-legal-dialog::backdrop { background:#17243b66; }
.workspace-legal-links { margin:16px 0 24px; line-height:2; }
.workspace-legal-links a { color:var(--web-accent-primary,#3971d3); text-decoration:none; }
@media (prefers-reduced-motion:reduce) {
  .workspace-entry-state .student-profiles-spinner,
  html[data-workspace-entry] .teacher-profile-info::after,
  html[data-workspace-entry] .teacher-stat strong::after,
  .teacher-stats.is-quota-unavailable .teacher-stat strong::after { animation:none; }
}
