:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #5d6964;
  --line: #d9e0dc;
  --paper: #f8faf7;
  --panel: #ffffff;
  --green: #1f7a4d;
  --amber: #a56513;
  --red: #ad2f2a;
  --blue: #215f8a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: #16362f;
  color: white;
}

.eyebrow {
  margin: 0 0 6px;
  color: #a7d8c1;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(28px, 4vw, 48px); line-height: 1.05; }
h2 { margin-bottom: 0; font-size: 18px; }
main { padding: 24px clamp(18px, 4vw, 56px) 48px; }
.value-copy { max-width: 980px; margin: 12px 0 0; color: #d9eee5; font-size: 17px; line-height: 1.45; }
.value-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.value-list span {
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 7px 10px;
  color: #eef8f3;
  font-size: 13px;
}
.coach { color: var(--muted); font-size: 13px; line-height: 1.45; margin-bottom: 14px; }

button, a {
  border: 0;
  border-radius: 7px;
  background: var(--green);
  color: white;
  padding: 11px 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button.ghost { background: #ecf1ee; color: var(--ink); }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.metrics div, .panel, dialog {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(24, 33, 31, 0.05);
}

.metrics div { padding: 16px; }
.metrics span, .panel-head span, label { color: var(--muted); font-size: 13px; }
.metrics strong { display: block; margin-top: 8px; font-size: 28px; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.panel { padding: 18px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.stack { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 11px;
  font: inherit;
  background: white;
}
textarea { resize: vertical; }

.jobs { display: grid; gap: 12px; }
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f4f8f6;
  padding: 18px;
}
.empty-state p { color: var(--muted); margin: 6px 0 0; }
.job {
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.2fr);
  gap: 16px;
}
.job.red { border-left-color: var(--red); }
.job.amber { border-left-color: var(--amber); }
.job h3 { margin: 0 0 6px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.facts div { background: #f1f5f3; border-radius: 7px; padding: 10px; }
.facts span { display: block; color: var(--muted); font-size: 12px; }
.facts strong { display: block; margin-top: 3px; }
.milestones { display: grid; gap: 7px; }
.milestones label { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.milestones input { width: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.actions button[disabled] { background: #9aa5a0; cursor: not-allowed; }
.disclaimer { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
dialog { width: min(760px, calc(100vw - 28px)); padding: 18px; }
dialog::backdrop { background: rgba(0, 0, 0, 0.35); }
pre { white-space: pre-wrap; background: #f5f7f6; padding: 14px; border-radius: 7px; max-height: 50vh; overflow: auto; }

@media (max-width: 860px) {
  .topbar, .panel-head { align-items: flex-start; flex-direction: column; }
  .metrics, .layout, .job, .facts, .row { grid-template-columns: 1fr; }
}
