:root {
  --bg: #f5f2ed;
  --panel: #fffaf3;
  --text: #22201c;
  --muted: #6f675d;
  --border: #e4dbcf;
  --accent: #5e704d;
  --accent-2: #b77b3b;
  --shadow: 0 12px 32px rgba(55, 43, 31, .10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #fbf5e8 0, var(--bg) 42%, #eee9df 100%);
  color: var(--text);
  line-height: 1.45;
}

.hero, main, footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding-top: 42px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.subtitle {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.updated, .muted, footer {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button, .pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  background: white;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

button.secondary {
  box-shadow: var(--shadow);
}

.panel {
  background: rgba(255, 250, 243, .88);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  margin: 18px 0;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 10px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.summary-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: white;
}

.summary-card .num {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: var(--accent);
}

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

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  min-height: 240px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.pill {
  padding: 4px 9px;
  font-size: .78rem;
  cursor: default;
  background: #f7f3ec;
}

.pill.priority-high, .pill.cost-high { background: #f6e2dd; }
.pill.priority-medium, .pill.cost-medium { background: #f7edd6; }
.pill.priority-low, .pill.cost-low { background: #e8f0df; }

.notes {
  color: var(--muted);
}

.next {
  padding-left: 18px;
  margin-bottom: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-time {
  color: var(--accent);
  font-weight: 700;
}

.decision-list {
  margin-top: 0;
  padding-left: 20px;
}

.decision-list li {
  margin-bottom: 10px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: .86rem;
}

@media (max-width: 760px) {
  .hero {
    flex-direction: column;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media print {
  body { background: white; }
  .hero-actions, .filters { display: none; }
  .panel, .card { box-shadow: none; break-inside: avoid; }
}
