

        

            /* ---------------- floating action button ---------------- */
            .dock {
                position: fixed;
                left: 20px;
                bottom: 20px;
                z-index: 1001;
            }

            .fab {
                position: relative;
                width: 52px;
                height: 52px;
                display: grid;
                place-items: center;
                padding: 0;
                border-radius: 50%;
                border: 1px solid rgba(255, 255, 255, .18);
                background: #25d366;
                color: #fff;
                cursor: pointer;
                   box-shadow: 0 5px 20px #00000030;
                transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s;
            }

            .fab:hover {
                transform: translateY(-2px);
                /* background-color: black; */
                /* box-shadow: 0 18px 34px -12px rgba(99, 102, 241, 1), 0 4px 14px rgba(0, 0, 0, .35); */
            }
           .fab[aria-expanded="true"]  ion-icon:first-child {
            display: none;  
            }
           .fab  ion-icon:nth-child(2) {
            display: none;  
            }

           .fab[aria-expanded="true"]  ion-icon:nth-child(2) {
            display: flex;  
            }

            .fab:active {
                transform: scale(.94);
            }

            .fab:focus-visible {
                outline: none;
                /* box-shadow: 0 0 0 3px rgba(99, 102, 241, .55), 0 14px 30px -12px rgba(99, 102, 241, .95); */
            }

            .fab ion-icon {
                font-size: 28px;
                transition: transform .4s cubic-bezier(.22, 1, .36, 1);
            }

            .fab[aria-expanded="true"]  {
                background-color: #000;
            }

            .fab[aria-expanded="true"] ion-icon {
                transform: rotate(135deg);
            }

            /* ---------------- radial menu ---------------- */
            .radial-menu {
                position: fixed;
                left: 46px;
                top: calc(100vh - 46px);
                width: 0;
                height: 0;
                z-index: 1000;
                pointer-events: none;
                --size: 52px;
                --radius: 112px;
                --dx: 0px;
                --dy: 0px;
                --i: 0;
            }

            /* ambient glow behind the fan */
            .radial-menu::before {
                content: "";
                position: absolute;
                left: 0;
                top: 0;
                width: calc(var(--radius) * 2);
                height: calc(var(--radius) * 2);
                border-radius: 50%;
                translate: -50% -50%;
                /* background: radial-gradient(circle, rgba(0,0,0, .18), transparent 65%); */
                opacity: 0;
                scale: .7;
                transition: opacity .35s ease, scale .35s ease;
            }

            .radial-menu.open::before {
                opacity: 1;
                scale: 1;
            }

            /* ---------------- items ---------------- */
            .radial-item {
                position: absolute;
                left: 0;
                top: 0;
                width: var(--size);
                height: var(--size);
                display: grid;
                place-items: center;
                padding: 0;
                border-radius: 50%;
                border: 1px solid var(--border);
                background-color: #FFF;
                color: var(--brand, #94a3b8);
                text-decoration: none;
                cursor: pointer;
                pointer-events: none;
                backdrop-filter: blur(14px);
                -webkit-backdrop-filter: blur(14px);
                will-change: transform, opacity;
                 box-shadow: 0 5px 20px #001e3b30;
                /* closed state: collapsed into the FAB */
                transform: translate(-50%, -50%) scale(.3);
                opacity: 0;

                transition:
                    transform .4s cubic-bezier(.22, 1, .36, 1),
                    opacity .22s ease,
                    border-color .18s ease,
                    box-shadow .2s ease,
                    color .18s ease;
            }

            /* brand colour overlay (supports gradients) */
            .radial-item::before {
                content: "";
                position: absolute;
                inset: -1px;
                border-radius: 50%;
                background: var(--brand-bg, #94a3b8);
                opacity: 0;
                z-index: -1;
                transition: opacity .18s ease;
            }

            .radial-item:hover::before,
            .radial-item:focus-visible::before {
                opacity: 1;
            }

            .radial-item:hover,
            .radial-item:focus-visible {
                color: #fff;
                border-color: transparent;
                box-shadow: 0 12px 26px -10px var(--glow, rgba(148, 163, 184, .6));
                outline: none;
            }

            .radial-item__icon {
                display: grid;
                place-items: center;
                transition: transform .2s cubic-bezier(.22, 1, .36, 1);
            }

            .radial-item:hover .radial-item__icon,
            .radial-item:focus-visible .radial-item__icon {
                transform: scale(1.15);
            }

            /* Ionicons sizing + colour inheritance */
            .radial-item ion-icon {
                font-size: 24px;
                color: inherit;
                pointer-events: none;
                --ionicon-stroke-width: 40px;
            }

            /* hide until the web component hydrates (prevents flash) */
            ion-icon:not(.hydrated) {
                opacity: 0;
            }

            /* tooltip label (appears on hover / focus) */
            .radial-item__label {
                position: absolute;
                top: calc(100% + 8px);
                left: 50%;
                translate: -50% 0;
                padding: 5px 11px;
                border-radius: 999px;
                border: 1px solid var(--border);
                background: rgba(15, 23, 42, .92);
                backdrop-filter: blur(8px);
                -webkit-backdrop-filter: blur(8px);
                font-size: 12px;
                font-weight: 550;
                white-space: nowrap;
                color: #e2e8f0;
                opacity: 0;
                transform: translateY(-4px);
                pointer-events: none;
                transition: opacity .16s ease, transform .16s ease;
            }

            .radial-item:hover .radial-item__label,
            .radial-item:focus-visible .radial-item__label {
                opacity: 1;
                transform: translateY(0);
            }

            /* ---------------- open state ---------------- */
            .radial-menu.open .radial-item {
                pointer-events: auto;
                transform: translate(calc(var(--dx) - 50%), calc(var(--dy) - 50%)) scale(1);
                opacity: 1;
                transition-delay:
                    calc(var(--i) * 26ms),
                    calc(var(--i) * 26ms),
                    0s, 0s, 0s;
            }

            .radial-menu.open .radial-item:hover,
            .radial-menu.open .radial-item:focus-visible {
                z-index: 5;
            }

            /* ---------------- toast ---------------- */
            #toast {
                position: fixed;
                left: 50%;
                bottom: 40px;
                translate: -50% 12px;
                padding: 10px 18px;
                border-radius: 999px;
                border: 1px solid var(--border);
                background: rgba(20, 26, 42, .88);
                backdrop-filter: blur(12px);
                -webkit-backdrop-filter: blur(12px);
                font-size: 13px;
                color: #e2e8f0;
                opacity: 0;
                pointer-events: none;
                transition: opacity .22s ease, translate .22s ease;
            }

            #toast.show {
                opacity: 1;
                translate: -50% 0;
            }

            @media (prefers-reduced-motion: reduce) {

                .radial-item,
                .radial-menu::before,
                .fab ion-icon {
                    transition-duration: .01ms !important;
                }
            }