/* 教务二级页与训练首页共用的文字、间距和交互层级。 */
:is(.cl-edu-layout,#students-screen.cl-students-page,[data-cl-edu-view=attendance] #workspace) {
  --cl-ink:#1d2939;
  --cl-muted:#586373;
  --cl-blue:#075fbb;
  --cl-fill:#f2f5f9;
  --cl-line:#dce3eb;
  --cl-end-title:clamp(24px,3.6vw,29px);
}
.cl-edu-layout .cl-edu-mast h1,
#students-screen.cl-students-page > .hero h1,
[data-cl-edu-view=attendance] #workspace .edu-head h1 {
  color:var(--cl-ink)!important;
  font-weight:600!important;
  letter-spacing:-.015em!important;
}
.cl-edu-layout .cl-edu-mast,
[data-cl-edu-view=attendance] #workspace .edu-head {
  min-height:0;
  margin-block-end:10px!important;
  gap:8px 14px;
}
.cl-edu-layout .cl-edu-mast p {margin-top:3px}
.cl-edu-layout .cl-edu-viewbar {gap:4px 10px;margin-block-end:10px}
.cl-edu-layout :is(.cl-edu-top-actions,.cl-edu-class-actions) {gap:8px;min-width:0}
.cl-edu-layout .edu-btn,
[data-cl-edu-view=attendance] #workspace .edu-btn,
#students-screen.cl-students-page :is(#student-search,#student-opening) {
  box-sizing:border-box;
  min-height:44px;
  max-width:100%;
  padding:8px 14px!important;
  line-height:1.35!important;
  text-align:center;
  white-space:normal;
  overflow-wrap:anywhere;
}
.cl-edu-layout .cl-edu-class-actions .cl-edu-link {
  padding-inline:14px!important;
  color:var(--cl-blue)!important;
  background:transparent!important;
}
.cl-edu-layout .cl-edu-class-actions .cl-edu-soft,
.cl-edu-layout .cl-edu-rule > .edu-btn {
  color:var(--cl-blue)!important;
  background:#edf4fc!important;
}
.cl-edu-layout .cl-edu-class-actions > .edu-btn {flex:0 1 auto}
.cl-edu-layout .cl-edu-menu > div > .edu-btn {
  text-align:start;
  color:var(--cl-ink);
}
.cl-edu-layout .cl-edu-menu > div > .edu-btn.danger {color:#a5252c}
.cl-edu-layout .cl-edu-class {padding:12px 16px 10px}
.cl-edu-layout .cl-edu-state,
.cl-edu-layout .cl-edu-state.is-active {
  background:var(--cl-fill);
  color:var(--cl-muted);
  font-weight:500;
}
.cl-edu-layout .cl-edu-rule {
  margin-top:10px;
  padding-block:6px 2px;
}
.cl-edu-layout .cl-edu-rule > .edu-btn {flex:0 1 auto;white-space:normal}
.cl-edu-layout .cl-edu-class-actions {padding-block-start:8px;margin-block-start:5px}
.cl-edu-layout .cl-edu-context {color:var(--cl-muted)}
.cl-edu-layout .cl-edu-agenda {background:#fff;border-color:var(--cl-line)}
.cl-edu-layout .cl-edu-agenda > header {padding:8px 14px;background:var(--cl-fill)}
.cl-edu-layout .cl-edu-agenda > header h2 {font-size:15px;font-weight:600}
.cl-edu-layout .cl-edu-lesson {
  position:relative;
  align-items:center;
  padding:12px 14px 12px 17px;
  gap:8px 16px;
}
.cl-edu-layout .cl-edu-lesson::before {
  content:"";
  position:absolute;
  inset-block:12px;
  inset-inline-start:0;
  width:3px;
  border-radius:0 3px 3px 0;
  background:#9bbce1;
}
.cl-edu-layout .cl-edu-lesson.is-cancelled::before {background:#c3cbd5}
.cl-edu-layout .cl-edu-lesson-time {font-size:14px;font-weight:600;color:var(--cl-blue)}
.cl-edu-layout .cl-edu-lesson-core {gap:3px}
.cl-edu-layout .cl-edu-lesson-core > strong {font-size:19px;font-weight:650}
.cl-edu-layout .cl-edu-lesson-state {color:var(--cl-muted)}
.cl-edu-layout .cl-edu-lesson .edu-roster-names {gap:5px!important}
.cl-edu-layout .cl-edu-lesson .edu-roster-person[data-attendance=expected] {
  padding:3px 7px!important;
  border-radius:6px;
  background:var(--cl-fill)!important;
  color:var(--cl-ink);
}
.cl-edu-layout .cl-edu-lesson .edu-roster-person {max-width:100%;overflow-wrap:anywhere}

.cl-edu-layout .cl-edu-month {
  border:1px solid var(--cl-line);
  padding:4px 6px 6px;
  background:#fff;
}
.cl-edu-layout .cl-edu-month :is(.cl-month-grid,.edu-month-weekdays) {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:2px;
}
.cl-edu-layout .cl-edu-month .edu-month-weekdays {
  margin:0;
  padding:0;
  min-height:24px;
  align-items:center;
  color:var(--cl-muted);
  font-size:11px;
  text-align:center;
}
.cl-edu-layout .cl-edu-month .cl-month-grid {
  grid-auto-rows:clamp(33px,calc((100dvh - 305px)/6),46px);
}
.cl-edu-layout .cl-month-date {
  display:grid;
  align-content:center;
  justify-items:center;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--cl-ink);
  font:inherit;
  line-height:1.05;
  font-variant-numeric:tabular-nums;
}
.cl-edu-layout .cl-month-date time {
  display:grid;
  place-items:center;
  width:21px;
  height:19px;
  font-size:13px;
  font-weight:600;
}
.cl-edu-layout .cl-month-date .cl-month-visits {min-height:11px;font-size:10px}
.cl-edu-layout .cl-month-date.has-lessons {background:#eef5fd;color:#07539d}
.cl-edu-layout .cl-month-date.is-today time {border-radius:6px;background:#075fbb;color:#fff}
.cl-edu-layout .cl-month-date:focus-visible {outline-offset:-2px}
.cl-edu-layout .cl-month-totals {margin:4px 0 0}
.cl-edu-layout .cl-month-totals > summary {
  min-height:36px;
  padding:8px 4px;
  color:var(--cl-blue);
  cursor:pointer;
}
.cl-edu-layout .cl-month-totals .edu-week-summary {margin:0 0 6px}

body[data-ui-page=mobile] #students-screen.cl-students-page > .hero {padding-block:0 6px!important;margin-block:0 8px!important}
body[data-ui-page=mobile] #students-screen.cl-students-page .search-bar {gap:8px;margin:0 0 4px!important}
body[data-ui-page=mobile] #students-screen.cl-students-page > .ui-filters {margin:0 0 8px!important;padding:0!important}
body[data-ui-page=mobile] #students-screen.cl-students-page > .ui-filters > summary {
  box-sizing:border-box;
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 2px!important;
  color:var(--cl-blue);
}
body[data-ui-page=mobile] #students-screen.cl-students-page > .dash-card {margin-block-start:0!important}
body[data-ui-page=mobile] #students-screen.cl-students-page .dash-card-top {
  display:flex;
  align-items:center!important;
  flex-wrap:wrap;
  gap:0 8px!important;
  margin:0!important;
  padding:2px 0 5px!important;
}
body[data-ui-page=mobile] #students-screen.cl-students-page .dash-card-top h2 {
  flex:1 0 auto;
  color:var(--cl-ink);
  font-weight:600!important;
}
body[data-ui-page=mobile] #students-screen.cl-students-page .cl-student-page-tools {
  flex:0 1 auto;
  flex-wrap:nowrap;
  min-width:0;
  gap:8px;
}
body[data-ui-page=mobile] #students-screen.cl-students-page #student-count {
  color:var(--cl-muted);
  margin:0;
  white-space:nowrap;
  font-size:12px;
  line-height:1.2;
}
body[data-ui-page=mobile] #students-screen.cl-students-page .cl-student-pagination,
body[data-ui-page=mobile] #students-screen.cl-students-page .cl-student-page-actions {
  min-height:44px;
  align-items:center;
}
body[data-ui-page=mobile] #students-screen.cl-students-page .cl-student-page-actions button {
  box-sizing:border-box;
  position:relative;
  display:block;
  padding:0!important;
  height:44px;
  min-width:44px;
  font-size:0;
  background:transparent!important;
}
body[data-ui-page=mobile] #students-screen.cl-students-page .cl-student-page-actions button::before,
body[data-ui-page=mobile] #students-screen.cl-students-page .cl-student-page-label span::after {
  content:"";
  display:block;
  box-sizing:border-box;
  width:7px;
  height:7px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(-45deg);
}
body[data-ui-page=mobile] #students-screen.cl-students-page .cl-student-page-actions [data-page-dir="-1"]::before {transform:translate(-33%,-50%) rotate(135deg)}
body[data-ui-page=mobile] #students-screen.cl-students-page .cl-student-page-label {min-width:0;min-height:44px;padding:0 4px}
body[data-ui-page=mobile] #students-screen.cl-students-page .cl-student-page-label span {
  display:inline-flex;
  align-items:center;
  gap:5px;
  white-space:nowrap;
  color:var(--cl-ink);
  font-size:12px;
  line-height:1.2;
  font-variant-numeric:tabular-nums;
}
body[data-ui-page=mobile] #students-screen.cl-students-page .cl-student-page-label span::after {
  width:5px;
  height:5px;
  transform:translateY(-1px) rotate(45deg);
  color:var(--cl-muted);
}
body[data-ui-page=mobile] #students-screen.cl-students-page .cl-student-row {padding-block:6px;min-height:51px}
body[data-ui-page=mobile] #students-screen.cl-students-page .cl-student-copy strong {font-size:15px;font-weight:600}
body[data-ui-page=mobile] #students-screen.cl-students-page .cl-student-credit {color:var(--cl-muted);font-weight:550}
body[data-ui-page=mobile] #students-screen.cl-students-page > .hero h1 {
  font-size:clamp(24px,3.6vw,28px)!important;
  font-weight:600!important;
  line-height:1.2!important;
}
body[data-ui-page=mobile] #students-screen.cl-students-page .cl-student-page-actions button::before {
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-67%,-50%) rotate(-45deg);
}
.cl-edu-layout .cl-edu-rule-line > span:last-child {
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:4px 6px;
}
[data-cl-edu-view=attendance] #workspace .edu-head .edu-actions .edu-btn {color:var(--cl-blue)!important}
[data-cl-edu-view=attendance] #workspace .edu-btn:disabled {
  color:#526074!important;
  background:#eef1f5!important;
  opacity:1;
}
[data-cl-edu-view=attendance] #workspace .edu-namecard b {font-weight:600!important}

@media(max-width:540px) {
  .cl-edu-layout .cl-edu-class {padding-inline:12px}
  .cl-edu-layout .cl-edu-top-actions {gap:3px}
  .cl-edu-layout .cl-edu-lesson {padding-inline:13px 9px}
  .cl-edu-layout .cl-edu-date-controls {gap:0}
  .cl-edu-layout .cl-edu-date-label {padding-inline:1px;font-size:12px}
  .cl-edu-layout .cl-edu-date-controls > button:not(.edu-btn) {width:32px}
}
@media(max-width:375px) {
  #students-screen.cl-students-page .cl-student-page-tools {gap:1px}
}
