.sd-chat-launcher {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 20;
}
.sd-chat-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--sd-accent, #004bff);
    color: #fff;
    font-size: .875rem;
    font-weight: 650;
    box-shadow: 0 4px 22px #09101d33;
    cursor: pointer;
    list-style: none;
}
.sd-chat-trigger::-webkit-details-marker { display: none; }
.sd-chat-launcher svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.sd-chat-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: min(240px, calc(100vw - 32px));
    max-height: calc(100dvh - 80px);
    overflow: auto;
    padding: 10px;
    border: 1px solid #dce5f4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 36px #09101d26;
}
.sd-chat-panel > p { margin: 4px 9px 8px; font-weight: 700; font-size: .94rem; }
.sd-chat-panel a, .sd-chat-button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px;
    min-height: 42px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #0f182a;
    text-align: left;
    font-size: .875rem;
    cursor: pointer;
}
.sd-chat-panel svg { color: var(--sd-accent, #004bff); }
.sd-chat-panel a:hover, .sd-chat-button:hover { background: #eef4ff; color: #0039c9; }
.sd-chat-button[hidden], .sd-chat-fallback[hidden] { display: none; }
.sd-chat-button:disabled { cursor: wait; opacity: .6; }
.sd-chat-fallback { margin: 6px 0 0; padding: 8px; background: #eef4ff; border-radius: 9px; }
.sd-chat-fallback p { margin: 0; font-size: .85rem; }
@media (max-width: 560px) {
    .sd-chat-trigger { width: 48px; padding: 0; }
    .sd-chat-trigger span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
}
