/* Teacher Aira - class booking.
   One stylesheet, no framework, no build step. Written mobile-first: the base
   rules are the phone, and the wider screens only add to them. Most students
   book from a phone, so that is the design that gets the attention. */

@import url('/css/fonts.css');

:root {
  color-scheme: light dark;

  /* Warm ivory rather than grey - it reads as paper, not as an admin panel. */
  --bg: #f6f3ed;
  --bg-deep: #efeae1;
  --surface: #fffdfa;
  --surface-2: #f4f0e8;
  --ink: #16171d;
  --ink-2: #45464f;
  --muted: #74727b;
  --line: #e4ddd1;
  --line-soft: #eee9df;

  /* Gold is the accent, used sparingly: rules, the active day, the brand mark. */
  --gold: #9a7b23;
  --gold-bright: #c2a04a;
  --gold-wash: #f6efdc;

  --ink-deep: #14151b;

  /* Green means "you can have this one". */
  --free-bg: #eef6f0;
  --free-line: #b9d8c5;
  --free-ink: #0c5f42;
  --free-dot: #17845d;

  --taken-bg: #f4f1eb;
  --taken-ink: #6a6872;

  --bad: #9d2e22;
  --bad-bg: #fbecea;
  --bad-line: #e8c3bd;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(28, 22, 10, .05);
  --shadow: 0 2px 4px rgba(28, 22, 10, .04), 0 12px 28px -12px rgba(28, 22, 10, .18);
  --shadow-lg: 0 -6px 40px -8px rgba(20, 16, 8, .28);

  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1015;
    --bg-deep: #0a0b0f;
    --surface: #191b23;
    --surface-2: #21232d;
    --ink: #f2efe9;
    --ink-2: #cbc7c0;
    --muted: #99969f;
    --line: #2c2e39;
    --line-soft: #24262f;

    --gold: #d9bb72;
    --gold-bright: #e8cf95;
    --gold-wash: #2a2418;

    --ink-deep: #05060a;

    --free-bg: #10291f;
    --free-line: #2c5f48;
    --free-ink: #7fd8b0;
    --free-dot: #4bbd8d;

    --taken-bg: #21232d;
    --taken-ink: #a5a2ac;

    --bad: #f0a49a;
    --bad-bg: #341916;
    --bad-line: #5c2f29;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 28px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 -6px 40px -8px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  font-synthesis-weight: none;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.005em;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(1.7rem, 1.35rem + 1.8vw, 2.6rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
a { color: var(--ink); text-underline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 18px; }
.wrap--narrow { max-width: 600px; }

/* A small letterspaced label, the one flourish that carries the whole tone. */
.eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================== header === */

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ink-deep);
  color: #f4f1ea;
  /* The single gold hairline is what makes the bar read as considered. */
  border-bottom: 1px solid rgba(194, 160, 74, .38);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-bright);
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1;
  padding-bottom: 2px;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__text strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.06rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__text span {
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, .62);
}

/* Language switch: a segmented pill, always reachable. */
.langswitch {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(244, 241, 234, .22);
  border-radius: 999px;
}
.langswitch a {
  display: grid;
  place-items: center;
  min-width: 46px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(244, 241, 234, .7);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
}
.langswitch a:hover { color: #fff; }
.langswitch a[aria-current='true'] {
  background: var(--gold-bright);
  color: #17140b;
}

/* ============================================================== footer === */

.site-foot {
  margin-top: 44px;
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
.site-foot p { margin: 0; }

/* ================================================================ hero === */

main { padding-top: 26px; }

.hero { max-width: 34ch; margin-bottom: 22px; }
.hero h1 { margin-bottom: .3em; }
.lede { color: var(--ink-2); font-size: 1.02rem; margin-bottom: 0; }

.notice {
  margin: 18px 0 0;
  padding: 12px 15px;
  background: var(--gold-wash);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-bright);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-2);
  font-size: .92rem;
}
.notice--bad {
  background: var(--bad-bg);
  border-color: var(--bad-line);
  border-left-color: var(--bad);
  color: var(--bad);
}

/* ============================================================ timezone === */

.tzbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 20px 0 14px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: .88rem;
}
.tzbar__text { margin: 0; color: var(--ink-2); }
.tzbar__text strong { color: var(--ink); }
.tzbar__toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  cursor: pointer;
  color: var(--ink-2);
}
.tzbar__toggle input { width: 19px; height: 19px; accent-color: var(--gold); flex: none; }

/* ============================================================ week nav === */

.weeknav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
}
.weeknav__label { text-align: center; line-height: 1.25; min-width: 0; }
.weeknav__label strong {
  display: block;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
}
.weeknav__label span { display: block; color: var(--muted); font-size: .78rem; }

.navbtn {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.navbtn:hover { border-color: var(--gold-bright); color: var(--gold); }
.navbtn.is-disabled { opacity: .35; pointer-events: none; }

.backlink { margin: -6px 0 14px; font-size: .88rem; }
.backlink a { color: var(--gold); }

/* ============================================================= buttons === */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--gold-bright); }
.btn--go {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
  color: #f7f3e9;
}
.btn--go:hover { background: #24252f; border-color: var(--gold-bright); color: #fff; }
.btn--bad { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn--bad:hover { opacity: .92; color: #fff; }
.btn--ghost { background: transparent; }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: .86rem; }
.btn--block { width: 100%; }
.btn.is-disabled { opacity: .4; pointer-events: none; }
.btn[disabled] { opacity: .6; cursor: progress; }

.linky {
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink-2);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
}
.linky:hover { background: var(--surface-2); color: var(--ink); }

/* ============================================================ day tabs === */

.daytabs {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 2px 18px 6px;
  /* Bleed to the screen edge so the strip reads as scrollable. */
  margin-inline: -18px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.daytabs::-webkit-scrollbar { display: none; }
.daytabs li { flex: 0 0 auto; scroll-snap-align: center; }

.daytab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 76px;
  min-height: 78px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.daytab__name {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.daytab__date {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}
.daytab__count { font-size: .68rem; color: var(--free-dot); font-weight: 600; }
.daytab.is-off .daytab__count { color: var(--muted); }

.daytab[aria-selected='true'] {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
}
.daytab[aria-selected='true'] .daytab__name { color: var(--gold-bright); }
.daytab[aria-selected='true'] .daytab__date { color: #fff; }
.daytab[aria-selected='true'] .daytab__count { color: rgba(255, 255, 255, .72); }

.daytab.is-today:not([aria-selected='true']) { border-color: var(--gold-bright); }

/* ================================================================ grid === */

.grid { display: grid; gap: 14px; }

.day {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow);
}
.day--off { background: var(--surface-2); box-shadow: none; }

.day__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 8px 10px 10px;
  font-size: .95rem;
  border-bottom: 1px solid var(--line-soft);
}
.day__name { font-family: var(--display); font-weight: 600; font-size: 1rem; }
.day__date {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.day--today .day__date { color: var(--gold); }
.day__off { margin: 0; padding: 18px 10px; color: var(--muted); font-size: .9rem; text-align: center; }

.slots { list-style: none; margin: 0; padding: 6px 0 0; display: grid; gap: 5px; }

.slot { border-radius: 11px; font-size: .95rem; }

.slot__btn,
.slot--taken,
.slot--past,
.slot--closed,
.slot--future {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
}

.slot__time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}

/* --- free --------------------------------------------------------------- */

.slot__btn {
  background: var(--free-bg);
  border-color: var(--free-line);
  color: var(--free-ink);
  text-decoration: none;
  cursor: pointer;
}
.slot__btn:hover { border-color: var(--free-dot); }
.slot__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.slot__free {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.slot__free::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--free-dot);
}
.slot__go { color: var(--free-dot); font-size: 1.1rem; line-height: 1; }

/* --- taken and unavailable ---------------------------------------------- */

.slot--taken { background: var(--taken-bg); color: var(--taken-ink); }
.slot--taken .slot__time { color: var(--ink-2); }
.slot__who {
  margin-left: auto;
  min-width: 0;
  font-size: .88rem;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot--past, .slot--closed, .slot--future { color: var(--muted); }
.slot--past .slot__time, .slot--closed .slot__time, .slot--future .slot__time { opacity: .55; font-weight: 500; }
.slot__note { margin-left: auto; font-size: .76rem; text-align: right; opacity: .8; }

/* ============================================================== legend === */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 20px 0 0;
  padding: 16px 2px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.chip { width: 13px; height: 13px; border-radius: 4px; border: 1px solid var(--line); flex: none; }
.chip--free { background: var(--free-bg); border-color: var(--free-line); }
.chip--taken { background: var(--taken-bg); }
.chip--closed { background: transparent; }

/* ======================================================= your bookings === */

.mine { margin-top: 34px; }
.mine h2 { font-size: 1.35rem; }
.mine__hint { color: var(--muted); font-size: .84rem; margin-top: -.4rem; }
.mine ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mine li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 15px 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-bright);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.mine li strong { display: block; font-weight: 600; }
.mine li span { color: var(--muted); font-size: .82rem; }

/* ======================================================== bottom sheet === */

.sheet {
  width: 100%;
  max-width: 100%;
  /* On a phone this is a bottom sheet: it rises from the thumb, not the middle. */
  margin: auto auto 0;
  padding: 26px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.sheet::backdrop { background: rgba(14, 12, 8, .55); }
.sheet[open] { animation: sheet-rise .3s cubic-bezier(.2, .8, .2, 1); }

/* Move, do not fade: a fading panel reads as a rendering glitch on a slow phone. */
@keyframes sheet-rise { from { transform: translateY(14px); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .sheet[open] { animation: none; }
}

.sheet h2 { font-size: 1.5rem; margin-bottom: .15em; }
.sheet__grip {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  margin: -12px auto 16px;
}
.sheet__close-form { margin: 0; float: right; }
.sheet__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -10px -8px 0 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.sheet__close:hover { background: var(--surface-2); color: var(--ink); }
.sheet__when { color: var(--gold); font-size: .92rem; font-weight: 600; margin: 0 0 20px; }
.sheet__error {
  margin: 0 0 14px;
  padding: 11px 14px;
  background: var(--bad-bg);
  border: 1px solid var(--bad-line);
  border-radius: 10px;
  color: var(--bad);
  font-size: .9rem;
}
.sheet__actions { display: flex; flex-direction: column-reverse; gap: 10px; }
.sheet__done { text-align: center; padding: 8px 0 4px; }
.sheet__tick {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--free-line);
  background: var(--free-bg);
  color: var(--free-dot);
  font-size: 1.6rem;
  line-height: 1;
}
.sheet__code {
  display: inline-block;
  margin: 4px 0 14px;
  padding: 9px 16px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: .9rem;
}
.sheet__code strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .1em;
  color: var(--gold);
}
.sheet__small { color: var(--muted); font-size: .84rem; }

/* =============================================================== forms === */

.field { display: block; margin: 0 0 16px; }
.field > span {
  display: block;
  margin-bottom: 7px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  /* Only the colour, never the `background` shorthand: the shorthand also
     resets background-image and wipes the chevron off a custom select. */
  background-color: var(--surface);
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 78px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.field--row { display: flex; gap: 14px; flex-wrap: wrap; }
.field--row > label { flex: 1 1 170px; }
.field--check { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; min-height: 44px; }
.field--check input { width: 21px; height: 21px; min-height: 0; flex: none; accent-color: var(--gold); }
.field--check span { font-weight: 500; }
.hint { color: var(--muted); font-size: .84rem; margin: -8px 0 15px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.card--good { border-color: var(--free-line); }
.card + .card { margin-top: 18px; }
.card h1:first-child, .card h2:first-child { margin-top: 0; }

.login { max-width: 400px; margin: 8vh auto; }

/* =============================================================== admin === */

.admin-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.admin-nav a, .admin-nav .linky {
  padding: 9px 11px;
  border-radius: 8px;
  color: rgba(244, 241, 234, .74);
  font-size: .88rem;
  text-decoration: none;
}
.admin-nav a:hover, .admin-nav .linky:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.admin-nav form { display: inline; margin: 0; }

.adminbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.adminbar h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); margin-bottom: .1em; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.stats li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.stats strong { display: block; font-family: var(--display); font-size: 1.7rem; line-height: 1.1; }
.stats span { color: var(--muted); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }

.toolbar { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 20px; }

table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data th { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; }
table.data tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--ink-2);
}
.tag--repeat { background: var(--gold-wash); color: var(--gold); }

/* A teacher's slot carries a name, a "weekly" tag and a cancel control, which
   do not fit on one line inside a seventh of a wide screen. */
.page-admin .slots, .page-admin .slot { min-width: 0; }
.page-admin .slot--taken { gap: 10px; }
.page-admin .slot--taken .slot__who { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.page-admin .slot--taken .slot__who .tag { flex: none; }
.page-admin .slot--taken .linky {
  flex: none;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  line-height: 1;
}
.page-admin .slot--taken .linky:hover { background: var(--bad-bg); color: var(--bad); }

/* ========================================================== wide screens === */

@media (max-width: 899px) {
  /* One day at a time; the tabs above are the navigation. */
  .day { display: none; }
  .day.is-active { display: block; }
  .day__head { display: none; }
}

@media (min-width: 640px) {
  .sheet {
    max-width: 470px;
    margin: auto;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
  }
  .sheet__grip { display: none; }
  .sheet__actions { flex-direction: row; justify-content: flex-end; }
  .sheet__actions .btn { min-width: 120px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  main { padding-top: 34px; }
  .wrap { padding: 0 28px; }
  .daytabs { display: none; }

  .grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: start; }
  .day { padding: 6px; border-radius: var(--radius); }
  .day--today { border-color: var(--gold-bright); }
  .day__head { padding: 8px 8px 9px; }
  .day__name { font-size: .92rem; }
  .day__date { font-size: .66rem; }

  .slot__btn, .slot--taken, .slot--past, .slot--closed, .slot--future {
    min-height: 46px;
    padding: 8px 10px;
    gap: 6px;
    font-size: .87rem;
  }
  .slot__free { font-size: .62rem; letter-spacing: .08em; gap: 5px; }
  .slot__go { display: none; }
  .slot__who { font-size: .8rem; }
  .slot__note { font-size: .68rem; }

  .page-admin .slot--taken {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'time cancel' 'who who';
    align-items: center;
    gap: 0 6px;
    padding: 7px 9px;
  }
  .page-admin .slot--taken .slot__time { grid-area: time; }
  .page-admin .slot--taken form { grid-area: cancel; }
  .page-admin .slot--taken .slot__who { grid-area: who; margin-left: 0; justify-content: flex-start; max-width: 100%; }
  .page-admin .slot--taken .linky { min-width: 26px; min-height: 26px; font-size: 1.05rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .slot__btn, .btn, .navbtn, .daytab { transition: border-color .14s ease, background-color .14s ease, color .14s ease; }
}
