/* SOMA ∅ V23 — compact mobile utility dock. Desktop remains unchanged. */
.mobile-utility-bar,
.mobile-evolution-toggle {
  display: none;
}

@media (max-width: 900px) {
  html {
    scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .mobile-utility-bar {
    display: block;
    position: fixed;
    z-index: 44;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(10px + env(safe-area-inset-bottom));
    height: 64px;
    border: 1px solid rgba(255, 139, 204, .48);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(98, 41, 155, .95), rgba(23, 116, 150, .95));
    box-shadow: 0 18px 50px rgba(40, 15, 91, .32);
    pointer-events: none;
  }

  .site-breath {
    z-index: 45;
    left: max(10px, env(safe-area-inset-left));
    right: auto;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: calc(50% - max(10px, env(safe-area-inset-left)));
    height: 64px;
    min-width: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: 15px 0 0 15px;
    background: transparent;
    box-shadow: none;
  }

  .site-breath button {
    width: 100%;
    height: 48px;
    min-height: 48px;
    justify-content: center;
  }

  .site-breath small {
    display: none;
  }

  .site-breath-label-full {
    display: none;
  }

  .site-breath-label-short {
    display: inline;
  }

  .mobile-evolution-toggle {
    display: flex;
    position: fixed;
    z-index: 45;
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: calc(50% - max(10px, env(safe-area-inset-right)));
    height: 64px;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    border: 0;
    border-left: 1px solid rgba(109, 247, 228, .25);
    border-radius: 0 15px 15px 0;
    color: #fff;
    background: transparent;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    touch-action: manipulation;
  }

  .mobile-evolution-toggle strong {
    color: #d9faff;
    font-size: 14px;
  }

  .evolution-instrument {
    display: none !important;
  }

  html.mobile-evolution-open .evolution-instrument {
    display: grid !important;
    z-index: 46;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    min-height: 104px;
    max-height: 35dvh;
    overflow: auto;
    padding: 12px 58px 12px 14px;
    border-radius: 15px;
    box-shadow: 0 18px 50px rgba(40, 15, 91, .42);
  }

  html.mobile-evolution-open .mobile-evolution-toggle {
    background: rgba(9, 12, 31, .22);
  }

  .animans-shell:has(.primary-nav.is-open) .mobile-utility-bar,
  .animans-shell:has(.primary-nav.is-open) .mobile-evolution-toggle {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 360px) {
  .site-breath,
  .mobile-evolution-toggle {
    padding-left: 7px;
    padding-right: 7px;
  }

  .mobile-evolution-toggle {
    gap: 5px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-utility-bar,
  .mobile-evolution-toggle,
  .evolution-instrument {
    transition: none !important;
  }
}
