/* Shared student surfaces. Chemistry drawings, graphs and video controls retain
   their own visual language; staff workspaces do not opt into this theme. */
.workspace-shell.student-clean {
  --student-text: #27272d;
  --student-muted: #696974;
  --student-border: #e7e7ec;
  --student-soft: #f7f7f9;
  --shadow: 0 4px 16px rgb(20 20 30 / 4%);
  --soft-shadow: 0 2px 10px rgb(20 20 30 / 3%);
  background: #fff;
  color: var(--student-text);
}

.workspace-shell.student-clean .workspace-header {
  border-top: 0;
  border-bottom: 1px solid var(--student-border);
  background: rgb(255 255 255 / 97%);
  box-shadow: none;
  gap: 1.5rem;
  padding-block: 1rem;
}
.workspace-shell.student-clean .brand-mark { box-shadow: none; }
.workspace-shell.student-clean .workspace-primary-navigation {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  gap: .3rem;
}
.workspace-shell.student-clean .workspace-primary-navigation > button,
.workspace-shell.student-clean .navigation-dropdown > button {
  min-height: 2.75rem;
  padding: .65rem .9rem;
  border: 0;
  border-radius: .75rem;
  background: transparent;
  color: #62626c;
  box-shadow: none;
  font-size: .875rem;
  font-weight: 500;
}
.workspace-shell.student-clean .workspace-primary-navigation > button[aria-pressed="true"],
.workspace-shell.student-clean .workspace-primary-navigation > button.is-active,
.workspace-shell.student-clean .navigation-dropdown > button[aria-expanded="true"] {
  background: #f0f0f3;
  color: #242429;
  box-shadow: none;
  font-weight: 600;
}
.workspace-shell.student-clean .workspace-primary-navigation button:hover:not(:disabled) { background: #f4f4f6; color: #242429; }
.workspace-shell.student-clean .navigation-dropdown-panel {
  padding: .4rem;
  border: 1px solid var(--student-border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 30px rgb(20 20 30 / 10%);
}
.workspace-shell.student-clean .navigation-dropdown-panel button { border-radius: .65rem; font-size: .875rem; }
.workspace-shell.student-clean .identity-block { gap: .15rem; }
.workspace-shell.student-clean .identity-block strong { font-size: .875rem; font-weight: 600; }
.workspace-shell.student-clean .identity-block > span { font-size: .75rem; color: var(--student-muted); }
.workspace-shell.student-clean .workspace-header .quiet-button { background: #f6f6f8; font-weight: 500; box-shadow: none; }
.workspace-shell.student-clean .course-selector { border-bottom: 1px solid #efeff2; background: #fff; padding-block: .85rem; gap: 1rem; }
.workspace-shell.student-clean .course-selector label { color: var(--student-muted); font-size: .8125rem; font-weight: 500; letter-spacing: normal; text-transform: none; }
.workspace-shell.student-clean .course-selector :is(select,.course-selector-value) { border: 1px solid var(--student-border); border-radius: .75rem; background: #fafafa; box-shadow: none; font-size: .875rem; font-weight: 500; }
.workspace-shell.student-clean .course-selector > span { color: var(--student-muted); font-size: .75rem; }

.workspace-shell.student-clean :is(.primary-button,.plan-primary) {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 2.75rem; padding: .7rem 1rem; border: 1px solid #29292f;
  border-radius: .8rem; background: #29292f; color: #fff;
  box-shadow: none; font-size: .875rem; font-weight: 600;
}
.workspace-shell.student-clean :is(.primary-button,.plan-primary):hover:not(:disabled) { background: var(--brand-accent-dark); border-color: var(--brand-accent-dark); box-shadow: none; }
.workspace-shell.student-clean :is(.quiet-button,.ops-refresh) {
  min-height: 2.75rem; padding: .65rem .95rem; border: 1px solid #e1e1e7;
  border-radius: .75rem; background: #fff; color: #46464f; box-shadow: none;
  font-size: .875rem; font-weight: 500;
}
.workspace-shell.student-clean :is(.quiet-button,.ops-refresh):hover:not(:disabled) { background: #f7f7f9; border-color: #cdced6; }
.workspace-shell.student-clean :is(button,summary,a,input,textarea,select):focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 3px; }
.workspace-shell.student-clean .composer-input-surface textarea:focus-visible { outline: none; }
.workspace-shell.student-clean .primary-button:disabled { background: #e8e8ed; border-color: #e8e8ed; color: #777781; opacity: 1; }

/* A lightweight dashboard with direct access to the student's existing tools. */
.student-dashboard { width: min(100%,72rem); margin: 0 auto; padding: 3rem 2rem 4rem; }
.student-dashboard-heading { margin-bottom: 3rem; }
.student-dashboard .student-kicker { margin: 0 0 .7rem; color: var(--student-muted); font-size: .875rem; font-weight: 500; }
.student-dashboard h1 { margin: 0; font-size: clamp(2rem,3.5vw,2.75rem); line-height: 1.2; letter-spacing: -.045em; font-weight: 600; }
.student-dashboard-intro { max-width: 40rem; margin: .85rem 0 0; color: var(--student-muted); font-size: 1rem; line-height: 1.65; }
.student-dashboard-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.student-dashboard-section + .student-dashboard-section { margin-top: 2.5rem; }
.student-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.student-section-heading h2 { margin: 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.student-section-heading > span { color: var(--student-muted); font-size: .8125rem; }
.student-course-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.student-course-card { min-width: 0; padding: 1.5rem; border: 1px solid var(--student-border); border-radius: 1.1rem; background: #fff; }
.student-course-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; color: #8d8d98; }
.student-course-code { padding: .35rem .6rem; border-radius: .5rem; background: #f6f0f3; color: var(--brand-accent-dark); font-size: .8125rem; font-weight: 600; }
.student-course-card h3 { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -.025em; }
.student-course-card p { margin: .65rem 0 1.25rem; max-width: 27rem; color: var(--student-muted); font-size: .9375rem; line-height: 1.6; }
.student-tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.student-tool-link { display: flex; align-items: flex-start; gap: 1rem; min-width: 0; padding: 1.25rem; border: 1px solid var(--student-border); border-radius: 1rem; background: #fff; color: inherit; text-align: left; font: inherit; transition: border-color 150ms,background 150ms; }
.student-tool-link:hover { border-color: #cfcfd7; background: #fafafa; }
.student-tool-icon { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: .7rem; background: #f5f5f8; color: #55555f; }
.student-tool-link strong { display: block; margin-bottom: .35rem; font-size: .9375rem; font-weight: 600; }
.student-tool-link > span:last-child > span { display: block; color: var(--student-muted); font-size: .875rem; line-height: 1.5; }
.student-dashboard-empty { display: grid; justify-items: start; gap: .75rem; padding: 1.75rem; border: 1px dashed #dcdce3; border-radius: 1rem; background: #fafafa; }
.student-dashboard-empty :is(h3,p) { margin: 0; }
.student-dashboard-empty p { color: var(--student-muted); line-height: 1.6; }

/* Consistent content headings and surfaces across library, notes, and planning. */
.workspace-shell.student-clean :is(.student-page,.mobile-study-page,.study-plan,.profiles-page) { max-width: 76rem; margin-inline: auto; padding: 2.5rem 2rem; }
.workspace-shell.student-clean :is(.library-hero,.student-page-hero,.mobile-study-hero,.plan-heading) {
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  color: var(--student-text); padding: 0 0 1.5rem; margin: 0; gap: 1.5rem;
}
.workspace-shell.student-clean :is(.library-hero,.student-page-hero,.mobile-study-hero,.plan-heading) h1 { color: #27272d; margin: .4rem 0 .85rem; font-size: clamp(1.85rem,3.5vw,2.5rem); font-weight: 600; line-height: 1.2; letter-spacing: -.04em; }
.workspace-shell.student-clean :is(.library-hero,.student-page-hero,.mobile-study-hero,.plan-heading) p { color: var(--student-muted); font-size: 1rem; line-height: 1.6; }
.workspace-shell.student-clean :is(.eyebrow,.plan-eyebrow) { color: var(--student-muted); font-size: .8125rem; font-weight: 500; letter-spacing: .025em; }
.workspace-shell.student-clean :is(.library-section-heading,.mobile-study-heading,.plan-section-heading) h2 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }
.workspace-shell.student-clean :is(.mobile-study-card,.transcript-scan-card,.gpa-calculator,.organic-grade-calculator) h2 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }
.workspace-shell.student-clean .device-study-stats { background: transparent; border: 0; box-shadow: none; padding: 0; }
.workspace-shell.student-clean :is(.library-section,.mobile-study-card,.plan-card,.profile-card,.transcript-scan-card,.gpa-calculator,.organic-grade-calculator,.notes-workflow,.upload-studio-card) {
  border: 1px solid var(--student-border); border-radius: 1.1rem; background: #fff;
  box-shadow: none; color: var(--student-text); padding: 1.5rem;
}
.workspace-shell.student-clean :is(.library-counts,.gpa-summary,.organic-grade-summary,.mobile-study-stats) { gap: .75rem; }
.workspace-shell.student-clean :is(.library-counts,.gpa-summary,.organic-grade-summary,.mobile-study-stats) > div { background: #f8f8fa; border: 1px solid #ededf1; border-radius: .8rem; box-shadow: none; color: var(--student-text); padding: 1rem; }
.workspace-shell.student-clean .library-counts :is(dt,dd) { color: inherit; }
.workspace-shell.student-clean :is(.library-search,.library-discovery-toolbar,.library-section-heading) { gap: 1rem; }
.workspace-shell.student-clean :is(.library-search input,.library-discovery-toolbar input,.library-discovery-toolbar select,.profile-card input,.profile-card select,.mobile-study-card textarea,.mobile-study-card input,.plan-fields input,.plan-fields select,.plan-fields textarea,.gpa-course-row input,.gpa-course-row select) {
  border: 1px solid #dcdce4; border-radius: .7rem; background: #fafafa; color: #27272d; box-shadow: none; font: inherit; font-size: 1rem;
}
.workspace-shell.student-clean :is(.library-search input,.library-discovery-toolbar input,.library-discovery-toolbar select) { min-height: 2.75rem; }
.workspace-shell.student-clean :is(.supplemental-card,.library-video-card,.study-note,.study-flashcard,.plan-task,.plan-session,.plan-import-card) { border: 1px solid var(--student-border); border-radius: .95rem; background: #fff; box-shadow: none; }
.workspace-shell.student-clean :is(.supplemental-card,.library-video-card):hover { border-color: #cccdd5; box-shadow: 0 4px 16px rgb(20 20 30 / 5%); }
.workspace-shell.student-clean .library-card-copy { padding: 1rem; }
.workspace-shell.student-clean .library-card-copy strong { font-size: 1rem; line-height: 1.4; font-weight: 600; }
.workspace-shell.student-clean .library-card-copy small { font-size: .8125rem; color: var(--student-muted); }
.workspace-shell.student-clean .library-video-card.is-selected { border-color: var(--brand-accent-dark); }
.workspace-shell.student-clean .library-access-badge { background: #f1f5f3; color: #37604b; border: 1px solid #dde7e1; font-size: .75rem; font-weight: 500; }
.workspace-shell.student-clean :is(.student-empty-state,.study-empty,.library-search-empty) { border: 1px dashed #dcdce4; border-radius: 1rem; background: #fafafa; color: var(--student-muted); padding: 1.5rem; }
.workspace-shell.student-clean .library-player-shell { border-radius: 1rem; box-shadow: none; }
.workspace-shell.student-clean .supplemental-type { background: #f3f3f7; color: #60606b; font-size: .75rem; border-radius: .5rem; }

/* Notebook, saved work and navigation should feel like part of the same app. */
.workspace-shell.student-clean .lab-notebook-tools { border: 1px solid var(--student-border); border-radius: 1rem; background: #fafafa; box-shadow: none; padding: 1rem 1.25rem; margin-block: 1.25rem; }
.workspace-shell.student-clean .lab-notebook-heading { gap: .75rem; }
.workspace-shell.student-clean .lab-notebook-heading strong { font-size: .9375rem; font-weight: 600; color: #34343c; }
.workspace-shell.student-clean .lab-notebook-heading :is(span,p),.workspace-shell.student-clean .lab-notebook-tools summary { font-size: .8125rem; color: var(--student-muted); }
.workspace-shell.student-clean .lab-notebook-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .7rem; }
.workspace-shell.student-clean .lab-notebook-actions button { padding: .55rem .75rem; border: 1px solid #e1e1e7; border-radius: .65rem; background: #fff; color: #55555f; font: inherit; font-size: .8125rem; font-weight: 500; box-shadow: none; }
.workspace-shell.student-clean .lab-notebook-actions button:disabled { color: #9898a0; background: #f5f5f7; }
.workspace-shell.student-clean .workspace-section-navigation { padding-block: .75rem; gap: .4rem; border-bottom: 1px solid #ededf0; background: #fff; }
.workspace-shell.student-clean .workspace-section-navigation button { min-height: 2.5rem; padding: .6rem .85rem; border-radius: .65rem; background: transparent; color: #62626c; font-size: .875rem; font-weight: 500; box-shadow: none; }
.workspace-shell.student-clean .workspace-section-navigation button.is-active { background: #f0f0f3; color: #29292f; }
.workspace-shell.student-clean :is(.plan-tabs,.plan-task-filters) { gap: .4rem; padding: .35rem; border: 1px solid var(--student-border); border-radius: .85rem; background: #fafafa; }
.workspace-shell.student-clean :is(.plan-tabs,.plan-task-filters) button { border-radius: .6rem; box-shadow: none; }
.workspace-shell.student-clean :is(.focus-card,.plan-focus) { border: 1px solid var(--student-border); background: #fafafa; color: #27272d; box-shadow: none; }
.workspace-shell.student-clean :is(.focus-clock,.plan-timer) { color: #27272d; font-weight: 500; letter-spacing: -.04em; }
.workspace-shell.student-clean .notes-workflow-steps { gap: .75rem; }
.workspace-shell.student-clean .notes-workflow-steps > * { border-radius: .8rem; box-shadow: none; }
.workspace-shell.student-clean .account-password-controls { border-radius: 1rem; border-color: var(--student-border); box-shadow: none; }
.workspace-shell.student-clean .mobile-tab-bar { border-top: 1px solid var(--student-border); background: rgb(255 255 255 / 98%); box-shadow: 0 -3px 15px rgb(20 20 30 / 3%); }
.workspace-shell.student-clean .mobile-tab-bar button { border-radius: .75rem; font-size: .8125rem; color: #686872; font-weight: 500; }
.workspace-shell.student-clean .mobile-tab-bar button[aria-current="page"],.workspace-shell.student-clean .mobile-tab-bar button[aria-pressed="true"] { background: #f0f0f3; color: #29292f; }

@media (max-width:900px) {
  .workspace-shell.student-clean .workspace-header { gap: .75rem; }
  .workspace-shell.student-clean .workspace-primary-navigation > button,.workspace-shell.student-clean .navigation-dropdown > button { padding-inline: .75rem; }
  .workspace-shell.student-clean .course-selector > span { display: none; }
  .student-dashboard { padding: 2rem 1.25rem 3rem; }
  .workspace-shell.student-clean :is(.student-page,.mobile-study-page,.study-plan,.profiles-page) { padding: 2rem 1.25rem; }
}
@media (max-width:600px) {
  .workspace-shell.student-clean .workspace-header { padding: .75rem 1rem; }
  .workspace-shell.student-clean .workspace-primary-navigation { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: .25rem; width: 100%; min-width: 0; overflow-x: auto; padding-block: .25rem; scrollbar-width: thin; }
  .workspace-shell.student-clean .workspace-primary-navigation > * { flex: 0 0 auto; width: auto; }
  .workspace-shell.student-clean .navigation-dropdown > button { width: auto; }
  .workspace-shell.student-clean .workspace-primary-navigation button { white-space: nowrap; }
  .workspace-shell.student-clean .navigation-dropdown-panel { position: fixed; top: 8.5rem; left: 1rem; right: 1rem; width: auto; max-height: calc(100dvh - 14rem); overflow-y: auto; z-index: 100; }
  .workspace-shell.student-clean .workspace-primary-navigation > button,.workspace-shell.student-clean .navigation-dropdown > button { min-height: 2.75rem; font-size: .8125rem; }
  .student-dashboard { padding: 1.75rem 1rem 2.5rem; }
  .student-dashboard-heading { margin-bottom: 2rem; }
  .student-dashboard h1 { font-size: 2rem; }
  .student-dashboard-actions { gap: .5rem; }
  .student-course-grid,.student-tool-grid { grid-template-columns: minmax(0,1fr); }
  .student-course-card { padding: 1.25rem; }
  .student-tool-link { padding: 1rem; }
  .workspace-shell.student-clean :is(.student-page,.mobile-study-page,.study-plan,.profiles-page) { padding: 1.5rem 1rem; }
  .workspace-shell.student-clean :is(.library-section,.mobile-study-card,.plan-card,.profile-card,.transcript-scan-card,.gpa-calculator,.organic-grade-calculator,.notes-workflow,.upload-studio-card) { padding: 1.1rem; border-radius: .9rem; }
  .workspace-shell.student-clean .lab-notebook-tools { margin: 1rem; padding: 1rem; }
  .workspace-shell.student-clean .lab-notebook-heading { flex-wrap: wrap; }
  .workspace-shell.student-clean .transcript-scan-card { grid-template-columns: minmax(0,1fr); }
  .workspace-shell.student-clean .transcript-scan-actions { justify-content: flex-start; }
  .workspace-shell.student-clean .course-selector { padding-inline: 1rem; }
}
@media (prefers-reduced-motion:reduce) {
  .student-tool-link { transition: none; }
}
@media print {
  .workspace-shell.student-clean :is(.workspace-header,.workspace-section-navigation,.mobile-tab-bar,.course-selector) { display: none; }
  .workspace-shell.student-clean { --student-muted:#444; }
}
