.app--card-setup .main {
  padding-bottom: 48px;
}

.app--card-setup input,
.app--card-setup select {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--ink);
}

.setup-guide {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  border: 1px solid #98c9cd;
  border-radius: 10px;
  background: var(--teal-soft);
  padding: 18px;
}

.setup-guide h2,
.setup-guide p {
  margin: 0;
}

.setup-guide p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.setup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 8px;
  align-content: start;
  border: 1px solid rgba(20, 112, 119, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px;
}

.setup-steps li > span {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.setup-steps strong {
  font-size: 13px;
}

.setup-steps small {
  color: var(--muted);
  line-height: 1.45;
}

.status-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.setup-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.setup-panel {
  min-width: 0;
}

.setup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.setup-form .field__hint {
  max-width: none;
  overflow: visible;
  line-height: 1.5;
  text-overflow: clip;
  white-space: normal;
}

.setup-form--batch {
  align-items: end;
}

.master-note,
.billing-preview {
  margin: 14px 0 0;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.master-note {
  border: 1px dashed var(--line-strong);
  background: var(--surface-2);
}

.billing-preview {
  border: 1px solid #d7ad51;
  background: #fff8e5;
  color: var(--ink);
}

.field--wide {
  grid-column: 1 / -1;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--ink);
  font-weight: 800;
}

.check-field input {
  width: 18px;
  min-height: 18px;
}

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

.setup-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.setup-item__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.setup-item__title {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.setup-item__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 0 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.setup-item__body,
.setup-result {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.setup-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  line-height: 1.2;
  text-decoration: none;
}

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #f8fbfb;
  padding: 18px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

@media (max-width: 900px) {
  .setup-guide,
  .setup-grid,
  .setup-form {
    grid-template-columns: 1fr;
  }

  .setup-steps {
    grid-template-columns: 1fr;
  }

  .field--wide {
    grid-column: auto;
  }
}
