:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --ink: #1c1b19;
  --muted: #6f6b64;
  --line: #e3dfd7;
  --accent: #1c1b19;
  --accent-ink: #ffffff;
  --pick: #ece7dd;
  --ok: #2f6b3f;
  --bad: #a3322a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --surface: #1d1c1a;
    --ink: #f1eee8;
    --muted: #9c978e;
    --line: #2f2d2a;
    --accent: #f1eee8;
    --accent-ink: #141413;
    --pick: #2c2a26;
    --ok: #7dbb8c;
    --bad: #e07a70;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
}
main { max-width: 640px; margin: 0 auto; padding: 48px 16px 72px; }
header { margin-bottom: 28px; }
header.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font: 400 clamp(30px, 7vw, 42px)/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.01em; }
h2 { font: 400 22px/1.2 Georgia, serif; margin: 0 0 14px; }
h3 { font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.lede { color: var(--muted); margin: 0 0 28px; }
a { color: inherit; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 28px; }
.card.narrow { max-width: 360px; }
.card.done h2 { color: var(--ok); }
section { margin-bottom: 32px; }

fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font: 400 22px/1.2 Georgia, serif; margin-bottom: 16px; padding: 0; }
.day { margin-bottom: 20px; }
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.time { position: relative; }
.time input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.time span {
  display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-variant-numeric: tabular-nums; cursor: pointer; transition: background .15s, border-color .15s;
}
.time input:hover + span { border-color: var(--muted); }
.time input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.time input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.opt { color: var(--muted); font-weight: 400; }
input:not([type=radio]), textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
button {
  font: inherit; font-weight: 600; padding: 12px 22px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink); cursor: pointer;
}
button.link { background: none; color: var(--muted); padding: 4px 0; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
button.link.danger { color: var(--bad); }

.add { display: grid; grid-template-columns: 1fr 1.4fr .8fr auto; gap: 12px; align-items: end; }
.add label { margin: 0; }
@media (max-width: 560px) { .add { grid-template-columns: 1fr 1fr; } .add button { grid-column: 1 / -1; } }

.slots { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.slots li { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .slots li { grid-template-columns: 220px 1fr auto; gap: 16px; align-items: start; } }
.when { font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: 14px; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: var(--pick); margin-right: 6px; }
.badge.open { color: var(--ok); }
.note { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.past .when, .past .who { color: var(--muted); }

.error { color: var(--bad); font-weight: 500; }
.notice { background: var(--pick); padding: 10px 14px; border-radius: 10px; }
.empty, .muted { color: var(--muted); }
.small { font-size: 13px; }
