:root { --pp-vv-shift: 0px; }
#pp-tabbar {
  display: none;
}
#pp-more,
#pp-more-backdrop {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }
  #pp-tabbar {
    position: fixed;
    z-index: 70;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    margin: 0;
    background: #0f1117;
    color: #c5cad3;
    border-top: 1px solid #2a2f3d;
    padding: 2px 0 calc(2px + env(safe-area-inset-bottom));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    transform: translateY(calc(-1 * var(--pp-vv-shift)));
  }
  #pp-tabbar a,
  #pp-tabbar button {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 4px 2px 6px;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
  }
  #pp-tabbar svg {
    width: 22px;
    height: 22px;
    display: block;
  }
  #pp-tabbar [aria-current="page"],
  #pp-tabbar .is-open {
    color: #4f8cff;
  }
  #pp-more-backdrop {
    position: fixed;
    z-index: 84;
    top: 0;
    left: 0;
    right: 0;
    bottom: calc(62px + env(safe-area-inset-bottom));
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(15, 17, 23, 0.45);
    cursor: pointer;
    transform: translateY(calc(-1 * var(--pp-vv-shift)));
  }
  #pp-more-backdrop[hidden],
  #pp-more[hidden] {
    display: none;
  }
  #pp-more {
    position: fixed;
    z-index: 90;
    left: 0;
    right: 0;
    bottom: calc(62px + env(safe-area-inset-bottom));
    display: block;
    max-height: min(70vh, 480px);
    overflow: auto;
    background: #fff;
    color: #16202e;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.22);
    padding: 8px 8px 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    transform: translateY(calc(-1 * var(--pp-vv-shift)));
  }
  #pp-more .pp-more-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px 4px;
  }
  #pp-more .pp-more-head b {
    font-size: 16px;
  }
  #pp-more [data-close] {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #f0f4ff;
    color: #16202e;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }
  #pp-more a {
    display: block;
    padding: 14px 12px;
    border-top: 1px solid #e3e8f0;
    color: #16202e;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
  }
  #pp-more a[aria-current="page"] {
    color: #4f8cff;
  }
}

@media print {
  #pp-tabbar,
  #pp-more,
  #pp-more-backdrop {
    display: none !important;
  }
  body {
    padding-bottom: 0 !important;
  }
}
