.mobile-dock,
.dock-sheet {
  display: none;
}

@media (max-width: 767px) {
  .mobile-dock {
    position: fixed;
    z-index: 120;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr 78px 1fr 1fr;
    align-items: center;
    height: 72px;
    padding: 8px 4px;
    overflow: visible;
    background: rgba(17, 17, 23, .94);
    color: rgba(245, 247, 250, .72);
    border: 1px solid rgba(245, 247, 250, .1);
    border-radius: 26px;
    box-shadow: 0 16px 40px rgba(17, 17, 23, .34);
    backdrop-filter: blur(18px);
  }

  .mobile-dock a,
  .mobile-dock button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0 2px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: inherit;
    text-decoration: none;
    font-family: Inter, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.01em;
    cursor: pointer;
  }

  .mobile-dock svg { width: 22px; height: 22px; flex: none; }
  .mobile-dock span { max-width: 100%; text-align: center; }
  .mobile-dock a.is-on { color: #fff; }
  .mobile-dock__wa svg { width: 26px; height: 26px; }
  .mobile-dock__home {
    height: auto;
    color: #fff;
    gap: 5px;
  }
  .mobile-dock__orb {
    width: 62px;
    height: 62px;
    margin-top: -28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #EC2526;
    color: #fff;
    box-shadow: 0 10px 22px rgba(236, 37, 38, .45), 0 0 0 5px #111117;
  }
  .mobile-dock__home.is-on .mobile-dock__orb { background: #c81e1f; }
  .mobile-dock__orb svg { width: 26px; height: 26px; }

  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  body > button[style*="2147483000"] {
    width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    border: 0 !important;
  }
  body > div[style*="2147483001"] { display: none !important; }

  .dock-sheet {
    display: block;
  }
  .dock-sheet[hidden] { display: none !important; }
  .dock-sheet__backdrop {
    position: fixed;
    inset: 0;
    z-index: 130;
    background: rgba(7, 9, 13, .46);
  }
  .dock-sheet__card {
    position: fixed;
    z-index: 131;
    left: 16px;
    right: 16px;
    bottom: calc(96px + env(safe-area-inset-bottom));
    padding: 18px 16px 14px;
    border-radius: 22px;
    background: #16161d;
    color: #f5f7fa;
    border: 1px solid rgba(245, 247, 250, .1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    font-family: Inter, sans-serif;
  }
  .dock-sheet__title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
  }
  .dock-sheet__picked {
    margin: -4px 0 10px;
    color: rgba(245, 247, 250, .7);
    font-size: 13px;
  }
  .dock-sheet__step button,
  .dock-sheet__cancel {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(245, 247, 250, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }
  .dock-sheet__step button:first-child { margin-top: 0; }
  .dock-sheet__back,
  .dock-sheet__cancel {
    background: transparent;
    color: rgba(245, 247, 250, .78);
    text-align: center;
    font-size: 14px;
  }
}
