.scope-switcher {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  background: #e5e7e1;
  border-radius: 14px;
}

.scope-button {
  min-width: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scope-button.active {
  background: var(--paper);
  color: var(--green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
}

.commitment-toolbar,
.commitment-actions,
.commitment-date-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.commitment-toolbar {
  margin-bottom: 12px;
}

.compact-primary {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 9px 13px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.commitment-list {
  display: grid;
  gap: 10px;
}

.commitment-card {
  padding: 16px;
  border: 1px solid rgba(23, 63, 53, .09);
  border-radius: 17px;
  background: var(--paper);
}

.commitment-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.commitment-card h3 {
  margin: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.commitment-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.commitment-amount {
  white-space: nowrap;
  font-weight: 900;
}

.commitment-actions {
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.commitment-action {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 8px 13px;
  background: #e6ece9;
  color: var(--green);
  font-weight: 800;
}

.commitment-action.remove {
  background: #f4e3df;
  color: var(--danger);
}

.commitment-date-note {
  margin: 17px 0;
  padding: 13px 14px;
  border-radius: 13px;
  background: #edf0ed;
  font-size: 13px;
}

.commitment-date-note span {
  color: var(--muted);
}

.form-secondary {
  margin-top: 9px;
}
