.admin-body {
  display: block;
  padding: 0;
  align-items: initial;
  justify-content: initial;
}

.admin {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.admin__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.admin__header h1 {
  margin: 0 0 4px;
  font-size: 24px;
}

.link-btn {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  padding-top: 6px;
}

.link-btn:hover { text-decoration: underline; }

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 20px;
}

.panel h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}

textarea,
.rows input,
.rows textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fbfaf7;
  outline: none;
  resize: vertical;
}

textarea:focus,
.rows input:focus,
.rows textarea:focus {
  border-color: var(--accent);
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.row {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #fbfaf7;
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
}

.row--pris {
  grid-template-columns: 1fr 1fr;
}

.row--pris textarea {
  grid-column: 1 / -1;
}

.row--faq {
  grid-template-columns: 1fr;
}

.row label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: block;
  margin-bottom: 3px;
}

.row-remove {
  justify-self: end;
  border: none;
  background: none;
  color: #c0392b;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
}

.panel__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.primary-btn {
  border: none;
  background: var(--ink);
  color: white;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}

.secondary-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}

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

.status-msg.ok { color: #2e7d32; }
.status-msg.error { color: #c0392b; }

.toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
  transition: color 0.2s ease;
}

.toggle-label small {
  font-weight: 400;
  font-size: 11px;
}

.toggle-label.active {
  color: var(--ink);
}

.switch {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  display: block;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--border);
  transition: background 0.2s ease;
  cursor: pointer;
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.switch input:checked + .switch-track {
  background: var(--accent);
}

.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(20px);
}

.switch input:disabled + .switch-track {
  opacity: 0.6;
  cursor: default;
}
