/**
 * vantage-workbench.css — the side-by-side pane, and what "embedded" means.
 *
 * Paired with vantage-workbench.js. Both the proposal builder and the design
 * tool use this: whichever page you are on can host the other, so the chrome is
 * defined once rather than twice.
 */

/* ── The pane ─────────────────────────────────────────────────────────────────
   Floating, movable and resizable — not pinned to an edge. A pane you cannot
   move is worse than the panel it replaced. */
.vwb-pane {
  position: fixed;
  top: var(--vwb-top, 96px);
  left: var(--vwb-left, auto);
  right: var(--vwb-right, 16px);
  /* 900px is the narrowest pane in which the builder's line table (820px rows
     plus gutters) shows whole, without a horizontal scroll (Nate, 2026-09-04). */
  width: var(--vwb-w, 900px);
  height: var(--vwb-h, calc(100vh - 128px));
  min-width: 380px;
  max-width: 96vw;
  z-index: 2400;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-mid);
  border: 1px solid rgba(var(--gold-dim-rgb), 0.38);
  border-radius: 10px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(var(--gold-rgb), 0.08);
}
.vwb-pane.open { display: flex; }

.vwb-head {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 8px 10px 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(var(--gold-dim-rgb), 0.25);
  cursor: grab; user-select: none;
  touch-action: none;   /* the header owns the gesture, not the page scroller */
}
.vwb-head:active { cursor: grabbing; }
.vwb-title { font-size: 12px; color: var(--gold-light); white-space: nowrap; }
.vwb-context {
  flex: 1; min-width: 0; font-size: 11px;
  color: var(--gold-dim-text, var(--gold-dim));
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.vwb-body { flex: 1; min-height: 0; position: relative; }
.vwb-body iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--bg); }

.vwb-note {
  padding: 28px 16px; text-align: center;
  color: var(--gold-dim-text, var(--gold-dim)); font-size: 12px;
}
.vwb-note-actions { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }

.vwb-resize {
  position: absolute; top: 0; left: -3px; width: 8px; height: 100%;
  cursor: col-resize; z-index: 2; background: transparent;
  touch-action: none;
}
.vwb-resize:hover, .vwb-resize.dragging { background: rgba(var(--gold-rgb), 0.3); }

/* ── Embedded (?embed=1) ──────────────────────────────────────────────────────
   A page inside a pane gets no APP shell at all: vantage-sidebar.js mounts
   nothing when it sees ?embed=1 — no rail, no utility bar, no collapse toggle,
   no VANCE — because the host already has those and a second copy is only lost
   width. Hiding them with CSS was tried and left the collapse toggle floating
   beside a rail that was not there (Nate, 2026-09-04).

   What is left to do here is reclaim the space the shell reserves: --v-appbar-h
   and --sb-w drive page offsets and sticky heights throughout the per-page
   stylesheets. Skip that and the layout sits 120px down the page, behind chrome
   that is not there. */
body.is-embedded.v-app-shell {
  padding-top: 0 !important;
  --v-appbar-h: 0px;
  --sb-w: 0px;
  --sb-cw: 0px;
}
