/* Credits in Excel (7 November 2026) on the Assign credits page: three steps
   (download, fill in, upload), then the summary of an uploaded file before it
   is saved. */
.cb-credits-excel { margin-block: 18px; }
.cb-credits-excel h2, .cb-credits-excel-result h2 { margin: 0 0 6px; font-size: 20px; }
.cb-credits-excel-copy p { margin: 0; }
.cb-credits-excel-copy p + p { margin-top: 6px; }
.cb-credits-excel-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
/* The upload step has the shared drag-and-drop control (admin/shared/_excel_upload), so it gets the full width. */
.cb-credits-excel-steps > li:last-child { grid-column: 1 / -1; }
.cb-credits-excel-steps > li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; min-width: 0;
  padding: 14px; border: 1px solid var(--cb-border-subtle); border-radius: 12px;
}
.cb-credits-excel-step {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: color-mix(in srgb, var(--cb-accent) 16%, transparent); color: var(--cb-accent); font-size: 13px; font-weight: 700;
}
.cb-credits-excel-steps strong { display: block; margin: 3px 0 8px; font-size: 14px; }
.cb-credits-excel-steps .cb-field-help { margin: 0; }
.cb-credits-excel-upload { display: grid; justify-items: start; gap: 4px; margin: 0; min-width: 0; }
.cb-credits-excel-upload .cb-excel-upload { width: 100%; margin: 0; }
.cb-credits-excel-result { margin-block: 18px; }
.cb-credits-excel-result > .cb-field-help { margin: 0; }
.cb-credits-excel-problems { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.cb-credits-excel-problems li {
  padding: 8px 12px; border-left: 3px solid var(--cb-tone-progress); border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--cb-tone-progress) 8%, transparent); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere;
}
.cb-credits-excel-list { margin-top: 14px; }
.cb-credits-excel-list summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.cb-credits-excel-list table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13px; }
.cb-credits-excel-list :is(th, td) { padding: 6px 8px; border-bottom: 1px solid var(--cb-border-subtle); text-align: left; overflow-wrap: anywhere; }
.cb-credits-excel-list :is(th, td):last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cb-credits-excel-confirm { margin: 16px 0 0; }
@media (max-width: 900px) {
  .cb-credits-excel-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .cb-credits-excel-steps .cb-admin-secondary, .cb-credits-excel-upload .cb-button, .cb-credits-excel-confirm .cb-button { width: 100%; text-align: center; }
}
