/* SNC Booking — public site */
:root {
  --ink: #16213E;
  --ink-2: #3A4458;
  --muted: #5B6475;
  --muted-2: #6B7487;
  --faint: #8A93A5;
  --line: #E3E6EC;
  --line-2: #E6E8EE;
  --ground: #F2F3F6;
  --card: #FFFFFF;
  --navy: #1E3A8A;
  --saffron: #F5A524;
  --gp-bg: #FDEFC8;
  --gp-ink: #8A3B0B;
  --gp-cell: #FFFAF0;
  --ok-bg: #DDF6E6;
  --ok-ink: #14532D;
  --ok: #15803D;
  --res: #475569;
  --sel-bg: #EAF0FB;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(22,33,62,.06), 0 10px 30px rgba(22,33,62,.06);
  --font: 'Plus Jakarta Sans', 'Noto Sans Gurmukhi', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button { font-family: inherit; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; }
a { color: var(--navy); }
.gm { font-family: 'Noto Sans Gurmukhi', var(--font); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 40px 18px; }
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; text-decoration: none; color: inherit; }
.mark { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; font-family: 'Noto Sans Gurmukhi', serif; font-size: 30px; font-weight: 700; color: var(--saffron); }
.brand-name { font-size: 28px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.brand-sub { font-size: 16px; color: var(--muted); font-weight: 500; }
.hdr-right { display: flex; align-items: center; gap: 18px; }
.hint { font-size: 15px; color: var(--muted); }
.lang { display: flex; background: var(--card); border: 1px solid #DDE1E8; border-radius: 12px; padding: 4px; gap: 4px; }
.lang button { height: 42px; min-width: 44px; padding: 0 16px; border: 0; border-radius: 9px; font-size: 15px; font-weight: 700; cursor: pointer; background: transparent; color: var(--ink-2); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- Large layout ---------- */
.wrap { display: flex; gap: 26px; padding: 0 40px 32px; align-items: flex-start; }
.monthcard { flex: 1; min-width: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px 22px; display: flex; flex-direction: column; }
.mhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 16px; flex-wrap: wrap; }
.mnav { display: flex; align-items: center; gap: 16px; }
.iconbtn { width: 46px; height: 46px; border-radius: 12px; border: 1px solid #DDE1E8; background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.iconbtn:disabled { opacity: .35; cursor: default; }
.mtitle { margin: 0; font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.msub { font-size: 15px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.todaybtn { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid #DDE1E8; background: var(--card); font-weight: 700; font-size: 14px; cursor: pointer; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: flex-end; max-width: 700px; }
.lg { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sw { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.wdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding-bottom: 8px; }
.wdays div { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); padding-left: 12px; }
.weeks { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 36px auto 1fr; min-height: 132px; }
.week + .week { border-top: 1px solid var(--line-2); }
.cellbtn { grid-row: 1 / 4; border: 0; padding: 0; margin: 0; min-width: 0; cursor: pointer; background: #fff; }
.cellbtn + .cellbtn { border-left: 1px solid var(--line-2); }
.cellbtn.out, .cellbtn.past { background: #F8F9FB; }
.cellbtn.gp { background: var(--gp-cell); }
.cellbtn.sel { background: var(--sel-bg); box-shadow: inset 0 0 0 3px var(--navy); }
.cellbtn:disabled { cursor: default; }
.dhead { grid-row: 1; pointer-events: none; display: flex; align-items: center; gap: 8px; padding: 6px 10px 0; min-width: 0; }
.dnum { min-width: 30px; height: 30px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; }
.dnum.today { background: var(--ink); color: #fff; padding: 0 8px; }
.dnum.dim { color: #A3ABBA; }
.dnum.gpn { color: var(--gp-ink); }
.dns { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars { grid-row: 2; grid-column: 1 / 8; pointer-events: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 24px; row-gap: 4px; }
.bars.has { padding-bottom: 6px; }
.bar { height: 24px; line-height: 24px; color: #fff; font-size: 13px; font-weight: 600; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--navy); }
.dbody { grid-row: 3; pointer-events: none; padding: 2px 10px 8px; display: flex; flex-direction: column; gap: 5px; min-width: 0; overflow: hidden; }
.kd { background: var(--gp-bg); color: var(--gp-ink); font-size: 12.5px; font-weight: 700; border-radius: 6px; padding: 3px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kd.sangrand { background: #F6EEDC; font-weight: 600; }
.avail { display: flex; align-items: center; gap: 6px; background: var(--ok-bg); color: var(--ok-ink); border-radius: 6px; padding: 3px 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.line { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13.5px; line-height: 1.3; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.line span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line.res span:last-child { color: var(--res); font-style: italic; }
.line.held span:last-child { color: var(--faint); font-style: italic; }
.more { font-size: 12.5px; font-weight: 700; color: var(--navy); }
.faded { opacity: .55; }
.hidden { opacity: 0; }

/* ---------- Day panel ---------- */
.panel { width: clamp(340px, 25vw, 560px); flex: none; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: hidden; }
.phead { padding: 28px 30px 18px; border-bottom: 1px solid #ECEEF2; display: flex; flex-direction: column; gap: 9px; }
.pw { font-size: 16px; font-weight: 600; color: var(--muted); }
.pt { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.pns { font-size: 14.5px; color: var(--muted-2); }
.kdbig { background: var(--gp-bg); color: var(--gp-ink); font-size: 16.5px; font-weight: 700; border-radius: 10px; padding: 10px 14px; }
.availbig { display: flex; align-items: center; gap: 10px; background: var(--ok-bg); color: var(--ok-ink); border-radius: 10px; padding: 10px 14px; font-size: 16.5px; font-weight: 800; }
.pastnote { background: #F1F2F5; color: #4B5468; border-radius: 10px; padding: 10px 14px; font-size: 15.5px; font-weight: 600; }
.pbody { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 30px 30px; display: flex; flex-direction: column; gap: 24px; }
.sec { display: flex; flex-direction: column; gap: 9px; }
.sech { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.secn { display: flex; align-items: center; gap: 10px; font-size: 18.5px; font-weight: 800; }
.secnote { font-size: 13.5px; font-weight: 600; color: var(--muted-2); text-align: right; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: 14px; padding: 11px 12px 11px 16px; min-height: 48px; background: #F7F8FA; }
.row.open { background: #fff; box-shadow: inset 0 0 0 1.5px #D9DEE7; }
.rl { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.rt { font-size: 17.5px; font-weight: 700; }
.row.open .rt { color: var(--ok); }
.row.res .rt { color: var(--res); font-style: italic; }
.row.dim .rt { color: var(--faint); }
.rs { font-size: 14px; color: var(--muted); }
.tag { flex: none; font-size: 13.5px; font-weight: 700; border-radius: 999px; padding: 6px 13px; background: #EEF0F4; color: var(--ink-2); }
.tag.res { background: #E7EAF0; color: #334155; }
.btn { flex: none; height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-size: 16.5px; font-weight: 700; cursor: pointer; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.green { background: var(--ok); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #C8CFDA; }
.btn.small { height: 44px; padding: 0 16px; font-size: 15px; }

/* ---------- Phone layout ---------- */
.ph-hdr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 10px; background: #fff; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; z-index: 5; }
.ph-hdr .mark { width: 38px; height: 38px; font-size: 20px; }
.ph-hdr .brand { gap: 10px; }
.ph-hdr .brand-name { font-size: 16px; }
.ph-hdr .brand-sub { font-size: 12.5px; }
.ph-hdr .lang { background: #F1F2F5; border: 0; padding: 3px; gap: 3px; }
.ph-hdr .lang button { height: 40px; padding: 0 10px; font-size: 14px; }
/* Release 11: on narrow phones the name wraps onto two lines instead of running into "← Website". */
.ph-hdr .brand { flex: 1 1 auto; }
.ph-hdr .brand-name { white-space: normal; line-height: 1.12; }
.ph-hdr .ph-right { flex-shrink: 0; }
@media (max-width: 430px) {
  .ph-hdr { padding: 10px 12px 8px; gap: 8px; }
  .ph-hdr .mark { width: 34px; height: 34px; font-size: 18px; }
  .ph-hdr .brand { gap: 8px; }
  .ph-hdr .brand-name { font-size: 15px; }
  .ph-hdr .lang button { padding: 0 8px; }
}
.backbtn { height: 44px; padding: 0 14px 0 8px; border: 0; border-radius: 12px; background: #F1F2F5; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.ph-main { padding: 14px 12px 28px; display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin: 0 auto; }
.ph-card { background: #fff; border-radius: 20px; padding: 14px 8px 12px; box-shadow: var(--shadow); }
.ph-mhead { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px; }
.ph-mhead .iconbtn { width: 44px; height: 44px; border: 0; background: #F1F2F5; }
.ph-mtitle { margin: 0; font-size: 21px; font-weight: 800; text-align: center; }
.ph-msub { font-size: 12px; color: var(--muted-2); text-align: center; }
.ph-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding-bottom: 4px; }
.ph-wd div { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted-2); }
.ph-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; }
.ph-cell { min-height: 44px; border: 0; padding: 4px 0 0; border-radius: 10px; margin: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.ph-cell:disabled { cursor: default; }
.ph-num { width: 34px; height: 34px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }
.ph-num.today { background: var(--ink); color: #fff; }
.ph-num.gp { background: var(--gp-bg); color: var(--gp-ink); box-shadow: inset 0 0 0 1.5px #F2B53A; }
/* Release 17: key-date short names in small type under the day number (phone). */
.ph-kd { display: block; width: 100%; font-size: 9px; line-height: 11px; font-weight: 700; color: var(--gp-ink, #92400E); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; letter-spacing: -.1px; margin-top: -2px; padding: 0 1px; }
.ph-num.dim { color: #A3ABBA; }
.ph-dots { display: flex; gap: 3px; height: 7px; align-items: center; }
.ph-dots span { width: 6px; height: 6px; border-radius: 50%; }
.ph-bar { position: absolute; left: 0; right: 0; bottom: 2px; height: 4px; }
.ph-weeks { display: flex; flex-direction: column; }
.ph-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; border-top: 1px solid #EEF0F4; padding-top: 2px; }
.ph-week:first-child { border-top: 0; }
.ph-cell { align-items: center; justify-content: flex-start; }
.ph-cell:active { background: #F2F4F8; }
.ph-box { position: relative; z-index: 1; pointer-events: none; height: 16px; line-height: 16px; padding: 0 3px; color: #fff; font-size: 10px; font-weight: 700; white-space: nowrap; overflow: hidden; letter-spacing: -0.02em; display: flex; gap: 1px; }
.ph-box .ph-bt { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ph-box b { flex: none; font-weight: 800; }
.ph-more { position: relative; z-index: 1; pointer-events: none; text-align: center; font-size: 10px; font-weight: 800; color: var(--muted-2); line-height: 14px; }
.ph-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0 6px; }
.ph-legend .lg { font-size: 12.5px; gap: 6px; }
.ph-legend .sw { width: 9px; height: 9px; border-radius: 3px; }
.ph-label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); padding: 4px 6px 0; }
.kcard { text-align: left; border: 0; border-radius: 18px; background: #fff; padding: 14px; cursor: pointer; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); width: 100%; }
.kdate { flex: none; width: 56px; height: 60px; border-radius: 14px; background: var(--gp-bg); color: var(--gp-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.kdate b { font-size: 22px; line-height: 1.1; }
.kdate small { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.kinfo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kinfo .kn { font-size: 15px; font-weight: 700; line-height: 1.3; }
.kinfo .avail { align-self: flex-start; font-size: 12.5px; letter-spacing: 0; text-transform: none; padding: 4px 10px; border-radius: 8px; }
.ph-hint { text-align: center; font-size: 13px; color: var(--muted-2); padding: 2px 10px; }
.ph-day { padding: 16px 14px 28px; display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin: 0 auto; }
.ph-day .pt { font-size: 27px; }
.ph-day .kdbig, .ph-day .availbig { font-size: 15px; padding: 9px 12px; }
.ph-sec { background: #fff; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.ph-sec .secn { font-size: 16px; }
.ph-sec .secnote { font-size: 12px; }
.ph-sec .row { padding: 10px 10px 10px 14px; min-height: 44px; }
.ph-sec .rt { font-size: 15.5px; }
.ph-sec .rl { font-size: 11.5px; }
.ph-sec .rs { font-size: 13px; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.zoom { animation: zoomIn .28s ease-out; transform-origin: 50% 30%; }
.fade { animation: fadeUp .25s ease-out; }
@media (prefers-reduced-motion: reduce) { .zoom, .fade, .sheet, .dialog { animation: none !important; } }

/* ---------- Booking dialog ---------- */
.overlay { position: fixed; inset: 0; background: rgba(22,33,62,.55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.dialog { width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 26px; padding: 34px 38px; box-shadow: 0 30px 80px rgba(10,16,32,.35); display: flex; flex-direction: column; gap: 22px; animation: fadeUp .25s ease-out; }
.dtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 16px 7px 8px; font-size: 15px; font-weight: 700; background: #F1F2F5; color: #4B5468; }
.step.on { background: var(--ink); color: #fff; }
.step i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; background: #fff; color: #4B5468; }
.step.on i { color: var(--ink); }
.step.done i { background: var(--ok); color: #fff; }
.summary { border-radius: 16px; padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; }
.summary .sn { font-size: 21px; font-weight: 800; }
.summary .sl { font-size: 16.5px; font-weight: 600; }
.summary .sx { font-size: 15px; color: #4B5468; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; }
.form .full { grid-column: 1 / 3; }
.form input { height: 50px; border: 1px solid #C8CFDA; border-radius: 12px; padding: 0 14px; font-family: inherit; font-size: 17px; color: var(--ink); background: #fff; }
.form input[aria-invalid="true"] { border-color: #B91C1C; }
.help { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.privacy { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
/* Release 7a: request-not-guarantee notice and the required acknowledgement. */
.reviewnote { background: #EEF2FA; border-left: 4px solid #1E3A8A; border-radius: 10px; padding: 12px 14px; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.reviewnote.center { text-align: left; margin: 4px 0 16px; }
.ackbox { margin: 12px 0 4px; }
.err { background: #FEE2E2; color: #7F1D1D; border-radius: 12px; padding: 12px 16px; font-size: 15.5px; font-weight: 600; }
.actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.actions.split { justify-content: space-between; }
.actions .btn { min-height: 54px; height: auto; padding: 8px 28px; border-radius: 14px; font-size: 17px; line-height: 1.2; }

/* ---------- Pay & status pages ---------- */
.page { max-width: 720px; margin: 0 auto; padding: 8px 16px 40px; }
.pcard { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 30px 32px; display: flex; flex-direction: column; gap: 20px; }
.amount { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.amount b { font-size: 30px; font-weight: 800; }
.holdnote { display: flex; align-items: center; gap: 10px; background: #F1F4FA; color: var(--navy); border-radius: 12px; padding: 12px 16px; font-size: 15.5px; font-weight: 600; }
.holdnote.warn { background: #FEF3C7; color: #78350F; }
.methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.method { text-align: left; border-radius: 16px; padding: 18px; background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 6px; border: 1.5px solid #D2D8E2; }
.method[aria-pressed="true"] { border: 2.5px solid var(--ink); padding: 17px; }
.method b { font-size: 17.5px; }
.method span { font-size: 14px; font-weight: 600; color: var(--muted); }
.method .rec { color: #166534; font-weight: 700; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; font-weight: 600; cursor: pointer; line-height: 1.4; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.testbox { border: 2px dashed #F59E0B; background: #FFFBEB; border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.testbox .tb { font-size: 14.5px; font-weight: 800; color: #92400E; }
.testbox .row2 { display: flex; gap: 10px; flex-wrap: wrap; }
.status-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; }
.status-title { font-size: 27px; font-weight: 800; text-align: center; margin: 0; }
.status-msg { font-size: 16.5px; color: #4B5468; text-align: center; line-height: 1.55; margin: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 15.5px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 700; }
.center { text-align: center; }
.loading { padding: 60px 20px; text-align: center; color: var(--muted); font-size: 17px; }
/* Release 10: which release is running, small, at the foot of every public page. */
/* Release 11: large and dark enough to read; on the phone month view it sits right under the calendar (.inpage). */
.relfoot { flex-shrink: 0; text-align: center; font-size: 13px; font-weight: 600; color: #4B5568; padding: 3px 8px 7px; }
.relfoot.inpage { padding: 0; margin-top: -4px; }
.banner { background: #FEF3C7; color: #78350F; text-align: center; font-size: 14px; font-weight: 700; padding: 8px 12px; }
.banner b { font-weight: 800; }
.banner-note { font-weight: 600; }

/* Phone booking sheet */
@media (max-width: 699px), (max-height: 599px) {
  .overlay { align-items: flex-end; padding: 0; }
  .dialog { width: 100%; max-height: 94vh; border-radius: 24px 24px 0 0; padding: 18px 18px 28px; gap: 16px; animation: sheetUp .28s ease-out; }
  .form { grid-template-columns: 1fr; gap: 12px; }
  .form .full { grid-column: auto; }
  .form input { height: 48px; font-size: 16px; }
  .step { padding: 6px; font-size: 0; }
  .step.on { font-size: 14px; padding: 6px 12px 6px 6px; }
  .actions .btn { flex: 1; min-height: 52px; height: auto; padding: 8px 12px; } /* release 14: long button text wraps instead of being cut off */
  .methods { grid-template-columns: 1fr; }
  .pcard { padding: 22px 18px; border-radius: 20px; }
  .summary { padding: 14px 16px; }
  .summary .sn { font-size: 18px; }
  .summary .sl { font-size: 14.5px; }
  .amount b { font-size: 24px; }
}

/* Kiosk / very large screens */
@media (min-width: 1700px) {
  .week { min-height: 150px; }
  .panel { width: clamp(340px, 25vw, 640px); }
}

/* Release 4: clear booking prompts */
.prompt { background: #EEF6F0; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.prompt.none { background: #F4F5F8; color: var(--muted); font-weight: 600; font-size: 15px; }
.prompt-t { font-size: 17px; font-weight: 800; color: var(--ink); }
.prompt.ph .prompt-t { font-size: 16px; }
.steps3 { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.steps3 li { display: flex; align-items: center; gap: 6px; }
.steps3 li span { width: 22px; height: 22px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1.5px #C8CFDA; }
.steps3 li.done span { background: var(--ok); color: #fff; box-shadow: none; }
.steps3 li.now { color: var(--ink); }
.steps3 li.now span { background: var(--ink); color: #fff; box-shadow: none; }
.secmsg { font-size: 14px; color: var(--ink-2); margin: -2px 0 2px; }
.secwhy { font-size: 14px; font-weight: 600; color: #8A5A00; background: #FFF6E0; border-radius: 10px; padding: 8px 12px; }
/* Open spots: the whole card is one button with a bright green Book */
button.row.open { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; color: inherit; background: #fff; box-shadow: inset 0 0 0 2px #A7E3BD; }
button.row.open:hover { box-shadow: inset 0 0 0 2px var(--ok); background: #F6FCF8; }
button.row.open:focus-visible { outline: 3px solid var(--ok); outline-offset: 2px; }
button.row.open .rl, button.row.open .rt, button.row.open .rs { display: block; }
button.row.open .btn { background: var(--ok); display: inline-flex; align-items: center; }
/* Taken spots: quieter */
.row.taken { background: #F4F5F8; }
.row.taken .rt { color: var(--ink-2); font-weight: 600; }
.row.taken .tag { opacity: .85; }
/* Booking form: the service's notes for families */
.svcdetails { background: #FFF8E8; border-radius: 12px; padding: 12px 14px; font-size: 14.5px; line-height: 1.45; }
.svcdetails p { margin: 4px 0 0; white-space: pre-line; }

/* iPad and small laptops */
.layout-tablet .hdr { padding: 16px 20px 12px; }
.layout-tablet .wrap.stack { padding: 0 20px 28px; }
.layout-tablet .monthcard { padding: 18px 18px 16px; }
.layout-tablet .week { min-height: 112px; }
/* iPad sideways and other 1000–1299px screens: tighter so the calendar keeps room */
@media (min-width: 1000px) and (max-width: 1299px) {
  .layout-wide .hdr { padding: 16px 20px 12px; }
  .layout-wide .wrap { padding: 0 20px 24px; gap: 16px; }
  .layout-wide .monthcard { padding: 18px 16px 16px; }
  .layout-wide .week { min-height: 112px; }
}

/* Release 5: the page opens on the calendar alone; tapping a day opens it on top (decided 2026-11-06) */
.wrap.stack { flex-direction: column; align-items: stretch; gap: 16px; }
.pickprompt { display: flex; align-items: center; gap: 16px; background: var(--ink); color: #fff; border-radius: 18px; padding: 16px 24px; box-shadow: var(--shadow); }
.pickprompt .pp-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--saffron); color: var(--ink); display: grid; place-items: center; }
.pickprompt .pp-t { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.pickprompt .pp-s { display: block; font-size: 15.5px; font-weight: 500; opacity: .85; margin-top: 3px; }
.pickprompt.ph { margin: 2px 12px 10px; padding: 12px 14px; gap: 12px; border-radius: 14px; }
.pickprompt.ph .pp-ico { width: 38px; height: 38px; border-radius: 10px; }
.pickprompt.ph .pp-t { font-size: 18px; }
.pickprompt.ph .pp-s { font-size: 13.5px; }
.cellbtn:not(:disabled):not(.past):not(.sel):hover { background: #EEF4FF; }
.dayoverlay { z-index: 40; }
.daysheet { width: min(960px, 100%); max-height: calc(100vh - 32px); background: #fff; border-radius: 26px; box-shadow: 0 30px 80px rgba(10,16,32,.35); display: flex; flex-direction: column; overflow: hidden; outline: none; animation: fadeUp .22s ease-out; }
.ds-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 0; }
.ds-back { display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px 0 10px; border-radius: 12px; border: 1px solid #DDE1E8; background: #fff; font-size: 16px; font-weight: 700; cursor: pointer; color: var(--ink); }
.ds-back:hover { background: #F4F6FA; }
.daysheet .panel { width: auto; flex: 1; min-height: 0; position: static; max-height: none; box-shadow: none; border-radius: 0; }
.daysheet .phead { padding: 8px 30px 16px; }
.daysheet .pt { font-size: 36px; }
.daysheet .pbody { overflow-y: auto; }
@media (min-width: 820px) {
  .daysheet .pbody { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; align-items: start; }
  .daysheet .pbody > .prompt { grid-column: 1 / -1; }
}
/* Book buttons now name the service and date, so they may wrap */
button.row.open .btn { flex: 0 1 auto; height: auto; min-height: 52px; padding: 7px 18px; flex-direction: column; justify-content: center; align-items: center; text-align: center; line-height: 1.2; max-width: 64%; }
button.row.open .btn .bt1 { font-size: 16.5px; font-weight: 800; }
button.row.open .btn .bt2 { font-size: 13.5px; font-weight: 600; opacity: .92; white-space: nowrap; }
button.row.open .btn.small .bt1 { font-size: 15px; }
button.row.open .btn.small { min-height: 44px; }

/* Release 5.1: on laptop, iPad and kiosk the whole month fits the screen, no scrolling (Ruben, 2026-11-06) */
.fit { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.fit > main { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
.fit .wrap.stack { flex: 1; min-height: 0; padding-bottom: 14px; gap: 12px; }
.fit .monthcard { flex: 1; min-height: 0; }
.fit .weeks { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fit .week { flex: 1 1 0; grid-template-rows: 34px auto 1fr; }
.fit .dbody { padding-bottom: 4px; gap: 3px; }
/* Shorter screens (iPad sideways, small laptops): the prompt moves into the header row; slimmer month heading */
.pickprompt.inhdr { display: none; }
.fit .dbody > * { flex-shrink: 0; }
@media (max-height: 960px) {
  .fit .hdr { padding: 10px 20px 10px; gap: 14px; }
  .fit .hdr .pickprompt.inhdr { display: flex; flex: 1 1 auto; min-width: 0; padding: 8px 16px; gap: 12px; border-radius: 14px; box-shadow: none; }
  .fit .wrap .pickprompt.inmain { display: none; }
  .fit .pickprompt .pp-ico { width: 36px; height: 36px; border-radius: 10px; }
  .fit .pickprompt .pp-t { font-size: 19px; }
  .fit .pickprompt .pp-s { font-size: 13px; margin-top: 1px; }
  .fit .mark { width: 44px; height: 44px; font-size: 24px; }
  .fit .brand-name { font-size: 21px; }
  .fit .brand-sub { font-size: 13.5px; }
  .fit .lang button { height: 36px; padding: 0 12px; }
  .fit .wrap.stack { padding: 0 20px 12px; gap: 10px; }
  .fit .monthcard { padding: 12px 16px 12px; }
  .fit .mhead { padding-bottom: 8px; gap: 10px 16px; flex-wrap: nowrap; align-items: center; }
  .fit .legend { flex: 1 1 auto; min-width: 0; max-width: none; gap: 4px 12px; }
  .fit .lg { font-size: 12.5px; gap: 5px; }
  .fit .mtitle { font-size: 28px; white-space: nowrap; }
  .fit .msub { font-size: 13px; margin-top: 2px; white-space: nowrap; }
  .fit .iconbtn { width: 40px; height: 40px; }
  .fit .todaybtn { height: 36px; }
  .fit .wdays { padding-bottom: 4px; }
  .fit .wdays div { font-size: 12px; }
  .fit .dnum { font-size: 15px; min-width: 26px; height: 26px; }
  .fit .week { grid-template-rows: 30px auto 1fr; }
  .fit .bars { grid-auto-rows: 22px; }
  .fit .banner { padding-top: 5px; padding-bottom: 5px; }
}
/* Narrow and short (e.g. iPad upright is tall, so this is mostly small laptops): brand subtitle goes */
@media (max-height: 960px) and (max-width: 1100px) { .fit .brand-sub { display: none; } .fit .pickprompt .pp-s { display: none; } }

/* Release 6: "Show our name" checkbox on the booking form; confirm before cancelling on the deposit page */
.form label.check { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 600; }
.form label.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.form label.check .help { display: block; font-weight: 400; }
.askcancel { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #FEF2F2; border: 1px solid #FECACA; }
.askcancel .actions { margin-top: 10px; }
.btn.danger { background: #B91C1C; color: #fff; border-color: #B91C1C; }

/* R7-8: way back to the SNC website (hidden in kiosk mode); staff link in the Home Screen app. */
.weblink, .stafflink { font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; padding: 8px 4px; }
.weblink:hover, .stafflink:hover { color: inherit; text-decoration: underline; }
.ph-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.weblink.compact, .stafflink.compact { font-size: 13px; padding: 6px 2px; }
@media (max-width: 380px) { .stafflink.compact { display: none; } }

/* Release 11: swipe a month calendar left or right to change month (shared/monthSwipe.js). The browser keeps
   up-and-down scrolling and pinch-zoom; sideways movement goes to the calendar. */
.swipe-area { touch-action: pan-y pinch-zoom; overflow: hidden; }
/* A sideways swipe must not make the browser go back or forward a page (Chrome on Android and on touch screens). */
html, body { overscroll-behavior-x: none; }
@keyframes monthFromRight { from { transform: translateX(100%); opacity: .25; } to { transform: none; opacity: 1; } }
@keyframes monthFromLeft { from { transform: translateX(-100%); opacity: .25; } to { transform: none; opacity: 1; } }
.slide-from-right { animation: monthFromRight .26s cubic-bezier(.2, .75, .25, 1) both; }
.slide-from-left { animation: monthFromLeft .26s cubic-bezier(.2, .75, .25, 1) both; }
@keyframes monthFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .slide-from-right, .slide-from-left { animation: monthFade .2s ease-out both; } }

/* Release 12: the kiosk's "pay on your phone" screen (a QR code the family scans). */
.qrpay { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; background: #F4F6FB; border-radius: 18px; padding: 20px; }
.page.qrwide { max-width: 880px; }
.qrpay .qr { display: block; width: 340px; height: 340px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #D2D8E2; }
.qrpay h2 { margin: 0 0 12px; font-size: 28px; line-height: 1.2; }
.qrpay ol { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 10px; font-size: 19px; font-weight: 600; line-height: 1.4; }
.qrwait { margin: 16px 0 0; display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 600; color: var(--muted); }
.qrwait i { flex: none; width: 10px; height: 10px; border-radius: 5px; background: currentColor; animation: qrPulse 1.6s ease-in-out infinite; }
.qrwait.started { color: #166534; }
@keyframes qrPulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .qrwait i { animation: none; } }
.linkbtn { align-self: flex-start; background: none; border: 0; padding: 10px 4px; font: inherit; font-size: 16px; font-weight: 700; color: var(--navy); cursor: pointer; text-decoration: underline; }
@media (max-width: 700px) {
  .qrpay { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .qrpay .qr { width: 260px; height: 260px; }
}

/* Release 13: the kiosk's card reader (only shown when SNC has set one up and switched it on). */
/* With the reader offered too, the QR code is a little smaller so both fit a 1080-high kiosk screen. */
.qrpay.compact { padding: 16px 20px; }
.qrpay.compact .qr { width: 264px; height: 264px; }
.qrpay.compact ol { gap: 6px; font-size: 18px; }
.twoways { margin: 4px 0 12px; font-size: 22px; font-weight: 800; color: var(--ink, #1C2B6B); }
.payhere { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; padding-top: 14px; border-top: 2px solid #D2D8E2; }
.payhere b { font-size: 22px; line-height: 1.2; }
.payhere .btn { min-height: 52px; font-size: 18px; padding: 0 22px; }
/* Release 17: PayPal's Venmo button, shown once Venmo is picked. */
.venmopay { margin: 12px 0 4px; }
.venmopay .venmobtn { min-height: 52px; }
.venmopay .venmobtn.busy { opacity: .5; pointer-events: none; }
.readerpay { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 24px; align-items: center; border: 2px solid #D2D8E2; border-radius: 18px; padding: 18px 20px; }
.readerpay h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.2; }
.readerpay p { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--muted); }
.readerpay .check { margin: 0; }
.readerpay .btn { min-height: 64px; font-size: 19px; padding: 0 26px; }
.readerwait { display: flex; flex-direction: column; align-items: center; gap: 14px; background: #F4F6FB; border-radius: 18px; padding: 26px 22px; text-align: center; }
.readerwait .readericon { width: 120px; height: 120px; }
.readerwait h2 { margin: 0 0 8px; font-size: 30px; line-height: 1.2; }
.readerwait p { margin: 0; font-size: 19px; font-weight: 600; }
.readerwait .readeramount { margin-top: 10px; font-size: 34px; font-weight: 800; color: var(--navy); }
.readerwait .qrwait { justify-content: center; margin-top: 12px; }
.readerwait .timeleft { font-variant-numeric: tabular-nums; margin-left: 4px; }
.readerwait .testbox, .readerwait .actions { align-self: stretch; }
.readerwait .actions { justify-content: center; }
@media (max-width: 700px) { .readerpay { grid-template-columns: 1fr; } .readerpay .btn { width: 100%; } }

/* Release 15: details form. One clear button; "‹ Back" is a small link beside it. */
.formactions { align-items: center; }
.formactions .linkbtn { align-self: center; text-decoration: none; }
.formactions .btn { flex: 0 1 auto; min-width: 180px; }
@media (max-width: 760px) { .formactions .btn { flex: 1; } }

/* Release 15: Stripe's wallet button (Apple Pay / Google Pay) on the deposit page. Kept in the page but
   out of sight until the family picks the wallet. */
.walletpay { height: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.walletpay.on { height: auto; overflow: visible; opacity: 1; pointer-events: auto; display: flex; flex-direction: column; gap: 10px; }
.wallettotal { font-size: 16px; font-weight: 700; color: var(--ink); }
.walletbtn { min-height: 54px; }
/* Release 18 (R17-1): the family's own booking in progress on this device. */
.row.mine { background: #ECFDF3; border: 2px solid #3B7D45; }
.row.mine .rt { color: #1E5B2A; font-weight: 800; }
/* Release 18 (R17-10, Ruben 2026-11-25: "the Pay now button should be on the same screen without having to
   scroll down"): on phones the deposit page is tighter, the choices are one line each, and the Pay / Cancel
   row stays fixed at the bottom of the screen. */
@media (max-width: 700px) {
  .paypage { gap: 12px; padding: 16px 16px 0; }
  .paypage .summary { padding: 12px 16px; }
  .paypage .methods { grid-template-columns: 1fr; gap: 8px; }
  .paypage .method { flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 14px; gap: 10px; }
  .paypage .method[aria-pressed="true"] { padding: 11px 13px; }
  .paypage .method span { font-size: 13px; text-align: right; }
  .paypage .actions.split { position: sticky; bottom: 0; z-index: 5; background: #fff; margin: 0 -16px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 16px rgba(20, 30, 60, .10); border-radius: 0 0 24px 24px; }
}

/* Release 19 (R18-1, Ruben 2026-11-25: "Remove bar"): no step bar on phones; on a narrow screen only the
   current step had room for its name, so the others read as a bare tick and "3". Larger screens keep it. */
@media (max-width: 700px) { .steps { display: none; } }
