/* /Components/Layout/MainLayout.razor.rz.scp.css */
.app-root[b-texqclu1m9] {
    display: block;
    width: 100%;
    min-height: 100dvh;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-dabt1aaphu] {
    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-dabt1aaphu] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-dabt1aaphu] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-dabt1aaphu] {
    font-size: 1.1rem;
}

.bi[b-dabt1aaphu] {
    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-dabt1aaphu] {
    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");
}

.bi-plus-square-fill-nav-menu[b-dabt1aaphu] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-dabt1aaphu] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

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

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

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

    .nav-item[b-dabt1aaphu]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-dabt1aaphu]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-dabt1aaphu]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

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

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

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

    .nav-scrollable[b-dabt1aaphu] {
        /* 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-wmtp7izivj],
.components-reconnect-repeated-attempt-visible[b-wmtp7izivj],
.components-reconnect-failed-visible[b-wmtp7izivj],
.components-pause-visible[b-wmtp7izivj],
.components-resume-failed-visible[b-wmtp7izivj],
.components-rejoining-animation[b-wmtp7izivj] {
    display: none;
}

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


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

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

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

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

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

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

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

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

@keyframes components-rejoining-animation-b-wmtp7izivj {
    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/Inbox.razor.rz.scp.css */
/* ================= Ample WhatsApp Desk — Inbox ================= */

.messenger[b-4387lpbgm9] {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
}

/* Mobile: rail + stage stacked as full-screen sliding panes */
.rail[b-4387lpbgm9], .stage[b-4387lpbgm9] {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform .36s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.rail[b-4387lpbgm9] { background: var(--surface); z-index: 1; }
.stage[b-4387lpbgm9] { background: var(--surface-2); z-index: 5; transform: translateX(100%); }
.messenger.has-thread .stage[b-4387lpbgm9] { transform: translateX(0); }
.messenger.has-thread .rail[b-4387lpbgm9] { transform: translateX(-14%); }

/* ---------------- Brand bar ---------------- */
.brand-bar[b-4387lpbgm9] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 1rem 1rem .85rem;
    padding-top: max(1rem, env(safe-area-inset-top));
    background: linear-gradient(180deg, var(--surface), var(--surface));
    border-bottom: 1px solid var(--line);
}

.brand[b-4387lpbgm9] { display: flex; align-items: center; gap: .7rem; min-width: 0; }

.brand-mark[b-4387lpbgm9] {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(150deg, var(--brand-2), var(--brand));
    color: var(--brand-ink);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -.02em;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.25);
}

.brand-text[b-4387lpbgm9] { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name[b-4387lpbgm9] { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; color: var(--ink); letter-spacing: -.01em; }
.brand-sub[b-4387lpbgm9] { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }

.bar-actions[b-4387lpbgm9] { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

.live[b-4387lpbgm9] {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .05em;
    color: var(--brand-2);
    padding: .3rem .55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-2) 12%, transparent);
}
.live i[b-4387lpbgm9] { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-2) 60%, transparent); animation: pulse-b-4387lpbgm9 2s infinite; }
@keyframes pulse-b-4387lpbgm9 {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-2) 55%, transparent); }
    70% { box-shadow: 0 0 0 7px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.icon-btn[b-4387lpbgm9] {
    width: 38px; height: 38px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink);
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    display: grid; place-items: center;
    transition: transform .15s, background .2s, border-color .2s;
}
.icon-btn:hover[b-4387lpbgm9] { background: var(--surface-3); transform: translateY(-1px); }
.icon-btn:active[b-4387lpbgm9] { transform: translateY(0) scale(.94); }

/* ---------------- New chat ---------------- */
.new-chat[b-4387lpbgm9] { display: flex; gap: .55rem; padding: .85rem 1rem; }

.field[b-4387lpbgm9] {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: .5rem;
    padding: 0 .85rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.field:focus-within[b-4387lpbgm9] { border-color: var(--brand-2); box-shadow: var(--ring); }
.field-ic[b-4387lpbgm9] { color: var(--ink-faint); font-size: 1.05rem; font-weight: 700; }
.field input[b-4387lpbgm9] {
    flex: 1; min-width: 0;
    border: 0; background: transparent; outline: none;
    font-family: var(--font-ui); font-size: .95rem; color: var(--ink);
    padding: .72rem 0;
}
.field input[b-4387lpbgm9]::placeholder { color: var(--ink-faint); }

.start-btn[b-4387lpbgm9] {
    flex-shrink: 0;
    border: 0; cursor: pointer;
    padding: 0 1.15rem;
    border-radius: 14px;
    background: linear-gradient(150deg, var(--brand-2), var(--brand));
    color: var(--brand-ink);
    font-family: var(--font-ui); font-weight: 700; font-size: .9rem;
    box-shadow: var(--shadow-sm);
    transition: transform .15s, filter .2s;
}
.start-btn:hover[b-4387lpbgm9] { filter: brightness(1.06); transform: translateY(-1px); }
.start-btn:active[b-4387lpbgm9] { transform: translateY(0) scale(.97); }
.start-btn:disabled[b-4387lpbgm9] { opacity: .5; cursor: default; transform: none; }

/* ---------------- List ---------------- */
.list-head[b-4387lpbgm9] {
    display: flex; align-items: center; justify-content: space-between;
    padding: .3rem 1.25rem .5rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-faint);
}
.list-head .count[b-4387lpbgm9] {
    background: var(--surface-3); color: var(--ink-soft);
    padding: .05rem .5rem; border-radius: 999px; letter-spacing: 0;
}

.list[b-4387lpbgm9] { flex: 1; overflow-y: auto; padding: 0 .6rem .9rem; }

.convo[b-4387lpbgm9] {
    width: 100%;
    display: flex; align-items: center; gap: .8rem;
    padding: .7rem .7rem;
    margin-bottom: .15rem;
    border: 0; border-radius: 16px;
    background: transparent;
    cursor: pointer; text-align: left;
    font-family: var(--font-ui);
    color: var(--ink);
    transition: background .18s;
    animation: rise-b-4387lpbgm9 .45s cubic-bezier(.2, .7, .3, 1) both;
    animation-delay: calc(var(--i) * 38ms);
}
@keyframes rise-b-4387lpbgm9 { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.convo:hover[b-4387lpbgm9] { background: var(--surface-2); }
.convo.active[b-4387lpbgm9] { background: color-mix(in srgb, var(--brand-2) 12%, var(--surface)); }

.avatar[b-4387lpbgm9] {
    width: 50px; height: 50px; flex-shrink: 0;
    border-radius: 16px;
    display: grid; place-items: center;
    color: #fff; font-weight: 700; font-size: 1.05rem;
    background: linear-gradient(150deg, hsl(var(--a) 62% 52%), hsl(calc(var(--a) + 38) 58% 38%));
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.28);
    letter-spacing: -.02em;
}
.avatar.sm[b-4387lpbgm9] { width: 40px; height: 40px; border-radius: 13px; font-size: .9rem; }

.convo-main[b-4387lpbgm9] { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .18rem; }
.convo-top[b-4387lpbgm9] { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.convo-name[b-4387lpbgm9] { font-weight: 700; font-size: .97rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-time[b-4387lpbgm9] { font-size: .72rem; color: var(--ink-faint); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.convo-bottom[b-4387lpbgm9] { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.convo-preview[b-4387lpbgm9] { font-size: .86rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.unread[b-4387lpbgm9] {
    flex-shrink: 0;
    min-width: 20px; height: 20px; padding: 0 6px;
    display: grid; place-items: center;
    border-radius: 999px;
    background: linear-gradient(150deg, var(--gold-2), var(--gold));
    color: #2a1e00;
    font-size: .72rem; font-weight: 800;
    box-shadow: var(--shadow-sm);
}

/* ---------------- Empty states ---------------- */
.empty-list[b-4387lpbgm9] { text-align: center; padding: 3rem 1.5rem; color: var(--ink-soft); }
.empty-badge[b-4387lpbgm9] {
    width: 56px; height: 56px; margin: 0 auto 1rem;
    display: grid; place-items: center; border-radius: 18px;
    background: var(--surface-2); border: 1px solid var(--line);
    color: var(--gold); font-size: 1.4rem;
}
.empty-title[b-4387lpbgm9] { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); margin: 0 0 .35rem; }
.empty-sub[b-4387lpbgm9] { font-size: .85rem; line-height: 1.55; margin: 0; }

.stage-empty[b-4387lpbgm9] {
    margin: auto; text-align: center; padding: 2rem; max-width: 420px;
    display: flex; flex-direction: column; align-items: center;
}
.orb[b-4387lpbgm9] {
    width: 120px; height: 120px; margin-bottom: 1.6rem; border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, var(--brand-2), var(--brand) 70%);
    box-shadow: var(--shadow-lg), inset 0 2px 8px rgba(255,255,255,.25);
    position: relative;
    animation: float-b-4387lpbgm9 6s ease-in-out infinite;
}
.orb[b-4387lpbgm9]::after {
    content: "a."; position: absolute; inset: 0; display: grid; place-items: center;
    font-family: var(--font-display); font-size: 3rem; color: rgba(255,255,255,.92); letter-spacing: -.03em;
}
@keyframes float-b-4387lpbgm9 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.stage-empty-title[b-4387lpbgm9] { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--ink); margin: 0 0 .6rem; letter-spacing: -.01em; }
.stage-empty-sub[b-4387lpbgm9] { font-size: .95rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* ---------------- Thread ---------------- */
.thread-bar[b-4387lpbgm9] {
    display: flex; align-items: center; gap: .7rem;
    padding: .7rem 1rem;
    padding-top: max(.7rem, env(safe-area-inset-top));
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}
.back[b-4387lpbgm9] {
    flex-shrink: 0;
    width: 36px; height: 36px; margin-left: -.35rem;
    border: 0; background: transparent; color: var(--ink);
    font-size: 1.9rem; line-height: 1; cursor: pointer;
    border-radius: 10px; display: grid; place-items: center;
    transition: background .18s;
}
.back:hover[b-4387lpbgm9] { background: var(--surface-2); }
.thread-id[b-4387lpbgm9] { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.thread-name[b-4387lpbgm9] { font-weight: 700; font-size: 1rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-num[b-4387lpbgm9] { font-size: .78rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

.win[b-4387lpbgm9] {
    flex-shrink: 0;
    font-size: .7rem; font-weight: 700; letter-spacing: .03em;
    padding: .32rem .6rem; border-radius: 999px;
}
.win.open[b-4387lpbgm9] { color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 14%, transparent); }
.win.closed[b-4387lpbgm9] { color: var(--gold); background: color-mix(in srgb, var(--gold) 16%, transparent); }

.messages[b-4387lpbgm9] {
    flex: 1; overflow-y: auto;
    padding: 1.1rem 1rem 1.3rem;
    display: flex; flex-direction: column; gap: .35rem;
    scroll-behavior: smooth;
}

.row[b-4387lpbgm9] { display: flex; animation: pop-b-4387lpbgm9 .3s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes pop-b-4387lpbgm9 { from { opacity: 0; transform: translateY(7px) scale(.98); } to { opacity: 1; transform: none; } }
.row.out[b-4387lpbgm9] { justify-content: flex-end; }

.bubble[b-4387lpbgm9] {
    max-width: 78%;
    padding: .55rem .8rem .4rem;
    border-radius: 20px;
    font-size: .93rem; line-height: 1.42;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.row.in .bubble[b-4387lpbgm9] { background: var(--bubble-in); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 7px; }
.row.out .bubble[b-4387lpbgm9] { background: var(--bubble-out); color: var(--bubble-out-ink); border-bottom-right-radius: 7px; }

.bubble .text[b-4387lpbgm9] { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.bubble .meta[b-4387lpbgm9] { display: flex; align-items: center; justify-content: flex-end; gap: .3rem; margin-top: .15rem; }
.bubble .t[b-4387lpbgm9] { font-size: .66rem; opacity: .7; font-variant-numeric: tabular-nums; }
.row.in .bubble .t[b-4387lpbgm9] { color: var(--ink-faint); }
.ticks[b-4387lpbgm9] { font-size: .72rem; opacity: .8; letter-spacing: -.12em; }
.ticks.read[b-4387lpbgm9] { color: var(--gold-2); opacity: 1; }
.ticks.failed[b-4387lpbgm9] { color: #ffd0c8; opacity: 1; }

/* ---------------- Composer ---------------- */
.composer[b-4387lpbgm9] {
    display: flex; align-items: center; gap: .55rem;
    padding: .7rem .8rem;
    padding-bottom: max(.7rem, env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
}
.tmpl[b-4387lpbgm9], .send[b-4387lpbgm9] {
    flex-shrink: 0;
    width: 46px; height: 46px;
    border: 0; cursor: pointer;
    border-radius: 15px;
    display: grid; place-items: center;
    transition: transform .15s, filter .2s, background .2s;
}
.tmpl[b-4387lpbgm9] { background: var(--surface-3); color: var(--ink-soft); font-size: 1.4rem; }
.tmpl:hover[b-4387lpbgm9] { background: var(--surface-2); color: var(--ink); }
.composer-field[b-4387lpbgm9] {
    flex: 1; min-width: 0;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: border-color .2s, box-shadow .2s;
}
.composer-field:focus-within[b-4387lpbgm9] { border-color: var(--brand-2); box-shadow: var(--ring); }
.composer-field input[b-4387lpbgm9] {
    width: 100%; border: 0; background: transparent; outline: none;
    font-family: var(--font-ui); font-size: .96rem; color: var(--ink);
    padding: .8rem 1rem;
}
.composer-field input[b-4387lpbgm9]::placeholder { color: var(--ink-faint); }
.composer-field input:disabled[b-4387lpbgm9] { opacity: .6; }

.send[b-4387lpbgm9] {
    background: linear-gradient(150deg, var(--brand-2), var(--brand));
    color: var(--brand-ink);
    box-shadow: var(--shadow-sm);
}
.send:hover:not(:disabled)[b-4387lpbgm9] { filter: brightness(1.08); transform: translateY(-1px); }
.send:active:not(:disabled)[b-4387lpbgm9] { transform: scale(.92); }
.send:disabled[b-4387lpbgm9], .tmpl:disabled[b-4387lpbgm9] { opacity: .45; cursor: default; }
.send svg[b-4387lpbgm9] { margin-left: 2px; }

/* ---------------- Toast ---------------- */
.toast[b-4387lpbgm9] {
    position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
    z-index: 1000; max-width: min(92vw, 460px);
    padding: .8rem 1.1rem; border-radius: 14px;
    background: var(--danger); color: #fff;
    font-size: .88rem; font-weight: 600;
    box-shadow: var(--shadow-lg); cursor: pointer;
    animation: toast-in-b-4387lpbgm9 .3s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes toast-in-b-4387lpbgm9 { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ================= Desktop: two-pane ================= */
@media (min-width: 860px) {
    .messenger[b-4387lpbgm9] { display: grid; grid-template-columns: 380px 1fr; }
    .rail[b-4387lpbgm9], .stage[b-4387lpbgm9] { position: relative; inset: auto; transform: none !important; }
    .rail[b-4387lpbgm9] { border-right: 1px solid var(--line); }
    .stage[b-4387lpbgm9] { border-radius: 0; }
    .back[b-4387lpbgm9] { display: none; }
    .bubble[b-4387lpbgm9] { max-width: 62%; }
}

/* ================= Large: floating app frame ================= */
@media (min-width: 1120px) {
    body[b-4387lpbgm9] { display: grid; place-items: center; }
    .messenger[b-4387lpbgm9] {
        width: min(1280px, 94vw);
        height: min(92dvh, 900px);
        border-radius: 26px;
        overflow: hidden;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--line);
    }
    .bubble[b-4387lpbgm9] { max-width: 56%; }
}
