/* Same tokens as Flutter: TraceColors.red, FAB 56 dp / radius 18 / gap 12. */
:root{--trace-fab-size:56px;--trace-fab-radius:18px;--trace-fab-gap:12px;--trace-fab-red:#d7193f}
.trace-ai-launcher,.trace-alert-launcher{position:fixed;right:max(16px,env(safe-area-inset-right));width:var(--trace-fab-size);height:var(--trace-fab-size);min-height:var(--trace-fab-size);padding:0;margin:0;display:grid;place-items:center;border:0;border-radius:var(--trace-fab-radius);background:var(--trace-fab-red);color:#fff;text-decoration:none;box-sizing:border-box;box-shadow:0 4px 12px #0003;z-index:85;isolation:isolate;transition:opacity .18s ease,transform .18s ease,visibility .18s;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.trace-ai-launcher{bottom:calc(var(--trace-tools-bottom,24px) + var(--trace-fab-size) + var(--trace-fab-gap))}
.trace-alert-launcher{bottom:var(--trace-tools-bottom,24px)}
.trace-ai-launcher svg,.trace-alert-launcher svg{width:24px;height:24px;stroke-width:2;position:relative;z-index:1;pointer-events:none}
.trace-ai-launcher:hover,.trace-alert-launcher:hover{transform:none;color:#fff;background:var(--trace-fab-red)}
.trace-ai-launcher:active,.trace-alert-launcher:active{box-shadow:0 2px 6px #0003}
.trace-ai-launcher:focus-visible,.trace-alert-launcher:focus-visible{outline:3px solid var(--text,#171719);outline-offset:4px}
.trace-ai-ring{position:absolute;inset:-3px;border:2px solid #f53660;border-radius:calc(var(--trace-fab-radius) + 3px);pointer-events:none;z-index:-1;box-shadow:0 0 9px #f5366070;animation:trace-fab-breathe 3.6s cubic-bezier(.2,.55,.35,1) infinite;will-change:transform,opacity}
.trace-ai-ring.ring-rose{border-color:#ff7394;box-shadow:0 0 8px #ff739470;animation-delay:-1.2s}
.trace-ai-ring.ring-gold{border-color:#edbe69;box-shadow:0 0 7px #edbe6950;animation-delay:-2.4s}
@keyframes trace-fab-breathe{0%{transform:scale(.96);opacity:0}15%{opacity:.85}75%,100%{transform:scale(1.36);opacity:0}}
html.trace-tools-hidden :is(.trace-ai-launcher,.trace-alert-launcher){opacity:0;visibility:hidden;pointer-events:none;transform:translateY(12px)}
html.trace-tools-paused .trace-ai-ring,html.trace-tools-hidden .trace-ai-ring{animation-play-state:paused}
html.trace-ai-open :is(.trace-ai-launcher,.trace-alert-launcher),html.trace-alert-open :is(.trace-ai-launcher,.trace-alert-launcher){visibility:hidden;pointer-events:none}
@media(prefers-reduced-motion:reduce){.trace-ai-launcher,.trace-alert-launcher{transition:none}.trace-ai-ring{animation:none;transform:none;opacity:.4;will-change:auto}.trace-ai-ring.ring-rose{inset:-5px;opacity:.25}.trace-ai-ring.ring-gold{inset:-7px;opacity:.18}}
