/* Classic neutral theme */
:root {
  --border: #ced4da;
  --bg: #ffffff;
  --bg-done: #e6ffe6;
  --text: #212529;
  --muted: #6c757d;
  --link: #0d6efd;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  background: #f8f9fa;
  color: var(--text);
  line-height: 1.55;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

h1 {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 2rem;
}

p.small {
  text-align: center;
  color: var(--muted);
  margin-top: 0;
}

/* Collapsible details */
details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  transition: background 0.3s ease;
}

details[open] {
  background: #fbfbff;
}

details.done {
  background: var(--bg-done);
  opacity: 0.9;
}

summary {
  font-weight: 600;
  cursor: pointer;
  outline: none;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "▸ ";
  transition: transform 0.2s ease;
}

details[open] summary::before {
  transform: rotate(90deg);
}

code, kbd {
  background: #f1f3f5;
  border-radius: 4px;
  padding: 0 0.25em;
  font-family: ui-monospace, "SFMono-Regular", "Consolas", monospace;
  font-size: 0.95em;
}

kbd {
  border: 1px solid #dee2e6;
  box-shadow: inset 0 -1px 0 #dee2e6;
}

.section-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 0.75rem;
}

.section-controls label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.9rem;
}

textarea {
  width: 100%;
  min-height: 3rem;
  resize: vertical;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
}

textarea:focus {
  outline: none;
  border-color: var(--link);
}

a {
  color: var(--link);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
}

td, th {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid #e9ecef;
}

th {
  text-align: left;
  background: #f1f3f5;
}

th, td, summary, p, li {
  color: var(--text);
}

.progress {
  width: 100%;
  height: 0.5rem;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress .bar {
  height: 100%;
  background: var(--link);
  width: 0;
  transition: width 0.3s;
}
