/* ==========================================================
   v179.9.41 — DESKTOP UNDO ACCESS
   Desktop-only visibility pass. Reuses the existing mobileUndo
   control and undo stack; no scorekeeping/storage logic changes.
   ========================================================== */
@media (min-width:1101px){
  /* Surface one compact, persistent Undo action on desktop instead of
     exposing the phone navigation bar across the width of the monitor. */
  body:not(.home-page) #mobileActionBar{
    display:flex!important;
    position:fixed!important;
    left:auto!important;
    right:24px!important;
    bottom:24px!important;
    width:auto!important;
    min-height:0!important;
    height:auto!important;
    padding:0!important;
    margin:0!important;
    grid-template-columns:none!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    z-index:120!important;
    pointer-events:none!important;
  }

  body:not(.home-page) #mobileActionBar>button{
    display:none!important;
  }

  body:not(.home-page) #mobileActionBar>#mobileUndo{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:9px!important;
    min-width:116px!important;
    width:auto!important;
    height:48px!important;
    min-height:48px!important;
    padding:0 17px!important;
    border:1px solid color-mix(in srgb,var(--line) 88%,var(--text) 12%)!important;
    border-radius:15px!important;
    background:color-mix(in srgb,var(--panel) 97%,transparent)!important;
    color:var(--text)!important;
    box-shadow:0 8px 24px rgba(15,23,42,.14)!important;
    backdrop-filter:blur(14px)!important;
    -webkit-backdrop-filter:blur(14px)!important;
    pointer-events:auto!important;
    cursor:pointer!important;
    overflow:visible!important;
  }

  body:not(.home-page) #mobileActionBar>#mobileUndo .v1691-nav-icon{
    width:21px!important;
    height:21px!important;
    display:grid!important;
    place-items:center!important;
    color:var(--accent)!important;
  }
  body:not(.home-page) #mobileActionBar>#mobileUndo .v1691-nav-icon svg{
    width:21px!important;
    height:21px!important;
    stroke:currentColor!important;
    fill:none!important;
  }
  body:not(.home-page) #mobileActionBar>#mobileUndo small{
    display:block!important;
    margin:0!important;
    color:var(--text)!important;
    font-size:12px!important;
    line-height:1!important;
    font-weight:800!important;
    letter-spacing:.01em!important;
    white-space:nowrap!important;
  }

  body:not(.home-page) #mobileActionBar>#mobileUndo:disabled{
    opacity:.42!important;
    cursor:default!important;
    box-shadow:0 4px 14px rgba(15,23,42,.08)!important;
  }

  @media (hover:hover) and (pointer:fine){
    body:not(.home-page) #mobileActionBar>#mobileUndo:not(:disabled):hover{
      transform:translateY(-1px)!important;
      border-color:color-mix(in srgb,var(--accent) 42%,var(--line))!important;
      box-shadow:0 10px 28px rgba(15,23,42,.17)!important;
    }
  }

  /* Keep modal/editor interactions clean; the shortcut Ctrl/⌘ Z remains
     available while the desktop score editor is open. */
  body.play-editor-open #mobileActionBar,
  body:has(#drawer.open) #mobileActionBar,
  body:has(.scorebook-library-page) #mobileActionBar{
    display:none!important;
  }

  /* Wrigley keeps its established green / cream / yellow language. */
  body[data-theme-family="wrigley"]:not(.home-page) #mobileActionBar>#mobileUndo{
    background:color-mix(in srgb,var(--panel) 94%,var(--wr-green-850,#0b392c) 6%)!important;
    border-color:color-mix(in srgb,var(--wr-cream,#f1ead7) 45%,transparent)!important;
    color:var(--wr-cream,#f1ead7)!important;
  }
  body[data-theme-family="wrigley"]:not(.home-page) #mobileActionBar>#mobileUndo .v1691-nav-icon{
    color:var(--wr-yellow,#e5c84f)!important;
  }
  body[data-theme-family="wrigley"]:not(.home-page) #mobileActionBar>#mobileUndo small{
    color:var(--wr-cream,#f1ead7)!important;
  }
}
