:root{--tgup-pwa-red:#991b1b;--tgup-pwa-ink:#172033;--tgup-pwa-muted:#667085;--tgup-pwa-line:#e6e8ee}
.tgup-pwa-public-install{position:fixed;left:18px;bottom:18px;z-index:3900;border:1px solid rgba(153,27,27,.18);background:#fff;color:var(--tgup-pwa-red);border-radius:999px;padding:10px 15px;font:700 .86rem/1 system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 14px 38px rgba(43,16,22,.16);display:flex;align-items:center;gap:8px;cursor:pointer}.tgup-pwa-public-install[hidden]{display:none!important}
.tgup-pwa-toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,24px);z-index:5000;max-width:min(520px,calc(100vw - 30px));background:#171b26;color:#fff;border-radius:16px;padding:13px 16px;box-shadow:0 18px 55px rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:.22s ease;display:flex;align-items:center;gap:12px;font:600 .88rem/1.4 system-ui,-apple-system,"Segoe UI",sans-serif}.tgup-pwa-toast.is-visible{opacity:1;transform:translate(-50%,0);pointer-events:auto}.tgup-pwa-toast button{margin-left:auto;border:0;background:#fff;color:#171b26;border-radius:10px;padding:7px 10px;font-weight:800;cursor:pointer}.tgup-pwa-toast.is-warning{background:#7c2d12}.tgup-pwa-toast.is-success{background:#065f46}
.tgup-app-center-entry .tgup-app-center-button{width:40px;height:40px;display:grid;place-items:center;border:1px solid rgba(153,27,27,.13);border-radius:13px;background:#fff;color:#7f1d1d;box-shadow:0 5px 14px rgba(30,41,59,.07);position:relative;cursor:pointer}.tgup-app-center-entry .tgup-app-center-button:hover{background:#fff5f5}.tgup-app-center-dot{position:absolute;width:8px;height:8px;border-radius:999px;background:#dc2626;right:5px;top:5px;box-shadow:0 0 0 3px #fff}.tgup-app-center-dot.is-ready{background:#059669}
.tgup-app-center-overlay{position:fixed;inset:0;z-index:4800;background:rgba(17,24,39,.42);backdrop-filter:blur(7px);display:none;align-items:center;justify-content:center;padding:18px}.tgup-app-center-overlay.is-open{display:flex}.tgup-app-center{width:min(620px,100%);max-height:min(760px,calc(100vh - 36px));overflow:auto;background:#fff;border:1px solid rgba(255,255,255,.8);border-radius:28px;box-shadow:0 30px 95px rgba(15,23,42,.28)}.tgup-app-center__header{padding:24px 26px 18px;border-bottom:1px solid var(--tgup-pwa-line);display:flex;gap:16px;align-items:flex-start}.tgup-app-center__logo{width:58px;height:58px;border-radius:18px;object-fit:contain;border:1px solid #f0e5e6}.tgup-app-center__title{margin:2px 0 4px;font-size:1.25rem;font-weight:900;color:var(--tgup-pwa-ink)}.tgup-app-center__subtitle{margin:0;color:var(--tgup-pwa-muted);font-size:.88rem;line-height:1.5}.tgup-app-center__close{margin-left:auto;width:38px;height:38px;border:0;border-radius:12px;background:#f7f7f9;color:#475467;cursor:pointer;font-size:1.2rem}.tgup-app-center__body{padding:20px 26px 26px}.tgup-app-feature{border:1px solid var(--tgup-pwa-line);border-radius:20px;padding:17px 18px;margin-bottom:14px}.tgup-app-feature:last-child{margin-bottom:0}.tgup-app-feature__top{display:flex;align-items:flex-start;gap:12px}.tgup-app-feature__icon{width:42px;height:42px;border-radius:14px;background:#fff1f2;color:#991b1b;display:grid;place-items:center;flex:0 0 auto}.tgup-app-feature h4{font-size:.98rem;margin:1px 0 4px;font-weight:900;color:var(--tgup-pwa-ink)}.tgup-app-feature p{font-size:.84rem;color:var(--tgup-pwa-muted);line-height:1.5;margin:0}.tgup-app-feature__actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.tgup-app-btn{border:1px solid var(--tgup-pwa-line);background:#fff;color:#344054;border-radius:12px;padding:9px 12px;font-size:.82rem;font-weight:800;cursor:pointer}.tgup-app-btn.is-primary{background:#991b1b;border-color:#991b1b;color:#fff}.tgup-app-btn.is-danger{color:#b42318;background:#fff5f5;border-color:#fee4e2}.tgup-app-btn:disabled{opacity:.5;cursor:not-allowed}.tgup-app-status{display:inline-flex;align-items:center;gap:7px;margin-top:10px;padding:6px 10px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:.76rem;font-weight:800}.tgup-app-status::before{content:"";width:7px;height:7px;border-radius:50%;background:#98a2b3}.tgup-app-status.is-success{background:#ecfdf3;color:#027a48}.tgup-app-status.is-success::before{background:#12b76a}.tgup-app-status.is-warning{background:#fffaeb;color:#b54708}.tgup-app-status.is-warning::before{background:#f79009}.tgup-app-status.is-danger{background:#fef3f2;color:#b42318}.tgup-app-status.is-danger::before{background:#f04438}
.tgup-push-foreground{position:fixed;right:18px;top:18px;z-index:5100;width:min(390px,calc(100vw - 36px));background:#fff;border:1px solid #eceef2;border-radius:18px;padding:15px;box-shadow:0 20px 65px rgba(15,23,42,.22);display:flex;gap:12px;align-items:flex-start;animation:tgupPushIn .22s ease both}.tgup-push-foreground__icon{width:42px;height:42px;border-radius:13px;background:#fff1f2;color:#991b1b;display:grid;place-items:center}.tgup-push-foreground__body{min-width:0;flex:1}.tgup-push-foreground__title{font-size:.9rem;font-weight:900;color:#172033;margin:1px 0 3px}.tgup-push-foreground__text{font-size:.8rem;color:#667085;line-height:1.4}.tgup-push-foreground__close{border:0;background:transparent;color:#98a2b3;cursor:pointer}.tgup-push-foreground[data-url]{cursor:pointer}@keyframes tgupPushIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
@media(max-width:575.98px){.tgup-app-center-overlay{padding:0;align-items:flex-end}.tgup-app-center{border-radius:26px 26px 0 0;max-height:88vh}.tgup-app-center__header,.tgup-app-center__body{padding-left:18px;padding-right:18px}.tgup-pwa-public-install{left:12px;bottom:12px}.tgup-push-foreground{right:12px;top:12px;width:calc(100vw - 24px)}}@media(prefers-reduced-motion:reduce){.tgup-pwa-toast,.tgup-push-foreground{transition:none;animation:none}}
