/* WebLab Band Room, Beta 0.1 */
.br-hero { padding: calc(112px + var(--safe-t) + var(--top-push)) 0 18px; }
.br-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
@media (max-width: 760px) {
  .br-hero { text-align: center; }
  .br-hero .wrap { display: flex; flex-direction: column; align-items: center; }
  .br-hero .eyebrow { justify-content: center; }
  .br-hero h1, .br-hero .lede { margin-inline: auto; text-align: center; }
}
.br-section { padding: 0 0 40px; }
@media (min-width: 761px) { .br-section .wrap { max-width: 1320px; } }
html.pg-band, html.pg-band body { overscroll-behavior-x: none; }

.br { --ink: #e9eeff; --mut: rgba(233,238,255,.6); --line: rgba(255,255,255,.12); --pulse: 0; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 26px; color: var(--ink);
  background: radial-gradient(120% 80% at 0% 0%, rgba(69,230,255,.08), transparent 60%), radial-gradient(100% 80% at 100% 100%, rgba(255,111,181,.08), transparent 60%), linear-gradient(180deg, #0d1222, #070a14);
  border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.1); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.br, .br * { -webkit-tap-highlight-color: transparent; }
.br-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); touch-action: manipulation; }
.br-btn { all: unset; box-sizing: border-box; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; font: 650 .8rem/1 var(--font); color: var(--ink); cursor: pointer; white-space: nowrap; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); touch-action: manipulation; transition: background .12s, transform .1s, box-shadow .15s; }
.br-btn:active { transform: scale(.96); background: rgba(255,255,255,.15); }
.br-btn:focus-visible, .br-cell:focus-visible, .br-scene:focus-visible, .br-fxp:focus-visible, .br-m:focus-visible, .br-s:focus-visible { outline: 2px solid #45e6ff; outline-offset: 2px; }
.br-btn svg { width: 17px; height: 17px; flex: none; }
.br-btn:disabled { opacity: .4; cursor: default; }
.br-ico { width: 38px; padding: 0; font-size: 1.15rem; }
.br-grp { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.br-val { display: inline-grid; justify-items: center; min-width: 54px; line-height: 1; font-variant-numeric: tabular-nums; }
.br-val b { font: 800 .98rem/1 var(--font); } .br-val small { font: 650 .54rem/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); margin-top: 3px; }
.br-exit, .br-refresh { display: none; }
.br-refresh { width: 40px; padding: 0; } .br-refresh.spin svg { animation: brSpin .6s linear infinite; } @keyframes brSpin { to { transform: rotate(360deg); } }
.br-play { width: 54px; min-height: 44px; padding: 0; color: #04110c; background: linear-gradient(180deg, #6ff7c0, #2fd69a); border-color: rgba(120,255,200,.7); box-shadow: 0 0 18px -4px rgba(60,240,170,.7); }
.br-play svg { width: 20px; height: 20px; } .br-play .i-stop { display: none; }
.br-play.on { color: #fff; background: linear-gradient(180deg, #ff6f8f, #e0355e); border-color: rgba(255,150,170,.7); box-shadow: 0 0 calc(10px + 18px * var(--pulse)) rgba(255,80,120,.75); }
.br-play.on .i-play { display: none; } .br-play.on .i-stop { display: block; }
.br-pack { width: 236px; justify-content: flex-start; gap: 10px; padding: 0 10px 0 8px; min-height: 44px; border-radius: 16px; }
.br-pk-e { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.09); font-size: 1rem; flex: none; }
.br-pk-n { display: grid; min-width: 0; flex: 1; text-align: left; }
.br-pk-n b, .br-pk-n small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-pk-n b { font: 750 .84rem/1.15 var(--font); } .br-pk-n small { font: 550 .62rem/1.25 var(--font); color: var(--mut); }
.br-ch { width: 15px !important; height: 15px !important; opacity: .7; }
.br-tap { min-width: 48px; } .br-tap.hit { animation: brHit .25s ease-out; } @keyframes brHit { from { background: rgba(69,230,255,.5); } }
.br-swing { flex-direction: column; gap: 2px; min-width: 62px; padding: 0 10px; } .br-swing small { font: 650 .52rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); } .br-swing b { font: 800 .86rem/1 var(--font); }
.br-dice span:first-child { font-size: 1.05rem; }
.br-viz { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 4px; flex: none; }
.br-viz canvas { width: 48px; height: 20px; display: block; }
.br-beats { display: inline-flex; gap: 4px; } .br-beats i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.14); transition: background .06s, box-shadow .06s; }
.br-beats i.on { background: #45e6ff; box-shadow: 0 0 8px #45e6ff; } .br-beats i.on:first-child { background: #ff6fb5; box-shadow: 0 0 8px #ff6fb5; }
.br-beta { font: 700 .54rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 3px 6px; border-radius: 999px; color: #ffd48a; border: 1px solid rgba(255,196,110,.35); flex: none; margin-left: auto; }

/* popovers */
.br-pop { position: absolute; z-index: 30; width: min(340px, calc(100% - 16px)); max-height: min(60vh, 420px); overflow: auto; padding: 8px; border-radius: 20px; background: rgba(16,20,36,.97); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 24px 60px rgba(0,0,0,.7); animation: brPop .16s ease-out; overscroll-behavior: contain; }
.br-pop[hidden] { display: none; }
@keyframes brPop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.br-opt { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 10px; border-radius: 14px; cursor: pointer; color: var(--ink); }
.br-opt + .br-opt { margin-top: 2px; } .br-opt:active { background: rgba(255,255,255,.08); }
.br-opt[aria-selected="true"] { background: linear-gradient(90deg, rgba(69,230,255,.2), rgba(255,111,181,.08)); box-shadow: inset 0 0 0 1px rgba(69,230,255,.4); }
.br-oe { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.08); font-size: 1.1rem; flex: none; }
.br-opt b { display: block; font: 750 .88rem/1.2 var(--font); } .br-opt small { display: block; font: 500 .66rem/1.3 var(--font); color: var(--mut); }
.br-pl { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 4px 6px 8px; font: 750 .72rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.br-pl b { color: #45e6ff; letter-spacing: 0; font-size: .9rem; } .br-pl small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.br-swingpop { width: 280px; } .br-swingpop input { width: 100%; accent-color: #45e6ff; height: 30px; touch-action: pan-x; }
.br-pnote { margin: 4px 6px 4px; font-size: .72rem; line-height: 1.4; color: var(--mut); }
.br-slots { display: grid; gap: 6px; }
.br-slot { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.br-sn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 .75rem/1 var(--font); background: rgba(69,230,255,.18); color: #bff6ff; flex: none; }
.br-si { flex: 1; min-width: 0; display: grid; } .br-si b { font: 700 .78rem/1.2 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .br-si b.empty { color: var(--mut); } .br-si small { font-size: .64rem; color: var(--mut); }
.br-slot .br-btn { min-height: 34px; padding: 0 10px; font-size: .72rem; }
.br-sv { background: rgba(69,230,255,.14); border-color: rgba(69,230,255,.4); }

.br-rotate { display: none; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 16px; font-size: .84rem; line-height: 1.3; background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); border: 1px solid var(--line); }
.br-phone { width: 24px; height: 24px; flex: none; color: #45e6ff; animation: brRot 3.2s ease-in-out infinite; }
@keyframes brRot { 0%,25% { transform: rotate(0); } 55%,85% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
@media (pointer: coarse) and (orientation: portrait) { .br-rotate { display: flex; } }

/* main: grid + FX */
.br-main { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 10px; min-height: 0; }
.br-gridwrap { min-width: 0; overflow-x: auto; overflow-y: hidden; border-radius: 18px; scrollbar-width: thin; scrollbar-color: rgba(69,230,255,.4) transparent; overscroll-behavior-x: contain; }
.br-grid { --tw: 178px; --cw: 104px; --rh: 62px; display: grid; grid-template-columns: var(--tw) repeat(6, minmax(var(--cw), 1fr)); grid-template-rows: 44px; grid-auto-rows: var(--rh); gap: 6px; min-width: max-content; }
.br-row { display: contents; }
.br-corner, .br-trk { position: sticky; left: 0; z-index: 3; background: #0b0f1d; }
.br-corner { display: flex; align-items: stretch; box-shadow: 8px 0 12px -8px rgba(0,0,0,.9); }
.br-stopall { all: unset; box-sizing: border-box; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; cursor: pointer; font: 700 .72rem/1 var(--font); color: #ffb4c4; background: rgba(255,80,120,.1); border: 1px solid rgba(255,110,140,.35); }
.br-stopall svg { width: 13px; height: 13px; }
.br-scene { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; cursor: pointer; color: var(--ink); background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.14); transition: transform .1s, background .15s; }
.br-scene b { font: 750 .76rem/1 var(--font); } .br-scene small { font: 700 .56rem/1 var(--font); color: var(--mut); padding: 2px 5px; border-radius: 6px; background: rgba(255,255,255,.08); }
.br-scene:active { transform: scale(.96); } .br-scene.on { background: linear-gradient(180deg, rgba(69,230,255,.32), rgba(181,107,255,.2)); border-color: rgba(69,230,255,.6); }
.br-trk { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 8px; row-gap: 4px; padding: 6px 8px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); border-left: 3px solid var(--c); box-shadow: 8px 0 12px -8px rgba(0,0,0,.9); box-sizing: border-box; }
.br-ti { grid-row: 1 / 3; font-size: 1.2rem; }
.br-tn { display: grid; min-width: 0; } .br-tn b { font: 750 .78rem/1.15 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .br-tv { font: 550 .6rem/1.2 var(--font); color: var(--c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-tc { display: flex; align-items: center; gap: 4px; min-width: 0; }
.br-m, .br-s { all: unset; box-sizing: border-box; width: 26px; height: 22px; display: grid; place-items: center; border-radius: 7px; cursor: pointer; font: 800 .62rem/1 var(--font); color: var(--mut); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); flex: none; }
.br-m[aria-pressed="true"] { color: #1a0d00; background: #ffb347; border-color: #ffb347; } .br-s[aria-pressed="true"] { color: #00161a; background: #45e6ff; border-color: #45e6ff; }
.br-vol { -webkit-appearance: none; appearance: none; flex: 1; min-width: 30px; height: 22px; background: transparent; touch-action: pan-x; cursor: pointer; }
.br-vol::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--c), rgba(255,255,255,.15)); }
.br-vol::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--c), rgba(255,255,255,.15)); }
.br-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.6); }
.br-vol::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.br-row.dim .br-cell { opacity: .38; } .br-row.dim .br-trk { opacity: .7; }

.br-cell { all: unset; box-sizing: border-box; position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 8px 9px; border-radius: 14px; cursor: pointer; overflow: hidden; color: var(--ink); isolation: isolate;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, transparent), rgba(255,255,255,.03)); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); transition: transform .1s, background .15s, box-shadow .15s; touch-action: manipulation; }
@supports not (background: color-mix(in srgb, red 10%, blue)) { .br-cell { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); } }
.br-cell:active { transform: scale(.95); }
.br-cn { position: relative; z-index: 2; font: 700 .72rem/1.15 var(--font); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.br-cb { position: relative; z-index: 2; font: 600 .52rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.br-ring { position: absolute; inset: 0; border-radius: inherit; padding: 3px; z-index: 1; opacity: 0; background: conic-gradient(from 0deg, var(--c) calc(var(--p, 0) * 1turn), rgba(255,255,255,.1) 0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.br-cell.on { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, #fff 0%), color-mix(in srgb, var(--c) 38%, #0b0f1d)); border-color: var(--c); box-shadow: 0 0 calc(6px + 16px * var(--pulse)) color-mix(in srgb, var(--c) 70%, transparent); color: #06070d; }
.br-cell.on .br-cb { color: rgba(6,7,13,.6); }
.br-cell.on .br-ring, .br-cell.stopq .br-ring, .br-cell.leave .br-ring { opacity: 1; }
.br-cell.on .br-ring { background: conic-gradient(from 0deg, #fff calc(var(--p, 0) * 1turn), rgba(0,0,0,.18) 0); }
.br-cell.armed { box-shadow: inset 0 0 0 2px var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, transparent), rgba(255,255,255,.03)); }
.br-cell.cue { animation: brCue .5s ease-in-out infinite alternate; box-shadow: inset 0 0 0 2px var(--c), 0 0 14px color-mix(in srgb, var(--c) 60%, transparent); }
@keyframes brCue { to { background: color-mix(in srgb, var(--c) 42%, transparent); } }
.br-cell.stopq, .br-cell.leave { animation: brStopq .4s steps(2) infinite; }
@keyframes brStopq { 50% { filter: brightness(.6); } }

/* FX pads */
.br-fx { display: grid; grid-template-rows: repeat(4, 1fr); gap: 8px; }
.br-fxp { all: unset; box-sizing: border-box; position: relative; display: grid; align-content: center; justify-items: center; gap: 2px; min-height: 70px; padding: 8px; border-radius: 18px; cursor: pointer; touch-action: none; text-align: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.12), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 14px -8px rgba(0,0,0,.8); transition: transform .08s, box-shadow .15s, background .15s; }
.br-fxp b { font: 800 .82rem/1 var(--font); } .br-fxp small { font: 600 .58rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.br-fxp i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); margin-bottom: 4px; }
.br-fxp[data-fx="filter"] { --fc: #45e6ff; } .br-fxp[data-fx="echo"] { --fc: #b67cff; } .br-fxp[data-fx="verb"] { --fc: #5cf2a0; } .br-fxp[data-fx="repeat"] { --fc: #ff6fb5; }
.br-fxp.on { transform: scale(.97); background: radial-gradient(120% 90% at 50% 30%, color-mix(in srgb, var(--fc) 55%, transparent), color-mix(in srgb, var(--fc) 12%, transparent)); border-color: var(--fc); box-shadow: 0 0 24px color-mix(in srgb, var(--fc) 60%, transparent), inset 0 0 18px rgba(255,255,255,.15); }
.br-fxp.on i { background: var(--fc); box-shadow: 0 0 10px var(--fc); }
.br-toast { position: absolute; z-index: 40; left: 50%; top: 64px; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; font: 700 .78rem/1 var(--font); white-space: nowrap; color: #04060d; background: linear-gradient(90deg, #45e6ff, #b56bff); box-shadow: 0 10px 30px rgba(0,0,0,.5); pointer-events: none; }
.br-toast.in { animation: brToast 1.5s ease forwards; } @keyframes brToast { 0% { opacity: 0; transform: translate(-50%, -6px); } 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.br-toast[hidden] { display: none; }
.br-hint { margin: 0; font-size: .74rem; line-height: 1.45; color: var(--mut); text-align: center; }
.br-kb { display: none; } @media (hover: hover) and (pointer: fine) { .br-kb { display: inline; } }

/* ---------- portrait / small screens ---------- */
@media (max-width: 760px) {
  .br { padding: 8px; border-radius: 22px; gap: 8px; }
  .br-top { gap: 6px; padding: 6px; justify-content: stretch; }
  .br-beta, .br-lbl { display: none; }
  .br-play { order: 1; } .br-pack { order: 2; flex: 1 1 0; width: auto; min-width: 0; } .br-fs { order: 3; width: 44px; padding: 0; }
  .br-tempo { order: 4; flex: 1 1 auto; justify-content: space-between; } .br-key { order: 5; flex: 1 1 auto; justify-content: space-between; }
  .br-swing { order: 6; flex: 1 1 0; } .br-dice { order: 7; flex: 1 1 0; } .br-clear { order: 8; flex: 1 1 0; } .br-jams { order: 9; flex: 1 1 0; } .br-viz { order: 10; } .br-refresh { order: 11; display: inline-flex; flex: 1 1 0; }
  .br-tempo .br-val, .br-key .br-val { flex: 1; }
  .br-main { grid-template-columns: 1fr; }
  .br-fx { grid-template-rows: none; grid-template-columns: repeat(4, 1fr); }
  .br-fxp { min-height: 64px; }
  .br-grid { --tw: 112px; --cw: 86px; --rh: 66px; }
  .br-trk { grid-template-columns: auto minmax(0, 1fr); padding: 5px 6px; column-gap: 5px; }
  .br-ti { grid-row: 1; font-size: 1rem; } .br-tc { grid-column: 1 / 3; } .br-vol { display: none; }
  .br-tn b { font-size: .7rem; }
  .br-scene { flex-direction: column; gap: 3px; } .br-scene small { display: none; }
  .br-stopall span { display: none; }
}
@media (orientation: landscape) { .br-refresh { display: none !important; } }

/* ---------- full screen: auto in phone landscape, or the Full screen button ---------- */
html.br-full, html.br-full body { overflow: hidden !important; overscroll-behavior: none; }
html.br-full .topbar, html.br-full .gnav, html.br-full .footer, html.br-full .br-hero, html.br-full .wxs, html.br-full .wxs-back, html.br-full .skip, html.br-full .edge-swipe { display: none !important; }
html.br-full .br-section, html.br-full .br-wrap { padding: 0 !important; margin: 0 !important; max-width: none !important; }
html.br-full .br { position: fixed; inset: 0; z-index: 400; width: 100vw; width: 100dvw; height: 100vh; height: 100dvh; border-radius: 0; border: 0; box-sizing: border-box; gap: 6px;
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); background: linear-gradient(180deg, #0d1222, #070a14); }
html.br-full .br-top { flex: none; flex-wrap: nowrap; overflow: hidden; gap: 6px; padding: 4px 6px; border-radius: 16px; -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(180deg, #19203a, #11172a); }
html.br-full .br-top > *, html.br-full .br-top .br-grp > * { flex-shrink: 0; }
html.br-full .br-exit { display: inline-flex; width: 40px; padding: 0; } html.br-full .br-exit span { display: none; }
html.br-full .br-fs { order: 0; } html.br-full .br-fs .br-lbl { display: none; } html.br-full .br-fs { width: 40px; padding: 0; }
html.br-full .br-rotate, html.br-full .br-hint, html.br-full .br-beta, html.br-full .a2-btn { display: none !important; }
html.br-full .br-lbl { display: none; }
html.br-full .br-pack { width: 200px; min-height: 40px; }
html.br-full .br-play { min-height: 40px; width: 50px; }
html.br-full .br-main { flex: 1 1 auto; min-height: 0; grid-template-columns: minmax(0, 1fr) 96px; gap: 6px; }
html.br-full .br-gridwrap { overflow: hidden; height: 100%; border-radius: 12px; }
html.br-full .br-grid { --tw: 150px; --cw: 0px; height: 100%; min-width: 0; grid-template-columns: var(--tw) repeat(6, minmax(0, 1fr)); grid-template-rows: 32px repeat(6, minmax(0, 1fr)); grid-auto-rows: auto; gap: 4px; }
html.br-full .br-cell { padding: 4px 7px; border-radius: 10px; justify-content: center; }
html.br-full .br-cn { font-size: .66rem; -webkit-line-clamp: 1; } html.br-full .br-cb { display: none; }
html.br-full .br-trk { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: 1fr; padding: 2px 6px; border-radius: 10px; row-gap: 0; }
html.br-full .br-ti { grid-row: 1; font-size: .95rem; } html.br-full .br-tn b { font-size: .68rem; } html.br-full .br-tv { font-size: .56rem; }
html.br-full .br-tc { grid-column: 3; } html.br-full .br-vol { display: none; }
html.br-full .br-m, html.br-full .br-s { width: 24px; height: 24px; }
html.br-full .br-scene { flex-direction: row; } html.br-full .br-scene small { display: none; }
html.br-full .br-stopall span { display: none; }
html.br-full .br-fx { grid-template-rows: repeat(4, minmax(0, 1fr)); grid-template-columns: none; gap: 6px; }
html.br-full .br-fxp { min-height: 0; border-radius: 14px; padding: 4px; } html.br-full .br-fxp small { display: none; } html.br-full .br-fxp i { margin-bottom: 2px; }
html.br-full .br-toast { top: calc(max(10px, env(safe-area-inset-top)) + 54px); }
/* step-down tiers set by fitTop() so nothing ever collapses */
html.br-full .br-top.t1 .br-viz canvas { display: none; }
html.br-full .br-top.t2 .br-tap { display: none; } html.br-full .br-top.t2 .br-pack { width: 168px; }
html.br-full .br-top.t3 .br-swing { min-width: 52px; padding: 0 8px; } html.br-full .br-top.t3 .br-ico { width: 34px; } html.br-full .br-top.t3 .br-val { min-width: 44px; } html.br-full .br-top.t3 .br-pack { width: 140px; } html.br-full .br-top.t3 .br-pk-n small { display: none; }
html.br-full .br-top.t4 { overflow-x: auto; scrollbar-width: none; } html.br-full .br-top.t4::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { html.br-full .br-grid { --tw: 128px; } html.br-full .br-ti { display: none; } }
@media (max-height: 400px) { html.br-full .br-grid { grid-template-rows: 28px repeat(6, minmax(0, 1fr)); } html.br-full .br-trk .br-tv { display: none; } }
/* desktop full screen (button) gets roomier rows */
@media (min-height: 600px) { html.br-full .br-cn { font-size: .78rem; -webkit-line-clamp: 2; } html.br-full .br-cb { display: block; } html.br-full .br-grid { --tw: 190px; grid-template-rows: 44px repeat(6, minmax(0, 1fr)); gap: 6px; } html.br-full .br-vol { display: block; } html.br-full .br-ti { display: grid; } html.br-full .br-main { grid-template-columns: minmax(0, 1fr) 128px; } html.br-full .br-fxp small { display: block; } }
/* iPhone Home Screen: no blur behind the status bar */
html.standalone.pg-band .topbar { background: var(--bg); }
html.standalone.pg-band .topbar::before { opacity: 1; background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; filter: none; }
html.standalone.pg-band .br-top { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(180deg, #19203a, #11172a); }
@media (prefers-reduced-motion: reduce) { .br-cell.cue, .br-cell.stopq, .br-cell.leave, .br-phone, .br-toast.in { animation: none !important; } }
html[data-theme="light"] .br-hero .lede { color: inherit; }

/* portrait toolbar: 4 tidy rows (play/pack/fs, tempo, key/swing/viz, actions) */
@media (max-width: 760px) {
  html:not(.br-full) .br-tempo { flex: 1 1 100%; }
  html:not(.br-full) .br-key { flex: 1 1 50%; }
  html:not(.br-full) .br-swing { order: 6; flex: 0 0 auto; }
  html:not(.br-full) .br-viz { order: 7; flex: 1 0 auto; justify-content: center; }
  html:not(.br-full) .br-dice { order: 8; } html:not(.br-full) .br-clear { order: 9; } html:not(.br-full) .br-jams { order: 10; } html:not(.br-full) .br-refresh { order: 11; }
  html:not(.br-full) .br-dice, html:not(.br-full) .br-clear, html:not(.br-full) .br-jams, html:not(.br-full) .br-refresh { flex: 1 1 calc(25% - 6px); }
}
@media (max-width: 760px) {
  html:not(.br-full) .br-key { flex: 1 1 40%; }
  html:not(.br-full) .br-viz { flex: 0 0 auto; }
}
@media (min-width: 761px) {
  html:not(.br-full) .br-top { flex-wrap: nowrap; gap: 6px; }
  html:not(.br-full) .br-pack { width: 200px; }
  html:not(.br-full) .br-fs .br-lbl { display: none; } html:not(.br-full) .br-fs { width: 40px; padding: 0; margin-left: auto; }
}
@media (min-width: 761px) and (max-width: 1100px) { html:not(.br-full) .br-top { flex-wrap: wrap; } }
