:root {
  color-scheme: dark;
  --background: #11191a;
  --surface: #192526;
  --ink: #edf5f2;
  --muted: #acc0bb;
  --accent: #9cdec5;
  --line: #39514e;
  --focus: #e7b66a;
  font: 16px/1.5 system-ui, sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --background: #edf4f0;
  --surface: #fff;
  --ink: #182b26;
  --muted: #48635a;
  --accent: #1c6652;
  --line: #aac3bb;
  --focus: #9d5300;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); }
.shell { max-width: 720px; margin: auto; }
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 20px 12px;
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--ink); font-size: 19px; font-weight: 750; letter-spacing: .025em; text-decoration: none; }
.brand span { color: var(--accent); font-weight: 450; }
main { padding: 18px 20px calc(88px + env(safe-area-inset-bottom)); }
h1 { margin: 0 0 8px; font-size: clamp(26px, 6vw, 36px); letter-spacing: -.025em; }
h2 { margin: 0 0 10px; font-size: 19px; }
p { margin: 0 0 8px; overflow-wrap: anywhere; }
#feedback { color: var(--muted); }
section {
  margin: 14px 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
button, select, input, textarea { font: inherit; }
button {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
button:disabled { opacity: .6; cursor: default; }
.quiet { color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
#nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 720px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  padding: 7px 5px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--background);
}
#nav button { padding: 0 2px; border-color: transparent; font-size: clamp(10px, 2.85vw, 14px); }
#nav button[aria-current] { color: var(--accent); border-color: var(--line); font-weight: 720; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.task { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 0; }
.task + .task { border-top: 1px solid var(--line); }
.muted { color: var(--muted); }
label { display: grid; gap: 4px; margin-bottom: 10px; }
input, textarea, select {
  width: 100%; padding: 9px; color: var(--ink); background: var(--background);
  border: 1px solid var(--line); border-radius: 7px;
}
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.timeline { padding-left: 22px; }
.timeline li { margin-bottom: 8px; overflow-wrap: anywhere; }
@media (min-width: 600px) {
  main { padding-inline: 28px; }
}
