/* Tab bar on every app (Nov 20 2026).
   - workstation-front-top.js puts the header (View Config, ANVIL KRAFT / STUDIO, the app
     tabs) at the top of every app and colors it to match the app that is open.
   - transport-pin.js pins the one transport in Tape Recall too, and parks it out of sight
     on the other apps.
   - Support the Creator is a DONATE key next to SAVE PROGRESS. */

/* Session bar: the DONATE key. */
#sampkai-progress-dock button.donate { border-color: #f0a9a0; background: linear-gradient(#f2b1a6, #c25048); color: #2a0806; }
#sampkai-progress-dock button.donate span { color: #7a0d12; }
@media (max-width: 679px) and (hover: none) and (pointer: coarse) {
  html:not(.ws-fit) #sampkai-progress-dock .progress-actions:has(> .donate) { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
}
/* Narrow phones: the key is just the heart, so SAVE PROGRESS and RESUME SAVED keep their room. */
@media (max-width: 559px) {
  :root #sampkai-progress-dock button.donate.donate { flex: 0 0 auto !important; min-width: 40px !important; padding-left: 10px !important; padding-right: 10px !important; font-size: 0 !important; letter-spacing: 0 !important; }
  #sampkai-progress-dock button.donate span { font-size: 15px; line-height: 1; }
  html.ws-phone #sampkai-progress-dock .progress-actions { gap: 6px !important; }
  html.ws-phone #sampkai-progress-dock button:not(.donate) { padding-left: 6px !important; padding-right: 6px !important; }
}

/* The old Support the Creator bars (top and page bottom) are replaced by the DONATE key. */
body.heritage-ui #root .anvil-support-bar, body.heritage-ui #anvil-bottom-support { display: none !important; }

/* The Workstation-only pieces never show on the other apps (Lessons and Record Store share
   the board's frame, so they used to show the "ONE TRANSPORT" note and the hardware strip). */
body:not([data-anvil-tab="workstation"]):not([data-anvil-tab="forge"]) .wsf.wsf-note,
body:not([data-anvil-tab="workstation"]):not([data-anvil-tab="forge"]) .wsf.wsf-hw,
body:is([data-anvil-tab="lessons"], [data-anvil-tab="store"]) .anvil-midi-panel { display: none !important; }

/* Lessons and Record Store: full width, lined up with the header above them, instead of a
   narrow column in the middle of the page. (Pocket Lab's USB MIDI strip under the app too.) */
body.heritage-ui:is([data-anvil-tab="lessons"], [data-anvil-tab="store"], [data-anvil-tab="pocketlab"]) #root#root .anvil-studio-board-shell {
  width: var(--wsf-head-w, min(1500px, calc(100% - 24px))) !important;
  max-width: 100% !important;
  transform: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Tape Recall: the pinned transport is drawn at its normal size on phones. */
html.ws-phone .heritage-ui #root#root .anvil-transport-dock .ws-transport { zoom: 1 !important; }
body[data-anvil-tab="tape"] .anvil-transport-dock + .ak-tape-workspace { margin-top: 0; }
