.ttobak-music-toggle {
  display:inline-flex; align-items:center; justify-content:center; gap:5px;
  width:44px; min-width:44px; min-height:44px; padding:0; flex:0 0 auto;
  border:1px solid #c5d7cd; border-radius:999px;
  color:#245348; background:#fffdf5; font-family:'Ttobak UI',sans-serif;
  font-size:12px; font-weight:500; line-height:1.2; cursor:pointer;
  box-shadow:0 2px 5px #123c2d12; touch-action:manipulation;
}
/* Keep the same control beside Continue; only the home label is visual-hidden. */
.ttobak-home .home-actions { column-gap:10px; }
.ttobak-home .home-actions .ttobak-music-toggle {
  width:58px; min-width:58px; padding:0; gap:0;
  color:var(--ink); background:color-mix(in srgb,var(--sky),transparent 16%);
  box-shadow:none;
}
.ttobak-music-toggle > span { display:none; }
.ttobak-home .ttobak-music-toggle > svg { flex:none; }
.ttobak-home .home-actions .ttobak-music-toggle:hover { filter:brightness(1.08); }
@media (max-width:600px) and (max-aspect-ratio:6/5) {
  .ttobak-home .home-actions .ttobak-music-toggle { width:56px; min-width:56px; }
}
/* Keep Continue and music on one row when a narrow screen needs two rows. */
@media (max-width:380px) and (max-aspect-ratio:6/5) {
  .ttobak-home .home-actions { display:grid; grid-template-columns:max-content max-content; }
  .ttobak-home .home-actions .start-button { grid-column:1 / -1; justify-self:center; }
}
@media (max-height:620px) and (min-aspect-ratio:6/5) {
  .ttobak-home .home-actions .ttobak-music-toggle { width:48px; min-width:48px; }
}
@media (forced-colors:active) {
  .ttobak-home .home-actions .ttobak-music-toggle { color:ButtonText; background:Canvas; }
}
.ttobak-music-toggle:hover { background:#eaf4ed; }
.ttobak-music-toggle:focus-visible { outline:3px solid #d79b36; outline-offset:3px; }
.ttobak-music-toggle[data-audio-on="false"] { color:#68706b; }
.ttobak-music-toggle[data-audio-on="true"] .music-slash { display:none; }
.ttobak-music-toggle[hidden] { display:none; }

/* November 13 (owner choice): music rests during learning, so the note button is
   hidden there instead of sitting greyed out and looking broken. */
body header .ttobak-music-toggle.ttobak-music-toggle[data-learning-paused="true"],
.ttobak-music-toggle[data-learning-paused="true"] { display:none !important; }
