.app-mobile-footer {
  display: none;
}

@media (max-width: 640px) {
  .app-mobile-footer {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .app-mobile-footer__inner {
    max-width: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }

  .app-mobile-footer__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    text-decoration: none;
    color: var(--text);
    line-height: 1;
    min-height: 44px;
  }

  .app-mobile-footer__link--primary {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    font-weight: 650;
  }

  .app-mobile-footer__link--disabled {
    opacity: 0.6;
    cursor: default;
  }

  .app-mobile-footer__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 86%, var(--bg));
    color: var(--muted);
    font-size: 12px;
    line-height: 1;
  }

  body.note-surface .app-mobile-footer {
    display: none;
  }
}


