.fc-chat {
    position: fixed;
    z-index: 9990;
    inset-inline-end: 16px;
    inset-block-end: max(16px, env(safe-area-inset-bottom));
    width: min(360px, calc(100vw - 32px));
    display: grid;
    justify-items: end;
    gap: 10px;
    font: 1rem/1.45 system-ui, sans-serif;
    pointer-events: none;
}
.fc-chat .fc-panel,
.fc-chat .fc-toggle { pointer-events: auto; }
.fc-chat .fc-panel[hidden] { display: none !important; }
.fc-chat .fc-panel {
    width: 100%;
    background: #fff;
    color: #152732;
    border: 1px solid #c8d8dd;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 32px #172c4350;
}
.fc-chat header {
    position: static;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #12384d;
    color: #fff;
}
.fc-chat header h2 {
    margin: 0;
    color: inherit;
    font: 700 1rem/1.4 system-ui, sans-serif;
}
.fc-chat .fc-body {
    padding: 12px;
    overflow-y: auto;
    max-height: min(420px, calc(100dvh - 142px));
}
.fc-chat p { margin: 0 0 10px; }
.fc-chat .fc-topics { display: grid; gap: 6px; }
.fc-chat button {
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    padding: 8px 10px;
}
.fc-chat .fc-toggle,
.fc-chat .fc-close { background: #12384d; color: #fff; }
.fc-chat .fc-toggle { border-radius: 24px; box-shadow: 0 4px 14px #172c4350; }
.fc-chat .fc-topics button {
    text-align: start;
    border-color: #a6c4c7;
    background: #edf7f6;
    color: #12384d;
}
.fc-chat button:hover { text-decoration: underline; }
.fc-chat :focus-visible { outline: 2px solid #007971; outline-offset: 2px; }
.fc-chat .fc-close:focus-visible { outline-color: #fff; }
.fc-chat .fc-answer:not(:empty) {
    margin-top: 10px;
    padding: 10px;
    background: #edf7f6;
    border-radius: 8px;
}
.fc-chat .fc-answer a { color: #075b53; text-decoration: underline; }
