/* Curator: request composer, proposed problem set, and saved problem sets. */

.curator__composer,
.curator__proposal {
  max-width: 48rem;
}

.curator__composer {
  margin-top: 2rem;
}

.curator__label {
  display: block;
  margin-bottom: .6rem;
  font-weight: 500;
}

.curator__input {
  display: block;
  width: 100%;
  min-height: 7rem;
  padding: .85rem 1rem;
  resize: vertical;
  border: 1px solid var(--rule);
  border-radius: var(--r-control);
  background: var(--wash);
  line-height: 1.55;
}

.curator__input:focus {
  background: var(--paper);
}

.curator__input::placeholder {
  color: var(--graphite);
  opacity: 1;
}

.curator__hint {
  margin-top: .6rem;
  color: var(--graphite);
  font-size: var(--t-xs);
}

.curator__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin-top: 1rem;
}

.curator__status {
  color: var(--graphite);
  font-size: var(--t-s);
}

.curator__notice {
  font-size: var(--t-s);
  overflow-wrap: anywhere;
}

.curator__notice:not(:empty) {
  margin-top: .85rem;
}

/* Proposed set */

.curator__proposal {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-box);
}

.curator__proposal h2:focus {
  outline: none;
}

.curator__summary {
  margin-top: .75rem;
  max-width: 72ch;
}

.curator__count-field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1.5rem;
}

.curator__counts {
  display: flex;
  gap: .5rem;
}

.curator__count {
  min-width: 3.5rem;
  font-variant-numeric: tabular-nums;
}

.curator__count[aria-pressed="true"],
.curator__count[aria-pressed="true"]:hover {
  background: var(--ink);
  color: var(--paper);
}

.curator__picks {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: pick;
}

.curator__pick {
  position: relative;
  padding: 1rem 0 1rem 2.25rem;
  border-top: 1px solid var(--rule);
  counter-increment: pick;
}

.curator__pick::before {
  content: counter(pick);
  position: absolute;
  left: 0;
  top: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.curator__pick-meta {
  color: var(--graphite);
  font-size: var(--t-s);
}

.curator__pick-question {
  margin-top: .35rem;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.curator__pick-reason {
  margin-top: .5rem;
  color: var(--graphite);
  font-size: var(--t-s);
}

.curator__save {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.curator__name-field {
  flex: 1 1 16rem;
}

.curator__name {
  min-height: 44px;
  padding: .5rem .75rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-control);
  background: var(--paper);
}

.curator__save-actions {
  display: flex;
  gap: .5rem;
}

/* Saved sets */

.curator__saved {
  margin-top: 3rem;
}

.curator__saved h2 {
  margin-bottom: 1rem;
}

.curator__saved .curator__notice:not(:empty) {
  margin: 0 0 1rem;
}

.curator__saved .state .btn {
  margin-left: .5rem;
}

.hw-box__name {
  display: block;
  font-size: var(--t-l);
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

/* Problem set session */

.curator__manage {
  margin-top: .75rem;
}

.curator__set-actions {
  display: flex;
  gap: .25rem;
  margin-left: -.5rem;
}

.curator__manage .curator__save {
  max-width: 36rem;
  padding-top: 0;
  border-top: 0;
}
