/* Hallmark · macrostructure: Map / Diagram (calendar is the map) · tone: utilitarian-quiet · anchor hue: 162 green
 * theme: custom (vibe: "condo notice board, calm, monochrome, one green signal")
 * paper oklch(97.6% 0.003 162) · accent oklch(69.6% 0.149 162) green, highlights only
 * fonts: Inter Tight (display + UI) · JetBrains Mono (labels, ticket) · Geist Pixel (one word: today status)
 * axes: light / geometric-sans + pixel accent / chromatic-other (green 162)
 * nav: N9 Edge-aligned minimal (floating, blur) · footer: Ft2 Inline single line (dark band + watermark)
 * enrichment: none (the calendar is the image) · motion: sheet-rise · press · fade
 * Hallmark · pre-emit critique: P4 H5 E4 S5 R5 V4
 */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  font-weight: 450;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- Floating bar (N9) ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  padding: calc(var(--space-2xs) + env(safe-area-inset-top)) var(--space-xs) 0;
}
.bar-inner {
  max-width: var(--layout-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs);
  padding: var(--space-3xs) var(--space-3xs) var(--space-3xs) var(--space-xs);
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill);
  background: var(--color-glass);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: var(--shadow-2);
}
.wordmark {
  display: flex; align-items: center; gap: var(--space-2xs); min-width: 0; min-height: var(--tap);
  color: var(--color-ink); text-decoration: none; font-weight: 650; font-size: var(--text-sm); letter-spacing: -.01em;
}
.wordmark-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mono-badge {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--radius-sm);
  background: var(--color-ink); color: var(--color-paper);
  font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: 700; letter-spacing: .02em;
}

/* Black pill with arrow: the one button voice of the page */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs);
  min-height: var(--tap); padding: 0 var(--space-md); white-space: nowrap;
  border: 0; border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper);
  font-weight: 650; font-size: var(--text-sm); letter-spacing: -.005em; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.pill .arrow { display: inline-block; }
.pill:hover { background: var(--color-ink-2); }
.pill:active { transform: scale(.98); }
.pill:disabled { opacity: .4; cursor: default; transform: none; }
.pill[aria-busy="true"] { opacity: .75; cursor: progress; }
.pill.block { display: flex; width: 100%; min-height: 56px; margin-top: var(--space-md); font-size: var(--text-md); }
.pill.ghost { background: transparent; color: var(--color-ink); border: var(--rule-hair) solid var(--color-rule-2); }
.pill.ghost:hover { background: var(--color-paper-2); }
.pill.block.ghost { margin-top: var(--space-2xs); }

/* ---------- Page ---------- */
.page {
  max-width: var(--layout-max); margin: 0 auto;
  padding: var(--space-xl) var(--space-xs) var(--space-2xl);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md);
}
.intro { padding: 0 var(--space-2xs); }
.intro h1 {
  font-size: var(--text-display); font-weight: 800; line-height: .96; letter-spacing: -.045em;
  overflow-wrap: anywhere; min-width: 0;
}
.today-line { margin-top: var(--space-sm); font-size: var(--text-lg); font-weight: 550; letter-spacing: -.01em; color: var(--color-ink-2); }
.pixel { font-family: var(--font-pixel); font-weight: 400; color: var(--color-accent-ink); letter-spacing: .01em; font-size: 1.3em; line-height: 1; }
.pixel.busy { color: var(--color-ink); }
.hint { margin-top: var(--space-2xs); color: var(--color-muted); }

/* ---------- Calendar card: the map ---------- */
.cal-card, .list-card {
  background: var(--color-surface); border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-3);
}
.cal-card { padding: var(--space-sm) var(--space-2xs) var(--space-md); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); padding: 0 var(--space-2xs) var(--space-sm); }
.cal-head h2 { font-size: var(--text-month); min-width: 0; font-weight: 750; letter-spacing: -.025em; white-space: nowrap; }
.month-nav { display: flex; gap: var(--space-2xs); }
.round {
  width: var(--tap); height: var(--tap); flex: none; display: grid; place-items: center; cursor: pointer;
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill);
  background: var(--color-surface); color: var(--color-ink);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.round:hover { background: var(--color-paper-2); border-color: var(--color-rule-2); }
.round:active { transform: scale(.94); }
.round:disabled { opacity: .35; cursor: default; transform: none; background: var(--color-surface); }

.wk, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-3xs); }
.wk { padding: 0 0 var(--space-2xs); }
.wk span {
  text-align: center; font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted);
}
.day {
  position: relative; min-height: 80px; padding: var(--space-3xs);
  display: flex; flex-direction: column; gap: var(--space-3xs); text-align: left; cursor: pointer;
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.day:hover { border-color: var(--color-rule-2); }
.day:active { transform: scale(.96); }
.day .n {
  align-self: flex-start; min-width: 24px; height: 24px; padding: 0 var(--space-3xs);
  display: grid; place-items: center; border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.day .s {
  height: 16px; border-radius: 4px; background: var(--color-slot-free);
  font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: 600; line-height: 16px; text-align: center;
  color: var(--color-slot-ink); font-variant-numeric: tabular-nums; overflow: hidden;
}
.day .s.m, .day .s.t, .day .s.n { background: var(--color-slot); }
.day.today .n { background: var(--color-accent); color: var(--color-ink); }
.day.sel { border-color: var(--color-ink); box-shadow: 0 0 0 2px var(--color-ink); }
.day.past { background: var(--color-paper); border-color: transparent; cursor: default; }
.day.past .n { color: var(--color-faint); font-weight: 500; }
.day.past .s { opacity: .4; }
.day.past:active { transform: none; }
.day.blank { visibility: hidden; }

.legend { list-style: none; margin: var(--space-md) var(--space-2xs) 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 32px; padding: 0 var(--space-xs) 0 var(--space-2xs);
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper);
  font-size: var(--text-sm); font-weight: 600; white-space: nowrap;
}
.glyph { display: inline-flex; flex-direction: column; gap: 2px; width: 14px; }
.glyph i { display: block; height: 4px; border-radius: 1px; background: var(--color-slot-free); box-shadow: inset 0 0 0 1px var(--color-rule-2); }
.glyph i.on { background: var(--color-slot); box-shadow: none; }
.legend-note { margin: var(--space-xs) var(--space-2xs) 0; font-size: var(--text-sm); color: var(--color-muted); }

.status { padding: 0 var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }
.status:empty { display: none; }
.status.err { color: var(--color-bad); font-weight: 600; }

/* ---------- Month list ---------- */
.list-card { padding: var(--space-md) var(--space-md) var(--space-xs); }
.list-card h2 { font-size: var(--text-lg); font-weight: 750; letter-spacing: -.02em; margin-bottom: var(--space-2xs); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-xs); min-height: 56px; border-top: var(--rule-hair) solid var(--color-rule); }
.list li:first-child { border-top: 0; }
.list li.empty { display: block; color: var(--color-muted); padding: var(--space-xs) 0; }
.li-date { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--color-muted); width: 76px; font-variant-numeric: tabular-nums; }
.li-period { font-weight: 650; }
.li-apt { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; padding: var(--space-3xs) var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-paper-2); font-variant-numeric: tabular-nums; }

/* ---------- Dark footer + watermark (Ft2) ---------- */
.foot { position: relative; overflow: hidden; background: var(--color-night); color: var(--color-night-ink); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.foot-inner { position: relative; z-index: 1; max-width: var(--layout-max); margin: 0 auto; padding: var(--space-xl) var(--space-md) var(--space-3xl); }
.foot-line { font-size: var(--text-lg); font-weight: 600; letter-spacing: -.015em; max-width: 45ch; }
.foot-meta { margin-top: var(--space-xs); padding-top: var(--space-xs); border-top: var(--rule-hair) solid var(--color-night-rule); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-night-muted); }
.watermark {
  position: absolute; left: 50%; bottom: -.24em; transform: translateX(-50%);
  font-size: clamp(6rem, 30vw, 18rem); font-weight: 800; letter-spacing: -.06em; line-height: 1;
  color: var(--color-night-mark); white-space: nowrap; pointer-events: none; user-select: none;
}

/* ---------- Sheet ---------- */
dialog {
  border: var(--rule-hair) solid var(--color-rule); padding: 0; width: 100%; max-width: 560px;
  max-height: 92vh; max-height: 92dvh; margin: auto auto 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: var(--color-surface); color: var(--color-ink);
  box-shadow: var(--shadow-3); overscroll-behavior: contain;
}
dialog::backdrop { background: var(--color-scrim); }
dialog[open] { animation: rise var(--dur-slow) var(--ease-out); }
dialog[open]::backdrop { animation: fade-in var(--dur-base) var(--ease-out); }
dialog.closing { animation: sink 200ms var(--ease-in) forwards; }
dialog.closing::backdrop { animation: fade-out 200ms var(--ease-in) forwards; }
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sink { from { transform: none; } to { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
.sheet-inner { padding: var(--space-2xs) var(--space-md) calc(var(--space-md) + env(safe-area-inset-bottom)); }
.grabber { display: block; width: 36px; height: 4px; border-radius: var(--radius-pill); background: var(--color-rule-2); margin: 0 auto var(--space-xs); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); }
.sheet-head h2 { font-size: var(--text-2xl); font-weight: 750; letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; min-width: 0; }
.close { background: var(--color-paper); }
#sheet-body > * { animation: fade-in var(--dur-base) var(--ease-out) both; }

.label, legend {
  display: block; padding: 0; margin: 0 0 var(--space-2xs);
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted);
}
fieldset { border: 0; padding: 0; margin: var(--space-md) 0 0; min-width: 0; }

.opts { display: grid; gap: var(--space-2xs); }
.opts.apts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opts.periods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { position: relative; display: block; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt > span {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2xs);
  min-height: var(--tap); padding: var(--space-2xs); border-radius: var(--radius-md);
  border: var(--rule-hair) solid var(--color-rule-2); background: var(--color-surface);
  font-weight: 650; font-variant-numeric: tabular-nums;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.opts.apts .opt > span { font-family: var(--font-mono); font-weight: 600; }
.opt:hover > span { border-color: var(--color-control); }
.opt:active > span { transform: scale(.97); }
.opt input:checked + span { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.opt input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.opts.periods .opt > span { justify-content: space-between; min-height: 60px; padding: var(--space-2xs) var(--space-xs); text-align: left; }
.ptxt { display: flex; flex-direction: column; line-height: 1.2; }
.ptxt small { font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: 500; letter-spacing: .04em; color: var(--color-muted); }
.blocks { display: flex; flex-direction: column; gap: 3px; width: 18px; flex: none; }
.blocks i { display: block; height: 5px; border-radius: 1.5px; background: var(--color-slot-free); box-shadow: inset 0 0 0 1px var(--color-rule-2); }
.blocks i.on { background: var(--color-slot); box-shadow: none; }
.opt input:checked + span .blocks i { background: var(--color-ink-2); box-shadow: none; }
.opt input:checked + span .blocks i.on { background: var(--color-accent); }
.opt input:disabled { cursor: not-allowed; }
.opt input:disabled + span { background: var(--color-paper); border-style: dashed; color: var(--color-faint); }
.opt input:disabled + span .blocks { opacity: .45; }
.opt:has(input:disabled):hover > span { border-color: var(--color-rule-2); }
.opt:has(input:disabled):active > span { transform: none; }

/* existing bookings in the sheet */
.booked-wrap { margin-top: var(--space-md); }
.booked { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2xs); }
.booked button {
  width: 100%; min-height: 60px; display: flex; align-items: center; gap: var(--space-xs); cursor: pointer; text-align: left;
  padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-lg);
  border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.booked button:hover { border-color: var(--color-rule-2); }
.booked button:active { transform: scale(.98); }
.booked .bt { flex: 1; min-width: 0; line-height: 1.25; }
.booked .bt b { display: block; font-weight: 650; }
.booked .bt span { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); }
.booked .act { font-size: var(--text-sm); font-weight: 650; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }

.note { margin-top: var(--space-md); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-lg); background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); }
.msg { margin-top: var(--space-xs); }
.msg:empty { display: none; }
.msg.err { padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-md); background: var(--color-bad-soft); color: var(--color-bad); font-weight: 600; font-size: var(--text-sm); }

/* ---------- Ticket (code reveal) ---------- */
.ticket { position: relative; margin-top: var(--space-sm); font-family: var(--font-mono); }
/* Two halves; each half has its notch corners masked out, so the holes are real cut-outs
   (no stroke, nothing drawn outside the ticket edge). -webkit-mask for iOS Safari. */
.ticket-top, .ticket-code {
  --notch: 11px;
  background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule-2);
  -webkit-mask: radial-gradient(circle at var(--nx-l), transparent var(--notch), var(--color-ink) calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
                radial-gradient(circle at var(--nx-r), transparent var(--notch), var(--color-ink) calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at var(--nx-l), transparent var(--notch), var(--color-ink) calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
                radial-gradient(circle at var(--nx-r), transparent var(--notch), var(--color-ink) calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
}
.ticket-top { --nx-l: 0 100%; --nx-r: 100% 100%; border-bottom: 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.ticket-code { --nx-l: 0 0; --nx-r: 100% 0; border-top: 0; border-radius: 0 0 var(--radius-xl) var(--radius-xl); position: relative; }
.ticket-code::before {
  content: ""; position: absolute; top: 0; left: calc(var(--notch) + var(--space-2xs)); right: calc(var(--notch) + var(--space-2xs));
  border-top: 2px dashed var(--color-rule-2);
}
.ticket-top { padding: var(--space-sm) var(--space-md); }
.ticket-status { display: flex; align-items: center; gap: var(--space-2xs); font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-ink); }
.ticket-status::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--color-accent); }
.ticket dl { margin: var(--space-sm) 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3xs) var(--space-sm); font-size: var(--text-sm); }
.ticket dt { color: var(--color-muted); text-transform: uppercase; letter-spacing: .06em; font-size: var(--text-xs); line-height: 1.6; }
.ticket dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.ticket-code { padding: var(--space-md) var(--space-md) var(--space-md); text-align: center; }
.ticket-code .code { display: block; margin-top: var(--space-3xs); font-size: 3rem; font-weight: 700; letter-spacing: .3em; padding-left: .3em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.save { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.saved { margin-top: var(--space-xs); font-size: var(--text-sm); font-weight: 600; color: var(--color-accent-ink); }
.saved:empty { display: none; }
.saved.err { color: var(--color-bad); }

.done { display: flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-sm); }
.check { flex: none; width: 40px; height: 40px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--color-accent-soft); color: var(--color-accent-ink); }
.done p { font-weight: 600; }

/* ---------- Cancel field ---------- */
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-xs); margin-top: var(--space-md); }
.field-row .label { margin: 0; }
.field-row + input.code-in { margin-top: var(--space-2xs); }
.toggle-row { margin-top: var(--space-3xs); justify-content: flex-end; }
.linkish {
  min-height: var(--tap); padding: 0 var(--space-3xs); border: 0; background: none; cursor: pointer; white-space: nowrap;
  font-size: var(--text-sm); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--color-ink-2);
}
.linkish:hover { color: var(--color-ink); }
.linkish:active { color: var(--color-ink); text-decoration-thickness: 2px; }
.linkish:disabled { opacity: .4; cursor: default; }
input.code-in {
  display: block; width: 100%; min-height: 60px; padding: 0 var(--space-sm);
  font-family: var(--font-mono); font-size: var(--text-xl); font-weight: 600; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums;
  border: var(--rule-hair) solid var(--color-control); border-radius: var(--radius-lg); background: var(--color-surface);
}
input.code-in:hover { border-color: var(--color-ink-2); }
input.code-in:disabled { opacity: .5; cursor: not-allowed; }
input.code-in.admin { letter-spacing: .08em; }
input.code-in:focus { outline: none; border-color: var(--color-ink); box-shadow: 0 0 0 2px var(--color-ink); }
input.code-in[aria-invalid="true"] { border-color: var(--color-bad); }

/* ---------- Desktop: text left, map right ---------- */
@media (min-width: 900px) {
  .page {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "intro cal" "list cal" "status cal";
    align-items: start; column-gap: var(--space-xl); row-gap: var(--space-md); padding-top: var(--space-3xl);
  }
  .intro { grid-area: intro; }
  .intro h1 { font-size: var(--text-display-desk); }
  .cal-card { grid-area: cal; padding: var(--space-md) var(--space-sm) var(--space-md); }
  .list-card { grid-area: list; }
  .status { grid-area: status; }
  .day { min-height: 104px; padding: var(--space-2xs) var(--space-3xs); gap: var(--space-3xs); }
  .day .s { height: 18px; line-height: 18px; font-size: var(--text-xs); }
  .wk, .days { gap: var(--space-2xs); }
  dialog { margin: auto; border-radius: var(--radius-xl); }
  .grabber { display: none; }
  .sheet-inner { padding-top: var(--space-md); }
  @keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes sink { from { transform: none; opacity: 1; } to { transform: translateY(16px); opacity: 0; } }
}

/* Reduced motion: spatial motion collapses to a short opacity crossfade */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; }
  .day:active, .pill:active, .round:active, .opt:active > span, .booked button:active { transform: none; }
  dialog[open] { animation: fade-in 120ms linear; }
  dialog.closing { animation: fade-out 120ms linear forwards; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Narrow phones: give the 7 day columns every pixel so cells reach 48px wide at 390px */
@media (max-width: 430px) {
  .page { padding-left: var(--space-2xs); padding-right: var(--space-2xs); }
  .cal-card { padding-left: var(--space-3xs); padding-right: var(--space-3xs); }
}
