.Y2hhdHdpZGdldC1pZnJhbWUtY29udGFpbmVyLWZsb2F0aW5n-floating {
    cursor: default !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    display: block !important;
    position: fixed !important;
    bottom: 20px;
    right: 20px;
    visibility: visible !important;
    z-index: 2147483647 !important;
    background: none transparent !important;
    color-scheme: auto;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    transform-origin: bottom right;
    /* Closing: a quick, snappy ease-in so the panel doesn't linger on screen. */
    transition: width 0.25s cubic-bezier(0.4, 0, 1, 1),
                height 0.25s cubic-bezier(0.4, 0, 1, 1),
                border-radius 0.25s cubic-bezier(0.4, 0, 1, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 1, 1);
}

.Y2hhdHdpZGdldC1pZnJhbWUtY29udGFpbmVyLWZsb2F0aW5n-floating-teaser {
    width: min(280px, calc(100vw - 40px));
    height: 240px;
}

.Y2hhdHdpZGdldC1pZnJhbWUtY29udGFpbmVyLWZsb2F0aW5n-floating-expand {
    /* AIAA-557: cap size to the viewport so the panel is never clipped at high
       OS display scaling (e.g. Windows 150%) or browser zoom. Keeps 400x700 on
       roomy screens, shrinks to fit (leaving the 20px bottom/side gap) otherwise.
       dvh handles mobile browser chrome too. */
    width: min(400px, calc(100vw - 40px));
    height: min(700px, calc(100dvh - 40px));
    box-shadow: 0px 4px 4px 0px #00000040 !important;
    /* Opening: a slightly longer, decelerating ease-out so the panel settles in
       smoothly rather than snapping to size. Overrides the base (closing) timing
       above because this class is the one applied on the way in. */
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.Y2hhdHdpZGdldC1pZnJhbWUtY29udGFpbmVyLWVtYmVk-embedded {
    cursor: default !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    display: block !important;
    visibility: visible !important;
    z-index: 2147483647 !important;
    background: none transparent !important;
    color-scheme: auto;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.Y2hhdHdpZGdldC1pZnJhbWUtY29udGFpbmVyLWZsb2F0aW5n-floating-left {
    left: 20px;
    right: auto;
    transform-origin: bottom left;
}

@media (max-width: 480px) {
    .Y2hhdHdpZGdldC1pZnJhbWUtY29udGFpbmVyLWZsb2F0aW5n-floating-expand {
        width: 100%;
        height: 100%;
        border-radius: 0;
        bottom: 0 !important;
        right: 0 !important;
    }

    .Y2hhdHdpZGdldC1pZnJhbWUtY29udGFpbmVyLWZsb2F0aW5n-floating-fullexpand-right {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
    }

    .Y2hhdHdpZGdldC1pZnJhbWUtY29udGFpbmVyLWZsb2F0aW5n-floating-fullexpand-left {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
    }

    .Y2hhdHdpZGdldC1pZnJhbWUtY29udGFpbmVyLWZsb2F0aW5n-floating-left {
        left: 0 !important;
    }

    /* A left-docked widget's launcher sits bottom-left, so the mobile expand must
       grow from the bottom-left corner too. Without this, the rule above still
       forces right:0 alongside floating-left's left:0; with left, right, and width
       all set, the spec drops 'left' in LTR and anchors on 'right' instead — so a
       left-configured widget visually expanded from the bottom-right corner (wrong
       side) instead of the bottom-left one where its avatar actually is. */
    .Y2hhdHdpZGdldC1pZnJhbWUtY29udGFpbmVyLWZsb2F0aW5n-floating-left.Y2hhdHdpZGdldC1pZnJhbWUtY29udGFpbmVyLWZsb2F0aW5n-floating-expand {
        right: auto !important;
    }
}

.Y2hhdHdpZGdldC1pZnJhbWUtY29udGFpbmVyLWZsb2F0aW5n-floating-fullexpand-right {
    width: min(800px, calc(100vw - 40px)) !important;
    height: calc(100dvh - 40px) !important;
    top: auto !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    border-radius: 16px !important;
}

.Y2hhdHdpZGdldC1pZnJhbWUtY29udGFpbmVyLWZsb2F0aW5n-floating-fullexpand-left {
    width: min(800px, calc(100vw - 40px)) !important;
    height: calc(100dvh - 40px) !important;
    top: auto !important;
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    border-radius: 16px !important;
}

.no-scroll-y {
    overflow-y: hidden !important;
}



@media screen and (min-width: 768px) and (max-width: 1440px) {
    .Y2hhdHdpZGdldC1pZnJhbWUtY29udGFpbmVyLWZsb2F0aW5n-floating-expand {
        height: calc(100dvh - 90px);
        width: min(500px, calc(100vw - 40px));
    }
}
/* Targets smartphones in landscape mode (up to 1024px wide). Kept AFTER the
   768-1440px rule above: both match at landscape widths in the 768-1024px
   overlap (e.g. iPhone 12 Pro landscape, 844x390), and with equal selector
   specificity the later rule in source order wins — so this must come last
   for the landscape height to actually take effect instead of being silently
   overridden. */
@media screen and (max-width: 1024px) and (orientation: landscape) {
    .Y2hhdHdpZGdldC1pZnJhbWUtY29udGFpbmVyLWZsb2F0aW5n-floating-expand {
        height: calc(100% - 30px);
    }
}
@media (max-width: 767px) {
    .Y2hhdHdpZGdldC1pZnJhbWUtY29udGFpbmVyLWZsb2F0aW5n-floating-expand {
        height: 100% !important;
        width: 100% !important;
        bottom: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* Same bottom-left anchor fix as the 480px rule above, for the wider mobile
       range: left/right/width all being !important here still over-constrains in
       the same way, and 'left' loses to 'right' in LTR regardless of !important. */
    .Y2hhdHdpZGdldC1pZnJhbWUtY29udGFpbmVyLWZsb2F0aW5n-floating-left.Y2hhdHdpZGdldC1pZnJhbWUtY29udGFpbmVyLWZsb2F0aW5n-floating-expand {
        right: auto !important;
    }
}
