/* XSSM Channel Center */

#channel-info-modal {
    --channel-line: rgba(255, 255, 255, 0.085);
    --channel-line-strong: rgba(255, 255, 255, 0.14);
    --channel-surface: rgba(9, 12, 24, 0.82);
    --channel-surface-soft: rgba(255, 255, 255, 0.027);
    --channel-surface-hover: rgba(255, 255, 255, 0.05);
    --channel-accent: #9d84ef;
    --channel-accent-soft: rgba(144, 116, 231, 0.13);
    --channel-text: rgba(247, 245, 252, 0.94);
    --channel-secondary: rgba(214, 209, 226, 0.62);
    --channel-muted: rgba(184, 178, 199, 0.43);
    padding: clamp(14px, 2.5vw, 32px);
    background: rgba(4, 6, 14, 0.7);
    -webkit-backdrop-filter: blur(15px) saturate(125%);
    backdrop-filter: blur(15px) saturate(125%);
}

#channel-info-modal .ch-modal {
    display: grid !important;
    width: min(980px, 100%) !important;
    max-width: 980px !important;
    height: min(760px, calc(100dvh - 56px));
    max-height: 920px !important;
    grid-template-columns: 310px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid var(--channel-line) !important;
    border-radius: 30px !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006) 46%),
        rgba(9, 12, 24, 0.9) !important;
    box-shadow:
        0 35px 95px rgba(0, 0, 0, 0.52),
        0 10px 28px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.085) !important;
    -webkit-backdrop-filter: blur(46px) saturate(155%) !important;
    backdrop-filter: blur(46px) saturate(155%) !important;
}

/* ── Channel identity rail ─────────────────────────────── */
#channel-info-modal .ch-hero {
    position: relative !important;
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex !important;
    min-width: 0;
    min-height: 0;
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-right: 1px solid var(--channel-line);
    background:
        radial-gradient(circle at 18% 10%, rgba(166, 128, 244, 0.22), transparent 32%),
        radial-gradient(circle at 90% 78%, rgba(55, 187, 174, 0.1), transparent 40%),
        linear-gradient(155deg, rgba(38, 33, 81, 0.82), rgba(13, 17, 33, 0.9) 53%, rgba(10, 24, 31, 0.82)) !important;
}

#channel-info-modal .ch-hero::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: 18px;
    left: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(179, 157, 248, 0.22), transparent);
    pointer-events: none;
}

#channel-info-modal .ch-hero-glow {
    top: -80px;
    right: -110px;
    width: 330px;
    height: 330px;
    background: radial-gradient(circle, rgba(154, 118, 236, 0.15), transparent 66%);
    filter: blur(10px);
}

#channel-info-modal .ch-hero-glow::after {
    bottom: -390px;
    left: -275px;
    width: 330px;
    height: 330px;
    background: radial-gradient(circle, rgba(62, 195, 173, 0.08), transparent 68%);
}

#channel-info-modal .ch-hero-noise {
    opacity: 0.22;
    background-image: repeating-linear-gradient(120deg, transparent 0, transparent 3px, rgba(255, 255, 255, 0.012) 3px, rgba(255, 255, 255, 0.012) 4px);
}

#channel-info-modal .ch-close {
    position: absolute !important;
    z-index: 10 !important;
    top: 15px !important;
    left: 15px !important;
    right: auto !important;
    display: grid !important;
    width: 38px !important;
    height: 38px !important;
    place-items: center !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    border-radius: 13px !important;
    background: rgba(3, 5, 14, 0.28) !important;
    color: rgba(221, 215, 234, 0.58) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
    -webkit-backdrop-filter: blur(22px) !important;
    backdrop-filter: blur(22px) !important;
    font-size: 0.68rem !important;
    transition: transform 150ms ease, color 150ms ease, background 150ms ease !important;
}

#channel-info-modal .ch-close:hover {
    transform: none !important;
    background: rgba(255, 255, 255, 0.055) !important;
    color: rgba(247, 243, 255, 0.9) !important;
}

#channel-info-modal .ch-close:active {
    transform: scale(0.91) !important;
}

#channel-info-modal .ch-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    padding: 74px 26px 38px;
    text-align: center;
}

#channel-info-modal .ch-hero-eyebrow {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 4px 8px;
    border: 1px solid rgba(207, 190, 255, 0.1);
    border-radius: 9px;
    background: rgba(145, 114, 229, 0.07);
    color: rgba(196, 179, 247, 0.62);
    font-size: 0.5rem;
    font-weight: 730;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

#channel-info-modal .ch-avatar-wrap {
    position: relative;
    width: 104px;
    height: 104px;
    margin-bottom: 8px;
}

#channel-info-modal .ch-avatar {
    position: relative !important;
    z-index: 2 !important;
    display: grid !important;
    width: 104px !important;
    height: 104px !important;
    place-items: center !important;
    overflow: hidden;
    border: 1px solid rgba(232, 224, 255, 0.2) !important;
    border-radius: 34px !important;
    background: linear-gradient(145deg, rgba(142, 109, 228, 0.98), rgba(75, 70, 165, 0.98) 60%, rgba(55, 142, 157, 0.9)) !important;
    background-position: center !important;
    background-size: cover !important;
    color: #fff !important;
    box-shadow:
        0 18px 42px rgba(43, 28, 110, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    font-size: 2.2rem !important;
}

#channel-info-modal .ch-avatar-ring {
    position: absolute !important;
    inset: -6px !important;
    border: 1px solid rgba(190, 166, 255, 0.2) !important;
    border-radius: 38px !important;
    animation: none !important;
}

#channel-info-modal .ch-avatar-edit {
    right: -5px !important;
    bottom: -5px !important;
    display: none;
    width: 34px !important;
    height: 34px !important;
    border: 3px solid rgba(18, 18, 38, 0.96) !important;
    border-radius: 12px !important;
    background: linear-gradient(145deg, rgba(148, 117, 234, 0.98), rgba(80, 69, 171, 0.98)) !important;
    box-shadow: 0 7px 17px rgba(36, 24, 91, 0.32) !important;
    font-size: 0.68rem !important;
}

#channel-info-modal .ch-avatar-edit:hover {
    transform: scale(1.06) !important;
}

#channel-info-modal .ch-name {
    max-width: 100%;
    overflow: hidden;
    margin: 5px 0 0 !important;
    color: var(--channel-text) !important;
    font-size: 1.28rem !important;
    font-weight: 760 !important;
    letter-spacing: -0.035em !important;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-shadow: none !important;
    white-space: nowrap;
}

#channel-info-modal .ch-subline {
    display: flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: rgba(213, 207, 225, 0.54);
    font-size: 0.66rem;
}

#channel-info-modal .ch-sub-count {
    overflow: hidden;
    font-weight: 590;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#channel-info-modal .ch-dot {
    opacity: 0.32;
}

#channel-info-modal .ch-badge,
#channel-info-modal .ch-role-badge {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.028);
    color: rgba(218, 211, 232, 0.67);
    font-size: 0.54rem;
    font-weight: 670;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

#channel-info-modal .ch-badge i {
    color: rgba(179, 158, 245, 0.74);
    font-size: 0.52rem;
}

#channel-info-modal .ch-role-badge {
    margin-top: 7px;
    border-color: rgba(234, 190, 79, 0.12);
    background: rgba(192, 140, 45, 0.07);
    color: rgba(240, 203, 112, 0.72);
}

#channel-info-modal .ch-role-badge[hidden],
#channel-info-modal .ch-tab[hidden] {
    display: none !important;
}

#channel-info-modal .ch-hero-note {
    max-width: 220px;
    margin: 11px 0 0;
    color: rgba(191, 185, 207, 0.42);
    font-size: 0.63rem;
    font-weight: 500;
    line-height: 1.45;
}

/* ── Tabs ──────────────────────────────────────────────── */
#channel-info-modal .ch-tabs {
    position: relative;
    z-index: 4;
    display: flex !important;
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
    gap: 4px !important;
    margin: 14px 16px 5px !important;
    padding: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.055) !important;
    border-radius: 16px !important;
    background: rgba(2, 4, 12, 0.2) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

#channel-info-modal .ch-tab {
    display: inline-flex;
    min-width: 0;
    min-height: 38px;
    flex: 1 !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 !important;
    padding: 7px 10px !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: rgba(190, 184, 205, 0.42) !important;
    box-shadow: none !important;
    font-size: 0.65rem !important;
    font-weight: 630 !important;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease !important;
}

#channel-info-modal .ch-tab i {
    font-size: 0.62rem;
    opacity: 0.75;
}

#channel-info-modal .ch-tab:hover {
    color: rgba(225, 219, 238, 0.7) !important;
}

#channel-info-modal .ch-tab.active {
    border-color: rgba(255, 255, 255, 0.065) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008)),
        rgba(122, 97, 210, 0.16) !important;
    color: rgba(242, 237, 255, 0.9) !important;
    box-shadow: 0 5px 15px rgba(32, 22, 80, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
}

/* ── Body and pane headings ─────────────────────────────── */
#channel-info-modal .ch-body {
    min-width: 0;
    min-height: 0;
    grid-column: 2;
    grid-row: 2;
    max-height: none !important;
    padding: 10px 16px 17px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: rgba(208, 200, 225, 0.11) transparent;
    scrollbar-width: thin;
}

#channel-info-modal .ch-body::-webkit-scrollbar {
    width: 4px;
}

#channel-info-modal .ch-body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(208, 200, 225, 0.11);
}

#channel-info-modal .ch-pane {
    display: none;
    min-width: 0;
    animation: channelPaneIn 210ms cubic-bezier(0.16, 1, 0.3, 1);
}

#channel-info-modal .ch-pane.active {
    display: block;
}

@keyframes channelPaneIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: none; }
}

#channel-info-modal .ch-pane-heading {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 2px 3px;
}

#channel-info-modal .ch-pane-kicker {
    display: block;
    margin-bottom: 3px;
    color: rgba(177, 158, 239, 0.55);
    font-size: 0.48rem;
    font-weight: 720;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

#channel-info-modal .ch-pane-heading h3 {
    margin: 0;
    color: var(--channel-text);
    font-size: 1rem;
    font-weight: 720;
    letter-spacing: -0.025em;
}

#channel-info-modal .ch-pane-status,
#channel-info-modal .ch-pane-count {
    display: inline-flex;
    min-height: 25px;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid rgba(81, 213, 161, 0.1);
    border-radius: 9px;
    background: rgba(55, 178, 128, 0.055);
    color: rgba(101, 218, 169, 0.65);
    font-size: 0.52rem;
    font-weight: 670;
}

#channel-info-modal .ch-pane-status.is-admin {
    border-color: rgba(170, 145, 247, 0.11);
    background: rgba(139, 112, 230, 0.06);
    color: rgba(188, 169, 246, 0.7);
}

#channel-info-modal .ch-pane-count {
    min-width: 28px;
    justify-content: center;
    border-color: rgba(255, 255, 255, 0.065);
    background: rgba(255, 255, 255, 0.025);
    color: rgba(211, 205, 224, 0.52);
}

/* ── Overview ───────────────────────────────────────────── */
#channel-info-modal .ch-info-card {
    display: flex !important;
    min-height: 94px;
    align-items: flex-start;
    gap: 12px !important;
    margin: 0 0 10px !important;
    padding: 13px !important;
    border: 1px solid var(--channel-line) !important;
    border-radius: 18px !important;
    background: var(--channel-surface-soft) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

#channel-info-modal .ch-info-icon {
    display: grid !important;
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    place-items: center !important;
    border: 1px solid rgba(176, 152, 245, 0.11) !important;
    border-radius: 13px !important;
    background: rgba(139, 112, 230, 0.075) !important;
    color: rgba(191, 171, 247, 0.72) !important;
    font-size: 0.7rem !important;
}

#channel-info-modal .ch-info-body {
    min-width: 0;
    flex: 1;
}

#channel-info-modal .ch-info-label,
#channel-info-modal .ch-stat-label,
#channel-info-modal .ch-section-title,
#channel-info-modal .ch-field label {
    color: rgba(184, 178, 199, 0.43) !important;
    font-size: 0.52rem !important;
    font-weight: 690 !important;
    letter-spacing: 0.065em !important;
    text-transform: uppercase !important;
}

#channel-info-modal .ch-info-label {
    margin: 1px 0 5px !important;
}

#channel-info-modal .ch-info-text {
    color: rgba(238, 235, 246, 0.82) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
}

#channel-info-modal .ch-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 11px;
}

#channel-info-modal .ch-stat-card {
    display: grid;
    min-height: 96px;
    align-content: center;
    justify-items: start;
    padding: 13px !important;
    border: 1px solid var(--channel-line) !important;
    border-radius: 17px !important;
    background: var(--channel-surface-soft) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    text-align: left !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

#channel-info-modal .ch-stat-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    margin: 0 0 8px !important;
    border-radius: 10px;
    background: rgba(139, 112, 230, 0.065);
    color: rgba(188, 168, 245, 0.66) !important;
    font-size: 0.62rem !important;
}

#channel-info-modal .ch-stat-label {
    margin-bottom: 3px !important;
}

#channel-info-modal .ch-stat-value {
    max-width: 100%;
    overflow: hidden;
    color: rgba(240, 237, 247, 0.84) !important;
    font-size: 0.7rem !important;
    font-weight: 650 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Rich actions ───────────────────────────────────────── */
#channel-info-modal .ch-action-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#channel-info-modal .ch-action-list > .btn,
#channel-info-modal .ch-action-button {
    display: flex;
    width: 100%;
    min-height: 57px;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 10px !important;
    border: 1px solid transparent !important;
    border-radius: 16px !important;
    background: transparent !important;
    color: rgba(236, 232, 244, 0.82) !important;
    box-shadow: none !important;
    text-align: left;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease !important;
}

#channel-info-modal .ch-action-button:hover {
    transform: none !important;
    border-color: rgba(255, 255, 255, 0.045) !important;
    background: rgba(255, 255, 255, 0.032) !important;
}

#channel-info-modal .ch-action-button:active {
    transform: scale(0.99) !important;
}

#channel-info-modal .ch-action-button.is-primary {
    border-color: rgba(177, 153, 247, 0.12) !important;
    background: rgba(139, 112, 230, 0.075) !important;
}

#channel-info-modal .ch-action-button.is-danger {
    margin-top: 5px;
    border-color: rgba(239, 98, 118, 0.08) !important;
    color: rgba(246, 164, 176, 0.76) !important;
}

#channel-info-modal .ch-action-button.is-danger:hover {
    border-color: rgba(239, 98, 118, 0.14) !important;
    background: rgba(214, 64, 87, 0.055) !important;
}

#channel-info-modal .ch-action-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(188, 169, 244, 0.7);
    font-size: 0.68rem;
}

#channel-info-modal .is-danger .ch-action-icon {
    color: rgba(244, 135, 151, 0.76);
}

#channel-info-modal .ch-action-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

#channel-info-modal .ch-action-copy strong {
    overflow: hidden;
    color: inherit;
    font-size: 0.7rem;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#channel-info-modal .ch-action-copy small {
    overflow: hidden;
    color: rgba(184, 178, 199, 0.4);
    font-size: 0.57rem;
    font-weight: 500;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#channel-info-modal .ch-action-chevron {
    flex: 0 0 auto;
    margin-left: auto;
    color: rgba(192, 185, 207, 0.27);
    font-size: 0.52rem;
}

/* ── Members ────────────────────────────────────────────── */
#channel-info-modal .ch-members-toolbar {
    position: sticky;
    z-index: 4;
    top: -10px;
    margin: 0 0 8px;
    padding: 0 0 5px;
    background: linear-gradient(rgba(10, 13, 25, 0.98) 70%, transparent);
}

#channel-info-modal .ch-search-wrap {
    position: relative;
    display: flex;
    min-height: 43px;
    align-items: center;
}

#channel-info-modal .ch-search-wrap > i {
    position: absolute;
    z-index: 2;
    left: 13px;
    color: rgba(190, 182, 205, 0.38);
    font-size: 0.62rem;
}

#channel-info-modal .ch-search-input {
    width: 100%;
    min-height: 43px;
    padding: 9px 12px 9px 35px !important;
    border: 1px solid rgba(255, 255, 255, 0.065) !important;
    border-radius: 14px !important;
    outline: 0;
    background: rgba(2, 4, 12, 0.2) !important;
    color: var(--channel-text) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15) !important;
    font-size: 0.7rem;
}

#channel-info-modal .ch-search-input:focus {
    border-color: rgba(165, 140, 245, 0.22) !important;
    background: rgba(3, 5, 14, 0.3) !important;
    box-shadow: 0 0 0 3px rgba(145, 119, 234, 0.045), inset 0 1px 2px rgba(0, 0, 0, 0.14) !important;
}

#channel-info-modal .ch-search-input::placeholder {
    color: rgba(180, 174, 195, 0.35);
}

#channel-info-modal .ch-members-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#channel-info-modal .ch-members-empty {
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--channel-muted);
    font-size: 0.7rem;
    text-align: center;
}

#channel-info-modal .ch-member-row {
    display: flex;
    min-height: 60px;
    align-items: center;
    gap: 10px;
    padding: 7px 8px !important;
    border: 1px solid transparent;
    border-radius: 16px !important;
    background: transparent;
    transition: background 150ms ease, border-color 150ms ease !important;
}

#channel-info-modal .ch-member-row:hover {
    border-color: rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.028) !important;
}

#channel-info-modal .ch-member-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 14px;
    background-color: rgba(91, 78, 171, 0.96) !important;
    background-position: center !important;
    background-size: cover !important;
    color: #fff;
    box-shadow: 0 6px 15px rgba(30, 22, 76, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-size: 0.68rem;
    font-weight: 720;
}

#channel-info-modal .ch-member-avatar:not([style*="background-image"]) {
    background-image: linear-gradient(145deg, rgba(132, 107, 218, 0.96), rgba(75, 66, 158, 0.96)) !important;
}

#channel-info-modal .ch-member-info {
    min-width: 0;
    flex: 1;
}

#channel-info-modal .ch-member-name {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    color: rgba(239, 236, 246, 0.86) !important;
    font-size: 0.7rem !important;
    font-weight: 630;
}

#channel-info-modal .ch-member-role {
    display: inline-flex;
    min-height: 19px;
    align-items: center;
    padding: 3px 6px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 7px;
    font-size: 0.43rem;
    font-weight: 720;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

#channel-info-modal .ch-member-role.owner {
    border-color: rgba(231, 190, 91, 0.12);
    background: rgba(201, 151, 46, 0.065) !important;
    color: rgba(239, 203, 119, 0.72) !important;
}

#channel-info-modal .ch-member-role.admin {
    border-color: rgba(92, 210, 162, 0.1);
    background: rgba(53, 177, 128, 0.055) !important;
    color: rgba(104, 218, 171, 0.68) !important;
}

#channel-info-modal .ch-member-role.subscriber {
    background: rgba(255, 255, 255, 0.026) !important;
    color: rgba(198, 192, 212, 0.48) !important;
}

#channel-info-modal .ch-member-status {
    margin-top: 3px;
    color: var(--channel-muted) !important;
    font-size: 0.56rem !important;
}

#channel-info-modal .ch-member-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 4px;
}

#channel-info-modal .ch-member-actions .btn {
    display: grid;
    min-width: 32px;
    height: 32px;
    place-items: center;
    padding: 0 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.055) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.025) !important;
    color: rgba(207, 200, 221, 0.55) !important;
    box-shadow: none !important;
    font-size: 0.55rem;
}

#channel-info-modal .ch-member-actions .btn-danger {
    color: rgba(238, 130, 146, 0.68) !important;
}

/* ── Management ─────────────────────────────────────────── */
#channel-info-modal .ch-pane[data-ch-pane="manage"].active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    column-gap: 15px;
    align-items: start;
}

#channel-info-modal .ch-manage-heading {
    grid-column: 1 / -1;
}

#channel-info-modal .ch-manage-heading + .ch-section-title {
    grid-column: 1;
    grid-row: 2;
}

#channel-info-modal .ch-edit-form {
    grid-column: 1;
    grid-row: 3;
}

#channel-info-modal .ch-edit-form + .ch-section-title {
    grid-column: 2;
    grid-row: 2;
}

#channel-info-modal .ch-edit-form + .ch-section-title + .ch-action-list {
    grid-column: 2;
    grid-row: 3;
}

#channel-info-modal .ch-section-title {
    margin: 0 0 8px;
    padding: 0 3px;
}

#channel-info-modal .ch-edit-form {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--channel-line);
    border-radius: 18px;
    background: var(--channel-surface-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#channel-info-modal .ch-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

#channel-info-modal .ch-field input,
#channel-info-modal .ch-field textarea {
    width: 100%;
    min-width: 0;
    padding: 10px 11px !important;
    border: 1px solid rgba(255, 255, 255, 0.065) !important;
    border-radius: 13px !important;
    outline: 0;
    background: rgba(2, 4, 12, 0.18) !important;
    color: var(--channel-text) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.14) !important;
    font-size: 0.68rem !important;
    line-height: 1.45;
    resize: vertical;
}

#channel-info-modal .ch-field input:focus,
#channel-info-modal .ch-field textarea:focus {
    border-color: rgba(165, 140, 245, 0.22) !important;
    background: rgba(3, 5, 14, 0.29) !important;
    box-shadow: 0 0 0 3px rgba(145, 119, 234, 0.045), inset 0 1px 2px rgba(0, 0, 0, 0.13) !important;
}

#channel-info-modal .ch-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

#channel-info-modal .ch-type-option {
    display: flex;
    min-width: 0;
    min-height: 73px;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    padding: 10px 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.018) !important;
    box-shadow: none !important;
    transition: background 150ms ease, border-color 150ms ease !important;
}

#channel-info-modal .ch-type-option:hover {
    background: rgba(255, 255, 255, 0.035) !important;
}

#channel-info-modal .ch-type-option.active {
    border-color: rgba(175, 151, 245, 0.16) !important;
    background: rgba(139, 112, 230, 0.09) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

#channel-info-modal .ch-type-option i {
    margin-bottom: 3px;
    color: rgba(190, 170, 245, 0.63) !important;
    font-size: 0.68rem;
}

#channel-info-modal .ch-type-option span {
    color: rgba(238, 235, 246, 0.82) !important;
    font-size: 0.65rem;
    font-weight: 640;
}

#channel-info-modal .ch-type-option small {
    color: var(--channel-muted) !important;
    font-size: 0.52rem;
}

#channel-info-modal .ch-save-btn {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 2px;
    padding: 9px 13px !important;
    border: 1px solid rgba(213, 198, 255, 0.15) !important;
    border-radius: 14px !important;
    background: linear-gradient(145deg, rgba(139, 109, 226, 0.96), rgba(80, 68, 169, 0.96)) !important;
    color: #fff !important;
    box-shadow: 0 8px 21px rgba(44, 29, 108, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;
    font-size: 0.66rem;
    font-weight: 670 !important;
}

#channel-info-modal .ch-save-btn:hover {
    transform: translateY(-1px);
}

#channel-info-modal .ch-save-btn:disabled,
#channel-info-modal .ch-save-btn.is-busy {
    cursor: wait;
    opacity: 0.58;
    transform: none;
}

#channel-info-modal .ch-add-member {
    display: flex !important;
    min-height: 49px;
    align-items: center;
    gap: 7px !important;
    padding: 5px 5px 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 15px;
    background: rgba(2, 4, 12, 0.18);
}

#channel-info-modal .ch-add-member-icon {
    display: grid;
    width: 25px;
    flex: 0 0 25px;
    place-items: center;
    color: rgba(188, 169, 244, 0.57);
    font-size: 0.6rem;
}

#channel-info-modal .ch-add-member input {
    min-width: 0;
    flex: 1;
    padding: 7px 2px;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    color: var(--channel-text) !important;
    font-size: 0.62rem;
}

#channel-info-modal .ch-add-member .btn {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0 !important;
    border-radius: 11px !important;
    background: rgba(132, 104, 220, 0.72) !important;
    box-shadow: none !important;
}

#channel-info-modal .ch-no-access {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    padding: 22px;
    border: 1px solid var(--channel-line);
    border-radius: 18px;
    background: var(--channel-surface-soft);
    color: var(--channel-muted);
    text-align: center;
}

#channel-info-modal .ch-no-access i {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    margin-bottom: 4px;
    border-radius: 15px;
    background: rgba(139, 112, 230, 0.07);
    color: rgba(188, 169, 244, 0.62);
}

#channel-info-modal .ch-no-access strong {
    color: rgba(235, 231, 243, 0.78);
    font-size: 0.72rem;
}

#channel-info-modal .ch-no-access span {
    max-width: 260px;
    font-size: 0.6rem;
    line-height: 1.5;
}

/* ── Light appearance ───────────────────────────────────── */
[data-theme="light"] #channel-info-modal {
    --channel-line: rgba(69, 55, 101, 0.1);
    --channel-line-strong: rgba(69, 55, 101, 0.15);
    --channel-surface: rgba(248, 247, 252, 0.9);
    --channel-surface-soft: rgba(78, 58, 126, 0.035);
    --channel-surface-hover: rgba(78, 58, 126, 0.055);
    --channel-text: rgba(31, 26, 44, 0.9);
    --channel-secondary: rgba(55, 47, 72, 0.62);
    --channel-muted: rgba(67, 58, 84, 0.44);
    background: rgba(30, 24, 45, 0.25);
}

[data-theme="light"] #channel-info-modal .ch-modal {
    background: rgba(248, 247, 252, 0.91) !important;
    box-shadow: 0 32px 85px rgba(47, 35, 76, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

[data-theme="light"] #channel-info-modal .ch-hero {
    background:
        radial-gradient(circle at 18% 10%, rgba(147, 111, 228, 0.15), transparent 33%),
        radial-gradient(circle at 88% 82%, rgba(51, 172, 154, 0.08), transparent 40%),
        linear-gradient(155deg, rgba(231, 225, 247, 0.96), rgba(242, 239, 248, 0.94) 56%, rgba(224, 240, 237, 0.88)) !important;
}

[data-theme="light"] #channel-info-modal .ch-name,
[data-theme="light"] #channel-info-modal .ch-pane-heading h3,
[data-theme="light"] #channel-info-modal .ch-info-text,
[data-theme="light"] #channel-info-modal .ch-stat-value,
[data-theme="light"] #channel-info-modal .ch-action-button,
[data-theme="light"] #channel-info-modal .ch-member-name,
[data-theme="light"] #channel-info-modal .ch-type-option span,
[data-theme="light"] #channel-info-modal .ch-field input,
[data-theme="light"] #channel-info-modal .ch-field textarea {
    color: rgba(31, 26, 44, 0.88) !important;
}

[data-theme="light"] #channel-info-modal .ch-tabs,
[data-theme="light"] #channel-info-modal .ch-search-input,
[data-theme="light"] #channel-info-modal .ch-field input,
[data-theme="light"] #channel-info-modal .ch-field textarea,
[data-theme="light"] #channel-info-modal .ch-add-member {
    border-color: rgba(68, 53, 101, 0.09) !important;
    background: rgba(255, 255, 255, 0.34) !important;
}

[data-theme="light"] #channel-info-modal .ch-members-toolbar {
    background: linear-gradient(rgba(248, 247, 252, 0.98) 70%, transparent);
}

/* ── Phone / narrow tablet ──────────────────────────────── */
@media (max-width: 768px) {
    #channel-info-modal {
        align-items: flex-end;
        padding: 0;
        background: rgba(4, 6, 14, 0.66);
    }

    #channel-info-modal .ch-modal {
        display: flex !important;
        width: 100% !important;
        max-width: none !important;
        height: min(94dvh, 820px);
        max-height: 94dvh !important;
        flex-direction: column;
        border-right: 0 !important;
        border-bottom: 0 !important;
        border-left: 0 !important;
        border-radius: 27px 27px 0 0 !important;
    }

    #channel-info-modal .ch-modal::before {
        content: "";
        position: absolute;
        z-index: 20;
        top: 7px;
        left: 50%;
        width: 36px;
        height: 4px;
        transform: translateX(-50%);
        border-radius: 999px;
        background: rgba(211, 205, 225, 0.2);
    }

    #channel-info-modal .ch-hero {
        display: block !important;
        min-height: 168px;
        flex: 0 0 auto;
        padding: 0 !important;
        border-right: 0;
        border-bottom: 1px solid var(--channel-line);
    }

    #channel-info-modal .ch-hero::after {
        display: none;
    }

    #channel-info-modal .ch-close {
        top: 18px !important;
        right: 13px !important;
        left: auto !important;
        width: 35px !important;
        height: 35px !important;
        border-radius: 12px !important;
    }

    #channel-info-modal .ch-hero-content {
        display: grid;
        min-height: 168px;
        grid-template-columns: 76px minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
        align-content: center;
        align-items: center;
        column-gap: 13px;
        row-gap: 4px;
        padding: 29px 56px 18px 17px;
        text-align: left;
    }

    #channel-info-modal .ch-hero-eyebrow {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        margin: 0 0 1px;
        padding: 3px 7px;
        font-size: 0.43rem;
    }

    #channel-info-modal .ch-avatar-wrap {
        width: 76px;
        height: 76px;
        grid-column: 1;
        grid-row: 1 / 5;
        margin: 0;
    }

    #channel-info-modal .ch-avatar {
        width: 76px !important;
        height: 76px !important;
        border-radius: 25px !important;
        font-size: 1.65rem !important;
    }

    #channel-info-modal .ch-avatar-ring {
        inset: -4px !important;
        border-radius: 28px !important;
    }

    #channel-info-modal .ch-avatar-edit {
        width: 29px !important;
        height: 29px !important;
        border-radius: 10px !important;
    }

    #channel-info-modal .ch-name {
        grid-column: 2;
        grid-row: 2;
        margin: 1px 0 !important;
        font-size: 1rem !important;
    }

    #channel-info-modal .ch-subline {
        grid-column: 2;
        grid-row: 3;
        justify-content: flex-start;
        font-size: 0.58rem;
    }

    #channel-info-modal .ch-role-badge {
        grid-column: 2;
        grid-row: 4;
        justify-self: start;
        margin: 3px 0 0;
    }

    #channel-info-modal .ch-hero-note {
        display: none;
    }

    #channel-info-modal .ch-tabs {
        width: calc(100% - 20px);
        min-height: 48px;
        flex: 0 0 auto;
        margin: 8px 10px 3px !important;
        border-radius: 16px !important;
    }

    #channel-info-modal .ch-tab {
        min-height: 38px;
        padding: 6px 7px !important;
        font-size: 0.59rem !important;
    }

    #channel-info-modal .ch-body {
        width: 100%;
        min-height: 0;
        flex: 1 1 0%;
        padding: 8px 10px calc(15px + env(safe-area-inset-bottom, 0px));
    }

    #channel-info-modal .ch-pane-heading {
        margin-bottom: 8px;
        padding: 0 2px;
    }

    #channel-info-modal .ch-pane-heading h3 {
        font-size: 0.86rem;
    }

    #channel-info-modal .ch-info-card {
        min-height: 82px;
        padding: 11px !important;
        border-radius: 17px !important;
    }

    #channel-info-modal .ch-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    #channel-info-modal .ch-stat-card {
        min-height: 88px;
        padding: 11px !important;
    }

    #channel-info-modal .ch-pane[data-ch-pane="manage"].active {
        display: block;
    }

    #channel-info-modal .ch-section-title {
        margin-top: 12px;
    }

    #channel-info-modal .ch-manage-heading + .ch-section-title {
        margin-top: 0;
    }

    #channel-info-modal .ch-edit-form {
        margin-bottom: 14px;
    }

    #channel-info-modal .ch-action-button {
        min-height: 56px;
    }
}

@media (max-width: 370px) {
    #channel-info-modal .ch-hero-content {
        grid-template-columns: 68px minmax(0, 1fr);
        column-gap: 11px;
        padding-right: 52px;
        padding-left: 14px;
    }

    #channel-info-modal .ch-avatar-wrap,
    #channel-info-modal .ch-avatar {
        width: 68px !important;
        height: 68px !important;
    }

    #channel-info-modal .ch-tab {
        gap: 5px;
        font-size: 0.54rem !important;
    }

    #channel-info-modal .ch-info-grid {
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #channel-info-modal,
    #channel-info-modal *,
    #channel-info-modal *::before,
    #channel-info-modal *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* Channel rows share the same timeline as personal conversations. */
.modern-sidebar .chat-item.channel-chat {
    min-height: 64px;
    border: 1px solid transparent;
    background: transparent;
}

.modern-sidebar .chat-item.channel-chat:hover {
    border-color: rgba(255,255,255,.055);
    background: rgba(255,255,255,.032);
}

.modern-sidebar .chat-item.channel-chat.active {
    border-color: color-mix(in srgb,var(--accent) 22%,rgba(255,255,255,.05));
    background: color-mix(in srgb,var(--accent) 11%,rgba(255,255,255,.025));
}

.modern-sidebar .channel-avatar {
    position: relative;
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    color: rgba(255,255,255,.94);
    background: linear-gradient(145deg,#7b66d2,#4f64a7 58%,#397f91);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16),0 7px 18px rgba(0,0,0,.15);
    font-size: .88rem;
    font-weight: 780;
}

.modern-sidebar .channel-chat .chat-name {
    display: flex;
    align-items: center;
    gap: 5px;
}

.channel-kind-mark {
    color: color-mix(in srgb,var(--accent) 65%,#cbd5e1);
    font-size: .55rem;
}

.channel-muted-mark {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: var(--text-muted);
    background: rgba(255,255,255,.035);
    font-size: .48rem;
}

.channel-role-mark {
    padding: 3px 6px;
    border: 1px solid rgba(165,180,252,.12);
    border-radius: 7px;
    color: #c7d2fe;
    background: rgba(99,102,241,.09);
    font-size: .45rem;
    font-weight: 750;
}

/* Read-only channel footer replaces the message composer for subscribers. */
#chat-view .composer.channel-readonly { display: none !important; }

#chat-view .channel-notif-bar {
    position: relative;
    z-index: 18;
    width: calc(100% - 28px);
    min-height: 72px;
    align-items: center;
    gap: 12px;
    margin: 8px 14px calc(12px + env(safe-area-inset-bottom,0px));
    padding: 11px 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 21px;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 8% 0,rgba(139,116,231,.14),transparent 38%),
        rgba(12,15,27,.88);
    box-shadow: 0 16px 38px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.07);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    backdrop-filter: blur(30px) saturate(150%);
}

#chat-view .channel-access-glow {
    position: absolute;
    right: 10%;
    bottom: -70px;
    width: 180px;
    height: 120px;
    border-radius: 50%;
    background: rgba(82,200,178,.08);
    filter: blur(35px);
    pointer-events: none;
}

#chat-view .channel-access-icon {
    position: relative;
    z-index: 1;
    width: 43px;
    height: 43px;
    min-width: 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(194,181,246,.16);
    border-radius: 15px;
    color: #cec3f5;
    background: linear-gradient(145deg,rgba(139,116,231,.22),rgba(75,92,166,.11));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
}

#chat-view .channel-access-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#chat-view .channel-access-copy small {
    color: color-mix(in srgb,var(--accent) 58%,var(--text-muted));
    font-size: .5rem;
    font-weight: 760;
    letter-spacing: .07em;
    text-transform: uppercase;
}

#chat-view .channel-access-copy strong {
    margin-top: 2px;
    color: color-mix(in srgb,var(--text-primary) 92%,transparent);
    font-size: .72rem;
    font-weight: 720;
}

#chat-view .channel-access-copy > span {
    margin-top: 2px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: .56rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#chat-view .channel-access-action {
    position: relative;
    z-index: 1;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border: 1px solid rgba(165,180,252,.16);
    border-radius: 14px;
    color: #ddd6fe;
    background: rgba(99,102,241,.11);
    font: inherit;
    font-size: .62rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease,border-color .18s ease,background .18s ease;
}

#chat-view .channel-access-action:hover { transform:translateY(-1px);border-color:rgba(196,181,253,.3);background:rgba(99,102,241,.18); }
#chat-view .channel-subscribe-action { color:#fff;background:linear-gradient(145deg,#806add,#5b58bd);box-shadow:0 9px 20px rgba(72,56,151,.22); }
#chat-view .channel-notif-bar.is-muted .channel-access-icon { color:var(--text-muted);background:rgba(255,255,255,.035); }

#chat-view.channel-mode .chat-partner {
    cursor: pointer;
}

#chat-view.channel-mode .chat-e2e-pill,
.chat-dropdown-item[hidden],
.channel-access-action[hidden] { display:none !important; }

#chat-view.channel-mode .chat-partner::after {
    content: "Информация о канале";
    position: absolute;
    right: -6px;
    bottom: -23px;
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    color: var(--text-muted);
    background: rgba(8,11,21,.9);
    font-size: .48rem;
    opacity: 0;
    transform: translateY(-3px);
    pointer-events: none;
    transition: opacity .16s ease,transform .16s ease;
}

#chat-view.channel-mode .chat-partner:hover::after { opacity:1;transform:none; }

[data-theme="light"] #chat-view .channel-notif-bar { border-color:rgba(56,47,82,.1);background:rgba(250,249,253,.92);box-shadow:0 14px 34px rgba(53,43,80,.08),inset 0 1px 0 #fff; }
[data-theme="light"] #chat-view.channel-mode .chat-partner::after { border-color:rgba(50,43,72,.1);background:rgba(255,255,255,.96); }

/* Blocked-user banner replaces the composer in private chats. */
#chat-view .blocked-bar {
    position: relative;
    z-index: 18;
    display: flex;
    width: calc(100% - 28px);
    min-height: 72px;
    align-items: center;
    gap: 12px;
    margin: 8px 14px calc(12px + env(safe-area-inset-bottom,0px));
    padding: 11px 12px;
    overflow: hidden;
    border: 1px solid rgba(255,225,225,.11);
    border-radius: 21px;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 8% 0,rgba(239,68,68,.14),transparent 40%),
        rgba(22,13,17,.88);
    box-shadow: 0 16px 38px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.06);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    backdrop-filter: blur(30px) saturate(150%);
}

#chat-view .blocked-glow {
    position: absolute;
    right: 10%;
    bottom: -70px;
    width: 180px;
    height: 120px;
    border-radius: 50%;
    background: rgba(239,68,68,.09);
    filter: blur(35px);
    pointer-events: none;
}

#chat-view .blocked-icon {
    position: relative;
    z-index: 1;
    width: 43px;
    height: 43px;
    min-width: 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(252,165,165,.2);
    border-radius: 15px;
    color: #fda4af;
    background: linear-gradient(145deg,rgba(239,68,68,.2),rgba(153,27,27,.12));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

#chat-view .blocked-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#chat-view .blocked-copy small {
    color: #fda4af;
    font-size: .5rem;
    font-weight: 760;
    letter-spacing: .07em;
    text-transform: uppercase;
}

#chat-view .blocked-copy strong {
    margin-top: 2px;
    color: color-mix(in srgb,var(--text-primary) 92%,transparent);
    font-size: .72rem;
    font-weight: 720;
}

#chat-view .blocked-copy > span {
    margin-top: 2px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: .56rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#chat-view .blocked-action {
    position: relative;
    z-index: 1;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border: 1px solid rgba(134,239,172,.18);
    border-radius: 14px;
    color: #bbf7d0;
    background: rgba(34,197,94,.12);
    font: inherit;
    font-size: .62rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease,border-color .18s ease,background .18s ease;
}

#chat-view .blocked-action:hover { transform:translateY(-1px);border-color:rgba(134,239,172,.34);background:rgba(34,197,94,.2); }
#chat-view .blocked-action[disabled] { opacity:.6;cursor:default;transform:none; }

[data-theme="light"] #chat-view .blocked-bar { border-color:rgba(82,32,32,.1);background:rgba(253,249,250,.93);box-shadow:0 14px 34px rgba(80,43,53,.08),inset 0 1px 0 #fff; }
[data-theme="light"] #chat-view .blocked-copy small { color:#be5161; }
[data-theme="light"] #chat-view .blocked-icon { color:#b4435a;border-color:rgba(180,67,90,.18);background:linear-gradient(145deg,rgba(239,68,68,.12),rgba(153,27,27,.06)); }
[data-theme="light"] #chat-view .blocked-action { color:#166534;border-color:rgba(22,101,52,.18);background:rgba(34,197,94,.1); }
[data-theme="light"] #chat-view .blocked-action:hover { background:rgba(34,197,94,.16);border-color:rgba(22,101,52,.3); }

@media (max-width: 768px) {
    #chat-view .blocked-bar {
        width: calc(100% - 16px);
        min-height: 68px;
        gap: 9px;
        margin: 6px 8px calc(8px + env(safe-area-inset-bottom,0px));
        padding: 9px;
        border-radius: 19px;
    }
    #chat-view .blocked-icon { width:39px;height:39px;min-width:39px;border-radius:13px; }
    #chat-view .blocked-copy > span { display:none; }
}

@media (max-width: 768px) {
    #chat-view .channel-notif-bar {
        width: calc(100% - 16px);
        min-height: 68px;
        gap: 9px;
        margin: 6px 8px calc(8px + env(safe-area-inset-bottom,0px));
        padding: 9px;
        border-radius: 19px;
    }
    #chat-view .channel-access-icon { width:39px;height:39px;min-width:39px;border-radius:13px; }
    #chat-view .channel-access-copy > span { display:none; }
    #chat-view .channel-access-action { min-height:39px;padding-inline:11px; }
    #chat-view .channel-access-action span { display:none; }
    #chat-view.channel-mode .chat-partner::after { display:none; }
}
