/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-zfsdyyctq8] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

main[b-zfsdyyctq8] {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.sidebar[b-zfsdyyctq8] {
    background-color: var(--mud-palette-drawer-background);
    flex: 0 0 auto;
}

.top-row[b-zfsdyyctq8] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

    .top-row[b-zfsdyyctq8]  a,
    .top-row[b-zfsdyyctq8]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

        .top-row[b-zfsdyyctq8]  a:hover,
        .top-row[b-zfsdyyctq8]  .btn-link:hover {
            text-decoration: underline;
        }

        .top-row[b-zfsdyyctq8]  a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

.legal-footer-note[b-zfsdyyctq8] {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 8px;
    z-index: 1;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
}

.legal-footer-note__text[b-zfsdyyctq8] {
    text-align: center !important;
    display: block;
    width: auto;
    max-width: min(1100px, calc(100vw - 32px));
    margin: 0 auto !important;
    line-height: 1.35;
}

/* ── Mobile ── */
@media (max-width: 640.98px) {
    .page[b-zfsdyyctq8] {
        min-height: 100dvh;
        height: 100dvh;
    }

    .top-row[b-zfsdyyctq8] {
        justify-content: space-between;
    }

        .top-row[b-zfsdyyctq8]  a,
        .top-row[b-zfsdyyctq8]  .btn-link {
            margin-left: 0;
        }

    .legal-footer-note[b-zfsdyyctq8] {
        bottom: 6px;
        padding: 0 12px;
    }

    .legal-footer-note__text[b-zfsdyyctq8] {
        max-width: calc(100vw - 24px);
    }
}

/* ── Tablet+ ── */
@media (min-width: 641px) {
    .page[b-zfsdyyctq8] {
        flex-direction: row;
        min-height: 100vh;
        height: 100vh;
        overflow: hidden;
    }

    .sidebar[b-zfsdyyctq8] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-zfsdyyctq8] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

        .top-row.auth[b-zfsdyyctq8]  a:first-child {
            flex: 1;
            text-align: right;
            width: 0;
        }

    article[b-zfsdyyctq8] {
        min-width: 0;
        min-height: 0;
        height: 100%;
        overflow: hidden;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
/* /Pages/Components/Chatbot/Chatbot.razor.rz.scp.css */
/* ══════════════════════════════════════════════
   SHELL – full-screen canvas with background
══════════════════════════════════════════════ */
.chatbot-shell[b-roxl39kgmi] {
    --chat-content-width: min(1920px, 100vw);
    --chat-bubble-width: min(980px, 72vw);
    --chat-panel-radius: 22px;
    --chat-card-shadow: 0 16px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
    --chat-soft-shadow: 0 8px 20px rgba(0,0,0,0.10);
    --chat-side-padding: clamp(40px, 5vw, 120px); /* ← mehr Abstand L/R */
    --chat-input-left-padding: 22px;
    --chat-input-right-padding: 12px;
    --chat-input-text-padding-top: 28px;
    --chat-input-text-padding-bottom: 12px;
    --chat-input-card-padding-x: 18px;
    --chat-input-card-padding-y-top: 14px;
    --chat-input-card-padding-y-bottom: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100dvh - 150px);
    min-height: calc(100dvh - 100px);
    max-height: calc(100dvh - 90px);
    overflow: hidden;
    background-color: var(--mud-palette-background);
    background-image: url("./pictures/hg6.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

    /* Background overlay */
    .chatbot-shell[b-roxl39kgmi]::before {
        content: "";
        position: absolute;
        inset: 0;
        background: color-mix(in srgb, var(--mud-palette-background) 88%, transparent);
        pointer-events: none;
        z-index: 0;
    }

/* ═══���══════════════════════════════════════════
   CITATION INLINE STYLES (unchanged)
══════════════════════════════════════════════ */
[b-roxl39kgmi] .citation-inline-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

[b-roxl39kgmi] .citation-inline-link {
    appearance: none;
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 35%, transparent);
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, var(--mud-palette-surface) 90%);
    color: var(--mud-palette-primary);
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.6;
    cursor: pointer;
    transition: all 0.15s ease;
    margin: 0 2px;
}

    [b-roxl39kgmi] .citation-inline-link:hover {
        background: color-mix(in srgb, var(--mud-palette-primary) 16%, var(--mud-palette-surface) 84%);
        transform: translateY(-1px);
    }

    [b-roxl39kgmi] .citation-inline-link:focus-visible {
        outline: 2px solid var(--mud-palette-primary);
        outline-offset: 2px;
    }

/* ══════════════════════════════════════════════
   FLOATING HEADER
══════════════════════════════════════════════ */
.chatbot-float-header[b-roxl39kgmi] {
    position: relative;
    z-index: 10;
    flex: 0 0 auto;
    padding: 18px var(--chat-side-padding) 6px;
    background: linear-gradient( to bottom, color-mix(in srgb, var(--mud-palette-background) 62%, transparent) 0%, transparent 100% );
    pointer-events: none;
}

.chatbot-float-header__inner[b-roxl39kgmi] {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: var(--chat-content-width);
    margin: 0 auto;
    pointer-events: auto;
}

.chatbot-back-btn[b-roxl39kgmi] {
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

    .chatbot-back-btn:hover[b-roxl39kgmi] {
        opacity: 1;
        transform: translateX(-2px);
    }

.chatbot-float-title[b-roxl39kgmi] {
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.025em;
    color: var(--mud-palette-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════
   SCROLL AREA
══════════════════════════════════════════════ */
.chatbot-scroll-area[b-roxl39kgmi] {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0 24px;
    box-sizing: border-box;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .chatbot-scroll-area[b-roxl39kgmi]::-webkit-scrollbar {
        display: none;
    }

.chatbot-messages__bottom-spacer[b-roxl39kgmi] {
    flex: 0 0 0;
    height: 0;
}

/* ══════════════════════════════════════════════
   CHAT MESSAGES
══════════════════════════════════════════════ */
.chat-msg[b-roxl39kgmi] {
    width: 100%;
    max-width: var(--chat-content-width);
    margin: 0 auto;
    padding: 0 var(--chat-side-padding);
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: chat-bubble-in-b-roxl39kgmi 0.26s ease-out both;
}

.chat-msg--welcome[b-roxl39kgmi] {
    margin-top: 50px;
    margin-bottom: 0;
}

.chat-msg--agent[b-roxl39kgmi] {
    justify-content: flex-start;
}

.chat-msg--user[b-roxl39kgmi] {
    justify-content: flex-end;
}

.chat-msg__avatar[b-roxl39kgmi] {
    flex-shrink: 0;
    margin-top: 6px;
}

.chat-msg__bubble[b-roxl39kgmi] {
    max-width: var(--chat-bubble-width);
    padding: 16px 18px;
    border-radius: 22px;
    line-height: 1.72;
    word-break: break-word;
    overflow-wrap: anywhere;
    color: var(--mud-palette-text-primary);
}

.chat-msg__bubble--agent[b-roxl39kgmi] {
    background: color-mix(in srgb, var(--mud-palette-surface) 90%, transparent);
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 55%, transparent);
    border-radius: 8px 22px 22px 22px;
    box-shadow: var(--chat-soft-shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--mud-palette-text-primary);
}

.chat-msg__bubble--user[b-roxl39kgmi] {
    background: linear-gradient( 180deg, color-mix(in srgb, var(--mud-palette-primary) 92%, white 8%), var(--mud-palette-primary) );
    color: var(--mud-palette-primary-text, #fff);
    border-radius: 22px 8px 22px 22px;
    box-shadow: 0 12px 24px rgba(var(--mud-palette-primary-rgb, 232,96,12), 0.22), 0 1px 0 rgba(255,255,255,0.14) inset;
}

/* Action row under agent messages */
.chatbot-actions[b-roxl39kgmi] {
    width: 100%;
    max-width: var(--chat-content-width);
    margin: 0 auto;
    padding: 2px var(--chat-side-padding) 0 calc(var(--chat-side-padding) + 44px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

    .chatbot-actions:hover[b-roxl39kgmi] {
        opacity: 1;
    }

/* ══════════════════════════════════════════════
   BOTTOM ZONE
══════════════════════════════════════════════ */
.chatbot-bottom-zone[b-roxl39kgmi] {
    position: relative;
    z-index: 8;
    flex: 0 0 auto;
    max-height: 50vh;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient( to top, color-mix(in srgb, var(--mud-palette-background) 94%, transparent) 0%, color-mix(in srgb, var(--mud-palette-background) 80%, transparent) 40%, color-mix(in srgb, var(--mud-palette-background) 50%, transparent) 70%, transparent 100% );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 0 max(14px, env(safe-area-inset-bottom));
}

.chatbot-bottom-inner[b-roxl39kgmi] {
    width: 100%;
    max-width: var(--chat-content-width);
    margin: 0 auto;
    padding: 0 var(--chat-side-padding);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
}

/* Shortcuts */
.chatbot-shortcuts[b-roxl39kgmi] {
    display: flex;
    flex-wrap: nowrap; /* ← war: wrap → nie mehr mehrzeilig */
    gap: 7px;
    padding: 0 2px 10px;
    overflow-x: auto; /* ← horizontal scrollbar wenn zu viele Chips */
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .chatbot-shortcuts[b-roxl39kgmi]::-webkit-scrollbar {
        display: none;
    }

/* Floating prompt card */
.chatbot-input-card[b-roxl39kgmi] {
    padding: var(--chat-input-card-padding-y-top) var(--chat-input-card-padding-x) var(--chat-input-card-padding-y-bottom);
    border-radius: var(--chat-panel-radius) !important;
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 45%, transparent) !important;
    background: color-mix(in srgb, var(--mud-palette-surface) 94%, transparent) !important;
    box-shadow: var(--chat-card-shadow) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .chatbot-input-card:focus-within[b-roxl39kgmi] {
        border-color: color-mix(in srgb, var(--mud-palette-primary) 60%, white) !important;
        box-shadow: 0 0 0 3px rgba(var(--mud-palette-primary-rgb, 232,96,12), 0.09), var(--chat-card-shadow) !important;
    }

.chatbot-input-row[b-roxl39kgmi] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
}

.chatbot-input-field[b-roxl39kgmi] {
    width: 100%;
    min-width: 0;
}

/* MudBlazor input internals */
[b-roxl39kgmi] .chatbot-input-field .mud-input-control,
[b-roxl39kgmi] .chatbot-input-field .mud-input-control-input-container,
[b-roxl39kgmi] .chatbot-input-field .mud-input-input-control,
[b-roxl39kgmi] .chatbot-input-field .mud-input-root {
    width: 100% !important;
    margin: 0 !important;
}

[b-roxl39kgmi] .chatbot-input-field textarea.mud-input-slot,
[b-roxl39kgmi] .chatbot-input-field input.mud-input-slot {
    width: 100% !important;
    margin: 0 !important;
    padding-top: var(--chat-input-text-padding-top) !important;
    padding-bottom: var(--chat-input-text-padding-bottom) !important;
    padding-left: var(--chat-input-left-padding) !important;
    padding-right: var(--chat-input-right-padding) !important;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
    min-height: 50px;
    text-align: left !important;
    color: var(--mud-palette-text-primary) !important;
    background: transparent !important;
}

    [b-roxl39kgmi] .chatbot-input-field textarea.mud-input-slot::placeholder,
    [b-roxl39kgmi] .chatbot-input-field input.mud-input-slot::placeholder {
        color: var(--mud-palette-text-secondary) !important;
        opacity: 0.9 !important;
        text-align: left !important;
    }

[b-roxl39kgmi] .chatbot-input-field .mud-input-underline:before,
[b-roxl39kgmi] .chatbot-input-field .mud-input-underline:after {
    left: var(--chat-input-left-padding) !important;
    right: var(--chat-input-right-padding) !important;
}

[b-roxl39kgmi] .chatbot-input-row .mud-icon-button {
    align-self: center;
}

/* Recording row */
.chatbot-recording-row[b-roxl39kgmi] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
}

.chatbot-visualizer-container[b-roxl39kgmi] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    padding: 2px 0;
}

.chatbot-visualizer-canvas[b-roxl39kgmi] {
    width: 100%;
    height: 40px;
    display: block;
}

/* ══════════════════════════════════════════════
   META AREA
══════════════════════════════════════════════ */
.chatbot-meta-area[b-roxl39kgmi] {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 0;
}

.chatbot-meta-area--expanded[b-roxl39kgmi] {
    padding-bottom: 2px;
}

.chatbot-outline-chip-wrap[b-roxl39kgmi] {
    display: flex;
    justify-content: center;
    padding-bottom: 0;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

.chatbot-details-panel[b-roxl39kgmi] {
    padding: 14px 16px 16px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--mud-palette-surface) 95%, transparent);
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 55%, transparent);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.09), 0 4px 12px rgba(0,0,0,0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    animation: details-slide-up-b-roxl39kgmi 0.22s ease-out both;
    flex: 0 1 auto;
    min-height: 0;
    max-height: min(28vh, 300px);
}

    .chatbot-details-panel[b-roxl39kgmi]::-webkit-scrollbar {
        width: 6px;
    }

    .chatbot-details-panel[b-roxl39kgmi]::-webkit-scrollbar-thumb {
        background: color-mix(in srgb, var(--mud-palette-lines-default) 70%, var(--mud-palette-primary) 30%);
        border-radius: 999px;
    }

    .chatbot-details-panel[b-roxl39kgmi]::-webkit-scrollbar-track {
        background: transparent;
    }

.chatbot-details-section[b-roxl39kgmi] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chatbot-details-label[b-roxl39kgmi] {
    color: var(--mud-palette-text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.67rem !important;
    opacity: 0.85;
}

.chatbot-details-value[b-roxl39kgmi] {
    color: var(--mud-palette-text-primary);
    font-size: 0.76rem !important;
    line-height: 1.55;
}

.chatbot-file-chips[b-roxl39kgmi] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chatbot-summary-box[b-roxl39kgmi] {
    border-radius: 10px;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--mud-palette-background) 82%, var(--mud-palette-surface) 18%);
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 50%, transparent);
    color: var(--mud-palette-text-primary);
}

.chatbot-outline-chip[b-roxl39kgmi] {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.73rem !important;
    min-height: 27px;
    padding-inline: 10px;
    background: color-mix(in srgb, var(--mud-palette-surface) 92%, transparent) !important;
    color: var(--mud-palette-text-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.09);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px !important;
    transition: box-shadow 0.18s ease, transform 0.15s ease;
}

    .chatbot-outline-chip:hover[b-roxl39kgmi] {
        box-shadow: 0 6px 16px rgba(0,0,0,0.13);
        transform: translateY(-1px);
    }

/* ══════════════════════════════════════════════
   TYPING INDICATOR
══════════════════════════════════════════════ */
.chat-typing-indicator[b-roxl39kgmi] {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 0;
}

    .chat-typing-indicator span[b-roxl39kgmi] {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--mud-palette-primary);
        opacity: 0.4;
        animation: chat-typing-bounce-b-roxl39kgmi 1.4s ease-in-out infinite;
    }

        .chat-typing-indicator span:nth-child(2)[b-roxl39kgmi] {
            animation-delay: 0.15s;
        }

        .chat-typing-indicator span:nth-child(3)[b-roxl39kgmi] {
            animation-delay: 0.30s;
        }

/* ══════════════════════════════════════════════
   MARKDOWN IN AGENT BUBBLES
══════════════════════════════════════════════ */
[b-roxl39kgmi] .chat-msg__bubble--agent,
[b-roxl39kgmi] .chat-msg__bubble--agent * {
    color: var(--mud-palette-text-primary);
}

    [b-roxl39kgmi] .chat-msg__bubble--agent a {
        color: var(--mud-palette-primary);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

[b-roxl39kgmi] .chat-msg__bubble table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    display: block;
    overflow-x: auto;
}

[b-roxl39kgmi] .chat-msg__bubble th,
[b-roxl39kgmi] .chat-msg__bubble td {
    border: 1px solid var(--mud-palette-lines-default);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    color: inherit;
}

[b-roxl39kgmi] .chat-msg__bubble th {
    background: color-mix(in srgb, var(--mud-palette-background) 90%, var(--mud-palette-primary) 10%);
    font-weight: 700;
}

[b-roxl39kgmi] .chat-msg__bubble table tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--mud-palette-background) 96%, var(--mud-palette-primary) 4%);
}

[b-roxl39kgmi] .chat-msg__bubble pre {
    background: color-mix(in srgb, var(--mud-palette-background) 92%, var(--mud-palette-primary) 8%);
    border-radius: 12px;
    padding: 14px 16px;
    overflow-x: auto;
    margin: 10px 0;
    font-size: 0.8125rem;
    border: 1px solid var(--mud-palette-lines-default);
    color: var(--mud-palette-text-primary);
}

[b-roxl39kgmi] .chat-msg__bubble code {
    color: var(--mud-palette-text-primary);
}

[b-roxl39kgmi] .chat-msg__bubble p {
    margin: 0 0 0.7rem 0;
}

    [b-roxl39kgmi] .chat-msg__bubble p:last-child {
        margin-bottom: 0;
    }

[b-roxl39kgmi] .chat-msg__bubble ul,
[b-roxl39kgmi] .chat-msg__bubble ol {
    margin-top: 0.4rem;
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    color: inherit;
}

/* ══════════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════════ */
@keyframes chat-bubble-in-b-roxl39kgmi {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes chat-typing-bounce-b-roxl39kgmi {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

@keyframes details-slide-up-b-roxl39kgmi {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════════
   RESPONSIVE – Mobile (< 600 px)
   Auf kleinen Screens weniger Abstand, damit Inhalt Platz hat
══════════════════════════════════════════════ */
@media (max-width: 599.98px) {
    .chatbot-shell[b-roxl39kgmi] {
        --chat-side-padding: 16px; /* ← kompakt auf Mobile */
        --chat-bubble-width: 100%;
        --chat-input-left-padding: 16px;
        --chat-input-right-padding: 10px;
        --chat-input-card-padding-x: 14px;
        --chat-input-card-padding-y-top: 10px;
        --chat-input-card-padding-y-bottom: 8px;
        --chat-input-text-padding-top: 22px;
        --chat-input-text-padding-bottom: 10px;
        height: calc(100dvh - 75px);
        min-height: calc(100dvh - 75px);
        max-height: calc(100dvh - 75px);
    }

    .chatbot-float-header[b-roxl39kgmi] {
        padding: 12px var(--chat-side-padding) 4px;
    }

    .chatbot-float-title[b-roxl39kgmi] {
        font-size: 0.92rem !important;
    }

    .chatbot-scroll-area[b-roxl39kgmi] {
        gap: 10px;
    }

    .chatbot-input-row[b-roxl39kgmi] {
        min-height: 56px;
        gap: 8px;
    }

    .chatbot-details-panel[b-roxl39kgmi] {
        max-height: min(30vh, 240px);
        padding: 10px 12px 12px;
    }

    .chat-msg__bubble[b-roxl39kgmi] {
        max-width: 100%;
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .chatbot-bottom-zone[b-roxl39kgmi] {
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
}

/* ══════════════════════════════════════════════
   RESPONSIVE – Tablet (600–1399 px)
══════════════════════════════════════════════ */
@media (min-width: 600px) and (max-width: 1399.98px) {
    .chatbot-shell[b-roxl39kgmi] {
        --chat-side-padding: clamp(32px, 4vw, 80px); /* ← mittlerer Abstand */
    }
}

/* ══════════════════════════════════════════════
   RESPONSIVE – Large Desktop (≥ 1400 px)
══════════════════════════════════════════════ */
@media (min-width: 1400px) {
    .chatbot-shell[b-roxl39kgmi] {
        --chat-content-width: min(2100px, 100vw);
        --chat-bubble-width: min(1040px, 64vw);
        --chat-side-padding: clamp(60px, 6vw, 140px); /* ← großzügig auf großen Screens */
        --chat-input-left-padding: 26px;
        --chat-input-card-padding-x: 22px;
        --chat-input-text-padding-top: 30px;
        --chat-input-text-padding-bottom: 14px;
    }

    .chatbot-float-title[b-roxl39kgmi] {
        font-size: 1.08rem !important;
    }

    .chat-msg__bubble[b-roxl39kgmi] {
        font-size: 1rem;
    }

    .chatbot-details-panel[b-roxl39kgmi] {
        max-height: min(38vh, 380px);
    }
}

/* ══════════════════════════════════════════════
   RESPONSIVE – Ultra-wide (≥ 2200 px)
══════════════════════════════════════════════ */
@media (min-width: 2200px) {
    .chatbot-shell[b-roxl39kgmi] {
        --chat-content-width: min(2400px, 100vw);
        --chat-bubble-width: min(1180px, 54vw);
        --chat-side-padding: clamp(80px, 7vw, 180px); /* ← maximal auf Ultra-wide */
        --chat-input-left-padding: 30px;
        --chat-input-right-padding: 18px;
        --chat-input-card-padding-x: 26px;
        --chat-input-card-padding-y-top: 18px;
        --chat-input-card-padding-y-bottom: 16px;
        --chat-input-text-padding-top: 34px;
        --chat-input-text-padding-bottom: 16px;
    }

    .chat-msg__bubble[b-roxl39kgmi] {
        font-size: 1.08rem;
    }

    .chatbot-details-panel[b-roxl39kgmi] {
        max-height: min(40vh, 440px);
    }
}
.chat-msg__visual-assets[b-roxl39kgmi] {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.chat-msg__visual-asset[b-roxl39kgmi] {
    margin: 0;
}

.chat-msg__visual-asset--inline[b-roxl39kgmi] {
    margin: 0.85rem 0;
}

.chat-msg__visual-asset-button[b-roxl39kgmi] {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.chat-msg__visual-asset-button:focus-visible[b-roxl39kgmi] {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 3px;
    border-radius: 8px;
}

.chat-msg__visual-asset img[b-roxl39kgmi] {
    display: block;
    width: auto;
    max-width: min(100%, 520px);
    max-height: min(34vh, 340px);
    margin: 0 auto;
    object-fit: contain;
    image-orientation: from-image;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
}

.chat-msg__visual-asset figcaption[b-roxl39kgmi] {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    opacity: 0.72;
    overflow-wrap: anywhere;
}
/* /Pages/Components/Chatbot/ChatbotMessage.razor.rz.scp.css */
/* ── Base message row ── */
.chat-msg[b-hx1iuq8f3f] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: chat-bubble-in-b-hx1iuq8f3f 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chat-msg--agent[b-hx1iuq8f3f] {
    justify-content: flex-start;
}

.chat-msg--user[b-hx1iuq8f3f] {
    justify-content: flex-end;
}

/* ── Avatar ── */
.chat-msg__avatar[b-hx1iuq8f3f] {
    flex-shrink: 0;
    margin-top: 4px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

/* ── Bubble base ── */
.chat-msg__bubble[b-hx1iuq8f3f] {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 20px;
    line-height: 1.6;
    position: relative;
    word-break: break-word;
}

/* Agent bubble: glassmorphism card */
.chat-msg__bubble--agent[b-hx1iuq8f3f] {
    background: color-mix(in srgb, var(--mud-palette-surface) 82%, transparent);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 50%, transparent);
    border-radius: 4px 20px 20px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* User bubble: primary solid */
.chat-msg__bubble--user[b-hx1iuq8f3f] {
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text, #fff);
    border-radius: 20px 4px 20px 20px;
    box-shadow: 0 2px 8px rgba(var(--mud-palette-primary-rgb, 232, 96, 12), 0.2), 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ── Typing indicator (replaces old pulsar) ── */
.chat-typing-indicator[b-hx1iuq8f3f] {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 0;
}

    .chat-typing-indicator span[b-hx1iuq8f3f] {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--mud-palette-primary);
        opacity: 0.4;
        animation: chat-typing-bounce-b-hx1iuq8f3f 1.4s ease-in-out infinite;
    }

        .chat-typing-indicator span:nth-child(2)[b-hx1iuq8f3f] {
            animation-delay: 0.15s;
        }

        .chat-typing-indicator span:nth-child(3)[b-hx1iuq8f3f] {
            animation-delay: 0.3s;
        }

@keyframes chat-typing-bounce-b-hx1iuq8f3f {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* ── Audio player ── */
.chat-audio-player[b-hx1iuq8f3f] {
    width: 100%;
    max-width: 280px;
    height: 36px;
    border-radius: 18px;
    margin-bottom: 4px;
}

/* ── Bubble entrance animation ── */
@keyframes chat-bubble-in-b-hx1iuq8f3f {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Links inside agent bubbles ── */
[b-hx1iuq8f3f] .chat-msg__bubble--agent a {
    color: var(--mud-palette-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: opacity 0.15s ease;
}

    [b-hx1iuq8f3f] .chat-msg__bubble--agent a:hover {
        opacity: 0.75;
    }

/* ── Code blocks inside messages ── */
[b-hx1iuq8f3f] .chat-msg__bubble pre {
    background: color-mix(in srgb, var(--mud-palette-background) 90%, var(--mud-palette-primary) 10%);
    border-radius: 10px;
    padding: 12px 16px;
    overflow-x: auto;
    margin: 8px 0;
    font-size: 0.8125rem;
    border: 1px solid var(--mud-palette-lines-default);
}

/* ── Mobile ── */
@media (max-width: 599.98px) {
    .chat-msg__bubble[b-hx1iuq8f3f] {
        max-width: 92%;
        padding: 10px 14px;
        font-size: 0.8125rem;
    }
}
/* /Pages/Components/Chatbot/ChatVisualAssetFigure.razor.rz.scp.css */
.chat-msg__visual-asset[b-55p9d6j0bm] {
    display: block;
    width: 100%;
    max-width: min(100%, 420px);
    margin: 0.75rem auto;
    overflow: hidden;
}

.chat-msg__visual-asset--inline[b-55p9d6j0bm] {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.chat-msg__visual-asset-button[b-55p9d6j0bm] {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
}

.chat-msg__visual-asset-button:focus-visible[b-55p9d6j0bm] {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 3px;
    border-radius: 8px;
}

.chat-msg__visual-asset img[b-55p9d6j0bm] {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: min(28vh, 260px);
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    image-orientation: from-image;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
}

.chat-msg__visual-asset figcaption[b-55p9d6j0bm] {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    opacity: 0.72;
    overflow-wrap: anywhere;
}

.chat-msg__visual-asset--loading[b-55p9d6j0bm] {
    max-width: min(100%, 320px);
}

.chat-msg__visual-asset-placeholder[b-55p9d6j0bm] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 96px;
    padding: 1rem;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(243, 244, 246, 0.92), rgba(255, 255, 255, 0.98), rgba(243, 244, 246, 0.92));
    background-size: 220% 100%;
    animation: chat-visual-asset-loading-b-55p9d6j0bm 1.2s ease-in-out infinite;
}

.chat-msg__visual-asset-placeholder-icon[b-55p9d6j0bm] {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 112, 67, 0.16), rgba(124, 58, 237, 0.14)),
        rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(31, 41, 55, 0.08);
}

.chat-msg__visual-asset-placeholder-line[b-55p9d6j0bm] {
    width: min(58%, 180px);
    height: 12px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.12);
}

@keyframes chat-visual-asset-loading-b-55p9d6j0bm {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}
/* /Pages/Components/Chatbot/KiwayChart.razor.rz.scp.css */
.kiway-chart-card[b-mcoxai78vk] {
    margin: 0.75rem 0;
    padding: 0.875rem;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 8px;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
}

.kiway-chart-card__header[b-mcoxai78vk] {
    min-width: 0;
}

.kiway-chart-card__title[b-mcoxai78vk] {
    font-weight: 700;
    line-height: 1.25;
}

.kiway-chart-card__description[b-mcoxai78vk],
.kiway-chart-card__unit[b-mcoxai78vk] {
    color: var(--mud-palette-text-secondary);
}

.kiway-chart-card__canvas[b-mcoxai78vk] {
    width: 100%;
    min-height: 280px;
    height: min(360px, 56vw);
    margin-top: 0.5rem;
}

.kiway-chart-card__canvas--large[b-mcoxai78vk] {
    min-height: 340px;
    height: min(460px, 64vw);
}

@media (max-width: 600px) {
    .kiway-chart-card[b-mcoxai78vk] {
        padding: 0.75rem;
    }

    .kiway-chart-card__canvas[b-mcoxai78vk] {
        min-height: 240px;
        height: 300px;
    }

    .kiway-chart-card__canvas--large[b-mcoxai78vk] {
        min-height: 320px;
        height: 360px;
    }
}
/* /Pages/Components/Chatbot/KiwayChartSourcesDialog.razor.rz.scp.css */
.kiway-chart-source[b-sb4htkzbwh] {
    padding: 0.75rem;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 8px;
}

.kiway-chart-source__data[b-sb4htkzbwh] {
    margin-top: 0.5rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
/* /Pages/Components/Chatbot/PersonalChatbot.razor.rz.scp.css */
/* ══════════════════════════════════════════════
   PERSONAL CHATBOT LAYOUT
   Strategie: chatbot-shell wird fixed positioniert,
   damit Eltern-Container (tab-page-host, main-content-area, ...)
   keine Heights/Paddings mehr addieren können.
   ══════════════════════════════════════════════ */

.chatbot-shell[b-187o59b3yu] {
    --chat-content-width: min(1920px, 100vw);
    --chat-bubble-width: min(980px, 72vw);
    --chat-side-padding: clamp(40px, 5vw, 120px);
    --chat-panel-radius: 22px;
    --chat-card-shadow: 0 16px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
    --chat-soft-shadow: 0 8px 20px rgba(0,0,0,0.10);
    --chat-input-left-padding: 22px;
    --chat-input-right-padding: 12px;
    --chat-input-card-padding-x: 18px;
    --chat-input-card-padding-y: 6px;
    --chat-input-text-padding-top: 18px;
    --chat-input-text-padding-bottom: 6px;
    --chat-appbar-height: 75px;
    --chat-legal-footer-height: 30px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100dvh - var(--chat-appbar-height) - var(--chat-legal-footer-height));
    min-height: calc(100dvh - var(--chat-appbar-height) - var(--chat-legal-footer-height));
    max-height: calc(100dvh - var(--chat-appbar-height) - var(--chat-legal-footer-height));
    overflow: hidden;
    background-color: var(--mud-palette-background);
    background-image: url("./pictures/hg6.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

    .chatbot-shell[b-187o59b3yu]::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background: color-mix(in srgb, var(--mud-palette-background) 88%, transparent);
    }

.chatbot-shell--drop-active[b-187o59b3yu] {
    cursor: copy;
}

.personal-chat-mode-toggle[b-187o59b3yu] {
    display: flex;
    align-items: flex-start;
    padding: 0 4px 8px;
    color: var(--mud-palette-text-primary);
}

.personal-chat-mode-toggle__hint[b-187o59b3yu] {
    color: var(--mud-palette-text-secondary);
    line-height: 1.4;
    padding-left: 2px;
}

/* ══════════════════════════════════════════════
   HIDDEN FILE UPLOAD
   ══════════════════════════════════════════════ */

.chatbot-hidden-upload[b-187o59b3yu] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

[b-187o59b3yu] .chatbot-hidden-upload .mud-file-upload,
[b-187o59b3yu] .chatbot-hidden-upload .mud-paper,
[b-187o59b3yu] .chatbot-hidden-upload input[type="file"] {
    display: block !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ══════════════════════════════════════════════
   DROP OVERLAY
   ══════════════════════════════════════════════ */

.chatbot-drop-overlay[b-187o59b3yu] {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    background: rgba(0,0,0,0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.chatbot-drop-overlay--visible[b-187o59b3yu] {
    opacity: 1;
}

.chatbot-drop-overlay__panel[b-187o59b3yu] {
    width: min(380px, calc(100vw - 40px));
    padding: 28px 28px 24px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 32%, transparent);
    background: color-mix(in srgb, var(--mud-palette-surface) 94%, transparent);
    box-shadow: var(--chat-card-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--mud-palette-text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* ══════════════════════════════════════════════
   HEADER (Chat-Titel, Back-Button) – immer sichtbar oben
   ══════════════════════════════════════════════ */

.chatbot-float-header[b-187o59b3yu] {
    position: relative;
    z-index: 10;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px var(--chat-side-padding) 4px calc(var(--chat-side-padding) - 8px);
    background: linear-gradient( to bottom, color-mix(in srgb, var(--mud-palette-background) 62%, transparent) 0%, transparent 100% );
}

.chatbot-float-header__inner[b-187o59b3yu] {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: var(--chat-content-width);
    margin: 0 auto;
}

.chatbot-back-btn[b-187o59b3yu] {
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

    .chatbot-back-btn:hover[b-187o59b3yu] {
        opacity: 1;
        transform: translateX(-2px);
    }

.chatbot-float-title[b-187o59b3yu] {
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.025em;
    color: var(--mud-palette-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════
   SCROLL AREA
   - Initial (keine Messages): schrumpft, Inhalt klebt oben,
     Bottom-Zone wird durch Spacer (::after) nach unten gedrückt.
   - Mit Messages: füllt verfügbaren Raum.
   ══════════════════════════════════════════════ */

.chatbot-scroll-area[b-187o59b3yu] {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0 8px;
    box-sizing: border-box;
    overscroll-behavior: contain;
    touch-action: pan-y;
    flex: 1 1 auto;
}

/* Initial-Mode: Welcome + Hint sollen oben kleben */
.chatbot-shell--initial .chatbot-scroll-area[b-187o59b3yu] {
    justify-content: flex-start;
}

/* ══════════════════════════════════════════════
   INITIAL UPLOAD HINT
   ══════════════════════════════════════════════ */

.personal-chat-upload-hint[b-187o59b3yu] {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 24px var(--chat-side-padding) 12px;
    text-align: center;
    color: var(--mud-palette-text-secondary);
}

.personal-chat-upload-hint__icon-wrap[b-187o59b3yu] {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--mud-palette-surface) 92%, transparent);
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 20%, transparent);
    box-shadow: var(--chat-soft-shadow);
    animation: personal-upload-pulse-b-187o59b3yu 2.2s ease-in-out infinite;
}

.personal-chat-upload-hint__icon[b-187o59b3yu] {
    color: var(--mud-palette-primary);
    font-size: 2.2rem !important;
}

.personal-chat-upload-hint__title[b-187o59b3yu] {
    color: var(--mud-palette-text-primary);
    font-weight: 700 !important;
}

.personal-chat-upload-hint__sub[b-187o59b3yu] {
    color: var(--mud-palette-text-secondary);
    line-height: 1.55;
    max-width: 400px;
}

/* ══════════════════════════════════════════════
   MESSAGES
   ══════════════════════════════════════════════ */

.chat-msg[b-187o59b3yu] {
    width: 100%;
    max-width: var(--chat-content-width);
    margin: 0 auto;
    padding: 0 var(--chat-side-padding);
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: chat-bubble-in-b-187o59b3yu 0.26s ease-out both;
}

.chat-msg--welcome[b-187o59b3yu] {
    margin-top: 4px;
    margin-bottom: 0;
}

.chat-msg--agent[b-187o59b3yu] {
    justify-content: flex-start;
}

.chat-msg--user[b-187o59b3yu] {
    justify-content: flex-end;
}

.chat-msg__avatar[b-187o59b3yu] {
    flex-shrink: 0;
    margin-top: 6px;
}

.chat-msg__bubble[b-187o59b3yu] {
    max-width: var(--chat-bubble-width);
    padding: 14px 18px;
    border-radius: 22px;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: anywhere;
    color: var(--mud-palette-text-primary);
}

.chat-msg__bubble--agent[b-187o59b3yu] {
    background: color-mix(in srgb, var(--mud-palette-surface) 90%, transparent);
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 55%, transparent);
    border-radius: 8px 22px 22px 22px;
    box-shadow: var(--chat-soft-shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.chat-msg__bubble--user[b-187o59b3yu] {
    background: linear-gradient( 180deg, color-mix(in srgb, var(--mud-palette-primary) 92%, white 8%), var(--mud-palette-primary) );
    color: var(--mud-palette-primary-text, #fff);
    border-radius: 22px 8px 22px 22px;
    box-shadow: 0 12px 24px rgba(var(--mud-palette-primary-rgb, 232,96,12), 0.22), 0 1px 0 rgba(255,255,255,0.14) inset;
}

/* ══════════════════════════════════════════════
   MESSAGE ACTIONS
   ══════════════════════════════════════════════ */

.chatbot-actions[b-187o59b3yu] {
    width: 100%;
    max-width: var(--chat-content-width);
    margin: 0 auto;
    padding: 2px var(--chat-side-padding) 0 calc(var(--chat-side-padding) + 44px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

    .chatbot-actions:hover[b-187o59b3yu] {
        opacity: 1;
    }

/* ══════════════════════════════════════════════
   BOTTOM INPUT ZONE (kompakt)
   ══════════════════════════════════════════════ */

.chatbot-bottom-zone[b-187o59b3yu] {
    position: relative;
    z-index: 8;
    flex: 0 0 auto;
    background: linear-gradient( to top, color-mix(in srgb, var(--mud-palette-background) 94%, transparent) 0%, color-mix(in srgb, var(--mud-palette-background) 70%, transparent) 55%, transparent 100% );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0 0 6px 0;
}

.chatbot-bottom-inner[b-187o59b3yu] {
    width: 100%;
    max-width: var(--chat-content-width);
    margin: 0 auto;
    padding: 0 var(--chat-side-padding);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.personal-chat-files[b-187o59b3yu] {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    padding: 0 2px 6px;
    overflow-x: auto;
    overflow-y: hidden;
}

    .personal-chat-files[b-187o59b3yu]::-webkit-scrollbar {
        display: none;
    }

/* ══════════════════════════════════════════════
   INPUT CARD
   ══════════════════════════════════════════════ */

.chatbot-input-card[b-187o59b3yu] {
    padding: var(--chat-input-card-padding-y) var(--chat-input-card-padding-x) !important;
    border-radius: var(--chat-panel-radius) !important;
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 45%, transparent) !important;
    background: color-mix(in srgb, var(--mud-palette-surface) 94%, transparent) !important;
    box-shadow: var(--chat-card-shadow) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .chatbot-input-card:focus-within[b-187o59b3yu] {
        border-color: color-mix(in srgb, var(--mud-palette-primary) 60%, white) !important;
        box-shadow: 0 0 0 3px rgba(var(--mud-palette-primary-rgb, 232,96,12), 0.09), var(--chat-card-shadow) !important;
    }

.chatbot-input-row[b-187o59b3yu] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
}

.chatbot-input-field[b-187o59b3yu] {
    width: 100%;
    min-width: 0;
}

[b-187o59b3yu] .chatbot-input-field .mud-input-control,
[b-187o59b3yu] .chatbot-input-field .mud-input-control-input-container,
[b-187o59b3yu] .chatbot-input-field .mud-input-input-control,
[b-187o59b3yu] .chatbot-input-field .mud-input-root {
    width: 100% !important;
    margin: 0 !important;
}

[b-187o59b3yu] .chatbot-input-field textarea.mud-input-slot,
[b-187o59b3yu] .chatbot-input-field input.mud-input-slot {
    width: 100% !important;
    min-height: 38px;
    margin: 0 !important;
    padding-top: var(--chat-input-text-padding-top) !important;
    padding-bottom: var(--chat-input-text-padding-bottom) !important;
    padding-left: var(--chat-input-left-padding) !important;
    padding-right: var(--chat-input-right-padding) !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    text-align: left !important;
    color: var(--mud-palette-text-primary) !important;
    background: transparent !important;
}

    [b-187o59b3yu] .chatbot-input-field textarea.mud-input-slot::placeholder,
    [b-187o59b3yu] .chatbot-input-field input.mud-input-slot::placeholder {
        color: var(--mud-palette-text-secondary) !important;
        opacity: 0.9 !important;
        text-align: left !important;
    }

[b-187o59b3yu] .chatbot-input-field .mud-input-underline::before,
[b-187o59b3yu] .chatbot-input-field .mud-input-underline::after {
    left: var(--chat-input-left-padding) !important;
    right: var(--chat-input-right-padding) !important;
}

[b-187o59b3yu] .chatbot-input-row .mud-icon-button {
    align-self: center;
}

/* ══════════════════════════════════════════════
   RECORDING
   ══════════════════════════════════════════════ */

.chatbot-recording-row[b-187o59b3yu] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
}

.chatbot-visualizer-container[b-187o59b3yu] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    padding: 2px 0;
}

.chatbot-visualizer-canvas[b-187o59b3yu] {
    width: 100%;
    height: 40px;
    display: block;
}

/* ══════════════════════════════════════════════
   TYPING INDICATOR
   ══════════════════════════════════════════════ */

.chat-typing-indicator[b-187o59b3yu] {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 0;
}

    .chat-typing-indicator span[b-187o59b3yu] {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--mud-palette-primary);
        opacity: 0.4;
        animation: chat-typing-bounce-b-187o59b3yu 1.4s ease-in-out infinite;
    }

        .chat-typing-indicator span:nth-child(2)[b-187o59b3yu] {
            animation-delay: 0.15s;
        }

        .chat-typing-indicator span:nth-child(3)[b-187o59b3yu] {
            animation-delay: 0.30s;
        }

/* ══════════════════════════════════════════════
   MARKDOWN
   ══════════════════════════════════════════════ */

[b-187o59b3yu] .chat-msg__bubble--agent,
[b-187o59b3yu] .chat-msg__bubble--agent * {
    color: var(--mud-palette-text-primary);
}

    [b-187o59b3yu] .chat-msg__bubble--agent a {
        color: var(--mud-palette-primary);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

[b-187o59b3yu] .chat-msg__bubble table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    display: block;
    overflow-x: auto;
}

[b-187o59b3yu] .chat-msg__bubble th,
[b-187o59b3yu] .chat-msg__bubble td {
    border: 1px solid var(--mud-palette-lines-default);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    color: inherit;
}

[b-187o59b3yu] .chat-msg__bubble th {
    background: color-mix(in srgb, var(--mud-palette-background) 90%, var(--mud-palette-primary) 10%);
    font-weight: 700;
}

[b-187o59b3yu] .chat-msg__bubble table tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--mud-palette-background) 96%, var(--mud-palette-primary) 4%);
}

[b-187o59b3yu] .chat-msg__bubble pre {
    background: color-mix(in srgb, var(--mud-palette-background) 92%, var(--mud-palette-primary) 8%);
    border-radius: 12px;
    padding: 14px 16px;
    overflow-x: auto;
    margin: 10px 0;
    font-size: 0.8125rem;
    border: 1px solid var(--mud-palette-lines-default);
    color: var(--mud-palette-text-primary);
}

[b-187o59b3yu] .chat-msg__bubble code {
    color: var(--mud-palette-text-primary);
}

[b-187o59b3yu] .chat-msg__bubble p {
    margin: 0 0 0.7rem 0;
}

    [b-187o59b3yu] .chat-msg__bubble p:last-child {
        margin-bottom: 0;
    }

[b-187o59b3yu] .chat-msg__bubble ul,
[b-187o59b3yu] .chat-msg__bubble ol {
    margin-top: 0.4rem;
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    color: inherit;
}

/* ══════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════ */

@keyframes chat-bubble-in-b-187o59b3yu {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes chat-typing-bounce-b-187o59b3yu {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

@keyframes personal-upload-pulse-b-187o59b3yu {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--chat-soft-shadow);
    }

    50% {
        transform: scale(1.04);
        box-shadow: 0 14px 30px rgba(var(--mud-palette-primary-rgb, 232,96,12), 0.18);
    }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 599.98px) {
    .chatbot-shell[b-187o59b3yu] {
        --chat-side-padding: 16px;
        --chat-bubble-width: 100%;
        --chat-input-left-padding: 16px;
        --chat-input-right-padding: 10px;
        --chat-input-card-padding-x: 14px;
        --chat-input-card-padding-y: 6px;
        --chat-input-text-padding-top: 16px;
        --chat-input-text-padding-bottom: 6px;
        --chat-appbar-height: 56px;
        --chat-legal-footer-height: 26px;
    }

    .chatbot-float-header[b-187o59b3yu] {
        padding: 8px var(--chat-side-padding) 2px var(--chat-side-padding);
        min-height: 40px;
    }

    .chatbot-float-title[b-187o59b3yu] {
        font-size: 0.92rem !important;
    }

    .chatbot-scroll-area[b-187o59b3yu] {
        gap: 10px;
    }

    .chat-msg__bubble[b-187o59b3yu] {
        max-width: 100%;
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .chatbot-input-row[b-187o59b3yu],
    .chatbot-recording-row[b-187o59b3yu] {
        min-height: 44px;
        gap: 8px;
    }

    .chatbot-bottom-zone[b-187o59b3yu] {
        padding-bottom: max(4px, env(safe-area-inset-bottom));
    }

    .personal-chat-upload-hint[b-187o59b3yu] {
        padding: 16px var(--chat-side-padding) 10px;
    }

    .personal-chat-upload-hint__icon-wrap[b-187o59b3yu] {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }
}

@media (min-width: 600px) and (max-width: 1399.98px) {
    .chatbot-shell[b-187o59b3yu] {
        --chat-side-padding: clamp(32px, 4vw, 80px);
    }
}

@media (min-width: 1400px) {
    .chatbot-shell[b-187o59b3yu] {
        --chat-content-width: min(2100px, 100vw);
        --chat-bubble-width: min(1040px, 64vw);
        --chat-side-padding: clamp(60px, 6vw, 140px);
        --chat-input-left-padding: 26px;
    }

    .chatbot-float-title[b-187o59b3yu] {
        font-size: 1.08rem !important;
    }

    .chat-msg__bubble[b-187o59b3yu] {
        font-size: 1rem;
    }
}

@media (min-width: 2200px) {
    .chatbot-shell[b-187o59b3yu] {
        --chat-content-width: min(2400px, 100vw);
        --chat-bubble-width: min(1180px, 54vw);
        --chat-side-padding: clamp(80px, 7vw, 180px);
        --chat-input-left-padding: 30px;
        --chat-input-right-padding: 18px;
        --chat-input-card-padding-x: 26px;
        --chat-input-card-padding-y: 8px;
        --chat-input-text-padding-top: 20px;
        --chat-input-text-padding-bottom: 8px;
    }

    .chat-msg__bubble[b-187o59b3yu] {
        font-size: 1.08rem;
    }
}
.chat-msg__visual-assets[b-187o59b3yu] {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.chat-msg__visual-asset[b-187o59b3yu] {
    margin: 0;
}

.chat-msg__visual-asset--inline[b-187o59b3yu] {
    margin: 0.85rem 0;
}

.chat-msg__visual-asset-button[b-187o59b3yu] {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.chat-msg__visual-asset-button:focus-visible[b-187o59b3yu] {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 3px;
    border-radius: 8px;
}

.chat-msg__visual-asset img[b-187o59b3yu] {
    display: block;
    width: auto;
    max-width: min(100%, 520px);
    max-height: min(34vh, 340px);
    margin: 0 auto;
    object-fit: contain;
    image-orientation: from-image;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
}

.chat-msg__visual-asset figcaption[b-187o59b3yu] {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    opacity: 0.72;
    overflow-wrap: anywhere;
}
/* /Pages/Components/Tutorials/TutorialPlayerDialog.razor.rz.scp.css */
.tutorial-player-content[b-90ncbq40x4] {
    padding: 8px 8px 4px 8px !important;
}

.tutorial-player-frame-wrap[b-90ncbq40x4] {
    display: flex;
    justify-content: center;
    width: 100%;
}

.tutorial-player-frame[b-90ncbq40x4] {
    position: relative;
    width: 100%;
    max-width: 820px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: var(--mud-palette-black);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

[b-90ncbq40x4] .tutorial-player-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.tutorial-player-actions[b-90ncbq40x4] {
    padding: 0 8px 8px 8px !important;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 599.98px) {
    .tutorial-player-content[b-90ncbq40x4] {
        padding: 6px 6px 4px 6px !important;
    }

    .tutorial-player-frame[b-90ncbq40x4] {
        border-radius: 8px;
    }

    .tutorial-player-actions[b-90ncbq40x4] {
        padding: 0 6px 6px 6px !important;
    }
}

@media (min-width: 1600px) {
    .tutorial-player-frame[b-90ncbq40x4] {
        max-width: 900px;
    }
}
/* /Pages/Components/Tutorials/TutorialsPanel.razor.rz.scp.css */
/* ══════════════════════════════════════════
   TUTORIALS PANEL
   Compact responsive cards
   Preview area uses normal app background
   ══════════════════════════════════════════ */

/* Page wrapper: KEIN eigener Seiten-Hintergrund */
.tutorials-page[b-1958vvitq7] {
    width: 100%;
    min-height: calc(100vh - 75px);
    box-sizing: border-box;
    background: transparent;
}

/* MudContainer + CSS Isolation */
[b-1958vvitq7] .tutorials-panel {
    width: 100%;
    max-width: none;
    padding: 30px clamp(42px, 7vw, 128px) 64px;
    box-sizing: border-box;
}

/* Empty state */
.tutorials-empty-state[b-1958vvitq7] {
    border-radius: 14px;
}

/* Header */
.tutorials-header[b-1958vvitq7] {
    margin-bottom: 6px;
}

.tutorials-main-title[b-1958vvitq7] {
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: var(--mud-palette-text-primary);
}

.tutorials-intro[b-1958vvitq7] {
    max-width: 760px;
    margin-bottom: 28px;
}

.tutorials-intro-text[b-1958vvitq7] {
    color: var(--mud-palette-text-secondary);
    line-height: 1.65;
}

/* Sections */
.tutorial-section[b-1958vvitq7] {
    width: 100%;
}

    .tutorial-section + .tutorial-section[b-1958vvitq7] {
        margin-top: 34px;
    }

    .tutorial-section:last-child[b-1958vvitq7] {
        padding-bottom: 36px;
    }

.tutorial-section-header[b-1958vvitq7] {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

.tutorial-section-title[b-1958vvitq7] {
    font-weight: 800;
    letter-spacing: -0.018em;
    line-height: 1.25;
    color: var(--mud-palette-text-primary);
}

.tutorial-section-count[b-1958vvitq7] {
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

/* Grid */
.tutorial-grid[b-1958vvitq7] {
    align-items: stretch;
}

/* Card */
.tutorial-card[b-1958vvitq7] {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 162px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 13px;
    background: var(--mud-palette-surface);
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 72%, transparent);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.065), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

    .tutorial-card:hover[b-1958vvitq7] {
        transform: translateY(-3px);
        border-color: rgba(var(--mud-palette-primary-rgb), 0.38);
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.10), 0 4px 10px rgba(0, 0, 0, 0.055);
    }

    .tutorial-card:active[b-1958vvitq7] {
        transform: translateY(-1px);
    }

/* Preview: normaler App-Hintergrund, KEIN Overlay, KEIN Verlauf */
.tutorial-preview[b-1958vvitq7] {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background: var(--mud-palette-background);
}

    /* Wichtig: keine Fläche über/unter dem Logo */
    .tutorial-preview[b-1958vvitq7]::before {
        content: none;
    }

.tutorial-preview-image[b-1958vvitq7] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 11px 14px;
    box-sizing: border-box;
}

/* Fallback ebenfalls neutral */
.tutorial-preview-fallback-surface[b-1958vvitq7] {
    background: var(--mud-palette-background);
}

/* Overlay komplett aus */
.tutorial-preview-overlay[b-1958vvitq7] {
    display: none;
}

/* Body */
.tutorial-body[b-1958vvitq7] {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 auto;
    min-height: 54px;
    padding: 9px 11px 10px;
    background: var(--mud-palette-surface);
    text-align: center;
}

.tutorial-body-title[b-1958vvitq7] {
    width: 100%;
    min-height: calc(1.3em * 2);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--mud-palette-text-primary);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-align: center;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* Dark mode */
.mud-theme-dark .tutorial-card[b-1958vvitq7] {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34), 0 3px 10px rgba(0, 0, 0, 0.22);
}

    .mud-theme-dark .tutorial-card:hover[b-1958vvitq7] {
        border-color: rgba(var(--mud-palette-primary-rgb), 0.55);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42), 0 5px 12px rgba(0, 0, 0, 0.28);
    }

/* Mobile */
@media (max-width: 599.98px) {
    .tutorials-page[b-1958vvitq7] {
        min-height: calc(100vh - 56px);
    }

    [b-1958vvitq7] .tutorials-panel {
        padding: 18px 18px 58px;
    }

    .tutorials-main-title[b-1958vvitq7] {
        font-size: 1.45rem;
    }

    .tutorials-intro[b-1958vvitq7] {
        margin-bottom: 22px;
    }

    .tutorials-intro-text[b-1958vvitq7] {
        font-size: 0.78rem;
    }

    .tutorial-section + .tutorial-section[b-1958vvitq7] {
        margin-top: 26px;
    }

    .tutorial-section:last-child[b-1958vvitq7] {
        padding-bottom: 32px;
    }

    .tutorial-section-header[b-1958vvitq7] {
        gap: 8px;
        margin-bottom: 10px;
    }

    .tutorial-section-title[b-1958vvitq7] {
        font-size: 0.9rem;
    }

    .tutorial-card[b-1958vvitq7] {
        min-height: 178px;
        border-radius: 12px;
    }

    .tutorial-preview[b-1958vvitq7] {
        aspect-ratio: 16 / 8.8;
    }

    .tutorial-preview-image[b-1958vvitq7] {
        padding: 11px 13px;
    }

    .tutorial-body[b-1958vvitq7] {
        min-height: 54px;
        padding: 9px 10px 10px;
    }

    .tutorial-body-title[b-1958vvitq7] {
        font-size: 0.78rem;
    }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 959.98px) {
    [b-1958vvitq7] .tutorials-panel {
        padding: 24px clamp(34px, 6vw, 72px) 60px;
    }

    .tutorial-card[b-1958vvitq7] {
        min-height: 170px;
    }

    .tutorial-preview-image[b-1958vvitq7] {
        padding: 11px 14px;
    }
}

/* Small desktop */
@media (min-width: 960px) and (max-width: 1399.98px) {
    [b-1958vvitq7] .tutorials-panel {
        padding: 28px clamp(52px, 7vw, 104px) 66px;
    }

    .tutorial-card[b-1958vvitq7] {
        min-height: 160px;
    }
}

/* Desktop */
@media (min-width: 1400px) and (max-width: 1919.98px) {
    [b-1958vvitq7] .tutorials-panel {
        padding: 30px clamp(72px, 8vw, 136px) 70px;
    }

    .tutorial-card[b-1958vvitq7] {
        min-height: 168px;
    }
}

/* Large desktop */
@media (min-width: 1920px) {
    [b-1958vvitq7] .tutorials-panel {
        padding: 34px clamp(96px, 9vw, 180px) 78px;
    }

    .tutorial-section + .tutorial-section[b-1958vvitq7] {
        margin-top: 38px;
    }

    .tutorial-section:last-child[b-1958vvitq7] {
        padding-bottom: 48px;
    }

    .tutorials-main-title[b-1958vvitq7] {
        font-size: 2.75rem;
    }

    .tutorial-card[b-1958vvitq7] {
        min-height: 176px;
        border-radius: 15px;
    }

    .tutorial-preview-image[b-1958vvitq7] {
        padding: 13px 16px;
    }

    .tutorial-body-title[b-1958vvitq7] {
        font-size: 0.82rem;
    }
}

/* Ultra-wide */
@media (min-width: 2560px) {
    [b-1958vvitq7] .tutorials-panel {
        padding: 38px clamp(140px, 10vw, 260px) 86px;
    }

    .tutorial-section:last-child[b-1958vvitq7] {
        padding-bottom: 56px;
    }

    .tutorials-main-title[b-1958vvitq7] {
        font-size: 3.2rem;
    }

    .tutorial-card[b-1958vvitq7] {
        min-height: 184px;
    }
}
/* /Pages/Main/Components/FavoritesDrawer.razor.rz.scp.css */
[b-w5guy1pvdp] .favorites-drawer .mud-drawer-content {
    padding: 0 !important;
    overflow: hidden !important;
    background: white;
}

.favorites-shell[b-w5guy1pvdp] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.favorites-header[b-w5guy1pvdp] {
    display: flex;
    align-items: center;
    padding: 16px 12px 10px 16px;
    flex: 0 0 auto;
}

[b-w5guy1pvdp] .favorites-header .mud-typography {
    color: #000 !important;
}

[b-w5guy1pvdp] .favorites-divider {
    flex: 0 0 auto !important;
}

.favorites-list[b-w5guy1pvdp] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 8px 16px 8px;
}

.favorites-empty[b-w5guy1pvdp] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

[b-w5guy1pvdp] .favorites-drop-container {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
}

[b-w5guy1pvdp] .favorites-dropzone,
[b-w5guy1pvdp] .favorites-dropzone.mud-drop-zone {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 2px;
    padding: 0 !important;
    border: none !important;
    min-height: 0 !important;
    height: auto !important;
}

    [b-w5guy1pvdp] .favorites-dropzone .mud-drop-item {
        flex: 0 0 auto !important;
        min-height: 0 !important;
    }

.favorite-item[b-w5guy1pvdp] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    min-height: 44px;
    user-select: none;
    -webkit-user-select: none;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

    .favorite-item:hover[b-w5guy1pvdp] {
        background-color: var(--mud-palette-action-default-hover);
    }

    .favorite-item:active[b-w5guy1pvdp] {
        transform: scale(0.98);
    }

.favorite-drag-handle[b-w5guy1pvdp] {
    flex-shrink: 0;
    opacity: 0.35;
    cursor: grab;
    transition: opacity 0.15s ease;
}

.favorite-item:hover .favorite-drag-handle[b-w5guy1pvdp] {
    opacity: 0.7;
}

.favorite-drag-handle:active[b-w5guy1pvdp] {
    cursor: grabbing;
}

.favorite-item-icon[b-w5guy1pvdp] {
    flex-shrink: 0;
    border-radius: 4px;
    object-fit: contain;
}

.favorite-item-name[b-w5guy1pvdp] {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.875rem;
    line-height: 1.4;
}
/* /Pages/Main/Components/Sidebar.razor.rz.scp.css */
.sidebar-drawer[b-joxallcale] {
    display: flex;
    flex-direction: column;
}

[b-joxallcale] .theme-toggle-switch {
    width: 100%;
}

    [b-joxallcale] .theme-toggle-switch .mud-icon-button:hover {
        transform: none !important;
    }

    [b-joxallcale] .theme-toggle-switch .mud-button-root:hover {
        transform: none !important;
    }

    [b-joxallcale] .theme-toggle-switch .mud-ripple,
    [b-joxallcale] .theme-toggle-switch .mud-switch-ripple {
        transform: none !important;
    }

    [b-joxallcale] .theme-toggle-switch .mud-switch-track {
        transition: background-color 0.2s ease !important;
    }
/* /Pages/Main/Main.razor.rz.scp.css */
/* ─────────────────────────────────────────────
   APP BAR
───────────────────────────────────────────── */

.main-appbar[b-dwj9xiq2lv] {
    position: sticky !important;
    top: 0;
    z-index: 4;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ─────────────────────────────────────────────
   BURGER MENU
───────────────────────────────────────────── */

.burger-menu-btn[b-dwj9xiq2lv] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-left: 4px;
    margin-right: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

    .burger-menu-btn:hover[b-dwj9xiq2lv] {
        opacity: 0.8;
    }

    .burger-menu-btn:active[b-dwj9xiq2lv] {
        opacity: 0.6;
    }

.burger-icon[b-dwj9xiq2lv] {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

    .burger-icon span[b-dwj9xiq2lv] {
        position: absolute;
        left: 0;
        display: block;
        width: 100%;
        height: 3px;
        background: currentColor;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

        .burger-icon span:nth-child(1)[b-dwj9xiq2lv] {
            top: 0;
        }

        .burger-icon span:nth-child(2)[b-dwj9xiq2lv] {
            top: 50%;
            transform: translateY(-50%);
        }

        .burger-icon span:nth-child(3)[b-dwj9xiq2lv] {
            bottom: 0;
        }

    .burger-icon.open span:nth-child(1)[b-dwj9xiq2lv] {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .burger-icon.open span:nth-child(2)[b-dwj9xiq2lv] {
        opacity: 0;
        transform: translateY(-50%) scaleX(0);
    }

    .burger-icon.open span:nth-child(3)[b-dwj9xiq2lv] {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

/* ─────────────────────────────────────────────
   APP BAR TABS / WRAPPER
───────────────────────────────────────────── */

.appbar-tabs-wrapper[b-dwj9xiq2lv] {
    display: flex;
    align-items: center;
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
}

.appbar-scroll-btn[b-dwj9xiq2lv] {
    flex-shrink: 0 !important;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

    .appbar-scroll-btn:hover[b-dwj9xiq2lv] {
        opacity: 1;
    }

.appbar-tabs-container[b-dwj9xiq2lv] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 0%;
    min-width: 0;
    margin: 0 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .appbar-tabs-container[b-dwj9xiq2lv]::-webkit-scrollbar {
        display: none;
    }

/* ─────────────────────────────────────────────
   TAB CHIPS
───────────────────────────────────────────── */

.appbar-tab-chip[b-dwj9xiq2lv] {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    overflow: visible !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

[b-dwj9xiq2lv] .appbar-tab-chip.mud-chip {
    flex: 0 0 auto !important;
    min-width: fit-content !important;
    max-width: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

[b-dwj9xiq2lv] .appbar-tab-chip .mud-chip-content {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

[b-dwj9xiq2lv] .appbar-tab-chip .mud-chip-close-button {
    flex-shrink: 0 !important;
}

.appbar-tab-active[b-dwj9xiq2lv] {
    font-weight: 600;
}

/* ─────────────────────────────────────────────
   USER SECTION
───────────────────────────────────────────── */

.appbar-user-section[b-dwj9xiq2lv] {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 8px;
}

.appbar-username[b-dwj9xiq2lv] {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─────────────────────────────────────────────
   CONTENT AREA
───────────────────────────────────────────── */

.main-content-area[b-dwj9xiq2lv] {
    animation: content-fade-in-b-dwj9xiq2lv 0.25s ease-out;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.tab-page-host[b-dwj9xiq2lv] {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 64px);
    padding-bottom: max(32px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.tab-full-content[b-dwj9xiq2lv] {
    width: 100%;
    min-height: calc(100vh - 64px);
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

    /* optional: letzter direkter Block bekommt extra Luft */
    .tab-page-host > *:last-child[b-dwj9xiq2lv],
    .tab-full-content > *:last-child[b-dwj9xiq2lv] {
        margin-bottom: 8px;
    }

/* ─────────────────────────────────────────────
   FLOATING BACK POSITION
───────────────────────────────────────────── */

@media (max-width: 599.98px) {
    .tab-floating-back[b-dwj9xiq2lv] {
        top: 8px;
        left: 8px;
    }
}

@media (min-width: 1400px) {
    .tab-floating-back[b-dwj9xiq2lv] {
        top: 14px;
        left: 14px;
    }
}

/* ─────────────────────────────────────────────
   ANIMATION
───────────────────────────────────────────── */

@keyframes content-fade-in-b-dwj9xiq2lv {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─────────────────────────────────────────────
   MOBILE
───────────────────────────────────────────── */

@media (max-width: 599.98px) {
    .appbar-tabs-container[b-dwj9xiq2lv] {
        gap: 4px;
        margin: 0 2px;
    }

    [b-dwj9xiq2lv] .appbar-tab-chip.mud-chip {
        font-size: 0.75rem !important;
    }

    .appbar-username[b-dwj9xiq2lv] {
        max-width: 80px;
    }

    .main-content-area[b-dwj9xiq2lv] {
        padding: 0 0 max(20px, env(safe-area-inset-bottom)) 0;
    }

    .tab-page-host[b-dwj9xiq2lv] {
        min-height: calc(100vh - 64px);
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    .tab-full-content[b-dwj9xiq2lv] {
        min-height: calc(100vh - 64px);
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .burger-menu-btn[b-dwj9xiq2lv] {
        width: 44px;
        height: 44px;
    }

    .burger-icon[b-dwj9xiq2lv] {
        width: 22px;
        height: 16px;
    }

        .burger-icon span[b-dwj9xiq2lv] {
            height: 2.5px;
        }
}

/* ─────────────────────────────────────────────
   TABLET
───────────────────────────────────────────── */

@media (min-width: 600px) and (max-width: 959.98px) {
    [b-dwj9xiq2lv] .appbar-tab-chip.mud-chip {
        font-size: 0.8125rem !important;
    }

    .appbar-username[b-dwj9xiq2lv] {
        max-width: 120px;
    }

    .main-content-area[b-dwj9xiq2lv] {
        padding-bottom: max(28px, env(safe-area-inset-bottom));
    }

    .tab-page-host[b-dwj9xiq2lv] {
        padding-bottom: max(32px, env(safe-area-inset-bottom));
    }
}

/* ─────────────────────────────────────────────
   DESKTOP LARGE
───────────────────────────────────────────── */

@media (min-width: 1400px) {
    .main-content-area[b-dwj9xiq2lv] {
        padding-bottom: 32px;
    }

    .tab-page-host[b-dwj9xiq2lv] {
        padding-bottom: 40px;
    }

    .tab-full-content[b-dwj9xiq2lv] {
        padding-bottom: 32px;
    }
}

/* ─────────────────────────────────────────────
   ULTRA-WIDE
───────────────────────────────────────────── */

@media (min-width: 2560px) {
    [b-dwj9xiq2lv] .appbar-tab-chip.mud-chip {
        font-size: 1rem !important;
        padding: 8px 20px !important;
    }

    .burger-icon[b-dwj9xiq2lv] {
        width: 26px;
        height: 20px;
    }

        .burger-icon span[b-dwj9xiq2lv] {
            height: 3.5px;
        }

    .main-content-area[b-dwj9xiq2lv] {
        padding-bottom: 40px;
    }

    .tab-page-host[b-dwj9xiq2lv] {
        padding-bottom: 48px;
    }

    .tab-full-content[b-dwj9xiq2lv] {
        padding-bottom: 40px;
    }
}
