:root {
    --discord-bg: #313338;
    --discord-panel: #2b2d31;
    --discord-header: #1e1f22;
    --discord-hover: #35373c;
    --discord-active: #404249;
    --discord-border: #3f4147;
    --discord-text: #dbdee1;
    --discord-muted: #949ba4;
    --discord-green: #23a559;
    --discord-red: #f23f42;
    --discord-warning: #faa61a;
    --discord-blurple: #5865f2;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
    --header-height: clamp(56px, 7.5vw, 72px);
    --page-pad: clamp(10px, 2.2vw, 18px);
    --header-pad-x: clamp(12px, 2.4vw, 30px);
    --action-btn-height: clamp(34px, 3.4vw, 38px);
    --actions-menu-bp: 1024px;
    --swal-radius: 12px;
    --swal-border: 1px solid rgba(255, 255, 255, 0.08);
    --swal-shadow: 0 18px 48px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(0, 0, 0, 0.25);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    color: var(--discord-text);
    background: var(--discord-bg);
    font-family: "gg sans", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

body.is-locked {
    background: #0c0d10;
}

.app.is-locked,
.app[hidden] {
    display: none !important;
}

.altcha-host {
    position: fixed;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    background:
        radial-gradient(circle at top left, rgba(88, 101, 242, 0.12), transparent 34rem),
        var(--discord-bg);
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    min-height: var(--header-height);
    height: auto;
    padding: 10px var(--header-pad-x) 10px clamp(12px, 1.8vw, 22px);
    background: rgba(30, 31, 34, 0.96);
    border-bottom: 1px solid var(--discord-border);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
    overflow: visible;
    flex: 0 0 auto;
    z-index: 40;
}

.header-end {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
    overflow: visible;
}

.header-end > .actions-drawer {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
}

.session-profile {
    --session-profile-radius: 12px;
    --session-chroma-width: 3px;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(240px, 38vw);
    min-height: 44px;
    height: 44px;
    padding: 4px 8px 4px 14px;
    color: var(--discord-text);
    background: var(--discord-panel);
    border: 1px solid var(--discord-border);
    border-radius: var(--session-profile-radius);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    flex: 0 0 auto;
    z-index: 0;
    overflow: visible;
}

.session-profile[hidden] {
    display: none !important;
}

.session-profile-chroma {
    display: none;
}

.session-profile.is-admin {
    border: 0;
    background: transparent;
    padding:
        calc(4px + var(--session-chroma-width))
        calc(8px + var(--session-chroma-width))
        calc(4px + var(--session-chroma-width))
        calc(14px + var(--session-chroma-width));
    box-shadow:
        0 0 10px rgba(68, 214, 44, 0.4),
        0 0 18px rgba(0, 229, 255, 0.22);
}

.session-profile.is-admin > :not(.session-profile-chroma) {
    position: relative;
    z-index: 1;
}

.session-profile.is-admin .session-profile-chroma {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

.session-profile.is-admin .session-profile-chroma::before,
.session-profile.is-admin .session-profile-chroma::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.session-profile.is-admin .session-profile-chroma::before {
    top: 50%;
    left: 50%;
    width: max(180px, 280%);
    height: max(180px, 280%);
    background: conic-gradient(
        #44d62c 0deg,
        #00ff9d 40deg,
        #00e5ff 80deg,
        #3d7eff 120deg,
        #9b5cff 160deg,
        #ff2bd6 200deg,
        #ff3b3b 240deg,
        #ff9f1a 280deg,
        #ffe600 320deg,
        #44d62c 360deg
    );
    transform: translate(-50%, -50%) rotate(0deg);
    animation: session-chroma-spin 0.55s linear infinite;
    will-change: transform;
}

.session-profile.is-admin .session-profile-chroma::after {
    inset: var(--session-chroma-width);
    border-radius: calc(var(--session-profile-radius) - 1px);
    background: var(--discord-panel);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

@keyframes session-chroma-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.session-profile-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.session-profile-avatar-wrap {
    --avatar-size: 32px;
    position: relative;
    width: var(--avatar-size);
    height: var(--avatar-size);
    flex: 0 0 auto;
    overflow: visible;
}

.session-profile.has-decoration .session-profile-avatar-wrap {
    /* espaço visual para a decoração (ícone / balão) sem deslocar o layout */
    margin: 4px 6px 4px 2px;
}

.session-profile-avatar,
.session-profile-fallback {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.session-profile-avatar {
    object-fit: cover;
    background: var(--discord-header);
}

.session-profile-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--discord-blurple);
    font-size: 12px;
    font-weight: 800;
}

.session-profile-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Discord: avatar = 80% do frame da decoração → decoração = 125%…133.33% */
    width: 133.333%;
    height: 133.333%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    transform: translate(-50%, -50%);
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}

.session-profile-decoration[hidden] {
    display: none !important;
}

.session-profile-fallback[hidden],
.session-profile-avatar[hidden] {
    display: none !important;
}

.title-area {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.brand-logo {
    display: block;
    height: clamp(40px, 5.2vw, 56px);
    width: auto;
    max-width: min(180px, 42vw);
    object-fit: contain;
    object-position: left center;
    mix-blend-mode: lighten;
    user-select: none;
    pointer-events: none;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--discord-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    width: max-content;
    max-width: 100%;
    padding-right: 2px;
}

.actions.is-balanced-wrap {
    width: 100%;
}

.action-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
}

.action-group-label {
    display: none;
    margin: 0;
}

.action-group-buttons {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Esconde o grupo inteiro quando nenhum botão está visível (user vs ADM) */
.action-group:not(:has(.action-button:not([hidden]))) {
    display: none;
}

/* Separador visual entre grupos (regra de ritmo: cluster → respiro → cluster) */
.action-group + .action-group {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Desktop: botões fluem um a um (não o grupo inteiro), mantendo o divisor entre clusters */
@media (min-width: 1025px) {
    .header-end > .actions-drawer .action-group:not(:has(.action-button:not([hidden]))) {
        display: none;
    }

    .header-end > .actions-drawer .action-group:has(.action-button:not([hidden])),
    .header-end > .actions-drawer .action-group:has(.action-button:not([hidden])) > .action-group-buttons {
        display: contents;
    }

    .header-end > .actions-drawer .action-group + .action-group {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }

    .header-end > .actions-drawer .action-button.is-group-start {
        position: relative;
        margin-left: 18px;
    }

    .header-end > .actions-drawer .action-button.is-group-start::before {
        content: "";
        position: absolute;
        left: -10px;
        top: 18%;
        bottom: 18%;
        width: 1px;
        background: rgba(255, 255, 255, 0.1);
        pointer-events: none;
    }
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: var(--action-btn-height);
    padding: 0 clamp(10px, 1.2vw, 14px);
    color: var(--discord-text);
    background: var(--discord-panel);
    border: 1px solid var(--discord-border);
    border-radius: 8px;
    font: inherit;
    font-size: clamp(12px, 1.15vw, 14px);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition:
        transform 140ms var(--ease-out),
        box-shadow 140ms var(--ease-out),
        background 140ms var(--ease-out),
        border-color 140ms var(--ease-out),
        color 140ms var(--ease-out);
}

.action-button[hidden] {
    display: none !important;
}

.action-button:hover {
    background: var(--discord-hover);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.action-button:active {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
    transform: translateY(0) scale(0.97);
}

.action-button.icon-only {
    width: 38px;
    justify-content: center;
    padding: 0;
}

.action-button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.action-button.move svg {
    color: var(--discord-blurple);
}

.action-button.mute svg {
    color: var(--discord-muted);
}

.action-button.ban svg {
    color: var(--discord-red);
}

.action-button.ban.ban-system svg.ban-system-trailing-icon {
    color: var(--discord-green);
}

.action-button.leash span,
.action-button.disconnect span,
.action-button.lock-call span,
.action-button.passeio span,
.action-button.logs span,
.action-button.mute-system span {
    font-size: 16px;
    line-height: 1;
}

.sort-button svg {
    color: var(--discord-green);
}

.body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    padding: var(--page-pad);
    overflow: hidden;
}

.channel-toolbar {
    position: relative;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 2vw, 16px);
    flex: 0 0 auto;
    margin: 0 0 12px;
    padding-right: 10px;
    min-width: 0;
}

.status {
    margin: 0;
    padding-left: 4px;
    color: var(--discord-muted);
    font-size: 13px;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 0;
}

.search-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: min(320px, 42vw);
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    color: var(--discord-muted);
    background: var(--discord-panel);
    border: 1px solid var(--discord-border);
    border-radius: 8px;
}

.search-control:focus-within {
    color: var(--discord-text);
    border-color: rgba(250, 204, 21, 0.55);
}

.search-control svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    color: currentColor;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: transform 120ms var(--ease-out), color 120ms var(--ease-out);
}

.search-button:hover {
    color: var(--discord-text);
    transform: scale(1.08);
}

.search-button:active {
    transform: scale(0.92);
}

.search-input {
    width: 100%;
    min-width: 0;
    color: var(--discord-text);
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.search-input::placeholder {
    color: var(--discord-muted);
}

.sort-control {
    position: relative;
    flex: 0 0 auto;
}

.sort-toolbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--discord-green);
    background: var(--discord-panel);
    border: 1px solid var(--discord-border);
    border-radius: 8px;
    cursor: pointer;
    transition:
        transform 140ms var(--ease-out),
        box-shadow 140ms var(--ease-out),
        background 140ms var(--ease-out),
        border-color 140ms var(--ease-out),
        color 140ms var(--ease-out);
}

.sort-toolbar-button:hover,
.sort-toolbar-button.is-open {
    color: var(--discord-text);
    background: var(--discord-hover);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.sort-toolbar-button:active {
    transform: scale(0.94);
}

.sort-toolbar-button svg {
    width: 18px;
    height: 18px;
}

.sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    display: grid;
    gap: 6px;
    width: 230px;
    padding: 8px;
    background: #2b2d31;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
    animation: dropdownIn 140ms var(--ease-out);
}

.sort-menu[hidden] {
    display: none;
}

.sort-option {
    width: 100%;
    padding: 9px 10px;
    color: var(--discord-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    transition:
        transform 120ms var(--ease-out),
        background 120ms var(--ease-out),
        border-color 120ms var(--ease-out),
        color 120ms var(--ease-out);
}

.sort-option:hover,
.sort-option.is-active {
    color: var(--discord-text);
    background: var(--discord-hover);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.channels-scroll {
    --scroll-track: rgba(30, 31, 34, 0.92);
    --scroll-thumb: #4e5058;
    --scroll-thumb-hover: #6d6f78;
    --scroll-thumb-active: var(--discord-blurple);
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

.channels-scroll::-webkit-scrollbar {
    height: 10px;
}

.channels-scroll::-webkit-scrollbar-track {
    margin: 0 10px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.04),
            transparent 42%,
            transparent 58%,
            rgba(0, 0, 0, 0.28)
        ),
        var(--scroll-track);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.channels-scroll::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            90deg,
            rgba(88, 101, 242, 0.7),
            #5c5e66 18%,
            #5c5e66 82%,
            rgba(88, 101, 242, 0.7)
        );
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(88, 101, 242, 0.2);
}

.channels-scroll::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            90deg,
            rgba(88, 101, 242, 0.95),
            var(--scroll-thumb-hover) 14%,
            var(--scroll-thumb-hover) 86%,
            rgba(88, 101, 242, 0.95)
        );
    background-clip: padding-box;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        0 0 14px rgba(88, 101, 242, 0.4);
}

.channels-scroll::-webkit-scrollbar-thumb:active {
    background: linear-gradient(90deg, #7289da, var(--scroll-thumb-active), #7289da);
    background-clip: padding-box;
}

.channels-scroll::-webkit-scrollbar-corner {
    background: transparent;
}

.channels {
    height: 100%;
    column-width: clamp(260px, 28vw, 340px);
    column-gap: clamp(10px, 1.4vw, 14px);
    column-fill: auto;
    padding: 0 4px 4px;
}

.channel {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    margin: 0 0 8px;
    padding: 8px 0 8px 11px;
    color: var(--discord-muted);
    background: rgba(43, 45, 49, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
    break-inside: avoid;
    cursor: pointer;
    transition:
        transform 140ms var(--ease-out),
        box-shadow 140ms var(--ease-out),
        background 140ms var(--ease-out),
        border-color 140ms var(--ease-out),
        color 140ms var(--ease-out);
}

.channel:hover {
    color: var(--discord-text);
    background: var(--discord-hover);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.channel:active {
    transform: scale(0.985);
}

.channel.is-open {
    color: var(--discord-text);
    background: rgba(88, 101, 242, 0.16);
    border-color: rgba(88, 101, 242, 0.5);
}

/* Busca: destaque temporário (azul) — distinto do Lock Call */
.channel.is-highlighted {
    color: var(--discord-text);
    border-color: rgba(96, 165, 250, 0.95);
    background: rgba(59, 130, 246, 0.14);
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.45),
        0 0 16px rgba(59, 130, 246, 0.28);
    animation: channel-search-highlight 5s ease-out forwards;
}

@keyframes channel-search-highlight {
    0%,
    55% {
        border-color: rgba(96, 165, 250, 0.95);
        box-shadow:
            0 0 0 1px rgba(96, 165, 250, 0.45),
            0 0 16px rgba(59, 130, 246, 0.28);
        background: rgba(59, 130, 246, 0.14);
    }

    100% {
        border-color: rgba(96, 165, 250, 0.15);
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
        background: rgba(43, 45, 49, 0.82);
    }
}

/* Lock Call: faixa âmbar à esquerda — não confundir com highlight da busca */
.channel.is-locked-call {
    color: var(--discord-text);
    border-color: rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(90deg, rgba(250, 166, 26, 0.22), rgba(250, 166, 26, 0.22) 3px, rgba(43, 45, 49, 0.82) 3px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

.channel.is-locked-call.is-highlighted {
    border-color: rgba(96, 165, 250, 0.95);
    background:
        linear-gradient(90deg, rgba(250, 166, 26, 0.28), rgba(250, 166, 26, 0.28) 3px, rgba(59, 130, 246, 0.14) 3px);
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.45),
        0 0 16px rgba(59, 130, 246, 0.28);
}

.channel-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.voice-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: currentColor;
}

.channel-name {
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-right {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    flex: 0 0 auto;
    gap: 6px;
    min-width: 0;
}

.channel-staff-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 30px;
    height: 24px;
    padding: 0 7px;
    color: #e8eef8;
    background: rgba(20, 24, 36, 0.85);
    border: 1.5px solid rgba(70, 120, 220, 0.55);
    border-radius: 999px;
    box-shadow:
        -3px 0 6px rgba(40, 110, 255, 0.22),
        3px 0 6px rgba(220, 45, 55, 0.22);
    font-size: 14px;
    line-height: 1;
    user-select: none;
    animation: channel-staff-giroflex 1.8s ease-in-out infinite;
}

.channel-staff-badge[hidden] {
    display: none;
}

@keyframes channel-staff-giroflex {
    0%,
    100% {
        border-color: rgba(55, 120, 255, 0.7);
        box-shadow:
            -4px 0 8px rgba(40, 110, 255, 0.35),
            2px 0 4px rgba(220, 45, 55, 0.12);
    }

    50% {
        border-color: rgba(230, 55, 65, 0.7);
        box-shadow:
            -2px 0 4px rgba(40, 110, 255, 0.12),
            4px 0 8px rgba(220, 45, 55, 0.35);
    }
}

.limit {
    flex: 0 0 auto;
    min-width: 44px;
    padding: 3px 7px;
    color: var(--discord-text);
    background: var(--discord-active);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.channel-copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-width: 38px;
    margin: -8px 0;
    padding: 0 10px;
    color: var(--discord-text);
    background: rgba(30, 31, 34, 0.55);
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 4px 4px 0;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 140ms var(--ease-out),
        background 140ms var(--ease-out),
        border-color 140ms var(--ease-out);
}

.channel-copy-button:hover {
    background: rgba(88, 101, 242, 0.24);
    border-left-color: rgba(88, 101, 242, 0.5);
}

.channel-copy-button:active {
    transform: scale(0.92);
}

.limit.full {
    color: #fff;
    background: rgba(242, 63, 66, 0.24);
    border-color: rgba(242, 63, 66, 0.32);
}

.empty-state {
    max-width: 420px;
    padding: 28px;
    color: var(--discord-muted);
    background: var(--discord-panel);
    border: 1px solid var(--discord-border);
    border-radius: 12px;
}

.member-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 20;
    width: min(380px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #2b2d31;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
    transform: translate(-50%, -50%);
    animation: panelIn 180ms var(--ease-out);
}

.member-panel.is-closing {
    pointer-events: none;
    animation: panelOut 150ms var(--ease-in) forwards;
}

.member-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    padding: 16px 52px 16px 16px;
    background: #1e1f22;
    border-bottom: 1px solid var(--discord-border);
}

.member-panel-title {
    min-width: 0;
}

.member-panel-title h2 {
    margin: 0;
    overflow: hidden;
    color: var(--discord-text);
    font-size: 17px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-panel-title p {
    margin: 4px 0 0;
    color: var(--discord-muted);
    font-size: 12px;
    font-weight: 700;
}

.close-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--discord-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition:
        transform 120ms var(--ease-out),
        background 120ms var(--ease-out),
        border-color 120ms var(--ease-out),
        color 120ms var(--ease-out);
}

.close-panel:hover {
    color: var(--discord-text);
    background: var(--discord-hover);
    border-color: rgba(255, 255, 255, 0.08);
    transform: rotate(90deg) scale(1.05);
}

.close-panel:active {
    transform: rotate(90deg) scale(0.9);
}

.member-panel-body {
    padding: 12px;
    overflow: auto;
    min-height: 0;
    flex: 1 1 auto;
}

.member-panel-recent {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: min(240px, 34vh);
    border-top: 1px solid var(--discord-border);
    background: rgba(24, 25, 28, 0.92);
}

.member-panel-recent[hidden] {
    display: none !important;
}

.member-panel-recent-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex: 0 0 auto;
    padding: 10px 12px 6px;
}

.member-panel-recent-title {
    margin: 0;
    color: var(--discord-warning);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.member-panel-recent-meta {
    margin: 0;
    color: var(--discord-muted);
    font-size: 11px;
    font-weight: 700;
}

.member-panel-recent-body {
    padding: 0 12px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
    scrollbar-gutter: stable;
}

.member-panel-recent-body::-webkit-scrollbar {
    width: 8px;
}

.member-panel-recent-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.member-panel-recent-body::-webkit-scrollbar-track {
    background: transparent;
}

.member-card.is-entering-recent {
    animation: recentMemberIn 380ms var(--ease-out);
}

@keyframes recentMemberIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.member-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 60px;
    padding: 10px;
    color: var(--discord-text);
    background: rgba(49, 51, 56, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        transform 140ms var(--ease-out),
        box-shadow 140ms var(--ease-out),
        background 140ms var(--ease-out),
        border-color 140ms var(--ease-out);
}

.member-card:hover {
    background: var(--discord-hover);
    border-color: rgba(88, 101, 242, 0.42);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.member-card:active {
    transform: scale(0.985);
}

.member-card.is-highlighted {
    border-color: rgba(96, 165, 250, 0.95);
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.45),
        0 0 16px rgba(59, 130, 246, 0.22);
    animation: member-search-highlight 5s ease-out forwards;
}

@keyframes member-search-highlight {
    0%,
    55% {
        border-color: rgba(96, 165, 250, 0.95);
        box-shadow:
            0 0 0 1px rgba(96, 165, 250, 0.45),
            0 0 16px rgba(59, 130, 246, 0.22);
    }

    100% {
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: none;
    }
}

.member-card.is-selected {
    background: rgba(35, 165, 89, 0.18);
    border-color: rgba(35, 165, 89, 0.72);
    box-shadow:
        0 0 0 1px rgba(35, 165, 89, 0.42),
        0 0 18px rgba(35, 165, 89, 0.16);
}

.member-card.is-departed {
    opacity: 0.78;
    border-style: dashed;
}

.member-card.is-departed.is-selected {
    background: rgba(250, 166, 26, 0.16);
    border-color: rgba(250, 166, 26, 0.7);
    box-shadow:
        0 0 0 1px rgba(250, 166, 26, 0.4),
        0 0 14px rgba(250, 166, 26, 0.12);
}

.member-card.is-departed .member-detail {
    color: var(--discord-warning);
}

.member-copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-width: 42px;
    margin: -10px -10px -10px 0;
    color: var(--discord-text);
    background: rgba(30, 31, 34, 0.55);
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 10px 10px 0;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 140ms var(--ease-out),
        background 140ms var(--ease-out),
        border-color 140ms var(--ease-out);
}

.member-card-trailing {
    display: inline-flex;
    align-items: stretch;
    align-self: stretch;
    flex: 0 0 auto;
    margin-left: auto;
}

.member-staff-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 0 2px 0 8px;
    font-size: 15px;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

.member-copy-button:hover {
    background: rgba(88, 101, 242, 0.24);
    border-left-color: rgba(88, 101, 242, 0.5);
}

.member-copy-button:active {
    transform: scale(0.92);
}

.member-remove-button:hover {
    background: rgba(242, 63, 66, 0.28);
    border-left-color: rgba(242, 63, 66, 0.55);
}

.floating-toast {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 14000;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 14px;
    color: var(--discord-text);
    background: #2b2d31;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
    opacity: 0;
    transform: translateX(18px) scale(0.96);
    transition:
        opacity 180ms var(--ease-out),
        transform 180ms var(--ease-out);
    pointer-events: none;
}

.floating-toast.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.floating-toast-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
}

.floating-toast-icon svg {
    width: 42px;
    height: 42px;
}

.floating-toast-title {
    display: block;
    margin-bottom: 2px;
}

.floating-toast-html {
    color: var(--discord-muted);
    font-size: 13px;
    font-weight: 700;
}

.member-avatar,
.member-avatar-fallback {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    align-self: center;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.member-avatar {
    object-fit: cover;
    background: var(--discord-active);
}

.member-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--discord-blurple), #8b5cf6);
    font-weight: 800;
}

.member-info {
    display: grid;
    grid-template-rows: 18px 18px;
    row-gap: 2px;
    align-content: center;
    align-self: center;
    flex: 1 1 auto;
    height: 38px;
    min-width: 0;
}

.member-name,
.member-detail {
    display: block;
    overflow: hidden;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
    font-weight: 800;
    line-height: 18px;
    color: var(--discord-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-detail {
    margin-top: 0;
}

.panel-empty {
    margin: 0;
    padding: 18px;
    color: var(--discord-muted);
    text-align: center;
    background: rgba(49, 51, 56, 0.62);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.leash-panel {
    display: grid;
    gap: 12px;
    text-align: left;
}

.lock-call-members-box {
    max-height: 240px;
    overflow: auto;
    padding: 10px;
    background: rgba(30, 31, 34, 0.72);
    border: 1px solid var(--discord-border);
    border-radius: 10px;
}

.lock-call-members-box .member-list {
    margin: 0;
}

.lock-call-members-box .panel-empty {
    margin: 0;
}

.lock-call-select-actions {
    margin-top: -4px;
}

.lock-call-divider {
    width: 100%;
    margin: 4px 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lock-call-active-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lock-call-active-item {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(30, 31, 34, 0.72);
    border: 1px solid var(--discord-border);
    border-radius: 10px;
}

.lock-call-active-title {
    font-weight: 700;
    color: var(--discord-text);
}

.lock-call-active-meta {
    font-size: 12px;
    color: var(--discord-muted);
}

.lock-call-active-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lock-call-select-mark {
    pointer-events: none;
}

.disconnect-panel {
    gap: 14px;
}

.leash-feedback:empty {
    display: none;
}

.disconnect-mode-panel {
    display: grid;
    gap: 12px;
}

.disconnect-mode-panel[hidden],
#disconnect-manual-delay[hidden] {
    display: none !important;
}

.discord-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    background: rgba(30, 31, 34, 0.72);
    border: 1px solid var(--discord-border);
    border-radius: 10px;
}

.discord-toggle-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.discord-toggle-title {
    color: var(--discord-text);
    font-size: 14px;
    font-weight: 800;
}

.discord-toggle-hint {
    color: var(--discord-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.discord-switch {
    flex: 0 0 auto;
    width: 44px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.discord-switch-track {
    position: relative;
    display: block;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #80848e;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
    transition: background 160ms var(--ease-out);
}

.discord-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: transform 160ms var(--ease-out);
}

.discord-switch.is-on .discord-switch-track,
.discord-switch[aria-checked="true"] .discord-switch-track {
    background: var(--discord-green);
}

.discord-switch.is-on .discord-switch-thumb,
.discord-switch[aria-checked="true"] .discord-switch-thumb {
    transform: translateX(20px);
}

.discord-switch:disabled,
.discord-switch.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.passeio-monitor {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    background:
        linear-gradient(180deg, rgba(88, 101, 242, 0.1), rgba(30, 31, 34, 0.55));
    border: 1px solid rgba(88, 101, 242, 0.28);
    border-radius: 10px;
    text-align: left;
    animation: dropdownIn 140ms var(--ease-out);
}

.passeio-monitor[hidden] {
    display: none !important;
}

.passeio-monitor-list {
    display: grid;
    gap: 10px;
}

.passeio-run-card {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.passeio-run-card[data-phase="done"] {
    border-color: rgba(35, 165, 89, 0.35);
}

.passeio-run-card[data-phase="error"] {
    border-color: rgba(242, 63, 66, 0.4);
}

.passeio-run-card[data-phase="returning"] {
    border-color: rgba(250, 204, 21, 0.3);
}

.passeio-run-card[data-phase="cancelling"] {
    opacity: 0.75;
}

.passeio-run-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.passeio-run-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.passeio-run-name {
    color: var(--discord-text);
    font-size: 13px;
    font-weight: 800;
}

.passeio-run-id {
    color: var(--discord-muted);
    font-size: 11px;
}

.passeio-run-status {
    color: var(--discord-muted);
    font-size: 12px;
    font-weight: 600;
}

.passeio-run-error {
    margin: 0;
    color: #f23f42;
    font-size: 12px;
    font-weight: 600;
}

.passeio-monitor[data-phase="done"] {
    border-color: rgba(35, 165, 89, 0.4);
    background:
        linear-gradient(180deg, rgba(35, 165, 89, 0.12), rgba(30, 31, 34, 0.55));
}

.passeio-monitor[data-phase="error"] {
    border-color: rgba(242, 63, 66, 0.4);
    background:
        linear-gradient(180deg, rgba(242, 63, 66, 0.12), rgba(30, 31, 34, 0.55));
}

.passeio-monitor[data-phase="returning"] {
    border-color: rgba(250, 204, 21, 0.35);
    background:
        linear-gradient(180deg, rgba(250, 204, 21, 0.1), rgba(30, 31, 34, 0.55));
}

.passeio-monitor-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.passeio-monitor-eyebrow {
    color: var(--discord-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.passeio-progress-label {
    color: var(--discord-text);
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.passeio-progress-track {
    position: relative;
    width: 100%;
    height: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.passeio-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--discord-blurple), #8b5cf6 55%, var(--discord-green));
    box-shadow: 0 0 12px rgba(88, 101, 242, 0.35);
    transition: width 320ms var(--ease-out);
}

.passeio-run-card[data-phase="done"] .passeio-progress-fill,
.passeio-monitor[data-phase="done"] .passeio-progress-fill {
    background: linear-gradient(90deg, #1f8b4c, var(--discord-green));
    box-shadow: 0 0 12px rgba(35, 165, 89, 0.35);
}

.passeio-run-card[data-phase="error"] .passeio-progress-fill,
.passeio-monitor[data-phase="error"] .passeio-progress-fill {
    background: linear-gradient(90deg, #c0392b, var(--discord-red));
    box-shadow: 0 0 12px rgba(242, 63, 66, 0.28);
}

.passeio-run-card[data-phase="returning"] .passeio-progress-fill,
.passeio-monitor[data-phase="returning"] .passeio-progress-fill {
    background: linear-gradient(90deg, #d4a017, #facc15);
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.28);
}

.passeio-monitor-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 28px;
}

.passeio-cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: var(--discord-muted);
    background: rgba(30, 31, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 120ms var(--ease-out),
        background 120ms var(--ease-out),
        border-color 120ms var(--ease-out),
        color 120ms var(--ease-out);
}

.passeio-cancel-button[hidden] {
    display: none !important;
}

.passeio-cancel-button:hover {
    color: #fff;
    background: rgba(242, 63, 66, 0.28);
    border-color: rgba(242, 63, 66, 0.5);
    transform: scale(1.05);
}

.passeio-cancel-button:active {
    transform: scale(0.94);
}

.passeio-cancel-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.discord-switch:focus-visible .discord-switch-track {
    outline: 2px solid var(--discord-blurple);
    outline-offset: 2px;
}

.leash-leader-info,
.leash-feedback {
    margin: 0;
    color: var(--discord-muted);
    font-size: 12px;
    font-weight: 800;
}

.leash-limit-hint {
    margin: 0;
    padding: 8px 12px;
    color: var(--discord-text);
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.26);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leash-limit-hint strong {
    color: #fff;
    font-weight: 800;
}

.leash-feedback.is-error {
    color: var(--discord-red);
}

.leash-members {
    max-height: 260px;
    overflow: auto;
    padding-right: 4px;
}

.leash-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.leash-actions:has(> :nth-child(2)) {
    grid-template-columns: 1fr 1fr;
}

.leash-button {
    min-height: 38px;
    padding: 8px 10px;
    color: var(--discord-text);
    background: var(--discord-active);
    border: 1px solid var(--discord-border);
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 140ms var(--ease-out),
        box-shadow 140ms var(--ease-out),
        background 140ms var(--ease-out),
        border-color 140ms var(--ease-out);
}

.leash-button:hover {
    background: var(--discord-hover);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.leash-button:active {
    transform: scale(0.98);
}

.leash-button.primary {
    color: #fff;
    background: var(--discord-blurple);
    border-color: rgba(88, 101, 242, 0.72);
}

.leash-button.danger {
    color: #fff;
    background: rgba(242, 63, 66, 0.32);
    border-color: rgba(242, 63, 66, 0.48);
}

.member-panel-footer {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: rgba(30, 31, 34, 0.76);
    border-top: 1px solid var(--discord-border);
}

.member-actions {
    display: grid;
    gap: 10px;
    padding: 10px;
    background: rgba(49, 51, 56, 0.62);
    border: 1px solid rgba(35, 165, 89, 0.28);
    border-radius: 10px;
    animation: dropdownIn 140ms var(--ease-out);
}

.member-actions[hidden] {
    display: none;
}

.member-actions-title {
    margin: 0;
    color: var(--discord-green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.member-actions-group {
    display: grid;
    gap: 8px;
}

.member-actions-group[hidden] {
    display: none !important;
}

.member-actions-group--single + .member-actions-group--bulk {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.member-actions-subtitle {
    margin: 0;
    color: var(--discord-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
}

.member-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    padding: 8px 10px;
    color: var(--discord-text);
    background: var(--discord-active);
    border: 1px solid var(--discord-border);
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition:
        transform 140ms var(--ease-out),
        box-shadow 140ms var(--ease-out),
        background 140ms var(--ease-out),
        border-color 140ms var(--ease-out);
}

.member-action-button:hover {
    background: var(--discord-hover);
    border-color: rgba(35, 165, 89, 0.42);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.member-action-button:active {
    transform: scale(0.98);
}

.member-action-button--danger:hover {
    border-color: rgba(242, 63, 66, 0.55);
    box-shadow: 0 8px 18px rgba(242, 63, 66, 0.12);
}

.move-me-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    color: #fff;
    background: var(--discord-blurple);
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 140ms var(--ease-out),
        box-shadow 140ms var(--ease-out),
        background 140ms var(--ease-out);
}

.move-me-button:hover {
    background: #4752c4;
    box-shadow: 0 10px 22px rgba(88, 101, 242, 0.25);
    transform: translateY(-1px);
}

.move-me-button:active {
    transform: scale(0.98);
}

.move-me-button svg {
    width: 18px;
    height: 18px;
}

.swal2-popup.discord-popup,
.swal2-toast.discord-toast {
    color: var(--discord-text);
    background: var(--discord-panel);
    border: var(--swal-border);
    box-shadow: var(--swal-shadow);
    font-family: "gg sans", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

/* SweetAlert default (~1060) fica atrás do lockdown (10000). */
.swal2-container {
    z-index: 13000 !important;
}

/* Overlay escuro só em modais — toasts (canto) não podem pintar a tela inteira. */
.swal2-container.swal2-backdrop-show:not(.swal2-top-end):not(.swal2-top):not(.swal2-top-start):not(.swal2-top-left):not(.swal2-top-right),
.swal2-container.swal2-noanimation:not(.swal2-top-end):not(.swal2-top):not(.swal2-top-start):not(.swal2-top-left):not(.swal2-top-right) {
    background: rgba(8, 9, 12, 0.72) !important;
}

.swal2-container:has(.swal2-toast),
body.swal2-toast-shown > .swal2-container {
    background: transparent !important;
    pointer-events: none !important;
}

.swal2-container:has(.swal2-toast) .swal2-toast,
body.swal2-toast-shown > .swal2-container .swal2-toast {
    pointer-events: auto !important;
}

.swal2-popup.discord-popup {
    width: min(460px, calc(100vw - 28px));
    padding: 1.2rem 1.35rem 1.15rem;
    border-radius: var(--swal-radius);
}

.swal2-popup.discord-popup.discord-popup--wide {
    width: min(540px, calc(100vw - 28px));
}

.swal2-popup.discord-popup.discord-popup--panel {
    width: min(620px, calc(100vw - 28px));
    padding: 1.15rem 1.3rem 1.1rem;
}

.swal2-popup.discord-popup.discord-popup--confirm {
    width: min(480px, calc(100vw - 28px));
    padding: 1.35rem 1.7rem 1.2rem;
}

.swal2-popup.discord-popup.discord-popup--danger {
    border-color: rgba(242, 63, 66, 0.35);
    box-shadow:
        var(--swal-shadow),
        0 0 0 1px rgba(242, 63, 66, 0.12);
}

.swal2-popup.discord-popup.discord-popup--warning {
    border-color: rgba(250, 166, 26, 0.32);
    box-shadow:
        var(--swal-shadow),
        0 0 0 1px rgba(250, 166, 26, 0.1);
}

.swal2-popup.discord-popup.swal2-show {
    animation: modalIn 180ms var(--ease-out) !important;
}

.swal2-popup.discord-popup.swal2-hide {
    animation: modalOut 140ms var(--ease-in) forwards !important;
}

.swal2-toast.discord-toast.swal2-show {
    animation: toastIn 180ms var(--ease-out) !important;
}

.swal2-toast.discord-toast.swal2-hide {
    animation: toastOut 140ms var(--ease-in) forwards !important;
}

.swal2-toast.discord-toast {
    width: auto;
    max-width: min(440px, calc(100vw - 24px));
    padding: 11px 16px 11px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.swal2-toast.discord-toast .swal2-icon {
    margin: 0 10px 0 0;
    transform: scale(0.72);
    flex: 0 0 auto;
}

.swal2-toast.discord-toast .swal2-title {
    margin: 0;
    padding: 0;
    font-size: 13.5px;
    font-weight: 800;
    text-align: left;
    line-height: 1.3;
    white-space: nowrap;
}

.swal2-toast.discord-toast.swal2-icon-error .swal2-title,
.swal2-toast.discord-toast.swal2-icon-warning .swal2-title {
    white-space: normal;
    max-width: min(400px, calc(100vw - 96px));
}

.swal2-toast.discord-toast .swal2-html-container {
    margin: 2px 0 0;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swal2-toast.discord-toast .swal2-timer-progress-bar {
    background: rgba(88, 101, 242, 0.75);
}

.swal2-toast.discord-toast.swal2-icon-success,
.cdlnator-toast--success {
    border-color: rgba(35, 165, 89, 0.42);
}

.swal2-toast.discord-toast.swal2-icon-error,
.cdlnator-toast--error {
    border-color: rgba(242, 63, 66, 0.45);
}

.swal2-toast.discord-toast.swal2-icon-warning,
.cdlnator-toast--warning {
    border-color: rgba(250, 166, 26, 0.48);
}

.swal2-toast.discord-toast.swal2-icon-info,
.cdlnator-toast--info {
    border-color: rgba(88, 101, 242, 0.45);
}

/* Ícones alinhados ao tema (modais + toasts) */
.discord-popup .swal2-success,
.discord-toast .swal2-success {
    border-color: var(--discord-green);
    color: var(--discord-green);
}

.discord-popup .swal2-success [class^=swal2-success-line],
.discord-popup .swal2-success [class*=' swal2-success-line'],
.discord-toast .swal2-success [class^=swal2-success-line],
.discord-toast .swal2-success [class*=' swal2-success-line'] {
    background-color: var(--discord-green);
}

.discord-popup .swal2-success .swal2-success-ring,
.discord-toast .swal2-success .swal2-success-ring {
    border-color: rgba(35, 165, 89, 0.35);
}

.discord-popup .swal2-error,
.discord-toast .swal2-error {
    border-color: var(--discord-red);
    color: var(--discord-red);
}

.discord-popup .swal2-error .swal2-x-mark-line-left,
.discord-popup .swal2-error .swal2-x-mark-line-right,
.discord-toast .swal2-error .swal2-x-mark-line-left,
.discord-toast .swal2-error .swal2-x-mark-line-right {
    background-color: var(--discord-red);
}

.discord-popup .swal2-warning,
.discord-toast .swal2-warning {
    border-color: var(--discord-warning);
    color: var(--discord-warning);
}

.discord-popup .swal2-info,
.discord-toast .swal2-info {
    border-color: var(--discord-blurple);
    color: var(--discord-blurple);
}

.discord-popup .swal2-icon.discord-swal-icon {
    margin: 0.35rem auto 0.55rem;
    transform: scale(0.88);
}

.discord-popup--confirm .swal2-icon.discord-swal-icon {
    margin: 0.15rem auto 0.45rem;
    transform: scale(0.82);
}

.cdlnator-toast-host {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 14000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.cdlnator-toast {
    padding: 11px 14px;
    color: var(--discord-text);
    background: var(--discord-panel);
    border: var(--swal-border);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity 180ms var(--ease-out),
        transform 180ms var(--ease-out);
}

.cdlnator-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cdlnator-toast-title {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cdlnator-toast-body {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--discord-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cdlnator-toast--success {
    border-color: rgba(35, 165, 89, 0.45);
}

.cdlnator-toast--error {
    border-color: rgba(242, 63, 66, 0.45);
}

.cdlnator-toast--warning {
    border-color: rgba(250, 166, 26, 0.5);
}

.cdlnator-toast--info {
    border-color: rgba(88, 101, 242, 0.45);
}

.discord-popup .swal2-title,
.discord-toast .swal2-title,
.discord-swal-title {
    color: var(--discord-text);
}

.discord-popup .discord-swal-title {
    margin: 0;
    padding: 0 0 0.2rem;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.discord-popup--confirm .discord-swal-title {
    font-size: 1.12rem;
    white-space: nowrap;
}

.discord-popup .swal2-html-container,
.discord-toast .swal2-html-container,
.discord-swal-body {
    color: var(--discord-muted);
}

.discord-popup .discord-swal-body {
    margin: 0.35rem 0 0;
    padding: 0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
}

.discord-popup--confirm .discord-swal-body {
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.discord-popup .swal2-actions.discord-swal-actions {
    margin: 1.05rem auto 0;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.discord-popup .swal2-styled {
    margin: 0;
    padding: 0.62em 1.3em;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    font-weight: 800;
    font-size: 13.5px;
}

.discord-popup .swal2-input {
    color: var(--discord-text);
    background: #1e1f22;
    border: 1px solid var(--discord-border);
    box-shadow: none;
}

.discord-popup .swal2-select {
    color: var(--discord-text);
    background: #1e1f22;
    border: 1px solid var(--discord-border);
    border-radius: 8px;
    box-shadow: none;
}

.discord-popup .swal2-confirm {
    background: var(--discord-blurple);
    border-radius: 8px;
}

.discord-popup .swal2-confirm:hover {
    background: #4752c4;
}

.discord-popup .swal2-confirm.discord-confirm-danger {
    background: var(--discord-red);
}

.discord-popup .swal2-confirm.discord-confirm-danger:hover {
    background: #d83639;
}

.discord-popup .swal2-confirm.discord-confirm-warning {
    color: #1e1f22;
    background: var(--discord-warning);
}

.discord-popup .swal2-confirm.discord-confirm-warning:hover {
    background: #e09816;
}

.discord-popup .swal2-cancel,
.discord-popup .swal2-cancel.discord-cancel {
    color: var(--discord-text);
    background: var(--discord-active);
    border-radius: 8px;
}

.discord-popup .swal2-cancel:hover,
.discord-popup .swal2-cancel.discord-cancel:hover {
    background: #4a4d55;
}

.discord-popup .swal2-close {
    color: var(--discord-muted);
}

.discord-popup .swal2-close:hover {
    color: var(--discord-text);
}

.discord-popup .swal2-validation-message,
.discord-popup .discord-swal-validation {
    margin: 12px 0 0;
    padding: 10px 12px;
    color: var(--discord-text);
    background: rgba(242, 63, 66, 0.12);
    border: 1px solid rgba(242, 63, 66, 0.38);
    border-radius: 8px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.discord-popup .swal2-validation-message::before {
    background-color: var(--discord-red);
    color: #fff;
    border-radius: 6px;
}

.discord-form {
    display: grid;
    gap: 10px;
    margin-top: 8px;
    text-align: left;
}

.discord-form > .leash-limit-hint:first-child {
    margin-bottom: 2px;
}

/* ---- Mute System wizard ---- */
.mute-system-popup .swal2-html-container {
    overflow: visible;
}

.mute-system-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 2px 0 16px;
}

.mute-system-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.mute-system-step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: var(--discord-muted);
    background: rgba(30, 31, 34, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 900;
    transition:
        background 160ms var(--ease-out),
        border-color 160ms var(--ease-out),
        color 160ms var(--ease-out),
        box-shadow 160ms var(--ease-out);
}

.mute-system-step-label {
    color: var(--discord-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 160ms var(--ease-out);
}

.mute-system-step-line {
    width: 42px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 160ms var(--ease-out);
}

.mute-system-step.is-active .mute-system-step-dot {
    color: #fff;
    background: var(--discord-blurple);
    border-color: rgba(148, 156, 247, 0.55);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.22);
}

.mute-system-step.is-active .mute-system-step-label {
    color: var(--discord-text);
}

.mute-system-step.is-done .mute-system-step-dot {
    color: #fff;
    background: rgba(88, 101, 242, 0.72);
    border-color: rgba(148, 156, 247, 0.4);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.14);
}

.mute-system-step.is-done .mute-system-step-label {
    color: #b5baf7;
}

.mute-system-step-line.is-done {
    background: linear-gradient(90deg, rgba(88, 101, 242, 0.75), rgba(148, 156, 247, 0.55));
}

.mute-system-summary {
    margin: 0 0 4px;
    padding: 8px 10px;
    color: var(--discord-text);
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.28);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.mute-system-section-label {
    margin: 2px 0 0;
    color: var(--discord-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mute-system-choice-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mute-system-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 64px;
    padding: 10px 12px;
    color: var(--discord-text);
    background: rgba(30, 31, 34, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        transform 140ms var(--ease-out),
        background 140ms var(--ease-out),
        border-color 140ms var(--ease-out),
        box-shadow 140ms var(--ease-out);
}

.mute-system-choice:hover {
    background: var(--discord-hover);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.mute-system-choice.is-selected {
    background: rgba(88, 101, 242, 0.18);
    border-color: rgba(88, 101, 242, 0.72);
    box-shadow:
        0 0 0 1px rgba(88, 101, 242, 0.28),
        0 8px 18px rgba(0, 0, 0, 0.18);
}

.mute-system-choice-emoji {
    font-size: 18px;
    line-height: 1;
}

.mute-system-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    color: var(--discord-text);
}

.mute-system-choice-icon svg {
    width: 22px;
    height: 22px;
}

.mute-system-choice[data-value="ban"] .mute-system-choice-icon,
.ban-system-summary .mute-system-choice-icon {
    color: var(--discord-red);
}

.mute-system-choice[data-value="unban"] .mute-system-choice-icon {
    color: var(--discord-green);
}

.mute-system-choice.is-selected[data-value="ban"] .mute-system-choice-icon {
    color: #ff8e8e;
}

.mute-system-choice.is-selected[data-value="unban"] .mute-system-choice-icon {
    color: #8ef0b0;
}

.mute-system-choice-row--single {
    grid-template-columns: 1fr;
}

.ban-system-summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.ban-system-summary .mute-system-choice-icon {
    width: 18px;
    height: 18px;
}

.ban-system-summary .mute-system-choice-icon svg {
    width: 18px;
    height: 18px;
}

.mute-system-choice-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.mute-system-choice-text strong {
    font-size: 13px;
    font-weight: 800;
}

.mute-system-choice-text small {
    color: var(--discord-muted);
    font-size: 11px;
    font-weight: 600;
}

.discord-popup .swal2-confirm.mute-system-next-button,
.discord-popup .swal2-cancel.mute-system-back-button {
    min-width: 118px;
    font-weight: 800;
}

.discord-field-label {
    display: grid;
    gap: 6px;
    color: var(--discord-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.discord-field {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    color: var(--discord-text);
    background: #1e1f22;
    border: 1px solid var(--discord-border);
    border-radius: 8px;
    outline: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    transition:
        border-color 140ms var(--ease-out),
        box-shadow 140ms var(--ease-out),
        transform 140ms var(--ease-out);
}

.discord-field-with-action {
    position: relative;
    display: block;
}

.discord-field-with-action .discord-field {
    padding-right: 42px;
}

.discord-field-action {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--discord-text);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background-color 140ms var(--ease-out),
        transform 140ms var(--ease-out);
}

.discord-field-action:hover {
    background: rgba(255, 255, 255, 0.08);
}

.discord-field-action:active {
    transform: translateY(-50%) scale(0.94);
}

.discord-field-action:disabled {
    opacity: 0.55;
    cursor: wait;
}

.discord-textarea {
    min-height: 82px;
    padding: 10px;
    resize: vertical;
}

.tall-id-textarea {
    height: 311px;
    min-height: 311px;
}

.discord-field:focus {
    border-color: rgba(88, 101, 242, 0.72);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.14);
    transform: translateY(-1px);
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(18px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(18px) scale(0.96);
    }
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 12px)) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes panelOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 10px)) scale(0.96);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .session-profile.is-admin .session-profile-chroma::before {
        animation: session-chroma-spin 0.55s linear infinite !important;
        animation-duration: 0.55s !important;
        animation-iteration-count: infinite !important;
    }

    .actions-drawer,
    .actions-backdrop,
    .actions-menu-toggle-bars span {
        transition: none !important;
    }
}

/* ---- Menu hambúrguer / drawer (base desktop: inline) ---- */
.actions-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--discord-text);
    background: var(--discord-panel);
    border: 1px solid var(--discord-border);
    border-radius: 10px;
    cursor: pointer;
    flex: 0 0 auto;
    transition:
        background 140ms var(--ease-out),
        border-color 140ms var(--ease-out),
        transform 140ms var(--ease-out),
        box-shadow 140ms var(--ease-out);
}

.actions-menu-toggle:hover {
    background: var(--discord-hover);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.actions-menu-toggle:active {
    transform: translateY(0) scale(0.96);
}

.actions-menu-toggle.is-open {
    background: rgba(88, 101, 242, 0.18);
    border-color: rgba(88, 101, 242, 0.45);
    color: #fff;
}

.actions-menu-toggle-bars {
    position: relative;
    display: block;
    width: 18px;
    height: 14px;
}

.actions-menu-toggle-bars span {
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition:
        transform 200ms var(--ease-out),
        opacity 160ms var(--ease-out),
        top 200ms var(--ease-out);
}

.actions-menu-toggle-bars span:nth-child(1) {
    top: 0;
}

.actions-menu-toggle-bars span:nth-child(2) {
    top: 6px;
}

.actions-menu-toggle-bars span:nth-child(3) {
    top: 12px;
}

.actions-menu-toggle.is-open .actions-menu-toggle-bars span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

.actions-menu-toggle.is-open .actions-menu-toggle-bars span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.4);
}

.actions-menu-toggle.is-open .actions-menu-toggle-bars span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

.actions-backdrop {
    display: none;
}

.actions-drawer-head {
    display: none;
}

/* Desktop médio: compacta botões antes do menu */
@media (max-width: 1280px) {
    .action-group + .action-group {
        margin-left: 8px;
        padding-left: 8px;
    }

    .action-group-buttons {
        gap: 6px;
    }

    .action-button {
        gap: 6px;
    }

    .session-profile {
        max-width: min(200px, 30vw);
    }
}

@media (max-width: 1180px) {
    .action-button svg {
        width: 16px;
        height: 16px;
    }

    .header-end {
        gap: 8px;
    }
}

/* Tablet / mobile: drawer + hambúrguer */
@media (max-width: 1024px) {
    .actions-menu-toggle {
        display: inline-flex;
        order: 2;
    }

    .session-profile {
        order: 1;
        max-width: min(180px, 46vw);
        margin-left: auto;
    }

    .actions-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 90;
        background: rgba(8, 9, 12, 0.62);
        backdrop-filter: blur(6px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity 220ms var(--ease-out),
            visibility 220ms var(--ease-out);
    }

    body.actions-menu-open .actions-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .header-end > .actions-drawer,
    .actions-drawer {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 100;
        display: flex;
        flex-direction: column;
        width: min(340px, calc(100vw - 48px));
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 0;
        background:
            linear-gradient(180deg, rgba(49, 51, 56, 0.99), rgba(30, 31, 34, 0.99));
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -18px 0 48px rgba(0, 0, 0, 0.45);
        transform: translateX(104%);
        transition: transform 280ms var(--ease-out);
        overflow: hidden;
        flex: none;
        justify-content: flex-start;
        align-items: stretch;
        pointer-events: none;
    }

    body.actions-menu-open .actions-drawer {
        transform: translateX(0);
        pointer-events: auto;
    }

    body.actions-menu-open {
        overflow: hidden;
    }

    .actions-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex: 0 0 auto;
        padding: 18px 16px 14px;
        background: rgba(30, 31, 34, 0.92);
        border-bottom: 1px solid var(--discord-border);
    }

    .actions-drawer-eyebrow {
        display: block;
        margin: 0 0 2px;
        color: var(--discord-muted);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .actions-drawer-title {
        margin: 0;
        color: var(--discord-text);
        font-size: 18px;
        font-weight: 800;
    }

    .actions-drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        color: var(--discord-muted);
        background: var(--discord-panel);
        border: 1px solid var(--discord-border);
        border-radius: 10px;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        transition:
            color 140ms var(--ease-out),
            background 140ms var(--ease-out),
            border-color 140ms var(--ease-out);
    }

    .actions-drawer-close:hover {
        color: var(--discord-text);
        background: var(--discord-hover);
        border-color: rgba(255, 255, 255, 0.16);
    }

    .actions-drawer .actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex: 1 1 auto;
        gap: 14px;
        margin: 0;
        padding: 16px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .actions-drawer .action-group {
        display: grid;
        gap: 8px;
        width: 100%;
        margin: 0;
        padding: 12px;
        background: rgba(43, 45, 49, 0.72);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 12px;
    }

    .actions-drawer .action-group + .action-group {
        margin-left: 0;
        padding-left: 12px;
        border-left: 1px solid rgba(255, 255, 255, 0.06);
    }

    .actions-drawer .action-group-label {
        display: block;
        color: var(--discord-muted);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .actions-drawer .action-group-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .actions-drawer .action-button {
        width: 100%;
        min-height: 44px;
        height: auto;
        justify-content: flex-start;
        padding: 10px 12px;
        font-size: 13px;
    }

    .actions-drawer .action-button[hidden] {
        display: none !important;
    }

    /* Lock Call / Disconnect podem ocupar linha inteira se for o 3º */
    .actions-drawer .action-group[data-group="control"] .action-button.lock-call,
    .actions-drawer .action-group[data-group="moderation"] .action-button.logs {
        grid-column: 1 / -1;
    }

    .header {
        gap: 10px;
        padding: 10px 12px;
        min-height: 56px;
    }

    .channel-toolbar {
        flex-wrap: wrap;
        align-items: stretch;
        padding-right: 0;
    }

    .status {
        flex: 1 1 100%;
        padding-left: 0;
        font-size: 12px;
        line-height: 1.35;
        text-align: center;
    }

    .toolbar-actions {
        width: 100%;
        justify-content: stretch;
    }

    .search-control {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    .channels-scroll {
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: thin;
    }

    .channels-scroll::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .channels {
        height: auto;
        min-height: 100%;
        column-width: auto;
        column-count: 1;
    }

    .member-panel {
        width: min(400px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        max-height: calc(100vh - 24px);
    }
}

@media (max-width: 640px) {
    .session-profile-name {
        max-width: 88px;
    }

    .session-profile {
        max-width: min(150px, 42vw);
        gap: 8px;
        padding: 3px 6px 3px 10px;
        min-height: 40px;
        height: 40px;
    }

    .session-profile-avatar-wrap {
        --avatar-size: 28px;
    }

    .brand-logo {
        height: 36px;
        max-width: 120px;
    }

    .body {
        padding: 10px 10px 12px;
    }

    .actions-drawer {
        width: min(100vw, 100%);
        border-left: 0;
        border-radius: 0;
    }

    .actions-drawer .action-group-buttons {
        grid-template-columns: 1fr;
    }

    .actions-drawer .action-group[data-group="control"] .action-button.lock-call,
    .actions-drawer .action-group[data-group="moderation"] .action-button.logs {
        grid-column: auto;
    }

    .lockdown-overlay {
        padding: 16px;
        align-items: end;
    }

    .lockdown-card {
        width: 100%;
        padding: 22px 18px 18px;
        border-radius: 16px 16px 12px 12px;
    }

    .swal2-popup.discord-popup {
        width: calc(100vw - 20px) !important;
    }

    .leash-limit-hint,
    .discord-popup--confirm .discord-swal-title,
    .discord-popup--confirm .discord-swal-body,
    .swal2-toast.discord-toast .swal2-title,
    .swal2-toast.discord-toast .swal2-html-container {
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .status {
        font-size: 11px;
    }

    .channel-toolbar {
        gap: 8px;
        margin-bottom: 10px;
    }
}

.lockdown-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(88, 101, 242, 0.14), transparent 34rem),
        rgba(12, 13, 16, 0.98);
    backdrop-filter: blur(14px);
}

.lockdown-submit:disabled,
.lockdown-code:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.lockdown-card {
    width: min(460px, 100%);
    display: grid;
    gap: 18px;
    padding: 28px 26px 24px;
    color: var(--discord-text);
    background:
        linear-gradient(180deg, rgba(49, 51, 56, 0.98), rgba(35, 37, 41, 0.98));
    border: 1px solid var(--discord-border);
    border-radius: 18px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 28px 70px rgba(0, 0, 0, 0.5);
    text-align: left;
    animation: modalIn 220ms var(--ease-out);
}

.lockdown-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lockdown-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    mix-blend-mode: lighten;
    flex: 0 0 auto;
}

.lockdown-eyebrow {
    margin: 0 0 4px;
    color: var(--discord-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lockdown-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lockdown-step {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.lockdown-step-index {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #fff;
    background: var(--discord-blurple);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 900;
}

.lockdown-step-body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.lockdown-step-title {
    margin: 0;
    color: var(--discord-text);
    font-size: 13px;
    font-weight: 800;
}

.lockdown-copy {
    margin: 0;
    color: var(--discord-muted);
    font-size: 13px;
    line-height: 1.55;
}

.lockdown-renew-copy {
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.lockdown-server-link {
    display: inline;
    color: var(--discord-blurple);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(88, 101, 242, 0.45);
    transition:
        color 140ms var(--ease-out),
        border-color 140ms var(--ease-out);
}

.lockdown-server-link:hover {
    color: #949cf7;
    border-bottom-color: rgba(148, 156, 247, 0.8);
}

.lockdown-form {
    display: grid;
    gap: 12px;
    margin-top: 2px;
}

.lockdown-label {
    margin: 0;
}

.lockdown-code {
    letter-spacing: 0.18em;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    height: 48px;
    border-radius: 10px;
    background: #1a1c20;
}

.lockdown-submit {
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: #fff;
    background: var(--discord-blurple);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 140ms var(--ease-out),
        background 140ms var(--ease-out),
        box-shadow 140ms var(--ease-out);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.lockdown-submit:hover {
    background: #4752c4;
    transform: translateY(-1px);
}

.lockdown-submit:active {
    transform: translateY(0) scale(0.98);
}

.lockdown-request-code {
    display: none;
    height: 40px;
    margin-top: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--discord-text);
    background: rgba(255, 255, 255, 0.04);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition:
        transform 140ms var(--ease-out),
        background 140ms var(--ease-out),
        border-color 140ms var(--ease-out),
        opacity 180ms var(--ease-out);
}

.lockdown-request-code.is-visible,
.lockdown-request-code:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: lockdownRequestIn 220ms var(--ease-out);
}

.lockdown-request-code:hover {
    background: rgba(88, 101, 242, 0.16);
    border-color: rgba(88, 101, 242, 0.45);
    transform: translateY(-1px);
}

.lockdown-request-code:active {
    transform: translateY(0) scale(0.98);
}

@keyframes lockdownRequestIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lockdown-request-popup {
    width: min(460px, 100%) !important;
}

.lockdown-swal-container {
    z-index: 13000 !important;
}

.lockdown-request-panel {
    display: grid;
    gap: 14px;
    text-align: left;
}

.lockdown-request-copy {
    margin: 0;
    color: var(--discord-muted);
    font-size: 13px;
    line-height: 1.45;
}

.lockdown-request-copy strong {
    color: var(--discord-text);
}

.lockdown-feedback {
    margin: 0;
    min-height: 1.2em;
    color: var(--discord-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.lockdown-feedback.is-error {
    color: var(--discord-red);
}

.logs-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(8, 9, 12, 0.72);
    backdrop-filter: blur(10px);
}

.logs-console {
    width: min(1280px, calc(100vw - 32px));
    height: min(920px, calc(100vh - 32px));
    display: flex;
    flex-direction: column;
    overflow: visible;
    color: var(--discord-text);
    background:
        linear-gradient(180deg, rgba(43, 45, 49, 0.98), rgba(30, 31, 34, 0.98));
    border: 1px solid var(--discord-border);
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 30px 80px rgba(0, 0, 0, 0.55);
    animation: modalIn 180ms var(--ease-out);
}

.logs-console-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid var(--discord-border);
    background: rgba(24, 25, 28, 0.9);
    border-radius: 16px 16px 0 0;
    position: relative;
    z-index: 5;
    text-align: center;
}

.logs-console-heading {
    flex: 0 0 auto;
    min-width: 0;
    display: grid;
    justify-items: center;
}

.logs-eyebrow {
    margin: 0 0 4px;
    color: var(--discord-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.logs-title {
    margin: 0;
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.logs-header-actions {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 0 1 auto;
    min-width: 0;
    width: 100%;
}

.logs-filter-field {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.logs-filter-field > span {
    color: var(--discord-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logs-toolbar-button {
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--discord-border);
    background: var(--discord-panel);
    color: var(--discord-text);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.logs-date-select {
    width: 100%;
    min-width: 220px;
    max-width: min(280px, 46vw);
    min-height: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--discord-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--discord-panel);
    color: var(--discord-text);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    box-sizing: border-box;
}

.logs-picker {
    position: relative;
    min-width: 220px;
    max-width: min(280px, 46vw);
}

.logs-action-picker {
    min-width: 220px;
}

.logs-picker-trigger {
    width: 100%;
    min-height: 40px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid var(--discord-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--discord-panel);
    color: var(--discord-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 140ms var(--ease-out), border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}

.logs-picker-trigger:hover,
.logs-picker.is-open .logs-picker-trigger {
    background: var(--discord-hover);
    border-color: rgba(88, 101, 242, 0.45);
    box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.18);
}

.logs-picker-trigger-text,
.logs-picker-option-text {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.logs-picker-trigger-text strong,
.logs-picker-option-text strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
}

.logs-picker-trigger-text small,
.logs-picker-option-text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--discord-muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.logs-picker-caret {
    color: var(--discord-muted);
    font-size: 11px;
    transition: transform 140ms var(--ease-out);
}

.logs-picker.is-open .logs-picker-caret {
    transform: rotate(180deg);
}

.logs-picker-avatar,
.logs-picker-avatar-fallback,
.logs-picker-all-avatar,
.logs-action-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.logs-picker-avatar {
    object-fit: cover;
    background: #1e1f22;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.logs-picker-avatar-fallback,
.logs-picker-all-avatar,
.logs-action-icon {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #5865f2, #3c45a5);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.logs-picker-all-avatar,
.logs-action-icon {
    background: linear-gradient(145deg, rgba(88, 101, 242, 0.35), rgba(30, 31, 34, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.logs-picker-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    display: none;
    max-height: min(320px, 48vh);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(22, 23, 27, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    scrollbar-width: thin;
    scrollbar-color: #4e5058 rgba(30, 31, 34, 0.92);
}

.logs-picker.is-open .logs-picker-menu {
    display: grid;
    gap: 2px;
}

.logs-picker-option {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--discord-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 120ms var(--ease-out);
}

.logs-picker-option:hover,
.logs-picker-option.is-active {
    background: rgba(88, 101, 242, 0.18);
}

.logs-picker-option.is-active {
    box-shadow: inset 0 0 0 1px rgba(88, 101, 242, 0.28);
}

.logs-picker-empty {
    padding: 14px 10px;
    color: var(--discord-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.logs-toolbar-button {
    padding: 0 12px;
    cursor: pointer;
    transition: background 140ms var(--ease-out), border-color 140ms var(--ease-out);
}

.logs-toolbar-button:hover,
.logs-date-select:hover {
    background: var(--discord-hover);
    border-color: rgba(255, 255, 255, 0.14);
}

.logs-icon-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    font-size: 16px;
    line-height: 1;
}

.logs-close {
    font-size: 14px;
}

.logs-status {
    margin: 0;
    padding: 0;
    color: var(--discord-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    border: 0;
    background: transparent;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    line-height: 1.35;
    max-width: min(720px, 100%);
}

.logs-feed {
    --scroll-track: rgba(30, 31, 34, 0.92);
    --scroll-thumb: #4e5058;
    --scroll-thumb-hover: #6d6f78;
    --scroll-thumb-active: var(--discord-blurple);
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px 10px 16px 16px;
    display: flex;
    flex-direction: column;
    border-radius: 0 0 16px 16px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px) 0 0 / 100% 28px,
        rgba(15, 16, 18, 0.55);
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

.logs-feed-items {
    display: grid;
    gap: 10px;
    align-content: start;
}

.logs-feed-sentinel {
    height: 1px;
    flex: 0 0 auto;
    pointer-events: none;
}

.logs-feed::-webkit-scrollbar {
    width: 10px;
}

.logs-feed::-webkit-scrollbar-track {
    margin: 8px 0;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.04),
            transparent 42%,
            transparent 58%,
            rgba(0, 0, 0, 0.28)
        ),
        var(--scroll-track);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.logs-feed::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            180deg,
            rgba(88, 101, 242, 0.7),
            #5c5e66 18%,
            #5c5e66 82%,
            rgba(88, 101, 242, 0.7)
        );
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(88, 101, 242, 0.2);
}

.logs-feed::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            180deg,
            rgba(88, 101, 242, 0.95),
            var(--scroll-thumb-hover) 14%,
            var(--scroll-thumb-hover) 86%,
            rgba(88, 101, 242, 0.95)
        );
    background-clip: padding-box;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        0 0 14px rgba(88, 101, 242, 0.4);
}

.logs-feed::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #7289da, var(--scroll-thumb-active), #7289da);
    background-clip: padding-box;
}

.logs-feed::-webkit-scrollbar-corner {
    background: transparent;
}

.logs-entry {
    padding: 14px;
    background: rgba(43, 45, 49, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--discord-blurple);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.logs-entry.tone-danger {
    border-left-color: var(--discord-red);
}

.logs-entry.tone-warn {
    border-left-color: #f0b232;
}

.logs-entry.tone-info {
    border-left-color: var(--discord-blurple);
}

.logs-entry.tone-neutral {
    border-left-color: var(--discord-muted);
}

.logs-entry-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.logs-entry-head time {
    color: var(--discord-muted);
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
}

.logs-action-pill {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(88, 101, 242, 0.28);
    border: 1px solid rgba(88, 101, 242, 0.4);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.logs-entry.tone-danger .logs-action-pill {
    background: rgba(242, 63, 66, 0.22);
    border-color: rgba(242, 63, 66, 0.4);
}

.logs-entry.tone-warn .logs-action-pill {
    background: rgba(240, 178, 50, 0.18);
    border-color: rgba(240, 178, 50, 0.4);
    color: #f5d78e;
}

.logs-entry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.logs-col-label {
    display: block;
    margin-bottom: 8px;
    color: var(--discord-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logs-person,
.logs-empty-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.logs-avatar,
.logs-avatar-fallback {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.logs-avatar {
    object-fit: cover;
    background: var(--discord-header);
}

.logs-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--discord-blurple);
    font-size: 11px;
    font-weight: 800;
}

.logs-person-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.logs-person-text strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.logs-person-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.logs-person-text code {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--discord-muted);
    font-size: 11px;
}

.logs-kind-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.logs-kind-badge.kind-admin {
    color: #ffe08a;
    background: rgba(250, 168, 26, 0.16);
    border-color: rgba(250, 168, 26, 0.35);
}

.logs-kind-badge.kind-member {
    color: #b5baf7;
    background: rgba(88, 101, 242, 0.16);
    border-color: rgba(88, 101, 242, 0.35);
}

.logs-kind-badge.kind-server {
    color: #c4c9ce;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.logs-kind-badge.kind-system {
    color: #8ef0b0;
    background: rgba(35, 165, 90, 0.14);
    border-color: rgba(35, 165, 90, 0.32);
}

.logs-picker-section-label {
    padding: 10px 12px 4px;
    color: var(--discord-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.logs-action-text {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 800;
}

.logs-channel-row {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.logs-channel-label {
    color: var(--discord-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logs-channel-path {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.logs-voice-channel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-height: 28px;
    padding: 4px 10px;
    color: var(--discord-text);
    background: rgba(88, 101, 242, 0.14);
    border: 1px solid rgba(88, 101, 242, 0.28);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.logs-channel-arrow {
    color: var(--discord-muted);
    font-weight: 900;
}

.logs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.logs-meta span {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--discord-muted);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    font-weight: 700;
}

.logs-targets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.logs-empty-chip {
    color: var(--discord-muted);
    font-size: 12px;
    font-weight: 700;
}

.logs-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--discord-muted);
    font-weight: 700;
}

.logs-empty.is-error {
    color: var(--discord-red);
}

@media (max-width: 860px) {
    .logs-entry-grid {
        grid-template-columns: 1fr;
    }

    .logs-console {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
    }

    .logs-header-actions {
        justify-content: center;
    }

    .logs-filter-field {
        flex: 1 1 140px;
    }

    .logs-date-select,
    .logs-picker {
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}
