/* PMP Create Pro v183 — discoverable compact command deck */
.mobile-command-navigator { display: none; }

@media (max-width: 1420px) {
  .tool-rail {
    padding-right: 92px;
    scroll-padding-inline: 10px 92px;
    scrollbar-color: rgba(8, 127, 120, .62) rgba(255, 255, 255, .36);
    scrollbar-width: thin;
  }

  .tool-rail.has-command-overflow {
    box-shadow:
      inset -34px 0 28px -31px rgba(35, 61, 76, .58),
      0 -7px 20px rgba(43, 68, 78, .12);
  }

  .mobile-command-navigator {
    position: absolute;
    right: 7px;
    bottom: max(9px, env(safe-area-inset-bottom));
    z-index: 42;
    display: none;
    grid-template-columns: 34px 34px;
    gap: 4px;
    padding: 4px;
    border: 1px solid #aebfc7;
    border-radius: 10px;
    background: rgba(255, 254, 249, .96);
    box-shadow: 0 5px 16px rgba(39, 65, 76, .20);
    backdrop-filter: blur(10px);
  }

  .mobile-command-navigator.has-overflow { display: grid; }
  .mobile-command-navigator button {
    width: 34px;
    height: 36px;
    border: 1px solid #b8c7ce;
    border-radius: 7px;
    background: linear-gradient(145deg, #edf8f5, #eee9fa);
    color: #185b61;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
  }
  .mobile-command-navigator button:hover:not(:disabled) {
    border-color: #6f9f9c;
    background: #fff;
    color: #3f2c79;
  }
  .mobile-command-navigator button:disabled {
    border-color: transparent;
    background: transparent;
    color: #9dabb2;
    opacity: .58;
  }
}

@media (min-width: 981px) and (max-width: 1420px) {
  .mobile-command-navigator {
    top: 18px;
    bottom: auto;
  }
}

@media (max-width: 620px) {
  .tool-rail #mobileResizeButton { order: -10; }
  .tool-rail #mobileSaveButton { order: -9; }
  .tool-rail #mobileProjectsButton { order: -8; }
  .tool-rail #mobileUndoButton { order: -7; }
  .tool-rail #mobileRedoButton {
    order: -6;
    margin-right: 5px;
  }
}

@media (prefers-contrast: more) and (max-width: 980px) {
  .mobile-command-navigator,
  .mobile-command-navigator button { border-width: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .tool-rail { scroll-behavior: auto; }
}
