@import '_content/EzayConnect.UI.Composite/EzayConnect.UI.Composite.slngs16di9.bundle.scp.css';
@import '_content/EzayConnect.UI.Primitives/EzayConnect.UI.Primitives.em8cb9l06b.bundle.scp.css';

/* /Components/ChatView.razor.rz.scp.css */
/* Real-progress upload spinner for the send button (ADR-015 / POL-05). */
.upload-spinner[b-qfn2kip4fg] {
    width: 0.875rem;
    height: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: currentColor;
    border-radius: 50%;
    display: inline-block;
    animation: upload-spin-b-qfn2kip4fg 0.7s linear infinite;
}

@keyframes upload-spin-b-qfn2kip4fg {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .upload-spinner[b-qfn2kip4fg] {
        animation: none;
    }
}
/* /Components/GroupInfoPanel.razor.rz.scp.css */
.info-panel[b-oxn6i6ve6v] {
    width: 20rem;
    flex-shrink: 0;
    border-left: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
}

/* Mobile: a 20rem third column would compete with the chat area for a
   narrow viewport's width — the panel becomes a fullscreen overlay instead
   (see ADR-015 / ui-spec-polish-batch POL-11). */
@media (max-width: 767px) {
    .info-panel[b-oxn6i6ve6v] {
        position: fixed;
        inset: 0;
        width: 100%;
        z-index: 50; /* above MainLayout's mobile tab bar (z-index: 40) */
        border-left: none;
    }
}

.info-panel-header[b-oxn6i6ve6v] {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.info-panel-tabs[b-oxn6i6ve6v] {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.info-panel-tab[b-oxn6i6ve6v] {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--color-text-faint);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.6rem 0.25rem;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.info-panel-tab:hover[b-oxn6i6ve6v] {
    color: var(--color-text-dim);
}

.info-panel-tab--active[b-oxn6i6ve6v] {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.info-panel-body[b-oxn6i6ve6v] {
    flex: 1;
    overflow-y: auto;
}

.info-panel-section[b-oxn6i6ve6v] {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
}

.info-panel-list[b-oxn6i6ve6v] {
    display: flex;
    flex-direction: column;
}

.info-panel-row[b-oxn6i6ve6v] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.1s ease;
}

.info-panel-row:hover[b-oxn6i6ve6v] {
    background: var(--color-surface-raised);
}

.info-panel-avatar[b-oxn6i6ve6v] {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.info-panel-footer[b-oxn6i6ve6v] {
    font-size: 0.6875rem;
    color: var(--color-text-faint);
    text-align: center;
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
    margin: 0;
}
/* /Components/InviteTreeNode.razor.rz.scp.css */
/* ── InviteTree node card ─────────────────────────────────────────────────── */

.itnode[b-u23n173cos] {
    position: relative;
}

/* vertical connector for children */
.itnode-children[b-u23n173cos] {
    margin-top: 0.5rem;
    margin-left: 1.75rem;
    padding-left: 1.25rem;
    border-left: 2px solid color-mix(in srgb, var(--color-accent) 35%, transparent);
}

/* horizontal connector to each child */
.itnode-children > .itnode[b-u23n173cos] {
    position: relative;
    margin-top: 0.625rem;
}

.itnode-children > .itnode[b-u23n173cos]::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 1.375rem;
    width: 1.25rem;
    height: 2px;
    background: color-mix(in srgb, var(--color-accent) 35%, transparent);
}

/* card */
.itnode-card[b-u23n173cos] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: border-color 0.15s ease;
    max-width: 24rem;
}

.itnode-card--you[b-u23n173cos] {
    border-color: var(--color-accent);
    background: var(--color-surface-raised);
}

/* avatar circle */
.itnode-avatar[b-u23n173cos] {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0;
}

/* text block */
.itnode-info[b-u23n173cos] {
    flex: 1;
    min-width: 0;
}

.itnode-name[b-u23n173cos] {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.itnode-handle[b-u23n173cos] {
    font-size: 0.75rem;
    color: var(--color-accent);
    font-family: ui-monospace, monospace;
    margin: 0;
}

.itnode-date[b-u23n173cos] {
    font-size: 0.6875rem;
    color: var(--color-text-faint);
    margin: 0;
}

/* badges */
.itnode-you-badge[b-u23n173cos] {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-bg);
    background: var(--color-accent-gradient);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.itnode-count-badge[b-u23n173cos] {
    font-size: 0.6875rem;
    color: var(--color-text-faint);
    background: var(--color-surface-raised);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.app-shell[b-pm4d8qdgg5] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.app-topbar[b-pm4d8qdgg5] {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
    flex-shrink: 0;
    order: 0;
}

.app-topbar__brand[b-pm4d8qdgg5] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.app-topbar__logo[b-pm4d8qdgg5] {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-md, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-bg);
    background: var(--color-accent-gradient);
}

.app-topbar__name[b-pm4d8qdgg5] {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.app-topbar__tabs[b-pm4d8qdgg5] {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex: 1;
    overflow-x: auto;
}

.app-topbar__account[b-pm4d8qdgg5] {
    flex-shrink: 0;
}

/* Desktop has the account menu for Profile/Invite Tree/Moderation/Admin/Logout —
   this duplicate tab only earns its place in the mobile bottom bar. */
[b-pm4d8qdgg5] .app-topbar__mobile-only-tab {
    display: none;
}

[b-pm4d8qdgg5] .app-topbar__avatar-btn {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    line-height: 0;
}

[b-pm4d8qdgg5] .app-menu__header {
    padding: 0.5rem 0.65rem 0.35rem;
}

.app-body[b-pm4d8qdgg5] {
    flex: 1;
    display: flex;
    /* Stretches whatever Page renders (its root div) to fill the remaining
       width/height — without this, a page's own "flex" root div sizes to its
       content (shrink-to-fit) instead of the available space, which showed up
       as a narrow column with the rest of the window empty. min-width/height: 0
       is required alongside flex so children can still shrink/scroll internally
       instead of overflowing this container. */
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 0.75rem;
    order: 1;
}

[b-pm4d8qdgg5] .app-body > * {
    flex: 1;
    min-width: 0;
    min-height: 0;
}

/* Narrow / mobile viewport: brand name hides (icon still identifies the app),
   tab bar moves to the bottom edge as its own row, thumb-reachable. */
@media (max-width: 767px) {
    .app-topbar[b-pm4d8qdgg5] {
        flex-wrap: wrap;
        order: 1;
        border-bottom: none;
        border-top: 1px solid var(--color-border);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 40;
    }

    .app-topbar__brand[b-pm4d8qdgg5],
    .app-topbar__account[b-pm4d8qdgg5] {
        display: none;
    }

    [b-pm4d8qdgg5] .app-topbar__mobile-only-tab {
        display: flex;
    }

    .app-topbar__tabs[b-pm4d8qdgg5] {
        justify-content: space-around;
        width: 100%;
    }

    .app-body[b-pm4d8qdgg5] {
        order: 0;
        padding-bottom: calc(0.75rem + 3rem);
    }

    .app-shell[b-pm4d8qdgg5] {
        flex-direction: column-reverse;
    }
}
/* /Components/NavItem.razor.rz.scp.css */
.nav-tab[b-u5ub27sxul] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md, 10px);
    font-size: 0.85rem;
    color: var(--color-text-faint);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.nav-tab:hover[b-u5ub27sxul] {
    color: var(--color-text-dim);
    background: var(--color-surface-raised);
}

.nav-tab--active[b-u5ub27sxul] {
    color: var(--color-accent);
    background: color-mix(in srgb, var(--color-accent) 10%, transparent);
}

.nav-tab__icon[b-u5ub27sxul] {
    font-size: 1rem;
    line-height: 1;
}

.nav-tab__label[b-u5ub27sxul] {
    display: none;
}

.nav-tab__badge[b-u5ub27sxul] {
    position: absolute;
    top: -0.15rem;
    right: -0.15rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: var(--radius-full, 999px);
    background: var(--color-accent-gradient);
    color: var(--color-bg);
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
}

/* Icons + labels both show once there's room — desktop top bar / wide tab bar. */
@media (min-width: 640px) {
    .nav-tab__label[b-u5ub27sxul] {
        display: inline;
    }

    .nav-tab__badge[b-u5ub27sxul] {
        position: static;
        margin-left: 0.15rem;
    }
}
/* /Pages/Home.razor.rz.scp.css */
/* Mobile: list-or-chat, never both side by side (see ADR-015 / POL-11).
   Desktop (>767px, matching MainLayout's breakpoint) keeps the existing
   fixed-width sidebar next to the chat area untouched. */
@media (max-width: 767px) {
    .groups-sidebar[b-r5l9f0ojoe] {
        width: 100%;
        border-right: none;
    }

    .groups-sidebar--hidden-mobile[b-r5l9f0ojoe] {
        display: none;
    }

    /* The "select a group" chat-area placeholder has no group to be a
       placeholder for while the fullscreen list is shown — without this it
       squeezes into whatever width remains next to the sidebar instead of
       being absent (see ADR-015 / POL-11). */
    .chat-select-prompt[b-r5l9f0ojoe] {
        display: none;
    }
}
