:root {
    --bg: #101114;
    --bg-soft: #17191f;
    --panel: #1c1f26;
    --panel-2: #242830;
    --line: #303640;
    --text: #ece5d8;
    --muted: #8d9189;
    --accent: #d0ad73;
    --accent-soft: #8fa3c0;
    --success: #7eb786;
    --danger: #d67a7a;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --font-sans: "Segoe UI", "SF Pro Text", sans-serif;
    --profile-icon-mic: "\1F3A4";
    --profile-icon-mic-muted: "\1F6AB";
    --profile-icon-sound: "\1F50A";
    --profile-icon-sound-muted: "\1F507";
    --desktop-titlebar-height: 0px;
    --desktop-titlebar-bg: rgba(12, 14, 18, 0.72);
    --desktop-titlebar-line: rgba(255,255,255,0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: var(--font-sans); color: var(--text); background: radial-gradient(circle at top left, rgba(208,173,115,0.08), transparent 20%), linear-gradient(180deg, #0d0f13 0%, #12141a 100%); }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }
html[data-runtime="electron"] {
    --desktop-titlebar-height: env(titlebar-area-height, 40px);
}
.desktop-titlebar {
    display: none;
}
html[data-runtime="electron"] .desktop-titlebar {
    display: block;
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--desktop-titlebar-height);
    z-index: 9999;
    -webkit-app-region: drag;
    backdrop-filter: blur(18px);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0)),
        var(--desktop-titlebar-bg);
    border-bottom: 1px solid var(--desktop-titlebar-line);
    pointer-events: auto;
}
.desktop-titlebar-brand {
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    color: rgba(236,229,216,0.92);
    font-size: 0.95rem;
    -webkit-app-region: drag;
}
.desktop-titlebar-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex: 0 0 auto;
}
.desktop-titlebar-name {
    line-height: 1;
}
.desktop-titlebar-notification {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, #f3d89f, #d0ad73 62%, #a97d35 100%);
    box-shadow:
        0 0 0 1px rgba(208,173,115,0.12),
        0 0 10px rgba(208,173,115,0.22);
    animation: people-attention-glow 3.4s ease-in-out infinite;
}
.auth-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 0%, rgba(208,173,115,0.14), transparent 28%),
        linear-gradient(180deg, rgba(5, 5, 5, 0.7), rgba(12, 12, 12, 0.82));
}
html[data-runtime="electron"] .auth-screen {
    padding-top: calc(24px + var(--desktop-titlebar-height));
}
.auth-card {
    width: min(460px, 100%);
    background:
        linear-gradient(180deg, rgba(18, 18, 18, 0.97), rgba(7, 7, 7, 0.98)),
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
    border: 1px solid rgba(208,173,115,0.46);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(208,173,115,0.12) inset;
    padding: 32px 28px 26px;
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(208,173,115,0.18), transparent 24%),
        radial-gradient(circle at bottom left, rgba(208,173,115,0.08), transparent 26%);
    pointer-events: none;
}
.auth-header,
.auth-form,
.error {
    position: relative;
    z-index: 1;
}
.auth-header {
    text-align: center;
    margin-bottom: 22px;
}
.auth-title {
    margin: 0;
    color: #e3bd72;
    font-size: clamp(1.85rem, 4vw, 2.4rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(208,173,115,0.2);
}
.auth-subtitle {
    margin: 10px 0 0;
    color: rgba(236,229,216,0.72);
    line-height: 1.5;
}
.auth-form {
    gap: 14px;
}
.auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.92rem;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(236,229,216,0.76);
}
.auth-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #c79a48;
}
.auth-link,
.auth-inline-switch {
    width: auto;
    padding: 0;
    border: none;
    background: transparent;
    color: #d7ae66;
}
.auth-link:hover,
.auth-inline-switch:hover {
    color: #f1d290;
}
.auth-submit {
    margin-top: 4px;
    background: linear-gradient(180deg, #f0d193, #b88635);
    color: #111;
    border-color: rgba(255, 231, 179, 0.36);
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 12px 28px rgba(184,134,53,0.24);
}
.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(184,134,53,0.32);
}
@keyframes message-row-flash {
    0% { background: rgba(102, 154, 214, 0.24); }
    100% { background: transparent; }
}
.auth-switch-line {
    margin: 2px 0 0;
    text-align: center;
    color: rgba(236,229,216,0.72);
}
.error {
    min-height: 20px;
    margin-top: 16px;
    color: #ef9e9e;
    text-align: center;
}
.app-shell { --service-announcement-height: 0px; min-height: 100vh; height: 100vh; display: grid; grid-template-columns: 72px 320px 1fr 280px; overflow: hidden; }
.app-shell.app-shell-with-announcement { --service-announcement-height: 72px; padding-top: var(--service-announcement-height); }
html[data-runtime="electron"] .app-shell {
    padding-top: calc(var(--desktop-titlebar-height) + var(--service-announcement-height));
}
.service-announcement {
    position: fixed;
    top: calc(var(--desktop-titlebar-height) + 12px);
    left: 88px;
    right: 16px;
    z-index: 9998;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(214, 122, 122, 0.34);
    background:
        linear-gradient(180deg, rgba(104, 20, 20, 0.96), rgba(54, 13, 13, 0.98)),
        linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(255,255,255,0.03) inset;
    color: #ffe3e3;
}
.service-announcement-copy {
    display: grid;
    gap: 4px;
    line-height: 1.45;
}
.service-announcement-copy strong {
    color: #ffb3b3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.73rem;
}
.service-announcement-close {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.16);
    color: #ffd0d0;
    cursor: pointer;
    flex: 0 0 auto;
}
.service-announcement-close:hover {
    background: rgba(255,255,255,0.06);
}
.app-shell.voice-room-shell { grid-template-columns: 72px 320px 1fr; }
.app-shell.app-shell-no-members { grid-template-columns: 72px 320px 1fr; }
.guilds-column { background: #0b0c10; border-right: 1px solid rgba(255,255,255,0.04); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 10px; }
html[data-runtime="electron"] .guilds-column,
html[data-runtime="electron"] .channels-column,
html[data-runtime="electron"] .members-column,
html[data-runtime="electron"] .chat-column {
    position: relative;
}
.workspace-pill { width: 50px; height: 50px; padding: 0; overflow: hidden; border-radius: 18px; border: 1px solid rgba(255,255,255,0.06); background: linear-gradient(180deg, color-mix(in srgb, var(--workspace-avatar-color, #20242b) 42%, #20242b), #16191e); color: var(--text); display: grid; place-items: center; font-weight: 700; cursor: pointer; }
.workspace-pill.active { color: var(--accent); border-color: rgba(208,173,115,0.35); background: linear-gradient(180deg, color-mix(in srgb, var(--workspace-avatar-color, #2a3038) 52%, #2a3038), #1b2027); }
.workspace-pill.has-attention {
    border-color: rgba(208,173,115,0.3);
    box-shadow:
        0 0 0 1px rgba(208,173,115,0.1) inset,
        0 0 18px rgba(208,173,115,0.12);
    animation: people-attention-glow 3.4s ease-in-out infinite;
}
.people-pill {
    background: linear-gradient(180deg, rgba(28,32,39,0.98), rgba(14,16,20,1));
    border-color: rgba(208,173,115,0.14);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.people-pill .people-pill-image {
    width: 74%;
    height: 74%;
    object-fit: contain;
    padding: 0;
    border-radius: 0;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.22));
}
.guilds-divider { width: 32px; height: 1px; background: rgba(255,255,255,0.08); }
.add-pill { margin-top: auto; color: var(--accent-soft); }
.workspace-pills { display: flex; flex-direction: column; gap: 12px; width: 100%; align-items: center; }
.workspace-pill-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    display: block;
}
.channels-column, .members-column { padding: 18px 16px; background: rgba(18,20,24,0.94); border-right: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; gap: 18px; min-height: 0; overflow: hidden; }
.members-column { border-right: none; border-left: 1px solid rgba(255,255,255,0.05); }
.chat-column { display: flex; flex-direction: column; min-height: 0; height: 100vh; overflow: hidden; background: linear-gradient(180deg, rgba(26,29,35,0.94), rgba(18,20,24,0.98)); }
.panel-head, .chat-header, .dialog-head, .group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.brand-eyebrow-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 auto;
}
.auth-brand-eyebrow .brand-eyebrow-logo {
    width: 22px;
    height: 22px;
}
.chat-header-actions { display: flex; align-items: center; gap: 12px; }
.chat-header { padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.chat-header-main {
    min-width: 0;
}
.chat-header-title {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
}
.direct-header-identity {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.direct-header-identity span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.direct-header-identity .avatar.avatar-sm {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
}
.direct-call-header-button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    border-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}
.direct-call-header-button:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(208,173,115,0.22);
}
html[data-runtime="electron"] .chat-header {
    padding-top: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
        rgba(20, 22, 28, 0.72);
    backdrop-filter: blur(10px);
}
.friends-search-panel {
    display: grid;
    gap: 12px;
    padding: 18px 24px 0;
    align-content: start;
}
.friends-search-panel input {
    max-width: 420px;
}
.friends-search-panel .search-results {
    display: grid;
    gap: 8px;
    max-width: 420px;
}
.friends-search-panel .empty-state {
    padding: 14px 16px;
    min-height: 0;
    border-radius: 14px;
    text-align: left;
    background: rgba(255,255,255,0.03);
}
.voice-toolbar { display: flex; align-items: center; gap: 12px; }
.call-controls-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 0 24px 24px;
}
.call-controls-cluster {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(14,16,20,0.88);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}
.call-control-button {
    width: 58px;
    min-width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(180deg, rgba(38,42,50,0.96), rgba(24,27,33,0.98));
    color: #fff;
    font-size: 1.35rem;
    box-shadow: none;
}
.call-control-button:hover {
    background: linear-gradient(180deg, rgba(52,57,67,0.98), rgba(28,31,38,0.98));
}
.call-control-button.active {
    border-color: rgba(208,173,115,0.34);
    color: var(--accent);
    background: linear-gradient(180deg, rgba(208,173,115,0.18), rgba(39,33,22,0.94));
}
.call-control-button.muted {
    color: #dba7a7;
    border-color: rgba(214,122,122,0.22);
}
.call-control-button-danger {
    background: linear-gradient(180deg, #e45252, #c93f3f);
    border-color: rgba(255,255,255,0.08);
}
.call-control-button-danger:hover,
.call-control-button.danger:hover {
    background: linear-gradient(180deg, #f05d5d, #cf4747);
}
.stream-quality-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.call-control-button:disabled,
.stream-quality-trigger.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    background: linear-gradient(180deg, rgba(28,31,38,0.82), rgba(18,20,25,0.92));
}
.stream-quality-bar {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    z-index: 8;
    display: grid;
    gap: 12px;
    min-width: 280px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(14,16,20,0.96);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}
.stream-quality-copy {
    display: grid;
    gap: 2px;
}
.stream-quality-label {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
}
.stream-quality-copy strong {
    font-size: 0.92rem;
}
.stream-quality-diagnostics {
    display: grid;
    gap: 3px;
}
.stream-quality-toggle-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 12px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}
.stream-quality-toggle-card input {
    margin-top: 2px;
}
.stream-quality-toggle-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
}
.stream-quality-diagnostics-label {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
}
.stream-quality-diagnostics strong {
    font-size: 0.9rem;
}
.stream-quality-diagnostics strong[data-state="active"] {
    color: #89d18a;
}
.stream-quality-diagnostics strong[data-state="warning"] {
    color: #d9c48a;
}
.stream-quality-diagnostics strong[data-state="inactive"] {
    color: rgba(255,255,255,0.84);
}
.stream-quality-diagnostics-detail {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.35;
}
.stream-quality-options {
    display: grid;
    gap: 8px;
}
.stream-quality-option {
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(180deg, rgba(38,42,50,0.96), rgba(24,27,33,0.98));
    color: rgba(255,255,255,0.9);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
}
.stream-quality-option:hover {
    background: linear-gradient(180deg, rgba(52,57,67,0.98), rgba(28,31,38,0.98));
}
.stream-quality-option.active {
    border-color: rgba(208,173,115,0.4);
    color: var(--accent);
    background: linear-gradient(180deg, rgba(208,173,115,0.18), rgba(39,33,22,0.94));
    box-shadow: inset 0 0 0 1px rgba(208,173,115,0.08);
}
.e2ee-status-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.e2ee-status-button {
    min-width: 44px;
    padding: 10px 12px;
    border-color: rgba(208,173,115,0.22);
}
.e2ee-status-button.active {
    color: #f1d49a;
    border-color: rgba(208,173,115,0.32);
    background: linear-gradient(180deg, rgba(208,173,115,0.18), rgba(208,173,115,0.08));
}
.e2ee-status-button.pending {
    color: #d8c39a;
    border-color: rgba(208,173,115,0.22);
    background: linear-gradient(180deg, rgba(208,173,115,0.12), rgba(255,255,255,0.03));
}
.e2ee-status-button.error {
    color: #ff8d8d;
    border-color: rgba(214,122,122,0.28);
    background: linear-gradient(180deg, rgba(214,122,122,0.18), rgba(214,122,122,0.08));
}
.e2ee-status-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(280px, 72vw);
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(208,173,115,0.18);
    background: linear-gradient(180deg, rgba(28,31,38,0.98), rgba(18,20,24,0.98));
    box-shadow: 0 22px 46px rgba(0,0,0,0.34);
    z-index: 18;
}
.e2ee-status-panel strong {
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
}
.e2ee-status-panel p {
    margin: 0;
    line-height: 1.45;
}
.voice-live-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(214,122,122,0.16);
    color: #ff8d8d;
    border: 1px solid rgba(214,122,122,0.22);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.channel-group { border-radius: 18px; border: 1px solid rgba(255,255,255,0.05); background: linear-gradient(180deg, rgba(24,27,33,0.54), rgba(16,18,22,0.28)); padding: 10px 10px 12px; }
.people-panel { display: flex; flex-direction: column; gap: 16px; min-height: 0; overflow: auto; }
.people-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.people-nav-button {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    color: var(--text);
    padding: 14px 12px;
    text-align: left;
    font-weight: 700;
}
.people-nav-button:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}
.people-nav-button.active {
    border-color: rgba(208,173,115,0.34);
    color: var(--accent);
    background: linear-gradient(180deg, rgba(208,173,115,0.16), rgba(255,255,255,0.03));
    box-shadow: 0 0 0 1px rgba(208,173,115,0.12) inset;
}
.people-section-panel {
    display: grid;
}
.people-chats-dock {
    margin-top: auto;
}
.search-group { gap: 12px; }
.section-label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.74rem; margin-bottom: 10px; }
.nested-section-label {
    margin-top: 8px;
}
.group-head {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.group-toggle, .group-add { background: transparent; border: none; color: rgba(236,229,216,0.56); padding: 4px 6px; }
.group-toggle {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    cursor: pointer;
    color: var(--accent);
    padding-left: 0;
}
.group-toggle::after { content: "v"; margin-left: 6px; font-size: 0.72rem; }
.group-toggle.collapsed::after { content: ">"; }
.group-add { width: auto; font-size: 1.05rem; cursor: pointer; border-radius: 10px; }
.group-add:hover, .group-toggle:hover { color: rgba(236,229,216,0.9); background: rgba(255,255,255,0.03); }
.mini-form { display: grid; gap: 8px; margin-bottom: 10px; }
.channel-list, .member-list, .messages, .search-results { display: flex; flex-direction: column; gap: 6px; }
.channel-item, .thread-item { width: 100%; border: none; background: transparent; border-radius: 10px; text-align: left; color: inherit; padding: 7px 10px; cursor: pointer; box-shadow: none; }
.channel-item:hover, .thread-item:hover { background: rgba(255,255,255,0.05); }
.channel-item.active, .thread-item.active { background: rgba(255,255,255,0.12); color: var(--text); }
.channel-item.locked { opacity: 0.86; }
.channel-item.locked:hover { background: rgba(208,173,115,0.06); }
.channel-item.active .channel-head strong { color: var(--text); }
.channel-item.inactive, .thread-item.inactive { opacity: 0.74; }
.channel-head, .thread-head, .friend-row, .user-result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.channel-head strong { font-size: 1rem; font-weight: 600; color: rgba(236,229,216,0.9); }
.channel-lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(208,173,115,0.12);
    color: var(--accent);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.voice-join-badge, .status-text { color: var(--success); font-size: 0.74rem; }
.voice-join-badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(126,183,134,0.12);
    border: 1px solid rgba(126,183,134,0.18);
}
.voice-roster-inline, .thread-preview, .user-result-meta { margin-top: 4px; color: var(--muted); font-size: 0.78rem; }
.voice-roster-inline { padding-left: 22px; }
.voice-roster-inline.connected { color: rgba(236,229,216,0.78); }
.voice-channel-participants {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    padding-left: 22px;
}
.voice-channel-person {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(236,229,216,0.7);
    font-size: 0.78rem;
    line-height: 1.35;
    border-radius: 10px;
    padding: 3px 6px 3px 0;
}
.voice-channel-person.speaking {
    color: var(--success);
    text-shadow: 0 0 12px rgba(126,183,134,0.22);
}
.voice-channel-person-avatar .user-avatar {
    width: 20px;
    height: 20px;
    font-size: 0.68rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}
.voice-channel-person-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.context-slider-group {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
}
.context-slider-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
}
.context-slider-value {
    color: var(--accent);
    font-weight: 700;
}
.context-slider {
    width: 220px;
    accent-color: var(--accent);
}
.context-slider-hint {
    font-size: 0.76rem;
}
.voice-roster-name.speaking { color: var(--success); text-shadow: 0 0 14px rgba(126,183,134,0.2); }
.channel-topic, .channel-id, .member-subtitle, .message-meta, .muted { color: var(--muted); }
.user-avatar {
    --user-avatar-color: #4f6478;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(180deg, color-mix(in srgb, var(--user-avatar-color) 80%, white), var(--user-avatar-color));
    color: rgba(248,241,231,0.98);
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 10px 24px rgba(0,0,0,0.2);
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.user-avatar-online {
    border: 1px solid rgba(126,183,134,0.56);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 0 0 2px rgba(126,183,134,0.14),
        0 10px 24px rgba(0,0,0,0.2),
        0 0 22px rgba(126,183,134,0.12);
}
.user-avatar-xs { width: 24px; height: 24px; font-size: 0.72rem; }
.user-avatar-sm { width: 32px; height: 32px; font-size: 0.82rem; }
.user-avatar-md { width: 40px; height: 40px; font-size: 0.95rem; }
.user-avatar-lg { width: 56px; height: 56px; font-size: 1.2rem; }
.user-avatar-profile { width: 42px; height: 42px; font-size: 0.98rem; }
.user-avatar-message { width: 44px; height: 44px; font-size: 1rem; }
.user-row-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.user-row-copy {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 4px;
}
.user-row-copy strong,
.profile-main-copy strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.member-row { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.03); }
.channel-id { font-size: 0.78rem; margin-top: 4px; }
.user-result-card, .friend-card, .invite-card, .workspace-invite-friend-card { padding: 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.05); background: rgba(255,255,255,0.03); }
.hub-empty-card {
    min-height: 160px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 16px;
    border: 1px dashed rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(0,0,0,0.44), rgba(0,0,0,0.78));
    color: rgba(236,229,216,0.72);
    padding: 24px;
}
.user-result-actions, .friend-actions, .invite-actions { display: flex; gap: 8px; margin-top: 10px; }
.user-result-actions button, .friend-actions button, .invite-actions button { width: auto; flex: 1; }
.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 0;
    padding: 10px 12px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(34,38,45,0.94), rgba(24,27,33,0.98));
    border: 1px solid rgba(208,173,115,0.22);
    box-shadow:
        0 0 0 1px rgba(208,173,115,0.06) inset,
        0 0 18px rgba(208,173,115,0.08);
    transition:
        border-color 260ms ease,
        box-shadow 320ms ease,
        background 260ms ease,
        transform 260ms ease;
}
.sidebar-footer:hover {
    background: linear-gradient(180deg, rgba(42,47,56,0.96), rgba(26,30,37,0.99));
    border-color: rgba(208,173,115,0.36);
    box-shadow:
        0 0 0 1px rgba(208,173,115,0.12) inset,
        0 0 24px rgba(208,173,115,0.12);
}
.sidebar-footer.sidebar-footer-speaking {
    border-color: rgba(126,183,134,0.85);
    box-shadow:
        0 0 0 1px rgba(126,183,134,0.24) inset,
        0 0 14px rgba(126,183,134,0.18),
        0 0 34px rgba(126,183,134,0.22);
    animation: profile-speaking-glow 1.15s ease-in-out infinite alternate;
}
.sidebar-footer.sidebar-footer-muted {
    border-color: rgba(214,122,122,0.46);
    box-shadow:
        0 0 0 1px rgba(214,122,122,0.14) inset,
        0 0 16px rgba(214,122,122,0.08);
    animation: profile-muted-breathe 4.8s ease-in-out infinite;
}
.sidebar-footer.sidebar-footer-speaking.sidebar-footer-muted {
    animation: profile-speaking-glow 1.15s ease-in-out infinite alternate;
}
.voice-presence-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "head leave"
        "channel leave"
        "details details";
    gap: 8px 10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
.voice-presence-head-button {
    grid-area: head;
    width: fit-content;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    text-align: left;
}
.voice-presence-head {
    color: #69c27d;
    font-size: 0.86rem;
    font-weight: 700;
}
.voice-presence-head-detail {
    margin-top: 2px;
    font-size: 0.74rem;
}
.voice-presence-card.connecting .voice-presence-head {
    color: #f0cf8a;
}
.voice-presence-card.reconnecting .voice-presence-head {
    color: #ffb36b;
}
.voice-presence-channel-button {
    grid-area: channel;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    box-shadow: none;
}
.voice-presence-channel-button:hover strong {
    color: var(--accent);
}
.voice-presence-channel-button strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.voice-presence-channel-subtitle,
.voice-presence-channel-button .muted {
    margin-top: 4px;
    font-size: 0.78rem;
}
.voice-presence-details {
    grid-area: details;
    display: grid;
    gap: 6px;
    padding-top: 6px;
}
.voice-presence-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.voice-presence-stat strong {
    color: rgba(248,241,231,0.92);
    font-size: 0.82rem;
    font-weight: 700;
}
.voice-presence-detail-text {
    margin-top: -2px;
    font-size: 0.76rem;
    line-height: 1.35;
}
.voice-presence-leave-button {
    grid-area: leave;
    align-self: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, #e45252, #c93f3f);
    color: #fff;
    font-size: 1.05rem;
}
.voice-presence-leave-button:hover {
    background: linear-gradient(180deg, #f05d5d, #cf4747);
}
.profile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition:
        border-color 260ms ease,
        box-shadow 320ms ease,
        background 260ms ease,
        transform 260ms ease;
}
.sidebar-footer.voice-presence-active .profile-card {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.profile-main { flex: 1; display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 4px 2px; border: none; background: transparent; text-align: left; box-shadow: none; }
.profile-main:hover { background: transparent; }
.profile-main:focus-visible { outline: 2px solid rgba(208,173,115,0.45); outline-offset: 2px; border-radius: 12px; }
.profile-avatar-slot {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}
.profile-main-copy {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 2px;
}
.profile-main .status-dot {
    margin-left: auto;
}
.profile-actions { display: flex; align-items: center; gap: 6px; }
.profile-control {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: rgba(236,229,216,0.74);
    box-shadow: none;
}
.profile-control:hover:not(:disabled) {
    background: rgba(255,255,255,0.08);
    color: var(--text);
}
.profile-control:disabled {
    opacity: 0.42;
    cursor: default;
}
.mic-control::before {
    content: "🎤";
    font-size: 0.96rem;
    line-height: 1;
}
.mic-control.muted {
    background: rgba(214,122,122,0.14);
    color: var(--danger);
}
.mic-control.muted::before {
    content: "🔇";
}
.sound-control::before {
    content: "\1F3A7";
    font-size: 0.96rem;
    line-height: 1;
}
.sound-control.muted {
    background: rgba(214,122,122,0.14);
    color: var(--danger);
}
.sound-control.muted::before {
    content: "\1F507";
}
.mic-control::before {
    content: var(--profile-icon-mic);
}
.mic-control.muted::before {
    content: var(--profile-icon-mic-muted);
}
.sound-control::before {
    content: var(--profile-icon-sound);
}
.sound-control.muted::before {
    content: var(--profile-icon-sound-muted);
}
@keyframes profile-speaking-glow {
    from {
        border-color: rgba(126,183,134,0.58);
        box-shadow:
            0 0 0 1px rgba(126,183,134,0.16) inset,
            0 0 12px rgba(126,183,134,0.12),
            0 0 22px rgba(126,183,134,0.16);
    }
    to {
        border-color: rgba(126,183,134,0.96);
        box-shadow:
            0 0 0 1px rgba(126,183,134,0.3) inset,
            0 0 20px rgba(126,183,134,0.2),
            0 0 42px rgba(126,183,134,0.28);
    }
}
@keyframes profile-muted-breathe {
    0% {
        border-color: rgba(214,122,122,0.26);
        box-shadow:
            0 0 0 1px rgba(214,122,122,0.08) inset,
            0 0 10px rgba(214,122,122,0.04);
    }
    50% {
        border-color: rgba(214,122,122,0.72);
        box-shadow:
            0 0 0 1px rgba(214,122,122,0.18) inset,
            0 0 18px rgba(214,122,122,0.12),
            0 0 34px rgba(214,122,122,0.14);
    }
    100% {
        border-color: rgba(214,122,122,0.26);
        box-shadow:
            0 0 0 1px rgba(214,122,122,0.08) inset,
            0 0 10px rgba(214,122,122,0.04);
    }
}
@keyframes people-attention-glow {
    0%, 100% {
        border-color: rgba(208,173,115,0.2);
        box-shadow:
            0 0 0 1px rgba(208,173,115,0.08) inset,
            0 0 10px rgba(208,173,115,0.06);
    }
    50% {
        border-color: rgba(208,173,115,0.42);
        box-shadow:
            0 0 0 1px rgba(208,173,115,0.16) inset,
            0 0 22px rgba(208,173,115,0.18);
    }
}
.status-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--success); }
.messages { padding: 20px 24px; overflow: auto; min-height: 0; flex: 1 1 auto; }
.message-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.message-row-highlight { animation: message-row-flash 1.4s ease; }
.message-avatar { padding: 0; border: none; cursor: pointer; }
.message-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.message-row > div:last-child {
    max-width: min(760px, 100%);
}
.message-content { line-height: 1.6; font-size: 1.02rem; }
.message-attachments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
    gap: 10px;
    margin-top: 10px;
}
.message-attachment-card {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(208,173,115,0.22);
    background: rgba(255,255,255,0.03);
}
.message-attachment-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
}
.message-reply-block {
    width: auto;
    max-width: 420px;
    display: grid;
    gap: 4px;
    margin-bottom: 8px;
    padding: 10px 12px;
    text-align: left;
    background: linear-gradient(180deg, rgba(73,110,152,0.38), rgba(57,88,126,0.46));
    border: 1px solid rgba(129,177,235,0.26);
    border-left: 3px solid rgba(202,228,255,0.86);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.message-reply-block:hover {
    background: linear-gradient(180deg, rgba(80,120,166,0.44), rgba(62,95,136,0.54));
}
.message-reply-author {
    color: rgba(202,228,255,0.96);
    font-weight: 600;
    font-size: 0.92rem;
}
.message-reply-text {
    color: rgba(236,229,216,0.82);
    font-size: 0.94rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.emoji-inline { display: inline-block; font-size: 2.05em; line-height: 0.9; vertical-align: -0.24em; margin: 0 0.02em; }
.message-reactions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.message-reaction-chip { width: auto; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.message-reaction-chip:hover { background: rgba(208,173,115,0.1); border-color: rgba(208,173,115,0.26); }
.message-reaction-chip.active { background: rgba(208,173,115,0.12); border-color: rgba(208,173,115,0.34); box-shadow: inset 0 0 0 1px rgba(208,173,115,0.18); }
.message-reaction-emoji { font-size: 1.32rem; line-height: 1; }
.message-reaction-count { color: rgba(236,229,216,0.78); font-size: 0.9rem; }
.message-composer {
    padding: 18px 24px 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
    align-content: flex-start;
    position: relative;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    max-height: fit-content;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(180deg, rgba(20,22,27,0.94), rgba(16,18,22,0.98));
    border-radius: 22px;
    margin: 0 18px 18px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02), 0 14px 34px rgba(0,0,0,0.22);
}
.chat-column.voice-room-mode {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "header"
        "stage"
        "controls";
    min-height: 0;
    overflow: hidden;
}
.chat-column.voice-room-mode.voice-room-chat-open {
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "header header"
        "stage side"
        "controls composer";
}
.chat-column.voice-room-mode .chat-header {
    grid-area: header;
}
.chat-column.voice-room-mode .screen-share-stage {
    grid-area: stage;
    display: flex;
    padding: 18px 24px 24px;
    min-height: 0;
    overflow: hidden;
}
.chat-column.voice-room-mode .call-controls-bar {
    grid-area: controls;
}
.chat-column.voice-room-mode .messages {
    display: none;
}
.chat-column.voice-room-mode .message-composer {
    display: none;
}
.chat-column.voice-room-mode.voice-room-chat-open .messages {
    grid-area: side;
    display: flex;
    margin: 18px 18px 0 0;
    padding: 14px 16px;
    border-radius: 22px 22px 0 0;
    border: 1px solid rgba(255,255,255,0.06);
    border-bottom: none;
    background: linear-gradient(180deg, rgba(24,27,33,0.8), rgba(16,18,22,0.96));
}
.chat-column.voice-room-mode.voice-room-chat-open .message-composer {
    grid-area: composer;
    display: flex;
    margin: 0 18px 24px 0;
    padding: 12px 14px 14px;
    border-radius: 0 0 22px 22px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.chat-column.voice-room-mode .messages.voice-room-chat {
    gap: 10px;
}
.chat-column.voice-room-mode .message-row {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 10px 0;
}
.chat-column.voice-room-mode .message-row > div:last-child {
    max-width: 100%;
}
.chat-column.voice-room-mode .message-content {
    font-size: 0.96rem;
}
.chat-column.voice-room-mode .message-composer textarea {
    min-height: 52px;
}
.reply-preview {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -4px 0 8px;
    padding: 10px 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(71,102,142,0.28), rgba(48,72,103,0.34));
    border: 1px solid rgba(129,177,235,0.22);
}
.reply-preview-copy { display: grid; gap: 3px; min-width: 0; }
.reply-preview-author { color: rgba(202,228,255,0.96); font-weight: 600; font-size: 0.9rem; }
.reply-preview-text { color: rgba(236,229,216,0.76); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-preview-close { width: 38px; min-width: 38px; height: 38px; padding: 0; }
.message-attachment-preview {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 150px));
    gap: 10px;
    margin: -4px 0 10px;
}
.composer-attachment-chip {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(208,173,115,0.22);
    background: rgba(255,255,255,0.04);
}
.composer-attachment-chip.uploading {
    opacity: 0.7;
}
.composer-attachment-chip img {
    display: block;
    width: 100%;
    height: 112px;
    object-fit: cover;
}
.composer-attachment-meta {
    padding: 8px 10px 10px;
    font-size: 0.76rem;
    color: rgba(236,229,216,0.76);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.composer-attachment-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(16,18,22,0.76);
    color: rgba(255,255,255,0.9);
}
.message-composer-tools { position: relative; width: auto; padding-left: 8px; }
.message-composer.drag-active {
    border-color: rgba(202,228,255,0.46);
    box-shadow: 0 0 0 1px rgba(202,228,255,0.16) inset, 0 0 28px rgba(120,170,235,0.12);
}
.mention-picker {
    position: absolute;
    left: 58px;
    right: 58px;
    bottom: calc(100% + 12px);
    display: grid;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(31,34,40,0.96), rgba(21,24,29,0.92));
    backdrop-filter: blur(14px);
    border: 1px solid rgba(208,173,115,0.34);
    border-radius: 18px;
    box-shadow: var(--shadow), 0 0 0 1px rgba(208,173,115,0.1) inset;
    z-index: 12;
}
.mention-picker-label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: var(--accent);
    padding: 4px 6px 2px;
}
.mention-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    background: rgba(255,255,255,0.03);
}
.mention-option:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(208,173,115,0.24);
}
.message-composer textarea {
    flex: 1 1 320px;
    width: auto;
    min-height: 58px;
    max-height: 180px;
    resize: none;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 16px 14px;
}
.message-composer textarea:focus,
.message-composer textarea:focus-visible {
    outline: none;
    border: none;
    box-shadow: none;
}
.emoji-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 0;
    color: rgba(236,229,216,0.72);
    box-shadow: none;
}
.emoji-button::before {
    content: "☺";
    font-size: 1.2rem;
    line-height: 1;
}
#attachment-button::before {
    content: "+";
    font-size: 1.35rem;
    line-height: 1;
}
.emoji-button:hover { background: rgba(255,255,255,0.05); color: var(--accent); }
.emoji-picker { position: absolute; left: 0; bottom: calc(100% + 10px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; width: 260px; padding: 12px; background: linear-gradient(180deg, rgba(31,34,40,0.92), rgba(21,24,29,0.9)); backdrop-filter: blur(14px); border: 1px solid rgba(208,173,115,0.34); border-radius: 18px; box-shadow: var(--shadow), 0 0 0 1px rgba(208,173,115,0.1) inset; z-index: 12; }
.message-send-button {
    width: 44px;
    flex: 0 0 44px;
    min-width: 44px;
    height: 44px;
    margin-right: 8px;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(236,229,216,0.58);
    box-shadow: none;
}
.message-send-button:hover { background: rgba(255,255,255,0.05); color: var(--accent); }
.emoji-reaction-menu {
    min-width: 280px;
    width: 280px;
    display: block;
    padding: 10px;
}
.message-context-reactions {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}
.message-context-actions {
    display: grid;
    gap: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.message-context-actions .context-action {
    display: block;
    width: 100%;
}
.muted-action {
    color: rgba(236,229,216,0.34);
}
.emoji-option { width: 100%; height: 42px; padding: 0; display: grid; place-items: center; font-size: 1.1rem; background: rgba(255,255,255,0.03); }
.emoji-reaction-menu .emoji-option { height: 40px; font-size: 1.18rem; }
.emoji-option:hover { background: rgba(208,173,115,0.12); border-color: rgba(208,173,115,0.26); }
.form { display: grid; gap: 10px; }
input, textarea, select, button { width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.18); color: var(--text); padding: 12px 14px; }
.auth-form input:not([type="checkbox"]) {
    border-color: rgba(208,173,115,0.32);
    background: linear-gradient(180deg, rgba(18,18,18,0.98), rgba(10,10,10,0.94));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 0 0 1px rgba(255,255,255,0.01);
}
.auth-form input:not([type="checkbox"])::placeholder {
    color: rgba(236,229,216,0.42);
}
.auth-form input:not([type="checkbox"]):focus,
.auth-form input:not([type="checkbox"]):focus-visible {
    outline: none;
    border-color: rgba(240,209,147,0.78);
    box-shadow: 0 0 0 3px rgba(208,173,115,0.14);
}
textarea { min-height: 52px; max-height: 180px; resize: vertical; }
button { cursor: pointer; background: linear-gradient(180deg, rgba(143,163,192,0.22), rgba(143,163,192,0.1)); }
.auth-password-field {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(208,173,115,0.32);
    background: linear-gradient(180deg, rgba(18,18,18,0.98), rgba(10,10,10,0.94));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 0 0 1px rgba(255,255,255,0.01);
}
.auth-password-field:focus-within {
    border-color: rgba(240,209,147,0.78);
    box-shadow: 0 0 0 3px rgba(208,173,115,0.14);
}
.auth-password-field input:not([type="checkbox"]) {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 12px 14px;
}
.auth-password-field input:not([type="checkbox"]):focus,
.auth-password-field input:not([type="checkbox"]):focus-visible {
    border: none;
    box-shadow: none;
}
.auth-password-field .password-toggle {
    width: 46px;
    min-width: 46px;
    align-self: stretch;
    border: none;
    border-left: 1px solid rgba(208,173,115,0.18);
    border-radius: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #d7ae66;
    box-shadow: none;
    position: static;
    transform: none;
}
.auth-password-field .password-toggle:hover,
.auth-password-field .password-toggle.active {
    background: rgba(208,173,115,0.12);
    color: #f1d290;
}
.auth-consent {
    display: grid;
    grid-template-columns: 16px 1fr;
    align-items: start;
    column-gap: 10px;
    row-gap: 0;
    color: rgba(236,229,216,0.78);
    line-height: 1.5;
    font-size: 0.92rem;
}
.auth-consent input {
    width: 16px;
    min-width: 16px;
    height: 16px;
    margin: 3px 0 0;
    padding: 0;
    justify-self: start;
    align-self: start;
    border: none;
    background: transparent;
    box-shadow: none;
    accent-color: #c79a48;
}
.auth-consent span {
    min-width: 0;
}
.auth-captcha {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(208,173,115,0.24);
    background: rgba(208,173,115,0.08);
}
.auth-captcha label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(236,229,216,0.72);
}
.auth-captcha-question {
    margin: 0;
    color: rgba(248,238,221,0.9);
}

.action-success {
    animation: action-success-glow 460ms ease forwards;
}
.ghost-button { width: auto; background: rgba(255,255,255,0.03); }
.danger-button {
    color: var(--danger);
    border-color: rgba(214,122,122,0.18);
}
.danger-button:hover {
    background: rgba(214,122,122,0.12);
}
.secondary-button { background: rgba(255,255,255,0.04); }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); font-size: 0.72rem; }
.empty-state, .empty-panel { color: var(--muted); padding: 24px; border: 1px dashed rgba(255,255,255,0.08); border-radius: 16px; background: rgba(255,255,255,0.02); }
.dialog-overlay { position: fixed; inset: 0; background: rgba(7,8,10,0.58); display: grid; place-items: center; padding: 24px; }
.dialog-card, .context-menu { background: linear-gradient(180deg, rgba(31,34,40,0.9), rgba(21,24,29,0.88)); backdrop-filter: blur(14px); border: 1px solid rgba(208,173,115,0.34); border-radius: 18px; box-shadow: var(--shadow), 0 0 0 1px rgba(208,173,115,0.1) inset; }
.dialog-card { width: min(420px, 100%); padding: 20px; }
.confirm-card {
    width: min(440px, 100%);
    border-color: rgba(208,173,115,0.42);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(208,173,115,0.14) inset;
}
.confirm-dialog-eyebrow {
    margin-bottom: 0;
}
.confirm-dialog-message {
    margin: 8px 0 0;
    line-height: 1.5;
    color: rgba(236,229,216,0.84);
}
.confirm-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}
.confirm-dialog-actions button {
    width: auto;
    min-width: 120px;
}
.direct-call-dialog {
    width: min(420px, 100%);
}
.direct-call-dialog .confirm-dialog-message {
    margin-top: 10px;
}
.direct-call-dialog .danger-button {
    min-width: 120px;
}
.context-menu { position: fixed; min-width: 220px; padding: 8px; z-index: 20; }
.context-action { width: 100%; text-align: left; background: transparent; border: none; padding: 10px 12px; border-radius: 12px; }
.context-action:hover { background: rgba(255,255,255,0.06); }
.context-action.active { color: var(--accent); background: rgba(208, 173, 115, 0.12); box-shadow: inset 0 0 0 1px rgba(208, 173, 115, 0.28); }
.context-action.danger { color: var(--danger); }
.user-menu { min-width: 260px; padding: 10px; }
.user-menu-section { display: grid; gap: 6px; }
.user-menu-profile { padding: 10px 12px; }
.user-menu-divider { height: 1px; margin: 8px 2px; background: rgba(255,255,255,0.06); }
.settings-card { width: min(560px, 100%); }
.settings-shell,
.settings-shell-single {
    width: min(1080px, calc(100vw - 48px));
    height: min(720px, calc(100vh - 48px));
    max-height: calc(100vh - 48px);
}
.channel-access-settings {
    display: grid;
    gap: 16px;
    margin-top: 14px;
}
.channel-access-list {
    display: grid;
    gap: 8px;
}
.channel-access-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
}
.channel-access-option input {
    width: auto;
    min-width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    accent-color: #c79a48;
}
.settings-shell {
    padding: 0;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    overflow: hidden;
}
.settings-shell-single {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
    padding: 24px;
    overflow: hidden;
}
.settings-shell-single .form {
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}
.settings-sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 24px 18px;
    border-right: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(26,29,35,0.92), rgba(18,20,24,0.98));
}
.settings-sidebar-head {
    display: grid;
    gap: 4px;
    padding: 0 8px;
}
.settings-nav {
    display: grid;
    gap: 8px;
}
.settings-sidebar-footer {
    margin-top: auto;
    padding: 8px;
}
.settings-logout-button {
    width: 100%;
    justify-self: stretch;
}
.settings-nav-button {
    width: 100%;
    text-align: left;
    border-radius: 14px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(236,229,216,0.78);
    padding: 12px 14px;
    font-weight: 600;
}
.settings-nav-button:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text);
}
.settings-nav-button.active {
    border-color: rgba(208,173,115,0.26);
    background: linear-gradient(180deg, rgba(208,173,115,0.14), rgba(255,255,255,0.02));
    color: var(--accent);
}
.settings-content {
    min-width: 0;
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 24px 24px 22px;
    overflow: auto;
}
.settings-dialog-head {
    margin-bottom: 6px;
}
.settings-tab-panel {
    min-width: 0;
}
.settings-appearance-form {
    display: grid;
}
.settings-placeholder { padding: 12px 4px 4px; display: grid; gap: 12px; }
.settings-section {
    padding: 18px 18px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.03);
    display: grid;
    gap: 10px;
}
.settings-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.settings-switch-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.04);
}
.settings-switch-indicator.on {
    color: var(--success);
    border-color: rgba(126,183,134,0.24);
    background: rgba(126,183,134,0.12);
}
.settings-option-card {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.03);
}
.settings-option-card input {
    width: auto;
    margin-top: 2px;
}
.settings-range-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}
.settings-range-control strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}
.settings-device-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.settings-device-field {
    display: grid;
    gap: 8px;
}
.settings-device-field span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.settings-device-field select {
    width: 100%;
}
.settings-mic-test-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}
.settings-mic-test-button {
    min-width: 168px;
}
.settings-mic-test-meter {
    height: 12px;
    border-radius: 999px;
    border: 1px solid rgba(208,173,115,0.22);
    background:
        linear-gradient(90deg, rgba(208,173,115,0.12), rgba(208,173,115,0.04)),
        repeating-linear-gradient(
            90deg,
            rgba(208,173,115,0.18) 0 4px,
            transparent 4px 10px
        );
    overflow: hidden;
}
.settings-mic-test-meter-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(208,173,115,0.72), rgba(255,220,160,0.96));
    box-shadow: 0 0 18px rgba(208,173,115,0.28);
    transition: width 80ms linear;
}
@media (max-width: 860px) {
    .settings-device-grid {
        grid-template-columns: 1fr;
    }
    .settings-mic-test-row {
        grid-template-columns: 1fr;
    }
}
.summary-card { padding: 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); background: rgba(255,255,255,0.03); }
.workspace-settings-card {
    width: min(1080px, calc(100vw - 48px));
    height: min(720px, calc(100vh - 48px));
    max-height: calc(100vh - 48px);
}
.workspace-settings-form {
    min-height: 0;
}
.workspace-editor-section {
    display: grid;
    gap: 12px;
}
.workspace-settings-sidebar {
    background: linear-gradient(180deg, rgba(29,27,31,0.96), rgba(18,18,22,0.98));
}
.workspace-settings-sidebar .eyebrow {
    margin: 0;
}
.workspace-settings-sidebar .settings-nav-button {
    font-size: 0.95rem;
}
.workspace-avatar-editor {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 16px;
    align-items: start;
}
.settings-avatar-editor {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 16px;
    align-items: start;
}
.workspace-avatar-preview {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    background: linear-gradient(180deg, color-mix(in srgb, var(--workspace-avatar-color, #d0ad73) 86%, white), var(--workspace-avatar-color, #d0ad73));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
}
.workspace-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}
.settings-avatar-preview {
    border-radius: 999px;
}
.settings-avatar-preview img {
    border-radius: inherit;
}
.workspace-avatar-controls,
.workspace-role-create {
    display: grid;
    gap: 10px;
}
.settings-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.workspace-file-field {
    display: grid;
    gap: 8px;
}
.workspace-file-field input[type="file"] {
    padding: 10px 12px;
}
.sidebar-description {
    margin: -2px 0 0;
    line-height: 1.4;
    max-width: 100%;
}
.workspace-color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.color-swatch {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 999px;
    background: var(--swatch-color);
    border: 2px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}
.color-swatch.active {
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-1px);
}
.workspace-role-list {
    display: grid;
    gap: 10px;
}
.workspace-editor-members {
    display: grid;
    gap: 10px;
    max-height: 252px;
    overflow: auto;
}
.workspace-editor-member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.03);
}
.workspace-editor-member.self {
    cursor: default;
    opacity: 0.9;
}
.workspace-role-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.03);
}
.workspace-role-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
}
.workspace-role-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--role-color, #8fa3c0);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--role-color, #8fa3c0) 20%, transparent);
}
.workspace-role-delete {
    width: auto;
}
.workspace-editor-copy {
    margin: 0;
    line-height: 1.45;
}
.compact-dialog-head {
    align-items: start;
}
@media (max-width: 1400px) {
    .chat-column.voice-room-mode {
        grid-template-columns: minmax(0, 1fr) 260px;
    }
}
@media (max-width: 1200px) { .app-shell { grid-template-columns: 72px 320px 1fr; } .members-column { display: none; } }
@media (max-width: 900px) { .app-shell { grid-template-columns: 1fr; } .guilds-column, .members-column { display: none; } .channels-column { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); } }
@media (max-width: 900px) {
    .chat-column.voice-room-mode.voice-room-chat-open {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr) auto minmax(220px, auto) auto;
        grid-template-areas:
            "header"
            "stage"
            "controls"
            "side"
            "composer";
    }
    .chat-column.voice-room-mode.voice-room-chat-open .messages {
        margin: 0 24px;
    }
    .chat-column.voice-room-mode.voice-room-chat-open .message-composer {
        margin: 0 24px 24px;
    }
}
@media (max-width: 520px) {
    .auth-card {
        padding: 26px 18px 22px;
        border-radius: 24px;
    }
    .auth-form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .workspace-avatar-editor,
    .settings-avatar-editor {
        grid-template-columns: 1fr;
    }
    .settings-shell,
    .workspace-settings-card {
        grid-template-columns: 1fr;
    }
    .settings-shell,
    .settings-shell-single {
        width: min(100vw, calc(100vw - 16px));
        height: min(100vh, calc(100vh - 16px));
        max-height: calc(100vh - 16px);
    }
    .chat-column.voice-room-mode {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "header"
            "stage"
            "controls";
    }
    .chat-column.voice-room-mode.voice-room-chat-open {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr) auto minmax(180px, auto) auto;
        grid-template-areas:
            "header"
            "stage"
            "controls"
            "side"
            "composer";
    }
    .chat-column.voice-room-mode .screen-share-stage {
        padding: 16px;
    }
    .chat-column.voice-room-mode .call-controls-bar {
        padding: 0 16px 16px;
    }
    .call-controls-cluster {
        gap: 8px;
        padding: 8px;
    }
    .stream-quality-bar {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: min(320px, calc(100vw - 32px));
    }
    .stream-quality-option {
        padding: 9px 10px;
        font-size: 0.8rem;
    }
    .call-control-button {
        width: 52px;
        min-width: 52px;
        height: 52px;
    }
    .chat-column.voice-room-mode.voice-room-chat-open .messages {
        margin: 0 16px;
    }
    .chat-column.voice-room-mode.voice-room-chat-open .message-composer {
        margin: 0 16px 16px;
    }
}





.screen-share-stage {
    padding: 18px 24px 0;
}
.voice-room-empty {
    padding: 18px 24px 0;
}
.voice-room-empty-card {
    padding: 22px 24px;
    border-radius: 22px;
    border: 1px dashed rgba(208,173,115,0.16);
    background: linear-gradient(180deg, rgba(17,19,24,0.86), rgba(12,14,18,0.96));
}
.screen-share-grid {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
}
.voice-stage-shell {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 100%;
}
.voice-stage-primary {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(10,12,16,0.94), rgba(17,19,24,0.98));
    overflow: hidden;
    position: relative;
    display: grid;
    grid-auto-rows: 1fr;
    gap: 12px;
}
.voice-stage-primary.empty {
    display: grid;
    place-items: center;
}
.voice-stage-primary.call-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 18px;
    padding: 18px;
}
.voice-stage-primary.call-preview-grid.call-preview-grid-single {
    grid-template-columns: minmax(0, 1fr);
}
.voice-stage-primary.call-stream-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px 24px;
    overflow: hidden;
}
@media (max-width: 900px) {
    .voice-stage-primary.call-preview-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
.call-stream-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    min-height: 0;
    gap: 18px;
}
.call-stream-feature {
    width: min(100%, 1100px);
    min-height: 0;
    margin: 0 auto;
}
.call-stream-feature.call-preview-tile {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    max-height: min(68vh, 620px);
}
.call-stream-feature .call-preview-body {
    display: grid;
    place-items: center;
    background: #05060a;
}
.call-stream-feature video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #05060a;
}
.call-stream-strip {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.voice-stage-fallback {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
    padding: 36px;
}
.voice-stage-fallback-icon {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(208,173,115,0.28), rgba(208,173,115,0.12));
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.screen-tile {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(36,40,48,0.9), rgba(18,20,24,0.96));
}
.screen-tile video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #0b0c10;
}
.screen-tile-body {
    width: 100%;
    height: 100%;
}
.screen-tile-local-state {
    height: 100%;
    min-height: 220px;
    display: grid;
    place-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    color: rgba(255,255,255,0.88);
    background:
        radial-gradient(circle at top, rgba(208,173,115,0.18), transparent 55%),
        linear-gradient(180deg, rgba(25,28,34,0.94), rgba(12,14,18,0.98));
}
.screen-tile-local-state.compact {
    min-height: 160px;
    gap: 8px;
    padding: 18px;
}
.screen-tile-local-state strong {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.screen-tile-local-state span {
    color: var(--muted);
}
.screen-tile-local-icon {
    font-size: 2rem;
    line-height: 1;
}
.screen-tile-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(10,12,16,0.72);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.78rem;
}
.call-preview-tile {
    position: relative;
    overflow: hidden;
    min-height: 276px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 48%),
        linear-gradient(180deg, rgba(36,40,48,0.9), rgba(15,17,22,0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.call-preview-strip-tile {
    width: 152px;
    flex: 0 0 auto;
    min-height: 86px;
    aspect-ratio: 16 / 9;
    padding: 0;
    cursor: pointer;
}
.call-preview-strip-tile.is-selected {
    border-color: rgba(214,122,122,0.72);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 0 0 1px rgba(214,122,122,0.18),
        0 0 18px rgba(214,122,122,0.16);
}
.call-stream-feature .call-preview-badge {
    font-size: 1rem;
}
.call-preview-strip-tile .call-preview-badge {
    left: 10px;
    bottom: 10px;
    padding: 5px 9px;
    font-size: 0.78rem;
}
.call-preview-strip-tile .call-preview-live {
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    font-size: 0.68rem;
}
.call-preview-strip-tile .call-preview-avatar.user-avatar-md,
.call-preview-strip-tile .call-preview-avatar.user-avatar-lg {
    width: 54px;
    height: 54px;
    font-size: 1.2rem;
}
.call-preview-tile.is-speaking {
    border-color: rgba(126,183,134,0.42);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 0 0 1px rgba(126,183,134,0.14),
        0 0 28px rgba(126,183,134,0.14);
}
.call-preview-body {
    width: 100%;
    height: 100%;
}
.call-preview-user-body {
    display: grid;
    place-items: center;
    padding: 24px;
}
.call-preview-strip-tile .call-preview-user-body {
    padding: 14px;
}
.call-preview-avatar-wrap {
    display: grid;
    place-items: center;
}
.call-preview-avatar.user-avatar-lg {
    width: 96px;
    height: 96px;
    font-size: 2rem;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.22),
        0 16px 36px rgba(0,0,0,0.28);
}
.call-preview-live,
.call-preview-badge {
    position: absolute;
    z-index: 1;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(14,16,20,0.82);
    backdrop-filter: blur(10px);
}
.call-preview-live {
    top: 14px;
    right: 14px;
    padding: 5px 10px;
    color: #ffd5d5;
    background: rgba(170,39,39,0.88);
    border-color: rgba(255,138,138,0.22);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}
.call-preview-badge {
    left: 14px;
    bottom: 14px;
    padding: 8px 12px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
}
.call-preview-tile video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #0b0c10;
}
@media (max-width: 900px) {
    .call-stream-feature.call-preview-tile {
        width: min(100%, 88vw);
        max-height: min(48vh, 420px);
    }
    .call-stream-strip {
        width: 100%;
    }
    .call-preview-strip-tile {
        width: min(44vw, 180px);
    }
}
.ghost-button[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}
.presence-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    text-transform: lowercase;
}
.presence-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    display: inline-block;
}
.presence-dot.online {
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(126,183,134,0.12);
}
.presence-dot.offline {
    background: #6d737d;
    box-shadow: 0 0 0 3px rgba(109,115,125,0.12);
}
.presence-badge.online {
    color: var(--success);
}
.presence-badge.offline {
    color: #98a0ab;
}
.overview-group {
    display: grid;
    gap: 8px;
}
.overview-stat-card {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}
.news-picker-card {
    width: 100%;
    text-align: left;
}
.news-picker-card.active {
    border-color: rgba(208,173,115,0.34);
    box-shadow: 0 0 0 1px rgba(208,173,115,0.12) inset;
    background: linear-gradient(180deg, rgba(208,173,115,0.14), rgba(255,255,255,0.03));
}
.news-picker-card:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}
.overview-stat-card strong {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 6px;
}
.overview-friend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.overview-empty {
    line-height: 1.5;
}
.user-popup-target {
    cursor: pointer;
}
.user-popup-target:hover {
    background: rgba(255,255,255,0.06);
}
.overview-friend-row {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.03);
    text-align: left;
}
.message-author {
    border: none;
    background: transparent;
    color: inherit;
    padding: 0;
    width: auto;
    text-align: left;
}
.message-author strong {
    color: inherit;
}
.member-row.user-popup-target,
.friend-card.user-popup-target,
.user-result-card.user-popup-target,
.thread-item.user-popup-target {
    width: 100%;
    text-align: left;
}
.context-action.danger:hover {
    background: rgba(214,122,122,0.12);
}
.toast-root {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: grid;
    gap: 10px;
    pointer-events: none;
}
.toast {
    min-width: 260px;
    max-width: 340px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(29,32,38,0.98), rgba(18,20,24,0.98));
    box-shadow: var(--shadow);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 260ms ease, transform 260ms ease;
}
.toast.toast-leaving { opacity: 0; transform: translateY(8px); }
.toast-success {
    border-color: rgba(126,183,134,0.24);
}
.toast-error {
    border-color: rgba(214,122,122,0.78);
    box-shadow:
        0 0 0 1px rgba(214,122,122,0.18) inset,
        0 16px 42px rgba(0,0,0,0.42),
        0 0 20px rgba(214,122,122,0.14);
}
.toast-info {
    border-color: rgba(143,163,192,0.24);
}
.toast-title {
    margin: 0 0 6px;
    font-weight: 700;
}
.toast-body {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}
.hub-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.hub-empty-state {
    color: var(--muted);
    padding: 24px;
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    min-height: 180px;
    display: grid;
    place-items: center;
    text-align: center;
}
.hub-content-card {
    width: 100%;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(34,38,45,0.7), rgba(20,22,28,0.92));
    text-align: left;
}
.hub-content-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.invite-content-card {
    display: grid;
    gap: 14px;
}
.workspace-invite-link-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    align-items: end;
    margin-top: 18px;
}
.workspace-invite-link-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}
.workspace-invite-link-form select {
    width: 100%;
}
.workspace-invite-link-result,
.workspace-invite-links-list {
    margin-top: 16px;
}
.workspace-invite-links-list {
    display: grid;
    gap: 12px;
}
.workspace-invite-link-banner,
.workspace-invite-link-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(34,38,45,0.72), rgba(18,20,25,0.92));
    display: grid;
    gap: 12px;
}
.news-placeholder {
    min-height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #070809, #000);
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.03);
}
.news-placeholder-inner {
    display: grid;
    gap: 10px;
    text-align: center;
    color: rgba(236,229,216,0.84);
}
.news-placeholder-inner strong {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@keyframes action-success-glow {
    0% {
        transform: translateY(0);
        border-color: rgba(255,255,255,0.08);
        box-shadow: none;
        background: linear-gradient(180deg, rgba(143,163,192,0.22), rgba(143,163,192,0.1));
        color: var(--text);
    }
    35% {
        transform: translateY(-1px) scale(1.01);
        border-color: rgba(208,173,115,0.78);
        box-shadow: 0 0 0 1px rgba(208,173,115,0.2) inset, 0 0 24px rgba(208,173,115,0.28);
        background: linear-gradient(180deg, rgba(240,209,147,0.96), rgba(184,134,53,0.92));
        color: #111;
    }
    100% {
        transform: translateY(0);
        border-color: rgba(208,173,115,0.58);
        box-shadow: 0 0 0 1px rgba(208,173,115,0.14) inset, 0 0 18px rgba(208,173,115,0.16);
        background: linear-gradient(180deg, rgba(240,209,147,0.88), rgba(184,134,53,0.84));
        color: #111;
    }
}


.news-feed { display: grid; gap: 16px; }
.news-post-card { padding: 20px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.06); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); }
.news-post-title { margin: 8px 0; }
.news-post-meta { margin-bottom: 14px; }
.news-post-body { line-height: 1.7; white-space: normal; }
.news-post-body p,
.news-post-body ul,
.news-post-body ol,
.news-post-body blockquote,
.news-post-body pre { margin: 0 0 14px; }
.news-post-body p:last-child,
.news-post-body ul:last-child,
.news-post-body ol:last-child,
.news-post-body blockquote:last-child,
.news-post-body pre:last-child { margin-bottom: 0; }
.news-post-body img {
  display: block;
  max-width: min(100%, 720px);
  border-radius: 18px;
  margin: 18px 0;
}
.news-post-body blockquote {
  padding-left: 14px;
  border-left: 3px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.86);
}




