#pwa-shell{font-family:inherit;font-size:14px;line-height:1.7;color:#f4f6f8;--pwa-accent:#1777ed}
#pwa-shell [hidden]{display:none!important}
#pwa-shell button{font:inherit;min-height:44px;min-width:44px;padding:8px 12px;cursor:pointer;border:1px solid #576576;border-radius:10px;color:#f4f6f8;background:#202936}
#pwa-shell button:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}
#pwa-shell .pwa-controls{position:fixed;inset-inline-start:12px;bottom:calc(100px + env(safe-area-inset-bottom,0px));z-index:55;max-width:min(310px,calc(100vw - 24px));pointer-events:none}
#pwa-shell .pwa-controls>*{pointer-events:auto}
#pwa-shell #pwa-help{box-shadow:0 3px 14px #0005;font-size:12px;background:#151d29eF}
#pwa-shell #pwa-invitation{margin-bottom:8px;padding:10px;border:1px solid #576576;border-radius:12px;background:#151d29;box-shadow:0 3px 14px #0005}
#pwa-shell #pwa-invitation span{display:block;margin-bottom:6px}
#pwa-shell #pwa-invitation button{font-size:13px}
#pwa-shell .pwa-notices{position:fixed;top:12px;inset-inline:12px;z-index:55;display:grid;gap:8px;pointer-events:none}
#pwa-shell #pwa-offline,#pwa-shell #pwa-update{pointer-events:auto;border-radius:12px;box-shadow:0 3px 14px #0005;padding:12px 16px;background:#3b2e14;color:#fff;display:flex;align-items:center;gap:12px}
#pwa-shell #pwa-update{background:#152e4d}
#pwa-shell #pwa-update span{flex:1}
#pwa-shell dialog{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #576576;border-radius:20px;padding:24px;background:#101722;color:#f4f6f8;text-align:right;box-shadow:0 20px 80px #0008}
#pwa-shell dialog::backdrop{background:#0009}
#pwa-shell dialog:not([open]){display:none}
#pwa-shell #pwa-dialog-backdrop{position:fixed;inset:0;background:#0009;z-index:60}
#pwa-shell dialog[data-pwa-fallback][open]{display:block;position:fixed;top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);margin:0;z-index:61;max-height:calc(100vh - 32px)}
#pwa-shell dialog h2{font-size:22px;font-weight:700;margin:0 0 16px}
#pwa-shell dialog img{border-radius:16px;display:block;margin-bottom:12px}
#pwa-shell dialog p{margin:12px 0;white-space:pre-line}
#pwa-shell .pwa-session-note{font-size:12px;color:#bfcbd9}
#pwa-shell .pwa-actions{display:flex;gap:10px;flex-wrap:wrap}
#pwa-shell #pwa-install{background:var(--pwa-accent);border-color:var(--pwa-accent)}
@media print{#pwa-shell{display:none!important}}
