.pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08)
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12)
}

.form {
  display: grid;
  gap: 14px
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px
}

legend {
  padding: 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 4px
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--ink)
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  border: none;
  background: rgba(248, 247, 255, 0.8);
  width: fit-content;
  position: relative;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease
}

.toggle:hover {
  background: rgba(248, 247, 255, 0.95);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06)
}

.toggle-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px
}

.toggle-ui {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #e2e8f0;
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0
}

.toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease
}

.toggle-input:checked+.toggle-ui {
  background: rgba(16, 185, 129, 0.7)
}

.toggle-input:checked+.toggle-ui::after {
  transform: translateX(16px)
}

.toggle-text {
  font-weight: 600;
  color: var(--ink)
}

input {
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease
}

input:focus {
  outline: none;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06), 0 0 0 3px rgba(59, 130, 246, 0.1)
}

textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.9);
  resize: vertical;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease
}

textarea:focus {
  outline: none;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06), 0 0 0 3px rgba(59, 130, 246, 0.1)
}

input[type="file"] {
  padding: 10px;
  background: #f8f7ff
}

input[type="checkbox"] {
  padding: 0
}

select {
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease
}

select:focus {
  outline: none;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06), 0 0 0 3px rgba(59, 130, 246, 0.1)
}

select[multiple] {
  min-height: 84px
}

.form-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center
}


pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.85rem
}


.form-compact {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.checkbox-group-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0
}

.checkbox-group-compact {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.checkbox-group-compact .checkbox-item {
  padding: 6px 10px;
  font-size: 0.85rem
}

code {
  font-family: "Consolas", "Courier New", monospace
}
