/* ---------- shared brand bar ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-weight: 700; letter-spacing: -.01em; font-family: "Bricolage Grotesque", var(--font); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }

/* ---------- profile page ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 75% -10%, #123f7a 0%, var(--navy) 55%, #00142f 100%);
  padding: 22px clamp(18px, 4vw, 40px) 150px; min-height: 470px;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .top { position: relative; display: flex; justify-content: space-between; align-items: center; max-width: 1080px; margin: 0 auto; }
.hero .top .brand { color: #fff; font-size: 17px; }
.hero .top a.admin-link { color: rgba(255,255,255,.6); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.hero .top a.admin-link:hover { color: #fff; text-decoration: none; }
.host {
  position: relative; max-width: 760px; margin: clamp(40px, 8vh, 80px) auto 0; text-align: center; animation: rise .7s ease both;
}
.host .avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 18px; display: block;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .07), 0 22px 44px -16px rgba(0, 0, 0, .55);
}
.host h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; margin: 0 0 6px; letter-spacing: -.035em; }
.host .role { font-size: clamp(16px, 2vw, 18px); color: var(--ice); font-weight: 600; margin-bottom: 14px; }
.host p { font-size: clamp(16px, 2.2vw, 19px); color: rgba(255,255,255,.78); margin: 0 auto; max-width: 560px; }

.events-wrap { position: relative; max-width: 1080px; margin: -110px auto 0; padding: 0 clamp(16px, 4vw, 40px) 60px; }
.events-head { display: flex; justify-content: center; align-items: end; color: #fff; margin-bottom: 16px; padding: 0 4px; }
.events-head h2 { font-size: 15px; font-weight: 700; letter-spacing: .02em; color: rgba(255,255,255,.85); }
.events { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.events > * { flex: 1 1 330px; max-width: 520px; }
.ev-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 22px; background: var(--surface);
  border-radius: 18px; box-shadow: var(--shadow-lg); color: var(--ink); border-top: 5px solid var(--c, var(--sky));
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; overflow: hidden; min-height: 168px;
  animation: rise .6s ease both;
}
.ev-card:hover { transform: translateY(-4px); text-decoration: none; box-shadow: 0 2px 4px rgba(11,29,54,.04), 0 34px 70px -28px rgba(0,30,68,.38); }
.ev-card h2 { font-size: 20px; font-weight: 750; }
.ev-card .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.chip .icon { width: 15px; height: 15px; }
.ev-card p { margin: 0; color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--sky); font-weight: 700; font-size: 15px; }
.ev-card .go .icon { transition: transform .2s; }
.ev-card:hover .go .icon { transform: translateX(4px); }
.empty-card { padding: 40px; text-align: center; background: #fff; border-radius: 18px; box-shadow: var(--shadow); color: var(--muted); }

.trust { max-width: 1080px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 40px) 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust div { padding: 22px; border-radius: 16px; background: linear-gradient(180deg, #fff, #f8fbff); border: 1px solid var(--line); }
.trust b { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 6px; }
.trust b .icon { color: var(--sky); }
.trust span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }
footer.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 0 20px 40px; }
footer.foot a { color: var(--ink-2); font-weight: 600; }

/* ---------- booking page ---------- */
.book-body { min-height: 100vh; }
html:not([lang="he"]) .book-body { background: radial-gradient(900px 340px at 50% -120px, #dcebff 0%, rgba(244,247,251,0) 70%), var(--bg); }  /* the Hebrew page has its own world */
.book-top { max-width: 1080px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 32px) 0; display: flex; justify-content: space-between; align-items: center; }
.book-top .brand { color: var(--navy); }
.book-shell { max-width: 1080px; margin: 18px auto 0; padding: 0 clamp(12px, 3vw, 32px) 40px; }
.card {
  display: grid; grid-template-columns: 340px 1fr; background: var(--surface); border-radius: 22px;
  min-height: 620px; overflow: hidden; animation: rise .45s ease both;
}
html:not([lang="he"]) .card { box-shadow: var(--shadow-lg); }  /* the Hebrew card lifts off the night on a neutral shadow */
.card.single { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; min-height: 0; }
.info { padding: 30px 28px; border-right: 1px solid var(--line); position: relative; }
.info .back {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--sky);
  margin-bottom: 18px; background: #fff; cursor: pointer;
}
.info .back:hover { background: var(--sky-2); }
.host-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.host-row img { width: 36px; height: 36px; border-radius: 50%; }
.host-row span { font-weight: 650; color: var(--muted); font-size: 15px; }
.info h1 { font-size: 27px; font-weight: 800; margin: 6px 0 20px; letter-spacing: -.025em; }
.meta-list { display: grid; gap: 13px; margin-bottom: 20px; }
.meta-list div { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.meta-list .icon { color: var(--muted); margin-top: 2px; width: 20px; height: 20px; }
.meta-list .picked { color: var(--ok); }
.meta-list .picked .icon { color: var(--ok); }
.desc { color: var(--ink-2); font-size: 15px; white-space: pre-line; border-top: 1px solid var(--line-2); padding-top: 18px; }
.stripe { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--c, var(--sky)); }

.picker { padding: 30px 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 28px; align-content: start; min-width: 0; }
.picker.with-times { grid-template-columns: minmax(0, 1fr) 230px; }
.picker h2, .form-pane h2 { font-size: 21px; font-weight: 750; margin-bottom: 22px; }
.month-nav { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 14px; }
.month-nav b { min-width: 150px; text-align: center; font-size: 16px; }
.round {
  width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--sky-2); color: var(--sky); display: grid; place-items: center; cursor: pointer;
}
.round:disabled { background: transparent; color: #b8c4d4; cursor: default; }
.round:not(:disabled):hover { background: var(--sky-3); }
.grid7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 4px; text-align: center; }
.grid7 .dow { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-bottom: 8px; }
.day {
  aspect-ratio: 1; max-width: 52px; width: 100%; justify-self: center; border-radius: 50%; border: none; background: transparent;
  font-size: 15.5px; color: #9aa8bb; position: relative; cursor: default; font-weight: 500;
}
.day.avail { background: var(--sky-2); color: var(--sky); font-weight: 750; cursor: pointer; }
.day.avail:hover { background: var(--sky-3); }
.day.sel { background: var(--sky) !important; color: #fff !important; }
.day.today::after { content: ""; position: absolute; bottom: 7px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.tz-row { margin-top: 22px; }
.tz-row label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.tz-select { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tz-select select { border: none; background: transparent; font-size: 15px; padding: 6px 0; max-width: 100%; min-width: 0; flex: 1 1 220px; cursor: pointer; color: var(--ink-2); font-weight: 600; text-overflow: ellipsis; }
.h24 { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; margin-left: auto; }
.h24 button { border: none; background: transparent; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.h24 button.on { background: var(--navy); color: #fff; }
.times { animation: rise .3s ease both; min-width: 0; }
.times h3 { font-size: 15px; font-weight: 650; margin: 58px 0 14px; color: var(--ink-2); }
.times-list { display: grid; gap: 9px; max-height: 470px; overflow-y: auto; padding-right: 4px; }
.slot-row { display: grid; grid-template-columns: 1fr; gap: 8px; transition: grid-template-columns .2s; }
.slot-row.open { grid-template-columns: 1fr 1fr; }
.slot {
  min-height: 50px; border-radius: 10px; border: 1.5px solid var(--sky-3); background: #fff; color: var(--sky); font-weight: 750;
  font-size: 15.5px; cursor: pointer; transition: border-color .15s, background .15s;
}
.slot:hover { border-color: var(--sky); }
.slot-row.open .slot { background: #5d6b80; border-color: #5d6b80; color: #fff; }
.slot-row .next { min-height: 50px; border-radius: 10px; }
.loading-box { display: grid; place-items: center; min-height: 260px; color: var(--muted); gap: 10px; text-align: center; }
.no-times { color: var(--muted); font-size: 14px; padding: 10px 0; }

.form-pane { padding: 30px 32px; max-width: 560px; animation: rise .3s ease both; }
.guest-toggle { border: 1.5px solid var(--sky); color: var(--sky); background: #fff; border-radius: 999px; min-height: 38px; padding: 0 16px; font-weight: 700; cursor: pointer; margin-bottom: 16px; }
.legal { color: var(--muted); font-size: 13px; margin: 6px 0 18px; }

.done { padding: clamp(28px, 5vw, 48px); text-align: center; }
.done .tick {
  width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px;
}
html:not([lang="he"]) .done .tick { animation: pop .5s cubic-bezier(.2,1.6,.4,1) both; }  /* the Hebrew page pops its tick on its own curve */
.done .tick.gray { background: var(--line-2); color: var(--muted); }
.done .tick .icon { width: 30px; height: 30px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.done h1 { font-size: 27px; font-weight: 800; margin-bottom: 8px; }
.done > p { color: var(--muted); margin: 0 auto 22px; max-width: 440px; }
.summary { text-align: left; border: 1px solid var(--line); border-top: 5px solid var(--c, var(--sky)); border-radius: 16px; padding: 22px 24px; max-width: 470px; margin: 0 auto 22px; display: grid; gap: 12px; position: relative; overflow: hidden; }
.summary h3 { font-size: 18px; font-weight: 750; }
.summary .meta-list { margin: 0; }
.summary .meta-list a { word-break: break-all; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.manage-links { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cancel-box { max-width: 470px; margin: 0 auto; text-align: left; }

.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; }
.toast { background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; animation: rise .25s ease both; transition: opacity .4s; }
.toast.bad { background: var(--bad); }
.toast.out { opacity: 0; }

@media (max-width: 900px) {
  .card { grid-template-columns: 1fr; min-height: 0; }
  .info { border-right: none; border-bottom: 1px solid var(--line); padding: 24px 20px 18px; }
  .info h1 { font-size: 23px; margin-bottom: 14px; }
  .desc { display: none; }
  .desc.show { display: block; }
  .picker, .picker.with-times { grid-template-columns: minmax(0, 1fr); padding: 22px 16px; }
  .card { min-width: 0; }
  .times h3 { margin-top: 26px; }
  .times-list { max-height: none; }
  .form-pane { padding: 22px 18px; }
}

/* ---------- Hebrew invite page (task 9337) ----------
   A Bles Inbox invite with lang "he": right to left, Israel time, the system's Hebrew face. The world behind it is
   a night of calendar cells over the greeting that turns into day as the client scrolls down to the calendar; a
   booked meeting is the sunrise. Motion rides CSS scroll and view timelines only, never a scroll handler, and
   every rule here is scoped to the Hebrew page, so the English page renders exactly as before. */
html[lang="he"] body { font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif; font-size: 16px; }
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3 { font-family: inherit; letter-spacing: 0; }
html[lang="he"] .num { unicode-bidi: isolate; direction: ltr; white-space: nowrap; font-variant-numeric: tabular-nums; }
html[lang="he"] .book-top { padding-top: max(22px, env(safe-area-inset-top)); padding-inline: max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-left)); }
html[lang="he"] .book-top .brand { min-height: 44px; }
html[lang="he"]:not(.sunrise) .book-top .brand {  /* a dark chip at night, so the name always sits on its own solid ground */
  color: #fff; padding-inline: 5px 16px; border-radius: 999px; background: #02234f; border: 1px solid rgba(159, 208, 255, .2);
}
html[lang="he"] .book-shell { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }

/* the world */
html[lang="he"] .book-body { background: var(--bg); }  /* the day: the night layer above it fades away as the client scrolls */
.world { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.world-night { position: absolute; inset: 0; background: radial-gradient(1200px 600px at 75% -10%, #123f7a 0%, var(--navy) 55%, #00142f 100%); }
.world-dawn {
  position: absolute; left: -30vw; right: -30vw; top: 74vh; height: 120vh; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(159, 208, 255, .5), rgba(47, 140, 240, .18) 52%, rgba(47, 140, 240, 0) 100%);
  animation: he-breathe 8s ease-in-out infinite alternate;
}
.world-cells {
  position: absolute; inset: 0; transform-origin: 50% 30%; animation: he-cells-breathe 26s ease-in-out infinite alternate;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Crect x='6' y='6' width='34' height='34' rx='8' fill='%239fd0ff' fill-opacity='.06'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 58% 34% at 50% 24%, transparent 30%, #000 100%);
  mask-image: radial-gradient(ellipse 58% 34% at 50% 24%, transparent 30%, #000 100%);
}
.world-cells i { position: absolute; width: 34px; height: 34px; border-radius: 8px; background: rgba(47, 140, 240, .5); opacity: 0; animation: he-land 14s ease-in-out infinite; }
.world-cells i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #fff; }
@keyframes he-breathe { from { opacity: .7; } to { opacity: 1; } }
@keyframes he-cells-breathe { to { transform: scale(1.04); } }
@keyframes he-land { 0%, 62%, 100% { opacity: 0; } 5% { opacity: .95; } 34% { opacity: .18; } }

/* the booked meeting: the sun comes up, once */
html[lang="he"].sunrise .world-night { opacity: 0; animation: he-sunrise 1.8s ease .2s backwards; }
html[lang="he"].sunrise .world-dawn { transform: translateY(-96vh) scale(1.15); animation: he-breathe 8s ease-in-out infinite alternate, he-dawn-up 2.4s cubic-bezier(.2, .7, .2, 1) .1s backwards; }
html[lang="he"].sunrise .world-cells { opacity: .45; }
@keyframes he-sunrise { from { opacity: 1; } }
@keyframes he-dawn-up { from { transform: none; } }

/* the greeting */
.he-hero { max-width: 760px; margin: 0 auto; padding: clamp(18px, 5vh, 56px) clamp(12px, 3vw, 32px) clamp(22px, 5vh, 52px); text-align: center; color: #fff; }
/* the invitation is a dark glass pane over the night: a solid ground (lit edge, gloss band) keeps every word at the
   same contrast while the world behind it turns to day */
.he-hero-in {
  position: relative; overflow: hidden; max-width: 680px; margin: 0 auto; padding: clamp(26px, 5vw, 46px) clamp(20px, 4vw, 44px) clamp(18px, 3vw, 28px);
  border-radius: 28px; background: #02234f; border: 1px solid rgba(159, 208, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 34px 80px -40px rgba(0, 0, 0, .7);
}
.he-hero-in::before {  /* the gloss band, crossing the glass once */
  content: ""; position: absolute; inset: -50% -70%; pointer-events: none;
  background: linear-gradient(105deg, transparent 44%, rgba(255, 255, 255, .11) 50%, transparent 56%);
  transform: translateX(-55%); animation: he-gloss 2.6s cubic-bezier(.16, 1, .3, 1) .5s both;
}
@keyframes he-gloss { to { transform: translateX(55%); } }
.he-hero-in > * { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.he-hero-in > :nth-child(2) { animation-delay: .07s; }
.he-hero-in > :nth-child(3) { animation-delay: .14s; }
.he-hero-in > :nth-child(4) { animation-delay: .21s; }
.he-hero-in > :nth-child(5) { animation-delay: .28s; }
.he-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px; font-size: 14px; font-weight: 650;
  color: var(--ice); background: #12315a; border: 1px solid rgba(255, 255, 255, .14);
}
.he-pill .icon { width: 17px; height: 17px; }
.he-hi { margin: 20px 0 4px; font-size: clamp(19px, 2.6vw, 23px); font-weight: 650; color: var(--ice); }
.he-hero h1 { margin: 10px 0 14px; font-size: clamp(34px, 8vw, 60px); font-weight: 800; line-height: 1.1; text-wrap: balance; }
.he-hi + h1 { margin-top: 2px; }
.he-sub { margin: 0 auto; max-width: 30em; font-size: clamp(16.5px, 2.1vw, 19px); line-height: 1.55; color: #d2d9e4; text-wrap: pretty; }
.he-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-height: 44px; min-width: 44px; margin-top: 26px;
  padding: 6px 14px; border: 0; border-radius: 14px; background: none; color: var(--ice); font-size: 15px; font-weight: 650; cursor: pointer;
}
.he-cue:hover { color: #fff; }
.he-cue:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.he-cue .he-cue-arrow { transform: rotate(90deg); animation: he-bob 2.4s ease-in-out infinite; }
@keyframes he-bob { 50% { translate: 0 5px; } }

/* the card, right to left */
html[lang="he"] { --shadow-lg: 0 2px 4px rgba(0, 0, 0, .08), 0 40px 90px -36px rgba(0, 0, 0, .6); }  /* neutral elevation: a tinted shadow on the night reads as a glow */
html[lang="he"] .card { border-radius: 24px; box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 40px 90px -36px rgba(0, 0, 0, .6); }
html[lang="he"] .info { border-right: 0; border-left: 1px solid var(--line); }
html[lang="he"] .info h1 { font-size: 28px; line-height: 1.2; }
html[lang="he"] .meta-list div { line-height: 1.45; }
html[dir="rtl"] .round .icon, html[dir="rtl"] .info .back .icon { transform: scaleX(-1); }
html[lang="he"] .round, html[lang="he"] .info .back { width: 46px; height: 46px; }  /* 44px+ even while the card is still tilted */
html[lang="he"] .grid7 .dow { letter-spacing: 0; font-size: 13px; }
html[lang="he"] .day { font-variant-numeric: tabular-nums; }
html[lang="he"] .tz-row.il { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
html[lang="he"] .tz-row.il .icon { color: var(--sky); }
@media (min-width: 901px) { html[lang="he"] .picker.with-times { grid-template-columns: minmax(0, 1fr) 236px; } }
html[lang="he"] .times-list { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); padding-right: 0; padding-left: 4px; }
html[lang="he"] .slot-row.open { grid-column: 1 / -1; }
html[lang="he"] .slot { font-variant-numeric: tabular-nums; font-size: 16.5px; }
html[lang="he"] .slot-row .next { font-size: 16px; }
html[lang="he"] .form-pane h2 { margin-bottom: 18px; }
html[lang="he"] .field > span { font-size: 15px; }
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
html[lang="he"] .guest-toggle { min-height: 44px; }
html[lang="he"] .form-pane .btn[type="submit"] { width: 100%; min-height: 52px; font-size: 17px; font-weight: 700; }
html[lang="he"] .legal { font-size: 14px; }

/* the confirmation and the messages: calm, the day and time said in words */
html[lang="he"] .done h1 { font-size: clamp(28px, 6vw, 36px); text-wrap: balance; }
html[lang="he"] .done .tick { width: 72px; height: 72px; position: relative; animation: pop .55s cubic-bezier(.16, 1, .3, 1) both; }
html[lang="he"] .done .tick:not(.gray)::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(22, 163, 74, .35);
  animation: he-ring 1.4s cubic-bezier(.2, .7, .2, 1) .35s both;
}
@keyframes he-ring { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
html[lang="he"] .done .tick:not(.gray) .icon path { stroke-dasharray: 24; animation: he-draw .6s ease .3s backwards; }
@keyframes he-draw { from { stroke-dashoffset: 24; } }
.done > .when-words { margin: 0 auto 8px; max-width: 26em; font-size: clamp(19px, 3.8vw, 23px); font-weight: 700; line-height: 1.45; color: var(--ink); text-wrap: balance; }
html[lang="he"] .done > p:not(.when-words) { font-size: 15.5px; }
html[lang="he"] .summary { text-align: right; border-top: 1px solid var(--line); }
html[lang="he"] .summary h2 { font-size: 18px; font-weight: 750; display: flex; align-items: center; gap: 10px; }
html[lang="he"] .summary h2::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--sky)); }  /* the meeting's colour, as on a calendar */
html[lang="he"] .cancel-box { text-align: right; }
html[lang="he"] .btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
html[lang="he"] .book-shell:has(> .card.message) { min-height: calc(100svh - 150px); display: grid; align-content: center; }
html[lang="he"] .card.message { width: 100%; }
html[lang="he"] .card.message .done > p { max-width: 30em; margin-inline: auto; text-wrap: balance; }

@media (max-width: 900px) {
  html[lang="he"] .info { border-left: 0; }
}
@media (max-width: 420px) {  /* seven 44px days across a 360px phone */
  html[lang="he"] .book-shell { padding-inline: max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right)); }
  html[lang="he"] .picker, html[lang="he"] .picker.with-times { padding-inline: 10px; }
  html[lang="he"] .grid7 { column-gap: 2px; }
  html[lang="he"] .info { padding-inline: 18px; }
  html[lang="he"] .form-pane { padding-inline: 16px; }
}

/* scrolling turns the night into day, the greeting steps back and the card settles flat from its tilt */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    html[lang="he"]:not(.sunrise) .world-night { animation: he-fade linear both; animation-timeline: scroll(root); animation-range: 0 min(100%, 85vh); }
    html[lang="he"]:not(.sunrise) .world-dawn {
      animation: he-breathe 8s ease-in-out infinite alternate, he-dawn linear both;
      animation-timeline: auto, scroll(root); animation-range: normal, 0 min(100%, 110vh);
    }
    html[lang="he"]:not(.sunrise) .world-cells {
      animation: he-cells-breathe 26s ease-in-out infinite alternate, he-cells-day linear both;
      animation-timeline: auto, scroll(root); animation-range: normal, 0 min(100%, 85vh);
    }
    html[lang="he"] .he-hero-in { animation: he-hero-away linear both; animation-timeline: scroll(root); animation-range: 0 min(100%, 60vh); }
    html[lang="he"] .book-shell {
      transform-origin: 50% 0; animation: he-depth linear both; animation-timeline: view(); animation-range: entry 0% entry 80%;
    }
  }
}
@keyframes he-fade { to { opacity: 0; } }
@keyframes he-dawn { to { transform: translateY(-96vh) scale(1.15); } }
@keyframes he-cells-day { to { opacity: .45; } }
@keyframes he-hero-away { to { transform: translateY(12vh) scale(.94); } }  /* steps back under the card, its glass stays whole: half a dark glass over daylight reads as a grey slab */
@keyframes he-depth { from { transform: perspective(1600px) rotateX(15deg) translateY(28px) scale(.95); } to { transform: none; } }
