:root {
  --green: #0f4b33;
  --green-2: #2f8f3b;
  --orange: #ff9300;
  --cream: #fbf6ef;
  --sand: #8c7b68;
  --line: #eadfce;
  --danger: #b42318;
  --shadow: 0 22px 70px rgba(37, 51, 43, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8f4ec;
  color: #173b2b;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 0.9rem 1.25rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

button:hover {
  background: #123f2e;
  box-shadow: 0 12px 24px rgba(15, 75, 51, 0.18);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.secondary {
  background: #fff;
  color: var(--green);
  border: 1px solid var(--line);
}

.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--green);
  padding: 0.6rem 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 252, 247, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.session {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 75, 51, 0.12);
  color: var(--orange);
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 1.15rem;
}

.brand small,
.session span,
.muted {
  color: var(--sand);
}

.brand-green {
  color: var(--green-2);
}

.brand-orange {
  color: var(--orange);
}

main {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.login-card,
.hero,
.card,
.metric {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.login-card {
  display: grid;
  gap: 1.5rem;
  max-width: 560px;
  margin: 8vh auto 0;
  padding: 2rem;
  border-radius: 32px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 34px;
  margin-bottom: 1.5rem;
}

.hero h1,
.login-card h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero p,
.login-card p {
  margin: 0;
  max-width: 720px;
  color: #5e715f;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 0.5rem !important;
  color: var(--orange) !important;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.metric {
  border-radius: 24px;
  padding: 1rem;
}

.metric strong {
  display: block;
  color: var(--green);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.04em;
}

.metric span {
  color: var(--sand);
  font-size: 0.82rem;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border-radius: 28px;
  padding: 1.25rem;
}

.card h2 {
  margin: 0 0 0.4rem;
  color: var(--green);
  letter-spacing: -0.02em;
}

.stack {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: #315c45;
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf3;
  color: #173b2b;
  outline: none;
  padding: 0.85rem 0.95rem;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 147, 0, 0.12);
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf3;
  padding: 0.65rem 0.85rem;
}

.checks input {
  width: auto;
}

pre {
  overflow: auto;
  max-height: 220px;
  margin: 1rem 0 0;
  padding: 0.9rem;
  border-radius: 16px;
  background: #102b20;
  color: #d8ffe6;
  font-size: 0.8rem;
}

.error {
  min-height: 1.2rem;
  color: var(--danger) !important;
  font-weight: 700;
}

.table {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf3;
}

.row strong,
.row code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row small {
  display: block;
  margin-top: 0.25rem;
  color: var(--sand);
}

.pill {
  border-radius: 999px;
  background: #eaf6ec;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.35rem 0.6rem;
  white-space: nowrap;
}

.pill.orange {
  background: #fff0d4;
  color: #ad5c00;
}

.pill.gray {
  background: #f2ede5;
  color: #756656;
}

.checklist {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: #485d50;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  main {
    width: min(100% - 20px, 1480px);
    padding-top: 1rem;
  }

  .topbar,
  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .metrics,
  .split {
    grid-template-columns: 1fr;
  }

  .login-card,
  .card,
  .hero {
    border-radius: 24px;
  }
}
