:root {
  color-scheme: dark;
  --bg: #100f15;
  --panel: #17161e;
  --panel-raised: #201e29;
  --panel-soft: #1b1923;
  --line: rgba(255, 255, 255, .075);
  --text: #f4f0fb;
  --muted: #a39eae;
  --quiet: #706b7c;
  --accent: #9c83ff;
  --accent-strong: #7956f6;
  --mint: #75e0c2;
  --danger: #ff858e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); overflow: hidden; }
button, input, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.ambient { position: fixed; z-index: -1; pointer-events: none; border-radius: 999px; filter: blur(85px); opacity: .16; }
.ambient-one { width: 340px; height: 340px; top: -190px; left: 15%; background: #7651ef; }
.ambient-two { width: 420px; height: 420px; bottom: -330px; right: 6%; background: #167b74; opacity: .09; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(16, 15, 21, .78); -webkit-app-region: drag; user-select: none; }
.window-controls { display: none; align-items: center; gap: 8px; flex: 0 0 auto; margin-right: 4px; -webkit-app-region: no-drag; }
.desktop-shell .window-controls { display: flex; }
.traffic-light { width: 13px; height: 13px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px #00000015; transition: filter .12s, transform .12s; -webkit-app-region: no-drag; }
.traffic-light span { opacity: 0; color: #2a1a1a; font-size: 10px; line-height: 1; font-weight: 800; transition: opacity .12s; }
.traffic-light:hover { filter: brightness(1.12); transform: scale(1.08); }
.traffic-light:hover span { opacity: .85; }
.traffic-close { background: #ff6058; }
.traffic-minimize { background: #ffbd2e; }
.traffic-maximize { background: #28c840; }
.desktop-shell .brand, .desktop-shell .topbar-right { -webkit-app-region: no-drag; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 16px; font-weight: 650; letter-spacing: -.035em; }
.brand b { font-weight: 400; color: #c9c2d5; }
.brand-mark, .mini-mark { display: grid; place-items: center; flex: 0 0 auto; background: transparent; }
.brand-mark { width: 30px; height: 30px; }
.mini-mark { width: 38px; height: 38px; }
.brand-mark img { display: block; width: 30px; height: 30px; }
.mini-mark img { display: block; width: 36px; height: 36px; }
.beta-tag { margin-left: 2px; padding: 3px 6px; border: 1px solid #8271bf55; border-radius: 5px; color: #b8a9ff; font-size: 8px; letter-spacing: .14em; }
.topbar-right { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: #e8b869; box-shadow: 0 0 8px #e8b86966; }
.connection-dot.connected { background: var(--mint); box-shadow: 0 0 8px #75e0c266; }
.topbar-separator { height: 16px; width: 1px; margin: 0 5px; background: var(--line); }
.voice-soon { color: var(--quiet); }
.auth-layout { min-height: calc(100vh - 68px); display: grid; grid-template-columns: minmax(330px, 1fr) minmax(340px, 430px); align-items: center; gap: 8vw; max-width: 1120px; margin: auto; padding: 70px 40px; }
.hero-copy { max-width: 525px; padding-bottom: 28px; }
.eyebrow, .modal-kicker { display: flex; align-items: center; gap: 9px; color: #b4a5ff; font-size: 10px; letter-spacing: .19em; font-weight: 700; }
.eyebrow-line { width: 22px; height: 1px; background: #a18aff; }
.hero-copy h1 { margin: 22px 0 19px; font-size: clamp(48px, 7vw, 78px); line-height: .99; letter-spacing: -.075em; font-weight: 680; }
.hero-copy h1 span, .welcome-panel h2 span { color: #a994ff; }
.hero-description { max-width: 425px; color: #aaa5b3; font-size: 15px; line-height: 1.75; }
.hero-points { display: flex; flex-direction: column; gap: 13px; margin-top: 30px; color: #cbc7d2; font-size: 12px; }
.hero-points > div { display: flex; align-items: center; gap: 11px; }
.point-icon { color: var(--mint); font-size: 14px; }
.local-note { margin-top: 55px; color: #625d6b; font-size: 10px; }
.auth-card { padding: 32px; border: 1px solid #ffffff10; border-radius: 18px; background: linear-gradient(145deg, #1b1923, #17161d); box-shadow: 0 24px 80px #0005; }
.auth-card-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 25px; }
.mini-mark { width: 38px; height: 38px; border-radius: 12px; font-size: 18px; }
.auth-card h2, .modal h2 { margin: 0; font-size: 21px; letter-spacing: -.04em; }
.auth-card-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.stack-form { display: flex; flex-direction: column; gap: 9px; }
.stack-form label { margin-top: 4px; color: #c8c2d1; font-size: 11px; font-weight: 600; }
.stack-form input:not([type=color]) { width: 100%; height: 43px; padding: 0 13px; border: 1px solid #ffffff12; border-radius: 9px; outline: none; color: var(--text); background: #111016; font-size: 12px; transition: border .15s, box-shadow .15s; }
.stack-form textarea { width: 100%; min-height: 130px; max-height: 45vh; resize: vertical; padding: 11px 13px; border: 1px solid #ffffff12; border-radius: 9px; outline: none; color: var(--text); background: #111016; font-size: 12px; line-height: 1.55; }
.stack-form select { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid #ffffff12; border-radius: 9px; outline: none; color: var(--text); background: #111016; font-size: 11px; }
.stack-form input:focus, .stack-form textarea:focus, .stack-form select:focus, .join-row input:focus { border-color: #9a83ff99; box-shadow: 0 0 0 3px #8968ff18; }
#channelDescriptionInput, #channelSettingsDescription { min-height: 76px; max-height: 30vh; }
.stack-form input::placeholder, textarea::placeholder, .join-row input::placeholder { color: #696474; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 650; transition: transform .15s, background .15s, border-color .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: linear-gradient(115deg, #8d6af5, #7354e9); box-shadow: 0 7px 22px #654bd337; }
.button-primary:hover { background: linear-gradient(115deg, #9e80ff, #8064f1); }
.button-wide { width: 100%; margin-top: 13px; }
.button-quiet { min-height: 31px; padding: 0 12px; color: #d2caff; border-color: #8973e334; background: #8a72e311; font-size: 10px; }
.button-quiet:hover { background: #8a72e322; }
.button-danger { min-height: 37px; padding: 0 13px; border-color: #ff7f8e33; color: #ffc2c7; background: #ff647012; font-size: 11px; }
.button-danger:hover { background: #ff647022; }
.button-danger:disabled { opacity: .55; cursor: wait; transform: none; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }
.auth-switch { margin: 19px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.text-button { padding: 0; border: 0; color: #b9a9ff; background: none; cursor: pointer; font-size: inherit; }
.terms-note { margin: 18px 0 0; color: #6d6876; font-size: 9px; line-height: 1.5; }
.form-error { min-height: 13px; margin: 0; color: var(--danger); font-size: 10px; }

.app-shell { height: calc(100vh - 68px); display: grid; grid-template-columns: 72px 260px minmax(0, 1fr); grid-template-rows: 42px minmax(0, 1fr) auto; }
.sidebar-navigation-tabs { min-width: 0; grid-column: 1 / span 2; grid-row: 1; display: flex; align-items: stretch; gap: 0; padding: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(17, 16, 22, .96); }
.sidebar-navigation-tab { min-width: 0; width: 50%; height: 100%; min-height: 30px; flex: 1 1 0; padding: 0 9px; border: 0; border-radius: 0; color: #918a9c; background: transparent; cursor: pointer; font-size: 10px; font-weight: 650; white-space: nowrap; }
.sidebar-navigation-tab:hover { color: #e9e4f1; background: #ffffff08; }
.sidebar-navigation-tab:focus-visible { outline: 2px solid #ad99ff; outline-offset: -2px; }
.sidebar-navigation-tab[aria-pressed="true"] { color: #ece6fb; background: #34323a; box-shadow: none; }
.community-rail { min-width: 0; grid-column: 1; grid-row: 2; display: flex; flex-direction: column; align-items: center; gap: 11px; padding: 14px 8px 10px; border-right: 1px solid var(--line); background: rgba(17, 16, 22, .96); }
.rail-create-community { width: 44px; height: 44px; flex: 0 0 auto; border-color: #ffffff12; border-radius: 14px; color: #e8e4f1; background: #ffffff08; font-size: 21px; }
.rail-create-community:hover { border-color: #ffffff22; background: #ffffff12; }
.sidebar { min-width: 0; grid-column: 2; grid-row: 2; display: flex; flex-direction: column; padding: 0 13px 12px; border-right: 1px solid var(--line); background: rgba(20, 19, 26, .9); }
/* Community selection remains available while the direct-message list is active. */
.app-shell[data-sidebar-tab="direct-messages"] .sidebar { grid-column: 2; }
.app-shell[data-sidebar-tab="direct-messages"] .community-rail { display: flex; }
.community-sidebar-content { min-width: 0; min-height: 0; display: flex; flex: 1; flex-direction: column; }
.direct-message-sidebar-content { min-width: 0; min-height: 0; display: flex; flex: 1; flex-direction: column; padding-top: 14px; }
.direct-message-sidebar-content .section-heading { flex: 0 0 auto; }
.direct-message-sidebar-content .dm-list { min-height: 0; flex: 1; overflow-y: auto; }
.section-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.section-heading > span { color: #716b7b; font-size: 9px; font-weight: 750; letter-spacing: .16em; }
.sidebar-community-banner { height: auto; max-height: 270px; min-height: 78px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 0 -13px; border: 0; border-radius: 0; background: linear-gradient(135deg, var(--community-banner-color, #7357ff), #211e2b 88%); }
.sidebar-community-banner.has-banner-image { min-height: 0; }
.sidebar-community-banner[hidden] { display: none; }
.sidebar-community-banner img { width: 100%; height: auto; max-height: 270px; position: relative; display: block; object-fit: contain; object-position: center; opacity: .88; }
.sidebar-community-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #111016d9, #11101666 74%, #11101622); pointer-events: none; }
.sidebar-community-banner span { min-width: 0; position: absolute; z-index: 1; top: 10px; left: 12px; max-width: calc(100% - 24px); overflow: hidden; padding: 10px 12px; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: -.02em; text-overflow: ellipsis; text-shadow: 0 2px 8px #0009; white-space: nowrap; }
.channel-context-menu { min-width: 178px; position: fixed; z-index: 1000; display: flex; flex-direction: column; gap: 2px; padding: 5px; border: 1px solid #ffffff18; border-radius: 9px; background: #211e29; box-shadow: 0 14px 38px #0009; }
.channel-context-menu[hidden] { display: none; }
.channel-context-menu button { min-height: 34px; display: flex; align-items: center; padding: 0 10px; border: 0; border-radius: 6px; color: #d7d2df; background: transparent; cursor: pointer; text-align: left; font: inherit; font-size: 11px; }
.channel-context-menu button:hover, .channel-context-menu button:focus-visible { outline: none; color: #fff; background: #ffffff12; }
.channel-context-menu button[data-channel-context-action="delete-channel"] { color: #ff9ca5; }
.channel-context-menu button[data-channel-context-action="delete-channel"]:hover, .channel-context-menu button[data-channel-context-action="delete-channel"]:focus-visible { color: #ffd9dc; background: #ff68751c; }
.context-menu-separator { height: 1px; margin: 3px 5px; background: #ffffff12; }
.member-context-menu button[data-member-context-action="ban"] { color: #ff9ca5; }
.member-context-menu button[data-member-context-action="ban"]:hover, .member-context-menu button[data-member-context-action="ban"]:focus-visible { color: #ffd9dc; background: #ff68751c; }
.icon-button { width: 31px; height: 31px; display: inline-grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 8px; color: #a8a2b2; background: transparent; cursor: pointer; font-size: 17px; transition: color .15s, background .15s; }
.icon-button:hover { color: white; border-color: #ffffff0d; background: #ffffff0a; }
.small-icon { width: 23px; height: 23px; font-size: 16px; }
.community-list { width: 100%; min-height: 0; display: flex; flex: 1; flex-direction: column; align-items: center; gap: 8px; margin-top: 2px; overflow-y: auto; }
.community-item { width: 46px; height: 46px; position: relative; display: grid; place-items: center; flex: 0 0 auto; padding: 2px; border: 1px solid transparent; border-radius: 14px; color: #aaa5b3; background: transparent; cursor: pointer; }
.community-item:hover { color: var(--text); background: #ffffff08; }
.community-item.active { border-color: #ffffff32; background: #ffffff0d; }
.community-item.is-muted .community-badge { filter: saturate(.65); }
.community-item.is-muted::after { content: ""; width: 6px; height: 6px; position: absolute; right: 4px; bottom: 4px; border: 1px solid #17151d; border-radius: 50%; background: #817a8f; }
.community-item.active::before { content: ""; position: absolute; left: -9px; width: 3px; height: 27px; border-radius: 0 3px 3px 0; background: #fff; }
.community-badge { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 50%; color: #fff; background: var(--accent, #7357ff); font-size: 12px; font-weight: 700; }
.community-badge img { display: block; width: 100%; height: 100%; object-fit: cover; }
.channel-section { min-height: 0; flex: 1; overflow-y: auto; margin-top: 0; padding-top: 10px; }
.channel-list { display: flex; flex-direction: column; gap: 3px; margin-top: 0; }
.channel-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 1px solid transparent; border-radius: 7px; color: #928c9c; background: transparent; cursor: pointer; text-align: left; font-size: 12px; font-weight: 700; }
.channel-item::before { content: "#"; color: #6f6978; font-size: 13px; }
.channel-item:hover { color: #e9e4f1; background: #ffffff07; }
.channel-item.active { color: #e3dcf4; background: #ffffff0b; }
.channel-category { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 3px 0; border-radius: 8px; }
.channel-category.is-drop-target { background: #967bff18; outline: 1px dashed #a58bff70; }
.channel-category-heading { min-height: 27px; display: flex; align-items: center; gap: 5px; padding: 2px 4px; border-radius: 6px; color: #797382; font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.channel-category-heading.is-draggable { cursor: grab; }
.channel-category-heading.is-draggable:active { cursor: grabbing; }
.channel-category-heading.is-drop-target { color: #cbbcff; background: #8f73f322; outline: 1px dashed #aa93ff; }
.category-toggle { width: 17px; height: 20px; padding: 0; border: 0; color: #777180; background: transparent; cursor: pointer; font-size: 11px; }
.category-toggle:disabled { cursor: default; opacity: .5; }
.channel-category-title { min-width: 0; flex: 1; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.category-settings-button { width: 22px; height: 22px; opacity: .3; font-size: 12px; }
.channel-category-heading:hover .category-settings-button { opacity: 1; }
.channel-category-items { min-height: 4px; display: flex; flex-direction: column; gap: 2px; }
.channel-row { min-width: 0; display: flex; align-items: center; gap: 2px; border-radius: 7px; }
.channel-row:hover, .channel-row.active { background: #ffffff08; }
.channel-row.is-dragging { opacity: .4; }
.channel-row.is-drop-target { background: #967bff1c; outline: 1px dashed #a58bff80; }
.channel-row .channel-item { width: auto; min-width: 0; flex: 1; }
.channel-item.voice-channel::before { content: "◖"; color: #75d4b7; font-size: 12px; }
.channel-description { min-width: 0; max-width: min(60vw, 560px); margin: 0; overflow: hidden; flex: 1 1 auto; color: #aaa3b2; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.chat-text-view { min-width: 0; min-height: 0; display: flex; flex: 1; flex-direction: column; overflow: hidden; }
.voice-room-panel { width: min(640px, calc(100% - 40px)); max-height: 100%; display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 16px; overflow: auto; margin: 0 auto; padding: 28px 8px; }
.voice-room-heading { display: flex; align-items: center; gap: 14px; }
.voice-orb { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #8ee0c344; border-radius: 17px; color: #a0eed2; background: #53cda51c; box-shadow: 0 0 35px #53cda512; font-size: 24px; }
.voice-room-kicker { color: #83cbb2; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.voice-room-heading h3 { margin: 4px 0 2px; color: #f2edf8; font-size: 20px; letter-spacing: -.04em; }
.voice-room-heading p { margin: 0; color: #a19aa9; font-size: 10px; }
.voice-participant-list { min-height: 54px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.voice-participant-row { min-width: 160px; display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #ffffff10; border-radius: 10px; background: #ffffff05; }
.voice-participant-avatar { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 50%; color: white; font-size: 10px; font-weight: 700; }
.voice-participant-avatar img, .voice-channel-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.voice-participant-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 3px; }
.voice-participant-name { overflow: hidden; color: #e9e4ef; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.voice-participant-row[data-speaking="true"] .voice-participant-name, .voice-channel-participant[data-speaking="true"] .voice-channel-person-name { color: #ad99ff; font-weight: 750; }
.voice-participant-state { color: #8c8794; font-size: 8px; }
.voice-participant-media-state { display: flex; align-items: center; gap: 5px; color: #a995ff; font-size: 9px; }
.voice-privacy-note { max-width: 510px; margin: 0; color: #78727f; font-size: 9px; line-height: 1.6; }
.voice-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.voice-controls .button { min-height: 34px; padding: 0 12px; font-size: 10px; }
.voice-controls .button:disabled { opacity: .45; cursor: default; transform: none; }
.voice-media-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 9px; }
.voice-video-tile { min-width: 0; position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid #ffffff14; border-radius: 11px; background: #09080d; box-shadow: 0 8px 24px #0003; }
.voice-video-tile video { width: 100%; height: 100%; display: block; object-fit: cover; }
.voice-video-screen video { object-fit: contain; background: #09080d; }
.voice-video-caption { position: absolute; right: 7px; bottom: 7px; left: 7px; overflow: hidden; padding: 5px 7px; border-radius: 6px; color: #fff; background: #09080dcc; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.voice-channel-participants { display: flex; flex-direction: column; gap: 2px; margin: 1px 0 7px; padding-left: 28px; }
.voice-channel-participant { min-width: 0; height: 25px; display: flex; align-items: center; gap: 7px; padding: 0 6px; border-radius: 6px; color: #aaa4b1; }
.voice-channel-participant:hover { color: #e7e1ed; background: #ffffff08; }
.voice-channel-avatar { width: 17px; height: 17px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 50%; color: white; font-size: 8px; font-weight: 700; }
.voice-channel-person-name { min-width: 0; flex: 1; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.voice-channel-media-state { display: flex; align-items: center; gap: 4px; color: #8de0c1; font-size: 9px; }
.voice-channel-media-state span[title="Muted"], .voice-channel-media-state span[title="Deafened"] { color: #ec9c9c; font-weight: 700; }
.remote-audio-container { display: none; }
.join-form { margin: 17px 4px 9px; }
.join-form label { display: block; margin: 0 0 7px; color: #777180; font-size: 9px; }
.join-row { display: flex; gap: 5px; }
.join-row input { width: 100%; min-width: 0; height: 31px; padding: 0 8px; border: 1px solid #ffffff10; border-radius: 7px; outline: none; color: var(--text); background: #111016; font-size: 10px; }
.small-button { min-height: 29px; padding: 0 10px; border: 1px solid #8973e344; border-radius: 7px; color: #d4cbff; background: #8c73f31a; cursor: pointer; font-size: 10px; font-weight: 650; }
.small-button:hover { background: #8c73f332; }
.section-heading { margin-bottom: 8px; }
.dm-list { min-height: 10px; display: flex; flex-direction: column; gap: 3px; }
.dm-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 1px solid transparent; border-radius: 8px; color: #aaa5b3; background: transparent; text-align: left; cursor: pointer; font-size: 11px; }
.dm-item:hover, .dm-item.active { color: white; background: #ffffff0a; }
.dm-item.unread .dm-name { color: #f3effb; font-weight: 700; }
.dm-unread-dot { width: 7px; height: 7px; flex: 0 0 auto; margin-left: auto; border-radius: 50%; background: #aa93ff; box-shadow: 0 0 8px #a88cff80; }
.dm-avatar { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 50%; color: white; background: #51486a; font-size: 9px; font-weight: 700; }
.dm-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.dm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-panel { min-width: 0; grid-column: 1 / span 2; grid-row: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 12px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); background: rgba(20, 19, 26, .98); }
.user-panel-top { min-width: 0; display: flex; align-items: center; flex: 1; gap: 8px; }
.user-avatar-wrap { width: 29px; height: 29px; position: relative; display: block; flex: 0 0 auto; }
.avatar { width: 29px; height: 29px; position: relative; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 50%; color: white; background: var(--accent); font-size: 11px; font-weight: 750; }
.avatar img, .message-avatar img, .chat-member-avatar img, .community-member-avatar img, .mini-profile-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.message-avatar, .chat-member-avatar, .community-member-avatar, .mini-profile-avatar { position: relative; }
.presence-dot { width: 10px; height: 10px; position: absolute; right: -1px; bottom: -1px; border: 2px solid #14131a; border-radius: 50%; background: #58d69a; }
.presence-dot[data-presence-status="online"] { background: #58d69a; }
.presence-dot[data-presence-status="away"] { background: #f0b84b; }
.presence-dot[data-presence-status="busy"] { background: #ef6574; }
.presence-dot[data-presence-status="custom"] { background: #a58bff; }
.presence-dot[data-presence-status="offline"] { background: #716e7a; }
.user-meta { min-width: 0; display: flex; flex-direction: column; flex: 1; gap: 2px; }
.user-meta strong { overflow: hidden; color: #e6e2eb; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.user-status-button { max-width: 100%; display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; color: #8f8999; background: transparent; cursor: pointer; text-align: left; font: inherit; font-size: 9px; }
.user-status-button:hover { color: #d1c9dc; }
.user-status-button #selfStatus { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-caret { flex: 0 0 auto; color: #716b7b; font-size: 12px; }
.user-settings { width: 27px; height: 27px; font-size: 13px; }
.user-panel-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 5px; padding-left: 0; }
.user-voice-control { width: 27px; height: 27px; border-color: #ffffff0d; background: #ffffff05; }
.user-voice-control svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.user-voice-control.is-active { color: #ff9ba5; border-color: #ef657433; background: #ef657414; }
.user-voice-control:disabled { opacity: .4; cursor: default; }
.user-voice-control:disabled:hover { color: #a8a2b2; border-color: #ffffff0d; background: #ffffff05; }
.user-status-dialog { width: min(370px, calc(100vw - 32px)); }
.status-choice-list { display: grid; gap: 5px; margin: 17px 0 0; }
.status-choice { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid #ffffff0d; border-radius: 8px; color: #d5d0dc; background: #ffffff04; cursor: pointer; text-align: left; font: inherit; font-size: 11px; }
.status-choice:hover, .status-choice[aria-pressed="true"] { border-color: #ffffff20; background: #ffffff0b; }
.status-choice .presence-dot { width: 9px; height: 9px; position: static; border: 0; flex: 0 0 auto; }
.user-status-form { margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.main-panel { min-width: 0; min-height: 0; grid-column: 3; grid-row: 1 / span 3; position: relative; overflow: hidden; background: radial-gradient(ellipse at 72% 8%, #30254633, transparent 39%), #121118; }
.welcome-panel { width: min(590px, 90%); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -52%); }
.welcome-orbit { width: 74px; height: 74px; position: relative; display: grid; place-items: center; margin-bottom: 23px; border: 1px solid #a993ff38; border-radius: 23px; background: linear-gradient(140deg, #9c83ff24, #5441a316); box-shadow: 0 0 58px #7559df22; color: #c0afff; font-size: 31px; }
.welcome-orbit i, .welcome-orbit b { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 9px var(--mint); }
.welcome-orbit i { top: -4px; right: 10px; }
.welcome-orbit b { bottom: 7px; left: -3px; width: 3px; height: 3px; }
.welcome-panel h2 { margin: 15px 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.04; letter-spacing: -.075em; }
.welcome-panel > p { max-width: 400px; color: #a29cab; font-size: 12px; line-height: 1.75; }
.welcome-actions { margin-top: 24px; }
.welcome-actions .button { padding: 0 17px; }
.beta-callout { display: flex; align-items: flex-start; gap: 12px; max-width: 450px; margin-top: 35px; padding: 13px 15px; border: 1px solid #ffffff0e; border-radius: 11px; color: #9993a2; background: #ffffff04; font-size: 10px; line-height: 1.6; }
.beta-callout strong { color: #d3c9f5; font-weight: 600; }
.callout-icon { color: #a994ff; font-size: 15px; }
.chat-panel { height: 100%; min-height: 0; display: flex; flex-direction: column; }
.chat-header { position: relative; isolation: isolate; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; overflow: hidden; padding: 0 25px; border-bottom: 1px solid var(--line); background: #17161e; }
.chat-header-banner { position: absolute; z-index: 0; inset: 0; overflow: hidden; opacity: .3; pointer-events: none; }
.chat-header-banner img { width: 100%; height: 100%; display: block; object-fit: cover; }
.chat-header-copy, .chat-header-actions { position: relative; z-index: 1; }
.chat-body { min-height: 0; display: flex; flex: 1; }
.chat-main { min-width: 0; min-height: 0; display: flex; flex: 1; flex-direction: column; overflow: hidden; }
.chat-members-sidebar { width: 230px; min-width: 190px; display: flex; flex: 0 0 auto; flex-direction: column; gap: 10px; padding: 15px 12px; border-left: 1px solid var(--line); background: rgba(20, 19, 26, .72); }
.chat-members-heading { display: flex; align-items: center; justify-content: space-between; color: #aaa5b3; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.chat-members-heading span:last-child { color: #716b7b; font-size: 9px; font-weight: 500; }
.chat-members-list { min-height: 0; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; scrollbar-color: #35313d transparent; scrollbar-width: thin; }
.chat-member-group { display: flex; flex-direction: column; gap: 3px; }
.chat-member-group-heading { margin: 11px 7px 3px; color: #827c8a; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.chat-member-row { width: 100%; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px; border: 0; border-radius: 8px; color: inherit; background: transparent; cursor: pointer; text-align: left; font: inherit; }
.chat-member-row:hover, .chat-member-row:focus-visible { outline: none; background: #ffffff08; }
.chat-member-avatar-wrap { width: 27px; height: 27px; position: relative; display: block; flex: 0 0 auto; }
.chat-member-avatar { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 50%; color: white; font-size: 9px; font-weight: 700; }
.chat-member-avatar-wrap .presence-dot { width: 9px; height: 9px; border-color: #17161e; }
.chat-member-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 3px; }
.chat-member-name-row { min-width: 0; display: flex; align-items: center; gap: 5px; }
.chat-member-name { min-width: 0; max-width: calc(100% - 20px); overflow: hidden; flex: 0 1 auto; color: #e1dce8; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.chat-member-role { max-width: 70px; overflow: hidden; color: #8f879b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.chat-member-owner-crown { width: 15px; height: 15px; display: inline-grid; place-items: center; flex: 0 0 auto; color: #f2c14e; filter: drop-shadow(0 0 3px #f2c14e55); }
.chat-member-owner-crown svg { width: 100%; height: 100%; display: block; }
.chat-member-status { overflow: hidden; color: #8f8999; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.chat-member-status[data-presence-status="online"] { color: #7dcba8; }
.chat-member-status[data-presence-status="away"] { color: #dcb768; }
.chat-member-status[data-presence-status="busy"] { color: #e9828b; }
.chat-member-status[data-presence-status="custom"] { color: #b8a9e0; }
.chat-header-copy { min-width: 0; display: flex; flex: 1; align-items: center; gap: 14px; }
.chat-header h2 { min-width: 0; max-width: 50%; margin: 0; overflow: hidden; flex: 0 1 auto; color: #f1edf7; font-size: 16px; font-weight: 640; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.chat-header-actions { display: flex; align-items: center; gap: 8px; }
.privacy-pill { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; color: #85808f; font-size: 9px; }
.privacy-pill span { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.messages { min-height: 0; display: flex; flex: 1; flex-direction: column; gap: 13px; overflow: auto; padding: 23px 24px 24px; scrollbar-color: #35313d transparent; scrollbar-width: thin; }
.message { position: relative; width: 100%; display: flex; align-items: flex-start; gap: 10px; max-width: none; animation: appear .18s ease-out; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.message-avatar { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 50%; color: white; background: var(--author-color, #7461a3); font-size: 10px; font-weight: 700; }
.message-content { min-width: 0; flex: 1; }
.message-actions { position: absolute; top: -8px; right: 4px; display: flex; gap: 2px; padding: 2px; border: 1px solid #ffffff14; border-radius: 8px; opacity: 0; background: #24212d; box-shadow: 0 4px 12px #0005; pointer-events: none; transition: opacity .12s; }
.message:hover .message-actions, .message:focus-within .message-actions { opacity: 1; pointer-events: auto; }
.message-action-button { width: 25px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; color: #b8b1c3; background: transparent; cursor: pointer; font-size: 13px; }
.message-action-button:hover { color: white; background: #ffffff12; }
.message-delete-button:hover { color: #ff9aa1; background: #ff606018; }
.message-meta { display: flex; align-items: baseline; gap: 8px; margin: 1px 0 4px; }
.message-meta strong { color: #e9e5ee; font-size: 13px; font-weight: 650; }
.message-meta time { color: #696473; font-size: 10px; }
.message-edited { color: #777180; font-size: 9px; font-style: italic; }
.message-markdown { color: #c0bbc7; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.message-markdown.message-action { color: #a9d8ff; font-style: italic; }
.message-markdown.message-action h1, .message-markdown.message-action h2, .message-markdown.message-action h3,
.message-markdown.message-action h4, .message-markdown.message-action strong, .message-markdown.message-action em,
.message-markdown.message-action del, .message-markdown.message-action a, .message-markdown.message-action blockquote { color: inherit; }
.message-markdown > :first-child { margin-top: 0; }
.message-markdown > :last-child { margin-bottom: 0; }
.message-markdown p { margin: 0 0 7px; white-space: pre-wrap; }
.message-markdown h1, .message-markdown h2, .message-markdown h3, .message-markdown h4 { margin: 8px 0 5px; color: #f0ebf7; line-height: 1.35; letter-spacing: -.02em; }
.message-markdown h1 { font-size: 20px; }
.message-markdown h2 { font-size: 17px; }
.message-markdown h3, .message-markdown h4 { font-size: 15px; }
.message-markdown strong { color: #f1edf7; font-weight: 700; }
.message-markdown em { color: #ddd5ed; }
.message-markdown del { color: #8d8796; }
.message-markdown a { color: #b8a5ff; text-decoration: underline; text-underline-offset: 2px; }
.message-markdown a:hover { color: #d4caff; }
.message-mention { padding: 0 3px; border-radius: 4px; color: #d3c7ff; background: #8e73ff24; font-weight: 600; }
.message-channel-reference { padding: 0 3px; border: 0; border-radius: 4px; color: #cbbdff; background: #8e73ff20; cursor: pointer; font: inherit; font-weight: 600; }
.message-channel-reference:hover, .message-channel-reference:focus-visible { outline: none; color: #eee9ff; background: #8e73ff39; }
.message-markdown code { padding: 2px 5px; border: 1px solid #ffffff0d; border-radius: 5px; color: #d8cfff; background: #0e0c13; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
.message-markdown pre { overflow-x: auto; margin: 8px 0; padding: 10px 12px; border: 1px solid #ffffff10; border-radius: 8px; background: #0e0c13; }
.message-markdown pre code { padding: 0; border: 0; color: #cfc6dd; background: transparent; white-space: pre; }
.message-markdown blockquote { margin: 6px 0; padding: 1px 0 1px 10px; border-left: 2px solid #9c83ff88; color: #a9a2b2; }
.message-markdown ul, .message-markdown ol { margin: 5px 0; padding-left: 21px; }
.message-markdown li { margin: 2px 0; }
.attachment-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 7px; padding: 7px 9px; border: 1px solid #ffffff12; border-radius: 8px; color: #cfc2ff; background: #ffffff06; text-decoration: none; font-size: 10px; }
.attachment-link:hover { background: #ffffff0d; }
.chat-empty { padding: 18px 25px 20px; }
.chat-empty .empty-mark { color: #aa96ff; font-size: 24px; }
.chat-empty h3 { margin: 7px 0 3px; font-size: 14px; }
.chat-empty p { margin: 0; color: var(--muted); font-size: 10px; }
.composer { width: calc(100% - 48px); min-height: 52px; position: relative; display: flex; align-items: flex-end; gap: 8px; margin: 0 auto; padding: 8px 9px 8px 12px; border: 1px solid #ffffff14; border-radius: 13px; background: #1b1923; box-shadow: 0 9px 35px #0002; }
.composer:focus-within { border-color: #9983ff55; box-shadow: 0 0 0 3px #8968ff0c; }
.reference-autocomplete { width: min(340px, calc(100vw - 36px)); max-height: min(250px, 42vh); position: absolute; z-index: 25; left: 8px; bottom: calc(100% + 8px); display: flex; flex-direction: column; gap: 3px; overflow: auto; padding: 6px; border: 1px solid #ffffff18; border-radius: 11px; background: #201d29; box-shadow: 0 14px 38px #0008; }
.reference-option { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 7px 8px; border: 0; border-radius: 7px; color: #ddd7e6; background: transparent; cursor: pointer; text-align: left; font: inherit; }
.reference-option:hover, .reference-option[aria-selected="true"] { outline: none; background: #ffffff12; }
.reference-option-mark { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: #c2b3ff; background: #8e73ff25; font-size: 12px; font-weight: 700; }
.reference-option-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.reference-option-copy strong, .reference-option-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reference-option-copy strong { color: #eeeaf5; font-size: 10px; font-weight: 600; }
.reference-option-copy small { color: #8d8697; font-size: 8px; }
.attach-button { width: 28px; height: 28px; flex: 0 0 auto; border: 0; border-radius: 8px; color: #9690a1; background: transparent; cursor: pointer; font-size: 19px; }
.attach-button:hover { color: white; background: #ffffff0a; }
.emoji-button { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; border: 0; border-radius: 8px; color: #9690a1; background: transparent; cursor: pointer; font-size: 18px; }
.emoji-button:hover, .emoji-button[aria-expanded="true"] { color: #e8deff; background: #ffffff0a; }
.emoji-picker { width: 264px; max-width: calc(100vw - 36px); position: absolute; z-index: 20; right: 45px; bottom: calc(100% + 9px); display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; padding: 8px; border: 1px solid #ffffff18; border-radius: 12px; background: #201d29; box-shadow: 0 14px 38px #0008; }
.emoji-picker[hidden] { display: none; }
.emoji-choice { width: 31px; height: 31px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 7px; color: inherit; background: transparent; cursor: pointer; font-size: 18px; }
.emoji-choice:hover, .emoji-choice:focus-visible { border-color: #ffffff18; outline: none; background: #ffffff12; }
.composer textarea { min-width: 0; max-height: 120px; flex: 1; resize: vertical; padding: 7px 2px; border: 0; outline: none; color: var(--text); background: transparent; font-size: 11px; line-height: 1.5; }
.send-button { width: 31px; height: 31px; flex: 0 0 auto; border: 0; border-radius: 9px; color: white; background: linear-gradient(145deg, #9275fa, #704ff0); cursor: pointer; font-size: 17px; font-weight: 700; }
.send-button:disabled { opacity: .45; cursor: default; }
.attachment-chip { max-width: 140px; align-self: center; overflow: hidden; color: #b6a8e9; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.composer-hint { width: calc(100% - 48px); display: flex; justify-content: space-between; margin: 7px auto 12px; color: #686371; font-size: 8px; }
.composer-hint b { color: #a58cfb; }

.modal { width: min(420px, calc(100vw - 30px)); max-width: 100%; padding: 28px; border: 1px solid #ffffff16; border-radius: 17px; color: var(--text); background: #1b1922; box-shadow: 0 25px 90px #0009; }
.modal-wide { width: min(520px, calc(100vw - 30px)); }
.settings-dialog { width: min(900px, calc(100vw - 30px)); }
.personal-settings-layout { min-height: min(570px, 68vh); display: grid; grid-template-columns: 156px minmax(0, 1fr); margin-top: 13px; overflow: hidden; border: 1px solid #ffffff10; border-radius: 12px; background: #17151d; }
.app-settings-nav { min-height: 0; display: flex; flex-direction: column; gap: 4px; padding: 11px 8px; border-right: 1px solid #ffffff10; background: #14121a; }
.app-settings-nav button { min-height: 37px; padding: 0 10px; border: 0; border-radius: 7px; color: #938c9e; background: transparent; cursor: pointer; text-align: left; font: inherit; font-size: 10px; }
.app-settings-nav button:hover { color: #e5e0eb; background: #ffffff08; }
.app-settings-nav button[aria-current="page"] { color: #e9e3ff; background: #8b6cff24; box-shadow: inset 2px 0 #9c83ff; }
.app-settings-nav-spacer { flex: 1; }
.app-settings-nav .settings-logout-button { margin-top: 10px; color: #ffabb2; }
.app-settings-nav .settings-logout-button:hover { color: #ffd9dc; background: #ef657414; }
.personal-settings-pages { min-width: 0; max-height: min(68vh, 570px); overflow: auto; padding: 16px 18px; scrollbar-color: #35313d transparent; scrollbar-width: thin; }
.personal-settings-page > h3 { margin: 0 0 8px; color: #f0ecf5; font-size: 14px; }
.personal-settings-page .stack-form { gap: 8px; }
.personal-settings-page .stack-form label, .personal-settings-page > label { margin-top: 4px; color: #aaa3b1; font-size: 9px; }
.personal-settings-page .stack-form input:not([type="file"]):not([type="color"]), .personal-settings-page .stack-form textarea, .device-select { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid #ffffff15; border-radius: 7px; outline: none; color: #e8e3ee; background: #100f15; font: inherit; font-size: 10px; }
.personal-settings-page .stack-form input:focus, .personal-settings-page .stack-form textarea:focus, .device-select:focus { border-color: #9c83ff80; }
.settings-description { margin: 3px 0 17px; color: #9993a2; font-size: 10px; line-height: 1.6; }
.settings-status { margin: -3px 0 0; color: #8cddb8; font-size: 9px; }
.settings-status:empty { display: none; }
.device-setting-group { display: flex; flex-direction: column; gap: 8px; margin: 0 0 13px; padding: 11px; border: 1px solid #ffffff10; border-radius: 9px; background: #ffffff03; }
.device-setting-group > label { margin: 0 !important; color: #c4bdcb !important; }
.device-level-control { display: grid; grid-template-columns: 92px minmax(70px, 1fr) 42px; align-items: center; gap: 8px; color: #9c95a4; font-size: 9px; }
.device-level-control label { margin: 0 !important; color: inherit !important; }
.device-level-control input[type="range"] { width: 100%; accent-color: #9c83ff; }
.device-level-control output { color: #d3c9e4; text-align: right; font-variant-numeric: tabular-nums; }
.device-meter-row { min-width: 0; display: grid; grid-template-columns: 78px minmax(70px, 1fr) 38px; align-items: center; gap: 8px; color: #8f8998; font-size: 9px; }
.device-peak-meter { width: 100%; height: 13px; accent-color: #9c83ff; }
.device-peak-meter::-webkit-meter-bar { border: 1px solid #ffffff12; border-radius: 999px; background: #0f0d14; }
.device-peak-meter::-webkit-meter-optimum-value { border-radius: 999px; background: #78d9b5; }
.device-peak-meter::-webkit-meter-suboptimum-value { border-radius: 999px; background: #e4bc60; }
.device-peak-meter::-webkit-meter-even-less-good-value { border-radius: 999px; background: #ef7884; }
.device-meter-row output { color: #c8c1d1; font-variant-numeric: tabular-nums; text-align: right; }
.device-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.device-status { min-height: 14px; margin: 10px 0 0; color: #817b89; font-size: 9px; line-height: 1.5; }
.camera-device-preview { width: min(100%, 420px); max-height: 280px; margin-top: 14px; border: 1px solid #ffffff15; border-radius: 9px; background: #0e0c12; object-fit: contain; }
.camera-device-preview[hidden] { display: none; }
.user-panel-top { gap: 5px; }
@media (max-width: 650px) {
  .settings-dialog { padding: 22px 16px 16px; }
  .personal-settings-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-settings-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #ffffff10; padding: 7px; }
  .app-settings-nav button { min-width: max-content; padding: 0 11px; }
  .app-settings-nav-spacer { display: none; }
  .app-settings-nav .settings-logout-button { margin-top: 0; margin-left: auto; }
  .personal-settings-pages { max-height: min(60vh, 500px); padding: 15px 12px; }
}
.modal::backdrop { background: #05040aab; backdrop-filter: blur(5px); }
.modal-close-form { position: absolute; top: 14px; right: 14px; }
.modal-close-form .icon-button { font-size: 20px; }
.modal-kicker { margin: 4px 0 11px; font-size: 9px; }
.modal-copy { margin: 8px 0 20px; color: #9993a2; font-size: 11px; line-height: 1.65; }
.mini-profile-dialog { width: min(410px, calc(100vw - 30px)); padding: 0; overflow: hidden; }
.mini-profile-dialog .modal-close-form { z-index: 3; top: 9px; right: 9px; }
.mini-profile-dialog .modal-close-form .icon-button { color: #fff; background: #100f15aa; }
.mini-profile-banner { height: 112px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--profile-color, #7357ff), #211e29 88%); }
.mini-profile-banner img { width: 100%; height: 100%; display: block; object-fit: cover; }
.mini-profile-body { padding: 0 22px 22px; }
.mini-profile-header { min-width: 0; position: relative; display: flex; align-items: flex-end; gap: 13px; margin-top: -34px; }
.mini-profile-avatar { width: 76px; height: 76px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border: 4px solid #1b1922; border-radius: 50%; color: #fff; background: var(--profile-color, #7357ff); font-size: 23px; font-weight: 750; }
.mini-profile-identity { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-bottom: 5px; }
.mini-profile-identity h2 { overflow: hidden; margin: 0; color: #f3eff8; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.mini-profile-identity > span, .mini-profile-status { overflow: hidden; color: #958e9f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.mini-profile-status { display: flex; align-items: center; gap: 6px; }
.mini-profile-status .presence-dot { width: 8px; height: 8px; position: static; border: 0; }
.mini-profile-role { color: #baaadf !important; }
.mini-profile-bio-section, .mini-profile-badges-section { margin-top: 16px; }
.mini-profile-bio-section h3, .mini-profile-badges-section h3 { margin: 0 0 7px; color: #aaa3b3; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.mini-profile-bio { margin: 0; color: #c6c0ce; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.mini-profile-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border: 1px solid #ffffff18; border-radius: 999px; font-size: 9px; font-weight: 650; }
.profile-badge-account-age { color: #d3c7ff; border-color: #9d83ff35; background: #8e73ff18; }
.profile-badge-account-age[data-level="2"] { color: #d5c8ff; border-color: #a78dff55; background: #8e73ff25; }
.profile-badge-account-age[data-level="3"] { color: #e6dfff; border-color: #baa5ff75; background: #8e73ff35; }
.profile-badge-account-age[data-level="4"] { color: #fff0bf; border-color: #dfbd6870; background: #c9a84922; }
.profile-badge-staff { color: #fff0c2; border-color: #e2c26670; background: #c39b321f; }
.mini-profile-social-section { margin-top: 19px; padding-top: 15px; border-top: 1px solid #ffffff12; }
.mini-profile-social-section h3 { margin: 0 0 10px; color: #aaa3b3; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.mini-profile-social-links { display: flex; flex-wrap: wrap; gap: 7px; }
.mini-profile-social-links a { padding: 6px 9px; border: 1px solid #ffffff14; border-radius: 7px; color: #cbbdff; background: #ffffff06; font-size: 9px; text-decoration: none; }
.mini-profile-social-links a:hover { color: #fff; background: #8e73ff20; }
.mini-profile-social-empty { color: #7f7889; font-size: 10px; }

.community-member-list { max-height: min(44vh, 360px); display: flex; flex-direction: column; gap: 7px; overflow: auto; padding-right: 2px; }
.community-member-row { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid #ffffff0d; border-radius: 9px; background: #ffffff04; }
.community-member-avatar-wrap { width: 32px; height: 32px; position: relative; display: block; flex: 0 0 auto; }
.community-member-avatar { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 50%; color: white; font-size: 11px; font-weight: 700; }
.community-member-avatar-wrap .presence-dot { width: 9px; height: 9px; border-color: #1b1922; }
.community-member-info { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 2px; }
.community-member-info strong { overflow: hidden; color: #ebe7f2; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.community-member-info span { overflow: hidden; color: #817b8a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.community-member-info .community-member-custom-status { color: #b8a9e0; }
.community-member-role { padding: 3px 7px; border: 1px solid color-mix(in srgb, var(--role-color, #9c83ff) 30%, transparent); border-radius: 999px; color: var(--role-color, #b9a9ff); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.member-role-select { max-width: 136px; min-width: 94px; height: 29px; padding: 0 7px; border: 1px solid #ffffff16; border-radius: 7px; color: #c9c2d3; background: #14121a; font-size: 9px; }
.member-role-assignment { min-width: 105px; position: relative; color: #c9c2d3; font-size: 9px; }
.member-role-assignment summary { width: max-content; max-width: 150px; padding: 6px 8px; border: 1px solid #ffffff16; border-radius: 7px; cursor: pointer; list-style-position: inside; }
.member-role-options { display: flex; flex-wrap: wrap; gap: 5px 10px; padding: 8px 2px 2px; }
.member-role-option { display: inline-flex; align-items: center; gap: 5px; margin: 0 !important; font-size: 9px; }
.member-role-option input { width: 13px; height: 13px; margin: 0; accent-color: #9c83ff; }
.member-remove-button { min-height: 29px; padding: 0 9px; border: 1px solid #ff858e35; border-radius: 7px; color: #ffb0b6; background: #ff858e0a; cursor: pointer; font-size: 9px; }
.member-remove-button:hover { background: #ff858e18; }
.community-options-layout { min-height: 390px; display: grid; grid-template-columns: 150px minmax(0, 1fr); margin-top: 13px; border: 1px solid #ffffff10; border-radius: 12px; overflow: hidden; background: #17151d; }
.community-options-nav { display: flex; flex-direction: column; gap: 4px; padding: 12px 8px; border-right: 1px solid #ffffff10; background: #14121a; }
.community-options-nav button { min-height: 36px; padding: 0 10px; border: 0; border-radius: 7px; color: #938c9e; background: transparent; cursor: pointer; text-align: left; font-size: 10px; }
.community-options-nav button:hover { color: #e5e0eb; background: #ffffff08; }
.community-options-nav button.is-active { color: #e9e3ff; background: #8b6cff24; box-shadow: inset 2px 0 #9c83ff; }
.community-options-pages { min-width: 0; max-height: min(60vh, 560px); overflow: auto; padding: 16px 18px; scrollbar-color: #35313d transparent; scrollbar-width: thin; }
.community-option-page > h3 { margin: 0 0 7px; color: #f0ecf5; font-size: 14px; }
.community-option-page .modal-copy { margin: 3px 0 13px; }
.community-options-pages .stack-form { gap: 8px; }
.community-options-pages .stack-form label, .role-field label { margin-top: 4px; color: #aaa3b1; font-size: 9px; }
.community-options-pages .stack-form input:not([type="file"]):not([type="color"]), .community-options-pages .stack-form textarea, .role-field input:not([type="color"]) { width: 100%; min-height: 34px; padding: 8px 10px; border: 1px solid #ffffff15; border-radius: 7px; outline: none; color: #e8e3ee; background: #100f15; font: inherit; font-size: 10px; }
.community-options-pages .stack-form textarea { min-height: 74px; resize: vertical; line-height: 1.5; }
.community-options-pages .stack-form input:focus, .community-options-pages .stack-form textarea:focus, .role-field input:focus { border-color: #9c83ff80; }
.community-options-pages .color-input { margin-top: 3px; }
.profile-bio-count { align-self: flex-end; margin-top: -7px; color: #777180; font-size: 9px; }
#profileBioInput { min-height: 82px; max-height: 180px; resize: vertical; }
.profile-sound-setting { display: flex; align-items: center; gap: 10px; margin: 7px 0 !important; padding: 9px 10px; border: 1px solid #ffffff10; border-radius: 8px; background: #ffffff03; cursor: pointer; }
.profile-sound-setting input[type="checkbox"] { width: 16px !important; height: 16px !important; min-height: 16px; flex: 0 0 auto; margin: 0; padding: 0; accent-color: #9b82ff; }
.profile-sound-setting > span { display: flex; flex-direction: column; gap: 3px; }
.profile-sound-setting strong { color: #d8d1e1; font-size: 10px; }
.profile-sound-setting small { color: #898291; font-size: 9px; font-weight: 400; }
.profile-desktop-notifications { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid #ffffff10; border-radius: 8px; background: #ffffff03; }
.profile-desktop-notifications > span { display: flex; flex-direction: column; gap: 3px; }
.profile-desktop-notifications strong { color: #d8d1e1; font-size: 10px; }
.profile-desktop-notifications small { color: #898291; font-size: 9px; }
.profile-notification-status { min-height: 12px; margin: -7px 0 0; color: #817b89; font-size: 9px; text-align: right; }
.profile-asset-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 3px; }
.profile-asset-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; padding: 10px; border: 1px solid #ffffff10; border-radius: 9px; background: #ffffff03; }
.profile-asset-field > label { margin: 0 !important; color: #c4bdcb !important; }
.profile-asset-preview { max-width: 100%; object-fit: cover; border: 1px solid #ffffff12; border-radius: 7px; background: #0e0c12; }
.profile-avatar-preview { width: 72px; height: 72px; border-radius: 50%; }
.profile-banner-preview { width: 100%; height: 68px; }
.profile-social-settings { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 7px 12px; margin: 8px 0 3px; padding: 12px; border: 1px solid #ffffff10; border-radius: 9px; background: #ffffff03; }
.profile-social-settings h4 { grid-column: 1 / -1; margin: 0 0 2px; color: #d7d0df; font-size: 11px; }
.profile-social-settings h4 span { color: #777180; font-size: 9px; font-weight: 400; }
.profile-social-settings label { margin: 0 !important; color: #aaa3b1 !important; font-size: 9px !important; }
.profile-social-settings input { height: 34px !important; min-height: 34px; padding: 6px 9px !important; font-size: 10px !important; }
.chat-header-fallback-settings, .channel-banner-field { display: flex; flex-direction: column; gap: 8px; margin: 7px 0 4px; padding: 10px; border: 1px solid #ffffff10; border-radius: 9px; background: #ffffff03; }
.chat-header-fallback-settings > label:first-child, .channel-banner-field > label { margin: 0 !important; color: #c4bdcb !important; }
.chat-header-gradient-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chat-header-gradient-fields label, .chat-header-fallback-settings > label:not(:first-child) { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.channel-banner-preview { height: 88px; }
.community-asset-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 7px 0 4px; }
.community-asset-field { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid #ffffff10; border-radius: 9px; background: #ffffff03; }
.community-asset-field > label { margin: 0 !important; color: #c4bdcb !important; }
.community-asset-preview { width: 100%; object-fit: cover; border: 1px solid #ffffff12; border-radius: 7px; background: #0e0c12; }
.community-icon-preview { width: 60px; height: 60px; border-radius: 50%; }
.community-banner-preview { height: 60px; }
.community-asset-actions { display: flex; align-items: center; gap: 8px; }
.asset-filename { overflow: hidden; color: #756e7c; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.small-button { min-height: 29px; padding: 0 9px; border: 1px solid #ffffff18; border-radius: 7px; color: #c6baff; background: #ffffff07; cursor: pointer; font-size: 9px; }
.small-button:hover { background: #ffffff11; }
.text-button { padding: 4px; border: 0; color: #a995a8; background: transparent; cursor: pointer; font-size: 9px; }
.text-button:hover { color: #ffb0b6; }
.community-member-list, .community-roles-list, .community-invites-list, .community-bans-list { max-height: min(44vh, 360px); display: flex; flex-direction: column; gap: 7px; overflow: auto; padding-right: 2px; }
.community-ban-row { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 9px; border: 1px solid #ffffff0d; border-radius: 9px; background: #ffffff04; }
.community-ban-identity { min-width: 120px; display: flex; flex: 1 1 150px; flex-direction: column; gap: 3px; }
.community-ban-identity strong { overflow: hidden; color: #e4dfea; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.community-ban-identity span, .community-ban-meta { overflow: hidden; color: #898291; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.community-ban-meta { max-width: 45%; flex: 1 1 100px; }
.community-member-row { min-width: 0; min-height: 52px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid #ffffff0d; border-radius: 9px; background: #ffffff04; }
.community-member-row .community-member-info { min-width: 90px; }
.community-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.community-section-heading h3 { margin: 0 0 5px; color: #f0ecf5; font-size: 14px; }
.community-role-row, .community-invite-row { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 9px; border: 1px solid #ffffff0d; border-radius: 9px; background: #ffffff04; }
.community-role-row.drop-target { border-color: #a995ff; background: #a995ff12; }
.community-role-row.is-dragging { opacity: .5; }
.role-drag-handle { flex: 0 0 auto; color: #8e8799; cursor: grab; font-size: 12px; letter-spacing: -3px; user-select: none; }
.role-drag-handle:active { cursor: grabbing; }
.community-role-row strong { flex: 1; color: #e5e0eb; font-size: 10px; }
.role-color-swatch { width: 12px; height: 12px; flex: 0 0 auto; border-radius: 50%; box-shadow: 0 0 0 3px #ffffff0b; }
.community-role-count { color: #827b8a; font-size: 8px; }
.role-visibility-toggle { display: inline-flex; align-items: center; gap: 5px; margin: 0 !important; color: #aaa4b1; font-size: 8px; white-space: nowrap; }
.role-visibility-toggle input { width: 13px; height: 13px; margin: 0; accent-color: #9c83ff; }
.role-order-controls { display: inline-flex; gap: 3px; }
.role-order-button { min-width: 25px; min-height: 24px; padding: 0 5px; }
.role-create-form { display: grid; grid-template-columns: minmax(150px, 1fr) 65px auto; align-items: end; gap: 9px; margin: 14px 0 10px; padding: 10px; border: 1px solid #ffffff10; border-radius: 9px; background: #ffffff03; }
.role-field { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.community-invite-row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(115px, 1fr) auto auto auto; }
.community-invite-code { overflow: hidden; color: #d2c6ff; font-size: 9px; text-overflow: ellipsis; }
.community-invite-meta { color: #8a8392; font-size: 8px; }
.invite-status { color: #958995; font-size: 8px; }
.invite-status.is-active { color: #8cddb8; }
.member-remove-button:disabled, .small-button:disabled { opacity: .55; cursor: wait; }
.color-input { width: 44px; height: 32px; padding: 2px; border: 1px solid #ffffff19; border-radius: 7px; background: #111016; cursor: pointer; }
.optional-label { color: #777180; font-weight: 400; }
.invite-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 11px; border: 1px solid #ffffff13; border-radius: 9px; background: #111016; }
.invite-box code { overflow: hidden; color: #d2c6ff; font-size: 12px; text-overflow: ellipsis; }
.toast { position: fixed; z-index: 10; right: 22px; bottom: 22px; max-width: min(360px, calc(100vw - 44px)); padding: 11px 14px; border: 1px solid #ffffff15; border-radius: 10px; opacity: 0; color: #eeeaf5; background: #282532; box-shadow: 0 12px 35px #0006; pointer-events: none; font-size: 11px; transform: translateY(6px); transition: opacity .18s, transform .18s; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  body { overflow: auto; }
  .topbar { height: 58px; padding: 0 15px; }
  .topbar-right { font-size: 9px; }
  .auth-layout { min-height: calc(100vh - 58px); grid-template-columns: 1fr; gap: 25px; padding: 38px 20px; }
  .hero-copy { padding: 0; }
  .hero-copy h1 { margin: 17px 0 13px; font-size: 52px; }
  .hero-description { font-size: 12px; }
  .hero-points { display: none; }
  .local-note { margin-top: 18px; }
  .auth-card { padding: 24px; }
  .app-shell { height: calc(100dvh - 58px); grid-template-columns: 60px 72px minmax(0, 1fr); grid-template-rows: 38px minmax(0, 1fr) auto; }
  .sidebar-navigation-tabs { gap: 0; padding: 0; }
  .sidebar-navigation-tab { min-height: 29px; padding: 0 2px; font-size: 7px; }
  .community-rail { gap: 8px; padding: 10px 4px 8px; }
  .rail-create-community { width: 42px; height: 42px; }
  .community-item { width: 44px; height: 44px; }
  .community-badge { width: 38px; height: 38px; border-radius: 50%; }
  .sidebar { padding: 0 8px 8px; }
  .channel-item { font-size: 10px; }
  .sidebar-community-banner { height: auto; min-height: 48px; margin: 0 -8px; }
  .sidebar-community-banner.has-banner-image { min-height: 0; }
  .sidebar-community-banner span { top: 5px; left: 6px; max-width: calc(100% - 12px); padding: 3px 4px; font-size: 9px; }
  .join-form, .section-heading > span { display: none; }
  .direct-message-sidebar-content .section-heading { justify-content: space-between; margin-top: 0; }
  .direct-message-sidebar-content .section-heading > span { display: block; font-size: 7px; }
  .section-heading { justify-content: center; margin-top: 12px; }
  .user-panel { flex-direction: column; align-items: stretch; gap: 3px; padding: 4px 3px; }
  .user-panel-top { justify-content: center; gap: 6px; }
  .user-meta { min-width: 0; align-items: flex-start; flex: 0 1 86px; }
  .user-meta strong { display: block; max-width: 86px; }
  .user-status-button { width: auto; height: auto; justify-content: flex-start; }
  .user-status-button #selfStatus { display: inline; }
  .user-panel-actions { flex-direction: row; justify-content: center; gap: 3px; padding-left: 0; }
  .user-voice-control { width: 25px; height: 25px; }
  .user-panel-actions .user-settings { width: 25px; height: 25px; }
  .chat-header { min-height: 63px; padding: 0 13px; }
  .chat-header-copy { gap: 7px; }
  .chat-header h2 { max-width: 45%; font-size: 14px; }
  .channel-description { max-width: 40vw; font-size: 8px; }
  .chat-header-actions { gap: 4px; }
  .chat-members-sidebar { width: 178px; min-width: 150px; padding: 12px 7px; }
  .chat-member-row { gap: 6px; padding: 5px 3px; }
  .chat-member-avatar-wrap, .chat-member-avatar { width: 24px; height: 24px; }
  .privacy-pill { display: none; }
  .button-quiet { padding: 0 8px; font-size: 9px; }
  .messages { padding: 16px 13px; }
  .composer, .composer-hint { width: calc(100% - 20px); }
  .composer-hint span:last-child { display: none; }
  .community-options-layout { grid-template-columns: minmax(0, 1fr); }
  .community-options-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #ffffff10; }
  .community-options-nav button { min-width: max-content; }
  .community-options-pages { max-height: 52vh; padding: 13px; }
  .community-asset-fields { grid-template-columns: 1fr; }
  .profile-asset-fields { grid-template-columns: 1fr; }
  .community-invite-row { grid-template-columns: minmax(90px, 1fr) auto auto; }
  .community-invite-meta { grid-column: 1 / -1; }
  .role-create-form { grid-template-columns: minmax(110px, 1fr) 58px auto; gap: 7px; padding: 8px; }
  .community-member-row .member-role-select { max-width: 112px; min-width: 90px; }
  .welcome-panel { width: calc(100% - 36px); }
  .welcome-panel h2 { font-size: 40px; }
}
