/* Keep school identity; colors below have fixed operational meanings. */
.v13-week{min-width:1040px}.v13-week td{min-width:125px;position:relative}.v13-week th small{display:block;font-weight:400}.v13-course{border:1px solid #d9e2e7;border-radius:8px;margin:4px 0 8px;background:#fff;overflow:hidden;text-align:left}.v13-course-main{display:block;width:100%;border:0;border-radius:0;margin:0;padding:8px;background:transparent;text-align:left;min-height:44px;font-size:14px}.v13-course-main strong{display:block;color:#344b5b}.v13-course-main small,.v13-course-meta small{display:block;line-height:1.5}.v13-course-meta{padding:0 8px 8px}.v13-teacher-link{padding:2px 0;border:0;background:none;text-align:left;color:#366780;min-height:44px;text-decoration:underline;font-size:14px}.v13-blank{border:1px dashed #b9c7ce;background:transparent;min-height:52px;width:100%;font-size:14px}.v13-target{font-size:14px;padding:7px;background:#edf2f5;min-height:44px;width:100%;margin:4px 0}.v13-drop{outline:3px solid #55788f;outline-offset:-3px}.v13-selection{border:1px solid #d5dfe5;padding:16px;background:#f7f9fa;border-radius:10px;margin:16px 0}.v13-selection p{margin:8px 0}.v13-legend{display:flex;gap:8px;flex-wrap:wrap}.v13-legend span{border-radius:5px;padding:4px 10px;font-size:14px}.v13-yellow,.v13-legend .yellow{background:#fff1c7!important}.v13-blue,.v13-legend .blue{background:#e4f0fb}.v13-red,.v13-legend .red{background:#fbe4e1!important}.v13-cell-flags{font-size:13px;color:#773523;font-weight:700;line-height:1.45}.v13-course.adjusted{background:#e8f1ec;border-color:#87b29b}.v13-course.ghost{background:#fff7df;border-style:dashed;opacity:.9}.v13-change-tag{font-size:13px;font-weight:700;color:#346749}.ghost .v13-change-tag{color:#806031}.v13-week-scroll{overscroll-behavior:contain}dialog{width:min(1250px,96vw);max-height:94vh;border:1px solid #d9e2e7;border-radius:12px;padding:24px;color:#344b5b}dialog::backdrop{background:rgba(27,46,59,.4)}.v13-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.v13-dialog-head h2{margin:0}#v13-editor-dialog .panel{margin-bottom:0;padding:0;border:0}.v13-task-link{padding:16px;background:#edf2f5;border-radius:8px;margin:16px 0}.v13-matrix{border-collapse:collapse;font-size:14px;margin:20px 0;min-width:100%}.v13-matrix th,.v13-matrix td{padding:10px;border:1px solid #d9e2e7;text-align:left;vertical-align:top}.v13-matrix thead{background:#f2f6f8}.v13-matrix th:first-child{min-width:120px;position:sticky;left:0;background:#f2f6f8;z-index:1}.v13-matrix td{min-width:100px}.v13-matrix td:has([data-matrix-teacher]){min-width:190px}.v13-matrix td input{max-width:90px}.v13-matrix td label{font-size:13px;margin:0 0 8px}.v13-matrix td select{height:44px;min-width:160px}.v13-common{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;min-width:265px}.v13-common label{font-size:13px}.v13-common input,.v13-common select{margin-top:3px;height:44px}.v13-common button,.v13-common label:last-child{grid-column:1/-1}.v13-common input[type=checkbox]{width:20px;height:20px}.v13-matrix small{display:block}.v13-over{background:#fbe4e1;color:#963c31;font-weight:700}.v13-ban-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;margin-top:16px}.v13-ban-layout aside{border:1px solid #d9e2e7;border-radius:8px;padding:12px}.v13-ban-layout aside .actions{margin-top:0}.v13-ban-layout aside input{margin-bottom:8px}#v13-ban-targets{max-height:620px;overflow-y:auto}.v13-target-option{display:flex;align-items:flex-start;gap:8px;min-height:44px;padding:8px;border-bottom:1px solid #e6ecef;cursor:pointer;font-weight:400}.v13-target-option input{flex:0 0 20px;width:20px;height:20px;margin:4px 0}.v13-target-option small{display:block;font-size:13px}.v13-ban-table{border-collapse:collapse;min-width:860px;width:100%}.v13-ban-table th,.v13-ban-table td{border:1px solid #d9e2e7;padding:3px;text-align:center}.v13-ban-table th{background:#edf2f5}.v13-ban-table button{width:100%;border:0;border-radius:4px;min-height:48px;font-size:14px;padding:7px;color:#506878}.v13-ban-table th button{background:transparent;font-weight:700}.v13-ban-table small{display:block;font-size:12px}.v13-ban-table .v13-banned{background:#a84928;color:#fff}.v13-ban-table .v13-ban-lock{background:#fff1c7;border:1px dashed #b49452;color:#755a24}#v13-advanced{padding:12px 0}#v13-advanced .fields{margin:12px 0}.v13-week .v13-course[draggable=true]{cursor:grab}@media(max-width:760px){.v13-ban-layout{grid-template-columns:1fr}#v13-ban-targets{max-height:240px}.v13-dialog-head{align-items:flex-start}dialog{padding:16px}.v13-common{min-width:250px}.v13-selection .actions{display:grid;grid-template-columns:1fr 1fr}}@media print{dialog,.v13-selection,.v13-target,.v13-cell-flags{display:none!important}.v13-teacher-link{text-decoration:none;color:#344b5b;padding:0;min-height:0}.v13-week{min-width:0}.v13-course-meta button{display:inline-block!important}}
/* Prevent min-content widths from expanding the phone page. */
.v13-ban-layout>*,.v13-ban-layout aside{min-width:0}.v13-matrix td:nth-child(2n+5){min-width:190px}.v13-matrix thead th:nth-child(2),.v13-matrix thead th:nth-child(3){min-width:70px}.v13-scroll-note{margin:12px 0 0;font-size:14px;color:#506878}@media(max-width:760px){.v13-ban-layout{grid-template-columns:minmax(0,1fr)}.v13-matrix th:first-child{min-width:105px}.v13-matrix thead th:nth-child(2),.v13-matrix thead th:nth-child(3){min-width:62px}.v13-matrix th,.v13-matrix td{padding:8px}}
.v13-drag-handle{display:block;font-size:12px;font-weight:600;padding:5px 8px;background:#edf2f5;color:#506878;cursor:grab;user-select:none;-webkit-user-select:none}.v13-drag-handle:active{cursor:grabbing}@media print{.v13-drag-handle{display:none!important}}
