.mentor-students,
.mentor-students-dialog {
  --students-ink: #182238;
  --students-muted: #607089;
  --students-line: #e0e6ef;
  --students-blue: #244fe4;
  --students-soft: #f5f7fc;
  color: var(--students-ink);
  font-size: 14px;
}
.mentor-students [hidden],
.mentor-students-dialog [hidden] { display: none !important; }
.mentor-students button,
.mentor-students-dialog button,
.mentor-students input,
.mentor-students select,
.mentor-students-dialog input,
.mentor-students-dialog select { font: inherit; }
.mentor-students :is(button, input, select):focus-visible,
.mentor-students-dialog :is(button, input, select, [tabindex]):focus-visible {
  outline: 3px solid #aec0ff;
  outline-offset: 3px;
}
.mentor-students-heading { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 22px; }
.mentor-students-heading h1 { margin: 0 0 6px; font-size: clamp(25px, 4vw, 32px); letter-spacing: -.035em; }
.mentor-students-count { margin: 0; color: var(--students-muted); }
.mentor-students-execution-notice { margin: 6px 0 0; color: var(--students-muted); font-size: 13px; }
.mentor-students-toolbar { display: flex; gap: 12px; margin-bottom: 10px; }
.mentor-students-search { display: flex; flex: 1; max-width: 360px; align-items: center; gap: 10px; padding-inline: 13px; border: 1px solid #d5ddeb; border-radius: 7px; color: var(--students-muted); background: #fff; }
.mentor-students-search:focus-within { border-color: #7393f9; box-shadow: 0 0 0 3px #ebf0ff; }
.mentor-students-search input { box-sizing: border-box; min-width: 0; width: 100%; height: 42px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--students-ink); }
.mentor-students-search input:focus-visible { outline: 0; }
.mentor-students-toolbar select { min-width: 150px; min-height: 44px; padding: 0 32px 0 12px; border: 1px solid #d5ddeb; border-radius: 7px; color: var(--students-ink); background: #fff; }
.mentor-students-toolbar > .button { margin-left: auto; min-height: 44px; padding-inline: 14px; border: 1px solid #d5ddeb; border-radius: 7px; background: #fff; color: var(--students-ink); font-size: 13px; }
.mentor-students-feedback { display: flex; min-height: 28px; align-items: center; gap: 12px; color: #a42b3c; font-size: 13px; }
.mentor-students-viewport { box-sizing: border-box; height: clamp(400px, 65vh, 700px); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; border: 1px solid var(--students-line); border-radius: 9px; background: #fff; }
.mentor-students[aria-busy="true"] .mentor-students-viewport { opacity: .68; }
.mentor-students-table { width: 100%; min-width: 1000px; border-collapse: separate; border-spacing: 0; text-align: left; font-variant-numeric: tabular-nums; }
.mentor-students-table :is(th, td) { padding: 15px 18px; vertical-align: middle; }
.mentor-students-table thead th { position: sticky; z-index: 1; top: 0; height: 42px; box-sizing: border-box; padding-block: 10px; border-bottom: 1px solid var(--students-line); background: var(--students-soft); color: var(--students-muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.mentor-students-table tbody :is(th, td) { border-bottom: 1px solid #edf0f6; }
.mentor-students-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.mentor-students-table tbody tr:hover { background: #fafbff; }
.mentor-students-table th:first-child { min-width: 170px; }
.mentor-students-table :is(th, td):last-child { text-align: right; }
.mentor-students-identity { display: flex; align-items: center; gap: 12px; }
.mentor-students-avatar { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border: 1px solid #dbe4fa; border-radius: 12px; background: #edf2ff; color: #3156ba; font-size: 16px; font-weight: 600; }
.mentor-students-identity strong { display: block; max-width: 180px; overflow: hidden; color: var(--students-ink); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.mentor-students-identity small { display: block; max-width: 180px; margin-top: 4px; overflow: hidden; color: var(--students-muted); font-size: 12px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.mentor-students-assigned { display: inline-flex; align-items: center; gap: 5px; color: #46665b; font-size: 13px; white-space: nowrap; }
.mentor-students .mentor-students-action,
.mentor-students-dialog .mentor-students-action { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 36px; padding: 6px 11px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--students-blue); font-size: 13px; line-height: 1.4; white-space: nowrap; cursor: pointer; }
.mentor-students .mentor-students-action:hover,
.mentor-students-dialog .mentor-students-action:hover { background: #eff3ff; }
.mentor-students .mentor-students-unassigned { min-height: 32px; padding: 4px 9px; background: #edf2ff; }
.mentor-students-detail svg { order: 1; width: 14px; }
.mentor-students-no-plan { color: var(--students-muted); font-size: 13px; }
.mentor-students-progress { min-width: 175px; max-width: 240px; }
.mentor-students-progress > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 13px; white-space: nowrap; }
.mentor-students-progress strong { font-weight: 650; }
.mentor-students-progress small { color: var(--students-muted); font-size: 11px; }
.mentor-students-progress-track { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: #e9edf5; }
.mentor-students-progress-track span { display: block; height: 100%; border-radius: inherit; background: #3a65ed; }
.mentor-students-progress .mentor-students-overdue { display: block; margin-top: 5px; color: #9f4352; }
.mentor-students-table time { color: var(--students-muted); font-size: 12px; white-space: nowrap; }
.mentor-students-switch-field { display: flex; align-items: center; gap: 9px; }
.mentor-students-switch { position: relative; flex: none; width: 41px; height: 24px; padding: 0; border: 1px solid #bcc7d8; border-radius: 20px; background: #dbe2ec; cursor: pointer; touch-action: manipulation; transition: background .18s, border-color .18s; }
.mentor-students-switch::before { position: absolute; inset: -10px -4px; content: ""; }
.mentor-students-switch[aria-checked="true"] { border-color: var(--students-blue); background: var(--students-blue); }
.mentor-students-switch-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #17223f22; transition: transform .18s; }
.mentor-students-switch[aria-checked="true"] .mentor-students-switch-thumb { transform: translateX(17px); }
.mentor-students-switch[aria-busy="true"] { opacity: .6; cursor: progress; }
.mentor-students-switch-label { min-width: 3em; color: var(--students-muted); font-size: 12px; white-space: nowrap; }
.mentor-students-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding-top: 8px; color: var(--students-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.mentor-students-pager nav { display: flex; align-items: center; gap: 12px; }
.mentor-students-pager .button { min-height: 36px; padding: 5px 11px; border: 1px solid var(--students-line); border-radius: 6px; background: #fff; color: var(--students-ink); font-size: 12px; }
.mentor-students-page { min-width: 3em; text-align: center; }
.mentor-students-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; box-sizing: border-box; min-height: 100%; padding: 28px; color: var(--students-muted); text-align: center; }
.mentor-students-empty > .icon { color: #6988cc; }
.mentor-students-empty h2 { margin: 0; color: var(--students-ink); font-size: 17px; font-weight: 600; }
.mentor-students-empty p { margin: 0; font-size: 13px; }

.mentor-students-dialog { box-sizing: border-box; max-width: none; max-height: none; width: min(720px, calc(100vw - 48px)); height: calc(100vh - 48px); height: calc(100dvh - 48px); margin: auto 24px auto auto; padding: 0; overflow: hidden; border: 1px solid #dce4f2; border-radius: 14px; background: var(--students-soft); box-shadow: 0 24px 90px #13274440; }
.mentor-students-dialog[open] { display: flex; flex-direction: column; }
.mentor-students-dialog::backdrop { background: #111d35a3; }
.mentor-students-dialog-header { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--students-line); background: #fff; }
.mentor-students-dialog-header h2 { margin: 0 0 5px; color: var(--students-ink); font-size: 22px; font-weight: 650; letter-spacing: -.025em; }
.mentor-students-dialog-header p { margin: 0; color: var(--students-muted); font-size: 12px; overflow-wrap: anywhere; }
.mentor-students-close { display: inline-grid; flex: none; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--students-line); border-radius: 8px; color: var(--students-muted); background: #fff; cursor: pointer; }
.mentor-students-close:hover { background: var(--students-soft); }
.mentor-students-dialog-body { flex: 1; min-height: 0; padding: 24px; overflow: auto; overscroll-behavior: contain; }
.mentor-students-dialog-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 280px; color: var(--students-muted); text-align: center; }
.mentor-students-dialog-loading :is(h3,p) { margin: 0; }
.mentor-students-profile-heading { display: flex; align-items: center; gap: 14px; padding: 2px 2px 22px; }
.mentor-students-profile-heading .mentor-students-avatar { width: 50px; height: 50px; border-radius: 16px; font-size: 22px; }
.mentor-students-profile-heading > div { flex: 1; min-width: 0; }
.mentor-students-profile-heading strong { display: block; font-size: 20px; font-weight: 650; overflow-wrap: anywhere; }
.mentor-students-profile-heading div span { display: block; margin-top: 4px; color: var(--students-muted); font-size: 13px; overflow-wrap: anywhere; }
.mentor-students-profile-state { flex: none; padding: 5px 9px; border: 1px solid #dce5f9; border-radius: 5px; color: #416091; background: #edf3ff; font-size: 11px; }
.mentor-students-card { margin-bottom: 16px; padding: 20px; border: 1px solid var(--students-line); border-radius: 10px; background: #fff; }
.mentor-students-card h3 { margin: 0 0 18px; font-size: 14px; font-weight: 650; }
.mentor-students-card dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 19px 24px; margin: 0; }
.mentor-students-card dl > div { min-width: 0; }
.mentor-students-card dt { margin-bottom: 6px; color: var(--students-muted); font-size: 12px; }
.mentor-students-card dd { margin: 0; color: var(--students-ink); font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.mentor-students-registration-card dl > div:nth-last-child(-n+2) { grid-column: 1 / -1; }
.mentor-students-chat { display: flex; align-items: flex-start; gap: 12px; }
.mentor-students-chat code { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #e6ebf5; border-radius: 6px; color: #34496e; background: #f7f9fe; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; user-select: all; }
.mentor-students-chat .mentor-students-copy { flex: none; }

.mentor-students-assignment { width: min(1080px, calc(100vw - 48px)); margin: auto; background: #fff; }
.mentor-students-assignment .mentor-students-dialog-body { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.mentor-students-plan-layout { display: grid; flex: 1; min-height: 0; grid-template-columns: 300px minmax(0, 1fr); }
.mentor-students-plan-form { min-width: 0; margin: 0; padding: 26px; overflow: auto; border-right: 1px solid var(--students-line); }
.mentor-students-plan-form h3 { margin: 0 0 24px; font-size: 14px; font-weight: 650; }
.mentor-students-form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.mentor-students-form-field label { color: #3f4e65; font-size: 12px; font-weight: 550; }
.mentor-students-form-field :is(input,select) { box-sizing: border-box; width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid #ccd6e7; border-radius: 6px; color: var(--students-ink); background: #fff; }
.mentor-students-hours { margin: 0; padding: 0; border: 0; }
.mentor-students-hours legend { margin-bottom: 14px; color: var(--students-ink); font-size: 13px; font-weight: 600; }
.mentor-students-form-error { color: #a42b3c; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.mentor-students-dialog .mentor-students-action.secondary { min-height: 40px; padding-inline: 16px; border-color: #d3def7; color: #315ac8; background: #f4f7ff; }
.mentor-students-dialog .mentor-students-action.primary { min-height: 42px; padding-inline: 24px; border-color: var(--students-blue); color: #fff; background: var(--students-blue); }
.mentor-students-dialog .mentor-students-action.primary:hover { background: #1d41c3; }
.mentor-students-dialog .mentor-students-action:disabled { opacity: .45; cursor: not-allowed; }
.mentor-students-plan-reading { min-width: 0; min-height: 0; padding: 26px; overflow: hidden; background: #f7f9fd; }
.mentor-students-plan-preview { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.mentor-students-plan-preview[aria-busy="true"] { opacity: .55; }
.mentor-students-preview-empty { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 240px; color: #8192ae; text-align: center; }
.mentor-students-preview-empty h3 { margin: 0; color: #4e617f; font-size: 16px; font-weight: 550; }
.mentor-students-preview-empty p { max-width: 230px; margin: 0; color: var(--students-muted); font-size: 12px; line-height: 1.7; }
.mentor-students-preview-heading { display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.mentor-students-preview-heading h3 { margin: 0; font-size: 14px; font-weight: 650; }
.mentor-students-preview-heading span { color: var(--students-muted); font-size: 12px; }
.mentor-students-plan-metrics { display: grid; flex: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; padding: 18px 0; border-block: 1px solid var(--students-line); }
.mentor-students-plan-metrics div { display: grid; justify-content: center; gap: 5px; text-align: center; }
.mentor-students-plan-metrics strong { font-size: 23px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mentor-students-plan-metrics span { color: var(--students-muted); font-size: 11px; }
.mentor-students-plan-days { flex: 1; min-height: 0; margin: 0; padding: 0 5px 0 0; overflow: auto; overscroll-behavior: contain; list-style: none; }
.mentor-students-plan-days li { display: flex; align-items: center; gap: 15px; margin-bottom: 9px; padding: 13px 15px; border: 1px solid #e2e8f3; border-radius: 8px; background: #fff; }
.mentor-students-day-index { color: #8b9cb9; font-size: 15px; font-variant-numeric: tabular-nums; }
.mentor-students-plan-days strong { font-size: 13px; font-weight: 550; }
.mentor-students-plan-days small { display: block; margin-top: 4px; color: var(--students-muted); font-size: 11px; }
.mentor-students-plan-task-titles { margin: 7px 0 0; color: #546883; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.mentor-students-plan-footer { display: flex; flex: none; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 26px; border-top: 1px solid var(--students-line); background: #fff; }
.mentor-students-plan-footer > span { color: var(--students-muted); font-size: 12px; }

@media (max-width: 680px) {
  .mentor-students-toolbar { flex-wrap: wrap; gap: 9px; }
  .mentor-students-search { flex-basis: 100%; max-width: none; }
  .mentor-students-toolbar select { flex: 1; }
  .mentor-students-toolbar > .button { margin-left: 0; }
  .mentor-students-toolbar :is(input,select) { font-size: 16px; }
  .mentor-students-viewport { height: 56vh; min-height: 350px; }
  .mentor-students-pager { flex-wrap: wrap; padding-block: 12px 2px; }
  .mentor-students-pager .button { min-height: 44px; }
  .mentor-students-table .mentor-students-action { min-height: 44px; }
  .mentor-students-switch { width: 45px; height: 28px; }
  .mentor-students-switch-thumb { top: 4px; left: 4px; width: 18px; height: 18px; }
  .mentor-students-switch[aria-checked="true"] .mentor-students-switch-thumb { transform: translateX(17px); }
  .mentor-students-dialog { width: calc(100vw - 20px); height: calc(100vh - 20px); height: calc(100dvh - 20px); margin: auto; border-radius: 12px; }
  .mentor-students-dialog-header { padding: 17px 18px; }
  .mentor-students-close { width: 42px; height: 42px; }
  .mentor-students-dialog-body { padding: 18px; }
  .mentor-students-card { padding: 18px; }
  .mentor-students-card dl { grid-template-columns: 1fr; gap: 17px; }
  .mentor-students-profile-state { display: none; }
  .mentor-students-plan-layout { display: flex; flex-direction: column; overflow: auto; }
  .mentor-students-plan-form { flex: none; padding: 20px; overflow: visible; border-right: 0; border-bottom: 1px solid var(--students-line); }
  .mentor-students-plan-form h3 { margin-bottom: 18px; }
  .mentor-students-form-field :is(input,select) { min-height: 44px; font-size: 16px; }
  .mentor-students-plan-reading { flex: none; height: 400px; padding: 20px; }
  .mentor-students-plan-footer { padding: 14px 18px; }
  .mentor-students-plan-footer > span { max-width: 150px; font-size: 11px; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  .mentor-students-switch,
  .mentor-students-switch-thumb { transition: none; }
}
