/* =========================================================================
   BOOKING — the Teapak booking app (WordPress plugin "Booking — Teapak").

   One app, two layouts. Under 900px it is the phone app from the mockup:
   one screen at a time, a tab bar at the bottom. From 900px it is the
   desktop web app: the split sign-in page and the bento booking page.
   Colours and fonts are the mockup's. No framework; plain CSS.
   ========================================================================= */
:root {
  --bg: #F3F6FB; --card: #FFFFFF; --ink: #0B1B3A; --sub: #6B7A90; --tile: #F3F6FB; --line: #E3E9F2;
  --navy: #2F7FE6; --navy-2: #1F5FC4; --blue-l: #DCEAFD; --blue-xl: #EEF4FE; --blue-ink: #1F4E8C;
  --mint: #DFF3EA; --mint-ink: #1E7A57; --lav: #ECEBFA; --lemon: #FFF3D6; --rose-l: #FDE7E1; --rose-ink: #B3261E;
  --orange: #F5AA2C; --sky: #66A9DB; --line-g: #06C755; --teams: #4B53BC;
  --font-en: 'Comfortaa', 'Mitr', system-ui, sans-serif; --font-th: 'Mitr', 'Comfortaa', system-ui, sans-serif; --font-mark: 'Poppins', 'Comfortaa', sans-serif;
  --shadow: 0 10px 30px rgba(11, 27, 58, .08);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-en); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
.app[lang="th"] { font-family: var(--font-th); }
.app[lang="th"] .mark { font-family: var(--font-mark); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
a { color: var(--navy-2); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
svg { display: block; }
.tb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- the phone screen ----------------------------------------------------- */
.app { min-height: 100dvh; display: flex; flex-direction: column; max-width: 480px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top, 0px)) 18px calc(14px + env(safe-area-inset-bottom, 0px)); }
.scr { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.mark { font-family: var(--font-mark); font-weight: 700; font-size: 22px; letter-spacing: -.01em; line-height: 1; color: #021B47; }
.mark .dot { color: var(--orange); } .mark .co { color: var(--sky); }

.top { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.top .ttl { flex: 1; text-align: center; font-weight: 600; font-size: 15px; }
.ico { width: 40px; height: 40px; border-radius: 50%; background: var(--card); display: grid; place-items: center; border: 1px solid var(--line); flex: none; color: var(--ink); }
.ico[hidden] { display: none; }
.ico.ghost { visibility: hidden; }
.ava { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-l); display: grid; place-items: center; overflow: hidden; flex: none; font-weight: 600; color: var(--navy-2); font-size: 15px; }
.ava.sage { background: var(--mint); color: var(--mint-ink); }
h2.q { font-size: 26px; line-height: 1.15; font-weight: 600; margin: 16px 0 14px; letter-spacing: -.01em; text-wrap: balance; }
.sub { font-size: 12px; color: var(--sub); }
.sub.center { text-align: center; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border-radius: 999px; padding: 9px 14px; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--card); }
.chip.c1 { background: var(--blue-l); } .chip.c2 { background: var(--mint); } .chip.c3 { background: #DFF0FA; } .chip.c4 { background: var(--lemon); } .chip.c5 { background: var(--rose-l); } .chip.c6 { background: var(--lav); }
.chip[aria-pressed="true"] { outline: 2px solid var(--navy); outline-offset: -2px; }
h3.sec { font-size: 17px; font-weight: 600; margin: 18px 0 10px; }
.card { background: var(--card); border-radius: 22px; padding: 14px; }
.cta { border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; padding: 14px 20px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.cta:disabled { opacity: .55; }
.cta.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.cta.line { background: var(--line-g); color: #fff; }
.cta.mt { margin-top: auto; }
.cta.sm { width: auto; padding: 10px 16px; font-size: 13px; }
.err { color: var(--rose-ink); font-size: 12.5px; min-height: 1em; margin: 0; }
.err:empty { display: none; }
.note { background: var(--lemon); border-radius: 16px; padding: 12px 14px; font-size: 12.5px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.two.now { margin-top: 12px; }

/* consultant hero card (home) */
.hero { position: relative; border-radius: 26px; overflow: hidden; background: linear-gradient(135deg, var(--blue-l) 0%, #A9CBF9 55%, var(--navy) 135%); padding: 16px; min-height: 240px; display: flex; flex-direction: column; }
.hero:before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 55%, rgba(255, 255, 255, .45) 55%, rgba(255, 255, 255, .45) 70%, transparent 70%); }
.hero > * { position: relative; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .85); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 600; align-self: flex-start; }
.badge .o { color: var(--mint-ink); }
.hero .role { font-size: 11px; color: var(--blue-ink); margin-top: 14px; }
.hero .name { font-size: 22px; font-weight: 600; line-height: 1.1; margin-top: 4px; max-width: 60%; }
.hero .person { position: absolute; right: -6px; bottom: 0; width: 150px; height: 170px; }
.hero .heart { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .85); display: grid; place-items: center; }
.hero .row { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.hero .go { border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: 12px; padding: 12px 16px; }
.hero .trail { flex: 1; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, .55); display: flex; align-items: center; justify-content: flex-end; padding-right: 14px; gap: 4px; color: #fff; }
.hero .trail span { opacity: .5; } .hero .trail span:nth-child(2) { opacity: .75; } .hero .trail span:nth-child(3) { opacity: 1; }
.tabbar { margin-top: 16px; display: flex; justify-content: center; gap: 8px; background: var(--card); border-radius: 999px; padding: 8px; align-self: center; border: 1px solid var(--line); position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.tabbar button, .tabbar a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.tabbar .on { background: var(--navy); color: #fff; }

/* check-in */
.moon { border-radius: 26px; background: var(--card); padding: 16px; position: relative; min-height: 168px; overflow: hidden; }
.moon .sky { position: absolute; inset: 0; background: radial-gradient(120px 120px at 68% 42%, var(--blue-xl) 0, #F8FBFF 60%, #fff 100%); }
.moon svg.art { position: absolute; right: 12px; top: 8px; width: 112px; height: 112px; }
.moon .t { position: relative; font-weight: 600; font-size: 15px; }
.moon .s { position: relative; margin-top: 4px; max-width: 120px; }
.moon .mini { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 18px; padding: 12px; width: 150px; }
.moon .mini .l { font-size: 11px; color: var(--sub); } .moon .mini .v { font-weight: 600; font-size: 14px; margin: 2px 0 6px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border-radius: 20px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-height: 0; text-align: left; }
.tile.link { gap: 8px; }
.tile .h { display: flex; justify-content: space-between; align-items: flex-start; }
.tile .pill { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.tile .pill.s { width: 36px; height: 36px; }
.tile .now { text-align: right; font-size: 10px; color: var(--sub); line-height: 1.3; }
.tile .now b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.tile .n { font-size: 14px; font-weight: 600; }
.tile .n.s { font-size: 13px; }
.rate { width: 100%; margin: 0; accent-color: var(--navy); height: 18px; cursor: pointer; }
.stepper { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.stepper button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--tile); font-weight: 600; line-height: 1; display: grid; place-items: center; }
.stepper b { min-width: 18px; text-align: center; font-weight: 600; }
.p-sky { background: var(--blue-l); } .p-sand { background: var(--lemon); } .p-sage { background: var(--mint); } .p-navy { background: var(--lav); }
.logo-sq { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; font-weight: 700; font-family: var(--font-mark); font-size: 13px; }
.logo-sq.s { width: 36px; height: 36px; border-radius: 12px; font-size: 10px; }
.line-g { background: var(--line-g); color: #fff; } .teams-g { background: var(--teams); color: #fff; }

/* consultant choice */
.opt { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 20px; padding: 12px; border: 2px solid transparent; text-align: left; width: 100%; }
.opt[aria-pressed="true"] { border-color: var(--navy); }
.opt .t { flex: 1; min-width: 0; }
.opt .t b { display: block; font-weight: 600; font-size: 14px; }
.opt .t span { font-size: 11px; color: var(--sub); }
.opt .t .free { display: block; margin-top: 4px; color: var(--mint-ink); font-weight: 600; }
.opt .chk { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; color: transparent; }
.opt[aria-pressed="true"] .chk { background: var(--navy); border-color: var(--navy); color: #fff; }
.opt.soon { opacity: .72; border-style: dashed; border-color: var(--line); cursor: default; }

/* booking */
.docpic { position: relative; height: 200px; margin: -6px -18px 0; background: linear-gradient(115deg, #fff 0%, #fff 35%, var(--blue-xl) 35%, var(--blue-xl) 55%, #fff 55%, #fff 72%, var(--blue-l) 72%); overflow: hidden; border-radius: 0 0 30px 30px; }
.docpic svg { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 200px; height: 190px; }
.who { text-align: center; margin-top: 10px; }
.who .r { font-size: 12px; color: var(--sub); } .who .n { font-size: 20px; font-weight: 600; margin-top: 2px; }
.appt { background: var(--blue-l); border-radius: 24px; padding: 16px; margin-top: 12px; position: relative; }
.appt .cal { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.appt .l { font-weight: 600; font-size: 14px; }
.appt .d { margin-top: 6px; font-size: 15px; } .appt .d b { font-weight: 600; }
.appt .acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.appt .acts span { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 600; }
.appt .acts .cnt { background: var(--navy); color: #fff; border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; font-style: normal; }
.appt .sub { color: var(--blue-ink); }
.days { display: flex; gap: 6px; margin: 12px -18px 0; padding: 0 18px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 calc((100% - 36px) / 7); min-width: 44px; border-radius: 16px; background: var(--card); padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--sub); scroll-snap-align: start; }
.day b { font-size: 14px; font-weight: 600; color: var(--ink); }
.day small { font-size: 9px; }
.day[aria-pressed="true"] { background: var(--navy); color: #DCEAFD; } .day[aria-pressed="true"] b { color: #fff; }
.day:disabled { opacity: .4; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.slot { border: 1px solid var(--line); border-radius: 999px; background: var(--card); padding: 9px 0; font-size: 12px; font-weight: 600; }
.slot[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.slot:disabled { opacity: .4; text-decoration: line-through; }
.lbl { font-size: 11px; color: var(--sub); margin: 12px 0 0; text-transform: uppercase; letter-spacing: .08em; }
.none { font-size: 12.5px; color: var(--sub); margin: 10px 0 0; }

/* confirmation */
.done { display: grid; place-items: center; text-align: center; margin-top: 18px; gap: 10px; }
.done .ok { width: 84px; height: 84px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: var(--mint-ink); }
.done h2 { margin: 6px 0 0; font-size: 24px; font-weight: 600; }
.done p { margin: 0; font-size: 12px; color: var(--sub); max-width: 250px; }
.sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.sum .card { padding: 12px; } .sum .k { font-size: 11px; color: var(--sub); } .sum .v { font-weight: 600; font-size: 13px; margin-top: 4px; }
.sum .wide { grid-column: 1 / -1; background: var(--mint); }
.steps { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; }
.steps li i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 600; }

/* my bookings */
.bk { background: var(--card); border-radius: 20px; padding: 14px; display: grid; gap: 8px; }
.bk .h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bk .w { font-weight: 600; font-size: 15px; }
.bk .m { font-size: 12px; color: var(--sub); }
.bk .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.bk .acts button, .bk .acts a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 600; background: var(--card); color: var(--ink); text-decoration: none; }
.bk .acts .danger { color: var(--rose-ink); }
.st { display: inline-block; border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.st.booked { background: var(--lemon); color: #9A5B07; } .st.confirmed { background: var(--mint); color: var(--mint-ink); } .st.cancelled { background: var(--tile); color: var(--sub); } .st.past { background: var(--lav); color: #4B3FA3; }
.empty { text-align: center; padding: 28px 16px; color: var(--sub); font-size: 13px; }

/* sign-in / sign-up */
.welcome { border-radius: 26px; background: linear-gradient(135deg, var(--blue-l) 0%, #A9CBF9 55%, var(--navy) 135%); padding: 18px; position: relative; overflow: hidden; min-height: 150px; margin-top: 10px; }
.welcome svg { position: absolute; right: -6px; top: -6px; width: 120px; height: 120px; opacity: .9; }
.welcome .t { font-size: 20px; font-weight: 600; line-height: 1.15; max-width: 62%; position: relative; text-wrap: balance; }
.welcome .s { font-size: 12px; color: var(--blue-ink); margin-top: 8px; max-width: 62%; position: relative; }
.or { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--sub); margin: 12px 0 10px; }
.or:before, .or:after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form { display: flex; flex-direction: column; gap: 10px; }
.form.mt { margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--sub); min-width: 0; }
.field input, .field select { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--card); font: inherit; font-size: 13px; color: var(--ink); width: 100%; min-width: 0; }
.field input:focus { outline: 2px solid var(--navy); outline-offset: -1px; }
.field input[aria-invalid="true"] { border-color: var(--rose-ink); }
.between { display: flex; justify-content: space-between; align-items: center; font-size: 12px; gap: 8px; }
.between a, .linkish { color: var(--navy-2); text-decoration: none; font-weight: 600; font-size: 12px; }
.chk-row { display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; line-height: 1.4; color: var(--ink); }
.chk-row input { accent-color: var(--navy); margin: 2px 0 0; flex: none; width: 16px; height: 16px; }
.chk-row a { color: var(--navy-2); font-weight: 600; text-decoration: none; }
.center a { color: var(--navy-2); font-weight: 600; text-decoration: none; }
.saved { display: flex; gap: 8px; align-items: center; background: var(--mint); color: var(--mint-ink); border-radius: 14px; padding: 9px 12px; font-size: 11.5px; font-weight: 600; }
.lang { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.lang button { border-radius: 999px; padding: 5px 11px; font-size: 11px; font-weight: 600; color: var(--sub); }
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 12.5px; }
.kv span:nth-child(odd) { color: var(--sub); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); background: #021B47; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 600; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; z-index: 9; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.closed { margin: auto; text-align: center; padding: 30px 20px; }
.closed h2 { font-size: 22px; margin: 12px 0 6px; }
.spin { margin: auto; text-align: center; color: var(--sub); font-size: 13px; }

@media (prefers-reduced-motion: no-preference) { .chip, .slot, .day, .opt, .lang button { transition: background .15s, color .15s, border-color .15s; } }

/* ---- desktop: the web app -------------------------------------------------- */
@media (min-width: 900px) {
  .app { max-width: 1240px; padding: 20px clamp(16px, 3vw, 32px) 40px; }
  .app.desk .scr { max-width: none; }
  .tabbar { display: none; }

  /* sign-in: split page */
  .login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 560px; background: var(--card); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); margin: auto 0; }
  .login .pane { background: linear-gradient(145deg, var(--blue-l) 0%, #A9CBF9 55%, var(--navy) 140%); padding: 36px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
  .login .pane h2 { font-size: 30px; font-weight: 600; line-height: 1.15; margin: 28px 0 12px; max-width: 16ch; text-wrap: balance; }
  .login .pane p { margin: 0; color: var(--blue-ink); font-size: 14px; max-width: 34ch; }
  .login .pane ul { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 10px; }
  .login .pane li { display: flex; gap: 10px; align-items: center; font-size: 13px; background: rgba(255, 255, 255, .7); border-radius: 14px; padding: 10px 12px; max-width: 340px; }
  .login .pane li i { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
  .login .pane svg.big { position: absolute; right: -20px; bottom: -30px; width: 220px; height: 220px; opacity: .85; }
  .login .formside { padding: 36px; display: flex; flex-direction: column; }
  .login .formside .form { max-width: 380px; }
  .tabs { display: inline-flex; background: var(--tile); border-radius: 999px; padding: 3px; gap: 2px; align-self: flex-start; margin-bottom: 18px; }
  .tabs button { border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--sub); }
  .tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11, 27, 58, .12); }
  .login .welcome, .login .top { display: none; }

  /* the booking page */
  .wnav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding-bottom: 16px; }
  .wnav .links { display: flex; gap: 4px; flex-wrap: wrap; }
  .wnav .links button { color: var(--ink); font-size: 13px; padding: 8px 12px; border-radius: 999px; }
  .wnav .links button.on { background: var(--card); font-weight: 600; }
  .wnav .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  .phase { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-l); color: var(--navy-2); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; }
  .phase i { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); display: inline-block; }
  .bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: auto; gap: 14px; }
  .bento > * { min-width: 0; }
  .b-hello { grid-column: span 8; background: var(--card); border-radius: 26px; padding: 22px; }
  .b-hello h2.q { font-size: 32px; margin: 6px 0 16px; }
  .b-hello .chips { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
  .b-cons { grid-column: span 4; grid-row: span 2; }
  .b-cons .hero { height: 100%; min-height: 330px; }
  .b-cons .hero .person { width: 190px; height: 215px; }
  .b-cons .hero .name { font-size: 26px; }
  .b-scores { grid-column: span 8; }
  .b-scores .tiles { grid-template-columns: repeat(4, 1fr); }
  .b-scores .tile { padding: 16px; }
  .b-when { grid-column: span 5; background: var(--card); border-radius: 26px; padding: 20px; }
  .b-when .days { margin: 0; padding: 0; }
  .b-when .day:not([aria-pressed="true"]) { background: var(--tile); } .b-when .slot:not([aria-pressed="true"]) { background: var(--tile); }
  .b-via { grid-column: span 3; display: flex; flex-direction: column; gap: 10px; }
  .b-via .opt.soon { flex: 1; }
  .b-sum { grid-column: span 4; display: flex; flex-direction: column; gap: 12px; }
  .b-sum .appt { margin: 0; flex: 1; }
  .wt { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
  .wide { max-width: 640px; margin: 0 auto; width: 100%; }
  .wide .docpic { display: none; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .b-hello, .b-cons, .b-scores, .b-when, .b-via, .b-sum { grid-column: span 12; }
  .b-cons { grid-row: auto; } .b-cons .hero { min-height: 260px; }
  .b-scores .tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ---- consultants: photos and the list of people to choose from -------------- */
.ava.photo { background: var(--blue-l); }
.ava.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero.has-photo .person { width: 150px; height: 170px; object-fit: cover; object-position: top; border-radius: 26px 0 0 0; }
.hero.has-photo .name { max-width: 55%; }
.docpic.has-photo { background: var(--blue-xl); }
.docpic .docphoto { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 200px; height: 190px; object-fit: cover; object-position: top; border-radius: 30px 30px 0 0; }
.opt .t span + span { display: block; }
@media (min-width: 900px) { .b-cons .hero.has-photo .person { width: 190px; height: 215px; } }
