:root {
  --forest-deep: #10261c;
  --forest: #1b4332;
  --forest-mid: #2d6a4f;
  --forest-soft: #d8eadf;
  --paper: #f3eee4;
  --raised: #fffaf1;
  --rule: #ddd4c4;
  --ink: #1b211d;
  --muted: #5c675f;
  --faint: #8b928a;
  --brass: #b08a3c;
  --brass-soft: #f0e2bf;
  --danger: #9b3a2f;
  --sans: "Figtree", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); font-family: var(--sans); }
body {
  background-image:
    linear-gradient(180deg, rgba(16, 38, 28, 0.04), transparent 28%),
    repeating-linear-gradient(180deg, transparent, transparent 27px, rgba(27, 67, 50, 0.035) 28px);
}
button, input, select, textarea { font: inherit; }
a { color: var(--forest); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

.app { min-height: 100dvh; }
.auth, .page { max-width: 720px; margin: 0 auto; padding: 1.25rem 1rem 6rem; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
h1, h2, .display { font-family: var(--display); color: var(--forest-deep); font-weight: 560; }
h1 { font-size: 2.1rem; margin: 0.2rem 0 0.4rem; }
.muted { color: var(--muted); }
.panel { background: var(--raised); border: 1px solid var(--rule); border-radius: 10px; padding: 1rem; margin: 1rem 0; }
label { display: block; margin: 0.7rem 0; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 44px; margin-top: 0.35rem; padding: 0.55rem 0.7rem;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--raised); color: var(--ink);
}
textarea { min-height: 110px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 1rem; border: 0; border-radius: 10px; background: var(--forest); color: var(--raised);
  font-weight: 700; cursor: pointer;
}
.btn.secondary { background: var(--raised); color: var(--ink); border: 1px solid var(--rule); }
.btn.ghost { background: transparent; color: var(--forest); }
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.task { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.tick { width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--forest-mid); background: var(--raised); flex: 0 0 auto; }
.meta { font-size: 12px; color: var(--muted); }
.nav {
  position: fixed; inset: auto 0 0 0; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--raised); border-top: 1px solid var(--rule); z-index: 20;
}
.nav button {
  min-height: 64px; border: 0; background: transparent; color: var(--forest); font-size: 11px; font-weight: 700;
}
.banner { font-size: 12px; background: var(--brass-soft); color: var(--ink); padding: 0.6rem 1rem; }
.progress { height: 6px; background: var(--forest-soft); margin-top: 0.5rem; }
.progress > span { display: block; height: 100%; background: var(--forest); }
.hidden { display: none !important; }
.source { max-width: 100%; border-radius: 10px; }
.error { color: var(--danger); }
.week { display: grid; grid-template-columns: repeat(7, minmax(88px, 1fr)); gap: 0.4rem; overflow-x: auto; }
.day { min-height: 140px; border: 1px solid var(--rule); background: var(--raised); border-radius: 8px; padding: 0.45rem; }
.day h3 { margin: 0 0 0.4rem; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chip { border-left: 2px solid var(--forest); padding-left: 0.35rem; font-size: 12px; margin: 0.3rem 0; }
.chip.event { border-left-color: var(--brass); }
.timer { font-family: var(--display); font-size: 4rem; text-align: center; color: var(--forest-deep); }
.side { display: none; }
@media (min-width: 880px) {
  .shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100dvh; }
  .side { display: block; background: var(--forest-deep); color: var(--raised); padding: 1.5rem 1rem; }
  .side button { display: block; width: 100%; text-align: left; color: #d8eadf; background: transparent; border: 0; min-height: 44px; }
  .nav { display: none; }
  .page { max-width: 980px; padding-bottom: 2rem; }
}
