#ypMobileStatus{position:fixed;bottom:calc(8px + env(safe-area-inset-bottom));left:8px;z-index:1000;max-width:calc(100vw - 32px);border:1px solid #dfe7ef;border-radius:8px;background:#fff;color:#123d67;padding:6px 10px;font:12px/1.4 system-ui;box-shadow:0 2px 8px #123d6720;pointer-events:none}
body:has(dialog[open]) #ypMobileStatus{display:none}
html.yp-offline-view body>:not(#ypOfflineView):not(#ypMobileStatus):not(#ypWorkerUpdatesShortcut):not(#ypWorkerUpdatesDialog){display:none!important}
html.yp-app-loading.yp-offline-view body>#ypOfflineView,html.yp-app-loading.yp-offline-view body>#ypMobileStatus{display:block!important}
#ypOfflineView{box-sizing:border-box;max-width:760px;margin:auto;padding:20px 16px 60px;font:15px/1.5 system-ui;color:#152536}
#ypOfflineView header{display:flex;gap:16px;align-items:center;justify-content:space-between}
#ypOfflineView nav{display:flex;gap:8px;margin:16px 0}
#ypOfflineView button,#ypOfflineView input,#ypOfflineView select,#ypOfflineView textarea{font:inherit;box-sizing:border-box;padding:10px;border:1px solid #cbd5e1;border-radius:6px;max-width:100%}
#ypOfflineView button{background:#123d67;color:#fff;cursor:pointer}
#ypOfflineView label{display:grid;gap:4px;margin:12px 0}
#ypOfflineView article{border:1px solid #dfe7ef;background:#fff;padding:12px;border-radius:8px;margin:10px 0}
#ypOfflineView [role=alert]{color:#9f1239}
.yp-report-update-dialog{position:fixed;z-index:12000;top:50%;left:50%;transform:translate(-50%,-50%);box-sizing:border-box;width:min(420px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;margin:0;padding:24px;border:1px solid #cbd5e1;border-radius:16px;background:#fff;color:#152536;box-shadow:0 18px 60px #0f172a55;font:15px/1.5 system-ui}
.yp-report-update-dialog.yp-report-update-fallback{display:block}
.yp-report-update-dialog h2{margin:0 0 12px;color:#123d67;font-size:20px;line-height:1.25}
.yp-report-update-dialog p{margin:0 0 14px}
.yp-report-update-dialog [role=alert]{color:#9f1239;overflow-wrap:anywhere}
.yp-update-actions{display:grid;gap:8px}
.yp-report-update-dialog button{width:100%;min-height:48px;box-sizing:border-box;padding:12px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;color:#123d67;font:inherit;font-weight:700;overflow-wrap:anywhere;cursor:pointer}
.yp-report-update-dialog .erp-btn{border-color:#123d67;background:#123d67;color:#fff}
.yp-report-update-dialog .yp-update-close{position:absolute;top:6px;right:8px;width:40px;min-height:40px;padding:4px;border:0;background:transparent;font-size:24px}
.yp-report-update-dialog button:disabled{opacity:.65}
#ypWorkerUpdatesShortcut{position:fixed;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:1100;max-width:calc(100vw - 24px);min-height:44px;padding:8px 12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#123d67;font:13px/1.4 system-ui;box-shadow:0 2px 8px #123d6720}
#ypWorkerUpdatesDialog:not([open]){display:none!important}
#ypWorkerUpdatesPanel pre,#ypUpdates pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font-size:12px}
@media(max-width:360px){.yp-report-update-dialog{padding:20px 16px 16px}.yp-report-update-dialog h2{font-size:18px}}
