:root {
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --ink: #1d2a24;
  --muted: #6b7a71;
  --forest: #1f4438;
  --forest-soft: #2e5c4c;
  --amber: #c98a3c;
  --amber-soft: #f4e3c8;
  --line: #e2dbcb;
  --rose: #a3544a;
  --sage: #eaf1ec;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font: 15.5px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px clamp(16px, 4vw, 48px) 14px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
}

.brand .emoji { font-size: 26px; line-height: 1; }
.brand strong { font-size: 24px; letter-spacing: 0.01em; color: var(--forest); }
.brand .sub { color: var(--muted); font-size: 15px; font-style: italic; }

.badges { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--forest);
  border: 1px solid #d5e2d9;
  white-space: nowrap;
}

.badge.quiet { background: var(--amber-soft); border-color: #ead6b2; color: #7d5620; }

main {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) clamp(16px, 4vw, 28px) 60px;
}

.lede {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.65;
  color: #33443b;
  max-width: 72ch;
  margin: 0 0 22px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamped(16px, 2.4vw, 24px);
  padding: clamp(16px, 2.4vw, 24px);
  margin-bottom: 16px;
  box-shadow: 0 1px 0 rgba(29, 42, 36, 0.04);
}

label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}

textarea, select, input[type="range"] { font: inherit; color: inherit; }

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fdfaf3;
  padding: 12px 14px;
  resize: vertical;
  min-height: 250px;
  line-height: 1.6;
}

textarea:focus, select:focus { outline: 2px solid #b9d3c4; outline-offset: 1px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.ctl label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }

.ctl output {
  font-variant-numeric: tabular-nums;
  color: var(--forest);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}

input[type="range"] { width: 100%; accent-color: var(--forest); }

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fdfaf3;
}

.run { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }

button {
  font: inherit;
  font-weight: 650;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  background: var(--forest);
  color: #f6f4ea;
  transition: transform 0.06s ease, background 0.15s ease;
}

button:hover { background: var(--forest-soft); }
button:active { transform: translateY(1px); }
button[disabled] { opacity: 0.55; cursor: progress; }

button.ghost {
  background: transparent;
  color: var(--forest);
  border-color: #cbd8cf;
}

button.ghost:hover { background: var(--sage); }

#status { color: var(--muted); font-size: 13.5px; }

.bar {
  flex: 1 1 160px;
  min-width: 140px;
  height: 6px;
  border-radius: 999px;
  background: #e9e2d3;
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--amber);
  transition: width 0.25s ease;
}

.row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  margin: 0 0 4px;
  color: var(--forest);
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  margin: 0 0 4px;
  color: var(--forest);
}

.meta { margin-left: auto; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

#schedule { list-style: none; margin: 14px 0 0; padding: 0; }

#schedule li {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px dashed var(--line);
}

#schedule li:first-child { border-top: 0; }

.time {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--forest);
  font-weight: 650;
  white-space: nowrap;
}

.task { font-size: 15.5px; }

.why { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }

.chips { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-left: 6px; vertical-align: middle; }

.chip {
  font-size: 11.5px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #eef3ef;
  color: #3d5a4c;
  border: 1px solid #dbe6de;
  white-space: nowrap;
}

.chip.due { background: #fdf0df; border-color: #eed8b6; color: #7d5620; }
.chip.hot { background: #f8e3df; border-color: #eec9c2; color: var(--rose); }

.two { display: grid; grid-template-columns: 1fr; gap: 16px; }

@media (min-width: 760px) { .two { grid-template-columns: 1fr 1fr; } }

.count { color: var(--muted); font-family: "Segoe UI", sans-serif; font-size: 13px; font-weight: 400; }

.hint { color: var(--muted); font-size: 13px; margin: 0 0 10px; }

ul.plain { list-style: none; margin: 0; padding: 0; }

ul.plain li {
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  font-size: 14.5px;
}

ul.plain li:first-child { border-top: 0; }

ul.plain li.gone .task { text-decoration: line-through; text-decoration-color: #c8a49d; color: #7d6a66; }

blockquote {
  margin: 12px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--amber);
  background: #fbf6ea;
  border-radius: 0 10px 10px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: #3b4a41;
}

.reclaimed {
  margin-top: 14px;
  font-size: 14px;
  color: var(--forest);
  background: var(--sage);
  border: 1px solid #d7e4da;
  border-radius: 10px;
  padding: 10px 14px;
}

.actions { margin-top: 4px; }

.ledger { margin-left: auto; color: var(--muted); font-size: 13px; }

.overbudget {
  margin-top: 12px;
  font-size: 13.5px;
  color: #7d5620;
  background: #fdf1de;
  border: 1px solid #eed8b6;
  border-radius: 10px;
  padding: 9px 12px;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  padding: 10px 20px 40px;
}

.linklike {
  background: none;
  border: 0;
  padding: 0;
  color: var(--forest);
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.hidden { display: none !important; }
