:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --fg: #1a1a1a;
  --muted: #666;
  --border: #e2e2e2;
  --accent: #2563eb;
  --accent-bg: #eaf1ff;
  --card-bg: #fff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --fg: #f1f1f1;
    --muted: #9a9a9a;
    --border: #2a2b2e;
    --accent: #6ea8fe;
    --accent-bg: #1c2636;
    --card-bg: #1a1b1e;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  padding: 2.5rem 1.25rem 3rem;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  justify-content: center;
}
main {
  width: 100%;
  max-width: 480px;
}
a.back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: inherit;
  opacity: 0.7;
  text-decoration: none;
}
h1 {
  font-size: 1.4rem;
  margin: 0 0 0.3rem;
}
p.subtitle {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.field label {
  font-size: 0.82rem;
  color: var(--muted);
}
.field select {
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: inherit;
  font-size: 0.95rem;
}
.recipe-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.recipe-meta b {
  color: var(--fg);
  font-weight: 600;
}
.progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.progress-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-bg);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s ease;
}
#progress-label {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}
ul.steps {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
ul.steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  cursor: pointer;
  user-select: none;
}
ul.steps li.done {
  background: var(--accent-bg);
  border-color: var(--accent);
}
ul.steps li input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
ul.steps li .step-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
ul.steps li .step-time {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}
ul.steps li.done .step-time {
  color: var(--muted);
}
ul.steps li .step-label {
  font-size: 0.95rem;
}
ul.steps li.done .step-label {
  color: var(--muted);
  text-decoration: line-through;
}
button.reset {
  width: 100%;
  padding: 0.65rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--fg);
  font-size: 0.9rem;
  cursor: pointer;
}
button.reset:hover {
  border-color: var(--accent);
  color: var(--accent);
}
