:root {
  color-scheme: light;
  --ink: #1f2937;
  --soft-ink: #475669;
  --line: #d1dae6;
  --paper: #ffffff;
  --bg: #f2f8f6;
  --bg-alt: #fffaf3;
  --green: #1e855a;
  --green-strong: #166845;
  --blue: #2f6bb2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    linear-gradient(150deg, var(--bg-alt) 0%, #f4f9ff 48%, var(--bg) 100%);
}

.admin-shell {
  width: min(1100px, calc(100% - 30px));
  margin: 0 auto;
  padding: 34px 0 44px;
}

.admin-header {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: 2.35rem;
  line-height: 1.05;
}

.lede {
  margin: 0;
  max-width: 720px;
  color: var(--soft-ink);
  line-height: 1.55;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 700;
}

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

.editor-section {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.editor-section h2 {
  margin: 0 0 4px;
  font-size: 1.18rem;
}

label {
  display: grid;
  gap: 6px;
  color: #2b3949;
  font-size: 0.92rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #bcc9d9;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

textarea {
  resize: vertical;
  min-height: 72px;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(47, 107, 178, 0.3);
  border-color: var(--blue);
}

.actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
  padding: 14px 0 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #b9c6d7;
  border-radius: 8px;
  background: #fff;
  color: #203041;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  color: #fff;
  border-color: #16724d;
  background: linear-gradient(180deg, #249566 0%, #1c7e56 100%);
}

.btn.link {
  background: #f9fcff;
}

#status-message {
  margin: 0;
  color: var(--green-strong);
  font-weight: 700;
}

@media (max-width: 920px) {
  .admin-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .admin-shell {
    width: min(100% - 18px, 560px);
  }

  .admin-header {
    display: grid;
  }

  h1 {
    font-size: 2rem;
  }
}
