.ai-float-widget-root {
    position: fixed;
    left: 16px;
    bottom: 20px;
    z-index: 2147483000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.ai-float-trigger {
    min-width: 128px;
    min-height: 56px;
    padding: 10px 14px 11px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 20px;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 58%, #22c55e 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(22, 78, 179, 0.28);
    cursor: grab;
    user-select: none;
    touch-action: manipulation;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ai-float-trigger:active {
    cursor: grabbing;
}

.ai-float-trigger-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
}

.ai-float-trigger-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.ai-float-trigger-label {
    letter-spacing: 0.02em;
}

.ai-float-trigger-note {
    font-size: 11px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.82);
}

.ai-float-panel {
    position: absolute;
    left: 0;
    bottom: 68px;
    width: 392px;
    max-width: calc(100vw - 24px);
    height: 640px;
    max-height: calc(100vh - 92px);
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 0;
    border-radius: 28px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.ai-float-panel[hidden] {
    display: none !important;
}

.ai-float-panel.is-below {
    top: 68px;
    bottom: auto;
}

.ai-float-panel-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    overflow: hidden;
    overscroll-behavior: contain;
    background: transparent;
}

.ai-float-shell-iframe {
    width: 100%;
    height: 100%;
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    border: 0;
    background: transparent;
    border-radius: inherit;
}

.ai-float-shell-html {
    width: 100%;
    height: 100%;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.ai-float-shell-html iframe {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    border: 0;
}

@media (max-width: 768px) {
    .ai-float-widget-root {
        left: 10px;
        right: 10px;
        bottom: 12px;
    }

    .ai-float-trigger {
        min-width: 118px;
        min-height: 52px;
        padding: 9px 13px 10px;
        border-radius: 18px;
    }

    .ai-float-panel,
    .ai-float-panel.is-below {
        position: fixed;
        left: 10px;
        right: 10px;
        top: max(8px, env(safe-area-inset-top, 0px));
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        width: auto;
        max-width: none;
        height: auto;
        max-height: none;
        border-radius: 20px;
    }
}
