.hw-report-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.homework-status{font-weight:700;margin:10px 0;color:#76541b}
.homework-overdue{background:#e8ebf0!important;border:1px solid #cbd1da!important;box-shadow:none!important}
.homework-overdue-text{color:#a52121!important;font-weight:700}
.homework-overdue h2,.homework-overdue h3,.homework-overdue .text-block{color:#586174}
.homework-overdue .pill.red{background:#ffe0e0;color:#a52121}
.hw-report-filters{justify-content:flex-start;align-items:flex-end}
.hw-report-filters label{display:grid;gap:7px;min-width:220px;flex:1;max-width:420px}
.academic-rules{padding:20px 24px;color:#694d13;border:1px solid #efd598;border-left:5px solid var(--gold);line-height:1.65}
.academic-rules h2{font-size:18px;margin:0 0 10px;color:#694d13}
.academic-rules ul{padding-left:20px;margin:0}
.academic-rules li+li{margin-top:8px}
.academic-rules p{margin:0 0 8px}
.academic-rules summary{cursor:pointer;font-weight:700}
.academic-rules details[open] ul{margin-top:12px}
.homework-ai-choice{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid #dce6f5;background:#f7faff;border-radius:12px;padding:14px 16px;margin:6px 0 18px}
.homework-ai-choice input{width:auto;margin:0}
#homework-ai-state:empty{display:none}
.hw-report-metrics>div{border:1px solid #dce6f5;border-radius:16px;background:#f5f8ff;padding:16px;min-width:0}
.hw-report-metrics b{display:block;color:#2058b7;font-family:'Baloo 2',sans-serif;font-size:32px;line-height:1.1;margin-bottom:8px}
.hw-report-metrics span{display:block;font-size:13px;color:#526b92;line-height:1.5}
#hr-probe-result>.card{margin-top:16px;border:1px solid #dce6f5;box-shadow:none}
#hr-detail details,#hr-probe-result details{margin:14px 0}
#hr-detail h3,#hr-probe-result h3{margin-top:24px}
@media(max-width:900px){.hw-report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.hw-report-metrics{gap:8px}.hw-report-metrics>div{padding:12px}.hw-report-metrics b{font-size:28px}}
@media(max-width:600px){.hw-report-filters label{min-width:0;flex-basis:100%;max-width:none}.academic-rules{padding:16px 18px}}

.hm-card-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid #e2e9f3}
.hm-trash{flex:0 0 44px;width:44px;height:44px;border:1px solid #f0ced1;border-radius:14px;background:#fff4f4;color:#b22535;display:grid;place-items:center;cursor:pointer}
.hm-trash:hover{background:#ffe5e7;border-color:#cf7781}.hm-trash:focus-visible{outline:3px solid #97b9f4;outline-offset:3px}.hm-trash svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hm-dialog{width:min(780px,calc(100vw - 28px));max-height:calc(100dvh - 36px);padding:0;border:1px solid #d9e3f3;border-radius:24px;box-shadow:0 24px 80px #132c6340;color:#19365b;overflow:auto;background:#fff}
.hm-dialog::backdrop{background:#112b536b;backdrop-filter:blur(3px)}
.hm-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 26px;background:#f4f7fd;border-bottom:1px solid #e3eaf4}.hm-dialog-head h2{margin:0;font-size:24px;color:#173f80}
.hm-form{padding:24px 26px}.hm-form .field{margin-bottom:18px}.hm-context{margin:0 0 20px;line-height:1.8}.hm-context b{font-size:18px}.hm-loading{padding:24px}
.hm-rules{background:#fff5d9;border:1px solid #f2d68c;border-radius:12px;padding:14px 18px;margin-bottom:22px;font-size:13px;line-height:1.7;color:#77591a}
.hm-scope{padding:12px 16px;background:#f0f5ff;border-radius:12px;font-size:14px;line-height:1.7}
.hm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.hm-section{border-top:1px solid #e2e9f3;margin-top:22px;padding-top:22px}.hm-section h3{margin:0 0 14px}
.hm-check{display:flex!important;align-items:flex-start;gap:10px;margin:14px 0;line-height:1.6}.hm-check input,.hm-target-list input{width:18px!important;height:18px;flex-shrink:0;margin:3px 0 0}
.hm-files{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px}.hm-file{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid #dce6f5;border-radius:12px;background:#f6f9ff;max-width:100%;overflow-wrap:anywhere}.hm-file span{min-width:0}.hm-file button{border:0;border-radius:8px;color:#b22535;background:#ffe8eb;width:28px;height:28px;flex-shrink:0;font-size:23px;line-height:1;cursor:pointer}
.hm-target-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;background:#f6f9ff;border-radius:12px}.hm-target-list label{display:flex;align-items:center;gap:8px;margin:0}
.hm-footer{display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #e2e9f3;margin-top:22px;padding-top:20px}
.hm-delete-options{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.hm-delete-options>button{text-align:left;padding:20px;border-radius:16px;border:1px solid #cdddf6;background:#f1f6ff;color:#1b4e9a;cursor:pointer;font:inherit;line-height:1.6}.hm-delete-options b,.hm-delete-options span{display:block}.hm-delete-options b{font-size:17px;margin-bottom:8px}.hm-delete-options span{font-size:13px}.hm-delete-options .hm-delete-choice{border-color:#efcdd1;background:#fff7f7;color:#a82535}.hm-dialog [hidden]{display:none!important}
@media(max-width:600px){.hm-dialog-head,.hm-form{padding:18px}.hm-grid,.hm-delete-options,.hm-target-list{grid-template-columns:1fr}.hm-dialog-head h2{font-size:21px}.hm-card-actions .btn{font-size:13px;padding:12px 16px}.hm-footer .btn{flex:1}.hm-dialog{border-radius:18px}.hm-file{width:100%;justify-content:space-between}}
