.tai { --tai-bg: #5b2c83; --tai-ink: #fff; font-family: inherit; box-sizing: border-box; }
.tai *, .tai *::before, .tai *::after { box-sizing: border-box; }
.tai-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; min-height: 48px; border-radius: 999px; background: var(--tai-bg); color: var(--tai-ink) !important; text-decoration: none !important; box-shadow: 0 6px 20px rgba(35, 20, 50, .28); line-height: 1.2; }
.tai-btn:hover, .tai-btn:focus-visible { filter: brightness(1.1); }
.tai-btn:focus-visible, .tai-x:focus-visible { outline: 3px solid #e4bd5f; outline-offset: 2px; }
.tai-ico { flex: none; width: 28px; height: 28px; border-radius: 8px; background: #e4bd5f url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b2c83' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4v11M7 11l5 5 5-5M5 20h14'/></svg>") center / 18px no-repeat; }
.tai-txt { display: flex; flex-direction: column; text-align: left; }
.tai-txt strong { font-size: 15px; font-weight: 700; }
.tai-txt small { font-size: 12px; opacity: .85; }
.tai-inline { display: block; margin: 16px 0; }
.tai-float { position: fixed; z-index: 99990; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 6px; max-width: calc(100vw - 24px); animation: tai-in .35s ease-out both; }
.tai-float[hidden] { display: none; }
.tai-pos-right { right: 12px; }
.tai-pos-left { left: 12px; }
.tai-pos-bar { left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--tai-bg); max-width: none; justify-content: center; border-radius: 0; box-shadow: 0 -4px 16px rgba(35, 20, 50, .25); }
.tai-pos-bar .tai-btn { box-shadow: none; background: transparent; padding: 0 4px; flex: 1; }
.tai-x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(35, 20, 50, .72); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.tai-pos-bar .tai-x { background: rgba(255, 255, 255, .2); }
@keyframes tai-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tai-float { animation: none; } }
@media print { .tai { display: none !important; } }
