/* Riffalong's devices and the app's own screens, rebuilt for the site's scenes (scenes.js): the app in its
   own colors (riffalong-ios App/Theme/theme.json), so a device reads as a window into Riffalong. */
:root { --app-ground: #0F1226; --app-surface: #181C38; --app-raised: #232850; --app-ink: #F5F1E8; --app-muted: #A9AECB; --app-tile: #0B0E1E; --app-mark: #FFB23E; --app-accent: #E8457A }

/* the scene's pause, under its device */
.wctl { appearance: none; border: 0; background: none; color: var(--soft); font: 500 14px var(--body); min-height: 44px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer }
.wctl .i { width: 15px; height: 15px }
@media (hover: hover) { .wctl:hover { color: var(--ink); background: rgba(255,255,255,.05) } }
.wctl:active { transform: scale(.97) }

/* devices */
.dev.phone { width: min(100%, 336px); padding: 9px; border-radius: 52px; background: #05060A;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 0 0 3px #10121B, 0 40px 80px -36px rgba(0,0,0,.95), 0 0 0 1px rgba(0,0,0,.6) }
.dev.phone .sw { border-radius: 44px }
.sw { position: relative; width: 100%; overflow: hidden; background: var(--app-ground); isolation: isolate }
.sw .screen { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: translateX(calc(var(--x, 0) * -1px)) scale(var(--k, 1)); overflow: hidden }

/* a window, with the Mac's, Windows' or a browser's title bar */
.win { position: absolute; border-radius: 14px; overflow: hidden; background: var(--app-ground); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 40px 80px -40px rgba(0,0,0,.95) }
.win .tb { height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #1A1E3C; border-bottom: 1px solid rgba(0,0,0,.4); color: var(--app-muted); font: 600 12px -apple-system, system-ui, "Segoe UI", sans-serif }
.win.mac .tb i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57 } .win.mac .tb i:nth-child(2) { background: #FEBC2E } .win.mac .tb i:nth-child(3) { background: #28C840 }
.win.pc .tb { justify-content: space-between; background: #141832 } .win.pc .tb svg { width: 54px; height: 12px; fill: none; stroke: var(--app-muted); stroke-width: 1.2 }
.win.web .tb { justify-content: center; background: #1A1E3C } .win.web .url { padding: 3px 14px; border-radius: 8px; background: rgba(255,255,255,.07); font-weight: 500 }
.win.solo { position: relative; width: 100% }
.win .tb b { font-weight: 600 } .win.mac .tb b { margin: 0 auto; transform: translateX(-30px) }

/* a phone held in front */
.hand { padding: 6px; border-radius: 30px; background: #05060A; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 30px 60px -28px rgba(0,0,0,.95); z-index: 4 }
.hand .sw { border-radius: 25px }

/* ---------- the app, in its own colors ---------- */
.app { background: var(--app-ground); color: var(--app-ink); font: 400 15px/1.3 -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; letter-spacing: -.01em; user-select: none; -webkit-user-select: none }
.app * { box-sizing: border-box }
.app .num { font-variant-numeric: tabular-nums }
.app .i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none }
.app .sb { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 40px; font: 600 16px -apple-system, system-ui, sans-serif; position: relative }
.app .sb .island { position: absolute; left: 50%; top: 11px; width: 118px; height: 34px; margin-left: -59px; border-radius: 20px; background: #000 }
.app .sb .sbi { width: 66px; height: 14px; color: var(--app-ink) }
.app .sb.and { padding: 0 22px; height: 40px; font-size: 14px }
.app .sb.and::after { content: ""; position: absolute; left: 50%; top: 12px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.08) }
.app .ah { display: flex; align-items: center; gap: 6px; height: 54px; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.06) }
.app .ah .at { flex: 1; min-width: 0; font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 4px }
.app .ib { width: 38px; height: 38px; display: grid; place-items: center; color: var(--app-ink); flex: none } .app .ib.am { color: var(--app-mark) } .app .ib.dim { color: var(--app-muted) }
.app .vp { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px 0 14px; border-radius: 17px; background: var(--app-raised); color: var(--app-mark); font-weight: 600; font-size: 15px; flex: none }
.app .vp .i { width: 15px; height: 15px; stroke-width: 2.4 }

/* the tab, as alphaTab draws it in the app */
.app .tabbox { height: 132px; padding: 14px 12px 0; overflow: hidden }
.app .tabbox.one { height: 470px; padding-top: 30px }
.app .tabbox.sys2 { height: 214px; padding-top: 6px }
.app .tabbox.sys4 { height: 498px }
.app .staff:not(.on) .cur, .app .staff:not(.on) .hot, .app .staff.rest .cur, .app .staff.rest .hot { display: none }
.app .tabbox.one .staff:first-child .cur { display: inline }
.app .staff { display: block; overflow: visible }
.app .staff .ln, .app .staff .bl { stroke: rgba(169,174,203,.55); stroke-width: 1 }
.app .staff .hot { fill: rgba(255,178,62,.12) }
.app .staff .clef { fill: var(--app-ink); font: 700 16px Georgia, "Times New Roman", serif }
.app .staff .bn { fill: var(--app-accent); font: 600 10px -apple-system, system-ui, sans-serif }
.app .staff .nb { fill: var(--app-ground) }
.app .staff .nt text { fill: var(--app-ink); font: 500 11.5px -apple-system, system-ui, sans-serif; text-anchor: middle }
.app .staff .stem { stroke: rgba(245,241,232,.7); stroke-width: 1 }
.app .staff .cur { stroke: var(--app-mark); stroke-width: 2.2; stroke-linecap: round }
.app .staff .loopsel { fill: rgba(255,178,62,.1) }
.app .staff .run { fill: rgba(255,178,62,.2); stroke: var(--app-mark); stroke-width: 1.4 }
.app .staff .grip { fill: var(--app-mark) }
.app .lanebox { height: 46px; border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); background: rgba(24,28,56,.6) }
.app .lane { display: flex; height: 100%; padding-left: 12px }
.app .lane .lb { flex: 1; display: flex; align-items: center; border-left: 1px solid rgba(169,174,203,.4); padding-left: 6px; gap: 0 }
.app .lane .lb > * { flex: 1; display: flex; align-items: center; height: 26px; position: relative }
.app .lane i::before { content: ""; width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--app-muted); opacity: .7; margin-left: 2px }
.app .lane b { font-weight: 700; font-size: 17px; color: var(--app-ink) }
.app .lane .now::after { content: ""; position: absolute; left: -4px; top: 0; bottom: 0; width: 2.5px; border-radius: 2px; background: var(--app-mark) }

/* the transport, the phone's own layout (riffalong-web Transport.tsx, as riffalong-ios SongView) */
.app .tp { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px 26px; background: var(--app-ground); border-top: 1px solid rgba(255,255,255,.05) }
.app .scrub { position: relative; height: 18px; margin: 0 6px; --p: 0 }
.app .scrub::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: var(--app-raised) }
.app .scrub .fill { position: absolute; left: 0; top: 7px; height: 4px; border-radius: 2px; background: var(--app-muted); width: calc(var(--p) * 100%) }
.app .scrub .knob { position: absolute; top: 0; left: calc(var(--p) * 100%); width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--app-ink); box-shadow: 0 2px 6px rgba(0,0,0,.4) }
.app .times { display: flex; justify-content: space-between; padding: 4px 6px 0; color: var(--app-muted); font-size: 12.5px }
.app .times .tnow { font-weight: 500; margin-right: 8px }
.app .chips { display: flex; justify-content: center; gap: 8px; margin-top: 12px }
.app .chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: 18px; background: var(--app-raised); color: var(--app-ink); font-size: 14px; font-weight: 600; transition: background-color 160ms ease-out, color 160ms ease-out }
.app .chip .i { width: 18px; height: 18px }
.app .chips.icons .chip { width: 44px; padding: 0; justify-content: center } .app .chips.icons .chip em { display: none }
.app .chips.icons .chip.labeled { width: auto; padding: 0 12px; gap: 6px } .app .chips.icons .chip.labeled em { display: inline }
.app .chip.on { color: var(--app-mark); box-shadow: inset 0 0 0 1.5px rgba(255,178,62,.55) }
.app .chip em { font-style: normal }
.app .chip.busy .i { animation: whyspin 1s linear infinite }
@keyframes whyspin { to { transform: rotate(360deg) } }
.app .main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 12px }
.app .main .side { display: flex; align-items: center; gap: 6px } .app .main .side.end { justify-content: flex-end }
.app .pill { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-radius: 21px; background: var(--app-raised); color: var(--app-ink); font-weight: 600; font-size: 15px; transition: background-color 160ms ease-out, color 160ms ease-out }
.app .pill em { font-style: normal } .app .pill .i { width: 19px; height: 19px }
.app .pill.yp.on { background: var(--app-ink); color: var(--app-ground) }
.app .pill.yp.live { cursor: pointer }
.app .pp { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--app-mark); color: var(--app-ground); box-shadow: 0 8px 20px -8px rgba(255,178,62,.6) }
.app .pp .i { width: 26px; height: 26px }

/* the mixer */
.app .mx { padding: 10px 12px 0 }
.app .seg { display: grid; grid-template-columns: 1fr 1fr; width: 64%; height: 38px; padding: 3px; border-radius: 19px; background: var(--app-surface); font-size: 14.5px; font-weight: 600; margin-bottom: 6px }
.app .seg > * { display: grid; place-items: center; border-radius: 16px; color: var(--app-ink) } .app .seg b { background: var(--app-raised) }
.app .mr { display: grid; grid-template-columns: 26px 12px 64px 1fr 58px; align-items: center; gap: 8px; height: 38px; --c: var(--app-ink) }
.app .mr .spk { color: var(--app-ink); display: grid } .app .mr .spk .i { width: 19px; height: 19px }
.app .mr .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c) }
.app .mr em { font-style: normal; font-size: 15px }
.app .mr .sl { position: relative; height: 22px }
.app .mr .sl::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: var(--app-raised) }
.app .mr .sf { position: absolute; left: 0; top: 9px; height: 4px; width: 66%; border-radius: 2px; background: var(--c); transition: background-color 200ms ease-out, opacity 200ms ease-out }
.app .mr .sk { position: absolute; top: 2px; left: 66%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--app-ink) }
.app .mr .solo { display: grid; place-items: center; height: 30px; border-radius: 15px; background: var(--app-raised); font-size: 13.5px; font-weight: 600 }
.app .mr.off .spk { color: var(--app-muted) } .app .mr.off .dot, .app .mr.off em { opacity: .45 }
.app .mr.off .sf { background: var(--app-muted); opacity: .5 }

/* menus and toasts over the song screen */
.app .menu { position: absolute; z-index: 5; right: 14px; bottom: 166px; width: 270px; padding: 6px; border-radius: 14px; background: #232850; box-shadow: 0 18px 40px -10px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.07); font-size: 15px }
.app .menu p { margin: 0; padding: 10px 12px; border-radius: 9px }
.app .menu p[data-auto] { font-weight: 600 }
.app .menu hr { border: 0; height: 1px; background: rgba(255,255,255,.08); margin: 4px 8px }
.app .menu .dim { color: var(--app-muted) }
.app .menu.capo { left: 22px; right: auto; bottom: 150px; width: 252px; max-height: 470px; overflow: hidden; padding: 6px 6px 10px }
.app .menu .mh { padding: 8px 12px 4px; color: var(--app-muted); font-size: 12.5px; font-weight: 600 }
.app .menu .mi { display: flex; gap: 6px; padding: 7px 10px }
.app .menu .mi b { display: block; font-weight: 500 } .app .menu .mi em { display: block; font-style: normal; font-size: 12.5px; color: var(--app-muted) }
.app .menu .tick { width: 18px; padding-top: 1px; color: var(--app-mark); visibility: hidden } .app .menu .tick .i { width: 16px; height: 16px; stroke-width: 2.4 }
.app .menu .mi.sel .tick { visibility: visible } .app .menu .mi.sel b { font-weight: 700 }
.app .toast { position: absolute; z-index: 5; left: 50%; bottom: 182px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 20px; background: var(--app-ink); color: var(--app-ground); font-weight: 600; white-space: nowrap }
.app .toast .i { width: 18px; height: 18px; stroke-width: 2.6 }

/* the words, with the chords over them */
.app .words { padding: 18px 22px 0 26px; display: grid; gap: 6px }
.app .wl { margin: 0; font-size: 18.5px; line-height: 1.22; color: var(--app-muted); transition: color 200ms ease-out }
.app .wl.now { color: var(--app-ink) }
.app .w { position: relative; display: inline-block; padding-top: 19px; transition: color 120ms ease-out }
.app .w.on { color: var(--app-mark) }
.app .ch { position: absolute; left: 0; top: 0; font-size: 15px; font-weight: 700; color: var(--app-mark); white-space: nowrap }
.app .ch.held { color: var(--app-muted); font-weight: 500 }

/* the fingering bar (SongView fingeringBar): the neck, the choices, Keep and ✕ */
.app .fb { position: absolute; left: 8px; right: 8px; bottom: 204px; z-index: 4; padding: 12px; border-radius: 12px; background: var(--app-raised); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.6) }
.app .neck { display: block; width: 100%; height: 92px }
.app .neck .nk { fill: var(--app-tile) }
.app .neck .inl { fill: rgba(169,174,203,.32) }
.app .neck .fn { fill: var(--app-muted); font: 500 9px -apple-system, system-ui, sans-serif; text-anchor: middle; font-variant-numeric: tabular-nums }
.app .neck .wire { stroke: rgba(169,174,203,.35); stroke-width: 1 }
.app .neck .nut { stroke: rgba(245,241,232,.8); stroke-width: 3 }
.app .neck .str { stroke: rgba(245,241,232,.45); stroke-width: 1 }
.app .neck .sn { fill: var(--app-muted); font: 600 9px -apple-system, system-ui, sans-serif }
.app .neck .path { fill: none; stroke: var(--app-mark); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; opacity: .85 }
.app .neck .dot { fill: var(--app-mark) }
.app .neck .was { fill: none; stroke: rgba(245,241,232,.6); stroke-width: 1.4 }
.app .fc { display: flex; gap: 6px; margin-top: 10px; align-items: center }
.app .fc .ch { position: static; flex: 1; display: grid; justify-items: center; gap: 1px; min-height: 44px; padding: 5px 0; border-radius: 10px; background: rgba(169,174,203,.12); color: var(--app-ink); font-size: 14.5px; font-weight: 600; margin: 0 }
.app .fc .ch em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--app-muted) }
.app .fc .ch.on { background: var(--app-mark); color: var(--app-ground) } .app .fc .ch.on em { color: rgba(15,18,38,.75) }
.app .fc .keep { display: grid; place-items: center; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--app-mark); color: var(--app-ground); font-weight: 700 }
.app .fc .xx { display: grid; place-items: center; width: 40px; height: 44px; border-radius: 10px; background: rgba(169,174,203,.18) } .app .fc .xx .i { width: 17px; height: 17px }

/* the library and Find a song */
.app .ltop { display: flex; align-items: center; gap: 4px; height: 48px; padding: 0 14px 0 18px }
.app .ltop .lt { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700 }
.app .lsearch { display: flex; align-items: center; gap: 10px; height: 42px; margin: 4px 14px 0; padding: 0 14px; border-radius: 21px; background: var(--app-surface); color: var(--app-muted); font-size: 15.5px }
.app .lsearch .i { width: 18px; height: 18px }
.app .lseg { display: flex; justify-content: space-between; margin: 12px 14px 4px; padding: 4px; border-radius: 20px; background: var(--app-surface); font-size: 14px; font-weight: 600 }
.app .lseg > * { padding: 8px 12px; border-radius: 16px } .app .lseg b { background: var(--app-raised) }
.app .rows { padding: 6px 8px }
.app .lrow { display: flex; align-items: center; gap: 12px; height: 70px; padding: 0 10px; border-radius: 14px }
.app .art { width: 48px; height: 48px; border-radius: 9px; background: var(--app-tile); display: grid; place-items: center; color: var(--app-ink); flex: none } .app .art .i { width: 20px; height: 20px }
.app .tt { flex: 1; min-width: 0; display: grid; gap: 1px } .app .tt b { font-size: 16.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.app .tt em { font-style: normal; color: var(--app-muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.app .lrow.busy .sub { color: var(--app-mark) }
.app .ring { width: 26px; height: 26px; transform: rotate(-90deg); flex: none } .app .ring circle { fill: none; stroke: var(--app-raised); stroke-width: 3.2 } .app .ring .v { stroke: var(--app-mark); stroke-linecap: round }
.app .pct { width: 38px; text-align: right; color: var(--app-muted); font-size: 13.5px }
.app .fs { position: absolute; left: 0; right: 0; top: 52px; bottom: 0; z-index: 3; background: var(--app-ground); border-radius: 14px 14px 0 0; box-shadow: 0 -12px 30px rgba(0,0,0,.4) }
.app .srch { display: flex; align-items: center; gap: 10px; padding: 14px 12px 8px }
.app .fld { flex: 1; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 22px; background: var(--app-surface); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); font-size: 16px; position: relative }
.app .fld .i { width: 19px; height: 19px; color: var(--app-muted) }
.app .fld .ph { color: var(--app-muted); position: absolute; left: 41px }
.app .fld .caret { width: 2px; height: 20px; background: var(--app-mark); border-radius: 1px; opacity: 0 }
.app .fld.on .caret { opacity: 1; animation: whyblink 1s steps(2, start) infinite }
@keyframes whyblink { to { visibility: hidden } }
.app .xb { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--app-surface); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08) }
.app .empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 150px 40px 0 }
.app .empty .big { width: 44px; height: 44px; color: var(--app-muted); stroke-width: 1.6 }
.app .empty b { font-size: 21px; margin-top: 8px } .app .empty p { margin: 0; color: var(--app-muted); font-size: 14.5px; line-height: 1.35 }
.app .lnk { color: var(--app-mark); font-size: 14.5px; margin-top: 10px }
.app .res { padding: 0 12px }
.app .grp { margin-top: 10px }
.app .gh { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 6px; color: var(--app-muted); font-size: 15.5px; font-weight: 600 }
.app .gh .i { width: 19px; height: 19px }
.app .gb { border-radius: 14px; background: var(--app-surface); padding: 2px 10px }
.app .srow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-radius: 10px; transition: background-color 160ms ease-out }
.app .srow + .srow { border-top: 1px solid rgba(255,255,255,.06) }
.app .srow .art { width: 40px; height: 40px; background: var(--app-raised) }
.app .srow .tt b { font-size: 15.5px } .app .srow .tt em { font-size: 12.5px }
.app .srow.on { background: var(--app-raised); margin: 0 -10px; padding-inline: 10px }
.app .foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 0 26px; text-align: center; background: var(--app-surface) }

/* the morning: the desktop layout (riffalong-web, the Mac and Windows apps) and the phones' library */
.app .dk { display: grid; grid-template-columns: 250px 1fr; height: 100% }
.app .dk aside { background: var(--app-surface); padding-top: 6px }
.app .dk aside .ltop { height: 46px } .app .dk aside .ltop .lt { font-size: 18px }
.app .dk aside .lsearch { height: 36px; margin: 2px 12px 8px; font-size: 14px; background: var(--app-raised) }
.app .drow { display: flex; align-items: center; gap: 10px; height: 58px; margin: 0 8px; padding: 0 10px; border-radius: 12px }
.app .drow.sel { background: var(--app-raised) }
.app .drow .art { width: 38px; height: 38px } .app .drow .tt b { font-size: 15px } .app .drow .tt em { font-size: 13px }
.app .dk section { min-width: 0; position: relative }
.app .dk .dh { display: flex; align-items: baseline; gap: 12px; height: 54px; padding: 14px 18px 0; border-bottom: 1px solid rgba(255,255,255,.06) }
.app .dk .dh .i { align-self: center; width: 20px; height: 20px; color: var(--app-ink) } .app .dk .dh b { font-size: 18px } .app .dk .dh em { font-style: normal; color: var(--app-muted) }
.app .dk .tabbox { height: 150px; padding: 18px 16px 0 }
.app .dk .tabbox .staff { width: 100%; height: auto }
.app .banner { position: absolute; z-index: 6; left: 10px; right: 10px; top: 8px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(35,40,80,.97); box-shadow: 0 12px 30px rgba(0,0,0,.5); transform: translateY(-130%) }
.app .banner .i { width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: var(--app-mark); color: var(--app-ground); stroke-width: 2.2 }
.app .banner b { display: block; font-size: 14.5px } .app .banner em { font-style: normal; color: var(--app-muted); font-size: 14px }
.app .away { opacity: 0 }

/* the finger: a fingertip's touch, as the app's own tour would show it */
.app .finger { position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; border-radius: 50%; z-index: 20; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 45%, rgba(245,241,232,.42), rgba(245,241,232,.22) 62%, rgba(245,241,232,.12));
  box-shadow: inset 0 0 0 1.5px rgba(245,241,232,.78), 0 8px 22px -4px rgba(0,0,0,.55) }
.app .finger i { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(255,178,62,.9) }


@media (prefers-reduced-motion: reduce) { .app .finger { display: none } }

/* ---------- the Mac app (riffalong-mac, as shot 11-23): the library on the left, the song or a sheet over it ---------- */
.win.solo { box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 40px 80px -40px rgba(0,0,0,.95) }
.win.solo .tb { height: 28px; background: #12152B }
.app .mw { display: grid; grid-template-columns: 196px minmax(0, 1fr); height: 100% }
.app .ms { position: relative; overflow: hidden; background: #12152B; border-right: 1px solid rgba(255,255,255,.05); padding-top: 8px }
.app .ms .lsearch { height: 30px; margin: 0 10px 8px; padding: 0 10px; gap: 7px; font-size: 12.5px; border-radius: 9px; background: var(--app-surface) }
.app .ms .lsearch .i { width: 14px; height: 14px }
.app .mseg { display: flex; gap: 1px; margin: 0 8px 8px; font-size: 10.5px; font-weight: 600; color: var(--app-muted) }
.app .mseg > * { padding: 4px 5px; border-radius: 7px } .app .mseg b { background: var(--app-raised); color: var(--app-ink) }
.app .mrows { padding: 0 6px }
.app .ms .drow { height: 44px; margin: 0; padding: 0 8px; gap: 9px; border-radius: 9px }
.app .ms .drow .art { width: 30px; height: 30px; border-radius: 6px } .app .ms .drow .art .i { width: 14px; height: 14px }
.app .ms .drow .tt b { font-size: 12.5px } .app .ms .drow .tt em { font-size: 11px }
.app .ms .drow.sel { background: var(--app-raised) }
.app .lgh { margin: 10px 8px 4px; font-size: 11.5px; font-weight: 700; color: var(--app-muted) }
.app .lgs { margin: -2px 8px 6px; font-size: 11px; color: var(--app-muted) }
.app .mfoot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 7px; margin: 0; padding: 10px 12px; font-size: 11.5px; color: var(--app-muted); border-top: 1px solid rgba(255,255,255,.05) }
.app .mfoot .i { width: 15px; height: 15px }
.app .mm { position: relative; min-width: 0; overflow: hidden }
.app .mh { display: flex; align-items: center; gap: 4px; height: 46px; padding: 0 8px 0 14px; border-bottom: 1px solid rgba(255,255,255,.06) }
.app .mh .tt { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px } .app .mh .tt b { font-size: 14.5px } .app .mh .tt em { font-size: 12px }
.app .mh .ib { width: 30px; height: 30px } .app .mh .ib .i { width: 17px; height: 17px }
.app .mh .vp { height: 26px; font-size: 12.5px; padding: 0 8px 0 11px }
.app .mm .tabbox { height: 238px; padding: 12px 6px 0 }
.app .mm .lanebox { height: 34px } .app .mm .lane b { font-size: 13.5px }
.app .mt { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 12px 10px; background: var(--app-ground); border-top: 1px solid rgba(255,255,255,.05) }
.app .mt .scrub { display: block; margin: 0 2px; height: 14px } .app .mt .scrub::before, .app .mt .scrub .fill { top: 5px; height: 3px } .app .mt .scrub .knob { width: 13px; height: 13px; margin-left: -6.5px }
.app .mrow2 { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 4px; font-size: 11.5px; color: var(--app-muted) }
.app .mrow2 .tnow { margin-right: auto; min-width: 34px } .app .mrow2 .bno { margin-left: auto; min-width: 44px; text-align: right }
.app .mrow2 .chip { height: 26px; padding: 0 9px; gap: 5px; font-size: 11.5px; border-radius: 13px }
.app .mrow2 .chip .i { width: 14px; height: 14px }
.app .mrow2 .pp { width: 36px; height: 36px } .app .mrow2 .pp .i { width: 17px; height: 17px }
.app .chip.out { background: var(--app-ink); color: var(--app-ground); box-shadow: none }
.app .staff .sel { fill: rgba(255,178,62,.18); stroke: rgba(255,178,62,.7); stroke-width: 1 }
.app .staff .loop { fill: rgba(255,178,62,.12); stroke: rgba(255,178,62,.55); stroke-width: 1 }
.app .staff .tricky { fill: rgba(232,69,122,.16); stroke: rgba(232,69,122,.6); stroke-width: 1 }
/* a sheet over the window, as the Mac shows Lists, Share with… and the Studio */
.app .msh { position: absolute; z-index: 8; left: 50%; top: 28px; width: 316px; margin-left: -158px; max-height: 362px; border-radius: 13px; background: var(--app-surface);
  box-shadow: 0 24px 50px -10px rgba(0,0,0,.75), inset 0 0 0 1px rgba(255,255,255,.07); overflow: hidden }
.app .mw ~ .msh { left: calc(50% + 98px) }   /* over the song pane, as the Mac puts its sheets */
.app .mshh { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 42px; padding: 0 10px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 12.5px }
.app .mshh > span:first-child { display: flex; align-items: center; gap: 2px; color: var(--app-ink) } .app .mshh > span:first-child .i { width: 13px; height: 13px }
.app .mshh b { font-size: 13.5px }
.app .mshh .done { justify-self: end; padding: 4px 11px; border-radius: 12px; background: var(--app-mark); color: var(--app-ground); font-weight: 700 }
.app .mshh .cancel { color: var(--app-ink) }
.app .mshb { padding: 8px 10px 12px }
.app .mshb.scroll { height: 320px; overflow: hidden }
.app .lrow2 { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 8px; border-radius: 9px }
.app .lrow2 + .lrow2 { border-top: 1px solid rgba(255,255,255,.05) }
.app .lrow2 .tick { color: var(--app-mark); display: grid } .app .lrow2 .tick .i { width: 18px; height: 18px }
.app .lrow2 .tt b { font-size: 13px } .app .lrow2 .tt em { font-size: 11.5px }
.app .lrow2.all { background: var(--app-raised); margin-bottom: 6px }
.app .newl { display: flex; justify-content: space-between; margin: 8px 0 0; padding: 8px 10px; border-radius: 9px; background: var(--app-ground); font-size: 12.5px; color: var(--app-muted) } .app .newl b { color: var(--app-mark) }
.app .fine { margin: 8px 6px 0; font-size: 11px; color: var(--app-muted) }
.app .menu.speed { right: 120px; bottom: 56px; width: 130px; padding: 5px; font-size: 12.5px }
.app .menu .mh2 { padding: 5px 10px 3px; color: var(--app-muted); font-size: 11px; font-weight: 600 }
.app .menu.speed .mi { padding: 5px 8px; gap: 4px } .app .menu.speed .mi b { font-weight: 500 }
.app .selbar { position: absolute; z-index: 6; left: 330px; top: 132px; display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: var(--app-raised); box-shadow: 0 12px 30px rgba(0,0,0,.5); font-size: 12px }
.app .selbar > * { padding: 6px 10px; border-radius: 8px } .app .selbar b { background: var(--app-mark); color: var(--app-ground) }
.app .mp { position: absolute; z-index: 5; top: 46px; right: 0; bottom: 64px; width: 196px; padding: 10px; background: var(--app-surface); border-left: 1px solid rgba(255,255,255,.06); box-shadow: -12px 0 24px rgba(0,0,0,.3) }
.app .mph { margin: 0 0 8px; font-size: 13px; font-weight: 700 }
.app .mpk { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 11.5px; font-weight: 600; color: var(--app-muted) } .app .mpk .i { width: 13px; height: 13px; color: var(--app-accent) }
.app .mpc { padding: 9px; border-radius: 9px; background: var(--app-raised); font-size: 12px }
.app .nf { position: relative; display: flex; align-items: center; min-height: 34px; margin: 8px 0 0; padding: 6px 8px; border-radius: 7px; background: var(--app-ground); font-size: 12px; line-height: 1.35 }
.app .nf .ph { color: var(--app-muted) } .app .nf .caret { width: 1.5px; height: 14px; background: var(--app-mark); opacity: 0 } .app .nf.on .caret { opacity: 1 }
.app > .toast { bottom: 76px; left: calc(50% + 98px); height: 32px; font-size: 12.5px; padding: 0 12px 0 9px }
/* the Studio and a student's page */
.app .gb2 { border-radius: 10px; background: var(--app-raised); padding: 0 10px }
.app .srow2 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 0 } .app .srow2 + .srow2 { border-top: 1px solid rgba(255,255,255,.06) }
.app .srow2 .tt b { font-size: 13px } .app .srow2 .tt em { font-size: 11px } .app .srow2 > .i { width: 14px; height: 14px; color: var(--app-muted) }
.app .mini { display: flex; align-items: flex-end; gap: 2px; height: 16px } .app .mini i { width: 3px; border-radius: 1px; background: var(--app-mark); height: 2px }
.app .mini .h1 { height: 4px } .app .mini .h2 { height: 7px } .app .mini .h3 { height: 10px } .app .mini .h4 { height: 13px } .app .mini .h5 { height: 16px } .app .mini .h0 { background: var(--app-muted); opacity: .4 }
.app .pin { will-change: transform }
.app .pm { margin: 2px 2px 8px; font-size: 11.5px; color: var(--app-muted) }
.app .seg2 { display: flex; gap: 2px; margin: 0 0 8px; padding: 3px; border-radius: 9px; background: var(--app-ground); font-size: 11px; font-weight: 600 }
.app .seg2 > * { flex: 1; text-align: center; padding: 4px 0; border-radius: 7px; color: var(--app-muted) } .app .seg2 b { background: var(--app-mark); color: var(--app-ground) }
.app .tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px }
.app .tiles p { margin: 0; padding: 7px 7px; border-radius: 8px; background: var(--app-raised) } .app .tiles b { display: block; font-size: 13px } .app .tiles em { font-style: normal; font-size: 10px; color: var(--app-muted) }
.app .days { display: flex; align-items: flex-end; justify-content: space-between; height: 92px; margin: 8px 0 4px; padding: 8px 12px 0; border-radius: 9px; background: var(--app-raised) }
.app .days span { display: grid; justify-items: center; gap: 4px; flex: 1; height: 100% ; align-content: end }
.app .days i { width: 14px; height: calc(var(--h, 0%) * .56); min-height: 3px; border-radius: 3px; background: var(--app-mark) } .app .days i.none { background: rgba(169,174,203,.25) }
.app .days em { font-style: normal; font-size: 10px; color: var(--app-muted); padding-bottom: 6px }
.app .song2 { padding: 9px; border-radius: 10px; background: var(--app-raised) }
.app .sh2 { display: flex; align-items: flex-start; gap: 9px; margin: 0 } .app .sh2 .art { width: 36px; height: 36px } .app .sh2 .tt b { font-size: 13px } .app .sh2 .tt em { font-size: 11px }
.app .sh2 > b { font-size: 12px }
.app .atag { justify-self: start; margin-top: 3px; padding: 1px 7px; border-radius: 6px; background: rgba(169,174,203,.16); color: var(--app-ink) !important; font-weight: 600 }
.app .fact { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 11.5px; color: var(--app-mark) } .app .fact .i { width: 13px; height: 13px }
.app .fact2 { display: grid; grid-template-columns: 13px 1fr; column-gap: 6px; margin: 6px 0 0; font-size: 11.5px } .app .fact2 .i { width: 13px; height: 13px; color: var(--app-accent) }
.app .fact2 em { grid-column: 2; font-style: normal; color: var(--app-muted) }
.app .heat { display: grid; grid-template-columns: repeat(16, 1fr); gap: 2px; margin-top: 9px }
.app .heat i { aspect-ratio: 1; border-radius: 2px; background: #2C3049 }
.app .heat .h1, .app .most .h1 { background: #2C3049 } .app .heat .h2, .app .most .h2 { background: #3E3373 } .app .heat .h3, .app .most .h3 { background: #6B3483 } .app .heat .h4, .app .most .h4 { background: #A83A78 } .app .heat .h5, .app .most .h5 { background: #FFB23E }
.app .most { display: flex; justify-content: space-between; align-items: center; margin: 7px 0 0; font-size: 10.5px; color: var(--app-ink) }
.app .most span { display: flex; align-items: center; gap: 2px; color: var(--app-muted) } .app .most span i { width: 7px; height: 7px; border-radius: 2px }
/* the student's phone: the teacher's note on the bars, the speed climbing, Got it */
.app .fnote { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 216px; padding: 12px 14px; border-radius: 14px; background: var(--app-raised); box-shadow: 0 -8px 24px rgba(0,0,0,.35) }
.app .fh { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14.5px } .app .fh .i { width: 16px; height: 16px; color: var(--app-accent) } .app .fh b { flex: 1 }
.app .fh .spd { font-weight: 700; color: var(--app-mark) } .app .fh.done .i { color: var(--app-mark) }
.app .fq { margin: 6px 0 0 24px; font-size: 14.5px; line-height: 1.35 } .app .fq em { display: block; font-style: normal; font-size: 12.5px; color: var(--app-muted) }
.app .gotit { position: absolute; z-index: 4; left: 12px; right: 12px; bottom: 216px; display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--app-ink); color: var(--app-ground) }
.app .gotit b { font-size: 17px } .app .gotit span { font-size: 14px }
.app .gotit .gb { justify-self: start; margin-top: 6px; padding: 8px 16px; border-radius: 18px; background: var(--app-mark); font-weight: 700 }

/* a narrow screen: the Mac's window without its library, so the song and its sheets are bigger */
@media (max-width: 680px) { .win.solo .sw { --crop: 196 } }
