h1 {
  margin-top: 32px;
  margin-bottom: 8px;
  font-size: 2rem;
}

.lede {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 28px;
  max-width: 60ch;
}

.tool {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: grid;
  gap: 32px;
}

.timer-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ring {
  --pct: 0;
  --ring-color: var(--accent);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--pct) * 1%), var(--line) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s linear;
}

.ring[data-type="short"] { --ring-color: #1e8e3e; }
.ring[data-type="long"] { --ring-color: #7c4dd6; }

.ring__inner {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.session-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.session-label--short { color: #1e8e3e; }
.session-label--long { color: #7c4dd6; }

.time-display {
  font-size: 3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.session-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  border: 1px solid var(--line);
}

.dot--filled {
  background: var(--accent);
  border-color: var(--accent);
}

.controls {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  font: inherit;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}

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

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  min-width: 110px;
}

.btn--primary:hover { opacity: 0.92; }

.btn--ghost {
  margin-top: 20px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  padding: 4px;
}

.total-stat {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.total-stat strong { color: var(--ink); }

.settings {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.settings h2 {
  font-size: 1rem;
  margin: 0 0 16px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.settings-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.settings-grid input {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  width: 100%;
}

.settings-toggles {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}

.toggle input { width: 16px; height: 16px; }

.faq { margin-top: 48px; max-width: 70ch; }

.faq h2 { font-size: 1.3rem; margin-top: 32px; }

details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

details summary {
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 640px) {
  .ring { width: 200px; height: 200px; }
  .ring__inner { width: 164px; height: 164px; }
  .time-display { font-size: 2.4rem; }
  .settings-grid { grid-template-columns: 1fr 1fr; }
}
