:root { --paper: #F5F6F8; --surface: #fff; --line: #E3E6EC; --ink: #161C2C; --ink2: #394154; --faint: #626B80; --accent: #4148B5; --soft: #EAEBFB; --risk: #B3261E; --riskSoft: #FBE7E5; }
/* the app's own typeface, so a client's page looks like the same product (21 Nov) */
@font-face { font-family: "TD Text"; src: url("text.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
/* the digits as the app draws them (a plain zero, not a slashed one) */
@font-face { font-family: "TD Digits"; src: url("digits.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+30-39; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 "TD Digits", "TD Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
/* our name is a quiet line at the foot: the page is the practice's (21 Nov) */
.by { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 640px; margin: 0 auto; padding: 0 20px 40px; color: var(--faint); font-size: 14px; }
.mark { width: 18px; height: 18px; flex: none; }
.mark .sq { fill: var(--faint); }
main { max-width: 640px; margin: 0 auto; padding: 36px 20px 36px; }
h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 8px; text-wrap: balance; }
.from { margin: 0 0 14px; color: var(--faint); }
.lead { margin: 0 0 22px; color: var(--ink2); }
fieldset.q { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin: 0 0 14px; padding: 16px; min-width: 0; }
fieldset.q.missing { border: 2px solid var(--risk); padding: 15px; }
legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-weight: 600; }
legend + * { clear: both; }
.choice { position: relative; margin-top: 8px; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice label { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.choice input:checked + label { border: 2px solid var(--accent); padding: 11px 13px; background: var(--soft); font-weight: 600; }
.choice input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
textarea, input[type=text], input[type=tel], input[type=email], input[type=date] { display: block; width: 100%; padding: 12px; border: 1px solid #7F889C; border-radius: 10px; font: inherit; color: inherit; background: var(--surface); resize: vertical; }
textarea:focus-visible, input:not([type=radio]):focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
button { display: block; width: 100%; margin-top: 8px; padding: 15px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
button.quiet { background: transparent; color: var(--accent); border: 1px solid var(--accent); padding: 14px; margin-top: 12px; }
.wrong { color: var(--risk); font-weight: 600; margin: 6px 0; min-height: 1px; }
.small { color: var(--faint); font-size: 15px; margin: 14px 0 0; }
.urgent { margin-top: 28px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink2); }
input[type=text], input[type=tel], input[type=email], input[type=date] { min-height: 48px; }
textarea { resize: vertical; }
.doc { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 6px 18px 14px; margin: 0 0 18px; }
.doc h2 { font-size: 18px; line-height: 1.3; margin: 18px 0 6px; }
.doc p { margin: 0 0 10px; color: var(--ink2); }
.sign { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 0 0 14px; padding: 16px; }
.sign.missing { border: 2px solid var(--risk); padding: 15px; }
.signlabel { display: block; font-weight: 600; margin: 0 0 8px; }
.sign.tick { display: flex; align-items: flex-start; gap: 12px; }
.sign.tick input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: var(--accent); }
.sign.tick label { font-weight: 600; cursor: pointer; }
.stem { font-size: 19px; margin: 4px 0 12px; }
.choice label .score { float: right; margin-left: 12px; color: var(--faint); font-weight: 400; font-size: 14px; font-variant-numeric: tabular-nums; }
.closing { margin: 26px 0 0; font-size: 14px; color: var(--ink2); text-align: center; }
.credit { margin: 10px 0 0; font-size: 13px; color: var(--faint); text-align: center; word-break: break-word; }
@media (min-width: 700px) { main { padding-top: 64px; } h1 { font-size: 34px; } }
@media (max-width: 380px) { main { padding: 28px 16px 28px; } .by { padding: 0 16px 32px; } }
/* moving or cancelling a session (app/web/b/move.js): the same on the client's page and the change link, and the
   one grid of free times, also used by "Book another session" (docs/design/RESCHEDULE-2026-11-21.md) */
.session { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.session:first-of-type { border-top: 0; padding-top: 2px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices button { flex: 1 1 190px; width: auto; margin: 0; padding: 12px 10px; background: var(--surface); color: var(--accent); border: 1px solid var(--line); font-size: 16px; }
.said { margin: 4px 0 8px; padding: 10px 12px; border-radius: 10px; background: var(--soft); color: var(--ink2); }
.late { margin: 0 0 8px; color: var(--ink2); }
.ask textarea { margin: 8px 0 0; }
.ask label { display: block; font-weight: 600; margin: 6px 0 0; }
.ask .quiet { margin-top: 8px; }
.day { margin: 12px 0 0; }
.dayname { font-weight: 700; margin: 0 0 6px; }
/* the times look as they do on the booking page: one grid, one style */
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.times button { width: auto; margin: 0; padding: 12px 6px; border: 1px solid #7F889C; background: var(--surface); color: var(--ink); font-weight: 600; border-radius: 10px; font-variant-numeric: tabular-nums; }
.times button[aria-pressed="true"] { border: 2px solid var(--accent); padding: 11px 5px; background: var(--soft); color: var(--accent); }
.times button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.chosen { font-weight: 700; margin: 16px 0 4px; }
.step { font-size: 17px; margin: 10px 0 4px; }
.offered { display: grid; gap: 8px; margin: 8px 0 0; }
.offered button { margin: 0; background: var(--surface); color: var(--accent); border: 1px solid #7F889C; text-align: left; }
.ticks { margin: 8px 0 0; }
.ticklabel { font-weight: 600; margin: 10px 0 6px; }
.tickrow { display: flex; flex-wrap: wrap; gap: 8px; }
.tick { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #7F889C; border-radius: 10px; background: var(--surface); cursor: pointer; }
.tick input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
/* the practice's name, a small line above the title on a client's pages (21 Nov 2026) */
.practice { margin: 0 0 6px; color: var(--accent); font-size: 15px; font-weight: 700; letter-spacing: .01em; }

/* the way back to the client's portal when a form opened from it is finished */
button.back { font: inherit; font-weight: 700; color: #fff; background: var(--accent, #4148B5); border: 0; border-radius: 12px; padding: 12px 18px; cursor: pointer; }

/* the practice's cancellation terms, said before "I can't come" is sent at short notice (23 Nov 2026) */
.terms { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid #b26a00; background: rgba(178, 106, 0, .09); border-radius: 6px; }
