/* Concatenation of src/css/expo-studio/*.css (keep the two in step by hand —
 * scripts/build_expo_assets.js, still named in package.json, does not exist in this repo).
 * Standalone pages (/admin, /e, /x) — nothing prefixed. Loads AFTER expo-site.css. */
/* ── 00-tokens.css ── */
/* Online Expo — redesign tokens
   The colour values below are FALLBACKS: views/expo/_brand.ejs, included after this
   sheet, derives the --by-amber-* / --by-teal-* ramps from the company's own colours.
   Fonts: add this to <head>:
   <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500&display=swap" rel="stylesheet">
*/
:root {
  /* Teal — brand */
  --by-teal-950: #16332F;   /* rail, app bars, video stage */
  --by-teal-900: #1E403C;   /* dark bands (pulse strip) */
  --by-teal-700: #29534F;   /* BRAND primary: buttons, active states */
  --by-teal-500: #4C6C61;   /* avatars, secondary accents */
  --by-teal-300: #8FA79E;   /* labels on teal */
  --by-teal-200: #B9C8C1;   /* muted text on teal */
  --by-teal-150: #D6E0DA;   /* body text on teal */
  --by-teal-100: #DDE6E0;   /* tint border */
  --by-teal-50:  #EFF3EE;   /* tint fill / chips */
  --by-teal-25:  #F3F6F2;

  /* Amber — action / live / attention */
  --by-amber-500: #E49E2F;  /* hero buttons, LIVE pills (text on it = teal-950) */
  --by-amber-600: #D47F24;
  --by-amber-700: #A65E14;  /* amber text on light backgrounds */
  --by-amber-300: #F3C77E;  /* amber text on teal */
  --by-amber-100: #FBEBCF;  /* soft fill */
  --by-amber-50:  #FDF5E6;  /* attention card wash */
  --by-amber-border: #F1DDB6;

  /* Cream & neutrals */
  --by-page:     #F7F6EF;
  --by-topbar:   #FBFAF4;
  --by-surface:  #FFFFFD;
  --by-cream:    #FEFFEF;   /* text on teal, light buttons */
  --by-chip:     #EEEDE4;
  --by-chip-2:   #F4F2EA;
  --by-line:     #E6E3D8;
  --by-line-2:   #EDEAE0;
  --by-input:    #E0DCCF;
  --by-input-2:  #D9D5C7;
  --by-ink:      #211D1C;
  --by-ink-2:    #4A4541;
  --by-muted:    #6B655E;   /* minimum for small text */
  --by-dim:      #A39E94;   /* offline dots, disabled */

  /* Status (always paired with a text label) */
  --by-ok:        #2E8B57;  --by-ok-bg: #E6F2EA;  --by-ok-text: #1F6B43;   /* available / online */
  --by-busy:      #C8372D;  --by-busy-bg: #FCEEEC; --by-busy-text: #A12B22; /* in meeting / recording / live */
  --by-off:       #A39E94;                                                  /* not available */
  /* locked / owing a form = amber-100 bg + amber-700 text */

  /* Type */
  --by-font-display: 'Instrument Serif', Georgia, serif;  /* titles 48–56 desktop / 34–38 mobile, KPIs 30–88 */
  --by-font-ui: 'Manrope', system-ui, sans-serif;          /* section titles 17–19/800, body 13–15, labels 11–12 uppercase .12–.14em 800 */
  --by-font-mono: 'IBM Plex Mono', ui-monospace, monospace; /* timers, timestamps, durations, links */

  /* Shape */
  --by-radius-card: 24px;        /* mobile: 22px */
  --by-radius-control: 12px;     /* controls 40–46px tall; touch targets ≥44px on mobile */
  --by-radius-pill: 999px;
  --by-shadow-float: 0 18px 40px -16px rgba(22,51,47,.55);
  --by-shadow-card: 0 40px 80px -50px rgba(22,51,47,.35);

  /* Layout */
  --by-rail-width: 256px;        /* staff desktop sidebar */
  --by-topbar-height: 76px;
  --by-content-pad: 36px 40px 40px;
  --by-mobile-pad: 16px 16px 110px; /* bottom padding clears the floating tab bar */
}
/* ── 01-base.css ── */
/* ============================================================================
   Expo Studio — the bridge and the page base.
   ============================================================================
   Ali, 29 Sep 2026: «كل اللي طالبه هو تغيير التصميم فقط بالتصميم الجديد · اي لينك مسار
   سيبة زي ماهو ولكن التصميم فقط».

   ⚖️ THIS SHEET LOADS AFTER expo-site.css, NEVER INSTEAD OF IT. The old sheet still styles
   everything the scripts build at run time (chat bubbles, the ⋮ menus, the clients rail
   rows, the meeting's tool captions) and every CMS panel the new design does not draw.
   Its whole palette is five variables, so repointing them here re-tints every one of
   those at once — a page nobody redesigned stops looking like a different product.
   ========================================================================== */
:root {
  /* the demo's names → the redesign's values */
  --teal: var(--by-teal-700);
  --amber: var(--by-amber-500);
  --ivory: var(--by-page);
  --ink: var(--by-ink);
  --sage: var(--by-teal-500);
  --busy: var(--by-busy);
  --free: var(--by-ok);
  --card: var(--by-surface);
  --line: var(--by-line);
  --radius: var(--by-radius-card);
  --shadow: 0 1px 2px rgba(22, 51, 47, .04), 0 18px 40px -28px rgba(22, 51, 47, .28);
  --font-display: var(--by-font-ui);
  --font-body: var(--by-font-ui);

  /* 🔤 BACKYARD'S OWN TYPE, NOT THE DESIGN'S. Ali, 29 Sep 2026: «استخدم الفونت بتاع باك
     يارد اللي مستخدم في الموقع كله · متستخدمش الفونت اللي موجود في التصميمات اللي
     مبعوتالك · خصوصا في ال Titles». The package names Instrument Serif / Manrope /
     IBM Plex Mono; the website (~/backyard-site) and the expo demo both set
     Poppins for Latin and Cairo for Arabic — so all three roles resolve to that pair.
     ⚠️ Timers and times lose the mono face; tabular figures (.by-mono) keep the digits
     from dancing while a clock ticks. */
  --by-font-display: 'Poppins', 'Cairo', system-ui, sans-serif;
  --by-font-ui: 'Poppins', 'Cairo', system-ui, sans-serif;
  --by-font-mono: 'Poppins', 'Cairo', system-ui, sans-serif;

  --by-mobile: 900px; /* documentation only — media queries cannot read a variable */
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--by-page);
  color: var(--by-ink);
  font-family: var(--by-font-ui);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
/* The old sheet paints two radial washes on the page. The redesign is flat cream. */
body.by { background: var(--by-page); }
/* ⚠️ :where() — zero specificity. A link drawn as a button (.by-btn) must win over the
   plain-link colour with one class, not by out-shouting it. */
:where(.by) a { color: var(--by-teal-700); text-decoration: none; }
:where(.by) a:hover { color: var(--by-teal-950); }
:where(.by) button, :where(.by) input, :where(.by) select, :where(.by) textarea { font-family: inherit; }
:where(.by) button { cursor: pointer; }
:where(.by) :focus-visible { outline: 2px solid var(--by-amber-500); outline-offset: 2px; }
/* ── icons ── inline stroke SVG from views/expo/_icons.ejs (<use href="#by-i-…">) ── */
.by-i {
  width: 18px; height: 18px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: middle;
}
.by-i--sm { width: 14px; height: 14px; stroke-width: 2; }
.by-i--md { width: 20px; height: 20px; }
.by-i--lg { width: 24px; height: 24px; }
/* Arrows point the way the page reads. */
[dir="rtl"] .by-flip { transform: scaleX(-1); }
/* ── type ─────────────────────────────────────────────────────────────────── */
.by-eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--by-amber-700);
}
[dir="rtl"] .by-eyebrow, [dir="rtl"] .by-label { letter-spacing: 0; }
.by-h1 {
  margin: 0; font-family: var(--by-font-display); font-weight: 700;
  font-size: 44px; line-height: 1.08; letter-spacing: -.02em; color: var(--by-teal-950);
}
[dir="rtl"] .by-h1 { letter-spacing: 0; line-height: 1.3; }
.by-h1 small { font-size: .5em; color: var(--by-teal-700); }
.by-h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--by-ink); line-height: 1.25; }
.by-serif { font-family: var(--by-font-display); font-weight: 600; letter-spacing: -.01em; }
.by-mono { font-family: var(--by-font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.by-label {
  font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--by-muted);
}
.by-label--amber { color: var(--by-amber-700); }
.by-muted { color: var(--by-muted); }
.by-sub { font-size: 13px; color: var(--by-muted); margin: 0; }
.by-num { font-family: var(--by-font-display); font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.by-ltr { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 900px) {
.by-h1 { font-size: 30px; }
.by-h2 { font-size: 18px; }
}
/* a time or a number keeps its own left-to-right order inside an Arabic sentence
   («20 Sept · 19:15» must not come out as «Sept · 19:15 20») */
.by-mono, .by-num, .by-stat__n, .by-pulse__n { unicode-bidi: isolate; }
[dir="rtl"] .by-mono { direction: ltr; }
/* ── 10-components.css ── */
/* ============================================================================
   Expo Studio — the shared pieces. Every value here is read off the 34 screens in
   docs/backyard-expo-redesign (the PNG wins when the HTML disagrees).
   ⚠️ LOGICAL PROPERTIES ONLY (inline-start/end, not left/right) — the same markup is
   read right-to-left in Arabic, and a physical margin is a margin on the wrong side.
   ========================================================================== */

/* ── buttons ──────────────────────────────────────────────────────────────── */
.by-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: var(--by-radius-control);
  border: 1px solid var(--by-input-2); background: var(--by-surface);
  color: var(--by-teal-700); font-size: 13.5px; font-weight: 700; line-height: 1.15;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.by-btn:hover { border-color: var(--by-teal-500); color: var(--by-teal-950); }
.by-btn--primary { background: var(--by-teal-700); border-color: var(--by-teal-700); color: var(--by-cream); }
.by-btn--primary:hover { background: var(--by-teal-950); border-color: var(--by-teal-950); color: var(--by-cream); }
.by-btn--hero { background: var(--by-amber-500); border-color: var(--by-amber-500); color: var(--by-teal-950); font-weight: 800; }
.by-btn--hero:hover { background: var(--by-amber-600); border-color: var(--by-amber-600); color: var(--by-teal-950); }
.by-btn--danger { background: var(--by-busy); border-color: var(--by-busy); color: #fff; }
.by-btn--danger:hover { background: var(--by-busy-text); border-color: var(--by-busy-text); color: #fff; }
.by-btn--soft { background: var(--by-teal-50); border-color: var(--by-teal-50); color: var(--by-teal-700); }
.by-btn--cream { background: var(--by-cream); border-color: var(--by-cream); color: var(--by-teal-950); }
.by-btn--ghost-dark { background: transparent; border-color: rgba(254,255,239,.3); color: var(--by-cream); }
.by-btn--ghost-dark:hover { border-color: var(--by-cream); color: var(--by-cream); }
.by-btn--sm { min-height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.by-btn--lg { min-height: 50px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.by-btn--block { display: flex; width: 100%; }
.by-btn--icon { width: 42px; padding: 0; }
.by-btn[disabled], .by-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.by-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--by-teal-700); }
/* ── cards ────────────────────────────────────────────────────────────────── */
.by-card {
  background: var(--by-surface); border: 1px solid var(--by-line);
  border-radius: var(--by-radius-card); padding: 26px 28px;
  display: flex; flex-direction: column; gap: 18px; min-width: 0;
}
.by-card--amber { background: var(--by-amber-50); border-color: var(--by-amber-border); }
.by-card--teal { background: var(--by-teal-700); border-color: var(--by-teal-700); color: var(--by-cream); }
.by-card--deep { background: var(--by-teal-900); border-color: var(--by-teal-900); color: var(--by-cream); }
.by-card--dash { background: transparent; border: 1px dashed var(--by-input-2); }
.by-card--flat { background: var(--by-chip-2); border-color: var(--by-line); }
.by-card--tight { padding: 18px 20px; gap: 12px; }
.by-card--teal .by-sub, .by-card--deep .by-sub { color: var(--by-teal-200); }
.by-card--teal .by-h2, .by-card--deep .by-h2 { color: var(--by-cream); }
.by-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.by-card__title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.by-card__ico {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--by-amber-500); color: var(--by-teal-950);
}
.by-card__foot { font-size: 12.5px; color: var(--by-muted); margin: 0; line-height: 1.55; }
.by-card__foot > .by-i { margin-inline-end: 6px; vertical-align: -2px; }
.by-card__foot b, .by-card__foot strong { color: var(--by-ink-2); }
.by-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px;
  padding: 0 8px; border-radius: 999px; background: var(--by-teal-700); color: var(--by-cream);
  font-size: 12px; font-weight: 800;
}
.by-count--soft { background: var(--by-chip); color: var(--by-ink-2); }
.by-count--amber { background: var(--by-amber-100); color: var(--by-amber-700); }
/* ── the teal pulse band (Command center, All expos, My link) ─────────────── */
.by-pulse {
  border-radius: var(--by-radius-card); background: var(--by-teal-900); color: var(--by-cream);
  padding: 26px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.by-pulse__k {
  display: flex; flex-direction: column; gap: 10px; padding: 2px 20px;
  border-inline-start: 1px solid rgba(254,255,239,.14); min-width: 0;
}
.by-pulse__n { font-family: var(--by-font-display); font-weight: 600; font-size: 44px; line-height: 1; letter-spacing: -.02em; color: var(--by-cream); font-variant-numeric: tabular-nums; }
.by-pulse__n--amber { color: var(--by-amber-300); }
.by-pulse__l { font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.by-pulse__h { font-size: 12px; color: var(--by-teal-200); }
/* ── stat tiles ───────────────────────────────────────────────────────────── */
.by-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.by-stat {
  background: var(--by-surface); border: 1px solid var(--by-line); border-radius: 18px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.by-stat__n { font-family: var(--by-font-display); font-weight: 600; font-size: 32px; line-height: 1; letter-spacing: -.02em; color: var(--by-teal-950); font-variant-numeric: tabular-nums; }
.by-stat__l { font-size: 13px; font-weight: 700; color: var(--by-ink); }
.by-stat__h { font-size: 12px; color: var(--by-muted); }
.by-stat--soft { background: var(--by-teal-25); border-color: var(--by-teal-100); }
.by-stat--amber { background: var(--by-amber-50); border-color: var(--by-amber-border); }
.by-stat--amber .by-stat__n { color: var(--by-amber-700); }
.by-stat--busy { background: var(--by-busy-bg); border-color: #F4D6D2; }
.by-stat--busy .by-stat__n { color: var(--by-busy-text); }
.by-stat--ok .by-stat__n { color: var(--by-ok-text); }
.by-stat--sm .by-stat__n { font-size: 24px; }
/* ── pills and dots — a colour always travels with a word ────────────────── */
.by-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap;
  background: var(--by-chip); color: var(--by-ink-2); letter-spacing: .02em;
}
.by-pill::before { content: none; }
.by-pill--dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.by-pill--ok { background: var(--by-ok-bg); color: var(--by-ok-text); }
.by-pill--busy { background: var(--by-busy-bg); color: var(--by-busy-text); }
.by-pill--rec { background: var(--by-busy); color: #fff; }
.by-pill--live { background: var(--by-amber-500); color: var(--by-teal-950); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.by-pill--amber { background: var(--by-amber-100); color: var(--by-amber-700); }
.by-pill--teal { background: var(--by-teal-700); color: var(--by-cream); }
.by-pill--tint { background: var(--by-teal-50); color: var(--by-teal-700); }
.by-pill--off { background: var(--by-chip); color: var(--by-muted); }
.by-pill--line { background: transparent; border: 1px solid var(--by-input-2); color: var(--by-ink-2); }
.by-pill--up { text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.by-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--by-off); flex-shrink: 0; display: inline-block; }
.by-dot--ok { background: var(--by-ok); }
.by-dot--busy { background: var(--by-busy); }
.by-dot--amber { background: var(--by-amber-500); }
.by-dot--off { background: var(--by-off); }
.by-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 12.5px; color: var(--by-ink-2); font-weight: 600; }
.by-legend > span { display: inline-flex; align-items: center; gap: 6px; }
/* ── initials avatar ──────────────────────────────────────────────────────── */
.by-av {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--by-teal-50); color: var(--by-teal-700);
  font-weight: 800; font-size: 13px; letter-spacing: -.01em; position: relative;
}
.by-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.by-av--amber { background: var(--by-amber-500); color: var(--by-teal-950); }
.by-av--sand { background: var(--by-amber-100); color: var(--by-amber-700); }
.by-av--teal { background: var(--by-teal-500); color: var(--by-cream); }
.by-av--deep { background: var(--by-teal-700); color: var(--by-cream); }
.by-av--sm { width: 32px; height: 32px; font-size: 11.5px; }
.by-av--xs { width: 26px; height: 26px; font-size: 10.5px; }
.by-av--lg { width: 56px; height: 56px; font-size: 18px; }
.by-av__on {
  position: absolute; inset-block-end: 0; inset-inline-end: 0; width: 11px; height: 11px;
  border-radius: 50%; background: var(--by-ok); border: 2px solid var(--by-surface);
}
/* 🟢 v6.0.67 — the dot sits ON the circle's edge, and .by-av's overflow:hidden cut it in
   half («the green dots are cropped»). A circle that carries a dot shows it whole; a face
   inside keeps its round crop from its own radius. */
.by-av:has(> .by-av__on) { overflow: visible; }
.by-av img { border-radius: inherit; }
/* developer monogram tile */
.by-mono-tile {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--by-teal-700); color: var(--by-cream);
  font-family: var(--by-font-display); font-weight: 700; font-size: 16px;
}
.by-mono-tile img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.by-mono-tile--sm { width: 26px; height: 26px; border-radius: 7px; font-size: 11px; font-family: var(--by-font-ui); font-weight: 800; }
.by-mono-tile--lg { width: 72px; height: 72px; border-radius: 18px; font-size: 24px; }
/* ── person / client rows ─────────────────────────────────────────────────── */
.by-rows { display: flex; flex-direction: column; gap: 10px; }
.by-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: 16px; background: var(--by-surface); border: 1px solid var(--by-line);
  min-width: 0; color: inherit;
}
a.by-row:hover { border-color: var(--by-teal-100); background: var(--by-teal-25); color: inherit; }
.by-row--amber { border-color: #F1E4C8; }
.by-row--warn { background: var(--by-amber-50); border-color: var(--by-amber-border); }
.by-row--on { background: var(--by-teal-25); border-color: var(--by-teal-100); }
.by-row--flat { border: 0; border-bottom: 1px solid var(--by-line-2); border-radius: 0; padding: 12px 2px; background: transparent; }
.by-row__main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.by-row__name { font-weight: 700; font-size: 15px; color: var(--by-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-row__meta { font-size: 12.5px; color: var(--by-muted); overflow: hidden; text-overflow: ellipsis; }
.by-row__meta strong, .by-row__meta b { color: var(--by-ink); font-weight: 700; }
.by-row__end { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* ── section headers inside a card ────────────────────────────────────────── */
.by-sect { display: flex; flex-direction: column; gap: 10px; }
.by-sect__h { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--by-amber-700); margin: 0; }
.by-sect__h--muted { color: var(--by-muted); }
/* ── notes ────────────────────────────────────────────────────────────────── */
.by-note {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 16px;
  background: var(--by-teal-25); border: 1px solid var(--by-teal-100);
  font-size: 13px; color: var(--by-ink-2); margin: 0;
}
.by-note--amber { background: var(--by-amber-50); border-color: var(--by-amber-border); }
.by-note--busy { background: var(--by-busy-bg); border-color: #F4D6D2; color: var(--by-busy-text); }
.by-note .by-i { margin-top: 1px; }
.by-note b, .by-note strong { color: var(--by-ink); }
/* ── form controls ────────────────────────────────────────────────────────── */
.by-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.by-field > label, .by-field__l { font-size: 13px; font-weight: 700; color: var(--by-ink); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.by-field__hint { font-size: 12px; color: var(--by-muted); margin: 0; }
.by-input, .by-select, .by-textarea {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: var(--by-radius-control);
  border: 1px solid var(--by-input); background: var(--by-surface); color: var(--by-ink);
  font-size: 14px; outline: 0; box-sizing: border-box;
}
.by-textarea { padding: 12px 14px; min-height: 120px; resize: vertical; line-height: 1.5; }
.by-select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2329534F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 16px; background-position: right 14px center;
}
[dir="rtl"] .by-select { background-position: left 14px center; }
.by-input:focus, .by-select:focus, .by-textarea:focus { border-color: var(--by-amber-500); box-shadow: 0 0 0 3px var(--by-amber-100); }
.by-searchbox {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px;
  border-radius: var(--by-radius-control); background: var(--by-surface);
  border: 1px solid var(--by-input); color: var(--by-muted); min-width: 0;
}
.by-searchbox input { border: 0; outline: 0; background: transparent; font-size: 13.5px; flex-grow: 1; color: var(--by-ink); min-width: 0; height: 100%; }
/* segmented tabs (All / Attended …, In the room / Chat, EN / عربي) */
.by-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 14px; background: var(--by-chip); }
.by-seg > a, .by-seg > button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border: 0; border-radius: 10px; background: transparent; color: var(--by-ink-2);
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.by-seg > .on, .by-seg > [aria-selected="true"], .by-seg > .is-on { background: var(--by-teal-700); color: var(--by-cream); }
.by-seg--light > .on, .by-seg--light > .is-on { background: var(--by-surface); color: var(--by-teal-950); box-shadow: 0 1px 2px rgba(22,51,47,.08); }
.by-seg__n { font-weight: 800; opacity: .8; }
/* chips */
.by-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.by-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px;
  border-radius: 999px; background: var(--by-teal-50); color: var(--by-teal-700);
  font-size: 13px; font-weight: 700; border: 1px solid transparent;
}
.by-chip--line { background: var(--by-surface); border-color: var(--by-input-2); color: var(--by-ink-2); }
.by-chip--on { background: var(--by-teal-700); color: var(--by-cream); }
/* ── tables ───────────────────────────────────────────────────────────────── */
.by-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.by-table th {
  text-align: start; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--by-muted); padding: 0 10px 10px; border-bottom: 1px solid var(--by-line);
}
.by-table td { padding: 14px 10px; border-bottom: 1px solid var(--by-line-2); vertical-align: middle; }
.by-table tr:last-child td { border-bottom: 0; }
.by-tablewrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
/* ── a progress/proportion bar ────────────────────────────────────────────── */
.by-bar { height: 8px; border-radius: 999px; background: var(--by-chip); overflow: hidden; }
.by-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--by-teal-700); }
.by-bar--amber > i { background: var(--by-amber-500); }
/* ── empty state ──────────────────────────────────────────────────────────── */
.by-empty {
  display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 18px;
  border: 1px dashed var(--by-input-2); background: var(--by-chip-2); color: var(--by-muted); font-size: 13.5px;
}
.by-empty b { color: var(--by-ink); }
/* ── the dark video tile (meeting rooms, camera previews, "Meetings running") ─ */
.by-tile {
  position: relative; border-radius: 22px; background: var(--by-teal-900);
  border: 1px solid rgba(254,255,239,.08); overflow: hidden; min-height: 120px;
  display: flex; align-items: center; justify-content: center; color: var(--by-cream);
}
.by-tile--speaking { border: 2px solid var(--by-amber-500); }
.by-tile--self { border: 1px dashed rgba(254,255,239,.3); background: #1A3A36; }
.by-tile__av {
  width: 96px; height: 96px; border-radius: 50%; background: var(--by-teal-500); color: var(--by-cream);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 30px;
}
.by-tile__name {
  position: absolute; inset-block-end: 14px; inset-inline-start: 14px;
  padding: 8px 12px; border-radius: 12px; background: rgba(22,51,47,.82);
  font-size: 13.5px; font-weight: 800; color: var(--by-cream); max-width: calc(100% - 28px);
}
.by-tile__name small { display: block; font-size: 12px; font-weight: 500; color: var(--by-teal-200); }
/* ── a single message line for refusals (the scripts write into [data-msg]) ─ */
.by-say { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--by-busy-bg); color: var(--by-busy-text); font-size: 13px; font-weight: 600; margin: 0; }
.by-say--ok { background: var(--by-ok-bg); color: var(--by-ok-text); }
/* ── layout helpers ───────────────────────────────────────────────────────── */
.by-stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.by-stack--sm { gap: 12px; }
.by-cols { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.by-cols--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.by-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.by-cols--side { grid-template-columns: minmax(0, 1fr) 380px; }
.by-hr { border: 0; border-top: 1px solid var(--by-line); margin: 0; }
.by-spacer { flex-grow: 1; }
.by-inline { display: inline-flex; align-items: center; gap: 8px; }
.by-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.by-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.by-clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 1180px) {
.by-cols, .by-cols--side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
.by-card { border-radius: 22px; padding: 18px; gap: 14px; }
.by-cols--even, .by-cols--3 { grid-template-columns: minmax(0, 1fr); }
.by-pulse { padding: 14px; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); background: transparent; }
.by-pulse__k { border: 0; padding: 12px 14px; border-radius: 16px; background: rgba(254,255,239,.08); gap: 6px; }
.by-pulse__n { font-size: 28px; }
.by-pulse__h { display: none; }
.by-btn { min-height: 44px; }
.by-seg > a, .by-seg > button { min-height: 40px; }
.by-row { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
.by-btn { transition: none; }
}
/* ── 20-staff-shell.css ── */
/* ============================================================================
   Expo Studio — the staff shell: 256px teal rail + 76px top bar on a desk; a teal app
   bar and a floating five-tab bar on a phone. views/expo/cms/_top.ejs draws both, and
   CSS alone decides which one is on screen — the nav is the same array either way.
   ========================================================================== */
.by-app { display: grid; grid-template-columns: var(--by-rail-width) minmax(0, 1fr); min-height: 100vh; }
/* ── the rail ─────────────────────────────────────────────────────────────── */
.by-rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--by-teal-950); color: var(--by-cream);
  display: flex; flex-direction: column; gap: 26px; padding: 24px 18px;
  scrollbar-width: thin; scrollbar-color: rgba(254,255,239,.2) transparent;
}
.by-rail a { color: inherit; }
.by-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.by-brand__id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.by-brand__mono {
  width: 38px; height: 38px; border-radius: 11px; background: var(--by-cream); color: var(--by-teal-950);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; letter-spacing: -.02em; flex-shrink: 0;
}
.by-brand__t { font-weight: 700; font-size: 15px; line-height: 1.2; }
.by-brand__s { font-size: 11.5px; color: var(--by-teal-200); }
.by-brand__portal {
  font-size: 12px; font-weight: 700; color: var(--by-cream); padding: 7px 10px; border-radius: 999px;
  border: 1px solid rgba(254,255,239,.22); white-space: nowrap;
}
.by-rail .by-brand__portal:hover { border-color: var(--by-cream); color: var(--by-cream); }
.by-edition {
  display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px;
  background: rgba(254,255,239,.07); border: 1px solid rgba(254,255,239,.12);
}
.by-rail .by-edition:hover { background: rgba(254,255,239,.1); color: var(--by-cream); }
.by-edition__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.by-edition__l { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--by-teal-200); font-weight: 700; }
.by-edition__n { font-family: var(--by-font-display); font-weight: 700; font-size: 24px; line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.by-edition__d { font-size: 12px; color: var(--by-teal-150); }
.by-nav { display: flex; flex-direction: column; gap: 18px; flex-grow: 1; }
.by-nav__g { display: flex; flex-direction: column; gap: 2px; }
.by-nav__h { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--by-teal-300); font-weight: 700; padding: 0 12px 6px; }
[dir="rtl"] .by-nav__h, [dir="rtl"] .by-edition__l { letter-spacing: 0; }
.by-nav__a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: #E4ECE7; font-weight: 600; font-size: 14px; border: 0; background: transparent; width: 100%;
  text-align: start; font-family: inherit;
}
.by-rail .by-nav__a:hover { background: rgba(254,255,239,.07); color: var(--by-cream); }
.by-rail .by-nav__a.is-on { background: var(--by-cream); color: var(--by-teal-950); font-weight: 700; }
.by-nav__t { flex-grow: 1; min-width: 0; }
.by-nav__c { font-size: 11.5px; font-weight: 700; color: var(--by-teal-200); }
.by-nav__c--hot { color: var(--by-teal-950); background: var(--by-cream); border-radius: 999px; padding: 1px 7px; }
.by-nav__a.is-on .by-nav__c { color: var(--by-teal-950); }
.by-nav__a.is-on .by-nav__c--hot { background: var(--by-amber-500); }
.by-rail__foot { display: flex; flex-direction: column; gap: 12px; }
.by-rail__btns { display: flex; gap: 6px; }
.by-rail__btn {
  flex: 1 1 0; font-size: 12.5px; font-weight: 700; color: #E4ECE7; padding: 9px 10px;
  border-radius: 10px; border: 1px solid rgba(254,255,239,.16); text-align: center; white-space: nowrap;
}
.by-rail .by-rail__btn:hover { border-color: rgba(254,255,239,.4); color: var(--by-cream); }
.by-rail .by-rail__btn.is-on { background: var(--by-cream); color: var(--by-teal-950); border-color: var(--by-cream); }
.by-me { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(254,255,239,.06); }
.by-me__n { font-weight: 700; font-size: 13.5px; min-width: 0; }
/* ── the top bar ──────────────────────────────────────────────────────────── */
.by-main { display: flex; flex-direction: column; min-width: 0; }
.by-top {
  position: sticky; top: 0; z-index: 30;
  height: var(--by-topbar-height); flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 40px; border-bottom: 1px solid var(--by-line); background: var(--by-topbar);
}
.by-crumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--by-muted); font-weight: 600; min-width: 0; }
.by-crumbs a { color: var(--by-muted); }
.by-crumbs__sep { color: #C9C4B6; }
.by-crumbs__on { color: var(--by-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-top__tools { display: flex; align-items: center; gap: 12px; }
.by-top .by-searchbox { width: 340px; height: 42px; }
.by-lang { display: flex; padding: 4px; border-radius: 12px; background: var(--by-chip); gap: 2px; }
.by-lang button {
  height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent;
  color: var(--by-ink-2); font-weight: 700; font-size: 13px;
}
/* ⚠️ The old sheet's .langsw rules still match these buttons by [data-lang]; the switch
   itself only toggles `.on`. */
.by-lang button.on { background: var(--by-teal-700); color: var(--by-cream); }
.by-lang--dark { background: rgba(254,255,239,.1); }
.by-lang--dark button { color: var(--by-teal-150); }
.by-lang--dark button.on { background: var(--by-cream); color: var(--by-teal-950); }
.by-content { flex-grow: 1; padding: var(--by-content-pad); display: flex; flex-direction: column; gap: 28px; min-width: 0; }
/* ── the page title block ─────────────────────────────────────────────────── */
.by-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.by-head__t { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.by-head__aside { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--by-muted); font-weight: 600; }
.by-updated { display: inline-flex; align-items: center; gap: 8px; }
/* ── the phone: app bar + floating tab bar ────────────────────────────────── */
.by-appbar, .by-tabbar, .by-scrim { display: none; }
@media (max-width: 900px) {
.by-app { display: block; }
.by-top { display: none; }
.by-appbar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    position: sticky; top: 0; z-index: 40;
    padding: 12px 16px calc(12px); padding-top: max(12px, env(safe-area-inset-top));
    background: var(--by-teal-950); color: var(--by-cream);
  }
.by-appbar__btn {
    width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(254,255,239,.2);
    background: transparent; color: var(--by-cream); display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; flex-shrink: 0;
  }
.by-appbar__mid { display: flex; align-items: center; gap: 8px; min-width: 0; }
.by-appbar__ed { font-family: var(--by-font-display); font-weight: 700; font-size: 20px; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-appbar__end { display: flex; align-items: center; gap: 8px; }
.by-appbar .by-av { width: 44px; height: 44px; }
/* The page title sits in the teal band on a phone, not on the cream. */
.by-content { padding: var(--by-mobile-pad); gap: 18px; }
.by--staff .by-head {
    margin: -16px -16px 0; padding: 4px 16px 20px; background: var(--by-teal-950); color: var(--by-cream);
  }
.by--staff .by-head .by-h1 { color: var(--by-cream); font-size: 30px; }
.by--staff .by-head .by-eyebrow { color: var(--by-amber-300); }
.by--staff .by-head__aside { color: var(--by-teal-200); }
.by--staff .by-head + .by-pulse { margin: -18px -16px 0; border-radius: 0; background: var(--by-teal-950); padding: 0 16px 20px; }
/* the rail becomes a drawer, opened by «More» */
.by-rail {
    position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 60; width: min(320px, 86vw);
    transform: translateX(-102%); transition: transform .22s ease; height: 100dvh;
  }
[dir="rtl"] .by-rail { transform: translateX(102%); }
.by-app[data-rail-open] .by-rail { transform: none; }
.by-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(22,51,47,.45); }
.by-app[data-rail-open] .by-scrim { display: block; }
.by-tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px;
    position: fixed; z-index: 50; inset-inline: 12px; inset-block-end: max(12px, env(safe-area-inset-bottom));
    padding: 6px; border-radius: 26px; background: var(--by-teal-950); box-shadow: var(--by-shadow-float);
  }
.by-tab {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 60px; border-radius: 20px; border: 0; background: transparent;
    color: var(--by-teal-150); font-size: 11.5px; font-weight: 700; font-family: inherit;
  }
.by-tab.is-on { background: var(--by-cream); color: var(--by-teal-950); }
.by-tab .by-i { width: 20px; height: 20px; }
.by-tab__n {
    position: absolute; inset-block-start: 4px; inset-inline-end: calc(50% - 22px);
    min-width: 18px; height: 18px; border-radius: 999px; padding: 0 5px;
    background: var(--by-amber-500); color: var(--by-teal-950); font-size: 10.5px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
  }
/* a full-bleed screen (the live room) hides the tab bar */
.by--bleed .by-tabbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.by-rail { transition: none; }
}
/* one button that says the OTHER language (ع on an English page, EN on an Arabic one) */
.by-lang--one { padding: 0; background: transparent; }
.by-lang--one button {
  width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(254,255,239,.2);
  background: transparent; color: var(--by-cream); font-size: 15px; font-weight: 800;
}
.by-lang--one button.on { display: none; }
/* ── fixes read off the first screenshots (Poppins runs wider than the design's face) ── */
.by-brand__t { font-size: 14px; white-space: nowrap; }
.by-brand__s { white-space: nowrap; }
.by-brand__portal { padding: 6px 9px; font-size: 11.5px; }
.by-edition__l { letter-spacing: .1em; white-space: nowrap; }
.by-edition__n { font-size: 20px; }
.by-appbar a, .by-appbar a:hover { color: inherit; }
.by-h2 { font-weight: 700; }
@media (max-width: 900px) {
/* the dock's launcher sits above the floating tab bar, never on it */
.by .dock { bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
}
/* the rail's colour runs the full height of a long page (the rail itself is sticky) */
@media (min-width: 901px) {
.by-app { background: linear-gradient(90deg, var(--by-teal-950) var(--by-rail-width), var(--by-page) var(--by-rail-width)); }
[dir="rtl"] .by-app { background: linear-gradient(-90deg, var(--by-teal-950) var(--by-rail-width), var(--by-page) var(--by-rail-width)); }
}
/* a live region (the ten-second poll swaps its innerHTML) spaces its children like the page */
.by-content > [data-live-region] { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
@media (max-width: 900px) {
.by-content > [data-live-region] { gap: 18px; }
}
/* ── the sign-in doors (views/expo/cms/login.ejs) ─────────────────────────── */
.by-door { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.by-door__band {
  background: var(--by-teal-950); color: var(--by-cream); padding: 40px 48px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.by-door__pitch { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.by-door__foot { margin: 0; font-size: 13px; color: var(--by-teal-200); max-width: 460px; line-height: 1.6; }
.by-door__side { padding: 32px 40px; display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.by-door__card { width: 100%; max-width: 440px; margin: 0 auto; box-shadow: var(--by-shadow-card); }
@media (max-width: 900px) {
.by-door { grid-template-columns: minmax(0, 1fr); }
.by-door__band { padding: 24px 16px; gap: 20px; }
.by-door__foot { display: none; }
.by-door__side { padding: 20px 16px 40px; justify-content: flex-start; }
}
/* the brand block gives way to «← Portal» instead of running under it: in Arabic
   «استوديو المعرض» is wider than «Expo Studio», and a nowrap title slid under the button */
.by-brand__id { flex: 1 1 auto; min-width: 0; }
.by-brand__id > div:last-child { min-width: 0; }
.by-brand__t, .by-brand__s { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
.by-brand__portal { flex-shrink: 0; }
/* ── 21-clients-drawer.css ── */
/* ============================================================================
   The clients rail as a drawer (views/expo/cms/_clientrail.ejs).
   The rows inside are built by expo-cms-site.js with the old class names — .crow,
   .crow__dot, .crow__n, .crow__m, .crow__w, .crow__tag, .crow2, .clink — so they are
   drawn here in the redesign's list style rather than renamed in the script.
   ========================================================================== */
.by-crail {
  position: fixed; z-index: 70; inset-block: 0; inset-inline-end: 0;
  width: min(560px, 100vw); background: var(--by-page);
  border-inline-start: 1px solid var(--by-line); box-shadow: -30px 0 60px -30px rgba(22,51,47,.35);
  transform: translateX(104%); transition: transform .22s ease; visibility: hidden;
}
[dir="rtl"] .by-crail { transform: translateX(-104%); box-shadow: 30px 0 60px -30px rgba(22,51,47,.35); }
.by-crail[data-open] { transform: none; visibility: visible; }
.by-crail__in { height: 100%; overflow-y: auto; padding: 24px 24px 40px; display: flex; flex-direction: column; gap: 14px; }
.by-crail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.by-crail__h { margin: 4px 0 0; font-family: var(--by-font-display); font-weight: 700; font-size: 26px; line-height: 1.15; color: var(--by-teal-950); }
.by-crail__seg { align-self: flex-start; }
.by-crail__seg .crail__chip { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--by-ink-2); cursor: pointer; }
.by-crail__seg .crail__chip.on { background: var(--by-teal-700); color: var(--by-cream); }
.by-crail__filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.by-crail__filters .by-field:has(> select[hidden]) { display: none; }
.by-crail__list { display: flex; flex-direction: column; gap: 8px; }
.by-crail .crail__note { font-size: 13px; color: var(--by-muted); margin: 6px 2px; }
/* a row: [dot] name / status / when  [meetings]  [link state · copy] */
.by-crail .crow2 { display: flex; align-items: stretch; gap: 8px; }
.by-crail .crow {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px; background: var(--by-surface); border: 1px solid var(--by-line);
  color: var(--by-ink); text-decoration: none;
}
.by-crail .crow:hover { border-color: var(--by-teal-100); background: var(--by-teal-25); }
.by-crail .crow__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--by-off); flex-shrink: 0; }
.by-crail .crow__dot--came { background: var(--by-ok); }
.by-crail .crow__b { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.by-crail .crow__n { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-crail .crow__m { font-size: 12.5px; color: var(--by-amber-700); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-crail .crow__w { font-family: var(--by-font-mono); font-size: 11.5px; color: var(--by-muted); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.by-crail .crow__tag {
  min-width: 30px; height: 30px; border-radius: 50%; background: var(--by-teal-50); color: var(--by-teal-700);
  font-family: var(--by-font-mono); font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.by-crail .clink {
  all: unset; box-sizing: border-box; cursor: pointer; flex: 0 0 132px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 8px 12px;
  border-radius: 16px; border: 1px solid var(--by-line); background: var(--by-surface);
}
.by-crail .clink:hover { border-color: var(--by-teal-100); }
.by-crail .clink__s {
  align-self: flex-start; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
  background: var(--by-chip); color: var(--by-muted);
}
.by-crail .clink--used .clink__s { background: var(--by-ok-bg); color: var(--by-ok-text); }
.by-crail .clink--sent .clink__s { background: var(--by-amber-100); color: var(--by-amber-700); }
.by-crail .clink__t { font-size: 12.5px; font-weight: 700; color: var(--by-teal-700); }
.by-crail .clink--done .clink__t { color: var(--by-ok-text); }
@media (max-width: 900px) {
.by-crail { width: 100vw; }
.by-crail__in { padding: max(16px, env(safe-area-inset-top)) 16px 110px; }
.by-crail__filters { grid-template-columns: minmax(0, 1fr); }
.by-crail .crow2 { flex-direction: column; }
.by-crail .clink { flex-basis: auto; flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
.by-crail { transition: none; }
}
/* ── 30-staff-pages.css ── */
/* ============================================================================
   Expo Studio — pieces that belong to one or two staff pages.
   ========================================================================== */

/* a running meeting: dark stage with the two faces, who, and the hero «Join» */
.by-meetrow {
  display: flex; align-items: center; gap: 18px; padding: 14px; border-radius: 20px;
  background: var(--by-chip-2); border: 1px solid var(--by-line);
}
.by-meetrow__stage {
  position: relative; width: 132px; height: 84px; border-radius: 16px; background: var(--by-teal-950);
  display: flex; align-items: center; justify-content: center; gap: 0; flex-shrink: 0;
}
.by-meetrow__stage .by-pill { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; height: 20px; font-size: 10px; padding: 0 8px; }
.by-meetrow__stage .by-av { width: 36px; height: 36px; font-size: 12px; border: 2px solid var(--by-teal-950); }
.by-meetrow__stage .by-av + .by-av { margin-inline-start: -8px; }
.by-meetrow .by-row__name { font-size: 16px; }
/* two-up grid of person rows (In the expo) */
.by-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) {
.by-grid2 { grid-template-columns: minmax(0, 1fr); }
.by-meetrow { flex-wrap: wrap; }
.by-meetrow__stage { width: 100%; height: 120px; }
.by-meetrow > .by-btn { width: 100%; }
}
/* ── My Team Live: client cards (views/expo/cms/_mcards.ejs) ─────────────── */
.by-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.by-ccard {
  display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 18px;
  background: var(--by-surface); border: 1px solid var(--by-line); min-width: 0;
}
.by-ccard--live { border: 1.5px solid var(--by-busy); box-shadow: 0 10px 30px -22px rgba(200,55,45,.6); }
.by-ccard__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.by-ccard__name { font-weight: 700; font-size: 15px; color: var(--by-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-ccard__dev {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px;
  background: var(--by-chip-2); min-width: 0;
}
.by-ccard__kv { display: flex; flex-direction: column; min-width: 0; flex: 1 1 0; }
.by-ccard__kv small { font-size: 10.5px; color: var(--by-muted); font-weight: 600; }
.by-ccard__kv b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-ccard__timer { font-size: 13px; font-weight: 700; color: var(--by-busy-text); }
/* one BackYard salesperson with their cards under them */
.by-agent { display: flex; flex-direction: column; gap: 10px; }
.by-agent > .by-cgrid { padding-inline-start: 16px; }
/* a team that folds */
.by-team { border: 1px solid var(--by-line); border-radius: 18px; background: var(--by-surface); overflow: hidden; }
.by-team + .by-team { margin-top: 0; }
.by-team__head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none;
  background: var(--by-chip-2); flex-wrap: wrap;
}
.by-team__head::-webkit-details-marker { display: none; }
.by-team__chev { transition: transform .15s; transform: rotate(-90deg); }
[dir="rtl"] .by-team__chev { transform: rotate(90deg); }
.by-team[open] .by-team__chev { transform: none; }
.by-team__n { font-size: 15px; }
.by-team__n--warn { color: var(--by-amber-700); }
.by-team__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
/* All chats */
.by-chats { display: flex; flex-direction: column; }
.by-chat {
  display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--by-line-2);
  color: var(--by-ink); min-width: 0;
}
.by-chat:last-child { border-bottom: 0; }
.by-chat:hover { background: var(--by-teal-25); }
.by-av__on--live { background: var(--by-busy); }
.by-av__on--here { background: var(--by-ok); }
.by-av__on--off { background: var(--by-off); }
/* the floating chat window (team-live.ejs) — the old .chatwin, in the new palette */
.by .chatwin { border-radius: 22px; border: 1px solid var(--by-line); box-shadow: var(--by-shadow-float); overflow: hidden; }
.by .chatwin__head { background: var(--by-teal-950); padding: 14px 16px; }
.by .chatwin__logo { border-radius: 10px; }
.by .chatwin__close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(254,255,239,.12); }
.by .chatwin__info { background: var(--by-chip-2); }
.by .chatwin__dur { color: var(--by-busy-text); }
.by .chatwin__body { background: var(--by-page); }
@media (max-width: 900px) {
.by-cgrid { grid-template-columns: minmax(0, 1fr); }
.by-agent > .by-cgrid { padding-inline-start: 0; }
.by .chatwin { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
/* ── Inbox ────────────────────────────────────────────────────────────────── */
.by-inbox { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.by-inbox__rule { max-width: 460px; font-weight: 500; font-size: 12.5px; text-align: end; margin: 0; }
.by-inbox__list { position: sticky; top: calc(var(--by-topbar-height) + 16px); max-height: calc(100vh - var(--by-topbar-height) - 40px); }
.by-inbox__live { display: flex; flex-direction: column; gap: 12px; min-height: 0; flex: 1 1 auto; }
.by-seg--full { display: flex; }
.by-seg--full > a { flex: 1 1 0; justify-content: center; }
/* 🟢 v6.0.68 — the inbox's two signs: the dot is online/offline, the circle's colour is
   came/never came — and the legend above the list that says so. */
.by-av--never { background: var(--by-chip-2); color: var(--by-off); filter: grayscale(1); }
.by-ilegend { list-style: none; margin: 0 0 10px; padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 6px 14px;
  border-radius: 12px; background: var(--by-chip-2); font-size: 12px; color: var(--by-ink-2); }
.by-ilegend li { display: inline-flex; align-items: center; gap: 6px; }
.by-ilegend .by-av__on { position: static; width: 10px; height: 10px; border: 0; display: inline-block; }
.by-ilegend .by-av--xs { width: 20px; height: 20px; font-size: 8.5px; }
.by-ilist { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; margin: 0 -6px; padding: 0 6px; }
.by-irow {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 16px;
  color: var(--by-ink); border: 1px solid transparent;
}
.by-irow:hover { background: var(--by-chip-2); color: var(--by-ink); }
.by-irow.is-on { background: var(--by-teal-25); border-color: var(--by-teal-100); }
.by-irow__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.by-irow__n { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-irow.is-unread .by-irow__n { font-weight: 800; }
.by-irow__t { font-size: 11.5px; color: var(--by-muted); flex-shrink: 0; }
.by-irow__p { font-size: 13px; color: var(--by-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-irow__p b { font-weight: 600; color: var(--by-muted); }
.by-irow__w { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 11.5px; color: var(--by-muted); align-items: center; }
.by-inbox__thread { padding: 0; gap: 0; min-height: 560px; overflow: hidden; }
.by-inbox__pick { padding: 60px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; max-width: 460px; margin: auto; }
.by-thread__head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--by-line); }
.by-thread__head .by-row__name { font-size: 17px; }
.by .by-thread__body {
  display: flex; flex-direction: column; gap: 14px; padding: 22px; min-height: 380px; max-height: 62vh;
  overflow-y: auto; background: var(--by-page); height: auto; border: 0; border-radius: 0;
}
.by-composer { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--by-line); background: var(--by-surface); }
.by-composer .by-btn--icon { width: 46px; min-height: 46px; }
.by-inbox__thread > .by-say, .by-inbox__thread > .by-note { margin: 0 18px 16px; }
/* the conversation bubbles — the same classes the script builds for every new line */
.by .by-thread__body .chat__day, .by .by-thread .chat__day {
  align-self: center; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--by-muted); background: transparent;
}
.by .by-thread__body .msg { display: flex; flex-direction: column; gap: 4px; max-width: 72%; margin: 0; }
.by .by-thread__body .msg--in { align-self: flex-start; align-items: flex-start; }
.by .by-thread__body .msg--out { align-self: flex-end; align-items: flex-end; }
.by .by-thread__body .msg__bubble {
  padding: 12px 16px; border-radius: 18px; font-size: 14px; line-height: 1.45;
  background: var(--by-surface); color: var(--by-ink); border: 1px solid var(--by-line);
  white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: none;
}
.by .by-thread__body .msg--in .msg__bubble { border-end-start-radius: 6px; }
.by .by-thread__body .msg--out .msg__bubble { background: var(--by-teal-700); color: var(--by-cream); border-color: var(--by-teal-700); border-end-end-radius: 6px; }
.by .by-thread__body .msg--auto .msg__bubble { background: var(--by-amber-50); color: var(--by-ink); border-color: var(--by-amber-border); }
.by .by-thread__body .msg__time { font-size: 11.5px; font-weight: 700; color: var(--by-ink-2); }
@media (max-width: 1180px) {
.by-inbox { grid-template-columns: minmax(0, 1fr); }
.by-inbox__list { position: static; max-height: none; }
.by-inbox__rule { text-align: start; }
}
@media (max-width: 900px) {
.by-inbox__rule { display: none; }
.by .by-thread__body { max-height: 56vh; padding: 16px; }
.by .by-thread__body .msg { max-width: 86%; }
.by-thread__head { padding: 14px 16px; }
}
.by .by-thread__body .chat__day[data-i18n="z.ch.none"] { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 13px; margin: auto; }
/* ── the client page: journey timeline, their link, each meeting ─────────── */
.by-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.by-tl__i {
  position: relative; display: flex; flex-direction: column; gap: 2px; font-size: 13px;
  padding-inline-start: 24px; padding-bottom: 16px; border-inline-start: 2px solid var(--by-line);
  margin-inline-start: 6px;
}
.by-tl__i:last-child { border-inline-start-color: transparent; padding-bottom: 0; }
.by-tl__i::before {
  content: ''; position: absolute; inset-inline-start: -7px; inset-block-start: 2px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--by-surface); border: 2px solid var(--by-input-2);
}
.by-tl__i.is-done::before { background: var(--by-teal-700); border-color: var(--by-teal-700); }
.by-tl__i.is-live::before { background: var(--by-busy); border-color: var(--by-busy); }
.by-tl__i b { font-size: 14px; }
.by-tl__i .by-mono { font-size: 12.5px; color: var(--by-ink-2); }
.by-tl__i .by-muted { font-size: 12px; }
.by-linkbox {
  display: block; padding: 12px 14px; border-radius: 12px; background: var(--by-chip-2); border: 1px solid var(--by-line);
  font-family: var(--by-font-mono); font-size: 12.5px; color: var(--by-ink-2); overflow-wrap: anywhere; text-align: start;
}
.by-meet { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid var(--by-line-2); }
.by-meet:first-of-type { border-top: 0; padding-top: 0; }
.by-meet__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.by-rec { display: flex; flex-direction: column; gap: 8px; }
.by-rec__v { width: 100%; max-height: 320px; border-radius: 16px; background: var(--by-teal-950); }
/* 💬 v6.0.67 — the chat typed inside a meeting, under its recording */
.by-mchat summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.by-mchat summary::-webkit-details-marker { display: none; }
.by-mchat__list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding: 12px 14px; border-radius: 14px; background: var(--by-chip-2); max-height: 280px; overflow-y: auto; }
.by-mchat__row { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: baseline; font-size: 13.5px; }
.by-mchat__row > span:last-child { overflow-wrap: anywhere; }
.by-waive { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: var(--by-chip-2); border: 1px dashed var(--by-input-2); }
/* ── My link: the invitation band and the client rows ─────────────────────── */
.by-invite { padding: 30px 32px; }
.by-invite__main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.by-invite__link {
  font-family: var(--by-font-mono); font-weight: 600; font-size: 28px; letter-spacing: -.01em; color: var(--by-cream);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start;
}
.by-invite__rule { margin: 0; padding-top: 16px; border-top: 1px solid rgba(254,255,239,.14); font-size: 13.5px; color: var(--by-teal-150); line-height: 1.55; }
.by-invite__rule .by-i { color: var(--by-amber-300); margin-inline-end: 6px; vertical-align: -2px; }
.by-invite__rule strong { color: var(--by-cream); }
.by-mylink__code { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 9px 12px; font-size: 12px; }
/* ── the ready screen (views/expo/site/_prep.ejs), wherever it is drawn ───── */
.by .deskstage { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0; }
.by .deskstage__v { background: var(--by-teal-950); border-radius: 20px; }
.by .deskstage__me, .by .deskstage__vb { background: var(--by-teal-950); }
.by .deskstage__msg { color: var(--by-cream); }
.by .deskstage__ico { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: var(--by-teal-500); align-items: center; justify-content: center; margin: 0 auto 12px; }
.by .deskstage__msg .btn { background: var(--by-amber-500); color: var(--by-teal-950); border-radius: 12px; font-weight: 800; }
.by .deskstage__bar { background: rgba(22,51,47,.82); border-color: rgba(254,255,239,.14); }
.by .deskstage__bar .tool { background: rgba(254,255,239,.1); color: var(--by-cream); border: 0; }
.by .deskstage__bar .tool.tool--off { background: var(--by-busy); color: #fff; }
.by .deskstage__bar .tool--end { background: var(--by-busy); color: #fff; }
.by .deskstage > .sect__hint { padding: 12px 2px 0; font-size: 12.5px; color: var(--by-muted); line-height: 1.55; }
@media (max-width: 900px) {
.by-invite { padding: 20px; }
.by-invite__link { font-size: 18px; }
.by-mylink { flex-wrap: wrap; }
.by-mylink__code { max-width: none; flex: 1 1 100%; order: 3; }
}
/* ── Reports ──────────────────────────────────────────────────────────────── */
.by-rgroups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 22px; background: var(--by-chip); }
.by-rgroup {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; color: var(--by-ink);
}
.by-rgroup:hover { background: rgba(255,255,253,.6); color: var(--by-ink); }
.by-rgroup.is-on { background: var(--by-teal-900); color: var(--by-cream); }
.by-rgroup.is-on:hover { color: var(--by-cream); }
.by-rgroup__ico { width: 38px; height: 38px; border-radius: 11px; background: var(--by-surface); color: var(--by-teal-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.by-rgroup.is-on .by-rgroup__ico { background: rgba(254,255,239,.12); color: var(--by-cream); }
.by-rgroup b { font-size: 14.5px; }
.by-rgroup__sub { font-size: 12px; color: var(--by-muted); }
.by-rgroup.is-on .by-rgroup__sub { color: var(--by-teal-200); }
/* a grid "table": one header row, then rows — scrolls sideways on a narrow screen */
.by-rtable { display: grid; min-width: 0; }
.by-rtable__h, .by-rtable__r { display: grid; gap: 14px; align-items: center; padding: 12px 4px; }
.by-rtable__h {
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--by-muted);
  border-bottom: 1px solid var(--by-line); padding-top: 0;
}
[dir="rtl"] .by-rtable__h { letter-spacing: 0; }
.by-rtable__r { border-bottom: 1px solid var(--by-line-2); font-size: 13px; }
.by-rtable__r:last-child { border-bottom: 0; }
.by-rtable--clients .by-rtable__h, .by-rtable--clients .by-rtable__r { grid-template-columns: 1.2fr .9fr .9fr 1.5fr repeat(4, .75fr); min-width: 1000px; }
.by-rtable--meet .by-rtable__h, .by-rtable--meet .by-rtable__r { grid-template-columns: 1fr 1fr 1.4fr .7fr .8fr 1fr 1fr 1fr; min-width: 1000px; }
.by-rtable--tree .by-rtable__h, .by-rtable--tree .by-rtable__r { grid-template-columns: minmax(260px, 2.4fr) repeat(3, .6fr) 1fr; min-width: 700px; padding-block: 8px; }
.by-rtable--tree .by-rtable__r.is-root { background: var(--by-chip-2); border-radius: 12px; }
.by-tcell { position: relative; padding-top: 14px; font-size: 12px; }
.by-tcell::before { content: ''; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--by-input-2); background: var(--by-surface); }
.by-tcell.is-on::before { background: var(--by-teal-700); border-color: var(--by-teal-700); }
.by-metdev { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: var(--by-chip-2); border: 1px solid var(--by-line); min-width: 0; }
.by-metdev b { font-size: 13px; }
.by-zero { color: var(--by-dim); font-weight: 500; }
.by-tree { display: flex; align-items: center; gap: 8px; min-width: 0; padding-inline-start: calc(var(--d, 0) * 20px); }
.by-tree__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--by-input-2); flex-shrink: 0; }
.by-rtable__r.is-root .by-tree__dot { background: var(--by-teal-700); }
.by-tree b { font-size: 13.5px; white-space: nowrap; }
.by-rgrp { border: 1px solid var(--by-line); border-radius: 18px; overflow: hidden; }
.by-rgrp__h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; background: var(--by-chip-2); border-bottom: 1px solid var(--by-line); }
.by-rgrp .by-tablewrap { padding: 4px 12px; }
.by-rdev { display: flex; flex-direction: column; gap: 14px; padding: 18px 0; border-top: 1px solid var(--by-line-2); }
.by-rdev:first-of-type { border-top: 0; padding-top: 0; }
.by-stats--joined { gap: 0; border: 1px solid var(--by-line); border-radius: 18px; overflow: hidden; }
.by-stats--joined .by-stat { border: 0; border-radius: 0; border-inline-start: 1px solid var(--by-line); }
.by-stats--joined .by-stat:first-child { border-inline-start: 0; }
.by-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.by-pcard { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: var(--by-chip-2); border: 1px solid var(--by-line); min-width: 0; }
.by-kv { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--by-muted); padding-top: 6px; border-top: 1px solid var(--by-line); }
.by-kv + .by-kv { border-top: 0; padding-top: 0; }
.by-kv b { color: var(--by-ink); }
.by-gaps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.by-gap { display: flex; gap: 18px; padding: 20px; border-radius: 20px; border: 1px solid var(--by-line); background: var(--by-surface); }
.by-gap.is-open { background: var(--by-amber-50); border-color: var(--by-amber-border); }
.by-gap__n { font-size: 48px; color: var(--by-teal-700); min-width: 52px; }
.by-gap.is-open .by-gap__n { color: var(--by-amber-700); }
.by-gap__t { font-size: 15px; }
@media (max-width: 900px) {
.by-rgroups { grid-template-columns: minmax(0, 1fr); }
.by-gaps { grid-template-columns: minmax(0, 1fr); }
.by-stats--joined { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ── All expos ───────────────────────────────────────────────────────────── */
.by-h1__tag { display: block; margin-top: 8px; font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--by-teal-500); }
.by-edcard__n { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--by-teal-950); line-height: 1.1; }
.by-edcard__day { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 180px; }
.by-edcard__day .by-bar { width: 100%; }
.by-card--flat .by-row--flat { flex-wrap: wrap; }
.by-card--flat .by-row--flat > .by-row__main { flex: 1 1 100%; }
/* ── /expo inside the portal (views/expo/index.ejs, scoped under .expo-ui) ── */
.by-portal { display: flex; flex-direction: column; gap: 24px; padding: 8px 0 40px; font-family: var(--by-font-ui); color: var(--by-ink); }
.by-portal__nav { align-self: flex-start; }
/* 🎱 v6.0.58 — the distribution's on/off, on the Clients page. A real checkbox (it is what
   the keyboard and a screen reader understand), drawn as a switch. */
.by-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; color: var(--by-ink); flex: none; }
.by-switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; margin: 0;
  background: var(--by-line); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.by-switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.by-switch input:checked { background: var(--by-teal-700); }
.by-switch input:checked::after { transform: translateX(18px); }
[dir="rtl"] .by-switch input::after { left: auto; right: 3px; }
[dir="rtl"] .by-switch input:checked::after { transform: translateX(-18px); }
.by-switch input:focus-visible { outline: 2px solid var(--by-amber-500, #e5a434); outline-offset: 2px; }
[data-dist] .by-input[type="number"] { height: 34px; padding: 0 8px; }
/* the distribution's roster, folded under its own summary line */
.by-dist__who { margin-top: 10px; }
.by-dist__who > summary { cursor: pointer; font-weight: 700; color: var(--by-ink); padding: 10px 0; list-style-position: inside; }
.by-dist__who[open] > summary { margin-bottom: 8px; }
/* on a phone the two strategies stack rather than run off the edge */
[data-dist] .by-seg { flex-wrap: wrap; }
@media (max-width: 600px) {
[data-dist] .by-seg > button { flex: 1 1 100%; }
}
/* ── 40-rooms.css ── */
/* ============================================================================
   Expo Studio — the three meeting rooms (staff /admin/…/room, client /x/c/…/meeting,
   developer /x/a/…/meeting), drawn in the redesign's «dark stage» language.

   ⚠️ THE MARKUP IS THE VIDEO ENGINE'S CONTRACT, so nothing here renames a class.
   public/js/expo-meeting.js writes inline grid geometry on [data-zr-remotes], sets
   data-n / data-pin / --strip-n on it, data-self-strip / data-sharing / data-full-on on
   the stage, and names each tile through `content: attr(data-name)`. Those rules live in
   the old sheet (the ROOM / STAGE / SPOT blocks of build_expo_assets.js) and are left
   alone; this file only paints the frame around them: the stage card, the header pills,
   the tool bar under the picture, and the side panel.
   ========================================================================== */
.by .meet { background: transparent; gap: 20px; }
.by .meet__main { background: var(--by-teal-950); border-radius: 28px; overflow: hidden; }
/* the header: who, recording, timer, weak connection */
.by .meet__top { padding: 18px 22px 14px; gap: 10px; flex-wrap: wrap; }
.by .meet__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.by .meet__lbl { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--by-teal-300); }
[dir="rtl"] .by .meet__lbl { letter-spacing: 0; }
.by .meet__client { font-family: var(--by-font-display); font-weight: 700; font-size: 24px; line-height: 1.15; color: var(--by-cream); }
.by .meet__rec {
  height: 30px; padding: 0 12px; border-radius: 999px; background: var(--by-busy); color: #fff;
  font-weight: 800; font-size: 12.5px; border: 0;
}
.by .meet__rec i { background: #fff; }
.by .meet__timer {
  height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px;
  background: rgba(254,255,239,.08); color: var(--by-cream); font-family: var(--by-font-mono); font-weight: 600;
}
.by .meet__net { background: var(--by-amber-50); color: var(--by-amber-700); border: 0; font-weight: 800; height: 30px; display: inline-flex; align-items: center; }
/* the picture */
.by .meet__video { border-radius: 22px; background: var(--by-teal-900); }
.by .meet__self { border-radius: 16px; }
/* the tool bar sits UNDER the picture on a desk, as in the design */
@media (min-width: 901px) {
.by .meet__stage { padding: 0 16px; }
.by .meet__tools {
    position: static; transform: none; max-width: none; margin: 14px 16px 16px;
    background: rgba(254,255,239,.06); border: 1px solid rgba(254,255,239,.08); border-radius: 22px;
    padding: 10px; justify-content: flex-start; box-shadow: none;
  }
.by .meet__tools .tool--end { margin-inline-start: auto; }
}
.by .tool {
  border-radius: 14px; background: rgba(254,255,239,.1); border: 1px solid rgba(254,255,239,.12); color: var(--by-cream);
}
.by .tool:hover { background: rgba(254,255,239,.16); }
.by .tool.tool--off { background: var(--by-busy); border-color: var(--by-busy); color: #fff; }
.by .tool--end { background: var(--by-busy); border-color: var(--by-busy); color: #fff; font-weight: 800; border-radius: 14px; }
.by .tool--invite { border-radius: 14px; }
.by .tool--chev { border-radius: 12px; }
.by .meet__say { background: rgba(254,255,239,.06); color: var(--by-teal-150); }
.by .meet__say--warn { background: var(--by-amber-50); color: var(--by-amber-700); }
/* the side panel — dark on the client's and the developer's screens */
.by .rail { border-radius: 28px; overflow: hidden; background: var(--by-teal-900); border: 0; }
.by .rail__tabs { margin: 14px 14px 4px; padding: 4px; border-radius: 14px; background: rgba(254,255,239,.08); border: 0; gap: 2px; }
.by .rail__tab { border-radius: 10px; box-shadow: none; font-weight: 700; }
.by .rail__tab.on { background: var(--by-cream); color: var(--by-teal-950); box-shadow: none; }
.by .person { padding: 10px 8px; border-bottom: 1px solid rgba(254,255,239,.08); border-radius: 0; }
.by .person__av { background: var(--by-teal-500); color: var(--by-cream); font-weight: 800; }
.by .privacy { border-radius: 16px; font-size: 12.5px; line-height: 1.55; }
.by .privacy .by-i { flex-shrink: 0; margin-top: 2px; }
/* …and white on the staff room, as in the design */
.by--room .meet { height: calc(100vh - var(--by-topbar-height) - 76px); min-height: 560px; grid-template-columns: minmax(0, 1fr) 340px; }
.by--room .rail { background: var(--by-surface); border: 1px solid var(--by-line); color: var(--by-ink); }
.by--room .rail__tabs { background: var(--by-chip); }
.by--room .rail__tab { color: var(--by-ink-2); }
.by--room .rail__tab.on { background: var(--by-teal-700); color: var(--by-cream); }
.by--room .person { border-bottom-color: var(--by-line-2); }
.by--room .person__n { color: var(--by-ink); font-weight: 700; }
.by--room .person__r { color: var(--by-muted); }
.by--room .privacy { background: var(--by-amber-50); border: 1px solid var(--by-amber-border); color: var(--by-ink-2); }
.by--room .rail .chat__body, .by--room .rail .rail__body--chat { background: var(--by-page); color: var(--by-ink); }
@media (max-width: 900px) {
.by--room .by-content { padding: 0; }
.by--room .meet { height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 0; }
.by .meet__main { border-radius: 0; }
.by--room .rail { border-radius: 28px 28px 0 0; margin-top: -24px; position: relative; z-index: 2; }
.by .meet__client { font-size: 20px; }
}
.by--meeting .privacy, .by .rail .privacy { background: rgba(254,255,239,.07); border: 1px solid rgba(254,255,239,.14); color: var(--by-teal-150); }
.by--meeting .privacy b { color: var(--by-cream); }
.by--room .rail .privacy { background: var(--by-amber-50); border-color: var(--by-amber-border); color: var(--by-ink-2); }
.by--room .rail .privacy b { color: var(--by-ink); }
/* ── 41-meeting-stage.css ── */
/* ============================================================================
   v6.0.59 — the meeting, as one full-screen room (all three chairs)
   ============================================================================
   Ali, 30 Sep 2026 — Meeting_UI_Issues_and_Fixes.docx, ten items. This sheet is the
   frame for them; the arithmetic that places every tile is public/js/expo-meeting.js
   (applyStage), which writes left/top/width/height on each box — so nothing here sizes
   a tile, it only paints one.

   ⚠️ The markup is still the video engine's contract: nothing is renamed. The old
   stage's rules (data-n / data-pin / --strip-n in build_expo_assets.js) key on
   attributes the new stage never sets, so they go quiet by themselves; the ones that
   would still apply are overruled here under [data-layout], which only the new stage
   writes.
   ========================================================================== */

/* ── 9 · one page, one background ─────────────────────────────────────────── */
body.by--meeting, body.by--room {
  background: var(--by-teal-950);
  overflow: hidden;
  /* 8 · a double tap is a tap, never a zoom */
  touch-action: manipulation;
}
body.by--meeting { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
body.by--meeting > .by-cbar { flex: none; }
body.by--meeting > .foot { display: none; }
body.by--meeting > .meet { flex: 1 1 auto; min-height: 0; }
/* BackYard's room drops the Studio around it — «a single full-viewport page». Leaving is
   the red button, which is also what writes that they left. */
body.by--room .by-rail, body.by--room .by-top, body.by--room .by-appbar,
body.by--room .by-tabbar, body.by--room .by-crail, body.by--room .by-scrim,
body.by--room .dock { display: none !important; }
body.by--room .by-app { display: block; min-height: 0; }
body.by--room .by-main { margin: 0; padding: 0; min-height: 0; }
body.by--room .by-content { padding: 0; margin: 0; max-width: none; }
body.by--room .meet { height: 100vh; height: 100dvh; }
/* ── the room: the stage and its bar, and the panel beside it when it is open ─ */
body.by--meeting .meet, body.by--room .meet {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  grid-template-areas: none; gap: 0; padding: 0; margin: 0; width: 100%; max-width: none;
  background: var(--by-teal-950);
}
body.by--meeting .meet > .meet__main, body.by--room .meet > .meet__main { grid-column: 1; grid-row: 1; }
body.by--meeting .meet[data-panel-open], body.by--room .meet[data-panel-open] {
  grid-template-columns: minmax(0, 1fr) 340px;
}
body.by--meeting .meet > .rail, body.by--room .meet > .rail { grid-column: 2; grid-row: 1; }
/* 3 · closed until somebody opens it */
body.by--meeting .meet:not([data-panel-open]) > .rail,
body.by--room .meet:not([data-panel-open]) > .rail { display: none; }
body.by--meeting .meet__main, body.by--room .meet__main {
  display: flex; flex-direction: column; min-height: 0; height: 100%;
  background: transparent; border-radius: 0; border: 0; box-shadow: none; overflow: hidden;
}
body.by--meeting .meet__top, body.by--room .meet__top {
  flex: none; background: transparent; border: 0; padding: 12px 16px 4px;
}
body.by--meeting .meet__stage, body.by--room .meet__stage {
  flex: 1 1 auto; min-height: 0; position: relative; padding: 0; margin: 0;
}
body.by--meeting .meet__video, body.by--room .meet__video {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  width: auto; height: auto; min-height: 0; max-height: none; aspect-ratio: auto;
  margin: 0; border-radius: 0; background: transparent; overflow: hidden;
}
/* the bar under the picture: centred, on the room's own background */
body.by--meeting .meet__tools, body.by--room .meet__tools {
  flex: none; position: static; transform: none; inset: auto; margin: 0; max-width: none; width: auto;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
  padding: 10px 12px 14px; background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
body.by--meeting .meet__tools .tool--end, body.by--room .meet__tools .tool--end { margin-inline-start: 0; }
body.by--meeting .meet__say, body.by--room .meet__say { flex: none; margin: 0 16px 10px; border-radius: 12px; }
/* 3 · the two buttons that open the panel */
.by .tool--panel { position: relative; }
.by .tool--panel.tool--on { background: var(--by-cream); border-color: var(--by-cream); color: var(--by-teal-950); }
.by .tool__n { font-family: var(--by-font-mono); font-weight: 600; opacity: .8; }
.by .tool__badge {
  position: absolute; top: -5px; inset-inline-end: -5px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--by-busy); color: #fff; font: 800 11px/19px var(--by-font-ui);
  text-align: center; box-shadow: 0 0 0 2px var(--by-teal-950);
}
/* ── the stage ─────────────────────────────────────────────────────────────── */
.meet__video[data-layout] > [data-poster] { z-index: 0; }
.meet__video[data-layout] [data-zr-remotes] { z-index: 1; pointer-events: none; }
.meet__video[data-layout] [data-zr-remotes] > :not([data-zr-remote]) { pointer-events: none; }
.meet__video[data-layout] [data-zr-remotes] > [data-zr-remote] {
  pointer-events: auto; cursor: pointer; margin: 0; opacity: 1; grid-row: auto; grid-column: auto;
  border-radius: 12px; overflow: hidden; box-sizing: border-box;
  outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .25s;
}
/* the old stage's hover pin mark and spotlight ring belong to a layout that is gone */
.meet__video[data-layout] [data-zr-remotes] > *::before { content: none; }
.meet__video[data-layout] .meet__vname { display: none; }
/* 2 · a camera that is off keeps its place, with the person's initials */
.meet__avs { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none; }
.meet__av {
  position: absolute; pointer-events: auto; cursor: pointer; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: 12px; background: var(--by-teal-700);
  outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .25s;
  container-type: size;
}
.meet__av-i {
  display: flex; align-items: center; justify-content: center;
  width: 36%; max-width: 140px; aspect-ratio: 1; border-radius: 50%;
  background: var(--by-teal-500); color: var(--by-cream);
  font-family: var(--by-font-display); font-weight: 800; letter-spacing: .02em;
  font-size: 18px; font-size: clamp(12px, 13cqmin, 48px); line-height: 1;
}
/* 🖼️ v6.0.62 — the Dev Sales profile picture in place of the initials: a bigger circle,
   the photo filling it. */
.meet__av-i--face { width: 46%; max-width: 260px; background: var(--by-teal-500); overflow: hidden; }
.meet__av-i--face img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
/* you: a tile like everybody else's, in the bar (or on the main view when alone) */
.meet__video[data-layout] .meet__self {
  z-index: 3; cursor: pointer; overflow: hidden; box-sizing: border-box;
  border-radius: 12px; border: 0; box-shadow: none; background: var(--by-teal-700);
  outline: 3px solid transparent; outline-offset: -3px; container-type: size;
}
.meet__video[data-layout] .meet__self > svg { display: none; }
.meet__video[data-layout] .meet__self > .meet__self-i {
  position: absolute; inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 36%; height: auto; z-index: 2;
}
.meet__video[data-layout] .meet__self > [hidden] { display: none !important; }
/* the names, on every tile, the same way */
.meet__video[data-layout] [data-zr-remotes] > [data-zr-remote][data-name]::after,
.meet__video[data-layout] .meet__av[data-name]::after,
.meet__video[data-layout] .meet__self[data-name]::after {
  content: attr(data-name); position: absolute; z-index: 4; pointer-events: none;
  left: 6px; bottom: 6px; top: auto; right: auto;
  max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 700 11px/1.55 var(--by-font-ui); color: #fff;
  background: rgba(8, 24, 22, .66) no-repeat 6px 50% / 12px;
  padding: 1px 7px; border-radius: 6px;
}
[dir="rtl"] .meet__video[data-layout] [data-zr-remotes] > [data-zr-remote][data-name]::after,
[dir="rtl"] .meet__video[data-layout] .meet__av[data-name]::after,
[dir="rtl"] .meet__video[data-layout] .meet__self[data-name]::after { left: auto; right: 6px; background-position: calc(100% - 6px) 50%; }
.meet__video[data-layout] [data-main][data-name]::after { font-size: 13px; padding: 3px 10px; left: 10px; bottom: 10px; }
[dir="rtl"] .meet__video[data-layout] [data-main][data-name]::after { left: auto; right: 10px; }
/* a microphone that is off says so on the label */
.meet__video[data-layout] [data-muted][data-name]::after {
  padding-left: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a7a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M1 1l22 22M9 9v3a3 3 0 0 0 5.1 2.1M15 9.3V4a3 3 0 0 0-5.9-.6M17 16.9A7 7 0 0 1 5 12v-1m14 0v1a7 7 0 0 1-.1 1.2M12 19v4'/%3E%3C/svg%3E");
}
[dir="rtl"] .meet__video[data-layout] [data-muted][data-name]::after { padding-left: 7px; padding-right: 22px; }
.meet__video[data-layout] [data-main][data-muted][data-name]::after { padding-left: 26px; background-size: 14px; background-position: 8px 50%; }
/* 5 · whoever is talking has a ring, wherever their tile is */
.meet__video[data-layout] [data-speaking] { outline-color: #45d38e; }
.meet__video[data-layout] [data-zr-remotes] > [data-zr-remote]:not([data-main]):hover,
.meet__video[data-layout] .meet__av:not([data-main]):hover,
.meet__video[data-layout] .meet__self:not([data-main]):hover { outline-color: rgba(254, 255, 239, .45); }
/* 6 · Unpin, on the main view's corner */
.meet__unpin {
  position: absolute; z-index: 6; height: 32px; padding: 0 14px 0 32px; border-radius: 999px;
  border: 1px solid rgba(254, 255, 239, .22); color: #fff; cursor: pointer;
  font: 700 12.5px/1 var(--by-font-ui);
  background: rgba(8, 24, 22, .74) no-repeat 11px 50% / 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fefeef' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 17v5M9 3h6l-1 7 4 3v2H6v-2l4-3z'/%3E%3C/svg%3E");
}
[dir="rtl"] .meet__unpin { padding: 0 32px 0 14px; background-position: calc(100% - 11px) 50%; }
.meet__unpin[hidden] { display: none; }
.meet__video[data-layout] .meet__full { z-index: 6; position: absolute; }
/* 7 · a shared screen, on the main view, in its own shape */
.meet__video[data-layout] [data-share-view] {
  z-index: 2; inset: auto; object-fit: contain; background: #0b1f1d; border-radius: 12px;
}
.meet__video[data-layout] .meet__self--share {
  z-index: 2; inset: auto; border-radius: 12px; border: 0; background: #0b1f1d; cursor: default;
}
/* ── 3 · the panel ──────────────────────────────────────────────────────────── */
body.by--meeting .rail, body.by--room .rail {
  display: flex; flex-direction: column; min-height: 0; height: 100%;
  border-radius: 0; border: 0; border-inline-start: 1px solid rgba(254, 255, 239, .08);
  background: var(--by-teal-900); color: var(--by-cream);
}
body.by--meeting .rail__tabs, body.by--room .rail__tabs {
  display: flex; align-items: center; flex: none;
  margin: 12px 12px 4px; background: rgba(254, 255, 239, .08); border: 0;
}
body.by--meeting .rail__tab, body.by--room .rail__tab { color: var(--by-teal-150); }
body.by--meeting .rail__tab.on, body.by--room .rail__tab.on { background: var(--by-cream); color: var(--by-teal-950); }
.rail__close {
  flex: none; margin-inline-start: 4px; width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--by-cream); cursor: pointer;
}
.rail__close:hover { background: rgba(254, 255, 239, .1); }
body.by--meeting .rail__body, body.by--room .rail__body { flex: 1 1 auto; min-height: 0; overflow: auto; }
body.by--room .person { border-bottom-color: rgba(254, 255, 239, .08); }
body.by--room .person__n { color: var(--by-cream); }
body.by--room .person__r { color: var(--by-teal-300); }
body.by--room .rail .privacy {
  background: rgba(254, 255, 239, .07); border: 1px solid rgba(254, 255, 239, .14); color: var(--by-teal-150);
}
body.by--room .rail .chat__body, body.by--room .rail .rail__body--chat { background: transparent; color: var(--by-cream); }
/* 8 · every field in the room is 16px, so iOS Safari has nothing to zoom into */
body.by--meeting input, body.by--meeting textarea, body.by--meeting select,
body.by--room .meet input, body.by--room .meet textarea, body.by--room .meet select { font-size: 16px !important; }
/* 10 · Brave */
.meet__brave {
  flex: none; display: flex; align-items: flex-start; gap: 10px; margin: 4px 16px 8px;
  padding: 10px 12px; border-radius: 12px; background: var(--by-amber-50); color: var(--by-amber-700);
  font-size: 13px; font-weight: 600; line-height: 1.5;
}
.meet__brave .by-i { flex: none; margin-top: 2px; }
.meet__brave-x {
  margin-inline-start: auto; flex: none; background: transparent; border: 0; color: inherit;
  font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px;
}
/* ── the phone: the panel comes up over the stage, as a sheet ─────────────── */
@media (max-width: 900px) {
body.by--meeting .meet[data-panel-open], body.by--room .meet[data-panel-open] { grid-template-columns: minmax(0, 1fr); }
body.by--meeting .meet > .rail, body.by--room .meet > .rail {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60;
    height: 72vh; height: min(72dvh, 640px); margin: 0;
    border: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -18px 50px -10px rgba(0, 0, 0, .6);
  }
body.by--meeting .meet__top, body.by--room .meet__top { padding: 8px 12px 2px; }
body.by--meeting .meet__tools, body.by--room .meet__tools { gap: 6px; padding: 8px 8px 12px; }
body.by--meeting .meet__client, body.by--room .meet__client { font-size: 18px; }
}
/* ⚠️ `hidden` DOES NOT HIDE AN <svg>. The UA's [hidden]{display:none} is written for HTML
   elements, and the poster is SVG — so `poster.hidden = true` left Ali's two drawn
   figures (#14403c) standing behind the stage. The old grid covered them edge to edge and
   nobody saw it; the new stage has gaps, and the frame came out two shades of teal.
   ⇒ [[s-expo-hidden-and-the-language-switch]] — the same lesson, one tag over. */
.meet__video > [data-poster][hidden], .meet__self > svg[hidden] { display: none; }
/* the two panel buttons carry a word, not only an icon */
.by .meet__tools .tool--panel { width: auto; min-width: 52px; padding-left: 10px; padding-right: 10px; }
/* ⚠️ …AND THE CONTAINER ITSELF WAS PAINTED. The old stage gave <video-player-container>
   the frame colour (#14403c) because it filled the frame edge to edge; a stage with gaps
   between its tiles shows that colour in every gap. Measured in the lab: the container,
   1440×715, rgb(20,64,60), against the room's rgb(22,51,47). */
.meet__video[data-layout] [data-zr-remotes] { background: transparent; }
/* 9 · the chat is the room's colour too — it was a white page inside a dark room */
body.by--meeting .rail .chat__body--rail, body.by--room .rail .chat__body--rail,
body.by--meeting .rail .rail__body--chat, body.by--room .rail .rail__body--chat { background: transparent; color: var(--by-cream); }
body.by--meeting .chat__input--rail, body.by--room .chat__input--rail {
  background: transparent; border-top: 1px solid rgba(254, 255, 239, .1);
}
body.by--meeting .chat__input--rail input, body.by--room .chat__input--rail input {
  background: rgba(254, 255, 239, .08); color: var(--by-cream); border-color: rgba(254, 255, 239, .16);
}
body.by--meeting .chat__input--rail input::placeholder, body.by--room .chat__input--rail input::placeholder { color: var(--by-teal-300); }
body.by--meeting .rail .chat__day, body.by--room .rail .chat__day { color: var(--by-teal-300); }
body.by--meeting .rail [data-room-chat-none], body.by--room .rail [data-room-chat-none] { color: var(--by-teal-300); }
/* the language switch that came into the room with it */
.meet__lang { flex: none; margin-inline-start: 8px; }
/* ── 📱✅ v6.0.59 — the invite: the country's code in front of the number, and the answer ──
   Ali, 30 Sep 2026: «عايز Validation على الموبايل علشان يتضاف بالكود» · «مطلعش ان تم الإرسال
   بنجاح وتنبيه له بلغ صاحبك ان وصل له ايميل». */
.by .dialfield { display: flex; align-items: stretch; gap: 0; }
.by .dialfield__code {
  display: inline-flex; align-items: center; padding: 0 12px; min-height: 46px;
  border: 1px solid var(--by-input); border-inline-end: 0; border-radius: 12px 0 0 12px;
  background: var(--by-amber-100); color: var(--by-teal-950); font-weight: 800; font-size: 16px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.by .dialfield input[type=tel] { flex: 1 1 auto; min-width: 0; border-radius: 0 12px 12px 0; }
.by .invok {
  margin: 10px 0 4px; padding: 12px 14px; border-radius: 14px;
  background: #e7f6ee; border: 1px solid #9fd8b8; color: #0f4d2e; font-size: 14px; line-height: 1.55;
}
.by .invok--warn { background: var(--by-amber-100); border-color: var(--by-amber-500); color: var(--by-teal-950); }
.by .invok strong { display: block; font-size: 15px; margin-bottom: 4px; }
.by .invok p { margin: 0 0 8px; }
.by .invok__link { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.by .invok__link code {
  flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; font-size: 12px;
  background: rgba(255,255,255,.7); padding: 6px 8px; border-radius: 8px;
}
/* ── 📣 v6.0.59 — «the developer you asked for is free», on whatever page the client is ──
   Fixed, above everything, and small: it must be seen from the developers list, another
   developer's room or the middle of a meeting, without covering the thing they are doing. */
.cbnote {
  position: fixed; z-index: 2147483000; inset-inline: 16px; bottom: 16px; margin-inline: auto;
  max-width: 440px; padding: 14px 16px; border-radius: 16px;
  background: #0f3b36; color: #fffff0; box-shadow: 0 18px 50px rgba(0,0,0,.35);
  font-size: 14px; line-height: 1.5; display: grid; gap: 6px;
}
.cbnote[hidden] { display: none; }
.cbnote strong { font-size: 16px; }
.cbnote p { margin: 0; opacity: .92; }
.cbnote__clock { font-variant-numeric: tabular-nums; color: #f5c56b; }
.cbnote .btn { justify-self: start; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0;
  background: #f5b041; color: #0f3b36; font-weight: 800; font-size: 15px; cursor: pointer; }
.cbnote .btn[disabled] { opacity: .6; cursor: default; }
.cbnote__say { color: #ffd9a0; font-size: 13px; }
/* ── 50-build-bridge.css ── */
/* ============================================================================
   The Build pages (Details · Developers · a developer's room · Form builder · Team ·
   Unassigned · Page content · Links · Delete/archive) — Ali, 29 Sep 2026: «موافق على
   اقتراحك»: they take the new shell and the new palette, and keep their own layout.
   These few rules only bring their old headings and cards onto the new type scale so
   they do not look like another product inside the same rail.
   ========================================================================== */
.by .by-content > .cmshead { margin: 0; padding: 0; border: 0; background: transparent; }
.by .by-content > .cmshead h1 { font-family: var(--by-font-display); font-weight: 700; font-size: 44px; letter-spacing: -.02em; color: var(--by-teal-950); line-height: 1.08; }
.by .by-content > .cmshead p { color: var(--by-muted); }
.by .by-content > .sect, .by .by-content .sect { border-radius: var(--by-radius-card); border-color: var(--by-line); background: var(--by-surface); }
.by .by-content .btn { border-radius: var(--by-radius-control); }
.by .by-content .btn--primary { background: var(--by-teal-700); border-color: var(--by-teal-700); color: var(--by-cream); }
.by .by-content .chip, .by .by-content .badge { border-radius: 999px; }
@media (max-width: 900px) {
.by .by-content > .cmshead h1 { font-size: 30px; }
}
/* ── 60-site.css ── */
/* ============================================================================
   Expo Studio — the client's and the developer's pages (/e, /x).
   The design's client shell: a teal top bar, an amber promo ribbon, cream pages, and
   the chat dock with the client's own BackYard agent always beside them.
   ⚠️ Several elements here keep the OLD class names on purpose, because a script
   rewrites them: .adbar/.adbar__item (the ribbon rotates .is-active), .dev/.dots/.dot
   (the five-second poll repaints the dots), .agent__badge/.agent__join (the poll sets
   their whole className), .chat/.msg (the rail is positioned and filled by script).
   Those are restyled here, never renamed.
   ========================================================================== */

/* ── the top bar (views/expo/site/_bar.ejs) ──────────────────────────────── */
.by-cbar {
  height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 40px; background: var(--by-teal-950); color: var(--by-cream);
}
.by-cbar--agent { height: 76px; }
.by-cbar__id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.by-cbar__mono {
  width: 40px; height: 40px; border-radius: 12px; background: var(--by-cream); color: var(--by-teal-950);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; overflow: hidden;
}
.by-cbar__mono--logo { padding: 4px; }
.by-cbar__mono img { width: 100%; height: 100%; object-fit: contain; }
.by-cbar__name { font-family: var(--by-font-display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; white-space: nowrap; }
.by-cbar__ed {
  font-size: 13px; color: var(--by-teal-150); padding-inline-start: 14px; border-inline-start: 1px solid rgba(254,255,239,.2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.by-cbar__txt { display: flex; flex-direction: column; min-width: 0; }
.by-cbar__t { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.by-cbar__s { font-size: 12px; color: var(--by-teal-200); }
.by-cbar__end { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.by-cbar__live {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(254,255,239,.2); font-size: 13px; font-weight: 700;
}
.by-cbar__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--by-busy); box-shadow: 0 0 0 3px rgba(200,55,45,.3); }
.by-cbar__who { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid rgba(254,255,239,.2); }
[dir="rtl"] .by-cbar__who { padding: 4px 4px 4px 12px; }
.by-cbar__who:has(> :only-child) { padding: 0; border: 0; }
.by-cbar__whon { font-size: 13.5px; font-weight: 700; }
.by-cbar .by-av { background: var(--by-teal-150); color: var(--by-teal-950); }
.by-cbar .by-av--amber { background: var(--by-amber-500); }
/* ── the promo ribbon (the old .adbar, rotated by expo-site.js) ───────────── */
.by .topstack { box-shadow: none; }
.by .adbar { height: 40px; background: var(--by-amber-500); color: var(--by-teal-950); border: 0; }
.by .adbar__item { font-weight: 800; font-size: 14px; }
.by .adbar__tag { background: transparent; color: var(--by-teal-950); padding: 0; display: inline-flex; }
/* ── the page frame ───────────────────────────────────────────────────────── */
.by--site { background: var(--by-page); }
.by .layout { max-width: 1440px; padding: 36px 40px 40px; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
.by .content--framed { background: transparent; border: 0; padding: 0; box-shadow: none; }
.by .foot {
  display: flex; justify-content: space-between; gap: 12px; padding: 24px 40px; margin-top: 20px;
  border-top: 1px solid var(--by-line); background: transparent; color: var(--by-ink-2); font-size: 13px;
}
/* ── the expo hall ────────────────────────────────────────────────────────── */
.by-hall__back { flex-direction: row; align-items: center; gap: 18px; }
.by-hall__backh { font-size: 17px; color: var(--by-cream); }
.by-hall__legend { flex-direction: column; align-items: flex-end; gap: 6px; }
.by-hall__browse {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 20px;
  background: var(--by-surface); border: 1px solid var(--by-line); color: var(--by-ink);
}
.by-hall__browse:hover { border-color: var(--by-teal-100); color: var(--by-ink); }
.by .by-devgrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.by .by-dev {
  padding: 0; gap: 0; text-align: start; align-items: stretch; border-radius: 24px; overflow: hidden;
  background: var(--by-surface); border: 1px solid var(--by-line); box-shadow: none; color: var(--by-ink); animation: none;
}
.by .by-dev::before { display: none; }
.by .by-dev:hover { transform: translateY(-2px); border-color: var(--by-teal-100); box-shadow: var(--by-shadow-card); }
.by-dev__top { height: 104px; background: var(--by-teal-700); display: flex; align-items: center; padding: 0 20px; }
.by .by-dev__logo {
  width: 60px; height: 60px; border-radius: 16px; background: var(--by-cream); border: 0; padding: 6px;
  color: var(--by-teal-950); font-weight: 800; font-size: 18px;
}
.by-dev__body { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px 20px; }
.by .by-dev__name { font-family: var(--by-font-display); font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -.02em; }
.by-dev__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--by-line-2); }
.by .dots { flex-wrap: wrap; margin: 0; }
.by .dots .dot { width: 11px; height: 11px; box-shadow: none; }
.by .dot--free { background: var(--by-ok); }
.by .dot--busy { background: var(--by-busy); }
.by .dot--away { background: var(--by-off); }
.by .dots__none { font-size: 12px; color: var(--by-muted); }
/* ── the chat dock with the client's own BackYard agent (the old .chat) ───── */
.by .chat {
  width: 360px; border-radius: 24px; border: 1px solid var(--by-line); box-shadow: none; background: var(--by-surface);
  right: auto; inset-inline-end: calc(max((100vw - 1440px) / 2, 0px) + 40px); max-height: 760px;
}
.by .chat__topbar { background: var(--by-surface); color: var(--by-ink); padding: 16px 18px; border-bottom: 1px solid var(--by-line); gap: 12px; }
.by .chat__avatar { width: 44px; height: 44px; font-size: 14px; }
.by .chat__name { font-size: 15px; font-weight: 800; color: var(--by-ink); }
.by .chat__status { color: var(--by-muted); font-size: 12px; }
.by .chat__status i { display: none; }
.by .chat__livetag { height: 22px; font-size: 10px; }
.by .chat__body { background: var(--by-surface); padding: 16px; gap: 12px; }
.by .chat__day { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--by-muted); background: transparent; }
.by .chat .msg__bubble { border-radius: 18px; font-size: 13.5px; line-height: 1.45; padding: 12px 14px; }
.by .chat .msg--in .msg__bubble { background: var(--by-surface); border: 1px solid var(--by-line); color: var(--by-ink); border-end-start-radius: 6px; }
.by .chat .msg--out .msg__bubble { background: var(--by-teal-700); color: var(--by-cream); border-end-end-radius: 6px; }
.by .chat .msg__time { font-family: var(--by-font-mono); font-size: 11px; color: var(--by-ink-2); font-weight: 600; }
.by .chat__input { padding: 12px 14px; border-top: 1px solid var(--by-line); background: var(--by-surface); gap: 10px; }
.by .chat__input input { height: 46px; border-radius: 12px; border: 1px solid var(--by-input); background: var(--by-surface); font-size: 13.5px; padding: 0 14px; }
.by .chat__input button { width: 46px; height: 46px; border-radius: 12px; background: var(--by-amber-500); color: var(--by-teal-950); }
@media (max-width: 1100px) {
.by .layout { grid-template-columns: minmax(0, 1fr); }
.by .chat { position: static; width: auto; height: 520px; max-height: 70vh; }
}
@media (max-width: 900px) {
.by-cbar { height: 64px; padding: 0 16px; padding-top: env(safe-area-inset-top); }
.by-cbar__name { font-size: 20px; }
.by-cbar__ed, .by-cbar__live span, .by-cbar__whon { display: none; }
.by-cbar__live { width: 34px; padding: 0; justify-content: center; }
.by .layout { padding: 18px 16px 40px; gap: 18px; }
.by .foot { padding: 20px 16px; flex-direction: column; }
.by-hall__back { flex-direction: column; align-items: stretch; }
.by-hall__legend { align-items: flex-start; }
.by .by-devgrid { grid-template-columns: minmax(0, 1fr); }
.by-dev__top { height: 84px; }
}
.by .chat__day[data-en] { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 13px; color: var(--by-muted); margin: auto 0; }
/* ── a developer's page (views/expo/site/room.ejs) ────────────────────────── */
.by .apage.by-booth { max-width: 1440px; margin: 0 auto; }
.by-booth__id { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.by-booth__projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.by-booth__proj { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--by-chip-2); border: 1px solid var(--by-line); }
.by-booth__proj b { font-size: 16px; font-weight: 700; }
.by-booth__proj .by-muted { font-size: 12px; }
.by-bell--free { flex-direction: row; align-items: center; gap: 20px; }
.by-bell__clock { font-size: 34px; color: var(--by-amber-300); }
/* the agent cards — the poll owns .agent__badge / .agent__join className */
.by .by-agents { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.by .agent { border-radius: 24px; overflow: hidden; border: 1px solid var(--by-line); background: var(--by-surface); box-shadow: none; }
.by .agent__thumb {
  position: relative; min-height: 168px; display: flex; align-items: center; justify-content: center;
  background: var(--by-teal-700);
}
.by .agent--busy .agent__thumb { background: var(--by-teal-900); }
.by .agent[data-state="away"] .agent__thumb { background: #1F3A36; }
.by .agent__face { background: var(--by-teal-500); color: var(--by-cream); width: 76px; height: 76px; font-size: 22px; }
.by .agent[data-state="free"] .agent__face { background: var(--by-cream); color: var(--by-teal-950); border: 3px solid var(--by-ok); }
/* 🖼️ v6.0.62 — the Dev Sales profile picture fills the whole box, faces kept in frame. */
.by .agent__photo {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%; display: block;
}
.by .agent__tags { z-index: 2; }
.by .agent__tags { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; inset-inline-end: 12px; }
.by .agent__badge { border-radius: 999px; font-weight: 800; font-size: 11.5px; padding: 4px 10px; }
.by .agent__badge--free { background: var(--by-ok); color: #fff; }
.by .agent__badge--busy { background: var(--by-busy); color: #fff; }
.by .agent__badge--away { background: rgba(254,255,239,.9); color: var(--by-ink-2); }
.by .agent__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.by .agent__name { font-size: 17px; font-weight: 700; color: var(--by-ink); }
.by .agent__role { font-size: 12.5px; }
.by .agent__join { margin-top: 12px; min-height: 46px; border-radius: 12px; font-weight: 800; font-size: 14px; width: 100%; }
.by .agent__join--active { background: var(--by-amber-500); color: var(--by-teal-950); border: 0; }
.by .agent__join--inactive { background: var(--by-chip-2); color: var(--by-ink-2); border: 1px solid var(--by-line); }
@media (max-width: 900px) {
.by-booth__id { grid-template-columns: minmax(0, 1fr); }
.by-bell--free { flex-direction: column; align-items: stretch; }
.by .by-agents { grid-template-columns: minmax(0, 1fr); }
}
/* ── the developer's desk (views/expo/site/agent.ejs) ─────────────────────── */
.by .apage.by-desk {
  max-width: 1440px; margin: 0 auto; padding: 36px 40px 40px; display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 24px; align-items: start;
}
.by-desk__head { grid-column: 1 / -1; }
.by-desk__lock { flex-direction: row; align-items: center; gap: 18px; background: var(--by-busy-bg); border-color: #F4D6D2; }
.by-desk__lockico {
  width: 46px; height: 46px; border-radius: 50%; background: var(--by-busy); color: #fff; font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.by-desk__name { font-size: 19px; font-weight: 700; color: var(--by-cream); }
.by-desk__pill { height: 32px; font-size: 12.5px; padding: 0 14px; }
.by-desk__switch.switch {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%;
  padding: 18px 22px; border-radius: 20px; background: rgba(254,255,239,.07); border: 1px solid rgba(254,255,239,.12);
}
.by-desk__open.switch__label { font-size: 26px; font-weight: 700; color: var(--by-cream); letter-spacing: -.02em; }
.by-desk__switch .by-sub { color: var(--by-teal-150); }
.by-desk__switch .switch__track { width: 88px; height: 48px; flex-shrink: 0; background: rgba(254,255,239,.2); }
.by-desk__switch .switch__track::after { width: 40px; height: 40px; top: 4px; left: 4px; }
.by-desk__switch input:checked + .switch__track { background: var(--by-ok); }
.by-desk__switch input:checked + .switch__track::after { transform: translateX(40px); }
.by-desk__device { margin: 0; font-size: 12.5px; color: var(--by-teal-200); display: flex; align-items: center; gap: 8px; }
.by-desk__device b { color: var(--by-cream); }
.by-desk__kpis { background: var(--by-surface); }
.by-desk__kpis .by-stat__n { font-size: 40px; }
.by-desk__incoming { flex-direction: row; align-items: center; }
.by-desk__hold { font-size: 22px; color: var(--by-amber-700); }
.by-desk__next:empty { display: none; }
@media (max-width: 1100px) {
.by .apage.by-desk { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
.by .apage.by-desk { padding: 18px 16px 40px; gap: 16px; }
.by-desk__lock { flex-direction: column; align-items: stretch; }
.by-desk__open.switch__label { font-size: 20px; }
.by-desk__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ── the outcome form (views/expo/site/agent-form.ejs) ────────────────────── */
.by .fwrap.by-form { max-width: 1440px; margin: 0 auto; padding: 36px 40px 40px; display: flex; flex-direction: column; gap: 22px; }
.by-form__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.by .fwrap .blockbox { border-radius: 24px; background: var(--by-busy-bg); border: 1px solid #F4D6D2; padding: 20px 24px; }
.by .fwrap .blockbox__ico { background: var(--by-busy); border-radius: 50%; }
.by .fwrap .blockbox h3 { color: var(--by-busy-text); font-size: 19px; }
.by .by-form__card { gap: 20px; }
.by .fields .field__label { font-size: 14px; font-weight: 700; color: var(--by-ink); }
.by .fields .src { border-radius: 999px; font-size: 11px; font-weight: 800; padding: 2px 8px; }
.by .fields .src--dev { background: var(--by-amber-100); color: var(--by-amber-700); }
.by .fields .src--portal { background: var(--by-teal-50); color: var(--by-teal-700); }
.by .fields select, .by .fields input[type=number], .by .fields textarea {
  border-radius: 12px; border: 1px solid var(--by-input); background: var(--by-surface); min-height: 46px; font-size: 14px;
}
.by .fields textarea { min-height: 130px; }
.by .chipbox span { border-radius: 999px; min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; font-weight: 700; border: 1px solid var(--by-input-2); color: var(--by-teal-700); }
.by .chipbox input:checked + span { background: var(--by-teal-700); color: var(--by-cream); border-color: var(--by-teal-700); }
.by .fields .warnline { border-radius: 14px; background: var(--by-amber-50); border: 1px solid var(--by-amber-border); color: var(--by-ink-2); align-items: flex-start; gap: 10px; }
.by .fields .warnline .by-i { color: var(--by-amber-700); margin-top: 2px; }
.by .fields .fbar { border-top: 1px solid var(--by-line); padding-top: 18px; }
.by .fields .btn--primary { background: var(--by-teal-700); border-radius: 12px; min-height: 48px; padding: 0 22px; font-weight: 800; }
.by .fields .btn--ghost { border-radius: 12px; min-height: 48px; }
.by .by-form__aside .fhead { flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; }
.by .fhead__av { background: var(--by-amber-100); color: var(--by-amber-700); }
.by-prog { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.by-prog__i { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(254,255,239,.1); font-size: 13.5px; color: var(--by-cream); }
.by-prog__i i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(254,255,239,.35); flex-shrink: 0; }
.by-prog__i.is-req i { border-color: var(--by-amber-500); }
.by-prog__i.is-done i { background: var(--by-ok); border-color: var(--by-ok); }
.by-prog__i span { flex: 1 1 auto; }
.by-prog__i small { font-size: 11px; font-weight: 800; color: var(--by-teal-300); }
.by-prog__i.is-req small { color: var(--by-amber-300); }
.by-prog__i.is-done small { color: var(--by-teal-150); }
/* ── the two meeting pages on this side: the whole page is the dark room ──── */
.by--meeting { background: var(--by-teal-950); }
.by--meeting .meet { height: calc(100dvh - 76px); padding: 16px; gap: 16px; }
.by--meeting .meet__main { background: var(--by-teal-900); }
.by--meeting .foot { display: none; }
.by--meeting .rail .person__n { color: var(--by-cream); }
@media (max-width: 1100px) {
.by-form__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
.by .fwrap.by-form { padding: 18px 16px 40px; }
.by--meeting .meet { height: auto; padding: 0; gap: 0; }
}
.by .fwrap .blockbox[style] { background: var(--by-ok-bg); border-color: #CFE6D7 !important; }
.by .fwrap .blockbox[style] h3 { color: var(--by-ok-text); }
.by .fwrap .blockbox[style] .blockbox__ico { background: var(--by-ok) !important; }
/* ── Invite & verify (register.ejs, code.ejs, and _regform wherever it is drawn) ── */
.by-invite2 {
  max-width: 1280px; margin: 0 auto; padding: 48px 40px 40px; display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start;
}
.by-invite2__pitch { display: flex; flex-direction: column; gap: 22px; padding-top: 20px; }
.by-invite2__h { font-size: 64px; line-height: 1.02; }
.by-invite2__when { font-size: 16px; font-weight: 700; color: var(--by-ink); }
.by-invite2__when .by-i { color: var(--by-amber-600); }
.by-invite2__lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--by-ink-2); max-width: 560px; }
.by-invite2__by { flex-direction: row; align-items: center; gap: 16px; max-width: 580px; }
.by-invite2__byn { font-size: 18px; }
.by-invite2__feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.by-invite2__feats > div { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.by-invite2__feats b { font-size: 15px; }
.by-invite2__card { padding: 30px; box-shadow: var(--by-shadow-card); gap: 18px; }
.by-invite2__title { font-size: 26px; }
.by-steps { list-style: none; margin: 0 0 4px; padding: 0; display: flex; align-items: center; gap: 10px; }
.by-steps li { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; font-size: 13.5px; color: var(--by-muted); }
.by-steps li + li::before { content: ''; flex: 1 1 auto; height: 1px; background: var(--by-line); margin-inline-end: 10px; order: -1; }
.by-steps li span {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--by-chip); color: var(--by-ink-2); font-weight: 800; font-size: 13px; flex-shrink: 0;
}
.by-steps li.is-on { color: var(--by-ink); }
.by-steps li.is-on span { background: var(--by-teal-950); color: var(--by-cream); }
.by-steps li.is-done { color: var(--by-teal-700); }
.by-steps li.is-done span { background: var(--by-teal-50); color: var(--by-teal-700); }
/* the old form pieces, in the new controls */
.by .lform { background: transparent; border: 0; box-shadow: none; padding: 0; }
.by .lform__by { display: none; }
.by .field__label { font-size: 13px; font-weight: 700; color: var(--by-ink); }
.by .field input[type=text], .by .field input[type=tel], .by .field input[type=email], .by .field select {
  min-height: 46px; border-radius: 12px; border: 1px solid var(--by-input); background: var(--by-surface); font-size: 14px;
}
.by .field input:focus, .by .field select:focus { border-color: var(--by-amber-500); box-shadow: 0 0 0 3px var(--by-amber-100); outline: 0; }
.by .lform .btn--primary, .by .lform .btn--wide {
  min-height: 54px; border-radius: 14px; background: var(--by-amber-500); color: var(--by-teal-950); font-weight: 800; font-size: 16px; border: 0;
}
.by .warnline { border-radius: 14px; }
.by .sentto { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--by-ink-2); }
.by .sentto .by-i { color: var(--by-teal-700); }
.by .codeset { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; direction: ltr; }
.by .codeset input {
  height: 60px; border-radius: 14px; border: 1px solid var(--by-input); background: var(--by-surface);
  font-size: 24px; font-weight: 700; text-align: center; width: 100%;
}
.by .codeset input:focus { border: 2px solid var(--by-teal-950); outline: 0; }
.by .ctabar { background: var(--by-teal-950); }
@media (max-width: 1000px) {
.by-invite2 { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 24px 16px 40px; }
.by-invite2__h { font-size: 40px; }
.by-invite2__feats { grid-template-columns: minmax(0, 1fr); }
.by-invite2__by { flex-wrap: wrap; }
.by-invite2__card { padding: 20px; }
.by .codeset input { height: 52px; }
}
.by .sentto { text-align: start; align-items: flex-start; }
/* ── 70-admit-invite.css ── */
/* ═══════════════════════════════════════════════════════════════════════════
   🚪 M405 — admit, invite, and «how many rooms are free» (v6.0.101)
   ═══════════════════════════════════════════════════════════════════════════
   Ali, 13 Oct 2026: «خلي بالك ان كل حاجة بتعملها مهمه جدا في الموبايل View … اغلب الناس
   بتشتغل موبايل». Written phone-first, down to the original Galaxy Fold's 280px cover
   screen: every row wraps, every button is at least 44px tall, nothing is fixed-width.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── the client: waiting to be let in · BackYard's invitation ─────────────── */
.knockbox {
  position: fixed; z-index: 2147483001; inset-inline: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px)); margin-inline: auto;
  max-width: 440px; padding: 14px 16px; border-radius: 16px;
  background: #16332F; color: #fffff0; box-shadow: 0 18px 50px rgba(0,0,0,.35);
  font-size: 14px; line-height: 1.5; display: grid; gap: 8px;
}
.knockbox[hidden] { display: none; }
.knockbox strong { font-size: 16px; overflow-wrap: anywhere; }
.knockbox p { margin: 0; opacity: .92; overflow-wrap: anywhere; }
.knockbox .btn {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; cursor: pointer;
  font-weight: 800; font-size: 15px; width: 100%;
}
.knockbox .btn--primary { background: #E49E2F; color: #16332F; }
.knockbox .btn--ghost { background: transparent; color: #fffff0; border: 1px solid rgba(255,255,255,.35); }
.knockbox .btn[disabled] { opacity: .6; cursor: default; }
@media (min-width: 520px) {
.knockbox .btn { width: auto; justify-self: start; }
}
/* both notes on screen at once (a bell offer while a knock waits): the knock sits above */
.cbnote:not([hidden]) ~ .knockbox:not([hidden]) { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
/* ── the developer's desk: who is asking ─────────────────────────────────── */
.deskreq[hidden] { display: none; }
.deskreq .by-h2 { margin: 0 0 8px; }
.deskreq__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  padding: 10px 0; border-top: 1px solid var(--by-amber-border, #F1DDB6);
}
.deskreq__row:first-child { border-top: 0; }
.deskreq__main { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.deskreq__name { font-size: 16px; overflow-wrap: anywhere; }
.deskreq__what { font-size: 13px; color: var(--by-amber-700, #A65E14); overflow-wrap: anywhere; }
.deskreq__left { font-size: 12px; opacity: .8; }
.deskreq__btns { display: flex; gap: 8px; flex: 1 1 100%; }
.deskreq__btns .by-btn { flex: 1 1 0; min-height: 44px; justify-content: center; }
@media (min-width: 560px) {
.deskreq__btns { flex: 0 0 auto; }
.deskreq__btns .by-btn { flex: 0 0 auto; min-width: 104px; }
}
/* ── BackYard's room: the «Developers» tab ───────────────────────────────── */
.invite__p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; opacity: .85; }
.invite__ok { margin: 8px 0; font-weight: 700; }
.invite__stand { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12); }
.invite__stand:first-child { border-top: 0; }
.invite__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-bottom: 6px; }
.invite__head b { overflow-wrap: anywhere; }
.invite__count { font-size: 12px; opacity: .8; }
.invite__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 6px 0; }
.invite__row .person__av { flex: 0 0 auto; overflow: hidden; }
.invite__row .person__av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.invite__mid { flex: 1 1 120px; min-width: 0; }
.invite__mid .person__n { overflow-wrap: anywhere; }
.invite__act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.invite__act .by-btn { min-height: 40px; }
.invite__last { flex: 1 1 100%; font-size: 12px; opacity: .75; }
/* ── «2 of 3 rooms free», in words, on every developer ───────────────────── */
.by-dev__rooms { display: block; font-size: 12.5px; font-weight: 700; margin-top: 4px; color: var(--by-teal-700, #29534F); }
.by-dev__rooms--none { color: var(--by-amber-700, #A65E14); }
.roomsline { margin: 6px 0 0; font-weight: 700; font-size: 14px; color: var(--by-teal-700, #29534F); }
.roomsline--none { color: var(--by-amber-700, #A65E14); }
/* ── 🌐 v6.0.101 — no accidental reload while scrolling ──────────────────────
   «لما بغير المعرض للغة العربي واعمل سكرول تحت فجأه يقلب إنجليزي». In the Android app the
   document's overscroll IS the WebView's pull-to-refresh: a drag that reached the end of an
   inner scroller (a chat, the inbox, a drawer) chained to the page and reloaded it. The
   portal has had this rule since v2.92.0; the expo pages never did. */
html, body { overscroll-behavior-y: contain; }
/* ── 🔗 v6.0.101 — a link in a chat bubble ─────────────────────────────────── */
.msg__link { color: inherit; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; font-weight: 600; }
/* ── 🎯 v6.0.101 — Clients: who owns them, how they came in, and assigning one ── */
.cl-who { display: block; overflow-wrap: anywhere; }
.cl-who b { font-weight: 700; }
.cl-who__v--none { color: var(--by-amber-700, #A65E14); font-weight: 700; }
.cl-who__link { font-size: 11.5px; padding: 1px 6px; border-radius: 6px; background: var(--by-teal-50, #EFF3EE); word-break: break-all; }
.cl-unassigned { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; text-align: center; margin: 0 0 12px; min-height: 44px; }
.cl-assign { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.cl-assign select, [data-assign-inline] { min-height: 40px; max-width: 100%; }
@media (max-width: 560px) {
.trow [data-assign-inline] { flex: 1 1 100%; }
}
/* ── 🎙️ v6.0.101 — the browser blocked the microphone: say so, and how to fix it ── */
.meet__perm {
  position: fixed; inset: 0; z-index: 2147483002; display: flex; align-items: center; justify-content: center;
  padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 30, 27, .82); overflow-y: auto;
}
.meet__perm-card {
  width: 100%; max-width: 440px; background: #FBFAF4; color: #16332F; border-radius: 18px;
  padding: 18px 18px 16px; box-shadow: 0 20px 60px rgba(0,0,0,.4); font-size: 14.5px; line-height: 1.55;
}
.meet__perm-card strong { display: block; font-size: 18px; margin-bottom: 6px; }
.meet__perm-card p { margin: 0 0 8px; }
.meet__perm-card ol { margin: 0 0 14px; padding-inline-start: 20px; }
.meet__perm-card li { margin: 4px 0; overflow-wrap: anywhere; }
.meet__perm-btn {
  width: 100%; min-height: 48px; border: 0; border-radius: 12px; cursor: pointer;
  background: #E49E2F; color: #16332F; font-weight: 800; font-size: 16px;
}
.meet__perm-btn[disabled] { opacity: .6; }
/* 🇦🇪 v6.0.103 — the ladder panel: three rungs stacked, the first one loudest */
.meet__ladder .meet__perm-btn + .meet__perm-btn { margin-top: 10px; background: #fff; border: 1.5px solid #16332F; }
/* ⚠️ as specific as the sibling rule above (it painted this white-on-white in the first screenshot) */
.meet__ladder .meet__perm-btn[data-ladder-phone] { background: #16332F; color: #FBFAF4; border-color: #16332F; }
/* ── 📱 v6.0.101 — the client's top bar on a phone and on a folded Galaxy Fold ──────────
   The edition's name was `white-space:nowrap` with nothing to stop it: on a 390px iPhone
   «Mobile Flow Expo» ran under the EN/عربي switch, and on the original Fold's 280px cover
   screen it pushed the switch off the edge. It now takes the room that is left and ends in
   «…»; the switch, the live dot and the person's initials keep their size and their tap area. */
.by-cbar__id { flex: 1 1 auto; min-width: 0; }
.by-cbar__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
.by-cbar { gap: 10px; padding-inline: 12px; }
.by-cbar__id { gap: 10px; }
.by-cbar__end { gap: 8px; }
.by-cbar__name { font-size: 17px; }
.by-cbar__mono { width: 36px; height: 36px; border-radius: 10px; }
}
@media (max-width: 380px) {
.by-cbar { gap: 8px; padding-inline: 10px; }
.by-cbar__name { font-size: 15px; }
.by-cbar__mono { width: 32px; height: 32px; font-size: 12px; }
.by-cbar__live { width: 28px; height: 28px; }
.by-cbar__lang button { padding-inline: 8px; min-height: 32px; }
.by-cbar__who { padding: 2px; }
}
@media (max-width: 300px) {
/* the original Galaxy Fold, folded: 280px. The initials go — the switch and the name stay. */
.by-cbar__who { display: none; }
.by-cbar__name { font-size: 14px; }
}
/* ── 📱 v6.0.101 — the CMS on a folded Fold (280–380px) ──────────────────────
   Measured on screenshots at 280px: the edition's name in the app bar had shrunk to nothing
   (its box did not grow), the five tab labels ran together («CommandTeam»), and the
   distribution card squeezed its sentence into a one-word column beside the switch. */
@media (max-width: 900px) {
.by-appbar__mid { flex: 1 1 auto; }
}
@media (max-width: 420px) {
[data-dist] > .by-row { flex-wrap: wrap; }
[data-dist] > .by-row > .by-row__main { flex: 1 1 100%; }
}
@media (max-width: 380px) {
.by-appbar { padding-inline: 10px; gap: 6px; }
.by-appbar__btn, .by-appbar .by-av { width: 38px; height: 38px; }
.by-appbar__ed { font-size: 16px; }
.by-tabbar { inset-inline: 6px; padding: 4px; gap: 0; }
.by-tab { font-size: 10px; padding-inline: 1px; min-width: 0; }
.by-tab > span:not(.by-tab__n) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 480px) {
/* the strategy switch («FIFO — …» / «Weighted — …») stacks instead of cutting its words */
[data-dist] .by-seg { flex-wrap: wrap; height: auto; }
[data-dist] .by-seg > * { flex: 1 1 100%; white-space: normal; text-align: center; min-height: 44px; height: auto; }
}
/* ── 📱 v6.0.101 — a .trow (the team, the links, the clients) on a phone ─────────────
   Ali: «لما احب اضيف سيلز الشركة … مش بعرف احذف سيلز من المعرض». The button was there —
   off the edge of a phone. A row put the name, the salesperson's link, Copy, the count and
   Remove on ONE line; on a phone the name was squeezed to one word per line and Remove was
   pushed out of sight. Under 640px the row wraps: who they are on the first line, the link
   and its buttons below, Remove as a real button you can see and tap. */
@media (max-width: 640px) {
.trow { flex-wrap: wrap; row-gap: 8px; }
.trow__m { flex: 1 1 calc(100% - 56px); }
.trow .linkchip { flex: 1 1 140px; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .btn, .trow .by-btn { min-height: 40px; }
.trow select { max-width: 100%; }
}
/* «Remove» says what it does and looks like it can be pressed, at every width */
[data-remove-person] { color: #A3271F !important; border-color: rgba(163, 39, 31, .35) !important; }
/* ── 🟢 v6.0.107 — who is here, on the Clients page ──────────────────────────────────
   Ali: «انهي عميل اونلاين ومين اوفلاين». A dot on the avatar and a line under the name, in
   three states that never rely on colour alone (the words say it too): in a meeting (red,
   pulsing), online and free (green), offline (grey). expo-cms-presence.js repaints them. */
.cl-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #9AA5A2; flex: none; }
.cl-dot--on { background: #1C8C4E; }
.cl-dot--wait { background: #D08A12; }
.cl-dot--live { background: #C62828; box-shadow: 0 0 0 0 rgba(198, 40, 40, .55); animation: cl-pulse 1.6s infinite; }
.cl-dot--off { background: #9AA5A2; }
@keyframes cl-pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 40, 40, .55); } 70% { box-shadow: 0 0 0 7px rgba(198, 40, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0); } }
@media (prefers-reduced-motion: reduce) {
.cl-dot--live { animation: none; }
}
.cl-av { position: relative; overflow: visible; }
.cl-av__dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border: 2px solid #fff; }
[dir="rtl"] .cl-av__dot { right: auto; left: -2px; }
.cl-pres { display: block; font-size: 12.5px; font-weight: 700; margin-top: 2px; }
.cl-pres--live { color: #B3261E; }
.cl-pres--waiting { color: #17663B; }
.cl-pres--off { color: #6B7774; font-weight: 600; }
.cl-pres-seg { flex-wrap: wrap; height: auto; }
.cl-pres-seg > a { display: inline-flex; align-items: center; gap: 6px; }
.cl-act { display: inline-flex; flex: none; }
.cl-act:empty { display: none; }
@media (max-width: 640px) {
.cl-pres-seg > a { flex: 1 1 calc(50% - 4px); justify-content: center; min-height: 40px; }
.cl-act { flex: 1 1 100%; }
.cl-act .by-btn { width: 100%; justify-content: center; }
}
/* ── 📩 v6.0.107 — «Send Code» on the move-to-this-device card ───────────────────────
   Ali: «عايز يبقى في زرار واضح مكتوب فيه Send Code علشان نسهل على العميل». A full-width
   button above the six boxes (the code is what the boxes need, so it comes first), and a
   green line once the code has gone. */
.sendcode { display: flex; width: 100%; justify-content: center; align-items: center; gap: 8px;
  min-height: 48px; margin: 6px 0 12px; font-size: 16px; font-weight: 700; }
.sendcode[disabled] { opacity: .6; cursor: progress; }
.sendcode__ok { margin: -4px 0 12px; color: #17663B; font-weight: 700; font-size: 14px; text-align: center; }

/* ── hidden means hidden ─────────────────────────────────────── */
[hidden] {display:none !important}
