:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #242820;
  background: #f6f5ee;
  --canvas: #f6f5ee;
  --surface: #fffcf3;
  --ink: #242820;
  --muted: #555b4d;
  --edge: #d3d5c6;
  --dark: #21261f;
  --lime: #d9f36a;
  --green: #35550c;
  --radius: 16px;
  --space: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
a { color: var(--green); text-underline-offset: .2em; }
:is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid #596907;
  outline-offset: 3px;
}
button:disabled { cursor: default; opacity: .48; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1, h2 { letter-spacing: -.045em; }
h1 { font-size: clamp(1.3rem, 5vw, 1.65rem); line-height: 1.1; }
h2 { font-size: clamp(1.95rem, 6vw, 2.85rem); line-height: 1.05; }
h3 { line-height: 1.2; }
p { line-height: 1.55; }
.masthead, .tabs, main {
  width: min(100% - 32px, 680px);
  margin-inline: auto;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-block: 20px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { flex: 0 0 auto; border-radius: 12px; }
.offline {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .79rem;
  font-weight: 700;
}
.offline::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #808574; }
.offline[data-ready]::before { background: #4a6b22; }
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: #eaece0;
}
.tabs button {
  min-height: 44px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 700;
}
.tabs button[aria-current] { background: var(--surface); color: var(--ink); border-color: var(--edge); }
main { margin-block: 16px max(24px, env(safe-area-inset-bottom)); }
.featured, .block, .entry, .utility, .result-action {
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
}
.featured { padding: clamp(20px, 5vw, 32px); }
.featured > * + * { margin-top: 12px; }
.featured > .primary { margin-top: 20px; }
.featured > p { max-width: 46ch; }
.primary, .secondary {
  min-height: 50px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.primary { background: var(--lime); color: var(--ink); border-color: #b6d450; }
.secondary { background: transparent; color: var(--ink); border-color: #a6ac99; }
.primary:hover:not(:disabled) { background: #e3fb89; }
.secondary:hover:not(:disabled) { background: #eeefe4; }
.featured > button, .result-action > button { width: 100%; }
.quiet { color: var(--muted); font-size: .9rem; }
.stack { display: grid; gap: 12px; }
#blocks, #history-list { margin-top: 16px; }
.utility { margin-top: 12px; }
.utility summary { padding: 14px 16px; min-height: 48px; font-weight: 700; }
.utility-body { padding: 0 16px 16px; }
.prose p + p { margin-top: 10px; }
.links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 18px; }
.links a, .link-button { min-height: 44px; display: inline-flex; align-items: center; }
.link-button {
  background: transparent;
  border: 0;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: .2em;
  padding: 0;
}
label { font-size: .94rem; font-weight: 700; }
input:not([type="checkbox"]), select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid #a6ac99;
  border-radius: 8px;
  color: var(--ink);
  background: var(--canvas);
}
textarea { resize: vertical; }
.plan-controls { display: grid; gap: 5px; max-width: 100%; margin-bottom: 20px; }
.block, .entry { padding: 16px; }
.block > p { margin-top: 5px; }
.station-list { list-style: none; margin: 12px 0 0; padding: 0; }
.station-list li, .result-row {
  border-top: 1px solid var(--edge);
  padding-block: 10px;
}
.station-list li:last-child, .result-row:last-child { padding-bottom: 0; }
.station-list p { margin-top: 3px; }
.session-header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0 0 12px; }
.session-header h2 { font-size: clamp(1.35rem, 5vw, 1.85rem); }
.timer { background: var(--dark); color: #fbfbed; border-radius: 20px; padding: clamp(16px, 5vw, 30px); }
.timer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; color: #d6dacb; font-size: .83rem; }
.phase {
  color: var(--lime);
  border: 1px solid #656f4d;
  border-radius: 6px;
  font-weight: 700;
  padding: 4px 8px;
}
.clock {
  font-size: clamp(3.35rem, 17vw, 7rem);
  font-weight: 700;
  line-height: 1.07;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.07em;
  margin-block: 10px;
}
.meter { height: 5px; border-radius: 10px; background: #4a5143; overflow: hidden; }
.meter div { height: 100%; width: 0; background: var(--lime); }
.current { padding-block: 16px; }
.current h3 { font-size: clamp(1.35rem, 5vw, 1.9rem); }
.current p { color: #d6dacb; margin-top: 4px; }
.current p:empty, .quiet:empty { display: none; }
.timer-actions, .two-buttons, .two-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.timer-actions button { padding-inline: 8px; }
@media (min-width: 701px) {
  .timer-actions { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
}
.timer .secondary { color: #fbfbed; border-color: #819077; }
.timer .secondary:hover:not(:disabled) { background: #343c30; }
.timer button:focus-visible { outline-color: var(--lime); }
.result-action { margin-top: 12px; padding: 8px; }
.result-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result-row .secondary { min-height: 44px; flex: 0 0 auto; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.check input { width: 21px; height: 21px; accent-color: var(--green); }
.entry h3 + p { margin-top: 6px; }
dialog {
  width: min(100% - 24px, 500px);
  max-height: calc(100dvh - 24px);
  padding: 20px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
dialog::backdrop { background: rgb(33 38 31 / .68); }
dialog h2 { font-size: 1.65rem; }
dialog label input { display: block; margin-top: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 701px) {
  .masthead { padding-block: 30px 20px; }
  main { margin-top: 20px; }
  .featured > button { width: auto; }
}
