#settingsDialog {
  width: min(720px, calc(100% - 24px));
}

.set-plan-editor {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}

.set-plan-head,
.set-plan-row header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.set-plan-head > div,
.set-plan-row header > div {
  min-width: 0;
}

.set-plan-head strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.set-plan-head small {
  margin-top: 3px;
  color: var(--muted);
}

#setCountOut {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 99px;
  background: var(--lime);
  color: #080b0f;
  font-weight: 900;
}

.set-plan-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.set-plan-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}

.set-plan-row header strong {
  color: var(--lime);
  font-size: 16px;
}

.set-plan-row .remove-set {
  min-width: 72px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12px;
}

.set-plan-row .remove-set:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.set-plan-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.set-plan-fields label {
  color: var(--muted);
}

.set-plan-fields small {
  min-height: 18px;
}

.add-set {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 2px dashed #eaff3870;
  background: #eaff3810;
  color: var(--lime);
  font-weight: 900;
}

.set-plan-editor > p {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .set-plan-editor {
    margin-inline: -4px;
    padding: 12px;
  }

  .set-plan-fields {
    gap: 8px;
  }

  .set-plan-fields label {
    font-size: 13px;
  }
}
