/* The grade-weights editor (/school/weights-editor.js), on School and in Settings → Syllabi.
   Room tokens only. */

.weights-editor { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }

/* Dates read from an uploaded syllabus, under the weights on the course view. */
.syl-dates { max-width: 560px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.syl-dates-title { color: var(--label); font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.syl-dates-list { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.syl-dates-list li { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); gap: 12px; }
.syl-date-when { color: var(--muted); font-variant-numeric: tabular-nums; }
.edit-rows { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.edit-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px auto auto auto; align-items: center; gap: 8px; }
.edit-row .input { width: 100%; min-width: 0; }
.edit-pct { color: var(--muted); font-weight: 600; }
.edit-bonus { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.edit-bonus input { accent-color: var(--accent); }
.weights-editor > .link-btn { align-self: flex-start; }
.weights-total { color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.weights-total.off { color: var(--amber); }
.weights-total.off::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 11px; font-weight: 700; vertical-align: 1px; }

@media (max-width: 640px) {
  .edit-row { grid-template-columns: minmax(0, 1fr) 72px auto; }
  .edit-bonus { grid-column: 1; }
  .edit-row .link-btn { grid-column: 2 / -1; justify-self: end; }
}
