/* Повседневные списки: действие страницы, вид списка, фильтры, содержимое. */
body .work-head { gap: 12px; align-items: center; }
body .work-head .titles { min-width: 0; }
body .work-head .btn { min-height: 40px; }
.work-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
body .work-tabs { display: flex; align-items: stretch; gap: 24px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 0; margin: 0; overflow-x: auto; }
body .work-tabs > :is(a,button) { display: inline-flex; align-items: center; gap: 8px; position: relative; min-height: 44px; padding: 10px 0 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--text-2); font: inherit; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; }
body .work-tabs > :is(a,button):hover { color: var(--text); }
body .work-tabs > .active { color: var(--text); border-bottom-color: var(--accent); font-weight: 650; }
.work-count { color: var(--text-2); font-size: .88em; font-weight: 500; font-variant-numeric: tabular-nums; }
body .work-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 24px; padding: 16px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body .work-search { display: flex; align-items: center; position: relative; gap: 0; min-width: 0; width: min(100%, 380px); flex: 0 1 380px; margin: 0; }
body .work-search > .ic { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--text-2); pointer-events: none; }
body .work-search .input { width: 100%; min-width: 0; height: 40px; padding: 8px 46px 8px 38px; border-color: var(--line); background: var(--surface); border-radius: 8px; }
body .work-search .input:focus { border-color: var(--accent); outline-offset: 2px; }
body .work-search-go { position: absolute; right: 2px; top: 2px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 6px; background: none; color: var(--text-2); cursor: pointer; }
body .work-search-go:hover { color: var(--accent); background: var(--accent-soft); }
.work-search-go .ic { width: 17px; height: 17px; }
body .work-filter { position: relative; min-width: 0; max-width: 100%; margin: 0; }
body .work-filter > summary { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); font-size: 13px; font-weight: 500; line-height: 1.4; list-style: none; cursor: pointer; }
.work-filter > summary::-webkit-details-marker { display: none; }
.work-filter > summary > .ic { width: 17px; height: 17px; flex: none; color: var(--text-2); }
body .work-filter > summary::after { content: ''; margin-left: 8px; width: 6px; height: 6px; border: 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); flex: none; }
body .work-filter[open] > summary { border-color: var(--accent); color: var(--text); }
body .work-filter[open] > summary::after { transform: translateY(2px) rotate(225deg); }
body :is(.work-menu-panel,.work-filter .tl-audience-list) { position: absolute; z-index: 35; top: calc(100% + 6px); left: 0; display: flex; flex-direction: column; gap: 2px; width: 320px; max-width: calc(100vw - 48px); max-height: min(460px,65vh); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 12px 24px -12px color-mix(in srgb,var(--text) 25%,transparent); }
body :is(.work-menu-item,.work-filter .tl-audience-option) { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px 10px; border-radius: 6px; color: var(--text); font: inherit; text-decoration: none; overflow-wrap: anywhere; }
body :is(.work-menu-item,.work-filter .tl-audience-option):hover { background: var(--frame-bg); }
body :is(.work-menu-item,.work-filter .tl-audience-option).active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.work-menu-item .work-count { margin-left: auto; }
.work-menu-panel .input { width: 100%; }
.work-menu-item[hidden],.work-menu-empty[hidden] { display: none; }
.work-menu-empty { padding: 10px; color: var(--text-2); }
body .work-reset { color: var(--text-2); font-size: 12px; padding: 10px 2px; text-underline-offset: 3px; }
body .work-tool-end { margin-left: auto; }
body .work-tools > .btn { min-height: 40px; }
.work-sort { display: flex; align-items: center; gap: 6px; min-width: 0; }
body .work-sort .select { min-height: 40px; border-color: var(--line); background: var(--surface); color: var(--text); border-radius: 8px; width: 230px; }
body .work-icon-button { display: grid; place-items: center; padding: 0; width: 40px; height: 40px; flex: none; }
.work-icon-button .ic { width: 18px; height: 18px; }
body .students-page .group-fold-actions { justify-content: flex-end; margin: -8px 0 8px; gap: 12px; }
body .students-page .group-fold-actions .btn { padding: 4px 0; border: 0; background: none; color: var(--text-2); }
body .students-page .pupil-grid { gap: 0 24px; }
body .students-page .pupil-card { padding-block: 16px; }
body .tutor-lessons .lf-next { margin-top: 0; padding: 20px; background: var(--surface); }
body .tutor-lessons .lf-next-day { color: var(--text); }
body .tutor-lessons .lf-next-num { font-size: 36px; }
body .tutor-lessons .lf-next .lf-kicker { font-family: inherit; letter-spacing: 0; text-transform: none; }
body .tutor-lessons .tl-card { min-height: 0; padding: 18px 0; }
/* Домашние задания сравниваются строками внутри групп по сроку. */
body .hw-board { display: flex; flex-direction: column; gap: 24px; }
body .hw-board--flat { gap: 0; }
body .hw-col { width: 100%; gap: 0; }
body .hw-col-head { justify-content: flex-start; gap: 8px; padding: 0 0 10px; border-bottom: 1px solid var(--line); font-family: inherit; font-size: 13px; text-transform: none; letter-spacing: 0; }
body .hw-col-n { font-family: inherit; }
body .hw-card { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(180px,.8fr) minmax(180px,1fr); gap: 20px; align-items: center; margin: 0; padding: 16px 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
body .hw-card:hover { background: var(--surface); }
.hw-card-main,.hw-card-progress,.hw-card-detail { min-width: 0; }
body .hw-card-who { padding: 0; margin-bottom: 4px; }
body .hw-card-note { font-size: 12px; }
body .hw-prog { gap: 10px; margin: 0 0 5px; }
body .hw-prog-num { margin: 0; font-family: inherit; font-size: 12px; font-variant-numeric: tabular-nums; }
body .hw-bar { flex: 0 1 64px; height: 4px; }
body .hw-state { font-size: 12px; color: var(--text-2); }
body .hw-foot { font-size: 12px; }
body .hw-pending { font-size: 12px; margin-top: 5px; }
body .hw-card:has(.hw-check) { padding-left: 38px; }
body .hw-check { width: 18px; height: 18px; top: calc(50% - 9px); left: 4px; right: auto; margin: 0; }
body .hw-bulkbar { position: sticky; top: calc(var(--header-h,56px) + 8px); z-index: 20; background: var(--surface); border-color: var(--line); margin-bottom: 20px; }
body .rq-toolbar { box-shadow: none; }
body .rq-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 18px 0; margin: 0; }
body .rq-group .section-label { font-size: 13px; text-transform: none; margin: 0; }
body .rq-group { margin-bottom: 24px; }
body .rq-group-head { margin-bottom: 0; }
body .rq-group .rq-disc { background: none; width: 18px; height: 18px; }
body .rq-controls { justify-content: flex-end; margin-top: -10px; }
body .rq-group .rq-chip { border: 0; padding-left: 0; }
body .rq-submission > form .btn { border: 0; color: var(--text-2); font-weight: 400; }
body .work-compose { margin-left: auto; position: relative; }
body .work-compose > summary { list-style: none; cursor: pointer; }
.work-compose > summary::-webkit-details-marker { display: none; }
body .work-compose .tpl-new { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 340px; max-width: calc(100vw - 48px); margin: 0; padding: 18px; display: flex; background: var(--surface); border: 1px solid var(--line); }
body .work-compose .field { min-width: 0; width: 100%; }
body .work-compose .input { width: 100%; }
/* Приглашение в аккаунт рядом с результатом, без перекрытия задачи. */
body .registration-invite { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px 20px; margin: 20px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.registration-invite > div { flex: 1 1 240px; }
.registration-invite strong { display: block; font-size: 15px; font-weight: 600; }
.registration-invite p { color: var(--text-2); font-size: 13px; line-height: 1.5; margin: 5px 0 0; max-width: 65ch; }
.registration-invite .btn { min-height: 44px; }
.registration-invite .registration-login { color: var(--text-2); font-size: 13px; }
body [data-test="lesson-notes-page"] .lesson-notes { border: 0; padding: 0; background: none; }
body[data-cabinet="1"] .student-home .sh-overview.stat-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 0 20px; }
@media (max-width: 1280px) {
  body[data-cabinet="1"] .student-home .sh-overview.stat-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  body .work-tools { gap: 10px; }
  body .work-search { flex: 1 1 240px; }
  body .hw-card { grid-template-columns: minmax(0,1.4fr) minmax(150px,1fr); gap: 10px 20px; }
  .hw-card-detail { grid-column: 1/-1; }
  body .hw-foot { display: inline; }
  body .hw-pending { display: inline-block; margin: 0 0 0 12px; }
}
@media (max-width: 600px) {
  body[data-cabinet="1"] .student-home .sh-overview.stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
  body .work-head { align-items: flex-start; gap: 12px; }
  body .work-head .titles { flex: 1 1 100%; }
  body .work-head .spacer { display: none; }
  body .work-head .actions,body .work-head .work-actions { width: 100%; justify-content: flex-start; }
  body .work-head :is(.btn,summary) { min-height: 44px; }
  body .work-tabs { gap: 20px; }
  body .work-tabs > :is(a,button) { font-size: 13px; }
  body .work-tools { margin-bottom: 22px; }
  body .work-search { flex-basis: 100%; width: 100%; }
  body .work-search .input { min-height: 44px; height: 44px; }
  body .work-search-go { width: 40px; height: 40px; }
  body .work-filter { flex: 1 1 auto; }
  body .work-filter > summary { min-height: 44px; }
  body :is(.work-menu-panel,.work-filter .tl-audience-list) { width: min(320px,calc(100vw - 48px)); }
  body .work-tools > .btn { min-height: 44px; }
  body .work-sort { flex: 1 1 100%; margin-left: 0; }
  body .work-sort .select { flex: 1; min-height: 44px; width: auto; }
  body .work-icon-button { width: 44px; height: 44px; }
  body .hw-card { grid-template-columns: minmax(0,1fr); padding-block: 16px; gap: 10px; }
  body .hw-card-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  body .hw-prog { margin: 0; }
  body .hw-bar { width: 60px; flex-basis: 60px; }
  body .hw-pending { display: block; margin: 4px 0 0; }
  body .hw-bulkbar { position: static; }
  body .students-page .group-fold-actions { margin-top: 0; justify-content: flex-start; }
  body .work-compose { margin-left: 0; }
  body .work-compose .tpl-new { left: 0; right: auto; }
  body .registration-invite { padding: 16px; gap: 12px; }
  .registration-invite .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body :is(.work-tabs,.work-tools,.hw-card,.rq-card,.registration-invite) { animation: none; transition: none; }
}
