:root {
  --bg: #f4f1ea;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --ink: #10233d;
  --muted: #64748b;
  --line: #d9e1ea;
  --gold: #c3a048;
  --navy: #19324f;
  --navy-2: #264d75;
  --green: #2f6b4f;
  --amber: #a06d16;
  --red: #a44d3d;
  --shadow: 0 18px 40px rgba(16, 35, 61, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(195, 160, 72, 0.14), transparent 34%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  background: #eef2f7;
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
}

.page-shell {
  width: min(1280px, calc(100vw - 32px));
  margin: 24px auto 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
}

.topbar h1,
.hero h2,
.panel h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.topbar h1 {
  font-size: 2rem;
  margin-top: 8px;
}

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

.nav a,
.button-link,
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav a.active {
  background: rgba(255, 255, 255, 0.14);
}

.flash {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(47, 107, 79, 0.1);
  color: var(--green);
  border: 1px solid rgba(47, 107, 79, 0.2);
}

.hero {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 20px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-kicker,
.section-head span,
.panel-label,
.metric span,
.budget-card span,
.hero-meta span,
.hint {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 10px 0 14px;
}

.hero p {
  margin: 0;
  max-width: 62ch;
  line-height: 1.55;
  font-size: 1.06rem;
}

.hero-meta {
  display: grid;
  gap: 14px;
  align-content: center;
}

.hero-meta div {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero-meta span,
.hero-meta strong {
  display: block;
}

.hero-meta strong {
  margin-top: 6px;
  font-size: 1.1rem;
}

.metrics,
.grid-2,
.grid-3,
.split,
.kpi-grid,
.budget-grid {
  display: grid;
  gap: 16px;
}

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

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

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.metric,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.metric {
  padding: 18px 20px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.85rem;
}

.panel {
  margin-top: 18px;
  padding: 20px;
}

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

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 14px;
}

.section-head h3 {
  font-size: 1.4rem;
}

.bullets {
  margin: 0;
  padding-left: 20px;
  line-height: 1.65;
}

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

.attention-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.attention-label {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}

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

.kpi-card {
  padding: 18px;
}

.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.panel-value {
  margin-top: 14px;
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--navy);
}

.panel-note {
  margin-top: 4px;
  color: var(--muted);
}

.progress {
  margin-top: 14px;
  height: 10px;
  border-radius: 999px;
  background: #e8edf3;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #e0be67);
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge,
.status-green,
.status-amber,
.status-red,
.status-neutral {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.status-green {
  color: var(--green);
  background: rgba(47, 107, 79, 0.12);
}

.status-amber {
  color: var(--amber);
  background: rgba(160, 109, 22, 0.14);
}

.status-red {
  color: var(--red);
  background: rgba(164, 77, 61, 0.12);
}

.status-neutral {
  color: var(--navy);
  background: rgba(25, 50, 79, 0.1);
}

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

.budget-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.budget-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.45rem;
}

.editor label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 700;
}

.editor input,
.editor textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.editor textarea {
  resize: vertical;
  min-height: 110px;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.button-primary,
.button-secondary,
.button-link {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
}

.button-secondary {
  background: #f0f3f7;
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-link {
  background: transparent;
  color: var(--navy);
}

.footer-note p {
  margin: 10px 0 0;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .metrics,
  .grid-2,
  .grid-3,
  .kpi-grid,
  .budget-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .page-shell {
    width: min(100vw - 20px, 1280px);
    margin-top: 10px;
  }

  .hero,
  .panel,
  .metric,
  .topbar {
    border-radius: 18px;
  }

  .topbar h1 {
    font-size: 1.55rem;
  }

  th,
  td {
    padding: 10px 8px;
    font-size: 0.95rem;
  }
}
