/* Warm Notebook: exam and student-home modules. Loaded globally by the shared shell. */
.exam-toolbar{margin-bottom:20px;gap:16px}
.exam-form>[data-exam-field="title"]{order:1}
.exam-form>[data-exam-field="starts_at"]{order:2}
.exam-form>[data-exam-field="question_file"]{order:3}
.exam-form>[data-exam-field="answers"]{order:4}
.exam-form>[data-exam-field="students"]{order:5}
.exam-form>[data-exam-field="is_announced"]{order:6}
.exam-form>[data-exam-field="telemost_url"]{order:7}
.exam-form>.exam-hint{order:8}
.exam-form>button[type="submit"]{order:9}
.exam-form .exam-field:has(input[type="file"]){padding:16px;border:1px solid #C7D9E2;border-radius:16px;background:#E9F1F6}
.exam-form .exam-field:has(input[type="file"])>label{color:#3E657A;font-size:14px}
.exam-form .exam-field:has(input[type="file"]) input{background:#fff;max-width:100%;min-width:0}
.exam-form .exam-field{min-width:0}
.exam-student-summary .exam-meta{display:grid;grid-template-columns:1fr;gap:6px;padding:0 0 18px;border-bottom:1px solid var(--line)}
.exam-student-summary [data-exam-countdown]{margin-top:10px;padding:14px 16px;border-radius:14px;background:var(--accent-soft);color:var(--accent);font-size:20px;font-weight:600;font-variant-numeric:tabular-nums}
.exam-student-summary .exam-answer-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.exam-student-summary .exam-answer{font-size:13px;font-weight:500;color:var(--muted)}
.exam-student-summary .exam-answer input{font-size:16px;color:var(--text);min-height:48px;min-width:0}
.exam-student-summary .exam-confirm{display:flex;align-items:flex-start;gap:10px;font-size:13px;color:var(--muted);margin:8px 0}
.exam-student-summary .exam-confirm input{flex:0 0 20px;margin:1px 0 0}
.exam-form input[type="datetime-local"]{width:100%;min-width:0;max-width:100%;min-height:48px;box-sizing:border-box;-webkit-appearance:none;appearance:none}
.exam-list{gap:12px}
.exam-card,.exam-panel{background:#fffdf9;border-color:var(--line,#E4DDD3);border-radius:18px;box-shadow:0 5px 18px rgba(48,39,28,.035)}
.exam-card{transition:border-color .16s,transform .16s}
.exam-card:hover{border-color:#c9a99a;transform:translateY(-1px)}
.exam-card strong,.exam-panel h2{color:var(--text,#202431)}
.exam-card span,.exam-hint,.exam-field small,.exam-meta{color:var(--muted,#666D75)}
.exam-empty{color:var(--muted,#666D75);background:#fffdf9;border:1px dashed var(--line,#E4DDD3);border-radius:16px}
.exam-form{gap:16px}
.exam-field input:not([type=checkbox]),.exam-field textarea,.exam-answer input,.exam-form select{min-height:48px;border-color:var(--line,#E4DDD3);border-radius:12px;background:#fffdf9;color:var(--text,#202431)}
.exam-field input:focus,.exam-field textarea:focus,.exam-answer input:focus,.exam-form select:focus{outline:3px solid #AF513833;border-color:#AF5138}
.exam-form input[type=checkbox]{accent-color:#AF5138}
.exam-field label,.exam-answer{color:var(--text,#202431)}
.exam-fieldset #id_students{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:6px 12px}
.exam-fieldset #id_students label{min-height:44px;padding:6px 10px;border-radius:10px;background:#F3EDE4}
.exam-key span{background:#F3EDE4;border:1px solid var(--line,#E4DDD3);border-radius:10px;color:var(--text,#202431)}
.exam-table th,.exam-table td{border-color:var(--line,#E4DDD3);color:var(--text,#202431)}
.exam-table th{color:var(--muted,#666D75)}
.exam-announcement-field{border-color:#e8d5c9;background:#fbf3ed;border-radius:14px}
.exam-announcement-field input[type=checkbox]{accent-color:#AF5138}
.exam-announcement-panel{border-color:#e8d5c9;background:#fbf3ed}
.exam-error{color:#A43C34}
.exam-confirm{line-height:1.6}
.exam-actions{gap:10px}
.exam-student-summary{background:#fffdf9}
.progress-students{gap:14px}
.progress-student-card:hover{border-color:#c9a99a;transform:translateY(-1px)}
.progress-latest{color:#AF5138}
.progress-metrics>div{background:#fffdf9;border-color:var(--line,#E4DDD3);border-radius:16px}
.progress-metrics span,.progress-metrics small,.task-progress-content small{color:var(--muted,#666D75)}
.task-progress-heading strong{color:#42634A}
.task-progress-track{height:8px;border-radius:99px;background:#F3EDE4}
.task-progress-track span{border-radius:inherit;background:#42634A}
.result-score-grid{gap:12px}
.result-score-cell label{color:var(--muted,#666D75)}
.result-note{background:#E9F1F6;color:#3E657A}
.chart-line{stroke:#AF5138}
.chart-dot{fill:#AF5138}
.chart-grid{stroke:#E4DDD3}
.chart-axis{fill:#666D75}
.chart-value{fill:#202431}
.progress-latest small{color:#666D75}

.student-exams-page{gap:16px}
.student-exam-summary,.student-task-details,.student-status{border-color:var(--line,#E4DDD3);border-radius:18px;box-shadow:0 5px 18px rgba(48,39,28,.035)}
.student-exam-summary{background:#fffdf9}
.student-exam-metrics>div{background:#F3EDE4;border-radius:13px}
.student-exam-metrics span,.student-exam-metrics small{color:#666D75}
.student-exam-metrics strong{color:#202431}
.student-exam-summary .student-progress-chart{margin-top:10px}
.student-chart-axis{fill:#666D75}
.student-chart-value{fill:#202431}
.student-status-checking{background:#fffdf9}
.student-status-checking>summary .homework-status-icon{background:#FAF0DB;color:#846128}
.student-status-checked>summary .homework-status-icon{background:#EAF0E5;color:#42634A}
.student-status-list,.student-status-row+.student-status-row{border-color:var(--line,#E4DDD3)}
.student-status-count{background:#F3EDE4;color:#666D75}
.student-status-checked .student-status-count{background:#EAF0E5;color:#42634A}
.student-status-checking .student-status-count{background:#FAF0DB;color:#846128}
.student-status-row{min-height:56px}
.student-status-row:hover{background:#FBF8F2}
.student-status-empty{color:#666D75}
.student-exam-spotlights{gap:10px}
.student-exam-invitation{position:relative;min-height:148px;overflow:hidden;gap:18px;padding:23px 24px;border:0;border-radius:20px;background:#AF5138;color:#fff;box-shadow:0 10px 28px rgba(111,48,31,.14)}
.student-exam-invitation.is-live{background:#AF5138;box-shadow:0 10px 28px rgba(111,48,31,.16)}
.student-exam-invitation.is-live:after{content:"";position:absolute;right:20px;top:18px;width:102px;height:116px;background:url("/static/design/notebook.cbe400387338.svg") center/contain no-repeat;opacity:.95;pointer-events:none}
.student-exam-invitation.is-announcement{min-height:82px;padding:15px 18px;border:1px solid var(--line,#E4DDD3);background:#fffdf9;color:#202431;box-shadow:none}
.exam-invitation-copy{z-index:1;gap:5px}
.exam-invitation-badge{color:#f8ddcd}
.exam-invitation-badge i{background:#fff;box-shadow:0 0 0 4px #ffffff25}
.exam-invitation-copy>strong{font-family:Manrope, sans-serif;font-size:22px;color:inherit}
.exam-invitation-copy>small{color:#f9e8df}
.exam-invitation-symbol{z-index:1;flex-basis:52px;height:52px;background:#ffffff20;color:#fff}
.exam-invitation-action,.is-live .exam-invitation-action{z-index:1;padding:11px 15px;border-radius:99px;background:#FBF8F2;color:#AF5138}
.student-exam-invitation.is-announcement .exam-invitation-symbol{width:44px;height:44px;background:#F3EDE4;color:#AF5138}
.student-exam-invitation.is-announcement .exam-invitation-badge,.student-exam-invitation.is-announcement .exam-invitation-copy>small,.student-exam-invitation.is-announcement .exam-invitation-action{color:#666D75}
.student-exam-invitation.is-announcement .exam-invitation-badge{color:#AF5138}
.student-exam-invitation.is-announcement .exam-invitation-action{background:transparent}
.student-exam-invitation:hover{filter:brightness(.98)}
.student-exam-invitation:focus-visible{outline:3px solid #202431;outline-offset:3px}
.student-exam-summary-compact .student-exam-metrics>div{background:transparent}
.student-task-chart{gap:10px 14px}
.student-task-chart__item{border-color:var(--line,#E4DDD3);border-radius:14px;background:#fffdf9;box-shadow:none}
.student-task-chart__number{color:#202431}
.student-task-chart__value{color:#42634A}
.student-task-chart__track{background:#F3EDE4}
.student-task-chart__fill{background:#42634A}
.student-task-chart__detail,.student-task-chart__note{color:#666D75}

.homework-home-widgets{gap:10px}
.homework-home-widget{padding:13px;border-radius:16px}
.homework-home-widget--checked{border-color:#d8e3d2;background:#EAF0E5}
.homework-home-widget--todo{border-color:#d3e1e9;background:#E9F1F6}
.homework-home-widget--checked h2{color:#42634A}
.homework-home-widget--todo h2{color:#3E657A}
.homework-home-widget__cards{gap:8px}
.homework-home-widget__card{min-height:52px;border-color:#ffffffaa;border-radius:12px;background:#ffffffd9}
.homework-home-widget--checked .homework-home-widget__card{border-color:#d8e3d2}
.homework-home-widget--todo .homework-home-widget__card{border-color:#d3e1e9}
.homework-home-widget__card:hover{border-color:#AF5138}
.homework-home-widget__card:focus-visible{outline-color:#AF5138}
.homework-home-widget__copy small{color:#666D75}
.homework-home-widgets__all{color:#AF5138}
.student-home-section{margin-top:4px}
.student-lesson-card{min-height:66px;border-color:var(--line,#E4DDD3);border-radius:0;background:transparent;box-shadow:none}
.student-lesson-card+.student-lesson-card{border-top:0}
.student-lesson-date{background:#AF5138;color:#fff}
.student-lesson-copy small{color:#666D75}
.student-lesson-caption{color:#666D75}
.student-lesson-card:hover{border-color:#cf9b89;background:#fffdf9}
.student-lesson-card:focus-visible{outline:3px solid #AF5138;outline-offset:2px}

/* Teacher result entry and review interiors follow the exam scoring sheets. */
.exam-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
.exam-section-heading h2{margin:0}
.exam-section-kicker{color:#666D75;font-size:12px;font-weight:600;letter-spacing:.02em}
.result-score-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.result-score-cell{padding:10px;border:1px solid #E4DDD3;border-radius:12px;background:#FBF8F2}
.result-score-cell label{font-size:13px;font-weight:600}
.result-score-cell input{width:100%;min-height:44px;padding:9px 10px;border:1px solid #E4DDD3;border-radius:10px;background:#fffdf9;color:#202431;font:inherit;font-variant-numeric:tabular-nums}
.result-score-cell input:focus{outline:3px solid #AF513833;border-color:#AF5138}
.result-form-short .result-score-cell{background:#fffdf9}
.result-form-long{background:#f8fbfc}
.result-form-long .result-score-cell{background:#fff}
.result-form-comment textarea{min-height:112px;resize:vertical}
.exam-result-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 8px}
.exam-result-summary>div{display:grid;gap:7px;padding:14px;border:1px solid #E4DDD3;border-radius:14px;background:#FBF8F2}
.exam-result-summary>div>span{color:#666D75;font-size:12px}
.exam-result-summary strong{color:#202431;font-size:25px;line-height:1.1;font-variant-numeric:tabular-nums}
.exam-result-total strong{color:#AF5138}
.exam-result-converted strong{color:#42634A}
.exam-result-summary small{color:#666D75;font-size:14px;font-weight:500}
.exam-result-visibility{padding:5px 9px;border-radius:99px;background:#F3EDE4;color:#666D75}
.exam-result-visibility.is-visible{background:#EAF0E5;color:#42634A}
.exam-review-panel h2{margin:8px 0 14px}
.exam-review-table th:first-child,.exam-review-table td:first-child{width:92px}
.exam-review-table td{vertical-align:middle}
.exam-review-state{display:inline-flex;align-items:center;justify-content:center;min-width:80px;min-height:28px;padding:4px 9px;border-radius:99px;font-size:12px;font-weight:600}
.exam-review-state.is-correct{background:#EAF0E5;color:#42634A}
.exam-review-state.is-incorrect{background:#F8E9E5;color:#A43C34}
.exam-review-state.is-unanswered{background:#FAF0DB;color:#846128}
.exam-review-state.is-pending{background:#F3EDE4;color:#666D75}
.exam-review-file{display:flex;align-items:center;gap:12px;min-height:64px;margin-top:18px;padding:11px 14px;border:1px solid #b8cfdb;border-radius:14px;background:#E9F1F6;color:#202431;text-decoration:none}
.exam-review-file:hover{border-color:#3E657A}
.exam-review-file-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#fff;color:#3E657A;font-size:11px;font-weight:800;letter-spacing:.03em}
.exam-review-file>span:nth-child(2){display:grid;gap:3px;min-width:0;flex:1}
.exam-review-file strong{overflow-wrap:anywhere;font-size:14px}
.exam-review-file small{color:#666D75;font-size:12px}
.exam-review-file-action{color:#3E657A;font-size:13px;font-weight:650;white-space:nowrap}
.exam-review-no-file{margin:16px 0 0;padding:14px;border-radius:12px;background:#F3EDE4;color:#666D75}
.exam-table-wrap{border-radius:12px}
.exam-table tbody tr:hover{background:#FBF8F2}

@media(max-width:640px){
 .exam-key-inputs{grid-template-columns:repeat(3,minmax(0,1fr))}
 .student-exam-invitation:not(.is-announcement){grid-template-columns:40px minmax(0,1fr);gap:10px;padding:16px;border-radius:18px}
 .student-exam-invitation:not(.is-announcement) .exam-invitation-symbol{width:40px;height:40px}
 .student-exam-invitation:not(.is-announcement) .exam-invitation-copy>strong{font-size:18px}
 .student-exam-invitation:not(.is-announcement) .exam-invitation-action{grid-column:2;justify-self:start}
 .student-exam-invitation.is-live:after{right:8px;top:10px;width:74px;height:88px;opacity:.42}
 .student-exam-invitation.is-announcement{grid-template-columns:36px minmax(0,1fr);gap:9px;padding:12px}
 .student-exam-invitation.is-announcement .exam-invitation-action{grid-column:2;justify-self:start;padding:0}
 .homework-home-widget__cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .exam-result-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .exam-result-summary>div:last-child:nth-child(odd){grid-column:1/-1}
 .exam-section-heading{align-items:flex-start;flex-direction:column;gap:4px}
 .exam-review-file{align-items:flex-start;flex-wrap:wrap}
 .exam-review-file-action{margin-left:52px}
}
/* The home widgets are the small notebook pieces, not cards inside cards. */
.warm-app .student-home{gap:28px}
.warm-app .homework-home-widgets{gap:24px}
.warm-app .homework-home-widget{padding:0;border:0;border-radius:0;background:transparent}
.warm-app .homework-home-widget h2{margin:0 0 12px;font-size:20px;font-family:"Manrope",sans-serif;font-weight:800;color:var(--text)}
.warm-app .homework-home-widget__cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.warm-app .homework-home-widget__card{position:relative;gap:10px;min-height:78px;padding:14px 10px 14px 20px;border:0;border-radius:14px;overflow:visible;box-shadow:none}
.warm-app .homework-home-widget__card:before{position:absolute;inset:0 auto 0 0;width:11px;border-radius:14px 0 0 14px;background:radial-gradient(circle,#FFFCF7 2px,transparent 2.3px) 5px center/10px 18px repeat-y;content:"";pointer-events:none}
.warm-app .homework-home-widget--checked .homework-home-widget__card{background:var(--success-soft)}
.warm-app .homework-home-widget--checked .homework-home-widget__card:before{background-color:#D0DBC8}
.warm-app .homework-home-widget--todo .homework-home-widget__card{background:var(--blue-soft)}
.warm-app .homework-home-widget--todo .homework-home-widget__card:before{background-color:#BCD1DC}
.warm-app .homework-home-widget .homework-status-icon{width:32px;height:32px;flex:0 0 32px;border-radius:50%;background:#FFFCF7;color:var(--blue)}
.warm-app .homework-home-widget .homework-status-icon svg{width:22px;height:22px;stroke-width:1.9}
.warm-app .homework-home-widget--checked .homework-status-icon{background:var(--success);color:#fff}
.warm-app .homework-home-widget__copy{flex:1;font-size:13px;font-weight:600;line-height:1.35}
.warm-app .homework-home-widget__copy small{font-size:11px;font-weight:400;line-height:1.4;margin-top:4px;color:var(--muted)}
.warm-app .homework-home-widget__arrow{flex:0 0 12px;color:var(--muted)}
.warm-app .homework-home-widget__arrow .icon{width:12px;height:18px;flex-basis:12px}
.warm-app .homework-home-widgets__all{margin-top:-14px;min-height:32px;display:flex;align-items:center;font-size:13px}
.warm-app .student-section-heading h2{font-size:20px}
.warm-app .student-exam-summary-compact{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;display:grid;grid-template-columns:1fr;gap:12px}
.warm-app .student-exam-summary-compact .student-exam-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.warm-app .student-exam-summary-compact .student-exam-metrics>div{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:0;background:transparent;border:0;border-radius:0}
.warm-app .student-exam-summary-compact .student-exam-metrics>div+div{border-left:1px solid var(--line);padding-left:20px}
.warm-app .student-exam-summary-compact .student-exam-metrics>div>span{order:2;font-size:13px;margin-top:8px}
.warm-app .student-exam-summary-compact .student-exam-metrics strong{order:1;font-size:48px;font-weight:700;color:var(--accent);margin:0;line-height:1.05;white-space:nowrap;font-variant-numeric:tabular-nums}
.warm-app .student-exam-summary-compact .student-metric-converted strong{color:var(--success)}
.warm-app .student-exam-summary-compact .student-exam-metrics strong small{font-size:23px;font-weight:600;color:inherit}
.warm-app .student-metric-delta{order:3;margin-top:10px;display:grid;gap:4px}
.warm-app .student-metric-delta b{font-size:16px;font-weight:600;color:var(--success)}
.warm-app .student-metric-delta small{font-size:12px;line-height:1.4;color:var(--muted);font-weight:400}
.warm-app .student-exam-summary-compact .student-progress-chart{margin:4px 0 0;max-height:176px;min-height:0;align-self:stretch}
.warm-app .student-summary-link{font-size:13px;color:var(--accent);min-height:32px;align-items:center;justify-self:end;margin-top:-8px}
.warm-app .student-chart-axis{font-family:"Golos Text",sans-serif;fill:var(--muted)}
.warm-app .student-chart-value{font-family:"Golos Text",sans-serif;fill:var(--text)}
.warm-app .student-exam-summary:not(.student-exam-summary-compact) .student-metric-primary,.warm-app .student-exam-summary:not(.student-exam-summary-compact) .student-metric-converted{background:transparent;padding:12px 8px 16px}
.warm-app .student-exam-summary:not(.student-exam-summary-compact) .student-metric-primary strong,.warm-app .student-exam-summary:not(.student-exam-summary-compact) .student-metric-converted strong{font-size:42px;font-weight:700;line-height:1.1;color:var(--accent);white-space:nowrap}
.warm-app .student-exam-summary:not(.student-exam-summary-compact) .student-metric-converted strong{color:var(--success)}
.warm-app .student-exam-summary:not(.student-exam-summary-compact) .student-exam-metrics strong small{font-size:19px;color:inherit}
@media(max-width:370px){.warm-app .student-exam-summary:not(.student-exam-summary-compact) .student-metric-primary strong,.warm-app .student-exam-summary:not(.student-exam-summary-compact) .student-metric-converted strong{font-size:34px}.warm-app .student-exam-summary:not(.student-exam-summary-compact) .student-exam-metrics strong small{font-size:16px}}
.warm-app .student-upcoming{gap:0;position:relative}
.warm-app .student-upcoming:before{content:"";position:absolute;top:33px;bottom:34px;left:14px;border-left:1px dashed #BEB4A5;pointer-events:none}
.warm-app .student-lesson-card{position:relative;padding:17px 0 17px 44px;min-height:82px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;gap:14px;align-items:center}
.warm-app .student-lesson-card:before{content:"";position:absolute;left:4px;top:30px;width:20px;height:20px;border:4px solid var(--bg);border-radius:50%;background:var(--accent);box-sizing:content-box;z-index:1}
.warm-app .student-lesson-card:nth-child(even):before{background:var(--blue)}
.warm-app .student-lesson-date{padding:0;min-width:54px;background:transparent;border-radius:0;color:var(--text);place-items:start}
.warm-app .student-lesson-date strong{font-size:20px;font-weight:600}
.warm-app .student-lesson-date small{font-size:11px;color:var(--muted)}
.warm-app .student-lesson-copy strong{font-size:16px;font-weight:600;letter-spacing:0}
.warm-app .student-lesson-copy small{font-size:12px;color:var(--muted)}
.warm-app .student-exam-invitation.is-announcement{display:grid;grid-template-columns:40px minmax(0,1fr) 16px;gap:12px;padding:14px 16px;min-height:74px}
.warm-app .is-announcement .exam-invitation-symbol{width:40px;height:40px;flex-basis:40px;border-radius:50%;background:var(--accent-soft)}
.warm-app .is-announcement .exam-invitation-copy{gap:3px}
.warm-app .is-announcement .exam-invitation-copy>strong{font-size:15px;font-family:"Golos Text",sans-serif;font-weight:600}
.warm-app .is-announcement .exam-invitation-badge{font-size:11px;font-weight:500}
.warm-app .is-announcement .exam-invitation-copy>small{font-size:11px;line-height:1.4}
.warm-app .is-announcement .exam-invitation-action{font-size:0;padding:0;grid-column:3;grid-row:1;margin:0;align-self:center;justify-self:end}
.warm-app .is-announcement .exam-invitation-action svg{width:16px;height:20px}
@media(min-width:700px){.warm-app .student-exam-summary-compact{grid-template-columns:1fr 1fr;align-items:center;gap:18px 30px}.warm-app .student-exam-summary-compact .student-progress-chart{margin:0;max-height:190px}.warm-app .homework-home-widget__card{min-height:88px}.warm-app .homework-home-widget__copy{font-size:15px}}
@media(max-width:370px){.warm-app .homework-home-widget h2{font-size:18px}.warm-app .homework-home-widget__cards{gap:10px}.warm-app .homework-home-widget__card{gap:7px;padding:12px 8px 12px 17px;min-height:82px}.warm-app .homework-home-widget .homework-status-icon{width:26px;height:26px;flex-basis:26px}.warm-app .homework-home-widget .homework-status-icon svg{width:19px;height:19px}.warm-app .homework-home-widget__copy{font-size:12px}.warm-app .homework-home-widget__arrow{display:none}.warm-app .homework-home-widget__copy small{font-size:10px}.warm-app .student-exam-summary-compact .student-exam-metrics{gap:12px}.warm-app .student-exam-summary-compact .student-exam-metrics>div+div{padding-left:12px}.warm-app .student-exam-summary-compact .student-exam-metrics strong{font-size:40px}.warm-app .student-exam-summary-compact .student-exam-metrics strong small{font-size:18px}}
