/* Education only. Shared control rhythm, without recolouring teaching media. */
@media screen {
  html[data-ag-theme] {scrollbar-color:var(--theme-muted) var(--theme-panel)}
  html[data-ag-theme] :is(.course-top,.production-header,.ld-top,.fc-top) nav {
    align-items:center;gap:8px;flex-wrap:wrap
  }
  html[data-ag-theme] :is(.course-top,.production-header,.ld-top,.fc-top) nav>a,
  html[data-ag-theme] :is(.course-top,.production-header,.ld-top,.fc-top) nav>button {
    display:inline-flex;align-items:center;justify-content:center;min-height:36px;
    padding:8px 13px;border:1px solid var(--theme-line);border-radius:999px!important;
    background:var(--theme-panel)!important;color:var(--theme-text)!important;border-color:var(--theme-line)!important;font-size:12px;line-height:1.4;text-decoration:none
  }
  html[data-ag-theme] :is(.course-top,.production-header,.ld-top,.fc-top) nav>a:hover {
    border-color:var(--theme-accent)!important;color:var(--theme-accent)!important
  }
  html[data-ag-theme] :is(.campus-link,.course-profile-link,.ag-users,.back-link,.photography-route .route-breadcrumb a) {color:var(--theme-text)!important}
  html[data-ag-theme] .ld-library-actions button {background:var(--theme-panel)!important;color:var(--theme-text)!important;border-color:var(--theme-line)!important}
  html[data-ag-theme] .ld-library-filter label {color:var(--theme-text)!important}
  html[data-ag-theme] .ag-view-toggle {background:var(--theme-raised)!important;color:var(--theme-text)!important;border-color:var(--theme-line)!important}
  html[data-ag-theme] :is(.ag-view-toggle,.ag-viewport-toggle)[aria-pressed=true] {background:var(--theme-accent)!important;color:var(--theme-on-accent)!important;border-color:var(--theme-accent)!important}
  html[data-ag-theme] :is(.course-savebar,.stage-panel) button {
    min-height:36px;font-size:12px;line-height:1.4;padding:8px 12px
  }
  html[data-ag-theme] :is(.lesson-panel,.production-inspector,.ld-inspector) :is(label,select,input:not([type=range]):not([type=checkbox]):not([type=radio]),textarea) {
    font-size:13px;line-height:1.6
  }
  html[data-ag-theme] :is(.course-dialog,.production-dialog,.ld-dialog,dialog:not(.doc-dialog)) {
    max-width:min(940px,calc(100vw - 28px));max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain
  }
  html[data-ag-theme] :is(.production-inspector,.ld-inspector,.lesson-panel,.campus-panel,.home-card,.roadmap-editor,.meeting-detail) {
    min-width:0;overflow-wrap:anywhere
  }
  html[data-ag-theme] :is(.save-state,.save-status,.course-feedback,.production-notice,.ld-feedback,.work-feedback) {
    line-height:1.6;overflow-wrap:anywhere
  }
  html[data-ag-theme] :is(.course-savebar,.production-project-bar,.ld-edit-bar) :is(input,button) {
    min-width:0;max-width:100%
  }
  html[data-ag-theme] :is(.course-savebar,.production-project-bar,.ld-edit-bar) :is(.muted,.save-state,.save-status) {
    font-size:12px;color:var(--theme-muted)
  }
  html[data-ag-theme] .student-home .catalog-discovery {
    display:grid;grid-template-columns:minmax(200px,1fr) minmax(200px,.46fr);gap:14px;margin:22px 0 16px
  }
  html[data-ag-theme] .catalog-discovery label {
    display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:500;color:var(--theme-text)
  }
  html[data-ag-theme] .catalog-discovery :is(input,select) {
    width:100%;min-height:45px;padding:10px 14px;border:1px solid var(--theme-line);border-radius:10px!important;font-size:14px
  }
  html[data-ag-theme] .student-home .catalog-toolbar {gap:14px;padding-bottom:12px;align-items:center;border-color:var(--theme-line)}
  html[data-ag-theme] .catalog-filters {gap:8px;flex-wrap:wrap}
  html[data-ag-theme] .catalog-filters button {
    min-height:36px;padding:8px 14px;border:1px solid var(--theme-line);border-radius:999px;
    background:var(--theme-panel);color:var(--theme-text);font:500 12px/1.4 var(--theme-font)
  }
  html[data-ag-theme] .catalog-filters button[aria-pressed=true] {
    background:var(--theme-accent);color:var(--theme-on-accent);border-color:var(--theme-accent)
  }
  html[data-ag-theme] :is(.catalog-result-count,.catalog-empty) {color:var(--theme-muted);font-size:12px;line-height:1.6}
  html[data-ag-theme] .catalog-empty {background:var(--theme-panel);border-color:var(--theme-line);border-radius:10px}
  html[data-ag-theme] .catalog-empty button {color:var(--theme-accent);border-color:var(--theme-accent);border-radius:999px;min-height:40px;padding:9px 17px}
  html[data-ag-theme] .student-home .education-catalog .module-category {color:var(--theme-muted);font-size:11px;letter-spacing:.09em}
  html[data-ag-theme] .student-home .education-catalog :is(.module-state,.module-progress-heading,.module-progress p,.module-request-feedback,.module-tracking-note) {font-size:12px;line-height:1.6}
  html[data-ag-theme] .student-home .education-catalog :is(.module-bottom,.module-progress-bar) {border-color:var(--theme-line)}
  html[data-ag-theme] .student-home .education-catalog .module-progress-bar {background:var(--theme-line)}
  html[data-ag-theme] .student-home .education-catalog .module-progress-heading {color:var(--theme-text)}
  html[data-ag-theme] .student-home .education-catalog :is(.module-request-feedback,.module-progress p) {color:var(--theme-muted)}
  html[data-ag-theme] .student-home .education-catalog .request-access-button {
    color:var(--theme-accent);background:var(--theme-panel);border-color:var(--theme-accent);border-radius:999px;min-height:40px
  }
  html[data-ag-theme] .student-home .education-catalog .module-preview-toggle {color:var(--theme-text);background:var(--theme-panel);border-color:var(--theme-line)}
  html[data-ag-theme] .student-home .education-catalog [hidden],html[data-ag-theme] .catalog-empty[hidden] {display:none!important}
  @media(max-width:700px) {
    html[data-ag-theme] .student-home .catalog-discovery {grid-template-columns:minmax(0,1fr);gap:12px;margin-top:18px}
    html[data-ag-theme] .student-home .catalog-toolbar {align-items:flex-start;flex-direction:column;gap:10px}
    html[data-ag-theme] .catalog-result-count {text-align:left;margin:0}
    html[data-ag-theme] :is(.course-top,.production-header,.ld-top,.fc-top) nav {gap:6px}
    html[data-ag-theme] :is(.course-top,.production-header,.ld-top,.fc-top) nav>a,
    html[data-ag-theme] :is(.course-top,.production-header,.ld-top,.fc-top) nav>button {padding:7px 10px;font-size:11px;min-height:35px}
  }
  @media(max-width:600px) {
    html[data-ag-theme] .course-top {height:auto;min-height:60px;flex-wrap:wrap;gap:6px;padding:9px 16px}
    html[data-ag-theme] .course-top nav {flex:1 1 100%;min-width:0;justify-content:flex-end;margin-left:0}
    html[data-ag-theme] .course-top .course-brand {width:136px!important;min-height:34px}
    html[data-ag-theme] .course-top .course-brand:before {height:34px}
  }
}
