:root {
  --bg: #ffffff;
  --fg: #1b1f24;
  --muted: #5d6673;
  --line: #e2e6eb;
  --accent: #1f7a4d;
  --card: #f6f8fa;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171b;
    --fg: #e8ebef;
    --muted: #9aa4b1;
    --line: #2a3038;
    --accent: #4cc38a;
    --card: #1c2026;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}
h1 {
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 8px 0;
}
h2 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}
ul {
  margin: 6px 0;
  padding-left: 20px;
}
li {
  margin: 4px 0;
  overflow-wrap: anywhere;
}
progress {
  width: 100%;
  height: 14px;
  accent-color: var(--accent);
}
.percent {
  margin: 4px 0;
}
.percent strong {
  font-size: 1.8rem;
}
.muted,
.updated,
.when {
  color: var(--muted);
}
.updated {
  font-size: 0.85rem;
  font-weight: 400;
  white-space: nowrap;
}
.stage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
}
.stage-current {
  border-color: var(--accent);
}
.num {
  display: inline-block;
  min-width: 1.5em;
  color: var(--muted);
}
.meta {
  margin: 4px 0 0;
  font-size: 0.9rem;
}
.status {
  font-weight: 600;
}
.stage-done .status,
.stage-current .status,
.target {
  color: var(--accent);
}
.target {
  font-weight: 600;
  white-space: nowrap;
}
.steps {
  list-style: none;
  padding-left: 0;
}
.steps li {
  padding-left: 26px;
  position: relative;
}
.steps li::before {
  position: absolute;
  left: 0;
}
.step-done::before {
  content: '✓';
  color: var(--accent);
}
.step-open::before {
  content: '○';
  color: var(--muted);
}
.day {
  margin-top: 14px;
}
.changes {
  margin-top: 18px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.now-list li {
  font-weight: 600;
}
.then {
  color: var(--muted);
}
footer {
  margin-top: 28px;
  font-size: 0.85rem;
}
