@import '_content/BlazorPowerTools.AI/BlazorPowerTools.AI.owgxrvoj0n.bundle.scp.css';
@import '_content/BlazorPowerTools/BlazorPowerTools.nuj0zv5paf.bundle.scp.css';

/* /Components/Layout/AdminViewPill.razor.rz.scp.css */
/* Clients/BlazorPowerTools.Server/Components/Layout/AdminViewPill.razor.css */
.admin-view-pill[b-32ivmj3g8x] {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(20, 20, 30, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    font-size: 0.78rem;
    user-select: none;
}

.pill-label[b-32ivmj3g8x] {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    margin-right: 0.15rem;
    white-space: nowrap;
}

.pill-btn[b-32ivmj3g8x] {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0.78rem;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

    .pill-btn:hover[b-32ivmj3g8x] {
        color: rgba(255, 255, 255, 0.85);
    }

    /* Admin → pink */
    .pill-btn.active.admin-mode[b-32ivmj3g8x] {
        background: rgba(236, 72, 153, 0.18);
        border-color: rgba(236, 72, 153, 0.55);
        color: #f472b6;
        font-weight: 600;
    }

    /* Moderator → orange */
    .pill-btn.active.mod-mode[b-32ivmj3g8x] {
        background: rgba(249, 115, 22, 0.18);
        border-color: rgba(249, 115, 22, 0.55);
        color: #fb923c;
        font-weight: 600;
    }

    /* Customer → blue */
    .pill-btn.active.customer-mode[b-32ivmj3g8x] {
        background: rgba(59, 130, 246, 0.18);
        border-color: rgba(59, 130, 246, 0.55);
        color: #60a5fa;
        font-weight: 600;
    }
/* /Components/Layout/BaseLayout.razor.rz.scp.css */
.page[b-t7non68xgf] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-t7non68xgf] {
    flex: 1;
}

.sidebar[b-t7non68xgf] {
    background: #111827;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.top-row[b-t7non68xgf] {
    background-color: #111827;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

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

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

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

@media (max-width: 640.98px) {
    .top-row[b-t7non68xgf] {
        justify-content: space-between;
    }

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

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

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

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

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

    .top-row[b-t7non68xgf] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-t7non68xgf] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-t7non68xgf] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/BptFooter.razor.rz.scp.css */
.footer-section[b-ey1d3n011s] {
    background: #0d0821;
    color: var(--color-text-muted, #B9A6D3);
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-section a[b-ey1d3n011s] {
    color: var(--color-highlight-light, #E6C8FF);
}

.footer-links[b-ey1d3n011s] {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-fine-print[b-ey1d3n011s] {
    font-size: 0.8rem;
    opacity: 0.6;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-wjxvsttyz8] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-wjxvsttyz8] {
    flex: 1;
}

.sidebar[b-wjxvsttyz8] {
    background: #111827;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.top-row[b-wjxvsttyz8] {
    background-color: #111827;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

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

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

    /* Log out is a <button class="btn btn-link"> inside a <form>. Without an explicit
       color it inherits from the form/body and renders very dark on the dark top bar.
       Match the same link color the other nav links use. */
    .top-row[b-wjxvsttyz8]  .nav-logout-btn {
        color: #dd7a10;
        background: none;
        border: none;
    }

    .top-row[b-wjxvsttyz8]  .nav-logout-btn:hover {
        color: #ffb056;
    }

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

/* ── Brand link (logo, visible on mobile only) ── */
.brand-link[b-wjxvsttyz8] {
    margin-right: auto;
    display: flex;
    align-items: center;
    margin-left: 0 !important;
}

/* ── Hamburger toggle (hidden checkbox) ── */
.hamburger-toggle[b-wjxvsttyz8] {
    display: none;
}

/* ── Hamburger button (label for the checkbox) ── */
.hamburger-btn[b-wjxvsttyz8] {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    margin-left: auto;
    align-items: center;
    justify-content: center;
}

.hamburger-icon[b-wjxvsttyz8] {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    position: relative;
}

.hamburger-icon[b-wjxvsttyz8]::before,
.hamburger-icon[b-wjxvsttyz8]::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    position: absolute;
    left: 0;
}

.hamburger-icon[b-wjxvsttyz8]::before {
    top: -7px;
}

.hamburger-icon[b-wjxvsttyz8]::after {
    top: 7px;
}

/* ── Nav links container ── */
.nav-links[b-wjxvsttyz8] {
    display: flex;
    align-items: center;
}

/* ── Mobile layout ── */
@media (max-width: 991.98px) {
    .sidebar[b-wjxvsttyz8] {
        display: none;
    }

    .top-row[b-wjxvsttyz8] {
        position: relative;
        justify-content: flex-start;
    }

    .hamburger-btn[b-wjxvsttyz8] {
        display: flex;
    }

    .hamburger-toggle:checked ~ .hamburger-btn[b-wjxvsttyz8] {
        background-color: rgba(255, 255, 255, 0.15);
    }

    .nav-links[b-wjxvsttyz8] {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #111827;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0.5rem 0;
        max-height: 80vh;
        overflow-y: auto;
        z-index: 10;
    }

    .hamburger-toggle:checked ~ .nav-links[b-wjxvsttyz8] {
        display: flex;
    }

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

    .nav-links[b-wjxvsttyz8]  a,
    .nav-links[b-wjxvsttyz8]  .btn-link {
        padding: 0.6rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links[b-wjxvsttyz8]  a:hover,
    .nav-links[b-wjxvsttyz8]  .btn-link:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .nav-links[b-wjxvsttyz8]  .download-dropdown {
        width: 100%;
        margin-left: 0;
    }

    .nav-links[b-wjxvsttyz8]  .download-trigger {
        display: block;
        padding: 0.6rem 1rem;
        width: 100%;
    }

    .nav-links[b-wjxvsttyz8]  .download-panel {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.03);
        min-width: unset;
        margin-top: 0;
    }

    .nav-links[b-wjxvsttyz8]  .download-panel a {
        padding-left: 2rem;
    }

    .nav-divider[b-wjxvsttyz8] {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0.5rem 0;
        width: 100%;
    }

    .nav-demo-section[b-wjxvsttyz8] {
        width: 100%;
    }
}

/* ── Desktop layout ── */
@media (min-width: 992px) {
    .page[b-wjxvsttyz8] {
        flex-direction: row;
    }

    .page.no-sidebar[b-wjxvsttyz8] {
        flex-direction: column;
    }

    .page.no-sidebar main[b-wjxvsttyz8] {
        width: 100%;
    }

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

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

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

    .top-row[b-wjxvsttyz8] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .brand-link[b-wjxvsttyz8] {
        display: none;
    }

    .hamburger-btn[b-wjxvsttyz8] {
        display: none;
    }

    .nav-demo-section[b-wjxvsttyz8] {
        display: none;
    }
}

/* ── Download dropdown overlay ── */
.download-dropdown[b-wjxvsttyz8] {
    position: relative;
    margin-left: 1.5rem;
}

.download-trigger[b-wjxvsttyz8] {
    cursor: pointer;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.85);
    user-select: none;
}

.download-trigger:hover[b-wjxvsttyz8] {
    text-decoration: underline;
    color: #fff;
}

.download-panel[b-wjxvsttyz8] {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    min-width: 240px;
    z-index: 10;
    padding: 4px 0;
}

.download-panel[b-wjxvsttyz8]::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.download-dropdown:hover .download-panel[b-wjxvsttyz8] {
    display: block;
}

.download-panel a[b-wjxvsttyz8] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-left: 0 !important;
    transition: background 0.15s;
}

.download-panel a:hover[b-wjxvsttyz8] {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none !important;
}

.download-panel a strong[b-wjxvsttyz8] {
    display: block;
    font-size: 0.85rem;
}

.download-panel a small[b-wjxvsttyz8] {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.download-icon[b-wjxvsttyz8] {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 1.6rem;
    text-align: center;
}

#blazor-error-ui[b-wjxvsttyz8] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-wjxvsttyz8] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-a6ivwxel75] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-a6ivwxel75] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-a6ivwxel75] {
    min-height: 3.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-brand[b-a6ivwxel75] {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: -0.01em;
}

.bi[b-a6ivwxel75] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-a6ivwxel75] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.nav-item[b-a6ivwxel75] {
    font-size: 0.9rem;
    padding-bottom: 0.25rem;
}

    .nav-item:first-of-type[b-a6ivwxel75] {
        padding-top: 0.75rem;
    }

    .nav-item:last-of-type[b-a6ivwxel75] {
        padding-bottom: 0.75rem;
    }

    .nav-item[b-a6ivwxel75]  .nav-link {
        color: rgba(255, 255, 255, 0.7);
        background: none;
        border: none;
        border-radius: 6px;
        height: 2.5rem;
        display: flex;
        align-items: center;
        line-height: 2.5rem;
        width: 100%;
        transition: color 0.15s, background-color 0.15s;
    }

.nav-item[b-a6ivwxel75]  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.nav-scrollable[b-a6ivwxel75] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-a6ivwxel75] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-a6ivwxel75] {
        display: none;
    }

    .nav-scrollable[b-a6ivwxel75] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-adn15df14t],
.components-reconnect-repeated-attempt-visible[b-adn15df14t],
.components-reconnect-failed-visible[b-adn15df14t],
.components-pause-visible[b-adn15df14t],
.components-resume-failed-visible[b-adn15df14t],
.components-rejoining-animation[b-adn15df14t] {
    display: none;
}

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


#components-reconnect-modal[b-adn15df14t] {
    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-adn15df14t 0.5s both;
    &[open]

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

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

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

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

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

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

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

@keyframes components-rejoining-animation-b-adn15df14t {
    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/Shared/ThreadView.razor.rz.scp.css */
/* ThreadView.razor.css — scoped styles for the conversation thread component */

/* Root container */
.tv-root[b-fwtwlka88a] {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ---- Message list ---- */

.tv-messages[b-fwtwlka88a] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tv-loading[b-fwtwlka88a],
.tv-empty[b-fwtwlka88a] {
    color: var(--color-text-muted-light, #666);
    font-size: 0.88rem;
    padding: 0.75rem 0;
}

/* Individual message — open layout, no box. A single colored vertical bar
   on the left tells you who wrote it; the rest of the message just flows. */
.tv-message[b-fwtwlka88a] {
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0;
    padding: 0.25rem 0 0.5rem 0.85rem;
}

/* Left-border color by author role */
.tv-message--customer[b-fwtwlka88a]  { border-left-color: #cfcfcf; }
.tv-message--admin[b-fwtwlka88a]     { border-left-color: var(--color-brand-primary); }
.tv-message--developer[b-fwtwlka88a] { border-left-color: var(--color-brand-accent); }
.tv-message--system[b-fwtwlka88a]    { border-left-color: #64b5f6; }

/* Message header row */
.tv-message-header[b-fwtwlka88a] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Author badge pill */
.tv-author-badge[b-fwtwlka88a] {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    line-height: 1.4;
}

.tv-author-badge--customer[b-fwtwlka88a]  { background: #f0f0f0;                                    color: #555; }
.tv-author-badge--admin[b-fwtwlka88a]     { background: var(--color-surface-soft);                   color: var(--color-brand-primary); }
.tv-author-badge--developer[b-fwtwlka88a] { background: #fff3e0;                                     color: #e65100; }
.tv-author-badge--system[b-fwtwlka88a]    { background: #e3f2fd;                                     color: #1565c0; }

/* Author display name */
.tv-author-name[b-fwtwlka88a] {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-on-light, #1B0F2E);
}

/* "Original report" badge */
.tv-original-badge[b-fwtwlka88a] {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Relative timestamp */
.tv-timestamp[b-fwtwlka88a] {
    font-size: 0.8rem;
    color: var(--color-text-muted-light, #666);
    margin-left: auto;
    white-space: nowrap;
    cursor: help; /* title tooltip */
}

/* Message body — trusting MarkupString per plan spec */
.tv-message-body[b-fwtwlka88a] {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--color-text-on-light, #1B0F2E);
}

.tv-message-body p:last-child[b-fwtwlka88a] {
    margin-bottom: 0;
}

/* ---- Error band ---- */
.tv-error-band[b-fwtwlka88a] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff5f5;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.86rem;
    color: #721c24;
    margin-bottom: 0.75rem;
}

.tv-dismiss-btn[b-fwtwlka88a] {
    margin-left: auto;
    background: none;
    border: none;
    color: #721c24;
    font-size: 0.82rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

/* ---- Composer ---- */
/* No top border — the message list visually separates from the composer
   via the spacing in .tv-messages margin-bottom. */
.tv-composer[b-fwtwlka88a] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

/* "This will be emailed to …" hint — inline text, no box. */
.tv-email-hint[b-fwtwlka88a] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--color-text-muted-light, #666);
    padding: 0;
    margin: 0 0 0.1rem 0.15rem;
}

.tv-email-hint svg[b-fwtwlka88a] {
    flex-shrink: 0;
    color: var(--color-brand-accent);
    opacity: 0.85;
}

.tv-email-hint strong[b-fwtwlka88a] {
    font-weight: 600;
    color: var(--color-text-on-light, #1B0F2E);
}

/* Reply textarea */
.tv-textarea[b-fwtwlka88a] {
    width: 100%;
    resize: vertical;
    border: 1px solid var(--color-border-soft);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--color-text-on-light, #1B0F2E);
    background: var(--color-surface);
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.tv-textarea:focus[b-fwtwlka88a] {
    outline: none;
    border-color: var(--color-brand-primary);
    box-shadow: 0 0 0 3px rgba(122, 47, 198, 0.12);
}

.tv-textarea:disabled[b-fwtwlka88a] {
    background: var(--color-surface-alt);
    color: var(--color-text-muted-light, #666);
}

/* Action row: Refresh left, Send right */
.tv-composer-actions[b-fwtwlka88a] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Refresh button — text-only ghost, no border */
.tv-refresh-btn[b-fwtwlka88a] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    border-radius: 4px;
    padding: 0.3rem 0.45rem;
    font-size: 0.8rem;
    color: var(--color-text-muted-light, #666);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.tv-refresh-btn:hover:not(:disabled)[b-fwtwlka88a] {
    color: var(--color-brand-primary);
    background: var(--color-surface-soft);
}

.tv-refresh-btn:disabled[b-fwtwlka88a] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Send button — brand primary */
.tv-send-btn[b-fwtwlka88a] {
    background: var(--color-brand-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.tv-send-btn:hover:not(:disabled)[b-fwtwlka88a] {
    opacity: 0.85;
}

.tv-send-btn:disabled[b-fwtwlka88a] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---- Responsive: single-column on narrow viewports ---- */
@media (max-width: 600px) {
    .tv-message-header[b-fwtwlka88a] {
        flex-direction: column;
        align-items: flex-start;
    }

    .tv-timestamp[b-fwtwlka88a] {
        margin-left: 0;
    }

    .tv-composer-actions[b-fwtwlka88a] {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .tv-send-btn[b-fwtwlka88a],
    .tv-refresh-btn[b-fwtwlka88a] {
        width: 100%;
        justify-content: center;
    }
}
