@import '_content/AuralizeBlazor/AuralizeBlazor.tf5u2o3oxg.bundle.scp.css';
@import '_content/Nextended.Blazor/Nextended.Blazor.tkxqvq0zjw.bundle.scp.css';

/* /Components/DiscordEmbedPreview.razor.rz.scp.css */
/* Discord Theme Colors */
:root[b-is150gbkdn] {
    --discord-background: #36393f;
    --discord-embed-bg: #2f3136;
    --discord-text: #dcddde;
    --discord-text-muted: #72767d;
    --discord-link: #00b0f4;
    --discord-button-bg: #4f545c;
    --discord-button-hover: #5d6269;
}

.discord-message-container[b-is150gbkdn] {
    font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--discord-background);
    padding: 16px;
    border-radius: 8px;
    max-width: 520px;
}

.discord-embed[b-is150gbkdn] {
    background-color: var(--discord-embed-bg);
    border-radius: 4px;
    padding: 8px 16px 16px 12px;
    max-width: 516px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

/* Color bar on the left - uses the --embed-color CSS variable */
.discord-embed[b-is150gbkdn]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--embed-color, #5865F2);
    border-radius: 4px 0 0 4px;
}

.discord-embed-content[b-is150gbkdn] {
    display: flex;
    gap: 16px;
}

.discord-embed-body[b-is150gbkdn] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.discord-embed-title[b-is150gbkdn] {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.discord-embed-description[b-is150gbkdn] {
    color: var(--discord-text);
    font-size: 14px;
    line-height: 1.375rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 8px;
}

/* Style markdown content inside description */
.discord-embed-description[b-is150gbkdn]  p {
    margin: 0 0 8px 0;
}

.discord-embed-description[b-is150gbkdn]  p:last-child {
    margin-bottom: 0;
}

.discord-embed-description[b-is150gbkdn]  strong {
    font-weight: 700;
}

.discord-embed-description[b-is150gbkdn]  em {
    font-style: italic;
}

.discord-embed-description[b-is150gbkdn]  code {
    background-color: #202225;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 85%;
    font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', monospace;
}

.discord-embed-description[b-is150gbkdn]  pre {
    background-color: #2f3136;
    border: 1px solid #202225;
    border-radius: 4px;
    padding: 8px;
    overflow-x: auto;
    margin: 6px 0;
}

.discord-embed-description[b-is150gbkdn]  pre code {
    background: none;
    padding: 0;
}

.discord-embed-description[b-is150gbkdn]  a {
    color: var(--discord-link);
    text-decoration: none;
}

.discord-embed-description[b-is150gbkdn]  a:hover {
    text-decoration: underline;
}

.discord-embed-thumbnail[b-is150gbkdn] {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.discord-embed-thumbnail img[b-is150gbkdn] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discord-embed-fields[b-is150gbkdn] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.discord-embed-field[b-is150gbkdn] {
    min-width: 0;
    flex: 1 0 100%;
}

.discord-embed-field.inline[b-is150gbkdn] {
    flex: 1 0 calc(33.33% - 8px);
    max-width: calc(33.33% - 8px);
}

.discord-embed-field-name[b-is150gbkdn] {
    color: var(--discord-text);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    word-wrap: break-word;
}

.discord-embed-field-value[b-is150gbkdn] {
    color: var(--discord-text);
    font-size: 14px;
    line-height: 1.125rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.discord-embed-field-value[b-is150gbkdn]  p {
    margin: 0;
}

.discord-embed-image[b-is150gbkdn] {
    margin-top: 8px;
    max-width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.discord-embed-image img[b-is150gbkdn] {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 4px;
}

.discord-embed-footer[b-is150gbkdn] {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.discord-embed-timestamp[b-is150gbkdn] {
    color: var(--discord-text-muted);
    font-size: 12px;
}

/* Link Buttons */
.discord-buttons[b-is150gbkdn] {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.discord-button-row[b-is150gbkdn] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.discord-link-button[b-is150gbkdn] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 16px;
    min-width: 60px;
    min-height: 32px;
    background-color: var(--discord-button-bg);
    color: #fff;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease;
    cursor: pointer;
    border: none;
}

.discord-link-button:hover[b-is150gbkdn] {
    background-color: var(--discord-button-hover);
    text-decoration: none;
    color: #fff;
}

.discord-button-emoji[b-is150gbkdn] {
    font-size: 16px;
}

.discord-external-link-icon[b-is150gbkdn] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-left: auto;
    opacity: 0.8;
}

/* Empty state */
.discord-embed:empty[b-is150gbkdn]::before {
    content: 'Start typing to see preview...';
    color: var(--discord-text-muted);
    font-style: italic;
}
/* /Pages/Staff/Neo.razor.rz.scp.css */
/* ── Full-page Chat Layout ── */

.neo-container[b-d1xpk6u3g1] {
    display: flex;
    height: calc(100vh - 118px);
    margin: -24px;
    overflow: hidden;
    border-radius: 8px;
}

/* ── Sidebar ── */

[b-d1xpk6u3g1] .neo-sidebar {
    width: 280px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-background-gray);
    overflow: hidden;
}

.neo-sidebar-header[b-d1xpk6u3g1] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    flex-shrink: 0;
}

.neo-sidebar-list[b-d1xpk6u3g1] {
    flex: 1;
    overflow-y: auto;
}

.neo-sidebar-empty[b-d1xpk6u3g1] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 16px;
}

.neo-conv-item[b-d1xpk6u3g1] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.neo-conv-item:hover[b-d1xpk6u3g1] {
    background: var(--mud-palette-action-default-hover);
}

.neo-conv-item.active[b-d1xpk6u3g1] {
    background: rgba(var(--mud-palette-primary-rgb), 0.08);
}

.neo-conv-item.active[b-d1xpk6u3g1]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--mud-palette-primary);
}

[b-d1xpk6u3g1] .neo-conv-icon {
    opacity: 0.5;
    flex-shrink: 0;
}

.neo-conv-text[b-d1xpk6u3g1] {
    flex: 1;
    min-width: 0;
}

.neo-conv-title[b-d1xpk6u3g1] {
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.neo-conv-meta[b-d1xpk6u3g1] {
    font-size: 0.7rem;
    opacity: 0.45;
    margin-top: 1px;
}

[b-d1xpk6u3g1] .neo-conv-delete {
    opacity: 0;
    transition: opacity 0.15s;
}

.neo-conv-item:hover[b-d1xpk6u3g1]  .neo-conv-delete {
    opacity: 1;
}

/* ── Chat Area ── */

.neo-chat[b-d1xpk6u3g1] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--mud-palette-background);
}

[b-d1xpk6u3g1] .neo-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    flex-shrink: 0;
    background: var(--mud-palette-background-gray);
}

.neo-chat-header-left[b-d1xpk6u3g1] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.neo-chat-header-right[b-d1xpk6u3g1] {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

[b-d1xpk6u3g1] .neo-sidebar-toggle {
    display: none;
}

/* ── Messages ── */

.neo-messages[b-d1xpk6u3g1] {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 0.875rem;
}

.neo-empty[b-d1xpk6u3g1] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    text-align: center;
    padding: 48px 24px;
    opacity: 0.9;
}

.neo-msg[b-d1xpk6u3g1] {
    display: flex;
    gap: 10px;
    max-width: 80%;
    animation: neo-msg-in-b-d1xpk6u3g1 0.2s ease-out;
}

@keyframes neo-msg-in-b-d1xpk6u3g1 {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.neo-msg.user[b-d1xpk6u3g1] {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.neo-msg.assistant[b-d1xpk6u3g1] {
    align-self: flex-start;
}

[b-d1xpk6u3g1] .neo-msg-avatar {
    flex-shrink: 0;
    margin-top: 2px;
}

.neo-msg-bubble[b-d1xpk6u3g1] {
    padding: 10px 14px;
    border-radius: 12px;
    overflow-x: hidden;
    overflow-wrap: break-word;
    min-width: 0;
}

.neo-msg.user .neo-msg-bubble[b-d1xpk6u3g1] {
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    border-bottom-right-radius: 3px;
}

.neo-msg.assistant .neo-msg-bubble[b-d1xpk6u3g1] {
    background: var(--mud-palette-surface);
    border-bottom-left-radius: 3px;
}

/* ── Message Content ── */

.neo-msg-bubble p[b-d1xpk6u3g1] {
    margin: 0 0 4px 0;
    font-size: inherit;
    line-height: 1.5;
}

.neo-msg-bubble p:last-child[b-d1xpk6u3g1] {
    margin-bottom: 0;
}

[b-d1xpk6u3g1] .neo-msg-bubble h1,
[b-d1xpk6u3g1] .neo-msg-bubble h2,
[b-d1xpk6u3g1] .neo-msg-bubble h3,
[b-d1xpk6u3g1] .neo-msg-bubble h4,
[b-d1xpk6u3g1] .neo-msg-bubble h5,
[b-d1xpk6u3g1] .neo-msg-bubble h6 {
    font-size: inherit;
    font-weight: 700;
    margin: 6px 0 2px 0;
    line-height: 1.4;
}

[b-d1xpk6u3g1] .neo-msg-bubble h1:first-child,
[b-d1xpk6u3g1] .neo-msg-bubble h2:first-child,
[b-d1xpk6u3g1] .neo-msg-bubble h3:first-child {
    margin-top: 0;
}

[b-d1xpk6u3g1] .neo-msg-bubble ul,
[b-d1xpk6u3g1] .neo-msg-bubble ol {
    margin: 2px 0;
    padding-left: 20px;
}

[b-d1xpk6u3g1] .neo-msg-bubble li {
    margin: 1px 0;
}

[b-d1xpk6u3g1] .neo-msg-bubble pre {
    font-size: 0.9em;
    padding: 8px 10px;
    border-radius: 6px;
    overflow-x: auto;
    background: var(--mud-palette-action-default-hover);
}

[b-d1xpk6u3g1] .neo-msg-bubble code {
    font-size: 0.9em;
}

[b-d1xpk6u3g1] .neo-msg-bubble table {
    font-size: 0.9em;
    border-collapse: collapse;
    width: 100%;
    margin: 4px 0;
}

[b-d1xpk6u3g1] .neo-msg-bubble th,
[b-d1xpk6u3g1] .neo-msg-bubble td {
    border: 1px solid var(--mud-palette-lines-default);
    padding: 4px 8px;
    text-align: left;
    overflow-wrap: break-word;
    white-space: nowrap;
}

[b-d1xpk6u3g1] .neo-msg-bubble td:last-child {
    white-space: normal;
    word-break: break-word;
}

[b-d1xpk6u3g1] .neo-msg-bubble img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid var(--mud-palette-lines-inputs);
    transition: opacity 0.15s;
    display: inline-block;
}

[b-d1xpk6u3g1] .neo-msg-bubble img:hover {
    opacity: 0.8;
}

[b-d1xpk6u3g1] .neo-msg-bubble .mud-markdown-body h1,
[b-d1xpk6u3g1] .neo-msg-bubble .mud-markdown-body h2,
[b-d1xpk6u3g1] .neo-msg-bubble .mud-markdown-body h3 {
    font-size: inherit;
    font-weight: 700;
    margin: 6px 0 2px 0;
    border-bottom: none;
    padding-bottom: 0;
}

[b-d1xpk6u3g1] .neo-msg-bubble .mud-typography {
    font-size: inherit;
    line-height: 1.5;
}

/* ── Tool Calls ── */

[b-d1xpk6u3g1] .neo-tools .mud-expand-panel {
    background: transparent;
    box-shadow: none;
}

[b-d1xpk6u3g1] .neo-tools .mud-expand-panel-header {
    padding: 4px 8px;
    min-height: unset;
}

[b-d1xpk6u3g1] .neo-tool-call {
    padding: 4px 0;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

[b-d1xpk6u3g1] .neo-tool-call:last-child {
    border-bottom: none;
}

[b-d1xpk6u3g1] .neo-tool-args {
    font-size: 0.85em;
    padding: 4px 6px;
    margin: 2px 0 0 0;
    border-radius: 4px;
    background: var(--mud-palette-action-default-hover);
    white-space: pre-wrap;
    word-break: break-all;
}

/* ── Input ── */

.neo-input-area[b-d1xpk6u3g1] {
    padding: 12px 24px 8px;
    flex-shrink: 0;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

[b-d1xpk6u3g1] .neo-input-paper {
    border-radius: 12px !important;
    padding: 4px 12px;
}

[b-d1xpk6u3g1] .neo-input-field .mud-input-underline::before,
[b-d1xpk6u3g1] .neo-input-field .mud-input-underline::after {
    display: none;
}

/* ── Mobile Overlay ── */

.neo-overlay[b-d1xpk6u3g1] {
    display: none;
}

/* ── Tablet ── */

@media (max-width: 959.99px) {
    .neo-container[b-d1xpk6u3g1] {
        margin: -16px;
        height: calc(100vh - 108px);
    }

    [b-d1xpk6u3g1] .neo-sidebar {
        position: fixed;
        top: 48px;
        left: 0;
        bottom: 30px;
        width: 300px;
        min-width: 300px;
        z-index: 1200;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        background: var(--mud-palette-background);
        box-shadow: none;
        border-right: none;
    }

    [b-d1xpk6u3g1] .neo-sidebar.open {
        transform: translateX(0);
        box-shadow: 6px 0 32px rgba(0, 0, 0, 0.35);
    }

    .neo-overlay[b-d1xpk6u3g1] {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1199;
        background: rgba(0, 0, 0, 0.4);
    }

    [b-d1xpk6u3g1] .neo-sidebar-toggle {
        display: inline-flex !important;
    }

    .neo-messages[b-d1xpk6u3g1] {
        padding: 16px 16px;
    }

    .neo-msg[b-d1xpk6u3g1] {
        max-width: 92%;
    }

    .neo-input-area[b-d1xpk6u3g1] {
        padding: 10px 16px 8px;
    }
}

/* ── Mobile ── */

@media (max-width: 599.99px) {
    .neo-container[b-d1xpk6u3g1] {
        margin: -8px;
        height: calc(100vh - 98px);
    }

    .neo-messages[b-d1xpk6u3g1] {
        padding: 10px 10px;
        gap: 12px;
    }

    .neo-msg[b-d1xpk6u3g1] {
        max-width: 96%;
    }

    .neo-msg-bubble[b-d1xpk6u3g1] {
        padding: 8px 10px;
    }

    .neo-input-area[b-d1xpk6u3g1] {
        padding: 8px 10px 6px;
    }

    [b-d1xpk6u3g1] .neo-msg-bubble table {
        font-size: 0.8em;
    }

    [b-d1xpk6u3g1] .neo-msg-bubble th,
    [b-d1xpk6u3g1] .neo-msg-bubble td {
        padding: 3px 5px;
    }
}
/* /Shared/AiChatWidget.razor.rz.scp.css */
.ai-chat-widget[b-ebjb0ypvo2] {
    position: fixed;
    bottom: 50px;
    right: 24px;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

[b-ebjb0ypvo2] .ai-chat-fab {
    margin-top: 8px;
}

[b-ebjb0ypvo2] .ai-chat-panel {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    animation: ai-chat-slide-up-b-ebjb0ypvo2 0.2s ease-out;
    position: relative;
}

.ai-chat-resize-handle[b-ebjb0ypvo2] {
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    z-index: 10;
}

.ai-chat-resize-handle[b-ebjb0ypvo2]::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-top: 2px solid rgba(255, 255, 255, 0.25);
    border-left: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 2px 0 0 0;
    transition: border-color 0.15s;
}

.ai-chat-resize-handle:hover[b-ebjb0ypvo2]::after {
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes ai-chat-slide-up-b-ebjb0ypvo2 {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Shared styles (used in both widget and MDI mode) ── */

[b-ebjb0ypvo2] .ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

[b-ebjb0ypvo2] .ai-chat-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

[b-ebjb0ypvo2] .ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100px;
}

[b-ebjb0ypvo2] .ai-chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    min-height: 200px;
    text-align: center;
    padding: 24px;
}

[b-ebjb0ypvo2] .ai-chat-msg {
    display: flex;
    gap: 8px;
    max-width: 95%;
}

[b-ebjb0ypvo2] .ai-chat-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

[b-ebjb0ypvo2] .ai-chat-msg.assistant {
    align-self: flex-start;
}

[b-ebjb0ypvo2] .ai-chat-msg-icon {
    margin-top: 2px;
    opacity: 0.6;
    flex-shrink: 0;
}

[b-ebjb0ypvo2] .ai-chat-msg-content {
    padding: 8px 12px;
    border-radius: 10px;
    overflow-x: hidden;
    overflow-wrap: break-word;
    min-width: 0;
}

[b-ebjb0ypvo2] .ai-chat-msg.user .ai-chat-msg-content {
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    border-bottom-right-radius: 2px;
}

[b-ebjb0ypvo2] .ai-chat-msg.assistant .ai-chat-msg-content {
    background: var(--mud-palette-surface);
    border-bottom-left-radius: 2px;
}

/* Base font size for messages area — scaled by inline font-size % */
[b-ebjb0ypvo2] .ai-chat-messages {
    font-size: 0.8125rem;
}

/* Force all markdown text to inherit the scaled size */
[b-ebjb0ypvo2] .ai-chat-msg-content,
[b-ebjb0ypvo2] .ai-chat-msg-content * {
    font-size: inherit;
    line-height: 1.4;
}

/* Headings - just bold, no size change */
[b-ebjb0ypvo2] .ai-chat-msg-content h1,
[b-ebjb0ypvo2] .ai-chat-msg-content h2,
[b-ebjb0ypvo2] .ai-chat-msg-content h3,
[b-ebjb0ypvo2] .ai-chat-msg-content h4,
[b-ebjb0ypvo2] .ai-chat-msg-content h5,
[b-ebjb0ypvo2] .ai-chat-msg-content h6 {
    font-size: inherit;
    font-weight: 700;
    margin: 6px 0 2px 0;
    line-height: 1.4;
}

[b-ebjb0ypvo2] .ai-chat-msg-content h1:first-child,
[b-ebjb0ypvo2] .ai-chat-msg-content h2:first-child,
[b-ebjb0ypvo2] .ai-chat-msg-content h3:first-child {
    margin-top: 0;
}

[b-ebjb0ypvo2] .ai-chat-msg-content p {
    margin: 0 0 4px 0;
}

[b-ebjb0ypvo2] .ai-chat-msg-content p:last-child {
    margin-bottom: 0;
}

/* Lists - compact */
[b-ebjb0ypvo2] .ai-chat-msg-content ul,
[b-ebjb0ypvo2] .ai-chat-msg-content ol {
    margin: 2px 0;
    padding-left: 18px;
}

[b-ebjb0ypvo2] .ai-chat-msg-content li {
    margin: 1px 0;
    padding: 0;
}

[b-ebjb0ypvo2] .ai-chat-msg-content pre {
    font-size: 0.92em;
    padding: 6px 8px;
    border-radius: 6px;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.15);
}

[b-ebjb0ypvo2] .ai-chat-msg-content code {
    font-size: 0.92em;
}

[b-ebjb0ypvo2] .ai-chat-msg-content table {
    font-size: 0.92em;
    border-collapse: collapse;
    width: 100%;
    margin: 4px 0;
    table-layout: auto;
}

[b-ebjb0ypvo2] .ai-chat-msg-content th,
[b-ebjb0ypvo2] .ai-chat-msg-content td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 6px;
    text-align: left;
    overflow-wrap: break-word;
    white-space: nowrap;
}

/* Allow wrapping only on columns that need it (details, descriptions) */
[b-ebjb0ypvo2] .ai-chat-msg-content td:last-child {
    white-space: normal;
    word-break: break-word;
}

/* Images - small thumbnail with click to view */
[b-ebjb0ypvo2] .ai-chat-msg-content img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: opacity 0.15s;
    display: inline-block;
}

[b-ebjb0ypvo2] .ai-chat-msg-content img:hover {
    opacity: 0.8;
}

/* MudMarkdown overrides - kill any large typography */
[b-ebjb0ypvo2] .ai-chat-msg-content .mud-markdown-body h1,
[b-ebjb0ypvo2] .ai-chat-msg-content .mud-markdown-body h2,
[b-ebjb0ypvo2] .ai-chat-msg-content .mud-markdown-body h3 {
    font-size: inherit;
    font-weight: 700;
    margin: 6px 0 2px 0;
    border-bottom: none;
    padding-bottom: 0;
}

[b-ebjb0ypvo2] .ai-chat-msg-content .mud-typography {
    font-size: inherit;
    line-height: 1.4;
}

/* Tool calls section */
[b-ebjb0ypvo2] .ai-chat-tools {
    margin-top: 4px;
}

[b-ebjb0ypvo2] .ai-chat-tools .mud-expand-panel {
    background: transparent;
    box-shadow: none;
}

[b-ebjb0ypvo2] .ai-chat-tools .mud-expand-panel-header {
    padding: 4px 8px;
    min-height: unset;
}

[b-ebjb0ypvo2] .ai-tool-call {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[b-ebjb0ypvo2] .ai-tool-call:last-child {
    border-bottom: none;
}

[b-ebjb0ypvo2] .ai-tool-args {
    font-size: 0.85em;
    padding: 4px 6px;
    margin: 2px 0 0 0;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.15);
    white-space: pre-wrap;
    word-break: break-all;
}

[b-ebjb0ypvo2] .ai-chat-input {
    padding: 8px 12px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[b-ebjb0ypvo2] .ai-chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 4px;
    padding: 4px 8px;
    transition: border-color 0.2s;
}

[b-ebjb0ypvo2] .ai-chat-input-wrapper:focus-within {
    border-color: var(--mud-palette-primary);
}

[b-ebjb0ypvo2] .ai-chat-input-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: inherit;
    font-size: 0.875rem;
    font-family: inherit;
    padding: 4px 0;
}

[b-ebjb0ypvo2] .ai-chat-input-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

[b-ebjb0ypvo2] .ai-chat-input-field:disabled {
    opacity: 0.5;
}

[b-ebjb0ypvo2] .ai-chat-send-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
}

[b-ebjb0ypvo2] .ai-chat-send-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ── MDI mode ── */

[b-ebjb0ypvo2] .ai-chat-mdi {
    display: flex;
    flex-direction: column;
    height: 100%;
}

[b-ebjb0ypvo2] .ai-chat-mdi .ai-chat-messages {
    flex: 1;
    overflow-y: auto;
}


@media (max-width: 480px) {
    [b-ebjb0ypvo2] .ai-chat-panel {
        width: calc(100vw - 32px);
        max-height: 70vh;
    }

    .ai-chat-widget[b-ebjb0ypvo2] {
        right: 16px;
        bottom: 50px;
    }
}
