:root {
  --bg: #f4f1e8;
  --paper: #fffdf8;
  --ink: #1f2a2b;
  --muted: #5b6768;
  --line: #d7d0c4;
  --brand: #0f766e;
  --brand-strong: #0b4f49;
  --accent: #d89b2b;
  --soft: #e8f3f1;
  --soft-2: #f7ecda;
  --shadow: 0 24px 60px rgba(24, 33, 36, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 30%),
    linear-gradient(180deg, #f6f2ea 0%, #efe8dd 100%);
  color: var(--ink);
  font-family: Aptos, "Segoe UI", sans-serif;
}

@page {
  size: A4;
  margin: 12mm;
}

body {
  padding: 20px;
}

.report {
  max-width: 980px;
  margin: 0 auto;
}

.hero {
  background: linear-gradient(135deg, rgba(11, 79, 73, 0.96), rgba(15, 118, 110, 0.92));
  color: white;
  border-radius: 28px;
  padding: 26px 28px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 68%);
  border-radius: 50%;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-wrap {
  background: rgba(255,255,255,0.92);
  padding: 12px 16px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
}

.logo-wrap img {
  height: 44px;
  width: auto;
  display: block;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.82;
  margin-bottom: 10px;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
  max-width: 620px;
}

.hero-sub {
  margin-top: 14px;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  max-width: 700px;
  line-height: 1.5;
}

.hero-meta {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.section {
  margin-top: 16px;
  background: var(--paper);
  border: 1px solid rgba(215, 208, 196, 0.85);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px 24px;
  break-inside: avoid;
}

.section-title {
  margin: 0 0 14px;
  font-size: 22px;
  color: var(--brand-strong);
}

.lede {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.kpi {
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
}

.kpi .label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.kpi .value {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-strong);
  line-height: 1;
  margin-bottom: 6px;
}

.kpi .desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
}

.card {
  background: linear-gradient(180deg, #fffdf8 0%, #fcf8ef 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 17px 15px;
  break-inside: avoid;
}

.card.soft {
  background: linear-gradient(180deg, var(--soft) 0%, #f4fbfa 100%);
}

.card.warn {
  background: linear-gradient(180deg, var(--soft-2) 0%, #fff8ee 100%);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--brand-strong);
}

p {
  margin: 0 0 10px;
  line-height: 1.58;
  font-size: 14px;
}

ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

li {
  margin: 0 0 7px;
  line-height: 1.46;
  font-size: 13px;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  align-items: start;
}

.dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(215, 154, 41, 0.14);
}

.timeline-item h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--ink);
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}

th, td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  vertical-align: top;
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.status {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status.doing {
  background: #e6f5f2;
  color: #0b5d54;
}

.status.todo {
  background: #f8eed9;
  color: #8a5d1f;
}

.status.blocked {
  background: #f2e5d7;
  color: #8b5e34;
}

.footer-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  body {
    padding: 14px;
  }

  .hero-top,
  .grid-2,
  .kpi-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    padding: 22px 20px 24px;
  }

  h1 {
    font-size: 28px;
  }

  .section {
    padding: 18px 18px;
  }
}

@media (max-width: 560px) {
  body {
    padding: 10px;
  }

  .hero {
    border-radius: 22px;
    padding: 20px 16px 22px;
  }

  .logo-wrap {
    padding: 10px 12px;
  }

  .logo-wrap img {
    height: 36px;
  }

  h1 {
    font-size: 24px;
  }

  .hero-sub,
  .lede,
  p,
  li,
  th,
  td {
    font-size: 13px;
  }

  .section-title {
    font-size: 20px;
  }

  table {
    min-width: 620px;
  }
}

@media print {
  body {
    padding: 0;
  }

  .section, .hero, .card, .kpi {
    box-shadow: none;
  }
}
