/* =====================================================================
   Essence Integration - styles
   Plain CSS, mobile-first, no build step.

   House style (Essence Institute guidelines):
     - purple gradient #38079F -> #9710D8, pure #38079F for text and fine lines
     - Gotham Rounded (Book) / Gotham (Bold)
     - soft translucent circles, rounded shapes
   Taken from essence.nl: raspberry pill buttons, small uppercase navigation
   with wide letter-spacing, lots of white space.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Fonts. Gotham is a licensed font, so it is not bundled. If Essence has a
   web licence: put the files in /assets/fonts/ and remove the comment
   marks below. Until then the stack falls back to the best available
   rounded sans-serif on each device (SF Rounded, Avenir Next, Segoe UI ...).
   --------------------------------------------------------------------- */
/*
@font-face { font-family: "Gotham Rounded"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/GothamRounded-Book.woff2") format("woff2"); }
@font-face { font-family: "Gotham Rounded"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/GothamRounded-Bold.woff2") format("woff2"); }
*/

/* Nunito (SIL Open Font License, see /assets/fonts/OFL.txt): a friendly rounded sans-serif that looks the same on every device.
   One variable font file per script subset; the browser downloads only what the page needs. */
@font-face { font-family: "Nunito"; font-weight: 200 1000; font-style: normal; font-display: swap;
  src: url("../fonts/Nunito-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-weight: 200 1000; font-style: normal; font-display: swap;
  src: url("../fonts/Nunito-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 1. Design tokens --------------------------------------------------- */
:root {
  --purple-900: #38079f;
  --purple-700: #5a0eb0;
  --purple-500: #9710d8;
  --purple-100: #efe7fb;
  --purple-50: #f7f3fd;

  --raspberry: #c8416b;          /* the raspberry of essence.nl, a touch deeper for readable white text */
  --raspberry-dark: #ad3159;

  --ink: #25163f;                /* headings */
  --text: #4a4857;               /* body text */
  --muted: #6b6975;              /* secondary text */
  --bg: #faf7f5;                 /* warm paper */
  --surface: #ffffff;
  --line: #e8e1f0;

  --gradient: linear-gradient(165deg, #38079f 0%, #5a0eb0 52%, #9710d8 130%);

  --radius: 22px;
  --radius-lg: 30px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(56, 7, 159, .05), 0 6px 18px -8px rgba(56, 7, 159, .16);
  --shadow-md: 0 2px 4px rgba(56, 7, 159, .05), 0 22px 48px -22px rgba(56, 7, 159, .34);

  /* Running text: a readable rounded sans-serif that exists on the visitor's device.
     Once the licensed Gotham web fonts are added (see the top of this file), put
     "Gotham Rounded" at the start of this list as well. */
  --font-body: "Nunito", ui-rounded, "SF Pro Rounded", "Avenir Next", "Segoe UI", system-ui, -apple-system,
               "Helvetica Neue", Arial, sans-serif;
  /* Headings, buttons, navigation, labels: the brand font when it is available. */
  --font-display: "Nunito", "Gotham Rounded", "Gotham", ui-rounded, "SF Pro Rounded", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --bottom-nav-h: 68px;
  --nav-ink: #4b4a55;            /* menu text: a little darker than --muted for comfortable reading */
  --header-h: 68px;
}

/* 2. Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

/* scrollbar-gutter: the room for a scroll bar is always kept, so the centred header and menu do not shift sideways
   between short pages (no scroll bar) and long ones. No effect where scroll bars float over the page (phones, most Macs). */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
}
body.layout-auth { padding-bottom: 0; }

img, svg { display: block; max-width: 100%; }

a { color: var(--purple-900); text-underline-offset: .22em; text-decoration-thickness: .08em; }
a:hover { color: var(--purple-500); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.01em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.1rem); font-weight: 300; letter-spacing: -.015em; }
h2 { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.8rem); font-weight: 500; letter-spacing: -.005em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
strong { font-weight: 700; color: var(--ink); }

:focus-visible { outline: 3px solid var(--purple-500); outline-offset: 3px; border-radius: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .7rem 1.1rem; background: var(--purple-900); color: #fff; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* UI chrome (labels, buttons, navigation, badges) uses the brand font. */
.brand, .btn, .nav-link, .chip, .eyebrow, .filter, .tab, .skip-link, .field > label, .label, legend,
.table th, .stat__label, .stat__value, .month-heading, .activity__date, .activity__title, .next-pill strong,
.empty__title, .past-list__date, .more-link a, .activity__more summary {
  font-family: var(--font-display);
}

/* 3. Layout ---------------------------------------------------------- */
.container { width: min(100% - 2rem, 1100px); margin-inline: auto; }
.container--narrow { width: min(100% - 2rem, 680px); }
/* As an installed app on a phone held sideways, keep the content clear of the camera notch. */
@supports (width: max(1px, env(safe-area-inset-left))) {
  .container { width: min(100% - 2rem - 2 * max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)), 1100px); }
  .container--narrow { width: min(100% - 2rem - 2 * max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)), 680px); }
}
.main { flex: 1; }
.content { padding-block: 2rem 3rem; }
.stack > * + * { margin-top: 1.1rem; }
.stack > h2 + * { margin-top: .4rem; }
.section-gap { margin-top: 2.5rem; }

/* 4. Header and navigation ------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--purple-900); }
.brand:hover { color: var(--purple-900); }
.brand__mark { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; font-size: 1.08rem; }
.brand__light { font-weight: 300; letter-spacing: .01em; }
.brand__bold { font-weight: 700; letter-spacing: .005em; }

/* The profile menu (photo or initial: Account, Contact, Admin, Log out) shows in the header on every screen. */
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-actions form { margin: 0; }

/* Phone: the navigation is a bar at the bottom, easy to reach with a thumb. */
.main-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: space-around; gap: .15rem;
  padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgba(56, 7, 159, .35);
}
.nav-link {
  flex: 1; min-width: 0; min-height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  padding: .35rem .2rem; border-radius: 16px;
  font-size: .75rem; font-weight: 700; letter-spacing: 0; line-height: 1.1; text-align: center;
  color: var(--nav-ink); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-link .icon { width: 25px; height: 25px; }
.nav-link__short { display: inline; }
.nav-link__long { display: none; }
.nav-link:hover { color: var(--purple-900); }
.nav-link.is-active { color: var(--purple-900); background: var(--purple-50); }
.nav-link.is-active .icon { color: var(--raspberry); }

@media (min-width: 880px) {
  body { padding-bottom: 0; }
  .site-header__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; }
  .header-actions { display: flex; }

  .main-nav {
    position: static; z-index: auto; justify-content: center; gap: .2rem;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav-link {
    flex: none; min-height: 0; flex-direction: row; gap: .4rem;
    padding: .5rem 1rem; border-radius: 999px;
    font-size: .97rem; font-weight: 700; letter-spacing: 0; text-transform: none;
  }
  .nav-link .icon { display: none; }
  .nav-link:hover { color: var(--purple-900); background: rgba(56, 7, 159, .06); }
  .nav-link.is-active, .nav-link.is-active:hover { background: var(--purple-50); color: var(--purple-900); }
  .nav-link--mobile-only { display: none; }
  .nav-link__short { display: none; }
  .nav-link__long { display: inline; }
  .nav-link--home { padding-inline: .7rem; }                                  /* Home is a house on a computer, without the word */
  .nav-link--home .icon { display: block; width: 23px; height: 23px; }
  .nav-link--home > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}

/* The administrator area (templates/admin-shell.php). On a computer: a sidebar with the pages in groups, the search box
   above them and the administrator's own menu below them. On a phone or tablet: a slim bar on top and five tabs at the
   bottom; the fifth, More, opens a sheet with every other page. */
.layout-admin { --header-h: 56px; --admin-side-w: 15.5rem; }
.admin-bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h); padding: 0 max(.5rem, env(safe-area-inset-right, 0px)) 0 max(1rem, env(safe-area-inset-left, 0px));
  background: var(--purple-900);
}
.admin-bar .brand, .admin-bar .brand:hover { color: #fff; }
.admin-bar .brand__mark { width: 34px; height: 34px; }
.admin-bar__link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; color: #fff; }
.admin-bar__link:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.admin-bar__link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.admin-bar__link .icon { width: 22px; height: 22px; }
.admin-side { display: none; }

.admin-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: space-around; gap: .15rem;
  padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgba(56, 7, 159, .35);
}
.admin-tab {
  flex: 1; min-width: 0; min-height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  padding: .35rem .2rem; border-radius: 16px;
  font-family: var(--font-display); font-size: .7rem; font-weight: 700; line-height: 1.1; text-align: center;      /* "Participants" fits a fifth of a small phone */
  color: var(--nav-ink); text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.admin-tab .icon { width: 25px; height: 25px; }
.admin-tab { position: relative; }
.admin-tab .admin-menu__count { position: absolute; top: .35rem; left: calc(50% + .4rem); margin: 0; min-width: 1.15rem; padding: 0 .3rem; line-height: 1.15rem; font-size: .68rem; background: var(--raspberry); color: #fff; }   /* the open conversations on the Inbox tab */
.admin-tab:hover { color: var(--purple-900); }
.admin-tab.is-active { color: var(--purple-900); background: var(--purple-50); }
.admin-tab.is-active .icon { color: var(--raspberry); }
.admin-more { flex: 1; min-width: 0; }
.admin-more > summary { width: 100%; list-style: none; }
.admin-more > summary::-webkit-details-marker { display: none; }
.admin-more[open] > summary { color: var(--purple-900); background: var(--purple-50); }
/* The sheet of More: above the tabs, with a soft veil over the page behind it. */
.admin-more[open]::before {
  content: ""; position: fixed; inset: 0 0 calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)) 0;
  background: rgba(37, 22, 63, .3);
}
.admin-more__panel {
  position: fixed; left: .5rem; right: .5rem; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + .5rem);
  max-height: calc(100vh - var(--bottom-nav-h) - 5rem); max-height: calc(100dvh - var(--bottom-nav-h) - 5rem); overflow-y: auto;
  padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md);
  text-align: left;
}
.admin-more__panel form { margin: 0; }
.admin-more__panel .admin-menu__label { margin-top: .3rem; }

.admin-menu__label { margin: .7rem 0 .1rem; padding: 0 .8rem; font-family: var(--font-display); font-size: .8rem; font-weight: 700; color: var(--muted); }
.admin-menu__link {
  display: flex; align-items: center; gap: .65rem; min-height: 34px; padding: .3rem .8rem; border-radius: 12px;
  font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: var(--nav-ink); text-decoration: none;
}
.admin-menu__link .icon { width: 20px; height: 20px; flex: none; color: var(--purple-700); }
.admin-menu__link:hover { background: rgba(56, 7, 159, .06); color: var(--purple-900); }
.admin-menu__link.is-active, .admin-menu__link.is-active:hover { background: var(--purple-50); color: var(--purple-900); font-weight: 700; }
.admin-menu__link.is-active .icon { color: var(--raspberry); }
/* The number beside a page (open requests, payments to look at): a quiet pill at the right. */
.admin-menu__count { margin-left: auto; min-width: 1.5rem; padding: 0 .45rem; border-radius: 999px; background: var(--purple-50); color: var(--purple-900); font-size: .78rem; font-weight: 700; line-height: 1.5rem; text-align: center; }
.admin-menu__link.is-active .admin-menu__count { background: #fff; }
/* A folded group (Set-up): only its label until it is opened; the arrow turns down when it is open. */
.admin-menu__fold > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-height: 30px; border-radius: 10px; cursor: pointer; }
.admin-menu__fold > summary::-webkit-details-marker { display: none; }
.admin-menu__fold > summary:hover { color: var(--purple-900); background: rgba(56, 7, 159, .06); }
.admin-menu__fold > summary:focus-visible { outline: 2px solid var(--purple-500); outline-offset: 1px; }
.admin-menu__fold > summary .admin-menu__chevron { width: 14px; height: 14px; flex: none; margin-left: auto; color: var(--muted); transition: transform .15s ease; }
.admin-menu__fold[open] > summary .admin-menu__chevron { transform: rotate(90deg); margin-left: auto; }
.admin-menu__count--fold { margin-left: auto; }
.admin-menu__count--fold + .admin-menu__chevron { margin-left: .45rem; }
.admin-menu__fold[open] > summary .admin-menu__count--fold { display: none; }   /* open: the numbers stand beside the pages themselves */
/* The head of a group: the same size, weight and colour as the pages above it (Dashboard, Inbox), with its own icon, so the menu
   reads as one even column. The pages of an open group stand indented under the name, without icons, along a thin line. */
.admin-menu__group { justify-content: flex-start; gap: .65rem; min-height: 34px; margin: 0; padding: .3rem .8rem; border-radius: 12px;
  font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: var(--nav-ink); }
.admin-menu__group .admin-menu__group-icon { width: 20px; height: 20px; flex: none; color: var(--purple-700); }
.admin-menu__fold:has(.is-active) > .admin-menu__group { color: var(--purple-900); }
.admin-menu__fold:has(.is-active) > .admin-menu__group .admin-menu__group-icon { color: var(--raspberry); }
.admin-side .admin-menu__fold:first-of-type { margin-top: .55rem; }
.admin-side .admin-menu__fold-items { margin: .1rem 0 .4rem 1.45rem; padding-left: .5rem; border-left: 1.5px solid var(--line); gap: 0; }
.admin-side .admin-menu__fold-items .admin-menu__link { min-height: 31px; padding: .22rem .7rem; font-size: .92rem; font-weight: 500; }
.admin-side .admin-menu__fold-items .admin-menu__link .icon { display: none; }
.admin-side .admin-menu__fold-items .admin-menu__link.is-active { font-weight: 700; }
.admin-menu__fold-items { display: flex; flex-direction: column; gap: .1rem; }
.admin-search { position: relative; margin: 0; }
.admin-search .icon { position: absolute; left: .8rem; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.admin-search__input { width: 100%; height: 2.5rem; padding: 0 .8rem 0 2.3rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; font-size: .92rem; }
.admin-search__input::placeholder { color: var(--muted); }
.admin-search__input:focus { outline: none; border-color: var(--purple-500); background: #fff; box-shadow: 0 0 0 4px rgba(151, 16, 216, .16); }
.admin-account { position: relative; padding-top: .55rem; border-top: 1px solid var(--line); }
.admin-account > summary { list-style: none; display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: 12px; font-family: var(--font-display); font-weight: 600; color: var(--nav-ink); cursor: pointer; }
.admin-account > summary::-webkit-details-marker { display: none; }
.admin-account > summary:hover, .admin-account[open] > summary { background: var(--purple-50); color: var(--purple-900); }
.admin-account .avatar { width: 32px; height: 32px; font-size: .9rem; }
.admin-account__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-account__caret { width: 1rem; height: 1rem; transform: rotate(180deg); transition: transform .15s ease; }
.admin-account[open] .admin-account__caret { transform: none; }
.admin-account__panel { position: absolute; left: 0; right: 0; bottom: calc(100% + .4rem); z-index: 50; padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.admin-account__panel form { margin: 0; }

/* Between a phone and a wide screen (a tablet upright, a narrow window) the tabs stay, in the middle of the bar: next to a
   sidebar the tables would have too little room. */
@media (min-width: 700px) {
  .admin-tabs { justify-content: center; }
  .admin-tab, .admin-more { flex: 0 1 7.5rem; }
  .admin-tab { font-size: .78rem; }
  .admin-more__panel { left: auto; right: calc(50% - 19rem); width: 22rem; }
}
@media (min-width: 880px) and (max-width: 1179px) {
  body.layout-admin { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 1180px) {
  .layout-admin { --header-h: 0px; }
  .admin-bar, .admin-tabs { display: none; }
  .admin-side {
    position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--admin-side-w);
    display: flex; flex-direction: column; gap: .8rem; padding: 1.1rem .75rem .7rem;
    background: #fff; border-right: 1px solid var(--line);
  }
  .admin-side .brand { padding: 0 .5rem .2rem; }
  /* The pages scroll when the window is low; the logo, the search box and the account menu stay where they are. */
  .admin-menu { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .1rem; margin-inline: -.35rem; padding-inline: .35rem; overflow-y: auto; scrollbar-width: thin; }
  .admin-menu > :first-child { margin-top: 0; }
  .layout-admin .main, .layout-admin .site-footer { margin-left: var(--admin-side-w); }
  .layout-admin .flash-area { left: var(--admin-side-w); }
}

/* A button that opens a short menu (the dashboard's New, at the right of the page head): the choices appear under it, in line with its right edge. */
.menu-button { position: relative; }
.menu-button > summary { list-style: none; }
.menu-button > summary::-webkit-details-marker { display: none; }
.menu-button__panel { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 20; min-width: 14rem; max-width: calc(100vw - 2rem); padding: .4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }

/* Profile menu (desktop): photo or initial, with Account, Contact, Admin and Log out */
.profile-menu { position: relative; }
.profile-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .35rem; padding: .2rem .5rem .2rem .2rem; border-radius: 999px; color: var(--muted); }
.profile-menu > summary::-webkit-details-marker { display: none; }
.profile-menu > summary:hover, .profile-menu[open] > summary, .profile-menu > summary.is-active { background: var(--purple-50); color: var(--purple-900); }
.profile-menu .avatar { width: 38px; height: 38px; font-size: 1rem; }
.profile-menu__caret { width: 1rem; height: 1rem; transition: transform .15s ease; }
.profile-menu[open] .profile-menu__caret { transform: rotate(180deg); }
.profile-menu__panel { position: absolute; right: 0; top: calc(100% + .55rem); z-index: 50; min-width: 250px; max-height: calc(100vh - 5.5rem); max-height: calc(100dvh - 5.5rem); overflow-y: auto; overscroll-behavior: contain; padding: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(56, 7, 159, .4); }
.profile-menu__group + .profile-menu__group { margin-top: .3rem; padding-top: .3rem; border-top: 1px solid var(--line); }
.profile-menu__who { padding: .6rem .8rem .7rem; margin-bottom: .3rem; border-bottom: 1px solid var(--line); }
.profile-menu__who strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.profile-menu__who span { display: block; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.profile-menu__link { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .8rem; border: 0; border-radius: 12px; background: none; color: var(--nav-ink); font: inherit; font-family: var(--font-display); font-size: .95rem; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.profile-menu__link:hover, .profile-menu__link.is-active { background: var(--purple-50); color: var(--purple-900); }
.profile-menu__link .icon { width: 1.2rem; height: 1.2rem; color: var(--purple-700); }
.profile-menu__link--quiet, .profile-menu__link--quiet .icon { color: var(--muted); }
.profile-menu__link--quiet:hover .icon { color: var(--purple-900); }
.profile-menu__panel form { margin: 0; border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .3rem; }

/* 5. Hero (the gradient band with soft circles) ---------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff; background: var(--gradient);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../images/bokeh.svg") right -3rem center / auto 150% no-repeat;
  opacity: .9;
}
.hero__inner { padding-block: clamp(2rem, 6vw, 4rem) clamp(2.4rem, 6vw, 3.8rem); }
.hero h1 { color: #fff; margin-bottom: .35em; max-width: 18ch; }
.hero__lead { max-width: 46ch; margin-bottom: 1.2rem; font-size: 1.12rem; color: rgba(255, 255, 255, .88); }
/* Every page except Home starts with a plain large title on the page itself: no band, nothing above the content but what
   it needs. A line above the title (the eyebrow) is only there when it says something: a retreat, a date, a conversation.
   Home keeps the band, for its greeting. */
.hero--compact { color: var(--ink); background: none; border-radius: 0; overflow: visible; isolation: auto; }
.hero--compact::before { display: none; }
.hero--compact .hero__inner { padding-block: 2.2rem 0; }
.hero--compact h1 { color: var(--ink); margin-bottom: .2em; max-width: none; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); font-weight: 400; }
.hero--compact .eyebrow { color: var(--purple-500); margin-bottom: .45rem; }
.hero--compact .hero__lead { margin-bottom: 0; max-width: 60ch; color: var(--muted); font-size: 1.05rem; }
.hero.hero--compact .help-link { color: var(--purple-700); margin: 0 0 .3rem; }
.hero.hero--compact .help-link:hover { color: var(--purple-900); }
.hero--compact .next-pill { background: var(--purple-50); border-color: var(--purple-100); color: var(--purple-900); }
.hero--compact .next-pill strong { color: var(--purple-900); }
.hero--compact .next-pill:hover { background: var(--purple-100); color: var(--purple-900); }
/* The title lines up with what comes below it: on a narrow page it is narrow too. */
.hero--compact:has(+ .container--narrow) .hero__inner { width: min(100% - 2rem, 680px); }
@supports (width: max(1px, env(safe-area-inset-left))) {
  .hero--compact:has(+ .container--narrow) .hero__inner { width: min(100% - 2rem - 2 * max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)), 680px); }
}
.hero--compact + .content { padding-top: 1.5rem; }
@media (max-width: 879px) {
  .hero--compact .hero__inner { padding-top: 1.2rem; }
  .hero--compact .eyebrow { margin-bottom: .3rem; font-size: .68rem; }
  .hero--compact h1 { margin-bottom: .1em; font-size: 2rem; }
  .hero--compact .hero__lead { font-size: .95rem; line-height: 1.45; }
  .hero--compact + .content { padding-top: 1.1rem; }
}

.eyebrow {
  margin: 0 0 .7rem; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.eyebrow--dark { color: var(--purple-500); }

.next-pill {
  display: inline-flex; align-items: center; gap: .65rem; max-width: 100%;
  padding: .7rem 1.15rem; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; text-decoration: none; font-size: .96rem; line-height: 1.35;
}
.next-pill strong { color: #fff; }
.next-pill:hover { background: rgba(255, 255, 255, .22); color: #fff; }

/* 6. Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .7rem 1.6rem;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .06s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--raspberry); color: #fff; }
.btn--primary:hover { background: var(--raspberry-dark); color: #fff; }
.btn--outline { background: transparent; border-color: var(--purple-900); color: var(--purple-900); }
.btn--outline:hover { background: var(--purple-900); color: #fff; }
.btn--quiet { background: var(--purple-50); color: var(--purple-900); }
.btn--quiet:hover { background: var(--purple-100); color: var(--purple-900); }
.btn--danger { background: transparent; border-color: var(--raspberry); color: var(--raspberry-dark); }
.btn--danger:hover { background: var(--raspberry); color: #fff; }
.btn--ghost { background: transparent; color: var(--purple-900); }
.btn--ghost:hover { background: var(--purple-50); color: var(--purple-900); }
.btn--light { background: #fff; color: var(--purple-900); }
.btn--light:hover { background: var(--purple-100); color: var(--purple-900); }
.btn--sm { min-height: 40px; padding: .4rem 1.1rem; font-size: .92rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn .icon { width: 1.2em; height: 1.2em; }

/* 7. Cards, chips ---------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid rgba(56, 7, 159, .06);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.35rem;
}
.card + .card { margin-top: 1.25rem; }
@media (min-width: 640px) { .card { padding: 1.9rem; } }

.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .75rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em; line-height: 1.5; white-space: nowrap;
  background: var(--tone-bg, var(--purple-100)); color: var(--tone-ink, var(--purple-900));
}
.chip .icon { width: 1em; height: 1em; stroke-width: 2.4; }
.chip--outline { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.chip--muted { background: #eeecf1; color: #54525d; }
.chip--ok { background: #e3f3ec; color: #1f6b4f; }
.chip--warn { background: #fdf0d9; color: #8a4b00; }
.chip--registered { background: var(--purple-900); color: #fff; }
/* The status of a booking, in the colours of Bookinglayer that the team knows (retreatBookingChip(), shadowBlChip()): a square
   label with a hairline of its own tone. Request yellow, accepted blue (Confirmed orange), deposit lilac, paid green, expired red,
   cancelled grey, rejected rose. */
.chip--status { justify-content: center; min-width: 6.4rem; padding: .12rem .6rem; border-radius: 6px; font-weight: 600; letter-spacing: 0; box-shadow: inset 0 0 0 1px var(--st-line, transparent); }
.chip--st-request { background: #fbe694; color: #5e4b00; --st-line: #dcc776; }
.chip--st-accepted { background: #c4e7ff; color: #005289; --st-line: #a3ceeb; }
.chip--st-confirmed { background: #ffce91; color: #643300; --st-line: #d3a774; }
.chip--st-deposit { background: #e9c6f7; color: #58007c; --st-line: #d2a6e3; }
.chip--st-paid { background: #a7e7c2; color: #24583a; --st-line: #8ecca7; }
.chip--st-expired { background: #ffa7a7; color: #810011; --st-line: #dd7a7e; }
.chip--st-cancelled { background: #e6e4ea; color: #4a4850; --st-line: #c9c6cf; }
.chip--st-rejected { background: #fde6ee; color: #9c2a52; --st-line: #f1bfd0; }
/* Admin, Bookings: the list in the way of Bookinglayer. A column title sorts (the arrow turns for ascending), what is still due
   is in red, the statuses and the export sit on one row under the search. */
.bookings-toolbar { margin-bottom: .6rem; }
.bookings-toolbar .bookings-retreat { width: auto; max-width: 16rem; }
.bookings-filters { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.bookings-filters .filters { margin-bottom: 0; }
.bookings-export { flex: none; }
.th-sort { display: inline-flex; align-items: center; gap: .25rem; color: inherit; text-decoration: none; }
.th-sort .icon { width: .9em; height: .9em; opacity: 0; transition: transform .15s ease; }
.th-sort:hover .icon, .th-sort.is-on .icon { opacity: 1; }
.th-sort--asc .icon { transform: rotate(180deg); }
.th-sort:hover, .th-sort.is-on { color: var(--purple-900); }
.table th.num .th-sort { flex-direction: row-reverse; }
.due-open { color: #b4232f; font-weight: 700; }
.bookings-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .75rem; }
.bookings-foot .per-page { margin: 0; }
/* The page of a booking (decision 62): a head with the number, status, retreat, booker, money and ticks; the parts in tabs; what
   you can do in a column at the right on a computer (above the parts on a phone and tablet). */
.booking-head { display: grid; gap: 1rem; }
.booking-head__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .75rem 2rem; }
.booking-head__ref { margin: 0; display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.booking-head__sub { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.booking-head__when { text-align: right; }
.booking-head__when .sub, .booking-head__who .sub { display: block; color: var(--muted); font-size: .88rem; margin-top: .1rem; }
.booking-head__label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.booking-head__money { display: flex; gap: 1.75rem; margin: 0; }
.booking-head__money div { text-align: right; }
.booking-head__money dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.booking-head__money dd { margin: .1rem 0 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.booking-head__money dd.due-open { color: #b4232f; }
.check-chips { list-style: none; margin: 0; padding: .9rem 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .45rem; }
.check-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .65rem; border-radius: 6px; font-size: .82rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); background: #fff; color: var(--ink); }
.check-chip .icon { width: 1em; height: 1em; stroke-width: 2.6; }
.check-chip--ok .icon { color: #1f8a4c; }
.check-chip--todo .icon { color: #b07800; }
.check-chip--bad { box-shadow: inset 0 0 0 1px #f0b8bd; }
.check-chip--bad .icon { color: #b4232f; }
/* A suggestion for a payment without a booking number (decision 63): a quiet box with what and why, and one button. The line at
   the left says how sure it is: green almost certainly, purple probably, grey possibly. */
.bank-suggest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .75rem; margin: .5rem 0 0; padding: .55rem .75rem; background: var(--purple-50); border-left: 3px solid var(--line); border-radius: 0; text-align: left; }
.bank-suggest--sure { border-left-color: #1f8a4c; }
.bank-suggest--likely { border-left-color: var(--purple-500); }
.bank-suggest__text { margin: 0; font-size: .9rem; }
.bank-suggest__text .sub { display: block; color: var(--muted); font-size: .84rem; }
.bank-suggest__do { display: flex; align-items: center; gap: .6rem; }
.bank-suggest__do .choice { font-size: .84rem; }
.booking-layout { display: grid; gap: 1rem; margin-top: 1.25rem; }
.booking-aside { display: flex; flex-wrap: wrap; gap: .5rem; }
.booking-aside__danger { color: #b4232f; }
.booking-tabs .tabbed__panel > .card:first-child { margin-top: 0; }
.booking-note { display: grid; gap: .35rem; }
.booking-note__text { margin: 0; white-space: normal; }
.booking-note__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; font-size: .86rem; }
.booking-note__meta form { margin: 0; }
@media (max-width: 640px) {
  .booking-head__when { text-align: left; }
  .booking-head__money { gap: 1.25rem; }
  .booking-head__money div { text-align: left; }
}
@media (min-width: 1180px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr) 14.5rem; align-items: start; gap: 1.5rem; }
  .booking-aside { grid-column: 2; grid-row: 1; position: sticky; top: 1.5rem; flex-direction: column; flex-wrap: nowrap; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
  .booking-aside .btn { justify-content: center; width: 100%; }
  .booking-main { grid-column: 1; grid-row: 1; min-width: 0; }
}
/* System check (admin) */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: grid; grid-template-columns: 5.5rem 1fr; gap: .75rem; padding: .75rem 0; border-top: 1px solid var(--line); align-items: start; }
.check-list li:first-child { border-top: 0; }
.check-list p { margin: 0; }
.check__label { font-weight: 600; }
.check__detail, .check__fix { margin-top: .2rem !important; color: var(--muted); font-size: .92rem; }
.check-list .check__links { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .92rem; }
.check-list .check__links li { display: list-item; padding: .1rem 0; border: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .check-list li { grid-template-columns: 1fr; gap: .35rem; } }

.chip--waiting { background: #fdf0d9; color: #8a4b00; }   /* waiting for a place: the same warm tone as 'draft' */
.chip--draft { background: #fdf0d9; color: #8a4b00; }
.chip--active { background: #e3f3ec; color: #1f6b4f; }
.chip--cancelled { background: #fde6ee; color: #9c2a52; }
.chip--completed { background: #eeecf1; color: #54525d; }
.chip--inactive { background: #eeecf1; color: #54525d; }
.chip--admin { background: var(--purple-100); color: var(--purple-900); }

.tone-lilac { --tone-bg: #efe7fb; --tone-ink: #38079f; }
.tone-rose  { --tone-bg: #fde6ee; --tone-ink: #9c2a52; }
.tone-sage  { --tone-bg: #e3f3ec; --tone-ink: #1f6b4f; }
.tone-sand  { --tone-bg: #f6ecdc; --tone-ink: #7a5314; }
.tone-sky   { --tone-bg: #e2f0fb; --tone-ink: #1d5a8a; }

/* 8. Activities ------------------------------------------------------ */
.activity-list { display: grid; gap: 1.1rem; }
.month-heading { margin: 2.2rem 0 1rem; font-size: 1.05rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--purple-900); }
.month-heading:first-of-type { margin-top: 1rem; }

.activity {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem .8rem; align-content: start;
  padding: .9rem 1rem; scroll-margin-top: calc(var(--header-h) + 1rem);
  background: var(--surface); border: 1px solid rgba(56, 7, 159, .06);
  border-radius: 20px; box-shadow: var(--shadow-sm);
}
.activity--mine { border-color: rgba(56, 7, 159, .3); box-shadow: 0 0 0 1px rgba(56, 7, 159, .08), var(--shadow-sm); }
.activity__date {
  align-self: start; width: 50px; padding: .45rem 0 .5rem; text-align: center; line-height: 1;
  border-radius: 14px; background: var(--tone-bg); color: var(--tone-ink);
}
.activity__date .wd, .activity__date .m { display: block; font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.activity__date .d { display: block; margin: .16rem 0 .12rem; font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; }
.activity__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.activity__title { margin: 0 0 .1rem; font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
.activity__when { margin: 0; color: var(--text); font-size: .95rem; line-height: 1.45; }
.activity__duration { color: var(--muted); }
/* The session card (templates/activity-card.php): type, teacher and place on one quiet line; chips only when there is something to say. */
.activity__where { margin: .05rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.activity__where a { color: inherit; text-decoration-color: var(--purple-100); text-underline-offset: 3px; }
.activity__where a:hover { color: var(--purple-900); text-decoration-color: currentColor; }
.activity__teacher { white-space: nowrap; }
.activity__face { display: inline-block; width: 20px; height: 20px; margin: -.2rem .3rem -.2rem 0; vertical-align: middle; border-radius: 50%; object-fit: cover; }
.activity__where + .activity__tags { margin: .45rem 0 0; }
.activity__tags:empty { display: none; }
.chip--soon { background: var(--raspberry); color: #fff; }
.activity__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: .4rem .7rem; }
.activity__foot .activity__more { flex: 1 1 9rem; min-width: 0; margin: 0; }
.activity__foot .activity__more summary { padding: .65rem 0; font-size: .9rem; }      /* tall enough for a thumb */
.activity__foot .activity__more p { margin: 0 0 .5rem; }
.activity__foot:has(.activity__more[open]) .activity__more { flex-basis: 100%; }      /* the text gets the full width, the button moves below it */
.activity__foot .activity__actions { grid-column: auto; display: flex; align-items: center; margin-left: auto; }
.activity__foot .activity__actions:empty { display: none; }
.activity__foot .activity__actions .btn { min-height: 44px; }
.activity__notice { flex: 1 0 100%; margin: 0; }
.activity__links { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; margin-top: -.2rem; }
.activity__links form { margin: 0 0 0 auto; }
.activity__link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-size: .9rem; font-weight: 600; color: var(--purple-900); text-underline-offset: 3px; }
.activity__link .icon { width: 18px; height: 18px; }
.activity__actions { grid-column: 1 / -1; display: grid; gap: .6rem; }
.activity__actions form { margin: 0; }
.link-button { padding: .35rem .5rem; border: 0; background: none; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--purple-900); }
.activity__cancel { display: block; margin: 0 auto; font-size: .92rem; }
.activity__links .activity__cancel { margin: 0; min-height: 44px; padding-inline: 0; font-size: .9rem; }
.meta__scarce span { font-weight: 600; color: var(--purple-900); }
.activity__actions:empty { display: none; }

.meta { list-style: none; margin: .85rem 0 0; padding: 0; display: grid; gap: .45rem; font-size: .96rem; }
.meta li { display: flex; align-items: flex-start; gap: .6rem; }
.meta .icon { width: 20px; height: 20px; margin-top: .12rem; color: var(--purple-500); }
.meta li.meta__teacher { align-items: center; }
.meta__photo { flex: none; width: 32px; height: 32px; margin: -.3rem 0 -.3rem -.3rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--purple-100); }
.meta__teacher a { color: inherit; text-decoration-color: var(--purple-100); text-underline-offset: 3px; }
.meta__teacher a:hover { color: var(--purple-900); text-decoration-color: currentColor; }

.activity__more { margin-top: .85rem; }
.activity__more summary {
  display: inline-block; cursor: pointer; color: var(--purple-900); font-weight: 600; font-size: .94rem;
  text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: .06em;
}
.activity__more p { margin: .6rem 0 0; font-size: .96rem; }

.notice { margin: 0; padding: .8rem 1rem; border-radius: var(--radius-sm); background: #f3f1f6; color: #54525d; font-size: .94rem; }

.more-link { margin-top: 1.25rem; }
.more-link a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.timezone-note { margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }
.timezone-note--top { margin: 0 0 .9rem; font-size: .85rem; }      /* above the list: read before the first time, not after the last */

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.filter {
  padding: .5rem 1.15rem; border-radius: 999px; background: #fff; border: 1.5px solid var(--line);
  color: var(--purple-900); font-weight: 600; font-size: .94rem; text-decoration: none;
}
.filter:hover { border-color: var(--purple-500); color: var(--purple-900); }
.filter.is-active { background: var(--purple-900); border-color: var(--purple-900); color: #fff; }
.filters--light { gap: .4rem; margin-bottom: .6rem; }
.filters--light .filter { padding: .38rem .95rem; font-size: .88rem; border-width: 1px; background: transparent; }
.filters--light .filter.is-active { background: var(--purple-50); border-color: var(--purple-500); color: var(--purple-900); }

.empty {
  padding: 2rem 1.5rem; text-align: center; background: #fff; border: 1.5px dashed #d9d0e8; border-radius: var(--radius);
}
.empty__title { margin: 0 0 .3rem; font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.empty p:last-child { margin-bottom: 0; }
.empty--warm { padding: 2.4rem 1.5rem; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.empty--warm p { max-width: 48ch; margin-inline: auto; }
.empty__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: .9rem; border-radius: 50%; background: var(--purple-50); color: var(--purple-900); }
.empty__icon .icon { width: 26px; height: 26px; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.3rem; }
.empty--small { padding: 1.4rem 1.2rem; }

.past-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.past-list li { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: .75rem; padding: .85rem 1.1rem; border-bottom: 1px solid #f0ebf6; font-size: .96rem; }
.past-list li:last-child { border-bottom: 0; }
.past-list__date { color: var(--muted); font-weight: 600; }
.past-list__title { color: var(--ink); }
.past-list__time { color: var(--muted); }

/* Dashboard */
.dashboard { display: grid; gap: 2.2rem; }
.dashboard__main > h2, .dashboard__aside > h2 { margin-bottom: 1rem; }
.dashboard.has-sessions .dashboard__aside { order: -1; }

@media (min-width: 720px) {
  .activity-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Two cards side by side are equally tall. The row with the button sits at the bottom of both, so the buttons line up and
     the shorter card has no empty strip under its button. */
  .activity-list--grid > .activity { grid-template-rows: 1fr auto; align-content: stretch; }
  .activity-list--grid > .activity > .activity__foot { align-self: end; }
}
@media (min-width: 980px) {
  .dashboard.has-sessions { grid-template-columns: minmax(0, 1fr) 350px; gap: 2.6rem; align-items: start; }
  .dashboard.has-sessions .dashboard__aside { order: 0; }
  .dashboard__aside { position: sticky; top: calc(var(--header-h) + 1.25rem); }
}

/* 9. Forms ----------------------------------------------------------- */
.field { display: grid; gap: .4rem; margin-bottom: 1.15rem; }
.field > label, .label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field-row { display: grid; gap: 0 1.1rem; }
@media (min-width: 640px) {
  .field-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: .75rem 1rem;
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #d6cfe3; border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338079f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .95rem center / 18px;
}
/* a list box to choose from (Start for somebody): no arrow, several lines, with a search field above it */
.select[size] { background-image: none; padding: .35rem; min-height: 0; }
.select[size] option { padding: .45rem .65rem; border-radius: 8px; }
.start-search { margin-bottom: .5rem; }
.input:hover, .select:hover, .textarea:hover { border-color: #b9aed1; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 4px rgba(151, 16, 216, .16); }
.input:disabled { background: #f6f3f9; color: var(--muted); cursor: not-allowed; }
[aria-invalid="true"] { border-color: var(--raspberry); }
.input--code { font-size: 2rem; letter-spacing: .5em; text-align: center; padding-left: 1.1em; font-weight: 600; color: var(--purple-900); }
.input--code::placeholder { color: #cfc6e0; }

.req { color: var(--raspberry); }
.hint { margin: 0; font-size: .88rem; color: var(--muted); }
.stack > .hint + .hint { margin-top: .6rem; }          /* two notes in a row inside a card keep a little air between them */
.error-text { margin: 0; font-size: .9rem; font-weight: 600; color: #a3274f; }

.choice { display: flex; align-items: center; gap: .65rem; min-height: 44px; font-weight: 500; color: var(--ink); cursor: pointer; }
.choice input { width: 1.3rem; height: 1.3rem; accent-color: var(--purple-900); flex: none; }
.choice-group { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.checkin-none { min-height: 36px; margin-top: -.35rem; font-weight: 400; }
.venue-diets { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.overview-notes { display: grid; gap: .6rem; }
.overview-note p.muted { margin: .2rem 0 0; font-size: .85rem; }
.message__team { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; }
.retreat-mail-template { display: grid; gap: .4rem; margin-bottom: 1rem; }
.retreat-mail-template label { font-weight: 600; }
.retreat-mail-people { display: grid; gap: .1rem; border: 0; padding: 0; margin: 0; }
.retreat-mail-people legend { font-weight: 600; margin-bottom: .3rem; }
.retreat-mail-people .choice { min-height: 36px; font-weight: 400; }
.retreat-mail-people .choice.is-off { color: var(--muted, #8a8a8e); cursor: default; }
.retreat-mail-people__all { border-bottom: 1px solid var(--line, #e5e5ea); }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.order-last { order: 1; }
.order-end { order: 2; }
fieldset { border: 0; padding: 0; margin: 0 0 1.15rem; min-width: 0; }
legend { padding: 0; margin-bottom: .4rem; font-weight: 600; color: var(--ink); font-size: .95rem; }
[hidden] { display: none !important; }

/* 10. Flash messages ------------------------------------------------- */
/* Messages after an action float under the header, so they are visible wherever the
   page scrolls to. They fade away by themselves (app.js removes them as well) and
   can be dismissed with a click. On the login screens they are plain boxes in the card. */
.flash { position: relative; margin: 0 0 1rem; padding: .9rem 1.15rem; border: 1px solid; border-radius: 18px; font-weight: 500; line-height: 1.45; }
.flash p { margin: 0; }
.flash--success { background: #e7f5ee; border-color: #bfe3d0; color: #17543d; }
.flash--error   { background: #fdecef; border-color: #f6c5d0; color: #8b1f40; }
.flash--info    { background: #f1eafb; border-color: #d9c8f2; color: #38079f; }
.flash--warning { background: #fdf2dc; border-color: #f3dba5; color: #7a4300; }

.flash-area {
  position: fixed; z-index: 60; left: 0; right: 0; top: calc(var(--header-h) + .7rem);
  display: grid; justify-items: center; gap: .5rem; padding-inline: 1rem; pointer-events: none;
}
.flash-area .flash {
  width: min(100%, 560px); margin: 0; padding-right: 3rem; pointer-events: auto;
  box-shadow: var(--shadow-md); animation: flash-life 10s ease forwards;
}
@media (max-width: 879px) {
  .layout-site .flash-area { top: auto; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + .7rem); }
}
.flash__close {
  position: absolute; top: .1rem; right: .2rem; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: inherit;
  font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; opacity: .7;
}
.flash__close:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
@keyframes flash-life {
  0% { opacity: 0; transform: translateY(-10px); }
  4% { opacity: 1; transform: none; }
  92% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-6px); visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .flash-area .flash { animation: none; }
}

/* 11. Login screens -------------------------------------------------- */
body.layout-auth { background: var(--gradient); }
.auth {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; padding: 2rem 1rem;
}
.auth::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../images/bokeh.svg") left -4rem center / auto 140% no-repeat;
}
.auth::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../images/bokeh.svg") right -6rem center / auto 120% no-repeat; transform: scaleX(-1); opacity: .7;
}
.auth-card {
  width: min(100%, 460px); padding: 2rem 1.5rem 1.6rem;
  background: #fff; border-radius: var(--radius-lg); box-shadow: 0 40px 90px -36px rgba(18, 0, 70, .7);
}
@media (min-width: 520px) { .auth-card { padding: 2.6rem 2.4rem 2rem; } }
.auth-card--center { text-align: center; }
.auth-card__mark { margin: 0 auto 1rem; }
.auth-card__brand { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.6rem; color: var(--purple-900); }
.auth-card__brand .brand__text { font-size: 1.2rem; }
.auth-card h1 { font-size: 2.1rem; margin-bottom: .3em; }
.lead { font-size: 1.05rem; color: var(--text); margin-bottom: 1.4rem; }
.auth-card__note { margin: 1.4rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.auth-card__note:last-child { margin-bottom: 0; }
.auth-card__more { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.auth-card__more .auth-card__note { flex: 1 0 100%; margin: 0 0 .35rem; padding: 0; border: 0; }
.auth-card__more form { margin: 0; }
.auth-card__more .btn { background: var(--purple-50); }
.auth-card__more [data-resend] { font-variant-numeric: tabular-nums; }      /* the countdown does not make the button twitch */

/* 12. Admin ---------------------------------------------------------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h1 { margin: 0; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
.page-head__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.admin-main { padding-block: 2rem 3rem; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1rem; font-weight: 600; text-decoration: none; }

/* Emailing the people of a retreat (admin/retreat-mail.php) */
.retreat-mail-preview { border: 1px solid var(--purple-100); }
.retreat-mail-preview h2 { margin: 0; }
.retreat-mail-preview .form-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.retreat-mail-preview .form-actions form, .retreat-mail-preview__more form { margin: 0; }
.retreat-mail-preview .retreat-mail-preview__more { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .5rem; margin-left: -1.1rem; }   /* Change and Discard draft: a quiet second line, the words in line with the buttons above */
.retreat-mail-list summary { cursor: pointer; }
.retreat-mail-list__body { margin-top: .6rem; white-space: normal; color: var(--text); }

/* Getting started (admin dashboard): how far the participants got, as bars */
.funnel { margin: 0 0 2.25rem; }
.funnel h2 { margin: 0 0 .2rem; font-size: 1.15rem; }
.funnel__list { list-style: none; margin: .8rem 0 0; padding: 1rem 1.2rem; display: grid; gap: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.funnel__step { display: grid; grid-template-columns: minmax(0, 15rem) 1fr auto; gap: .9rem; align-items: center; }
.funnel__label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.funnel__value { white-space: nowrap; font-size: .95rem; text-align: right; min-width: 6.5rem; }
.funnel__bar { -webkit-appearance: none; appearance: none; width: 100%; height: .7rem; border: 0; border-radius: 999px; background: var(--purple-50); color: var(--purple-700); overflow: hidden; }
.funnel__bar::-webkit-progress-bar { background: var(--purple-50); border-radius: 999px; }
.funnel__bar::-webkit-progress-value { background: var(--purple-700); border-radius: 999px; }
.funnel__bar::-moz-progress-bar { background: var(--purple-700); border-radius: 999px; }
@media (max-width: 640px) {
  .funnel__step { grid-template-columns: 1fr auto; }
  .funnel__bar { grid-column: 1 / -1; grid-row: 2; }
}

/* Needs attention (admin dashboard, includes/attention.php): only what asks for an action now, most urgent first. */
.attention { margin: 0 0 2rem; }
.attention h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.attention__clear { display: flex; align-items: center; gap: .55rem; margin: 0; padding: .85rem 1.1rem; border-radius: var(--radius-sm); background: #e7f5ee; color: #17543d; font-weight: 600; }
.attention__clear .icon { width: 20px; height: 20px; flex: none; }
.attention__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.attention__item {
  display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center;
  padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #c3aef0;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.attention__item--alert { border-left-color: var(--raspberry); }
.attention__item--warn { border-left-color: #e0a43c; }
.attention__icon { width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--purple-50); color: var(--purple-700); }
.attention__item--alert .attention__icon { background: #fdecef; color: var(--raspberry-dark); }
.attention__item--warn .attention__icon { background: #fdf2dc; color: #7a4300; }
.attention__icon .icon { width: 19px; height: 19px; }
.attention__text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.attention__text strong { color: var(--ink); }
.attention__text span { color: var(--muted); font-size: .92rem; }
.attention__actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.attention__actions form { margin: 0; }
@media (max-width: 640px) {
  .attention__item { grid-template-columns: auto 1fr; align-items: start; }
  .attention__actions { grid-column: 2; justify-content: flex-start; }
}

.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 2rem; }
.stat { padding: 1.4rem; background: #fff; border: 1px solid rgba(56, 7, 159, .06); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat__label { margin: 0 0 .5rem; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat__value { margin: 0; font-size: 2.6rem; line-height: 1; font-weight: 500; letter-spacing: -.02em; color: var(--purple-900); }
.stat__detail { margin: .6rem 0 0; font-size: .95rem; color: var(--text); }
.stat__detail strong { color: var(--ink); }
.stat--tone { border-top: 5px solid var(--tone-ink); }
.stat__unit { font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.stack-top { margin-top: 1rem; }

.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.25rem; }
.toolbar .field { margin: 0; }
.search { position: relative; flex: 1 1 260px; }
.search .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 2.8rem; }
.tabs { display: inline-flex; gap: .25rem; padding: .3rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.tab { padding: .5rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .94rem; color: var(--muted); text-decoration: none; }
.tab:hover { color: var(--purple-900); }
.tab.is-active { background: var(--purple-900); color: #fff; }
.page-tabs { margin-bottom: 1.5rem; max-width: 100%; }
.page-tabs .tab { display: inline-flex; align-items: center; gap: .4rem; }
.tab__count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: var(--purple-100); color: var(--purple-900); font-size: .78rem; font-weight: 700; }
.tab.is-active .tab__count { background: rgba(255, 255, 255, .22); color: #fff; }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { padding: .9rem 1rem; text-align: left; background: #fbf9fe; border-bottom: 1px solid var(--line); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.table td { padding: .95rem 1rem; border-bottom: 1px solid #f0ebf6; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .strong { color: var(--ink); font-weight: 600; }
.table .sub { display: block; color: var(--muted); font-size: .86rem; }
.row-num { display: inline-block; min-width: 2.4em; margin-right: .35rem; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.row-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.row-actions form { margin: 0; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }

@media (max-width: 799px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { display: flex; justify-content: space-between; gap: 1rem; padding: .28rem 0; border: 0; text-align: right; }
  .table td::before { content: attr(data-label); flex: none; padding-top: .15rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: left; }
  .table td.table-title { display: block; text-align: left; padding-bottom: .4rem; }
  .table td.table-title::before { display: none; }
  .table td[data-label="Activity"] { display: block; text-align: left; padding-bottom: .5rem; font-size: 1.02rem; }
  .table td[data-label="Activity"]::before { display: none; }
  .table td.table-actions { display: block; padding-top: .7rem; text-align: left; }
  .table td.table-actions::before { display: none; }
  .row-actions { justify-content: flex-start; }
  /* The list of participants on a phone: two lines a person (the name, then role, status and last login), the menu beside the name. */
  .table--people tr { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; }
  .table--people td { order: 2; display: block; width: auto; padding: 0; text-align: left; }
  .table--people td::before { display: none; }
  .table--people td.table-title { order: 0; flex: 1 1 calc(100% - 3.6rem); min-width: 0; padding: 0; }
  .table--people td.table-actions { order: 1; flex: none; padding: 0; }
  .table--people td[data-label="Last login"] { font-size: .85rem; color: var(--muted); }
  .table--people td[data-label="Last login"]::before { display: inline; content: "Last login "; padding: 0; font: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
  .table--people td[data-label="Added"] { display: none; }
}

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.pagination__info { color: var(--muted); font-size: .92rem; }

.form-card { max-width: 760px; }
.form-card h2 { margin-bottom: 1rem; }
.form-card.stack > h2 { margin-bottom: 0; font-size: 1.25rem; }
.form-card.stack > form { margin-bottom: 0; }
.callout { margin: 0 0 1.25rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: var(--purple-50); border: 1px solid var(--purple-100); color: var(--ink); font-size: .95rem; }
.callout p { margin: 0; }
.callout--warn { background: #fdf2dc; border-color: #f3dba5; color: #6a3b00; }
.callout--ok { background: #e7f6ec; border-color: #bfe5cb; color: #14532d; }
.preview-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .4rem; counter-reset: preview; }
.preview-list li { counter-increment: preview; display: flex; gap: .8rem; padding: .55rem .9rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: .96rem; }
.preview-list li::before { content: counter(preview); min-width: 1.6rem; color: var(--muted); font-weight: 600; }
.registrant-count { font-size: 1rem; color: var(--text); }

/* 13. Footer --------------------------------------------------------- */
.site-footer { padding: 1.5rem 0 2.5rem; text-align: center; color: var(--muted); font-size: .88rem; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.section-bottom { margin-bottom: 1.75rem; }

/* Switch user (view as) */
.switch-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .6rem max(1rem, calc((100% - 1100px) / 2)); background: #7d1736; color: #fff; font-size: .95rem; }
.switch-banner p { margin: 0; flex: 1 1 22rem; }       /* the text wraps next to the buttons; only on a narrow screen do the buttons go below it */
.switch-banner .btn { white-space: nowrap; }
.switch-banner strong { color: #fff; }
.switch-banner form { margin: 0; }
.switch-banner--demo { background: var(--purple-900); }
.switch-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 420px) { .switch-banner__actions .btn { padding-inline: .75rem; } }
.is-switched .switch-banner--demo ~ .site-header { box-shadow: inset 0 -4px 0 var(--purple-500); }
.demo-choice { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.demo-choice__card { display: flex; flex-direction: column; }
.demo-choice .card + .card { margin-top: 0; }
.demo-choice__card h2 { margin: 0; }
.demo-choice__action { margin-top: auto; padding-top: .5rem; }
.is-switched .site-header { box-shadow: inset 0 -4px 0 var(--raspberry); }
.chip--teacher { background: #e2f0fb; color: #1d5a8a; }
.chip--team { background: var(--purple-50); color: var(--purple-900); box-shadow: inset 0 0 0 1px var(--purple-100); }
.chip--researcher { background: #e4f3ec; color: #1f6447; }
@media (max-width: 879px) {
  .profile-menu__caret { display: none; }                                     /* on a phone the round photo or initial is enough */
  .nav-link { padding-inline: .1rem; font-size: .72rem; }
  .main-nav:not(:has(> .nav-link:nth-child(6))) .nav-link { font-size: .8rem; }    /* five items or fewer (most participants): larger words */
}

/* Retreats and community */
.muted { color: var(--muted); }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.plain-list li { padding: .55rem .9rem; background: var(--purple-50); border-radius: 12px; font-size: .96rem; }
/* The bookings of a person on the participant page: the retreat, its status, and a quiet line with the number and the money. */
.person-booking .chip { margin-left: .4rem; vertical-align: .1em; }
.person-booking .sub { display: block; margin-top: .15rem; color: var(--muted); font-size: .86rem; }
.group-heading { margin: 0 0 .4rem; font-size: 1rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.activity__people { display: flex; gap: .5rem; align-items: flex-start; margin: .75rem 0 0; font-size: .92rem; color: var(--muted); }
.activity__people .icon { width: 1.1rem; height: 1.1rem; flex: none; margin-top: .15rem; }
.activity__people strong { color: var(--ink); font-weight: 600; }
.activity__people > div { min-width: 0; }
.activity__people .person { margin-right: 0; }
.activity__others { display: inline; }
.activity__others > summary { display: inline; margin-left: .3em; cursor: pointer; list-style: none; color: var(--purple-700); font-weight: 600; text-decoration: underline; text-decoration-color: var(--purple-100); text-underline-offset: 3px; }
.activity__others > summary::-webkit-details-marker { display: none; }
.activity__others > summary:hover { text-decoration-color: currentColor; }
.activity__others > summary:focus-visible { outline: 2px solid var(--purple-500); outline-offset: 2px; border-radius: 3px; }
.activity__others[open] > summary { display: none; }             /* opened: the names take the place of "and N more" */
.activity__others > span { display: block; margin-top: .15rem; }

/* Profile photos and time zone */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; vertical-align: middle;
  background: var(--purple-50); color: var(--purple-900); font-weight: 700; object-fit: cover; line-height: 1; }
.avatar--sm { width: 28px; height: 28px; font-size: .8rem; }
.avatar--md { width: 44px; height: 44px; font-size: 1.05rem; }
.avatar--lg { width: 96px; height: 96px; font-size: 2.2rem; }
.chip--person { display: inline-flex; align-items: center; gap: .4rem; padding-left: .25rem; }
.person { display: inline-flex; align-items: center; gap: .35rem; margin-right: .2rem; }
.photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.photo-row .stack { flex: 1; min-width: 220px; }
.photo-row + .hint { margin-top: .9rem; }
.table-title .avatar { margin-right: .35rem; }

/* Passkeys */
.passkey-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.passkey { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .8rem 1rem; background: var(--purple-50); border-radius: 14px; }
.passkey__info { flex: 1; min-width: 12rem; }
.passkey__info .muted { display: block; font-size: .9rem; }
.passkey__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.passkey__actions form { margin: 0; }
.passkey__rename summary { list-style: none; cursor: pointer; }
.passkey__rename summary::-webkit-details-marker { display: none; }
.passkey__rename-form { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.passkey__rename-form .input { flex: 1; min-width: 9rem; }
.passkey-login { margin-bottom: 1.2rem; }
.passkey-login .error-text { margin-top: .7rem; }
.passkey-login .auth-divider--before { display: none; }
.passkey-login--later { margin: 0 0 .4rem; }                              /* below the email form, on a device without a passkey */
.passkey-login--later .auth-divider--before { display: flex; margin: 1.1rem 0 1rem; }
.passkey-login--later .auth-divider--after { display: none; }
.passkey-login--later .btn { border-color: transparent; background: var(--purple-50); font-size: .88rem; padding-inline: .8rem; }
.auth-divider { display: flex; align-items: center; gap: .8rem; margin: 1.3rem 0 0; font-size: .88rem; color: var(--muted); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Numbered steps (install the app) */
.steps { margin: .5rem 0 0; padding-left: 1.4rem; display: grid; gap: .5rem; }
.steps li::marker { color: var(--purple-900); font-weight: 700; }

/* First-steps to-do list on the home page */
.todo-card { margin-bottom: 2.75rem; border: 1px solid var(--purple-100); }
.todo-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .6rem; }
.todo { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; background: var(--purple-50); border-radius: 14px; }
.todo__mark { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--purple-900); display: grid; place-items: center; background: #fff; }
.todo.is-done .todo__mark { background: var(--purple-900); color: #fff; border-color: var(--purple-900); }
.todo__mark .icon { width: 16px; height: 16px; stroke: currentColor; }
.todo__text { flex: 1; min-width: 0; }
.todo__text .muted { display: block; font-size: .92rem; }
.todo.is-done { opacity: .7; }
@media (max-width: 560px) { .todo { flex-wrap: wrap; } .todo .btn { margin-left: calc(26px + .9rem); } }

/* Library */
/* Sections: the same buttons as the Activities filters. They wrap onto more lines on larger screens (however many sections
   the team adds), and on a phone they form one row you swipe, running to the edge of the screen so it is clear there is more. */
.lib-filters { margin-bottom: 1.4rem; }
.lib-nav .lib-filters { margin-bottom: .7rem; }
.lib-nav { margin-bottom: 1.4rem; }
/* The themes under the chosen main section: a second, quieter row. */
.lib-filters--themes .filter { padding: .38rem .95rem; font-size: .88rem; border-width: 1px; background: transparent; }
.lib-filters--themes .filter.is-active { background: var(--purple-50); border-color: var(--purple-500); color: var(--purple-900); }
@media (max-width: 639px) {
  .lib-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: .1rem 1rem; scroll-padding-inline: 1rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .lib-filters::-webkit-scrollbar { display: none; }
  .lib-filters .filter { flex: none; white-space: nowrap; }
}
.lib-count { margin: 0 0 1rem; }
.lib-section { margin-top: 2rem; }
.lib-section > h2 { margin-bottom: .2rem; }
.lib-section + .lib-section { margin-top: 2.75rem; }
.lib-theme { margin-top: 1.5rem; }
.lib-theme > h3 { margin: 0 0 .15rem; font-size: 1.2rem; }
.lib-theme > .muted { margin: 0; }
.lib-admin-theme { margin-left: clamp(0px, 4vw, 2.5rem); border-left: 4px solid var(--purple-100); }
.lib-list { display: grid; gap: .7rem; margin-top: .9rem; }
.lib-item { display: flex; align-items: flex-start; gap: .9rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.lib-item:hover { border-color: var(--purple-500); box-shadow: 0 10px 26px -18px rgba(56, 7, 159, .55); color: inherit; }
.lib-item__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--purple-50); color: var(--purple-900); }
.lib-item__icon .icon { width: 22px; height: 22px; }
.lib-item__text { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.lib-item__title { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.lib-item__meta { font-size: .86rem; color: var(--muted); }
.lib-item__summary { font-size: .95rem; color: var(--text); }
.lib-item__sub { font-size: .95rem; line-height: 1.35; color: var(--text); }
.lib-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; margin-top: .2rem; }
.lib-item__meta .chip { font-size: .72rem; padding: .1rem .55rem; }
.lib-toolbar { flex-wrap: nowrap; }
.lib-toolbar .search { flex: 1 1 auto; min-width: 0; }
.lib-toolbar .btn { flex: none; }
.lib-list--grid { grid-template-columns: 1fr; }
@media (min-width: 760px) { .lib-list--grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } .lib-list--grid .lib-item { padding: 1.15rem 1.25rem; } }
.lib-cover { flex: none; display: grid; place-items: center; width: 56px; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: linear-gradient(160deg, var(--purple-900), var(--purple-500)); color: rgba(255, 255, 255, .85); box-shadow: 0 8px 16px -10px rgba(56, 7, 159, .7); }
.lib-cover .icon { width: 22px; height: 22px; }
.lib-cover__img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) { .lib-list--grid .lib-cover { width: 68px; } }
/* Pictures in other shapes: square artwork (podcasts) and wide pictures (videos, articles) */
.lib-cover--square { aspect-ratio: 1; border-radius: 10px; width: 60px; }
.lib-cover--wide { aspect-ratio: 16 / 9; border-radius: 8px; width: 92px; }
@media (min-width: 760px) { .lib-list--grid .lib-cover--square { width: 72px; } .lib-list--grid .lib-cover--wide { width: 112px; } }
.lib-shelf .lib-cover--square { width: 64px; }
.lib-shelf .lib-cover--wide { width: 96px; }
.lib-edit__cover { display: block; width: 100px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; }
.lib-article__cover { margin: 0 0 1.1rem; }
.lib-article__img { display: block; width: 96px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 14px 28px -16px rgba(56, 7, 159, .6); }
@media (min-width: 640px) { .lib-article__cover { float: right; margin: 0 0 1rem 1.5rem; } .lib-article__img { width: 120px; } }
.lib-article--cover::after { content: ""; display: block; clear: both; }
.lib-article__cover--square .lib-article__img { aspect-ratio: 1; width: 120px; border-radius: 14px; }
@media (min-width: 640px) { .lib-article__cover--square .lib-article__img { width: 150px; } }
.lib-edit__cover--square { aspect-ratio: 1; width: 120px; }
.lib-edit__cover--wide { aspect-ratio: 16 / 9; width: 200px; }

/* The picture at the top of a video or article, and the video that only loads after "play" */
.lib-media { position: relative; margin: 0 0 1.2rem; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--gradient); box-shadow: 0 18px 36px -24px rgba(56, 7, 159, .7); }
.lib-media__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lib-player { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.lib-player::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37, 22, 63, 0) 50%, rgba(37, 22, 63, .62)); }
.lib-player .lib-media__img { position: absolute; inset: 0; }
.lib-player__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px -8px rgba(37, 22, 63, .6); transition: transform .15s ease; }
.lib-player__play::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 23px; border-color: transparent transparent transparent var(--purple-900); }
.lib-player:hover .lib-player__play, .lib-player:focus-visible .lib-player__play { transform: scale(1.07); }
.lib-player:focus-visible { outline: 3px solid var(--purple-500); outline-offset: -3px; }
.lib-player__note { position: absolute; z-index: 1; left: 1.1rem; right: 1.1rem; bottom: .9rem; font-weight: 700; font-size: .98rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.lib-player__via { font-weight: 500; opacity: .9; }
.lib-player__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 480px) { .lib-media { margin-inline: -.4rem; border-radius: 12px; } .lib-player__play { width: 62px; height: 62px; margin: -31px 0 0 -31px; } .lib-player__play::after { left: 25px; top: 19px; border-width: 12px 0 12px 19px; } }

/* A podcast that plays on the page */
.lib-audio { margin: .2rem 0 .6rem; padding: .9rem 1rem; background: var(--purple-50); border-radius: 16px; }
.lib-audio audio { display: block; width: 100%; }
.lib-audio .hint { margin: .45rem 0 0; font-size: .85rem; }
.lib-item__go { flex: none; align-self: center; width: 20px; height: 20px; color: var(--purple-900); }
.chip--new { background: var(--raspberry); color: #fff; }
.lib-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; }
.lib-article__meta .chip { display: inline-flex; align-items: center; gap: .35rem; }
.lib-article__meta .chip .icon { width: 16px; height: 16px; }
.lib-links { margin: .4rem 0; display: grid; gap: .6rem; }
.lib-links__row { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; }
.lib-links .btn .icon { width: 18px; height: 18px; margin-left: .45rem; }
.lib-links__host { font-size: .85rem; color: var(--muted); }
.lib-body { margin-top: .8rem; }
.lib-body > :first-child { margin-top: 0; }
.lib-body h3 { margin: 1.6rem 0 .4rem; font-size: 1.35rem; }
.lib-body h4 { margin: 1.3rem 0 .3rem; font-size: 1.1rem; }
.lib-body p, .lib-body ul, .lib-body ol { margin: 0 0 1rem; }
.lib-body ul, .lib-body ol { padding-left: 1.4rem; display: grid; gap: .3rem; }
.lib-body blockquote { margin: 1.2rem 0; padding: .2rem 0 .2rem 1.1rem; border-left: 4px solid var(--purple-100); color: var(--ink); font-size: 1.08rem; }
.lib-body blockquote p { margin: 0; }
.lib-body hr { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }
.lib-body a { word-break: break-word; }
.retreat-pick { margin-top: .6rem; }
.retreat-pick__list { max-height: 15rem; overflow-y: auto; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.retreat-pick__list .choice { min-height: 36px; font-weight: 400; }
.link-row { align-items: start; }
/* Home: the blocks under the hero share one rhythm, and "New in the Library" is a small shelf of covers */
.home-section { margin-bottom: 2.75rem; }
.home-section > h2 { margin-bottom: 1rem; }
.home-section .more-link { margin-top: 1rem; }
.lib-shelf { margin-top: 0; grid-template-columns: 1fr; }
.lib-shelf .lib-item { align-items: center; }
.lib-shelf .lib-cover { width: 64px; }
.lib-shelf .lib-item__sub { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 760px) { .lib-shelf--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 980px) { .lib-shelf--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }

/* Team */
.lib-item--team { margin: 0 0 1.5rem; }
.team-section { margin-top: 2rem; }
.team-section > h2 { margin-bottom: 1rem; }
.team-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; }   /* start: opening one "About" does not stretch its neighbour */
@media (min-width: 760px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem 1.25rem; } }
.team-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.team-card__photo { flex: none; width: 68px; height: 68px; border-radius: 50%; object-fit: cover; background: var(--purple-50); }
.team-card__initial { display: grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--purple-900); }
.team-card__body { flex: 1; min-width: 0; }
.team-card__body h3 { margin: 0; font-size: 1.15rem; }
.team-card__title { margin: .1rem 0 .4rem; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.team-card__body p { margin: 0 0 .5rem; }
.team-card__more { margin-top: .4rem; }
.team-card__more > summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; color: var(--purple-900); padding: .3rem 0; }
.team-card__more .lib-body { margin-top: .4rem; font-size: .95rem; }
.team-card__sessions { margin-top: .7rem; padding: .7rem .9rem; background: var(--purple-50); border-radius: 14px; }
.team-card__sessions-title { margin: 0 0 .3rem !important; font-family: var(--font-display); font-weight: 700; font-size: .92rem; }
.team-card__sessions ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .2rem; font-size: .93rem; }
.team-edit__photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.table-title .avatar { margin-right: .6rem; vertical-align: middle; }
@media (max-width: 460px) { .team-card { padding: .9rem 1rem; gap: .85rem; } .team-card__photo { width: 56px; height: 56px; } }

/* Integration circles ------------------------------------------------ */
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.section-head > h2 { margin: 0; }
.circle-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .55rem; }
.circle-agreements { margin: .2rem 0 0; padding-left: 1.3rem; display: grid; gap: .35rem; }
.circle-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.circle-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; padding: .7rem .9rem; background: var(--purple-50); border-radius: 14px; }
.retreat-circle { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: .2rem 0 .6rem; }
.retreat-circle .btn .icon { width: 18px; height: 18px; margin-right: .4rem; }
.is-muted { opacity: .65; }
.select--sm { padding-block: .35rem; font-size: .9rem; width: auto; }

/* The date poll */
.poll-options { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.poll-option { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; display: grid; gap: .55rem; }
.poll-option.is-chosen { border-color: var(--purple-500); box-shadow: 0 0 0 2px var(--purple-100); }
.poll-option__when { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; }
.poll-option__when .chip { font-size: .75rem; }
.poll-option__answer { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; padding: 0; margin: 0; }
.poll-choice { position: relative; }
.poll-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.poll-choice span { display: inline-block; padding: .4rem .95rem; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--purple-900); background: #fff; }
.poll-choice input:focus-visible + span { outline: 3px solid var(--purple-500); outline-offset: 2px; }
.poll-choice--yes input:checked + span { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
.poll-choice--maybe input:checked + span { background: #f4e3b5; border-color: #d9b55b; color: #5b4300; }
.poll-choice--no input:checked + span { background: #ece8f1; border-color: #c8c0d6; color: #4a4857; }
.poll-option__who { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin: 0; font-size: .9rem; color: var(--muted); }
.decide-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.decide-row:last-of-type { border-bottom: 0; }
.moment-rows { display: grid; gap: .6rem; }
.moment-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 9rem); gap: .2rem .6rem; }
.moment-row .field { margin: 0; }
.moment-row__others { grid-column: 1 / -1; margin: 0; min-height: 1em; }

/* The meeting: live part, groups, agenda and timer */
.live-panel { display: grid; gap: .8rem; }
.live-panel__here { margin: 0; font-weight: 600; color: var(--ink); }
.live-panel__lead { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.live-groups { display: grid; gap: .6rem; padding: 1rem; border-radius: 16px; background: var(--purple-50); }
.live-groups__clock { margin: 0; font-size: 1.05rem; }
.live-groups__clock strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; color: var(--purple-900); margin-right: .3rem; }
.live-groups__list { display: grid; gap: .6rem; }
@media (min-width: 640px) { .live-groups__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.live-group { display: grid; gap: .45rem; align-content: start; padding: .8rem .9rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.live-group.is-mine { border-color: var(--purple-500); box-shadow: 0 0 0 2px var(--purple-100); }
.live-group h3 { margin: 0; font-size: 1.02rem; }
.live-group__people { margin: 0; font-size: .92rem; color: var(--text); }
.live-groups__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.circle-agenda { margin: 0; padding-left: 1.3rem; display: grid; gap: .45rem; }
.round-timer { display: grid; justify-items: start; gap: .3rem; padding: 1rem; border-radius: 16px; background: var(--purple-50); }
.round-timer__time { margin: 0; font-size: 2.4rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--purple-900); line-height: 1; }
.round-timer__time.is-done { color: var(--raspberry); }
.round-timer__buttons { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.circle-note { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.circle-note:last-child { border-bottom: 0; }
.circle-note.is-unread { padding-left: .8rem; border-left: 4px solid var(--raspberry); }
.circle-note p { margin: 0 0 .4rem; }

/* The meeting: the video call on the page (Whereby Embedded) */
.call { display: grid; gap: .6rem; }
.call__start { display: grid; gap: .4rem; }
.call__start p { margin: 0; }
.call__lead { font-weight: 600; color: var(--ink); }
.call__frame { border-radius: 16px; overflow: hidden; background: #17112a; }
.call__iframe { display: block; width: 100%; height: min(78vh, 640px); min-height: 420px; border: 0; }
.call__actions { display: flex; justify-content: flex-end; margin: 0; }
.live-panel__takeover { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .7rem .9rem; border-radius: 14px; background: var(--purple-50); }
.circle-host-help { padding: .8rem 1rem; border-radius: 14px; background: var(--purple-50); }
.circle-host-help summary { font-weight: 600; cursor: pointer; }
.circle-host-help ul { margin: .5rem 0 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
@media (max-width: 640px) { .call__iframe { height: 72vh; min-height: 360px; } }
.field-inline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.input.input--sm { width: 9rem; padding-top: .45rem; padding-bottom: .45rem; }

/* Notifications on this device (Account) ------------------------------ */
.push-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.push-status { margin: 0; font-weight: 600; color: var(--ink); }

/* The welcome tour (assets/js/tour.js) -------------------------------- */
.tour-veil { position: fixed; inset: 0; z-index: 90; background: transparent; }
.tour-veil--dim { background: rgba(23, 10, 46, .55); }
.tour-spot { position: fixed; z-index: 91; border-radius: var(--radius-sm); pointer-events: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 9999px rgba(23, 10, 46, .55); }
.tour-card { position: fixed; z-index: 92; top: 0; left: 0; width: min(22rem, calc(100vw - 24px)); padding: 1.25rem 1.25rem 1rem;
  background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: 0 24px 60px -12px rgba(23, 10, 46, .45); }
.tour-card__title { margin: 0 0 .4rem; font-size: 1.2rem; color: var(--ink); outline: none; }
.tour-card__text { margin: 0 0 1rem; }
.tour-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.tour-card__count { color: var(--muted); font-size: .85rem; }
.tour-card__buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; margin-left: auto; }
@media (prefers-reduced-motion: no-preference) {
  .tour-spot, .tour-card { transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease; }
}

/* "What to expect" (expect.php): a long read in cards, the six elements, the music arc, box breathing, the list ------ */
.guide-pill { margin-top: .4rem; }
.guide-section, .guide-sources { scroll-margin-top: calc(var(--header-h) + 1rem); }
.guide-pill span { white-space: normal; }
.guide .guide-section h2 { color: var(--purple-900); }
.guide .guide-section h3 { margin: 1.7rem 0 .2rem; color: var(--purple-900); font-size: 1.1rem; font-weight: 700; }
.guide-lead { font-size: 1.1rem; line-height: 1.55; color: var(--ink); }
/* How to get to the place of this person's retreat (expect.php, decision 54): the travel text of the location. */
.guide-travel { margin-top: .4rem; padding-top: .2rem; border-top: 1px solid var(--purple-100); scroll-margin-top: calc(var(--header-h) + 1rem); }
.guide-travel h4 { margin: 1.2rem 0 .1rem; font-size: 1rem; font-weight: 700; color: var(--ink); }
.guide-travel p { margin: .5rem 0; }
.guide-travel a { overflow-wrap: anywhere; }
.overview-count { margin-top: -.4rem; }
.guide-toc__title { font-size: 1rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-500); }
.guide-toc ol { margin: .6rem 0 0; padding-left: 1.4rem; display: grid; gap: .35rem; }
.guide-toc li::marker { color: var(--purple-500); font-weight: 700; }
.guide-toc a { font-weight: 600; }
@media (min-width: 600px) { .guide-toc ol { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 2.5rem; } }
.guide-print { margin-top: 1rem; }

.six { display: grid; gap: .75rem; }
@media (min-width: 600px) { .six { grid-template-columns: 3fr 2fr; } .six__group--emerges { grid-column: 1 / -1; } }
.six__group { padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--purple-50); border: 1px solid var(--purple-100); }
.six__group--yours { background: #fbf0f4; border-color: #f4dbe4; }
.six__group--emerges { background: #fbf6ec; border-color: #f1e5cc; }
.six__label { margin: 0 0 .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--purple-500); }
.six__group--yours .six__label { color: var(--raspberry-dark); }
.six__group--emerges .six__label { color: #8a5a00; }
.six dl { margin: 0; display: grid; gap: .45rem; }
.six dt { display: inline; font-weight: 700; color: var(--ink); }
.six dt::after { content: " \2014  "; font-weight: 400; color: var(--muted); }
.six dd { display: inline; margin: 0; }

.arc { list-style: none; margin: .4rem 0 .2rem; padding: 0; display: grid; gap: 0; counter-reset: arc; }
.arc li { position: relative; padding: .35rem 0 .35rem 2.6rem; counter-increment: arc; color: var(--ink); font-weight: 500; }
.arc li::before {
  content: counter(arc); position: absolute; left: 0; top: .2rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--gradient); color: #fff; font-size: .85rem; font-weight: 700;
}
.arc li + li::after { content: ""; position: absolute; left: .87rem; top: -.55rem; height: .9rem; border-left: 2px solid var(--purple-100); }

.guide-dots { margin: 0; padding-left: 1.3rem; display: grid; gap: .45rem; }
.guide-dots li::marker { color: var(--purple-500); }


.checklist { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .35rem; }
.checklist__item { align-items: flex-start; padding: .55rem .8rem; border-radius: var(--radius-sm); background: var(--purple-50); font-weight: 500; line-height: 1.45; }
.checklist__item input { margin-top: .1rem; }
.checklist__item:has(input:checked) { background: #f1ecf8; color: var(--muted); }
.checklist--static li { display: flex; gap: .7rem; align-items: flex-start; padding: .45rem 0; color: var(--ink); }
.checklist__box { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .2rem; border: 2px solid var(--purple-500); border-radius: 5px; }
.checklist__footer { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .9rem; }
.checklist__progress { margin: 0; font-weight: 700; color: var(--purple-900); }

.guide-section--deeper { border: 1px solid var(--purple-100); background: linear-gradient(180deg, #fff 0%, var(--purple-50) 100%); }
.guide-sources { margin-top: 2rem; padding: 0 .3rem; font-size: .9rem; color: var(--muted); }
.guide-sources h2 { font-size: 1rem; font-weight: 700; color: var(--ink); }
.guide-sources p { margin: .5rem 0; }

/* "What to expect" on Home and My retreats */
.expect-card { display: grid; gap: 1rem; margin-bottom: 2.75rem; border: 1px solid var(--purple-100); }
@media (min-width: 640px) { .expect-card { grid-template-columns: 1fr auto; align-items: center; } }
.expect-card h2 { margin: 0; }
.expect-card p { margin: .3rem 0 0; }
.expect-card .eyebrow { margin-bottom: .3rem; }

/* Where somebody is in the five conversations (templates/journey.php): six dots on one line on every screen, one short
   line under each, then what comes next. The full text of each step is there for screen readers. */
.journey-card { padding-bottom: 1.4rem; }
.journey { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; }
.journey--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.journey--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 20rem; margin: 0 auto; }   /* one free conversation: the retreat and one dot */   /* the three conversations after the retreat: the retreat and three dots */
.journey__node { position: relative; display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; }
.journey__node + .journey__node::before { content: ""; position: absolute; top: 1.05rem; left: calc(-50% + 1.15rem); right: calc(50% + 1.15rem); border-top: 2px solid var(--line); }
.journey__node.is-done + .journey__node::before { border-top-color: var(--purple-900); }
.journey__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--muted); font-weight: 700; font-size: .9rem; }
.journey__dot .icon { width: 16px; height: 16px; }
.journey__short { font-size: .78rem; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.journey__node.is-done .journey__dot { background: var(--purple-900); border-color: var(--purple-900); color: #fff; }
.journey__node.is-planned .journey__dot { border-color: var(--purple-700); color: var(--purple-700); }
.journey__node.is-planned .journey__short { color: var(--purple-900); font-weight: 700; }
.journey__node.is-book .journey__dot, .journey__node.is-now .journey__dot { background: var(--raspberry); border-color: var(--raspberry); color: #fff; }
.journey__node.is-book .journey__short, .journey__node.is-now .journey__short { color: var(--raspberry); font-weight: 700; }
.journey__node--retreat .journey__dot { border-color: var(--purple-500); color: var(--purple-500); }
.journey__node--retreat.is-done .journey__dot { background: var(--purple-100); border-color: var(--purple-100); color: var(--purple-900); }
.journey__node.is-off .journey__dot { border-style: dashed; }
.journey-card__next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.journey-card__text { margin: 0; font-weight: 700; color: var(--ink); }
.journey-card__text.is-act { color: var(--raspberry); }
.journey-card__with { margin: .5rem 0 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 420px) { .journey__dot { width: 1.9rem; height: 1.9rem; font-size: .82rem; } .journey__node + .journey__node::before { top: .95rem; left: calc(-50% + 1.05rem); right: calc(50% + 1.05rem); } .journey__short { font-size: .72rem; } }

/* Home: one clear next step, and the other things waiting below it (includes/home.php) */
.next-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.1rem; align-items: center; margin-bottom: 1.75rem; }
.next-step__icon { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--purple-50); color: var(--purple-900); }
.next-step__icon .icon { width: 24px; height: 24px; }
.next-step h2 { margin: 0; }
.next-step p { margin: .3rem 0 0; }
.next-step .eyebrow { margin-bottom: .3rem; }
.next-step .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 720px) {
  .next-step { grid-template-columns: auto minmax(0, 1fr) auto; }
  .next-step .btn { grid-column: auto; }
}
@media (max-width: 480px) { .next-step__icon { width: 2.5rem; height: 2.5rem; align-self: start; } .next-step .btn { width: 100%; } }
.home-also > h2, .home-library > h2 { font-size: 1.1rem; }
.passkey-offer { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; margin-bottom: 1.75rem; padding: .85rem 1.1rem; border: 1px solid var(--purple-100); box-shadow: none; }
.mr-section + .passkey-offer, .mr-card + .passkey-offer { margin-top: 1.75rem; }
.passkey-offer__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--purple-50); color: var(--purple-900); }
.passkey-offer__icon .icon { width: 20px; height: 20px; }
.passkey-offer__body { flex: 1 1 14rem; min-width: 0; }
.passkey-offer h2 { margin: 0; font-size: 1rem; }
.passkey-offer p { margin: .1rem 0 0; font-size: .9rem; color: var(--muted); }
.passkey-offer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.passkey-offer__add .error-text { flex-basis: 100%; }
.passkey-offer__later { margin: 0; }
.expect-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }

/* Printing a guide page: just the text, no menu, no buttons */
@media print {
  .skip-link, .site-header, .main-nav, .admin-bar, .admin-side, .admin-tabs, .site-footer, .no-print, .flash, .btn { display: none !important; }
  .layout-admin .main { margin-left: 0; }
  body { background: #fff; }
  .hero { background: none; color: var(--ink); border-radius: 0; }
  .hero::before { display: none; }
  .hero h1, .hero__lead, .hero .eyebrow, .next-pill, .next-pill strong { color: var(--ink); }
  .next-pill { background: none; border: 0; padding: 0; }
  .card { box-shadow: none; border: 0; padding: 0; margin-top: 1.5rem; }
  .content { padding-top: 0; }
  a { color: inherit; text-decoration: none; }
}

/* The five conversations (conversations.php, workbook.php, facilitate*.php, admin/conversation*.php) ---------------- */
.chip--writing { background: #fbf0dd; color: #7a4b00; }
.chip--ready { background: #e3f3ea; color: #1d6b41; }
.lead-text { max-width: 70ch; margin: -.6rem 0 1.5rem; color: var(--muted); }
.page-head--sub { margin: 2rem 0 1rem; align-items: center; }
.page-head--sub h2 { margin: 0; }
.page-head--sub .filters { margin: 0; }

.guide-intro summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.guide-intro summary::-webkit-details-marker { display: none; }
.guide-intro summary h2 { margin: 0; color: var(--purple-900); }
.guide-intro summary::after { content: "+"; flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--purple-50); color: var(--purple-900); font-weight: 700; }
.guide-intro[open] summary::after { content: "\2212"; }
.guide-intro .stack { margin-top: 1rem; }
/* A card that is folded away until it is needed (Add retreats, under the list of retreats) */
.card-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-fold > summary::-webkit-details-marker { display: none; }
.card-fold > summary h2 { margin: 0; }
.card-fold > summary::after { content: "+"; flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--purple-50); color: var(--purple-900); font-weight: 700; }
.card-fold[open] > summary::after { content: "\2212"; }
.card-fold > summary:focus-visible { outline: 2px solid var(--purple-500); outline-offset: 4px; border-radius: 6px; }
.card-fold > .stack { margin-top: 1rem; }
.guide-intro + .guide-intro, .guide-intro + .convo-list { margin-top: 1.25rem; }

.convo-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1rem; }
.convo { margin: 0; }
.card + .convo, .convo + .convo { margin-top: 0; }
.convo.is-done { background: #fcfbfe; }
.convo__head { display: flex; gap: 1rem; align-items: flex-start; }
.convo__head h2 { margin: 0 0 .2rem; color: var(--purple-900); }
.convo__head .eyebrow { margin-bottom: .2rem; }
.convo__number { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--gradient); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.convo.is-done .convo__number { background: var(--purple-100); color: var(--purple-900); }
.convo__when { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.convo__when .icon { width: 1.1em; height: 1.1em; color: var(--purple-500); }
.convo__parts { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.convo-part { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--purple-50); }
.convo-part__text { flex: 1 1 14rem; display: flex; flex-direction: column; }
.convo-part__name { font-weight: 700; color: var(--ink); }
.convo-part__text .muted { font-size: .9rem; }
.convo-part__lock { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .92rem; }
.convo-part__lock .icon { width: 1em; height: 1em; }

.wb-parts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.wb-parts__back { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.wb-parts ol { list-style: none; margin: 0; padding: 0; display: flex; gap: .35rem; }
.wb-parts__item {
  display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; text-decoration: none;
  font-weight: 700; color: var(--purple-900); background: #fff; box-shadow: inset 0 0 0 2px var(--purple-100);
}
a.wb-parts__item:hover { box-shadow: inset 0 0 0 2px var(--purple-500); color: var(--purple-900); }
.wb-parts__item.is-writing { background: #fbf0dd; box-shadow: inset 0 0 0 2px #f1d7a8; }
.wb-parts__item.is-ready { background: #e3f3ea; box-shadow: inset 0 0 0 2px #b9dfc9; color: #1d6b41; }
.wb-parts__item.is-current { background: var(--purple-900); color: #fff; box-shadow: none; }
.wb-parts__item.is-locked { color: #b9aed1; background: transparent; box-shadow: inset 0 0 0 2px #eee8f5; }

.wb-section .field { margin: 0; }
.wb-section * + .field { margin-top: 1.25rem; }       /* a question never sticks to the answer box above it */
.wb-field label { font-weight: 700; color: var(--ink); }
.wb-field .hint { margin: .1rem 0 .45rem; }
.wb-field textarea, .wb-situation textarea { min-height: 3.4rem; resize: vertical; line-height: 1.5; }
.wb-anchor { display: block; position: relative; top: calc(-1 * var(--header-h) - 1rem); }

.wb-situations { display: grid; gap: .6rem; }
.wb-situations__head { display: none; }
.wb-situation { display: grid; gap: .4rem; padding: .8rem .9rem; border-radius: var(--radius-sm); background: var(--purple-50); }
.wb-situation__what { margin: 0; font-weight: 700; color: var(--ink); }
.wb-situation label { display: grid; gap: .2rem; margin: 0; }
.wb-situation__mobile { font-size: .8rem; font-weight: 600; color: var(--muted); }
@media (min-width: 720px) {
  .wb-situations__head, .wb-situation { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 7.5rem; column-gap: .9rem; align-items: start; }
  .wb-situations__head { display: grid; padding: 0 .9rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--purple-500); }
  .wb-situation__mobile { display: none; }
  .wb-situation__what { padding-top: .35rem; }
}

.wb-log { display: grid; gap: .6rem; }
.wb-log__head { display: none; }
.wb-log__row { display: grid; gap: .4rem; padding: .8rem .9rem; border-radius: var(--radius-sm); background: var(--purple-50); }
.wb-log__n { margin: 0; font-weight: 700; color: var(--ink); }
.wb-log label { display: grid; gap: .2rem; margin: 0; }
@media (min-width: 720px) {
  .wb-log__head, .wb-log__row { grid-template-columns: 5.5rem repeat(4, minmax(0, 1fr)); column-gap: .6rem; align-items: center; }
  .wb-log__head { display: grid; padding: 0 .9rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-500); }
  .wb-log__head::before { content: ""; }
  .wb-log .wb-situation__mobile { display: none; }
}

.wb-choices { margin: 0; padding: 0; border: 0; min-width: 0; }
.wb-choices legend { padding: 0; margin-bottom: .4rem; font-weight: 700; color: var(--ink); }

.wb-compare-gate { padding: 1rem 1.1rem; border-radius: var(--radius-sm); border: 1px dashed var(--purple-500); background: #fff; }
.wb-compare-gate p { margin: 0 0 .8rem; }
.wb-compare { overflow-x: auto; margin: .4rem 0; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.wb-compare:focus { outline: 2px solid var(--purple-500); outline-offset: 2px; }
.wb-compare__table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.wb-compare__table th, .wb-compare__table td { padding: .6rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.wb-compare__table thead th { background: var(--purple-50); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-900); }
.wb-compare__table tbody th { font-weight: 600; color: var(--ink); min-width: 10rem; }
.wb-compare__table tbody tr:last-child th, .wb-compare__table tbody tr:last-child td { border-bottom: 0; }
.wb-compare__when { display: none; }
.wb-compare__times { display: block; margin-top: .2rem; font-size: .82rem; color: var(--purple-500); font-weight: 600; }
.wb-compare__table--2 td, .wb-compare__table--3 td { min-width: 11rem; }
@media (max-width: 599px) {
  /* on a phone each situation becomes a small block: the situation, then each version under it */
  .wb-compare__table--1 thead, .wb-compare__table--2 thead, .wb-compare__table--3 thead { display: none; }
  .wb-compare__table--1 tr, .wb-compare__table--2 tr, .wb-compare__table--3 tr { display: block; padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .wb-compare__table--1 th, .wb-compare__table--2 th, .wb-compare__table--3 th,
  .wb-compare__table--1 td, .wb-compare__table--2 td, .wb-compare__table--3 td { display: block; border: 0; padding: .25rem .8rem; min-width: 0; }
  .wb-compare__table--2 .wb-compare__when, .wb-compare__table--3 .wb-compare__when { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-500); }
}

.wb-question-card { padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--gradient); color: #fff; }
.wb-question-card__label { margin: 0 0 .2rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.wb-question-card__text { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
.wb-recall-gate { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.wb-breathwork { padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: #fbf0f4; }
.wb-breathwork__title { margin: 0 0 .3rem; font-weight: 700; color: var(--ink); }
.wb-breathwork ul { margin: 0 0 .6rem; padding-left: 1.2rem; }
.wb-breathwork p { margin: 0; }

.wb-savebar {
  position: sticky; z-index: 5; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + .5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem;
  margin-top: 1.25rem; padding: .8rem 1rem; border-radius: var(--radius); background: rgba(255, 255, 255, .96);
  border: 1px solid var(--purple-100); box-shadow: var(--shadow-md); backdrop-filter: blur(6px);
}
@media (min-width: 880px) { .wb-savebar { bottom: 1rem; } }
/* The participant's workbook: one line that stays in view while writing, and the "ready" button at the end of the part. */
.wb-savebar--slim { flex-wrap: nowrap; gap: .6rem; margin-top: 1rem; padding: .45rem .9rem; border-radius: 999px; }
.wb-savebar--slim .wb-savebar__status { flex: 1 1 auto; min-width: 0; font-size: .82rem; line-height: 1.35; }
.wb-savebar--slim [data-workbook-status]:not(:empty) { font-weight: 600; color: var(--ink); }
.wb-savebar--slim [data-workbook-status].is-problem { color: var(--raspberry-dark); }
.wb-savebar--slim [data-workbook-status]:not(:empty) + .wb-savebar__private::before { content: " \00b7  "; }
.is-autosaving .wb-savebar--slim [data-workbook-save] { display: none; }
.is-autosaving .wb-savebar--slim.is-problem [data-workbook-save] { display: inline-flex; flex: none; }
.wb-ready { display: grid; justify-items: start; gap: .7rem; margin-top: 1.6rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--purple-50); }
.wb-ready__text { margin: 0; font-size: .95rem; }
.wb-ready__text .icon { width: 1.1em; height: 1.1em; vertical-align: -.15em; color: var(--purple-900); }
/* Integration exercises (decision 65): the participant's page, the lead's choices, the steps in the editor */
.exercise-time { margin: 0; color: var(--muted); font-size: .92rem; }
.exercise-time .icon { width: 1em; height: 1em; vertical-align: -.12em; }
.exercise-talk { background: var(--purple-50); border-color: var(--purple-100); }
.exercise-wipe { margin-top: 1.25rem; text-align: right; }
.exercise-choice__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem .8rem; }
.exercise-choice__head h2 { margin: 0; }
.exercise-choice__date { max-width: 16rem; }
.exercise-step-edit { padding-top: 1rem; border-top: 1px solid var(--line); }
.exercise-step-edit .eyebrow { margin: 0; }
.wb-savebar__status { margin: 0; flex: 1 1 14rem; font-size: .9rem; color: var(--muted); }
.wb-savebar__status.is-problem { color: var(--raspberry-dark); font-weight: 600; }
.wb-savebar__buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.wb-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.wb-pager a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }

.wb-read-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin: 0 0 1rem; }
.wb-read h2 { color: var(--purple-900); }
.wb-read__heading { margin: 1.5rem 0 .2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-500); }
.wb-qa { margin: .6rem 0 0; }
.wb-qa__q { margin: 0 0 .2rem; font-weight: 700; color: var(--ink); }
.wb-qa__a { padding: .55rem .8rem; border-left: 3px solid var(--purple-100); background: #fcfbfe; border-radius: 0 10px 10px 0; color: var(--ink); white-space: normal; }
.wb-qa__a--empty { color: var(--muted); font-style: italic; }
.wb-qa__note { margin: .3rem 0 0; font-size: .9rem; color: var(--muted); }
.wb-qa__list { margin: 0; padding-left: 1.3rem; display: grid; gap: .2rem; color: var(--ink); }

.fac-list { display: grid; gap: 1rem; }
.fac-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.card + .fac-card, .fac-card + .fac-card { margin-top: 0; }
.fac-card__main { flex: 1 1 18rem; }
.fac-card h2 { margin: 0; font-size: 1.25rem; }
.fac-card p { margin: .25rem 0 0; }
.fac-parts { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; gap: .25rem; }
.fac-parts__item {
  display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; font-size: .8rem; font-weight: 700;
  color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); background: #fff;
}
.fac-parts__item.is-writing { background: linear-gradient(90deg, #f1d7a8 50%, #fff 50%); color: #7a4b00; box-shadow: inset 0 0 0 2px #f1d7a8; }
.fac-parts__item.is-ready { background: #1d6b41; color: #fff; box-shadow: none; }
.fac-sessions { margin: 0; padding-left: 0; list-style: none; display: grid; gap: .7rem; }
.fac-sessions li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.fac-sessions__parts { display: flex; flex-wrap: wrap; gap: .3rem; flex-basis: 100%; }
.fac-highlight { border: 1px solid var(--purple-100); }
.fac-highlight h2 { color: var(--purple-900); }
.fac-highlight .wb-question-card__text { color: var(--purple-900); }
.admin-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.admin-parts li { display: flex; align-items: center; gap: .6rem; }
.admin-convo { margin: 0; border: 1px solid rgba(56, 7, 159, .06); }
.admin-convo legend { padding: 0 .3rem; }
.admin-convo + .admin-convo { margin-top: 1rem; }

@media print {
  .wb-savebar, .wb-parts, .wb-pager, .wb-compare-gate, .wb-recall-gate { display: none !important; }
  .wb-question-card { background: none; color: var(--ink); border: 2px solid var(--purple-100); }
  .wb-question-card__label { color: var(--muted); }
  .wb-compare { overflow: visible; border: 0; }
  .convo-part, .wb-situation, .wb-log__row { background: none; border: 1px solid var(--line); }
}

/* Booking the conversations (book.php, conversation.php, facilitate-settings.php) ------------------------------------ */
.convo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .6rem 0 0; }
.booking-when { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0; }
.booking-when .icon { width: 1.1em; height: 1.1em; color: var(--purple-500); }
.slot-days { display: grid; gap: 1rem; }
.slot-day { margin: 0; padding: 0; border: 0; min-width: 0; }
.slot-day legend { padding: 0; margin-bottom: .45rem; font-weight: 700; color: var(--ink); }
.slot-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.slot { position: relative; cursor: pointer; }
.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 4.6rem; min-height: 44px; padding: .4rem .9rem;
  border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--purple-100); color: var(--purple-900);
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.slot:hover span { box-shadow: inset 0 0 0 2px var(--purple-500); }
.slot input:checked + span { background: var(--purple-900); color: #fff; box-shadow: none; }
.slot input:focus-visible + span { outline: 3px solid var(--purple-500); outline-offset: 2px; }
.hours-grid { display: grid; gap: .6rem; }
.hours-day { display: grid; gap: .4rem; margin: 0; padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--purple-50); }
.hours-day__name { margin: 0; font-weight: 700; color: var(--ink); }
.hours-block { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.hours-block label { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-size: .92rem; color: var(--muted); }
.hours-block { flex-wrap: nowrap; }
.hours-block .input--sm { width: 6.6rem; padding-inline: .55rem; }
@media (min-width: 600px) {
  .hours-day { grid-template-columns: 7rem 1fr; align-items: center; column-gap: 1rem; }
  .hours-day__name { grid-row: 1 / span 2; }
  .hours-block { grid-column: 2; flex-wrap: nowrap; }
}
.fac-booking { margin-bottom: 1.25rem; }
.fac-upcoming { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.fac-upcoming li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .8rem; border-radius: var(--radius-sm); background: var(--purple-50); }

/* The facilitator's side (facilitate-session.php, facilitate-manual.php, the escalation pages) -------------------------- */
.chip--alert { background: #fde6ee; color: #9c2a52; }
.fac-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1.25rem; }
.fac-links .chip { margin-left: .3rem; }
.fac-alert { margin-bottom: 1.25rem; border: 1px solid #f3c1d1; background: #fff7fa; }
.fac-alert h2 { color: var(--raspberry-dark); }
.fac-upcoming__actions { display: inline-flex; flex-wrap: wrap; gap: .3rem; }
.fac-sessions__link { font-weight: 600; font-size: .92rem; }
.fs-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
#hour, #readback, #earlier, #note { scroll-margin-top: calc(var(--header-h) + 1rem); }
.fs-toc { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding: .8rem 1.1rem; font-weight: 600; }
.fs-hour .guide-lead { margin-top: 0; }
.fg-h3, .fs-hour h3 { margin: 1.4rem 0 .2rem; color: var(--purple-900); font-size: 1.1rem; font-weight: 700; }
.fg-table-wrap { margin: .4rem 0 .2rem; }
.fg-table td, .fg-table th { vertical-align: top; }
.fg-table__first { white-space: nowrap; font-weight: 700; color: var(--purple-900); font-variant-numeric: tabular-nums; }
.fg-table--minutes td:first-child, .fg-table--minutes th:first-child { width: 4.5rem; }
.fg-box { margin: .2rem 0; padding: .75rem 1rem; border-radius: var(--radius-sm); border-left: 4px solid var(--purple-500); background: var(--purple-50); }
.fg-box p { margin: 0; }
.fg-box p + p, .fg-box ul { margin-top: .3rem; }
.fg-box ul { margin-bottom: 0; padding-left: 1.2rem; display: grid; gap: .2rem; }
.fg-box__label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-500); }
.fg-box--say { border-left-color: #1d6b41; background: #eef7f1; }
.fg-box--say .fg-box__label { color: #1d6b41; }
.fg-box--dont { border-left-color: #b06a00; background: #fdf4e3; }
.fg-box--dont .fg-box__label { color: #8a4b00; }
.fg-box--rule { border-left-color: var(--purple-900); background: #f3effb; }
.fg-box--watch { border-left-color: #1d5a8a; background: #edf5fb; }
.fg-box--watch .fg-box__label { color: #1d5a8a; }
.fg-box--escalate { border-left-color: var(--raspberry); background: #fff3f6; }
.fg-box--escalate .fg-box__label { color: var(--raspberry-dark); }
.fg-box--file { border-left-color: var(--line); background: #faf9fc; }
.fg-box--file .fg-box__label { color: var(--muted); }
.fg-more { margin: .3rem 0; }
.fg-more summary { cursor: pointer; font-weight: 700; color: var(--purple-900); min-height: 44px; display: flex; align-items: center; }
.fg-more .stack { margin-top: .5rem; }
.card.fg-more { padding-top: .6rem; padding-bottom: .6rem; }
.fg-convo { padding-top: 1.2rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.fg-convo h3 { margin: 0; color: var(--purple-900); font-size: 1.2rem; }
.fg-urgent { border: 1px solid #f3c1d1; background: #fff7fa; }
.fg-urgent h2 { color: var(--raspberry-dark); }
.fs-note .field { margin-bottom: .6rem; }
.fs-note .hint { margin: 0; }
.fs-checks { margin: 0; padding: 0; border: 0; min-width: 0; }
.fs-checks legend { font-weight: 700; color: var(--ink); margin-bottom: .2rem; }
.fs-flags { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: 0; }
.fs-flags .choice { align-items: flex-start; min-height: 0; padding: .45rem 0; font-weight: 400; }
.fs-flags .choice input { margin-top: .2rem; flex: none; }
.note-view { display: grid; gap: .6rem; padding-top: .9rem; border-top: 1px solid var(--line); }

/* The ceremony team: cards before Day 1, notes after Day 3 (ceremony.php, ceremony-person.php, facilitate-handover.php) */
.cer-people { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.cer-person { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding: .6rem .8rem; border-radius: var(--radius-sm); background: var(--purple-50); }
.cer-person__name { flex: 1 1 12rem; }
.cer-person__state { display: flex; flex-wrap: wrap; gap: .3rem; }
.cer-retreat + .cer-retreat { margin-top: 1.25rem; }
.card-view { display: grid; gap: .45rem; }
.card-view .wb-qa__q { margin: .5rem 0 0; }
.card-view .wb-qa__q:first-child { margin-top: 0; }
.fac-handover { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin: 0; }
.convo__card { display: flex; align-items: center; gap: .35rem; margin: .35rem 0 0; }
.convo__card .icon { width: 1.05em; height: 1.05em; color: var(--purple-500); flex: none; }
.note-view:first-of-type { padding-top: 0; border-top: 0; }
.note-view__meta { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--purple-500); }
.note-view__checks { margin: 0; }
.note-view__checks p { margin: 0 0 .3rem; }
.fs-timeline { margin: 0; padding-left: 1.2rem; display: grid; gap: .2rem; }
.fs-esc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.fs-esc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin: 0; }
.fs-esc > div { flex: 1 1 16rem; }
.fs-esc p { margin: 0; }
.fs-esc.is-open { border: 1px solid #f3c1d1; }
@media (max-width: 799px) {
  /* the guide's tables: the minutes stay a real table; the others become cards with left-aligned text */
  .fg-table td { display: block; text-align: left; }
  .fg-table td::before { display: block; margin-bottom: .05rem; }
  .fg-table td.fg-table__first::before { display: none; }
  .fg-table--minutes { display: table; }
  .fg-table--minutes tbody { display: table-row-group; }
  .fg-table--minutes tr { display: table-row; padding: 0; }
  .fg-table--minutes td { display: table-cell; padding: .55rem .6rem; border-bottom: 1px solid #f0ebf6; }
  .fg-table--minutes td::before { content: none; }
}
@media print {
  .fs-toc, .fs-note .wb-savebar, .fs-actions { display: none !important; }
  .fg-box { break-inside: avoid; }
}

/* The crisis protocol (crisis-protocol.php, admin/crisis-protocol.php, assets/js/teamdoc.js): pasted text, in the house style */
.team-doc { line-height: 1.6; overflow-wrap: break-word; }
.team-doc > :first-child { margin-top: 0; }
.team-doc > :last-child { margin-bottom: 0; }
.team-doc h2 { margin: 1.8rem 0 .5rem; color: var(--purple-900); font-size: 1.35rem; }
.team-doc h3 { margin: 1.5rem 0 .35rem; color: var(--purple-900); font-size: 1.1rem; font-weight: 700; }
.team-doc h4 { margin: 1.2rem 0 .3rem; color: var(--ink); font-size: 1rem; font-weight: 700; }
.team-doc p { margin: 0 0 .8rem; }
.team-doc ul, .team-doc ol { margin: 0 0 .9rem; padding-left: 1.4rem; display: grid; gap: .25rem; }
.team-doc li > p { margin: 0; }
.team-doc li > ul, .team-doc li > ol { margin: .25rem 0 0; }
.team-doc li::marker { color: var(--purple-500); font-weight: 700; }
.team-doc strong { color: var(--ink); }
.team-doc hr { margin: 1.5rem 0; border: 0; border-top: 1px solid var(--line); }
.team-doc blockquote { margin: 0 0 .9rem; padding: .7rem 1rem; border-left: 3px solid var(--purple-500); background: var(--purple-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.team-doc blockquote p:last-child { margin-bottom: 0; }
.team-doc table { display: block; max-width: 100%; overflow-x: auto; margin: 0 0 1rem; border-collapse: collapse; font-size: .95rem; }
.team-doc td, .team-doc th { padding: .5rem .7rem; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.team-doc th { background: var(--purple-50); color: var(--ink); }
.team-doc td > p, .team-doc th > p { margin: 0; }
.team-doc td > p + p, .team-doc th > p + p { margin-top: .4rem; }
.team-doc a { overflow-wrap: anywhere; }
.team-doc__changed { margin-top: .9rem; }
.teamdoc-old { border: 1px solid var(--purple-100); }
.team-doc--old { padding-top: 1rem; border-top: 1px solid var(--line); }
.teamdoc-toolbar { position: sticky; top: calc(var(--header-h) + .25rem); z-index: 2; display: flex; flex-wrap: wrap; gap: .3rem; margin: .4rem 0 .5rem; padding: .35rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.teamdoc-tool { min-height: 36px; padding: .3rem .75rem; }
.teamdoc-editor { min-height: 22rem; padding: 1rem 1.15rem; background: #fff; border: 1.5px solid #d6cfe3; border-radius: var(--radius-sm); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.teamdoc-editor:hover { border-color: #b9aed1; }
.teamdoc-editor:focus { outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 4px rgba(151, 16, 216, .16); }
.teamdoc-editor[aria-invalid="true"] { border-color: var(--raspberry); }
.teamdoc-editor:empty::before { content: attr(data-placeholder); color: var(--muted); }
.teamdoc-source { min-height: 22rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.teamdoc-actions { align-items: center; }
.teamdoc-status { margin: 0; }
.teamdoc-versions { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.teamdoc-versions li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem; padding: .55rem .8rem; border-radius: var(--radius-sm); background: var(--purple-50); }
@media print {
  .team-doc table { display: table; }
  .team-doc h2, .team-doc h3 { break-after: avoid; }
}

/* ---------- Breathing guides in the Library (templates/breathing.php, assets/js/breathe.js) ---------- */
.bguide {
  --br-accent: #9710d8; --br-wash: rgba(151, 16, 216, .10); --br-ghost: rgba(107, 105, 117, .35);
  --br-hair: rgba(56, 7, 159, .08); --br-muted: #6b6975; --br-line: #ddd2ec;
  display: flex; flex-direction: column; gap: .9rem; margin: .3rem 0 1.2rem;
}
.bguide__panel { background: var(--purple-50); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.bguide__panel--center { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.4rem 1rem 1.1rem; }
.bguide__count { font-size: clamp(48px, 12vw, 72px); font-weight: 300; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.bguide__count[data-hide="true"] { visibility: hidden; }
.bguide__cue { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--br-accent); }
.bguide__sub { font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); min-height: 1.2em; }
.bguide__facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); background: var(--surface); }
.bguide__facts--3 { grid-template-columns: repeat(3, 1fr); }
.bguide__facts div { padding: .55rem .8rem .65rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.bguide__facts div:last-child { border-right: 0; }
.bguide__facts dt { font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.bguide__facts dd { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bguide__facts dd small { font-size: .78rem; font-weight: 600; color: var(--muted); }
@media (max-width: 520px) {
  .bguide__facts:not(.bguide__facts--3) { grid-template-columns: repeat(2, 1fr); }
  .bguide__facts:not(.bguide__facts--3) div:nth-child(2) { border-right: 0; }
  .bguide__facts:not(.bguide__facts--3) div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.bguide__controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.bguide__controls--center { justify-content: center; }
.bguide__controls .btn--primary { min-width: 8.5rem; }
.bguide__controls .btn--outline[aria-pressed="true"] { background: var(--purple-900); color: #fff; }
.bguide__seg { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.bguide__seglabel { display: flex; align-items: center; padding: 0 .75rem; font-size: .64rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); background: var(--purple-50); border-right: 1px solid var(--line); }
.bguide__seg button { appearance: none; border: 0; background: none; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 700; color: var(--muted); padding: .5rem .8rem; min-height: 40px; font-variant-numeric: tabular-nums; }
.bguide__seg button + button { border-left: 1px solid var(--line); }
.bguide__seg button[aria-pressed="true"] { background: var(--purple-900); color: #fff; }
.bguide__seg button:focus-visible { outline: 3px solid var(--purple-500); outline-offset: -3px; }
.bguide__hint { font-size: .8rem; }
@media (hover: none) { .bguide__hint { display: none; } }

/* the box guide inside a longer page ("What to expect", the workbook): a little smaller, centred in the text column */
.bguide--embedded { max-width: 30rem; margin: 1.5rem auto; }
.bguide--embedded[hidden] { display: none; }
.bguide--embedded .brbox__drawing svg { max-width: 320px; }
.bguide--embedded .bguide__controls { justify-content: center; }

/* box breathing */
.brbox__drawing { position: relative; display: grid; place-items: center; padding: clamp(8px, 2.4vw, 18px); }
.brbox__drawing svg { width: 100%; max-width: 380px; height: auto; display: block; }
.brbox__grid { stroke: var(--br-hair); stroke-width: 1; }
.brbox__box { fill: none; stroke: var(--br-line); stroke-width: 1.5; }
.brbox__level { fill: var(--br-wash); }
.brbox__levelline { stroke: var(--br-accent); stroke-width: 1; }
.brbox__trace { fill: none; stroke: var(--br-accent); stroke-width: 3.5; stroke-linecap: round; }
.brbox__marker { fill: var(--br-accent); }
.brbox__corner { fill: var(--surface); stroke: var(--br-line); stroke-width: 1.4; }
.brbox__corner[data-on="true"] { fill: var(--br-accent); stroke: var(--br-accent); }
.brbox__tick { stroke: var(--br-line); stroke-width: 1; }
.brbox__label { font-family: var(--font-display); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; fill: var(--muted); }
.brbox__label[data-on="true"] { fill: var(--br-accent); }
.brbox__readout { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; pointer-events: none; }

/* 4-7-8 breathing */
.br478__stage { position: relative; width: min(74vw, 330px); aspect-ratio: 1; display: grid; place-items: center; --phase: var(--muted); --phase-rgb: 107 105 117; }
.br478__stage[data-phase="in"] { --phase: #9710d8; --phase-rgb: 151 16 216; }
.br478__stage[data-phase="hold"] { --phase: #c8416b; --phase-rgb: 200 65 107; }
.br478__stage[data-phase="out"] { --phase: #38079f; --phase-rgb: 56 7 159; }
.br478__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.br478__track { stroke: var(--br-line); stroke-width: 3; fill: none; stroke-linecap: round; }
.br478__prog { stroke: var(--phase); stroke-width: 3; fill: none; stroke-linecap: round; }
.br478__dot { fill: var(--phase); }
.br478__halo { fill: rgb(var(--phase-rgb) / .18); }
.br478__disc { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; transform: scale(.55); will-change: transform;
  background: radial-gradient(circle at 50% 42%, rgb(var(--phase-rgb) / .30), rgb(var(--phase-rgb) / .12) 62%, rgb(var(--phase-rgb) / .06) 100%);
  border: 1px solid rgb(var(--phase-rgb) / .34); }
.br478__glow { position: absolute; width: 96%; aspect-ratio: 1; border-radius: 50%; opacity: 0; filter: blur(6px); will-change: opacity;
  background: radial-gradient(circle, rgb(var(--phase-rgb) / .22), transparent 66%); }
.br478__readout { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.br478__readout .bguide__count[data-hide="true"] { display: none; }
.br478__stage .bguide__cue { color: var(--phase); }
.br478__legend { display: flex; width: 100%; max-width: 360px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.br478__seg { flex: 0 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: .45rem .25rem .5rem; border-right: 1px solid var(--line); transition: background .3s ease; }
.br478__seg:last-child { border-right: 0; }
.br478__seg--in { flex-grow: 4; --seg: #9710d8; --seg-rgb: 151 16 216; }
.br478__seg--hold { flex-grow: 7; --seg: #c8416b; --seg-rgb: 200 65 107; }
.br478__seg--out { flex-grow: 8; --seg: #38079f; --seg-rgb: 56 7 159; }
.br478__n { font-size: 1.2rem; font-weight: 300; line-height: 1.1; color: var(--seg); }
.br478__t { font-size: .62rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.br478__seg[data-on="true"] { background: rgb(var(--seg-rgb) / .12); }
.br478__seg[data-on="true"] .br478__t { color: var(--seg); }
.br478__rounds { display: flex; align-items: center; gap: .55rem; font-size: .82rem; color: var(--muted); }
.br478__dots { display: flex; gap: 5px; }
.br478__dots i { display: block; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--br-line); transition: background .3s ease, border-color .3s ease; }
.br478__dots i[data-on="true"] { background: var(--purple-900); border-color: var(--purple-900); }
.br478__note { margin: 0; min-height: 1.2em; font-size: .82rem; color: var(--muted); }

/* coherent breathing */
.brcoh__recorder { background: var(--surface); }
.brcoh__cuerow { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem; padding: 1rem clamp(.9rem, 3vw, 1.4rem) .2rem; }
.brcoh__cue { font-family: var(--font-display); font-size: clamp(1.6rem, 5.4vw, 2.3rem); font-weight: 300; line-height: 1.05; color: var(--ink); }
.brcoh__wave { display: block; width: 100%; height: clamp(170px, 29vh, 230px); }
.brcoh__progress { position: relative; height: 3px; background: var(--br-hair); }
.brcoh__bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--br-accent); transition: width .25s linear; }
@media (prefers-reduced-motion: reduce) { .br478__seg, .br478__dots i, .brcoh__bar { transition: none; } }

/* pranayama guides (one shared guide: alternate nostril, extended exhale, full yogic breath, ujjayi) */
.brpace__top { display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: 1.3rem 1rem 1rem; }
.brpace__stage { position: relative; width: min(70vw, 300px); aspect-ratio: 1; display: grid; place-items: center; --phase: var(--muted); --phase-rgb: 107 105 117; }
.brpace__stage[data-phase="in"] { --phase: #9710d8; --phase-rgb: 151 16 216; }
.brpace__stage[data-phase="out"] { --phase: #38079f; --phase-rgb: 56 7 159; }
.brpace__stage[data-phase="hold"] { --phase: #c8416b; --phase-rgb: 200 65 107; }
.brpace__stage[data-phase="pause"] { --phase: #8a8796; --phase-rgb: 138 135 150; }
.brpace__orb { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.brpace__ring { fill: none; stroke: var(--br-line); stroke-width: 1.2; stroke-dasharray: 3 5; }
.brpace__ring--full { stroke-dasharray: none; stroke-width: 1.5; }
.brpace__fill { fill: rgb(var(--phase-rgb) / .16); stroke: rgb(var(--phase-rgb) / .7); stroke-width: 2.5; }
.brpace__readout { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 0 2.6rem; }
.brpace__readout .bguide__count[data-hide="true"] { display: none; }
.brpace__stage .bguide__cue { color: var(--phase); }
.brpace__nostrils { display: flex; gap: .7rem; }
.brpace__nostril { display: flex; align-items: center; gap: .45rem; min-width: 8.2rem; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .82rem; font-weight: 800; color: var(--muted); transition: border-color .25s ease, color .25s ease; }
.brpace__nostril small { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.brpace__nose { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--br-line); flex: none; transition: background .25s ease, border-color .25s ease; }
.brpace__nostril[data-state="open"] { border-color: #9710d8; color: var(--ink); }
.brpace__nostril[data-state="open"] .brpace__nose { background: #9710d8; border-color: #9710d8; }
.brpace__nostril[data-state="closed"] .brpace__nose { background: repeating-linear-gradient(135deg, var(--br-line) 0 2px, transparent 2px 4px); }
.brpace__cycle { position: relative; display: flex; gap: 3px; height: 10px; margin: 0 1rem 1rem; }
.brpace__piece { flex: 1 1 0; border-radius: 999px; }
.brpace__piece--in { background: rgba(151, 16, 216, .45); }
.brpace__piece--out { background: rgba(56, 7, 159, .35); }
.brpace__piece--hold { background: rgba(200, 65, 107, .45); }
.brpace__piece--pause { background: rgba(138, 135, 150, .35); }
.brpace__marker { position: absolute; top: -4px; left: 0; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .brpace__nostril, .brpace__nose { transition: none; } }

/* Help (help.php, the knowledge base) */
.help-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .86rem; font-weight: 600; color: var(--purple-500); text-decoration: none; white-space: nowrap; }
.help-link .icon { width: 16px; height: 16px; }
.help-link:hover { text-decoration: underline; }
/* One place for the Help link: right after the title of the page, on the same line (a long title wraps and takes it along). */
h1:has(+ .help-link) { display: inline-block; margin-right: .65rem; vertical-align: baseline; }
h1 + .help-link { vertical-align: baseline; position: relative; top: -.2em; }
.page-head > h1:has(+ .help-link) { margin-right: 0; }
.page-head > .help-link { top: 0; align-self: flex-end; margin: 0 auto .55rem -.35rem; }
.hero .help-link { color: rgba(255, 255, 255, .88); margin: -.2rem 0 .4rem; }
.hero .help-link:hover { color: #fff; }
.kb-search { display: flex; gap: .6rem; margin: 1rem 0 1.5rem; }
.kb-search .input { flex: 1 1 auto; }
.kb-found { margin: -.5rem 0 1.2rem; color: var(--muted); }
.kb-group { margin-top: 1.8rem; }
.kb-group h2 { font-size: 1.15rem; margin: 0 0 .7rem; }
.kb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.kb-item { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.kb-item:hover, .kb-item:focus-visible { border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(151, 16, 216, .1); }
.kb-item__title { font-weight: 700; }
.kb-item__summary { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.kb-item__for { align-self: flex-start; margin-top: .2rem; }
.kb-article h1 { margin: 0 0 .5rem; line-height: 1.15; }
.kb-article .lead-text { color: var(--muted); margin-top: 0; }
.kb-meta { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .5rem; }
.kb-links { margin: 0; padding-left: 1.2rem; }
.kb-links li + li { margin-top: .3rem; }
@media print {
  .site-header, .admin-bar, .admin-side, .admin-tabs, .site-footer, .back-link, .kb-meta a, .help-link { display: none !important; }
  .layout-admin .main { margin-left: 0; }
  .kb-article { box-shadow: none; border: 0; }
}

/* Retreats (admin/retreats.php): the start date, inline in the table */
.retreat-date { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.retreat-date .input { width: auto; min-width: 10.5rem; }
/* Admin, one retreat (admin/retreat.php): the team, one row per team member with the role at this retreat; adding somebody */
.team-pick { list-style: none; margin: 0 0 1rem; padding: 0; }
.team-pick li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.team-pick li:last-child { border-bottom: 0; }
.team-pick label { font-weight: 600; color: var(--ink); }
.team-pick .sub { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.team-pick .select { width: auto; min-width: 12.5rem; }
.retreat-add .input { width: auto; flex: 1 1 16rem; max-width: 26rem; }
.retreat-add-title { margin-top: 1.5rem; }
/* My retreats: the team of a retreat, and for a team member the people of a retreat they work at */
.retreat-team { margin: .1rem 0 .6rem; font-size: .95rem; }
.name-list { list-style: none; margin: .4rem 0 0; padding: 0; columns: 2 12rem; column-gap: 1.5rem; font-size: .95rem; }
.name-list li { break-inside: avoid; padding: .1rem 0; }

/* The participant form (admin/participant-edit.php): retreats are picked from a list; typing one is a step further away. */
.retreats-now { margin: 0 0 .7rem; font-size: .95rem; }
.retreats-now .label { display: block; margin-bottom: .2rem; }
.retreats-typed { margin: -.5rem 0 1.15rem; }
.retreats-typed summary { display: inline-block; padding: .3rem 0; cursor: pointer; color: var(--purple-900); font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: .25em; }
.retreats-typed[open] summary { margin-bottom: .7rem; }

/* Research (research.php, researcher.php): the study of the UMCG. The text somebody agrees to stands in its own box, so it
   reads as what it is: a statement, word for word. */
.research-consent { padding: 1rem 1.15rem; background: var(--purple-50); border-left: 4px solid var(--purple-500); border-radius: var(--radius-sm, 12px); font-size: .95rem; }
.research-consent p { margin: 0 0 .5rem; }
.research-consent ul { margin: 0; padding-left: 1.2rem; }
.research-consent li + li { margin-top: .3rem; }
.research-list { margin: 0; padding-left: 1.2rem; }
.research-list li + li { margin-top: .55rem; }
.research-decline { margin-top: .9rem; }
.research-status { border-left: 5px solid var(--purple-500); }
.research-contacted { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; margin: 0; }
.research-table tbody th { padding: .9rem 1rem; font: inherit; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink); background: transparent; border-bottom: 1px solid var(--line); }
.research-table tr.is-muted td, .research-table tr.is-muted th { color: var(--muted); }

/* Account: four tabs instead of one long page. assets/js/app.js (part 19) opens the group named in the address
   (account.php#account-login, or a link to one part such as account.php#passkeys) and marks the page "is-ready".
   Until then, and without JavaScript, the address itself decides through :target, so nothing jumps while the page loads.
   A browser that knows neither simply shows all groups below each other, with the tabs as links to them.
   "Log out" stays below every tab. */
.account-tabs { margin-bottom: 1.2rem; }
.account-tabs .filter { flex: 1 1 auto; text-align: center; white-space: nowrap; }
.account-group + .account-group, .account-groups + .card { margin-top: 1.25rem; }
.card.stack[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
.account-group { scroll-margin-top: calc(var(--header-h) + 5rem); }      /* the tabs stay in view above the group */
.account-page.is-ready .account-group { display: none; }
.account-page.is-ready .account-group.is-open { display: block; }
.account-page.is-ready .account-tabs .filter[aria-current] { background: var(--purple-50); border-color: var(--purple-500); color: var(--purple-900); }
@supports selector(:has(*)) {
  .account-page:not(.is-ready) .account-group { display: none; }
  .account-page:not(.is-ready) .account-groups:not(:has(:target)) > .account-group:first-child,
  .account-page:not(.is-ready) .account-group:target,
  .account-page:not(.is-ready) .account-group:has(:target) { display: block; }
  .account-page:not(.is-ready):not(:has(.account-groups :target)) .account-tabs .filter:first-child,
  .account-page:not(.is-ready):has(#account-you:target, #account-you :target) .account-tabs [href="#account-you"],
  .account-page:not(.is-ready):has(#account-reminders:target, #account-reminders :target) .account-tabs [href="#account-reminders"],
  .account-page:not(.is-ready):has(#account-login:target, #account-login :target) .account-tabs [href="#account-login"],
  .account-page:not(.is-ready):has(#account-privacy:target, #account-privacy :target) .account-tabs [href="#account-privacy"] {
    background: var(--purple-50); border-color: var(--purple-500); color: var(--purple-900);
  }
}
@media (max-width: 479px) {
  .account-tabs { gap: .3rem; }
  .account-tabs .filter { padding-inline: .5rem; }
}
@media print {
  .account-tabs { display: none; }
  .account-group { display: block !important; }
}

/* 30. Lists, filters and tabs of the administrator area (after the tables and chips they build on) ------------- */
/* Lists in the administrator area. A row leads to its page: the name is the link, and a click anywhere on the row follows it
   (app.js, part 21). What else can be done with a row is in its menu, the button with the three dots at the end. */
.table tr[data-href] { cursor: pointer; }
.table tr[data-href]:hover td { background: #fcfaff; }
.table a.strong { text-decoration: none; }
.table a.strong:hover { text-decoration: underline; }
.table-wrap--menus { overflow: visible; }
.table-wrap--menus .table { border-collapse: separate; border-spacing: 0; }
.table-wrap--menus .table thead th:first-child { border-top-left-radius: var(--radius); }
.table-wrap--menus .table thead th:last-child { border-top-right-radius: var(--radius); }
.table-wrap--menus .table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius); }
.table-wrap--menus .table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius); }
.row-menu { position: relative; display: inline-block; }
.row-menu > summary { list-style: none; min-width: 40px; padding-inline: .5rem; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu > summary .icon { width: 22px; height: 22px; }
.row-menu[open] > summary { background: var(--purple-100); }
.row-menu__panel { position: absolute; right: 0; top: calc(100% + .3rem); z-index: 20; min-width: 12.5rem; padding: .4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); text-align: left; cursor: default; }
.row-menu__panel form { margin: 0; }
.row-menu__panel .profile-menu__link { white-space: nowrap; }
.row-menu__panel .profile-menu__link--danger, .row-menu__panel .profile-menu__link--danger .icon { color: var(--raspberry-dark); }
.row-menu__sep { margin: .3rem 0 0; padding-top: .3rem; border-top: 1px solid var(--line); }
@media (max-width: 799px) { .row-menu__panel { left: 0; right: auto; } }

/* Filters of a list behind one button (the participants): the choices open in a small panel under it; what is chosen
   shows as chips next to it, which can be taken away one by one. */
.filter-panel { position: relative; }
.filter-panel > summary { list-style: none; }
.filter-panel > summary::-webkit-details-marker { display: none; }
.filter-panel[open] > summary { background: var(--purple-50); border-color: var(--purple-500); }
.filter-panel__body { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 20; width: min(21rem, calc(100vw - 2rem)); display: grid; gap: .7rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.filter-panel__body .field { margin: 0; }
@media (min-width: 1180px) { .filter-panel__body { left: 0; right: auto; } }       /* there the button is the first thing in the bar */
@media (max-width: 799px) {
  .filter-panel[open] { flex: 1 1 100%; }        /* closed it sits next to Search; open it takes the row for its choices */
  .filter-panel__body { position: static; width: auto; margin-top: .6rem; box-shadow: none; }
}
.filter-count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; margin-left: .15rem; padding: 0 .3rem; border-radius: 999px; background: var(--purple-900); color: #fff; font-size: .75rem; }
.chip--filter { display: inline-flex; align-items: center; gap: .35rem; background: var(--purple-50); color: var(--purple-900); box-shadow: inset 0 0 0 1px var(--purple-100); text-decoration: none; }
.chip--filter:hover { background: var(--purple-100); color: var(--purple-900); }
.chip--filter .icon { width: .95em; height: .95em; }
.toolbar__chips { display: contents; }           /* the chips stay in the row of the toolbar; the span is there for app.js, part 26 */
.search--list { flex: 1 1 320px; max-width: 34rem; }
.search--list .input { height: 2.75rem; border-radius: 999px; font-size: 1rem; }

/* A long page in parts (the administrator's Conversations): tabs above it, one part at a time (app.js, part 22). Without
   JavaScript the parts simply follow each other and the tabs jump to them. */
.tabbed__tabs { margin-bottom: 1.2rem; }
.tabbed.is-ready .tabbed__panel { display: none; }
.tabbed.is-ready .tabbed__panel.is-open { display: block; }
.tabbed.is-ready .tabbed__tabs .filter[aria-current] { background: var(--purple-50); border-color: var(--purple-500); color: var(--purple-900); }
.tabbed__panel { scroll-margin-top: calc(var(--header-h) + 1rem); }
.tabbed.is-ready .tabbed__panel { scroll-margin-top: calc(var(--header-h) + 13rem); }      /* opening a part by its address keeps the title and the tabs in view */
.tabbed:not(.is-ready) .tabbed__panel + .tabbed__panel { margin-top: 2rem; }
@media print { .tabbed__tabs { display: none; } .tabbed__panel { display: block !important; } }

/* 31. The participant side: the small menu on a session card (the calendar, cancelling), next to its one button ---------- */
.activity__foot .activity__actions { gap: .4rem; }
.card-menu { position: relative; }
.card-menu > summary { list-style: none; min-width: 40px; padding-inline: .5rem; }
.card-menu > summary::-webkit-details-marker { display: none; }
.card-menu > summary .icon { width: 22px; height: 22px; }
.card-menu[open] > summary { background: var(--purple-100); }
.card-menu__panel { position: absolute; right: 0; top: calc(100% + .35rem); z-index: 20; min-width: 13rem; padding: .4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); text-align: left; }
.card-menu__panel form { margin: 0; }
.card-menu__panel .profile-menu__link { white-space: nowrap; }
.card-menu__panel .profile-menu__link--danger, .card-menu__panel .profile-menu__link--danger .icon { color: var(--raspberry-dark); }


/* 31. Other calendars that count as busy (facilitate-settings.php) */
.calendar-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.calendar-row__id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; overflow-wrap: anywhere; min-width: 0; }
.calendar-row form { flex: none; }
.calendar-add { display: flex; gap: .6rem; flex-wrap: wrap; }
.calendar-add .input { flex: 1 1 18rem; min-width: 0; }

/* 32. The video while in it (sessions, circles, the one-to-one conversations): as wide as the window allows (up to 1400px,
   centred on the page) and as tall as the screen; "Full screen" lets it fill the whole screen (assets/js/app.js part 23). */
.call { --call-gap: 1.5rem; }
.call__frame { scroll-margin-top: calc(var(--header-h) + .75rem); }
.call__actions { flex-wrap: wrap; gap: .5rem; }
.call.is-in-call { margin-inline: calc(50% - min(50vw - var(--call-gap), 700px)); }
.call.is-in-call .call__iframe { height: calc(100vh - var(--header-h) - 6.5rem); height: calc(100dvh - var(--header-h) - 6.5rem); min-height: 420px; }
@media (max-width: 879px) {
  .call.is-in-call .call__iframe { height: calc(100vh - var(--header-h) - var(--bottom-nav-h) - 6.5rem); height: calc(100dvh - var(--header-h) - var(--bottom-nav-h) - 6.5rem); min-height: 360px; }
}
@media (max-width: 640px) { .call { --call-gap: .5rem; } }
.call.is-focus, .call:fullscreen {
  position: fixed; inset: 0; z-index: 100; margin: 0; width: auto; height: 100%;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .5rem;
  padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom, 0px)); background: #17112a;
}
.call.is-focus .call__frame, .call:fullscreen .call__frame { border-radius: 10px; min-height: 0; }
.call.is-focus .call__iframe, .call:fullscreen .call__iframe { height: 100%; min-height: 0; }
.call.is-focus .call__actions .btn, .call:fullscreen .call__actions .btn { color: #fff; border-color: rgba(255, 255, 255, .55); background: transparent; }
html.has-call-focus, html.has-call-focus body { overflow: hidden; }

/* The request form for a retreat (apply.php) and the applicant's page (my-booking.php): the login card, wider. */
.auth-card--wide { width: min(100%, 720px); }
.apply-retreat { margin: 0 0 1.4rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--purple-50); color: var(--ink); }
.apply-retreat strong { display: block; font-size: 1.15rem; }
.apply-options { display: grid; gap: .6rem; }
.apply-option { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.apply-option input { margin-top: .2rem; width: 1.2rem; height: 1.2rem; accent-color: var(--purple-900); flex: none; }
.apply-option:has(input:checked) { border-color: var(--purple-700); background: var(--purple-50); }
.apply-option__text { display: grid; gap: .1rem; }
.apply-option__title { font-weight: 700; color: var(--ink); }
.apply-option__extra { white-space: nowrap; }
.apply-option__about { font-size: .9rem; color: var(--muted); }
.apply-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.apply-dates a { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.apply-dates a:hover, .apply-dates a:focus-visible { border-color: var(--purple-700); background: var(--purple-50); }
.apply-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.booking-steps { margin: 1.2rem 0 0; padding-left: 1.2rem; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; margin: 0 0 1rem; }
.details dt { color: var(--muted); }
.details dd { margin: 0; color: var(--ink); font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .95rem; }
.timeline li { padding-left: .9rem; border-left: 2px solid var(--purple-100); }

/* The application form (my-booking.php) and the screening group (screening.php, screening-booking.php). */
.apply-progress { display: flex; align-items: center; gap: .8rem; margin: 0 0 .6rem; font-size: .9rem; color: var(--muted); }
.apply-progress progress { flex: 1; height: .5rem; accent-color: var(--purple-700); }
.apply-choices { display: grid; gap: .15rem; }
.apply-choices--row { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; }
.apply-choices .choice { align-items: flex-start; font-weight: 500; }
.apply-choices .choice input { margin-top: .15rem; }
.apply-followup { margin: 0 0 .3rem; }
.apply-steps { margin: 0 0 1.2rem; padding-left: 1.4rem; display: grid; gap: .2rem; }
[data-show-if][hidden] { display: none; }
.message { margin: 0 0 .8rem; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--purple-50); }
.message p { margin: 0 0 .4rem; }
.message p:last-child { margin-bottom: 0; }
.message--answer, .message--mine { background: #fff; border: 1.5px solid var(--line); }
.message--note { background: #fbf6e9; }
.message__meta { font-size: .85rem; color: var(--muted); }
.answer-step { margin: 1.4rem 0 .4rem; font-size: 1rem; }
.answers { display: grid; gap: .2rem; margin: 0; }
.answers dt { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.answers dd { margin: 0; color: var(--ink); }
.answer-list { margin: .1rem 0 0; padding-left: 1.1rem; }
.disclosure { border-top: 1px solid var(--line); padding-top: .7rem; }
.disclosure > summary { cursor: pointer; font-weight: 700; color: var(--purple-900); min-height: 44px; display: flex; align-items: center; }
.disclosure[open] > summary { margin-bottom: .6rem; }

/* Paying (my-booking.php, part 1 of phase 3). */
.pay-options { margin: 0 0 1rem; padding-left: 1.2rem; }
.pay-details { padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: var(--purple-50); }

/* The online check-in and the waiver (my-booking.php, part 1 of phase 4). */
.before-retreat { margin: 1.4rem 0; padding: 1rem 1.2rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.before-retreat h2 { margin: 0 0 .6rem; font-size: 1.1rem; }
.before-retreat__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.before-retreat__list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.before-retreat__list .btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 520px) { .before-retreat__list li { flex-direction: column; align-items: flex-start; gap: .4rem; } }
.before-retreat__list li.is-done span::before { content: "✓ "; color: var(--purple-700); font-weight: 700; }
.waiver { max-height: 28rem; overflow-y: auto; margin: 0 0 1.2rem; padding: 1rem 1.2rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: .95rem; }
.waiver__title { margin-top: 0; font-size: 1.15rem; }
.waiver h3 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
.waiver ul { padding-left: 1.2rem; }

/* The team overviews of a retreat (retreat-overview.php, part 1 of phase 5). */
.overview-nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 1rem 0 0; font-size: .95rem; }
.overview-table td { vertical-align: top; }
.overview-person { padding: 1rem 0; border-top: 1px solid var(--line); }
.overview-person:first-of-type { border-top: 0; padding-top: 0; }
.overview-person h3 { margin: 0 0 .6rem; font-size: 1.1rem; }
.overview-person h4.answer-step { font-size: .95rem; }
@media print {
  .overview-page .card { box-shadow: none; border: 0; padding: 0; }
  .overview-section { break-before: page; }
  .overview-section:first-of-type { break-before: auto; }
  .overview-person { break-inside: avoid-page; }
  .overview-table th, .overview-table td { font-size: 10pt; padding: 4px 6px; }
}


/* Admin, Emails (admin/emails.php, admin/email.php, admin/email-log.php) */
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.chip-row .chip { text-decoration: none; }
.email-frame { display: block; width: 100%; height: 640px; border: 1px solid var(--line); border-radius: var(--radius); background: #f5f1fa; }
.email-plain summary, .mail-fill summary { cursor: pointer; color: var(--purple-700, #38079F); font-weight: 600; }
.email-plain pre, .email-version { white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto; margin: .6rem 0 0; padding: .9rem 1rem; background: var(--purple-50); border-radius: 12px; font-size: .85rem; line-height: 1.5; }
.mail-fill code { font-size: .9rem; }
.mail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 1rem; }
.mail-grid .field { margin: 0; }
@media (max-width: 600px) { .email-frame { height: 520px; } }

/* My retreats (my-retreats.php): one card per retreat, the coming one featured; in each card rows that lead on, like a
   grouped list: a tinted icon, a title with one line under it, a chevron. Separators start where the text starts. */
.mr-section { margin-top: 2.75rem; }
.mr > .mr-section:first-child { margin-top: .25rem; }
.mr-section__head { margin: 0 0 .9rem; padding-inline: .3rem; }
.mr-section__head h2 { margin: 0; font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.mr-section__lead { margin: .3rem 0 0; max-width: 60ch; color: var(--muted); font-size: .95rem; }
.mr-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.mr-card + .mr-card { margin-top: 1rem; }
.mr-card__head { padding: 1.35rem 1.5rem 1.25rem; }
.mr-card__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .4rem; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-500); }
.mr-pill { display: inline-block; padding: .14rem .6rem; border-radius: 999px; background: #fff; border: 1px solid var(--purple-100); color: var(--purple-900); font-size: .76rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.mr-card__titlebar { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.mr-card__title { margin: 0; font-size: 1.2rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.mr-badge { flex: none; margin-top: .1rem; padding: .2rem .65rem; border-radius: 999px; background: var(--purple-50); color: var(--purple-900); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.mr-card__meta { margin: .3rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.mr-card__meta .muted { color: var(--muted); }
.mr-card__meta a { color: var(--ink); text-decoration-color: var(--purple-100); text-underline-offset: 3px; }
.mr-card__meta a:hover { color: var(--purple-700); text-decoration-color: currentColor; }
.mr-card__lead { margin: .8rem 0 0; max-width: 52ch; color: var(--text); }
.mr-card__cta { margin: 1.1rem 0 0; }
.mr-card--next { box-shadow: var(--shadow-md); }
.mr-card--next .mr-card__head { padding: 1.7rem 1.6rem 1.55rem; background: linear-gradient(180deg, var(--purple-50) 0%, #fff 90%); }
.mr-card--next .mr-card__title { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.7rem); }
.mr-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mr-rows > li { position: relative; }
.mr-rows > li + li::before { content: ""; position: absolute; z-index: 1; top: 0; right: 0; left: calc(1.5rem + 36px + .9rem); border-top: 1px solid var(--line); }
.mr-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem; min-height: 64px; padding: .8rem 1.2rem .8rem 1.5rem; color: inherit; text-decoration: none; }
a.mr-row:hover, summary.mr-row:hover { background: var(--purple-50); color: inherit; }
a.mr-row:focus-visible, summary.mr-row:focus-visible { outline: 2px solid var(--purple-500); outline-offset: -3px; border-radius: 4px; }
.mr-tile { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }
.mr-tile .icon { width: 20px; height: 20px; }
.mr-tile--purple { background: var(--purple-100); color: var(--purple-900); }
.mr-tile--raspberry { background: #fbe8ee; color: var(--raspberry-dark); }
.mr-tile--grey { background: #f2eff5; color: var(--muted); }
.mr-tile--sand { background: #f6eee4; color: #8a5a2b; }
.mr-row--people { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.mr-row__text { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.mr-row__title { font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.mr-row__detail { font-size: .9rem; line-height: 1.4; color: var(--muted); }
.mr-row__detail.is-act { font-weight: 700; color: var(--raspberry); }
.mr-row__chevron { width: 18px; height: 18px; color: #bdb5c9; transition: transform .2s ease; }
.mr-row--quiet .mr-row__title { font-weight: 600; color: var(--text); }
.mr-progress { display: flex; gap: 4px; max-width: 210px; margin-top: .5rem; }
.mr-progress__step { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.mr-progress__step.is-done { background: var(--purple-900); }
.mr-progress__step.is-planned, .mr-progress__step.is-now { background: var(--purple-500); }
.mr-progress__step.is-book { background: var(--raspberry); }
.mr-progress__step.is-off { background: #f2eff5; }
details.mr-more > summary { list-style: none; cursor: pointer; }
details.mr-more > summary::-webkit-details-marker { display: none; }
details.mr-more[open] > summary .mr-row__chevron { transform: rotate(90deg); }
.mr-stack { display: inline-flex; align-items: center; }
.mr-stack .avatar { width: 30px; height: 30px; font-size: .8rem; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.mr-stack .avatar + .avatar { margin-left: -10px; }
.mr-people { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .65rem 1rem; margin: 0; padding: .3rem 1.5rem 1.3rem calc(1.5rem + 36px + .9rem); }
.mr-person { display: flex; align-items: center; gap: .55rem; font-size: .95rem; color: var(--ink); }
.mr-names { margin: 0; padding: .3rem 1.5rem 1.3rem calc(1.5rem + 36px + .9rem); }
.mr-empty { margin: 0; padding: 1.2rem 1.5rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); color: var(--muted); }
.mr-notes { margin: 1.1rem .3rem 0; font-size: .87rem; line-height: 1.55; color: var(--muted); }
.mr-notes p { margin: .3rem 0 0; }
.mr-notes a { color: var(--purple-700); }
.mr .lib-list { margin-top: 0; }
@media (max-width: 560px) {
  .mr-card__head, .mr-card--next .mr-card__head { padding: 1.2rem 1.15rem 1.1rem; }
  .mr-row { padding: .75rem 1rem .75rem 1.15rem; gap: .8rem; }
  .mr-rows > li + li::before { left: calc(1.15rem + 36px + .8rem); }
  .mr-people, .mr-names { padding-left: 1.15rem; padding-right: 1.15rem; }
  .mr-card__cta .btn { width: 100%; justify-content: center; }
  .mr-row--people .mr-stack { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mr-row__chevron { transition: none; } }

/* File inputs (Account, photo; the admin forms): the browser's own button made to look like ours */
input[type="file"].input { padding: .45rem .5rem; cursor: pointer; color: var(--muted); }
input[type="file"].input::file-selector-button { margin-right: .85rem; padding: .5rem 1.1rem; border: 1.5px solid var(--purple-700); border-radius: 999px; background: #fff; color: var(--purple-900); font: 700 .9rem var(--font-body); cursor: pointer; transition: background .15s ease; }
input[type="file"].input::file-selector-button:hover { background: var(--purple-50); }


/* Team or participant (templates/header.php, includes/view-mode.php): a segmented control next to the photo */
.mode-switch { display: inline-flex; align-items: center; gap: 2px; margin: 0; padding: 3px; border-radius: 999px; background: #efeaf5; }
.mode-switch__btn { padding: .4rem .9rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 700 .85rem/1.1 var(--font-body); cursor: pointer; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.mode-switch__btn:hover { color: var(--ink); }
.mode-switch__btn.is-active { background: #fff; color: var(--purple-900); box-shadow: 0 1px 2px rgba(37, 22, 63, .12), 0 2px 6px -2px rgba(37, 22, 63, .2); }
.mode-switch__btn:focus-visible { outline: 2px solid var(--purple-500); outline-offset: 2px; }
@media (max-width: 520px) {
  .site-header:has(.mode-switch) .brand__text { display: none; }
  .mode-switch__btn { padding: .38rem .72rem; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .mode-switch__btn { transition: none; } }

/* The Team overview (team-home.php) reuses the cards and rows of My retreats */
.mr-rows--flush { border-top: 0; }
.mr-quiet { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--muted); }
.mr-quiet .icon { width: 18px; height: 18px; color: var(--purple-700); }

/* The shadow run (admin/shadow.php, phase 7 part 1): the retreats in it, both systems side by side, the differences */
.list-tight { margin: .35rem 0 0; padding-left: 1.2rem; }
.list-tight li + li { margin-top: .25rem; }
.plain-list .list-tight li { padding: 0; background: none; border-radius: 0; font-size: inherit; }
.callout.stack > * + * { margin-top: .6rem; }
.warn-text { color: #6a3b00; }
.shadow-retreat { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.shadow-retreat__text { flex: 1 1 18rem; min-width: 0; }
.shadow-retreat__text .sub { display: block; }
.shadow-retreat__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.shadow-compare > h2 { margin-bottom: .15rem; }
.shadow-sides tbody th[scope="row"] { font-weight: 600; text-transform: none; letter-spacing: normal; font-size: .95rem; color: var(--ink); }
.shadow-sides .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shadow-sides tr.is-different > * { background: #fdf2dc; }
@media (max-width: 799px) {        /* three short columns fit on a phone: keep "Side by side" a real table */
  .table.shadow-sides { display: table; width: 100%; }
  .table.shadow-sides thead { display: table-header-group; }
  .table.shadow-sides tbody { display: table-row-group; }
  .table.shadow-sides tr { display: table-row; padding: 0; }
  .table.shadow-sides th, .table.shadow-sides td { display: table-cell; width: auto; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
  .table.shadow-sides td::before { content: none; }
  .table.shadow-sides thead th { font-size: .64rem; letter-spacing: .04em; white-space: normal; padding: .45rem .4rem; }
  .table.shadow-sides th[scope="row"] { padding-left: .7rem; font-size: .9rem; }
}

/* Admin, Emails (admin/emails.php): four figures, a search, filters with the kind icons, and every email as a calm row */
.mail-stats { margin-bottom: 1.5rem; }
.stat--alert { border-top: 5px solid var(--raspberry); }
.mail-find { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .75rem; }
.mail-find .input { flex: 1 1 16rem; max-width: 28rem; }
.mail-find .select { flex: 0 1 15rem; width: auto; }
.mail-filters .filter { display: inline-flex; align-items: center; gap: .35rem; }
.mail-filters .filter .icon { width: 15px; height: 15px; }
.mail-found { margin: 0 0 .25rem; color: var(--muted); font-size: .92rem; }
.mail-overview .mr-section { margin-top: 2rem; }
.mail-group__head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .75rem; }
.mail-group__head .mr-section__lead { flex-basis: 100%; max-width: none; margin-top: .15rem; }
.mail-group__count { color: var(--muted); font-size: .9rem; }
.mail-row .mr-row__title .chip { margin-left: .4rem; vertical-align: 1px; }
.mail-row__to { display: block; margin-top: .1rem; }
.mail-row__end { display: flex; align-items: center; gap: .8rem; }
.mail-row__count { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.mail-row__count strong { color: var(--ink); font-weight: 700; }
.mail-row__count-inline { display: none; }
.icon--inline { width: 1em; height: 1em; vertical-align: -.15em; color: var(--purple-700); }
@media (max-width: 560px) {
  .mail-row__count { display: none; }
  .mail-row__count-inline { display: inline; }
  .mail-find .input { flex-basis: 100%; max-width: none; }
  .mail-find .select { flex: 1 1 0; }
  .mail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .mail-stats .stat { padding: .95rem 1rem; }
  .mail-stats .stat__label { font-size: .66rem; letter-spacing: .08em; }
  .mail-stats .stat__value { font-size: 1.9rem; }
  .mail-stats .stat__detail { font-size: .84rem; }
}

/* Applying in one go (apply.php, my-booking.php; decision 43): your booking, the application form, sent */
.apply-flow { display: flex; gap: .4rem; margin: 0 0 1.2rem; padding: 0; list-style: none; counter-reset: flow; font-size: .85rem; font-weight: 700; color: var(--muted); }
.apply-flow li { flex: 1; display: flex; align-items: center; gap: .45rem; min-width: 0; padding-top: .55rem; border-top: 3px solid var(--line); counter-increment: flow; }
.apply-flow li::before { content: counter(flow); flex: none; display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: #f2eff5; color: var(--muted); font-size: .78rem; }
.apply-flow li.is-done { border-top-color: var(--purple-700); color: var(--purple-900); }
.apply-flow li.is-done::before { content: "✓"; background: var(--purple-100); color: var(--purple-900); }
.apply-flow li.is-current { border-top-color: var(--purple-700); color: var(--ink); }
.apply-flow li.is-current::before { background: var(--purple-700); color: #fff; }
@media (max-width: 420px) { .apply-flow { font-size: .78rem; } .apply-flow li::before { width: 1.25rem; height: 1.25rem; } }

/* The login pages with a side (login.php, verify.php, templates/auth-aside.php): a purple panel with what is inside the
   platform next to the form on a computer; on a phone a short band above it */
.auth-card--split { width: min(100%, 920px); padding: 0; display: grid; overflow: hidden; }
.auth-card--split .auth-card__main { padding: 1.8rem 1.5rem 1.6rem; }
.auth-aside { position: relative; isolation: isolate; overflow: hidden; padding: 1.2rem 1.5rem 1.3rem; color: #fff; background: linear-gradient(150deg, #38079f 0%, #5a0eb0 55%, #7a12c6 100%); }
.auth-aside::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../images/bokeh.svg") right -9rem bottom -6rem / auto 150% no-repeat; opacity: .55; }
.auth-aside__brand { display: flex; align-items: center; gap: .7rem; }
.auth-aside__brand img { width: 34px; height: 34px; filter: brightness(0) invert(1); }
.auth-aside__brand .brand__text { font-size: 1.05rem; color: #fff; }
.auth-aside__brand .brand__light { color: rgba(255, 255, 255, .82); }
.auth-aside__line { margin: .65rem 0 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.auth-aside__list { display: none; }
@media (min-width: 860px) {
  .auth-card--split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 560px; }
  .auth-card--split .auth-card__main { display: flex; flex-direction: column; justify-content: center; padding: 3rem 3rem 2.4rem; }
  .auth-aside { display: flex; flex-direction: column; padding: 2.6rem 2.4rem; }
  .auth-aside__brand img { width: 44px; height: 44px; }
  .auth-aside__brand .brand__text { font-size: 1.2rem; }
  .auth-aside__line { margin-top: auto; font-size: 2.05rem; line-height: 1.15; }
  .auth-aside__list { display: grid; gap: 1.1rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
  .auth-aside__list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: .85rem; align-items: start; }
  .auth-aside__list .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff; }
  .auth-aside__list strong { display: block; font-size: .98rem; color: #fff; }
  .auth-aside__list span { font-size: .9rem; line-height: 1.45; color: rgba(255, 255, 255, .78); }
}
@media (prefers-reduced-transparency: reduce) { .auth-aside::before { display: none; } }

/* Meeting now (circle.php, team-home.php, team-meeting.php; includes/meet-now.php): a meeting that is on, and the start form */
.meet-now { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .85rem; margin: 0 0 1rem; padding: .9rem 1.1rem; border-radius: var(--radius); background: #fbe8ee; color: var(--ink); text-decoration: none; }
.meet-now:hover { background: #f8dbe5; color: var(--ink); }
.meet-now__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--raspberry); box-shadow: 0 0 0 4px rgba(200, 65, 107, .22); animation: meet-pulse 1.8s ease-in-out infinite; }
.meet-now__text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.meet-now__text span { font-size: .9rem; color: var(--muted); }
@keyframes meet-pulse { 50% { box-shadow: 0 0 0 8px rgba(200, 65, 107, 0); } }
@media (prefers-reduced-motion: reduce) { .meet-now__dot { animation: none; } }
.meet-form { padding: 1.4rem 1.5rem; }
.meet-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .5rem 1rem; margin: 0; padding: 0; border: 0; }
.meet-person { align-items: flex-start; }
.meet-person > span { display: flex; flex-direction: column; }
.meet-person .muted { font-size: .85rem; }
.meet-invitees .is-in { font-weight: 700; color: var(--ink); }
@media (max-width: 560px) { .meet-now { grid-template-columns: auto minmax(0, 1fr); } .meet-now .btn { grid-column: 1 / -1; justify-self: start; } }

/* The materials check after a retreat (materials-check.php, admin/materials.php; includes/materials.php) */
.mat-done { display: flex; align-items: flex-start; gap: .55rem; margin: 0 .3rem 1rem; color: var(--muted); font-size: .95rem; }
.mat-done .icon { flex: none; width: 18px; height: 18px; margin-top: .2rem; color: var(--purple-700); }
.mat-item { min-width: 0; margin: 0; padding: 1.25rem 1.5rem 1.3rem; border: 0; border-top: 1px solid var(--line); }
.mat-item:first-of-type { border-top: 0; }
.mat-item__name { float: left; width: 100%; padding: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.mat-item__question { clear: both; margin: 0; padding: .15rem 0 .75rem; font-size: .92rem; color: var(--muted); }
.mat-item__answers { display: flex; flex-wrap: wrap; gap: .5rem; }
.mat-answer { position: relative; display: inline-flex; }
.mat-answer input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mat-answer span { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1.15rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; color: var(--ink); transition: background .15s ease, border-color .15s ease, color .15s ease; }
.mat-answer input:hover + span { border-color: #b9aed1; }
.mat-answer input:checked + span { background: var(--purple-900); border-color: var(--purple-900); color: #fff; }
.mat-answer--low input:checked + span { background: var(--raspberry-dark); border-color: var(--raspberry-dark); }
.mat-answer input:focus-visible + span { outline: 3px solid rgba(151, 16, 216, .35); outline-offset: 2px; }
.mat-item__note { display: block; margin-top: .75rem; }
@supports selector(:has(*)) {       /* the note shows once "running low" is chosen (always, in a browser that cannot tell) */
  .mat-item__note { display: none; }
  .mat-item:has(.mat-answer--low input:checked) .mat-item__note { display: block; }
}
.mat-item__note .input { font-size: .95rem; }
.mat-item__error { margin: .55rem 0 0; font-size: .9rem; font-weight: 600; color: #a3274f; }
.mat-form__actions { padding: 1.2rem 1.5rem 1.4rem; border-top: 1px solid var(--line); }
.mat-list .input { min-width: 11rem; }
.mat-list .error-text { margin-top: .35rem; }
@media (max-width: 560px) { .mat-item { padding-inline: 1.1rem; } .mat-form__actions { padding-inline: 1.1rem; } .mat-form__actions .btn { width: 100%; } }
/* Decision 85: a material with a minimum is counted; "Is anything missing?" below the list. */
.mat-item__minimum { margin-left: .35rem; padding: .1rem .55rem; border-radius: 999px; background: var(--purple-50); font-size: .85rem; font-weight: 600; color: var(--purple-700); white-space: nowrap; }
.mat-count { display: inline-flex; align-items: center; gap: .6rem; }
.mat-count__input { width: 7.5rem; min-height: 44px; font-size: 1.05rem; font-weight: 600; }
.mat-count__unit { color: var(--muted); font-size: .95rem; }
.mat-form .mat-item--count .mat-item__note { display: block; }
.mat-form .mat-missing { border-top: 1px solid var(--line); }
.mat-missing .mat-item__name { display: block; float: none; }
.mat-missing .textarea { min-height: 4.5rem; font-size: .95rem; }
.mat-result__missing { white-space: pre-line; }
.mat-list .mat-list__minimum { width: 6.5rem; min-width: 0; }
.mat-list .mat-list__unit { width: 8rem; min-width: 0; }
.mat-list .select { min-width: 16rem; }
.mat-list .choice { white-space: nowrap; }

/* The playlists of a retreat, added by its team (retreat-playlist.php; decision 51) */
.pl-card { scroll-margin-top: 5rem; }
.pl-card.is-editing { box-shadow: 0 0 0 2px var(--purple-500), var(--shadow-sm); }
.pl-card__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; padding: 1.25rem 1.5rem 1.1rem; }
.pl-card__title { margin: .3rem 0 0; font-size: 1.1rem; font-weight: 700; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.pl-card__status { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: .4rem 0 0; font-size: .88rem; }
.pl-card__summary { margin: .55rem 0 0; color: var(--text); }
.pl-links { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: .75rem 0 0; padding: 0; }
.pl-links a { display: inline-flex; align-items: center; min-height: 36px; padding: .3rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.pl-links a:hover { border-color: var(--purple-500); color: var(--purple-700); }
.pl-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .9rem 1.5rem 1.1rem; border-top: 1px solid var(--line); }
.pl-card__actions form { margin: 0; }
/* The free integration conversation, offered per person (retreat-talks.php) */
.talk-list { list-style: none; margin: 0; padding: 0; }
.talk-person { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.talk-person:first-child { border-top: 0; padding-top: 0; }
.talk-person__who { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.talk-person__state { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: .92rem; }
.talk-person__form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin: 0; }
.pl-card__remove { color: var(--muted); }
.pl-card__actions form:last-child { margin-left: auto; }
.pl-card__note { margin: 0; padding: .9rem 1.5rem 1.1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.pl-form { margin-top: 1.5rem; padding: 1.4rem 1.5rem 1.5rem; scroll-margin-top: 5rem; }
.pl-form__title { margin: 0 0 1rem; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.pl-form__links { min-width: 0; margin: 1.2rem 0 0; padding: 0; border: 0; }
.pl-form__links legend { padding: 0; font-weight: 700; color: var(--ink); }
.pl-form__links > .hint { margin: .2rem 0 .8rem; }
.pl-form__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
@media (max-width: 560px) { .pl-card__head, .pl-card__actions, .pl-card__note, .pl-form { padding-inline: 1.1rem; } .pl-form__actions .btn { width: 100%; } }

/* ---------------------------------------------------------------------
   The shared inbox (decision 70): inbox.php (folders and the list), inbox-thread.php (a conversation with the person beside
   it), inbox-new.php and inbox-replies.php. Calm and wide: the list and the emails get the room.
   --------------------------------------------------------------------- */
.inbox-page, .inbox-thread { width: min(100% - 2rem, 1280px); margin-inline: auto; display: grid; gap: 1.5rem; }
.inbox-page { display: block; padding-block: 1.6rem 3rem; }
.inbox-thread { padding-block: 1.2rem 3rem; }
@media (min-width: 1000px) {
  .inbox-thread { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .inbox-contact { position: sticky; top: calc(var(--header-h) + 1rem); }
}
/* The head: the title, the search box and New email. Below it one bar: the folders as pills (they slide sideways on a phone),
   and at the right the choice of inbox and tag and More, each opening a short list. */
.inbox-head { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.inbox-head__title { margin: 0; }
.inbox-head__title h1 { margin: 0; }
.inbox-head__actions { display: flex; gap: .6rem; align-items: center; flex: 1 1 320px; justify-content: flex-end; }
.inbox-head__actions .btn { flex: none; white-space: nowrap; }
.inbox-head__actions .btn .icon { width: 1rem; height: 1rem; }
.inbox-search { position: relative; flex: 1 1 220px; min-width: 0; max-width: 420px; margin: 0; }
.inbox-search .icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 1.05rem; height: 1.05rem; color: var(--muted); pointer-events: none; }
.inbox-search .input { padding-left: 2.5rem; }
.inbox-bar { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.inbox-folders { display: flex; flex-wrap: wrap; gap: .4rem; min-width: 0; }
.inbox-folders .filter { display: inline-flex; align-items: center; gap: .35rem; }
.inbox-folders .filter.is-active .inbox-count { background: #fff; color: var(--purple-900); }
.inbox-bar__picks { display: flex; gap: .4rem; align-items: center; margin-left: auto; }
.inbox-bar__picks .btn .icon { width: 1rem; height: 1rem; }
.inbox-count { min-width: 1.5rem; padding: 0 .4rem; border-radius: 999px; background: var(--raspberry); color: #fff; font-size: .76rem; font-weight: 700; text-align: center; line-height: 1.55; }
.inbox-count--quiet { background: #eeecf1; color: #54525d; }
.inbox-menu__list { display: flex; flex-direction: column; gap: 2px; min-width: 15rem; padding: .4rem; }
.inbox-pick { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem .7rem; border-radius: 10px; color: var(--text); text-decoration: none; white-space: nowrap; }
.inbox-pick:hover { background: var(--purple-50); color: var(--purple-900); }
.inbox-pick.is-current { background: var(--purple-100); color: var(--purple-900); font-weight: 700; }
.inbox-pick .muted { font-weight: 400; font-size: .85em; }
@media (max-width: 760px) {
  .inbox-page { padding-top: 1.1rem; }
  .inbox-head__actions { flex-basis: 100%; justify-content: stretch; }
  .inbox-search { max-width: none; }
  .inbox-bar { flex-wrap: nowrap; flex-direction: column; align-items: stretch; gap: .5rem; }
  .inbox-folders { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding: .1rem 1rem .3rem; }
  .inbox-folders::-webkit-scrollbar { display: none; }
  .inbox-folders .filter { flex: 0 0 auto; }
  .inbox-bar__picks { margin-left: 0; }
}
.inbox-bulk__title { font-size: 1.02rem; color: var(--ink); }
.inbox-bulk { margin: 0; }
.inbox-bulk__bar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .2rem .2rem .6rem; }
.inbox-bulk__actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.inbox-bulk__lead { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.inbox-bulk__all { display: flex; align-items: center; padding-left: .7rem; cursor: pointer; }      /* in line with .inbox-row__tick */
.inbox-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.inbox-row { display: flex; align-items: stretch; border-top: 1px solid var(--line); }
.inbox-row:first-child { border-top: 0; }
.inbox-row:hover { background: var(--purple-50); }
.inbox-row.is-unread { box-shadow: inset 3px 0 0 var(--purple-500); }
.inbox-row__tick { display: flex; align-items: center; padding: 0 .3rem 0 .9rem; }
.inbox-row__link { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who when" "subject subject" "meta meta"; gap: .15rem .8rem; padding: .7rem .9rem .7rem .4rem; color: var(--text); text-decoration: none; }
@media (min-width: 1100px) { .inbox-row__link { grid-template-columns: 13rem minmax(0, 1fr) auto auto; grid-template-areas: "who subject meta when"; align-items: center; } }
.inbox-row__who { grid-area: who; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.inbox-row__n { color: var(--muted); font-size: .85em; font-weight: 400; }
.inbox-row__subject { grid-area: subject; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-row__meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.inbox-row__meta:empty { display: none; }
.inbox-row__when { grid-area: when; color: var(--muted); font-size: .88rem; white-space: nowrap; text-align: right; }
.inbox-row.is-unread .inbox-row__who, .inbox-row.is-unread .inbox-row__subject { font-weight: 800; color: var(--ink); }
.inbox-row__icon .icon { width: 1rem; height: 1rem; color: var(--muted); }

.inbox-thread__head h1 { margin: .2rem 0 .5rem; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); font-weight: 500; overflow-wrap: anywhere; }
.inbox-thread__chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; }
.inbox-tag { gap: .25rem; }
.inbox-tag__remove { border: 0; background: none; padding: 0 .1rem; cursor: pointer; color: inherit; font-size: 1rem; line-height: 1; }
.inline-form { display: inline; margin: 0; }
.inbox-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.2rem; }
.inbox-actions form { margin: 0; }
.inbox-actions .icon { width: 1rem; height: 1rem; }
.inbox-actions__assign { display: flex; gap: .35rem; align-items: center; }
.select--sm, .input--sm { min-height: 40px; padding-block: .3rem; font-size: .92rem; width: auto; }
.inbox-menu { position: relative; }
.inbox-menu > summary { list-style: none; cursor: pointer; }
.inbox-menu > summary::-webkit-details-marker { display: none; }
.inbox-menu__panel { position: absolute; z-index: 20; top: calc(100% + .4rem); left: 0; width: max-content; max-width: min(340px, 90vw); padding: .9rem; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.inbox-menu--right .inbox-menu__panel { left: auto; right: 0; }
/* With the admin sidebar on screen the inboxes are in it (under Inbox), so the page does not offer the same choice twice. */
@media (min-width: 1180px) { .layout-admin .inbox-menu--inboxes { display: none; } }
.inbox-menu__panel.inbox-menu__list { padding: .4rem; }
.inbox-menu__panel .stack > .btn { width: 100%; justify-content: flex-start; }
.inbox-menu__date, .inbox-menu__row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .6rem; }
.inbox-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.inbox-msg__box { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.inbox-msg--ours .inbox-msg__box { background: #fbf9ff; box-shadow: inset 3px 0 0 var(--purple-500), var(--shadow-sm); }
.inbox-msg__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem 1rem; padding: .85rem 1.1rem; cursor: pointer; list-style: none; }
.inbox-msg__head::-webkit-details-marker { display: none; }
.inbox-msg__from { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.inbox-msg__addr { font-weight: 400; color: var(--muted); font-size: .9em; }
.inbox-msg__when { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.inbox-msg__to { grid-column: 1 / -1; color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.inbox-msg__body { padding: 0 1.1rem 1rem; }
.inbox-frame { display: block; width: 100%; height: 320px; border: 0; background: #fff; }
.inbox-msg__pictures { margin: .4rem 0 0; font-size: .84rem; }
.inbox-text { overflow-wrap: anywhere; line-height: 1.6; }
.inbox-files { list-style: none; margin: .8rem 0 0; padding: .7rem 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.inbox-files a { display: inline-flex; align-items: center; gap: .3rem; }
.inbox-files .icon { width: 1rem; height: 1rem; }
.inbox-note { padding: .75rem 1rem; border-radius: var(--radius-sm); background: #fff8e6; border: 1px solid #f3e2b3; }
.inbox-note__head { margin: 0 0 .25rem; font-size: .88rem; color: #6a4b00; }
.inbox-note__text { overflow-wrap: anywhere; }
.inbox-event { text-align: center; font-size: .85rem; color: var(--muted); }
.inbox-reply, .inbox-note-form { margin-top: 1.4rem; }
.inbox-reply h2, .inbox-note-form h2 { margin-top: 0; font-size: 1.2rem; }
.inbox-reply__from { margin: 0; color: var(--muted); font-size: .92rem; }
.inbox-cc > summary { cursor: pointer; color: var(--purple-900); font-size: .92rem; font-weight: 600; }
.inbox-contact .card { padding: 1.3rem; }
.inbox-contact h3 { margin: 1.2rem 0 .45rem; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.inbox-contact__name { margin: 0; font-size: 1.25rem; overflow-wrap: anywhere; }
.inbox-contact__email { margin: .1rem 0 .6rem; color: var(--muted); overflow-wrap: anywhere; }
.inbox-contact__line { display: flex; flex-wrap: wrap; gap: .3rem; margin: .4rem 0; }
.inbox-contact__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.inbox-contact__list li { display: flex; flex-direction: column; align-items: flex-start; gap: .12rem; }
.inbox-contact__list .sub { display: block; color: var(--muted); font-size: .85rem; }
.inbox-contact__list .strong { font-weight: 700; color: var(--ink); }

/* Free calls (call.php, decision 82) */
.call-text { display: grid; gap: .6rem; color: var(--ink); }
.call-text p, .call-text ul { margin: 0; }
.call-text ul { padding-left: 1.2rem; display: grid; gap: .2rem; }
.call-tz { display: grid; gap: .35rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line, #e5e5ea); font-size: .9rem; }
.call-tz .select { max-width: 18rem; }
.call-page, .call-page form, .call-page .slot-days { min-width: 0; max-width: 100%; }
.day-picker { display: flex; gap: .45rem; overflow-x: auto; max-width: 100%; padding: .2rem .1rem .5rem; scroll-snap-type: x proximity; }
.day-picker button { flex: none; display: grid; justify-items: center; gap: .05rem; min-width: 3.6rem; padding: .45rem .5rem; border: 0; border-radius: 14px;
  background: var(--surface, #fff); box-shadow: inset 0 0 0 1px var(--line, #e5e5ea); color: var(--ink); font: inherit; font-size: .78rem; cursor: pointer; scroll-snap-align: start; }
.day-picker button strong { font-size: 1.15rem; line-height: 1.1; }
.day-picker button:hover { box-shadow: inset 0 0 0 2px var(--purple-500); }
.day-picker button.is-on { background: var(--purple-900); color: #fff; box-shadow: none; }
.day-picker button.is-on strong { color: #fff; }
.day-picker button:focus-visible { outline: 3px solid var(--purple-500); outline-offset: 2px; }

/* Own automatic emails (admin/custom-mail.php, decision 83) */
.custom-mail-grid { display: grid; gap: 1.2rem; align-items: start; }
@media (min-width: 1100px) { .custom-mail-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } .custom-mail-grid aside { position: sticky; top: 1rem; } }
.custom-mail-grid optgroup { font-weight: 700; }

/* The wrap-up of a retreat (retreat-wrapup.php, decision 85) */
.wrapup-steps { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .35rem; }
.wrapup-steps li { display: flex; align-items: center; gap: .45rem; color: var(--ink); font-weight: 600; }
.wrapup-steps li .icon { width: 1.05rem; height: 1.05rem; stroke: #b4561f; }
.wrapup-steps li.is-done { font-weight: 400; color: var(--muted, #6e6e73); }
.wrapup-steps li.is-done .icon { stroke: #1b6b3f; stroke-width: 3; }
.wrapup-done { display: flex; align-items: center; gap: .5rem; }
.wrapup-done .icon { width: 1.2rem; height: 1.2rem; stroke: #1b6b3f; stroke-width: 3; }
.wrapup-list { display: grid; gap: .15rem; }
.wrapup-row { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.2rem; margin: 0; padding: .45rem 0; border: 0; border-bottom: 1px solid var(--line, #e5e5ea); }
.wrapup-row legend, .wrapup-row > label:first-child { float: left; min-width: 12rem; margin: 0; padding: 0; font-weight: 600; color: var(--ink); }
.wrapup-row .choice { min-height: 32px; font-weight: 400; }
.wrapup-row .select { max-width: 16rem; }

/* Is a facilitator's time zone right? (facilitate.php, facilitate-settings.php; decision 85) */
.fac-timezone { margin-bottom: 1.25rem; border: 1px solid var(--purple-100); background: var(--purple-50); }
.fac-timezone p { margin: 0; }
.fac-timezone__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* Admin, Emails, Reminders (admin/reminders.php; decision 87) */
.reminders__group { margin: 0 0 .6rem; font-size: 1.1rem; }
.reminders__attention-title { margin: 0 0 .4rem; font-size: 1rem; }
.reminders__attention { margin: 0; padding-left: 1.2rem; }
.reminders__attention li { margin: .2rem 0; }
.reminders__table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reminders__table .sub { display: block; }
.reminders__quiet td { color: var(--muted); }
.reminders__quiet .strong { font-weight: 500; }
