.flowbot-page {
    min-width: 0;
}

.flowbot-root[hidden] {
    display: none !important;
}

.flowbot-launcher {
    position: fixed;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 2040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid rgba(23, 105, 255, 0.18);
    border-radius: 999px;
    background: #ffffff;
    color: #2f73bd;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.22);
    font-size: 22px;
}

/* Launcher horizontal angedockt halten; Seiten reservieren nur vertikalen Platz. */
body:not(.flowbot-drawer-open) .flowbot-root[data-flowbot-page-id="homePage"] .flowbot-launcher {
    bottom: calc(88px + env(safe-area-inset-bottom));
}

.flowbot-root[data-flowbot-page-id="einstellungenPage"] .flowbot-launcher {
    right: max(24px, env(safe-area-inset-right));
}

.modal-open:not(.flowbot-drawer-open) .flowbot-launcher {
    display: none;
}

.flowbot-launcher:hover,
.flowbot-launcher:focus {
    border-color: rgba(47, 115, 189, 0.5);
    background: #f8fbff;
    color: #2f73bd;
}

.flowbot-launcher-avatar {
    width: 46px;
    height: 46px;
    border-color: #ffffff;
    font-size: 30px;
}

.flowbot-launcher-avatar > .bi {
    line-height: 1;
}

.flowbot-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 2050;
    background: rgba(15, 23, 42, 0.24);
    opacity: 0;
    transition: opacity 150ms ease;
}

.flowbot-drawer-overlay.is-open {
    opacity: 1;
}

body:not(.flowbot-drawer-open) .flowbot-drawer {
    display: none !important;
}

.flowbot-drawer {
    position: fixed;
    top: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2060;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(520px, calc(100vw - 28px));
    height: auto;
    border: 1px solid rgba(23, 105, 255, 0.22);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.26);
    overflow: hidden;
    transform: translateX(102%);
    transition: transform 170ms ease;
}

.flowbot-drawer.is-open {
    transform: translateX(0);
}

.flowbot-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    min-height: 74px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    background: #2f73bd;
    color: #ffffff;
}

.flowbot-drawer-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.flowbot-drawer-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.1;
}

.flowbot-drawer-subtitle {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.flowbot-drawer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
}

.flowbot-header-btn,
.flowbot-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.flowbot-header-btn i,
.flowbot-icon-btn i {
    display: block;
    line-height: 1;
}

.flowbot-header-btn:hover,
.flowbot-header-btn:focus,
.flowbot-icon-btn:hover,
.flowbot-icon-btn:focus {
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.flowbot-drawer-body {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #f8fbff;
}

.flowbot-drawer .flowbot-chat-panel {
    border: 0;
    border-radius: 0;
    min-height: 0;
    padding: 0;
    box-shadow: none;
}

.flowbot-drawer .flowbot-messages {
    min-height: 0;
    max-height: none;
    padding: 18px 18px 12px;
}

.flowbot-drawer .flowbot-bubble {
    max-width: 86%;
}

.flowbot-drawer-details {
    min-width: 0;
    border: 0;
    border-top: 1px solid #d9e7f7;
    border-radius: 0;
    background: #ffffff;
    overflow: hidden;
}

.flowbot-drawer-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    color: #0f172a;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    list-style: none;
}

.flowbot-drawer-details > summary::-webkit-details-marker {
    display: none;
}

.flowbot-drawer-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    max-height: 260px;
    padding: 0 10px 10px;
    overflow: auto;
}

.flowbot-page-head {
    margin-bottom: 14px;
}

.flowbot-head-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.flowbot-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid rgba(134, 239, 172, 0.72);
    border-radius: 999px;
    background: rgba(220, 252, 231, 0.18);
    color: #ffffff;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.flowbot-pill i {
    font-size: 11px;
    opacity: 0.9;
}

.flowbot-pill.is-muted {
    border-color: rgba(226, 232, 240, 0.32);
    background: rgba(148, 163, 184, 0.14);
    color: rgba(226, 232, 240, 0.82);
}

.flowbot-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.55fr);
    gap: 14px;
    min-height: min(720px, calc(100vh - 190px));
}

.flowbot-chat-panel,
.flowbot-side-panel {
    min-width: 0;
}

.flowbot-chat-panel {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: 0;
    padding: 14px;
    border: 1px solid #d9e7f7;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.flowbot-messages {
    min-height: 280px;
    max-height: calc(100vh - 330px);
    overflow: auto;
    padding: 4px;
}

.flowbot-message {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    margin-bottom: 14px;
}

.flowbot-message.is-user {
    justify-content: flex-end;
}

.flowbot-bubble {
    max-width: min(680px, 86%);
    padding: 11px 13px;
    border-radius: 10px;
    background: #eaf1fb;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.flowbot-message.is-user .flowbot-bubble {
    background: #2f73bd;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.flowbot-message.is-bot .flowbot-bubble {
    border-bottom-left-radius: 4px;
}

.flowbot-message.is-typing {
    margin-bottom: 14px;
}

.flowbot-typing-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    min-width: 56px;
    min-height: 36px;
    padding: 10px 13px;
}

.flowbot-typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #6b89aa;
    opacity: 0.42;
    animation: flowbotTypingPulse 1.05s infinite ease-in-out;
}

.flowbot-typing-dot:nth-child(2) {
    animation-delay: 0.16s;
}

.flowbot-typing-dot:nth-child(3) {
    animation-delay: 0.32s;
}

@keyframes flowbotTypingPulse {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.38;
    }

    40% {
        transform: translateY(-3px);
        opacity: 0.95;
    }
}

.flowbot-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #ffffff;
    color: #2f73bd;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
    overflow: visible;
}

.flowbot-avatar-large {
    width: 44px;
    height: 44px;
    font-size: 24px;
}

.flowbot-avatar.has-image {
    background: #ffffff;
    color: transparent;
    overflow: hidden;
}

.flowbot-avatar img {
    width: 200%;
    height: 200%;
    object-fit: cover;
    object-position: center top;
    transform: translateX(-25%);
    transform-origin: center top;
    display: block;
}

.flowbot-avatar.photo-focus-right img {
    object-position: 72% 18%;
    transform: scale(1.24);
    transform-origin: 72% 18%;
}

.flowbot-avatar.photo-focus-head img {
    width: 252%;
    height: 252%;
    object-position: center top;
    transform: translate(-1%, 34%);
    transform-origin: center top;
}

.flowbot-avatar-status {
    position: absolute;
    right: -2px;
    bottom: -1px;
    width: 9px;
    height: 9px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #22c55e;
}

.flowbot-user-avatar {
    border-color: rgba(47, 115, 189, 0.18);
    background: #e0edff;
    color: #1769ff;
}

.flowbot-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.flowbot-message.is-user .flowbot-meta {
    color: rgba(255, 255, 255, 0.78);
}

.flowbot-result-list {
    display: grid;
    gap: 6px;
    margin-top: 9px;
    max-height: 260px;
    overflow: auto;
}

.flowbot-result-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid rgba(23, 105, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

button.flowbot-result-item {
    appearance: none;
    width: 100%;
    color: inherit;
    font: inherit;
    text-align: left;
}

.flowbot-result-item.is-clickable {
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.flowbot-result-item.is-clickable:hover,
.flowbot-result-item.is-clickable:focus-visible {
    border-color: rgba(23, 105, 255, 0.42);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
    outline: none;
}

.flowbot-result-main {
    min-width: 0;
}

.flowbot-result-title {
    color: #0f172a;
    font-size: 13px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.flowbot-result-detail {
    color: #475569;
    font-size: 12px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.flowbot-result-badge {
    max-width: 92px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e0edff;
    color: #1769ff;
    font-size: 10px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowbot-insight-list {
    display: grid;
    gap: 6px;
    margin-top: 9px;
}

.flowbot-source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 9px;
    min-width: 0;
}

.flowbot-source-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    padding: 4px 7px;
    border: 1px solid rgba(47, 115, 189, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #31577f;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.flowbot-source-chip i {
    flex: 0 0 auto;
    color: #1769ff;
    line-height: 1;
}

.flowbot-analysis-card {
    min-width: 0;
    margin-top: 9px;
    padding: 8px;
    border: 1px solid rgba(47, 115, 189, 0.14);
    border-radius: 8px;
    background: rgba(248, 251, 255, 0.92);
}

.flowbot-analysis-card[open] {
    display: grid;
    gap: 7px;
}

.flowbot-answer-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin-top: 9px;
    padding: 9px;
    border: 1px solid rgba(25, 135, 84, 0.2);
    border-radius: 8px;
    background: rgba(240, 253, 244, 0.66);
}

.flowbot-answer-card.is-compact {
    gap: 6px;
    padding: 8px;
}

.flowbot-answer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    color: #14532d;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.flowbot-answer-head > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.flowbot-answer-head i {
    color: #198754;
    line-height: 1;
}

.flowbot-answer-badges {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
    flex: 0 1 auto;
}

.flowbot-answer-shape,
.flowbot-answer-confidence {
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 7px;
    background: #dcfce7;
    color: #15803d;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.flowbot-answer-shape {
    border: 1px solid rgba(22, 101, 52, 0.18);
    background: rgba(255, 255, 255, 0.72);
    color: #166534;
}

.flowbot-answer-summary {
    min-width: 0;
    color: #0f172a;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.34;
    overflow-wrap: anywhere;
}

.flowbot-answer-highlights {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.flowbot-answer-highlight {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 7px;
    align-items: start;
    min-width: 0;
    padding: 6px 7px;
    border: 1px solid rgba(25, 135, 84, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.flowbot-answer-highlight > i {
    color: #198754;
    font-size: 12px;
    line-height: 1.25;
}

.flowbot-answer-highlight span {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.flowbot-answer-highlight strong,
.flowbot-answer-highlight small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.flowbot-answer-highlight strong {
    color: #0f172a;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
}

.flowbot-answer-highlight small {
    color: #64748b;
    font-size: 10.5px;
    font-weight: 650;
    line-height: 1.25;
}

.flowbot-answer-highlight em {
    align-self: start;
    padding: 2px 5px;
    border-radius: 6px;
    background: rgba(22, 101, 52, 0.08);
    color: #166534;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.flowbot-answer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    min-width: 0;
}

.flowbot-answer-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    align-items: start;
    min-width: 0;
    color: #475569;
    font-size: 11px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.flowbot-answer-row i {
    color: #198754;
    line-height: 1.2;
}

.flowbot-answer-row.is-next {
    color: #14532d;
    font-weight: 800;
}

.flowbot-answer-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    padding: 6px 9px;
    border: 1px solid rgba(25, 135, 84, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: #166534;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
    text-align: left;
    overflow-wrap: anywhere;
}

.flowbot-answer-primary:hover {
    border-color: rgba(25, 135, 84, 0.42);
    background: #ffffff;
    color: #14532d;
}

.flowbot-answer-primary i {
    flex: 0 0 auto;
    line-height: 1;
}

.flowbot-reasoner-card {
    min-width: 0;
    margin-top: 8px;
    padding: 7px 8px;
    border: 1px solid rgba(47, 115, 189, 0.14);
    border-radius: 8px;
    background: rgba(248, 251, 255, 0.78);
}

.flowbot-reasoner-card[open] {
    display: grid;
    gap: 7px;
}

.flowbot-reasoner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    cursor: pointer;
    color: #16406c;
    font-size: 12px;
    font-weight: 820;
    line-height: 1.2;
}

.flowbot-reasoner-head::-webkit-details-marker {
    display: none;
}

.flowbot-reasoner-head > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.flowbot-reasoner-head > span:last-child {
    flex: 0 0 auto;
    color: #5d7899;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.flowbot-reasoner-body {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.flowbot-reasoner-line {
    display: grid;
    gap: 2px;
    min-width: 0;
    color: #203956;
    font-size: 12px;
    line-height: 1.32;
}

.flowbot-reasoner-line span,
.flowbot-reasoner-body small {
    color: #607793;
    font-size: 11px;
}

.flowbot-reasoner-plan {
    display: grid;
    gap: 3px;
    margin: 0;
    padding-left: 18px;
    color: #385675;
    font-size: 11px;
    line-height: 1.32;
}

.flowbot-reasoner-gaps {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.flowbot-reasoner-gaps span {
    padding: 2px 6px;
    border: 1px solid rgba(47, 115, 189, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    color: #315c8f;
    font-size: 10px;
    font-weight: 820;
}

.flowbot-reasoner-next,
.flowbot-reasoner-learn {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    align-items: start;
    min-width: 0;
    color: #16406c;
    font-size: 11px;
    line-height: 1.32;
}

.flowbot-lite-ai-card {
    min-width: 0;
    margin-top: 8px;
    padding: 7px 8px;
    border: 1px solid rgba(20, 184, 166, 0.22);
    border-radius: 8px;
    background: rgba(240, 253, 250, 0.72);
}

.flowbot-lite-ai-card[open] {
    display: grid;
    gap: 7px;
}

.flowbot-lite-ai-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    cursor: pointer;
    color: #115e59;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.2;
}

.flowbot-lite-ai-head::-webkit-details-marker {
    display: none;
}

.flowbot-lite-ai-head > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.flowbot-lite-ai-head > span:last-child {
    flex: 0 0 auto;
    padding: 1px 6px;
    border-radius: 8px;
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.flowbot-lite-ai-body {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.flowbot-lite-ai-line {
    display: grid;
    gap: 2px;
    min-width: 0;
    color: #134e4a;
    font-size: 12px;
    line-height: 1.32;
}

.flowbot-lite-ai-line span,
.flowbot-lite-ai-plan {
    color: #476765;
    font-size: 11px;
}

.flowbot-lite-ai-plan {
    display: grid;
    gap: 3px;
    margin: 0;
    padding-left: 18px;
    line-height: 1.32;
}

.flowbot-lite-ai-prompt {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    padding: 4px 8px;
    border: 1px solid rgba(20, 184, 166, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: #0f766e;
    font-size: 11px;
    font-weight: 780;
    line-height: 1.2;
    text-align: left;
    overflow-wrap: anywhere;
}

.flowbot-lite-ai-learning {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    align-items: start;
    min-width: 0;
    color: #115e59;
    font-size: 11px;
    line-height: 1.32;
}

.flowbot-lite-ai-guards {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.flowbot-lite-ai-guards span {
    padding: 2px 6px;
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: #0f766e;
    font-size: 10px;
    font-weight: 760;
}

.flowbot-dossier-card {
    display: grid;
    gap: 7px;
    min-width: 0;
    margin-top: 9px;
    padding: 9px;
    border: 1px solid rgba(25, 135, 84, 0.2);
    border-radius: 8px;
    background: rgba(247, 253, 250, 0.96);
}

.flowbot-match-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin-top: 9px;
    padding: 9px;
    border: 1px solid rgba(23, 105, 255, 0.18);
    border-radius: 8px;
    background: rgba(238, 245, 255, 0.78);
}

.flowbot-match-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    color: #17406f;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.flowbot-match-head > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.flowbot-match-head i {
    color: #1769ff;
    line-height: 1;
}

.flowbot-match-headline,
.flowbot-match-detail,
.flowbot-match-gap,
.flowbot-match-strip {
    min-width: 0;
    overflow-wrap: anywhere;
}

.flowbot-match-headline {
    color: #1f2937;
    font-size: 12px;
    line-height: 1.35;
}

.flowbot-match-list {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.flowbot-score-list {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.flowbot-score-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 7px;
    min-width: 0;
    padding: 6px 7px;
    border: 1px solid rgba(23, 105, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.flowbot-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 22px;
    padding: 2px 6px;
    border-radius: 7px;
    background: #e0edff;
    color: #1769ff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.flowbot-score-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.flowbot-score-main strong {
    color: #0f172a;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
}

.flowbot-score-main span {
    min-width: 0;
    color: #475569;
    font-size: 11px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.flowbot-match-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
    min-width: 0;
    padding: 7px;
    border: 1px solid rgba(23, 105, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.flowbot-match-rank {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 24px;
    border-radius: 999px;
    background: #1769ff;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
}

.flowbot-match-main {
    min-width: 0;
}

.flowbot-match-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
}

.flowbot-match-title span {
    padding: 1px 5px;
    border-radius: 999px;
    background: #e0edff;
    color: #1769ff;
    font-size: 10px;
    font-weight: 900;
}

.flowbot-match-detail {
    color: #475569;
    font-size: 11px;
    line-height: 1.3;
}

.flowbot-match-note {
    margin-top: 3px;
    color: #315c8f;
    font-size: 11px;
    line-height: 1.3;
}

.flowbot-match-gap {
    margin-top: 3px;
    color: #7c2d12;
    font-size: 11px;
    line-height: 1.3;
}

.flowbot-match-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    padding: 6px 7px;
    border-radius: 7px;
    background: rgba(23, 105, 255, 0.08);
    color: #17406f;
    font-size: 11px;
    line-height: 1.3;
}

.flowbot-match-strip.is-improve {
    background: rgba(245, 158, 11, 0.11);
    color: #7c2d12;
}

.flowbot-match-strip i {
    line-height: 1.2;
}

.flowbot-dossier-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    color: #14532d;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
}

.flowbot-dossier-head > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.flowbot-dossier-head > span:last-child {
    flex: 0 0 auto;
    color: #198754;
    font-size: 10px;
    text-transform: uppercase;
}

.flowbot-dossier-head i {
    flex: 0 0 auto;
    color: #198754;
    line-height: 1;
}

.flowbot-dossier-headline {
    min-width: 0;
    color: #1f2937;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.flowbot-dossier-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    min-width: 0;
}

.flowbot-dossier-fact {
    display: grid;
    grid-template-columns: minmax(70px, 0.36fr) minmax(0, 1fr);
    gap: 6px;
    min-width: 0;
    color: #475569;
    font-size: 11px;
    line-height: 1.25;
}

.flowbot-dossier-fact span {
    color: #64748b;
    font-weight: 750;
}

.flowbot-dossier-fact strong {
    min-width: 0;
    color: #1f2937;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.flowbot-dossier-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    align-items: start;
    min-width: 0;
    padding: 6px 7px;
    border-radius: 7px;
    background: rgba(25, 135, 84, 0.08);
    color: #14532d;
    font-size: 11px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.flowbot-dossier-strip.is-risk {
    background: rgba(245, 158, 11, 0.11);
    color: #7c2d12;
}

.flowbot-dossier-strip i {
    line-height: 1.2;
}

.flowbot-analysis-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    color: #17406f;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    cursor: pointer;
    list-style: none;
}

.flowbot-analysis-head::-webkit-details-marker {
    display: none;
}

.flowbot-analysis-head > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.flowbot-analysis-head i {
    color: #1769ff;
    line-height: 1;
}

.flowbot-analysis-chevron {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 12px;
    transition: transform 150ms ease;
}

.flowbot-analysis-card[open] .flowbot-analysis-chevron {
    transform: rotate(180deg);
}

.flowbot-analysis-confidence {
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e0edff;
    color: #1769ff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.flowbot-analysis-confidence.is-hoch {
    background: #dcfce7;
    color: #15803d;
}

.flowbot-analysis-confidence.is-mittel {
    background: #fef3c7;
    color: #b45309;
}

.flowbot-analysis-confidence.is-niedrig {
    background: #fee2e2;
    color: #b91c1c;
}

.flowbot-analysis-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
}

.flowbot-analysis-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    min-width: 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.28;
}

.flowbot-analysis-item > i {
    color: #2f73bd;
    line-height: 1.2;
}

.flowbot-analysis-label {
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.flowbot-analysis-value {
    color: #0f172a;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.flowbot-clarification-card {
    display: grid;
    gap: 7px;
    min-width: 0;
    margin-top: 9px;
    padding: 8px;
    border: 1px solid rgba(23, 105, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
}

.flowbot-clarification-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #17406f;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.flowbot-clarification-title i {
    color: #1769ff;
    line-height: 1;
}

.flowbot-clarification-text {
    color: #475569;
    font-size: 12px;
    line-height: 1.34;
    overflow-wrap: anywhere;
}

.flowbot-clarification-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.flowbot-clarification-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    min-height: 28px;
    padding: 5px 8px;
    border: 1px solid rgba(23, 105, 255, 0.2);
    border-radius: 999px;
    background: #eef5ff;
    color: #1769ff;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

.flowbot-clarification-chip:hover,
.flowbot-clarification-chip:focus {
    border-color: rgba(23, 105, 255, 0.46);
    background: #e0edff;
}

.flowbot-clarification-chip i {
    flex: 0 0 auto;
    line-height: 1;
}

.flowbot-insight-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    align-items: start;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid rgba(47, 115, 189, 0.16);
    border-radius: 8px;
    background: rgba(47, 115, 189, 0.07);
    color: #17406f;
    font-size: 12px;
    line-height: 1.32;
    overflow-wrap: anywhere;
}

.flowbot-insight-item i {
    color: #1769ff;
    line-height: 1.2;
}

.flowbot-insight-item > span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.flowbot-insight-item strong {
    color: #0e2b4d;
    font-size: 11px;
    font-weight: 760;
}

.flowbot-insight-item small {
    color: #607793;
    font-size: 11px;
    line-height: 1.3;
}

.flowbot-action-list,
.flowbot-suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
    min-width: 0;
}

.flowbot-action-chip,
.flowbot-suggestion-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    min-height: 30px;
    padding: 6px 9px;
    border: 1px solid #bad4fb;
    border-radius: 8px;
    background: #ffffff;
    color: #1769ff;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.25;
    text-align: left;
    overflow-wrap: anywhere;
    white-space: normal;
}

.flowbot-action-chip {
    border-color: rgba(23, 105, 255, 0.36);
    background: rgba(23, 105, 255, 0.08);
    color: #145dc8;
}

.flowbot-suggestion-chip {
    background: rgba(255, 255, 255, 0.88);
}

.flowbot-action-chip:hover,
.flowbot-action-chip:focus,
.flowbot-suggestion-chip:hover,
.flowbot-suggestion-chip:focus {
    filter: brightness(0.96);
}

.flowbot-action-chip i,
.flowbot-suggestion-chip i {
    flex: 0 0 auto;
    line-height: 1;
}

.flowbot-action-list.is-clean {
    gap: 6px;
    margin-top: 10px;
}

.flowbot-action-chip.is-clean-link {
    justify-content: flex-start;
    min-height: 32px;
    max-width: 100%;
    padding: 6px 10px;
    border-color: rgba(23, 105, 255, 0.32);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.96);
    color: #145dc8;
    box-shadow: none;
    font-weight: 740;
    text-align: left;
}

.flowbot-action-chip.is-clean-link i {
    color: #1769ff;
}

.flowbot-message.is-user .flowbot-result-list {
    display: none;
}

.flowbot-feedback {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.flowbot-feedback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #d9e7f7;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
}

.flowbot-feedback-btn:hover,
.flowbot-feedback-btn:focus,
.flowbot-feedback-btn.is-active {
    border-color: #1769ff;
    color: #1769ff;
}

.flowbot-feedback-note {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) auto;
    gap: 6px;
    width: 100%;
    margin-top: 5px;
}

.flowbot-feedback-note[hidden] {
    display: none;
}

.flowbot-feedback-note .form-control {
    min-height: 30px;
    border-color: #d9e7f7;
    font-size: 12px;
}

.flowbot-feedback-note .btn {
    min-height: 30px;
    font-size: 12px;
    font-weight: 800;
}

.flowbot-quickbar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 16px 10px;
    border-top: 1px solid #e5eef8;
    background: #ffffff;
}

.flowbot-drawer .flowbot-quickbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
}

.flowbot-quickbar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 112px;
    width: 112px;
    min-height: 32px;
    white-space: nowrap;
}

.flowbot-drawer .flowbot-quickbar .btn {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    font-size: 12px;
}

.flowbot-input-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px 42px;
    gap: 7px;
    align-items: center;
    padding: 12px 16px 14px;
    border-top: 1px solid #e5eef8;
    background: #ffffff;
}

.flowbot-input-row .form-control {
    min-height: 38px;
    border: 0;
    box-shadow: none;
    background: transparent;
    font-weight: 700;
}

.flowbot-input-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
}

.flowbot-input-icon:hover,
.flowbot-input-icon:focus {
    background: #eef6ff;
    color: #1769ff;
}

.flowbot-send-btn {
    width: 42px;
    height: 38px;
    border-radius: 10px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.flowbot-side-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
}

.flowbot-toolbox,
.flowbot-audit {
    min-width: 0;
    padding: 13px;
    border: 1px solid #d9e7f7;
    border-radius: 8px;
    background: #ffffff;
}

.flowbot-audit {
    min-height: 0;
}

.flowbot-side-title {
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.flowbot-tools {
    display: grid;
    gap: 8px;
}

.flowbot-tool {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.flowbot-tool-icon {
    color: #1769ff;
}

.flowbot-tool-name,
.flowbot-audit-message {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.flowbot-tool-detail,
.flowbot-audit-meta {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.flowbot-audit-list {
    display: grid;
    gap: 8px;
    max-height: calc(100vh - 440px);
    overflow: auto;
}

.flowbot-audit-item {
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

body.darkmode .flowbot-chat-panel,
body.darkmode .flowbot-toolbox,
body.darkmode .flowbot-audit,
body.darkmode .flowbot-drawer,
body.darkmode .flowbot-drawer-details {
    border-color: rgba(148, 163, 184, 0.24);
    background: #111827;
}

body.darkmode .flowbot-drawer-head {
    border-color: rgba(148, 163, 184, 0.24);
    background: #1d4f8c;
}

body.darkmode .flowbot-drawer-body,
body.darkmode .flowbot-quickbar,
body.darkmode .flowbot-input-row {
    background: #0f172a;
}

body.darkmode .flowbot-bubble,
body.darkmode .flowbot-tool,
body.darkmode .flowbot-audit-item,
body.darkmode .flowbot-result-item {
    background: #1f2937;
    color: #e5e7eb;
}

body.darkmode .flowbot-result-item.is-clickable:hover,
body.darkmode .flowbot-result-item.is-clickable:focus-visible {
    border-color: rgba(96, 165, 250, 0.56);
    background: #273449;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
}

body.darkmode .flowbot-side-title,
body.darkmode .flowbot-tool-name,
body.darkmode .flowbot-audit-message,
body.darkmode .flowbot-result-title,
body.darkmode .flowbot-drawer-title,
body.darkmode .flowbot-drawer-details > summary {
    color: #f8fafc;
}

body.darkmode .flowbot-drawer-subtitle {
    color: #cbd5e1;
}

body.darkmode .flowbot-icon-btn {
    border-color: rgba(148, 163, 184, 0.24);
    background: #1f2937;
    color: #e5e7eb;
}

body.darkmode .flowbot-input-icon {
    color: #cbd5e1;
}

body.darkmode .flowbot-feedback-btn {
    border-color: rgba(148, 163, 184, 0.24);
    background: #111827;
    color: #cbd5e1;
}

body.darkmode .flowbot-feedback-btn.is-active {
    border-color: #93c5fd;
    color: #93c5fd;
}

body.darkmode .flowbot-result-detail {
    color: #cbd5e1;
}

body.darkmode .flowbot-result-badge {
    background: rgba(96, 165, 250, 0.16);
    color: #93c5fd;
}

body.darkmode .flowbot-insight-item {
    border-color: rgba(96, 165, 250, 0.24);
    background: rgba(96, 165, 250, 0.12);
    color: #dbeafe;
}

body.darkmode .flowbot-source-chip {
    border-color: rgba(96, 165, 250, 0.24);
    background: rgba(15, 23, 42, 0.54);
    color: #cbd5e1;
}

body.darkmode .flowbot-source-chip i {
    color: #93c5fd;
}

body.darkmode .flowbot-analysis-card {
    border-color: rgba(96, 165, 250, 0.22);
    background: rgba(15, 23, 42, 0.52);
}

body.darkmode .flowbot-answer-card {
    border-color: rgba(52, 211, 153, 0.24);
    background: rgba(6, 78, 59, 0.18);
}

body.darkmode .flowbot-answer-head,
body.darkmode .flowbot-answer-summary,
body.darkmode .flowbot-answer-highlight strong,
body.darkmode .flowbot-answer-row.is-next {
    color: #dcfce7;
}

body.darkmode .flowbot-answer-head i,
body.darkmode .flowbot-answer-row i,
body.darkmode .flowbot-answer-highlight > i {
    color: #86efac;
}

body.darkmode .flowbot-answer-row,
body.darkmode .flowbot-answer-highlight small {
    color: #bbf7d0;
}

body.darkmode .flowbot-answer-highlight,
body.darkmode .flowbot-answer-primary {
    border-color: rgba(52, 211, 153, 0.22);
    background: rgba(15, 23, 42, 0.44);
}

body.darkmode .flowbot-answer-shape,
body.darkmode .flowbot-answer-highlight em {
    border-color: rgba(52, 211, 153, 0.22);
    background: rgba(52, 211, 153, 0.1);
    color: #bbf7d0;
}

body.darkmode .flowbot-answer-confidence {
    background: rgba(52, 211, 153, 0.14);
    color: #86efac;
}

body.darkmode .flowbot-answer-primary {
    color: #dcfce7;
}

body.darkmode .flowbot-answer-primary:hover {
    border-color: rgba(52, 211, 153, 0.36);
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
}

body.darkmode .flowbot-typing-bubble {
    background: rgba(30, 41, 59, 0.9);
}

body.darkmode .flowbot-typing-dot {
    background: #bfdbfe;
}

body.darkmode .flowbot-reasoner-card {
    border-color: rgba(96, 165, 250, 0.2);
    background: rgba(15, 23, 42, 0.42);
}

body.darkmode .flowbot-reasoner-head,
body.darkmode .flowbot-reasoner-line,
body.darkmode .flowbot-reasoner-next,
body.darkmode .flowbot-reasoner-learn {
    color: #dbeafe;
}

body.darkmode .flowbot-reasoner-head > span:last-child,
body.darkmode .flowbot-reasoner-line span,
body.darkmode .flowbot-reasoner-body small,
body.darkmode .flowbot-reasoner-plan {
    color: #bfdbfe;
}

body.darkmode .flowbot-reasoner-gaps span {
    border-color: rgba(96, 165, 250, 0.24);
    background: rgba(30, 41, 59, 0.72);
    color: #93c5fd;
}

body.darkmode .flowbot-lite-ai-card {
    border-color: rgba(45, 212, 191, 0.22);
    background: rgba(19, 78, 74, 0.2);
}

body.darkmode .flowbot-lite-ai-head,
body.darkmode .flowbot-lite-ai-line,
body.darkmode .flowbot-lite-ai-learning {
    color: #ccfbf1;
}

body.darkmode .flowbot-lite-ai-head > span:last-child {
    background: rgba(45, 212, 191, 0.13);
    color: #99f6e4;
}

body.darkmode .flowbot-lite-ai-line span,
body.darkmode .flowbot-lite-ai-plan {
    color: #99f6e4;
}

body.darkmode .flowbot-lite-ai-prompt,
body.darkmode .flowbot-lite-ai-guards span {
    border-color: rgba(45, 212, 191, 0.24);
    background: rgba(15, 23, 42, 0.42);
    color: #99f6e4;
}

body.darkmode .flowbot-dossier-card {
    border-color: rgba(52, 211, 153, 0.24);
    background: rgba(6, 78, 59, 0.18);
}

body.darkmode .flowbot-match-card {
    border-color: rgba(96, 165, 250, 0.24);
    background: rgba(30, 64, 175, 0.14);
}

body.darkmode .flowbot-match-item {
    border-color: rgba(96, 165, 250, 0.18);
    background: rgba(15, 23, 42, 0.46);
}

body.darkmode .flowbot-score-item {
    border-color: rgba(96, 165, 250, 0.18);
    background: rgba(15, 23, 42, 0.36);
}

body.darkmode .flowbot-score-badge {
    background: rgba(96, 165, 250, 0.16);
    color: #93c5fd;
}

body.darkmode .flowbot-score-main strong {
    color: #dbeafe;
}

body.darkmode .flowbot-score-main span {
    color: #cbd5e1;
}

body.darkmode .flowbot-match-head,
body.darkmode .flowbot-match-headline,
body.darkmode .flowbot-match-title {
    color: #dbeafe;
}

body.darkmode .flowbot-match-head i {
    color: #93c5fd;
}

body.darkmode .flowbot-match-title span {
    background: rgba(96, 165, 250, 0.16);
    color: #93c5fd;
}

body.darkmode .flowbot-match-detail,
body.darkmode .flowbot-match-note,
body.darkmode .flowbot-match-strip {
    color: #cbd5e1;
}

body.darkmode .flowbot-match-gap,
body.darkmode .flowbot-match-strip.is-improve {
    color: #fed7aa;
}

body.darkmode .flowbot-match-strip {
    background: rgba(96, 165, 250, 0.11);
}

body.darkmode .flowbot-match-strip.is-improve {
    background: rgba(245, 158, 11, 0.14);
}

body.darkmode .flowbot-dossier-head,
body.darkmode .flowbot-dossier-headline,
body.darkmode .flowbot-dossier-fact strong {
    color: #dcfce7;
}

body.darkmode .flowbot-dossier-head > span:last-child,
body.darkmode .flowbot-dossier-head i {
    color: #86efac;
}

body.darkmode .flowbot-dossier-fact,
body.darkmode .flowbot-dossier-fact span {
    color: #bbf7d0;
}

body.darkmode .flowbot-dossier-strip {
    background: rgba(52, 211, 153, 0.13);
    color: #dcfce7;
}

body.darkmode .flowbot-dossier-strip.is-risk {
    background: rgba(245, 158, 11, 0.16);
    color: #fed7aa;
}

body.darkmode .flowbot-analysis-head,
body.darkmode .flowbot-analysis-value {
    color: #dbeafe;
}

body.darkmode .flowbot-analysis-label,
body.darkmode .flowbot-analysis-item {
    color: #cbd5e1;
}

body.darkmode .flowbot-analysis-confidence {
    background: rgba(96, 165, 250, 0.16);
    color: #93c5fd;
}

body.darkmode .flowbot-analysis-head i,
body.darkmode .flowbot-analysis-item > i {
    color: #93c5fd;
}

body.darkmode .flowbot-clarification-card {
    border-color: rgba(96, 165, 250, 0.24);
    background: rgba(15, 23, 42, 0.58);
}

body.darkmode .flowbot-clarification-title {
    color: #dbeafe;
}

body.darkmode .flowbot-clarification-title i,
body.darkmode .flowbot-clarification-chip {
    color: #93c5fd;
}

body.darkmode .flowbot-clarification-text {
    color: #cbd5e1;
}

body.darkmode .flowbot-clarification-chip {
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(30, 41, 59, 0.86);
}

body.darkmode .flowbot-clarification-chip:hover,
body.darkmode .flowbot-clarification-chip:focus {
    border-color: rgba(147, 197, 253, 0.56);
    background: #1f2937;
}

body.darkmode .flowbot-insight-item i,
body.darkmode .flowbot-suggestion-chip {
    color: #93c5fd;
}

body.darkmode .flowbot-insight-item strong {
    color: #e2e8f0;
}

body.darkmode .flowbot-insight-item small {
    color: #94a3b8;
}

body.darkmode .flowbot-action-chip {
    border-color: #60a5fa;
    background: #2563eb;
    color: #ffffff;
}

body.darkmode .flowbot-suggestion-chip {
    border-color: rgba(96, 165, 250, 0.32);
    background: #111827;
}

@media (max-width: 1100px) {
    .flowbot-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .flowbot-side-panel {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 760px) {
    .flowbot-launcher {
        right: calc(14px + env(safe-area-inset-right));
        bottom: calc(14px + env(safe-area-inset-bottom));
        width: 54px;
        height: 54px;
        padding: 0;
    }

    body:not(.flowbot-drawer-open) .flowbot-root[data-flowbot-page-id="homePage"] .flowbot-launcher {
        bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .flowbot-root[data-flowbot-page-id="einstellungenPage"] .flowbot-launcher {
        right: calc(14px + env(safe-area-inset-right));
    }

    .flowbot-drawer {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        border-radius: 0;
    }

    .flowbot-drawer-head {
        min-height: 68px;
        padding: 10px;
    }

    .flowbot-drawer-actions {
        max-width: 112px;
    }

    .flowbot-drawer-actions .flowbot-pill {
        display: none;
    }

    .flowbot-shell,
    .flowbot-side-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .flowbot-chat-panel {
        min-height: calc(100vh - 220px);
    }

    .flowbot-messages {
        max-height: calc(100vh - 380px);
    }

    .flowbot-head-actions {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .flowbot-drawer .flowbot-quickbar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .flowbot-drawer .flowbot-quickbar .btn {
        min-height: 34px;
    }
}
