/* South Beach Global — Tony Jr chat widget · SINGLE SOURCE (pkg-279 refactor)
   Every page loads this one stylesheet via /assets/tony-jr/tony-jr.js + a <link> loader.
   Carries the pkg-278 fixes for ALL pages: 16px composer input, 44px close target,
   48px send, launcher raised on small screens, safe-area insets. */
#tjr-btn{position:fixed;right:calc(18px + env(safe-area-inset-right));bottom:calc(18px + env(safe-area-inset-bottom));z-index:9998;width:60px;height:60px;border-radius:50%;border:2px solid #17b8cf;background:#0a1f44;cursor:pointer;box-shadow:0 6px 22px rgba(10,31,68,.35);display:flex;align-items:center;justify-content:center;padding:0}
#tjr-btn:hover{transform:scale(1.05)}
#tjr-btn .tjr-btnava{width:56px;height:56px;border-radius:50%;object-fit:cover;display:block}
#tjr-btn .tjr-presdot{position:absolute;right:0;bottom:0;width:14px;height:14px;border-radius:50%;background:#35d07f;border:2px solid #0a1f44;box-sizing:border-box}

#tjr-panel{position:fixed;right:calc(18px + env(safe-area-inset-right));bottom:calc(88px + env(safe-area-inset-bottom));z-index:9999;width:368px;max-width:calc(100vw - 24px);height:560px;max-height:calc(100vh - 120px);background:#fff;border-radius:16px;box-shadow:0 18px 50px rgba(10,31,68,.35);display:none;flex-direction:column;overflow:hidden;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#14213d}
#tjr-panel.open{display:flex}
#tjr-head{background:#0a1f44;color:#fff;padding:12px 14px;display:flex;align-items:center;gap:10px}
#tjr-head .tjr-name{font-weight:800;font-size:16px;line-height:1.1}
#tjr-head .tjr-ava{width:38px;height:38px;border-radius:50%;object-fit:cover;border:2px solid #17b8cf;flex:none;background:#12305e}
#tjr-head .tjr-sub{font-size:11.5px;opacity:.85;line-height:1.2;margin-top:1px}
#tjr-head 
#tjr-head .tjr-avawrap{position:relative;flex:none;line-height:0}
#tjr-head .tjr-presdot{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border-radius:50%;background:#35d07f;border:2px solid #0a1f44;box-sizing:border-box}
#tjr-close{margin-left:auto;background:none;border:0;color:#fff;font-size:22px;cursor:pointer;line-height:1;min-width:44px;min-height:44px}
#tjr-msgs{flex:1;overflow-y:auto;padding:12px;background:#f4f7fb;display:flex;flex-direction:column;gap:8px}
@keyframes tjr-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.tjr-m{max-width:86%;padding:9px 11px;border-radius:12px;font-size:14px;line-height:1.45;white-space:pre-wrap;word-wrap:break-word;animation:tjr-in .28s ease}
.tjr-m.bot{background:#fff;border:1px solid #dbe4f0;border-bottom-left-radius:4px;align-self:flex-start}
.tjr-m.me{background:#0a1f44;color:#fff;border-bottom-right-radius:4px;align-self:flex-end}
.tjr-m a{color:#0f6cbd;font-weight:600}
.tjr-m.me a{color:#7fd4ff}
.tjr-ts{display:block;font-size:10px;line-height:1.2;opacity:.55;margin-top:4px;text-align:right}
#tjr-note{font-size:11px;color:#5b6b84;padding:8px 12px 0;background:#fff}
#tjr-form{display:flex;gap:6px;padding:8px 12px 12px;background:#fff}
#tjr-in{flex:1;padding:10px;border:1px solid #c6d3e4;border-radius:12px;font-size:16px}
#tjr-send{background:#0a1f44;color:#fff;border:0;border-radius:12px;padding:0 16px;font-weight:800;cursor:pointer;min-height:48px}
.tjr-typing{padding:2px 12px 8px;background:#f4f7fb;display:none}
.tjr-dots{display:inline-flex;gap:4px;background:#fff;border:1px solid #dbe4f0;border-radius:12px;border-bottom-left-radius:4px;padding:10px 12px}
.tjr-dots i{width:7px;height:7px;border-radius:50%;background:#8fa5c0;animation:tjr-b 1.2s infinite}
.tjr-dots i:nth-child(2){animation-delay:.15s}
.tjr-dots i:nth-child(3){animation-delay:.3s}
@keyframes tjr-b{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}
@media (max-width:480px){#tjr-panel{right:calc(12px + env(safe-area-inset-right));bottom:calc(84px + env(safe-area-inset-bottom))}}
@media (max-width:768px){#tjr-btn{bottom:calc(84px + env(safe-area-inset-bottom))}#tjr-panel{bottom:calc(152px + env(safe-area-inset-bottom))}}
#tjr-head .tjr-pres{display:inline-flex;align-items:center;gap:4px;margin-left:7px}
#tjr-head .tjr-dot{width:7px;height:7px;border-radius:50%;background:#35d07f;box-shadow:0 0 0 2px rgba(53,208,127,.25)}
/* Embedded variant (/app/, /es/app/): panel sits in the page flow — no launcher, no close button. Values replicate the former inline /app/ stylesheet exactly. */
#tjr-panel.tjr-embed{position:static;width:auto;max-width:none;height:min(58svh,540px);max-height:none;display:flex;box-shadow:0 10px 30px rgba(10,31,68,.16);font-family:"Manrope",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
#tjr-panel.tjr-embed .tjr-sub{line-height:normal;margin-top:0}
#tjr-panel.tjr-embed #tjr-in{padding:11px;font-size:15px;border-radius:9px}
#tjr-panel.tjr-embed #tjr-send{padding:0 17px;font-size:14px;border-radius:9px;min-height:0}

/* glass-btn-finish v1 — Apple-style glass finish on the widget's navy buttons (same recipe as the site buttons) */
#tjr-btn{background:linear-gradient(180deg,rgba(255,255,255,.30) 0%,rgba(255,255,255,.07) 44%,rgba(255,255,255,0) 58%),linear-gradient(180deg,#2E4E80 0%,#0A1F44 56%,#050F27 125%);box-shadow:inset 0 1px 0 rgba(255,255,255,.38),inset 0 -1px 0 rgba(0,0,0,.45),0 6px 22px rgba(10,31,68,.35)}
#tjr-send{background:linear-gradient(180deg,rgba(255,255,255,.30) 0%,rgba(255,255,255,.07) 44%,rgba(255,255,255,0) 58%),linear-gradient(180deg,#2E4E80 0%,#0A1F44 56%,#050F27 125%);box-shadow:inset 0 1px 0 rgba(255,255,255,.38),inset 0 -1px 0 rgba(0,0,0,.45)}
