/* /Components/MarkdownComponents/PlToasterEditor.razor.rz.scp.css */
[b-unwpq1slng] .toastui-editor-main-container, [b-unwpq1slng] .ProseMirror {
    height: 100%;
}

[b-unwpq1slng] .toastui-editor-tabs {
    display: none;
}

[b-unwpq1slng] .toastui-editor-defaultUI {
    border: none;
}

[b-unwpq1slng] .tui-editor-contents {
    font-family: Asap;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* Light mode defaults */
[b-unwpq1slng] .tui-editor-contents {
    color: #132836;
}

[b-unwpq1slng] .toastui-editor-main {
    background: #fff;
}

[b-unwpq1slng] .toastui-editor-md-container,
[b-unwpq1slng] .toastui-editor-ww-container {
    background: #fff;
}

[b-unwpq1slng] .toastui-editor-md-splitter {
    background: #e0e0e0;
}

/* Dark mode overrides — let the official dark theme CSS handle colors */
[b-unwpq1slng] .toastui-editor-dark .toastui-editor-main {
    background: #121212;
}

[b-unwpq1slng] .toastui-editor-dark .toastui-editor-md-container,
[b-unwpq1slng] .toastui-editor-dark .toastui-editor-ww-container {
    background: #121212;
}

[b-unwpq1slng] .toastui-editor-dark .toastui-editor-md-splitter {
    background: #303238;
}

[b-unwpq1slng] .toastui-editor-dark .tui-editor-contents {
    color: #eee;
}
/* /Components/MonacoComponents/PlMonacoLogViewer.razor.rz.scp.css */
.pl-monaco-log-viewer[b-0z1izkamgk] {
    width: 100%;
    height: 50vh;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 4px;
    overflow: hidden;
}
/* /Components/PlChatMessages.razor.rz.scp.css */
.description[b-jbq0yho18c] {
    display: flex;
    padding: 12px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    position: relative;

    border-radius: var(--border-radius-default);
    background: var(--color-base-white);
    animation: emptyStateIn-b-jbq0yho18c 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.assistant-logo[b-jbq0yho18c] {
    width: 80px;
    height: 59px;
}

.description-text[b-jbq0yho18c] {
    align-self: stretch;

    color: var(--color-theme-gray-default);
    text-align: center;

    font-family: Asap, sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    animation: fadeIn-b-jbq0yho18c 0.8s ease 0.3s both;
}

@keyframes emptyStateIn-b-jbq0yho18c {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn-b-jbq0yho18c {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* /Components/PlDebugItem.razor.rz.scp.css */
.log-item-header .log-item-toggle[b-7ilsmafsip] {
    color: #a8a8a8;
    font-size: 16px;
    margin-top: 1px;
}

.request-type[b-7ilsmafsip]{
    margin: 0 5px;
}

.request-type.GET[b-7ilsmafsip] {
    color: #10a37f;
}

.request-type.POST[b-7ilsmafsip] {
    color: #3c46ff;
}

.log-item-description[b-7ilsmafsip], .log-data-header[b-7ilsmafsip] {
    font-weight: bold;
    font-size: 12px;
    color: black;
}

.debug-item[b-7ilsmafsip] {
    font-size: small;
    margin: 10px;
}

.log-data[b-7ilsmafsip] {
    margin: 10px;
    padding-left: 5px;
}
/* /Components/PlMessage.razor.rz.scp.css */
/* Message entrance animation */
.comment[b-1y6hmw35id] {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    align-self: stretch;
    animation: messageIn-b-1y6hmw35id 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.question[b-1y6hmw35id] {
    flex-direction: row-reverse;
    animation-name: questionIn-b-1y6hmw35id;
}

@keyframes messageIn-b-1y6hmw35id {
    from {
        opacity: 0;
        transform: translateY(8px) translateX(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

@keyframes questionIn-b-1y6hmw35id {
    from {
        opacity: 0;
        transform: translateY(8px) translateX(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

.text[b-1y6hmw35id] {
    display: flex;
    flex-direction: column;
    padding: 6px 10px;
    align-items: flex-start;
    gap: 4px;
    max-width: 85%;
    overflow: hidden;

    border-radius: 2px 8px 8px 8px;
    background: transparent;
}

.question .text[b-1y6hmw35id] {
    border-radius: 8px 2px 8px 8px;
    background: var(--color-primary);
    color: var(--color-base-white);
}

/* Bot response bubble */
.response .text[b-1y6hmw35id] {
    border-radius: 2px 8px 8px 8px;
    background: #f4f5f7;
    border-left: 2px solid var(--color-primary);
}

.icon[b-1y6hmw35id] {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.icon.bot-icon[b-1y6hmw35id] {
    background: url("/icons/pla_logo_RGB_flag.svg") no-repeat center;
    background-size: contain;
}

.icon.user-icon[b-1y6hmw35id] {
    border-radius: 24px;
    text-align: center;
    vertical-align: middle;
    line-height: 24px;
}

.debug-area[b-1y6hmw35id] {
    flex-basis: 50%;
    width: 50%;
    height: 100%;
    margin-left: auto;
    padding-left: 15px;
    flex-shrink: 0;
    flex-grow: 0;
}

/* Sources — footnote style */
.sources[b-1y6hmw35id] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    width: 100%;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #ddd;
    border-top-width: 1px;
    max-width: 60%;
    font-size: 11px;
    line-height: 1.4;
    color: var(--color-theme-gray-default);
}

.sources-heading[b-1y6hmw35id] {
    font-size: 10px;
    font-weight: 500;
    color: var(--color-theme-lines-inputs);
    margin-bottom: 2px;
    letter-spacing: 0.2px;
}

.source-link[b-1y6hmw35id] {
    font-size: 10px;
    font-weight: 400;
    text-decoration: none;
    color: var(--color-theme-gray-default);
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    line-height: 1.6;
}

.source-link[b-1y6hmw35id]::before {
    content: '› ';
    color: var(--color-theme-lines-inputs);
}

.source-link:hover[b-1y6hmw35id] {
    color: var(--color-primary);
    background: none;
}

/* Cancelled notice */
.cancelled-notice[b-1y6hmw35id] {
    font-size: 11px;
    color: var(--color-theme-gray-default);
    padding: 4px 0 0;
    font-style: italic;
}

.cancelled-notice i[b-1y6hmw35id] {
    font-size: 9px;
    margin-right: 2px;
}

/* Typing dots indicator */
#loading[b-1y6hmw35id] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 2px;
}

#loading[b-1y6hmw35id]::before,
#loading[b-1y6hmw35id]::after,
#loading[b-1y6hmw35id] {
    content: '';
}

#loading[b-1y6hmw35id],
#loading[b-1y6hmw35id]::before,
#loading[b-1y6hmw35id]::after {
    position: relative;
}

/* Use a different approach — 3 dots via box-shadows on a single element */
#loading[b-1y6hmw35id] {
    display: block;
    width: 6px;
    height: 6px;
    margin: 6px 16px 6px 6px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 10px 0 0 var(--color-primary), 20px 0 0 var(--color-primary);
    animation: typingDots-b-1y6hmw35id 1.4s ease-in-out infinite;
}

@keyframes typingDots-b-1y6hmw35id {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Stagger the shadow dots via a pseudo-overlay trick isn't possible with box-shadow,
   so use an alternative: pulse the whole group with a wave effect */
@keyframes typingDots-b-1y6hmw35id {
    0% {
        box-shadow: 10px 0 0 rgba(0,87,148,0.3), 20px 0 0 rgba(0,87,148,0.3);
        background: var(--color-primary);
    }
    25% {
        box-shadow: 10px 0 0 var(--color-primary), 20px 0 0 rgba(0,87,148,0.3);
        background: rgba(0,87,148,0.3);
    }
    50% {
        box-shadow: 10px 0 0 rgba(0,87,148,0.3), 20px 0 0 var(--color-primary);
        background: rgba(0,87,148,0.3);
    }
    75% {
        box-shadow: 10px 0 0 rgba(0,87,148,0.3), 20px 0 0 rgba(0,87,148,0.3);
        background: var(--color-primary);
    }
    100% {
        box-shadow: 10px 0 0 rgba(0,87,148,0.3), 20px 0 0 rgba(0,87,148,0.3);
        background: var(--color-primary);
    }
}

img[b-1y6hmw35id] {
    display: block;
    height: 40px;
    width: 150px;
    object-fit: contain;
}

/* --- Typography overrides for ToastUI editor --- */

[b-1y6hmw35id] .toastui-editor-contents, .text[b-1y6hmw35id] {
    color: var(--color-base-black);
    font-family: Asap, sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5 !important;
}

/* User bubble text color */
.question[b-1y6hmw35id]  .toastui-editor-contents,
.question[b-1y6hmw35id]  .toastui-editor-contents p,
.question[b-1y6hmw35id]  .toastui-editor-contents span {
    color: var(--color-base-white) !important;
}

[b-1y6hmw35id] .toastui-editor-contents p {
    color: var(--color-base-black) !important;
    margin: 3px 0 !important;
}

/* Kill top margin on first element inside bubble */
[b-1y6hmw35id] .toastui-editor-contents > :first-child {
    margin-top: 0 !important;
}

/* Rhythm: space between distinct content blocks */
[b-1y6hmw35id] .toastui-editor-contents ol + p,
[b-1y6hmw35id] .toastui-editor-contents ul + p {
    margin-top: 8px !important;
}

[b-1y6hmw35id] .toastui-editor-contents p + ol,
[b-1y6hmw35id] .toastui-editor-contents p + ul {
    margin-top: 1px !important;
}

/* Headings: compact, accented, no border — always closer to their content below */
[b-1y6hmw35id] .toastui-editor-contents h1,
[b-1y6hmw35id] .toastui-editor-contents h2,
[b-1y6hmw35id] .toastui-editor-contents h3 {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--color-primary) !important;
    margin: 10px 0 1px !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1.4 !important;
}

[b-1y6hmw35id] .toastui-editor-contents h1 {
    font-size: 14px !important;
}

/* Lists */
[b-1y6hmw35id] .toastui-editor-contents ol,
[b-1y6hmw35id] .toastui-editor-contents ul {
    margin: 2px 0 !important;
    padding-left: 20px !important;
}

[b-1y6hmw35id] .toastui-editor-contents li {
    margin: 2px 0 !important;
    padding-left: 3px !important;
}

/* OL numbers: PLANTA blue, compact counter width */
[b-1y6hmw35id] .toastui-editor-contents ol li::before {
    color: var(--color-primary) !important;
    font-weight: 600 !important;
    width: 18px !important;
}

/* UL bullets: smaller, muted — subordinate to numbered items */
[b-1y6hmw35id] .toastui-editor-contents ul li::before {
    background-color: var(--color-theme-gray-default) !important;
    width: 4px !important;
    height: 4px !important;
    margin-top: 7px !important;
}

/* Strong text */
[b-1y6hmw35id] .toastui-editor-contents strong {
    font-weight: 600 !important;
    color: var(--color-primary-dark-blue) !important;
}

/* Links inside content */
[b-1y6hmw35id] .toastui-editor-contents a {
    color: var(--color-primary) !important;
    text-decoration: none !important;
}

[b-1y6hmw35id] .toastui-editor-contents a:hover {
    text-decoration: underline !important;
}

/* Generic line-height for all non-table elements */
[b-1y6hmw35id] .toastui-editor-contents :not(table) {
    line-height: 1.5 !important;
}

/* Review links (description inside message) */
.description[b-1y6hmw35id] {
    display: flex;
    padding: 12px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-padding-sm);
    align-self: stretch;
    position: relative;

    border-radius: var(--border-radius-default);
    background: var(--color-base-white);
}

.review-frame[b-1y6hmw35id] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--spacing-padding-xs);
    align-self: stretch;
}

.review-linked-in[b-1y6hmw35id] {
    border-radius: var(--border-radius-default);
    background: var(--color-primary-light-blue);
    box-shadow: 0 2px 5px -2px rgba(10, 9, 11, 0.06), 0 2px 7px 0 rgba(10, 9, 11, 0.05), 0 0 0 1px rgba(10, 9, 11, 0.05);
}

.review-trusted[b-1y6hmw35id] {
    border-radius: var(--border-radius-default);
    background: #1b3442;
    box-shadow: 0 2px 5px -2px rgba(10, 9, 11, 0.06), 0 2px 7px 0 rgba(10, 9, 11, 0.05), 0 0 0 1px rgba(10, 9, 11, 0.05);
}

.review-button[b-1y6hmw35id] {
    display: flex;
    height: 40px;
    padding: 0 12px;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-padding-xs);
    align-self: stretch;
    border: none;
}
/* /Components/PlTypingAnimation.razor.rz.scp.css */
.typing[b-n0jiishk9d] {
    position: relative;
    padding: 10px;
    background: var(--color-black-100);
    border-radius: var(--border-radius-default);
}

.typing-animation-wrapper[b-n0jiishk9d] {
    width: 80%;
    margin: 10px auto;
    display: flex;
}

.text[b-n0jiishk9d] {
    padding: 0 10px;
    font-style: italic;
    opacity: 0.5;
}

.typing-dot[b-n0jiishk9d] {
    float: left;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    animation: loadingFade-b-n0jiishk9d 1s infinite;
}

.typing-dot:nth-child(1)[b-n0jiishk9d] {
    animation-delay: 0s;
}

.typing-dot:nth-child(2)[b-n0jiishk9d] {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3)[b-n0jiishk9d] {
    animation-delay: 0.4s;
}

@keyframes loadingFade-b-n0jiishk9d {
    0% {
        opacity: 0.2;
        scale: 0.8;
    }
    50% {
        opacity: 0.8;
        scale: 1;
    }
    100% {
        opacity: 0.2;
        scale: 0.8;
    }
}
/* /Pages/Chat.razor.rz.scp.css */
.chat[b-v4uk2y2ty6] {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--color-base-white);
}

.thread-debug-information[b-v4uk2y2ty6] {
    position: absolute !important;
    top: 0;
    right: 0;
    background: var(--color-base-white);
    padding: var(--spacing-padding-sm);
    border: 1px solid var(--color-base-black);
    border-radius: var(--border-radius-default);
    margin: var(--spacing-padding-sm);
}

.debug-info[b-v4uk2y2ty6] {
    flex-direction: column-reverse !important;
    border-left: #ececf1 2px solid;
}

.pl-tooltip[b-v4uk2y2ty6] {
    opacity: 1;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.pl-tooltip .pl-tooltiptext[b-v4uk2y2ty6] {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    text-align: center;
    border-radius: var(--border-radius-default);
    padding: 4px 8px;

    /* Position above the button */
    position: absolute;
    z-index: 10;
    bottom: calc(100% + 6px);
    left: 0;
    font-size: 11px;
    color: var(--color-base-white);
    background: var(--color-primary-dark-blue);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
}

.pl-tooltip:hover .pl-tooltiptext[b-v4uk2y2ty6] {
    visibility: visible;
    opacity: 1;
}

.chat-input .pl-tooltip:last-child .pl-tooltiptext[b-v4uk2y2ty6] {
    left: auto;
    right: 0;
}

.assistant[b-v4uk2y2ty6] {
    width: 100%;
    height: 100%;
    padding: 8px 12px 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: visible;

    border-radius: 0 var(--spacing-padding-xs) var(--spacing-padding-xs) 0;
    background: var(--color-base-white);

    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content-wrapper[b-v4uk2y2ty6] { /* needed for scrolling */
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse;
}

.content[b-v4uk2y2ty6] {
    display: flex;
    flex-direction: column-reverse;
    gap: var(--spacing-padding-xs);
    flex: 0 0 0;
    align-self: stretch;
    min-height: 100%;
    padding: 0 4px 4px;
}

.chat-input[b-v4uk2y2ty6] {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    align-self: stretch;
    flex-shrink: 0;
    width: 100%;
    padding: 4px 0 2px;
    border-top: 1px solid var(--color-black-100);
    overflow: visible;
}

.input-textarea[b-v4uk2y2ty6] {
    display: flex;
    padding: 7px 10px;
    align-items: center;
    gap: 4px;
    flex: 1 0 0;

    border-radius: 6px;
    background: #f4f5f7;

    color: var(--color-base-black);
    font-family: Asap, sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    border: 1px solid transparent;
    outline: none;
    resize: none;
    max-height: 120px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.input-textarea:hover[b-v4uk2y2ty6] {
    cursor: text;
    border-color: var(--color-theme-lines-inputs);
}

.input-textarea:focus[b-v4uk2y2ty6] {
    border-color: var(--color-primary);
    background: var(--color-base-white);
    box-shadow: 0 0 0 2px rgba(0, 87, 148, 0.1);
}

.input-textarea[b-v4uk2y2ty6]::placeholder {
    color: var(--color-theme-gray-default);
    opacity: 1;
}

.pl-clear-btn[b-v4uk2y2ty6] {
    border: none;
    background: none;
    outline: none;
    box-shadow: none;
    color: var(--color-theme-gray-default);
    padding: 0;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.pl-clear-btn:focus[b-v4uk2y2ty6],
.pl-clear-btn:focus-visible[b-v4uk2y2ty6],
.pl-clear-btn:active[b-v4uk2y2ty6] {
    outline: none;
    box-shadow: none;
}

.pl-clear-btn:not(.disabled):hover[b-v4uk2y2ty6] {
    color: var(--color-primary);
    transform: rotate(-30deg);
    cursor: pointer;
}

.pl-clear-btn.disabled[b-v4uk2y2ty6] {
    color: var(--color-black-100);
    cursor: default;
    pointer-events: none;
}

.pl-stop-btn[b-v4uk2y2ty6] {
    border: none;
    background: none;
    outline: none;
    box-shadow: none;
    color: var(--color-mv-remove);
    padding: 0;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.pl-stop-btn:hover[b-v4uk2y2ty6] {
    color: var(--color-primary);
}

.pl-stop-btn:focus[b-v4uk2y2ty6],
.pl-stop-btn:focus-visible[b-v4uk2y2ty6],
.pl-stop-btn:active[b-v4uk2y2ty6] {
    outline: none;
    box-shadow: none;
}

.send-icon[b-v4uk2y2ty6] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-color: var(--color-primary);
    -webkit-mask-image: url(icons/send-icon.svg);
    mask-image: url(icons/send-icon.svg);
    mask-size: contain;
    -webkit-mask-size: contain;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.send-icon:not(.disabled):hover[b-v4uk2y2ty6] {
    background-color: var(--color-primary-light-blue);
    cursor: pointer;
    transform: translateX(2px);
}

.send-icon.disabled[b-v4uk2y2ty6] {
    background-color: var(--color-theme-lines-inputs);
    cursor: default;
}
