.semester-workspace {
  grid-template-columns: minmax(440px, 490px) minmax(0, 1fr);
}
.semester-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
}
.semester-fields input,
.semester-fields select {
  max-width: 100%;
}
.semester-editor h3 {
  margin: 0 0 4px;
  color: #243740;
  font-size: 15px;
}
.semester-assignments {
  margin-top: 17px;
}
.semester-summary-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
}
.semester-summary {
  margin: 7px 0;
  color: #314e5d;
  font-size: 12px;
  font-weight: 700;
}
.semester-summary:empty {
  display: none;
}
.semester-rows {
  display: grid;
  gap: 7px;
  max-height: 29rem;
  overflow: auto;
  margin: 0 -6px 10px;
  padding: 8px 7px;
}
.semester-rows:empty {
  display: none;
}
.semester-row {
  display: grid;
  grid-template-columns: minmax(119px, 1fr) minmax(0, .85fr) minmax(0, 1.3fr) 42px;
  align-items: start;
  gap: 6px;
  min-width: 0;
  padding: 9px;
  border: 1px solid #d6dfe3;
  border-radius: 7px;
  background: #f4f7f9;
}
.semester-row label {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: #314856;
  font-size: 12px;
  font-weight: 700;
}
.semester-row label.cp-field {
  margin-bottom: 0;
}
.semester-row input,
.semester-row textarea,
.semester-paste textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 6px 7px;
  border: 1px solid #afbdc4;
  border-radius: 5px;
  background: #fff;
  color: #202e36;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
}
.semester-row textarea,
.semester-paste textarea {
  resize: vertical;
}
.semester-row textarea {
  max-height: 10rem;
}
.semester-row [aria-invalid="true"] {
  border-color: #a74b37;
}
.semester-remove,
.semester-small-button {
  min-height: 42px;
  padding: 5px 10px;
  border: 1px solid #a9bac3;
  border-radius: 6px;
  background: #fff;
  color: #264b5d;
  font-size: 12px;
  font-weight: 700;
}
.semester-remove {
  align-self: end;
  width: 42px;
  color: #8a4231;
  font-size: 17px;
}
.semester-remove:not(:disabled):hover,
.semester-small-button:not(:disabled):hover {
  border-color: #5d7784;
  background: #eaf1f5;
}
.semester-row-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #844128;
  font-size: 12px;
}
.semester-edit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
}
.semester-edit-actions .cp-reset,
.semester-summary-line .cp-reset {
  min-height: 40px;
}
.semester-outside-edit {
  display: block;
  width: fit-content;
  margin: 7px 0;
  color: #264b5d;
  font-size: 12px;
  font-weight: 700;
}
#outsideSummary[hidden] ~ .semester-outside-edit {
  display: none;
}
.semester-paste {
  margin-top: 18px;
  padding: 0 11px;
  border: 1px solid #d6dfe3;
  border-radius: 7px;
}
.semester-paste[open] {
  padding-bottom: 11px;
}
.semester-paste summary {
  padding: 11px 0;
  color: #293f4c;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}
.semester-paste .cp-field {
  margin-bottom: 3px;
}
.semester-paste textarea {
  min-height: 92px;
}
.semester-list {
  max-height: 12rem;
  margin: 7px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
  color: #314856;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.semester-list:empty {
  display: none;
}
.semester-list li {
  padding: 5px 7px;
  border-bottom: 1px solid #dce4e7;
}
.semester-errors {
  color: #844128;
  background: #fff6eb;
}
.semester-preview-options select {
  min-height: 42px;
  padding-inline: 6px;
}
.semester-list-download {
  margin-inline-start: auto;
}
.semester-stage .cp-sheet {
  margin-block: 0;
}
.semester-stage .cp-sheet:empty {
  min-height: 10rem;
}
.semester-stage .semester-overflow {
  color: #754823;
  font-weight: 700;
}
@media (max-width: 1100px) {
  .semester-workspace {
    grid-template-columns: minmax(350px, 435px) minmax(0, 1fr);
  }
}
@media (max-width: 970px) {
  .semester-row {
    grid-template-columns: minmax(105px, 1fr) minmax(0, 1fr) 42px;
  }
  .semester-row label:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .semester-remove {
    grid-column: 3;
    grid-row: 1;
  }
}
@media (max-width: 740px) {
  .semester-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .semester-rows {
    max-height: 34rem;
  }
  .semester-preview-options {
    padding-inline: 12px;
  }
  .semester-list-download {
    flex-basis: 100%;
    width: fit-content;
    margin-inline-start: 0;
  }
}
