/* body-doubling-home.css — the standalone booking mockup's look, in the app
 * (Seth, 2026-11-27: "it needs this exact interface").
 *
 *   .bdh   the Body doubling page when not in a call (js/body-doubling/bd_home.js)
 *   .bdg   the session grid it and the call's group calendar share (bd_week_grid.js)
 *   .bdd   a session's details (bd_session_details.js)
 *   .bdcm  the Calendar tab's Coworking sessions sidebar (bd_calendar_menu.js)
 *   .bdc   the Calendars card (bd_calendars.js)
 *
 * Palette = the mockup's (Focusmate dashboard), with a light-theme twin.
 */
:root {
  --bdm-page: #111113;
  --bdm-panel: #232327;
  --bdm-panel-2: #2b2b30;
  --bdm-line: rgba(255, 255, 255, 0.07);
  --bdm-line-strong: rgba(255, 255, 255, 0.14);
  --bdm-text: #ececf1;
  --bdm-text-2: #a9a9b3;
  --bdm-text-3: #6d6d77;
  --bdm-purple: #8b7cf6;
  --bdm-purple-strong: #7563f0;
  --bdm-purple-soft: rgba(139, 124, 246, 0.18);
  --bdm-group: var(--dn-group-color, #8b62f2);
  --bdm-now: #ff8a3d;
  --bdm-bad: #ff6464;
  --bdm-seg-on: #34343b;
  --bdm-grid-line: rgba(255, 255, 255, 0.045);
  --bdm-hour-line: rgba(255, 255, 255, 0.1);
  --bdm-past: rgba(0, 0, 0, 0.18);
  --bdm-today: rgba(255, 255, 255, 0.035);
}
html[data-theme-mode='light'] {
  --bdm-page: #eef0f3;
  --bdm-panel: #ffffff;
  --bdm-panel-2: #f5f5f8;
  --bdm-line: rgba(15, 23, 42, 0.08);
  --bdm-line-strong: rgba(15, 23, 42, 0.16);
  --bdm-text: #1b1b22;
  --bdm-text-2: #555562;
  --bdm-text-3: #8a8a96;
  --bdm-purple-soft: rgba(117, 99, 240, 0.14);
  --bdm-seg-on: #e9e7fb;
  --bdm-grid-line: rgba(15, 23, 42, 0.05);
  --bdm-hour-line: rgba(15, 23, 42, 0.11);
  --bdm-past: rgba(15, 23, 42, 0.04);
  --bdm-today: rgba(117, 99, 240, 0.04);
}

/* ── The page takes the whole window: no right sidebar, no topbar ────────── */
.bdh { display: none; }
html[data-bd='lobby'] .bdh {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 8px;
  height: calc(100dvh - var(--bdh-top, 0px));
  padding: 6px;
  box-sizing: border-box;
  background: var(--bdm-page);
  color: var(--bdm-text);
  font-size: 14px;
}
html[data-bd='lobby'] .bdh.has-details { grid-template-columns: 290px minmax(0, 1fr) 330px; }
html[data-desktop-shell][data-bd='lobby'] #context-sidebar { display: none !important; }
html[data-desktop-shell][data-bd='lobby'] .chat-panel { display: none !important; }
html[data-desktop-shell][data-bd='lobby'] .app-shell,
html[data-desktop-shell][data-bd='lobby'] .app-shell.app-shell-chat-open { padding-right: 0 !important; }
html[data-bd='lobby'] .app-shell > header.topbar { display: none !important; }
html[data-bd='lobby'] #view-container,
html[data-bd='lobby'] #do-view-root { padding: 0 !important; margin: 0 !important; max-width: none !important; }
/* The left nav's collapse arrow is pinned top-left: the menu starts below it when the nav is folded. */
html[data-desktop-shell][data-shell-left='closed'][data-bd='lobby'] .bdh-side { padding-top: 44px; }
.bdh button { font: inherit; color: inherit; }

/* ── Left menu ───────────────────────────────────────────────────────────── */
.bdh-side { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: auto; }
.bdh-card { background: var(--bdm-panel); border: 1px solid var(--bdm-line); border-radius: 14px; padding: 14px 16px; }
.bdh-spacer { flex: 1; }
.bdh-label { font-size: 12px; font-weight: 600; color: var(--bdm-text-2); margin: 0 0 8px; }
.bdh-h { font-size: 15px; color: var(--bdm-text-2); margin: 0 0 12px; font-weight: 500; }
.bdh-note { font-size: 12.5px; color: var(--bdm-text-3); margin: 0 0 10px; line-height: 1.45; }
.bdh-error { font-size: 12.5px; color: var(--bdm-bad); margin: 8px 0 0; }
.bdh-wide { width: 100%; border: 0; border-radius: 9px; padding: 9px 0; background: var(--bdm-purple); color: #fff !important; font-weight: 600; cursor: pointer; }

.bdh-ghead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.bdh-ghead .bdh-label { margin: 0; }
.bdh-gedit { border: 0; background: none; color: var(--bdm-purple) !important; font-size: 12px !important; font-weight: 600; cursor: pointer; padding: 0; }
.bdh-gedit:hover { text-decoration: underline; }
.bdh-gtab { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; border: 1px solid transparent; }
.bdh-gtab.is-active { background: color-mix(in srgb, var(--bdm-group) 20%, transparent); border-color: color-mix(in srgb, var(--bdm-group) 60%, transparent); }
/* Every other group (2026-12-01): a button row that reads like the active one. */
button.bdh-gtab { width: 100%; margin-top: 4px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.bdh-gtab:hover { background: rgba(var(--overlay-rgb, 255, 255, 255), 0.06); }
button.bdh-gtab:focus-visible { outline: 2px solid var(--bdm-group); outline-offset: 1px; }
.bdh-gdot, .bdd-gdot { width: 10px; height: 10px; border-radius: 3px; background: var(--bdm-group); flex: none; }
.bdh-gname { flex: 1; font-weight: 650; line-height: 1.25; }
.bdh-gcount { font-size: 12px; color: var(--bdm-text-3); }
.bdh-gadd { margin-top: 2px; border: 1px dashed var(--bdm-line-strong); background: none; border-radius: 9px; width: 100%; padding: 8px; color: var(--bdm-text-2) !important; cursor: pointer; }
.bdh-call { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 0 2px; font-size: 12.5px; color: var(--bdm-text-2); }
.bdh-call-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bdm-text-3); flex: none; }
.bdh-call.is-live .bdh-call-dot { background: #22c55e; box-shadow: 0 0 6px 1px rgba(34, 197, 94, 0.7); }
.bdh-call-words { flex: 1; }
.bdh-call-join { border: 0; border-radius: 6px; padding: 4px 10px; background: rgba(139, 124, 246, 0.35); color: #dcd6ff !important; font-weight: 600; cursor: pointer; font-size: 12.5px !important; }
.bdh-call.is-live .bdh-call-join { background: var(--bdm-purple); color: #fff !important; }
html[data-theme-mode='light'] .bdh-call-join { color: #3c2f9c !important; }

.bdh-booknow { display: grid; grid-template-columns: 1fr 1fr; border-radius: 10px; overflow: hidden; flex: none; }
.bdh-booknow button { border: 0; padding: 13px 0; background: var(--bdm-purple); color: #fff !important; font-weight: 600; font-size: 15px !important; cursor: pointer; display: flex; gap: 8px; align-items: center; justify-content: center; }
.bdh-booknow button + button { border-left: 1px solid rgba(0, 0, 0, 0.25); }
.bdh-booknow button:hover { background: var(--bdm-purple-strong); }

.bdh-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--bdm-line-strong); border-radius: 9px; overflow: hidden; }
.bdh-seg button { border: 0; background: transparent; padding: 7px 0 6px; cursor: pointer; color: var(--bdm-text-2) !important; line-height: 1.15; }
.bdh-seg button + button { border-left: 1px solid var(--bdm-line-strong); }
.bdh-seg button b { display: block; font-size: 14px; }
.bdh-seg button span { font-size: 12px; }
.bdh-seg button[aria-pressed='true'] { background: var(--bdm-seg-on); color: var(--bdm-text) !important; }
.bdh-seg-small { width: 140px; }
.bdh-seg-note { margin: 8px 0 0; font-size: 12px; color: var(--bdm-text-3); }
.bdh-seg-note b { color: var(--bdm-group); }

.bdh-up-date { color: var(--bdm-text-2); font-size: 13px; margin: 0 0 8px; }
.bdh-up { border: 1px solid var(--bdm-line-strong); border-left: 4px solid var(--bdm-group); border-radius: 10px; padding: 10px 12px; background: var(--bdm-panel-2); cursor: pointer; }
.bdh-up.is-live { border-left-color: var(--bdm-now); }
.bdh-up-top { display: flex; align-items: flex-start; gap: 10px; }
.bdh-up-time { font-weight: 600; }
.bdh-up-who { color: var(--bdm-text-2); font-size: 13px; margin-top: 2px; }
.bdh-up-group { font-size: 11.5px; color: var(--bdm-group); margin-top: 3px; font-weight: 600; }
.bdh-up-len { margin-left: auto; font-size: 11px; color: var(--bdm-text-2); border: 1px solid var(--bdm-line-strong); border-radius: 5px; padding: 1px 5px; }
.bdh-up-len.is-live { color: var(--bdm-now); font-weight: 700; letter-spacing: 0.04em; border-color: transparent; }
.bdh-up-actions { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.bdh-join { border: 0; border-radius: 6px; padding: 5px 14px; background: rgba(139, 124, 246, 0.35); color: #dcd6ff !important; font-weight: 600; cursor: pointer; }
html[data-theme-mode='light'] .bdh-join { color: #3c2f9c !important; }
.bdh-join.is-hot { background: var(--bdm-purple); color: #fff !important; }
.bdh-icon { margin-left: auto; width: 28px; height: 28px; border-radius: 6px; border: 0; background: rgba(var(--overlay-rgb, 255, 255, 255), 0.07); cursor: pointer; display: grid; place-items: center; color: var(--bdm-text-2) !important; }
.bdh-icon + .bdh-icon { margin-left: 0; }
.bdh-up-empty { color: var(--bdm-text-3); font-size: 13px; line-height: 1.5; margin: 0; }

.bdh-nav { padding: 8px; flex: none; }
.bdh-nav button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 9px; background: none; cursor: pointer; color: var(--bdm-text-2) !important; font-weight: 500; font-size: 15px !important; text-align: left; }
.bdh-nav button:hover { background: rgba(var(--overlay-rgb, 255, 255, 255), 0.05); }
.bdh-nav button[aria-current='page'] { background: var(--bdm-purple-soft); color: var(--bdm-text) !important; }
.bdh-nav svg { width: 18px; height: 18px; flex: none; }

/* ── The week ────────────────────────────────────────────────────────────── */
.bdh-main { background: var(--bdm-panel); border: 1px solid var(--bdm-line); border-radius: 16px; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.bdh-cal { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.bdh-cal-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px 12px 64px; flex-wrap: wrap; }
.bdh-cal-title { font-size: 17px; font-weight: 600; }
.bdh-cal-sub { color: var(--bdm-text-3); font-size: 13px; }
.bdh-cal-sub b { color: var(--bdm-group); }
.bdh-cal-nav { margin-left: auto; display: flex; border: 1px solid var(--bdm-line-strong); border-radius: 8px; overflow: hidden; }
.bdh-cal-nav button { border: 0; background: none; padding: 6px 12px; cursor: pointer; color: var(--bdm-text-2) !important; }
.bdh-cal-nav button + button { border-left: 1px solid var(--bdm-line-strong); }
.bdh-cal-nav button:hover { background: rgba(var(--overlay-rgb, 255, 255, 255), 0.05); }
.bdh-cal .bdg { flex: 1; min-height: 0; --bdg-slot: var(--dn-cal-zoom-quarter, 52.93px); }
/* The Calendar's zoom stack (+ / level / −) over the hour labels' gutter. */
.bdh-cal-zoom { position: absolute; top: 0; left: 0; z-index: 7; width: 51px; padding: 4px 0; border-radius: 0 0 8px 0; background: var(--bdm-panel); }

/* ── The details column ──────────────────────────────────────────────────── */
.bdh-details { display: none; min-height: 0; }
.bdh.has-details .bdh-details { display: flex; }
.bdh-details .bdd { flex: 1; background: var(--bdm-panel); border: 1px solid var(--bdm-line); border-radius: 16px; padding: 16px; }

/* ── Settings ────────────────────────────────────────────────────────────── */
.bdh-settings { padding: 26px 34px; overflow: auto; }
.bdh-settings h2 { margin: 0 0 4px; font-size: 22px; }
.bdh-settings > p { margin: 0 0 22px; color: var(--bdm-text-2); }
.bdh-set-sec { border: 1px solid var(--bdm-line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; max-width: 640px; }
.bdh-set-sec h3 { margin: 0 0 12px; font-size: 14px; }
.bdh-set-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--bdm-line); }
.bdh-set-sec h3 + .bdh-set-row { border-top: 0; }
.bdh-set-k { flex: 1; }
.bdh-set-k small { display: block; color: var(--bdm-text-3); font-size: 12px; margin-top: 2px; }
.bdh-sbtn { border: 1px solid var(--bdm-line-strong); background: none; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.bdh-sbtn.is-p { background: var(--bdm-purple); border-color: var(--bdm-purple); color: #fff !important; }

/* ── The grid ────────────────────────────────────────────────────────────── */
.bdg { --bdg-slot: 26px; --bdg-n: 7; position: relative; display: flex; flex-direction: column; min-height: 0; color: var(--bdm-text); }
.bdg button { font: inherit; }
.bdg-scroll { flex: 1; min-height: 0; overflow: auto; position: relative; }
.bdg-days, .bdg-grid { display: grid; grid-template-columns: 52px repeat(var(--bdg-n), minmax(0, 1fr)); }
.bdg-days { position: sticky; top: 0; z-index: 6; background: var(--bdm-panel); border-bottom: 1px solid var(--bdm-line-strong); }
.bdg-days div { padding: 8px 10px; font-size: 15px; color: var(--bdm-text-2); border-left: 1px solid var(--bdm-line); white-space: nowrap; overflow: hidden; }
.bdg-days .bdg-zone { border-left: 0; font-size: 11px; color: var(--bdm-text-3); align-self: end; text-align: right; padding-right: 8px; }
.bdg-days .is-today { color: var(--bdm-purple); }
.bdg-grid { position: relative; height: calc(var(--bdg-slot) * 96); }
.bdg-hours div { height: var(--bdg-slot); font-size: 11px; color: var(--bdm-text-3); text-align: right; padding-right: 8px; box-sizing: border-box; transform: translateY(-6px); }
.bdg-hours div.is-hr { font-size: 13px; color: var(--bdm-text-2); font-weight: 600; }
.bdg-col { position: relative; border-left: 1px solid var(--bdm-line); cursor: pointer;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--bdg-slot) - 1px), var(--bdm-grid-line) calc(var(--bdg-slot) - 1px), var(--bdm-grid-line) var(--bdg-slot)); }
.bdg-col.is-today { background-color: var(--bdm-today); }
.bdg-col.is-past { cursor: default; }
.bdg-pastfill { position: absolute; left: 0; right: 0; top: 0; background: var(--bdm-past); pointer-events: none; }
.bdg-hourline { position: absolute; left: 0; right: 0; border-top: 1px solid var(--bdm-hour-line); pointer-events: none; }

.bdg-sess { --gc: var(--bdm-group); position: absolute; left: 4px; right: 6px; border: 0; border-radius: 6px; padding: 5px 8px; box-sizing: border-box; overflow: hidden; cursor: pointer; font-size: 12.5px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; z-index: 2; text-align: left; color: #fff; }
.bdg-sess.is-going { background: linear-gradient(180deg, color-mix(in srgb, var(--gc) 88%, white), var(--gc)); box-shadow: 0 2px 10px color-mix(in srgb, var(--gc) 40%, transparent); }
.bdg-sess.is-invite { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--gc) 16%, transparent) 0 8px, color-mix(in srgb, var(--gc) 6%, transparent) 8px 16px); border: 1.5px dashed color-mix(in srgb, var(--gc) 70%, transparent); color: var(--bdm-text); }
html[data-theme-mode='light'] .bdg-sess.is-invite { color: #3c2f9c; }
.bdg-t { font-weight: 700; }
.bdg-w { opacity: 0.85; max-width: calc(100% - 22px); overflow: hidden; text-overflow: ellipsis; }
.bdg-faces { display: flex; margin-top: 2px; }
.bdg-brk { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.22); font-size: 10.5px; padding: 0 8px; display: flex; align-items: center; letter-spacing: 0.03em; opacity: 0.9; }
.bdg-sess.is-invite .bdg-brk { background: color-mix(in srgb, var(--gc) 8%, transparent); }
.bdg-sess.is-live { outline: 2px solid var(--bdm-now); outline-offset: 1px; }
.bdg-sess.is-selected { outline: 2px solid var(--bdm-text); outline-offset: 1px; }
.bdg-pill { position: absolute; top: 5px; right: 6px; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 0 4px; background: rgba(0, 0, 0, 0.25); }
.bdg-pill:empty { display: none; }
.bdg-sess.is-short { flex-direction: row; align-items: baseline; gap: 6px; padding-top: 3px; }
.bdg-sess.is-short .bdg-w { white-space: nowrap; }
.bdg-sess.is-short .bdg-brk { font-size: 0; }
.bdg-sess.is-short .bdg-pill { top: 3px; }
.bdg-sess.is-narrow .bdg-pill, .bdg-sess.is-narrow .bdg-faces { display: none; }

.bdg-av { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; color: #1c1630; border: 2px solid var(--bdm-group); margin-right: -5px; box-sizing: border-box; flex: none; }
.bdg-av.is-lg { width: 32px; height: 32px; font-size: 13px; margin: 0; border: 0; }

.bdg-ghost { position: absolute; left: 4px; right: 6px; border-radius: 6px; border: 2px solid var(--bdm-group); background: color-mix(in srgb, var(--bdm-group) 24%, transparent); color: var(--bdm-text); font-size: 12.5px; font-weight: 600; padding: 5px 8px; box-sizing: border-box; pointer-events: none; z-index: 3; overflow: hidden; }
.bdg-ghost small { display: block; font-weight: 400; opacity: 0.8; }
.bdg-ghost.is-refused { border-color: var(--bdm-bad); background: rgba(255, 100, 100, 0.16); color: #ffd0d0; }
html[data-theme-mode='light'] .bdg-ghost.is-refused { color: #b42318; }
.bdg-ghost[hidden] { display: none; }

.bdg-now { position: absolute; left: 0; right: 0; border-top: 2px solid var(--bdm-now); z-index: 4; pointer-events: none; }
.bdg-now span { position: absolute; left: -2px; top: -10px; transform: translateX(-100%); background: var(--bdm-now); color: #1a1a1a; font-size: 11px; font-weight: 700; padding: 1px 4px; border-radius: 4px; white-space: nowrap; }
.bdg-col:first-of-type .bdg-now span { transform: none; left: 2px; top: -18px; }
.bdg-empty { position: absolute; left: calc(50% + 26px); top: 40%; transform: translateX(-50%); background: color-mix(in srgb, var(--bdm-panel) 95%, transparent); border: 1px solid var(--bdm-line-strong); border-radius: 12px; padding: 14px 18px; color: var(--bdm-text-2); text-align: center; z-index: 5; pointer-events: none; line-height: 1.5; max-width: 80%; }
.bdg-empty b { color: var(--bdm-text); display: block; }

/* ── Details ─────────────────────────────────────────────────────────────── */
.bdd { overflow: auto; display: flex; flex-direction: column; gap: 14px; color: var(--bdm-text); font-size: 14px; box-sizing: border-box; min-height: 0; }
.bdd:empty { display: none; }
.bdd button { font: inherit; }
.bdd-head { display: flex; align-items: flex-start; gap: 10px; }
.bdd-words { flex: 1; min-width: 0; }
.bdd-x { margin-left: auto; width: 28px; height: 28px; border-radius: 6px; border: 0; background: rgba(var(--overlay-rgb, 255, 255, 255), 0.07); cursor: pointer; display: grid; place-items: center; color: var(--bdm-text-2); font-size: 18px; line-height: 1; }
.bdd-when { font-size: 18px; font-weight: 600; }
.bdd-sub { color: var(--bdm-text-2); font-size: 13px; margin-top: 3px; }
.bdd-group { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--bdm-text-2); margin-top: 6px; }
.bdd-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: var(--bdm-purple-soft); color: #cfc8ff; margin-top: 6px; }
html[data-theme-mode='light'] .bdd-tag { color: #4b3cc4; }
.bdd-tag.is-live { background: rgba(255, 138, 61, 0.18); color: var(--bdm-now); }
.bdd-shape { display: flex; height: 8px; border-radius: 4px; overflow: hidden; }
.bdd-shape-f { background: var(--bdm-purple); }
.bdd-shape-b { background: #4a4560; }
.bdd-shape-l { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--bdm-text-3); margin-top: 5px; }
.bdd-sec h4 { margin: 0 0 8px; font-size: 12px; color: var(--bdm-text-2); font-weight: 600; }
.bdd-person { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.bdd-nm { font-weight: 500; }
.bdd-st { margin-left: auto; font-size: 12px; color: var(--bdm-text-3); }
.bdd-st.is-go { color: #9fe3bf; }
html[data-theme-mode='light'] .bdd-st.is-go { color: #15803d; }
.bdd-rsvp { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--bdm-line-strong); border-radius: 9px; overflow: hidden; flex: none; }
.bdd-rsvp button { border: 0; background: none; padding: 9px 0; cursor: pointer; color: var(--bdm-text-2); font-weight: 600; }
.bdd-rsvp button + button { border-left: 1px solid var(--bdm-line-strong); }
.bdd-rsvp button[aria-pressed='true'] { background: var(--bdm-purple-soft); color: var(--bdm-text); }
.bdd-join { border: 0; border-radius: 9px; padding: 11px 0; background: var(--bdm-purple); color: #fff; font-weight: 700; cursor: pointer; font-size: 15px; flex: none; }
.bdd-join:disabled { background: var(--bdm-seg-on); color: var(--bdm-text-3); cursor: default; }
.bdd-remove { border: 1px solid var(--bdm-line-strong); background: none; border-radius: 9px; padding: 9px 0; cursor: pointer; color: var(--bdm-text-2); flex: none; }
.bdd-remove.is-armed { border-color: var(--bdm-bad); color: var(--bdm-bad); }
.bdd-error { margin: 0; font-size: 12.5px; color: var(--bdm-bad); }
.bdd-foot { margin: auto 0 0; font-size: 12px; color: var(--bdm-text-3); line-height: 1.5; }

/* Narrow windows: one column, the menu above the calendar. */
@media (max-width: 900px) {
  html[data-bd='lobby'] .bdh, html[data-bd='lobby'] .bdh.has-details { grid-template-columns: 1fr; height: auto; min-height: calc(100dvh - var(--bdh-top, 0px)); }
  .bdh-side { overflow: visible; }
  .bdh-spacer { display: none; }
  .bdh-main { height: 78vh; }
  .bdh-cal .bdg-days, .bdh-cal .bdg-grid { grid-template-columns: 44px repeat(7, 112px); }
  .bdh-cal-head { padding-left: 16px; }
  .bdh-details { order: -1; }
}

/* Narrow day columns (a 1300px window's week): faces and the length pill go
   before they cover the time and the break strip. */
.bdg-col { container-type: inline-size; }
@container (max-width: 130px) { .bdg-faces { display: none; } }
@container (max-width: 100px) { .bdg-pill { display: none; } .bdg-w { max-width: 100%; } }
.bdg-sess.is-short { padding-right: 30px; }

/* ── The Calendar tab's right sidebar: Coworking sessions (bd_calendar_menu.js) ──
   Under the context sidebar's header, where the panels sit; the cards are the
   Body doubling page's (.bdh-*). */
.bdcm { display: none; }
html[data-desktop-shell][data-shell-right='open'] .bdcm:not([hidden]) {
  position: fixed;
  top: 60px;
  right: 0;
  bottom: 0;
  width: var(--shell-right-width);
  z-index: 46;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px 16px;
  overflow-y: auto;
  background: var(--bg);
  border-left: 1px solid var(--border-subtle);
  color: var(--bdm-text);
  font-size: 14px;
}
.bdcm button { font: inherit; color: inherit; }
.bdcm > .bdh-card, .bdcm > .bdh-booknow { flex: none; }
.bdcm > .bdd { padding: 6px 4px; }

/* The Calendars card: the colour is the calendar's (yours blue, the group's purple). */
.bdc-tab { cursor: pointer; }
.bdc-tab .bdh-gdot { background: var(--bdc-color, var(--bdm-group)); }
.bdc-tab.is-active {
  background: color-mix(in srgb, var(--bdc-color, var(--bdm-group)) 20%, transparent);
  border-color: color-mix(in srgb, var(--bdc-color, var(--bdm-group)) 60%, transparent);
}
.bdc-tab:not(.is-active):hover { background: rgba(var(--overlay-rgb, 255, 255, 255), 0.05); }
.bdc-tab.is-off { opacity: 0.45; }
.bdc-tab.is-off:hover { opacity: 0.8; }
.bdc-tabs { display: flex; flex-direction: column; gap: 2px; }
.bdc-hidden { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--bdm-line-strong); }
.bdc-plus { font-size: 14px; color: var(--bdm-text-3); }
.bdc-x { margin-left: auto; flex: none; width: 22px; height: 22px; padding: 0; line-height: 0; border: 0; border-radius: 5px; background: rgba(var(--overlay-rgb, 255, 255, 255), 0.07); display: grid; place-items: center; cursor: pointer; color: var(--bdm-text-2) !important; }
.bdc-x svg { display: block; }
.bdc-x:hover { background: rgba(255, 100, 100, 0.2); color: var(--bdm-bad) !important; }
.bdc-note { margin: 8px 0 6px; }
.bdc-card.is-editing .bdh-gadd { margin-top: 8px; }
/* Groups dropdown: ＋ New group under Edit displayed Groups (2026-12-01). */
.bdc-new { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bdc-new-name { flex: 1 1 140px; min-width: 0; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--bdm-line-strong); background: transparent; color: inherit; font: inherit; }
.bdc-new-go { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--bdm-line-strong); background: rgba(var(--overlay-rgb, 255, 255, 255), 0.07); color: inherit; font: inherit; cursor: pointer; }
.bdc-new .bdc-note { flex-basis: 100%; margin: 0; }

/* Signed out: a guest's name + Join under the group list (2026-12-02, `bd_home.js` guestCalls). */
.bdh-guest-join { display: flex; gap: 8px; margin-top: 10px; }
.bdh-guest-name { flex: 1; min-width: 0; border: 1px solid var(--bdm-line, rgba(var(--overlay-rgb, 255, 255, 255), 0.14)); border-radius: 8px; padding: 7px 9px; background: transparent; color: inherit; font: inherit; font-size: 13px; }
.bdh-guest-name:focus-visible { outline: 2px solid var(--bdm-purple); outline-offset: 1px; }
.bdh-guest-hint { margin-top: 8px; }
.bdh-guest-signin { margin-top: 14px; }
