/* ═══ flow.css — capitol's half of the beat flow ═══
   Claude's BeatFlow (gfx/beat.js + beat.css) owns the track: the telex
   brief, the room, the decision, the swipe rail, the pinned chips, the nav.
   This file is everything AROUND it: flow-mode layout and the mount. The
   docs row is capitol's own .docnav — it stays put under the flow. */

body:has(#game.flow-mode) { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body:has(#game.flow-mode) .topbar { flex: 0 0 auto; }
#game.flow-mode { flex: 1; min-height: 0; height: auto; display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }

/* In flow mode BeatFlow's chips are the status: the binder and its panes
   step aside; the docs row stays for the paper trail. */
#game.flow-mode #binder { display: none; }
#game.flow-mode .bpane { display: none; }
#game.flow-mode .docnav { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }

/* The mount: the flow fills everything between the topbar and the docs. */
#flow { display: flex; flex-direction: column; flex: 1; min-height: 0; margin-top: 8px; }
#flow-mount { flex: 1; min-height: 0; border-radius: 6px 6px 0 0; overflow: hidden; }
#flow-mount .bf { min-height: 0; } /* his 560px floor would clip short phones */

/* Pane headings the app injects into BeatFlow's slots. */
.bf-kicker { font: 800 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold, #b8963e); margin: 8px 2px 12px; }
.bf-kicker b { color: var(--paper, #eef1f5); }
.bf-decide-head { margin-bottom: 12px; }

/* Five ledgers, one row: his chips were sized for three — slim them to fit,
   and give the row air above and below so it never feels welded on. */
.bf-chip { gap: 4px; padding: 4px 6px; }
.bf-chip svg { width: 15px; height: 15px; }
.bf-chip .lbl { font-size: 7px; letter-spacing: .08em; }
.bf-chip .val { font-size: 13.5px; }
.bf-chips { gap: 4px; padding: 11px 8px 11px; }

/* Content: a little daylight under the chips and above the switchers. */
.bf-slot { padding-top: 12px; }
.bf-brief { padding-top: 9px; }

/* The switchers: lifted off the bottom edge, roomier top and bottom. */
.bf-nav { padding-top: 15px; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }

/* The room: Claude's adviser cards carry the meeting — the speaking ring and
   the play button ride the existing .adv-line/.adv-face/.adv-play contract. */
.bf-adv .adv-play { margin: 10px 0 0; }
.bf-slot .plain-chip, .bf-slot .intel, .bf-slot .personal { margin-bottom: 14px; }

/* The stills overlay: the era-open newsreel, body level (the stacking lesson). */
#stills-layer { position: fixed; inset: 0; z-index: 55; pointer-events: none; opacity: 1; transition: opacity .8s ease; }
#stills-layer.fade { opacity: 0; }
