.fldc-root {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 3499;
    display: none;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fldc-root.is-visible {
    display: block;
}

.fldc-root.has-assistant {
    right: 82px;
}

.fldc-button {
    position: relative;
    min-width: 178px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px 0 16px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    color: #fff;
    background: #1677d2;
    box-shadow: 0 18px 50px rgba(0,0,0,.34), inset 0 -6px 0 rgba(0,0,0,.18);
    cursor: pointer;
}

.fldc-button-label {
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.fldc-button.is-offline {
    background: #2563eb;
    filter: saturate(.78);
}

.fldc-dot {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #94a3b8;
}

.fldc-dot.is-online {
    background: #22c55e;
}

.fldc-panel {
    position: absolute;
    right: 0;
    bottom: 66px;
    width: min(380px, calc(100vw - 30px));
    height: min(560px, calc(100vh - 120px));
    min-width: 330px;
    min-height: 420px;
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 120px);
    display: none;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    color: #f5f3ef;
    background: #111312;
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
}

.fldc-root.is-open .fldc-panel {
    display: grid;
}

.fldc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.fldc-title {
    display: grid;
    gap: 2px;
}

.fldc-title span {
    color: #60a5fa;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fldc-title strong {
    color: #f5f3ef;
    font-size: 15px;
}

.fldc-actions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.fldc-icon-button {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    color: #f5f3ef;
    background: rgba(255,255,255,.05);
    cursor: pointer;
}

.fldc-icon-button:hover {
    border-color: rgba(96,165,250,.45);
    background: rgba(96,165,250,.12);
}

.fldc-log {
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 12px;
}

.fldc-msg {
    max-width: 86%;
    padding: 9px 10px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.35;
    white-space: pre-wrap;
    word-break: break-word;
}

.fldc-msg.me {
    align-self: flex-end;
    color: #fff;
    background: #1677d2;
    border-color: rgba(96,165,250,.7);
}

.fldc-msg.other {
    align-self: flex-start;
    color: #f5f3ef;
    background: rgba(255,255,255,.055);
}

.fldc-system {
    align-self: center;
    max-width: 92%;
    color: rgba(245,243,239,.74);
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

.fldc-page-card {
    display: grid;
    gap: 7px;
}

.fldc-page-card strong {
    font-size: 13px;
    line-height: 1.2;
}

.fldc-page-card span {
    color: rgba(245,243,239,.76);
}

.fldc-page-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    color: #fff;
    background: #1677d2;
    text-decoration: none;
    font-weight: 900;
}

.fldc-page-link:hover {
    color: #fff;
    background: #2563eb;
}

.fldc-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.18);
}

.fldc-input {
    width: 100%;
    min-width: 0;
    height: 42px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 9px;
    color: #f5f3ef;
    background: rgba(255,255,255,.06);
    outline: 0;
    padding: 0 10px;
}

.fldc-input:disabled {
    opacity: .68;
}

.fldc-send {
    width: 46px;
    border: 1px solid rgba(96,165,250,.55);
    border-radius: 9px;
    color: #fff;
    background: #1677d2;
    cursor: pointer;
    font-weight: 900;
}

@media (max-width: 560px) {
    .fldc-root {
        right: 12px;
        bottom: 12px;
    }

    .fldc-root.has-assistant {
        right: 76px;
    }

    .fldc-panel {
        width: calc(100vw - 24px);
        height: min(560px, calc(100vh - 92px));
    }
}
