:root {
  color-scheme: light;
  --bg: #efe7d2;
  --panel: rgba(255, 252, 244, 0.9);
  --panel-strong: #fffdf7;
  --text: #14211d;
  --muted: #56655e;
  --accent: #0f7b5a;
  --accent-strong: #0a523d;
  --warn: #8c5a17;
  --warn-bg: #fff1d8;
  --ok-bg: #dff4ea;
  --border: rgba(20, 33, 29, 0.12);
  --shadow: 0 24px 60px rgba(20, 33, 29, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 123, 90, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(140, 90, 23, 0.12), transparent 26%),
    linear-gradient(180deg, #f6f1e4 0%, var(--bg) 100%);
  color: var(--text);
}

.page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 32px;
}

.hero-copy {
  min-width: 0;
}

.hero-status {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.status-box {
  padding: 20px;
  border-radius: 22px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
}

.status-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.status-note {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.05;
}

.lead {
  max-width: 700px;
  margin: 16px 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.lead.compact {
  margin-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.pill-loading {
  background: #f2ebe0;
  color: var(--muted);
}

.pill-ok {
  background: var(--ok-bg);
  color: var(--accent-strong);
}

.pill-warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.section-head {
  margin-bottom: 18px;
}

.section-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.panel {
  padding: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.kv-list {
  display: grid;
  gap: 12px;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
}

.kv-key {
  color: var(--muted);
}

.kv-value {
  font-weight: 700;
  text-align: right;
}

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

.module-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 235, 0.96));
  border: 1px solid var(--border);
}

.module-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.module-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.module-status {
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef6f2;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.module-card p,
.route-list,
.next-actions {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.next-actions,
.route-list {
  padding-left: 20px;
}

.route-list code {
  font-size: 0.94rem;
  color: var(--accent-strong);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.button-secondary {
  background: rgba(20, 33, 29, 0.08);
  color: var(--text);
}

.form-stack {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font: inherit;
}

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
}

.form-message.success {
  color: var(--accent-strong);
}

.form-message.error {
  color: #a1361f;
}

.data-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.list-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.list-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.list-card-head h3,
.list-card p {
  margin: 0;
}

.list-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.mini-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf4ef;
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.empty-state {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  border: 1px dashed var(--border);
}

.highlight {
  background: linear-gradient(135deg, rgba(11, 87, 66, 0.95), rgba(18, 129, 95, 0.9));
  color: #f7fbf8;
}

.highlight .section-kicker,
.highlight .lead {
  color: rgba(247, 251, 248, 0.84);
}

.highlight h2 {
  color: #ffffff;
}

@media (max-width: 820px) {
  .page {
    width: min(100% - 20px, 1080px);
    padding: 24px 0 40px;
  }

  .hero {
    padding: 24px;
    border-radius: 22px;
    grid-template-columns: 1fr;
  }

  .two-up,
  .three-up,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .kv-row {
    flex-direction: column;
  }

  .kv-value {
    text-align: left;
  }
}
