/* WifiCord Fluid 3.0 — tela principal (fase 1: só visual).
   Substitui o vidro fosco da tela principal pelo visual plano e escuro do protótipo.
   Escopo: tema "escuro" (padrão) dentro de #app-screen. Não altera login, perfil, modais,
   chamadas, lojas, jogos nem os outros temas. Para desligar: remova o <link> deste arquivo
   do index.html, ou use <html data-fluid="off">.
   Gerado a partir de fluid3.src.css (marcador html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) expandido para o escopo do tema escuro). */

/* ---------- Tokens (só dentro de #app-screen) ---------- */
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen{
  --fl-bg:#0B0E13;--fl-rail:#0F1319;--fl-input:#111720;--fl-surface:#1A232C;--fl-surface-2:#212C36;
  --fl-line:#1A2026;--fl-line-2:#263540;--fl-text:#E9F2F5;--fl-text-2:#9FB0BC;--fl-muted:#7F909C;
  --fl-accent:#09B9C9;--fl-accent-hover:#28CBD9;--fl-on-accent:#06181B;--fl-focus:rgba(9,185,201,.55);
  --fl-ease:cubic-bezier(.4,0,.2,1);--fl-spring:cubic-bezier(.34,1.3,.64,1);
  --bg-deepest:var(--fl-rail);--bg-dark:var(--fl-bg);--bg-main:var(--fl-bg);--bg-elevated:var(--fl-input);--bg-hover:var(--fl-surface);
  --text-primary:var(--fl-text);--text-secondary:var(--fl-text-2);--text-muted:var(--fl-muted);
  --accent-primary-start:var(--fl-accent);--accent-primary-end:var(--fl-accent);--accent-secondary:var(--fl-accent-hover);
  --accent-cyan:var(--fl-accent);--accent-violet-deep:#0A8F9C;
  --glass-bg:var(--fl-input);--glass-border:var(--fl-line);--glow-cyan:transparent;--glow-violet:transparent;
  --m-bg:var(--fl-bg);--m-surface:var(--fl-surface);--m-text:var(--fl-text);--m-muted:var(--fl-muted);
  --m-accent:var(--fl-accent);--m-line:var(--fl-line);
  --rd-purple:var(--fl-accent);--rd-purple-2:var(--fl-accent-hover);--rd-purple-3:var(--fl-accent-hover);--rd-purple-deep:#0A8F9C;--rd-border:var(--fl-line);
}

/* ---------- Superfícies planas (sem vidro) ---------- */
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen{background:var(--fl-bg)}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen #server-rail{background:var(--fl-rail)!important;border-color:var(--fl-line)!important;box-shadow:none!important;-webkit-backdrop-filter:none;backdrop-filter:none}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(#sidebar,#members-panel){background:var(--fl-bg)!important;border-color:var(--fl-line)!important;box-shadow:none!important;-webkit-backdrop-filter:none;backdrop-filter:none}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen #main-panel{background:var(--fl-bg)}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(#chat-header,.members-panel-header){background:var(--fl-bg)!important;border-color:var(--fl-line)!important;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen #chat-title{color:var(--fl-text)}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(.chat-title-sub,.sidebar-header-sub){color:var(--fl-muted)}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen #user-bar{background:var(--fl-rail);border:0;border-top:1px solid var(--fl-line);border-radius:0;margin:0;padding:10px}

/* ---------- Linhas de canais, amigos e configurações ---------- */
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(.friend-item,.channel-item,.settings-tab){
  border-color:transparent!important;border-radius:8px!important;background:transparent;color:var(--fl-text-2);box-shadow:none!important}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(.friend-item,.channel-item,.settings-tab):is(.active,[aria-selected=true]){
  background:var(--fl-surface)!important;border-color:transparent!important;color:var(--fl-text)!important;box-shadow:none!important}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(.friend-item,.channel-item) :is(.friend-name,.channel-name){color:inherit}
@media (hover:hover){
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(.friend-item,.channel-item,.settings-tab,.rail-btn):hover{background:var(--fl-surface)!important;color:var(--fl-text);box-shadow:none}
}

/* ---------- Barra de servidores ---------- */
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(.rail-btn,.server-item){background:var(--fl-surface);color:var(--fl-text-2);border:0!important;border-radius:16px!important;box-shadow:none!important}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .rail-btn-ghost{background:transparent;border:1px dashed var(--fl-line-2)!important;color:var(--fl-muted)}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(.rail-btn,.server-item):is(.active,.is-active){background:rgba(9,185,201,.14)!important;color:var(--fl-text);border-radius:12px!important;box-shadow:inset 0 0 0 1.5px var(--fl-accent)!important}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .server-item::before{background:var(--fl-accent)}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .rail-divider{background:var(--fl-line-2)}
@media (hover:hover){
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(.rail-btn,.server-item):hover{background:var(--fl-surface-2)!important;border-radius:12px!important;color:var(--fl-text)}
}

/* ---------- Botões: sem fundo claro nem borda branca ---------- */
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(.btn:not(.btn-primary):not(.btn-danger),.btn-icon){
  border:1px solid transparent;background:transparent;color:var(--fl-text-2);box-shadow:none}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .btn:not(.btn-primary):not(.btn-danger):not(.btn-icon){background:var(--fl-surface);color:var(--fl-text)}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(.btn-primary,.btn-primary:hover){border:0;background:var(--fl-accent);color:var(--fl-on-accent);box-shadow:none;filter:none}
@media (hover:hover){
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .btn:not(.btn-primary):not(.btn-danger):hover,
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .btn-icon:hover{background:var(--fl-surface-2);border-color:transparent;color:var(--fl-text);transform:none}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .btn-primary:hover{background:var(--fl-accent-hover);transform:none}
}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(.btn,.btn-icon):focus-visible{outline:2px solid var(--fl-focus);outline-offset:1px}

html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(.sidebar-header .btn-small,#add-friend-btn){color:var(--fl-on-accent);font-weight:600}

/* ---------- Mensagens e campo de escrever ---------- */
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .message-item:hover{background:rgba(255,255,255,.02)}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen #main-panel #messages-list .message-item:not(.own) .message-content:not(:has(.pingo-sticker)):not(:has(.code-preview-block)){
  background:var(--fl-input);border-color:var(--fl-line);box-shadow:none}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen #main-panel #messages-list .message-item.own .message-content:not(:has(.pingo-sticker)):not(:has(.code-preview-block)){
  background:#123138;border-color:rgba(9,185,201,.25);box-shadow:none}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(#message-form,.message-form){background:var(--fl-input);border:1px solid var(--fl-line-2);border-radius:12px;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(#message-form,.message-form):focus-within{border-color:var(--fl-focus)}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen #friend-search-input{background:var(--fl-input);border:1px solid var(--fl-line-2);color:var(--fl-text)}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen #friend-search-input:focus-visible{border-color:var(--fl-accent)!important;box-shadow:0 0 0 3px rgba(9,185,201,.16)!important}

/* ---------- Cartões da tela Início ---------- */
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(.home-welcome,.home-actions>button,.invite-card){background:var(--fl-input);border:1px solid var(--fl-line);box-shadow:none}
@media (hover:hover){
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .home-actions>button:hover{background-color:var(--fl-surface);border-color:var(--fl-line-2);transform:none}
}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(.popover,.emoji-popover,.user-bar-more-menu){background-color:var(--fl-input);border:1px solid var(--fl-line-2);-webkit-backdrop-filter:none;backdrop-filter:none}

/* ---------- Movimento (respeita "reduzir movimento") ---------- */
@media (prefers-reduced-motion:no-preference){
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(.friend-item,.channel-item,.settings-tab,.rail-btn,.btn,.btn-icon){
    transition:background-color 150ms var(--fl-ease),color 150ms var(--fl-ease),border-radius 180ms var(--fl-ease),box-shadow 180ms var(--fl-ease),transform 140ms var(--fl-spring)}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .server-item{transition:background-color 180ms var(--fl-ease),border-radius 180ms var(--fl-ease),box-shadow 180ms var(--fl-ease),transform .18s cubic-bezier(.2,.8,.2,1),opacity .18s ease}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(.btn,.btn-icon,.rail-btn):active{transform:scale(.94)}
}

/* ---------- Mobile ---------- */
@media (max-width:680px),(pointer:coarse) and (hover:none){
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen[data-mobile-route] #mobile-primary-nav{background:var(--fl-rail)!important;border-top:1px solid var(--fl-line)!important}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen[data-mobile-route] .mobile-primary-tab{position:relative!important;color:var(--fl-muted)!important;background:transparent!important;gap:3px!important;padding:5px 2px!important;border-radius:10px!important}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen[data-mobile-route] .mobile-primary-tab.is-active{color:var(--fl-accent)!important;background:transparent!important}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen[data-mobile-route] .mobile-primary-tab::before{display:block!important;content:""!important;position:absolute;top:1px;left:50%;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:transparent;transition:background-color 150ms var(--fl-ease)}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen[data-mobile-route] .mobile-primary-tab.is-active::before{background:var(--fl-accent)}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen[data-mobile-route] :is(.sidebar-header h2,.m-route-heading h1){font:600 20px/1.25 Inter,system-ui,sans-serif!important;letter-spacing:-.01em!important}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen[data-mobile-route] .channel-item{min-height:48px!important}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen[data-mobile-route] .friend-item{min-height:56px!important}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen[data-mobile-route] :is(.friend-item,.channel-item){border-radius:10px!important;border-color:transparent!important}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen[data-mobile-route] :is(.friend-item,.channel-item).active{background:var(--fl-surface)!important;border-color:transparent!important}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen[data-mobile-route] :is(button,[role=button]):focus-visible{outline:2px solid var(--fl-focus)!important;outline-offset:2px}
  @media (prefers-reduced-motion:no-preference){
    html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen[data-mobile-route] :is(.friend-item,.channel-item):active{background:var(--fl-surface)!important;transform:scale(.985)!important}
    html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen[data-mobile-route] .mobile-primary-tab{transition:color 150ms var(--fl-ease),transform 150ms var(--fl-spring)}
    html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen[data-mobile-route] .mobile-primary-tab:active{transform:scale(.9)}
  }
}

/* =====================================================================
   Rodada 2 — desenho das telas (desktop), menus e tela Início
   ===================================================================== */

/* Sem cantos chanfrados nem "cantos de mira" no hover (era o enfeite que aparecia no "+") */
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(.pm-chf,.btn,.btn-primary,.btn-ghost,.rail-btn,.server-item,.message-content,.friend-item,.channel-item,.composer-box,#chat-input,.message-form textarea){clip-path:none!important}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .pm-brk::before,
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .pm-brk::after{content:none!important;display:none!important}

/* Menus (campo de mensagem e cabeçalho) */
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen #message-form,
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen #chat-header{position:relative}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu{position:absolute;z-index:40;width:min(300px,calc(100vw - 32px));padding:8px;display:flex;flex-direction:column;gap:2px;
  background:var(--fl-surface);border:1px solid var(--fl-line-2);border-radius:16px;box-shadow:0 18px 44px rgba(0,0,0,.55),0 2px 0 rgba(255,255,255,.03) inset}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu[hidden]{display:none}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu-composer{left:12px;bottom:calc(100% + 12px);transform-origin:bottom left}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu-header{right:12px;top:calc(100% + 8px);transform-origin:top right;width:min(280px,calc(100vw - 32px))}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu-title{padding:6px 10px 8px;font:600 11px/1 Inter,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--fl-muted)}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu>button{display:flex!important;align-items:center;gap:12px;width:100%!important;height:auto!important;min-height:52px;min-width:0!important;padding:6px 10px 6px 6px!important;flex:0 0 auto!important;
  border:0!important;border-radius:12px!important;background:transparent;color:var(--fl-text);font:500 14px/1.25 Inter,system-ui,sans-serif;text-align:left;justify-content:flex-start!important;cursor:pointer;box-shadow:none}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu>button.hidden,
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu>button[hidden]{display:none!important}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu>button>svg{width:40px!important;height:40px!important;flex:0 0 40px!important;padding:10px;box-sizing:border-box;border-radius:11px;background:var(--fl-input);color:var(--fl-accent);transition:background 140ms ease,color 140ms ease}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu-text{display:flex;flex-direction:column;gap:3px;min-width:0}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu-text b{font-weight:600;font-size:14px;color:var(--fl-text)}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu-text small{font-size:12px;line-height:1.25;color:var(--fl-muted)}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu>button:is(:hover,:focus-visible){background:var(--fl-surface-2);outline:0}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu>button:is(:hover,:focus-visible)>svg{background:var(--fl-accent);color:var(--fl-on-accent)}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu>button:disabled{opacity:.45;cursor:not-allowed}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu>button.fl-danger>svg{color:#ff8a80}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu>button.fl-danger:is(:hover,:focus-visible)>svg{background:#ff6b5f;color:#1c0a08}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu>button.fl-danger .fl-menu-text b{color:#ffb4ab}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu::after{content:"";position:absolute;width:12px;height:12px;background:var(--fl-surface);border:1px solid var(--fl-line-2);border-width:0 1px 1px 0;transform:rotate(45deg)}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu-composer::after{left:18px;bottom:-7px}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu-header::after{right:14px;top:-7px;border-width:1px 0 0 1px}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen :is(.fl-plus,.fl-more)[aria-expanded=true]{color:var(--fl-accent);background:var(--fl-surface)}
html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-more[hidden]{display:none!important}
@media (prefers-reduced-motion:no-preference){
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-menu:not([hidden]){animation:fl-pop 140ms var(--fl-ease)}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-plus svg{transition:transform 180ms var(--fl-spring)}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .fl-plus[aria-expanded=true] svg{transform:rotate(45deg)}
}
@keyframes fl-pop{from{opacity:0;transform:scale(.96) translateY(4px)}to{opacity:1;transform:none}}

@media (min-width:681px){
  /* Painel de canais: título à esquerda, ações pequenas à direita */
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen #channels-panel .sidebar-header{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;min-height:56px;padding:0 10px 0 16px;border-bottom:1px solid var(--fl-line)}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen #channels-panel .sidebar-header h2{flex:1 1 auto;min-width:0;margin:0;font:600 15px/1.3 Inter,system-ui,sans-serif;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen #channels-panel .channel-header-actions{display:flex;align-items:center;gap:2px;flex:0 0 auto}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen #channels-panel .channel-header-actions .btn{width:32px;height:32px;min-width:0;padding:0!important;display:grid;place-items:center;border-radius:8px!important;background:transparent!important;color:var(--fl-text-2)!important}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen #add-channel-btn{font-size:0!important}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen #add-channel-btn::before{content:"+"!important;display:block!important;position:static;font-size:20px;font-weight:400;line-height:1;opacity:1;transform:none;color:inherit}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .sidebar-section h3{font:650 11px/1.3 Inter,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--fl-muted)}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .m-invite-details>summary{list-style:none;display:flex;align-items:center;gap:6px;padding:8px 10px;margin:0 8px;border-radius:8px;font:650 11px/1.3 Inter,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--fl-muted);cursor:pointer}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .m-invite-details>summary::-webkit-details-marker{display:none}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .m-invite-details>summary::before{content:"▸";font-size:10px}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .m-invite-details[open]>summary::before{content:"▾"}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .m-invite-details>summary:hover{color:var(--fl-text)}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .m-invite-details .sidebar-section h3{display:none}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .invite-card{border-radius:10px}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .invite-card-glow{display:none}

  /* Mensagens: as das outras pessoas ficam à ESQUERDA e as do próprio usuário à DIREITA
     (layout combinado). O visual "plano" tudo-à-esquerda foi removido; as cores das bolhas
     continuam vindo das regras de .message-content no início deste arquivo. */
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .message-item.own .message-time{color:var(--fl-muted)}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .message-item .message-time{color:var(--fl-muted);font-size:12px}
  html:is(:not([data-app-theme]),[data-app-theme="escuro"]):not([data-fluid="off"]) #app-screen .message-item:hover{background:rgba(255,255,255,.025)}
}

/* =====================================================================
   Tela Início — usa os tokens do tema ativo (vale em todos os temas)
   ===================================================================== */
#home-view{padding:0!important;scrollbar-gutter:stable}
#home-view .home-shell{max-width:1120px;margin:0 auto;padding:34px clamp(18px,3vw,40px) 56px;box-sizing:border-box}
#home-view .home-top{display:flex;align-items:flex-end;justify-content:space-between;gap:18px 24px;flex-wrap:wrap;padding-bottom:24px;border-bottom:1px solid var(--glass-border)}
#home-view .home-top-copy{display:flex;align-items:center;gap:18px;min-width:0}
#home-view .home-pingo{flex:0 0 auto;width:76px;height:76px;object-fit:contain}
#home-view .home-eyebrow{display:block;font:500 13px/1.2 var(--font-body);letter-spacing:0;color:var(--text-secondary)}
#home-view .home-eyebrow::first-letter{text-transform:uppercase}
#home-view .home-top h1{margin:10px 0 8px;max-width:none;font:650 clamp(26px,3.2vw,36px)/1.12 var(--font-body);letter-spacing:-.025em;color:var(--text-primary);overflow-wrap:anywhere}
#home-view #home-summary{margin:0;font-size:14px;line-height:1.5;color:var(--text-secondary)}
#home-view .home-quick{display:flex;gap:8px;flex-wrap:wrap}
#home-view .home-quick button{height:38px;padding:0 15px;border:1px solid var(--glass-border);border-radius:9px;background:var(--bg-elevated);color:var(--text-primary);font:600 13px/1 var(--font-body);cursor:pointer;transition:background-color .15s ease,border-color .15s ease,transform .14s cubic-bezier(.34,1.3,.64,1)}
#home-view .home-quick button:hover{background:var(--bg-hover)}
#home-view .home-quick button:active{transform:scale(.96)}
#home-view .home-quick .is-primary{background:var(--accent-primary-start);border-color:transparent;color:#06181B}
#home-view .home-quick .is-primary:hover{background:var(--accent-secondary)}
#home-view .home-cols{display:grid;grid-template-columns:minmax(0,1fr) 316px;align-items:start}
#home-view .home-main{min-width:0;padding:22px 28px 0 0;border-right:1px solid var(--glass-border)}
#home-view .home-side{min-width:0;padding:22px 0 0 28px;display:flex;flex-direction:column;gap:30px}
#home-view .home-section{margin:0}
#home-view .home-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 6px}
#home-view .home-section h2{margin:0;font:650 11px/1.3 var(--font-body);letter-spacing:.07em;text-transform:uppercase;color:var(--text-secondary)}
#home-view .home-section h2 span{margin-left:6px;color:var(--text-muted);font-variant-numeric:tabular-nums}
#home-view .home-section-heading>button,
#home-view #home-servers-section>button{padding:6px 8px;border:0;border-radius:6px;background:transparent;color:var(--accent-secondary);font:600 12px/1 var(--font-body);cursor:pointer}
#home-view .home-section-heading>button:hover,
#home-view #home-servers-section>button:hover{background:var(--bg-hover)}
#home-view .home-recent-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;align-items:center;gap:12px;width:100%;margin:0;padding:12px 10px;border:0;border-bottom:1px solid var(--glass-border);border-radius:10px;background:transparent;text-align:left;cursor:pointer;transition:background-color .15s ease}
#home-view .home-recent-row:hover{background:var(--bg-hover)}
#home-view .home-recent-copy{display:grid;gap:3px;min-width:0}
#home-view .home-recent-copy strong{font-size:15px;font-weight:600;color:var(--text-primary)}
#home-view .home-recent-copy small{font-size:13.5px;color:var(--text-secondary)}
#home-view .home-recent-row time{font-size:12px;color:var(--text-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
#home-view .home-row-arrow{opacity:0;color:var(--text-secondary);transition:opacity .15s ease}
#home-view .home-recent-row:hover .home-row-arrow{opacity:.8}
#home-view .home-recent-row .home-avatar{width:44px;height:44px}
#home-view .home-recent-row .home-avatar>:is(img,.avatar,.avatar-fallback,.avatar-decorated){width:44px!important;height:44px!important}
#home-view .home-online-grid{display:flex;flex-direction:column;gap:2px}
#home-view .home-friend{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:11px;row-gap:1px;align-items:center;width:100%;padding:8px 10px;border:0;border-radius:10px;background:transparent;cursor:pointer;transition:background-color .15s ease}
#home-view .home-friend:hover{background:var(--bg-hover)}
#home-view .home-friend .home-avatar{grid-row:1/3;width:36px;height:36px}
#home-view .home-friend .home-avatar>:is(img,.avatar,.avatar-fallback,.avatar-decorated){width:36px!important;height:36px!important}
#home-view .home-friend strong{align-self:end;font-size:14px;font-weight:600}
#home-view .home-friend small{align-self:start}
#home-view .home-server-row{display:flex;align-items:center;gap:12px;width:100%;margin:0;padding:8px 10px;border:0;border-radius:10px;background:transparent;color:var(--text-primary);text-align:left;cursor:pointer;transition:background-color .15s ease}
#home-view .home-server-row:hover{background:var(--bg-hover)}
#home-view .home-server-row>span:first-child{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:var(--bg-hover);color:var(--text-secondary);font-weight:700}
#home-view .home-server-row>span:last-child{margin-left:auto;color:var(--text-muted)}
#home-view .home-server-row strong{font-size:14px;font-weight:600}
#home-view #home-servers-section>button{margin-top:6px}
#home-view .home-placeholder{margin:0;padding:14px 10px;border:0;border-radius:0;background:none;color:var(--text-secondary);font-size:13.5px;line-height:1.6;text-align:left}
@media (max-width:900px){
  #home-view .home-cols{grid-template-columns:1fr}
  #home-view .home-main{padding:20px 0 0;border-right:0}
  #home-view .home-side{padding:26px 0 0;margin-top:26px;border-top:1px solid var(--glass-border)}
}
@media (max-width:680px){
  #home-view .home-shell{padding:22px 16px 32px}
  #home-view .home-pingo{width:56px;height:56px}
  #home-view .home-quick{width:100%}
  #home-view .home-quick button{flex:1 1 auto}
  #home-view .home-recent-row{grid-template-columns:auto minmax(0,1fr) auto auto}
  #home-view .home-row-arrow{display:none}
}
/* mobile-shell.css usa 2 ids + !important; este seletor precisa ser mais forte para o "⋯" ficar escondido no celular */
html #app-screen[data-mobile-route] #chat-header-actions>button.fl-more[hidden],html #app-screen #chat-header-actions>button.fl-more[hidden]{display:none!important}

/* ---------- Lista de servidores: arrastar sem puxar a imagem nem selecionar texto (todos os temas) ---------- */
#server-list .server-item,#server-list .server-item *{-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none}
#server-list .server-item img,#server-list .server-item svg{pointer-events:none}
html:has(#server-list .server-dragging),html:has(#server-list .server-dragging) *{-webkit-user-select:none!important;user-select:none!important;cursor:grabbing!important}
