/* Teaching workspaces: compact directories, clear boundaries, restrained green actions. */
html.hydro-refined:is(.page--dyoj_class,.page--dyoj_problemsets,.page--dyoj_course,.page--dyoj_course_edit) .main{padding-top:64px}
html.hydro-refined :is(.school-page,.school-library,.dyoj-class-page,.dyoj-class-detail){--ref-line:#d5dedd;box-sizing:border-box}
html.hydro-refined :is(.school-page,.school-library,.dyoj-class-page,.dyoj-class-detail) *{box-sizing:border-box}
html.hydro-refined .school-workspace-head,html.hydro-refined .dyoj-class-page-head{padding:10px 4px 20px;gap:20px}
html.hydro-refined .school-workspace-head h1,html.hydro-refined .dyoj-class-page-head h1{font-size:25px;margin:5px 0 6px}
html.hydro-refined .school-workspace-head .learning-eyebrow,html.hydro-refined .dyoj-class-page-head .learning-eyebrow{display:none}
html.hydro-refined .school-resource-filter{padding:18px 22px}
html.hydro-refined .school-filter-heading{margin-bottom:14px}
html.hydro-refined .school-resource-table :is(th,td){padding:11px 18px;line-height:1.5}
html.hydro-refined .school-resource-table td p{margin:3px 0 0;font-size:11px}
html.hydro-refined .school-resource-title{font-size:14px}
html.hydro-refined .school-resource-sidebar .school-stage-link{padding:12px;margin:3px 0}
html.hydro-refined .school-resource-main{gap:16px}
html.hydro-refined .dyoj-class-card{border:1px solid var(--ref-line);box-shadow:none}
html.hydro-refined .dyoj-class-card-link{padding:22px 24px;min-height:210px}
html.hydro-refined .dyoj-class-card-meta{margin:8px 0 16px;font-size:13px}
html.hydro-refined .dyoj-class-empty{background:var(--ref-panel);padding:48px 28px;border:1px solid var(--ref-line);border-radius:8px;min-height:200px;justify-content:center}
html.hydro-refined .dyoj-class-empty h2{font-size:20px;margin:0 0 8px;color:var(--ref-ink)}
html.hydro-refined .dyoj-class-detail.section{background:transparent;border:0;box-shadow:none;padding:0}
html.hydro-refined .dyoj-class-hero{border:1px solid var(--ref-line);padding:24px 28px;margin-bottom:16px}
html.hydro-refined .dyoj-class-tabs--inner{border:1px solid var(--ref-line);margin:0 0 16px;box-shadow:none}
html.hydro-refined #school-panel>.school-class-content,html.hydro-refined #school-panel>.dyoj-course-layout{border:1px solid var(--ref-line);border-radius:8px;background:var(--ref-panel);padding:24px}
html.hydro-refined .dyoj-class-detail .section,html.hydro-refined .dyoj-class-hero,html.hydro-refined .dyoj-class-tabs--inner{animation:none!important;transition:none!important;opacity:1!important;transform:none!important}
html.hydro-refined .school-network-status{position:fixed;right:24px;top:72px;z-index:200;max-width:calc(100vw - 48px);box-shadow:0 4px 18px #20372c15;margin:0;font-size:12px;pointer-events:none}
html.hydro-refined .school-network-status.is-error{pointer-events:auto}
html.hydro-refined .school-breadcrumb{margin:0 0 16px;font-size:12px}
html.hydro-refined .school-reader-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 20px;padding:0 2px}
html.hydro-refined .school-reader-head h1{font-size:26px;line-height:1.4;font-weight:650;margin:5px 0 10px}
html.hydro-refined .school-reader-head p{font-size:13px;margin:0;line-height:1.7}
html.hydro-refined .school-reader-head>.button{flex:none}
html.hydro-refined .school-local-tabs{display:flex;width:max-content;max-width:100%;gap:4px;padding:5px;border:1px solid var(--ref-line);background:var(--ref-panel);border-radius:8px;margin:0 0 18px;overflow:auto}
html.hydro-refined .school-local-tabs button{background:none;border:0;border-radius:5px;padding:10px 18px;color:var(--ref-muted);font-family:inherit;font-size:14px;font-weight:500;line-height:1.4;white-space:nowrap;cursor:pointer}
html.hydro-refined .school-local-tabs button[aria-selected=true]{color:var(--ref-accent);background:var(--ref-accent-soft);font-weight:600}
html.hydro-refined .school-local-tabs button:hover{background:var(--ref-hover)}
html.hydro-refined .school-reader-panel{background:var(--ref-panel);border:1px solid var(--ref-line);border-radius:8px;padding:24px 28px;line-height:1.8}
html.hydro-refined .school-reader-panel h2{font-size:19px;font-weight:600;margin:0 0 20px}
html.hydro-refined .school-reader-panel h3{font-size:16px;font-weight:600;margin:24px 0 12px}
html.hydro-refined .school-intro-chapters{list-style:none;margin:0;padding:0;max-width:760px}
html.hydro-refined .school-intro-chapters li{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--ref-line);padding:12px 0;gap:20px}
html.hydro-refined .school-intro-chapters button{border:0;background:none;color:var(--ref-ink);cursor:pointer;padding:0;font-size:14px;text-align:left}
html.hydro-refined .school-intro-chapters span{font-size:12px;color:var(--ref-muted);white-space:nowrap}
html.hydro-refined .school-problem-tools{display:flex;align-items:center;gap:12px;margin:0 0 16px;font-size:12px}
html.hydro-refined .school-problem-tools label{display:flex;align-items:center;gap:10px;margin:0}
html.hydro-refined .school-problem-tools>span{margin-left:auto;color:var(--ref-muted)}
html.hydro-refined .school-problem-tools .textbox{width:125px;min-height:36px}
html.hydro-refined .school-reader .school-chapter{border:1px solid var(--ref-line);background:var(--ref-panel);margin:0 0 14px;border-radius:8px;box-shadow:none}
html.hydro-refined .school-reader .school-chapter>summary{padding:16px 22px;gap:12px;min-height:64px}
html.hydro-refined .school-reader .school-chapter-index{background:none;width:auto;min-width:20px;font:500 14px/1.4 ui-monospace,monospace}
html.hydro-refined .school-reader .school-chapter h2{font-size:16px;margin:0;line-height:1.6}
html.hydro-refined .school-chapter-count{font-size:12px;color:var(--ref-muted);margin-left:auto;white-space:nowrap}
html.hydro-refined .school-reader .school-chevron{margin-left:6px}
html.hydro-refined .school-reader .school-chapter-note{padding:0 22px 12px;font-size:13px;color:var(--ref-muted)}
html.hydro-refined .school-reader .school-problems{width:100%;min-width:650px}
html.hydro-refined .school-reader .school-problems :is(th,td){padding:13px 18px;vertical-align:middle;border-left:0;border-right:0;font-size:13px;line-height:1.6}
html.hydro-refined .school-reader .school-problems th{font-weight:500;background:var(--ref-hover);color:var(--ref-muted);font-size:12px}
html.hydro-refined .school-reader .school-problems :is(th,td):first-child{width:58px;padding-left:22px}
html.hydro-refined .school-reader .school-problems :is(th,td):nth-child(2){width:100px}
html.hydro-refined .school-reader .school-problems :is(th,td):nth-child(4){width:150px}
html.hydro-refined .school-reader .school-problems :is(th,td):last-child{width:110px;white-space:nowrap}
html.hydro-refined .school-reader .school-problems td a{color:var(--ref-ink);font-weight:550}
html.hydro-refined .school-status-dot{display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;border-radius:50%;color:var(--ref-muted);background:var(--ref-hover)}
html.hydro-refined .school-status-dot.is-passed{color:#287154;background:#eaf3ed}
html.hydro-refined .school-id-cell{font-size:12px;color:var(--ref-muted);font-variant-numeric:tabular-nums}
html.hydro-refined .school-problem-tags{display:flex;gap:6px;margin:6px 0 0;flex-wrap:wrap}
html.hydro-refined .school-problem-tags span{padding:2px 6px;background:var(--ref-hover);font-size:11px;color:var(--ref-muted);border-radius:3px}
html.hydro-refined .school-filter-empty{padding:20px;text-align:center;color:var(--ref-muted);font-size:13px}
html.hydro-refined .school-record-tools{display:flex;align-items:center;gap:16px;margin:0 0 20px;font-size:13px}
html.hydro-refined .school-record-tools label{display:flex;align-items:center;gap:10px}
html.hydro-refined .school-record-tools .textbox{max-width:360px}
html.hydro-refined .school-record-tools>.button{margin-left:auto}
html.hydro-refined .school-record-matrix :is(td,th){padding:14px 16px;white-space:nowrap;font-size:13px;border-left:0;border-right:0}
html.hydro-refined .school-record-matrix th{background:var(--ref-hover);font-weight:500}
html.hydro-refined .school-record-pages{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:18px;font-size:12px;color:var(--ref-muted)}
html.hydro-refined .school-arrange-layout{display:grid;grid-template-columns:225px minmax(0,1fr);gap:20px;align-items:start}
html.hydro-refined .school-arrange-side{background:var(--ref-panel);border:1px solid var(--ref-line);border-radius:8px;padding:18px 14px}
html.hydro-refined .school-arrange-side-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 4px 12px}
html.hydro-refined .school-arrange-side-head h2{font-size:14px;margin:0}
html.hydro-refined .school-arrange-side-head .button{padding:6px 10px;min-height:30px;font-size:12px}
html.hydro-refined .school-chapter-nav{display:grid;grid-template-columns:22px minmax(0,1fr);width:100%;border:1px solid transparent;background:none;text-align:left;padding:12px 10px;border-radius:5px;gap:4px 8px;cursor:pointer;color:var(--ref-ink)}
html.hydro-refined .school-chapter-nav.is-active{background:var(--ref-hover);border-color:var(--ref-line)}
html.hydro-refined .school-chapter-nav strong{font-size:13px;line-height:1.6;font-weight:550;overflow-wrap:anywhere}
html.hydro-refined .school-chapter-nav span{font-size:11px;color:var(--ref-muted);line-height:1.8}
html.hydro-refined .school-chapter-nav small{grid-column:2;font-size:11px;color:var(--ref-muted)}
html.hydro-refined .school-section-editor{padding:22px;border:1px solid var(--ref-line);background:var(--ref-panel);border-radius:8px;margin:0;min-width:0}
html.hydro-refined .school-section-heading{margin:0 0 12px}
html.hydro-refined .school-section-heading h2{font-size:16px;margin:0}
html.hydro-refined .school-section-heading .button{padding:6px 9px;font-size:11px;min-height:30px}
html.hydro-refined .school-chapter-description{margin:12px 0 20px;font-size:12px;color:var(--ref-muted)}
html.hydro-refined .school-chapter-description summary,html.hydro-refined .school-bulk-add summary{cursor:pointer}
html.hydro-refined .school-arrange-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:20px 0 14px;font-size:13px}
html.hydro-refined .school-arrange-toolbar>strong{padding-top:10px;white-space:nowrap}
html.hydro-refined .school-arrange-toolbar .school-picker{margin:0;max-width:70%}
html.hydro-refined .school-arrange-toolbar .school-picker summary{padding:8px 14px;font-size:12px;list-style:none;min-height:34px}
html.hydro-refined .school-arrange-toolbar .school-picker[open]{flex:1}
html.hydro-refined .school-arrange-table{border:1px solid var(--ref-line);border-radius:6px;overflow:auto}
html.hydro-refined .school-arrange-table table{width:100%;min-width:570px}
html.hydro-refined .school-arrange-table :is(th,td){padding:12px;font-size:12px;vertical-align:middle;border-left:0;border-right:0;line-height:1.6}
html.hydro-refined .school-arrange-table th{background:var(--ref-hover);font-weight:500;color:var(--ref-muted);white-space:nowrap}
html.hydro-refined .school-arrange-table small{display:block;color:var(--ref-muted);font-size:11px;margin-top:3px}
html.hydro-refined .school-arrange-table td:nth-child(2){width:36%}
html.hydro-refined .school-arrange-table .school-row-actions{display:table-cell;white-space:nowrap}
html.hydro-refined .school-icon-button{width:28px;height:28px;border:1px solid var(--ref-line);border-radius:4px;background:var(--ref-panel);color:var(--ref-accent);margin:0 3px;cursor:pointer}
html.hydro-refined .school-icon-button:disabled{opacity:.3;cursor:default}
html.hydro-refined .school-bulk-add{font-size:12px;color:var(--ref-muted);margin-top:18px}
html.hydro-refined .school-bulk-add .button{margin-top:10px;font-size:12px}
html.hydro-refined .school-save-bar{position:sticky;bottom:10px;margin:20px 0 0;padding:14px 20px;border:1px solid var(--ref-line);border-radius:8px;box-shadow:0 4px 16px #20352c12;gap:14px;min-height:66px}
html.hydro-refined .school-save-bar label{font-size:12px;display:flex;align-items:center;gap:8px;line-height:1.5}
html.hydro-refined .school-save-bar .learning-muted{font-size:11px}
html.hydro-refined .school-editor-basics{padding:20px 26px;border:1px solid var(--ref-line);border-radius:8px}
html.hydro-refined .school-editor-basics label:first-child{margin-top:0}
html.hydro-refined :is(.school-page,.school-library,.dyoj-class-page,.dyoj-class-detail) [hidden]{display:none!important}
@media(max-width:900px){html.hydro-refined .school-arrange-layout{grid-template-columns:180px minmax(0,1fr);gap:14px}html.hydro-refined .school-section-editor{padding:16px}html.hydro-refined .school-section-heading{flex-wrap:wrap}html.hydro-refined .school-save-bar>span:last-of-type{display:none}}
@media(max-width:700px){html.hydro-refined .school-reader-head{flex-wrap:wrap;gap:14px}html.hydro-refined .school-reader-head h1{font-size:22px}html.hydro-refined .school-problem-tools{flex-wrap:wrap}html.hydro-refined .school-problem-tools>span{margin-left:auto}html.hydro-refined .school-arrange-layout{grid-template-columns:minmax(0,1fr)}html.hydro-refined .school-arrange-side nav{display:flex;overflow:auto}html.hydro-refined .school-chapter-nav{min-width:160px;width:auto;flex:none;max-width:210px}html.hydro-refined .school-record-tools{flex-wrap:wrap}html.hydro-refined .school-record-tools .textbox{max-width:240px}html.hydro-refined .school-reader-panel{padding:20px}html.hydro-refined .school-reader .school-chapter>summary{padding:14px 16px}html.hydro-refined .school-save-bar{flex-wrap:wrap;gap:10px}html.hydro-refined .school-save-bar>[data-editor-save-status]{display:none}html.hydro-refined .school-reader .school-chapter h2{font-size:14px}html.hydro-refined .school-arrange-layout>*{min-width:0}html.hydro-refined .school-local-tabs button{padding:10px 12px;font-size:13px}}

/* Override the upstream fixed table layout and ellipsis rules for teaching tables. */
html.hydro-refined .school-reader .school-problems,html.hydro-refined .school-arrange-table table{table-layout:auto}
html.hydro-refined .school-reader .school-problems :is(th,td),html.hydro-refined .school-arrange-table :is(th,td){text-align:left;text-overflow:clip;overflow:visible;white-space:normal}
html.hydro-refined .school-reader .school-problems :is(th,td):first-child{width:80px;min-width:80px}
html.hydro-refined .school-reader .school-problems tbody tr:nth-child(even),html.hydro-refined .school-arrange-table tbody tr:nth-child(even){background:var(--ref-panel)}
html.hydro-refined .school-arrange-table td strong{display:block;max-width:none;text-align:left;white-space:normal;overflow:visible;text-overflow:clip;font-size:13px}
html.hydro-refined .school-arrange-table :is(th,td):first-child{width:52px}
html.hydro-refined .school-arrange-table :is(th,td):nth-child(4){width:100px;white-space:nowrap}

@media(max-width:700px){html.hydro-refined:is(.page--dyoj_class,.page--dyoj_problemsets,.page--dyoj_course,.page--dyoj_course_edit) .main{padding-top:22px}html.hydro-refined.page--dyoj_course_edit .omnibar-toggle{bottom:104px}}

html.hydro-refined .dyoj-class-page.section,html.hydro-refined .dyoj-class-detail.section,html.hydro-refined .school-page .section{outline:0}
html.hydro-refined .dyoj-course-cat.is-active::before{display:none}
@media(max-width:700px){html.hydro-refined.page--dyoj_course_edit .omnibar-toggle{display:none}}

/* UI UX Pro Max review: contrast, keyboard focus, readable metadata and touch input. */
html.hydro-refined :is(.school-page,.school-library,.dyoj-class-page,.dyoj-class-detail){--ref-muted:#586a74;--school-success:#287154;--school-success-bg:#eaf3ed}
html.hydro-refined :is(.school-page,.school-library,.dyoj-class-page,.dyoj-class-detail) :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--ref-accent);outline-offset:3px;scroll-margin-top:85px;scroll-margin-bottom:100px}
html.hydro-refined .school-local-tabs button[aria-selected=true]{color:var(--ref-accent);background:var(--ref-accent-soft)}
html.hydro-refined :is(.school-course-meta,.school-id-cell,.school-state,.school-resource-table td p,.school-arrange-table small,.school-chapter-nav small,.school-course-side-title){font-size:12px}
html.hydro-refined .school-status-dot.is-passed{color:var(--school-success);background:var(--school-success-bg)}
html.hydro-refined.theme--dark :is(.school-page,.school-library,.dyoj-class-page,.dyoj-class-detail){--ref-muted:#b4c3cc;--ref-line:#4b5c64;--school-success:#b5e4c8;--school-success-bg:#254334}
html.hydro-refined.theme--dark :is(.school-page,.school-library,.dyoj-class-page,.dyoj-class-detail) .primary.button{background:var(--ref-primary);border-color:var(--ref-primary);color:#fff}
html.hydro-refined.theme--dark :is(.school-page,.school-library,.dyoj-class-page,.dyoj-class-detail) .school-state.is-published{background:var(--school-success-bg);color:var(--school-success)}
@media(pointer:coarse){html.hydro-refined :is(.school-page,.school-library,.dyoj-class-page,.dyoj-class-detail) :is(.button,.school-text-button,.school-icon-button,.school-local-tabs button){min-height:44px;min-width:44px;touch-action:manipulation}html.hydro-refined .school-icon-button{margin:0 4px}html.hydro-refined .school-local-tabs{gap:8px}html.hydro-refined :is(.school-page,.school-library,.dyoj-class-page,.dyoj-class-detail) .textbox{font-size:16px}}
@media(prefers-reduced-motion:reduce){html.hydro-refined :is(.school-page,.school-library,.dyoj-class-page,.dyoj-class-detail) *{animation:none!important;scroll-behavior:auto!important}}

html.hydro-refined.theme--dark :is(.school-page,.school-library,.dyoj-class-page,.dyoj-class-detail) .button:not(.primary){background:#242d39!important;border-color:#63757c!important;color:#dce4ee!important}
html.hydro-refined.theme--dark :is(.school-page,.school-library,.dyoj-class-page,.dyoj-class-detail) .button:not(.primary):hover{background:#33434b!important}
