.section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  color: var(--dsw-alias-label-primary);
}

.title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.intro {
  margin: 0;
  font-size: 13px;
  color: var(--dsw-alias-label-tertiary);
}

.notice {
  margin: 0;
  font-size: 12px;
  color: var(--dsw-alias-state-warn-label);
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rowCard {
  border: 1px solid var(--dsw-alias-border-l2);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--dsw-alias-bg-layer-3);
}

.rowHead {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rowName {
  font-size: 15px;
  font-weight: 600;
}

.rowActions {
  display: inline-flex;
  gap: 8px;
  margin-left: auto;
}

.primaryButton {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  background: var(--dsw-alias-button-primary-fill);
  color: var(--dsw-alias-label-primary-foreground);
  font: inherit;
  cursor: pointer;
}

.secondaryButton {
  border: 1px solid var(--dsw-alias-border-l2);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--dsw-alias-bg-layer-3);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.dangerButton {
  border: none;
  background: none;
  color: var(--dsw-alias-state-error-primary);
  font: inherit;
  cursor: pointer;
}

.primaryButton:disabled,
.secondaryButton:disabled,
.dangerButton:disabled {
  opacity: 0.5;
  cursor: default;
}

.editor {
  border: 1px solid var(--dsw-alias-border-l2);
  border-radius: 12px;
  background: var(--dsw-alias-bg-layer-2);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.editorHeader {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.editorTitle {
  font-size: 14px;
  font-weight: 600;
}

.editorRoute {
  font-size: 12px;
  color: var(--dsw-alias-label-tertiary);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fieldLabel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--dsw-alias-label-secondary);
}

.linkButton {
  border: none;
  background: none;
  padding: 0;
  color: var(--dsw-alias-label-tertiary);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.linkButton:disabled {
  opacity: 0.5;
  cursor: default;
}

.advancedHint {
  margin: 0;
  font-size: 12px;
  color: var(--dsw-alias-label-tertiary);
}

.editorActions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.addBlock {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.addButton {
  align-self: flex-start;
  border: 1px solid var(--dsw-alias-border-l2);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 13px;
  background: var(--dsw-alias-bg-layer-3);
  color: inherit;
  cursor: pointer;
}

.addButton:disabled {
  opacity: 0.5;
  cursor: default;
}

.addCard,
.setupCard {
  border: 1px solid var(--dsw-alias-border-l2);
  border-radius: 12px;
  background: var(--dsw-alias-bg-layer-3);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.addCard .editor,
.setupCard .editor {
  border: none;
  background: none;
  padding: 0;
}

.customized {
  border-top: 1px solid var(--dsw-alias-border-l2);
  padding-top: 10px;
}

.customizedSummary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--dsw-alias-label-secondary);
  list-style: revert;
}

.customizedBody {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}

.input {
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid var(--dsw-alias-border-l2);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  background: var(--dsw-alias-bg-layer-1);
  color: var(--dsw-alias-label-primary);
}

.input:focus {
  outline: none;
  border-color: var(--dsw-alias-brand-primary);
}

.input::placeholder {
  color: var(--dsw-alias-label-dimmed);
}

.error {
  margin: 0;
  font-size: 12px;
  color: var(--dsw-alias-state-error-primary);
}

.deleteDialog {
  width: min(480px, 100%);
}

.deleteConfirm:not(:disabled) {
  border-color: var(--dsw-alias-state-error-primary);
  color: var(--dsw-alias-state-error-primary);
}

.deleteConfirm:hover:not(:disabled) {
  background: var(--dsw-alias-interactive-bg-hover-danger);
}
