/* Independently authored from the supplied layout references. No Micup artwork. */
:root{--bg:#0d0e11;--panel:#111218;--rail:#090a0d;--surface:#1c1d25;--hover:#262730;--line:#2a2b35;--text:#f3f3f6;--muted:#9698a6;--accent:#b18aff;--accent-strong:#9147ff;--control-brand:#9147ff;--control-brand-hover:#a260ff;--control-neutral:#25262e;--control-neutral-hover:#34353f;--shadow:0 24px 80px #0009;font-family:"Segoe UI",system-ui,sans-serif}
html[data-theme=light]{--bg:#f4f4f8;--panel:#fff;--rail:#e7e8ee;--surface:#eeeef5;--hover:#e2e2ec;--line:#d6d6e0;--text:#21212c;--muted:#636376}
.app-shell{grid-template-columns:64px 304px minmax(0,1fr) 248px}.app-shell.reference-members-visible,body.games-panel-hidden .app-shell.reference-members-visible{grid-template-columns:64px 304px minmax(0,1fr) 248px}.reference-members-visible>.activity-panel{display:none!important}.reference-members{min-height:0;overflow:hidden;display:flex;flex-direction:column;background:var(--panel);border-left:1px solid var(--line);padding:8px}.reference-members-head{display:flex;justify-content:space-between;align-items:center;padding:5px 6px 10px;font-size:12px}.reference-member-search{width:100%;height:32px;padding:6px 10px;font-size:11px;margin-bottom:6px}.reference-members>.field-hint{padding:0 7px;margin:0 0 8px;font-size:10px}.reference-member-list{overflow:auto;min-height:0;flex:1}.reference-role-group h3{font-size:10px;font-weight:600;color:var(--muted);letter-spacing:.3px;padding:14px 7px 7px;text-transform:uppercase}.reference-member-row{width:100%;display:flex;text-align:left;align-items:center;gap:9px;min-height:44px;border-radius:5px;background:transparent;padding:6px;color:var(--text)}.reference-member-row:hover{background:var(--hover)}.reference-member-row .avatar{width:32px;height:32px;min-width:32px;font-size:11px}.reference-member-row.offline{opacity:.55}.reference-member-info{display:flex;flex-direction:column;overflow:hidden;gap:3px}.reference-member-info strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reference-member-info small{font-size:9px;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.server-rail{padding:7px;gap:9px;border-right:1px solid var(--line)}.server-button{width:42px;height:42px;border-radius:13px;background:var(--surface);font-size:13px}.home-server{background:var(--surface)}.home-server img{width:31px;height:31px}.server-button.active:before{height:25px;left:-8px;width:3px}.server-list{gap:10px;max-height:calc(100dvh - 340px);overflow-y:auto;overflow-x:hidden;width:100%;scrollbar-width:none}.rail-divider{width:30px;margin:0}.server-button:hover{border-radius:11px;background:var(--accent-strong)}.add-server{background:transparent;color:var(--muted);border:1px dashed var(--line)}.rail-games,.reference-lounge-rail{background:transparent;border:1px solid var(--line)}.sidebar{background:var(--panel);border-right:1px solid var(--line)}.workspace-title,.chat-header{height:54px;min-height:54px;border-bottom:1px solid var(--line)}.workspace-title{padding:0 17px;font-size:14px}.workspace-badge{background:none;font-size:8px;color:var(--muted)}.reference-server-banner{height:108px;min-height:108px;position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;gap:5px;padding:16px;background:linear-gradient(140deg,#1b132f,#392754 50%,#101218);border-bottom:1px solid var(--line)}.reference-banner-grid{position:absolute;inset:0;z-index:-1;opacity:.3;background:repeating-linear-gradient(120deg,transparent 0 33px,#c9a7ff40 34px 35px);transform:scale(1.4) rotate(-7deg)}.reference-server-banner strong{font-size:18px;line-height:1.2;letter-spacing:-.5px}.reference-server-banner>span:last-child{font-size:10px;color:#d2c2e8}.sidebar-scroll{padding:8px}.sidebar-shortcuts{margin-bottom:14px}.sidebar-shortcut{padding:10px;font-size:12px;font-weight:500}.section-heading{margin:14px 0 6px;font-size:10px;letter-spacing:.2px;padding:0 10px}.channel-category{font-size:10px;padding:11px 8px 6px;text-transform:none;letter-spacing:.1px}.channel-button{padding:6px 9px;min-height:29px;font-size:12px;gap:8px;border-radius:5px}.channel-button.active{background:#26272f;color:#fff}.channel-button .ui-icon{width:17px;height:17px;color:var(--muted)}.friend-row{padding:7px 8px}.friend-row .avatar{border-radius:50%;width:31px;height:31px}.friend-info{font-size:12px}.avatar{border-radius:50%}.profile-bar{margin:5px;padding:9px 8px;border:1px solid var(--line);background:#15161d;border-radius:9px;min-height:56px}.profile-info strong{font-size:12px}.profile-info small{font-size:10px}.profile-bar .icon-button{width:30px;height:32px}.profile-bar .self-avatar{width:33px;height:33px}
.chat-area{background:var(--bg)}.chat-header{padding:0 17px;gap:11px;background:var(--panel)}.chat-header h2{font-size:13px;letter-spacing:0}.header-hash{font-size:23px}.chat-header p{font-size:10px;max-width:360px}.header-actions{gap:8px}.header-actions .icon-button{width:27px;height:30px}.reference-header-search{width:220px;height:32px;padding:7px 10px;background:var(--surface);font-size:11px}.header-actions #search-toggle{display:none}.messages{padding-top:15px}.message{padding:7px 22px;gap:15px}.message>.avatar{width:38px;height:38px}.message-author{font-size:13px}.message-meta time{font-size:10px}.message-text{font-size:var(--msg-size);line-height:1.5;color:var(--text)}.message-quick-actions{background:var(--surface);border:1px solid var(--line);border-radius:7px}.welcome-message{padding:20px 23px 25px}.chat-form{margin:8px 12px 0;background:var(--surface);border:1px solid var(--line);border-radius:9px;min-height:54px}.chat-form textarea{padding:13px 0;font-size:12px}.chat-form .icon-button{width:30px;height:31px}.compose-help{font-size:9px}.send-button{background:transparent!important;box-shadow:none!important;color:var(--accent)!important}.typing-indicator{font-size:10px}
.activity-panel{background:var(--panel);padding:19px 14px;border-left:1px solid var(--line)}.activity-panel h2{font-size:20px}.game-card{border-radius:8px!important;background:var(--surface)!important;border:1px solid var(--line);padding:17px;box-shadow:none!important}.game-card h3{font-size:14px}.game-card p{font-size:11px}.game-card-icon{font-size:29px}.button{border-radius:6px;min-height:34px;padding:8px 13px;font-size:12px;font-weight:650}.button.primary,.primary{background:var(--accent-strong)}.button:hover{transform:none}.secondary{background:var(--surface)}input,textarea,select{border-radius:6px;background:#101116;border-color:var(--line)}.dialog{border:1px solid var(--line);background:#16171e;border-radius:12px}.dialog::backdrop{background:#000b;backdrop-filter:blur(2px)}
.settings-dialog{width:min(1328px,96vw);height:min(920px,92dvh);border-radius:14px;background:#16171e;grid-template-columns:304px minmax(0,1fr);padding:0;box-shadow:0 30px 100px #0008}.settings-sidebar{width:304px;min-width:0;background:#111218;padding:15px 12px;border-right:1px solid var(--line);overflow:auto}.settings-sidebar h2{font-size:16px;margin:16px 10px}.settings-sidebar>.eyebrow{font-size:9px;letter-spacing:.4px;margin-top:12px}.reference-settings-search{width:100%;height:41px;font-size:11px;margin:0 0 10px;background:#101116}.settings-tab{min-height:36px;margin:3px 0;padding:10px 13px;font-size:11px;gap:10px;border-radius:6px;font-weight:500}.settings-tab .ui-icon{width:17px;height:17px}.settings-tab.active{background:#25262e;color:#f5f5f7}.settings-content{padding:0;background:#16171e;display:flex;flex-direction:column;min-height:0;overflow:hidden}.settings-content>.dialog-close-form{display:none}.reference-settings-heading{height:56px;min-height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 19px;border-bottom:1px solid var(--line);font-size:14px}.settings-scroll{padding:30px clamp(20px,5vw,100px);overflow:auto;min-height:0;flex:1}.settings-page>h2{font-size:20px;margin-bottom:22px}.settings-page>.eyebrow{display:none}.settings-content label{font-size:11px;color:var(--text);font-weight:600}.settings-content .field-hint{font-size:10px;line-height:1.5}.settings-content input:not([type=checkbox]):not([type=range]):not([type=color]),.settings-content select,.settings-content textarea{background:#101116;min-height:40px;border:1px solid var(--line)}.settings-content .switch-row{padding:13px;border-radius:7px;background:#1d1e26}.profile-editor{background:transparent;border:0;border-radius:0;padding:0}.profile-preview{top:0}.profile-card{border:1px solid var(--card-accent);border-radius:13px;box-shadow:none}.profile-cover{border-radius:12px 12px 0 0}.profile-card-body h2{font-size:19px}.profile-card-body h3{font-size:10px}.profile-card-body p{font-size:11px}.profile-card-body{padding:18px}.settings-footer{padding:8px 18px;background:#121319;border-top:1px solid var(--line);flex-shrink:0}.settings-save-bar{border-radius:6px;margin:0;background:transparent;box-shadow:none}.server-settings-tabs{padding:8px;background:var(--panel);border-radius:8px}
.reference-lounge-button{border:1px solid #a878ff66;background:#9147ff15;color:#d9c7ff}.reference-lounge-button .ui-icon{width:16px;height:16px}.media-stage{background:#07080b;border-color:var(--line)}.participant-tile{background:#171820;border-color:#30313c;border-radius:9px}.media-card{border-color:var(--line);border-radius:9px}.media-actions{gap:6px}.media-actions>.button{font-size:11px;padding:7px 10px}.stream-watch-poster{background:radial-gradient(ellipse at top,#45276b,#15141e 75%)}
.auth-screen{background:#0e0f14}.auth-art{background:radial-gradient(ellipse at 50% 45%,#382345,#14131b 70%)}.orbit-card{background:#20212b!important;border-color:#35313f;box-shadow:none;animation:none}.auth-card{padding:30px;background:#171820;border:1px solid var(--line);border-radius:12px;width:min(430px,100%)}.auth-card h2{font-size:28px}.auth-card>.eyebrow{font-size:9px}.auth-card input{background:#101116}.auth-card label{font-size:11px}.auth-note{font-size:9px}.auth-submit{background:#9147ff!important}.brand-mark{transform:none;border-radius:11px}.brand-dot{display:none}
#settings-modal.settings-dialog[open]{width:min(1328px,96vw);max-width:96vw;height:min(920px,92dvh);grid-template-columns:304px minmax(0,1fr)}#settings-modal .settings-sidebar{width:auto}#settings-modal .settings-sidebar>h2,#settings-modal .settings-sidebar>.eyebrow{display:none}.reference-settings-group{font-size:9px;color:var(--muted);margin:20px 10px 8px;font-weight:650;letter-spacing:.3px}.reference-server-selected .sidebar-shortcuts,.reference-server-selected .reference-home-only{display:none}.reference-server-selected .workspace-badge{display:none}.reference-workspace-menu{width:26px;height:26px}.workspace-title .reference-workspace-menu .ui-icon{width:17px;height:17px}.reference-server-selected .sidebar-scroll>.section-heading:first-of-type{margin-top:5px}#messages .avatar{border-radius:50%}.reference-member-row{cursor:pointer}.reference-members{min-width:0}.reference-member-row .profile-avatar-link{pointer-events:none}.lounge-join-row{display:flex;flex-wrap:wrap;gap:7px;padding:14px 0;border-bottom:1px solid var(--line)}.lounge-join-row>strong{width:100%;font-size:13px;margin-bottom:5px}.lounge-label.user-label.speaking{border-color:#50ce97;box-shadow:0 0 12px #50ce9766}@media(min-width:761px){#mobile-menu{display:none}}
@media(max-width:1200px){.app-shell,.app-shell.reference-members-visible,body.games-panel-hidden .app-shell.reference-members-visible{grid-template-columns:58px 264px minmax(0,1fr) 220px}.reference-header-search{width:150px}.header-divider,.chat-header p{display:none}.settings-dialog,#settings-modal.settings-dialog[open]{grid-template-columns:240px minmax(0,1fr)}.settings-sidebar{width:240px}.settings-scroll{padding:25px}.reference-members{padding:6px}}
@media(max-width:1000px){.app-shell,.app-shell.reference-members-visible,body.games-panel-hidden .app-shell.reference-members-visible{grid-template-columns:58px 250px minmax(0,1fr)}.reference-members{position:fixed;top:54px;bottom:0;right:0;width:245px;z-index:28;box-shadow:-10px 0 50px #0008}.reference-members-visible>.activity-panel{display:none!important}.reference-header-search{width:140px}.header-actions{gap:3px}}
@media(max-width:760px){.app-shell,.app-shell.reference-members-visible,body.games-panel-hidden .app-shell.reference-members-visible{grid-template-columns:54px minmax(0,1fr)}.sidebar{left:54px;width:285px}.server-rail{padding:7px 5px}.server-button{width:39px;height:39px}.reference-members{display:none}.reference-header-search{display:none}.header-actions #search-toggle{display:grid}.settings-dialog,#settings-modal.settings-dialog[open]{grid-template-columns:150px minmax(0,1fr);width:98vw;height:96dvh}.settings-sidebar{width:150px;padding:9px 6px}.settings-tab{font-size:10px;padding:9px 6px}.settings-scroll{padding:15px}.reference-settings-search{padding:7px;font-size:10px}.profile-preview{position:static}.reference-settings-heading{padding:0 12px}.chat-header{padding:0 10px}.message{padding:8px 12px}.media-actions{flex-wrap:wrap}.server-list{max-height:calc(100dvh - 315px)}}
.admin-purge-scopes{max-height:330px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:10px;margin:12px 0}.admin-purge-scopes label{display:flex;align-items:center;gap:9px;padding:8px;margin:0;border-radius:5px;font-size:12px}.admin-purge-scopes label:hover{background:var(--hover)}.admin-purge-dialog form{display:grid;gap:12px;margin-top:16px}.admin-purge-dialog form label{display:grid;gap:8px}
.member-tag{display:inline-block;vertical-align:middle;padding:2px 5px;margin-left:6px;border:1px solid #b18aff55;border-radius:4px;background:#9147ff16;color:#c7acff;font-size:9px;font-weight:700;line-height:1.2;letter-spacing:.4px}
/* Personal conversations and server channels have separate navigation surfaces. */
.app-shell:not(.reference-server-selected) .reference-server-only{display:none!important}
.reference-server-selected #friend-list,.reference-server-selected #request-list{display:none!important}
.direct-home-open .chat-form,.direct-home-open .composer-hint,.direct-home-open .history-load,.direct-home-open #typing-indicator,.direct-home-open #chat-moderation,.direct-home-open #reply-composer,.direct-home-open .draft-attachments,.direct-home-open #compose-permission,.direct-home-open #chat-search-wrap{display:none!important}
.direct-home-open #messages{flex:1}.direct-home-list{max-width:760px;margin:0 20px 25px}.direct-home-row{display:flex;align-items:center;gap:14px;width:100%;background:transparent;border:0;border-bottom:1px solid var(--line);padding:15px 10px;text-align:left;color:var(--text);border-radius:8px;cursor:pointer}.direct-home-row:hover{background:var(--surface)}.direct-home-row .friend-info{display:flex;flex:1;flex-direction:column;gap:5px}.direct-home-row small{color:var(--muted)}.direct-home-row>.ui-icon{width:20px;height:20px;color:var(--muted)}
