:root {
  --paper: #f6f5f0;
  --surface: #ffffff;
  --surface-soft: #f1f5f3;
  --ink: #18201d;
  --muted: #66736e;
  --line: #d9dfdc;
  --line-strong: #b9c4bf;
  --green: #176f46;
  --green-deep: #0d4f35;
  --teal: #006b68;
  --blue: #275f9f;
  --gold: #9a6a14;
  --rose: #9b3d3a;
  --shadow: 0 18px 50px rgba(30, 39, 35, 0.1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
}

body::before {
  background:
    linear-gradient(90deg, var(--green) 0 34%, var(--gold) 34% 67%, var(--blue) 67% 100%);
  content: "";
  display: block;
  height: 5px;
  width: 100%;
}

a {
  color: var(--blue);
  text-decoration-color: rgba(39, 95, 159, 0.35);
  text-underline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--teal);
    text-decoration-color: currentColor;
  }
}

.report-shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 42px 24px 64px;
}

.report-header {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 56px);
}

.report-label,
.section-heading p {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.96;
  margin-bottom: 0;
  max-width: 880px;
}

.header-topline {
  align-items: start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.print-button {
  appearance: none;
  background: var(--green-deep);
  border: 1px solid var(--green-deep);
  border-radius: 7px;
  color: #ffffff;
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 760;
  line-height: 1;
  padding: 13px 16px;
  transition:
    background-color 140ms var(--ease-out),
    border-color 140ms var(--ease-out),
    transform 140ms var(--ease-out);
}

.print-button:active {
  transform: scale(0.97);
}

.print-button:focus-visible {
  outline: 3px solid rgba(39, 95, 159, 0.32);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .print-button:hover {
    background: var(--teal);
    border-color: var(--teal);
  }
}

.report-deck {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
  margin-bottom: 34px;
  max-width: 760px;
}

.report-meta {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 22px;
}

.report-meta div {
  min-width: 0;
}

.report-meta span {
  color: var(--muted);
  display: block;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.report-meta strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

.section-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 22px;
  padding: clamp(22px, 4vw, 38px);
}

.section-heading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.08;
  margin: 0;
}

.progress-summary {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
}

.progress-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 210px;
  padding: 18px;
}

.progress-card-primary {
  background: #eef6f1;
  border-color: #bdd9ca;
}

.progress-card-overall {
  background:
    linear-gradient(135deg, rgba(13, 79, 53, 0.08), rgba(0, 107, 104, 0.04)),
    #eef6f1;
  border-color: #9fcdb4;
  display: grid;
  gap: 0 28px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr);
  min-height: 245px;
  padding: clamp(22px, 4vw, 34px);
}

.progress-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  margin-bottom: 18px;
  min-height: 38px;
}

.progress-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 14px;
}

.progress-card-overall p {
  color: var(--green-deep);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  font-weight: 760;
  grid-column: 1 / -1;
  min-height: 0;
}

.progress-card-overall strong {
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  line-height: 0.9;
  margin-bottom: 0;
}

.progress-card-overall .progress-track {
  align-self: center;
  height: 16px;
}

.progress-track {
  background: #dfe7e2;
  border-radius: 999px;
  display: block;
  height: 10px;
  overflow: hidden;
  width: 100%;
}

.progress-fill {
  background: var(--green);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.done-list {
  border-top: 1px solid rgba(24, 32, 29, 0.1);
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding-left: 1rem;
  padding-top: 12px;
}

.done-list li {
  color: #42514b;
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 0;
}

.progress-card-overall .done-list {
  align-self: end;
  border-top: 0;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  padding-left: 0;
  padding-top: 0;
}

.progress-card-overall .done-list li {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(13, 79, 53, 0.14);
  border-radius: 7px;
  display: block;
  font-size: 0.95rem;
  font-weight: 680;
  padding: 10px 12px;
}

.progress-card-overall .done-list li::marker {
  content: "";
}

.fill-90 {
  background: var(--green);
  width: 90%;
}

.fill-70 {
  background: var(--teal);
  width: 70%;
}

.fill-60 {
  background: var(--green-deep);
  width: 60%;
}

.fill-55 {
  background: var(--gold);
  width: 55%;
}

.fill-45 {
  background: var(--blue);
  width: 45%;
}

.fill-25 {
  background: var(--rose);
  width: 25%;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

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

caption {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 14px 16px;
  text-align: left;
}

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

thead th {
  background: #f8faf8;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 760;
}

tbody th {
  font-weight: 720;
}

tbody td:nth-child(2) {
  color: var(--green-deep);
  font-weight: 760;
  white-space: nowrap;
}

.detail-grid,
.split-section {
  display: grid;
  gap: 16px;
}

.detail-card,
.summary-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 26px);
}

.detail-card h3,
.summary-panel h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

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

.demo-links {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}

.demo-link-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.demo-link-grid a {
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--green-deep);
  display: block;
  font-weight: 720;
  line-height: 1.35;
  padding: 12px 14px;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .demo-link-grid a:hover {
    border-color: #9fcdb4;
    color: var(--teal);
  }
}

h4 {
  color: var(--green-deep);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

li {
  color: #2b3430;
  line-height: 1.55;
  margin: 0.42rem 0;
}

li::marker {
  color: var(--green);
}

.summary-panel p,
.ask-section p,
.source-section p {
  color: #2b3430;
  line-height: 1.58;
  margin-bottom: 14px;
}

.summary-panel ul + p {
  margin-top: 18px;
}

.action-list {
  counter-reset: none;
  display: grid;
  gap: 10px;
  padding-left: 1.35rem;
}

.action-list li {
  background: #f8faf8;
  border-left: 3px solid var(--green);
  margin: 0;
  padding: 10px 12px;
}

.ask-section {
  background: #fbfaf5;
  border-color: #e3d7b9;
}

.source-list {
  display: grid;
  gap: 7px;
}

code {
  background: #eef1ef;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #24302b;
  display: inline-block;
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.88em;
  line-height: 1.4;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 1px 5px;
}

@media (max-width: 860px) {
  .report-shell {
    padding: 24px 14px 44px;
  }

  .report-header,
  .section-block {
    padding: 22px;
  }

  .report-meta,
  .progress-summary,
  .detail-columns,
  .demo-link-grid {
    grid-template-columns: 1fr;
  }

  .header-topline {
    display: block;
  }

  .print-button {
    margin-top: 20px;
    width: 100%;
  }

  .section-heading {
    align-items: start;
    display: block;
  }

  .progress-card {
    min-height: 0;
  }

  .progress-card-overall {
    grid-template-columns: 1fr;
  }

  .progress-card-overall strong {
    margin-bottom: 18px;
  }

  .progress-card-overall .done-list {
    grid-template-columns: 1fr;
  }

  .progress-card p {
    min-height: 0;
  }
}

@media print {
  :root {
    --paper: #ffffff;
    --shadow: none;
  }

  @page {
    margin: 0.55in;
    size: letter;
  }

  body::before {
    display: none;
  }

  .print-button {
    display: none;
  }

  .report-shell {
    max-width: none;
    padding: 0;
  }

  .report-header,
  .section-block {
    box-shadow: none;
    margin-top: 16px;
  }

  .report-header {
    break-inside: avoid;
  }

  .section-block {
    break-inside: auto;
  }

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

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

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

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

  .table-wrap {
    overflow: visible;
  }

  table {
    min-width: 0;
    table-layout: fixed;
  }

  th,
  td {
    font-size: 0.78rem;
    overflow-wrap: anywhere;
    padding: 9px 10px;
  }

  thead th:nth-child(1) {
    width: 23%;
  }

  thead th:nth-child(2) {
    width: 12%;
  }

  thead th:nth-child(3) {
    width: 25%;
  }

  thead th:nth-child(4) {
    width: 40%;
  }

  .progress-card-overall {
    grid-column: 1 / -1;
  }

  .detail-card,
  .summary-panel,
  .progress-card {
    break-inside: avoid;
  }

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