/* GAT Exam — PWA UI (toasts / banners). Linked from includes/pwa.php so strict CSPs allow it. */
.gxp{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:2147483000;max-width:min(94vw,440px);width:max-content;font:500 14px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#fff;background:#2a0f1c;border-radius:14px;padding:12px 14px;box-shadow:0 10px 34px rgba(0,0,0,.35);display:flex;gap:10px;align-items:center;animation:gxpIn .25s ease-out}
.gxp b{display:block;font-weight:700}
.gxp small{display:block;opacity:.8;font-size:12.5px}
.gxp .tx{flex:1;min-width:0}
.gxp button{font-weight:600;font-size:13px;font-family:inherit;border:0;border-radius:10px;padding:9px 13px;cursor:pointer;background:#cc4a74;color:#fff;white-space:nowrap}
.gxp button.g{background:transparent;color:#fff;opacity:.75}
.gxp.off{background:#b4232c;top:calc(10px + env(safe-area-inset-top,0px));bottom:auto;padding:8px 14px;border-radius:999px}
.gxp.on{background:#1f7a4d;top:calc(10px + env(safe-area-inset-top,0px));bottom:auto;padding:8px 14px;border-radius:999px}

@keyframes gxpIn{from{opacity:0;transform:translate(-50%,10px)}
to{opacity:1;transform:translate(-50%,0)}
}
@media (prefers-reduced-motion:reduce){.gxp{animation:none}
}

/* ---------- Install sheet (bottom sheet on phones, centred card on desktop) ---------- */
.gxi{position:fixed;inset:0;z-index:2147483100;display:flex;align-items:flex-end;justify-content:center;font:500 15px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;animation:gxiFade .25s ease-out}
.gxi.out{opacity:0;transition:opacity .2s}
.gxi-bd{position:absolute;inset:0;background:rgba(42,15,28,.55);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.gxi-card{position:relative;width:100%;max-width:460px;max-height:92vh;overflow:auto;background:#fff;color:#2a0f1c;border-radius:24px 24px 0 0;padding:22px 20px calc(18px + env(safe-area-inset-bottom,0px));box-shadow:0 -12px 50px rgba(0,0,0,.35);animation:gxiUp .32s cubic-bezier(.2,.9,.3,1)}
.gxi-card:before{content:"";position:absolute;top:0;left:0;right:0;height:96px;background:linear-gradient(135deg,#cc4a74,#7a2347);opacity:.1;border-radius:24px 24px 0 0;pointer-events:none}
.gxi-x{position:absolute;top:10px;right:12px;width:34px;height:34px;border:0;border-radius:50%;background:#2a0f1c12;color:#2a0f1c;font-size:22px;line-height:1;cursor:pointer}
.gxi-hd{position:relative;display:flex;gap:14px;align-items:center;padding-right:30px;margin-bottom:14px}
.gxi-hd img{width:56px;height:56px;border-radius:15px;flex:none;box-shadow:0 6px 18px rgba(204,74,116,.4)}
.gxi-hd h2{margin:0;font-size:20px;line-height:1.2;font-weight:800;letter-spacing:-.01em}
.gxi-hd p{margin:3px 0 0;font-size:13px;color:#2a0f1c99}
.gxi-ls{list-style:none;margin:18px 0 16px;padding:0;display:grid;gap:12px}
.gxi-ls li{display:flex;gap:12px;align-items:flex-start}
.gxi-ls b{display:block;font-size:14.5px;font-weight:700}
.gxi-ls small{display:block;font-size:12.8px;color:#2a0f1c99;line-height:1.4}
.gxi-ic{flex:none;width:36px;height:36px;border-radius:11px;background:#cc4a741a;display:grid;place-items:center}
.gxi svg{width:19px;height:19px;fill:none;stroke:#cc4a74;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.gxi-bt{display:grid;gap:8px}
.gxi-card button{font:inherit;cursor:pointer}
.gxi-p{border:0;border-radius:14px;padding:14px;font-weight:700;font-size:15.5px;color:#fff;background:linear-gradient(135deg,#cc4a74,#a02f58);box-shadow:0 8px 22px rgba(204,74,116,.4);transition:transform .12s}
.gxi-p:active{transform:scale(.98)}
.gxi-g{border:0;background:transparent;color:#2a0f1c99;padding:10px;font-weight:600;font-size:14px;border-radius:12px}
.gxi-g:hover{background:#2a0f1c0d}
.gxi-ft{margin:10px 0 0;text-align:center;font-size:12px;color:#2a0f1c88;display:flex;gap:6px;align-items:center;justify-content:center}
.gxi-ft svg{width:14px;height:14px}
.gxi-rs{display:grid;gap:8px;margin:2px 0 14px}
.gxi-rs button{text-align:left;border:1.5px solid #2a0f1c1f;background:#fff;color:#2a0f1c;border-radius:13px;padding:13px 14px;font-weight:600;font-size:14.5px;transition:border-color .15s,background .15s}
.gxi-rs button:hover,.gxi-rs button:focus-visible{border-color:#cc4a74;background:#cc4a740d;outline:0}
.gxi-an{margin:0 0 16px;padding:14px;border-radius:14px;background:#cc4a740f;border-left:4px solid #cc4a74;font-size:14.5px;line-height:1.55}
.gxi-bk{display:block;margin:8px auto 0;border:0;background:transparent;color:#cc4a74;font-weight:600;font-size:13px;padding:6px}
.gxi-ios{margin:0 0 14px;padding:14px;border-radius:14px;background:#cc4a740f}
.gxi-ios ol{margin:6px 0 0;padding-left:20px;font-size:14px}
.gxi-inl{display:inline-block;vertical-align:middle}
.gxi-inl svg{width:17px;height:17px}
@media (min-width:600px){.gxi{align-items:center}.gxi-card{border-radius:24px;padding:26px 26px 22px}.gxi-card:before{border-radius:24px 24px 0 0}}
@keyframes gxiUp{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
@keyframes gxiFade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.gxi,.gxi-card{animation:none}}

/* Telegram-style top pill for a message that arrives while the app is open */
.gxpill{position:fixed;left:50%;top:calc(env(safe-area-inset-top,0px) + 8px);z-index:2147483000;display:flex;align-items:center;gap:10px;max-width:min(92vw,420px);padding:6px 16px 6px 6px;border:0;border-radius:999px;background:rgba(24,28,36,.94);color:#fff;font:inherit;text-align:left;cursor:pointer;box-shadow:0 10px 30px -8px rgba(0,0,0,.55);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transform:translate(-50%,-140%);opacity:0;pointer-events:none;transition:transform .32s cubic-bezier(.2,.9,.3,1.2),opacity .2s}
.gxpill.on{transform:translate(-50%,0);opacity:1;pointer-events:auto}
.gxpill img{width:34px;height:34px;border-radius:50%;object-fit:cover;flex:none;background:#fff}
.gxpill-t{display:flex;flex-direction:column;min-width:0}
.gxpill-t b{font-size:13.5px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gxpill-t small{font-size:12.5px;line-height:1.25;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (prefers-reduced-motion:reduce){.gxpill{transition:opacity .2s}}
