/* Learner management and its native right-hand plan editor. */
#app .mentor-today .mentor-students .mentor-students-sources {
  display: flex;
  gap: 4px;
  width: fit-content;
  margin-block: 20px 16px;
  padding: 4px;
  border: 1px solid var(--mentor-rule, #dfe6f2);
  border-radius: 10px;
  background: var(--mentor-soft, #f3f6fc);
}
#app .mentor-today .mentor-students .mentor-students-source {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--mentor-muted, #607089);
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
}
#app .mentor-today .mentor-students .mentor-students-source[aria-pressed="true"] {
  border-color: var(--mentor-rule, #dfe6f2);
  background: #fff;
  color: var(--mentor-ink, #17223b);
  box-shadow: 0 1px 3px #142c5510;
}
#app .mentor-today .mentor-students .mentor-students-viewport { container-type: inline-size; }
#app .mentor-today .mentor-students .mentor-students-plan-table { min-width: 0; table-layout: fixed; width: 100%; }
#app .mentor-today .mentor-students .mentor-students-plan-table th:first-child { width: 25%; min-width: 0; }
#app .mentor-today .mentor-students .mentor-students-plan-table thead th:nth-child(2) { width: 22%; }
#app .mentor-today .mentor-students .mentor-students-plan-table thead th:nth-child(3) { width: 19%; }
#app .mentor-today .mentor-students .mentor-students-plan-table thead th:nth-child(4) { width: 12%; }
#app .mentor-today .mentor-students .mentor-students-plan-table thead th:nth-child(5) { width: 22%; }
#app .mentor-today .mentor-students .mentor-students-plan-table :is(th, td) { padding: 18px 16px; overflow-wrap: anywhere; }
#app .mentor-today .mentor-students .mentor-students-plan-table .mentor-students-identity { max-width: 100%; min-width: 0; text-align: start; }
#app .mentor-today .mentor-students .mentor-students-plan-table .mentor-students-identity-copy { min-width: 0; }
#app .mentor-today .mentor-students .mentor-students-plan-table .mentor-students-identity-name { line-height: 1.5; overflow-wrap: anywhere; }
#app .mentor-today .mentor-students .mentor-students-plan-table .mentor-students-identity-name .icon { opacity: 1; transform: none; flex: none; }
#app .mentor-today .mentor-students .mentor-students-plan-table .mentor-students-identity small { white-space: normal; overflow-wrap: anywhere; }
#app .mentor-today .mentor-students .mentor-students-plan-table .is-plan-selected :is(th, td) { background: #edf3ff; }
#app .mentor-today .mentor-students .mentor-students-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#app .mentor-today .mentor-students .mentor-students-plan-action,
#app .mentor-today .mentor-students .mentor-students-details-action {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #dce3ef;
  border-radius: 7px;
  color: var(--mentor-ink, #17223b);
  background: #fff;
  font-weight: 550;
  box-shadow: none;
}
#app .mentor-today .mentor-students .mentor-students-plan-action { border-color: #c4d2ff; color: var(--mentor-accent, #244fe4); }
#app .mentor-today .mentor-students .mentor-students-plan-action.primary { border-color: var(--mentor-accent, #244fe4); background: var(--mentor-accent, #244fe4); color: #fff; }
#app .mentor-today .mentor-students .mentor-students-plan-action:hover:not(:disabled) { background: #edf2ff; border-color: var(--mentor-accent, #244fe4); }
#app .mentor-today .mentor-students .mentor-students-plan-action.primary:hover:not(:disabled) { background: #183ed1; }
#app .mentor-today .mentor-students .mentor-students-details-action:hover:not(:disabled) { background: #f4f7fc; }
#app .mentor-today .mentor-students .mentor-students-plan-action:disabled { opacity: .5; cursor: not-allowed; }
#app .mentor-today .mentor-students .mentor-students-plan-summary { display: grid; gap: 5px; line-height: 1.5; }
#app .mentor-today .mentor-students .mentor-students-plan-summary strong { font-size: 14px; font-weight: 600; color: var(--mentor-ink, #17223b); }
#app .mentor-today .mentor-students .mentor-students-plan-summary :is(span, small) { color: var(--mentor-muted, #607089); font-size: 12px; }
#app .mentor-today .mentor-students .mentor-students-plan-pending { color: #64738b; background: #f0f3f8; padding: 4px 8px; border-radius: 5px; font-size: 13px; }
#app .mentor-today .mentor-students .mentor-students-plan-table .mentor-students-progress { min-width: 0; max-width: none; }
#app .mentor-today .mentor-students .mentor-students-plan-table .mentor-students-progress > div:first-child { flex-wrap: wrap; gap: 4px 12px; white-space: normal; }
#app .mentor-today .mentor-students .mentor-students-last-submit { display: block; margin-top: 7px; color: var(--mentor-muted, #607089); font-size: 12px; line-height: 1.5; }

#app .mentor-today dialog.mentor-plan-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(560px, 44vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid #dce4f0;
  border-radius: 0;
  background: #fff;
  box-shadow: -12px 0 48px #172d4b18;
  color: #17223b;
  overflow: hidden;
}
#app .mentor-today dialog.mentor-plan-drawer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
#app .mentor-today dialog.mentor-plan-drawer[open]::backdrop { background: #13274714; backdrop-filter: none; }
#app .mentor-today dialog.mentor-plan-drawer .mentor-students-dialog-header { padding: 25px 28px 22px; border-bottom: 1px solid #e5eaf3; }
#app .mentor-today dialog.mentor-plan-drawer .mentor-students-dialog-header h2 { font-size: 22px; line-height: 1.4; font-weight: 650; letter-spacing: -.02em; }
#app .mentor-today dialog.mentor-plan-drawer .mentor-students-dialog-header p { margin-top: 7px; color: #607089; overflow-wrap: anywhere; }
#app .mentor-today dialog.mentor-plan-drawer .mentor-students-close { width: 44px; height: 44px; flex: none; border: 1px solid #e2e8f1; background: #fff; }
#app .mentor-today dialog.mentor-plan-drawer .mentor-students-dialog-body { min-height: 0; padding: 0; overflow: hidden; display: grid; background: #fff; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-editor { display: flex; flex-direction: column; min-height: 0; height: 100%; font-size: 14px; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 24px 28px 28px; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-current { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; padding: 14px 16px; margin-bottom: 26px; border-radius: 8px; background: #eff4ff; line-height: 1.6; color: #445c83; font-size: 13px; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-current strong { color: #1d3f9f; font-weight: 600; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-current > span:last-child { flex-basis: 100%; font-size: 12px; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-section-title h3 { margin: 0; font-size: 16px; font-weight: 650; color: #17223b; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-section-title > span { color: #718097; font-size: 12px; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-form { display: grid; gap: 20px; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-form .mentor-plan-section-title { margin-bottom: 0; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-field { display: grid; gap: 8px; min-width: 0; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-field > label { font-size: 13px; color: #35445e; font-weight: 550; line-height: 1.5; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-field :is(select, input) { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; border: 1px solid #d3ddeb; border-radius: 7px; padding: 10px 12px; background: #fff; color: #17223b; font-size: 15px; font-variant-numeric: tabular-nums; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-field :is(select, input):hover:not(:disabled) { border-color: #a6b8d5; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-field :is(select, input):focus-visible { outline: 3px solid #244bff26; outline-offset: 2px; border-color: var(--mentor-accent, #244fe4); }
#app .mentor-today .mentor-plan-drawer .mentor-plan-hours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; border: 0; min-width: 0; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-hours legend { padding: 0 0 10px; font-size: 13px; font-weight: 550; color: #35445e; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-hours .mentor-plan-field > label { color: #607089; font-size: 12px; font-weight: 400; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-hint { margin: 0; color: #6c7a90; font-size: 12px; line-height: 1.7; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-hours .mentor-plan-hint { grid-column: 1 / -1; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-tasks { border: 1px solid #e0e7f1; border-radius: 8px; overflow: hidden; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-tasks summary { display: list-item; padding: 14px 16px; cursor: pointer; color: #35445e; font-weight: 550; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-task-count { margin-left: 10px; color: #718097; font-size: 12px; font-weight: 400; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-task-list { max-height: 290px; overflow: auto; overscroll-behavior: contain; border-top: 1px solid #e6ebf3; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-task { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; box-sizing: border-box; padding: 12px 16px; border-bottom: 1px solid #eff2f7; line-height: 1.65; cursor: pointer; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-task:last-child { border-bottom: 0; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-task:hover { background: #f6f8fd; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-task input { flex: none; margin-top: 4px; width: 16px; height: 16px; accent-color: var(--mentor-accent, #244fe4); }
#app .mentor-today .mentor-plan-drawer .mentor-plan-task span { min-width: 0; overflow-wrap: anywhere; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-task small { display: block; color: #9b522b; line-height: 1.6; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-preview { margin-top: 28px; outline: none; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-preview:focus-visible { outline: 2px solid #b9caff; outline-offset: 5px; border-radius: 6px; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-preview-empty { display: grid; justify-items: center; gap: 10px; padding: 24px 16px; border: 1px dashed #d8e2f0; border-radius: 8px; background: #f8faff; text-align: center; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-preview-empty > .icon { color: #8498b8; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-preview-empty h3 { margin: 0; color: #425978; font-size: 14px; font-weight: 550; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-preview-empty p { margin: 0; color: #718097; font-size: 12px; line-height: 1.6; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-preview-counts { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 14px 16px; border-radius: 8px; background: #eff4ff; color: #526887; font-size: 13px; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-preview-counts strong { color: #2446a0; font-weight: 600; font-size: 17px; margin-right: 3px; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-comparison { display: grid; margin: 0 0 16px; font-size: 13px; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-comparison > div { display: flex; gap: 12px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #e7edf5; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-comparison dt { color: #6a7890; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-comparison dd { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; font-variant-numeric: tabular-nums; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-comparison .is-before { color: #7a879a; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-comparison strong { color: var(--mentor-accent, #244fe4); font-weight: 600; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-history-note { border-left: 2px solid #9aafd5; padding: 10px 12px; margin: 16px 0; background: #f5f7fb; color: #536780; font-size: 12px; line-height: 1.8; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-days { margin: 16px 0 0; padding: 0; list-style: none; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-days > li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid #e7edf5; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-day-index { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1px solid #dce5f2; border-radius: 6px; color: #6a7f9c; font-size: 12px; font-variant-numeric: tabular-nums; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-days li > div { min-width: 0; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-days strong { font-size: 13px; font-weight: 600; color: #354b6b; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-days small { display: block; margin-top: 3px; font-size: 12px; color: #75849a; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-days p { margin: 7px 0 0; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; color: #556782; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-footer { flex: none; padding: 16px 28px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid #e2e9f3; background: #fff; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-footer > p { margin: 0 0 12px; font-size: 12px; color: #718097; line-height: 1.5; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-footer > div { display: flex; justify-content: flex-end; gap: 10px; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-footer .button { min-height: 44px; padding: 10px 20px; min-width: 96px; box-shadow: none; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-error, #app .mentor-today .mentor-plan-drawer .mentor-plan-discard { flex: none; padding: 14px 28px; max-height: 30dvh; overflow: auto; border-top: 1px solid #e5eaf3; font-size: 13px; line-height: 1.6; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-error { background: #fff7f6; color: #963d38; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-error p, #app .mentor-today .mentor-plan-drawer .mentor-plan-discard p { margin: 0 0 8px; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-discard { background: #f2f6ff; color: #354b6b; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-discard .button { margin-right: 8px; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-loading { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 28px; color: #607089; text-align: center; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-loading p { max-width: 34ch; overflow-wrap: anywhere; line-height: 1.7; }
#app .mentor-today .mentor-plan-drawer .mentor-plan-loading-mark { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #e0e7f1; border-radius: 12px; background: #f5f8fd; }
@container (width < 960px) and (width >= 700px) {
  #app .mentor-today .mentor-students .mentor-students-plan-table :is(th, td) { padding: 16px 10px; }
  #app .mentor-today .mentor-students .mentor-students-row-actions { gap: 6px; }
  #app .mentor-today .mentor-students .mentor-students-details-action { padding-inline: 8px; }
  #app .mentor-today .mentor-students .mentor-students-plan-action { padding-inline: 8px; }
}
@container (width < 700px) {
  #app .mentor-today .mentor-students .mentor-students-plan-table { display: block; table-layout: auto; padding: 12px; box-sizing: border-box; }
  #app .mentor-today .mentor-students .mentor-students-plan-table thead { display: none; }
  #app .mentor-today .mentor-students .mentor-students-plan-table tbody { display: grid; gap: 12px; }
  #app .mentor-today .mentor-students .mentor-students-plan-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; border: 1px solid #dfe7f3; border-radius: 10px; padding: 16px; background: #fff; }
  #app .mentor-today .mentor-students .mentor-students-plan-table tbody :is(th, td) { position: static; display: block; width: auto; min-width: 0; padding: 0; border: 0; background: transparent; }
  #app .mentor-today .mentor-students .mentor-students-plan-table tbody th:first-child { grid-column: 1 / -1; width: auto; }
  #app .mentor-today .mentor-students .mentor-students-plan-table tbody td::before { content: none; }
  #app .mentor-today .mentor-students .mentor-students-plan-table .mentor-students-plan-cell { grid-column: 1 / -1; border-top: 1px solid #eef2f8; padding-top: 12px; }
  #app .mentor-today .mentor-students .mentor-students-plan-table .mentor-students-plan-summary { grid-template-columns: auto 1fr; gap: 4px 12px; }
  #app .mentor-today .mentor-students .mentor-students-plan-summary small { grid-column: 1 / -1; }
  #app .mentor-today .mentor-students .mentor-students-plan-table .mentor-students-progress-cell::before { content: '学习进度'; display: block; margin-bottom: 8px; color: #718097; font-size: 12px; }
  #app .mentor-today .mentor-students .mentor-students-plan-table .mentor-students-access-cell::before { content: '开通在线调试'; display: block; margin-bottom: 8px; color: #718097; font-size: 12px; }
  #app .mentor-today .mentor-students .mentor-students-plan-table .mentor-students-actions-cell { grid-column: 1 / -1; padding-top: 2px; }
  #app .mentor-today .mentor-students .mentor-students-row-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  #app .mentor-today .mentor-students .mentor-students-plan-action, #app .mentor-today .mentor-students .mentor-students-details-action { min-height: 44px; padding: 10px 12px; }
}
@media (max-width: 760px) {
  #app .mentor-today dialog.mentor-plan-drawer { width: 100%; border: 0; box-shadow: none; }
  #app .mentor-today dialog.mentor-plan-drawer .mentor-students-dialog-header { padding: 18px 20px; }
  #app .mentor-today dialog.mentor-plan-drawer .mentor-students-dialog-header h2 { font-size: 20px; }
  #app .mentor-today .mentor-plan-drawer .mentor-plan-scroll { padding: 20px; }
  #app .mentor-today .mentor-plan-drawer .mentor-plan-field :is(select, input) { font-size: 16px; }
  #app .mentor-today .mentor-plan-drawer .mentor-plan-footer { padding-inline: 20px; }
  #app .mentor-today .mentor-plan-drawer .mentor-plan-footer > div { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  #app .mentor-today .mentor-plan-drawer .mentor-plan-error, #app .mentor-today .mentor-plan-drawer .mentor-plan-discard { padding-inline: 20px; }
  #app .mentor-today .mentor-students .mentor-students-source { min-height: 44px; padding-inline: 16px; }
}
#app .mentor-today dialog.mentor-plan-drawer:modal { overscroll-behavior: contain; }
#app .mentor-today dialog.mentor-plan-drawer[open]::backdrop { overflow: hidden; overscroll-behavior: contain; }
html:has(.mentor-plan-drawer[open]) { overflow: hidden; scrollbar-gutter: stable; }
@media (pointer: coarse) {
  #app .mentor-today .mentor-students .mentor-students-plan-action, #app .mentor-today .mentor-students .mentor-students-details-action { min-height: 44px; }
}
