/* body-doubling.css — the Body doubling view's look (js/body-doubling/).
 *
 * Every rule but the first and the last section is behind a mark on <html>:
 *   .dn-bd-simple   the `/?call=<group>/simple` link (or `/simpler`): no
 *                   rails at all, either side, in the lobby or the call
 *                   (stamped by the inline <head> script, before first paint);
 *   [data-bd]       the view is on screen, `lobby` or `call` (bd_shell.js), or
 *                   `solo`: the Focus Timer tab, the call's face with no call
 *                   (no Video tab, no call bar, the left rail kept);
 *   [data-bd-tab]   in the call, which of Video · Interval timer · Calendar
 *                   · Tasks (the topbar's tabs in the app, bd_tabs.js; the
 *                   call bar's More on the link, bd_more.js).
 *
 * The call view (`[data-bd='call']`) is the same wherever you joined from:
 * no LEFT rail; up top the clock, big at the far left, then (in the app) the
 * four tabs; Chat (and More, on the link) in the call's bar beside its own
 * Leave, the view's only one (bd_call_bar.js). In the app the right rail stays, the chat opened in it;
 * on the link there is none and the chat docks at the window's edge.
 *
 * 🔴 Linked AFTER solo-route.css. The rails are shown by `html[data-nav-rail]
 * .nav-rail` / `.panel-rail` rules, which ours only beat on document order —
 * the same trick solo-route.css's header explains.
 */

/* ── The one unmarked rule: the Do bar shows the CURRENT interval only ──── */
/* Seth, 2026-10-10: "only shows that current interval" — FOCUS while focusing,
   BREAK on a break. Both still show before a block starts (neither is live). */
.ft-cols--bar:has(> .ft-col.is-live) > .ft-col:not(.is-live) {
  display: none;
}

/* ── No left rail: the link always, the app in the call ───────────────── */
html.dn-bd-simple,
html[data-bd='call'] {
  --nav-rail-width: 0px;
  --nav-rail-expanded-width: 0px;
}
html.dn-bd-simple .nav-rail,
html.dn-bd-simple .mobile-nav-drawer-toggle,
html[data-bd='call'] .nav-rail,
html[data-bd='call'] .mobile-nav-drawer-toggle {
  display: none;
}

/* ── The link: no right rail either, and light ──────────────────────────── */
/* Kept light for slow computers: the blurred full-window backdrop goes
   (a 34px blur the GPU must keep composited under the video). Zeroing the
   width retires the shell's padding and the open panel's `right:` offset at
   once (the same trick as solo-route.css); the chat panel then docks at the
   window's edge. Its toggle stays in the DOM, hidden, for bd_call_bar.js to
   press. */
html.dn-bd-simple {
  --panel-rail-width: 0px;
}
html.dn-bd-simple .panel-rail,
html.dn-bd-simple .backdrop {
  display: none;
}

/* ── The call view's palette ──────────────────────────────────────────── */
/* Phase colours and the control dock's glass, per theme (`data-theme-mode`,
   display_settings.js). The dock floats over video, so it stays dark in both
   themes, as a video call's controls do. */
html:is([data-bd='call'], [data-bd='solo']) {
  --bd-focus: #34d399;
  --bd-break: #fbbf24;
  --bd-stage: #0d0e11;
  --bd-dock-bg: rgba(18, 19, 23, 0.88);
  --bd-dock-edge: rgba(255, 255, 255, 0.08);
  --bd-seg-track: rgba(var(--overlay-rgb), 0.05);
  --bd-seg-edge: rgba(var(--overlay-rgb), 0.08);
  --bd-seg-on: rgba(var(--overlay-rgb), 0.1);
  --bd-seg-on-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  /* The topbar's islands where they float over the page (body-doubling-shell.css). */
  --bd-float-bg: rgba(28, 29, 33, 0.86);
  --bd-float-edge: rgba(255, 255, 255, 0.09);
  --bd-float-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), 0 1px 3px rgba(0, 0, 0, 0.3);
}
html:is([data-bd='call'], [data-bd='solo'])[data-theme-mode='light'] {
  --bd-focus: #059669;
  --bd-break: #b45309;
  --bd-stage: #e7e8eb;
  --bd-seg-on: #ffffff;
  --bd-seg-on-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.06);
  --bd-float-bg: rgba(248, 249, 251, 0.88);
  --bd-float-edge: rgba(15, 23, 42, 0.08);
  --bd-float-shadow: 0 10px 28px rgba(15, 23, 42, 0.14), 0 1px 3px rgba(15, 23, 42, 0.1);
}

/* ── The call's topbar: tabs · clock, two islands, centred ─────────────── */
html.dn-bd-simple[data-bd] .topbar-left,
html[data-bd='call'] .topbar-left,
html:is([data-bd='call'], [data-bd='solo']) .topbar-actions > :not(.bd-topbar-right) {
  display: none !important;
}
html.dn-bd-simple[data-bd='lobby'] .topbar-actions > * {
  display: none !important;
}
html:is([data-bd='call'], [data-bd='solo']) header.topbar:not(.auth-topbar) {
  padding: 12px 20px 10px;
}
html:is([data-bd='call'], [data-bd='solo']) .topbar-actions {
  flex: 1 1 auto;
  justify-content: stretch;
}
/* Tabs · clock, two islands side by side, centred over the call. Seth,
   2026-10-12: "the timer is to the right of the tabs and it's also a
   rectangle with rounded corners". Same height (stretch), same track, same
   edge; no Leave up here (the call's bar has it, bd_call_bar.js). */
html:is([data-bd='call'], [data-bd='solo']) .bd-topbar-right {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  margin-right: 0;
}
/* In the app the group chat lies OVER the page (its owner does not push the
   shell), so the topbar keeps clear of it while it is open. Where the shell
   already makes room (`app-shell-chat-open`, the link) this does nothing. */
html[data-bd='call']:not([data-device='phone']):has(#cowork-chat-panel:not(.chat-panel-hidden)) .app-shell:not(.app-shell-chat-open) > header.topbar {
  padding-right: calc(var(--chat-panel-width) + 16px);
}
/* The clock island: the time, then Focus or Break; nothing else. Its ring
   (bd_topbar.js) lies over the border, starts full and drains clockwise from
   the top. */
html:is([data-bd='call'], [data-bd='solo']) .bd-clock {
  position: relative;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  max-width: none;
  padding: 0 16px 0 18px;
  border: 1px solid var(--bd-seg-edge);
  border-radius: 12px;
  background: var(--bd-seg-track);
  color: var(--bd-focus);
}
html:is([data-bd='call'], [data-bd='solo']) .bd-clock[data-phase='break'] { color: var(--bd-break); }
html:is([data-bd='call'], [data-bd='solo']) .bd-clock[data-phase='idle'] { color: var(--text-secondary); }
html:is([data-bd='call'], [data-bd='solo']) .bd-clock-left {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
html:is([data-bd='call'], [data-bd='solo']) .bd-clock-phase {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
}
/* A small lit dot before the word: the phase reads at a glance. */
html:is([data-bd='call'], [data-bd='solo']) .bd-clock-phase::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}
html:is([data-bd='call'], [data-bd='solo']) .bd-clock[data-phase='idle'] .bd-clock-phase::before {
  box-shadow: none;
  opacity: 0.6;
}
.bd-clock-ring {
  display: none;
}
html:is([data-bd='call'], [data-bd='solo']) .bd-clock-ring {
  display: block;
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  overflow: visible;
  pointer-events: none;
}
.bd-clock-ring-bar {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 3px color-mix(in srgb, currentColor 45%, transparent));
  transition: stroke-dashoffset 1s linear;
}
@media (prefers-reduced-motion: reduce) {
  .bd-clock-ring-bar { transition: none; }
}

/* ── The tabs (bd_tabs.js): the app only; the link keeps them under More ── */
/* A segmented control: one quiet track, the picked tab raised on it. */
.bd-tabs {
  display: none;
}
html:is([data-bd='call'], [data-bd='solo']):not(.dn-bd-simple) .bd-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--bd-seg-edge);
  border-radius: 12px;
  background: var(--bd-seg-track);
}
/* The Focus Timer tab is the call's face with no call (bd_shell.js `solo`):
   no Video (Seth, 2026-11-04). On the narrowest screens it keeps its icons,
   having no call bar for More to sit in. */
html[data-bd='solo'] .bd-tab[data-bd-tab='video'] {
  display: none;
}
.bd-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.bd-tab svg {
  width: 17px;
  height: 17px;
  opacity: 0.8;
}
.bd-tab:hover {
  color: var(--text-primary);
}
.bd-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.bd-tab.is-active {
  background: var(--bd-seg-on);
  box-shadow: var(--bd-seg-on-shadow);
  color: var(--text-primary);
}
.bd-tab.is-active svg {
  opacity: 1;
}

/* ── Chat (and More, on the link) in the call's bar (bd_call_bar.js) ────── */
.bd-chat-btn,
.bd-more,
.bd-dock {
  display: none;
}
html[data-bd='call'] .bd-chat-btn {
  display: inline-flex;
  position: relative;
}
html[data-bd='call'].dn-bd-simple .bd-more {
  display: inline-flex;
  position: relative;
}
.bd-chat-btn.is-active,
.bd-more.is-open .bd-more-btn {
  background: rgba(255, 255, 255, 0.18);
}
.bd-chat-btn[data-unread]::after {
  content: attr(data-unread);
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
/* The bar fades when the pointer leaves the video; not while More is open. */
.cw-call-bar:has(.bd-more.is-open) {
  opacity: 1;
}
.bd-more-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 168px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(16, 16, 20, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
}
.bd-more-menu[hidden] {
  display: none;
}
.bd-more-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.bd-more-item:hover,
.bd-more-item:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}
.bd-more-item[aria-checked='true'] {
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}
/* Off Video the call's bar is out of sight: More and Chat sit in a dock of
   their own at the bottom of the window. */
html[data-bd='call']:not([data-bd-tab='video']) .bd-dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 60;
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--bd-dock-edge);
  border-radius: 999px;
  background: var(--bd-dock-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
}
/* Centred on what the page shows, not the window: the right rail and an open
   chat take the right edge. */
html[data-bd='call']:not([data-bd-tab='video']) .bd-dock {
  left: calc((100vw - var(--panel-rail-width, 0px)) / 2);
}
html[data-bd='call']:not([data-bd-tab='video']):not([data-device='phone']):has(#cowork-chat-panel:not(.chat-panel-hidden)) .bd-dock {
  left: calc((100vw - var(--panel-rail-width, 0px) - var(--chat-panel-width, 0px)) / 2);
}
/* Room at the foot of a pane, so the dock never sits on what it shows. */
html:is([data-bd='call'], [data-bd='solo']) .bd-pane {
  padding-bottom: 88px;
}

/* ── The call itself, in the view: stage, tiles, the control bar ────────── */
/* livekit_call.js draws these for every call; the look is the view's. The
   bar stays fully shown (it used to rest at 55%, which read as disabled). */
html[data-bd='call'] .cw-stage-video {
  border-radius: 16px;
}
html[data-bd='call'] .cw-stage-video:has(.cw-call) {
  background: var(--bd-stage);
}
/* No gap/padding on .cw-call-tiles here: call_tiles.js sizes the tiles for
   cowork.css's 6px, and two people side by side fill the width exactly, so
   any more wraps the second under the first and crops both (2026-10-12). */
html[data-bd='call'] .cw-tile {
  border-radius: 12px;
}
html[data-bd='call'] .cw-tile-name {
  bottom: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 12px;
  font-weight: 500;
}
html[data-bd='call'] .cw-call-bar {
  bottom: 16px;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--bd-dock-edge);
  background: var(--bd-dock-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 1;
}
html[data-bd='call'] .cw-call-bar .cw-call-btn,
html[data-bd='call'] .bd-dock .cw-call-btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 140ms ease, color 140ms ease;
}
html[data-bd='call'] .cw-call-bar .cw-call-btn:hover,
html[data-bd='call'] .bd-dock .cw-call-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
html[data-bd='call'] .cw-call-bar .cw-call-btn:focus-visible,
html[data-bd='call'] .bd-dock .cw-call-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}
html[data-bd='call'] .cw-call-bar .cw-call-btn:disabled,
html[data-bd='call'] .bd-dock .cw-call-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
/* Mute ▴ and Video ▴ are each one pill split in two (call_mic_menu.js, call_video_menu.js). */
html[data-bd='call'] .cw-call-bar .cw-call-split .cw-call-split-main {
  padding-right: 12px;
  border-radius: 999px 0 0 999px;
}
html[data-bd='call'] .cw-call-bar .cw-call-split .cw-call-split-caret {
  padding: 0 12px 0 9px;
  border-radius: 0 999px 999px 0;
}
html[data-bd='call'] .cw-call-bar .cw-call-split.is-open .cw-call-split-caret {
  background: rgba(255, 255, 255, 0.22);
}
/* Mic or camera off: tinted, so you can tell without reading the word. */
html[data-bd='call'] .cw-call-bar .cw-call-btn.is-off {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}
html[data-bd='call'] .cw-call-bar .cw-call-btn.is-off:hover {
  background: rgba(239, 68, 68, 0.24);
}
html[data-bd='call'] .cw-call-bar .bd-chat-btn.is-active,
html[data-bd='call'] .bd-dock .bd-chat-btn.is-active,
html[data-bd='call'] .bd-more.is-open .bd-more-btn {
  background: rgba(255, 255, 255, 0.22);
}
html[data-bd='call'] .cw-call-bar .cw-call-leave,
html[data-bd='call'] .bd-dock .cw-call-leave {
  margin-left: 4px;
  background: #dc2626;
  color: #fff;
  font-weight: 600;
}
html[data-bd='call'] .cw-call-bar .cw-call-leave:hover,
html[data-bd='call'] .bd-dock .cw-call-leave:hover {
  background: #b91c1c;
}

/* ── The topbar inside the view ────────────────────────────────────────── */
/* The app's tabs and the period controls go; in the call, the clock and the
   view's tabs come in their place (bd_topbar.js). `!important` because
   router.js writes inline `display` on some of these controls per route. */
html[data-bd] #primary-navigation,
html[data-bd] .topbar-left > :not(.mobile-nav-drawer-toggle) {
  display: none !important;
}
.bd-topbar-right {
  display: none;
}
.bd-clock {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  max-width: 320px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.bd-clock[hidden] {
  display: none;
}
.bd-clock-phase {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bd-clock[data-phase='focus'] .bd-clock-phase { color: var(--bd-focus, #16a34a); }
.bd-clock[data-phase='break'] .bd-clock-phase { color: var(--bd-break, #d97706); }
.bd-clock-left {
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  color: var(--text-primary);
}

/* ── The route under the view ──────────────────────────────────────────── */
/* The Do bar is the topbar's job now; in the lobby nothing of the route shows. */
html[data-bd] #do-view-root .do-bar,
html[data-bd='lobby'] #do-view-root .do-shell,
html:is([data-bd='call'], [data-bd='solo']):not([data-bd-tab='calendar']) #do-view-root .do-strip {
  display: none;
}
html:is([data-bd='call'], [data-bd='solo'])[data-bd-tab='timer'] #do-view-root .do-shell {
  display: none;
}
/* Calendar: the route's own day calendar (bd_calendar_pane.js), the call's
   stage out of the way over it. `!important` beats `.do-strip[hidden]`,
   which the route sets while its session pane (the call) is open. */
html:is([data-bd='call'], [data-bd='solo'])[data-bd-tab='calendar'] #do-view-root .do-strip {
  display: block !important;
}
html:is([data-bd='call'], [data-bd='solo'])[data-bd-tab='calendar'] #do-view-root .do-session {
  display: none !important;
}
.bd-pane {
  display: none;
}
html:is([data-bd='call'], [data-bd='solo'])[data-bd-tab='timer'] .bd-pane--timer {
  display: block;
}
.bd-pane {
  height: 100%;
  min-height: calc(100vh - 140px);
  padding: 16px;
  box-sizing: border-box;
  overflow: auto;
}

/* ── The lobby ─────────────────────────────────────────────────────────── */
.bd-lobby {
  display: none;
}
html[data-bd='lobby'] .bd-lobby {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  padding: 16px;
  box-sizing: border-box;
}
.bd-lobby-card {
  width: min(440px, 100%);
  padding: 36px 32px 28px;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  background: var(--card-surface, var(--bg-elevated));
  box-shadow: var(--shadow);
  text-align: center;
}
.bd-lobby-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.bd-lobby-group {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.25;
  color: var(--text-primary);
}
.bd-lobby-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--text-secondary);
}
.bd-lobby-count[hidden] { display: none; }
.bd-lobby-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9ca3af;
}
.bd-lobby[data-live='true'] .bd-lobby-dot {
  background: #16a34a;
  box-shadow: 0 0 8px 2px rgba(22, 163, 74, 0.7);
}
.bd-lobby-join {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border: 0;
  border-radius: 14px;
  background: #16a34a;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.bd-lobby-join:hover { background: #15803d; }
.bd-lobby-join:disabled { opacity: 0.7; cursor: progress; }
.bd-lobby-join:focus-visible { outline: 3px solid rgba(22, 163, 74, 0.5); outline-offset: 3px; }
.bd-lobby-join[hidden] { display: none; }
.bd-lobby-note,
.bd-lobby-error {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.bd-lobby-error { color: #dc2626; }
.bd-lobby-note[hidden],
.bd-lobby-error[hidden] { display: none; }

@media (max-width: 720px) {
  .bd-tab-word { display: none; }
  .bd-tab { padding: 0 12px; }
  html:is([data-bd='call'], [data-bd='solo']) .bd-clock-left { font-size: 20px; }
  html:is([data-bd='call'], [data-bd='solo']) .bd-clock { gap: 9px; padding: 0 12px 0 14px; }
}
/* Room runs short (narrower window, the chat open beside it): the tabs
   tighten, and only then do they go to icons. */
@media (max-width: 1440px) {
  html[data-bd='call']:has(#cowork-chat-panel:not(.chat-panel-hidden)) .bd-tab { padding: 0 13px; }
}
@media (max-width: 1240px) {
  html[data-bd='call']:has(#cowork-chat-panel:not(.chat-panel-hidden)) .bd-tab-word { display: none; }
}
@media (max-width: 960px) {
  html:is([data-bd='call'], [data-bd='solo']) .bd-tab-word { display: none; }
  html:is([data-bd='call'], [data-bd='solo']) .bd-tab { padding: 0 12px; }
}
/* Too narrow for even the icons beside the clock: the four go back under
   More, as on the link. */
@media (max-width: 560px) {
  html[data-bd='call'] .bd-tabs { display: none; }
  html[data-bd='call'] .bd-more { display: inline-flex; position: relative; }
}

/* ── The refusal line (bd_toast.js) ────────────────────────────────────── */
.bd-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 2000;
  transform: translateX(-50%);
  max-width: min(560px, calc(100vw - 32px));
  padding: 10px 16px;
  border-radius: 12px;
  background: #1f2937;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.bd-toast[hidden] { display: none; }

/* The Calendar's side (Views row, session chips, popover, My calendars row)
   lives in body-doubling-calendar.css. */

/* ── A session about to start (bd_session_soon.js) ─────────────────────── */
.bd-soon {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 2001;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(620px, calc(100vw - 32px));
  padding: 8px 8px 8px 14px;
  border-radius: 14px;
  background: #1f2937;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: var(--shadow);
  animation: bd-soon-in 0.25s ease-out;
}
.bd-soon[hidden] { display: none; }
.bd-soon-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c026d3 0%, #7c3aed 100%);
  box-shadow: 0 0 0 3px rgba(192, 38, 211, 0.3);
}
.bd-soon-text { flex: 1 1 auto; min-width: 0; }
.bd-soon-join {
  flex: none;
  border: 0;
  border-radius: 10px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #c026d3 0%, #7c3aed 100%);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.bd-soon-join:hover { filter: brightness(1.08); }
.bd-soon-close {
  flex: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
}
.bd-soon-close:hover { color: #fff; }
@keyframes bd-soon-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) { .bd-soon { animation: none; } }
