/* Client booking page: calm and professional. */
:root {
  --bg: #f6f5f1; --card: #ffffff; --ink: #1f2a2e; --muted: #66737a; --line: #e3e1da;
  --accent: #2f6f68; --accent-ink: #ffffff; --accent-soft: #e8f1ef; --accent-line: #b9d4cf;
  --ok: #2e6b3f; --ok-soft: #e9f3ec; --warn: #8a5a00; --warn-soft: #fbf3e2;
  --radius: 14px; --shadow: 0 1px 2px rgba(31,42,46,.05), 0 6px 20px rgba(31,42,46,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a1c; --card: #1b2326; --ink: #e8eeee; --muted: #9fb0b4; --line: #2c393c;
    --accent: #6fb7ad; --accent-ink: #0d1f1d; --accent-soft: #1d3330; --accent-line: #2f5f58;
    --ok: #8fd19e; --ok-soft: #1c3322; --warn: #f0c46b; --warn-soft: #33291a; --shadow: none;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 680px; margin: 0 auto; padding: 28px 16px 64px; }
header.who { text-align: center; margin-bottom: 22px; }
header.who .name { font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 600; letter-spacing: .2px; }
header.who .role { color: var(--muted); font-size: 15px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-size: 22px; margin: 0 0 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card + .card { margin-top: 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.notice { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 10px 14px; margin: 12px 0; font-size: 15px; }
.day { margin-top: 18px; }
.day:first-of-type { margin-top: 10px; }
.day h2 { font-size: 15px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.time { border: 1px solid var(--accent-line); background: var(--card); color: var(--accent); border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.time:hover { background: var(--accent-soft); }
.time.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.time small { display: block; font-weight: 400; font-size: 12px; opacity: .85; }
.btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:disabled { opacity: .6; cursor: default; }
.btn + .btn { margin-left: 8px; }
.confirm-bar { position: sticky; bottom: 0; margin-top: 18px; padding: 14px 0 4px; background: linear-gradient(transparent, var(--card) 30%); }
.confirm-bar .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.status { display: flex; gap: 14px; align-items: flex-start; }
.status > div:last-child { min-width: 0; }
.status .mark { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: var(--accent-soft); color: var(--accent); }
.status.ok .mark { background: var(--ok-soft); color: var(--ok); }
.when { font-size: 18px; font-weight: 700; margin: 2px 0; }
.actions { margin-top: 16px; }
footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }
.loading { text-align: center; color: var(--muted); padding: 30px; }
button:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }
@media (max-width: 480px) { .btn + .btn { margin: 8px 0 0; } .actions .btn { width: 100%; } }
.flush { margin: 0; }
.gap { margin: 12px 0 0; }
.gap-lg { margin-top: 18px; }

/* month calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 17px; }
.cal-nav { border: 1px solid var(--line); background: var(--card); color: var(--ink); width: 38px; height: 38px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.cal-dow { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; padding-bottom: 2px; }
.cal-cell { aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; font-size: 15px; color: var(--muted); position: relative; }
.cal-cell.past { opacity: .45; }
.cal-cell.open { border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.cal-cell.open i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 3px; }
.cal-cell.open:hover { filter: brightness(.97); }
.cal-cell.open.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cal-cell.open.on i { background: var(--accent-ink); }
header.who .name { font-size: 24px; }
