:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --border: #1e1e2e;
  --accent: #e8392a;
  --accent2: #ff6b35;
  --text: #e8e8f0;
  --muted: #5a5a72;
  --done: #22c55e;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Syne', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  padding: 0 0 80px;
}

header {
  padding: 48px 32px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

h1 {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.5px;
}

h1 span {
  color: var(--accent);
}

.progress-bar-wrap {
  flex: 1;
  max-width: 300px;
}

.progress-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  transition: width 0.4s ease;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

.section {
  margin-bottom: 48px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  background: rgba(232,57,42,0.1);
  border: 1px solid rgba(232,57,42,0.3);
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.section-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}

.items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.item:hover {
  border-color: var(--muted);
  background: rgba(255,255,255,0.02);
}

.item.done {
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.04);
}

.item.done .item-label {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(34,197,94,0.4);
}

.checkbox {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--muted);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s;
}

.item.done .checkbox {
  background: var(--done);
  border-color: var(--done);
}

.check-icon {
  display: none;
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.item.done .check-icon {
  display: block;
}

.item-label {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  transition: color 0.2s;
}

.item-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: auto;
  flex-shrink: 0;
  align-self: flex-start;
}

.subsection-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 0 8px 2px;
}

.reset-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.reset-btn:hover {
  border-color: var(--muted);
  color: var(--text);
}

@media (max-width: 600px) {
  header { flex-wrap: wrap; padding: 24px 16px 20px; }
  .progress-bar-wrap { max-width: 100%; width: 100%; order: 3; }
  main { padding: 28px 16px 0; }
}
