/* #run Side by side: where each shot's window sits (app px in a 700 x 438 canvas, or 380 x 475 on
   phones) and the parts the rows add. The look of a shot lives in features.css. */

/* 1 the window: the window enters from the top left, the eye lands on orbit-api's tabs */
#run-window .shot-win { --x: 72px; --y: 62px; --w: 1000px; --h: 620px; }
.shot[data-shot='window'] .shot-light { --lx: 36%; --ly: 30%; }
.sm > #run-window .shot-win { --x: 16px; --y: 44px; }

/* 2 seven states: three tiles in a row, the tab strip on the optical centre */
#run-states .shot-win { --x: 38px; --y: 34px; --w: 760px; --h: 560px; }
.shot[data-shot='states'] .shot-light { --lx: 50%; --ly: 34%; }
.sm > #run-states .shot-win { --x: 16px; --y: 40px; }

/* 3 the card behind the i: the card lifts off the lead tab, the tile behind it */
#run-card .shot-win { --x: -40px; --y: 44px; --w: 1000px; --h: 620px; }
#run-card .run-card { left: 196px; top: 92px; }
.shot[data-shot='card'] .shot-light { --lx: 46%; --ly: 52%; }
.sm > #run-card .shot-win { --x: -40px; --y: 30px; }
.sm > #run-card .run-card { left: 36px; top: 78px; }

/* 4 find anything: the palette over a dimmed window */
#run-palette .shot-win { --x: 48px; --y: 34px; --w: 1000px; --h: 620px; }
#run-palette .run-pal { left: 110px; top: 62px; width: 480px; }
.shot[data-shot='palette'] .shot-light { --lx: 50%; --ly: 38%; }
.sm > #run-palette .run-pal { left: 20px; top: 70px; width: 340px; }

/* 5 Broadcast: the dialog on the right, the tabs it changes on the left */
#run-broadcast .shot-win { --x: -16px; --y: 30px; --w: 1000px; --h: 620px; }
#run-broadcast .run-bc { left: 300px; top: 22px; width: 360px; }
.shot[data-shot='broadcast'] .shot-light { --lx: 64%; --ly: 46%; }
.sm > #run-broadcast .run-bc { left: 22px; top: 40px; width: 336px; }

/* 6 the everyday controls: the card's footer and the tab it acts on */
#run-controls .shot-win { --x: -24px; --y: -12px; --w: 1000px; --h: 620px; }
#run-controls .run-card { left: 160px; top: 60px; }
.shot[data-shot='controls'] .shot-light { --lx: 42%; --ly: 64%; }
.sm > #run-controls .shot-win { --x: -36px; --y: -6px; }
.sm > #run-controls .run-card { left: 30px; top: 80px; }

/* the card behind the i (pui-card) as the app draws it */
.run-card .run-note { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 2px 0 14px; }
.run-card .run-note .pui-field { min-height: 32px; display: flex; align-items: center; }
.run-card .run-note .pui-btn { min-height: 32px; }
.run-card .ft span { transition: color 200ms var(--ease), border-color 200ms var(--ease), background-color 200ms var(--ease); }
.run-card .ft span.on { color: var(--fg); border-color: rgba(255, 255, 255, 0.28); background: var(--sel); }
.run-card .ft span.press { transform: scale(0.96); }
.run-ctx { width: 33%; }
#run-card [data-info].on, #run-controls [data-info].on { color: var(--fg); border-color: var(--fg-3); }

/* the shell tab's terminal in shot 1 */
#run-window .caret { animation: none; }

/* the palette */
.run-pal .pi { transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.run-pal .pq { gap: 1px; }
.run-pal .pui-kbd.press { color: var(--fg); border-color: var(--fg-3); }

/* Broadcast, with the app's grouped boxes */
.run-bc .dh { padding: 14px 18px 2px; }
.run-bc .db { display: flex; flex-direction: column; gap: 9px; padding: 8px 18px 14px; }
.run-grp { margin: 0; padding: 3px 12px 5px; border: 1px solid var(--line-2); border-radius: 7px; min-width: 0; }
.run-grp legend { padding: 0 6px; margin-left: -4px; font-size: 12px; color: var(--fg-3); }
.run-row { display: flex; align-items: center; gap: 10px; height: 26px; font-size: 13px; color: var(--fg); }
.run-row .ic { width: 13px; height: 13px; }
.run-lbl { font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.run-msg { min-height: 46px; }
.run-acts { display: flex; justify-content: flex-end; gap: 8px; }

/* a tile the palette opened takes the focus ring */
.pui-tile.run-focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--st) 55%, transparent), inset 0 1px 0 var(--hi), var(--tile-shadow); }
