.student-courses { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:4px; justify-self:end; min-width:0; }
.student-item .right-section .student-courses > span.group { display:inline-flex; align-items:center; gap:6px; height:24px; padding:5px 10px; border:1px solid rgba(var(--ds-rgb-ink-500), var(--ds-alpha-0-35)); border-radius:var(--ds-radius-8); background:rgba(var(--ds-rgb-ink-300), var(--ds-alpha-0-16)); color:var(--ds-ink-500); box-shadow:none; font-family:var(--ds-font-ui); font-size:var(--ds-size-12); font-weight:var(--ds-weight-semibold); line-height:1; white-space:nowrap; opacity:.9; pointer-events:auto; transition:all .2s ease; }
.student-item .right-section .student-courses > span.group:hover { background:rgba(var(--ds-rgb-ink-300), var(--ds-alpha-0-16)); color:var(--ds-ink-500); opacity:.9; }
:is(html.dark-theme,body.dark-theme) .student-item .right-section .student-courses > span.group { border-color:rgba(var(--ds-rgb-ink-500), var(--ds-alpha-0-25)); background:rgba(var(--ds-rgb-ink-500), var(--ds-alpha-0-18)); color:var(--ds-ink-500); }
:is(html.dark-theme,body.dark-theme) .student-item .right-section .student-courses > span.group:hover { background:rgba(var(--ds-rgb-ink-500), var(--ds-alpha-0-18)); color:var(--ds-ink-500); }
.student-course-item { display:inline-flex; align-items:center; gap:6px; min-width:0; max-width:100%; }
.student-status-legend { display:flex; flex-wrap:wrap; gap:0 20px; }
.student-status-legend > span { display:flex; align-items:center; gap:7px; margin-top:16px; font-size:var(--ds-size-12); color:var(--color-text-secondary); }
.student-status-legend i { display:inline-block; width:9px; height:9px; border-radius:var(--ds-radius-3); }
.student-status-legend .legend-guest { background:var(--ds-blue-400); }
.student-status-legend .legend-student { background:var(--ds-blue-600); }
.student-status-legend .legend-interested { background:var(--ds-scarlet); }
.student-status-legend .legend-undefined { background:var(--ds-ink-500); }
#studentsList .student-item .name .student-status-icon { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; background:transparent; border-radius:0; color:var(--ds-ink-500); }
#studentsList .student-status-icon i { color:inherit; font-size:var(--ds-size-18); line-height:1; }
#studentsList .student-item .name .student-status-icon.online { color:var(--ds-success-600); }
#studentsList .student-item .name .student-status-icon.guest { color:var(--ds-blue-400); }
#studentsList .student-item .name .student-status-icon.student { color:var(--ds-blue-600); }
#studentsList .student-item .name .student-status-icon.waiting { color:var(--ds-ink-500); }
#studentsList .student-item .name .student-status-icon.undefined { color:var(--ds-ink-500); }
#studentsList .student-item .name .student-status-icon.desired { color:var(--ds-warning-500); }
#studentsList .queue-item { cursor:default; }
#studentsList .queue-item .right-section { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:12px; }
#studentsList .queue-item .student-progress-buttons { margin-left:auto; }
#studentsList .queue-admit:disabled { opacity:.5; cursor:wait; }
.star-note-lines > span { display:block; }
#studentsList .queue-item .queue-submission-origin { color:var(--ds-ink-500); background:rgba(var(--ds-rgb-ink-500), var(--ds-alpha-0-1)); border:1px solid rgba(var(--ds-rgb-ink-500), var(--ds-alpha-0-22)); border-radius:var(--ds-radius-20); padding:3px 10px; font-size:var(--ds-size-11); line-height:1.4; white-space:normal; }
body.dark-theme #studentsList .queue-item .queue-submission-origin { color:var(--ds-ink-300); }
#studentsList .student-item .right-section :is(.badge-homework,.badge-success):not([aria-busy="true"]):not(.student-metric-error)::before { content:''; display:inline-block; width:7px; height:7px; flex-shrink:0; border-radius:50%; background:rgb(var(--badge-rgb)); box-shadow:0 0 8px rgba(var(--badge-rgb),.55); }
#studentsList .student-item .right-section .badge-homework i { display:none; }
#studentsList .student-item .right-section :is(.badge-homework.works-yellow,.badge-success.success-yellow) { --badge-rgb:var(--ds-rgb-warning-500); --badge-text:var(--ds-warning-500); }
#studentsList .student-first-submission { flex-shrink:0; font-size:var(--ds-size-11); font-weight:var(--ds-weight-normal); color:var(--ds-ink-500); white-space:nowrap; }
:is(html.dark-theme,body.dark-theme) #studentsList .student-first-submission { color:var(--ds-ink-500); }
/* Оформление .material-item из учебных материалов, с компактной высотой. */
#studentsList .student-item:not(.queue-item) { padding-block:3px; border:1px solid transparent; border-radius:var(--ds-radius-10); background:rgba(var(--ds-rgb-white), var(--ds-alpha-0-02)); box-shadow:none; animation:none; transition:all .3s cubic-bezier(.22,1,.36,1); }
#studentsList .student-item:not(.queue-item):hover { background:rgba(var(--ds-rgb-white), var(--ds-alpha-0-08)); border-color:rgba(var(--ds-rgb-white), var(--ds-alpha-0-12)); box-shadow:none; transform:translateX(4px); }
#studentsList .student-item:not(.queue-item):active:not(:has(button:active)) { transform:scale(.99); }
#studentsList .student-item:not(.queue-item) .name { transition:color .3s cubic-bezier(.22,1,.36,1); }
#studentsList .student-item:not(.queue-item):hover .name { color:var(--ds-navy-800); }
:is(html.dark-theme,body.dark-theme) #studentsList .student-item:not(.queue-item):hover { background:var(--surface-hover); }
:is(html.dark-theme,body.dark-theme) #studentsList .student-item:not(.queue-item) .name { color:var(--ds-surface-100); }
:is(html.dark-theme,body.dark-theme) #studentsList .student-item:not(.queue-item):hover .name { color:var(--ds-ink-100); }
@media (max-width:1024px) { #studentsList .student-item:not(.queue-item) { row-gap:6px; } }
.student-progress-buttons { display:inline-flex; align-items:center; justify-content:flex-end; gap:4px; flex-shrink:0; justify-self:end; pointer-events:auto; }
.student-item .student-assign-material { text-decoration:none; }
/* Интервалы действий из библиотеки учебных материалов. */
@media (max-width:768px) { .student-progress-buttons { gap:3px; } }
.student-sort-buttons-space { display:none; }
#studentsList .student-item .student-remove-button { display:inline-flex; align-items:center; justify-content:center; flex:0 0 30px; width:30px; height:30px; padding:0; margin:0; border:0; border-radius:var(--ds-radius-8); background:transparent; color:var(--ds-ink-500); cursor:pointer; font-family:inherit; font-size:var(--ds-size-13); transition:all .25s cubic-bezier(.22,1,.36,1); }
#studentsList .student-item .student-remove-button:hover { color:var(--ds-scarlet); background:rgba(var(--ds-rgb-scarlet), var(--ds-alpha-0-1)); transform:translateY(-1px); }
#studentsList .student-item .student-remove-button:active { transform:scale(.94); }
#studentsList .student-item .student-remove-button:focus-visible { outline:2px solid var(--ds-scarlet); outline-offset:2px; }
#studentsList .student-item .student-remove-button:disabled { opacity:.5; cursor:wait; }
.student-remove-button i { font-size:var(--ds-size-13); line-height:1; color:inherit; pointer-events:none; }
:is(html.dark-theme,body.dark-theme) #studentsList .student-remove-button { color:var(--ds-ink-500); }
:is(html.dark-theme,body.dark-theme) #studentsList .student-remove-button:hover { color:var(--ds-scarlet); background:rgba(var(--ds-rgb-scarlet), var(--ds-alpha-0-12)); }
@media (max-width:768px) { #studentsList .student-item .student-remove-button { width:28px; height:32px; flex-basis:28px; } }
@container student-list (min-width:960px) {
    .student-sort-buttons-space { display:block; }
    .students-sortbar,
    #studentsList .student-item:not(.queue-item) { grid-template-columns:minmax(220px,1fr) minmax(80.5px,calc(46% - 144.5205px)) 80.888125px 72.7993125px 132px; }
}
/* Стиль цепочки (.btn-material-copy) из библиотеки учебных материалов. */
.student-item .right-section :is(.student-assign-material,.student-course-progress,.student-star-progress,.queue-admit) { display:inline-flex; align-items:center; justify-content:center; flex:0 0 30px; width:30px; height:30px; padding:0; margin:0; pointer-events:auto; cursor:pointer; color:var(--ds-ink-500); background:transparent; border:none; border-radius:var(--ds-radius-8); box-shadow:none; font-family:inherit; font-size:var(--ds-size-13); transition:all .25s cubic-bezier(.22,1,.36,1); }
:is(.student-assign-material,.student-course-progress,.student-star-progress,.queue-admit) i { color:inherit; font-size:var(--ds-size-13); pointer-events:none; line-height:1; }
.student-item .right-section .student-star-progress { justify-self:center; }
:is(html.dark-theme,body.dark-theme) .student-item .right-section :is(.student-assign-material,.student-course-progress,.student-star-progress,.queue-admit) { color:var(--ds-ink-500); background:transparent; box-shadow:none; }
.student-item .right-section :is(.student-assign-material,.student-course-progress,.student-star-progress,.queue-admit):hover { background:rgba(var(--ds-rgb-blue-700), var(--ds-alpha-0-1)); color:var(--ds-blue-700); transform:translateY(-1px); }
.student-item .right-section :is(.student-assign-material,.student-course-progress,.student-star-progress,.queue-admit)[aria-expanded="true"] { background:rgba(var(--ds-rgb-blue-700), var(--ds-alpha-0-1)); color:var(--ds-blue-700); }
:is(html.dark-theme,body.dark-theme) .student-item .right-section :is(.student-assign-material,.student-course-progress,.student-star-progress,.queue-admit):is(:hover,[aria-expanded="true"]) { background:rgba(var(--ds-rgb-blue-400), var(--ds-alpha-0-12)); color:var(--ds-blue-300); }
.student-item .right-section :is(.student-assign-material,.student-course-progress,.student-star-progress,.queue-admit):active { transform:scale(.94); }
@media (max-width:768px) { .student-item .right-section :is(.student-assign-material,.student-course-progress,.student-star-progress,.queue-admit) { width:28px; height:32px; flex-basis:28px; } }
:is(.student-assign-material,.student-course-progress,.student-star-progress,.queue-admit):focus-visible { outline:2px solid var(--ds-blue-400); outline-offset:2px; }
.student-course-chart .chart-point-marker.star-chart-point { --point-rgb:var(--ds-rgb-warning-500); }
.chart-preview .star-rating-details { display:none; }
.star-rating-target { margin-top:12px; padding:12px; border:1px solid var(--card-border); border-radius:var(--ds-radius-12); background:var(--card-bg); }
.star-rating-progress { height:7px; overflow:hidden; margin:9px 0; border-radius:var(--ds-radius-8); background:rgba(var(--star-rgb,var(--ds-rgb-stars-basic)), var(--ds-alpha-0-12)); }
.star-rating-progress span { display:block; height:100%; border-radius:inherit; background:var(--star-color,var(--ds-stars-basic)); }
.star-rating-leaders h4 { margin:0 0 8px; color:var(--chart-heading); font-size:var(--ds-size-12); }
.star-rating-leaders ol { margin:0; padding-left:22px; color:var(--chart-text); }
.star-rating-leaders li { padding:6px 5px; font-size:var(--ds-size-11); border-radius:var(--ds-radius-8); }
.star-rating-leaders li span { display:inline-block; width:calc(100% - 55px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle; }
.star-rating-leaders li strong { float:right; }
.star-rating-leaders .is-current { background:rgba(var(--color-primary),.08); font-weight:var(--ds-weight-semibold); }
.star-rating-neighbours { display:grid; gap:2px; list-style:none; margin:6px 0; padding:0; }
.star-rating-neighbours li { display:grid; grid-template-columns:22px minmax(0,1fr) auto; gap:7px; align-items:center; height:20px; box-sizing:border-box; padding:0 6px; border:1px solid transparent; border-radius:var(--ds-radius-6); color:var(--chart-text); }
.star-rating-neighbours .is-current { background:transparent; border-color:rgba(var(--star-rgb,var(--ds-rgb-stars-zero)), var(--ds-alpha-0-7)); box-shadow:0 0 6px rgba(var(--star-rgb,var(--ds-rgb-stars-zero)), var(--ds-alpha-0-22)); font-weight:var(--ds-weight-bold); }
.star-rating-place { font-size:var(--ds-size-10); opacity:.7; }
.star-rating-name { font-size:var(--ds-size-11); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.star-rating-count { display:inline-flex; align-items:center; gap:4px; padding:0; border:0; background:none; color:var(--star-color,var(--ds-ink-500)); font-size:var(--ds-size-11); line-height:1; white-space:nowrap; transition:color .25s ease; }
.chart-course-rank { color:var(--chart-text); font-size:var(--ds-size-11); margin:8px 0; }
.chart-preview .chart-course-rank { display:none; }
.student-course-chart.star-rating-chart.chart-preview .star-rating-neighbours { margin:0; padding-top:30px; }
.student-course-chart {
    --chart-text:var(--ds-ink-900); --chart-heading:rgb(var(--color-primary));
    position:fixed; z-index:30000; width:min(360px, calc(100vw - 24px)); max-height:calc(100vh - 24px); overflow-y:auto; padding:20px; box-sizing:border-box;
    border:2px solid var(--card-border); border-radius:var(--ds-radius-24);
    background:linear-gradient(135deg, rgba(var(--ds-rgb-white), var(--ds-alpha-0-28)), rgba(var(--ds-rgb-white), var(--ds-alpha-0-04))), var(--card-bg);
    backdrop-filter:blur(32px); -webkit-backdrop-filter:blur(32px);
    box-shadow:0 32px 96px var(--color-shadow), inset 0 1px 0 rgba(var(--ds-rgb-white), var(--ds-alpha-0-45));
    color:var(--chart-text); font:var(--ds-size-12)/1.5 var(--font-main,var(--ds-font-ui));
}
.student-course-chart[hidden] { display:none; }
.student-course-chart .chart-preview-hint { display:none; }
.student-course-chart.chart-preview > .chart-preview-hint { display:block; margin:6px 2px 0; font-size:var(--ds-size-9); line-height:1.4; text-align:center; opacity:.75; }
.student-course-chart.chart-preview { width:min(260px,calc(100vw - 24px)); height:214px; padding:8px; border-radius:var(--ds-radius-16); }
.chart-preview > h3,
.chart-preview > p:not(.chart-loading):not(.chart-error):not(.chart-preview-hint),
.chart-preview :is(.chart-metric,.chart-reference-legend,.chart-variant-count,.chart-last,.chart-pending,.chart-scale,.chart-score-change,.chart-value,.chart-axis) { display:none; }
.chart-preview .student-course-chart-plot { margin-top:0; padding:18px 4px 16px; border-radius:var(--ds-radius-10); height:174px; box-sizing:border-box; }
.student-course-chart.chart-preview:not(.star-rating-chart) .student-course-chart-plot svg { transform:scaleY(1.35); transform-origin:center top; }
.chart-preview .chart-course-panel { position:relative; height:174px; min-height:174px; }
.chart-preview .student-course-chart-stats { position:absolute; bottom:8px; left:12px; right:12px; display:block; margin:0; }
.student-course-chart.chart-preview .chart-course-switcher { position:absolute; z-index:2; top:12px; left:16px; right:16px; gap:4px; }
.student-course-chart.chart-preview .chart-course-switcher h3 { font-size:var(--ds-size-12); text-align:center; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.student-course-chart.chart-preview .student-course-chart-stats .chart-variant-count { display:none; }
.student-course-chart.chart-preview .student-course-chart-stats .chart-stat.chart-median { display:flex; flex-direction:row; align-items:center; justify-content:space-between; padding:0; border:0; background:none; }
.student-course-chart h3 { margin:0; font-size:var(--ds-size-15); font-weight:var(--ds-weight-bold); line-height:1.35; }
.student-course-chart p { margin:4px 0 0; color:var(--chart-text); }
.student-course-chart h3 { color:var(--chart-heading); }
.chart-course-switcher { display:flex; align-items:center; gap:8px; }
.chart-course-switcher h3 { flex:1; min-width:0; }
.chart-course-switcher button { display:inline-flex; align-items:center; justify-content:center; flex:0 0 24px; width:24px; height:24px; padding:0; border:0; background:transparent; color:var(--chart-text); font:600 var(--ds-size-24)/1 var(--font-main,var(--ds-font-ui)); cursor:pointer; }
.chart-course-switcher button[hidden] { display:none; }
.chart-course-switcher button:hover { color:var(--chart-heading); }
.chart-course-switcher button:disabled,.chart-course-switcher button:disabled:hover { color:var(--ds-ink-500); opacity:.5; cursor:default; background:transparent; box-shadow:none; transform:none; }
.chart-course-switcher button:focus-visible { outline:2px solid var(--chart-heading); outline-offset:2px; border-radius:var(--ds-radius-6); }
.chart-course-panel { overflow:hidden; }
.student-course-chart-plot { margin-top:14px; padding:6px; border:1px solid rgba(var(--ds-rgb-white), var(--ds-alpha-0-4)); border-radius:var(--ds-radius-14); background:rgba(var(--ds-rgb-white), var(--ds-alpha-0-16)); }
.student-course-chart svg { display:block; width:100%; height:auto; overflow:visible; }
.student-course-chart-stats { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:10px; }
.student-course-chart-stats .chart-stat { display:flex; flex-direction:column; gap:3px; margin:0; padding:9px 11px; border:1px solid rgba(var(--ds-rgb-white), var(--ds-alpha-0-35)); border-radius:var(--ds-radius-12); background:rgba(var(--ds-rgb-white), var(--ds-alpha-0-14)); font-size:var(--ds-size-10); }
.student-course-chart-stats .chart-stat strong { color:var(--chart-heading); font-size:var(--ds-size-18); line-height:1.2; font-weight:var(--ds-weight-bold); }
.student-course-chart-stats .chart-stat:is(.chart-median,.chart-variant-count) { display:grid; grid-template-columns:max-content minmax(0,1fr); column-gap:6px; align-items:center; }
:is(.chart-median,.chart-variant-count) > span:first-child { grid-column:1 / -1; }
:is(.chart-median,.chart-variant-count) .chart-score-change { line-height:1.2; }
.student-course-chart .chart-score-change { font-size:var(--ds-size-10); font-weight:var(--ds-weight-semibold); color:var(--chart-text); }
.student-course-chart .chart-score-change.score-rise { color:var(--ds-success-600); }
.student-course-chart .chart-score-change.score-fall { color:var(--ds-scarlet); }
:is(html.dark-theme,body.dark-theme) .student-course-chart .chart-score-change.score-rise { color:var(--ds-success-600); }
:is(html.dark-theme,body.dark-theme) .student-course-chart .chart-score-change.score-fall { color:var(--ds-scarlet); }
.student-course-chart .chart-last { margin-top:10px; padding-top:9px; border-top:1px solid var(--card-border); font-size:var(--ds-size-11); }
.student-course-chart .chart-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; min-height:170px; box-sizing:border-box; margin-top:14px; padding:24px 20px; border:1px solid var(--card-border); border-radius:var(--ds-radius-16); background:linear-gradient(135deg,rgba(var(--ds-rgb-white), var(--ds-alpha-0-18)),rgba(var(--ds-rgb-white), var(--ds-alpha-0-05))); text-align:center; }
.chart-empty-icon { display:grid; place-items:center; width:38px; height:38px; flex:0 0 38px; border:1px solid var(--card-border); border-radius:var(--ds-radius-12); color:var(--chart-heading); background:rgba(var(--color-primary),.06); }
.chart-empty-icon svg { width:23px; height:23px; }
.student-course-chart .chart-empty h4 { margin:0; color:var(--chart-heading); font-size:var(--ds-size-14); font-weight:var(--ds-weight-semibold); line-height:1.35; }
.student-course-chart .chart-empty p { margin:0; max-width:260px; color:var(--chart-text); font-size:var(--ds-size-11); line-height:1.6; opacity:.85; }
.student-course-chart.chart-preview .chart-empty { margin:0; padding:38px 14px 16px; min-height:170px; gap:7px; border-radius:var(--ds-radius-10); }
.student-course-chart.chart-preview .chart-empty-icon { width:28px; height:28px; flex-basis:28px; border-radius:var(--ds-radius-9); }
.student-course-chart.chart-preview .chart-empty-icon svg { width:18px; height:18px; }
.student-course-chart.chart-preview .chart-empty h4 { font-size:var(--ds-size-12); }
.student-course-chart.chart-preview .chart-empty p { font-size:var(--ds-size-10); line-height:1.45; }
.student-course-chart .chart-grid { stroke:rgba(var(--ds-rgb-ink-500), var(--ds-alpha-0-2)); }
.student-course-chart .chart-axis { fill:var(--chart-text); font-size:var(--ds-size-10); }
.student-course-chart .chart-line { stroke:url(#studentCourseChartStroke); stroke-width:2.5; fill:none; }
.student-course-chart .chart-line-color-below { stop-color:var(--ds-scarlet); }
.student-course-chart .chart-line-color-middle { stop-color:var(--ds-blue-400); }
.student-course-chart .chart-line-color-above { stop-color:var(--ds-success-600); }
:is(html.dark-theme,body.dark-theme) .student-course-chart .chart-line-color-above { stop-color:var(--ds-success-600); }
.student-course-chart .chart-area { fill:url(#studentCourseChartFill); }
.student-course-chart .chart-point-marker { --point-rgb:var(--ds-rgb-blue-400); }
.student-course-chart .chart-point { fill:rgb(var(--point-rgb)); stroke:rgba(var(--ds-rgb-white), var(--ds-alpha-0-5)); stroke-width:1; }
.student-course-chart .chart-point-pulse { fill:none; stroke:rgba(var(--point-rgb),.3); pointer-events:none; animation:chart-notification-pulse 2s ease-in-out infinite; }
@keyframes chart-notification-pulse {
    0%,100% { stroke-width:0; opacity:1; }
    50% { stroke-width:8; opacity:0; }
}
@media (prefers-reduced-motion:reduce) {
    .student-course-chart .chart-point-pulse { animation:none; stroke-width:0; }
}
.student-course-chart :is(.chart-value,.chart-preview-value) { fill:currentColor; font-size:var(--ds-size-10); font-weight:var(--ds-weight-semibold); }
.student-course-chart .chart-preview-value { display:none; }
.student-course-chart.chart-preview .chart-preview-value { display:block; transform:scaleY(.87); transform-box:fill-box; transform-origin:center; }
.student-course-chart .chart-reference { stroke-width:2; fill:none; stroke-dasharray:0 6; stroke-linecap:round; opacity:.5; }
.student-course-chart .chart-threshold { stroke:var(--ds-scarlet); }
.student-course-chart .chart-goal { stroke:var(--ds-success-600); }
.student-course-chart .chart-point-below { --point-rgb:var(--ds-rgb-scarlet); }
.student-course-chart .chart-point-above { --point-rgb:var(--ds-rgb-success-600); }
:is(html.dark-theme,body.dark-theme) .student-course-chart .chart-point-above { --point-rgb:var(--ds-rgb-success-600); }
.chart-reference-legend { display:grid; gap:3px; margin-top:8px; }
.student-course-chart .chart-reference-legend p { display:flex; align-items:center; gap:7px; margin:0; font-size:var(--ds-size-10); }
.chart-reference-swatch { width:16px; flex:0 0 16px; height:0; border-top:2px dotted currentColor; opacity:.5; }
.chart-legend-threshold .chart-reference-swatch { color:var(--ds-scarlet); }
.chart-legend-goal .chart-reference-swatch { color:var(--ds-success-600); }
:is(html.dark-theme,body.dark-theme) .student-course-chart .chart-goal { stroke:var(--ds-success-600); }
:is(html.dark-theme,body.dark-theme) .chart-legend-goal .chart-reference-swatch { color:var(--ds-success-600); }
.student-course-chart .chart-metric { margin-top:12px; color:var(--chart-text); font-weight:var(--ds-weight-semibold); }
.student-course-chart .chart-pending { margin-top:10px; color:var(--chart-text); font-size:var(--ds-size-11); }
.chart-scale { margin-top:12px; padding-top:10px; border-top:1px solid var(--card-border); }
.chart-scale summary { cursor:pointer; font-weight:var(--ds-weight-semibold); color:var(--chart-text); }
.chart-scale-scroll { max-height:160px; overflow-y:auto; margin-top:8px; border:1px solid var(--card-border); border-radius:var(--ds-radius-10); background:var(--card-bg); }
.chart-scale table { width:100%; border-collapse:collapse; text-align:center; font:inherit; }
.chart-scale th { position:sticky; top:0; z-index:1; background:var(--surface-raised,var(--ds-surface-50)); font-weight:var(--ds-weight-semibold); }
.student-course-chart .chart-scale :is(th,td) { padding:5px 8px; border-bottom:1px solid var(--card-border); color:var(--chart-text); }
.chart-scale tbody tr:last-child td { border-bottom:0; }
.chart-scale p, .chart-scale a { font-size:var(--ds-size-10); }
.chart-scale a { display:inline-block; margin-top:6px; color:var(--chart-text); text-decoration:underline; }
:is(html.dark-theme, body.dark-theme) .student-course-chart { background:linear-gradient(135deg, rgba(var(--ds-rgb-ink-300), var(--ds-alpha-0-06)), rgba(var(--ds-rgb-ink-300), var(--ds-alpha-0-01))), var(--card-bg); box-shadow:0 32px 96px var(--color-shadow), inset 0 1px 0 rgba(var(--ds-rgb-ink-300), var(--ds-alpha-0-12)); }
:is(html.dark-theme, body.dark-theme) .student-course-chart { --chart-text:var(--ds-ink-100); --chart-heading:var(--ds-ink-100); }
:is(html.dark-theme, body.dark-theme) .student-course-chart-plot,
:is(html.dark-theme, body.dark-theme) .student-course-chart-stats .chart-stat,
:is(html.dark-theme, body.dark-theme) .student-course-chart .chart-empty { background:rgba(var(--ds-rgb-ink-300), var(--ds-alpha-0-04)); border-color:var(--card-border); }
.student-course-chart.chart-preview .student-course-chart-plot,
.student-course-chart.chart-preview .student-course-chart-stats .chart-stat {
    background:none; border:0; border-radius:0; box-shadow:none;
}
