/* OneRoot online: what the tools site leaves out.
 *
 * Loaded only by the tools server (tools_server.py), after style.css. The
 * song features, and the tools that need the desktop app, are hidden here;
 * app.js turns their pages away too (ONLINE_OFF).
 */

/* Songs: adding, the library, the song page's way in. */
#appnav [data-go="library"], #addSongBtn, #homeRecent, #loadForm, #homeDefaults,
/* Tools that need songs, a model or the Mac's own files. */
#toolsMenu [data-go="live"], #toolsMenu [data-go="ear"], #toolsMenu [data-go="loops"],
#toolsMenu [data-go="hum"], #toolsMenu [data-go="layers"],
.tiles [data-go="live"], .tiles [data-go="ear"], .tiles [data-go="loops"],
.tiles [data-go="hum"], .tiles [data-go="layers"],
/* "From a song" and "from a setlist" inside tools that stay. */
#kcSetlistBox, #guSongBox, #chSongBox, #voiceSongs, #voiceSongs + p, .section-head:has(+ #voiceSongs),
/* Choir: singing a tune in and reading a photo are the desktop app's. */
#chSingBox, #chPhotoBtn, .ch-hint,
/* Grooves come from loop packs on the Mac: the click only. */
.groove-pick, .prog-groove, .groove-note, #progGrooveState, #metroGrooveState {
  display: none !important;
}

/* Online, Home advertises the Mac app, whose tools are the ones left out above. */
.mac-panel { display: flex !important; }

/* ---- Your songs (songs.js) */
.ms-band { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 14px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel); }
.ms-band > div { flex: 1; min-width: 0; }
.ms-band p { margin: 2px 0 0; color: var(--muted); }
.ms-band-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
@media (max-width: 560px) { .ms-band { flex-wrap: wrap; } .ms-band > button { width: 100%; } }
.ms-visitor { max-width: 640px; }
.ms-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ms-form { display: grid; gap: 12px; max-width: 640px; margin: 0 0 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.ms-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ms-title { display: grid; gap: 4px; }
.ms-title input { width: 100%; }
.ms-rights { align-items: flex-start; }
.ms-rights span { line-height: 1.45; }
.ms-rights a, .ms-visitor a:not(.primary) { color: var(--accent); }
.ms-allow { margin: 0; }
.ms-form > .primary { justify-self: start; }
.ms-error { margin: 0; color: var(--danger); font-weight: 600; }
.ms-progress { max-width: 640px; margin: 0 0 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.ms-step { margin: 0 0 10px; }
.ms-bar { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ms-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .4s ease; }
.ms-list h3 { margin: 0 0 10px; }
.ms-songs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 760px; }
.ms-songs li { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ms-open { flex: 1; min-width: 0; display: grid; justify-content: stretch; justify-items: start; gap: 2px; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: inherit; cursor: pointer; }
.ms-open:hover { background: var(--accent-soft); }
.ms-open b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-here { color: var(--accent); }
.ms-del { flex: none; }

/* ---- A Quick chart on the song page (songs.js, app.js quickSong): the Mac's server features are left out. */
body.quick-song #fixBtn, body.quick-song #undoBtn, body.quick-song #redoBtn, body.quick-song #fallBtn,
body.quick-song #rerunBtn, body.quick-song #setlistBar, body.quick-song #fixHint, body.quick-song #vocalsBtn,
body.quick-song #instrumentalLink, body.quick-song label:has(#shiftAudioToggle), body.quick-song #stemsPanel,
body.quick-song #lyricsPanel, body.quick-song #fallView, body.quick-song [data-export="chordpro"],
body.quick-song [data-export="ireal"], body.quick-song [data-export="midi"], body.quick-song #mixNorm,
body.quick-song label:has(#mixNorm) { display: none !important; }
body:not(.quick-song) .quick-bar { display: none; }
.quick-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin: 0 0 12px;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.quick-bar p { margin: 0; flex: 1 1 380px; line-height: 1.45; }
.quick-bar .link-btn { padding: 0; min-height: 0; font: inherit; color: var(--accent); text-decoration: underline; }
.qb-audio { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.qb-audio .muted { display: inline-flex; align-items: center; gap: 6px; }
.qb-nudge { animation: qbNudge .6s ease 2; }
@keyframes qbNudge { 50% { transform: scale(1.06); box-shadow: 0 0 0 4px var(--accent-soft); } }

/* The course's pages inside the page (the merge): their own section, edge to edge under the top bar, with the
   course's own footer in place of the tools' one. Their look is course/course.css, fenced in under #cview. */
#cview { margin: 0; padding: 0; max-width: none; }
body[data-view="cview"] main { max-width: none; padding: 0; }
@media (max-width: 900px) { body[data-view="cview"] main { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); } }
/* One footer everywhere (review PX-07): the site's own, under the course's pages too; theirs keeps only the video credit
   and "Something wrong? Tell us". */
/* A song's page is exactly one screen tall (style.css, stage-mode): the footer would push the player off it. */
body.stage-mode #siteFoot { display: none !important; }
/* The menu's course link for the page on screen (account.js markNav): marked as the Tools button is on a tool. */
.appnav a.nav-link.here { color: var(--top-ink); background: var(--top-hover); box-shadow: inset 0 -3px 0 var(--brass); border-radius: 9px 9px 0 0; }
.appnav a.nav-link.here .ico { color: var(--brass); }
@media (max-width: 900px) { .appnav a.nav-link.here { color: var(--accent); background: none; box-shadow: none; } }
