.pwa-status { position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 110; background: var(--sf); color: var(--tx); border: 1px solid var(--ln); max-width: calc(100% - 32px); }
.pwa-status[hidden] { display: none; }
.pwa-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pwa-proof { display: grid; gap: 12px; margin-block: 16px; }
.pwa-signature { display: block; width: 100%; height: 160px; border: 1px solid var(--ln); border-radius: 8px; background: #fff; touch-action: none; }
.pwa-camera { width: 100%; max-height: 50vh; border-radius: 12px; background: var(--sf2); }
.pwa-devices { display: grid; gap: 12px; }
.pwa-device-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.pwa-device-row > span { overflow-wrap: anywhere; }
.pwa-login-device { margin-top: 12px; }
@media (max-width: 700px) {
    .pwa-status { bottom: calc(72px + env(safe-area-inset-bottom)); }
    .bnav { padding-bottom: env(safe-area-inset-bottom); }
    .bnav button, .btn, .ib, input:not([type=checkbox]):not([type=radio]), select { min-height: 44px; }
    .bnav button, .ib { min-width: 44px; }
    .mainc { padding-bottom: calc(72px + env(safe-area-inset-bottom)); min-width: 0; }
    #modal { max-height: calc(100dvh - 16px); }
    .pwa-controls .btn { flex: 1; }
}
#app-update {
    position: fixed;
    inset-inline-start: 16px;
    inset-block-end: max(16px, env(safe-area-inset-bottom));
    z-index: 35;
    display: flex;
    align-items: center;
    gap: 12px;
    max-inline-size: calc(100% - 32px);
    padding: 8px 12px;
    background: var(--sf);
    color: var(--tx);
    border: 1px solid var(--ln);
    border-radius: 12px;
    box-shadow: 0 8px 24px #13243a24;
}
#app-update[hidden] { display: none; }
#app-update .btn { flex-shrink: 0; }
@media (max-width: 760px) {
    #app-update {
        inset-inline: 12px;
        inset-block-end: calc(72px + env(safe-area-inset-bottom));
        max-inline-size: none;
        justify-content: space-between;
    }
    #app-update .btn { min-height: 44px; }
}
@media print { .pwa-status, .pwa-controls, #app-update { display: none !important; } }
