
  :root {
    color-scheme: light only;
    --bg: #fbfaf7;
    --card: #ffffff;
    --ink: #1c1c1a;
    --muted: #6b6a66;
    --hair: #e6e2da;
    --accent: #2b6f6a;
    --accent-tint: #edf4f3;
    --serif: "Times New Roman", Times, Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  }
  * { box-sizing: border-box; }
  html, body { background: var(--bg); color: var(--ink); }
  body {
    margin: 0;
    padding: 40px;
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.5;
  }
  @media (max-width: 700px) { body { padding: 20px; } }

  h1, h2, .num, .stage-name { font-family: var(--serif); font-weight: 400; }
  h1 { font-size: 40px; line-height: 1.15; margin: 6px 0 14px; letter-spacing: -0.01em; }
  @media (max-width: 700px) { h1 { font-size: 30px; } }
  h2 {
    font-size: 22px;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--accent);
  }
  .caps {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  a { color: var(--accent); }

  /* Header */
  header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
  header .left { flex: 1 1 520px; min-width: 0; }
  header .right { flex: 0 0 auto; text-align: right; padding-top: 4px; }
  @media (max-width: 700px) { header .right { text-align: left; } }
  .pill {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    border: 1px solid var(--hair);
    border-radius: 999px;
    color: var(--muted);
    background: var(--card);
  }
  .pill.problems { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
  .updated { margin-top: 8px; font-size: 13px; color: var(--muted); }

  .progress { margin: 0 0 6px; }
  .progress .bar { height: 3px; background: var(--hair); width: 100%; }
  .progress .fill { height: 3px; background: var(--accent); width: 0; }
  .progress .label { font-size: 13px; color: var(--muted); margin-top: 6px; }

  /* Problems panel */
  .panel {
    margin: 24px 0 0;
    padding: 16px 20px;
    background: var(--accent-tint);
    border-left: 3px solid var(--accent);
  }
  .panel h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
  .panel ul { margin: 0; padding-left: 18px; }
  .panel li { margin: 2px 0; }
  .panel p { margin: 0; }

  section { margin-top: 44px; }

  /* Counts: hairline strip, no card borders */
  .counts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
  }
  .count { padding: 22px 0; }
  .num { font-size: 48px; line-height: 1; }
  .count .caps { margin-top: 8px; }
  .caption { font-size: 13px; color: var(--muted); margin-top: 10px; }

  /* Stages stepper */
  .stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0; }
  .stage { position: relative; padding: 0 20px 0 0; }
  .stage .dot {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--accent); background: var(--card);
    position: relative; z-index: 1;
  }
  .stage.done .dot { background: var(--accent); }
  .stage.in_progress .dot { background: linear-gradient(90deg, var(--accent) 50%, var(--card) 50%); }
  .stage.not_started .dot { border-color: #b9b5ad; }
  .stage.unknown .dot { border-style: dashed; border-color: #b9b5ad; }
  .stage .line {
    position: absolute; top: 8px; left: 18px; right: 0; height: 2px; background: var(--hair);
  }
  .stage.done .line.after-done { background: var(--accent); }
  .stage:last-child .line { display: none; }
  .stage-name { font-size: 20px; margin-top: 12px; }
  .stage-status { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .stage-note { font-size: 14px; color: var(--ink); margin-top: 6px; }
  .tag { font-size: 11px; color: var(--accent); border: 1px solid var(--accent); padding: 0 5px; border-radius: 3px; margin-left: 6px; }
  @media (max-width: 700px) {
    .stages { grid-template-columns: 1fr; }
    .stage { padding: 14px 0 14px 32px; border-bottom: 1px solid var(--hair); }
    .stage .dot { position: absolute; left: 0; top: 18px; }
    .stage .line { display: none; }
    .stage-name { margin-top: 0; }
  }

  /* Lower two-column section */
  .lower { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
  @media (max-width: 900px) { .lower { grid-template-columns: 1fr; gap: 44px; } }

  .rows { list-style: none; margin: 0; padding: 0; }
  .row {
    display: grid; grid-template-columns: 170px 1fr; gap: 16px;
    padding: 12px 0; border-bottom: 1px solid var(--hair);
  }
  .row .meta { display: flex; flex-direction: column; gap: 2px; }
  .row .meta .date { font-size: 13px; color: var(--ink); }
  @media (max-width: 500px) { .row { grid-template-columns: 1fr; gap: 4px; } .row .meta { flex-direction: row; gap: 12px; align-items: baseline; } }
  .hidden-row { display: none; }
  .toggle {
    margin-top: 12px; background: none; border: 1px solid var(--hair); border-radius: 999px;
    padding: 6px 14px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer;
  }
  .toggle:hover { border-color: var(--accent); color: var(--accent); }
  .empty { color: var(--muted); font-size: 14px; }

  footer { margin-top: 56px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--muted); }

.full-row {grid-template-columns:1fr;}