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

#pg-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: white;
    display: flex;
    justify-content: center;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 24px #0f172a0d;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}

#pg-nav button {
    flex: 1;
    max-width: 150px;
    min-height: 54px;
    border: 0;
    background: transparent;
    color: #64748b;
    font: 600 12px Arial, sans-serif;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 6px;
}

#pg-nav button.active {
    color: #2563eb;
}

#pg-nav svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#pg-panel {
    width: min(520px, calc(100% - 32px));
    max-height: 75vh;
    box-sizing: border-box;
    border: 0;
    border-radius: 22px;
    padding: 24px;
    color: #0f172a;
    background: white;
    box-shadow: 0 15px 70px #0003;
}

#pg-panel::backdrop {
    background: #0f172a88;
}

#pg-panel h2 {
    margin: 0 0 18px;
}

#pg-panel p {
    line-height: 1.6;
}

.pg-location {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    margin: 12px 0;
}

.pg-action {
    display: inline-block;
    background: #2563eb;
    color: white;
    border: 0;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.pg-close {
    float: right;
    border: 0;
    background: #f1f5f9;
    color: #334155;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
}

#installPrintGo {
    bottom: calc(88px + env(safe-area-inset-bottom)) !important;
}
