:root {
  --bg: #f4f6f2;
  --ink: #112015;
  --muted: #435248;
  --accent: #0e7a52;
  --accent-2: #d4f5a8;
  --card: #ffffff;
  --line: #d9e3d5;
  --danger: #972f2f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at 12% 8%, #f7ffe8 0%, transparent 40%),
              radial-gradient(circle at 84% 20%, #dcf6ea 0%, transparent 40%),
              var(--bg);
  font-family: Manrope, "Segoe UI", sans-serif;
}

.bg-shape {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(32px);
  opacity: 0.45;
}

.shape-a {
  width: 320px;
  height: 320px;
  background: #baf34a;
  top: -80px;
  right: -70px;
}

.shape-b {
  width: 420px;
  height: 420px;
  background: #7fd4b6;
  bottom: -180px;
  left: -150px;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 94vw);
  margin: 24px auto 48px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(130deg, var(--accent) 0%, #1e995d 100%);
  color: #fff;
}

.save-status {
  font-size: 0.85rem;
  color: var(--muted);
}

.tabs {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab {
  background: #eff5ec;
  border: 1px solid #d6e3cf;
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 700;
  cursor: pointer;
}

.tab.active {
  border-color: #8ecf9f;
  background: #e3f4dd;
}

.page {
  display: none;
  margin-top: 20px;
}

.page.active {
  display: block;
  animation: enter 220ms ease;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-head h2 {
  margin: 0;
  font-family: "Space Grotesk", Manrope, sans-serif;
}

.page-head p {
  margin-top: 8px;
  color: var(--muted);
}

.card-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(26, 49, 21, 0.06);
}

.card h3 {
  margin: 0;
  font-size: 1rem;
}

.card p {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.card a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.card textarea {
  margin-top: 8px;
  width: 100%;
  min-height: 108px;
  resize: vertical;
  border: 1px solid #c5d6c0;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  line-height: 1.35;
  background: #fbfef8;
}

.card textarea:focus {
  outline: 2px solid #c0ef94;
  border-color: #93d45f;
}

.architecture-note {
  margin-top: 16px;
  background: #f6ffed;
  border: 1px solid #d7ebc2;
  border-radius: 12px;
  padding: 14px;
}

.architecture-note h3 {
  margin-top: 0;
}

code {
  background: #f0f5ed;
  border: 1px solid #d6e1cf;
  border-radius: 5px;
  padding: 1px 5px;
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
  }

  .actions {
    width: 100%;
    justify-content: space-between;
  }
}
