#tbgMegaphoneBanner[hidden],#tbgMegaphoneAdmin[hidden]{display:none!important}
#tbgMegaphoneBanner{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:99990;width:min(420px,calc(100vw - 32px));box-sizing:border-box;padding:16px 20px;border-radius:16px;background:rgba(24,42,66,.96);color:white;box-shadow:0 12px 36px #0004;text-align:center;pointer-events:none;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6}
.tbg-megaphone-head{margin-bottom:8px;font-size:15px}.tbg-megaphone-progress{position:absolute;bottom:0;left:0;height:3px;width:100%;background:#7dd3fc;transform-origin:left}.tbg-megaphone-show .tbg-megaphone-progress{animation:tbgMegaCount 10s linear forwards}@keyframes tbgMegaCount{to{transform:scaleX(0)}}
#tbgMegaphoneOpen{margin-left:6px;border:1px solid #b7cce4;background:#e9f6ff;border-radius:8px;padding:4px 8px;cursor:pointer}
#tbgMegaphoneAdmin{position:fixed;inset:0;z-index:100010;background:#071b35b8;display:grid;place-items:center;padding:18px;box-sizing:border-box}
.tbg-megaphone-form{width:min(440px,100%);background:#fff;color:#223b56;border-radius:16px;padding:20px;display:grid;gap:10px;box-shadow:0 15px 55px #0004}
.tbg-megaphone-form header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.tbg-megaphone-form header button{border:0;background:transparent;font-size:20px;cursor:pointer}
.tbg-megaphone-form label{font-weight:700}.tbg-megaphone-form textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid #afc0d3;border-radius:9px;padding:10px;font:inherit;color:#223b56;background:#fff}
#tbgMegaError{color:#c33246;min-height:1.2em;margin:0;font-size:13px}.tbg-megaphone-actions{display:flex;gap:8px;justify-content:flex-end}.tbg-megaphone-actions button{padding:9px 15px;border-radius:9px;border:1px solid #b4c5d8;cursor:pointer}.tbg-megaphone-actions button[type=submit]{background:#2275bd;color:#fff;border:0}.tbg-megaphone-actions button:disabled{opacity:.5}

#tbgMegaInlinePreview[hidden]{display:none!important}
#tbgMegaInlinePreview{border:1px solid #b7cce4;background:#f1f7fd;border-radius:10px;padding:12px;color:#223b56;max-height:180px;overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap}
#tbgMegaInlinePreview p{margin:8px 0 0;line-height:1.5}
.tbg-megaphone-form{max-height:calc(100dvh - 36px);overflow-y:auto}
