/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Оболочка на языке Paviar. Размеры, цвета и отступы боковой колонки и
   верхней полосы заданы в wwwroot/components.css (.sidebar, .topbar) — здесь
   только то, чего в языке нет: раскладка страницы и поведение при сужении.

   Что убрано из шаблона dotnet new blazor: синё-фиолетовый градиент боковой
   колонки (linear-gradient от rgb(5,39,103) к #3a0647), белая верхняя полоса
   #f7f7f7, ширина 250px вместо токена, светлая плашка ошибки. Заодно убраны
   собственные .sidebar и .top-row: они дублировали язык, и дубль пришлось бы
   править дважды. */

.page[b-ac2mwm4x4k] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-canvas);
}

main[b-ac2mwm4x4k] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.content[b-ac2mwm4x4k] {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

@media (min-width: 641px) {
    .page[b-ac2mwm4x4k] {
        flex-direction: row;
    }

    .page[b-ac2mwm4x4k]  .sidebar {
        position: sticky;
        top: 0;
    }

    main[b-ac2mwm4x4k] {
        height: 100vh;
        overflow: hidden;
    }
}

@media (max-width: 640.98px) {
    .page[b-ac2mwm4x4k]  .sidebar {
        width: 100%;
        height: auto;
    }
}

/* Плашка сбоя. Своя, не жёлтая шаблонная: цвет ошибки берётся из языка. */
#blazor-error-ui[b-ac2mwm4x4k] {
    background: var(--negative-quiet);
    color: var(--negative-text);
    border-top: 1px solid var(--negative);
    font-family: var(--font-sans);
    font-size: var(--fs-13);
    bottom: 0;
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: var(--sp-3) var(--sp-5);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-ac2mwm4x4k] {
    cursor: pointer;
    position: absolute;
    right: var(--sp-3);
    top: var(--sp-2);
}

#blazor-error-ui .reload[b-ac2mwm4x4k] {
    color: var(--negative-text);
    text-decoration: underline;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Только то, чего в языке нет. Боковую колонку, бренд, пункты навигации и
   кнопку человека описывает wwwroot/components.css (.sidebar, .sidebar-brand,
   .nav-item, .sidebar-user) — дублировать их здесь значило бы править стиль
   в двух местах, а PIPELINE п.10 велит чинить дрейф через язык. */

/* Тёмная подложка под знаком: в языке .sidebar-brand-mark задаёт размер и
   форму, а фон в эталоне стоял инлайном. Берём токен, а не цвет. */
.sidebar-brand-mark[b-0qfbxy6xmb] {
    background: var(--brand-icon-bg);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.brand-lines[b-0qfbxy6xmb] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-org[b-0qfbxy6xmb] {
    font-family: var(--font-sans);
    font-size: var(--fs-12);
    color: var(--fg-tertiary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sign-out[b-0qfbxy6xmb] {
    margin: 0;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-nn8k30fho5],
.components-reconnect-repeated-attempt-visible[b-nn8k30fho5],
.components-reconnect-failed-visible[b-nn8k30fho5],
.components-pause-visible[b-nn8k30fho5],
.components-resume-failed-visible[b-nn8k30fho5],
.components-rejoining-animation[b-nn8k30fho5] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-nn8k30fho5],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-nn8k30fho5],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-nn8k30fho5],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-nn8k30fho5],
#components-reconnect-modal.components-reconnect-retrying[b-nn8k30fho5],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-nn8k30fho5],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-nn8k30fho5],
#components-reconnect-modal.components-reconnect-failed[b-nn8k30fho5],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-nn8k30fho5] {
    display: block;
}


#components-reconnect-modal[b-nn8k30fho5] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-nn8k30fho5 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-nn8k30fho5 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-nn8k30fho5 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-nn8k30fho5]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-nn8k30fho5 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-nn8k30fho5 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-nn8k30fho5 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-nn8k30fho5 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-nn8k30fho5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-nn8k30fho5] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-nn8k30fho5] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-nn8k30fho5] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-nn8k30fho5] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-nn8k30fho5] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-nn8k30fho5] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-nn8k30fho5 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-nn8k30fho5] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-nn8k30fho5 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Knowledge.razor.rz.scp.css */
/* Экран знаний по эталонам 2e/2f/2g. Значения — только через переменные из
   wwwroot/tokens.css. Всё, что уже есть в языке (.chip, .btn, .input-shell,
   .empty, .t-eyebrow, .t-mono, .grow), здесь не повторяется. */

.knowledge[b-8q1n5q2688] {
    flex: 1;
    min-height: 0;
    display: flex;
}

.knowledge-message[b-8q1n5q2688] {
    padding: var(--sp-8) var(--sp-6);
    max-width: 640px;
}

.knowledge-message .skel[b-8q1n5q2688] {
    height: 120px;
    border-radius: var(--r-lg);
}

/* --- документ ------------------------------------------------------------ */

.doc[b-8q1n5q2688] {
    flex: 1;
    min-width: 0;
    padding: var(--sp-8) var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    overflow-y: auto;
}

.doc > *[b-8q1n5q2688] {
    max-width: 640px;
}

.doc-intro[b-8q1n5q2688] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.doc-title[b-8q1n5q2688] {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-32);
    line-height: 40px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--fg-primary);
}

.doc-lead[b-8q1n5q2688] {
    margin: 0;
    font-size: var(--fs-15);
    line-height: 24px;
    color: var(--fg-secondary);
    text-wrap: pretty;
}

.doc-meta[b-8q1n5q2688] {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: var(--fs-12);
    color: var(--fg-tertiary);
}

.doc-body[b-8q1n5q2688] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    font-size: var(--fs-15);
    line-height: 26px;
    color: var(--fg-primary);
    text-wrap: pretty;
}

.doc-body p[b-8q1n5q2688] {
    margin: 0;
}

.doc-actions[b-8q1n5q2688] {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
}

.doc-hint[b-8q1n5q2688] {
    font-size: var(--fs-13);
    color: var(--fg-tertiary);
}

/* --- поля ---------------------------------------------------------------- */

/* .input-shell в языке рассчитан на одну строку: здесь он растягивается под
   многострочный ввод, поэтому высота и выравнивание переопределяются. */
.field-area[b-8q1n5q2688] {
    height: auto;
    align-items: flex-start;
    padding: var(--sp-3) var(--sp-4);
}

.field-area-lg[b-8q1n5q2688] {
    min-height: 260px;
    border-radius: var(--r-lg);
    padding: var(--sp-5);
}

textarea.bare[b-8q1n5q2688] {
    width: 100%;
    min-height: 72px;
    background: none;
    border: none;
    outline: none;
    resize: vertical;
    color: var(--fg-primary);
    font-family: var(--font-sans);
    font-size: var(--fs-15);
    line-height: 26px;
}

.field-area-lg textarea.bare[b-8q1n5q2688] {
    min-height: 220px;
}

textarea.bare[b-8q1n5q2688]::placeholder {
    color: var(--fg-tertiary);
}

/* --- панель Mind -------------------------------------------------------- */

.panel[b-8q1n5q2688] {
    width: 460px;
    flex-shrink: 0;
    border-left: 1px solid var(--border-default);
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.panel-head[b-8q1n5q2688] {
    padding: var(--sp-5) var(--sp-6) var(--sp-4);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.panel-title[b-8q1n5q2688] {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: var(--fs-15);
    font-weight: 500;
    color: var(--fg-primary);
}

.panel-title .sidebar-brand-mark[b-8q1n5q2688] {
    background: var(--brand-icon-bg);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 7px;
}

.panel-sub[b-8q1n5q2688],
.panel-note[b-8q1n5q2688] {
    font-size: var(--fs-12);
    line-height: 18px;
    color: var(--fg-tertiary);
}

.panel-body[b-8q1n5q2688] {
    padding: var(--sp-5) var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    overflow-y: auto;
}

.panel-section[b-8q1n5q2688] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.panel-section-head[b-8q1n5q2688] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.retelling[b-8q1n5q2688] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    font-size: var(--fs-14);
    line-height: 23px;
    color: var(--fg-secondary);
    text-wrap: pretty;
}

.retelling p[b-8q1n5q2688] {
    margin: 0;
}

.steps[b-8q1n5q2688] {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    font-size: var(--fs-13);
    line-height: 20px;
    color: var(--fg-secondary);
}

.steps li[b-8q1n5q2688] {
    display: flex;
    gap: var(--sp-3);
}

.steps li span:first-child[b-8q1n5q2688] {
    color: var(--fg-tertiary);
}

/* --- вопросы ------------------------------------------------------------- */

/* Отвеченный вопрос отличается от нового тремя признаками, как в эталоне:
   рамкой, цветом текста и типом кнопки. Один признак человек не заметит. */
.question[b-8q1n5q2688] {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.question.is-filled[b-8q1n5q2688] {
    border-color: var(--border-default);
}

.question-text[b-8q1n5q2688] {
    display: flex;
    gap: var(--sp-3);
    font-size: var(--fs-14);
    line-height: 22px;
    color: var(--fg-secondary);
}

.question.is-filled .question-text[b-8q1n5q2688] {
    color: var(--fg-primary);
}

.question-text > span:first-child[b-8q1n5q2688] {
    font-size: var(--fs-12);
    line-height: 22px;
    color: var(--fg-tertiary);
}

.question-actions[b-8q1n5q2688],
.foot-actions[b-8q1n5q2688] {
    display: flex;
    gap: var(--sp-2);
    justify-content: flex-end;
}

.panel-foot[b-8q1n5q2688] {
    padding: var(--sp-4) var(--sp-6);
    border-top: 1px solid var(--border-default);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

/* --- плашки -------------------------------------------------------------- */

.banner[b-8q1n5q2688] {
    display: flex;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-md);
    font-size: var(--fs-13);
    line-height: 20px;
}

.banner-warning[b-8q1n5q2688] {
    background: var(--warning-quiet);
    color: var(--warning-text);
}

.banner-positive[b-8q1n5q2688] {
    background: var(--positive-quiet);
    color: var(--positive-text);
}

.banner-negative[b-8q1n5q2688] {
    background: var(--negative-quiet);
    color: var(--negative-text);
}

.topbar-note[b-8q1n5q2688] {
    font-size: var(--fs-12);
    color: var(--fg-tertiary);
}

@media (max-width: 1100px) {
    .knowledge[b-8q1n5q2688] {
        flex-direction: column;
    }

    .panel[b-8q1n5q2688] {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-default);
    }
}
