:root{--tbgp-accent:#7957ed}
.tbgp-root{font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f5f6ff;box-sizing:border-box;text-align:left;letter-spacing:normal}
.tbgp-root *{box-sizing:border-box}.tbgp-root [hidden]{display:none!important}
.tbgp-root button{font:inherit;cursor:pointer;text-transform:none;letter-spacing:normal;border:0;box-shadow:none;min-height:44px;border-radius:12px;padding:11px 17px;background:#262a3e;color:#f5f6ff;line-height:1.3}
.tbgp-root button:focus-visible,.tbgp-root a:focus-visible{outline:3px solid #b7a7ff;outline-offset:3px}
.tbgp-root .tbgp-primary{background:var(--tbgp-accent);color:#fff;font-weight:700}
.tbgp-root .tbgp-text{background:transparent;color:#b6bdd3;font-size:13px;text-decoration:underline;padding:8px}
.tbgp-root p{font:inherit;color:#b8bfd6;margin:12px 0 20px}.tbgp-root h2{font:750 26px/1.18 system-ui;color:#fff;margin:14px 0 12px;letter-spacing:-.6px}
.tbgp-dialog{position:fixed;inset:auto 20px 24px auto;z-index:2147483000;width:min(420px,calc(100vw - 32px));margin:0;padding:28px;border-radius:24px;border:1px solid #353a54;background:radial-gradient(ellipse at top right,#29223f,transparent 70%),#141827;color:#fff;box-shadow:0 22px 80px #0007;max-height:calc(100dvh - 40px);overflow:auto}
.tbgp-dialog::backdrop{background:#080b18a6;backdrop-filter:blur(4px)}
.tbgp-dialog[data-placement=dialog],.tbgp-preferences{inset:50% auto auto 50%;transform:translate(-50%,-50%)}
.tbgp-dialog[data-placement=banner]{width:min(660px,calc(100vw - 32px));padding:22px}.tbgp-dialog[data-placement=banner] h2{font-size:22px}
.tbgp-brand{display:flex;gap:12px;align-items:center;padding-right:32px}.tbgp-brand img{width:54px;height:54px;object-fit:cover;border-radius:14px}.tbgp-brand strong{display:block;font-size:16px;color:#fff}.tbgp-eyebrow{display:block;color:#b7a7ff;font-size:11px;letter-spacing:1.5px;text-transform:uppercase;margin-top:3px}
.tbgp-root .tbgp-close{position:absolute;right:12px;top:12px;background:transparent;font-size:22px;padding:8px;width:44px;color:#b8bfd6}
.tbgp-benefits{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}.tbgp-benefits span{font-size:11px;padding:5px 9px;border:1px solid #353a54;border-radius:999px;color:#d5d8ea}
.tbgp-actions{display:flex;gap:9px}.tbgp-actions button{flex:1}.tbgp-root .tbgp-never{display:block;margin:12px auto -8px}
.tbgp-status{font-size:13px!important;white-space:pre-line;margin:12px 0!important}
.tbgp-nav{position:fixed;bottom:0;left:0;right:0;z-index:10000;display:flex;justify-content:center;gap:5px;background:#141827f5;border-top:1px solid #353a54;padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px));backdrop-filter:blur(14px)}
.tbgp-nav a,.tbgp-nav button{flex:1;max-width:150px;text-align:center;text-decoration:none;color:#c4cae0;background:transparent;font:600 12px/1.4 system-ui;min-height:48px;padding:7px;border-radius:12px}
.tbgp-nav a[aria-current=page]{background:#7957ed28;color:#cbbdff}.tbgp-nav b{display:block;font-size:19px;font-weight:500;margin-bottom:2px}
body.tbgp-with-nav{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))!important}
.tbgp-toast{position:fixed;left:50%;bottom:calc(90px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:10001;max-width:min(540px,calc(100vw - 32px));padding:12px 18px;border:1px solid #353a54;border-radius:14px;background:#141827;color:#d8dcf0;box-shadow:0 12px 36px #0005;font-size:13px}
.tbgp-toast button{margin-left:10px}.tbgp-check{display:flex;gap:10px;align-items:center;margin:10px 0;color:#d8dcf0}.tbgp-check input{width:18px;height:18px;accent-color:var(--tbgp-accent)}
.tbgp-section{border-top:1px solid #353a54;padding-top:16px;margin-top:18px}.tbgp-section h3{font:700 16px system-ui;color:#fff;margin:0 0 10px}.tbgp-section button{margin:4px 4px 4px 0;font-size:13px}
@media(max-width:600px){.tbgp-dialog:not(.tbgp-preferences){inset:auto 12px calc(12px + env(safe-area-inset-bottom,0px)) 12px;width:auto;transform:none;padding:24px}.tbgp-dialog[data-placement=dialog]{inset:50% 16px auto 16px;transform:translateY(-50%)}.tbgp-preferences{width:calc(100vw - 24px);padding:24px}.tbgp-root h2{font-size:25px}}
@media(prefers-reduced-motion:no-preference){.tbgp-dialog[open]{animation:tbgp-appear .18s ease-out}@keyframes tbgp-appear{from{opacity:0}to{opacity:1}}}
/* Fourth layout: an edge-attached, softly lit installation sheet. */
html.tbgp-sheet-open{overflow:hidden}
.tbgp-root .tbgp-dialog[data-placement=rise]{max-width:100vw}
.tbgp-root .tbgp-dialog[data-placement=rise]{inset:auto 0 0!important;transform:none;width:min(520px,100%);margin:0 auto;padding:42px 26px calc(20px + env(safe-area-inset-bottom,0px));border:1px solid #d9d5e4;border-bottom:0;border-radius:26px 26px 0 0;background:linear-gradient(160deg,#eeebf4,#e5e3ee);color:#292637;box-shadow:0 -14px 70px #15102a35;text-align:center;max-height:90dvh;overscroll-behavior:contain}
.tbgp-dialog[data-placement=rise]::backdrop{background:#18152380;backdrop-filter:blur(2px)}
.tbgp-sheet-handle{position:absolute;top:10px;left:50%;transform:translateX(-50%);width:40px;height:5px;border-radius:8px;background:#cbc6db}
.tbgp-root .tbgp-dialog[data-placement=rise] .tbgp-close{color:#625a76;top:13px;right:12px}
.tbgp-dialog[data-placement=rise] .tbgp-brand{display:flex;flex-direction:column;padding:0;gap:9px;margin:0 0 14px}
.tbgp-dialog[data-placement=rise] .tbgp-brand img{width:76px;height:76px;max-width:76px;border-radius:22px;box-shadow:0 10px 24px #58478a20}
.tbgp-dialog[data-placement=rise] .tbgp-brand strong{color:#6b627e;font-size:12px;font-weight:600;letter-spacing:.4px}
.tbgp-dialog[data-placement=rise] .tbgp-eyebrow{display:none}
.tbgp-root .tbgp-dialog[data-placement=rise] h2{color:#282334;font:650 25px/1.2 system-ui;letter-spacing:-.7px;margin:12px auto;max-width:380px}
.tbgp-root .tbgp-dialog[data-placement=rise] p{color:#696175;font-size:14px;line-height:1.6;max-width:390px;margin:0 auto 22px}
.tbgp-dialog[data-placement=rise] .tbgp-benefits{display:none}
.tbgp-dialog[data-placement=rise] .tbgp-actions{flex-direction:column;gap:4px;margin-top:26px}
.tbgp-root .tbgp-dialog[data-placement=rise] .tbgp-actions .tbgp-primary{min-height:52px;border-radius:14px;font-size:16px;box-shadow:0 5px 12px #6850b225}
.tbgp-root .tbgp-dialog[data-placement=rise] .tbgp-actions button:not(.tbgp-primary){color:#655c77;background:transparent;font-size:13px;min-height:40px;padding:10px}
.tbgp-root .tbgp-dialog[data-placement=rise] .tbgp-text{color:#71677e;font-size:11px;min-height:32px;margin:0 auto;padding:6px 12px}
.tbgp-root .tbgp-dialog[data-placement=rise] .tbgp-status:empty{display:none}
.tbgp-root .tbgp-dialog[data-placement=rise] .tbgp-status:not(:empty){margin:12px auto!important}
@media(prefers-reduced-motion:no-preference){.tbgp-root .tbgp-dialog[data-placement=rise][open]{animation:tbgp-rise .46s cubic-bezier(.2,.85,.25,1) both}.tbgp-dialog[data-placement=rise][open]::backdrop{animation:tbgp-appear .3s ease-out}@keyframes tbgp-rise{from{transform:translateY(105%);opacity:.5}to{transform:translateY(0);opacity:1}}}
@media(prefers-reduced-motion:reduce){.tbgp-root .tbgp-dialog[data-placement=rise][open]{animation:none}}
@media(max-height:560px){.tbgp-root .tbgp-dialog[data-placement=rise]{padding-top:30px}.tbgp-dialog[data-placement=rise] .tbgp-brand img{width:48px;height:48px}.tbgp-root .tbgp-dialog[data-placement=rise] h2{font-size:21px}.tbgp-dialog[data-placement=rise] .tbgp-actions{margin-top:12px}}

/* Anchored navigation: rounded upper corners, flush lower edge and safe-area support. */
.tbgp-root .tbgp-nav{gap:4px;padding:8px max(10px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px));border:1px solid #ffffff14;border-bottom:0;border-radius:18px 18px 0 0;background:linear-gradient(180deg,#22263af7,#151929fa);box-shadow:0 -8px 30px #080b1826;backdrop-filter:blur(20px)}
.tbgp-root .tbgp-nav a,.tbgp-root .tbgp-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:54px;padding:6px 4px;border-radius:12px;color:#aeb7d0;font:600 11px/1.3 system-ui;transition:background .18s ease,color .18s ease;box-shadow:none}
.tbgp-root .tbgp-nav a[aria-current=page]{color:#fff;background:linear-gradient(135deg,color-mix(in srgb,var(--tbgp-accent) 32%,transparent),#ffffff08);box-shadow:inset 0 0 0 1px #ffffff10}
.tbgp-root .tbgp-nav svg{width:22px;height:22px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(hover:hover){.tbgp-root .tbgp-nav a:hover,.tbgp-root .tbgp-nav button:hover{color:#fff;background:#ffffff0d}}
@media(prefers-reduced-motion:reduce){.tbgp-root .tbgp-nav a,.tbgp-root .tbgp-nav button{transition:none}}
