* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f6f8fa;
  color: #1f2933;
  font: 14px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: #1f75cb;
  color: #fff;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.5;
}

input[type="search"],
input[type="text"] {
  width: 100%;
  min-height: 36px;
  border: 1px solid #c8d1dc;
  border-radius: 6px;
  padding: 6px 10px;
  background: #fff;
}

.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
}

.header,
.sectionHeader,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header h1,
.section h2 {
  margin: 0;
}

.header p {
  margin: 4px 0 0;
  color: #667085;
}

.section {
  margin-top: 14px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.serviceList {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.serviceRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  border-bottom: 1px solid #edf1f5;
  padding-bottom: 8px;
}

.badge {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  white-space: nowrap;
}

.badge.exists {
  background: #e8f5e9;
  color: #1b7f3a;
}

.badge.create {
  background: #fff4df;
  color: #945800;
}

.formGrid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  margin-top: 12px;
}

.actions {
  justify-content: flex-end;
  margin-top: 12px;
}

.check {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #475467;
}

#resultBox {
  min-height: 90px;
  max-height: 280px;
  overflow: auto;
  margin: 12px 0 0;
  border-radius: 6px;
  background: #111827;
  color: #e5e7eb;
  padding: 12px;
}

@media (max-width: 720px) {
  .header,
  .sectionHeader,
  .actions,
  .formGrid {
    display: block;
  }

  .formGrid label,
  .actions button {
    display: block;
    width: 100%;
    margin-top: 10px;
  }
}
