.program-follow-up {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.program-process-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 20px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.program-process-tabs button {
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

.program-process-tabs button:hover {
  border-color: var(--line);
  background: var(--card);
  color: var(--navy);
}

.program-process-tabs button.active {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--card);
  color: var(--navy);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.program-process-tabs button:focus-visible,
.program-follow-up select:focus-visible,
.program-follow-up input:focus-visible,
.program-follow-up textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent);
  outline-offset: 2px;
}

.program-follow-up-heading,
.program-follow-up-toolbar,
.program-follow-up-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.program-follow-up-heading {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.program-follow-up-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

.program-follow-up-heading h2 {
  margin: 0;
  font-size: 1.22rem;
}

.program-process-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.program-process-overview,
.program-process-facts,
.program-process-command {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.program-process-overview,
.program-process-command {
  padding: 16px;
}

.program-process-overview-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.program-process-overview-heading > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.program-process-overview-heading span,
.program-process-facts span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.program-process-progress {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 70%, white);
}

.program-process-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.program-process-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.program-process-step {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.program-process-step-marker {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
}

.program-process-step.is-complete .program-process-step-marker {
  border-color: #238466;
  background: #238466;
}

.program-process-step strong,
.program-process-step small {
  display: block;
}

.program-process-step small {
  margin-top: 3px;
  color: var(--muted);
}

.program-process-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-process-facts > div {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 104px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.program-process-facts > div:last-child {
  border-right: 0;
}

.program-process-facts strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.program-process-facts strong.is-positive {
  color: #217052;
}

.program-process-command {
  display: grid;
  gap: 10px;
  border-left: 4px solid var(--accent);
}

.program-process-command p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.program-process-command .pill {
  justify-self: start;
  margin-top: 4px;
}

.program-organized-sharing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.program-organized-sharing > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
}

.program-organized-sharing strong {
  font-size: 0.96rem;
}

.program-organized-sharing p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.program-process-availability {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: #087985;
  font-size: 0.72rem;
  font-weight: 750;
}

.program-organized-sharing .pill:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.program-course-tools-section,
.program-shared-rac-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.program-course-tools-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.program-course-tools-heading h3,
.program-course-tools-heading p {
  margin: 0;
}

.program-course-tool-scope {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.program-course-tool-scope > button:not(.pill) {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.program-course-tool-scope > button.active {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, white);
  color: var(--ink);
}

.program-course-tool-scope > span {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
}

.program-course-tools-table tr[data-program-course-selection-row] {
  cursor: pointer;
}

.program-course-tools-table tr.is-selected td {
  background: color-mix(in srgb, var(--accent) 10%, white);
}

.program-course-tools-table th.program-course-select-column {
  width: 42px !important;
}

.program-course-tools-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.program-follow-up-table.program-course-tools-table {
  min-width: 700px;
  table-layout: fixed;
}

.program-course-tools-table th.program-course-code-column {
  width: 14%;
}

.program-course-tools-table th.program-course-title-column {
  width: 32%;
}

.program-course-tools-table th.program-course-results-column {
  width: 38%;
}

.program-course-tools-table th.program-course-actions-column {
  width: 16%;
}

.program-follow-up-table.program-rac-table,
.program-follow-up-table.program-shared-rac-table {
  min-width: 700px;
  table-layout: fixed;
}

.program-rac-table th:nth-child(1) {
  width: 14%;
}

.program-rac-table th:nth-child(2) {
  width: 27%;
}

.program-rac-table th:nth-child(3) {
  width: 14%;
}

.program-rac-table th:nth-child(4) {
  width: 15%;
}

.program-rac-table th:nth-child(5) {
  width: 12%;
}

.program-rac-table th:nth-child(6) {
  width: 18%;
}

.program-shared-rac-table th:last-child {
  width: 112px;
}

.program-course-tools-modal-card,
.program-rac-fiche-modal-card {
  width: min(900px, calc(100vw - 32px));
  max-width: 900px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

#program-course-tools-modal,
#program-doc-import-modal,
#program-resource-note-modal,
#program-rac-fiche-modal,
#program-shared-rac-modal,
#program-review-invite-modal {
  box-sizing: border-box;
  z-index: 2700;
}

#program-course-tools-modal,
#program-doc-import-modal,
#program-referential-select-modal,
#program-resource-note-modal {
  overflow: hidden;
}

#program-course-tools-modal .program-course-tools-modal-card {
  box-sizing: border-box;
  width: min(900px, calc(100vw - 32px));
  max-width: 900px;
  overflow-x: hidden;
}

#program-referential-select-modal {
  z-index: 2750;
}

.grid.two.program-detail-layout {
  grid-template-columns: minmax(420px, 0.82fr) minmax(760px, 1.18fr);
  align-items: start;
}

.program-detail-layout > *,
.program-detail-side {
  min-width: 0;
}

.program-resource-modal-card,
.program-referential-select-modal-card,
.program-resource-note-modal-card {
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

#program-doc-import-modal .program-resource-modal-card,
#program-referential-select-modal .program-referential-select-modal-card,
#program-resource-note-modal .program-resource-note-modal-card {
  box-sizing: border-box;
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
  overflow-x: hidden;
}

#program-doc-import-modal .modal-heading-row,
#program-referential-select-modal .modal-heading-row,
#program-resource-note-modal .modal-heading-row,
#program-course-tools-modal .modal-heading-row {
  align-items: flex-start;
  flex-direction: row;
}

#program-doc-import-modal .modal-heading-row > div,
#program-referential-select-modal .modal-heading-row > div,
#program-resource-note-modal .modal-heading-row > div,
#program-course-tools-modal .modal-heading-row > div {
  min-width: 0;
}

#program-doc-import-modal .modal-heading-row > .icon-button,
#program-referential-select-modal .modal-heading-row > .icon-button,
#program-resource-note-modal .modal-heading-row > .icon-button,
#program-course-tools-modal .modal-heading-row > .icon-button {
  flex: 0 0 auto;
}

.program-resource-modal-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.program-resource-modal-card .modal-heading-row h3,
.program-resource-modal-card .modal-heading-row p {
  margin: 0;
}

.program-resource-modal-card .modal-heading-row p {
  margin-top: 5px;
  color: var(--muted);
}

.program-resource-modal-fields {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.program-resource-modal-card .form-group {
  display: grid;
  gap: 6px;
}

.program-resource-modal-card .field-label {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
}

.program-resource-modal-card select,
.program-resource-modal-card input,
.program-resource-modal-card textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.program-resource-modal-card textarea {
  min-height: 104px;
  line-height: 1.45;
  resize: vertical;
}

.program-resource-modal-card select:focus,
.program-resource-modal-card input:focus,
.program-resource-modal-card textarea:focus {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 16%, transparent);
}

.optional-label {
  display: inline-flex;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef3f6;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
}

.program-resource-modal-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.program-import-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.program-import-method {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
  min-height: 170px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  text-align: left;
  white-space: normal;
  cursor: pointer;
}

.program-import-method:hover,
.program-import-method:focus-visible {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 12%, transparent);
  background: color-mix(in srgb, var(--accent) 4%, white);
}

.program-import-method-copy {
  display: grid;
  align-content: start;
  gap: 6px;
}

.program-import-method-copy strong {
  font-size: 0.95rem;
}

.program-import-method-copy span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.program-import-method-copy small {
  width: fit-content;
  margin-top: 4px;
  padding: 4px 7px;
  border-radius: 4px;
  background: #eef5f7;
  color: #40606c;
  font-size: 0.72rem;
  font-weight: 700;
}

.program-import-method-action {
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.program-resource-modal-actions {
  justify-content: flex-end;
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.program-referential-results {
  display: grid;
  gap: 8px;
  max-height: 380px;
  padding-right: 3px;
  overflow-y: auto;
}

.program-referential-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.program-referential-result:hover,
.program-referential-result:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, white);
}

.program-referential-result:disabled {
  cursor: default;
  opacity: 0.68;
}

.program-referential-result-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.program-referential-result-copy small {
  color: var(--muted);
  font-size: 0.82rem;
}

.program-referential-result-action {
  padding: 6px 9px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--accent) 10%, white);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

#program-tab-documents .card-header {
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 0;
}

#program-documents {
  gap: 10px;
  margin-top: 10px;
}

.program-resource-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
}

.program-resource-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.program-resource-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 5px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
}

.program-resource-filter strong {
  min-width: 20px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #e7edf1;
  color: var(--ink);
  text-align: center;
}

.program-resource-filter:hover {
  background: white;
  color: var(--ink);
}

.program-resource-filter.active {
  background: white;
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(9, 48, 75, 0.12);
}

.program-resource-filter.active strong {
  background: color-mix(in srgb, var(--accent) 13%, white);
  color: var(--accent);
}

.program-resource-filter:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 16%, transparent);
}

.program-resource-source-count {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.program-resource-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.program-resource-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.program-resource-table th,
.program-resource-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.program-resource-table th {
  background: var(--surface);
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.program-resource-table tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 2.5%, white);
}

.program-resource-table tbody tr:last-child td {
  border-bottom: 0;
}

.program-resource-table th:nth-child(1) { width: 27%; }
.program-resource-table th:nth-child(2) { width: 150px; }
.program-resource-table th:nth-child(3) { width: auto; }
.program-resource-table th:nth-child(4) { width: 154px; }

.program-resource-table td:first-child strong {
  line-height: 1.3;
}

.program-resource-status-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #536774;
}

.program-resource-status-picker::after {
  content: "";
  position: absolute;
  right: 11px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  pointer-events: none;
  transform: translateY(-2px) rotate(45deg);
}

.program-resource-status-picker.is-to-add {
  border-color: #d6e1e7;
  background: #eef3f6;
}

.program-resource-status-picker.is-unavailable {
  border-color: #dde2e6;
  background: #f1f3f5;
  color: #596873;
}

.program-resource-status-picker:focus-within {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 14%, transparent);
}

.program-resource-status-picker.is-saving {
  opacity: 0.65;
}

.program-resource-status-select {
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-height: 30px;
  padding: 4px 29px 4px 10px;
  border: 0;
  border-radius: inherit;
  appearance: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
}

.program-resource-status-select:disabled {
  cursor: wait;
}

.program-resource-status-select:focus {
  outline: 0;
}

.program-resource-status {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
}

.program-resource-status.is-added {
  background: #e7f6ea;
  color: #26733b;
}

.program-resource-status.is-catalog {
  background: #e4f5f8;
  color: #087688;
}

.program-resource-table tbody tr.is-unavailable {
  background: #fbfcfd;
}

.program-resource-table tbody tr.is-unavailable td:first-child {
  color: var(--muted);
}

.program-resource-table tbody tr:not(.is-added) td {
  vertical-align: middle;
}

.program-resource-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.program-resource-item:last-child { border-bottom: 0; }
.program-resource-item-copy { display: grid; gap: 2px; min-width: 0; }
.program-resource-item small,
.program-resource-empty { color: var(--muted); font-size: 0.8rem; }

.program-resource-item strong {
  overflow-wrap: anywhere;
}

.program-resource-item-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
}

#program-documents .program-resource-item-actions .pill {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 0.74rem;
  white-space: nowrap;
}

.program-resource-source-toggle {
  margin-top: 6px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  text-align: left;
}

.program-resource-source-toggle:hover {
  text-decoration: underline;
}

.program-resource-source-toggle:focus-visible {
  border-radius: 3px;
  outline: 3px solid color-mix(in srgb, var(--accent) 14%, transparent);
}

.program-resource-no-action,
.program-resource-empty {
  color: var(--muted);
}

.program-resource-filter-empty td {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.program-course-catalog-shortcut {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 14px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 2.5%, white);
}

.program-course-catalog-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.program-course-catalog-copy > strong {
  line-height: 1.3;
}

.program-course-catalog-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 5%, white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.program-course-catalog-link strong {
  color: var(--accent);
  white-space: nowrap;
}

.program-course-catalog-link:hover,
.program-course-catalog-link:focus-visible {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 12%, transparent);
}

.program-resource-actions {
  display: grid;
  gap: 7px;
}

#program-documents .program-resource-action-button,
#program-documents .program-resource-remove-button {
  justify-content: center;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: white;
  color: var(--accent);
  white-space: normal;
}

#program-documents .program-resource-remove-button {
  border-color: #e5b7b3;
  color: #9a3d36;
}

#program-detail-side-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
}

#program-doc-import {
  white-space: nowrap;
}

.program-course-tools-list {
  display: grid;
  gap: 10px;
}

.program-course-tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: white;
}

.program-course-tool.is-stub {
  border-left-color: #9ba8b0;
}

.program-course-tool-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.program-course-tool p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.program-course-tool-processes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}

.program-course-tool-processes span {
  padding: 3px 6px;
  border-radius: 4px;
  background: #eef3f6;
  color: #4d6570;
  font-size: 0.68rem;
  font-weight: 700;
}

.program-course-tool-action {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.program-course-tool.is-stub .program-process-availability {
  background: #f1f3f5;
  color: var(--muted);
}

.program-course-tool-action .pill:disabled {
  background: #eef2f4;
  color: #89969e;
  cursor: not-allowed;
  opacity: 1;
}

.program-rac-fiche-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.5fr) auto;
  gap: 12px;
  align-items: end;
}

.program-rac-fiche-content,
.program-shared-rac-content {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.program-rac-fiche-content h4 {
  margin-top: 0;
}

.program-rac-fiche-content pre,
.program-shared-rac-content {
  max-height: 320px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 0.8rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.program-rac-fiche-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 16px;
}

.program-rac-comment-form,
.program-shared-rac-attachments {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.program-rac-comment-form .pill,
.program-shared-rac-attachments .pill {
  justify-self: start;
}

.program-shared-rac-attachments h4 {
  margin: 0;
}

#program-shared-rac-attachment-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.program-review-email-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.program-review-email-option input {
  width: auto;
  min-height: 0;
}

.program-follow-up-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.program-follow-up-metric {
  min-height: 72px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--metric-color, var(--navy-2));
  background: var(--surface);
}

.program-follow-up-metric strong,
.program-follow-up-metric span {
  display: block;
}

.program-follow-up-metric strong {
  margin-bottom: 3px;
  font-size: 1.35rem;
}

.program-follow-up-metric span {
  color: var(--muted);
  font-size: 0.78rem;
}

.program-follow-up-toolbar {
  flex-wrap: wrap;
  padding: 10px 0 12px;
  border-top: 1px solid var(--line);
}

.program-follow-up-toolbar label {
  display: grid;
  gap: 4px;
  min-width: 175px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.program-follow-up select,
.program-follow-up input,
.program-follow-up textarea {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--navy);
  font: inherit;
}

.program-follow-up select:hover,
.program-follow-up input:hover,
.program-follow-up textarea:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}

.program-follow-up-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.program-follow-up-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

.program-follow-up-table th,
.program-follow-up-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.program-follow-up-table th {
  background: var(--surface);
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.program-follow-up-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 750;
  text-transform: inherit;
  cursor: pointer;
}

.program-follow-up-sort span {
  color: var(--accent);
  font-size: 0.9rem;
  line-height: 1;
}

.program-follow-up-sort:hover,
.program-follow-up-sort:focus-visible {
  color: var(--navy);
}

.program-follow-up-sort:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.program-follow-up-table tbody tr:last-child td {
  border-bottom: 0;
}

.program-follow-up-table tr.is-overdue td {
  background: #fff6f4;
}

.program-follow-up-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f2f6f8;
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 700;
}

.program-follow-up-status[data-status="approved"],
.program-follow-up-status[data-status="published"] {
  border-color: #94c97a;
  background: #edf8e5;
  color: #2f6d22;
}

.program-follow-up-status[data-status="changes_requested"],
.program-follow-up-status[data-status="missing"] {
  border-color: #e2b3aa;
  background: #fff3f0;
  color: #a1392d;
}

.program-follow-up-secondary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.program-follow-up-panel {
  min-width: 0;
  padding-top: 12px;
  border-top: 2px solid var(--line);
}

.program-follow-up-panel h3 {
  font-size: 1rem;
}

.program-follow-up-feed {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
}

.program-follow-up-feed-item {
  padding: 9px 10px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
}

.program-exchange {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.program-exchange-heading,
.program-exchange-actions,
.program-exchange-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.program-exchange-heading p {
  margin: 4px 0 0;
}

.program-exchange-content {
  margin-top: 16px;
}

.program-exchange-summary {
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--surface);
}

.program-exchange-summary > div:first-child {
  display: grid;
  gap: 4px;
}

.program-exchange-summary small,
.program-exchange-history {
  color: var(--muted);
}

.program-exchange-summary .program-exchange-warning {
  color: var(--danger, #9f302f);
  font-weight: 650;
}

.program-exchange-history {
  margin-top: 12px;
  font-size: 0.88rem;
}

.program-exchange-publish-summary {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.program-exchange-publish-summary > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.65fr) minmax(0, 1.35fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.program-exchange-publish-summary > div:last-child {
  border-bottom: 0;
}

.program-exchange-publish-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.program-exchange-publish-summary strong {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.program-exchange-validity-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1540px) {
  .grid.two.program-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  #program-detail-side-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-process-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-follow-up-heading,
  .program-follow-up-secondary,
  .program-process-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .program-process-facts {
    grid-template-columns: 1fr;
  }

  .program-process-facts > div {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .program-process-facts > div:last-child {
    border-bottom: 0;
  }

  .program-follow-up-actions {
    flex-wrap: wrap;
  }

  .program-exchange-heading,
  .program-exchange-summary,
  .program-exchange-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .program-organized-sharing {
    align-items: stretch;
    flex-direction: column;
  }

  .program-organized-sharing .pill {
    align-self: start;
  }

  .program-exchange-validity-fields {
    grid-template-columns: 1fr;
  }

  .program-import-methods {
    grid-template-columns: 1fr;
  }

  .program-import-method {
    min-height: 0;
  }

  .program-resource-table-wrap {
    overflow: visible;
    border: 0;
  }

  .program-resource-table,
  .program-resource-table tbody,
  .program-resource-table tr,
  .program-resource-table td {
    display: block;
    width: 100%;
  }

  .program-resource-table {
    min-width: 0;
  }

  .program-resource-table thead {
    display: none;
  }

  .program-resource-table tr {
    box-sizing: border-box;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    overflow: hidden;
  }

  .program-resource-table td {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(116px, 34%) minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .program-resource-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .program-resource-table tr td:last-child {
    border-bottom: 0;
  }

  .program-resource-actions {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .program-resource-item {
    grid-template-columns: 1fr;
  }

  .program-resource-item-actions {
    justify-items: start;
  }

  .program-resource-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .program-resource-source-count {
    align-self: flex-start;
  }

  .program-course-catalog-shortcut {
    grid-template-columns: 1fr;
  }

  .program-course-tool,
  .program-course-tool-action {
    align-items: stretch;
    flex-direction: column;
  }

  .program-rac-fiche-meta,
  .program-rac-fiche-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .program-resource-modal-card {
    gap: 15px;
    padding: 16px;
  }

  .program-resource-modal-fields {
    padding: 13px;
  }

  .program-resource-table td {
    grid-template-columns: minmax(105px, 38%) minmax(0, 1fr);
    gap: 9px;
  }

  .program-resource-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-resource-filter {
    justify-content: space-between;
  }

  #program-detail-side-tabs {
    grid-template-columns: 1fr;
  }

  .program-process-tabs {
    grid-template-columns: 1fr;
  }
}
