/* body-doubling-shell.css — the body-doubling call on the desktop shell.
 *
 * The call's own look lives in body-doubling.css; the shell's frame in
 * desktop-shell.css. What only exists where the two meet goes here: the Focus
 * Timer tab's floating islands, and the call's head row and left day-schedule
 * sidebar (bd_topbar.js, bd_day_panel.js), which only the desktop shell has.
 */
/* The desktop shell's topbar also holds the Today chip on the left and the
   horizon controls on the right, so a flex centre lands wherever the space
   between them happens to be. Seth, 2026-10-31: "the tabs at the top are
   centered on the screen … on stable it's centered but on beta it isn't". Pinned
   to the topbar's true centre, the page's, like the shell's own middle
   (styles/desktop-shell.css). And no Today chip: the call's Calendar tab is
   always today (bd_calendar_pane.js), so its date picker had nothing to pick. */
html[data-desktop-shell]:is([data-bd='call'], [data-bd='solo']) .bd-topbar-right {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  flex: none;
  pointer-events: auto;
}
/* No bar across the top: the tabs and the clock float as islands over the page
   (Seth, 2026-11-04: "the tabs at the top are an island that's floating … so we
   don't just have a bar across the screen at the top"). The topbar keeps its
   place (sticky, and its centre is the main column's) at no height and no fill,
   so the page runs up under it; only the islands take clicks. Their track is
   glass, not the 5% tint it was on a bar, so what scrolls under stays behind. */
html[data-desktop-shell]:is([data-bd='call'], [data-bd='solo']) .app-shell > header.topbar {
  min-height: 0;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  pointer-events: none;
}
html[data-desktop-shell][data-bd='solo'] :is(.bd-tabs, .bd-clock) {
  background: var(--bd-float-bg);
  border-color: var(--bd-float-edge);
  box-shadow: var(--bd-float-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
/* The video takes the top row too: the head row (» and the clock | Edit
   island) floats over the top-left tile, it is small (Seth, 2026-11-27: "it's
   okay if the timer on the top left overlaps with someone's video … use this
   area that's not currently being used"). Until then the video kept 70px
   clear. The calendar, the timer and the goals scroll under it as before. */
html[data-desktop-shell][data-bd='call'][data-bd-tab='video'] #do-view-root {
  padding-top: 0;
}
html[data-desktop-shell]:is([data-bd='call'], [data-bd='solo']) #desktop-today {
  display: none !important;
}

/* ── The call's head row (bd_topbar.js) ──────────────────────────────────
   »  [ 49:57 ● FOCUS | ⏱ Edit ]   One island in two halves, beside the app's
   own » (desktop-shell.css `.shell-collapse`: fixed at 10px/10px with the nav
   folded, inside the nav when it is open). » and the island together span the
   day sidebar's width exactly, open or not, so Edit never moves. */
html[data-desktop-shell] { --bd-day-w: 280px; --bd-nav-w: var(--shell-left-width); --bd-right-w: var(--shell-right-width); --bd-week-video-w: 400px; }
html[data-desktop-shell][data-shell-left='closed'] { --bd-nav-w: 0px; }
html[data-desktop-shell][data-shell-right='closed'] { --bd-right-w: var(--shell-gutter-width); }
.bd-head, .bd-day { display: none; }
html[data-desktop-shell][data-bd='call'] .bd-head {
  position: fixed;
  top: 14px;
  left: calc(var(--bd-nav-w) + 10px);
  width: calc(var(--bd-day-w) - 20px);
  height: 32px;
  z-index: 43;
  box-sizing: border-box;
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: color-mix(in srgb, #fff 3%, var(--shell-nav-bg, var(--bg)));
  overflow: hidden;
}
/* The nav folded: » is the row's first square (10px + 32px + 8px). */
html[data-desktop-shell][data-bd='call'][data-shell-left='closed'] .bd-head {
  top: 10px;
  left: 50px;
  width: calc(var(--bd-day-w) - 60px);
}
/* The /Calendar link's call has no » (desktop-shell.css `dn-link-chrome`):
   the island takes the row from the edge. */
html.dn-link-chrome[data-desktop-shell][data-bd='call'] .bd-head {
  top: 10px;
  left: 10px;
  width: calc(var(--bd-day-w) - 20px);
}
/* The week takes the sidebar's place: no Edit to press. */
html[data-desktop-shell][data-bd='call'].bd-day-week .bd-head { display: none; }
.bd-head-clock {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
html[data-desktop-shell][data-bd='call'] .bd-head .bd-clock {
  min-height: 0;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html[data-desktop-shell][data-bd='call'] .bd-head .bd-clock-left { font-size: 17px; }
html[data-desktop-shell][data-bd='call'] .bd-head .bd-clock-ring { display: none; }
.bd-head-edit {
  flex: 0 0 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.bd-head-edit:hover { background: rgba(var(--overlay-rgb), 0.06); color: var(--text-primary); }
.bd-head-edit:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ── The call's left sidebar: today's schedule (bd_day_panel.js) ──────────
   Beside the nav, pushing the page; 25 | 50 and ⤢, then today's grid
   (bd_week_grid.js, the hour height the Calendar's zoom) with the Calendar's
   + / level / − at its top-left. */
html[data-desktop-shell][data-bd='call'] .bd-day:not([hidden]) {
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--bd-nav-w);
  width: var(--bd-day-w);
  z-index: 42;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding-top: 50px;
  border-right: 1px solid var(--border-subtle);
  background: var(--shell-nav-bg, var(--bg));
  color: var(--bdm-text);
  font-size: 14px;
}
html[data-desktop-shell][data-bd='call'].bd-day-open .app-shell {
  padding-left: calc(var(--bd-nav-w) + var(--bd-day-w)) !important;
}
.bd-day-head { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; }
.bd-day-title { display: none; flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; }
.bd-day-seg { flex: 1; }
.bd-day-max {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.bd-day-max[hidden] { display: none; }
.bd-day-max:hover { border-color: var(--text-muted); color: var(--text-primary); }
.bd-day-max:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bd-day-body { flex: 1; min-height: 0; display: flex; }
.bd-day-body > .bdg { flex: 1; min-width: 0; --bdg-slot: var(--dn-cal-zoom-quarter, 52.93px); }
.bd-day-body > .bdd { flex: 1; min-width: 0; overflow: auto; padding: 6px 12px 16px; }
/* The app's theme, not the booking mockup's palette (Seth, 2026-11-28: "display
   the same theme as … the regular app"): the sidebar, its week card and the
   details popover read the theme preset's tokens (variables.css + the Settings
   preset), and a session card is drawn like your events on the Calendar — a
   soft fill of the colour with the colour as a 4px left edge (events.css,
   focus-look.css). Dashed stripes still mean an invitation; LIVE stays orange. */
.bd-day, .bdd.bd-day-pop {
  --bdm-page: var(--bg);
  --bdm-panel: var(--panel-bg, var(--bg-elevated, #29292a));
  --bdm-text: var(--text-primary);
  --bdm-text-2: var(--text-secondary);
  --bdm-text-3: var(--text-muted);
  --bdm-line: var(--border-subtle);
  --bdm-line-strong: var(--border-strong);
  --bdm-purple: var(--accent);
  --bdm-purple-strong: var(--accent-hover, var(--accent));
  --bdm-purple-soft: var(--tab-active-bg, color-mix(in srgb, var(--accent) 18%, transparent));
  --bdm-group: var(--dn-group-color, var(--accent));
}
.bd-day .bdg-sess.is-going {
  background:
    linear-gradient(var(--gc), var(--gc)) left / 4px 100% no-repeat,
    color-mix(in srgb, var(--gc) 24%, #1e1e22);
  box-shadow: none;
  color: #e9e9ee;
  padding-left: 10px;
}
.bd-day .bdg-sess.is-invite {
  border: 0;
  outline: 1.5px dashed color-mix(in srgb, var(--gc) 70%, transparent);
  outline-offset: -1.5px;
  background: repeating-linear-gradient(135deg,
    color-mix(in srgb, var(--gc) 22%, var(--bg)) 0 6px,
    color-mix(in srgb, var(--gc) 8%, var(--bg)) 6px 12px);
  color: color-mix(in srgb, var(--gc) 45%, var(--text-primary));
}
.bd-day .bdg-sess.is-live { outline: 2px solid var(--bdm-now); outline-offset: 1px; }
.bd-day .bdg-sess.is-selected { outline: 2px solid var(--text-primary); outline-offset: 1px; }
/* Picked while live: still orange, the pick a ring outside it. */
.bd-day .bdg-sess.is-live.is-selected { outline-color: var(--bdm-now); box-shadow: 0 0 0 4px var(--text-primary); }
.bd-day .bdg-sess .bdg-w { opacity: 0.75; }
.bd-day .bdg-sess .bdg-pill { background: rgba(var(--overlay-rgb, 255, 255, 255), 0.12); color: inherit; }
.bd-day .bdg-sess .bdg-brk { background: rgba(0, 0, 0, 0.18); }
.bd-day .bdg-sess.is-going .bdg-brk { left: 4px; }
html[data-theme-mode='light'] .bd-day .bdg-sess.is-going {
  background:
    linear-gradient(var(--gc), var(--gc)) left / 4px 100% no-repeat,
    color-mix(in srgb, var(--gc) 20%, #ffffff);
  color: #1d1d22;
}
html[data-theme-mode='light'] .bd-day .bdg-sess .bdg-brk { background: rgba(15, 23, 42, 0.06); }
html[data-theme-mode='light'] .bd-day .bdg-sess .bdg-pill { background: rgba(15, 23, 42, 0.08); }
.bd-day .bdd-join:not(:disabled), .bdd.bd-day-pop .bdd-join:not(:disabled) { color: var(--accent-contrast, #fff); }

/* One day: no "Fri 27" heading. */
.bd-day:not(.is-week) .bdg-days { display: none; }
/* Today's session details: a popover to the RIGHT of the sidebar, level with
   the picked card, over the video (bd_day_panel.js places it, --bd-pop-arrow
   = the card's middle). The grid stays where it was. */
html[data-desktop-shell][data-bd='call'] .bdd.bd-day-pop {
  position: fixed;
  z-index: 45;
  width: min(320px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  padding: 16px 16px 14px;
  gap: 12px;
  border: 1px solid var(--bdm-line-strong);
  border-radius: 14px;
  background: var(--bdm-panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
  overflow: visible;
  animation: bd-day-pop-in 120ms ease-out;
}
html[data-desktop-shell][data-bd='call'] .bdd.bd-day-pop::before {
  content: '';
  position: absolute;
  left: -7px;
  top: calc(var(--bd-pop-arrow, 28px) - 6px);
  width: 12px;
  height: 12px;
  background: var(--bdm-panel);
  border-left: 1px solid var(--bdm-line-strong);
  border-bottom: 1px solid var(--bdm-line-strong);
  transform: rotate(45deg);
}
html[data-desktop-shell][data-bd='call'] .bdd.bd-day-pop.is-tall { overflow-y: auto; }
html[data-desktop-shell][data-bd='call'] .bdd.bd-day-pop.is-tall::before { display: none; }
html[data-desktop-shell][data-bd='call'] .bdd.bd-day-pop > :not(.bdd-head) { flex: none; }
html[data-desktop-shell][data-bd='call'] .bdd.bd-day-pop .bdd-when { font-size: 16px; }
html[data-desktop-shell][data-bd='call'] .bdd.bd-day-pop .bdd-foot { margin: 0; }
html[data-theme-mode='light'][data-desktop-shell][data-bd='call'] .bdd.bd-day-pop { box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08); }
@keyframes bd-day-pop-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.bd-day .bdg-days { background: var(--bdm-page); }
.bd-day-zoom {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 7;
  width: 51px;
  padding: 4px 0;
  border-radius: 0 0 8px 0;
  background: var(--shell-nav-bg, var(--bg));
}
.bd-day-here { white-space: nowrap; }
.bd-day-here b { color: #7ee2a8; }
/* A week's columns are too narrow for the words: the outline and LIVE say it. */
.bd-day.is-week .bd-day-here { display: none; }

/* ── ⤢: the group's week beside the video ────────────────────────────────
   The video drops to a column on the left (the shell's right padding takes
   the rest of the page away from it); the week is a card over that room. */
html[data-desktop-shell][data-bd='call'].bd-day-week .app-shell {
  padding-right: calc(100vw - var(--bd-nav-w) - var(--bd-week-video-w)) !important;
}
html[data-desktop-shell][data-bd='call'].bd-day-week .bd-day:not([hidden]) {
  /* Level with the video, which runs to the top now. */
  top: 10px;
  bottom: 16px;
  left: calc(var(--bd-nav-w) + var(--bd-week-video-w));
  right: calc(var(--bd-right-w) + 16px);
  width: auto;
  padding-top: 0;
  border: 1px solid var(--bdm-line-strong);
  border-radius: 16px;
  background: var(--bdm-page);
  overflow: hidden;
}
.bd-day.is-week .bd-day-head { height: 56px; padding: 0 14px; border-bottom: 1px solid var(--bdm-line); }
.bd-day.is-week .bd-day-title { display: block; }
.bd-day.is-week .bd-day-seg { flex: 0 0 150px; order: 2; }
.bd-day.is-week .bd-day-body > .bdd { flex: 0 0 300px; border-left: 1px solid var(--bdm-line); }
.bd-day.is-week .bdg-days div { min-height: 40px; }
.bd-day.is-week .bd-day-zoom { background: var(--bdm-page); }
/* Five controls in a 400px column: the bar's buttons tighten. */
html[data-desktop-shell][data-bd='call'].bd-day-week .cw-call-bar { gap: 4px; max-width: calc(100% - 8px); }
html[data-desktop-shell][data-bd='call'].bd-day-week .cw-call-bar .cw-call-btn { padding: 0 11px; }
html[data-desktop-shell][data-bd='call'].bd-day-week .cw-call-bar .cw-call-split .cw-call-split-caret { padding: 0 9px 0 6px; }
