:root {
  color-scheme: dark;
  --page: #101115;
  --surface: #17181e;
  --raised: #1c1e26;
  --line: #2d303a;
  --ink: #f2f3f8;
  --muted: #a0a4b4;
  --accent: #acaaff;
  --action: #6863dc;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 15px; line-height: 1.55; }
main { max-width: 720px; margin-inline: auto; padding: 28px 18px 52px; }
header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(25px, 6vw, 34px); line-height: 1.15; letter-spacing: -.045em; font-weight: 650; }
h2 { margin-bottom: 12px; font-size: 18px; line-height: 1.35; letter-spacing: -.025em; }
h3 { font-size: 15px; font-weight: 650; }
p + p { margin-top: 6px; }
section { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; padding: clamp(14px, 4vw, 22px); }
article { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
article > p { margin-top: 3px; }
article > button { margin: 8px 6px 0 0; }
ul { padding-left: 19px; margin: 0; }
li + li { margin-top: 6px; }
label { display: grid; gap: 6px; margin: 12px 0; font-weight: 550; }
input, textarea, select, button { font: inherit; }
input:not([type=checkbox]), textarea, select {
  width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px;
  background: var(--page); color: inherit; padding: 9px 10px;
}
input[type=checkbox] { width: 20px; height: 20px; margin: 10px 0 0; accent-color: var(--accent); }
textarea { resize: vertical; }
textarea::placeholder { color: var(--muted); }
button {
  min-height: 38px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--raised); color: var(--ink); cursor: pointer;
}
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .48; cursor: default; }
button.primary { background: var(--action); border-color: transparent; color: #fff; font-weight: 600; }
button[aria-pressed=true] { border-color: #494773; background: #262443; color: #d0ceff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
nav:not([hidden]), .controls { display: flex; gap: 8px; flex-wrap: wrap; }
nav { margin: 14px 0 16px; }
.step { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 6px 10px; margin: 12px 0; }
.step .controls { grid-column: 2; }
.step button { padding: 4px 10px; }
.preserve { white-space: pre-line; }
.muted, #date { color: var(--muted); font-size: 13px; }
#notice:not(:empty) { color: var(--muted); margin: 12px 0; min-height: 24px; }
details { margin-top: 9px; background: var(--page); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
summary { cursor: pointer; }
details ul { margin-top: 8px; }
.completion { display: flex; gap: 10px; align-items: center; margin-top: 6px; font-variant-numeric: tabular-nums; }
.completion progress { flex: 1; max-width: 230px; height: 9px; accent-color: var(--accent); }
.completion span { color: var(--muted); font-size: 13px; }
.controls + div { margin-top: 12px; }
