/* Front Desk Live Tryout. The Sales Closer's look (app/public/closer/closer.css, slice 1), with the desk card sheet, the walk-up card, the booking note and the Leave row added. */
:root{
  --display:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",Arial,sans-serif;
  --body:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;
  --p-ground:#f2f2f7; --p-card:#ffffff; --p-ink:#1d1d1f; --p-mute:#6e6e73; --p-line:#d2d2d7;
  --p-btn:#1d1d1f; --p-onbtn:#ffffff; --p-quiet:#e5e5ea; --p-onquiet:#1d1d1f; --p-field:#ffffff;
  --p-accent:#0a7d73; --p-accent-deep:#0b5a53; --p-end:#ff3b30; --p-go:#28b44c; --p-scrim:rgba(0,0,0,.4);
  --safe-t:env(safe-area-inset-top,0px); --safe-b:env(safe-area-inset-bottom,0px);
  --safe-l:env(safe-area-inset-left,0px); --safe-r:env(safe-area-inset-right,0px);
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--p-ground:#000000;--p-card:#1c1c1e;--p-ink:#f5f5f7;--p-mute:#a1a1a6;--p-line:#38383a;--p-btn:#f5f5f7;--p-onbtn:#000000;--p-quiet:#2c2c2e;--p-onquiet:#f5f5f7;--p-field:#2c2c2e;--p-accent:#5fd4c6;--p-accent-deep:#8fe3d8;--p-end:#ff453a;--p-go:#30d158;--p-scrim:rgba(0,0,0,.6);color-scheme:dark}}
:root[data-theme="dark"]{--p-ground:#000000;--p-card:#1c1c1e;--p-ink:#f5f5f7;--p-mute:#a1a1a6;--p-line:#38383a;--p-btn:#f5f5f7;--p-onbtn:#000000;--p-quiet:#2c2c2e;--p-onquiet:#f5f5f7;--p-field:#2c2c2e;--p-accent:#5fd4c6;--p-accent-deep:#8fe3d8;--p-end:#ff453a;--p-go:#30d158;--p-scrim:rgba(0,0,0,.6);color-scheme:dark}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{background:var(--p-ground);color:var(--p-ink);font-family:var(--body);font-size:16px;line-height:1.45;overflow-x:hidden}
p,h1,h2{margin:0}
h1,h2{font-weight:inherit;font-size:inherit}
[tabindex="-1"]:focus{outline:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
button:focus-visible{outline:3px solid var(--p-accent);outline-offset:3px;border-radius:999px}

.app{max-width:430px;margin:0 auto;background:var(--p-ground)}
.view{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.view[hidden]{display:none}

.pad{padding:calc(22px + var(--safe-t)) max(20px,calc(var(--safe-r) + 12px)) calc(22px + var(--safe-b)) max(20px,calc(var(--safe-l) + 12px));display:flex;flex-direction:column;gap:18px;flex:1}
.first{gap:14px}
.top{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.brand{font-size:14px;font-weight:700;letter-spacing:.02em;color:var(--p-accent-deep)}
.leave{font-size:15px;color:var(--p-accent);min-height:44px;padding:0 4px;margin:-12px -4px}
.leave.mid-c{align-self:center;margin:0}
.big{font-family:var(--display);font-weight:700;font-size:38px;line-height:1.06;letter-spacing:-.022em;text-wrap:balance}
.lede{font-size:19px;line-height:1.4}
.small{font-size:14px;color:var(--p-mute);line-height:1.45}
.mid-c{text-align:center}
.btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:44px;background:var(--p-btn);color:var(--p-onbtn);font-weight:600;font-size:18px;border-radius:999px;padding:17px 18px;text-align:center;text-decoration:none;flex:none}
.btn.quiet{background:var(--p-quiet);color:var(--p-onquiet)}
.btn.go{background:var(--p-go);color:#fff}
/* The doctor's end screen's button: the home page's own button green (site.css .btn-p, --btn), the same in light and dark. */
.btn.home{background:#137a72;color:#fff}
.btn.home:hover{background:#0d5f59}
.card{background:var(--p-card);border-radius:20px;padding:18px;display:flex;flex-direction:column;gap:12px;box-shadow:0 1px 0 rgba(16,36,42,.05)}
.card[hidden]{display:none}
.card .hd{font-size:14px;font-weight:700;color:var(--p-mute)}
.grow{flex:1 1 0;min-height:0}

/* the desk card: three blocks, a bold first sentence and then the rest */
.desk{display:flex;flex-direction:column;gap:12px}
/* the end screen: the server's lines, or a quiet placeholder while it scores */
.card.fb{padding:14px 16px;gap:8px}
.card.fb p{font-size:17px;line-height:1.35}
.card.fb p[hidden],.card.fb .ph[hidden]{display:none}
.card.fb .ph{display:flex;flex-direction:column;gap:10px;padding:4px 0}
.card.fb .ph span{display:block;height:14px;border-radius:7px;background:var(--p-quiet);animation:fdph 1.6s ease-in-out infinite}
.card.fb .ph span+span{width:72%;animation-delay:.3s}
@keyframes fdph{0%,100%{opacity:.45}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){.card.fb .ph span{animation:none;opacity:.7}}
.card.fact{padding:14px 16px;gap:4px}
.card.fact b{font-size:17px;line-height:1.3}
.card.fact span{font-size:15.5px;color:var(--p-mute)}
.link{color:inherit;text-decoration:underline;text-underline-offset:3px}
.desk .big{margin-bottom:4px}

/* the call looks like a phone call, as on Frank's call. The view is one screen high. */
.view.call{height:100vh;height:100dvh;min-height:0;overflow:hidden;gap:14px;padding:calc(28px + var(--safe-t)) max(20px,calc(var(--safe-r) + 12px)) calc(22px + var(--safe-b)) max(20px,calc(var(--safe-l) + 12px))}
.view.call[hidden]{display:none}
/* Look fix A: a phone's call screen. The caller block (.who) is centred between "Call 1 of 2." and the buttons; while
   Tom's card shows (.walk, frontdesk.js) it sits compact at the top and the card follows. The two grows and the face
   size move over 200 ms, and the card opens from no height, so the change does not jump. */
.view.call{--face:clamp(76px,14.5vh,120px)}
.caller{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;align-items:center;text-align:center;transition:flex-grow .2s ease}
.view.call>.grow{flex-grow:0;transition:flex-grow .2s ease}
.caller>.small{margin-bottom:8px}
.who{display:flex;flex-direction:column;align-items:center;gap:6px;margin:auto 0}
.face{width:var(--face);height:var(--face);border-radius:50%;background:var(--p-card);color:var(--p-ink);display:grid;place-items:center;font-family:var(--display);font-size:calc(var(--face) * .36);font-weight:600;letter-spacing:.02em;margin-bottom:6px;transition:width .2s ease,height .2s ease,font-size .2s ease}
.nm{font-size:19px;font-weight:700}
.clock{font-size:16px;color:var(--p-mute);font-variant-numeric:tabular-nums}
.said{text-align:center;padding-top:4px}
.said:empty{display:none}
/* the quiet line cue (frontdesk.js quietLine): overlaid under the caller block, so it never moves the screen when it
   shows or hides; muted helper text, light and dark through --p-mute. Hidden while Tom's card shows, as .said is. */
.who{position:relative}
.quietline{position:absolute;top:100%;left:50%;transform:translateX(-50%);width:min(320px,calc(100vw - 48px));margin-top:10px;text-align:center}
.quietline[hidden],.view.call.walk .quietline{display:none}
.btn.pill{width:auto;align-self:center;font-size:15px;padding:10px 22px}
.btn.end{background:var(--p-end);color:#fff}
/* the walk-up card inside call 2; the face steps down while it shows */
.walkup{gap:14px;flex-shrink:0;overflow:hidden}
.walkup .lede{font-size:18px}
.view.call.walk{--face:64px}
.view.call.walk .caller{flex-grow:0}
.view.call.walk>.grow{flex-grow:1}
.view.call.walk .walkup{animation:fdwalk .2s ease-out}
@keyframes fdwalk{from{max-height:0;opacity:0;padding-top:0;padding-bottom:0}to{max-height:640px;opacity:1}}
.view.call.walk .said{display:none}
@media (max-height:700px){.view.call{gap:10px;padding-top:calc(16px + var(--safe-t))}.face{margin-bottom:2px}.said{padding-top:2px}
  .view.call.walk{--face:52px;gap:8px}.view.call.walk .walkup{gap:10px;padding:14px 16px}.view.call.walk .walkup .lede{font-size:17px}.view.call.walk .caller>.small{margin-bottom:4px}}
/* Look fix C: the bottom buttons keep at least 16 px above the safe area on every phone (22 px on a tall one) */
@media (max-height:700px){.view.call{padding-bottom:calc(16px + var(--safe-b))}}
@media (prefers-reduced-motion:reduce){.caller,.view.call>.grow,.face,.times{transition:none}.view.call.walk .walkup{animation:none}}

/* the booking note: inputs at 17px so an iPhone does not zoom */
.field{display:flex;flex-direction:column;gap:6px}
.field label,.field .flab{font-size:14px;font-weight:600;color:var(--p-mute)}
/* the booking form's Day and time: the same calendar, copied from the notes card (frontdesk.js), on the field colour */
.card.cal.incal{background:var(--p-field);box-shadow:inset 0 0 0 1px var(--p-line);padding:10px 12px 10px}
.card.cal.incal .cal-grid{margin-top:2px}
.card.cal.incal .cal-say{min-height:41px;margin-top:0}
.field input{font:inherit;font-size:17px;color:var(--p-ink);background:var(--p-field);border:1px solid var(--p-line);border-radius:12px;padding:12px 14px;width:100%;min-height:48px;-webkit-appearance:none;appearance:none}
.field input:focus{outline:3px solid var(--p-accent);outline-offset:1px}
.field input[aria-invalid="true"]{border-color:var(--p-end)}
.field .err{font-size:16px;color:var(--p-end);line-height:1.4}
.field .err[hidden]{display:none}
.count{font-size:15px;color:var(--p-mute);font-variant-numeric:tabular-nums}
.note{gap:14px}
.note .big{font-size:31px;line-height:1.12;letter-spacing:-.01em}

/* the three questions; a long question steps down one size so I am done stays on an iPhone SE */
.ask{gap:14px}
.ask .big.long{font-size:27px;line-height:1.14;letter-spacing:-.02em}
.listen{display:flex;align-items:center;justify-content:center;gap:10px;color:var(--p-mute);font-size:15px}
[data-rec="off"] .listen{visibility:hidden}
.dot{width:10px;height:10px;border-radius:50%;background:var(--p-end);box-shadow:0 0 0 5px color-mix(in srgb,var(--p-end) 25%,transparent)}
.ask .clock{margin-top:-8px}
/* B50: the answer's time as a bar under the clock; the width is set per tick, with no easing, so reduced motion needs no rule */
.timebar{align-self:center;width:min(200px,60%);height:6px;border-radius:3px;background:var(--p-quiet);overflow:hidden;flex:none;margin-top:-6px}
.timebar i{display:block;width:0;height:100%;border-radius:3px;background:var(--p-accent)}
.timebar.late i{background:var(--p-end)}

/* short phones: the welcome and the card keep their button on the screen */
@media (max-height:700px){.first .big{font-size:31px}.first{gap:12px}.first .lede{font-size:17px}.note .big{font-size:26px}.note{gap:10px}}

/* the desk card sheet over a call */
.sheet-wrap{position:fixed;inset:0;z-index:10;display:flex;flex-direction:column;justify-content:flex-end}
.sheet-wrap[hidden]{display:none}
.scrim{position:absolute;inset:0;background:var(--p-scrim);opacity:0;transition:opacity .25s ease}
.sheet{position:relative;width:100%;max-width:430px;margin:0 auto;max-height:calc(100dvh - 24px - var(--safe-t));overflow-y:auto;background:var(--p-ground);border-radius:26px 26px 0 0;box-shadow:0 -1px 0 var(--p-line),0 -8px 30px rgba(0,0,0,.18);padding:22px max(20px,calc(var(--safe-r) + 12px)) calc(22px + var(--safe-b)) max(20px,calc(var(--safe-l) + 12px));display:flex;flex-direction:column;gap:18px;transform:translateY(100%);transition:transform .28s cubic-bezier(.2,.8,.2,1)}
.sheet .big{font-size:29px;line-height:1.12;letter-spacing:-.02em}
.sheet-wrap.open .scrim{opacity:1}
.sheet-wrap.open .sheet{transform:none}
@media (prefers-reduced-motion:reduce){.scrim,.sheet{transition:none}}

/* the desk card and its sheet: the button is pinned in a footer at the bottom, above the safe area; the three blocks scroll above it on a short phone */
.foot{position:sticky;bottom:0;z-index:1;flex:none;background:var(--p-ground);margin-top:-12px;padding:12px 0 calc(22px + var(--safe-b))}
[data-view="desk"] .pad,.sheet{padding-bottom:0}
/* the card's scroll area ends above the pinned button: bottom padding the button block's height (12px over, the 60px button, 22px under) plus the safe area, so its last line scrolls fully into view on a small iPhone; the foot sits over that padding */
:root{--foot-h:94px}
.desk{padding-bottom:calc(var(--foot-h) + var(--safe-b))}
.foot{margin-top:calc(-12px - var(--foot-h) - var(--safe-b))}

/* fix 1 and 2 on pull request 530: the line under Back to Megan, and the End question in place of the End button */
.walkup .hint{text-align:center;margin-top:-4px}
.btn.end[hidden]{display:none}
.endask{display:flex;flex-direction:column;align-items:stretch;gap:12px}
.endask[hidden]{display:none}
/* the End question keeps 24 px or more of clear space under Your desk today (the view's gap plus this margin) */
.view.call>.endask{margin-top:14px}
.endask .ask-h{font-size:20px;font-weight:600;text-align:center;line-height:1.25}

/* pull request 4b: I am done sits under the clock, mid-screen, away from the hand-off's bottom button; off until it may be used */
.btn.finish{margin-top:6px}
.btn.finish:disabled{opacity:.35;cursor:default}
.ask .grow.under{flex-grow:1.6}
.closing{font-size:31px;line-height:1.14;letter-spacing:-.015em}
[data-view="again"] .btn.pill{margin-top:-4px}
/* version 2: Tom's line and the two choices on the walk-up card; the two taps after the booking note */
.walkup .tomcap{font-style:italic;color:var(--p-mute)}
.walkup .two{display:flex;gap:10px}
.walkup .two .btn{flex:1 1 0;font-size:16px;padding:14px 10px}
/* Look fix B: on a narrow phone both choices stay on one line and the same height, never cut short */
@media (max-width:389px){.walkup{padding-left:16px;padding-right:16px}.walkup .two{gap:8px}.walkup .two .btn{font-size:15px;padding:14px 6px}}
.walk-pick,.walk-back{display:flex;flex-direction:column;gap:14px}
.walk-pick[hidden],.walk-back[hidden]{display:none}
.tapq{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
.tapq .big{font-size:22px;margin-bottom:4px}
.btn.opt{font-size:16px;padding:12px 16px}
.btn.opt[aria-pressed="true"]{background:var(--p-accent);color:#fff}
.btn:disabled{opacity:.35;cursor:default}
/* the calendar grid (2026-11-11, second pass): a narrow column of times at the left, then five equal day columns; the
   four open times are buttons, the 26 taken cells are quiet blocks with no text; 8 px more between 11:20 and 1:40 (lunch) */
.card.cal{gap:6px;--cal-gap:5px;--cal-lab:40px;--p-book:#0a7d73;--cal-taken:color-mix(in srgb,var(--p-ink) 4%,var(--p-card));--cal-edge:transparent}
.card.cal>span{font-size:15.5px;color:var(--p-mute)}
.card.cal .cal-grid{display:grid;grid-template-columns:var(--cal-lab) repeat(5,minmax(0,1fr));grid-template-rows:auto 52px 52px 52px 60px 52px 52px;align-items:end;gap:var(--cal-gap);margin:8px 0 2px}
.card.cal .cal-day{font-size:13px;font-weight:700;letter-spacing:.02em;color:var(--p-mute);text-align:center;padding-bottom:2px}
.card.cal .cal-time{height:52px;display:flex;align-items:center;justify-content:flex-end;padding-right:6px;font-size:12.5px;font-weight:500;line-height:1;color:var(--p-mute);font-variant-numeric:tabular-nums;white-space:nowrap}
.card.cal .slot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;height:52px;padding:0;border:0;border-radius:12px;font-size:15px;line-height:1;letter-spacing:-.01em;white-space:nowrap}
.card.cal .slot.taken{background:var(--cal-taken);box-shadow:inset 0 0 0 1px var(--cal-edge)}
.card.cal .slot.open{background:color-mix(in srgb,var(--p-accent) 16%,var(--p-card));color:var(--p-accent-deep);font-weight:700;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--p-accent) 55%,transparent);transition:background-color .15s ease,color .15s ease}
.card.cal .slot.open:active{background:color-mix(in srgb,var(--p-accent) 28%,var(--p-card))}
.card.cal .slot.open[aria-pressed="true"]{background:var(--p-book);color:#fff;box-shadow:none;gap:5px}
/* the booked cell: the check above the time, the two centred as one unit */
.card.cal .slot.open[aria-pressed="true"]::before{content:"";display:block;width:5px;height:10px;margin-top:-3px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.card.cal button.slot:focus-visible{border-radius:12px;outline-offset:2px}
.card.cal .cal-say{min-height:41px;display:flex;align-items:center;font-size:15px;line-height:1.35;color:var(--p-ink);margin-top:4px}
.card.cal .cal-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px}
.card.cal .cal-booked{font-size:15px;color:var(--p-mute)}
.card.cal .cal-booked .cal-when{font-size:15px;font-weight:600;color:var(--p-ink)}
.card.cal .cal-booked .cal-hint{font-size:15px;color:var(--p-mute)}
.card.cal .cal-legend[hidden],.card.cal .cal-booked[hidden]{display:none}
.card.cal .cal-key{display:inline-flex;align-items:center;gap:8px;color:var(--p-mute)}
.card.cal .chip{display:inline-block;width:22px;height:16px;border-radius:5px}
.card.cal .chip.open{background:color-mix(in srgb,var(--p-accent) 16%,var(--p-card));box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--p-accent) 55%,transparent)}
.card.cal .chip.taken{background:var(--cal-taken);box-shadow:inset 0 0 0 1px var(--cal-edge,transparent),inset 0 0 0 1px color-mix(in srgb,var(--p-ink) 12%,transparent)}
.card.cal>.cal-plan{margin-top:2px}
/* dark: the taken blocks and their key sample get a faint 1 px edge so they show */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .card.cal{--cal-taken:color-mix(in srgb,var(--p-ink) 6%,var(--p-card));--cal-edge:color-mix(in srgb,var(--p-ink) 14%,transparent)}}
:root[data-theme="dark"] .card.cal{--cal-taken:color-mix(in srgb,var(--p-ink) 6%,var(--p-card));--cal-edge:color-mix(in srgb,var(--p-ink) 14%,transparent)}
@media (max-width:359px){.card.cal{padding-left:8px;padding-right:8px;--cal-gap:3px;--cal-lab:34px}.card.cal .cal-time{padding-right:4px;font-size:12px}.card.cal .slot{font-size:13.5px;border-radius:10px;letter-spacing:-.045em}}
@media (prefers-reduced-motion:reduce){.card.cal .slot.open{transition:none}}
@media (max-width:359px){.card.cal.incal{padding-left:8px;padding-right:8px}}

/* version 3 (FRONT_DESK_SPEC.md, Version 3; the pictures are front-desk-screens-v3.html). A: Hold beside End on both calls. */
.callbtns{display:flex;gap:10px}
.callbtns .btn{flex:1 1 0;min-width:0}
.view.call>.hint{text-align:center;margin-top:-2px}
.view.call>.hint[hidden]{display:none}
.view.call.held .face,.view.call.held .nm{opacity:.45}
/* B: the compact times card under Megan's name (the four open times only), the booking sheet over the call, and the note's four buttons */
.view.call.tight{--face:64px}
.view.call.tight .caller{flex-grow:0}
.view.call.tight .caller>.small{margin-bottom:4px}
.view.call.tight>.grow{flex-grow:1}
.view.call.tight .said{display:none}
.times{padding:14px 16px;gap:8px;flex-shrink:0}
.times b{font-size:17px;line-height:1.3}
/* card 4 (2026-11-15): Megan held while Tom's card shows, the times slide away and the tombar shows; Back to Megan slides them back */
.times{max-height:420px;overflow:hidden;transition:max-height .25s ease,opacity .2s ease,padding .25s ease,margin .25s ease,visibility 0s linear 0s}
.view.call.tomhelp .times{max-height:0;opacity:0;padding-top:0;padding-bottom:0;margin:0;border-width:0;visibility:hidden;transition:max-height .25s ease,opacity .2s ease,padding .25s ease,margin .25s ease,visibility 0s linear .25s}
.tombar{gap:10px;flex-shrink:0}.tombar .lede{font-size:17px}
.slots{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.slots.one{grid-template-columns:1fr}
.slots .slot{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;height:44px;margin:0;padding:0;border:0;border-radius:12px;font-family:inherit;font-size:15px;line-height:1;letter-spacing:-.01em;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;
  background:color-mix(in srgb,var(--p-accent) 16%,var(--p-card));color:var(--p-accent-deep);font-weight:700;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--p-accent) 55%,transparent)}
.slots .slot[aria-pressed="true"],.slots .slot.on{background:var(--p-book,var(--p-accent));color:#fff;box-shadow:none}
.slots .slot[aria-pressed="true"]::before,.slots .slot.on::before{content:"";display:block;width:5px;height:10px;margin-top:-3px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.slots span.slot{cursor:default}
.sheet.booksheet{display:flex;flex-direction:column;gap:14px;max-height:calc(100% - 12px);padding-bottom:calc(22px + var(--safe-b));overflow-y:auto;-webkit-overflow-scrolling:touch}
.booksheet .btn{flex:none}
@media (max-height:700px){.note{gap:8px}}
/* C: Tom after the call (one card, mid screen) */
.after .walkup{gap:14px;padding:18px}
.after .walkup .lede{font-size:18px;margin:0;font-weight:inherit}
.after .walkup .btn{font-size:18px;padding:17px 18px}
.after .walkup .btn.off{opacity:.35}
.after .walkup .tomcap[hidden]{display:none}
/* End asks its question: the times card steps aside so the question and its two buttons fit a short phone */
.view.call:has(.endask:not([hidden])) .times{display:none}

/* B66: a phone on its side with the keyboard up shows only 90 to 130 CSS px of page. /livetryout/short.js sets
   html.vv-short while the visible height is under 200 px and a box has the focus. Then the welcome shows only the
   name box and its button, right above each other, both whole. */
html.vv-short .first:focus-within{padding-top:2px;padding-bottom:2px;gap:4px}
html.vv-short .first:focus-within > :not(.field):not(.grow):not([data-main]),html.vv-short .first:focus-within .field label{display:none}
html.vv-short .first:focus-within .field input{min-height:38px;padding-block:4px}
html.vv-short .first:focus-within [data-main]{min-height:38px;padding-block:6px}

/* production walk 2026-11-15. A .btn is display:flex, which beat [hidden]: Start now stayed up while recording and the
   pale I am done showed while reading. On the question screen the read part and the recording part share one grid cell,
   each keeping its space while the other shows (visibility), and I am done keeps its space while hidden, so the
   question never moves when recording starts. */
.btn[hidden]{display:none}
.ask .stage{display:grid;flex:none}
.ask .stage>.part{grid-area:1/1;display:flex;flex-direction:column;gap:14px;align-self:start}
.ask .stage p[hidden],.ask .stage div[hidden]{display:block;visibility:hidden}
.ask .stage .listen[hidden]{display:flex}
.ask .stage .btn[hidden],.ask .btn[data-recpart][hidden]{display:flex;visibility:hidden}
/* Megan's connecting screen matches Frank's: while "Calling Megan Lutz." shows, the full caller block and no times card */
.view.call.tight:has(.said:not(:empty)){--face:clamp(76px,14.5vh,120px)}
.view.call.tight:has(.said:not(:empty)) .caller{flex-grow:1}
.view.call.tight:has(.said:not(:empty)) .caller>.small{margin-bottom:8px}
.view.call.tight:has(.said:not(:empty))>.grow{flex-grow:0}
.view.call.tight:has(.said:not(:empty)) .said{display:block}
.view.call.tight:has(.said:not(:empty)) .times{display:none}
/* the booking sheet's Cancel, a text button like Leave */
.booksheet .leave{align-self:center;margin:-4px 0 0}
/* B61: a phone on its side (Galaxy A17 700x315, 780x360). Megan's call has no room for the caller over the times card,
   so the caller sits at the left and the card at the right, with Your notes under the caller and Hold and End across
   the bottom. Only this call, only short landscape; portrait is untouched. */
@media (orientation:landscape) and (max-height:500px){
  .app:has(>.view.call.tight:not([hidden])){max-width:760px}
  .view.call.tight{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);grid-template-rows:minmax(0,1fr) auto;grid-auto-flow:row dense;column-gap:20px;row-gap:10px}
  .view.call.tight>*{grid-column:1/-1}
  .view.call.tight>.caller{grid-column:1;grid-row:1;justify-content:center}
  .view.call.tight>.card{grid-column:2;align-self:center}
  .view.call.tight>.times{grid-row:1/3}
  .view.call.tight>.pill{grid-column:1;grid-row:2;justify-self:center;align-self:end}
  .view.call.tight>.grow{display:none}
}
