/*
  CV Chat: el aspecto del chat (colores, tipografia Inter y disposicion parecidos a Discord). Es parte del codigo de
  la app: lo cargan app.html e index.html despues de style.css, y va sobre la base "haven" de Haven (los colores en
  :root). Antes era un tema de archivo de Haven (/themes/discord-plus.theme.css, impuesto a todos con tema-fijo.js):
  desde el 4/12/2026 ya no pasa por el sistema de temas.

  Todo usa rem para que el zoom de Haven lo escale. Solo hay reglas de aspecto (colores, letras, espacios, bordes y el
  orden visual de los botones): ningun elemento de Haven se quita ni cambia de funcion.

  La barra de escribir "a lo Discord" usa la preferencia de Haven "barra compacta" (Ajustes): con ella activa queda +
  a la izquierda, y GIF y emoji a la derecha. Sin ella, la barra se ve como siempre, con estos colores.

  Fuente: Inter (SIL Open Font License), en public/fonts (NOTICE.txt).
*/

/* CV Chat: los colores del aspecto como variables (desde el 4/12/2026), por papel y por valor: --cv-<papel>-<color>.
   Papeles: fondo, texto, sobre-acento (texto blanco sobre un color de acento), borde, sombra, acento, barra (de
   desplazamiento) y color (el resto). Aca tienen el valor del tema de siempre ("oscuro"); un tema de CV Chat cambia
   las que quiera en css/cv-temas.css (por ejemplo, un tema claro: los fondos claros y los textos oscuros). */
:root {
  --cv-fondo-000000: #000;
  --cv-fondo-000000-45: rgba(0, 0, 0, 0.45);
  --cv-fondo-000000-55: rgba(0, 0, 0, 0.55);
  --cv-fondo-000000-60: rgba(0, 0, 0, 0.6);
  --cv-fondo-000000-65: rgba(0,0,0,0.65);
  --cv-fondo-000000-70: rgba(0, 0, 0, 0.7);
  --cv-fondo-000000-72: rgba(0,0,0,0.72);
  --cv-fondo-000000-75: rgba(0, 0, 0, 0.75);
  --cv-fondo-000000-80: rgba(0, 0, 0, 0.8);
  --cv-fondo-000000-85: rgba(0, 0, 0, 0.85);
  --cv-fondo-00a8fc-18: rgba(0, 168, 252, 0.18);
  --cv-fondo-020202-06: rgba(2, 2, 2, 0.06);
  --cv-fondo-070b12: #070b12;
  --cv-fondo-0d1410: #0d1410;
  --cv-fondo-111113: #111113;
  --cv-fondo-111114: #111114;
  --cv-fondo-111214: #111214;
  --cv-fondo-111214-75: rgba(17, 18, 20, 0.75);
  --cv-fondo-111214-95: rgba(17, 18, 20, 0.95);
  --cv-fondo-121214: #121214;
  --cv-fondo-19181c: #19181c;
  --cv-fondo-1a191e: #1a191e;
  --cv-fondo-1a1a1e: #1a1a1e;
  --cv-fondo-1a6334: #1a6334;
  --cv-fondo-1abc9c-20: rgba(26, 188, 156, 0.2);
  --cv-fondo-1b3326: #1b3326;
  --cv-fondo-1c3324: #1c3324;
  --cv-fondo-1e1e22: #1e1e22;
  --cv-fondo-1e1e22-85: rgba(30, 30, 34, 0.85);
  --cv-fondo-1e1e22-92: rgba(30, 30, 34, 0.92);
  --cv-fondo-1e1f22: #1e1f22;
  --cv-fondo-1f1c14: #1f1c14;
  --cv-fondo-1f1d22: #1f1d22;
  --cv-fondo-1f2033: #1f2033;
  --cv-fondo-1f4d36: #1f4d36;
  --cv-fondo-202024: #202024;
  --cv-fondo-222126: #222126;
  --cv-fondo-222226: #222226;
  --cv-fondo-222327: #222327;
  --cv-fondo-232228: #232228;
  --cv-fondo-232327: #232327;
  --cv-fondo-232328: #232328;
  --cv-fondo-23a55a: #23a55a;
  --cv-fondo-23a55a-08: rgba(35, 165, 90, 0.08);
  --cv-fondo-23a55a-20: rgba(35, 165, 90, 0.2);
  --cv-fondo-242429: #242429;
  --cv-fondo-248046: #248046;
  --cv-fondo-252429: #252429;
  --cv-fondo-26252a: #26252a;
  --cv-fondo-26252b: #26252b;
  --cv-fondo-29292d: #29292d;
  --cv-fondo-29292e: #29292e;
  --cv-fondo-2a2350: #2a2350;
  --cv-fondo-2a2a2e: #2a2a2e;
  --cv-fondo-2b2a30: #2b2a30;
  --cv-fondo-2b2a31: #2b2a31;
  --cv-fondo-2b2d2c: #2b2d2c;
  --cv-fondo-2b2d31: #2b2d31;
  --cv-fondo-2c2c30: #2c2c30;
  --cv-fondo-2e2d32: #2e2d32;
  --cv-fondo-2e2d33: #2e2d33;
  --cv-fondo-2f2f34: #2f2f34;
  --cv-fondo-333237: #333237;
  --cv-fondo-343338: #343338;
  --cv-fondo-35343a: #35343a;
  --cv-fondo-35373c: #35373c;
  --cv-fondo-36353b: #36353b;
  --cv-fondo-3a1d1f: #3a1d1f;
  --cv-fondo-3a2a06: #3a2a06;
  --cv-fondo-3a2a1a: #3a2a1a;
  --cv-fondo-3a3214: #3a3214;
  --cv-fondo-3a3940: #3a3940;
  --cv-fondo-3a3a3f: #3a3a3f;
  --cv-fondo-3a3a40: #3a3a40;
  --cv-fondo-3a3c42: #3a3c42;
  --cv-fondo-3b2f0b: #3b2f0b;
  --cv-fondo-3b3a40: #3b3a40;
  --cv-fondo-3ba55c-18: rgba(59, 165, 92, 0.18);
  --cv-fondo-3c3b41: #3c3b41;
  --cv-fondo-3c3c42-95: rgba(60, 60, 66, 0.95);
  --cv-fondo-3d1a1c: #3d1a1c;
  --cv-fondo-3f3e44: #3f3e44;
  --cv-fondo-43424a: #43424a;
  --cv-fondo-4752c4: #4752c4;
  --cv-fondo-4a4950: #4a4950;
  --cv-fondo-4a4a55: #4a4a55;
  --cv-fondo-4e5058: #4e5058;
  --cv-fondo-4e5bd6: #4e5bd6;
  --cv-fondo-5865f2: #5865f2;
  --cv-fondo-5865f2-08: rgba(88, 101, 242, 0.08);
  --cv-fondo-5865f2-10: rgba(88, 101, 242, 0.1);
  --cv-fondo-5865f2-12: rgba(88, 101, 242, 0.12);
  --cv-fondo-5865f2-14: rgba(88, 101, 242, 0.14);
  --cv-fondo-5865f2-15: rgba(88, 101, 242, 0.15);
  --cv-fondo-5865f2-18: rgba(88, 101, 242, 0.18);
  --cv-fondo-5865f2-20: rgba(88, 101, 242, 0.2);
  --cv-fondo-5865f2-28: rgba(88, 101, 242, 0.28);
  --cv-fondo-5865f2-30: rgba(88, 101, 242, 0.3);
  --cv-fondo-6d6f78: #6d6f78;
  --cv-fondo-7850dc-10: rgba(120, 80, 220, 0.10);
  --cv-fondo-80848e: #80848e;
  --cv-fondo-96969e: #96969e;
  --cv-fondo-a12829: #a12829;
  --cv-fondo-a243c9: #a243c9;
  --cv-fondo-a855f7-20: rgba(168, 85, 247, 0.2);
  --cv-fondo-b5bac1: #b5bac1;
  --cv-fondo-b9577d: #b9577d;
  --cv-fondo-d4245f: #d4245f;
  --cv-fondo-d8336f: #d8336f;
  --cv-fondo-da373c: #da373c;
  --cv-fondo-dbdee1: #dbdee1;
  --cv-fondo-e0a83a: #e0a83a;
  --cv-fondo-e0a83a-10: rgba(224, 168, 58, 0.10);
  --cv-fondo-e0a83a-16: rgba(224, 168, 58, 0.16);
  --cv-fondo-e63e7b: #e63e7b;
  --cv-fondo-e91e63-12: rgba(233, 30, 99, 0.12);
  --cv-fondo-e91e63-15: rgba(233, 30, 99, 0.15);
  --cv-fondo-eb459e-20: rgba(235, 69, 158, 0.2);
  --cv-fondo-ee2d6f: #ee2d6f;
  --cv-fondo-ee2d6f-06: rgba(238, 45, 111, 0.06);
  --cv-fondo-ee2d6f-12: rgba(238, 45, 111, 0.12);
  --cv-fondo-ee2d6f-22: rgba(238, 45, 111, 0.22);
  --cv-fondo-f0b232: #f0b232;
  --cv-fondo-f0b232-12: rgba(240, 178, 50, 0.12);
  --cv-fondo-f0b232-18: rgba(240, 178, 50, 0.18);
  --cv-fondo-f0b232-22: rgba(240, 178, 50, 0.22);
  --cv-fondo-f0b232-30: rgba(240, 178, 50, 0.3);
  --cv-fondo-f1e4e9: #f1e4e9;
  --cv-fondo-f23f43: #f23f43;
  --cv-fondo-f23f43-10: rgba(242, 63, 67, 0.1);
  --cv-fondo-f23f43-14: rgba(242, 63, 67, 0.14);
  --cv-fondo-f23f43-18: rgba(242, 63, 67, 0.18);
  --cv-fondo-f2f3f5: #f2f3f5;
  --cv-fondo-fbfbfb: #fbfbfb;
  --cv-fondo-ff5c93: #ff5c93;
  --cv-fondo-ffffff: #fff;
  --cv-fondo-ffffff-03: rgba(255, 255, 255, 0.025);
  --cv-fondo-ffffff-05: rgba(255, 255, 255, 0.05);
  --cv-fondo-ffffff-06: rgba(255,255,255,0.06);
  --cv-fondo-ffffff-10: rgba(255, 255, 255, 0.1);
  --cv-fondo-ffffff-45: rgba(255,255,255,0.45);
  --cv-fondo-ffffff-85: rgba(255, 255, 255, 0.85);
  --cv-texto-00a8fc: #00a8fc;
  --cv-texto-121214: #121214;
  --cv-texto-1a191e: #1a191e;
  --cv-texto-1a1a1e: #1a1a1e;
  --cv-texto-23a55a: #23a55a;
  --cv-texto-2a1d05: #2a1d05;
  --cv-texto-2b2a30: #2b2a30;
  --cv-texto-2dc770: #2dc770;
  --cv-texto-3ba55d: #3ba55d;
  --cv-texto-57d38c: #57d38c;
  --cv-texto-57f287: #57f287;
  --cv-texto-5865f2: #5865f2;
  --cv-texto-5c5e66: #5c5e66;
  --cv-texto-6d6f78: #6d6f78;
  --cv-texto-6d7179: #6d7179;
  --cv-texto-6fd49a: #6fd49a;
  --cv-texto-7ee2a8: #7ee2a8;
  --cv-texto-7fd6a2: #7fd6a2;
  --cv-texto-80848e: #80848e;
  --cv-texto-81828a: #81828a;
  --cv-texto-8e9297: #8e9297;
  --cv-texto-8ea1ff: #8ea1ff;
  --cv-texto-8ee6d2: #8ee6d2;
  --cv-texto-949ba4: #949ba4;
  --cv-texto-949cf7: #949cf7;
  --cv-texto-96969e: #96969e;
  --cv-texto-9ed8fd: #9ed8fd;
  --cv-texto-a3a6ad: #a3a6ad;
  --cv-texto-b5bac1: #b5bac1;
  --cv-texto-c9ccd1: #c9ccd1;
  --cv-texto-c9cdfb: #c9cdfb;
  --cv-texto-c9e6d4: #c9e6d4;
  --cv-texto-d4d8fd: #d4d8fd;
  --cv-texto-d6cfbd: #d6cfbd;
  --cv-texto-dbdee1: #dbdee1;
  --cv-texto-dcc0fc: #dcc0fc;
  --cv-texto-dcefe3: #dcefe3;
  --cv-texto-dee0fc: #dee0fc;
  --cv-texto-e0d4ff: #e0d4ff;
  --cv-texto-ee2d6f: #ee2d6f;
  --cv-texto-efeff1: #efeff1;
  --cv-texto-f0a0a0: #f0a0a0;
  --cv-texto-f0b232: #f0b232;
  --cv-texto-f0c36a: #f0c36a;
  --cv-texto-f0c96a: #f0c96a;
  --cv-texto-f23f43: #f23f43;
  --cv-texto-f2777a: #f2777a;
  --cv-texto-f2f3f5: #f2f3f5;
  --cv-texto-f3cd7a: #f3cd7a;
  --cv-texto-f48fb1: #f48fb1;
  --cv-texto-f6b0d6: #f6b0d6;
  --cv-texto-f8a5a7: #f8a5a7;
  --cv-texto-f8d36a: #f8d36a;
  --cv-texto-fbfbfb: #fbfbfb;
  --cv-texto-ff6b2c: #ff6b2c;
  --cv-texto-ff6b6e: #ff6b6e;
  --cv-texto-ff7a7d: #ff7a7d;
  --cv-texto-fff3c4: #fff3c4;
  --cv-texto-ffffff: #fff;
  --cv-texto-ffffff-92: rgba(255, 255, 255, 0.92);
  --cv-sobre-acento-ffffff: #fff;
  --cv-borde-121214: #121214;
  --cv-borde-1a1a1e: #1a1a1e;
  --cv-borde-1abc9c-50: rgba(26, 188, 156, 0.5);
  --cv-borde-1e1e22: #1e1e22;
  --cv-borde-232226: #232226;
  --cv-borde-232228: #232228;
  --cv-borde-232327: #232327;
  --cv-borde-23a55a: #23a55a;
  --cv-borde-252429: #252429;
  --cv-borde-29292d: #29292d;
  --cv-borde-2a2a30: #2a2a30;
  --cv-borde-2b2a30: #2b2a30;
  --cv-borde-2b2b30: #2b2b30;
  --cv-borde-2c2b31: #2c2b31;
  --cv-borde-2e2d32: #2e2d32;
  --cv-borde-2e2d33: #2e2d33;
  --cv-borde-2f2e35: #2f2e35;
  --cv-borde-3a3940: #3a3940;
  --cv-borde-3a3a3f: #3a3a3f;
  --cv-borde-3a3f8f: #3a3f8f;
  --cv-borde-3b3a3f: #3b3a3f;
  --cv-borde-3c3a6b: #3c3a6b;
  --cv-borde-3f3f46: #3f3f46;
  --cv-borde-3f4147: #3f4147;
  --cv-borde-4e4d55: #4e4d55;
  --cv-borde-4e5058: #4e5058;
  --cv-borde-5865f2: #5865f2;
  --cv-borde-5c5e66: #5c5e66;
  --cv-borde-6b5212: #6b5212;
  --cv-borde-96969e: #96969e;
  --cv-borde-da373c: #da373c;
  --cv-borde-e0a83a-35: rgba(224, 168, 58, 0.35);
  --cv-borde-ee2d6f: #ee2d6f;
  --cv-borde-ee2d6f-25: rgba(238, 45, 111, 0.25);
  --cv-borde-ee2d6f-55: rgba(238, 45, 111, 0.55);
  --cv-borde-f0b232: #f0b232;
  --cv-borde-f0b232-45: rgba(240, 178, 50, 0.45);
  --cv-borde-f23f43: #f23f43;
  --cv-borde-f23f43-45: rgba(242, 63, 67, 0.45);
  --cv-borde-f23f43-50: rgba(242, 63, 67, 0.5);
  --cv-borde-fbfbfb: #fbfbfb;
  --cv-borde-ffffff-08: rgba(255, 255, 255, 0.08);
  --cv-borde-ffffff-12: rgba(255, 255, 255, 0.12);
  --cv-borde-ffffff-18: rgba(255,255,255,0.18);
  --cv-sombra-000000-25: rgba(0, 0, 0, 0.25);
  --cv-sombra-000000-35: rgba(0, 0, 0, 0.35);
  --cv-sombra-000000-40: rgba(0, 0, 0, 0.4);
  --cv-sombra-000000-45: rgba(0, 0, 0, 0.45);
  --cv-sombra-000000-50: rgba(0, 0, 0, 0.5);
  --cv-sombra-000000-55: rgba(0,0,0,0.55);
  --cv-sombra-000000-60: rgba(0, 0, 0, 0.6);
  --cv-sombra-121214: #121214;
  --cv-sombra-1a191e: #1a191e;
  --cv-sombra-1e1f22: #1e1f22;
  --cv-sombra-23a55a: #23a55a;
  --cv-sombra-23a55a-35: rgba(35, 165, 90, 0.35);
  --cv-sombra-2e2d32: #2e2d32;
  --cv-sombra-3a3214: #3a3214;
  --cv-sombra-3b3a3f: #3b3a3f;
  --cv-sombra-4e5058: #4e5058;
  --cv-sombra-5865f2: #5865f2;
  --cv-sombra-5865f2-25: rgba(88, 101, 242, 0.25);
  --cv-sombra-66c0f4: #66c0f4;
  --cv-sombra-e91e63-50: rgba(233, 30, 99, 0.5);
  --cv-sombra-ee2d6f-00: rgba(238, 45, 111, 0);
  --cv-sombra-ee2d6f-15: rgba(238, 45, 111, 0.15);
  --cv-sombra-ee2d6f-35: rgba(238, 45, 111, 0.35);
  --cv-sombra-ee2d6f-50: rgba(238, 45, 111, 0.5);
  --cv-sombra-ee2d6f-55: rgba(238, 45, 111, 0.55);
  --cv-sombra-f0b232: #f0b232;
  --cv-acento-23a55a: #23a55a;
  --cv-acento-4752c4: #4752c4;
  --cv-acento-5865f2: #5865f2;
  --cv-acento-81828a: #81828a;
  --cv-acento-f0b232: #f0b232;
  --cv-acento-f23f43: #f23f43;
  --cv-barra-29292d: #29292d;
  --cv-barra-2e2d32: #2e2d32;
  --cv-barra-3a3940: #3a3940;
  --cv-color-1a1a1e: #1a1a1e;
  --cv-color-29292e: #29292e;
}

/* block: el texto espera la letra (app.html e index.html la piden de entrada) en vez de
   mostrarse con otra y cambiar, que reacomodaba apenas todo el chat al abrir */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ── Fondos, por capas como Discord ─────────────── */
  /* Colores medidos en Discord (tema oscuro actual, 2025-2026). */
  --bg-primary:    var(--cv-fondo-1a1a1e);   /* chat, barra superior, panel derecho */
  --bg-secondary:  var(--cv-fondo-121214);   /* barra de servidores y lista de canales */
  --bg-tertiary:   var(--cv-fondo-222327);   /* campos, citas, botones */
  --bg-hover:      var(--cv-fondo-232327);
  --bg-active:     var(--cv-fondo-2c2c30);
  --bg-input:      var(--cv-fondo-222327);
  --bg-card:       var(--cv-fondo-222327);   /* vistas previas, menus, ventanas */

  --accent:        var(--cv-acento-5865f2);
  --accent-hover:  var(--cv-acento-4752c4);
  --accent-dim:    var(--cv-acento-4752c4);
  --accent-glow:   var(--cv-sombra-5865f2-25);
  --accent-text:   var(--cv-texto-ffffff);

  --text-primary:  var(--cv-texto-efeff1);
  --text-secondary:var(--cv-texto-b5bac1);
  --text-muted:    var(--cv-texto-81828a);
  --text-link:     var(--cv-texto-00a8fc);

  --border:        var(--cv-borde-29292d);
  --border-light:  var(--cv-borde-3a3a3f);

  --success:       var(--cv-acento-23a55a);
  --danger:        var(--cv-acento-f23f43);
  --warning:       var(--cv-acento-f0b232);
  --led-on:        var(--cv-acento-23a55a);
  --led-off:       var(--cv-acento-81828a);
  --led-glow:      var(--cv-sombra-23a55a-35);

  /* Emojis como en Discord: Twemoji (la trae Haven, 'Haven Emoji') antes que los
     del sistema, en todos los dispositivos y sin cuadraditos en los nuevos */
  --font-main:     'Inter', 'Haven Emoji', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading:  'Inter', 'Haven Emoji', 'Segoe UI', system-ui, sans-serif;
  --font-emoji:    'Haven Emoji', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji';

  --radius:        8px;
  --radius-sm:     4px;
  --theme-logo:    "⬡";
  --msg-glow:      none;
  --scanline:      none;
}

body { font-family: var(--font-main); -webkit-font-smoothing: antialiased; }

/* ── Capas de fondo ────────────────────────────────── */
[data-haven-region="server-rail"] { background: var(--cv-fondo-121214); }
[data-haven-region="navigation-sidebar"] { background: var(--cv-fondo-121214); }
[data-haven-region="main"], [data-haven-region="message-area"] { background: var(--cv-fondo-1a1a1e); }
[data-haven-region="context-sidebar"] { background: var(--cv-fondo-1a1a1e); border-left: 1px solid var(--cv-borde-29292d); }

/* ── Lista de canales ──────────────────────────────── */
.channel-item {
  font-style: normal;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-radius: 4px;
  margin: 1px 0.5rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  min-height: 0;
}
.channel-item * { font-style: normal; }
.channel-item .channel-name { color: inherit; font-weight: inherit; }
.channel-item .channel-hash { color: var(--cv-texto-81828a); font-weight: 400; }
.channel-item:hover { background: var(--bg-hover); color: var(--cv-texto-efeff1); }
.channel-item.active, .channel-item.active:hover { background: var(--bg-active); color: var(--cv-texto-ffffff); }
.channel-item.unread, .channel-item.has-unread { color: var(--cv-texto-fbfbfb); font-weight: 600; }

/* Haven pone en cursiva y semitransparentes los canales privados. Con el
   puente en modo migracion todos los canales de Discord son privados en Haven,
   asi que se ven normales, como en Discord. */
.channel-item.private-channel .channel-name,
.channel-item.private-channel .channel-hash { font-style: normal; opacity: 1; font-size: inherit; }
/* Los creados en CV Chat (como #bienvenida) no son privados: el mismo tamaño de letra que los demas */
.channel-item:not(.private-channel) .channel-name { font-size: inherit; }

/* Categorias de canales: texto chico en mayusculas, sin recuadro (los estilos
   en linea del renderer de Haven obligan a usar !important) */
.category-label, .category-label.cat-pill {
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 1rem 0.5rem 0.25rem 0.75rem !important;
  opacity: 1 !important;
  font-family: var(--font-main);
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  color: var(--text-muted) !important;
}
.category-label:hover, .category-label.cat-pill:hover { color: var(--cv-texto-efeff1) !important; }
.category-label.cat-pill.cat-collapsed { color: var(--text-muted) !important; }
.category-label .cat-collapse-arrow { font-size: 0.625rem; margin-right: 0.25rem; }
.category-tabs .category-label.cat-pill { padding: 0.25rem 0.5rem !important; }

/* Categorias de mensajes directos */
.dm-category-header {
  background: none;
  border: 0;
  box-shadow: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  padding: 1rem 0.5rem 0.25rem 1rem;
}
.dm-category-header:hover { color: var(--cv-texto-efeff1); }

/* "Unirse a un canal" y "Crear canal": Discord no los tiene. Se ocultan solo a
   la vista (los enlaces de invitacion siguen funcionando, y con el tema
   original de Haven vuelven a aparecer). */
[data-haven-region="join-channel"], [data-haven-region="create-channel"] { display: none !important; }

/* ── Panel de usuario abajo, como Discord (solo en pantallas grandes) ── */
@media (min-width: 769px) {
  [data-haven-region="navigation-sidebar"] { position: relative; }
  [data-haven-region="navigation-sidebar"] .sidebar-header { position: static; }
  [data-haven-region="account"] {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    height: 3.25rem;
    margin: 0;
    padding: 0 0.5rem 0 0.75rem;
    border: 0;
    border-radius: 0;
    background: var(--cv-fondo-202024);
    box-shadow: none;
  }
  [data-haven-region="account"] .current-user { color: var(--cv-texto-fbfbfb); font-weight: 600; font-size: 0.875rem; }
  [data-haven-region="account"] .login-name { color: var(--text-muted); font-size: 0.75rem; }
  [data-haven-region="account"] .icon-btn { color: var(--cv-texto-b5bac1); opacity: 0.85; }
  [data-haven-region="account"] .icon-btn:hover { opacity: 1; background: var(--cv-fondo-29292d); }
  /* La fila de botones (temas, actividades, miembros...) queda justo encima */
  [data-haven-region="sidebar-footer"] { padding-bottom: 3.25rem; background: var(--cv-fondo-121214); border-top: 0; }
  [data-haven-region="sidebar-actions"] { background: var(--cv-fondo-121214); border-top: 1px solid var(--cv-borde-29292d); }
}
/* ── Celular: el menu lateral como el de la app de Discord ── */
@media (max-width: 768px) {
  /* "Servidores" (lista de otros servidores Haven): Discord no la tiene en el menu */
  .mobile-servers-section { display: none !important; }
  [data-haven-region="navigation-sidebar"] { padding-bottom: 0 !important; }
  [data-haven-region="navigation-sidebar"] .sidebar-header {
    position: static;
    padding: 0.875rem 3rem 0.875rem 1rem;
    border-bottom: 1px solid var(--cv-borde-29292d);
  }
  [data-haven-region="navigation-sidebar"] .mobile-panel-close:not(.mobile-panel-close-right) {
    top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
    background: var(--cv-fondo-222327);
  }
  /* Tarjeta del usuario: abajo de todo, como en Discord */
  [data-haven-region="account"] {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    min-height: 3.5rem;
    margin: 0;
    padding: 0 0.5rem calc(env(safe-area-inset-bottom, 0px)) 0.75rem;
    border: 0;
    border-top: 1px solid var(--cv-borde-29292d);
    border-radius: 0;
    background: var(--cv-fondo-202024);
    box-shadow: none;
  }
  [data-haven-region="account"] .current-user { color: var(--cv-texto-fbfbfb); font-weight: 600; font-size: 0.9375rem; }
  [data-haven-region="account"] .login-name { color: var(--text-muted); font-size: 0.8125rem; }
  [data-haven-region="account"] .icon-btn { color: var(--cv-texto-b5bac1); opacity: 0.85; min-width: 2.5rem; min-height: 2.5rem; }
  [data-haven-region="sidebar-footer"] {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
    background: var(--cv-fondo-121214);
    border-top: 0;
  }
  [data-haven-region="sidebar-actions"] {
    background: var(--cv-fondo-121214);
    border-top: 1px solid var(--cv-borde-29292d);
    justify-content: space-around;
    padding: 0.25rem 0.5rem;
  }
  [data-haven-region="sidebar-actions"] > span[style*="flex"] { display: none; }
  [data-haven-region="sidebar-actions"] .sidebar-bottom-btn:not([style*="display: none"]):not([style*="display:none"]) {
    display: flex; align-items: center; justify-content: center;
    min-width: 2.75rem; min-height: 2.75rem; font-size: 1.25rem;
  }
  /* Canales: filas un poco mas altas para el dedo, como en la app de Discord */
  .channel-item { min-height: 2.5rem; }
  /* Imagenes y videos: el ancho del chat, sin pasarse de alto */
  .message .chat-image, .message-compact .chat-image {
    max-width: 100%;
    max-height: 20rem;
    border-radius: 8px;
  }
  .file-attachment:has(> .file-video-wrap) { max-width: 100%; }
  /* Tamanos de letra de la app de Discord para Android (medidos sobre capturas
     del mismo telefono): el texto se ve mas chico que en Discord de PC */
  html .message-content { font-size: 0.875rem; line-height: 1.1875rem; }
  html .message-author { font-size: 0.9375rem; }
  html .message-time { font-size: 0.6875rem; }
  html body .message, html body .message-compact { --rb-shift: 23px; --rb-h: 1rem; }
  html body .reply-banner, html body .reply-banner .reply-preview, html body .reply-banner .reply-author { font-size: 0.75rem; }
  /* Reacciones de la app de Discord: recuadro mas alto, emoji de 20px */
  html body .reaction-badge { height: 1.875rem; padding: 0 0.625rem; gap: 0.5rem; background: var(--cv-fondo-343338); font-size: 0.8125rem; }
  html body .reaction-badge.own { background: var(--cv-fondo-5865f2-20); }
  html body .reaction-badge .reaction-custom-emoji { width: 1.25rem; height: 1.25rem; }
  html body .reaction-badge .puente-reaction-emoji { font-size: 1.25rem; }
  html body .reactions-row { gap: 0.375rem; }
  /* Barra "SERVER Connected" de abajo: la app de Discord no tiene */
  [data-haven-region="status-bar"] { display: none !important; }
  /* Boton ⋯ de cada mensaje: sin recuadro, gris y chico */
  .msg-dots-btn { background: transparent !important; border: 0 !important; box-shadow: none !important; color: var(--cv-texto-81828a); opacity: 0.7; }
}
/* Botones de la fila inferior: iconos grises y discretos */
[data-haven-region="sidebar-actions"] .sidebar-bottom-btn {
  background: transparent;
  border: 0;
  filter: grayscale(1);
  opacity: 0.6;
}
[data-haven-region="sidebar-actions"] .sidebar-bottom-btn:hover { background: var(--cv-fondo-232327); filter: none; opacity: 1; }

/* ── Mensajes ──────────────────────────────────────── */
.message, .message-row, .message-compact { border-top: 0; border-bottom: 0; box-shadow: none; }
.message:hover, .message-row:hover, .message-compact:hover { background: var(--cv-fondo-020202-06); }
.message-author { font-weight: 500; font-size: 1rem; }
.message-time { font-size: 0.75rem; color: var(--text-muted); }
.message-content { color: var(--cv-texto-efeff1); font-size: 1rem; line-height: 1.375rem; }

/* "DISCORD" junto a cada nombre: discreta, como una etiqueta de bot */
.discord-badge {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--cv-borde-3a3a3f);
  font-weight: 600;
  opacity: 0.8;
}

/* Rol en cada mensaje (ADMIN...): Discord lo muestra solo con el color del nombre */
.message .msg-role-badge, .message .user-role-badge { display: none; }

/* Respuestas como en Discord: una sola linea chica arriba del mensaje
   (avatar mini, @Nombre y el comienzo del texto), unida al avatar con una linea
   curva que sale de arriba del avatar. El avatar baja para quedar al lado del
   nombre. --rb-shift: distancia del centro del avatar al texto del mensaje. */
.message, .message-compact { --rb-shift: 30px; --rb-h: 1.25rem; --rb-gap: 0.25rem; }
html .reply-banner {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
  max-width: none;
  height: var(--rb-h);
  margin: 0 0 var(--rb-gap) calc(-1 * var(--rb-shift));
  padding: 0 0 0 var(--rb-shift);
  background: none;
  border-radius: 0;
  font-size: 0.875rem;
  line-height: var(--rb-h);
  color: var(--cv-texto-b5bac1);
  overflow: hidden;
}
html .reply-banner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: calc(var(--rb-shift) - 0.375rem);
  height: calc(50% + var(--rb-gap) + 1px);
  border-left: 2px solid var(--cv-borde-4e5058);
  border-top: 2px solid var(--cv-borde-4e5058);
  border-top-left-radius: 6px;
  box-sizing: border-box;
}
html .reply-banner .reply-line { display: none; }
html .reply-banner .reply-author { flex-shrink: 0; font-weight: 500; }
html .reply-banner .reply-author::before { content: '@'; }
html .reply-banner .reply-preview {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  word-break: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}
html .reply-banner:hover { background: none; color: var(--cv-texto-efeff1); }
html .reply-banner:hover .reply-preview { opacity: 1; }
/* Avatar mini de quien escribio el mensaje citado (lo agrega tools/puente/web/aviso.js) */
.puente-reply-avatar {
  flex-shrink: 0;
  width: 1rem !important;
  height: 1rem !important;
  min-width: 0 !important;
  margin: 0 !important;
  border-radius: 50%;
  object-fit: cover;
  font-size: 0.5rem !important;
  line-height: 1rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* El avatar del mensaje baja a la altura del nombre */
.message-row:has(> .message-body > .reply-banner) > .message-avatar { margin-top: calc(var(--rb-h) + var(--rb-gap)); }

/* Reacciones como en Discord: recuadro gris con esquinas apenas redondeadas,
   emoji grande y numero chico. La propia, con borde azul. (aviso.js separa el
   emoji del numero para poder darles tamanos distintos.) */
html .reactions-row { gap: 0.25rem; margin-top: 0.25rem; }
html .reaction-badge {
  height: 1.875rem;
  padding: 0 0.5rem;
  gap: 0.375rem;
  background: var(--cv-fondo-2a2a2e);
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cv-texto-b5bac1);
}
html .reaction-badge:hover { background: var(--cv-fondo-2f2f34); border-color: var(--cv-borde-3f3f46); }
html .reaction-badge.own { background: var(--cv-fondo-5865f2-15); border-color: var(--cv-borde-5865f2); color: var(--cv-texto-dee0fc); }
html .reaction-badge .reaction-custom-emoji { width: 1.375rem; height: 1.375rem; object-fit: contain; }
html .reaction-badge .puente-reaction-emoji { font-size: 1.25rem; line-height: 1; }
/* El numero que cambia (aviso.js): el nuevo entra desde abajo y el viejo se va para arriba (al bajar,
   al reves), recortados por su cajita, como en Discord */
html .reaction-badge .puente-rc { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: inherit; }
html .reaction-badge .puente-rc > span { display: inline-block; }
html .reaction-badge .puente-rc[data-antes]::before { content: attr(data-antes); position: absolute; left: 0; top: 0; opacity: 0; }
html .reaction-badge .puente-rc-sube > span { animation: puente-rc-desde-abajo 0.25s ease-out; }
html .reaction-badge .puente-rc-sube[data-antes]::before { animation: puente-rc-hacia-arriba 0.25s ease-out; }
html .reaction-badge .puente-rc-baja > span { animation: puente-rc-desde-arriba 0.25s ease-out; }
html .reaction-badge .puente-rc-baja[data-antes]::before { animation: puente-rc-hacia-abajo 0.25s ease-out; }
@keyframes puente-rc-desde-abajo { from { transform: translateY(100%); } to { transform: none; } }
@keyframes puente-rc-desde-arriba { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes puente-rc-hacia-arriba { from { transform: none; opacity: 1; } to { transform: translateY(-100%); opacity: 1; } }
@keyframes puente-rc-hacia-abajo { from { transform: none; opacity: 1; } to { transform: translateY(100%); opacity: 1; } }

/* Menu de un mensaje en pantallas tactiles: hoja que sube desde abajo, como
   en la app de Discord (la arma tools/puente/web/aviso.js con las opciones
   de Haven). Colores medidos sobre una captura de Discord. */
#puente-sheet-backdrop {
  position: fixed; inset: 0; z-index: 99998;
  background: var(--cv-fondo-000000-60);
  animation: puente-fade 0.14s ease-out;
}
html #message-context-menu.puente-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0; top: auto;
  z-index: 99999;
  width: 100%;
  max-width: 37.5rem;
  /* Como Discord: abre hasta un poco mas de la mitad (Responder queda a mano) y
     deslizando para arriba se agranda (sheetDrag, aviso.js) */
  max-height: 60vh;
  margin: 0 auto;
  padding: 0.5rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  background: var(--cv-fondo-252429);
  border: 0;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -8px 32px var(--cv-sombra-000000-45);
  transition: transform 0.2s ease;
  animation: puente-sheet-up 0.16s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes puente-sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes puente-fade { from { opacity: 0; } to { opacity: 1; } }
.puente-sheet-handle { width: 2.5rem; height: 0.25rem; margin: 0.25rem auto 0.875rem; border-radius: 2px; background: var(--cv-fondo-3c3b41); }
/* Como en Discord: 6 cuadrados iguales (5 frecuentes + carita gris para ver mas),
   en todos los telefonos igual. Los botones no heredan la fuente: sin esto cada
   telefono dibujaba los emojis con los suyos (la bandera arcoiris salia partida). */
.puente-sheet-reactions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.puente-sheet-react {
  width: 100%; aspect-ratio: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 0.75rem; overflow: hidden;
  background: var(--cv-fondo-333237); color: var(--cv-texto-b5bac1);
  font-family: var(--font-emoji); font-size: 1.75rem; line-height: 1; cursor: pointer;
}
.puente-sheet-react img { width: 58%; height: 58%; object-fit: contain; pointer-events: none; border-radius: 0.25rem; }
.puente-sheet-react:active { background: var(--cv-fondo-3f3e44); }
.puente-sheet-react-more svg { width: 52%; height: 52%; pointer-events: none; }
.puente-sheet-group { margin-bottom: 1rem; border-radius: 1rem; background: var(--cv-fondo-2e2d32); overflow: hidden; }
html .puente-sheet .channel-ctx-item {
  display: flex; align-items: center; gap: 1rem;
  width: 100%; min-height: 3.5rem;
  padding: 0 1.125rem;
  border: 0; border-radius: 0;
  background: transparent;
  color: var(--cv-texto-fbfbfb); font-size: 1rem; font-weight: 500; text-align: left;
}
html .puente-sheet .channel-ctx-item + .channel-ctx-item { box-shadow: inset 3.375rem 1px 0 -1px var(--cv-sombra-2e2d32), inset 0 1px 0 var(--cv-sombra-3b3a3f); }
html .puente-sheet .channel-ctx-item:active { background: var(--cv-fondo-36353b); }
html .puente-sheet .channel-ctx-item.danger { color: var(--cv-texto-f2777a); }
.puente-sheet-icon { width: 1.375rem; flex-shrink: 0; text-align: center; font-size: 1.25rem; filter: grayscale(1) brightness(1.6); }
.puente-sheet .channel-ctx-item.danger .puente-sheet-icon { filter: none; }

/* Boton + del cuadro de escribir en pantallas tactiles: hoja como la de Discord,
   camara y galeria arriba, opciones en el medio y la barra flotante abajo (aviso.js). */
#puente-adjuntar-fondo { position: fixed; inset: 0; z-index: 100014; background: var(--cv-fondo-000000-45); animation: puente-fade 0.14s ease-out; }
.puente-adjuntar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100015;
  width: 100%; max-width: 37.5rem; max-height: 85vh; margin: 0 auto;
  display: flex; flex-direction: column; box-sizing: border-box;
  padding: 0.5rem 0.75rem 0;
  background: var(--cv-fondo-1a191e); border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -8px 32px var(--cv-sombra-000000-45);
  transition: transform 0.2s ease; animation: puente-sheet-up 0.16s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.puente-adj-cuerpo { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 6.5rem; }
.puente-adj-mosaico { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.375rem; margin-bottom: 0.75rem; }
.puente-adj-cuadro {
  aspect-ratio: 1.5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.375rem;
  padding: 0; border: 0; border-radius: 0.75rem; background: var(--cv-fondo-2e2d32); color: var(--cv-texto-b5bac1);
  font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer;
}
.puente-adj-cuadro:active { background: var(--cv-fondo-36353b); }
.puente-adjuntar .puente-adj-fila svg { flex-shrink: 0; width: 1.375rem; color: var(--cv-texto-b5bac1); }
.puente-adjuntar .puente-adj-fila.activo, .puente-adjuntar .puente-adj-fila.activo svg { color: var(--cv-texto-f0b232); }
.puente-adj-estado { margin-left: auto; font-size: 0.8125rem; font-weight: 600; color: var(--cv-texto-f0b232); }
.puente-adj-barra {
  position: absolute; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  display: flex; gap: 0.25rem; max-width: calc(100% - 1.5rem); padding: 0.5rem 0.75rem;
  border-radius: 1.5rem; background: var(--cv-fondo-2b2a30); box-shadow: 0 6px 24px var(--cv-sombra-000000-50);
}
.puente-adj-accion {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem; min-width: 4rem;
  padding: 0.375rem 0.5rem; border: 0; border-radius: 0.75rem; background: transparent; color: var(--cv-texto-f2f3f5);
  font: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer;
}
.puente-adj-accion:active { background: var(--cv-fondo-36353b); }

/* Selector de reacciones en pantallas tactiles: hoja con buscador, frecuentes,
   emojis del servidor y categorias, como en la app de Discord (aviso.js). */
#puente-react-backdrop { position: fixed; inset: 0; z-index: 100018; background: var(--cv-fondo-000000-60); animation: puente-fade 0.14s ease-out; }
.puente-react-picker {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100019;
  width: 100%; max-width: 37.5rem; height: 62vh; margin: 0 auto;
  display: flex; flex-direction: column; box-sizing: border-box;
  padding: 0.5rem 0.75rem 0;
  background: var(--cv-fondo-252429); border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -8px 32px var(--cv-sombra-000000-45);
  transition: transform 0.2s ease, height 0.2s ease; animation: puente-sheet-up 0.16s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.puente-react-search {
  flex-shrink: 0; width: 100%; box-sizing: border-box; height: 2.75rem; margin: 0 0 0.5rem;
  padding: 0 1rem; border: 1px solid var(--cv-borde-3b3a3f); border-radius: 0.625rem;
  background: var(--cv-fondo-1a191e); color: var(--cv-texto-fbfbfb); font: inherit; font-size: 1rem; outline: none;
}
.puente-react-search:focus { border-color: var(--cv-borde-5865f2); }
.puente-react-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 0.5rem; }
.puente-react-title { padding: 0.75rem 0.25rem 0.375rem; color: var(--cv-texto-dbdee1); font-size: 0.9375rem; font-weight: 600; }
.puente-react-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.875rem, 1fr)); gap: 0.25rem; }
.puente-react-btn {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 0.5rem; background: transparent;
  font-size: 1.875rem; line-height: 1; cursor: pointer;
}
.puente-react-btn img { width: 2.25rem; height: 2.25rem; object-fit: contain; pointer-events: none; }
.puente-react-btn:active { background: var(--cv-fondo-36353b); }
.puente-react-empty { padding: 2rem 0; text-align: center; color: var(--cv-texto-81828a); }
.puente-react-tabs {
  flex-shrink: 0; display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none;
  margin: 0 -0.75rem; padding: 0.375rem 0.75rem calc(0.375rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--cv-borde-3b3a3f); background: var(--cv-fondo-222126);
}
.puente-react-tab {
  flex: 0 0 auto; width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 1.375rem; cursor: pointer;
  filter: grayscale(1); opacity: 0.75;
}
.puente-react-tab img { width: 1.75rem; height: 1.75rem; border-radius: 50%; object-fit: cover; }
.puente-react-tab:active { background: var(--cv-fondo-36353b); filter: none; opacity: 1; }

/* Selector de emojis del cuadro de escribir en pantallas tactiles: hoja desde
   abajo que se agranda con la manija, como en la app de Discord (aviso.js). */
#puente-emoji-backdrop { position: fixed; inset: 0; z-index: 100028; background: var(--cv-fondo-000000-45); animation: puente-fade 0.14s ease-out; }
html #emoji-picker.puente-emoji-sheet {
  position: fixed !important;
  left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important;
  z-index: 100029 !important;
  width: 100% !important; max-width: 37.5rem !important;
  height: var(--puente-emojis-alto, 50vh) !important; max-height: 92vh !important;
  margin: 0 auto !important;
  box-sizing: border-box;
  padding: 0.25rem 0.75rem 0 !important;
  background: var(--cv-fondo-252429) !important; border: 0 !important;
  border-radius: 1.25rem 1.25rem 0 0 !important;
  box-shadow: 0 -8px 32px var(--cv-sombra-000000-45) !important;
  transition: height 0.18s ease;
  animation: puente-sheet-up 0.16s cubic-bezier(0.2, 0.9, 0.3, 1);
}
/* La manija: toda la franja de arriba se puede agarrar (antes solo la rayita, dificil de tocar) */
.puente-emoji-sheet .puente-emoji-handle, .puente-gif-sheet .puente-gif-handle {
  flex-shrink: 0; position: relative; width: auto; height: 1.75rem; margin: 0 -0.75rem 0.25rem; padding: 0; background: none; touch-action: none;
}
.puente-emoji-sheet .puente-emoji-handle::before, .puente-gif-sheet .puente-gif-handle::before {
  content: ''; position: absolute; left: 50%; top: 0.625rem; width: 3rem; height: 0.3125rem; margin-left: -1.5rem; border-radius: 3px; background: var(--cv-fondo-4a4950);
}
.puente-emoji-sheet .emoji-section-row, .puente-emoji-sheet .emoji-search-row, .puente-emoji-sheet .emoji-tab-row { touch-action: pan-x; }
/* Con una hoja abierta (emojis o GIFs) el cuadro de escribir sube y queda arriba de ella, como en
   Discord: el chat se achica y nada tapa lo que se escribe. El fondo para cerrarla tocando afuera
   queda solo sobre el chat, sin oscurecer. */
html.puente-hoja-abierta #message-input-area { margin-bottom: var(--puente-hoja-alto, 50vh) !important; }
html.puente-hoja-abierta #puente-emoji-backdrop, html.puente-hoja-abierta #puente-gif-backdrop {
  bottom: calc(var(--puente-hoja-alto, 50vh) + var(--puente-cuadro-alto, 0px)); background: transparent; animation: none;
}

/* Ventanita de GIFs en pantallas tactiles: hoja desde abajo como la de los emojis (aviso.js) */
#puente-gif-backdrop { position: fixed; inset: 0; z-index: 100028; background: var(--cv-fondo-000000-45); animation: puente-fade 0.14s ease-out; }
html #gif-picker.puente-gif-sheet {
  position: fixed !important; display: flex !important; flex-direction: column !important;
  left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important; transform: none !important;
  z-index: 100029 !important; width: 100% !important; max-width: 37.5rem !important;
  height: var(--puente-gifs-alto, 50vh) !important; max-height: 92vh !important; margin: 0 auto !important;
  box-sizing: border-box; padding: 0.25rem 0.75rem 0 !important;
  background: var(--cv-fondo-252429) !important; border: 0 !important; border-radius: 1.25rem 1.25rem 0 0 !important;
  box-shadow: 0 -8px 32px var(--cv-sombra-000000-45) !important; transition: height 0.18s ease; animation: puente-sheet-up 0.16s cubic-bezier(0.2, 0.9, 0.3, 1);
}
html #gif-picker.puente-gif-sheet[style*="display: none"], html #gif-picker.puente-gif-sheet[style*="display:none"] { display: none !important; }
.puente-gif-sheet .gif-picker-tabs, .puente-gif-sheet .gif-picker-header { flex-shrink: 0; touch-action: pan-x; }
/* Un solo boton (la carita) con pestañas Emoji / GIFs / Stickers, como la app de
   Discord: el boton GIF aparte no va en pantallas tactiles. */
@media (pointer: coarse) {
  html body #message-input-area .input-actions-box > #gif-btn { display: none !important; }
}
.puente-emoji-sheet .emoji-section-row, .puente-gif-sheet .puente-hoja-secciones { display: flex; gap: 0.25rem; }
.puente-gif-sheet .puente-hoja-secciones { flex-shrink: 0; padding: 0.25rem; margin-bottom: 0.5rem; border-radius: 0.75rem; background: var(--cv-fondo-2e2d32); touch-action: pan-x; }
.puente-emoji-sheet .emoji-section-tab, .puente-gif-sheet .puente-hoja-seccion {
  flex: 1 1 0; min-height: 2.5rem; border: 0 !important; border-radius: 0.5rem; font-size: 1rem; font-weight: 600;
  background: transparent !important; color: var(--cv-texto-949ba4) !important; box-shadow: none !important;
}
.puente-emoji-sheet .emoji-section-tab.active, .puente-gif-sheet .puente-hoja-seccion.active { background: var(--cv-fondo-43424a) !important; color: var(--cv-texto-f2f3f5) !important; }
/* Al pasar de una pestaña a otra, la hoja nueva aparece en el mismo lugar, sin subir */
html.puente-hoja-cambio #emoji-picker.puente-emoji-sheet, html.puente-hoja-cambio #gif-picker.puente-gif-sheet,
html.puente-hoja-cambio #puente-emoji-backdrop, html.puente-hoja-cambio #puente-gif-backdrop { animation: none !important; transition: none !important; }
html #emoji-picker.puente-sin-subir, html #gif-picker.puente-sin-subir, #puente-emoji-backdrop.puente-sin-subir, #puente-gif-backdrop.puente-sin-subir { animation: none !important; }
.puente-gif-sheet .gif-picker-header input { height: 2.75rem; font-size: 1rem; border-radius: 0.625rem; }
.puente-gif-sheet .gif-picker-grid { flex: 1 1 auto; min-height: 0; max-height: none !important; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
.puente-gif-sheet .gif-picker-footer { flex-shrink: 0; }
.puente-emoji-sheet .emoji-section-row { flex-shrink: 0; padding: 0.25rem; margin-bottom: 0.5rem; border: 0; border-radius: 0.75rem; background: var(--cv-fondo-2e2d32); }
.puente-emoji-sheet .emoji-section-tab { min-height: 2.5rem; border-radius: 0.5rem; font-size: 1rem; }
.puente-emoji-sheet .emoji-search-row { flex-shrink: 0; margin-bottom: 0.25rem; }
.puente-emoji-sheet .emoji-search-input { height: 2.75rem; font-size: 1rem; border-radius: 0.625rem; background: var(--cv-fondo-1a191e); border: 1px solid var(--cv-borde-3b3a3f); }
/* Las categorias van abajo, como en Discord */
.puente-emoji-sheet .emoji-tab-row {
  order: 10; flex-shrink: 0; overflow-x: auto; scrollbar-width: none;
  margin: 0 -0.75rem; padding: 0.375rem 0.75rem calc(0.375rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--cv-borde-3b3a3f); border-bottom: 0; background: var(--cv-fondo-222126);
}
.puente-emoji-sheet .emoji-tab { flex: 0 0 auto; min-width: 2.75rem; height: 2.75rem; font-size: 1.375rem; border-radius: 50%; }
.puente-emoji-sheet .emoji-grid, .puente-emoji-sheet .sticker-grid { flex: 1 1 auto; max-height: none !important; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.puente-emoji-sheet .emoji-cat-header { background: var(--cv-fondo-252429); font-size: 0.875rem; padding: 0.625rem 0.25rem 0.375rem; color: var(--cv-texto-dbdee1); }
.puente-emoji-sheet .emoji-grid { touch-action: pan-y; }
.puente-emoji-sheet .emoji-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.875rem, 1fr)); gap: 0.25rem; }
.puente-emoji-sheet .emoji-item { width: auto; height: auto; aspect-ratio: 1; font-size: 1.875rem; border-radius: 0.5rem; }
.puente-emoji-sheet .emoji-item img, .puente-emoji-sheet .emoji-item .custom-emoji { width: 2.25rem; height: 2.25rem; object-fit: contain; }
.puente-emoji-sheet .sticker-grid { grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); }

/* Quien reacciono (mantener apretada una reaccion en pantallas tactiles),
   como la ventana de la app de Discord (aviso.js). */
#puente-who-backdrop { position: fixed; inset: 0; z-index: 100018; background: var(--cv-fondo-000000-60); animation: puente-fade 0.14s ease-out; }
.puente-who-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100019;
  width: 100%; max-width: 37.5rem; height: 60vh; max-height: 85vh; margin: 0 auto;
  display: flex; flex-direction: column; box-sizing: border-box;
  padding: 0.5rem 0 env(safe-area-inset-bottom, 0px);
  background: var(--cv-fondo-252429); border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -8px 32px var(--cv-sombra-000000-45);
  transition: transform 0.2s ease; animation: puente-sheet-up 0.16s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.puente-who-tabs { flex-shrink: 0; display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding: 0.25rem 1rem 0.75rem; border-bottom: 1px solid var(--cv-borde-2e2d32); }
.puente-who-tab {
  flex: 0 0 auto; display: flex; align-items: center; gap: 0.5rem;
  height: 3rem; padding: 0 0.875rem; border: 0; border-radius: 0.625rem;
  background: transparent; color: var(--cv-texto-b5bac1); font: inherit; font-size: 1.125rem; font-weight: 700; cursor: pointer;
}
.puente-who-tab.active { background: var(--cv-fondo-36353b); color: var(--cv-texto-fbfbfb); }
img.puente-who-emoji { width: 1.75rem; height: 1.75rem; object-fit: contain; }
span.puente-who-emoji { font-size: 1.5rem; line-height: 1; }
.puente-who-list { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0.25rem 1rem 1rem; }
.puente-who-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 0 0.5rem; color: var(--cv-texto-fbfbfb); font-weight: 700; text-transform: uppercase; font-size: 0.875rem; }
.puente-who-head .puente-who-emoji { display: none; }
.puente-who-row { display: flex; align-items: center; gap: 1rem; min-height: 3.5rem; }
.puente-who-avatar {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); font-weight: 700;
}
.puente-who-avatar img { width: 100%; height: 100%; object-fit: cover; }
.puente-who-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cv-texto-fbfbfb); font-size: 1.0625rem; font-weight: 600; }
.puente-who-tag { flex-shrink: 0; padding: 0.0625rem 0.375rem; border: 1px solid var(--cv-borde-3a3a3f); border-radius: 0.25rem; color: var(--cv-texto-b5bac1); font-size: 0.6875rem; font-weight: 600; }
.puente-who-remove { flex-shrink: 0; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: transparent; color: var(--cv-texto-dbdee1); font-size: 1.375rem; cursor: pointer; }
.puente-who-remove:active { background: var(--cv-fondo-36353b); }

/* Canal donde Discord no te deja escribir: cuadro desactivado con el aviso (aviso.js) */
.puente-sin-permiso #message-input { cursor: not-allowed; opacity: 0.75; }
.puente-sin-permiso #message-input::placeholder { color: var(--cv-texto-81828a); }
.puente-sin-permiso .input-actions-box, .puente-sin-permiso #send-btn, .puente-sin-permiso [data-compact-composer] .input-actions-box { display: none !important; }

/* Pantalla "Bienvenido a Haven" al abrir: no se muestra, se entra directo a un
   canal (aviso.js). Solo aparece si no hay ningun canal para abrir. */
html:not(.puente-bienvenida) #no-channel-msg { visibility: hidden !important; }
/* Quien entro como invitado (sin canales): al cerrar Juegos, en vez de la bienvenida de Haven y su banner, lo que gana
   con la cuenta y los botones para crearla o volver a los juegos (aviso.js, html.puente-invitado) */
html.puente-invitado:not(.puente-con-canal) #no-channel-msg { visibility: visible !important; overflow-y: auto; }
html.puente-invitado #no-channel-msg > .welcome-content { display: none !important; }
html.puente-invitado #server-banner-display { display: none !important; }
/* ...y sin el panel de la derecha (sin canales no hay miembros; quedaba el viejo de "Unirse al chat de voz") ni los
   botones que lo abren (el del celular y la flechita de la PC, "Mostrar/ocultar panel de miembros") */
html.puente-invitado #right-sidebar, html.puente-invitado #mobile-users-btn, html.puente-invitado #sidebar-toggle-btn { display: none !important; }
/* ...ni Actividad y Guardados arriba de los canales (sin cuenta no tiene ni una cosa ni la otra) */
html.puente-invitado #puente-atajos { display: none !important; }
/* ...ni el buscador (la caja de la PC y la lupa del celular): sin canales no hay nada que buscar */
html.puente-invitado body #search-container.puente-busca-caja, html.puente-invitado #search-container, html.puente-invitado #puente-lupa { display: none !important; }
/* ...ni los mensajes directos (su icono en la columna, en la PC y en el celular) ni la campanita: sin cuenta nadie le
   escribe ni lo menciona */
html.puente-invitado .puente-pc-dm, html.puente-invitado .puente-pc-dm + .puente-pc-sep, html.puente-invitado #puente-rail .puente-rail-dm,
html.puente-invitado #puente-rail .puente-rail-dm + .puente-rail-sep, html.puente-invitado #puente-campana-btn { display: none !important; }
/* "Quedate con tu nombre" (aviso.js, invitados.js): el invitado pasa a ser una cuenta sin salir de donde esta */
.puente-inv-cuenta-velo { position: fixed; inset: 0; z-index: 100010; background: var(--cv-fondo-000000-70); }
.puente-inv-cuenta { position: fixed; z-index: 100011; left: 50%; top: 50%; transform: translate(-50%, -50%); box-sizing: border-box; width: min(26rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; padding: 1.5rem 1.25rem 1.25rem; border: 1px solid var(--cv-borde-2a2a30); border-radius: 1rem; background: var(--cv-fondo-1e1e22); color: var(--cv-texto-dbdee1); text-align: left; box-shadow: 0 12px 40px var(--cv-sombra-000000-50); }
.pic-cuenta-x { position: absolute; top: 0.625rem; right: 0.625rem; display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 0.5rem; background: transparent; color: var(--cv-texto-b5bac1); font: inherit; font-size: 1.125rem; cursor: pointer; }
.pic-cuenta-x:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-ffffff); }
.pic-cuenta-t { margin: 0 2.25rem 0.5rem 0; color: var(--cv-texto-fbfbfb); font-size: 1.375rem; font-weight: 800; line-height: 1.2; }
.pic-cuenta-s { margin: 0 0 1rem; color: var(--cv-texto-b5bac1); font-size: 0.9375rem; line-height: 1.45; }
.pic-cuenta-s b { color: var(--cv-texto-f2f3f5); }
.pic-cuenta-form { display: flex; flex-direction: column; gap: 0.75rem; }
.pic-campo { display: flex; flex-direction: column; gap: 0.25rem; }
.pic-campo label { color: var(--cv-texto-b5bac1); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.pic-campo input { box-sizing: border-box; width: 100%; min-height: 2.75rem; padding: 0 0.75rem; border: 1px solid var(--cv-borde-3f4147); border-radius: 0.5rem; background: var(--cv-fondo-111214); color: var(--cv-texto-f2f3f5); font: inherit; font-size: 1rem; }
.pic-campo input:focus { border-color: var(--cv-borde-5865f2); outline: 2px solid var(--cv-borde-5865f2); outline-offset: 0; }
.pic-campo small { color: var(--cv-texto-949ba4); font-size: 0.8125rem; line-height: 1.4; }
.pic-cuenta-error { color: var(--cv-texto-f23f43); font-size: 0.875rem; line-height: 1.4; }
.pic-cuenta-error:empty { display: none; }
.pic-cuenta-otros { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1rem; margin-top: 0.75rem; }
/* ...y arriba, en el encabezado, "CV Chat" en vez de "Seleccioná un canal" (aviso.js), a la vista desde el principio:
   sin canales no hace falta esperar a ver si se abre uno (la pagina lo esconde hasta entonces, vincular.js) */
html.puente-invitado:not(.puente-con-canal) header.channel-header #channel-header-name { visibility: visible !important; }
/* La pantalla de inicio del invitado (aviso.js): la invitacion arriba y abajo, en tarjetas, lo que pasa en el club */
html.puente-invitado #no-channel-msg { align-items: flex-start; }
.puente-inv-casa { container-type: inline-size; box-sizing: border-box; width: min(66rem, 100%); margin: 0 auto; padding: 1.25rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px)); color: var(--cv-texto-dbdee1); text-align: left; }
.pic-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 1.75rem; align-items: center; margin-bottom: 1rem; padding: 1.25rem 1.5rem; border: 1px solid var(--cv-borde-29292d); border-radius: 1rem; background: linear-gradient(135deg, var(--cv-fondo-2a2350) 0%, var(--cv-fondo-1e1e22) 65%); }
.puente-inv-ico { font-size: 2.25rem; line-height: 1; }
.puente-inv-t { margin: 0.5rem 0 0.25rem; color: var(--cv-texto-fbfbfb); font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.puente-inv-s { margin: 0 0 0.875rem; color: var(--cv-texto-b5bac1); font-size: 0.9375rem; line-height: 1.45; }
.puente-inv-lista { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.puente-inv-lista li { display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem 0.75rem; border: 1px solid var(--cv-borde-29292d); border-radius: 0.75rem; background: var(--cv-fondo-1e1e22-85); font-size: 0.875rem; line-height: 1.35; }
.puente-inv-li-ico { flex: none; font-size: 1.125rem; }
.pic-hero-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.pic-hero-btns .puente-inv-btn { flex: 1 1 12rem; width: auto; }
.pic-hero-btns .puente-inv-ya { margin: 0 auto; }
.puente-inv-btn { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; min-height: 2.875rem; margin: 0; border: 0; border-radius: 0.625rem; background: var(--cv-fondo-2e2d32); color: var(--cv-texto-f2f3f5); font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.puente-inv-btn:hover { background: var(--cv-fondo-36353b); }
.puente-inv-btn.primario { background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); }
.puente-inv-btn.primario:hover { background: var(--cv-fondo-4752c4); }
.puente-inv-ya { align-self: center; padding: 0.375rem; border: 0; background: none; color: var(--cv-texto-949ba4); font: inherit; font-size: 0.875rem; cursor: pointer; }
.puente-inv-ya:hover { color: var(--cv-texto-dbdee1); text-decoration: underline; }
/* (segun el lugar que tiene: angosta, todo apilado; ancha, la lista de a dos y los botones al costado) */
@container (min-width: 34rem) { .puente-inv-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 54rem) {
  .pic-hero { grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem); }
  .pic-hero-btns { flex-direction: column; align-items: stretch; }
  .pic-hero-btns .puente-inv-btn { flex: none; width: 100%; }
}
@media (max-width: 600px) { .pic-hero { padding: 1rem; } }
.pic-grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1rem; align-items: start; }
.pic-card { container-type: inline-size; min-width: 0; padding: 1rem; border: 1px solid var(--cv-borde-29292d); border-radius: 0.875rem; background: var(--cv-fondo-1e1e22); }
.pic-card-t { margin: 0 0 0.75rem; color: var(--cv-texto-f2f3f5); font-size: 1rem; font-weight: 700; }
.pic-s { color: var(--cv-texto-b5bac1); font-size: 0.875rem; line-height: 1.45; }
.pic-nota { margin-top: 0.625rem; color: var(--cv-texto-949ba4); font-size: 0.8125rem; line-height: 1.4; }
.pic-acc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.pic-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: 0 1rem; border: 0; border-radius: 0.5rem; background: var(--cv-fondo-2e2d32); color: var(--cv-texto-f2f3f5) !important; font: inherit; font-size: 0.9375rem; font-weight: 700; text-decoration: none !important; cursor: pointer; }
.pic-btn:hover { background: var(--cv-fondo-36353b); }
.pic-btn.primario { background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff) !important; }
.pic-btn.primario:hover { background: var(--cv-fondo-4752c4); }
.pic-btn.chico { flex: none; min-height: 2rem; padding: 0 0.875rem; font-size: 0.875rem; }
.pic-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; overflow: hidden; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); font-size: 0.75rem; font-weight: 700; }
.pic-av img { width: 100%; height: 100%; object-fit: cover; }
.pic-desafio-tapa { display: block; margin: 0 0 0.75rem; border-radius: 0.625rem; overflow: hidden; }
.pic-desafio-tapa img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
/* (con lugar, la tapa del juego al costado y lo demas a la derecha) */
@container (min-width: 26rem) {
  .pic-desafio .pic-card-b { display: grid; grid-template-columns: 10rem minmax(0, 1fr); column-gap: 0.875rem; align-items: start; }
  .pic-desafio-tapa { grid-row: 1 / span 6; margin: 0; }
  .pic-desafio .pic-card-b > :not(.pic-desafio-tapa) { grid-column: 2; }
}
.pic-desafio-t { margin-bottom: 0.375rem; color: var(--cv-texto-fbfbfb); font-size: 1.0625rem; font-weight: 700; }
.pic-desafio-gente { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.5rem; }
.pic-persona { display: inline-flex; align-items: center; gap: 0.375rem; max-width: 100%; padding: 0.1875rem 0.625rem 0.1875rem 0.1875rem; border-radius: 999px; background: var(--cv-fondo-2b2d31); font-size: 0.8125rem; }
.pic-persona > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pic-persona .pic-av { width: 1.375rem; height: 1.375rem; font-size: 0.625rem; }
.pic-lista, .pic-msjs, .pic-foro, .pic-ranking-l { margin: 0; padding: 0; list-style: none; }
.pic-fila { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-top: 1px solid var(--cv-borde-29292d); }
.pic-fila:first-child { border-top: 0; padding-top: 0; }
.pic-fila-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pic-fila-txt b { color: var(--cv-texto-f2f3f5); font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pic-fila-txt span { color: var(--cv-texto-b5bac1); font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pic-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 0.75rem; }
.pic-amigo .pic-chips { margin: 0.75rem 0 0; }
.pic-chip { min-height: 2rem; padding: 0 0.75rem; border: 1px solid var(--cv-borde-3f4147); border-radius: 999px; background: transparent; color: var(--cv-texto-b5bac1); font: inherit; font-size: 0.8125rem; cursor: pointer; }
.pic-chip:hover { border-color: var(--cv-borde-5c5e66); color: var(--cv-texto-f2f3f5); }
.pic-chip.actual { border-color: var(--cv-borde-5865f2); background: var(--cv-fondo-5865f2-18); color: var(--cv-texto-f2f3f5); }
.pic-ranking-l li { display: flex; align-items: center; gap: 0.625rem; padding: 0.375rem 0; }
.pic-pos { flex: none; width: 1.25rem; color: var(--cv-texto-949ba4); font-size: 0.875rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.pic-ranking-l li:first-child .pic-pos { color: var(--cv-texto-f0b232); }
.pic-nom { flex: 1; min-width: 0; color: var(--cv-texto-f2f3f5); font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pic-val { flex: none; color: var(--cv-texto-b5bac1); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.pic-msj { display: flex; gap: 0.625rem; padding: 0.375rem 0; }
.pic-msj-c { flex: 1; min-width: 0; }
.pic-msj-cab { display: flex; align-items: baseline; gap: 0.5rem; }
.pic-msj-cab b { color: var(--cv-texto-f2f3f5); font-size: 0.875rem; }
.pic-msj-cab span { color: var(--cv-texto-949ba4); font-size: 0.75rem; }
.pic-msj-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; color: var(--cv-texto-dbdee1); font-size: 0.875rem; line-height: 1.4; overflow-wrap: anywhere; } /* (los largos, en 4 lineas) */
.pic-emoji { width: 1.25rem; height: 1.25rem; vertical-align: -0.25rem; object-fit: contain; }
.pic-msj-img { display: block; max-width: 100%; max-height: 10rem; margin-top: 0.25rem; border-radius: 0.375rem; }
.pic-tienda { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.pic-tienda-item { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; color: var(--cv-texto-dbdee1) !important; text-decoration: none !important; }
.pic-tienda-foto { display: block; aspect-ratio: 1; border-radius: 0.5rem; overflow: hidden; background: var(--cv-fondo-2b2d31); }
.pic-tienda-foto img { width: 100%; height: 100%; object-fit: cover; }
.pic-tienda-item b { color: var(--cv-texto-f2f3f5); font-size: 0.9375rem; }
.pic-tienda-t { color: var(--cv-texto-b5bac1); font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pic-foro li { display: flex; flex-direction: column; padding: 0.375rem 0; border-top: 1px solid var(--cv-borde-29292d); }
.pic-foro li:first-child { border-top: 0; padding-top: 0; }
.pic-foro-tema { color: var(--cv-texto-f2f3f5) !important; font-size: 0.9375rem; font-weight: 600; text-decoration: none !important; }
.pic-foro-tema:hover { text-decoration: underline !important; }
.pic-foro .pic-s { font-size: 0.8125rem; }
/* La columna de la izquierda del invitado (sin canales): el club ahora y los juegos, con cuanta gente hay en cada uno */
html.puente-invitado #channel-list { display: none !important; }
#puente-inv-lado { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0.25rem 0 1rem; }
.pil-ahora { display: flex; flex-direction: column; gap: 0.125rem; margin: 0.25rem 0.25rem 0.75rem; padding: 0.625rem 0.75rem; border: 1px solid var(--cv-borde-29292d); border-radius: 0.625rem; background: var(--cv-fondo-1e1e22); color: var(--cv-texto-b5bac1); font-size: 0.8125rem; line-height: 1.35; }
.pil-ahora b { display: flex; align-items: center; gap: 0.375rem; color: var(--cv-texto-f2f3f5); font-size: 0.8125rem; }
.pil-ahora b::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--cv-fondo-23a55a); }
.pil-tit { margin: 0.25rem 0.5rem 0.375rem; color: var(--cv-texto-949ba4); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.pil-juego { display: flex; align-items: center; gap: 0.625rem; margin: 0 0.25rem; padding: 0.375rem 0.5rem; border-radius: 0.5rem; color: var(--cv-texto-dbdee1) !important; text-decoration: none !important; }
.pil-juego:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-ffffff) !important; }
.pil-tapa { flex: none; width: 3.25rem; height: 2rem; border-radius: 0.3125rem; object-fit: cover; background: var(--cv-fondo-2b2d31); }
.pil-txt { display: flex; flex-direction: column; min-width: 0; }
.pil-txt b { font-size: 0.875rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pil-txt small { color: var(--cv-texto-949ba4); font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pil-txt small.vivo { color: var(--cv-texto-3ba55d); }
.pil-cuenta { display: block; box-sizing: border-box; width: calc(100% - 0.5rem); min-height: 2.5rem; margin: 1rem 0.25rem 0.5rem; border: 0; border-radius: 0.5rem; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); font: inherit; font-size: 0.9375rem; font-weight: 700; cursor: pointer; }
.pil-cuenta:hover { background: var(--cv-fondo-4752c4); }
.pil-nota { margin: 0 0.5rem; color: var(--cv-texto-949ba4); font-size: 0.75rem; line-height: 1.4; }
html:not(.puente-bienvenida):not(.puente-con-canal) #channel-header-name { visibility: hidden; }

/* ── Barra superior ────────────────────────────────── */
[data-haven-region="channel-header"] { background: var(--cv-fondo-1a1a1e); border-bottom: 1px solid var(--cv-borde-29292d); box-shadow: none; }
/* El codigo del canal (8b293fed) y su boton de copiar: Discord no los muestra.
   Siguen en los ajustes del canal (boton del engranaje). */
#channel-code-display, #copy-code-btn { display: none !important; }
/* Avisos de "Obtener la app de escritorio" / "Android Beta" en la barra superior.
   Las apps se siguen pudiendo descargar desde Ajustes. */
.desktop-app-banner, .android-beta-banner { display: none !important; }
/* Nombre del canal en la barra superior */
#channel-header-name { font-family: var(--font-heading); font-weight: 600; }

/* ── Barra de escribir ─────────────────────────────── */
[data-haven-region="composer"] { background: var(--cv-fondo-1a1a1e); border-top: 0; }
#message-input, .message-input-area textarea {
  background: var(--bg-input);
  border: 0;
  border-radius: 8px;
  color: var(--cv-texto-efeff1);
  font-family: var(--font-main);
  font-size: 1rem;
}

/* Con "barra compacta": + a la izquierda, GIF y emoji a la derecha (como
   Discord); el resto de los botones sigue en el menu del +. */
[data-compact-composer] .btn-composer-plus {
  border: 0;
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--cv-fondo-3a3a3f);
  color: var(--cv-texto-efeff1);
  font-size: 1.4rem;
}
[data-compact-composer] .btn-composer-plus:hover,
[data-compact-composer] .btn-composer-plus[aria-expanded="true"] { background: var(--cv-fondo-6d6f78); color: var(--cv-texto-ffffff); }
[data-compact-composer] .input-actions-box:not(.open) {
  display: flex;
  position: static;
  flex-direction: row;
  align-items: center;
  order: 50;
  min-width: 0;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
[data-compact-composer] .input-actions-box:not(.open) > button:not(#emoji-btn):not(#gif-btn) { display: none; }
[data-compact-composer] .input-actions-box:not(.open) > button::after { content: none; }
[data-compact-composer] .input-actions-box:not(.open) > button {
  width: auto;
  padding: 0.35rem 0.45rem;
  color: var(--cv-texto-b5bac1);
}
[data-compact-composer] .input-actions-box:not(.open) > button:hover { color: var(--cv-texto-efeff1); }
[data-compact-composer] #send-btn { order: 60; }

/* ── Imagenes y videos como Discord ────────────────── */
/* Imagenes: grandes a simple vista (Haven las muestra de ~180px por defecto) */
@media (min-width: 769px) {
  .message .chat-image, .message-compact .chat-image {
    max-width: min(100%, 34rem);
    max-height: 22rem;
    border-radius: 8px;
  }
}
/* Videos: sin recuadro ni titulo, solo el video con su boton de play
   (tools/puente/web/aviso.js oculta los controles hasta darle play) */
.file-attachment:has(> .file-video-wrap) {
  background: none;
  border: 0;
  padding: 0;
  box-shadow: none;
  max-width: min(100%, 34rem);
}
.file-attachment:has(> .file-video-wrap) > .file-info { display: none; }
.file-attachment .file-video-wrap { position: relative; border-radius: 8px; overflow: hidden; background: var(--cv-fondo-000000); }
.file-attachment .file-video { display: block; max-width: 100%; max-height: 22rem; border-radius: 8px; }
.puente-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 3rem; height: 3rem; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cv-fondo-000000-60); color: var(--cv-texto-ffffff); font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.puente-play:hover { background: var(--cv-fondo-000000-80); }

/* ── Barras de desplazamiento finas ───────────────── */
* { scrollbar-color: var(--cv-barra-29292d) transparent; scrollbar-width: thin; }

/* ── Celular: menu lateral como la app de Discord ─────
   Columna izquierda con mensajes directos y el icono del servidor (aviso.js),
   panel de canales con la esquina redondeada, categorias en minuscula con la
   flecha despues, canales sin leer en blanco y negrita con un puntito (sin el
   numero rojo), y abajo solo la tarjeta del usuario. Colores medidos sobre
   capturas de la app de Discord. */
.puente-rail, .puente-account-avatar { display: none; }
/* Cuantos miembros hay en CV Chat, debajo del nombre del servidor (en la PC tambien; aviso.js) */
@media (min-width: 769px) {
  html body [data-haven-region="navigation-sidebar"] .sidebar-header:has(> #puente-server-info) { flex-wrap: wrap; row-gap: 0; }
  html body #puente-server-info { order: 5; flex: 0 0 100%; margin: -0.125rem 0 0; padding-left: var(--puente-info-sangria, 2.5rem); color: var(--cv-texto-96969e); font-size: 0.8125rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html body #puente-server-info b { color: var(--cv-texto-dbdee1); font-weight: 600; }
}
@media (max-width: 768px) {
  html body [data-haven-region="navigation-sidebar"] { background: var(--cv-fondo-121214); padding-left: 4.5rem !important; }
  .puente-rail {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    position: absolute; left: 0; top: 0; bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
    width: 4.5rem; padding: calc(env(safe-area-inset-top, 0px) + 0.75rem) 0 0.75rem; box-sizing: border-box;
    background: var(--cv-fondo-121214); z-index: 4; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: none;
  }
  .puente-rail-btn {
    position: relative; width: 3rem; height: 3rem; flex-shrink: 0; padding: 0; border: 0; border-radius: 1rem;
    display: flex; align-items: center; justify-content: center; overflow: visible;
    background: var(--cv-fondo-252429); color: var(--cv-texto-dbdee1); cursor: pointer;
  }
  .puente-rail-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
  .puente-rail-server { background: transparent; }
  .puente-rail-btn::before {
    content: ''; position: absolute; left: -0.75rem; top: 50%; transform: translateY(-50%) scaleY(0); opacity: 0;
    width: 0.25rem; height: 2.5rem; border-radius: 0 0.25rem 0.25rem 0; background: var(--cv-fondo-fbfbfb); pointer-events: none;
    transition: transform 0.22s cubic-bezier(0.3, 0.7, 0.4, 1.25), opacity 0.15s ease;
  }
  .puente-rail-btn.active::before { transform: translateY(-50%) scaleY(1); opacity: 1; }
  body:has(#puente-mercado, #puente-juegos) .puente-rail-dm::before,
  body:has(#puente-mercado, #puente-juegos) .puente-rail-server::before { transform: translateY(-50%) scaleY(0); opacity: 0; }
  .puente-rail-dm.active { background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); }
  .puente-rail-sep { width: 2rem; height: 2px; border-radius: 1px; background: var(--cv-fondo-2e2d32); flex-shrink: 0; }
  .puente-rail-badge {
    position: absolute; right: -0.25rem; bottom: -0.25rem; min-width: 1.125rem; height: 1.125rem; padding: 0 0.25rem;
    border-radius: 0.5625rem; border: 3px solid var(--cv-borde-121214); background: var(--cv-fondo-f23f43); color: var(--cv-sobre-acento-ffffff);
    font-size: 0.6875rem; font-weight: 700; line-height: 1.125rem; text-align: center; box-sizing: content-box;
  }
  /* Panel de la derecha: canales o mensajes directos */
  html body [data-haven-region="navigation-sidebar"] .sidebar-header,
  html body [data-haven-region="sidebar-content"],
  html body [data-haven-region="sidebar-footer"] { background: var(--cv-fondo-1a191e); }
  html body [data-haven-region="navigation-sidebar"] .sidebar-header {
    border-top-left-radius: 1rem; border-bottom: 1px solid var(--cv-borde-252429);
    padding: calc(env(safe-area-inset-top, 0px) + 1rem) 3rem 0.875rem 1rem; display: block;
  }
  html body .sidebar-header .brand .logo-sm { display: none; }
  html body .sidebar-header .brand-text { letter-spacing: 0; text-transform: none; font-size: 1.375rem; font-weight: 800; color: var(--cv-texto-fbfbfb); font-family: var(--font-heading, inherit); }
  #puente-server-info { display: block; margin-top: 0.125rem; color: var(--cv-texto-96969e); font-size: 0.875rem; }
  /* Sin el titulo "CANALES" ni la seccion de mensajes directos en la vista de canales */
  html body #channels-toggle { display: none !important; }
  html body [data-haven-region="navigation-sidebar"]:not(.puente-ver-dms) #dm-pane,
  html body [data-haven-region="navigation-sidebar"]:not(.puente-ver-dms) #sidebar-split-handle { display: none !important; }
  html body .puente-ver-dms #channels-pane, html body .puente-ver-dms #sidebar-split-handle { display: none !important; }
  html body .puente-ver-dms #dm-pane { display: flex !important; flex: 1 1 auto !important; }
  html body .puente-ver-dms #dm-list { display: block !important; }
  html body .puente-ver-dms #dm-toggle-header { font-size: 1.125rem; font-weight: 700; color: var(--cv-texto-fbfbfb); text-transform: none; letter-spacing: 0; padding: 0.75rem 1rem; opacity: 1; }
  html body .puente-ver-dms #dm-toggle-arrow { display: none; }
  /* Categorias: "meta ⌄", en minuscula y con la flecha despues */
  html body .category-label {
    text-transform: none !important; letter-spacing: 0 !important; opacity: 1 !important;
    font-size: 0.9375rem !important; font-weight: 600; color: var(--cv-texto-96969e);
    padding: 1.25rem 0.75rem 0.375rem 1rem !important; gap: 0.25rem !important;
  }
  html body .category-label .cat-collapse-arrow { order: 2; font-size: 0.875rem; }
  /* Canales: filas juntas como en la app de Discord, para que entren mas */
  html body .channel-item { position: relative; min-height: 2.125rem; margin: 1px 0.5rem; padding: 0 0.75rem; border-radius: 0.5rem; gap: 0.5rem; }
  html body .channel-item .channel-hash { font-size: 1.375rem; color: var(--cv-texto-80848e); width: 1.5rem; text-align: center; }
  html body .channel-item.private-channel .channel-hash { font-size: 1.375rem; }
  html body .channel-item .channel-name { font-size: 1.0625rem; font-weight: 500; color: var(--cv-texto-96969e); }
  html body .channel-item.active { background: var(--cv-fondo-343338); border-left: 0 !important; box-shadow: none !important; }
  html body .channel-item.active::after, html body .channel-item.active::before { display: none !important; }
  html body .channel-item.active .channel-name, html body .channel-item.active .channel-hash { color: var(--cv-texto-fbfbfb); }
  html body .channel-item:has(> .channel-badge) .channel-name { color: var(--cv-texto-fbfbfb); font-weight: 700; }
  html body .channel-item:has(> .channel-badge)::before {
    content: ''; position: absolute; left: -0.5rem; top: 50%; transform: translateY(-50%);
    width: 0.25rem; height: 0.5rem; border-radius: 0 0.25rem 0.25rem 0; background: var(--cv-fondo-fbfbfb);
  }
  html body .channel-item > .channel-badge:not(.channel-badge-bubble) { display: none; }
  html body .channel-item .channel-more-btn { display: none; }
  /* Abajo: solo la tarjeta del usuario (los ajustes pasan a la tarjeta) */
  html body [data-haven-region="sidebar-actions"] { display: none !important; }
  html body [data-haven-region="sidebar-footer"] { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px)) !important; }
  html body [data-haven-region="account"] { background: var(--cv-fondo-252429); gap: 0.625rem; padding-left: 0.75rem; }
  .puente-account-avatar {
    display: flex; position: relative; flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; overflow: hidden;
    align-items: center; justify-content: center; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); font-weight: 700;
  }
  .puente-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
  html body [data-haven-region="account"] #connection-led { position: absolute; left: 2.5rem; top: calc(50% - env(safe-area-inset-bottom, 0px) / 2 + 0.5rem); width: 0.75rem; height: 0.75rem; border: 3px solid var(--cv-borde-252429); z-index: 2; }
  html body [data-haven-region="account"] .puente-account-gear { display: flex !important; margin-left: auto; background: transparent; border: 0; filter: grayscale(1); opacity: 0.8; min-width: 2.75rem; min-height: 2.75rem; font-size: 1.25rem; align-items: center; justify-content: center; }
}

/* ── Celular: mensajes directos como la app de Discord ── (aviso.js) */
.puente-dm-avatar, .puente-dm-time, .puente-dm-new { display: none; }
@media (max-width: 768px) {
  html body .puente-ver-dms .sidebar-header { display: none !important; }
  html body .puente-ver-dms #dm-pane { border-top-left-radius: 1rem; background: var(--cv-fondo-1a191e); padding-top: env(safe-area-inset-top, 0px); }
  html body .puente-ver-dms #dm-toggle-header {
    display: flex !important; align-items: center; gap: 0.5rem; cursor: default;
    padding: 1rem 1rem 0.75rem !important; margin: 0; border: 0;
    font-size: 1.5rem !important; font-weight: 800 !important; color: var(--cv-texto-fbfbfb) !important;
    text-transform: none !important; letter-spacing: 0 !important; opacity: 1 !important; white-space: nowrap;
  }
  html body .puente-ver-dms #dm-toggle-header #new-group-dm-btn,
  html body .puente-ver-dms #dm-toggle-header #organize-dms-btn,
  html body .puente-ver-dms #dm-toggle-header #dm-unread-badge { display: none !important; }
  html body .puente-ver-dms .puente-dm-new {
    display: flex; margin-left: auto; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center;
    border: 0; border-radius: 0.75rem; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); font-size: 1.625rem; font-weight: 400; line-height: 1; cursor: pointer;
  }
  html body #dm-list .dm-item { min-height: 3.5rem; gap: 0.875rem; padding: 0.375rem 0.75rem; }
  html body #dm-list .dm-item .channel-hash { display: none; }
  html body #dm-list .dm-item .channel-name { font-size: 1.0625rem; font-weight: 500; color: var(--cv-texto-dbdee1); flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html body #dm-list .dm-item:has(> .channel-badge) .channel-name { color: var(--cv-texto-fbfbfb); font-weight: 700; }
  html body #dm-list .dm-item > .channel-badge:not(.channel-badge-bubble) {
    display: inline-flex; min-width: 1.25rem; height: 1.25rem; padding: 0 0.375rem; border-radius: 0.625rem;
    align-items: center; justify-content: center; background: var(--cv-fondo-f23f43); color: var(--cv-sobre-acento-ffffff); font-size: 0.75rem; font-weight: 700;
  }
  html body #dm-list .dm-item.active { background: var(--cv-fondo-343338); }
  .puente-dm-avatar {
    display: flex; flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; overflow: hidden;
    align-items: center; justify-content: center; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); font-weight: 700; font-size: 1.0625rem;
  }
  .puente-dm-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .puente-dm-time { display: block; flex-shrink: 0; margin-left: auto; color: var(--cv-texto-96969e); font-size: 0.8125rem; }
}
.puente-dm-title { display: none; }
@media (max-width: 768px) {
  html body .puente-ver-dms #dm-toggle-header .section-label-text { display: none !important; }
  html body .puente-ver-dms #dm-toggle-header .puente-dm-title { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* Categorias: sin el puntito ni el numero de "hay mensajes sin leer adentro" */
.category-label > .channel-badge-nested-dot,
.category-label > .channel-badge,
.category-label > .cat-unread-badge { display: none !important; }

/* "+ Create Temp Channel" (canal de voz temporal): Discord no lo tiene */
.channel-item.temp-channel-create-btn { display: none !important; }

/* ── Perfil de una persona en pantallas tactiles: hoja como la app de Discord ── (aviso.js) */
#puente-profile-backdrop { position: fixed; inset: 0; z-index: 100009; background: var(--cv-fondo-000000-60); animation: puente-fade 0.14s ease-out; }
html body #profile-popup.puente-profile-sheet {
  position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important;
  width: 100% !important; max-width: 37.5rem; max-height: 88vh; margin: 0 auto; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 0 calc(1.25rem + env(safe-area-inset-bottom, 0px)); box-sizing: border-box;
  border: 0; border-radius: 1.25rem 1.25rem 0 0; background: var(--cv-fondo-121214) !important;
  backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 -8px 32px var(--cv-sombra-000000-50);
  transition: transform 0.2s ease; animation: puente-sheet-up 0.16s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.puente-profile-sheet .puente-profile-handle { position: absolute; left: 50%; top: 0.5rem; margin: 0; transform: translateX(-50%); z-index: 2; background: var(--cv-fondo-ffffff-85); }
.puente-profile-sheet .profile-popup-banner { height: 9rem; border-radius: 1.25rem 1.25rem 0 0; }
.puente-profile-sheet .profile-popup-close { display: none; }
.puente-profile-sheet .profile-popup-avatar-wrapper { margin: -3.75rem 0 0 1.25rem; width: 7rem; height: 7rem; position: relative; }
.puente-profile-sheet .profile-popup-avatar { width: 6.5rem !important; height: 6.5rem !important; border: 0.375rem solid var(--cv-borde-121214); box-sizing: content-box; font-size: 2.5rem; }
.puente-profile-sheet .profile-popup-status-dot { width: 1.25rem; height: 1.25rem; border: 0.25rem solid var(--cv-borde-121214); right: 0.25rem; bottom: 0.25rem; }
.puente-profile-sheet .profile-popup-body { display: flex; flex-direction: column; padding: 0.75rem 1.25rem 0; }
.puente-profile-sheet .profile-popup-names { order: 1; }
/* Medallas y "Tu historia" (aviso.js): debajo del nombre, como en la PC */
.puente-profile-sheet .puente-medallas, .puente-profile-sheet .puente-perfil-est, .puente-profile-sheet .puente-historia-btn { order: 1; }
.puente-profile-sheet .profile-popup-displayname { font-size: 1.75rem; font-weight: 800; color: var(--cv-texto-fbfbfb); line-height: 1.2; }
.puente-profile-sheet .profile-popup-username { font-size: 1rem; color: var(--cv-texto-dbdee1); }
.puente-profile-sheet #profile-popup-status-slot { order: 2; }
.puente-profile-sheet .profile-popup-actions { order: 3; display: flex; gap: 0.75rem; margin: 1.25rem 0 0.5rem; }
.puente-profile-sheet .profile-popup-action-btn { min-height: 3rem; border-radius: 0.75rem; font-size: 1rem; font-weight: 600; border: 0; }
.puente-profile-sheet .profile-dm-btn, .puente-profile-sheet .profile-edit-btn { flex: 1 1 auto; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); }
.puente-profile-sheet .profile-gear-btn { flex: 0 0 auto; background: var(--cv-fondo-252429); color: var(--cv-texto-dbdee1); padding: 0 1rem; }
.puente-profile-sheet .profile-popup-bio { order: 4; margin-top: 0.75rem; }
.puente-profile-sheet .profile-popup-divider { display: none; }
.puente-profile-sheet .profile-popup-section-label { margin-top: 1.25rem; font-size: 1rem; font-weight: 600; color: var(--cv-texto-fbfbfb); text-transform: none; letter-spacing: 0; }
.puente-profile-sheet .profile-popup-section-label:has(+ .profile-popup-join-date) { order: 5; }
.puente-profile-sheet .profile-popup-join-date { order: 6; font-size: 1.0625rem; color: var(--cv-texto-dbdee1); margin-top: 0.375rem; }
.puente-profile-sheet .profile-popup-section-label:has(+ .profile-popup-roles) { order: 7; }
.puente-profile-sheet .profile-popup-roles { order: 8; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.puente-profile-sheet .profile-popup-role { border: 0 !important; background: var(--cv-fondo-252429); color: var(--cv-texto-fbfbfb) !important; border-radius: 0.5rem; padding: 0.375rem 0.75rem; font-size: 1rem; }
.puente-profile-sheet #profile-popup-activity-slot { order: 9; }
/* Botones del perfil: "Mensaje" ancho en una linea y el engranaje cuadrado al lado, como Discord */
html body .puente-profile-sheet .profile-popup-actions { flex-wrap: nowrap; align-items: stretch; width: 100%; }
html body .puente-profile-sheet .profile-dm-btn,
html body .puente-profile-sheet .profile-edit-btn {
  flex: 1 1 0 !important; width: auto !important; min-width: 0; max-width: none !important;
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 0.5rem; white-space: nowrap;
}
html body .puente-profile-sheet .profile-gear-btn {
  flex: 0 0 3rem !important; width: 3rem !important; min-width: 3rem; max-width: 3rem !important; height: 3rem; padding: 0 !important;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 0 !important; color: transparent; background: var(--cv-fondo-252429) !important; border: 0 !important;
}
html body .puente-profile-sheet .profile-gear-btn::before { content: '⚙️'; font-size: 1.25rem; color: var(--cv-texto-dbdee1); filter: grayscale(1) brightness(1.6); }

/* Pestañita 📊 de la barra de estado de Haven: quedaba encima del boton de enviar */
#status-bar-toggle { display: none !important; }

/* ── Celular: cuadro de escribir con los tamaños de la app de Discord ──
   Medido sobre capturas: el campo mide ~56px de alto y es #252429. */
@media (max-width: 768px) {
  html body #message-input-area {
    gap: 0.5rem !important; align-items: center !important;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px)) !important;
    background: var(--cv-fondo-1a191e) !important; border-top: 0 !important;
  }
  html body #message-input {
    min-height: 3.5rem !important; max-height: 40vh; box-sizing: border-box;
    padding: 1rem 1.125rem !important; border: 0 !important; border-radius: 1.75rem !important;
    background: var(--cv-fondo-252429) !important; color: var(--cv-texto-fbfbfb); font-size: 1.0625rem !important; line-height: 1.5rem !important;
  }
  html body #message-input::placeholder { color: var(--cv-texto-96969e); }
  html body #composer-plus-btn {
    flex: 0 0 3.5rem !important; width: 3.5rem !important; height: 3.5rem !important; min-width: 3.5rem;
    border-radius: 50% !important; background: var(--cv-fondo-252429) !important; color: var(--cv-texto-dbdee1) !important; font-size: 1.75rem !important;
  }
  html body #message-input-area .input-actions-box:not(.open) > button { width: 3rem !important; height: 3rem !important; min-width: 3rem; font-size: 1.5rem !important; }
  html body #message-input-area .input-actions-box:not(.open) > button svg { width: 1.625rem; height: 1.625rem; }
  html body #message-input-area #burn-btn { width: 3rem !important; height: 3rem !important; font-size: 1.375rem !important; }
  html body #send-btn { flex: 0 0 3.5rem !important; width: 3.5rem !important; height: 3.5rem !important; min-width: 3.5rem; border-radius: 50% !important; }
  html body #send-btn svg { width: 1.5rem; height: 1.5rem; }
}
@media (max-width: 768px) {
  html body #message-input { width: 100% !important; flex: 1 1 auto; white-space: normal; }
  html body #message-input::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html body #message-input-area .input-actions-box:not(.open) > #gif-btn { width: auto !important; min-width: 0; padding: 0 0.375rem !important; font-size: 0.8125rem !important; font-weight: 800; }
  html body #message-input-area .input-actions-box:not(.open) > #emoji-btn { width: 2.75rem !important; height: 2.75rem !important; min-width: 2.75rem; }
  html body #message-input-area .input-actions-box:not(.open) { gap: 0.125rem !important; flex: 0 0 auto; }
}
/* Celular: sin la manija gris para cambiar el alto del cuadro de escribir (Discord no la tiene) */
@media (max-width: 768px) {
  html body #message-input-area > .pip-input-resizer { display: none !important; }
}

/* ── Menu de un usuario en pantallas tactiles: hoja como la del menu de un mensaje ── (aviso.js) */
#puente-user-backdrop { position: fixed; inset: 0; z-index: 100011; background: var(--cv-fondo-000000-60); animation: puente-fade 0.14s ease-out; }
html body #user-context-menu.puente-user-sheet {
  position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important;
  z-index: 100012; width: 100%; max-width: 37.5rem; max-height: 85vh; margin: 0 auto; overflow-y: auto; overscroll-behavior: contain;
  padding: 0.5rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); box-sizing: border-box;
  background: var(--cv-fondo-252429); border: 0; border-radius: 1.25rem 1.25rem 0 0; box-shadow: 0 -8px 32px var(--cv-sombra-000000-45);
  transition: transform 0.2s ease; animation: puente-sheet-up 0.16s cubic-bezier(0.2, 0.9, 0.3, 1); min-width: 0;
}
.puente-user-sheet .puente-user-title { padding: 0.25rem 0.25rem 0.875rem; border: 0; font-size: 1.25rem; font-weight: 800; color: var(--cv-texto-fbfbfb); background: none; }
.puente-user-sheet .puente-sheet-group > button,
.puente-user-sheet .user-ctx-submenu-trigger,
.puente-user-sheet .user-ctx-submenu > button {
  display: flex; align-items: center; gap: 1rem; width: 100%; min-height: 3.5rem; padding: 0 1.125rem;
  border: 0; border-radius: 0; background: transparent; color: var(--cv-texto-fbfbfb); font: inherit; font-size: 1rem; font-weight: 500; text-align: left; cursor: pointer;
}
.puente-user-sheet .puente-sheet-group > * + * { box-shadow: inset 3.375rem 1px 0 -1px var(--cv-sombra-2e2d32), inset 0 1px 0 var(--cv-sombra-3b3a3f); }
.puente-user-sheet .puente-sheet-group > button:active, .puente-user-sheet .user-ctx-submenu-trigger:active, .puente-user-sheet .user-ctx-submenu > button:active { background: var(--cv-fondo-36353b); }
.puente-user-sheet .user-ctx-danger { color: var(--cv-texto-f2777a) !important; }
.puente-user-sheet .user-ctx-danger .puente-sheet-icon { filter: none; }
.puente-user-sheet .user-ctx-submenu-wrapper { position: static; }
.puente-user-sheet .user-ctx-arrow { margin-left: auto; transition: transform 0.15s; }
.puente-user-sheet .user-ctx-submenu-wrapper.puente-abierto .user-ctx-arrow { transform: rotate(90deg); }
.puente-user-sheet .user-ctx-submenu { display: none !important; position: static !important; box-shadow: none !important; border: 0 !important; background: var(--cv-fondo-252429) !important; max-height: none; padding: 0; margin: 0; }
.puente-user-sheet .user-ctx-submenu-wrapper.puente-abierto .user-ctx-submenu { display: block !important; }
.puente-user-sheet .user-ctx-submenu > button { padding-left: 3.5rem; color: var(--cv-texto-dbdee1); }

/* ── PC: columna izquierda, canales, mensajes directos y tarjeta del usuario
   como Discord de escritorio ── (aviso.js agrega el boton de mensajes directos)
   Arriba de la columna el boton de mensajes directos y el servidor (sin los
   botones de Haven para agregar, administrar y sincronizar servidores); el
   boton cambia la lista de canales por la de conversaciones. Abajo a la
   izquierda: avatar con el puntito de estado, nombre y engranaje. Los menus
   siguen siendo ventanitas flotantes, como en Discord de escritorio. */
@media (min-width: 769px) {
  html body .server-bar { width: 4.5rem; min-width: 4.5rem; padding: 0.75rem 0; gap: 0.5rem; background: var(--cv-fondo-121214); border-right: 0; scrollbar-width: none; }
  html body .server-bar .server-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--cv-fondo-252429); overflow: visible; transition: border-radius 0.15s ease, background 0.15s ease; }
  html body .server-bar .server-icon:hover { border-radius: 0.75rem; }
  html body .server-bar .server-icon.home { border-radius: 0.75rem; background: transparent; }
  html body .server-bar .server-icon.home.puente-inactivo { border-radius: 50%; }
  html body .server-bar .server-icon.home.puente-inactivo:hover { border-radius: 0.75rem; }
  html body .server-bar .server-separator { width: 2rem; height: 2px; border-radius: 1px; background: var(--cv-fondo-2e2d32); margin: 0; }
  html body #add-server-btn, html body #manage-servers-btn, html body #sync-servers-btn { display: none !important; }
  html body #server-list:empty, html body .server-separator:has(+ #server-list:empty) { display: none; }
  .puente-pc-dm { color: var(--cv-texto-dbdee1); }
  .puente-pc-dm svg { width: 1.375rem; height: 1.375rem; }
  html body .server-bar .puente-pc-dm:hover, html body .server-bar .puente-pc-dm.active { background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); border-radius: 0.75rem; }
  /* La rayita blanca de la izquierda, como Discord: con el mouse encima aparece cortita y en el
     elegido crece hasta el alto del icono (se achica en el que se deja y crece en el nuevo).
     Con el Marketplace o Juegos abiertos, el elegido es ese boton y no el servidor */
  html body .server-bar .server-icon::before {
    content: ""; position: absolute; left: -1rem; top: 50%; width: 0.25rem; height: 2.5rem; border-radius: 0 0.25rem 0.25rem 0; background: var(--cv-fondo-fbfbfb);
    transform: translateY(-50%) scaleY(0); opacity: 0; pointer-events: none;
    transition: transform 0.22s cubic-bezier(0.3, 0.7, 0.4, 1.25), opacity 0.15s ease;
  }
  html body .server-bar .server-icon:hover::before { transform: translateY(-50%) scaleY(0.5); opacity: 1; }
  html body .server-bar .puente-pc-dm.active::before,
  html body .server-bar .server-icon.home:not(.puente-inactivo)::before,
  html body .server-bar .puente-mk-btn.active::before,
  html body .server-bar .puente-jg-btn.active::before { transform: translateY(-50%) scaleY(1); opacity: 1; }
  html body:has(#puente-mercado, #puente-juegos) .server-bar .server-icon.home:not(:hover)::before,
  html body:has(#puente-mercado, #puente-juegos) .server-bar .puente-pc-dm:not(:hover)::before { transform: translateY(-50%) scaleY(0); opacity: 0; }
  html body:has(#puente-mercado, #puente-juegos) .server-bar .server-icon.home:hover::before,
  html body:has(#puente-mercado, #puente-juegos) .server-bar .puente-pc-dm:hover::before { transform: translateY(-50%) scaleY(0.5); }
  html body .server-bar .puente-rail-badge {
    position: absolute; right: -0.25rem; bottom: -0.25rem; min-width: 1rem; height: 1rem; padding: 0 0.25rem;
    border-radius: 0.5rem; border: 3px solid var(--cv-borde-121214); background: var(--cv-fondo-f23f43); color: var(--cv-sobre-acento-ffffff);
    font-size: 0.6875rem; font-weight: 700; line-height: 1rem; text-align: center; box-sizing: content-box;
  }

  /* Nombre del servidor arriba, sin letras separadas */
  html body .sidebar-header .brand .logo-sm { display: none; }
  html body .sidebar-header .brand-text { letter-spacing: 0; text-transform: none; font-size: 1rem; font-weight: 700; color: var(--cv-texto-fbfbfb); font-family: var(--font-heading, inherit); }

  /* Sin el titulo "CANALES" ni la seccion de mensajes directos en la vista de canales */
  html body #channels-toggle { display: none !important; }
  html body [data-haven-region="navigation-sidebar"]:not(.puente-ver-dms) #dm-pane,
  html body [data-haven-region="navigation-sidebar"]:not(.puente-ver-dms) #sidebar-split-handle { display: none !important; }
  html body .puente-ver-dms #channels-pane, html body .puente-ver-dms #sidebar-split-handle { display: none !important; }
  html body .puente-ver-dms #dm-pane { display: flex !important; flex: 1 1 auto !important; }
  html body .puente-ver-dms #dm-list { display: block !important; }

  /* Categorias: "meta ⌄", en minuscula y con la flecha despues */
  html body .category-label {
    text-transform: none !important; letter-spacing: 0 !important; opacity: 1 !important;
    font-size: 0.875rem !important; font-weight: 600; color: var(--cv-texto-96969e);
    padding: 1rem 0.5rem 0.25rem 1rem !important; gap: 0.25rem !important;
  }
  html body .category-label:hover { color: var(--cv-texto-dbdee1); }
  html body .category-label .cat-collapse-arrow { order: 2; font-size: 0.75rem; }

  /* Canales: el elegido en gris claro; los que tienen mensajes nuevos en blanco
     y negrita con un puntito a la izquierda, sin el numero */
  html body .channel-item { position: relative; min-height: 2rem; margin: 1px 0.5rem; padding: 0 0.5rem; border-radius: 0.375rem; gap: 0.375rem; }
  /* (los tamaños de Discord de escritorio: el # de 20px bien marcado y el nombre de 16px) */
  html body .channel-item .channel-hash { font-size: 1.5rem; font-weight: 500; line-height: 1; color: var(--cv-texto-80848e); width: 1.5rem; text-align: center; }
  /* (Haven achica el # de los canales privados, que son casi todos: todos iguales) */
  html body .channel-item.private-channel .channel-hash { font-size: 1.5rem; }
  html body .channel-item .channel-name { font-size: 1rem; font-weight: 500; color: var(--cv-texto-96969e); }
  html body .channel-item:hover { background: var(--cv-fondo-29292e); }
  html body .channel-item:hover .channel-name { color: var(--cv-texto-dbdee1); }
  html body .channel-item.active { background: var(--cv-fondo-343338); border-left: 0 !important; box-shadow: none !important; }
  html body .channel-item.active::after, html body .channel-item.active::before { display: none !important; }
  html body .channel-item.active .channel-name, html body .channel-item.active .channel-hash { color: var(--cv-texto-fbfbfb); }
  html body .channel-item:has(> .channel-badge) .channel-name { color: var(--cv-texto-fbfbfb); font-weight: 700; }
  html body .channel-item:has(> .channel-badge)::before {
    content: ""; position: absolute; left: -0.5rem; top: 50%; transform: translateY(-50%);
    width: 0.25rem; height: 0.5rem; border-radius: 0 0.25rem 0.25rem 0; background: var(--cv-fondo-fbfbfb);
  }
  html body .channel-item > .channel-badge:not(.channel-badge-bubble) { display: none; }

  /* Mensajes directos: "Mensajes directos +" y cada conversacion con su avatar */
  html body .puente-ver-dms .sidebar-header .brand { display: none; }
  html body .puente-ver-dms #dm-toggle-header {
    display: flex !important; align-items: center; gap: 0.5rem; cursor: default;
    padding: 1rem 0.75rem 0.375rem 1rem !important; margin: 0; border: 0;
    font-size: 0.875rem !important; font-weight: 600 !important; color: var(--cv-texto-96969e) !important;
    text-transform: none !important; letter-spacing: 0 !important; opacity: 1 !important; white-space: nowrap;
  }
  html body .puente-ver-dms #dm-toggle-arrow,
  html body .puente-ver-dms #dm-toggle-header #new-group-dm-btn,
  html body .puente-ver-dms #dm-toggle-header #organize-dms-btn,
  html body .puente-ver-dms #dm-toggle-header #dm-unread-badge,
  html body .puente-ver-dms #dm-toggle-header .section-label-text { display: none !important; }
  html body .puente-ver-dms #dm-toggle-header .puente-dm-title { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  html body .puente-ver-dms #dm-toggle-header .puente-dm-title::after { content: "\00a0 directos"; }
  html body .puente-ver-dms .puente-dm-new {
    display: flex; margin-left: auto; width: 1.5rem; height: 1.5rem; align-items: center; justify-content: center;
    border: 0; border-radius: 0.25rem; background: transparent; color: var(--cv-texto-b5bac1); font-size: 1.25rem; line-height: 1; cursor: pointer;
  }
  html body .puente-ver-dms .puente-dm-new:hover { color: var(--cv-texto-fbfbfb); }
  html body #dm-list .dm-item { min-height: 2.75rem; gap: 0.75rem; margin: 1px 0.5rem; padding: 0.25rem 0.5rem; border-radius: 0.375rem; }
  html body #dm-list .dm-item:hover { background: var(--cv-fondo-29292e); }
  html body #dm-list .dm-item.active { background: var(--cv-fondo-343338); }
  html body #dm-list .dm-item .channel-hash { display: none; }
  html body #dm-list .dm-item .channel-name { font-size: 0.9375rem; font-weight: 500; color: var(--cv-texto-96969e); flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html body #dm-list .dm-item:hover .channel-name, html body #dm-list .dm-item.active .channel-name { color: var(--cv-texto-fbfbfb); }
  html body #dm-list .dm-item:has(> .channel-badge) .channel-name { color: var(--cv-texto-fbfbfb); font-weight: 700; }
  html body #dm-list .dm-item > .channel-badge:not(.channel-badge-bubble) {
    display: inline-flex; min-width: 1rem; height: 1rem; padding: 0 0.3125rem; border-radius: 0.5rem;
    align-items: center; justify-content: center; background: var(--cv-fondo-f23f43); color: var(--cv-sobre-acento-ffffff); font-size: 0.6875rem; font-weight: 700;
  }
  .puente-dm-avatar {
    display: flex; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; overflow: hidden;
    align-items: center; justify-content: center; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); font-weight: 700; font-size: 0.875rem;
  }
  .puente-dm-avatar img { width: 100%; height: 100%; object-fit: cover; }

  /* Abajo a la izquierda: avatar con el puntito de estado, nombre y engranaje
     (sin la fila de iconos de Haven ni el lapiz; el boton de salir queda) */
  html body [data-haven-region="sidebar-actions"] { display: none !important; }
  html body [data-haven-region="sidebar-footer"] { padding-bottom: 3.25rem !important; }
  html body [data-haven-region="account"] { background: var(--cv-fondo-1e1e22); gap: 0.5rem; padding: 0 0.375rem 0 0.5rem; }
  html body [data-haven-region="account"] #rename-btn { display: none !important; }
  .puente-account-avatar {
    display: flex; position: relative; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; overflow: hidden;
    align-items: center; justify-content: center; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); font-weight: 700; font-size: 0.875rem;
  }
  .puente-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
  html body [data-haven-region="account"]:has(.puente-account-avatar) #connection-led {
    position: absolute; left: 1.75rem; top: 1.75rem; width: 0.625rem; height: 0.625rem; margin: 0;
    border: 3px solid var(--cv-borde-1e1e22); z-index: 2; box-sizing: content-box;
  }
  html body [data-haven-region="account"] .current-user { font-size: 0.875rem; line-height: 1.125rem; }
  html body [data-haven-region="account"] .login-name { font-size: 0.75rem; line-height: 1rem; color: var(--cv-texto-96969e); }
  html body [data-haven-region="account"] .icon-btn,
  html body [data-haven-region="account"] .puente-account-gear {
    width: 2rem; height: 2rem; min-width: 2rem; padding: 0; border: 0; border-radius: 0.375rem; background: transparent;
    display: flex !important; align-items: center; justify-content: center; color: var(--cv-texto-b5bac1); cursor: pointer;
  }
  html body [data-haven-region="account"] .puente-account-gear { filter: grayscale(1); opacity: 0.8; font-size: 1.0625rem; }
  html body [data-haven-region="account"] .icon-btn:hover,
  html body [data-haven-region="account"] .puente-account-gear:hover { background: var(--cv-fondo-2e2d32); opacity: 1; }
  /* El engranaje ya esta abajo a la izquierda: sin el boton "Settings" del panel derecho */
  html.puente-gear-cuenta body .right-sidebar .sidebar-settings-panel { display: none !important; }
}

/* PC: pantalla de mensajes directos (cuando todavia no abriste ninguna
   conversacion), como "Amigos" en Discord de escritorio (aviso.js) */
html body [data-haven-region="main"]:has(> #puente-dm-home) { position: relative; }
#puente-dm-home {
  position: absolute; inset: 0; z-index: 20; overflow-y: auto; box-sizing: border-box;
  padding: 1.5rem 2rem; background: var(--cv-fondo-1a1a1e); color: var(--cv-texto-dbdee1);
}
.puente-dm-home-title { font-size: 1rem; font-weight: 700; color: var(--cv-texto-fbfbfb); padding-bottom: 1rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--cv-borde-29292d); }
.puente-dm-home-empty { color: var(--cv-texto-96969e); font-size: 0.9375rem; padding: 2rem 0; text-align: center; }
.puente-dm-home-row {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; max-width: 40rem; min-height: 3.5rem;
  padding: 0.5rem 0.75rem; border: 0; border-bottom: 1px solid var(--cv-borde-29292d); border-radius: 0.5rem;
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.puente-dm-home-row:hover { background: var(--cv-fondo-29292e); }
.puente-dm-home-row .puente-dm-avatar {
  display: flex; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; overflow: hidden;
  align-items: center; justify-content: center; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); font-weight: 700;
}
.puente-dm-home-row .puente-dm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.puente-dm-home-name { flex: 1 1 auto; font-size: 1rem; font-weight: 600; color: var(--cv-texto-fbfbfb); }
.puente-dm-home-chat {
  display: flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--cv-fondo-252429); filter: grayscale(1); font-size: 1rem;
}

/* PC: linea que separa la columna de iconos del panel de canales (con la
   esquina de arriba redondeada, como Discord), y la barra de desplazamiento
   de los canales invisible hasta pasar el mouse por encima */
@media (min-width: 769px) {
  html body [data-haven-region="navigation-sidebar"] {
    border-left: 1px solid var(--cv-borde-29292d); border-top: 1px solid var(--cv-borde-29292d); border-top-left-radius: 0.5rem; box-sizing: border-box;
  }
  html body [data-haven-region="navigation-sidebar"] * { scrollbar-color: transparent transparent; }
  html body [data-haven-region="navigation-sidebar"]:hover * { scrollbar-color: var(--cv-barra-2e2d32) transparent; }
  /* El puntito de estado de Haven: el estado se elige desde tu tarjeta */
  html body [data-haven-region="account"] #user-status-btn { display: none !important; }
  html body [data-haven-region="account"] .user-names,
  html body [data-haven-region="account"] .puente-account-avatar { cursor: pointer; }
  html body [data-haven-region="account"] .user-names:hover .current-user { text-decoration: none; color: var(--cv-texto-ffffff); }
}

/* La barra de la cuenta desde Haven 4.31: Haven puso su propia foto (#user-bar-avatar, que abre "Editar perfil", con
   el puntito de conexion adentro) y con la nuestra se veian dos fotos (1/12/2026). Su foto no se ve y su boton no arma
   caja: el puntito vuelve a quedar sobre nuestra foto, como antes, y un clic ahi abre nuestra tarjeta. */
html body [data-haven-region="account"]:has(.puente-account-avatar) #user-bar-avatar { display: contents; }
html body [data-haven-region="account"]:has(.puente-account-avatar) #user-bar-avatar > :not(#connection-led) { display: none !important; }
html body [data-haven-region="account"]:has(.puente-account-avatar) #connection-led { pointer-events: none; }
/* Tambien nuevas en la 4.31: la linea "Establecer estado" (el estado ya se elige en tu tarjeta en la PC y con el
   puntito en el celular) y el boton "@" de menciones. Con las dos, en el celular el nombre quedaba en una letra. */
html body [data-haven-region="account"]:has(.puente-account-avatar) #user-bar-status-text,
html body [data-haven-region="account"]:has(.puente-account-avatar) #mentions-btn { display: none !important; }
/* Y en el encabezado de los mensajes directos, "Ordenar" (⇅), como sus vecinos "Organizar" y "Nuevo grupo" */
html body .puente-ver-dms #dm-toggle-header #dm-sort-btn { display: none !important; }
/* Un privado abierto, desde Haven 4.31 (#5920): el cartel "Private conversation" (sin traducir), una linea del color
   del tema debajo del encabezado y un tinte detras de los mensajes. El duenio lo quiere como antes (3/12/2026). */
html body #dm-private-tag { display: none !important; }
html body.viewing-dm header.channel-header { box-shadow: none; }
html body.viewing-dm #messages { background-color: transparent; }

/* PC: tu tarjeta al hacer clic en tu nombre o avatar (aviso.js) */
#puente-yo {
  position: fixed; z-index: 100010; width: 18.75rem; box-sizing: border-box; padding-bottom: 0.75rem;
  border-radius: 0.5rem; background: var(--cv-fondo-121214); border: 1px solid var(--cv-borde-29292d); color: var(--cv-texto-dbdee1);
  box-shadow: 0 8px 24px var(--cv-sombra-000000-50); overflow: visible; font-size: 0.875rem;
  animation: puente-fade 0.12s ease-out;
}
.puente-yo-banner { height: 6.5rem; border-radius: 0.5rem 0.5rem 0 0; background: var(--cv-fondo-3a3a40); }
.puente-yo-avatar {
  position: relative; width: 5rem; height: 5rem; margin: -2.75rem 0 0 1rem; border-radius: 50%;
  border: 0.375rem solid var(--cv-borde-121214); background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); font-size: 2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.puente-yo-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.puente-yo-dot, .puente-yo-dot-sm { border-radius: 50%; background: var(--cv-fondo-23a55a); flex-shrink: 0; }
.puente-yo-dot { position: absolute; right: -0.125rem; bottom: -0.125rem; width: 1rem; height: 1rem; border: 0.3125rem solid var(--cv-borde-121214); }
.puente-yo-dot.away, .puente-yo-dot-sm.away { background: var(--cv-fondo-f0b232); }
.puente-yo-dot.dnd, .puente-yo-dot-sm.dnd { background: var(--cv-fondo-f23f43); }
.puente-yo-dot.invisible, .puente-yo-dot-sm.invisible { background: var(--cv-fondo-80848e); }
.puente-yo-bubble, .puente-yo-input {
  position: absolute; left: 6.75rem; top: 6.25rem; max-width: 10.5rem; padding: 0.5rem 0.75rem;
  border-radius: 0.75rem; border: 0; background: var(--cv-fondo-252429); color: var(--cv-texto-dbdee1); font: inherit; font-size: 0.8125rem;
  text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.puente-yo-bubble.vacio { color: var(--cv-texto-96969e); }
.puente-yo-bubble:hover { background: var(--cv-fondo-2e2d32); }
.puente-yo-input { width: 10.5rem; cursor: text; outline: 1px solid var(--cv-borde-5865f2); }
.puente-yo-name { margin: 0.75rem 1rem 0; font-size: 1.25rem; font-weight: 700; color: var(--cv-texto-fbfbfb); }
.puente-yo-login { margin: 0 1rem; font-size: 0.875rem; color: var(--cv-texto-dbdee1); }
.puente-yo-box { margin: 0.75rem 0.75rem 0; padding: 0.375rem; border-radius: 0.5rem; background: var(--cv-fondo-1e1e22); }
.puente-yo-item {
  display: flex; align-items: center; gap: 0.625rem; width: 100%; min-height: 2.25rem; padding: 0 0.5rem;
  border: 0; border-radius: 0.25rem; background: transparent; color: var(--cv-texto-dbdee1); font: inherit; text-align: left; cursor: pointer;
}
.puente-yo-item:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); }
.puente-yo-icon { width: 1rem; text-align: center; filter: grayscale(1); }
.puente-yo-label { flex: 1 1 auto; }
.puente-yo-arrow { color: var(--cv-texto-96969e); font-size: 1.125rem; transition: transform 0.15s; }
.puente-yo-status-wrap.abierto .puente-yo-arrow { transform: rotate(90deg); }
.puente-yo-dot-sm { width: 0.625rem; height: 0.625rem; margin: 0 0.1875rem; }
.puente-yo-sep { height: 1px; margin: 0.25rem 0.5rem; background: var(--cv-fondo-29292d); }
.puente-yo-sub { display: none; padding-left: 0.75rem; }
.puente-yo-status-wrap.abierto .puente-yo-sub { display: block; }
.puente-yo-sub .puente-yo-item.actual { color: var(--cv-texto-fbfbfb); font-weight: 600; }

/* PC: perfil de una persona como la tarjeta de Discord de escritorio (aviso.js):
   banner alto con el boton ⋯ arriba a la derecha, avatar grande redondo, nombre
   grande, y abajo el cuadro "Mensaje @nombre" en vez de los botones */
html body #profile-popup.puente-pc-card {
  width: 18.75rem; padding: 0; overflow: visible; border-radius: 0.5rem;
  background: var(--cv-fondo-1a1a1e) !important; border: 1px solid var(--cv-borde-29292d); box-shadow: 0 8px 24px var(--cv-sombra-000000-50);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.puente-pc-card .profile-popup-banner { height: 6.5rem; border-radius: 0.5rem 0.5rem 0 0; }
/* El banner de las tarjetas, con el color del nombre suave como antes: Haven 4.31 lo pinta al 60 % y al 30 %, y la 4.26
   lo hacia al 27 % y al 13 % (44 y 22 en hexadecimal) (1/12/2026). El de CV Club (foto o tema) va en el style del
   elemento y le gana igual. */
html body .profile-popup-banner {
  background-image: linear-gradient(135deg,
    color-mix(in srgb, var(--profile-banner, transparent) 26.7%, transparent),
    color-mix(in srgb, var(--profile-banner, transparent) 13.3%, transparent));
}
.puente-pc-card .profile-popup-close { display: none; }
.puente-card-tools { position: absolute; top: 0.75rem; right: 0.75rem; display: flex; gap: 0.5rem; }
.puente-card-more {
  width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--cv-fondo-000000-55); color: var(--cv-texto-ffffff); font-size: 1.125rem; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.puente-card-more:hover { background: var(--cv-fondo-000000-75); }
.puente-pc-card .profile-popup-avatar-wrapper { width: 5.5rem; height: 5.5rem; margin: -3rem 0 0 1rem; }
.puente-pc-card .profile-popup-avatar {
  width: 5rem !important; height: 5rem !important; border-radius: 50% !important;
  border: 0.375rem solid var(--cv-borde-1a1a1e); box-sizing: content-box; font-size: 2rem;
}
.puente-pc-card .profile-popup-status-dot { width: 1rem; height: 1rem; right: 0.125rem; bottom: 0.125rem; border: 0.3125rem solid var(--cv-borde-1a1a1e); }
.puente-pc-card .profile-popup-body { padding: 0.5rem 1rem 1rem; }
.puente-pc-card .profile-popup-displayname { font-size: 1.25rem; font-weight: 700; color: var(--cv-texto-fbfbfb); }
.puente-pc-card .profile-popup-username { font-size: 0.875rem; color: var(--cv-texto-dbdee1); }
.puente-pc-card .profile-popup-divider { display: none; }
.puente-pc-card .profile-popup-section-label { margin-top: 0.75rem; font-size: 0.75rem; text-transform: none; letter-spacing: 0; color: var(--cv-texto-96969e); font-weight: 600; }
.puente-pc-card .profile-popup-role { border: 0; border-radius: 0.25rem; background: var(--cv-fondo-252429); color: var(--cv-texto-dbdee1) !important; }
.puente-pc-card .profile-popup-join-date { font-size: 0.875rem; color: var(--cv-texto-dbdee1); }
/* Los botones "Mensaje" y "Mas acciones" de Haven: los reemplazan el cuadro y el ⋯ */
.puente-pc-card:has(.puente-card-msg) .profile-popup-actions { display: none; }
.puente-card-msg { margin-top: 1rem; }
.puente-card-msg input {
  width: 100%; height: 2.75rem; box-sizing: border-box; padding: 0 0.75rem;
  border: 1px solid var(--cv-borde-2e2d32); border-radius: 0.5rem; background: transparent;
  color: var(--cv-texto-dbdee1); font: inherit; font-size: 0.875rem; outline: none;
}
.puente-card-msg input:focus { border-color: var(--cv-borde-4e4d55); }
.puente-card-msg input::placeholder { color: var(--cv-texto-80848e); }

/* PC: el menu de opciones de una persona (⋯ o clic derecho) como el de Discord */
@media (min-width: 769px) {
  html body #user-context-menu.puente-pc-menu {
    min-width: 11.5rem; padding: 0.5rem; border-radius: 0.5rem;
    background: var(--cv-fondo-1e1e22) !important; border: 1px solid var(--cv-borde-29292d); box-shadow: 0 8px 24px var(--cv-sombra-000000-50);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .puente-pc-menu .user-ctx-header { display: none; }
  .puente-pc-menu button {
    display: flex; align-items: center; width: 100%; min-height: 2rem; padding: 0.375rem 0.5rem;
    border: 0; border-radius: 0.25rem; background: transparent; color: var(--cv-texto-dbdee1);
    font: inherit; font-size: 0.875rem; font-weight: 500; text-align: left; cursor: pointer;
  }
  .puente-pc-menu button:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); }
  .puente-pc-menu button.user-ctx-danger { color: var(--cv-texto-f23f43); }
  .puente-pc-menu button.user-ctx-danger:hover { background: var(--cv-fondo-f23f43); color: var(--cv-sobre-acento-ffffff); }
  .puente-pc-menu .user-ctx-divider { height: 1px; margin: 0.25rem 0.375rem; background: var(--cv-fondo-29292d); }
  .puente-pc-menu .user-ctx-submenu {
    padding: 0.5rem; border-radius: 0.5rem; background: var(--cv-fondo-1e1e22) !important; border: 1px solid var(--cv-borde-29292d);
    box-shadow: 0 8px 24px var(--cv-sombra-000000-50);
  }
}

/* PC: engranaje "Editar canal" al pasar el mouse por un canal (aviso.js) */
.puente-canal-gear { display: none; }
@media (min-width: 769px) {
  html body .channel-item .puente-canal-gear {
    display: none; margin-left: auto; width: 1.25rem; height: 1.25rem; padding: 0; border: 0;
    background: transparent; color: var(--cv-texto-b5bac1); cursor: pointer; align-items: center; justify-content: center; flex-shrink: 0;
  }
  html body .channel-item:hover .puente-canal-gear, html body .channel-item.active .puente-canal-gear { display: flex; }
  html body .channel-item .puente-canal-gear:hover { color: var(--cv-texto-fbfbfb); }
  /* El "⋯" de Haven no se ve (el menu sigue con clic derecho) pero queda en su lugar */
  html body .channel-item:has(.puente-canal-gear) .channel-more-btn { opacity: 0; width: 0; min-width: 0; padding: 0; margin: 0; overflow: hidden; pointer-events: none; }

  /* Menu del canal (clic derecho) con el aspecto de Discord */
  html body #channel-ctx-menu.puente-pc-canal-menu {
    min-width: 13rem; padding: 0.5rem; border-radius: 0.5rem;
    background: var(--cv-fondo-1e1e22) !important; border: 1px solid var(--cv-borde-29292d); box-shadow: 0 8px 24px var(--cv-sombra-000000-50);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .puente-pc-canal-menu .channel-ctx-item {
    display: flex; align-items: center; width: 100%; min-height: 2rem; padding: 0.375rem 0.5rem; gap: 0.25rem;
    border: 0; border-radius: 0.25rem; background: transparent; color: var(--cv-texto-dbdee1);
    font: inherit; font-size: 0.875rem; font-weight: 500; text-align: left; cursor: pointer;
  }
  .puente-pc-canal-menu .channel-ctx-item:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); }
  .puente-pc-canal-menu .channel-ctx-item.danger { color: var(--cv-texto-f23f43); }
  .puente-pc-canal-menu .channel-ctx-item.danger:hover { background: var(--cv-fondo-f23f43); color: var(--cv-sobre-acento-ffffff); }
  .puente-pc-canal-menu .cfn-arrow { margin-left: auto; color: var(--cv-texto-96969e); font-size: 0.625rem; }
  .puente-pc-canal-menu hr.channel-ctx-sep { border: 0; height: 1px; margin: 0.25rem 0.375rem; background: var(--cv-fondo-29292d); }
}
/* La flechita de "Funciones del canal" (▶/▼) como simbolo gris, no como emoji azul */
html body #channel-ctx-menu .cfn-arrow { font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", sans-serif; font-variant-emoji: text; color: var(--cv-texto-96969e); }
/* Celular: el menu del canal (mantener apretado) es una hoja desde abajo, como en la app de Discord (aviso.js) */
@media (max-width: 768px) {
  html body #channel-ctx-menu.puente-canal-hoja {
    position: fixed !important; top: auto !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: auto !important; min-width: 0 !important;
    max-height: 75dvh; overflow-y: auto; box-sizing: border-box; padding: 0.75rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
    border: 0; border-top: 1px solid var(--cv-borde-29292d); border-radius: 1rem 1rem 0 0; background: var(--cv-fondo-1e1e22) !important; box-shadow: 0 -0.5rem 1.5rem var(--cv-sombra-000000-50);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .puente-canal-hoja .channel-ctx-item {
    display: flex; align-items: center; width: 100%; min-height: 3rem; padding: 0 0.75rem; gap: 0.5rem; box-sizing: border-box;
    border: 0; border-radius: 0.5rem; background: transparent; color: var(--cv-texto-dbdee1); font: inherit; font-size: 1rem; font-weight: 500; text-align: left;
  }
  .puente-canal-hoja .channel-ctx-item:active { background: var(--cv-fondo-2e2d32); }
  .puente-canal-hoja .channel-ctx-item.danger { color: var(--cv-texto-f23f43); }
  .puente-canal-hoja .cfn-arrow { margin-left: auto; color: var(--cv-texto-96969e); font-size: 0.75rem; }
  .puente-canal-hoja hr.channel-ctx-sep { border: 0; height: 1px; margin: 0.25rem 0.5rem; background: var(--cv-fondo-29292d); }
}

/* PC: ajustes del canal en pantalla completa, como Discord de escritorio */
#puente-ajustes { position: fixed; inset: 0; z-index: 100000; display: flex; background: var(--cv-fondo-1a1a1e); color: var(--cv-texto-dbdee1); animation: puente-fade 0.12s ease-out; }
.pa-nav { flex: 1 0 13.5rem; display: flex; justify-content: flex-end; background: var(--cv-fondo-121214); overflow-y: auto; }
.pa-nav-in { width: 13.5rem; padding: 3.75rem 0.5rem 1.25rem 1.25rem; box-sizing: content-box; }
.pa-head { padding: 0.375rem 0.625rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--cv-texto-96969e); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-head-cat { margin-left: 0.375rem; color: var(--cv-texto-dbdee1); }
.pa-item {
  display: block; width: 100%; margin-bottom: 0.125rem; padding: 0.375rem 0.625rem; border: 0; border-radius: 0.25rem;
  background: transparent; color: var(--cv-texto-b5bac1); font: inherit; font-size: 1rem; font-weight: 500; text-align: left; cursor: pointer;
}
.pa-item:hover { background: var(--cv-fondo-29292e); color: var(--cv-texto-dbdee1); }
.pa-item.active { background: var(--cv-fondo-343338); color: var(--cv-texto-fbfbfb); }
.pa-item.pa-danger { color: var(--cv-texto-f23f43); }
.pa-item.pa-danger:hover { background: var(--cv-fondo-f23f43-10); }
.pa-sep { height: 1px; margin: 0.5rem 0.625rem; background: var(--cv-fondo-29292d); }
.pa-main { flex: 1 1 50rem; position: relative; display: flex; overflow-y: auto; }
.pa-col { flex: 1 1 auto; max-width: 41.25rem; min-width: 0; padding: 3.75rem 2.5rem 1.25rem; display: flex; flex-direction: column; }
.pa-content { flex: 1 0 auto; padding-bottom: 5rem; }
.pa-title { margin: 0 0 1.25rem; font-size: 1.25rem; font-weight: 700; color: var(--cv-texto-fbfbfb); }
.pa-field { margin-bottom: 1.5rem; }
.pa-label { display: block; margin-bottom: 0.5rem; font-size: 1rem; font-weight: 600; color: var(--cv-texto-fbfbfb); }
.pa-input, .pa-select, .pa-textarea {
  width: 100%; box-sizing: border-box; border: 1px solid var(--cv-borde-2e2d32); border-radius: 0.5rem; background: var(--cv-fondo-121214);
  color: var(--cv-texto-dbdee1); font: inherit; font-size: 1rem; outline: none;
}
.pa-input, .pa-select { height: 2.5rem; padding: 0 0.75rem; }
.pa-input:focus, .pa-select:focus, .pa-textarea:focus { border-color: var(--cv-borde-5865f2); }
.pa-textarea-wrap { position: relative; }
.pa-textarea { min-height: 8rem; padding: 0.75rem 0.75rem 1.75rem; resize: vertical; line-height: 1.375rem; }
.pa-count { position: absolute; right: 0.75rem; bottom: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--cv-texto-dbdee1); }
.pa-help { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--cv-texto-96969e); line-height: 1.125rem; }
.pa-radio { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.875rem; cursor: pointer; }
.pa-radio input { width: 1.25rem; height: 1.25rem; margin: 0.125rem 0 0; accent-color: var(--cv-acento-5865f2); flex-shrink: 0; }
.pa-radio-text { display: flex; flex-direction: column; }
.pa-radio-title { font-size: 1rem; color: var(--cv-texto-fbfbfb); }
.pa-radio-desc { font-size: 0.875rem; color: var(--cv-texto-96969e); }
.pa-close {
  position: sticky; top: 3.75rem; align-self: flex-start; flex-shrink: 0; margin: 3.75rem 1.25rem 0 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem; border: 0; background: transparent; color: var(--cv-texto-b5bac1); cursor: pointer;
}
.pa-close-x { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.pa-close-esc { font-size: 0.8125rem; font-weight: 600; }
.pa-close:hover { color: var(--cv-texto-fbfbfb); }
/* Barra de "cambios sin guardar" */
.pa-savebar {
  position: sticky; bottom: 1.25rem; transform: translateY(150%); width: 100%;
  display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem 0.625rem 1rem; box-sizing: border-box;
  border-radius: 0.5rem; background: var(--cv-fondo-111113); box-shadow: 0 4px 16px var(--cv-sombra-000000-50); opacity: 0; pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.pa-savebar.visible { transform: none; opacity: 1; pointer-events: auto; }
.pa-savebar-text { flex: 1 1 auto; font-size: 0.9375rem; font-weight: 500; color: var(--cv-texto-dbdee1); }
.pa-reset { border: 0; background: transparent; color: var(--cv-texto-dbdee1); font: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer; padding: 0.5rem 0.75rem; }
.pa-reset:hover { text-decoration: underline; }
.pa-save { border: 0; border-radius: 0.375rem; background: var(--cv-fondo-248046); color: var(--cv-sobre-acento-ffffff); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; padding: 0.5rem 1rem; }
.pa-save:hover { background: var(--cv-fondo-1a6334); }
.pa-savebar.shake { animation: pa-shake 0.4s; background: var(--cv-fondo-f23f43); }
.pa-savebar.shake .pa-savebar-text { color: var(--cv-texto-ffffff); }
@keyframes pa-shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
/* El panel de Funciones de Haven dentro de la pagina */
html body #channel-functions-panel.puente-ajustes-panel {
  position: static !important; display: block; width: 100% !important; max-width: none; max-height: none; overflow: visible;
  margin: 1rem 0 0; padding: 0; border: 0; background: transparent !important; box-shadow: none !important;
}
.puente-ajustes-panel .cfn-row {
  display: flex; align-items: center; justify-content: space-between; min-height: 3rem; padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--cv-borde-29292d); border-radius: 0; font-size: 1rem; color: var(--cv-texto-dbdee1); cursor: pointer;
}
.puente-ajustes-panel .cfn-row:hover { background: var(--cv-fondo-222226); }
/* Funciones de si/no: interruptores como los de Discord en vez de "ON/OFF" */
.puente-ajustes-panel .cfn-row:is([data-fn="voice"], [data-fn="text"], [data-fn="streams"], [data-fn="music"], [data-fn="soundboard"], [data-fn="media"], [data-fn="reactions"], [data-fn="read-only"], [data-fn="forum"], [data-fn="forum-blog"], [data-fn="nsfw"], [data-fn="private"], [data-fn="cleanup-exempt"], [data-fn="welcome"], [data-fn="announcement"]) .cfn-badge {
  position: relative; width: 2.5rem; height: 1.5rem; padding: 0; border: 0; border-radius: 0.75rem;
  font-size: 0; color: transparent; background: var(--cv-fondo-80848e); transition: background 0.15s; flex-shrink: 0;
}
.puente-ajustes-panel .cfn-row:is([data-fn="voice"], [data-fn="text"], [data-fn="streams"], [data-fn="music"], [data-fn="soundboard"], [data-fn="media"], [data-fn="reactions"], [data-fn="read-only"], [data-fn="forum"], [data-fn="forum-blog"], [data-fn="nsfw"], [data-fn="private"], [data-fn="cleanup-exempt"], [data-fn="welcome"], [data-fn="announcement"]) .cfn-badge::after {
  content: ""; position: absolute; top: 0.1875rem; left: 0.1875rem; width: 1.125rem; height: 1.125rem; border-radius: 50%;
  background: var(--cv-fondo-ffffff); transition: left 0.15s;
}
.puente-ajustes-panel .cfn-row:is([data-fn="voice"], [data-fn="text"], [data-fn="streams"], [data-fn="music"], [data-fn="soundboard"], [data-fn="media"], [data-fn="reactions"], [data-fn="read-only"], [data-fn="forum"], [data-fn="forum-blog"], [data-fn="nsfw"], [data-fn="private"], [data-fn="cleanup-exempt"], [data-fn="welcome"], [data-fn="announcement"]) .cfn-badge.cfn-on { background: var(--cv-fondo-248046); }
.puente-ajustes-panel .cfn-row:is([data-fn="voice"], [data-fn="text"], [data-fn="streams"], [data-fn="music"], [data-fn="soundboard"], [data-fn="media"], [data-fn="reactions"], [data-fn="read-only"], [data-fn="forum"], [data-fn="forum-blog"], [data-fn="nsfw"], [data-fn="private"], [data-fn="cleanup-exempt"], [data-fn="welcome"], [data-fn="announcement"]) .cfn-badge.cfn-on::after { left: 1.1875rem; }

/* Pantallas tactiles: la ventanita de Haven con quienes reaccionaron no aparece
   (la reemplaza la hoja de quienes reaccionaron, aviso.js) */
@media (pointer: coarse) { html body #reaction-popout { display: none !important; } }

/* PC: barrita de formato al seleccionar texto en el cuadro de escribir (aviso.js) */
#puente-formato {
  position: fixed; z-index: 100005; display: none; align-items: center; gap: 0.125rem; padding: 0.25rem;
  border-radius: 0.5rem; background: var(--cv-fondo-1e1e22); border: 1px solid var(--cv-borde-29292d); box-shadow: 0 4px 16px var(--cv-sombra-000000-45);
}
.puente-formato-btn {
  display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; border: 0;
  border-radius: 0.25rem; background: transparent; color: var(--cv-texto-dbdee1); cursor: pointer;
}
.puente-formato-btn:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); }
.puente-formato-sep { width: 1px; height: 1.25rem; margin: 0 0.25rem; background: var(--cv-fondo-3a3940); }

/* PC: cuadro de escribir con los emojis del servidor dibujados (aviso.js). El de
   Haven queda debajo, invisible, y es el que manda el mensaje. */
#message-input.puente-ta-oculto {
  position: absolute !important; left: 0 !important; bottom: 0 !important; width: 1px !important; height: 1px !important;
  min-height: 0 !important; padding: 0 !important; border: 0 !important; margin: 0 !important;
  opacity: 0 !important; pointer-events: none !important; overflow: hidden !important; resize: none !important;
  /* Haven recalcula su alto en cada letra: aislado, no obliga a reacomodar el resto de la pagina */
  contain: strict !important;
}
.puente-editor {
  display: block; position: relative; min-width: 0; overflow-y: auto; overflow-x: hidden; cursor: text; outline: none;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; scrollbar-width: thin;
}
.puente-editor.puente-ed-vacio::before {
  content: attr(data-placeholder); color: var(--puente-ed-ph, var(--cv-texto-80848e)); pointer-events: none; position: absolute;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%;
}
.puente-editor.puente-ed-off { cursor: not-allowed; opacity: 0.6; }
.puente-ed-emoji { width: 1.375em; height: 1.375em; object-fit: contain; vertical-align: -0.3em; margin: 0 0.05em; }
/* Vista previa del formato en el cuadro de escribir, como Discord: las marcas en
   gris, el formato aplicado y las menciones resaltadas */
.puente-editor .ped-mk { color: var(--cv-texto-80848e); font-weight: 400; font-style: normal; text-decoration: none; }
.puente-editor .ped-bold { font-weight: 700; }
.puente-editor .ped-italic { font-style: italic; }
.puente-editor .ped-underline > .ped-in { text-decoration: underline; }
.puente-editor .ped-strike > .ped-in { text-decoration: line-through; }
.puente-editor .ped-code { font-family: Consolas, 'Courier New', monospace; font-size: 0.875em; background: var(--cv-fondo-121214); border-radius: 0.25rem; }
.puente-editor .ped-spoiler { background: var(--cv-fondo-121214); border-radius: 0.25rem; }
.puente-editor .ped-mention { background: var(--cv-fondo-5865f2-30); color: var(--cv-texto-c9cdfb); border-radius: 0.1875rem; font-weight: 500; }

/* Emoji animado esperando que Haven lo deje quieto: invisible, con su lugar (aviso.js) */
img.puente-congelando { visibility: hidden; }

/* Sin la manija de Haven para cambiar el alto del cuadro de escribir (con el cuadro con
   emojis no hace nada; el cuadro crece solo con el texto, como en Discord) */
html body .pip-input-resizer { display: none !important; }

/* PC: panel para elegir una reaccion, como el de Discord de escritorio (aviso.js) */
@media (hover: hover) and (pointer: fine) {
  html body .puente-rp-abierto .msg-toolbar { display: flex; }
  /* Boton gris para agregar otra reaccion, al lado de las que ya hay: solo con el mouse encima */
  html body .reactions-row .puente-rp-add {
    display: none; align-items: center; justify-content: center; height: 1.875rem; padding: 0 0.5rem; box-sizing: border-box;
    border: 1px solid transparent; border-radius: 0.5rem; background: var(--cv-fondo-2a2a2e); color: var(--cv-texto-b5bac1); cursor: pointer;
  }
  html body .reactions-row .puente-rp-add:hover { background: var(--cv-fondo-2f2f34); border-color: var(--cv-borde-3f3f46); color: var(--cv-texto-dbdee1); }
  html body .message:hover .reactions-row .puente-rp-add, html body .message-compact:hover .reactions-row .puente-rp-add,
  html body .puente-rp-abierto .reactions-row .puente-rp-add { display: inline-flex; }
  .puente-rp-abierto { background: var(--cv-fondo-ffffff-03); }
  .puente-rp {
    position: fixed; z-index: 100020; width: 33rem; height: min(30rem, calc(100vh - 1rem)); display: flex; flex-direction: column;
    background: var(--cv-fondo-1e1e22); border: 1px solid var(--cv-borde-29292d); border-radius: 0.5rem; box-shadow: 0 8px 24px var(--cv-sombra-000000-50); overflow: hidden;
    font-family: inherit; color: var(--cv-texto-dbdee1);
  }
  .puente-rp-head { flex: 0 0 auto; padding: 0.75rem; border-bottom: 1px solid var(--cv-borde-29292d); }
  .puente-rp-search {
    display: flex; align-items: center; gap: 0.5rem; height: 2.5rem; padding: 0 0.75rem; box-sizing: border-box;
    background: var(--cv-fondo-121214); border: 1px solid var(--cv-borde-2e2d32); border-radius: 0.5rem; cursor: text;
  }
  .puente-rp-search:focus-within { border-color: var(--cv-borde-5865f2); }
  .puente-rp-lupa { width: 1rem; height: 1rem; flex: 0 0 auto; border: 2px solid var(--cv-borde-96969e); border-radius: 50%; box-sizing: border-box; position: relative; }
  .puente-rp-lupa::after { content: ''; position: absolute; width: 2px; height: 0.4rem; background: var(--cv-fondo-96969e); right: -0.2rem; bottom: -0.35rem; transform: rotate(-45deg); border-radius: 1px; }
  .puente-rp-search input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--cv-texto-dbdee1); font: inherit; font-size: 1rem; }
  .puente-rp-search input::placeholder { color: var(--cv-texto-80848e); }
  .puente-rp-main { flex: 1 1 auto; min-height: 0; display: flex; }
  .puente-rp-side {
    flex: 0 0 3rem; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.5rem 0;
    background: var(--cv-fondo-19181c); overflow-y: auto; scrollbar-width: none;
  }
  .puente-rp-side::-webkit-scrollbar { display: none; }
  .puente-rp-tab {
    flex: 0 0 auto; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 0.375rem; background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem; line-height: 1; filter: grayscale(1) opacity(0.6);
  }
  .puente-rp-tab img { width: 1.5rem; height: 1.5rem; object-fit: contain; border-radius: 50%; }
  .puente-rp-tab:hover, .puente-rp-tab.actual { background: var(--cv-fondo-2b2a30); filter: none; }
  .puente-rp-body { flex: 1 1 auto; min-width: 0; overflow-y: auto; padding: 0 0.5rem 0.5rem; scrollbar-width: thin; scrollbar-color: var(--cv-barra-3a3940) transparent; }
  .puente-rp-title {
    position: sticky; top: 0; z-index: 1; padding: 0.625rem 0.25rem 0.375rem; background: var(--cv-fondo-1e1e22);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--cv-texto-b5bac1);
  }
  .puente-rp-grid { display: grid; grid-template-columns: repeat(auto-fill, 3rem); }
  .puente-rp-btn {
    width: 3rem; height: 3rem; padding: 0; border: 0; border-radius: 0.375rem; background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 2.125rem; line-height: 1;
  }
  .puente-rp-btn:hover { background: var(--cv-fondo-2e2d32); }
  .puente-rp-btn img { width: 2.25rem; height: 2.25rem; object-fit: contain; pointer-events: none; }
  .puente-rp-empty { padding: 2rem 1rem; text-align: center; color: var(--cv-texto-80848e); }
  .puente-rp-foot {
    flex: 0 0 3.25rem; display: flex; align-items: center; gap: 0.625rem; padding: 0 1rem; box-sizing: border-box;
    background: var(--cv-fondo-19181c); border-top: 1px solid var(--cv-borde-29292d); font-weight: 600; font-size: 1rem; color: var(--cv-texto-dbdee1); overflow: hidden;
  }
  .puente-rp-foot-icon { flex: 0 0 auto; width: 1.75rem; height: 1.75rem; font-size: 1.5rem; line-height: 1.75rem; text-align: center; }
  .puente-rp-foot-icon img { width: 100%; height: 100%; object-fit: contain; }
  .puente-rp-foot-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Pestañas Stickers / Emoji (al escribir) y stickers grandes */
  .puente-rp-modos { display: flex; gap: 0.5rem; margin-bottom: 0.625rem; }
  .puente-rp-modo {
    padding: 0.25rem 0.625rem; border: 0; border-radius: 0.25rem; background: transparent; color: var(--cv-texto-b5bac1);
    font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
  }
  .puente-rp-modo:hover { background: var(--cv-fondo-2b2a30); color: var(--cv-texto-dbdee1); }
  .puente-rp-modo.actual { background: var(--cv-fondo-3a3940); color: var(--cv-texto-fbfbfb); }
  .puente-rp-con-stickers .puente-rp-side { display: none; }
  .puente-rp-grid.puente-rp-stickers { grid-template-columns: repeat(auto-fill, 7rem); gap: 0.375rem; }
  .puente-rp-sticker { width: 7rem; height: 7rem; padding: 0.375rem; border: 0; border-radius: 0.5rem; background: transparent; cursor: pointer; box-sizing: border-box; }
  .puente-rp-sticker:hover { background: var(--cv-fondo-2e2d32); }
  .puente-rp-sticker img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }

  /* Lista de miembros de la derecha con los tamaños de Discord: foto de 32px y nombre de 16px */
  html body .user-item { min-height: 2.625rem; padding: 0.3125rem 0.5rem; gap: 0.75rem; border-radius: 0.375rem; box-sizing: border-box; }
  html body .user-item .user-item-avatar, html body .user-item .user-item-avatar-img { width: 2rem !important; height: 2rem !important; min-width: 2rem; font-size: 0.875rem; }
  html body .user-item .user-item-name { font-size: 1rem !important; font-weight: 500; line-height: 1.25rem; }
  html body .user-item .user-item-sub { font-size: 0.8125rem !important; line-height: 1rem; }

  /* Ventana "Reacciones" (Ver reacciones del menu del mensaje), como Discord */
  .puente-vr-fondo { position: fixed; inset: 0; z-index: 100030; display: flex; align-items: center; justify-content: center; background: var(--cv-fondo-000000-70); }
  .puente-vr {
    width: min(37.5rem, calc(100vw - 2rem)); height: min(31rem, calc(100vh - 2rem)); display: flex; flex-direction: column;
    background: var(--cv-fondo-1e1e22); border: 1px solid var(--cv-borde-29292d); border-radius: 0.75rem; box-shadow: 0 8px 32px var(--cv-sombra-000000-60); overflow: hidden; color: var(--cv-texto-dbdee1);
  }
  .puente-vr-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.25rem 1rem 1.5rem; border-bottom: 1px solid var(--cv-borde-29292d); }
  .puente-vr-title { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--cv-texto-fbfbfb); }
  .puente-vr-close { width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 0.375rem; background: transparent; color: var(--cv-texto-b5bac1); cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .puente-vr-close:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); }
  .puente-vr-body { flex: 1 1 auto; min-height: 0; display: flex; }
  .puente-vr-emojis { flex: 0 0 9.5rem; padding: 1rem 0.75rem 1rem 1.25rem; border-right: 1px solid var(--cv-borde-29292d); overflow-y: auto; display: flex; flex-direction: column; gap: 0.375rem; scrollbar-width: thin; scrollbar-color: var(--cv-barra-3a3940) transparent; }
  .puente-vr-pill {
    display: flex; align-items: center; gap: 0.75rem; height: 2.5rem; padding: 0 0.75rem; flex: 0 0 auto;
    border: 0; border-radius: 0.5rem; background: transparent; color: var(--cv-texto-dbdee1); font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  }
  .puente-vr-pill:hover { background: var(--cv-fondo-2b2a30); }
  .puente-vr-pill.actual { background: var(--cv-fondo-3a3940); color: var(--cv-texto-fbfbfb); }
  .puente-vr-emoji-img { width: 1.5rem; height: 1.5rem; object-fit: contain; }
  .puente-vr-emoji-txt { font-size: 1.375rem; line-height: 1; }
  .puente-vr-users { flex: 1 1 auto; min-width: 0; padding: 1rem 1.25rem; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--cv-barra-3a3940) transparent; }
  .puente-vr-user { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; }
  .puente-vr-avatar {
    flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border-radius: 50%; overflow: hidden; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff);
    display: flex; align-items: center; justify-content: center; font-weight: 700;
  }
  .puente-vr-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .puente-vr-names { min-width: 0; }
  .puente-vr-name { font-size: 1rem; font-weight: 600; color: var(--cv-texto-fbfbfb); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .puente-vr-sub { display: flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: var(--cv-texto-96969e); }
  .puente-vr-tag { padding: 0 0.3125rem; border-radius: 0.25rem; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); font-size: 0.625rem; font-weight: 700; line-height: 1rem; }
  .puente-vr-empty { padding: 2rem 0; text-align: center; color: var(--cv-texto-80848e); }

  /* Barra de escribir como la de Discord de escritorio: una sola caja redondeada que
     encierra el +, el texto y los botones GIF y carita; pegada a los mensajes, con
     "esta escribiendo" debajo (en el margen) en vez de arriba; sin boton de enviar
     (Enter envia, como en Discord) */
  html body .message-area { position: relative; }
  html body .message-area > #messages { padding-bottom: 0.75rem !important; }
  html body .message-area > #typing-indicator {
    position: absolute !important; left: 1.25rem; right: 1.25rem; bottom: 0.125rem; height: 1.25rem !important; min-height: 0 !important;
    margin: 0 !important; padding: 0 !important; z-index: 99996; pointer-events: none; font-size: 0.8125rem; line-height: 1.25rem; overflow: hidden;
  }
  /* (Haven deja que la barra se parta en varias filas; con varias lineas de texto el + y los botones quedaban
     arriba y abajo: como en Discord, quedan en la primera linea y solo crece el texto) */
  html body #message-input-area { position: relative; padding: 0 1rem 1.5rem !important; align-items: flex-start !important; flex-wrap: nowrap !important; gap: 0 !important; }
  html body #message-input-area::before {
    content: ''; position: absolute; left: 1rem; right: 1rem; top: 0; bottom: 1.5rem; z-index: 0;
    background: var(--cv-fondo-252429); border-radius: 0.5rem; pointer-events: none;
  }
  /* (solo las piezas de la barra: los selectores y las listas de sugerencias de @, #, :, / flotan arriba como siempre) */
  html body #message-input-area > #composer-plus-btn, html body #message-input-area > .input-actions-box:not(.open),
  html body #message-input-area > .puente-editor, html body #message-input-area > #message-input:not(.puente-ta-oculto) { position: relative; z-index: 1; }
  html body #message-input-area > #message-input.puente-ta-oculto { position: absolute !important; }
  html body #message-input-area #composer-plus-btn {
    flex: 0 0 2.75rem; width: 2.75rem !important; height: 2.75rem !important; margin: 0 0 0 0.25rem; padding: 0;
    background: transparent !important; color: var(--cv-texto-b5bac1) !important; font-size: 1.625rem !important; font-weight: 300; line-height: 1; border-radius: 0.375rem !important;
  }
  html body #message-input-area #composer-plus-btn:hover { color: var(--cv-texto-fbfbfb) !important; background: transparent !important; }
  html body #message-input-area .puente-editor, html body #message-input-area > #message-input:not(.puente-ta-oculto) {
    flex: 1 1 0; min-width: 0; min-height: 2.75rem; max-height: 50vh; overflow-y: auto; box-sizing: border-box;
    padding: 0.6875rem 0.5rem !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  }
  html body #message-input-area .input-actions-box:not(.open) { inset: auto !important; transform: none !important; align-self: flex-start; flex: 0 0 auto; height: 2.75rem; margin-right: 0.375rem; align-items: center; }
  html body #message-input-area #composer-plus-btn { align-self: flex-start; }
  html body #message-input-area #send-btn { display: none !important; }

  /* Buscador como el de Discord: la caja siempre a la derecha del encabezado (aviso.js) */
  html body #search-container.puente-busca-caja {
    display: flex !important; position: relative; align-items: center; flex: 0 0 auto; width: 15rem; height: 2.25rem; margin: 0 0 0 0.75rem; padding: 0;
    background: var(--cv-fondo-121214); border: 1px solid var(--cv-borde-29292d); border-radius: 0.5rem; box-sizing: border-box; transition: width 0.2s ease;
  }
  html body #search-container.puente-busca-caja.enfocada, html body #search-container.puente-busca-caja.con-texto { width: 18rem; border-color: var(--cv-borde-3f3f46); }
  html body #search-container.puente-busca-caja #search-input {
    flex: 1 1 auto; min-width: 0; width: auto !important; height: 100%; margin: 0; padding: 0 2.25rem 0 0.75rem !important;
    border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none;
    color: var(--cv-texto-dbdee1); font: inherit; font-size: 0.9375rem !important;
  }
  html body #search-container.puente-busca-caja #search-input::placeholder { color: var(--cv-texto-80848e); font-size: 0.9375rem; }
  /* Resultados de la busqueda, mas parecidos a los de Discord: panel ancho y cada mensaje en su tarjeta */
  html body .puente-busca-ancha { width: 26rem !important; min-width: 26rem !important; max-width: 40vw !important; flex-basis: 26rem !important; }
  html body #search-panel { background: var(--cv-fondo-19181c); }
  html body #search-panel .search-panel-header { padding: 1rem; border-bottom: 1px solid var(--cv-borde-29292d); font-size: 1rem; font-weight: 700; color: var(--cv-texto-fbfbfb); }
  html body #search-panel-list { padding: 0.5rem; }
  html body #search-panel .search-result-item {
    margin: 0 0 0.5rem; padding: 0.75rem 0.875rem; border: 1px solid var(--cv-borde-29292d); border-radius: 0.5rem; background: var(--cv-fondo-1e1e22); cursor: pointer;
  }
  html body #search-panel .search-result-item:hover { background: var(--cv-fondo-232228); border-color: var(--cv-borde-3a3940); }
  html body #search-panel .search-result-channel { margin-bottom: 0.375rem; font-size: 0.8125rem; font-weight: 600; color: var(--cv-texto-b5bac1); }
  html body #search-panel .search-result-channel-code { display: none; }
  html body #search-panel .search-result-author { font-size: 1rem; font-weight: 600; }
  html body #search-panel .search-result-time { margin-left: 0.375rem; font-size: 0.75rem; color: var(--cv-texto-80848e); }
  html body #search-panel .search-result-content { margin-top: 0.25rem; font-size: 1rem; line-height: 1.375rem; color: var(--cv-texto-dbdee1); }
  html body #search-panel .search-result-content mark { background: var(--cv-fondo-f0b232-30); color: inherit; border-radius: 0.125rem; }
  html body #search-container.puente-busca-caja > #search-filter-btn,
  html body #search-container.puente-busca-caja > #search-close-btn,
  html body #search-container.puente-busca-caja > #search-filter-popover,
  html body #search-toggle-btn { display: none !important; }
  .puente-busca-lupa, .puente-busca-x { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); display: flex; color: var(--cv-texto-96969e); }
  .puente-busca-lupa svg { width: 1.125rem; height: 1.125rem; }
  .puente-busca-lupa { pointer-events: none; }
  .puente-busca-x { display: none; padding: 0.125rem; border: 0; border-radius: 0.25rem; background: transparent; cursor: pointer; }
  .puente-busca-x:hover { color: var(--cv-texto-fbfbfb); }
  .con-texto > .puente-busca-lupa { display: none; }
  .con-texto > .puente-busca-x { display: flex; }

  .puente-busca {
    position: fixed; z-index: 100025; width: 22rem; max-height: min(34rem, calc(100vh - 6rem)); overflow-y: auto; padding: 0.5rem 0;
    background: var(--cv-fondo-1e1e22); border: 1px solid var(--cv-borde-29292d); border-radius: 0.5rem; box-shadow: 0 8px 24px var(--cv-sombra-000000-50);
    scrollbar-width: thin; scrollbar-color: var(--cv-barra-3a3940) transparent; color: var(--cv-texto-dbdee1);
  }
  .puente-busca-sec { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 1rem 0.375rem; font-size: 0.8125rem; font-weight: 700; color: var(--cv-texto-b5bac1); }
  .puente-busca-borrar { display: flex; padding: 0.125rem; border: 0; border-radius: 0.25rem; background: transparent; color: var(--cv-texto-b5bac1); cursor: pointer; }
  .puente-busca-borrar:hover { color: var(--cv-texto-fbfbfb); }
  .puente-busca-borrar svg { width: 1.125rem; height: 1.125rem; }
  .puente-busca-item {
    display: flex; align-items: center; gap: 0.875rem; width: calc(100% - 1rem); margin: 0 0.5rem; padding: 0.5rem; box-sizing: border-box;
    border: 0; border-radius: 0.375rem; background: transparent; color: var(--cv-texto-dbdee1); font: inherit; text-align: left; cursor: pointer;
  }
  .puente-busca-item.actual, .puente-busca-item:hover { background: var(--cv-fondo-2e2d32); }
  .puente-busca-icon { flex: 0 0 auto; width: 1.75rem; height: 1.75rem; display: flex; align-items: center; justify-content: center; color: var(--cv-texto-b5bac1); }
  .puente-busca-icon.avatar { border-radius: 50%; overflow: hidden; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); font-weight: 700; font-size: 0.875rem; }
  .puente-busca-icon.avatar img { width: 100%; height: 100%; object-fit: cover; }
  .puente-busca-txt { min-width: 0; display: flex; flex-direction: column; }
  .puente-busca-title { font-size: 1rem; font-weight: 600; color: var(--cv-texto-fbfbfb); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .puente-busca-item.historial .puente-busca-title {
    display: inline-block; max-width: 100%; padding: 0.125rem 0.5rem; border-radius: 0.375rem; background: var(--cv-fondo-2b2a30); box-sizing: border-box;
  }
  .puente-busca-sub { font-size: 0.875rem; color: var(--cv-texto-96969e); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .puente-busca-sub b { color: var(--cv-texto-dbdee1); font-weight: 700; }
  .puente-busca-sep { height: 1px; margin: 0.5rem 0; background: var(--cv-fondo-29292d); }
  .puente-busca-vacio { padding: 0.75rem 1rem; color: var(--cv-texto-80848e); font-size: 0.875rem; }
  .puente-busca-fecha { display: flex; gap: 0.5rem; padding: 0.25rem 1rem 0.5rem; }
  .puente-busca-fecha input { flex: 1 1 auto; height: 2.25rem; padding: 0 0.625rem; border: 1px solid var(--cv-borde-2e2d32); border-radius: 0.375rem; background: var(--cv-fondo-121214); color: var(--cv-texto-dbdee1); font: inherit; color-scheme: dark; }
  .puente-busca-ok { padding: 0 0.875rem; border: 0; border-radius: 0.375rem; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); font: inherit; font-weight: 600; cursor: pointer; }

  /* Menu del + del cuadro de escribir, como Discord */
  .puente-mas {
    position: fixed; z-index: 100020; min-width: 14rem; padding: 0.5rem; box-sizing: border-box;
    background: var(--cv-fondo-1e1e22); border: 1px solid var(--cv-borde-29292d); border-radius: 0.5rem; box-shadow: 0 8px 24px var(--cv-sombra-000000-50);
  }
  .puente-mas-item {
    display: flex; align-items: center; gap: 0.75rem; width: 100%; height: 2.75rem; padding: 0 0.75rem; box-sizing: border-box;
    border: 0; border-radius: 0.375rem; background: transparent; color: var(--cv-texto-dbdee1); font: inherit; font-size: 1rem; font-weight: 600;
    text-align: left; cursor: pointer; white-space: nowrap;
  }
  .puente-mas-item:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); }
  .puente-mas-item svg { flex: 0 0 auto; color: var(--cv-texto-b5bac1); }
  .puente-mas-item:hover svg { color: var(--cv-texto-dbdee1); }
  .puente-mas-estado { margin-left: auto; padding-left: 1rem; font-size: 0.75rem; font-weight: 700; color: var(--cv-texto-f0b232); }
  .puente-mas-item.activo svg { color: var(--cv-texto-f0b232); }
  html body #composer-plus-btn.puente-armado { box-shadow: inset 0 0 0 2px var(--cv-sombra-f0b232); color: var(--cv-texto-f0b232) !important; }

  /* Boton GIF a la derecha del cuadro, antes de la carita, como Discord */
  /* (el icono de Discord: un cuadrado gris redondeado con "GIF" calado, sin marco alrededor) */
  html body #message-input-area .input-actions-box:not(.open) > #gif-btn {
    order: -1; width: 2.75rem !important; height: 2.75rem !important; min-width: 2.75rem; padding: 0 !important;
    border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0.375rem !important;
    color: var(--cv-texto-b5bac1); display: inline-flex; align-items: center; justify-content: center;
  }
  html body #message-input-area .input-actions-box:not(.open) > #gif-btn > span {
    display: inline-flex; align-items: center; justify-content: center; width: 1.625rem; height: 1.5rem; box-sizing: border-box;
    border-radius: 0.3125rem; background: var(--cv-fondo-b5bac1); color: var(--cv-texto-1a191e); font-size: 0.6875rem; font-weight: 800; line-height: 1; letter-spacing: 0;
    transition: background 0.15s;
  }
  html body #message-input-area .input-actions-box:not(.open) > #gif-btn:hover > span { background: var(--cv-fondo-dbdee1); }
}

/* Pagina Admin, pestaña "Mudanza" (mudanza-plan.js): estado, numeros y el cronograma */
.pmz-vista { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.pmz-vista[hidden] { display: none !important; }
.pmz-cuerpo { max-width: 56rem; margin: 0 auto; padding: 1rem 1.25rem 2rem; }
.pmz-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.pmz-estado { flex: 1 1 18rem; padding: 0.625rem 0.875rem; border-radius: 0.5rem; background: var(--cv-fondo-3a2a1a); color: var(--cv-texto-f0b232); font-size: 0.875rem; font-weight: 600; }
.pmz-estado.activo { background: var(--cv-fondo-1b3326); color: var(--cv-texto-6fd49a); }
.pmz-ensayo { flex: 1 1 100%; padding: 0.5rem 0.875rem; border-radius: 0.5rem; background: var(--cv-fondo-2e2d32); color: var(--cv-texto-b5bac1); font-size: 0.8125rem; }
.pmz-acciones { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pmz-btn { min-height: 2.25rem; padding: 0 0.875rem; border: 0; border-radius: 0.375rem; background: var(--cv-fondo-2e2d32); color: var(--cv-texto-dbdee1); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.pmz-btn:hover { background: var(--cv-fondo-3a3a40); color: var(--cv-texto-ffffff); }
.pmz-btn.pmz-azul { background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); }
.pmz-btn.pmz-azul:hover { background: var(--cv-fondo-4752c4); }
.pmz-btn.pmz-rojo { background: transparent; color: var(--cv-texto-f23f43); border: 1px solid var(--cv-borde-f23f43); }
.pmz-btn.pmz-rojo:hover { background: var(--cv-fondo-f23f43); color: var(--cv-sobre-acento-ffffff); }
.pmz-numeros { padding: 0 !important; margin-bottom: 0.75rem; }
.pmz-copa { margin-bottom: 1rem; padding: 0.625rem 0.875rem; border-radius: 0.5rem; background: var(--cv-fondo-232228); color: var(--cv-texto-dbdee1); font-size: 0.875rem; }
.pmz-pasos { display: flex; flex-direction: column; gap: 0.375rem; }
.pmz-paso { padding: 0.625rem 0.875rem; border-radius: 0.5rem; background: var(--cv-fondo-1e1e22); border-left: 3px solid var(--cv-borde-4e5058); }
.pmz-paso.pmz-hecho { border-left-color: var(--cv-borde-23a55a); }
.pmz-paso.pmz-error { border-left-color: var(--cv-borde-f23f43); }
.pmz-paso.pmz-en-curso { border-left-color: var(--cv-borde-5865f2); }
.pmz-paso.pmz-vencido, .pmz-paso.pmz-salteado { opacity: 0.6; }
.pmz-paso-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.75rem; }
.pmz-cuando { flex: 0 0 auto; color: var(--cv-texto-96969e); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.pmz-nombre { flex: 1 1 12rem; color: var(--cv-texto-efeff1); font-size: 0.9375rem; font-weight: 600; }
.pmz-chip { flex: 0 0 auto; padding: 0.125rem 0.5rem; border-radius: 999px; background: var(--cv-fondo-2e2d32); color: var(--cv-texto-b5bac1); font-size: 0.75rem; font-weight: 700; }
.pmz-hecho .pmz-chip { background: var(--cv-fondo-1b3326); color: var(--cv-texto-6fd49a); }
.pmz-error .pmz-chip { background: var(--cv-fondo-3d1a1c); color: var(--cv-texto-f8a5a7); }
.pmz-detalle { margin-top: 0.25rem; color: var(--cv-texto-a3a6ad); font-size: 0.8125rem; }
.pmz-paso-ops { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.375rem; }
.pmz-link { padding: 0; border: 0; background: none; color: var(--cv-texto-949cf7); font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.pmz-link:hover { text-decoration: underline; }
.pmz-editor { margin-top: 0.5rem; }
.pmz-texto { width: 100%; box-sizing: border-box; padding: 0.625rem 0.75rem; border: 1px solid var(--cv-borde-2e2d32); border-radius: 0.375rem; background: var(--cv-fondo-121214); color: var(--cv-texto-efeff1); font: inherit; font-size: 0.875rem; line-height: 1.45; resize: vertical; }
.pmz-texto:focus { border-color: var(--cv-borde-5865f2); outline: none; }
.pmz-ayuda { margin: 0.375rem 0 0.5rem; color: var(--cv-texto-96969e); font-size: 0.75rem; }
.pm-celular .pmz-cuerpo { padding: 0.75rem; }

/* Ventanas de Haven (encuesta, enviar más tarde, invitaciones, editar perfil, las de administración...)
   con el aspecto de las de CV Chat: textos y botones legibles, campos que se distinguen del fondo, la ✕
   sin recuadro. La de Configuración tiene el suyo. (aviso.js les saca el emoji del título) */
html body .modal-overlay:not(#settings-modal) > .modal { border-color: var(--cv-borde-2e2d32); box-shadow: 0 0.5rem 1.5rem var(--cv-sombra-000000-50); }
html body .modal-overlay:not(#settings-modal) > .modal > h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--cv-texto-f2f3f5); }
html body .modal-overlay:not(#settings-modal) > .modal .muted-text,
html body .modal-overlay:not(#settings-modal) > .modal > p { font-size: 0.875rem !important; font-style: normal !important; line-height: 1.45; color: var(--cv-texto-a3a6ad); }
html body .modal-overlay:not(#settings-modal) > .modal label { color: var(--cv-texto-b5bac1); }
html body .modal-overlay:not(#settings-modal) > .modal input:is([type="text"], [type="search"], [type="number"], [type="url"], [type="email"], [type="password"], [type="date"], [type="time"], [type="datetime-local"], :not([type])),
html body .modal-overlay:not(#settings-modal) > .modal textarea,
html body .modal-overlay:not(#settings-modal) > .modal select {
  background-color: var(--cv-fondo-121214); border: 1px solid var(--cv-borde-2e2d32); border-radius: 0.375rem; color: var(--cv-texto-efeff1); font-size: 0.9375rem; color-scheme: dark;
}
html body .modal-overlay:not(#settings-modal) > .modal :is(input, textarea, select):focus { border-color: var(--cv-borde-5865f2); outline: none; }
html body .modal-overlay:not(#settings-modal) > .modal :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--cv-acento-5865f2); }
html body .modal-overlay:not(#settings-modal) > .modal input[type="file"] { font-size: 0.8125rem; color: var(--cv-texto-96969e); }
html body .modal-overlay:not(#settings-modal) > .modal input[type="file"]::file-selector-button {
  margin-right: 0.5rem; padding: 0.375rem 0.75rem; border: 0; border-radius: 0.25rem; background: var(--cv-fondo-3a3a40); color: var(--cv-texto-efeff1); font: inherit; font-weight: 500; cursor: pointer;
}
/* Botones: los de abajo como los de Discord (Cancelar sin fondo, el principal azul) */
html body .modal-overlay:not(#settings-modal) > .modal .btn-sm { font-size: 0.875rem; font-weight: 500; border-radius: 0.25rem; }
html body .modal-overlay:not(#settings-modal) > .modal .modal-actions .btn-sm { min-height: 2.375rem; padding: 0 1rem; }
html body .modal-overlay:not(#settings-modal) > .modal .modal-actions .btn-sm:not(.btn-accent):not(.btn-danger-fill) { background: transparent; color: var(--cv-texto-dbdee1); }
html body .modal-overlay:not(#settings-modal) > .modal .modal-actions .btn-sm:not(.btn-accent):not(.btn-danger-fill):hover { text-decoration: underline; }
/* Agrandar y cerrar, arriba a la derecha: sin recuadro */
html body .modal-overlay > .modal .modal-controls .modal-expand-btn {
  width: 2rem; height: 2rem; border: 0; border-radius: 0.375rem; background: transparent; color: var(--cv-texto-b5bac1); font-size: 1.125rem;
}
html body .modal-overlay > .modal .modal-controls .modal-expand-btn:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-efeff1); }
/* En el celular: casi todo el ancho y con scroll si no entra */
@media (max-width: 600px) {
  html body .modal-overlay:not(#settings-modal) > .modal { width: calc(100vw - 1.5rem) !important; max-width: none !important; max-height: calc(100dvh - 2rem); overflow-y: auto; padding: 1.25rem; box-sizing: border-box; }
}
/* Perfil propio: un solo botón azul (Editar perfil), como en Discord; Tu historia, Invitar gente y Notas
   personales en gris (sin emojis, aviso.js) */
html body .puente-historia-btn, html body .puente-invitar-btn, html body #profile-popup-edit-btn ~ .profile-dm-btn { background: var(--cv-fondo-2e2d32) !important; color: var(--cv-texto-efeff1) !important; }
html body .puente-historia-btn:hover, html body .puente-invitar-btn:hover, html body #profile-popup-edit-btn ~ .profile-dm-btn:hover { background: var(--cv-fondo-3a3a40) !important; }
html body .puente-profile-sheet :is(.puente-historia-btn, .puente-invitar-btn) { min-height: 2.75rem; border-radius: 0.5rem; font-size: 1rem; }
/* Sin lo de las donaciones a Haven: ni el ❤️ ni su ventana */
html body #donors-btn, html body #donors-modal { display: none !important; }
/* Panel de fijados: el encabezado sin el 📌 (aviso.js) y legible */
html body #pinned-panel .pinned-panel-header #pinned-count { font-size: 0.875rem; font-weight: 600; color: var(--cv-texto-dbdee1); }
html body .panel-title .title-emoji { display: none; }

/* Panel de la derecha (miembros), como el de Discord: cabecera "Miembros" alineada con la del canal,
   grupos "EN LÍNEA — 4", filas con hover, estados como en Discord (luna, no molestar, desconectado)
   y "Invitar usuarios" como los botones de la izquierda. Sin los emojis ni el título repetido. */
html body #right-sidebar .title-emoji { display: none; }
html body #right-sidebar-users > .panel { padding: 0.5rem 0.5rem 1rem; border-bottom: 0; }
html body #right-sidebar-users .panel-title { display: none !important; }
/* Sin voz: la franja de arriba (lo que era "Voz") es la cabecera "Miembros", con la ✕ en el celular */
html.puente-sin-voz body #right-sidebar-voice > .panel { padding: 0 0.75rem 0 1rem; border-bottom: 1px solid var(--cv-borde-29292d); }
html.puente-sin-voz body #right-sidebar-voice .voice-panel-header { height: 3.75rem; margin: 0; align-items: center; gap: 0.5rem; }
html.puente-sin-voz body #right-sidebar-voice .voice-panel-header::before { content: 'Miembros'; flex: 1; font-size: 1rem; font-weight: 600; color: var(--cv-texto-efeff1); }
html.puente-sin-voz body #right-sidebar #mobile-right-close {
  position: static; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; margin: 0; padding: 0;
  border: 0; border-radius: 0.375rem; background: transparent; color: var(--cv-texto-b5bac1); font-size: 1.625rem; line-height: 1;
}
html.puente-sin-voz body #right-sidebar #mobile-right-close:hover { background: var(--cv-fondo-29292e); color: var(--cv-texto-efeff1); }
/* Buscador */
html body #right-sidebar #user-search-wrap { padding: 0.5rem 0.25rem 0.25rem; }
html body #right-sidebar #user-search {
  width: 100%; height: 2.125rem; box-sizing: border-box; padding: 0 0.75rem 0 2.125rem; border: 1px solid var(--cv-borde-29292d); border-radius: 0.375rem;
  background: var(--cv-fondo-121214) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2381828a' d='M10 3a7 7 0 0 1 5.6 11.2l4.6 4.6-1.4 1.4-4.6-4.6A7 7 0 1 1 10 3Zm0 2a5 5 0 1 0 0 10 5 5 0 0 0 0-10Z'/%3E%3C/svg%3E") no-repeat 0.625rem center / 1rem;
  color: var(--cv-texto-efeff1); font-size: 0.875rem;
}
html body #right-sidebar #user-search:focus { border-color: var(--cv-borde-5865f2); outline: none; }
/* Grupos */
html body #right-sidebar #online-users .user-group-label {
  margin: 0; padding: 1.25rem 0.5rem 0.375rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--cv-texto-81828a);
}
html body #right-sidebar #online-users .user-group-label:first-child { padding-top: 0.75rem; }
/* Filas */
html body #right-sidebar .user-item { min-height: 2.625rem; margin: 0 0 0.125rem; padding: 0.3125rem 0.5rem; gap: 0.75rem; border-radius: 0.375rem; cursor: pointer; }
html body #right-sidebar .user-item:hover { background: var(--cv-fondo-29292e); }
html body #right-sidebar .user-item .user-item-name:not([style]) { color: var(--cv-texto-dbdee1); }
html body #right-sidebar .user-item.offline { opacity: 0.4; }
html body #right-sidebar .user-item.offline:hover { opacity: 1; }
html body #right-sidebar .user-item .user-item-sub { color: var(--cv-texto-96969e); }
/* Estados como en Discord: el anillo es del color de atras (cambia con el hover) */
html body #right-sidebar .user-status-dot {
  --anillo: var(--cv-color-1a1a1e);
  width: 1rem; height: 1rem; right: -0.25rem; bottom: -0.25rem; box-sizing: border-box; border: 0.1875rem solid var(--anillo); border-radius: 50%; background: var(--cv-fondo-23a55a);
}
html body #right-sidebar .user-item:hover .user-status-dot { --anillo: var(--cv-color-29292e); }
html body #right-sidebar .user-status-dot.away { border-radius: 50%; background: radial-gradient(circle 0.25rem at 0.125rem 0.125rem, var(--anillo) 98%, var(--cv-fondo-f0b232) 100%); }
html body #right-sidebar .user-status-dot.dnd { border-radius: 50%; background: linear-gradient(var(--anillo), var(--anillo)) center / 0.375rem 0.125rem no-repeat, var(--cv-fondo-f23f43); }
html body #right-sidebar .user-status-dot.invisible,
html body #right-sidebar .user-item.offline .user-status-dot { border: 0.1875rem solid var(--anillo); background: radial-gradient(circle, var(--anillo) 0 0.125rem, var(--cv-fondo-80848e) 0.1563rem); }
/* "Invitar usuarios": un boton rosa del club, bien a la vista (abre "Invitar gente", aviso.js) */
html body #right-sidebar #sidebar-invite-panel { padding: 0.75rem; border-top: 1px solid var(--cv-borde-29292d); background: none; }
/* alrededor, un recuadro rosa con un titulo y una linea (para que se vea) */
html body #right-sidebar #sidebar-invite-panel::before {
  content: '🤝 Traé gente al club\A Invitá a tus amigos y sumá tu medalla de Reclutador.'; white-space: pre-line; display: block;
  margin: 0 0 0.75rem; color: var(--cv-texto-b5bac1); font-size: 0.875rem; line-height: 1.4; text-align: center;
}
html body #right-sidebar #sidebar-invite-panel::first-line { color: var(--cv-texto-ffffff); font-size: 1.0625rem; font-weight: 800; }
html body #right-sidebar #sidebar-invite-panel { margin: 0.5rem 0.625rem 0.75rem; padding: 1rem 0.875rem 0.875rem; border: 1px solid var(--cv-borde-ee2d6f-55); border-radius: 1rem;
  background: radial-gradient(120% 90% at 50% 0%, var(--cv-fondo-ee2d6f-22), var(--cv-fondo-ee2d6f-06) 70%), var(--cv-fondo-1f1d22); box-shadow: 0 0 24px var(--cv-sombra-ee2d6f-15); }
html body #right-sidebar #right-btn-invite-popout {
  display: flex; align-items: center; justify-content: center; gap: 0.625rem; width: 100%; min-height: 3rem; margin: 0; padding: 0 1rem; box-sizing: border-box;
  border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--cv-fondo-ee2d6f), var(--cv-fondo-ff5c93)); color: var(--cv-sobre-acento-ffffff); font-size: 1.0625rem; font-weight: 800; letter-spacing: 0.01em;
  box-shadow: 0 4px 16px var(--cv-sombra-ee2d6f-35); cursor: pointer; transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}
html body #right-sidebar #right-btn-invite-popout:hover { color: var(--cv-texto-ffffff); filter: brightness(1.08); box-shadow: 0 6px 20px var(--cv-sombra-ee2d6f-50); }
html body #right-sidebar #right-btn-invite-popout:active { transform: scale(0.97); }
html body #right-sidebar #right-btn-invite-popout svg { width: 1.375rem; height: 1.375rem; stroke-width: 2.5; }
/* En la PC, mas tranquilo: el mismo recuadro sin brillo, letras y boton mas chicos (en el celular queda como arriba) */
@media (min-width: 769px) {
  html body #right-sidebar #sidebar-invite-panel { padding: 0.75rem 0.75rem 0.75rem; border-color: var(--cv-borde-ee2d6f-25); background: var(--cv-fondo-1f1d22); box-shadow: none; }
  html body #right-sidebar #sidebar-invite-panel::before { margin-bottom: 0.625rem; font-size: 0.8125rem; color: var(--cv-texto-949ba4); }
  html body #right-sidebar #sidebar-invite-panel::first-line { font-size: 0.9375rem; font-weight: 700; color: var(--cv-texto-dbdee1); }
  html body #right-sidebar #right-btn-invite-popout { min-height: 2.25rem; font-size: 0.9375rem; font-weight: 700; background: var(--cv-fondo-d8336f); box-shadow: none; }
  html body #right-sidebar #right-btn-invite-popout:hover { background: var(--cv-fondo-e63e7b); filter: none; box-shadow: none; }
  html body #right-sidebar #right-btn-invite-popout svg { width: 1.125rem; height: 1.125rem; stroke-width: 2; }
}
/* La foto con su marco del mismo tamaño (en la PC el marco de Haven era mas chico y el estado quedaba en el medio) */
html body #right-sidebar .user-item .user-avatar-wrapper { width: 2rem; height: 2rem; flex: 0 0 2rem; }
html body #right-sidebar .user-item .user-item-avatar, html body #right-sidebar .user-item .user-item-avatar-img { width: 2rem !important; height: 2rem !important; min-width: 2rem; font-size: 0.875rem; }
html body #right-sidebar .user-item .user-item-name { font-size: 1rem !important; font-weight: 500; line-height: 1.25rem; }
html body #right-sidebar #online-users .user-group-label.offline-label { margin-top: 0; border-top: 0; }

/* Pagina "Miembros" (solo administradores), como la de Discord (aviso.js). Fuera del
   bloque de PC: en el celular tambien se usa (ahi como lista, mas abajo). */
.puente-miembros-btn {
  display: flex; align-items: center; gap: 0.625rem; width: calc(100% - 1rem); min-height: 2.25rem; margin: 0.5rem 0.5rem 0.25rem; padding: 0 0.625rem; box-sizing: border-box;
  border: 0; border-radius: 0.375rem; background: transparent; color: var(--cv-texto-96969e); font: inherit; font-size: 1rem; font-weight: 500; cursor: pointer; text-align: left;
}
.puente-miembros-btn:hover { background: var(--cv-fondo-29292e); color: var(--cv-texto-dbdee1); }
.puente-miembros-btn svg { flex: 0 0 auto; width: 1.375rem; height: 1.375rem; }
/* Admin, Actividad y Guardados: una sola fila de botones chicos (el icono al lado del nombre), pegada
   arriba, para que los canales no queden tan abajo */
#puente-atajos { display: flex; gap: 0.125rem; margin: 0 0.375rem; container-type: inline-size; }
#puente-atajos .puente-miembros-btn { flex: 1 1 auto; min-width: 0; width: auto; min-height: 0; margin: 0; padding: 0.3125rem 0.25rem; justify-content: center; gap: 0.3125rem; font-size: 0.8125rem; line-height: 1.25rem; text-align: center; }
#puente-atajos .puente-miembros-btn svg { width: 1rem; height: 1rem; }
#puente-atajos .puente-miembros-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* si la columna es angosta, el icono arriba del nombre: que entren los dos enteros */
@container (max-width: 16rem) { #puente-atajos .puente-miembros-btn { flex-direction: column; gap: 0.125rem; padding: 0.3125rem 0.125rem; } }
#puente-miembros-btn { order: 1; }
#puente-actividad-btn { order: 2; }
#puente-guardados-btn { order: 3; }
.puente-miembros {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 900; display: flex; flex-direction: column;
  background: var(--cv-fondo-1a1a1e); color: var(--cv-texto-dbdee1); font-family: inherit; overflow: hidden;
}
.pm-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; height: 3.5rem; padding: 0 1.25rem; border-bottom: 1px solid var(--cv-borde-29292d); }
.pm-titulo { display: flex; align-items: center; gap: 0.625rem; font-size: 1.0625rem; font-weight: 700; color: var(--cv-texto-fbfbfb); }
.pm-titulo svg { color: var(--cv-texto-b5bac1); }
.pm-cerrar { display: flex; padding: 0.375rem; border: 0; border-radius: 0.375rem; background: transparent; color: var(--cv-texto-b5bac1); cursor: pointer; }
.pm-cerrar:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); }
.pm-card { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin: 1.25rem; border: 1px solid var(--cv-borde-29292d); border-radius: 0.5rem; background: var(--cv-fondo-1e1e22); overflow: hidden; }
.pm-bar { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--cv-borde-29292d); }
.pm-sub { display: flex; align-items: baseline; gap: 0.75rem; font-size: 1.125rem; font-weight: 700; color: var(--cv-texto-fbfbfb); }
.pm-total { font-size: 0.875rem; font-weight: 500; color: var(--cv-texto-80848e); }
.pm-buscar { width: 20rem; height: 2.25rem; padding: 0 0.75rem; box-sizing: border-box; border: 1px solid var(--cv-borde-2e2d32); border-radius: 0.375rem; background: var(--cv-fondo-121214); color: var(--cv-texto-dbdee1); font: inherit; font-size: 0.9375rem; outline: none; }
.pm-buscar:focus { border-color: var(--cv-borde-5865f2); }
.pm-tabla { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--cv-barra-3a3940) transparent; }
.pm-fila {
  /* nombre, email, miembro desde, discord, mensajes, ultimo mensaje, ultima vez, señales */
  display: grid; grid-template-columns: minmax(13rem, 2fr) minmax(13rem, 2fr) 1fr minmax(10rem, 1.4fr) minmax(7rem, 0.9fr) 1fr minmax(9rem, 1.2fr) minmax(9rem, 1.3fr);
  align-items: center; gap: 0.75rem; min-width: 82rem; padding: 0.625rem 1.25rem; border-bottom: 1px solid var(--cv-borde-232226); cursor: pointer;
}
/* Resumen arriba de la tabla y filtros rapidos */
.pm-resumen { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.875rem 1.25rem 0; }
.pm-dato { flex: 1 1 8rem; min-width: 8rem; padding: 0.625rem 0.875rem; border-radius: 0.5rem; background: var(--cv-fondo-232228); }
.pm-dato-n { font-size: 1.375rem; font-weight: 700; color: var(--cv-texto-fbfbfb); font-variant-numeric: tabular-nums; }
.pm-dato-l { font-size: 0.8125rem; color: var(--cv-texto-96969e); }
/* La flechita a la derecha de "Miembros recientes": pliega buscador, orden, resumen y filtros */
.pm-plegar { margin-left: auto; align-self: center; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 0.375rem; background: transparent; color: var(--cv-texto-b5bac1); cursor: pointer; }
.pm-plegar:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); }
.pm-plegar svg { transition: transform 0.15s; }
.pm-plegado .pm-plegar svg { transform: rotate(180deg); }
.pm-plegado .pm-buscar, .pm-plegado .pm-orden, .pm-plegado .pm-resumen, .pm-plegado .pm-filtros { display: none; }
.pm-celular .pm-sub { flex-wrap: wrap; row-gap: 0.25rem; }
.pm-celular .pm-sub > * { white-space: nowrap; }
.pm-filtros { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 0.375rem; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--cv-borde-29292d); }
.pm-filtro { padding: 0.3125rem 0.75rem; border: 1px solid var(--cv-borde-2e2d32); border-radius: 999px; background: transparent; color: var(--cv-texto-b5bac1); font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.pm-filtro:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); }
.pm-filtro.actual { background: var(--cv-fondo-5865f2); border-color: var(--cv-borde-5865f2); color: var(--cv-sobre-acento-ffffff); }
.pm-ok-txt { color: var(--cv-texto-7fd6a2) !important; }
.pm-senal.mal { background: var(--cv-fondo-f23f43-18); color: var(--cv-texto-f8a5a7); }
.pm-celular .pm-resumen { padding: 0.75rem 0.75rem 0; }
.pm-celular .pm-dato { flex-basis: calc(50% - 0.25rem); min-width: 0; }
.pm-celular .pm-filtros { padding: 0.625rem 0.75rem; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.pm-celular .pm-filtro { flex: 0 0 auto; }
/* Pestañas "Miembros | Estadisticas" */
.pm-pestanas { display: flex; gap: 0.25rem; margin-left: 0.25rem; }
.pm-pestana { padding: 0.375rem 0.75rem; border: 0; border-radius: 0.375rem; background: transparent; color: var(--cv-texto-b5bac1); font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.pm-pestana:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); }
.pm-pestana.actual { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); }
.pm-celular .pm-pestana { font-size: 0.9375rem; padding: 0.375rem 0.5rem; }

/* Pestaña "Estadisticas" (aviso.js, panel-estadisticas.js) */
.pe-vista { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 1.25rem; scrollbar-width: thin; scrollbar-color: var(--cv-barra-3a3940) transparent; }
.pe-vista[hidden], .pm-card[hidden] { display: none !important; }
/* Pestaña "App" del panel (los testers de Google Play, tester-play.js) */
.pa2-scroll { overflow-x: auto; }
.pa2-persona { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
.pa2-av { flex: 0 0 auto; width: 1.75rem; height: 1.75rem; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); font-size: 0.75rem; font-weight: 700; }
.pa2-av img { width: 100%; height: 100%; object-fit: cover; }
.pa2-nombre { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; background: none; padding: 0; color: var(--cv-texto-f2f3f5); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.pa2-nombre:hover { text-decoration: underline; }
.pe-tabla-fila.pa2-hoy { background: var(--cv-fondo-23a55a-08); }
.pa2-opiniones { display: flex; flex-direction: column; gap: 0.625rem; }
.pa2-opinion { padding: 0.625rem 0.75rem; border-radius: 0.5rem; background: var(--cv-fondo-232328); }
.pa2-op-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
.pa2-op-meta { font-size: 0.8125rem; color: var(--cv-texto-949ba4); }
.pa2-op-texto { margin-top: 0.375rem; color: var(--cv-texto-dbdee1); white-space: pre-wrap; overflow-wrap: anywhere; }
.pa2-al-dia { margin-top: 0.75rem; text-align: right; }
.pa2-invitar { min-height: 2rem; padding: 0 0.75rem; border: 0; border-radius: 0.375rem; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pa2-invitar:hover { background: var(--cv-fondo-4752c4); }
.pa2-invitar.hecho { background: transparent; color: var(--cv-texto-23a55a); box-shadow: inset 0 0 0 1px var(--cv-sombra-23a55a); }
.pa2-invitar:disabled { opacity: 0.6; cursor: default; }
.pa2-explica { margin: 0 0 0.5rem; }
.pa2-op-resp { margin-top: 0.5rem; }
.pa2-op-resp-t { font-size: 0.75rem; font-weight: 700; color: var(--cv-texto-23a55a); }
.pa2-op-ta { display: block; width: 100%; box-sizing: border-box; margin-bottom: 0.375rem; padding: 0.5rem 0.625rem; border: 1px solid var(--cv-borde-3f3f46); border-radius: 0.375rem; background: var(--cv-fondo-1a191e); color: var(--cv-texto-f2f3f5); font: inherit; font-size: 0.875rem; resize: vertical; }
.pa2-op-acc { display: flex; justify-content: flex-end; gap: 0.375rem; }
.pa2-op-play { display: flex; align-items: center; gap: 0.375rem; margin: 0 0 0.375rem; font-size: 0.8125rem; color: var(--cv-texto-b5bac1); cursor: pointer; }
.pa2-op-play input { accent-color: var(--cv-acento-5865f2); }
.pa2-subtitulo { margin: 1.25rem 0 0.25rem; font-size: 0.9375rem; font-weight: 700; color: var(--cv-texto-f2f3f5); }
.pe-barra { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.pe-rangos { display: flex; gap: 0.375rem; }
.pe-rango { min-width: 3rem; padding: 0.375rem 0.75rem; border: 1px solid var(--cv-borde-2e2d32); border-radius: 999px; background: transparent; color: var(--cv-texto-dbdee1); font: inherit; font-weight: 700; cursor: pointer; }
.pe-rango:hover { background: var(--cv-fondo-2e2d32); }
.pe-rango.actual { background: var(--cv-fondo-fbfbfb); border-color: var(--cv-borde-fbfbfb); color: var(--cv-texto-121214); }
.pe-cuerpo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pe-aviso { grid-column: 1 / -1; padding: 0.625rem 0.875rem; border-radius: 0.5rem; background: var(--cv-fondo-f0b232-12); color: var(--cv-texto-f0c36a); font-size: 0.875rem; }
.pe-totales { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.75rem; }
.pe-total { padding: 0.875rem 1rem; border: 1px solid var(--cv-borde-29292d); border-radius: 0.625rem; background: var(--cv-fondo-1e1e22); }
.pe-total-l { font-size: 0.875rem; font-weight: 600; color: var(--cv-texto-b5bac1); }
.pe-total-fila { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.25rem; }
.pe-total-n { font-size: 1.625rem; font-weight: 800; color: var(--cv-texto-fbfbfb); font-variant-numeric: tabular-nums; }
.pe-var { font-size: 0.8125rem; font-weight: 700; color: var(--cv-texto-96969e); }
.pe-var.sube { color: var(--cv-texto-7fd6a2); }
.pe-var.baja { color: var(--cv-texto-f8a5a7); }
.pe-caja { min-width: 0; padding: 1rem 1.125rem; border: 1px solid var(--cv-borde-29292d); border-radius: 0.625rem; background: var(--cv-fondo-1e1e22); }
.pe-ancha { grid-column: 1 / -1; }
/* El resumen escrito (arriba de todo), el tiempo de uso y "¿Vuelven?" */
.pe-resumen-caja { border-color: var(--cv-borde-3a3f8f); background: var(--cv-fondo-1f2033); }
.pe-resumen { margin: 0; padding-left: 1.125rem; display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.9375rem; line-height: 1.45; color: var(--cv-texto-dbdee1); }
.pe-resumen b { color: var(--cv-texto-fbfbfb); }
.pe-caja .pe-totales { margin-bottom: 0.875rem; }
.pe-ret { display: flex; flex-direction: column; gap: 0.25rem; overflow-x: auto; }
.pe-ret-fila { display: grid; grid-template-columns: minmax(9rem, 1.6fr) minmax(4rem, 0.8fr) repeat(4, minmax(3.5rem, 1fr)); gap: 0.25rem; align-items: center; min-width: 30rem; font-size: 0.875rem; color: var(--cv-texto-dbdee1); font-variant-numeric: tabular-nums; }
.pe-ret-cab { font-size: 0.75rem; font-weight: 700; color: var(--cv-texto-96969e); }
.pe-ret-c { padding: 0.3rem 0; border-radius: 0.25rem; text-align: center; color: var(--cv-texto-fbfbfb); font-weight: 600; }
/* Tablas chicas, "Dejaron de venir", errores, busquedas y los botones para bajar en planilla */
.pe-tabla { display: flex; flex-direction: column; gap: 0.125rem; overflow-x: auto; }
.pe-tabla-fila { display: grid; gap: 0.5rem; align-items: center; min-width: 30rem; padding: 0.3rem 0.25rem; border-bottom: 1px solid var(--cv-borde-29292d); font-size: 0.875rem; color: var(--cv-texto-dbdee1); font-variant-numeric: tabular-nums; }
.pe-tabla-fila > span:not(:first-child) { text-align: right; }
.pe-tabla-cab { font-size: 0.75rem; font-weight: 700; color: var(--cv-texto-96969e); }
.pe-riesgo { display: flex; flex-direction: column; gap: 0.125rem; max-height: 22rem; overflow-y: auto; }
.pe-riesgo-fila { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.125rem 0.5rem; width: 100%; padding: 0.375rem 0.5rem; border: 0; border-radius: 0.375rem; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pe-riesgo-fila:hover { background: var(--cv-fondo-2b2d31); }
.pe-riesgo-n { font-weight: 600; color: var(--cv-texto-fbfbfb); }
.pe-riesgo-u, .pe-riesgo-d { font-size: 0.8125rem; color: var(--cv-texto-96969e); }
.pe-sub { margin: 0.75rem 0 0.375rem; font-size: 0.8125rem; font-weight: 700; color: var(--cv-texto-b5bac1); }
.pe-error { padding: 0.375rem 0; border-bottom: 1px solid var(--cv-borde-29292d); }
.pe-error-m { font-family: ui-monospace, Consolas, monospace; font-size: 0.8125rem; color: var(--cv-texto-f8a5a7); word-break: break-word; }
.pe-error-d { font-size: 0.75rem; color: var(--cv-texto-96969e); }
.pe-busq { padding: 0.2rem 0; font-size: 0.875rem; color: var(--cv-texto-dbdee1); }
.pe-busq-sin { color: var(--cv-texto-f0b232); }
.pe-csv { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pe-csv-btn { padding: 0.375rem 0.75rem; border: 1px solid var(--cv-borde-3f4147); border-radius: 0.375rem; background: var(--cv-fondo-2b2d31); color: var(--cv-texto-dbdee1); font: inherit; font-size: 0.8125rem; cursor: pointer; }
.pe-csv-btn:hover { background: var(--cv-fondo-35373c); color: var(--cv-texto-ffffff); }
.pe-titulo { margin-bottom: 0.75rem; font-size: 1rem; font-weight: 700; color: var(--cv-texto-fbfbfb); }
.pe-svg { display: block; width: 100%; height: auto; }
.pe-guia { stroke: var(--cv-texto-2b2a30); stroke-width: 1; }
.pe-eje { fill: var(--cv-texto-80848e); font-size: 11px; font-family: inherit; }
.pe-mudanza { display: flex; align-items: baseline; gap: 0.625rem; margin-bottom: 0.5rem; }
.pe-mudanza-n { font-size: 2rem; font-weight: 800; color: var(--cv-texto-fbfbfb); }
.pe-mudanza-l { color: var(--cv-texto-b5bac1); font-size: 0.9375rem; }
.pe-leyenda { display: flex; gap: 1rem; margin-bottom: 0.5rem; font-size: 0.8125rem; color: var(--cv-texto-b5bac1); }
.pe-leyenda i { display: inline-block; width: 0.625rem; height: 0.625rem; margin-right: 0.375rem; border-radius: 2px; vertical-align: middle; }
.pe-nota { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--cv-texto-80848e); }
.pe-calor { display: grid; grid-template-columns: 2.5rem repeat(24, minmax(0, 1fr)); gap: 2px; }
.pe-calor-h, .pe-calor-d { font-size: 0.6875rem; color: var(--cv-texto-80848e); text-align: center; }
.pe-calor-d { text-align: left; line-height: 1.25rem; }
.pe-calor-c { height: 1.25rem; border-radius: 3px; background: var(--cv-fondo-5865f2); }
.pe-fila { padding: 0.375rem 0; }
.pe-fila.pe-clic { cursor: pointer; }
.pe-fila.pe-clic:hover .pe-fila-n { color: var(--cv-texto-fbfbfb); text-decoration: underline; }
.pe-fila-top { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.875rem; }
.pe-fila-n { color: var(--cv-texto-dbdee1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-fila-v { flex: 0 0 auto; color: var(--cv-texto-b5bac1); font-variant-numeric: tabular-nums; white-space: pre; }
.pe-fila-fondo { height: 0.375rem; margin-top: 0.25rem; border-radius: 999px; background: var(--cv-fondo-2b2a30); overflow: hidden; }
.pe-fila-llena { height: 100%; border-radius: 999px; background: var(--cv-fondo-5865f2); }
.pm-celular .pe-vista { padding: 0.75rem; }
.pm-celular .pe-cuerpo { grid-template-columns: minmax(0, 1fr); }
/* Con cuatro pestañas en el celular: se corren de costado */
.pm-celular .pm-pestanas { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.pm-celular .pm-pestana { flex: 0 0 auto; }
/* De donde llega la gente, en "Estadisticas" (aviso.js, origenes.js) */
.po-nota { grid-column: 1 / -1; margin-top: 0; }
.po-leyenda { flex-wrap: wrap; gap: 0.5rem 1rem; }
.po-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 0.25rem 1rem; }
.po-item { display: flex; align-items: center; gap: 0.625rem; min-width: 0; padding: 0.375rem 0.5rem; border-radius: 0.375rem; cursor: pointer; }
.po-item:hover { background: var(--cv-fondo-26252b); }
.po-item .pm-avatar { flex: none; }
.po-info { min-width: 0; }
.po-info .pm-n1, .po-info .pm-n2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-arma { display: flex; flex-direction: column; gap: 0.625rem; }
.po-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; }
.po-fila .po-etiqueta { flex: 1 1 16rem; min-width: 0; }
.po-sale { flex: 1 1 16rem; min-width: 0; padding: 0.5rem 0.75rem; border-radius: 0.375rem; background: var(--cv-fondo-121214); color: var(--cv-texto-dbdee1); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.875rem; overflow-wrap: anywhere; }
/* Pestaña "Marketplace" (aviso.js, mercado.js /admin) */
.pk-vista { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 1.25rem; scrollbar-width: thin; scrollbar-color: var(--cv-barra-3a3940) transparent; }
.pk-vista[hidden] { display: none !important; }
/* Pestaña "Juegos" de la administracion (aviso.js, juegos-estadisticas.js) */
.pj-vista { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 1.25rem; scrollbar-width: thin; scrollbar-color: var(--cv-barra-3a3940) transparent; }
.pj-vista[hidden] { display: none !important; }
.pm-celular .pj-vista { padding: 0.75rem; }
.pj-leyenda { display: flex; flex-wrap: wrap; gap: 0.375rem 1rem; margin-top: 0.5rem; font-size: 0.8125rem; color: var(--cv-texto-b5bac1); }
.pj-ley, .pj-juego { display: inline-flex; align-items: center; gap: 0.375rem; }
.pj-ley i, .pj-juego i { width: 0.625rem; height: 0.625rem; border-radius: 0.1875rem; flex: none; }
.pj-juego { font-weight: 600; color: var(--cv-texto-fbfbfb); }
.pj-personas button.pe-tabla-fila { width: 100%; border: 0; border-bottom: 1px solid var(--cv-borde-29292d); background: none; font: inherit; text-align: left; cursor: pointer; }
.pj-personas button.pe-tabla-fila:hover { background: var(--cv-fondo-2b2d31); }
.pj-persona { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; color: var(--cv-texto-fbfbfb); font-weight: 600; }
.pj-persona > span:not(.pj-nuevo) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-persona img { width: 1.5rem; height: 1.5rem; border-radius: 50%; object-fit: cover; flex: none; }
.pj-nuevo { flex: none; padding: 0 0.375rem; border-radius: 999px; background: var(--cv-fondo-3ba55c-18); color: var(--cv-texto-7fd6a2); font-size: 0.6875rem; font-weight: 700; }
.pj-partida-t { color: var(--cv-texto-dbdee1); font-size: 0.875rem; font-weight: 600; }
.pk-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.pk-cuerpo .pe-caja > div:last-child { display: flex; flex-direction: column; gap: 0.375rem; }
.pk-link { flex: 1 1 12rem; min-width: 0; padding: 0; border: 0; background: none; color: var(--cv-texto-efeff1); font: inherit; font-size: 0.9375rem; font-weight: 600; text-align: left; cursor: pointer; }
.pk-link:hover { color: var(--cv-texto-fbfbfb); text-decoration: underline; }
.pk-precio { flex: 0 0 auto; color: var(--cv-texto-dbdee1); font-variant-numeric: tabular-nums; }
.pk-sub { margin: 0.75rem 0 0.25rem; color: var(--cv-texto-b5bac1); font-size: 0.875rem; font-weight: 700; }
.pmz-paso.pk-confirmada, .pmz-paso.pk-activa { border-left-color: var(--cv-borde-23a55a); }
.pmz-paso.pk-pendiente { border-left-color: var(--cv-borde-f0b232); }
.pmz-paso.pk-rechazada, .pmz-paso.pk-borrada, .pmz-paso.pk-vencida { opacity: 0.6; }
.pmz-paso.pk-vendida, .pmz-paso.pk-fuera { border-left-color: var(--cv-borde-5865f2); }
.pmz-paso.pk-denuncia { border-left-color: var(--cv-borde-f23f43); }
.pk-opinion { margin-top: 0.5rem; padding: 0.5rem 0.75rem; border-radius: 0.375rem; background: var(--cv-fondo-232228); border-left: 3px solid var(--cv-borde-23a55a); }
.pk-opinion.pk-mala { border-left-color: var(--cv-borde-f23f43); }
.pk-op-q { color: var(--cv-texto-b5bac1); font-size: 0.8125rem; }
.pk-op-t { margin-top: 0.25rem; color: var(--cv-texto-efeff1); font-size: 0.9375rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.pk-tabla { display: flex; flex-direction: column; overflow-x: auto; }
.pk-fila { display: grid; grid-template-columns: minmax(10rem, 2fr) repeat(4, minmax(3.5rem, 0.6fr)) minmax(9rem, 1.4fr); gap: 0.5rem; padding: 0.375rem 0; border-bottom: 1px solid var(--cv-borde-29292d); color: var(--cv-texto-dbdee1); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.pk-fila.pk-cab { color: var(--cv-texto-96969e); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.pk-nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cv-texto-efeff1); }
.pm-celular .pk-vista { padding: 0.75rem; }
.pm-celular .pk-fila { grid-template-columns: minmax(8rem, 2fr) repeat(4, 3rem) minmax(8rem, 1.4fr); min-width: 34rem; }
.pm-celular .pe-totales { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pm-celular .pe-calor { grid-template-columns: 2rem repeat(24, minmax(0, 1fr)); gap: 1px; }
.pm-celular .pe-calor-c { height: 0.875rem; }

/* "Actividad" para todos (aviso.js, actividad.js) */
.pa-vista { display: block; }
.pa-cuerpo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
/* "Lo mejor de la semana": las tarjetas encajan como ladrillos (aviso.js les pone cuantas filas de 4 px ocupan);
   tres columnas si entran, sin huecos entre una y la de abajo */
.pa-cuerpo.pa-ladrillos { grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); grid-auto-rows: 4px; row-gap: 0; column-gap: 1rem; }
.pa-cuerpo.pa-ladrillos > * { align-self: start; }
.pm-celular .pa-cuerpo.pa-ladrillos { grid-template-columns: minmax(0, 1fr); }
/* "Lo ultimo": una sola lista, del mas nuevo al mas viejo, con el canal de cada mensaje */
.pa-ultimo { grid-column: 1 / -1; width: 100%; max-width: 46rem; justify-self: center; display: flex; flex-direction: column; gap: 0.125rem; box-sizing: border-box; }
.pa-cuerpo > .pa-intro:has(+ .pa-ultimo) { max-width: 46rem; width: 100%; justify-self: center; }
.pa-ult-canal { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cv-texto-b5bac1); font-weight: 600; }
.pa-ultimo .pa-msg-cab .pa-msg-f { flex: 0 0 auto; }
.pa-ultimo .pa-msg-cab .pa-msg-n { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-ult-mas { justify-self: center; }
.pa-ult-mas:disabled { opacity: 0.6; cursor: default; }
/* Guardados (aviso.js): una columna como la de X, lo ultimo guardado arriba */
.pg-columna { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.pg-lista { display: flex; flex-direction: column; gap: 0.75rem; }
.pg-titulo { margin-left: 0.5rem; font-size: 1.0625rem; font-weight: 700; color: var(--cv-texto-fbfbfb); }
.puente-guardados .pm-titulo { display: flex; align-items: center; color: var(--cv-texto-fbfbfb); }
.pg-item { display: flex; flex-direction: column; gap: 0.375rem; transition: opacity 0.2s, transform 0.2s; }
.pg-item.pg-sale { opacity: 0; transform: scale(0.98); }
.pg-cab { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.pg-canal { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9375rem; font-weight: 700; color: var(--cv-texto-f2f3f5); }
.pg-cuando { flex: 0 0 auto; font-size: 0.8125rem; color: var(--cv-texto-80848e); }
.pg-quitar { flex: 0 0 auto; margin-left: auto; display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--cv-texto-5865f2); cursor: pointer; }
.pg-quitar:hover { background: var(--cv-fondo-5865f2-15); }
.pg-privado { color: var(--cv-texto-b5bac1); font-style: italic; }
.pg-mas { align-self: center; }
.pg-mas[hidden] { display: none; }
/* El marcador de la barrita del mensaje, lleno y azul si esta guardado */
.puente-tb-guardar.puente-guardado { color: var(--cv-texto-5865f2) !important; }
.pa-intro { grid-column: 1 / -1; color: var(--cv-texto-b5bac1); font-size: 0.9375rem; }
.pe-caja .pa-intro { margin: -0.25rem 0 0.5rem; font-size: 0.875rem; }
.pa-canal { display: flex; flex-direction: column; gap: 0.25rem; }
.pa-canal-t { align-self: flex-start; padding: 0; margin-bottom: 0.25rem; border: 0; background: transparent; color: var(--cv-texto-fbfbfb); font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.pa-canal-t:hover { text-decoration: underline; }
.pa-msg { display: flex; gap: 0.75rem; width: 100%; padding: 0.625rem; border: 0; border-radius: 0.5rem; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pa-msg:hover { background: var(--cv-fondo-26252b); }
.pa-avatar { width: 2.25rem; height: 2.25rem; font-size: 0.875rem; }
.pa-msg-c { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 0.25rem; }
.pa-msg-cab { display: flex; gap: 0.5rem; align-items: baseline; font-size: 0.8125rem; color: var(--cv-texto-96969e); }
.pa-msg-n { font-size: 0.9375rem; font-weight: 600; color: var(--cv-texto-fbfbfb); }
.pa-msg-t { font-size: 0.9375rem; color: var(--cv-texto-dbdee1); line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; word-break: break-word; }
.pa-emoji { width: 1.25rem; height: 1.25rem; object-fit: contain; vertical-align: -0.25rem; }
.pa-emoji-t { font-size: 1.25rem; margin-right: 0.25rem; }
.pa-reacs { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.pa-reac { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.125rem 0.5rem; border-radius: 0.5rem; background: var(--cv-fondo-2b2a30); font-size: 0.8125rem; font-weight: 600; color: var(--cv-texto-dbdee1); }
.pa-reac .pa-emoji { width: 1rem; height: 1rem; vertical-align: middle; }
.pa-horas { display: flex; align-items: flex-end; gap: 2px; height: 6rem; margin-top: 0.5rem; }
.pa-hora { flex: 1 1 0; min-height: 4%; border-radius: 2px 2px 0 0; background: var(--cv-fondo-4e5bd6); opacity: 0.75; }
.pa-hora.pico { background: var(--cv-fondo-5865f2); opacity: 1; }
.pa-horas-eje { display: flex; justify-content: space-between; margin-top: 0.25rem; font-size: 0.6875rem; color: var(--cv-texto-80848e); }
.pa-linea { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; margin-bottom: 0.625rem; color: var(--cv-texto-dbdee1); font-size: 0.9375rem; }
.pa-linea-l { color: var(--cv-texto-b5bac1); }
.pa-boton { grid-column: 1 / -1; justify-self: start; padding: 0.625rem 1rem; border: 0; border-radius: 0.5rem; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); font: inherit; font-weight: 700; cursor: pointer; }
.pa-boton:hover { background: var(--cv-fondo-4752c4); }
.pa-mes { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.75rem; }
.pa-mes-n { font-size: 1.0625rem; font-weight: 700; color: var(--cv-texto-fbfbfb); }
.pa-mes .pe-rango:disabled { opacity: 0.35; cursor: default; }
.pa-rank { display: flex; align-items: center; gap: 0.625rem; padding: 0.375rem 0.25rem; border-radius: 0.375rem; }
.pa-rank.yo { background: var(--cv-fondo-5865f2-14); }
.pa-rank-p { width: 1.75rem; text-align: center; font-weight: 800; color: var(--cv-texto-b5bac1); font-size: 0.9375rem; }
.pa-rank-n { flex: 1 1 auto; min-width: 0; color: var(--cv-texto-fbfbfb); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-rank-v { color: var(--cv-texto-b5bac1); font-size: 0.875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pa-pie { grid-column: 1 / -1; }
/* "Tu año en CV Chat" (aviso.js, en diciembre) */
.pa-anio-tapa { grid-column: 1 / -1; text-align: center; padding: 1.5rem 1rem; background: linear-gradient(135deg, var(--cv-fondo-5865f2), var(--cv-fondo-a243c9)); border: 0; }
.pa-anio-a { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--cv-texto-ffffff); }
.pa-anio-s { margin-top: 0.375rem; font-size: 1.125rem; font-weight: 700; color: var(--cv-texto-ffffff-92); }
.pa-meses { gap: 4px; }
.pa-meses-eje span { flex: 1 1 0; text-align: center; }
/* Numeros en la tarjeta de perfil (aviso.js): mensajes, canal favorito y puesto del mes */
.puente-perfil-est { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 2px; font-size: 12px; color: var(--cv-texto-b5bac1); }
.puente-perfil-dato b { color: var(--cv-texto-f2f3f5); font-weight: 700; }
/* Hora pico del canal (aviso.js): en la PC, gris al lado del nombre; en el celular va en la hoja de la descripcion */
header.channel-header .puente-pico { margin-left: 0.75rem; font-size: 0.8125rem; font-weight: 500; color: var(--cv-texto-949ba4); white-space: nowrap; cursor: default; }
header.channel-header .puente-pico[hidden] { display: none; }
@media (max-width: 768px) { html body header.channel-header .puente-pico { display: none; } }
#puente-tema-hoja .puente-tema-pico-t { margin-top: 1rem; }
.pa-foto { display: block; max-width: min(100%, 16rem); max-height: 10rem; border-radius: 0.375rem; object-fit: cover; background: var(--cv-fondo-2b2a30); }
.pm-celular .pa-cuerpo { grid-template-columns: minmax(0, 1fr); }
/* Celular: las pestañas se deslizan y la ✕ de cerrar queda siempre a la vista */
.pm-celular .pm-titulo { flex: 1 1 auto; min-width: 0; }
.pm-celular .pm-pestanas { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.pm-celular .pm-pestana { white-space: nowrap; }
.pm-celular .pm-cerrar { flex: 0 0 auto; }

/* La campanita al lado del nombre del servidor (aviso.js, campana.js) */
html body .sidebar-header .brand { display: flex; align-items: center; min-width: 0; }
html body .sidebar-header .brand .brand-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* En el celular, para que el nombre entre entero con la campanita: sin el logo chico (el del club ya
   esta en la columna de la izquierda) y la letra apenas mas chica */
@media (max-width: 768px) {
  html body .sidebar-header .brand .brand-icon { display: none; }
  html body .sidebar-header .brand .brand-text { font-size: 1.25rem; }
  .puente-campana-btn { margin-right: 0.25rem; }
}
.puente-campana-btn { position: relative; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; margin-left: auto; padding: 0; border: 0; border-radius: 0.375rem; background: transparent; color: var(--cv-texto-b5bac1); cursor: pointer; }
.puente-campana-btn:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); }
.puente-campana-n { position: absolute; top: -0.125rem; right: -0.25rem; min-width: 1rem; height: 1rem; padding: 0 0.25rem; box-sizing: border-box; border-radius: 999px; background: var(--cv-fondo-f23f43); color: var(--cv-sobre-acento-ffffff); font-size: 0.6875rem; font-weight: 800; line-height: 1rem; text-align: center; border: 2px solid var(--cv-borde-121214); }
.puente-campana-n[hidden] { display: none; }
.puente-campana-panel { position: fixed; z-index: 100006; width: min(24rem, calc(100vw - 16px)); max-height: min(32rem, calc(100vh - 80px)); display: flex; flex-direction: column; border: 1px solid var(--cv-borde-29292d); border-radius: 0.625rem; background: var(--cv-fondo-1e1e22); color: var(--cv-texto-dbdee1); box-shadow: 0 12px 32px var(--cv-sombra-000000-50); overflow: hidden; }
/* Las monedas del club (aviso.js, monedas.js): la pastilla al lado de la campanita y sus movimientos */
.puente-monedas-btn { flex: 0 0 auto; display: flex; align-items: center; gap: 0.25rem; height: 1.75rem; margin-left: auto; padding: 0 0.5rem 0 0.375rem; border: 0; border-radius: 999px; background: var(--cv-fondo-2b2d31); color: var(--cv-texto-f0c96a); font: inherit; font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.puente-monedas-btn:hover { background: var(--cv-fondo-35373c); }
.puente-monedas-btn + .puente-campana-btn { margin-left: 0.25rem; }
html.puente-invitado #puente-monedas-btn { display: none !important; }
.puente-monedas-panel { position: fixed; z-index: 100006; width: min(22rem, calc(100vw - 16px)); max-height: min(30rem, calc(100vh - 80px)); display: flex; flex-direction: column; border: 1px solid var(--cv-borde-29292d); border-radius: 0.625rem; background: var(--cv-fondo-1e1e22); color: var(--cv-texto-dbdee1); box-shadow: 0 12px 32px var(--cv-sombra-000000-50); overflow: hidden; }
.pmo-cab { padding: 0.875rem 1rem 0.625rem; border-bottom: 1px solid var(--cv-borde-29292d); }
.puente-monedas-panel.pmo-celular { z-index: 100008; inset: 0; width: auto; max-height: none; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top, 0px); }
.pmo-saldo { display: flex; align-items: center; gap: 0.375rem; }
.pmo-saldo svg { width: 1.375rem; height: 1.375rem; }
.pmo-saldo b { font-size: 1.5rem; color: var(--cv-texto-fbfbfb); font-variant-numeric: tabular-nums; }
.pmo-saldo span { color: var(--cv-texto-b5bac1); }
.pmo-nota { margin: 0.375rem 0 0; color: var(--cv-texto-949ba4); font-size: 0.8125rem; line-height: 1.35; }
.pmo-lista { overflow-y: auto; padding: 0.25rem 0; }
.pmo-fila { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 1rem; }
.pmo-fila + .pmo-fila { border-top: 1px solid var(--cv-borde-232327); }
.pmo-tipo { color: var(--cv-texto-f2f3f5); font-size: 0.875rem; }
.pmo-det { color: var(--cv-texto-949ba4); font-size: 0.75rem; }
.pmo-delta { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pmo-delta.mas { color: var(--cv-texto-7ee2a8); } .pmo-delta.menos { color: var(--cv-texto-f0a0a0); }
.pmo-vacio { padding: 1rem; color: var(--cv-texto-949ba4); text-align: center; }
.pmo-bloque { padding: 0.5rem 1rem 0.625rem; border-bottom: 1px solid var(--cv-borde-232327); }
.pmo-bloque-t { color: var(--cv-texto-f2f3f5); font-size: 0.8125rem; font-weight: 700; padding: 0.25rem 0; }
.pmo-movs-t { padding: 0.625rem 1rem 0.125rem; color: var(--cv-texto-b5bac1); }
.pmo-paso { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.25rem 0; font-size: 0.8125rem; color: var(--cv-texto-dbdee1); }
.pmo-paso-c { flex: 0 0 1rem; color: var(--cv-texto-949ba4); }
.pmo-paso-t { flex: 1 1 auto; }
.pmo-paso-n { color: var(--cv-texto-f0c96a); font-weight: 700; font-variant-numeric: tabular-nums; }
.pmo-paso.hecho .pmo-paso-c { color: var(--cv-texto-7ee2a8); }
.pmo-paso.hecho .pmo-paso-t { color: var(--cv-texto-949ba4); text-decoration: line-through; }
.pmo-ganar summary { cursor: pointer; list-style: none; }
.pmo-ganar summary::-webkit-details-marker { display: none; }
.pmo-ganar summary::after { content: ' ▾'; color: var(--cv-texto-949ba4); }
.pmo-ganar[open] summary::after { content: ' ▴'; }
.pmo-ganar-p { margin: 0.25rem 0; color: var(--cv-texto-c9ccd1); font-size: 0.8125rem; line-height: 1.4; }
.pmo-club { background: linear-gradient(135deg, var(--cv-fondo-e0a83a-10), var(--cv-fondo-7850dc-10)); }
.pmo-club-btn { margin-top: 0.375rem; border: 0; border-radius: 0.5rem; padding: 0.4375rem 0.75rem; background: var(--cv-fondo-e0a83a); color: var(--cv-texto-2a1d05); font: inherit; font-size: 0.8125rem; font-weight: 700; cursor: pointer; }
.pmo-club-btn:disabled { background: var(--cv-fondo-3a3940); color: var(--cv-texto-949ba4); cursor: default; }
.pmo-club-auto { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.375rem; color: var(--cv-texto-c9ccd1); font-size: 0.8125rem; cursor: pointer; }
/* En el celular ocupa toda la pantalla, por encima del panel de canales (z-index 100000) */
.puente-campana-panel.pc-celular { z-index: 100008; inset: 0; width: auto; max-height: none; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top, 0px); }
.pc-cab { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-bottom: 1px solid var(--cv-borde-29292d); }
.pc-titulo { font-size: 1rem; font-weight: 700; color: var(--cv-texto-fbfbfb); }
.pc-cerrar { border: 0; background: transparent; color: var(--cv-texto-b5bac1); font-size: 1.125rem; cursor: pointer; padding: 0.25rem 0.5rem; border-radius: 0.375rem; }
.pc-cerrar:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); }
.pc-lista { flex: 1 1 auto; overflow-y: auto; scrollbar-width: thin; }
.pc-item { display: flex; gap: 0.75rem; width: 100%; padding: 0.75rem 1rem; border: 0; border-bottom: 1px solid var(--cv-borde-232226); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pc-item:hover { background: var(--cv-fondo-26252b); }
.pc-item.pc-nueva { background: var(--cv-fondo-5865f2-08); }
.pc-icono { flex: 0 0 auto; font-size: 1.125rem; line-height: 1.4; }
.pc-textos { min-width: 0; display: flex; flex-direction: column; gap: 0.125rem; }
.pc-t1 { font-size: 0.9375rem; font-weight: 600; color: var(--cv-texto-fbfbfb); }
/* (el texto entero: con 2 lineas se cortaban los avisos largos, como el de CV Club) */
.pc-t2 { font-size: 0.875rem; color: var(--cv-texto-b5bac1); line-height: 1.35; overflow-wrap: anywhere; }
.pc-t3 { font-size: 0.75rem; color: var(--cv-texto-80848e); }
.pc-vacio { padding: 2rem 1.25rem; text-align: center; color: var(--cv-texto-80848e); font-size: 0.9375rem; line-height: 1.4; }
/* Celdas de dos lineas (email y "sin confirmar"; @usuario de Discord y su antiguedad) */
.pm-dos { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.pm-dos .pm-n1.pm-correo { font-size: 0.9375rem; font-weight: 500; color: var(--cv-texto-dbdee1); white-space: nowrap; }
.pm-aviso-txt { color: var(--cv-texto-f0c36a); }
.pm-n2 .pm-invitacion { margin-left: 0.375rem; padding: 0 0.375rem; font-size: 0.75rem; }
.pm-item-meta.pm-correo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-fila:not(.pm-encabezado):hover { background: var(--cv-fondo-232228); }
.pm-encabezado { position: sticky; top: 0; z-index: 1; background: var(--cv-fondo-1e1e22); cursor: default; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pm-th { padding: 0; border: 0; background: transparent; color: var(--cv-texto-b5bac1); font: inherit; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; text-align: left; cursor: pointer; white-space: normal; line-height: 1.2; }
.pm-th:hover, .pm-th.actual { color: var(--cv-texto-fbfbfb); }
.pm-th[data-dir]:not([data-dir=""])::after { content: ' ' attr(data-dir); font-size: 0.625rem; }
.pm-c { min-width: 0; font-size: 0.9375rem; color: var(--cv-texto-dbdee1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-c.pm-th { white-space: normal; overflow: visible; text-overflow: clip; font-size: 0.75rem; color: var(--cv-texto-b5bac1); }
.pm-c.pm-th:hover, .pm-c.pm-th.actual { color: var(--cv-texto-fbfbfb); }
.pm-nombre { display: flex; align-items: center; gap: 0.75rem; }
.pm-avatar { position: relative; flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.pm-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pm-punto { position: absolute; right: -0.125rem; bottom: -0.125rem; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--cv-fondo-23a55a); border: 0.1875rem solid var(--cv-borde-1e1e22); }
.pm-nombres { min-width: 0; }
.pm-n1 { font-size: 1rem; font-weight: 600; color: var(--cv-texto-fbfbfb); overflow: hidden; text-overflow: ellipsis; }
.pm-n2 { font-size: 0.8125rem; color: var(--cv-texto-96969e); overflow: hidden; text-overflow: ellipsis; }
.pm-vacio { color: var(--cv-texto-80848e); }
.pm-num { font-variant-numeric: tabular-nums; }
.pm-roles { display: flex; flex-wrap: wrap; gap: 0.25rem; white-space: normal; }
.pm-chip { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.125rem 0.5rem; border-radius: 0.375rem; background: var(--cv-fondo-2b2a30); font-size: 0.8125rem; font-weight: 600; color: var(--cv-texto-dbdee1); }
.pm-invitacion::before { content: '🔗'; font-size: 0.75rem; }
.pm-rol-punto { width: 0.625rem; height: 0.625rem; border-radius: 50%; }
/* Etiquetas de los miembros: cada tipo con su color de fondo; si falta (.falta), el texto en rojo sobre ese mismo fondo */
.pm-senal { padding: 0.125rem 0.5rem; border-radius: 0.375rem; font-size: 0.8125rem; font-weight: 600; background: var(--cv-fondo-2b2a30); color: var(--cv-texto-b5bac1); }
.pm-senal.discord { background: var(--cv-fondo-5865f2-28); color: var(--cv-texto-d4d8fd); }
.pm-senal.email { background: var(--cv-fondo-1abc9c-20); color: var(--cv-texto-8ee6d2); }
.pm-senal.admin { background: var(--cv-fondo-eb459e-20); color: var(--cv-texto-f6b0d6); }
.pm-senal.dospasos { background: var(--cv-fondo-f0b232-18); color: var(--cv-texto-f3cd7a); }
.pm-chip.pm-invitacion { background: var(--cv-fondo-a855f7-20); color: var(--cv-texto-dcc0fc); }
.pm-senal.actividad { background: var(--cv-fondo-00a8fc-18); color: var(--cv-texto-9ed8fd); }
.pm-senal.falta { color: var(--cv-texto-ff7a7d); }
.pm-dos > .pm-senal { align-self: flex-start; margin-top: 0.125rem; font-size: 0.75rem; }
/* "Reenviar mail" (de confirmacion), al lado de "Email sin confirmar" */
.pm-reenviar { padding: 0.125rem 0.5rem; border: 1px solid var(--cv-borde-3f4147); border-radius: 0.375rem; background: transparent; color: var(--cv-texto-dbdee1); font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.pm-reenviar:hover:not(:disabled) { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-ffffff); }
.pm-reenviar:disabled { cursor: default; color: var(--cv-texto-949ba4); }
.pm-reenviar.listo { border-color: var(--cv-borde-1abc9c-50); color: var(--cv-texto-8ee6d2); }
.pm-reenviar.error { border-color: var(--cv-borde-f23f43-50); color: var(--cv-texto-ff7a7d); }
.pm-dos > .pm-reenviar { align-self: flex-start; margin-top: 0.25rem; font-size: 0.75rem; }
.pm-sin { padding: 2rem; text-align: center; color: var(--cv-texto-80848e); }


/* PC: barrita del mensaje y menu del clic derecho como Discord de escritorio (aviso.js) */
@media (hover: hover) and (pointer: fine) {
  /* Arriba a la derecha. Desde Haven 4.31 la suya va abajo (bottom: 2px) o al lado de las reacciones (left, right y
     bottom en el style del elemento, _placeMessageToolbar): con nuestro top quedaba estirada todo el alto del mensaje
     (1/12/2026). Por eso bottom, left y right con !important. */
  html body .msg-toolbar.puente-tb {
    top: -1rem; right: 1rem !important; bottom: auto !important; left: auto !important; gap: 0; padding: 0.125rem; align-items: center;
    background: var(--cv-fondo-1e1e22); border: 1px solid var(--cv-borde-29292d); border-radius: 0.5rem; box-shadow: 0 4px 12px var(--cv-sombra-000000-35);
  }
  html body .messages > :first-child .msg-toolbar.puente-tb { top: auto; bottom: 2px !important; }
  html body .msg-toolbar.puente-tb > :not(.puente-tb-row) { display: none !important; }
  .puente-tb-row { display: flex; align-items: center; }
  html body .msg-toolbar .puente-tb-btn {
    position: relative; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 0.25rem;
    display: flex; align-items: center; justify-content: center; background: transparent; color: var(--cv-texto-b5bac1); cursor: pointer;
  }
  html body .msg-toolbar .puente-tb-btn:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); }
  .puente-tb-btn img { width: 1.375rem; height: 1.375rem; object-fit: contain; pointer-events: none; }
  .puente-tb-emoji { font-size: 1.25rem; line-height: 1; pointer-events: none; }
  .puente-tb-sep { width: 1px; height: 1.25rem; margin: 0 0.25rem; background: var(--cv-fondo-3a3940); }
  /* Cartelito arriba del boton, como en Discord ("Responder") */
  .puente-tb-btn[data-tip]:hover::after {
    content: attr(data-tip); position: absolute; bottom: calc(100% + 0.5rem); left: 50%; transform: translateX(-50%);
    padding: 0.375rem 0.625rem; border-radius: 0.375rem; background: var(--cv-fondo-111214); color: var(--cv-texto-fbfbfb);
    font-size: 0.875rem; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 12px var(--cv-sombra-000000-40); pointer-events: none; z-index: 30;
  }

  html body #message-context-menu.puente-pc-msgmenu {
    min-width: 13.5rem; padding: 0.5rem; border-radius: 0.5rem;
    background: var(--cv-fondo-1e1e22) !important; border: 1px solid var(--cv-borde-29292d); box-shadow: 0 8px 24px var(--cv-sombra-000000-50);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .puente-mm-quick { display: flex; gap: 0.375rem; padding: 0 0 0.5rem; margin-bottom: 0.25rem; border-bottom: 1px solid var(--cv-borde-29292d); }
  .puente-mm-quick-btn {
    flex: 1 1 0; height: 2.75rem; display: flex; align-items: center; justify-content: center; padding: 0;
    border: 0; border-radius: 0.5rem; background: var(--cv-fondo-2b2a30); cursor: pointer;
  }
  .puente-mm-quick-btn:hover { background: var(--cv-fondo-3a3940); }
  .puente-mm-quick-btn img { width: 1.5rem; height: 1.5rem; object-fit: contain; pointer-events: none; }
  .puente-mm-quick-btn .puente-tb-emoji { font-size: 1.375rem; }
  html body .puente-pc-msgmenu .puente-mm-item {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 2rem; padding: 0.375rem 0.5rem;
    border: 0; border-radius: 0.25rem; background: transparent; color: var(--cv-texto-dbdee1); font: inherit; font-size: 0.875rem; font-weight: 500; text-align: left; cursor: pointer;
  }
  html body .puente-pc-msgmenu .puente-mm-item:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); }
  html body .puente-pc-msgmenu .puente-mm-item.danger { color: var(--cv-texto-f23f43); }
  html body .puente-pc-msgmenu .puente-mm-item.danger:hover { background: var(--cv-fondo-f23f43); color: var(--cv-sobre-acento-ffffff); }
  .puente-mm-icon { display: flex; flex-shrink: 0; color: currentColor; opacity: 0.85; }
  .puente-mm-icon svg { width: 1.125rem; height: 1.125rem; }
  .puente-mm-sep { height: 1px; margin: 0.25rem 0.375rem; background: var(--cv-fondo-29292d); }
}

/* ── Vistas previas de enlaces (embeds) como las de Discord ──────────────
   Tarjeta un poco mas clara que el chat, con la franja izquierda gris (o del
   color del sitio, si lo tiene: YouTube, X...), el sitio chiquito y gris, el
   titulo azul en negrita completo, la descripcion en blanco, nada subrayado,
   la imagen al ancho de la tarjeta y sin los botones de tamaño y de plegar. */
html body .message-content .link-preview,
html body .search-result-content .link-preview {
  box-sizing: border-box; width: 100%; max-width: 27rem; margin-top: 0.25rem; padding: 0.5rem 1rem 1rem 0.75rem; gap: 0;
  background: var(--cv-fondo-222126); border: 0; border-left: 4px solid var(--cv-borde-3a3940); border-radius: 0.25rem;
}
html body .message-content .link-preview[style*="--lp-accent"] { border-left-color: var(--lp-accent); }
html body .message-content .link-preview:hover { background: var(--cv-fondo-222126); }
html body .message-content .link-preview .lp-header { margin-top: 0.25rem; }
html body .message-content .link-preview .lp-site {
  font-size: 0.75rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--cv-texto-b5bac1);
}
html body .message-content .link-preview .lp-size,
html body .message-content .link-preview .lp-collapse { display: none !important; }
html body .message-content .link-preview.lp-collapsed .lp-content { display: flex !important; }
html body .message-content .link-preview .lp-content { gap: 0; }
html body .message-content .link-preview .lp-meta, html body .message-content .link-preview .lp-meta * { text-decoration: none !important; }
html body .message-content .link-preview .lp-meta { gap: 0; margin-top: 0.5rem; color: var(--cv-texto-dbdee1); }
html body .message-content .link-preview .link-preview-title {
  font-size: 1rem; font-weight: 600; line-height: 1.375rem; color: var(--cv-texto-00a8fc); white-space: normal; overflow: visible;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
html body .message-content .link-preview .lp-meta:hover .link-preview-title { text-decoration: underline !important; }
html body .message-content .link-preview .lp-text { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.125rem; color: var(--cv-texto-dbdee1); -webkit-line-clamp: 8; }
html body .message-content .link-preview .lp-author { gap: 0.5rem; }
html body .message-content .link-preview .lp-avatar { width: 1.5rem; height: 1.5rem; }
html body .message-content .link-preview .lp-author-name { font-size: 0.875rem; font-weight: 600; color: var(--cv-texto-fbfbfb); }
html body .message-content .link-preview .lp-author + .lp-text { margin-top: 0.5rem; }
html body .message-content .link-preview .lp-handle { font-size: 0.875rem; color: var(--cv-texto-b5bac1); }
html body .message-content .link-preview--rich .lp-media,
html body .message-content .link-preview--rich .lp-video,
html body .message-content .link-preview--rich .link-preview-gallery { max-width: 100% !important; margin-top: 1rem; border-radius: 0.25rem; }
html body .message-content .link-preview--rich .lp-image {
  width: 100%; max-width: 100% !important; height: auto; max-height: 25rem !important; border-radius: 0.25rem; background: transparent; object-fit: cover;
}
html body .message-content .link-preview--rich .lp-video { width: 100%; max-height: 25rem !important; }
html body .message-content .link-preview .link-preview-gallery-img { border-radius: 0.25rem; }
html body .message-content .link-preview .lp-stats { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--cv-texto-b5bac1); }
html body .message-content .link-preview--yt .link-preview-yt { max-width: 100% !important; margin-top: 1rem; border-radius: 0.25rem; overflow: hidden; }
html body .message-content .link-preview--yt .link-preview-yt iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; }
/* Modo cine (el boton de los videos desde Haven 4.31): el reproductor del ancho del chat y no mas alto que la ventana,
   como en Haven. Con los topes de arriba (27rem y 25rem) el boton no hacia nada (1/12/2026). */
html body .message-content .link-preview.media-theater { max-width: none; }
html body .message-content .link-preview--yt.media-theater .link-preview-yt { max-width: min(100%, calc((100vh - 13rem) * 16 / 9)) !important; margin-inline: auto; }
html body .message-content .link-preview--rich.media-theater .lp-video { max-height: calc(100vh - 13rem) !important; }
/* Varias imagenes (tuits con 2 a 4 fotos): altas como en Discord, no una franja */
html body .message-content .link-preview .link-preview-gallery { gap: 0.25rem; }
html body .message-content .link-preview .link-preview-gallery-img { width: 100%; object-fit: cover; }
html body .message-content .link-preview .link-preview-gallery[data-count="2"] .link-preview-gallery-img { height: 18rem; max-height: none; }
html body .message-content .link-preview .link-preview-gallery[data-count="3"] .link-preview-gallery-img,
html body .message-content .link-preview .link-preview-gallery[data-count="4"] .link-preview-gallery-img { height: 9rem; max-height: none; }
html body .message-content .link-preview .link-preview-gallery[data-count="3"] .link-preview-gallery-img:first-child { height: calc(18rem + 0.25rem); }

/* ── Tarjetas de cotizaciones en los mensajes ($UMAC, $BTC, $BLUE, $DÓLAR: aviso.js y cotiza.js) ─────────
   La misma caja que las vistas previas de los enlaces (fondo, franja de la izquierda, ancho y la ✕), con la
   franja, la linea y el cambio en verde si sube y en rojo si baja (siempre con ▲/▼, no solo el color). Los
   botones del periodo van en la linea de la fuente: no suman alto */
html body .puente-cotizas { display: flex; flex-direction: column; gap: 0.25rem; }
html body .puente-cotizas:empty { display: none; }
html body .puente-cotiza {
  position: relative; box-sizing: border-box; width: 100%; max-width: 27rem; margin-top: 0.25rem; padding: 0.5rem 1rem 0.75rem 0.75rem;
  border-left: 4px solid var(--cv-borde-3a3940); border-radius: 0.25rem; background: var(--cv-fondo-222126); color: var(--cv-texto-dbdee1);
  font-size: 0.875rem; line-height: 1.25; white-space: normal; text-align: left; overflow-wrap: anywhere;
}
html body .puente-cotiza.sube { border-left-color: var(--cv-borde-23a55a); }
html body .puente-cotiza.baja { border-left-color: var(--cv-borde-f23f43); }
html body .puente-cotiza.pc-cargando { opacity: 0.6; transition: opacity 0.15s; }
html body .puente-cotiza .pc-sitio { margin-top: 0.25rem; color: var(--cv-texto-b5bac1); font-size: 0.75rem; }
html body .puente-cotiza .pc-titulo { display: block; margin-top: 0.375rem; color: var(--cv-texto-00a8fc); font-size: 1rem; font-weight: 600; line-height: 1.375rem; text-decoration: none !important; }
html body .puente-cotiza a.pc-titulo:hover { text-decoration: underline !important; }
html body .puente-cotiza .pc-titulo b { font-weight: 600; }
html body .puente-cotiza .pc-titulo span { color: var(--cv-texto-dbdee1); font-weight: 400; }
html body .puente-cotiza .pc-precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.125rem 0.625rem; margin-top: 0.25rem; }
html body .puente-cotiza .pc-valor { color: var(--cv-texto-f2f3f5); font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
html body .puente-cotiza .pc-var { font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
html body .puente-cotiza .pc-var small { margin-left: 0.25rem; color: var(--cv-texto-949ba4); font-size: 0.8125rem; font-weight: 400; }
html body .puente-cotiza.sube .pc-var { color: var(--cv-texto-2dc770); }
html body .puente-cotiza.baja .pc-var { color: var(--cv-texto-ff6b6e); }
html body .puente-cotiza .pc-extra { margin-top: 0.125rem; color: var(--cv-texto-b5bac1); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
html body .puente-cotiza .pc-graf { position: relative; height: 5.5rem; margin-top: 0.5rem; }
html body .puente-cotiza .pc-graf svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
html body .puente-cotiza .pc-ref { fill: var(--cv-texto-81828a); font-size: 10px; font-family: inherit; }
html body .puente-cotiza .pc-eje { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.25rem; color: var(--cv-texto-81828a); font-size: 0.6875rem; font-variant-numeric: tabular-nums; }
html body .puente-cotiza .pc-pie { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.375rem; color: var(--cv-texto-949ba4); font-size: 0.75rem; }
html body .puente-cotiza .pc-periodos { display: flex; gap: 0.125rem; }
html body .puente-cotiza .pc-periodos button {
  min-width: 1.75rem; height: 1.375rem; margin: 0; padding: 0 0.375rem; border: 0; border-radius: 0.25rem; background: transparent;
  color: var(--cv-texto-949ba4); font: inherit; font-size: 0.75rem; font-weight: 600; line-height: 1; cursor: pointer;
}
html body .puente-cotiza .pc-periodos button:hover { background: var(--cv-fondo-2e2d33); color: var(--cv-texto-dbdee1); }
html body .puente-cotiza .pc-periodos button.activo { background: var(--cv-fondo-3a3940); color: var(--cv-texto-f2f3f5); }
html body .puente-cotiza .pc-periodos button:focus-visible { outline: 2px solid var(--cv-borde-5865f2); outline-offset: 1px; }
html body .puente-cotiza .pc-fuente { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* $DÓLAR: todas las cotizaciones en una tabla (la franja en gris: hay de todo) */
html body .puente-cotiza .pc-dolares { width: 100%; margin: 0.375rem 0 0; border: 0; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
html body .puente-cotiza .pc-dolares th { padding: 0 0 0.25rem; border: 0; background: none; color: var(--cv-texto-949ba4); font-size: 0.75rem; font-weight: 600; text-align: right; }
html body .puente-cotiza .pc-dolares td { padding: 0.1875rem 0; border: 0; border-top: 1px solid var(--cv-borde-2c2b31); background: none; color: var(--cv-texto-f2f3f5); text-align: right; }
html body .puente-cotiza .pc-dolares td + td, html body .puente-cotiza .pc-dolares th + th { padding-left: 0.75rem; }
html body .puente-cotiza .pc-dolares td:first-child, html body .puente-cotiza .pc-dolares th:first-child { color: var(--cv-texto-dbdee1); font-weight: 600; text-align: left; }
html body .puente-cotiza .pc-dolares td.sube { color: var(--cv-texto-2dc770); font-weight: 600; }
html body .puente-cotiza .pc-dolares td.baja { color: var(--cv-texto-ff6b6e); font-weight: 600; }

/* Candadito en el # de los canales cerrados, como Discord (aviso.js) */
html body .channel-item.puente-cerrado .channel-hash { position: relative; }
html body .channel-item.puente-cerrado .channel-hash::after {
  content: ''; position: absolute; right: -0.125rem; top: 0.125rem; width: 0.625rem; height: 0.6875rem;
  background: currentColor; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 11'%3E%3Cpath d='M5 0a3 3 0 0 0-3 3v1.5H1.5A1 1 0 0 0 .5 5.5v4.5a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V5.5a1 1 0 0 0-1-1H8V3a3 3 0 0 0-3-3Zm-1.6 4.5V3a1.6 1.6 0 1 1 3.2 0v1.5H3.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 11'%3E%3Cpath d='M5 0a3 3 0 0 0-3 3v1.5H1.5A1 1 0 0 0 .5 5.5v4.5a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V5.5a1 1 0 0 0-1-1H8V3a3 3 0 0 0-3-3Zm-1.6 4.5V3a1.6 1.6 0 1 1 3.2 0v1.5H3.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Busqueda como la de Discord (PC, aviso.js) ─────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  /* Fichas de los filtros en la caja ("from: astro") */
  html body #search-container.puente-busca-caja { gap: 0.25rem; padding-left: 0.375rem; }
  .puente-busca-fichas { display: flex; flex: 0 0 auto; max-width: 70%; gap: 0.25rem; overflow: hidden; }
  html body #search-container.puente-busca-caja #search-input { min-width: 3rem; }
  .puente-busca-fichas:empty { display: none; }
  .puente-busca-ficha {
    flex: 0 0 auto; max-width: 12rem; display: inline-flex; align-items: center; gap: 0.1875rem; height: 1.5rem; padding: 0 0.375rem;
    border: 0; border-radius: 0.25rem; background: var(--cv-fondo-3a3940); color: var(--cv-texto-dbdee1); font: inherit; font-size: 0.875rem; cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .puente-busca-ficha b { font-weight: 700; color: var(--cv-texto-fbfbfb); }
  .puente-busca-ficha:hover { background: var(--cv-fondo-4a4950); }
  html body #search-container.puente-busca-caja .puente-busca-fichas:not(:empty) + #search-input { padding-left: 0.25rem !important; }

  /* Encabezado: "N resultados" con Filtros y Ordenar */
  html body #search-panel .search-panel-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; }
  html body #search-panel .search-panel-header #search-panel-close { order: 3; }
  .puente-sr-cabeza { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-width: 0; }
  .puente-sr-total { font-size: 1.125rem; font-weight: 700; color: var(--cv-texto-fbfbfb); white-space: nowrap; }
  .puente-sr-botones { display: flex; gap: 0.375rem; }
  .puente-sr-boton {
    display: inline-flex; align-items: center; gap: 0.375rem; height: 2.125rem; padding: 0 0.75rem; border: 0; border-radius: 0.375rem;
    background: var(--cv-fondo-2b2a30); color: var(--cv-texto-dbdee1); font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  }
  .puente-sr-boton:hover { background: var(--cv-fondo-3a3940); color: var(--cv-texto-fbfbfb); }
  .puente-sr-orden {
    position: fixed; z-index: 100030; min-width: 11rem; padding: 0.375rem; background: var(--cv-fondo-1e1e22); border: 1px solid var(--cv-borde-29292d);
    border-radius: 0.5rem; box-shadow: 0 8px 24px var(--cv-sombra-000000-50);
  }
  .puente-sr-orden-item { display: block; width: 100%; padding: 0.5rem 0.625rem; border: 0; border-radius: 0.25rem; background: transparent; color: var(--cv-texto-dbdee1); font: inherit; font-size: 0.9375rem; text-align: left; cursor: pointer; }
  .puente-sr-orden-item:hover { background: var(--cv-fondo-2e2d32); }
  .puente-sr-orden-item.actual { color: var(--cv-texto-fbfbfb); font-weight: 700; }
  .puente-sr-orden-item.actual::after { content: ' ✓'; color: var(--cv-texto-5865f2); }

  /* Mensajes agrupados por canal, con foto */
  .puente-sr-canal { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; padding: 0.875rem 0.25rem 0.5rem; }
  .puente-sr-canal-nombre { font-size: 1.125rem; font-weight: 700; color: var(--cv-texto-fbfbfb); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .puente-sr-canal-cat { font-size: 0.8125rem; font-weight: 600; color: var(--cv-texto-96969e); white-space: nowrap; }
  .puente-sr-canal-cat::before { content: '📁 '; filter: grayscale(1); }
  html body #search-panel .search-result-item.puente-sr { position: relative; padding: 0.75rem 0.875rem 0.875rem 4rem; }
  .puente-sr-avatar {
    position: absolute; left: 0.875rem; top: 0.75rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; overflow: hidden;
    background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); display: flex; align-items: center; justify-content: center; font-weight: 700;
  }
  .puente-sr-avatar img { width: 100%; height: 100%; object-fit: cover; }
  html body #search-panel .search-result-item.puente-sr .search-result-content .link-preview { max-width: 100%; }

  /* Paginas numeradas */
  html body #search-panel-pager.puente-sr-paginas { justify-content: center; padding: 0.625rem 0.75rem; border-top: 1px solid var(--cv-borde-29292d); }
  html body #search-panel-pager.puente-sr-paginas > :not(.puente-sr-nums) { display: none !important; }
  .puente-sr-nums { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; justify-content: center; }
  .puente-sr-num {
    min-width: 2.125rem; height: 2.125rem; padding: 0 0.5rem; border: 0; border-radius: 0.375rem; background: transparent;
    color: var(--cv-texto-dbdee1); font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
  }
  .puente-sr-num:hover:not(:disabled) { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); }
  .puente-sr-num.actual { background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); border-radius: 50%; }
  .puente-sr-num:disabled:not(.actual) { opacity: 0.4; cursor: default; }
  .puente-sr-puntos { padding: 0 0.25rem; color: var(--cv-texto-96969e); }
}

/* ── Pantallas tactiles medianas (por ejemplo un Galaxy Z Fold abierto, ~600-768px) ──
   Haven solo acomoda el menu de canales y la barra de escribir para celulares
   de hasta 480px; entre 481 y 768 el menu quedaba de 280px (el nombre del
   servidor partido en dos y el propio cortado) y la barra se partia en tres
   filas. Se extiende lo mismo que en el celular. En celulares comunes no cambia
   nada (85% de la pantalla sigue siendo menos que el tope). */
@media (max-width: 768px) {
  html body .sidebar { width: min(85vw, 25rem) !important; min-width: min(85vw, 25rem) !important; }
  html body .right-sidebar { width: min(85vw, 25rem); min-width: min(85vw, 25rem); }
  html body .mobile-server-dropdown { display: none !important; }
  html body #message-input-area { flex-wrap: nowrap !important; }
  html body #message-input { width: auto !important; flex: 1 1 0 !important; min-width: 0 !important; }
  html body #message-input-area .input-actions-box:not(.open) { flex: 0 0 auto; }
  /* El boton GIF con el icono de Discord, como en la PC */
  html body #message-input-area .input-actions-box:not(.open) > #gif-btn {
    order: -1; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important;
    width: 2.75rem !important; min-width: 2.75rem; height: 2.75rem !important; color: var(--cv-texto-b5bac1); display: inline-flex; align-items: center; justify-content: center;
  }
  html body #message-input-area .input-actions-box:not(.open) > #gif-btn > span {
    display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.625rem; box-sizing: border-box;
    border-radius: 0.3125rem; background: var(--cv-fondo-b5bac1); color: var(--cv-texto-1a191e); font-size: 0.75rem; font-weight: 800; line-height: 1; letter-spacing: 0;
  }
}

/* Encabezado del canal en ventanas de PC angostas: antes nada se achicaba y el
   buscador quedaba cortado a la derecha (y el nombre del canal desaparecia).
   Ahora, como en Discord: el nombre se acorta con "…", el buscador se angosta
   hasta un minimo, "Unirse al chat de voz" se acorta (esta tambien en el panel
   de la derecha) y el aviso de actualizacion queda en el puntito (el texto se
   ve al pasar el mouse). */
@media (min-width: 769px) {
  html body header.channel-header { min-width: 0; overflow: hidden; }
  html body header.channel-header > .channel-info { flex: 0 1 auto; min-width: 4.5rem; max-width: 18rem; }
  html body header.channel-header #channel-header-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html body header.channel-header > #header-actions-box { flex-shrink: 0; }
  html body header.channel-header > .voice-controls { flex: 0 1 auto; min-width: 2.75rem; }
  html body header.channel-header #voice-join-btn { min-width: 0; max-width: 100%; overflow: hidden; }
  html body header.channel-header #voice-join-btn > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html body #search-container.puente-busca-caja { flex: 0 1 15rem; min-width: 10rem; }
  html body #search-container.puente-busca-caja #search-input { text-overflow: ellipsis; white-space: nowrap; }
  html body #search-container.puente-busca-caja.enfocada, html body #search-container.puente-busca-caja.con-texto { flex-basis: 18rem; }
  html body header.channel-header > .update-banner { flex: 0 0 auto; }
}
@media (min-width: 769px) and (max-width: 1500px) {
  html body header.channel-header > .update-banner { padding: 0.375rem; gap: 0; }
  html body header.channel-header > .update-banner .update-text { display: none; }
}
@media (min-width: 769px) and (max-width: 1250px) {
  /* El boton de unirse a la voz esta tambien en el panel de la derecha; si ya
     estas en la llamada, los botones de silenciar y colgar siguen a la vista */
  html body header.channel-header > .voice-controls > #voice-join-btn { display: none !important; }
  html body header.channel-header > .voice-controls { min-width: 0; }
}
@media (min-width: 769px) and (max-width: 1100px) {
  html body #search-container.puente-busca-caja { min-width: 7.5rem; }
  html body header.channel-header > .channel-info { min-width: 3.5rem; }
}
@media (min-width: 769px) and (max-width: 1050px) {
  /* Muy angosto (con la lista de canales y la de miembros abiertas): fuera lo de admins */
  html body header.channel-header > .update-banner, html body #move-select-btn { display: none !important; }
  html body #search-container.puente-busca-caja { min-width: 6.5rem; margin-left: 0.5rem; }
  html body header.channel-header > .channel-info { min-width: 3rem; }
}

/* Enlaces a mensajes y canales ("#canal › mensaje"), como las menciones de Discord (aviso.js) */
html body a.puente-enlace-msj {
  display: inline; padding: 0 0.125rem; border-radius: 0.1875rem; background: var(--cv-fondo-5865f2-30); color: var(--cv-texto-c9cdfb) !important;
  font-weight: 500; text-decoration: none !important; cursor: pointer; transition: background 0.1s ease;
}
html body a.puente-enlace-msj:hover { background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff) !important; }
/* Y debajo, un pedacito de ese canal o de alrededor del mensaje, como una vista previa (aviso.js) */
html body .puente-vista-chat {
  box-sizing: border-box; width: 100%; max-width: 30rem; margin-top: 0.25rem; padding: 0.5rem 0.75rem 0.625rem;
  background: var(--cv-fondo-222126); border-left: 4px solid var(--cv-borde-ee2d6f); border-radius: 0.25rem; cursor: pointer;
}
html body .puente-vista-chat:hover { background: var(--cv-fondo-26252b); }
html body .puente-vista-cab { font-size: 0.75rem; font-weight: 600; color: var(--cv-texto-b5bac1); margin-bottom: 0.375rem; }
html body .puente-vista-fila { display: flex; gap: 0.5rem; padding: 0.25rem 0.25rem; border-radius: 0.25rem; }
html body .puente-vista-fila.marcado { background: var(--cv-fondo-ee2d6f-12); }
html body .puente-vista-foto {
  flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; object-fit: cover; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff);
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; margin-top: 0.125rem;
}
html body .puente-vista-der { min-width: 0; flex: 1; }
html body .puente-vista-quien { font-size: 0.8125rem; line-height: 1.2; }
html body .puente-vista-quien b { color: var(--cv-texto-f2f3f5); font-weight: 600; }
html body .puente-vista-quien span { color: var(--cv-texto-949ba4); font-size: 0.6875rem; }
html body .puente-vista-texto {
  font-size: 0.875rem; line-height: 1.3; color: var(--cv-texto-dbdee1); overflow: hidden; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
/* El mensaje enlazado solo y entero, con los emojis del club (aviso.js) */
/* El espectador en el chat de la partida (aviso.js: espChat): sus mensajes apagados y en italica, los pedidos
   para los que juegan y el boton para pedir participar */
html body .puente-jg .jg-msg.esp { color: var(--cv-texto-8e9297); font-style: italic; }
html body .puente-jg .jg-msg.esp b { color: var(--cv-texto-a3a6ad) !important; font-weight: 600; }
html body .puente-jg .jg-chat-pedidos:empty { display: none; }
html body .puente-jg .jg-chat-pedido { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; padding: 0.375rem 0.5rem; border-radius: 0.5rem; background: var(--cv-fondo-2b2d31); margin-bottom: 0.375rem; }
html body .puente-jg .jg-chat-pedido-t { flex: 1 1 10rem; font-size: 0.875rem; color: var(--cv-texto-dbdee1); }
html body .puente-jg .jg-chat-pedido .jg-btn { min-height: 2rem; padding: 0 0.75rem; font-size: 0.8125rem; }
html body .puente-jg .jg-chat-pedir { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 0.25rem 0; }
html body .puente-jg .jg-chat-pedir-t { font-size: 0.875rem; color: var(--cv-texto-b5bac1); }
/* El que mira una partida (aviso.js: cartelMirando) */
html body .puente-jg .jg-mirando { margin: 0 auto 0.5rem; padding: 0.375rem 0.75rem; border-radius: 0.5rem; background: var(--cv-fondo-2b2d31); color: var(--cv-texto-dbdee1); font-size: 0.875rem; text-align: center; }
/* El zumbido del Pool cuando no estas en la mesa: la pantalla tiembla un momento (aviso.js) */
html body.puente-zumbido, html body .puente-jg.puente-zumbido { animation: puente-zumbido 0.6s linear; }
html body .puente-jg .jg-chat-form .jg-zumbido { flex: none; min-height: 2.5rem; padding: 0 0.75rem; font-size: 1.125rem; background: var(--cv-fondo-2b2d31); color: var(--cv-texto-f2f3f5); }
html body .puente-jg .jg-chat-form .jg-zumbido:hover { background: var(--cv-fondo-3a3c42); }
@keyframes puente-zumbido { 0%, 100% { transform: none; } 20% { transform: translate(-5px, 2px); } 40% { transform: translate(5px, -2px); } 60% { transform: translate(-4px, 1px); } 80% { transform: translate(3px, -1px); } }
html body .puente-vista-texto .puente-vista-emoji { width: 1.25rem; height: 1.25rem; object-fit: contain; vertical-align: -0.3em; margin: 0 0.0625rem; }
html body .puente-vista-solo .puente-vista-texto { display: block; -webkit-line-clamp: unset; overflow: visible; }
/* El de un tema del foro: el titulo del tema arriba y cuantas respuestas tiene abajo */
html body .puente-vista-tema { font-size: 1rem; font-weight: 700; line-height: 1.25; color: var(--cv-texto-f2f3f5); margin: -0.125rem 0 0.375rem; overflow-wrap: anywhere; }
html body .puente-vista-foro:hover .puente-vista-tema { text-decoration: underline; }
html body .puente-vista-pie { font-size: 0.75rem; font-weight: 600; color: var(--cv-texto-ee2d6f); margin-top: 0.375rem; }
html body .puente-vista-imagen { display: block; max-width: 10rem; max-height: 6rem; margin-top: 0.25rem; border-radius: 0.25rem; object-fit: cover; }

/* Sin el cartel de Haven de "Codigos de recuperacion de cuenta" (aviso.js; esto por si acaso) */
html body .recovery-notice-overlay { display: none !important; }

/* Vistas previas con el embed de Discord, armadas como en Discord (aviso.js, puente-embeds) */
.puente-embeds { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.25rem; }
.puente-embed {
  display: flex; gap: 1rem; box-sizing: border-box; width: fit-content; max-width: min(27rem, 100%);
  padding: 0.125rem 1rem 1rem 0.75rem; background: var(--cv-fondo-222126); border-left: 4px solid var(--pe-color, var(--cv-borde-3a3940)); border-radius: 0.25rem;
}
.puente-embed .pe-body { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.puente-embed a { text-decoration: none; }
.puente-embed a:hover { text-decoration: underline; }
.puente-embed .pe-provider { margin-top: 0.5rem; font-size: 0.75rem; line-height: 1rem; color: var(--cv-texto-b5bac1); }
.puente-embed .pe-author { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; min-width: 0; }
.puente-embed .pe-author-icon { width: 1.5rem; height: 1.5rem; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.puente-embed .pe-author-name { font-size: 0.875rem; font-weight: 600; line-height: 1.375rem; color: var(--cv-texto-f2f3f5); overflow-wrap: anywhere; }
.puente-embed .pe-title { margin-top: 0.5rem; font-size: 1rem; font-weight: 600; line-height: 1.375rem; color: var(--cv-texto-00a8fc); overflow-wrap: anywhere; }
.puente-embed span.pe-title { color: var(--cv-texto-f2f3f5); }
.puente-embed .pe-desc { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.125rem; color: var(--cv-texto-dbdee1); overflow-wrap: anywhere; white-space: normal; }
.puente-embed .pe-desc a, .puente-embed .pe-field-value a { color: var(--cv-texto-00a8fc); }
.puente-embed .pe-desc code, .puente-embed .pe-field-value code { padding: 0 0.2em; border-radius: 0.25rem; background: var(--cv-fondo-2b2a30); font-size: 0.8125rem; }
.puente-embed .pe-quote { display: block; margin: 0.125rem 0; padding-left: 0.75rem; border-left: 4px solid var(--cv-borde-4e5058); }
.puente-embed .pe-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.5rem; }
.puente-embed .pe-field { grid-column: 1 / -1; min-width: 0; }
.puente-embed .pe-field.inline { grid-column: auto; }
.puente-embed .pe-field-name { margin-bottom: 0.125rem; font-size: 0.875rem; font-weight: 600; color: var(--cv-texto-f2f3f5); }
.puente-embed .pe-field-value { font-size: 0.875rem; line-height: 1.125rem; color: var(--cv-texto-dbdee1); }
.puente-embed .pe-images { display: grid; gap: 0.25rem; margin-top: 1rem; border-radius: 0.25rem; overflow: hidden; }
.puente-embed .pe-images.pe-grid-2, .puente-embed .pe-images.pe-grid-3, .puente-embed .pe-images.pe-grid-4 { grid-template-columns: 1fr 1fr; width: min(25rem, 100%); }
.puente-embed .pe-images.pe-grid-3 .pe-image:first-child { grid-row: span 2; }
.puente-embed .pe-image { display: block; max-width: 100%; height: auto; border-radius: 0.25rem; cursor: pointer; }
.puente-embed .pe-images[class*="pe-grid-"] .pe-image { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0; }
.puente-embed .pe-thumb { flex: 0 0 auto; width: 5rem; height: 5rem; margin-top: 0.5rem; object-fit: contain; border-radius: 0.25rem; cursor: pointer; }
.puente-embed .pe-video { position: relative; width: min(25rem, 100%); margin-top: 1rem; border-radius: 0.25rem; overflow: hidden; background: var(--cv-fondo-000000); cursor: pointer; }
.puente-embed .pe-video > img, .puente-embed .pe-video > iframe, .puente-embed .pe-video > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.puente-embed .pe-video > video { object-fit: contain; }
/* El boton de pantalla completa, siempre a mano (aviso.js) */
.puente-embed .pe-video > .pe-grande {
  position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; background: var(--cv-fondo-000000-60); color: var(--cv-texto-ffffff); cursor: pointer;
}
.puente-embed .pe-video > .pe-grande:hover { background: var(--cv-fondo-000000-85); }
/* Sin pantalla completa del sistema (la app de Android): el video tapa toda la ventana */
.puente-embed .pe-video.pe-fijo { position: fixed; inset: 0; z-index: 100050; width: 100% !important; height: 100%; margin: 0; border-radius: 0; aspect-ratio: auto !important; }
.puente-embed .pe-video.pe-fijo > .pe-grande { top: calc(0.75rem + env(safe-area-inset-top, 0px)); right: 0.75rem; width: 2.5rem; height: 2.5rem; }
.puente-embed .pe-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; padding: 0; border: 0; border-radius: 50%; background: var(--cv-fondo-000000-60); color: var(--cv-texto-ffffff); cursor: pointer;
}
.puente-embed .pe-video:hover .pe-play { background: var(--cv-fondo-000000-80); }
.puente-embed .pe-footer { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.75rem; line-height: 1rem; color: var(--cv-texto-b5bac1); }
.puente-embed .pe-footer-icon { width: 1.25rem; height: 1.25rem; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.puente-embed-media img, .puente-embed-media video { display: block; max-width: min(25rem, 100%); max-height: 18.75rem; height: auto; border-radius: 0.25rem; cursor: pointer; }
/* Por encima de las reglas de Haven para los enlaces de los mensajes */
html body .message-content .puente-embed a, html body .thread-msg-content .puente-embed a { text-decoration: none !important; }
html body .message-content .puente-embed a:hover, html body .thread-msg-content .puente-embed a:hover { text-decoration: underline !important; }
html body .puente-embed .pe-provider { color: var(--cv-texto-b5bac1) !important; }
html body .puente-embed .pe-author-name { color: var(--cv-texto-f2f3f5) !important; }
html body .puente-embed a.pe-title { color: var(--cv-texto-00a8fc) !important; }
html body .puente-embed span.pe-title { color: var(--cv-texto-f2f3f5) !important; }
html body .puente-embed .pe-desc a, html body .puente-embed .pe-field-value a { color: var(--cv-texto-00a8fc) !important; }

/* Descripcion del canal en el celular, como en la app de Discord (aviso.js):
   una linea gris debajo del nombre, en vez de la barra con la flechita. Al
   tocarla se abre una hoja desde abajo con la descripcion entera. */
header.channel-header .puente-tema { display: none; }
@media (max-width: 768px) {
  html body #channel-topic-bar { display: none !important; }
  html body header.channel-header > .channel-info { display: flex; flex-direction: column; justify-content: center; min-width: 0; flex: 1 1 auto; overflow: hidden; }
  html body header.channel-header > .channel-info.puente-con-tema { cursor: pointer; }
  html body header.channel-header #channel-header-name { min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
  html body header.channel-header .puente-tema {
    display: block; min-width: 0; max-width: 100%; margin-top: 1px;
    font-size: 0.75rem; line-height: 1.2; font-weight: 500; color: var(--cv-texto-949ba4);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  html body header.channel-header .puente-tema[hidden] { display: none; }
}
#puente-tema-fondo {
  position: fixed; inset: 0; z-index: 99998;
  background: var(--cv-fondo-000000-60);
  animation: puente-fade 0.14s ease-out;
}
#puente-tema-hoja {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999;
  width: 100%; max-width: 37.5rem; max-height: 75vh; margin: 0 auto;
  padding: 0.5rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain;
  background: var(--cv-fondo-252429); color: var(--cv-texto-dbdee1);
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -8px 32px var(--cv-sombra-000000-45);
  transition: transform 0.2s ease;
  animation: puente-sheet-up 0.16s cubic-bezier(0.2, 0.9, 0.3, 1);
}
#puente-tema-hoja .puente-tema-titulo { font-size: 1.25rem; font-weight: 700; color: var(--cv-texto-f2f3f5); margin: 0.25rem 0 1rem; overflow-wrap: anywhere; }
#puente-tema-hoja .puente-tema-etiqueta { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--cv-texto-949ba4); margin-bottom: 0.375rem; }
#puente-tema-hoja .puente-tema-texto { background: var(--cv-fondo-2e2d33); border-radius: 0.75rem; padding: 0.875rem 1rem; font-size: 1rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
#puente-tema-hoja .puente-tema-texto.vacio { color: var(--cv-texto-949ba4); }
#puente-tema-hoja .puente-tema-texto a { color: var(--cv-texto-00a8fc); }
#puente-tema-hoja .puente-tema-editar {
  display: block; width: 100%; margin-top: 0.875rem; padding: 0.875rem 1rem;
  border: 0; border-radius: 0.75rem; background: var(--cv-fondo-2e2d33); color: var(--cv-texto-f2f3f5);
  font: inherit; font-size: 1rem; font-weight: 600; text-align: left; cursor: pointer;
}
#puente-tema-hoja .puente-tema-editar:active { background: var(--cv-fondo-3a3940); }

/* Pagina "Miembros" en el celular: pantalla completa con una lista (aviso.js) */
html body .puente-miembros.pm-celular { left: 0 !important; z-index: 100005; padding-top: env(safe-area-inset-top, 0px); }
.pm-celular .pm-head { height: 3.25rem; padding: 0 0.75rem 0 1rem; }
.pm-celular .pm-cerrar { padding: 0.5rem; }
.pm-celular .pm-card { margin: 0; border: 0; border-radius: 0; background: var(--cv-fondo-1a1a1e); }
.pm-celular .pm-bar { flex-wrap: wrap; gap: 0.625rem; padding: 0.75rem 1rem; }
.pm-celular .pm-sub { width: 100%; font-size: 1rem; }
.pm-celular .pm-buscar { flex: 1 1 100%; width: 100%; height: 2.75rem; font-size: 1rem; border-radius: 0.5rem; }
.pm-celular .pm-orden { flex: 1 1 100%; height: 2.75rem; padding: 0 0.75rem; border: 1px solid var(--cv-borde-2e2d32); border-radius: 0.5rem; background: var(--cv-fondo-121214); color: var(--cv-texto-dbdee1); font: inherit; font-size: 1rem; }
.pm-celular .pm-encabezado { display: none; }
.pm-celular .pm-tabla { overflow-x: hidden; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom, 0px); }
.pm-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--cv-borde-232226); cursor: pointer; }
.pm-item:active { background: var(--cv-fondo-232228); }
.pm-item .pm-avatar { margin-top: 0.125rem; }
.pm-item-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.pm-item-nombres { display: flex; align-items: baseline; gap: 0.5rem; min-width: 0; }
.pm-item-nombres .pm-n1 { flex: 0 1 auto; min-width: 0; white-space: nowrap; }
.pm-item-nombres .pm-n2 { flex: 0 1 auto; min-width: 0; white-space: nowrap; }
.pm-item-meta { font-size: 0.8125rem; color: var(--cv-texto-96969e); line-height: 1.3; }
.pm-item .pm-roles { margin-top: 0.125rem; }

/* Menus y hojas de pantallas tactiles: como en Discord, no se selecciona texto
   (al mantener apretado un mensaje, el dedo quedaba sobre el menu recien abierto
   y el navegador marcaba la palabra de abajo). Los buscadores siguen normales. */
html #message-context-menu.puente-sheet, html body #user-context-menu.puente-user-sheet, .puente-react-picker,
.puente-who-sheet, .puente-adjuntar, #puente-sheet-backdrop, #puente-react-backdrop, #puente-adjuntar-fondo {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.puente-react-picker input, .puente-who-sheet input { -webkit-user-select: text; user-select: text; }

/* ── Como en Discord: citas, etiqueta APP, bienvenida del canal (aviso.js) ── */
html body .chat-blockquote {
  margin: 0.125rem 0; padding: 0 0.5rem 0 0.75rem; border: 0; border-left: 4px solid var(--cv-borde-4e5058); border-radius: 4px;
  background: transparent !important; font-style: normal !important; color: inherit;
}
html body .chat-blockquote .chat-blockquote-body { font-style: normal !important; background: transparent !important; padding: 0; }
html body .discord-badge.puente-app {
  border: 0 !important; background: var(--cv-fondo-5865f2) !important; color: var(--cv-sobre-acento-ffffff) !important;
  font-weight: 700; letter-spacing: 0.02em; border-radius: 0.25rem;
}
.puente-inicio { padding: 1.5rem 1rem 1rem; }
.puente-inicio .pi-numeral {
  width: 4.25rem; height: 4.25rem; border-radius: 50%; background: var(--cv-fondo-2e2d32); color: var(--cv-texto-f2f3f5);
  display: flex; align-items: center; justify-content: center; font-size: 2.75rem; font-weight: 400; margin-bottom: 0.75rem;
}
.puente-inicio .pi-titulo { font-size: 1.75rem; line-height: 1.2; font-weight: 800; color: var(--cv-texto-f2f3f5); margin-bottom: 0.5rem; overflow-wrap: anywhere; }
.puente-inicio .pi-texto { font-size: 1rem; color: var(--cv-texto-b5bac1); }
@media (min-width: 769px) { .puente-inicio { padding: 1.5rem 1rem 0.5rem; } .puente-inicio .pi-titulo { font-size: 2rem; } }

/* Boton gris para agregar otra reaccion (pantallas tactiles) */
html body .reactions-row .puente-mas-reaccion {
  display: inline-flex; align-items: center; justify-content: center; height: 1.875rem; min-width: 2.25rem; padding: 0 0.5rem;
  border: 0; border-radius: 0.5rem; background: var(--cv-fondo-343338); color: var(--cv-texto-b5bac1); cursor: pointer; vertical-align: top;
}
html body .reactions-row .puente-mas-reaccion:active { background: var(--cv-fondo-3f3e44); }

/* ── Celular: encabezado como el de la app de Discord ── */
@media (max-width: 768px) {
  html body header.channel-header .puente-tema { display: none !important; }
  html body header.channel-header > .channel-info { align-items: flex-start !important; text-align: left !important; cursor: pointer; }
  html body header.channel-header #channel-header-name { font-size: 1.1875rem !important; font-weight: 700 !important; }
  html.puente-con-canal body header.channel-header #channel-header-name::after { content: " \203A"; color: var(--cv-texto-949ba4); font-weight: 400; }
  html body #mobile-users-btn { display: none !important; }
  /* Fijados, multimedia, hilos y buscar: en la lupa, como en Discord */
  html body #header-actions-box > :is(#channel-code-display, #copy-code-btn, #channel-code-settings-btn, #search-toggle-btn, #pinned-toggle-btn, #gallery-toggle-btn, #threads-toggle-btn, #move-select-btn, .header-actions-divider) { display: none !important; }
  html body #mobile-menu-btn { color: var(--cv-texto-b5bac1) !important; }
  html body #puente-lupa {
    display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: var(--cv-texto-b5bac1); cursor: pointer;
  }
  html body #puente-lupa:active { background: var(--cv-fondo-2e2d32); }
}
@media (min-width: 769px) { #puente-lupa { display: none !important; } }

/* ── Celular: la pantalla de la lupa (buscador y pestañas, como Discord) ── */
.puente-lupa-pagina {
  position: fixed; inset: 0; z-index: 100005; display: flex; flex-direction: column;
  background: var(--cv-fondo-1a191e); color: var(--cv-texto-dbdee1); animation: puente-fade 0.12s ease-out;
  padding-top: env(safe-area-inset-top, 0px);
}
.puente-lupa-pagina .pl-cabeza { display: flex; align-items: center; gap: 0.25rem; padding: 0.75rem 0.75rem 0.5rem 0.25rem; }
.puente-lupa-pagina .pl-atras { flex: 0 0 2.75rem; height: 2.75rem; border: 0; background: transparent; color: var(--cv-texto-b5bac1); display: flex; align-items: center; justify-content: center; }
.puente-lupa-pagina .pl-campo {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 0.5rem; height: 3rem; padding: 0 0.875rem;
  border-radius: 0.75rem; background: var(--cv-fondo-111114); border: 1px solid var(--cv-borde-2e2d32); color: var(--cv-texto-949ba4);
}
.puente-lupa-pagina .pl-chip {
  flex: 0 0 auto; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 0.25rem 0.625rem; border: 0; border-radius: 0.375rem; background: var(--cv-fondo-2e2d32); color: var(--cv-texto-f2f3f5); font: inherit; font-size: 0.9375rem;
}
.puente-lupa-pagina .pl-chip-en { color: var(--cv-texto-b5bac1); }
.puente-lupa-pagina .pl-input {
  flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--cv-texto-f2f3f5); font: inherit; font-size: 1rem;
}
.puente-lupa-pagina .pl-tabs { display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none; padding: 0 1rem; border-bottom: 1px solid var(--cv-borde-2e2d32); flex-shrink: 0; }
.puente-lupa-pagina .pl-tabs[hidden] { display: none; }
.puente-lupa-pagina .pl-tab {
  flex: 0 0 auto; padding: 0.75rem 0 0.625rem; border: 0; border-bottom: 3px solid transparent; background: transparent;
  color: var(--cv-texto-949ba4); font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
}
.puente-lupa-pagina .pl-tab.activa { color: var(--cv-texto-949cf7); border-bottom-color: var(--cv-borde-5865f2); }
.puente-lupa-pagina .pl-contenido { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); }
.puente-lupa-pagina .pl-estado { padding: 1.5rem 0; text-align: center; color: var(--cv-texto-949ba4); }
.puente-lupa-pagina .pl-estado:empty { display: none; }
.puente-lupa-pagina .pl-invitar {
  display: flex; align-items: center; gap: 1rem; width: 100%; min-height: 3.5rem; margin-bottom: 1.5rem; padding: 0 1rem;
  border: 0; border-radius: 1rem; background: var(--cv-fondo-2e2d32); color: var(--cv-texto-f2f3f5); font: inherit; font-size: 1rem; font-weight: 500; text-align: left;
}
.puente-lupa-pagina .pl-invitar span { flex: 1 1 auto; }
.puente-lupa-pagina .pl-invitar svg:last-child { color: var(--cv-texto-949ba4); }
.puente-lupa-pagina .pl-lista { display: flex; flex-direction: column; border-radius: 1rem; background: var(--cv-fondo-2e2d32); overflow: hidden; }
.puente-lupa-pagina .pl-lista:empty { display: none; }
.puente-lupa-pagina .pl-fila {
  display: flex; gap: 0.75rem; width: 100%; padding: 0.75rem 1rem; border: 0; background: transparent; color: inherit; font: inherit; text-align: left;
}
.puente-lupa-pagina .pl-fila + .pl-fila { box-shadow: inset 0 1px 0 var(--cv-sombra-3b3a3f); }
.puente-lupa-pagina .pl-fila:active { background: var(--cv-fondo-36353b); }
.puente-lupa-pagina .pl-avatar {
  flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; overflow: hidden; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.puente-lupa-pagina .pl-avatar img { width: 100%; height: 100%; object-fit: cover; }
.puente-lupa-pagina .pl-cuerpo { flex: 1 1 auto; min-width: 0; }
.puente-lupa-pagina .pl-arriba { display: flex; align-items: baseline; gap: 0.5rem; }
.puente-lupa-pagina .pl-nombre { font-weight: 600; color: var(--cv-texto-f2f3f5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.puente-lupa-pagina .pl-fecha { flex-shrink: 0; font-size: 0.75rem; color: var(--cv-texto-949ba4); }
.puente-lupa-pagina .pl-texto { margin-top: 0.125rem; color: var(--cv-texto-dbdee1); font-size: 0.9375rem; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.puente-lupa-pagina .pl-hilo { margin-top: 0.25rem; font-size: 0.8125rem; color: var(--cv-texto-00a8fc); font-weight: 600; }
.puente-lupa-pagina .pl-grilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.25rem; }
.puente-lupa-pagina .pl-foto { aspect-ratio: 1; padding: 0; border: 0; border-radius: 0.375rem; overflow: hidden; background: var(--cv-fondo-2e2d32); }
.puente-lupa-pagina .pl-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* La lista de miembros de Haven, adentro de la pestaña Miembros */
.puente-lupa-pagina #online-users { display: block !important; }
.puente-lupa-pagina #online-users .user-group-label {
  padding: 0 0.25rem 0.5rem; font-size: 1rem !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--cv-texto-b5bac1) !important;
}
.puente-lupa-pagina #online-users .user-group-label ~ .user-group-label { margin-top: 1.25rem; }
.puente-lupa-pagina #online-users .user-item { min-height: 3.5rem !important; padding: 0.5rem 1rem !important; border-radius: 0 !important; background: var(--cv-fondo-2e2d32); gap: 0.875rem !important; }
.puente-lupa-pagina #online-users .user-item .user-item-avatar, .puente-lupa-pagina #online-users .user-item .user-avatar-wrapper { width: 2.5rem !important; height: 2.5rem !important; }
.puente-lupa-pagina #online-users .user-item-name, .puente-lupa-pagina #online-users .user-item .username { font-size: 1.0625rem !important; }
.puente-lupa-pagina .pl-hilo-icono { background: var(--cv-fondo-3b3a40); color: var(--cv-texto-dbdee1); }
.puente-lupa-pagina .pl-hilo-nombre { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 0.125rem; }

/* Pagina Miembros: boton para descargar los emails (aviso.js) */

/* ── Marketplace (aviso.js, mercado.js) ── */
.puente-mk-btn { position: relative; }
#server-bar .puente-mk-btn { display: flex; align-items: center; justify-content: center; color: var(--cv-texto-dbdee1); background: var(--cv-fondo-2b2a30); cursor: pointer; border: 0; }
#server-bar .puente-mk-btn:hover, #server-bar .puente-mk-btn.active { background: var(--cv-fondo-23a55a); color: var(--cv-sobre-acento-ffffff); border-radius: 16px; }
#puente-rail .puente-mk-btn { color: var(--cv-texto-dbdee1); }
#puente-rail .puente-mk-btn.active { background: var(--cv-fondo-23a55a); color: var(--cv-sobre-acento-ffffff); }
.puente-mk {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100004; overflow-y: auto; overscroll-behavior: contain;
  background: var(--cv-fondo-1a191e); color: var(--cv-texto-dbdee1); padding-top: env(safe-area-inset-top, 0px); animation: puente-fade 0.12s ease-out;
}
.puente-mk .mk-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 0.5rem; height: 3.5rem; padding: 0 0.75rem 0 0.25rem;
  background: var(--cv-fondo-1a191e); border-bottom: 1px solid var(--cv-borde-2e2d32);
}
.puente-mk .mk-titulo { flex: 1 1 auto; min-width: 0; font-size: 1.125rem; font-weight: 700; color: var(--cv-texto-f2f3f5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.puente-mk .mk-icono { flex: 0 0 auto; width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--cv-texto-b5bac1); cursor: pointer; }
.puente-mk .mk-icono:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-ffffff); }
.puente-mk .mk-cuerpo { max-width: 62rem; margin: 0 auto; padding: 1rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
.puente-mk .mk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1rem;
  border: 0; border-radius: 0.625rem; background: var(--cv-fondo-2e2d32); color: var(--cv-texto-f2f3f5); font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
}
.puente-mk .mk-btn:hover { background: var(--cv-fondo-36353b); }
.puente-mk .mk-btn:disabled { opacity: 0.6; cursor: default; }
.puente-mk .mk-btn.mk-primario { background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); }
.puente-mk .mk-btn.mk-primario:hover { background: var(--cv-fondo-4752c4); }
.puente-mk .mk-btn.mk-peligro { color: var(--cv-texto-f2777a); }
.puente-mk .mk-btn.mk-suave { background: transparent; color: var(--cv-texto-949ba4); }
.puente-mk .mk-btn.on { color: var(--cv-texto-f23f43); }
.puente-mk .mk-publicar { min-height: 2.25rem; padding: 0 0.875rem; }
/* Arriba a la derecha de la vidriera: el enlace para compartirla y Publicar */
.puente-mk .mk-der { flex: 0 0 auto; display: flex; align-items: center; gap: 0.25rem; }
.puente-mk .mk-buscar {
  display: flex; align-items: center; gap: 0.5rem; height: 3rem; padding: 0 0.25rem 0 0.875rem; margin-bottom: 0.75rem;
  border-radius: 0.75rem; background: var(--cv-fondo-111114); border: 1px solid var(--cv-borde-2e2d32); color: var(--cv-texto-949ba4);
}
.puente-mk .mk-buscar input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--cv-texto-f2f3f5); font: inherit; font-size: 1rem; }
.puente-mk .mk-chips { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem 0.75rem; padding: 0 1rem; }
.puente-mk .mk-chip {
  flex: 0 0 auto; padding: 0.5rem 0.875rem; border: 0; border-radius: 999px; background: var(--cv-fondo-2e2d32); color: var(--cv-texto-dbdee1);
  font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer;
}
.puente-mk .mk-chip.on { background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); }
.puente-mk .mk-filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.5rem; margin-bottom: 0.75rem; }
.puente-mk .mk-filtros[hidden] { display: none; }
.puente-mk .mk-filtros select, .puente-mk .mk-filtros input, .puente-mk .mk-form input, .puente-mk .mk-form textarea, .puente-mk .mk-form select, .puente-mk .mk-caja textarea {
  width: 100%; box-sizing: border-box; min-height: 2.75rem; padding: 0.5rem 0.75rem; border: 1px solid var(--cv-borde-2e2d32); border-radius: 0.625rem;
  background: var(--cv-fondo-111114); color: var(--cv-texto-f2f3f5); font: inherit; font-size: 1rem; outline: none;
}
.puente-mk .mk-form textarea, .puente-mk .mk-caja textarea { resize: vertical; line-height: 1.4; }
.puente-mk input:focus, .puente-mk textarea:focus, .puente-mk select:focus { border-color: var(--cv-borde-5865f2); }
.puente-mk .mk-minmax { display: flex; gap: 0.5rem; }
.puente-mk .mk-minmax[hidden] { display: none; }
.puente-mk .mk-grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.75rem; }
@media (max-width: 768px) { .puente-mk .mk-grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; } }
.puente-mk .mk-tarjeta { display: flex; flex-direction: column; min-width: 0; padding: 0 0 0.5rem; border: 0; border-radius: 0.75rem; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.puente-mk .mk-tfoto { position: relative; aspect-ratio: 1; border-radius: 0.75rem; overflow: hidden; background: var(--cv-fondo-2e2d32); color: var(--cv-texto-6d6f78); display: flex; align-items: center; justify-content: center; margin-bottom: 0.375rem; }
.puente-mk .mk-tfoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.puente-mk .mk-sello { position: absolute; left: 0.5rem; top: 0.5rem; padding: 0.125rem 0.5rem; border-radius: 0.375rem; background: var(--cv-fondo-23a55a); color: var(--cv-sobre-acento-ffffff); font-size: 0.75rem; font-weight: 700; }
.puente-mk .mk-sello.gris { background: var(--cv-fondo-4e5058); }
.puente-mk .mk-sello.rojo { background: var(--cv-fondo-da373c); }
.puente-mk .mk-sello.dorado { background: var(--cv-fondo-e0a83a); color: var(--cv-texto-2a1d05); }
.puente-mk .mk-tprecio { font-size: 1rem; font-weight: 700; color: var(--cv-texto-f2f3f5); }
.puente-mk .mk-ttitulo { font-size: 0.9375rem; color: var(--cv-texto-dbdee1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.puente-mk .mk-tmeta { font-size: 0.8125rem; color: var(--cv-texto-949ba4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.puente-mk .mk-estado { padding: 2rem 0; text-align: center; color: var(--cv-texto-949ba4); }
.puente-mk .mk-estado:empty { display: none; }
.puente-mk .mk-pendientes { display: flex; align-items: center; gap: 0.75rem; width: 100%; margin-bottom: 0.75rem; padding: 0.75rem 1rem; border: 0; border-radius: 0.75rem; background: var(--cv-fondo-3b2f0b); color: var(--cv-texto-f0b232); font: inherit; font-size: 0.9375rem; font-weight: 600; text-align: left; cursor: pointer; }
.puente-mk .mk-pend-n { flex: 0 0 auto; min-width: 1.5rem; height: 1.5rem; padding: 0 0.375rem; border-radius: 999px; background: var(--cv-fondo-f23f43); color: var(--cv-sobre-acento-ffffff); display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; }
/* Una publicacion */
.puente-mk .mk-fotos { position: relative; margin: -1rem -1rem 0.75rem; }
@media (min-width: 769px) { .puente-mk .mk-fotos { margin: 0 0 0.75rem; border-radius: 0.75rem; overflow: hidden; } }
.puente-mk .mk-tira { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--cv-fondo-000000); }
.puente-mk .mk-tira img { flex: 0 0 100%; width: 100%; max-height: 70vh; aspect-ratio: 1; object-fit: contain; scroll-snap-align: center; cursor: zoom-in; }
.puente-mk .mk-puntos { position: absolute; left: 0; right: 0; bottom: 0.625rem; display: flex; justify-content: center; gap: 0.375rem; pointer-events: none; }
.puente-mk .mk-puntos span { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--cv-fondo-ffffff-45); }
.puente-mk .mk-puntos span.on { background: var(--cv-fondo-ffffff); }
/* Las flechas para pasar las fotos (aviso.js): redondas, a los costados, a media altura */
.puente-mk .mk-fotos:focus { outline: none; }
.puente-mk .mk-flecha { position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; background: var(--cv-fondo-000000-55); color: var(--cv-texto-ffffff); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s; }
.puente-mk .mk-flecha:hover { background: var(--cv-fondo-000000-80); }
.puente-mk .mk-flecha[hidden] { display: none; }
.puente-mk .mk-flecha.ant { left: 0.75rem; }
.puente-mk .mk-flecha.sig { right: 0.75rem; }
@media (max-width: 768px) { .puente-mk .mk-flecha { width: 2.25rem; height: 2.25rem; } .puente-mk .mk-flecha svg { width: 22px; height: 22px; } }
.puente-mk .mk-precio { font-size: 1.5rem; font-weight: 800; color: var(--cv-texto-f2f3f5); }
.puente-mk .mk-nombre { margin: 0.125rem 0 0.5rem; font-size: 1.1875rem; font-weight: 600; color: var(--cv-texto-f2f3f5); overflow-wrap: anywhere; }
.puente-mk .mk-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 0.375rem; }
.puente-mk .mk-tag { padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--cv-fondo-2e2d32); font-size: 0.8125rem; color: var(--cv-texto-dbdee1); }
.puente-mk .mk-cuando { font-size: 0.8125rem; color: var(--cv-texto-949ba4); margin-bottom: 0.75rem; }
.puente-mk .mk-aviso { margin-bottom: 0.75rem; padding: 0.625rem 0.875rem; border-radius: 0.625rem; background: var(--cv-fondo-1c3324); color: var(--cv-texto-57d38c); font-size: 0.9375rem; font-weight: 600; }
.puente-mk .mk-aviso.rojo { background: var(--cv-fondo-3a1d1f); color: var(--cv-texto-f2777a); }
.puente-mk .mk-aviso.gris { background: var(--cv-fondo-2b2d31); color: var(--cv-texto-b5bac1); font-weight: 500; }
/* Las vencidas, aparte y apagadas: se ven, pero se nota que no estan al dia */
.puente-mk .mk-vencidas { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--cv-borde-2e2d32); }
.puente-mk .mk-vencidas[hidden] { display: none; }
.puente-mk .mk-vtitulo { font-size: 1.0625rem; font-weight: 700; color: var(--cv-texto-b5bac1); }
.puente-mk .mk-vencidas > .mk-nota { margin: 0.125rem 0 0.875rem; }
.puente-mk .mk-tarjeta.mk-vencida .mk-tfoto img { filter: grayscale(1) brightness(0.6); }
.puente-mk .mk-tarjeta.mk-vencida .mk-tprecio, .puente-mk .mk-tarjeta.mk-vencida .mk-ttitulo { color: var(--cv-texto-80848e); }
.puente-mk .mk-tarjeta.mk-vencida:hover .mk-tfoto img { filter: grayscale(0.6) brightness(0.8); }
.puente-mk .mk-desc { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; font-size: 1rem; color: var(--cv-texto-dbdee1); margin-bottom: 1rem; }
.puente-mk .mk-vendedor, .puente-mk .mk-fila {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.75rem 1rem; margin-bottom: 0.75rem; border: 0; border-radius: 0.875rem;
  background: var(--cv-fondo-2e2d32); color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.puente-mk .mk-fila { margin-bottom: 0.375rem; }
.puente-mk .mk-vendedor > svg { color: var(--cv-texto-949ba4); flex-shrink: 0; }
.puente-mk .mk-av { flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; overflow: hidden; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.puente-mk .mk-av.grande { flex-basis: 4rem; width: 4rem; height: 4rem; font-size: 1.5rem; }
.puente-mk .mk-av img { width: 100%; height: 100%; object-fit: cover; }
.puente-mk .mk-vtexto { flex: 1 1 auto; min-width: 0; }
.puente-mk .mk-vnombre { font-weight: 600; color: var(--cv-texto-f2f3f5); }
.puente-mk .mk-vrep { font-size: 0.8125rem; color: var(--cv-texto-949ba4); }
.puente-mk .mk-acciones { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
@media (max-width: 768px) { .puente-mk .mk-acciones .mk-btn.mk-primario { flex: 1 1 100%; } }
.puente-mk .mk-nota { font-size: 0.8125rem; line-height: 1.4; color: var(--cv-texto-949ba4); margin: 0.25rem 0 1rem; }
/* Publicar */
.puente-mk .mk-form { display: flex; flex-direction: column; gap: 1rem; max-width: 36rem; }
.puente-mk .mk-campo { display: flex; flex-direction: column; gap: 0.375rem; }
.puente-mk .mk-etq { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--cv-texto-b5bac1); }
.puente-mk .mk-ayuda { font-size: 0.8125rem; color: var(--cv-texto-949ba4); }
.puente-mk .mk-seg { display: flex; gap: 0.375rem; padding: 0.25rem; border-radius: 0.75rem; background: var(--cv-fondo-111114); }
.puente-mk .mk-seg[hidden], .puente-mk [hidden] { display: none !important; }
.puente-mk .mk-seg-op { flex: 1 1 0; min-height: 2.5rem; border: 0; border-radius: 0.5rem; background: transparent; color: var(--cv-texto-b5bac1); font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; }
.puente-mk .mk-seg-op.on { background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); }
.puente-mk .mk-fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.puente-mk .mk-fthumb, .puente-mk .mk-fadd { position: relative; aspect-ratio: 1; border-radius: 0.625rem; overflow: hidden; background: var(--cv-fondo-2e2d32); }
.puente-mk .mk-fthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.puente-mk .mk-fadd { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; border: 2px dashed var(--cv-borde-4e5058); color: var(--cv-texto-b5bac1); font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.puente-mk .mk-fquitar { position: absolute; top: 0.25rem; right: 0.25rem; width: 1.75rem; height: 1.75rem; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--cv-fondo-000000-65); color: var(--cv-texto-ffffff); cursor: pointer; }
.puente-mk .mk-portada { position: absolute; left: 0.25rem; bottom: 0.25rem; padding: 0.125rem 0.375rem; border-radius: 0.25rem; background: var(--cv-fondo-000000-65); color: var(--cv-texto-ffffff); font-size: 0.6875rem; font-weight: 700; }
.puente-mk .mk-subiendo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--cv-texto-b5bac1); font-size: 0.8125rem; }
.puente-mk .mk-precio-fila { display: flex; gap: 0.5rem; }
.puente-mk .mk-precio-fila select { flex: 0 0 8.5rem; }
.puente-mk .mk-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; color: var(--cv-texto-dbdee1); }
.puente-mk .mk-check input { width: 1.125rem; height: 1.125rem; min-height: 0; }
.puente-mk .mk-error { color: var(--cv-texto-f2777a); font-size: 0.875rem; min-height: 1rem; }
.puente-mk .mk-error:empty { display: none; }
.puente-mk .mk-enviar { width: 100%; }
/* Reputacion y pendientes */
.puente-mk .mk-perfil { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.puente-mk .mk-pnombre { font-size: 1.25rem; font-weight: 700; color: var(--cv-texto-f2f3f5); }
.puente-mk .mk-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.375rem; margin-bottom: 1.25rem; }
.puente-mk .mk-stat { padding: 0.625rem 0.25rem; border-radius: 0.75rem; background: var(--cv-fondo-2e2d32); text-align: center; }
.puente-mk .mk-stat-n { font-size: 1.125rem; font-weight: 800; color: var(--cv-texto-f2f3f5); }
.puente-mk .mk-stat-l { font-size: 0.75rem; color: var(--cv-texto-949ba4); }
.puente-mk .mk-sub { margin: 1rem 0 0.5rem; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--cv-texto-b5bac1); }
.puente-mk .mk-lista { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 0.75rem; }
.puente-mk .mk-opinion { padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--cv-fondo-2e2d32); border-left: 3px solid var(--cv-borde-23a55a); }
.puente-mk .mk-opinion.mala { border-left-color: var(--cv-borde-da373c); }
.puente-mk .mk-ophead { display: flex; align-items: baseline; gap: 0.375rem; flex-wrap: wrap; }
.puente-mk .mk-optexto { margin: 0.25rem 0; color: var(--cv-texto-dbdee1); overflow-wrap: anywhere; }
.puente-mk .mk-caja { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem; margin-bottom: 0.75rem; border-radius: 0.875rem; background: var(--cv-fondo-2e2d32); }
.puente-mk .mk-texto { color: var(--cv-texto-dbdee1); line-height: 1.4; margin: 0 0 0.75rem; }
.puente-mk .mk-caja .mk-texto, .puente-mk .mk-caja .mk-acciones { margin-bottom: 0; }

/* "NUEVO!" en el icono del Marketplace (aviso.js) */
.puente-mk-btn .puente-mk-nuevo { position: absolute; top: -0.4375rem; right: -0.75rem; z-index: 2; padding: 0.0625rem 0.25rem; border-radius: 999px; background: var(--cv-fondo-f0b232); color: var(--cv-texto-1a1a1e); font-size: 0.5rem; font-weight: 800; line-height: 1.35; letter-spacing: 0; white-space: nowrap; pointer-events: none; box-shadow: 0 0 0 2px var(--cv-sombra-121214); }

/* ── Juegos: Truco (aviso.js, truco.js) ── */
.puente-jg-btn { position: relative; }
/* Juegos en segundo plano (web/aviso.js ocultar): la pantalla queda escondida con el juego andando, y el boton de
   Juegos lleva un puntito verde abajo a la derecha */
.puente-jg.jg-oculto { display: none !important; }
.puente-jg-btn.jg-corriendo::after { content: ''; position: absolute; right: 2px; bottom: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--cv-fondo-23a55a); box-shadow: 0 0 0 3px var(--cv-sombra-1e1f22); pointer-events: none; z-index: 2; }
/* Con el icono propio del servidor: la imagen redonda ocupa todo el boton */
.puente-mk-btn.con-icono, .puente-jg-btn.con-icono, #server-bar .puente-mk-btn.con-icono, #server-bar .puente-jg-btn.con-icono, #puente-rail .con-icono.active { background: transparent !important; border-radius: 50% !important; padding: 0; }
.con-icono .puente-ico-img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; pointer-events: none; -webkit-user-select: none; user-select: none; transition: filter 0.15s, box-shadow 0.15s; }
.con-icono:hover .puente-ico-img { filter: brightness(1.15); }
/* Efecto lupa como el Dock de macOS: el icono bajo el mouse se agranda y los de al lado un poco */
@media (hover: hover) and (pointer: fine) {
  #server-bar > .server-icon, #puente-rail > .puente-rail-btn { transition: transform 0.18s cubic-bezier(0.3, 0.7, 0.4, 1.4); transform-origin: center; will-change: transform; }
  #server-bar > .server-icon:hover, #puente-rail > .puente-rail-btn:hover { transform: scale(1.22); z-index: 2; }
  #server-bar > .server-icon:has(+ .server-icon:hover), #server-bar > .server-icon:hover + .server-icon,
  #puente-rail > .puente-rail-btn:has(+ .puente-rail-btn:hover), #puente-rail > .puente-rail-btn:hover + .puente-rail-btn { transform: scale(1.09); }
}
@media (prefers-reduced-motion: reduce) { #server-bar > .server-icon, #puente-rail > .puente-rail-btn { transition: none; } }
#server-bar .puente-jg-btn { display: flex; align-items: center; justify-content: center; color: var(--cv-texto-dbdee1); background: var(--cv-fondo-2b2a30); cursor: pointer; border: 0; }
#server-bar .puente-jg-btn:hover, #server-bar .puente-jg-btn.active { background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); border-radius: 16px; }
#puente-rail .puente-jg-btn { color: var(--cv-texto-dbdee1); }
#puente-rail .puente-jg-btn.active { background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); }
.puente-jg {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100004; overflow-y: auto; overscroll-behavior: contain;
  background: var(--cv-fondo-1a191e); color: var(--cv-texto-dbdee1); padding-top: env(safe-area-inset-top, 0px); animation: puente-fade 0.12s ease-out;
  -webkit-user-select: none; user-select: none;
}
.puente-jg input { -webkit-user-select: text; user-select: text; }
.puente-jg .jg-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 0.5rem; height: 3.5rem; padding: 0 0.5rem 0 0.25rem; background: var(--cv-fondo-1a191e); border-bottom: 1px solid var(--cv-borde-2e2d32); }
.puente-jg .jg-titulo { flex: 1 1 auto; min-width: 0; font-size: 1.0625rem; font-weight: 700; color: var(--cv-texto-f2f3f5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Boton de arriba a la derecha en las mesas (Abandonar / Cancelar / Copiar enlace) */
.puente-jg .jg-head .jg-salir { flex: 0 0 auto; min-height: 2.25rem; padding: 0 0.875rem; font-size: 0.875rem; }
.puente-jg .jg-btn.jg-peligro { background: var(--cv-fondo-da373c); color: var(--cv-sobre-acento-ffffff); }
.puente-jg .jg-btn.jg-peligro:hover { background: var(--cv-fondo-a12829); }
/* Aviso dentro de CV Chat (confirmar) */
.puente-jg .jg-aviso-fondo { position: fixed; inset: 0; z-index: 100010; display: flex; align-items: center; justify-content: center; padding: 1rem; background: var(--cv-fondo-000000-70); animation: puente-fade 0.15s ease-out; }
.puente-jg .jg-aviso { width: 100%; max-width: 27rem; padding: 1.25rem 1.25rem 1rem; border-radius: 0.75rem; background: var(--cv-fondo-242429); box-shadow: 0 0.5rem 2rem var(--cv-sombra-000000-60); animation: jg-aviso-entra 0.18s cubic-bezier(0.3, 0.7, 0.4, 1.2); }
.puente-jg .jg-aviso-t { font-size: 1.25rem; font-weight: 800; color: var(--cv-texto-f2f3f5); }
.puente-jg .jg-aviso-s { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.4; color: var(--cv-texto-b5bac1); }
.puente-jg .jg-aviso-acc { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.25rem; }
@keyframes jg-aviso-entra { from { transform: scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
.puente-jg .jg-icono { flex: 0 0 auto; width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--cv-texto-b5bac1); cursor: pointer; }
.puente-jg .jg-icono:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-ffffff); }
/* La campanita de la biblioteca ("Avisame cuando alguien busque partida", busco-partida.js) */
.puente-jg .jg-head-der { flex: 0 0 auto; display: flex; align-items: center; }
.puente-jg .jg-icono.jg-busco-on { color: var(--cv-texto-f2f3f5); position: relative; }
.puente-jg .jg-icono.jg-busco-on::after { content: ''; position: absolute; top: 0.6rem; right: 0.6rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--cv-fondo-23a55a); box-shadow: 0 0 0 2px var(--cv-sombra-1a191e); }
.puente-jg .jg-busco-lista { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 1rem; }
.puente-jg .jg-busco-fila { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; padding: 0 0.75rem; border-radius: 0.5rem; background: var(--cv-fondo-2b2a30); color: var(--cv-texto-f2f3f5); font-size: 1rem; font-weight: 600; cursor: pointer; }
.puente-jg .jg-busco-fila input { width: 1.25rem; height: 1.25rem; accent-color: var(--cv-acento-5865f2); flex: 0 0 auto; cursor: pointer; }
.puente-jg .jg-busco-nota { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--cv-texto-949ba4); line-height: 1.35; }
.puente-jg .jg-cuerpo { max-width: 40rem; margin: 0 auto; padding: 1rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
.puente-jg .jg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; min-height: 2.75rem; padding: 0 1rem;
  border: 0; border-radius: 0.625rem; background: var(--cv-fondo-2e2d32); color: var(--cv-texto-f2f3f5); font: inherit; font-size: 0.9375rem; font-weight: 700; cursor: pointer;
}
.puente-jg .jg-btn:hover { background: var(--cv-fondo-36353b); }
.puente-jg .jg-btn:disabled { opacity: 0.65; cursor: default; }
.puente-jg .jg-btn.jg-primario { background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); }
.puente-jg .jg-btn.jg-primario:hover { background: var(--cv-fondo-4752c4); }
.puente-jg .jg-btn.jg-suave { background: var(--cv-fondo-26252a); color: var(--cv-texto-b5bac1); }
.puente-jg .jg-ancho { width: 100%; }
.puente-jg .jg-hero { text-align: center; padding: 1.25rem 1rem; margin-bottom: 0.5rem; border-radius: 1rem; background: var(--cv-fondo-1f4d36); }
/* Inicio de Juegos en pantallas anchas: el banner y los botones a la izquierda, las partidas,
   el record y el ranking a la derecha, todo a la vista sin bajar */
@media (min-width: 1100px) {
  .puente-jg .jg-cuerpo.jg-inicio { display: grid; grid-template-columns: minmax(0, 38rem) minmax(0, 30rem); justify-content: center; align-items: start; gap: 0 1.75rem; max-width: none; }
  .puente-jg .jg-cuerpo.jg-inicio > .jg-hero { position: sticky; top: 0; margin-bottom: 0; }
  .puente-jg .jg-cuerpo.jg-inicio > :not(.jg-hero) { min-width: 0; }
  .puente-jg .jg-cuerpo.jg-inicio > * { max-width: none; margin-left: 0; margin-right: 0; }
  .puente-jg .jg-cuerpo.jg-inicio > :not(.jg-hero) > .jg-sub:first-child { margin-top: 0; }
  .puente-jg .jg-cuerpo.jg-inicio > .jg-hero { grid-row: span 2; }
  .puente-jg .jg-cuerpo.jg-inicio > .jg-rankings { grid-column: 2; }
}
@media (min-width: 1560px) {
  .puente-jg .jg-cuerpo.jg-inicio { grid-template-columns: minmax(0, 38rem) minmax(0, 26rem) minmax(0, 26rem); }
  .puente-jg .jg-cuerpo.jg-inicio > .jg-rankings { grid-column: 3; grid-row: 1 / span 2; }
}
/* Banner propio del Truco (aviso.js): ocupa el ancho del recuadro, arriba */
.puente-jg .jg-hero.jg-con-banner { padding: 0 0 1rem; overflow: hidden; background: var(--cv-fondo-0d1410); }
.puente-jg .jg-banner { display: block; width: 100%; height: auto; margin-bottom: 0.75rem; }
.puente-jg .jg-hero-cartas { font-size: 2.75rem; line-height: 1; margin-bottom: 0.25rem; }
.puente-jg .jg-hero-t { font-size: 1.5rem; font-weight: 800; color: var(--cv-texto-ffffff); }
.puente-jg .jg-hero-s { font-size: 0.9375rem; color: var(--cv-texto-c9e6d4); margin-bottom: 0.875rem; }
.puente-jg .jg-acciones { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.puente-jg .jg-sub { margin: 1.25rem 0 0.5rem; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--cv-texto-b5bac1); }
.puente-jg .jg-lista { display: flex; flex-direction: column; gap: 0.375rem; }
.puente-jg .jg-fila { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.625rem 0.875rem; border: 0; border-radius: 0.75rem; background: var(--cv-fondo-2e2d32); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.puente-jg .jg-fila:hover { background: var(--cv-fondo-36353b); }
.puente-jg .jg-rank { cursor: default; }
.puente-jg .jg-pos { flex: 0 0 1.75rem; text-align: center; font-weight: 800; color: var(--cv-texto-b5bac1); }
.puente-jg .jg-av { flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; overflow: hidden; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.125rem; }
.puente-jg .jg-av img { width: 100%; height: 100%; object-fit: cover; }
.puente-jg .jg-ftexto { flex: 1 1 auto; min-width: 0; }
.puente-jg .jg-fnombre { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--cv-texto-f2f3f5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.puente-jg .jg-fmeta { font-size: 0.8125rem; color: var(--cv-texto-949ba4); }
.puente-jg .jg-chip { flex: 0 0 auto; padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--cv-fondo-36353b); color: var(--cv-texto-dbdee1); font-size: 0.8125rem; font-weight: 700; }
.puente-jg .jg-chip.azul { background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); }
.puente-jg .jg-chip.amarillo { background: var(--cv-fondo-f0b232); color: var(--cv-texto-1a1a1e); }
.puente-jg .jg-vacio, .puente-jg .jg-estado { padding: 1rem 0; text-align: center; color: var(--cv-texto-949ba4); }
.puente-jg .jg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.375rem; }
/* El invitado, en la sala de un juego (notaInvitado, aviso.js): en lugar de su récord, que siempre daria 0 (sus
   partidas no se guardan), la invitacion a quedarse con su nombre */
.puente-jg .jg-invitado-nota { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 0.875rem 1rem; border: 1px solid var(--cv-borde-3c3a6b); border-radius: 0.75rem; background: var(--cv-fondo-5865f2-12); }
.puente-jg .jg-invitado-nota-t { color: var(--cv-texto-f2f3f5); font-weight: 700; }
.puente-jg .jg-invitado-nota-s { color: var(--cv-texto-b5bac1); font-size: 0.875rem; line-height: 1.45; }
.puente-jg .jg-stat { padding: 0.75rem 0.25rem; border-radius: 0.75rem; background: var(--cv-fondo-2e2d32); text-align: center; }
.puente-jg .jg-stat-n { font-size: 1.25rem; font-weight: 800; color: var(--cv-texto-f2f3f5); }
.puente-jg .jg-stat-l { font-size: 0.75rem; color: var(--cv-texto-949ba4); }
/* Crear partida */
.puente-jg .jg-form { display: flex; flex-direction: column; gap: 1rem; }
.puente-jg .jg-campo { display: flex; flex-direction: column; gap: 0.375rem; }
.puente-jg [hidden] { display: none !important; }
.puente-jg .jg-etq { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--cv-texto-b5bac1); }
.puente-jg .jg-seg { display: flex; gap: 0.375rem; padding: 0.25rem; border-radius: 0.75rem; background: var(--cv-fondo-111114); }
.puente-jg .jg-seg-op { flex: 1 1 0; min-height: 2.5rem; padding: 0 0.375rem; border: 0; border-radius: 0.5rem; background: transparent; color: var(--cv-texto-b5bac1); font: inherit; font-size: 0.875rem; font-weight: 700; cursor: pointer; }
.puente-jg .jg-seg-op.on { background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); }
.puente-jg .jg-ayuda { font-size: 0.875rem; color: var(--cv-texto-949ba4); margin-top: -0.5rem; }
.puente-jg .jg-buscar { display: flex; align-items: center; gap: 0.5rem; height: 3rem; padding: 0 0.875rem; border-radius: 0.75rem; background: var(--cv-fondo-111114); border: 1px solid var(--cv-borde-2e2d32); color: var(--cv-texto-949ba4); }
.puente-jg .jg-buscar input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--cv-texto-f2f3f5); font: inherit; font-size: 1rem; }
.puente-jg .jg-elegido { color: var(--cv-texto-57d38c); font-weight: 700; }
.puente-jg .jg-elegido:empty { display: none; }
.puente-jg .jg-error { color: var(--cv-texto-f2777a); font-size: 0.875rem; }
.puente-jg .jg-error:empty { display: none; }
/* La mesa */
/* Tamanio de las cartas: tan grandes como entren, segun el ancho y el alto de la pantalla,
   para ver la mesa entera sin bajar */
.puente-jg {
  --jg-mano: clamp(4.5rem, min(27vw, 13vh), 10rem);
  --jg-jugada: clamp(3.5rem, min(18vw, 8.5vh), 7rem);
  --jg-chica: clamp(2.25rem, min(11vw, 6vh), 4rem);
}
.puente-jg .jg-mesa { max-width: 46rem; margin: 0 auto; padding: 0.75rem 0.75rem calc(1rem + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 0.625rem; }
.puente-jg .jg-espera, .puente-jg .jg-fin { text-align: center; padding: 2rem 1rem; border-radius: 1rem; background: var(--cv-fondo-1f4d36); }
.puente-jg .jg-fin .jg-log { margin-top: 1rem; text-align: left; font-size: 0.8125rem; color: var(--cv-texto-c9e6d4); }
.puente-jg .jg-marcador { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0.75rem; border-radius: 0.875rem; background: var(--cv-fondo-2e2d32); }
.puente-jg .jg-lado { display: flex; align-items: center; gap: 0.5rem; min-width: 0; flex: 1 1 0; }
.puente-jg .jg-lado.mio { flex-direction: row-reverse; text-align: right; }
.puente-jg .jg-lado .jg-av { flex-basis: 2rem; width: 2rem; height: 2rem; font-size: 0.875rem; }
.puente-jg .jg-lnombre { min-width: 0; font-weight: 700; color: var(--cv-texto-f2f3f5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.puente-jg .jg-lpuntos { font-size: 1.5rem; font-weight: 800; color: var(--cv-texto-ffffff); }
.puente-jg .jg-meta { flex: 0 0 auto; font-size: 0.75rem; color: var(--cv-texto-949ba4); }
.puente-jg .jg-baza { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.375rem; padding: 0.25rem 0; border-radius: 0.75rem; }
.puente-jg .jg-baza.actual { background: var(--cv-fondo-ffffff-06); }
.puente-jg .jg-hueco { width: var(--jg-jugada); height: calc(var(--jg-jugada) * 1.47); border-radius: 0.5rem; border: 2px dashed var(--cv-borde-ffffff-18); }
.puente-jg .jg-bres { font-size: 0.6875rem; font-weight: 800; color: var(--cv-texto-c9e6d4); text-transform: uppercase; }
.puente-jg .jg-baza.gano-yo .jg-bres { color: var(--cv-texto-ffffff); }
.puente-jg .jg-status { text-align: center; min-height: 3rem; }
.puente-jg .jg-turno { margin-top: 0.25rem; font-weight: 700; color: var(--cv-texto-f2f3f5); }
.puente-jg .jg-ultimo { margin-top: 0.25rem; font-size: 0.8125rem; color: var(--cv-texto-949ba4); }
.puente-jg .jg-reloj { position: relative; height: 0.25rem; margin: 0.5rem auto 0; max-width: 12rem; border-radius: 999px; background: var(--cv-fondo-2e2d32); overflow: visible; }
.puente-jg .jg-reloj > span:first-child { display: block; height: 100%; width: 100%; border-radius: 999px; background: var(--cv-fondo-4e5058); transition: width 0.5s linear; }
.puente-jg .jg-reloj.mio > span:first-child { background: var(--cv-fondo-f0b232); }
.puente-jg .jg-reloj-t { position: absolute; right: -2.25rem; top: -0.4375rem; font-size: 0.75rem; color: var(--cv-texto-949ba4); }
.puente-jg .jg-gritos { display: flex; flex-wrap: wrap; gap: 0.375rem; justify-content: center; padding: 0.5rem; border-radius: 0.875rem; background: var(--cv-fondo-2e2d32); }
/* Proyecto Gusanos: el juego terminado va en un iframe, a pantalla completa menos la barra de arriba.
   El alto sale del alto de la pantalla del chat (que ya es fija) y no se mezcla con su scroll. */
.puente-jg .jg-gusanos { box-sizing: border-box; height: calc(100% - 3.5rem - 1px); min-height: 0; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--cv-fondo-070b12); }
.puente-jg .jg-gusanos-marco { position: relative; height: 100%; background: var(--cv-fondo-070b12); }
.puente-jg .jg-gusanos-iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: var(--cv-fondo-070b12); }
/* Los fosforos del marcador: en tablet y celular, donde el tanteador del costado queda abajo */
.puente-jg .jg-marcador { flex-wrap: wrap; row-gap: 0.25rem; }
}
}
.puente-jg .jg-fin .jg-log { font-size: 0.875rem; color: var(--cv-texto-dcefe3); }
.puente-jg .jg-chat { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem; border-radius: 0.875rem; background: var(--cv-fondo-111114); border: 1px solid var(--cv-borde-2e2d32); }
.puente-jg .jg-chat-t { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cv-texto-b5bac1); }
.puente-jg .jg-chat-lista { display: flex; flex-direction: column; gap: 0.25rem; height: 14rem; overflow-y: auto; font-size: 0.875rem; line-height: 1.35; color: var(--cv-texto-dbdee1); overflow-wrap: anywhere; scrollbar-width: thin; }
.puente-jg .jg-msg b { color: var(--cv-texto-f0b232); }
.puente-jg .jg-msg.mio b { color: var(--cv-texto-8ea1ff); }
.puente-jg .jg-chat-vacio { margin: auto; color: var(--cv-texto-6d7179); font-size: 0.8125rem; text-align: center; }
.puente-jg .jg-chat-rapidos { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.puente-jg .jg-chat-form { display: flex; gap: 0.375rem; }
.puente-jg .jg-chat-form input { flex: 1 1 auto; min-width: 0; height: 2.5rem; padding: 0 0.75rem; border-radius: 0.625rem; border: 1px solid var(--cv-borde-2e2d32); background: var(--cv-fondo-1e1f22); color: var(--cv-texto-f2f3f5); font: inherit; font-size: 1rem; outline: none; }
.puente-jg .jg-chat-form input:focus { border-color: var(--cv-borde-5865f2); }
.puente-jg .jg-chat-form .jg-btn { min-height: 2.5rem; padding: 0 0.875rem; }
}


/* "Está escribiendo…" como en Discord: tres puntitos que laten uno detras del otro
   (se agrandan, se iluminan y suben un poquito) y los nombres en negrita (aviso.js) */
#typing-indicator.puente-escribe { display: flex !important; align-items: center; gap: 0.375rem; color: var(--cv-texto-b5bac1); font-size: 0.875rem; white-space: nowrap; overflow: hidden; }
#typing-indicator .puente-escribe-texto { overflow: hidden; text-overflow: ellipsis; }
#typing-indicator .puente-escribe-texto b { color: var(--cv-texto-f2f3f5); font-weight: 700; }
.puente-escribe-puntos { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.1875rem; height: 0.875rem; padding: 0 0.125rem; }
.puente-escribe-puntos i {
  display: block; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--cv-fondo-dbdee1);
  opacity: 0.3; transform: scale(0.8); animation: puente-escribe 1.2s ease-in-out infinite;
}
.puente-escribe-puntos i:nth-child(2) { animation-delay: 0.15s; }
.puente-escribe-puntos i:nth-child(3) { animation-delay: 0.3s; }
@keyframes puente-escribe {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0) scale(0.8); }
  30% { opacity: 1; transform: translateY(-0.125rem) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .puente-escribe-puntos i { animation-duration: 2.4s; } }

/* Funball (funball.js): el tablero en perspectiva como el original, con bolas y bases
   dibujadas de nuevo (aviso.js) */
/* Biblioteca de Juegos (aviso.js, biblioteca): tarjetas con la tapa de cada juego, como Steam */
.puente-jg .jg-bib { max-width: 72rem; margin: 0 auto; padding: 0.5rem 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
/* El torneo del sabado (torneo.js): arriba de las mesas */
.puente-jg .jg-torneo { display: flex; gap: 0.875rem; align-items: flex-start; margin: 0.75rem 0 0.25rem; padding: 0.875rem 1rem; border-radius: 0.75rem; background: linear-gradient(135deg, var(--cv-fondo-e0a83a-16), var(--cv-fondo-5865f2-14)); border: 1px solid var(--cv-borde-e0a83a-35); }
.puente-jg .jg-torneo-ico { font-size: 1.75rem; line-height: 1; }
.puente-jg .jg-torneo-tx { flex: 1; min-width: 0; }
.puente-jg .jg-torneo-t { font-size: 1rem; font-weight: 700; color: var(--cv-texto-f2f3f5); }
.puente-jg .jg-torneo-s { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.4; color: var(--cv-texto-c9ccd1); }
.puente-jg .jg-torneo-acc { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; margin-top: 0.625rem; }
.puente-jg .jg-torneo-btn { border: 0; border-radius: 0.5rem; padding: 0.5rem 0.875rem; background: var(--cv-fondo-e0a83a); color: var(--cv-texto-2a1d05); font: inherit; font-weight: 700; cursor: pointer; }
.puente-jg .jg-torneo-btn.suave { background: transparent; color: var(--cv-texto-b5bac1); box-shadow: inset 0 0 0 1px var(--cv-sombra-4e5058); font-weight: 600; }
.puente-jg .jg-torneo-btn:disabled { opacity: 0.6; cursor: default; }
.puente-jg .jg-torneo-compartir { display: inline-flex; align-items: center; gap: 0.375rem; }
/* Tu fixture y la tabla en vivo, mientras se juega el torneo (cv-juegos.js fixtureDe y tablaVivo, 5/12/2026) */
.puente-jg .jg-fixture { margin-top: 0.875rem; }
.puente-jg .jg-fixture-t { margin-bottom: 0.375rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cv-fondo-e0a83a); }
.puente-jg .jg-fixture-fila { display: flex; align-items: center; gap: 0.625rem; margin-top: 0.375rem; padding: 0.5rem 0.625rem; border-radius: 0.625rem; background: var(--cv-fondo-000000-22, rgba(0, 0, 0, 0.22)); }
.puente-jg .jg-fixture-fila .jg-torneo-cara { width: 2.25rem; height: 2.25rem; margin-left: 0; border: 0; }
.puente-jg .jg-fixture-mid { flex: 1; min-width: 0; }
.puente-jg .jg-fixture-n { font-weight: 600; color: var(--cv-texto-f2f3f5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.puente-jg .jg-fixture-s { display: flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; color: var(--cv-texto-b5bac1); white-space: nowrap; overflow: hidden; }
.puente-jg .jg-fixture-est { overflow: hidden; text-overflow: ellipsis; }
.puente-jg .jg-fixture-punto { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--cv-texto-80848e); }
.puente-jg .jg-fixture-punto.en-linea { background: var(--cv-fondo-23a55a); }
.puente-jg .jg-fixture-punto.jugando { background: var(--cv-fondo-e0a83a); }
.puente-jg .jg-fixture-fila .jg-torneo-btn { flex: none; }
.puente-jg .jg-torneo-btn.rosa { background: var(--cv-fondo-ee2d6f); color: var(--cv-sobre-acento-ffffff); }
/* (en el celular, el fixture usa todo el ancho de la tarjeta, debajo del trofeo tambien, y el boton es mas chico: si no,
   los nombres y el estado se cortaban) */
@media (max-width: 640px) {
  .puente-jg .jg-fixture { margin-left: -2.625rem; }
  .puente-jg .jg-fixture-fila { gap: 0.5rem; padding: 0.5rem; }
  .puente-jg .jg-fixture-fila .jg-torneo-btn { padding: 0.4375rem 0.75rem; font-size: 0.875rem; }
  .puente-jg .jg-fixture-s { white-space: normal; }
}
.puente-jg .jg-torneo-ok { font-weight: 700; color: var(--cv-texto-57f287); }
.puente-jg .jg-torneo-tabla { margin: 0.5rem 0 0; padding-left: 1.25rem; font-size: 0.875rem; line-height: 1.5; color: var(--cv-texto-dbdee1); }
.puente-jg .jg-torneo-tabla li.yo { font-weight: 700; color: var(--cv-texto-f2f3f5); }
/* Quienes estan anotados (cv-juegos.js): las caras y los nombres en una linea; tocandola, la lista (5/12/2026) */
/* Las caras van al principio del renglon y el texto sigue al lado (en el celu baja abajo de las caras, no a otro renglon cada cosa) */
.puente-jg .jg-torneo-caras { display: block; margin-top: 0.5rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; line-height: 1.6; text-align: left; cursor: pointer; }
.puente-jg .jg-torneo-fotos { display: inline-flex; margin-right: 0.5rem; vertical-align: middle; }
.puente-jg .jg-torneo-cara { flex: none; width: 1.75rem; height: 1.75rem; margin-left: -0.5rem; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 2px solid var(--cv-fondo-242429); background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); font-size: 0.75rem; font-weight: 700; box-sizing: border-box; }
.puente-jg .jg-torneo-cara:first-child { margin-left: 0; }
.puente-jg .jg-torneo-cara img { width: 100%; height: 100%; object-fit: cover; }
.puente-jg .jg-torneo-nombres { font-size: 0.875rem; color: var(--cv-texto-b5bac1); }
.puente-jg .jg-torneo-nombres b { font-weight: 600; color: var(--cv-texto-f2f3f5); }
.puente-jg .jg-torneo-ver { margin-left: 0.5rem; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; color: var(--cv-texto-00a8fc); }
.puente-jg .jg-torneo-caras:hover .jg-torneo-ver { text-decoration: underline; }
.puente-jg .jg-anotados-lista { display: flex; flex-direction: column; gap: 0.125rem; max-height: 50vh; margin-top: 0.75rem; overflow-y: auto; }
.puente-jg .jg-anotados-fila { display: flex; align-items: center; gap: 0.625rem; padding: 0.375rem 0.25rem; border-radius: 0.5rem; }
.puente-jg .jg-anotados-fila .jg-torneo-cara { width: 2rem; height: 2rem; margin-left: 0; border: 0; }
.puente-jg .jg-anotados-n { font-size: 0.9375rem; color: var(--cv-texto-f2f3f5); }
.puente-jg .jg-anotados-fila.yo .jg-anotados-n { font-weight: 700; color: var(--cv-texto-57f287); }
/* La Copa Mudanza, arriba de la biblioteca */
.puente-jg .jg-copa { margin-top: 1rem; padding: 1rem 1.125rem; border-radius: 1rem; background: linear-gradient(135deg, var(--cv-fondo-3a2a06), var(--cv-fondo-1f1c14) 60%); border: 1px solid var(--cv-borde-6b5212); }
.puente-jg .jg-copa-t { font-size: 1.125rem; font-weight: 800; color: var(--cv-texto-f8d36a); }
.puente-jg .jg-copa-s { margin-top: 0.25rem; font-size: 0.9375rem; font-weight: 600; color: var(--cv-texto-f2f3f5); }
.puente-jg .jg-copa-r { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.4; color: var(--cv-texto-d6cfbd); }
.puente-jg .jg-copa-lista { margin: 0.75rem 0 0; padding: 0; list-style: none; counter-reset: copa; display: flex; flex-direction: column; gap: 0.25rem; }
.puente-jg .jg-copa-lista li { counter-increment: copa; display: flex; align-items: center; gap: 0.625rem; padding: 0.375rem 0.625rem; border-radius: 0.5rem; background: var(--cv-fondo-ffffff-05); color: var(--cv-texto-f2f3f5); font-size: 0.9375rem; }
.puente-jg .jg-copa-lista li::before { content: counter(copa); min-width: 1.25rem; font-weight: 800; color: var(--cv-texto-f8d36a); text-align: right; }
.puente-jg .jg-copa-lista li:first-child::before { content: "🥇"; }
.puente-jg .jg-copa-lista li.yo { background: var(--cv-fondo-f0b232-22); }
.puente-jg .jg-copa-n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.puente-jg .jg-bib-titulo { margin: 1.25rem 0 0.75rem; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cv-texto-b5bac1); }
.puente-jg .jg-tapas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, calc(50% - 0.5rem)), 1fr)); gap: 1.25rem 1rem; }
.puente-jg .jg-tapa { display: flex; flex-direction: column; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.puente-jg .jg-tapa-img { position: relative; aspect-ratio: 3 / 2; border-radius: 0.375rem; overflow: hidden; box-shadow: 0 0.5rem 1.25rem var(--cv-sombra-000000-50); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.puente-jg .jg-tapa-img img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-select: none; user-select: none; }
.puente-jg .jg-tapa:hover .jg-tapa-img, .puente-jg .jg-tapa:focus-visible .jg-tapa-img { transform: translateY(-0.25rem) scale(1.02); box-shadow: 0 0 0 2px var(--cv-sombra-66c0f4), 0 0.75rem 1.75rem var(--cv-sombra-000000-60); }
.puente-jg .jg-tapa:focus-visible { outline: none; }
.puente-jg .jg-tapa-sin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; color: var(--cv-texto-f2f3f5); }
.puente-jg .jg-tapa-badge { position: absolute; top: 0.5rem; right: 0.5rem; padding: 0.1875rem 0.5rem; border-radius: 999px; background: var(--cv-fondo-f0b232); color: var(--cv-texto-1a1a1e); font-size: 0.75rem; font-weight: 800; box-shadow: 0 2px 6px var(--cv-sombra-000000-50); }
.puente-jg .jg-tapa-n { margin-top: 0.625rem; font-size: 1rem; font-weight: 700; color: var(--cv-texto-f2f3f5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.puente-jg .jg-tapa-s { font-size: 0.8125rem; color: var(--cv-texto-949ba4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.puente-jg .jg-tapa.pronto { cursor: default; }
.puente-jg .jg-tapa.pronto .jg-tapa-img { box-shadow: none; border: 2px dashed var(--cv-borde-3a3940); background: transparent; }
.puente-jg .jg-tapa.pronto .jg-tapa-sin { color: var(--cv-texto-5c5e66); font-size: 2.5rem; font-weight: 400; }
.puente-jg .jg-tapa.pronto:hover .jg-tapa-img { transform: none; box-shadow: none; }
.puente-jg .jg-seguir { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(22rem, 100%), 1fr)); gap: 0.75rem; }
/* Las filas de la biblioteca con la tapa chica del juego (y la foto de quien encima), que paso y cuando */
.puente-jg .jg-bib-titulo small { margin-left: 0.625rem; font-size: 0.8125rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--cv-texto-949ba4); }
.puente-jg .jg-fila.jg-fila-tapa { gap: 0.875rem; padding: 0.625rem 0.75rem 0.625rem 0.625rem; }
.puente-jg .jg-fila-tapa .jg-fnombre { font-size: 1rem; }
.puente-jg .jg-fila-tapa .jg-fmeta i { font-style: normal; color: var(--cv-texto-dbdee1); }
.puente-jg .jg-fila-tapa .jg-chip { padding: 0.4375rem 0.875rem; font-size: 0.875rem; }
.puente-jg .jg-fila-tapa.toca { background: linear-gradient(90deg, var(--cv-fondo-3a3214), var(--cv-fondo-2e2d32) 60%); box-shadow: inset 0 0 0 2px var(--cv-sombra-f0b232); }
.puente-jg .jg-mini { position: relative; flex: none; width: 6rem; height: 4rem; border-radius: 0.5rem; box-shadow: 0 0.25rem 0.625rem var(--cv-sombra-000000-40); }
.puente-jg .jg-mini > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0.5rem; }
.puente-jg .jg-mini > .aj-tapa { border-radius: 0.5rem; overflow: hidden; }
.puente-jg .jg-mini > .jg-mini-av { position: absolute; right: -0.5rem; bottom: -0.5rem; width: 1.875rem !important; height: 1.875rem !important; min-width: 0; border-radius: 50%; box-shadow: 0 0 0 3px var(--cv-sombra-2e2d32); overflow: hidden; font-size: 0.8125rem; }
.puente-jg .jg-fila-tapa.toca .jg-mini > .jg-mini-av { box-shadow: 0 0 0 3px var(--cv-sombra-3a3214); }
.puente-jg .jg-mini-n { display: flex; align-items: center; justify-content: center; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); font-weight: 800; }
.puente-jg .jg-enlinea { display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.375rem; border-radius: 50%; background: var(--cv-fondo-23a55a); vertical-align: 0.0625rem; }
.puente-jg .jg-tapa-vivo { position: absolute; left: 0.5rem; bottom: 0.5rem; padding: 0.1875rem 0.5625rem; border-radius: 999px; background: var(--cv-fondo-000000-72); color: var(--cv-texto-ffffff); font-size: 0.75rem; font-weight: 700; }
/* La tapa de un juego que es solo con cuenta, para quien entro como invitado: el cartel con un candado */
.puente-jg .jg-tapa-vivo.solo::before { content: '🔒'; width: auto; height: auto; margin-right: 0.3125rem; background: none; vertical-align: 0; }
/* Clic derecho en una tapa (o mantenerla apretada): su menu, para copiar el enlace sin abrir el juego (aviso.js;
   arriba de la ventana de Juegos, 100004). Con el dedo apoyado, ni el menu del navegador sobre la imagen ni seleccionar el texto */
.puente-jg .jg-tapa { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.jg-menu { position: fixed; z-index: 100007; min-width: 11.5rem; padding: 0.5rem; border-radius: 0.5rem; background: var(--cv-fondo-1e1e22); border: 1px solid var(--cv-borde-29292d); box-shadow: 0 8px 24px var(--cv-sombra-000000-50); }
.jg-menu-op { display: flex; align-items: center; width: 100%; min-height: 2rem; padding: 0.375rem 0.5rem; border: 0; border-radius: 0.25rem; background: transparent; color: var(--cv-texto-dbdee1); font: inherit; font-size: 0.875rem; font-weight: 500; text-align: left; cursor: pointer; }
.jg-menu-op:hover, .jg-menu-op:focus-visible { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); outline: none; }
@media (pointer: coarse) { .jg-menu-op { min-height: 2.75rem; font-size: 0.9375rem; } }
/* Un juego solo con cuenta, para quien entro como invitado (aviso.js soloUsuarios): la tapa, el aviso y la invitacion */
.puente-jg .jg-solo-hero { padding: 0 0 1.25rem; overflow: hidden; background: var(--cv-fondo-1e1e22); border: 1px solid var(--cv-borde-29292d); }
.puente-jg .jg-solo-tapa { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; margin-bottom: 1rem; }
.puente-jg .jg-solo-hero .jg-hero-t { padding: 0 1rem; }
.puente-jg .jg-solo-hero .jg-hero-s { padding: 0 1rem; color: var(--cv-texto-b5bac1); }
.puente-jg .jg-solo-hero .jg-acciones { padding: 0 1rem; }
.puente-jg .jg-solo > .jg-btn { margin-top: 0.5rem; }
.puente-jg .jg-tapa-vivo::before { content: ''; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.375rem; border-radius: 50%; background: var(--cv-fondo-23a55a); vertical-align: 0.0625rem; }
.puente-jg .fb-seg-varias { flex-wrap: wrap; }
.puente-jg .fb-seg-varias .jg-seg-op { flex: 1 1 45%; }
.puente-jg .fb-vuela { transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.4, 1); pointer-events: none; }
.puente-jg .fb-vuela.fb-tp { transition-duration: 0.18s; opacity: 0.85; }
.puente-jg .fb-boom { fill: none; stroke: var(--cv-texto-f0b232); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: fb-boom 0.35s ease-out forwards; }
.puente-jg .fb-boom-explota, .puente-jg .fb-boom-dispara { stroke: var(--cv-texto-ff6b2c); }
.puente-jg .fb-boom-anulan, .puente-jg .fb-boom-revienta { stroke: var(--cv-texto-e0d4ff); }
.puente-jg .fb-boom-huevo { stroke: var(--cv-texto-fff3c4); }
@keyframes fb-titila { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: 0.45; } }
@keyframes fb-boom { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .puente-jg .fb-vuela { transition-duration: 0.05s; } }

/* Editar en el celu como en Discord (aviso.js, puente-editando): el texto se edita en el cuadro
   de escribir; en el mensaje queda escondida la edicion de Haven y se ve el mensaje como era,
   marcado. Arriba del cuadro, "Editando mensaje" con la X. */
html body #messages .puente-editando-msg { background: var(--cv-fondo-5865f2-10); box-shadow: inset 2px 0 0 var(--cv-sombra-5865f2); }
html body #messages .puente-editando-msg .message-content { padding-top: 0; }
html body #messages .puente-editando-msg :is(.edit-textarea, .edit-actions, .edit-resizer) { display: none !important; }
html body #puente-editando .reply-bar-text { font-weight: 600; color: var(--cv-texto-dbdee1); }

/* En los MD las fotos y videos ya salen sin la ubicacion (aviso.js, puente-md-sin-ubicacion):
   sin el aviso de Haven que pedia sacarla a mano */
html.puente-md-sin-ubicacion .dm-safety-notice[data-kind="gps"] { display: none !important; }

/* Celu: el boton de fotos al lado del + (aviso.js), del mismo estilo; en la PC no existe */
@media (max-width: 768px) {
  html body #message-input-area > #puente-fotos-btn {
    flex: 0 0 3rem; width: 3rem; height: 3rem; min-width: 3rem; margin-left: -0.25rem; padding: 0; border: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; background: var(--cv-fondo-252429); color: var(--cv-texto-dbdee1); cursor: pointer; position: relative; z-index: 1;
  }
  html body #message-input-area > #puente-fotos-btn[hidden] { display: none; }
  html body #message-input-area > #puente-fotos-btn:active { background: var(--cv-fondo-3f3e44); }
}
@media (min-width: 769px) { html body #puente-fotos-btn { display: none !important; } }

/* Marketplace: el aviso tambien en la compra/venta del foro (foro-mercado.js) */
.mk-foro { display: block; margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--bg-tertiary, var(--cv-fondo-1e1f22)); color: var(--text-link, var(--cv-texto-00a8fc)); font-size: 14px; text-decoration: none; }
.mk-foro:hover { text-decoration: underline; }

.puente-jg .aj-tapa { position: absolute; inset: 0; background: var(--cv-fondo-2b2d2c); }
.puente-jg .aj-tapa-tab { position: absolute; inset: 12% 22%; display: grid; grid-template-columns: repeat(4, 1fr); transform: perspective(26rem) rotateX(48deg); border-radius: 0.25rem; overflow: hidden; box-shadow: 0 1rem 1.5rem var(--cv-sombra-000000-50); }
.puente-jg .aj-tapa-tab span.cl { background: var(--cv-fondo-f1e4e9); }
.puente-jg .aj-tapa-tab span.os { background: var(--cv-fondo-b9577d); }
.puente-jg .aj-tapa-p { position: absolute; left: 0; right: 0; bottom: 10%; display: flex; justify-content: center; height: 62%; }
.puente-jg .aj-tapa-p svg { height: 100%; width: auto; filter: drop-shadow(0 6px 8px var(--cv-sombra-000000-55)); }
/* en la compu la columna del tablero es auto: necesita un ancho propio (lo que entre al lado de las jugadas y de alto) */
}

/* Imagenes como en Discord (aviso.js, puente-imagenes-discord): el menu del clic derecho con el
   aspecto del de los mensajes, la barra de arriba a la derecha de la imagen abierta y la ✕ de las
   vistas previas de enlaces */
html body #image-context-menu.puente-img-menu {
  min-width: 13.5rem; padding: 0.5rem; border-radius: 0.5rem;
  background: var(--cv-fondo-1e1e22) !important; border: 1px solid var(--cv-borde-29292d); box-shadow: 0 8px 24px var(--cv-sombra-000000-50);
  backdrop-filter: none; -webkit-backdrop-filter: none; z-index: 100020;
}
html body #image-context-menu.puente-img-menu .puente-mm-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 2rem; padding: 0.375rem 0.5rem;
  border: 0; border-radius: 0.25rem; background: transparent; color: var(--cv-texto-dbdee1); font: inherit; font-size: 0.875rem; font-weight: 500; text-align: left; cursor: pointer;
}
html body #image-context-menu.puente-img-menu .puente-mm-item > * { pointer-events: none; }
html body #image-context-menu.puente-img-menu .puente-mm-item:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); }
html body #image-context-menu.puente-img-menu .puente-mm-item.danger { color: var(--cv-texto-f23f43); }
html body #image-context-menu.puente-img-menu .puente-mm-item.danger:hover { background: var(--cv-fondo-f23f43); color: var(--cv-sobre-acento-ffffff); }
html body #image-context-menu.puente-img-menu .puente-mm-icon { display: flex; flex-shrink: 0; opacity: 0.85; }
html body #image-context-menu.puente-img-menu .puente-mm-icon svg { width: 1.125rem; height: 1.125rem; }
html body #image-context-menu.puente-img-menu .puente-mm-sep { height: 1px; margin: 0.25rem 0.375rem; background: var(--cv-fondo-29292d); }
.puente-lb-barra { position: absolute; top: max(0.75rem, env(safe-area-inset-top, 0px)); right: 0.75rem; z-index: 5; display: flex; align-items: center; gap: 0.75rem; }
.puente-lb-grupo { display: flex; align-items: center; gap: 0.125rem; padding: 0.25rem; border-radius: 0.5rem; background: var(--cv-fondo-1e1e22-85); border: 1px solid var(--cv-borde-ffffff-08); }
.puente-lb-btn { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 0.375rem; background: transparent; color: var(--cv-texto-dbdee1); cursor: pointer; }
.puente-lb-btn:hover { background: var(--cv-fondo-ffffff-10); color: var(--cv-texto-ffffff); }
.puente-lb-btn.puente-lb-cerrar { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--cv-fondo-1e1e22-85); border: 1px solid var(--cv-borde-ffffff-12); }
.puente-lb-btn.puente-lb-cerrar:hover { background: var(--cv-fondo-3c3c42-95); }
#puente-reenviar { z-index: 100030; }
#puente-reenviar .puente-reenviar { width: min(26rem, calc(100vw - 2rem)); }
#puente-reenviar .puente-reenviar-lista { display: flex; flex-direction: column; gap: 2px; max-height: 18rem; overflow-y: auto; margin-top: 0.5rem; }
.puente-reenviar-fila { display: block; width: 100%; padding: 0.5rem 0.625rem; border: 0; border-radius: 0.25rem; background: transparent; color: var(--cv-texto-dbdee1); font: inherit; font-size: 0.9375rem; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.puente-reenviar-fila:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-ffffff); }
.puente-reenviar-vacio { padding: 0.75rem; color: var(--cv-texto-949ba4); text-align: center; }
#puente-quitar-vista .puente-qv-texto { margin: 0.5rem 0 0; color: var(--cv-texto-b5bac1); font-size: 0.9375rem; }
.puente-embeds > *, .message-content .link-preview, .thread-msg-content .link-preview { position: relative; }
.puente-qv-x {
  position: absolute; top: 0.375rem; right: 0.375rem; z-index: 3; display: none; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; padding: 0; border: 0; border-radius: 50%; background: var(--cv-fondo-111214-75); color: var(--cv-texto-b5bac1); cursor: pointer;
}
.puente-qv-x:hover { color: var(--cv-texto-ffffff); background: var(--cv-fondo-111214-95); }
[data-msg-id]:hover .puente-qv-x { display: flex; }

/* Mensajes directos: sin el candadito al lado de cada mensaje (Haven lo pone en los cifrados) */
html body .e2e-tag { display: none !important; }

/* ── Arriba de la lista de canales: la Guía del club y "Ahora en el club" (aviso.js, club.js) ── */
html body .puente-oculto { display: none !important; }
html body .puente-club-arriba { padding: 0.5rem 0.5rem 0.25rem; }
html body .puente-guia-fila {
  display: flex; align-items: center; gap: 0.625rem; width: 100%; box-sizing: border-box; padding: 0.625rem 0.75rem;
  background: var(--cv-fondo-232228); border: 0; border-radius: 0.5rem; color: var(--cv-texto-dbdee1); font: inherit; font-size: 1rem; text-align: left; cursor: pointer;
}
html body .puente-guia-fila:hover { background: var(--cv-fondo-2b2a31); color: var(--cv-texto-f2f3f5); }
html body .puente-guia-icono { font-size: 1.125rem; line-height: 1; }
html body .puente-guia-nombre { flex: none; white-space: nowrap; }
html body .puente-guia-sub { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--cv-texto-949ba4); font-size: 0.75rem; white-space: nowrap; text-align: right; }
html body .puente-guia-punto { display: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--cv-fondo-f2f3f5); flex: none; }
html body .puente-guia-fila.puente-guia-nuevo .puente-guia-nombre { color: var(--cv-texto-fbfbfb); font-weight: 700; }
html body .puente-guia-fila.puente-guia-nuevo .puente-guia-punto { display: block; }
html body .puente-club-tarjeta { margin-top: 0.5rem; padding: 0.625rem 0.75rem; background: var(--cv-fondo-232228); border-radius: 0.625rem; cursor: pointer; }
html body .puente-club-tarjeta:hover { background: var(--cv-fondo-26252b); }
/* "Perfil completo" en la tarjeta de perfil (cv-medallas.js): la pagina de esa persona, el perfil unico */
html body .puente-perfil-completo { display: block; margin: 0.5rem 0 0; padding: 0.5rem 0.75rem; border-radius: 0.5rem; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff) !important; font-size: 0.875rem; font-weight: 700; text-align: center; text-decoration: none !important; }
html body .puente-perfil-completo:hover { background: var(--cv-fondo-4752c4); }
/* CV Foro en el menu (cv-club.js): una linea como la de la Guia del club (el dueño, 5/12/2026). Con temas nuevos desde la
   ultima vez que se abrio el foro, el nombre en negrita, la cuenta mas clara y el punto rosa */
html body .puente-foro-fila { margin-top: 0.5rem; }
html body .puente-foro-fila[hidden] { display: none; }
html body .puente-foro-fila .puente-guia-punto { background: var(--cv-fondo-ee2d6f); }
html body .puente-foro-fila.puente-guia-nuevo .puente-guia-sub { color: var(--cv-texto-dbdee1); }
html body .puente-club-cab { display: flex; align-items: center; gap: 0.5rem; }
html body .puente-club-titulo { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; color: var(--cv-texto-949ba4); }
html body .puente-club-n { display: inline-flex; flex: none; align-items: center; gap: 0.3125rem; margin-left: 0.5rem; font-size: 0.8125rem; color: var(--cv-texto-b5bac1); white-space: nowrap; }
html body .puente-club-flecha { color: var(--cv-texto-80848e); margin-left: 0.125rem; }
html body .puente-club-punto { display: inline-block; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--cv-fondo-23a55a); }
html body .puente-club-fotos { display: flex; align-items: center; margin-top: 0.5rem; min-width: 0; }
html body .puente-club-caras { display: flex; flex: 0 1 auto; min-width: 0; overflow: hidden; }
html body .puente-club-foto {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  overflow: hidden; box-sizing: border-box; border: 2px solid var(--cv-borde-232228); background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); font-size: 0.75rem; font-weight: 700;
}
html body .puente-club-caras .puente-club-foto + .puente-club-foto { margin-left: -0.375rem; }
html body .puente-club-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
html body .puente-club-foto.puente-club-mas { background: var(--cv-fondo-4a4a55); font-size: 0.6875rem; }
html body .puente-club-foto.chica { width: 1.375rem; height: 1.375rem; border: 0; font-size: 0.625rem; }
html body .puente-club-mesa { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--cv-borde-2f2e35); font-size: 0.8125rem; color: var(--cv-texto-dbdee1); }
html body .puente-club-mesa-ico { font-size: 1rem; line-height: 1; }
html body .puente-club-mesa-txt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .puente-club-mesa-txt b { color: var(--cv-texto-f2f3f5); font-weight: 600; }
html body .puente-club-entrar {
  flex: none; border: 0; font-family: inherit; cursor: pointer; padding: 0.25rem 0.75rem; border-radius: 0.375rem; background: var(--cv-fondo-ee2d6f); color: var(--cv-sobre-acento-ffffff) !important; font-weight: 700; font-size: 0.8125rem; text-decoration: none !important;
}
html body .puente-club-entrar:hover { background: var(--cv-fondo-d4245f); }
/* La partida de la tarjeta se toca: la ventanita con el detalle (aviso.js: ventanaMesa) */
html body .puente-club-mesa { cursor: pointer; }
html body .puente-club-ventana-fondo { box-sizing: border-box; position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: var(--cv-fondo-000000-60); animation: puente-hoja-entra 0.14s ease-out; }
html body .puente-club-ventana { box-sizing: border-box; width: 100%; max-width: 22rem; padding: 1rem 1.125rem; border-radius: 0.75rem; background: var(--cv-fondo-232328); color: var(--cv-texto-dbdee1); box-shadow: 0 0.5rem 2rem var(--cv-sombra-000000-60); }
html body .puente-club-ventana-cab { display: flex; align-items: center; gap: 0.5rem; }
html body .puente-club-ventana-ico { font-size: 1.5rem; line-height: 1; }
html body .puente-club-ventana-t { font-size: 1.125rem; font-weight: 800; color: var(--cv-texto-f2f3f5); }
html body .puente-club-ventana-s { margin-top: 0.375rem; font-size: 0.875rem; color: var(--cv-texto-b5bac1); }
html body .puente-club-ventana-sub { margin-top: 0.875rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cv-texto-949ba4); }
html body .puente-club-ventana-lista { margin: 0.375rem 0 0; padding: 0; list-style: none; }
html body .puente-club-ventana-lista li { padding: 0.375rem 0; border-bottom: 1px solid var(--cv-borde-2f2e35); font-size: 0.9375rem; color: var(--cv-texto-f2f3f5); overflow-wrap: anywhere; }
html body .puente-club-ventana-lista li:last-child { border-bottom: 0; }
html body .puente-club-ventana-lista li.puente-club-ventana-quien { display: flex; align-items: center; gap: 0.5rem; }
html body .puente-club-ventana-lista li.puente-club-gris { color: var(--cv-texto-949ba4); }
html body .puente-club-ventana-acc { display: flex; justify-content: flex-end; align-items: center; gap: 0.5rem; margin-top: 1rem; }
/* Te toca: el boton titila suave (sin animacion si la persona la pidio reducida) */
html body .puente-club-tetoca { animation: puente-tetoca 1.6s ease-in-out infinite; }
@keyframes puente-tetoca { 0%, 100% { background: var(--cv-fondo-ee2d6f); box-shadow: 0 0 0 0 var(--cv-sombra-ee2d6f-00); } 50% { background: var(--cv-fondo-ff5c93); box-shadow: 0 0 0.6rem 0.1rem var(--cv-sombra-ee2d6f-55); } }
@media (prefers-reduced-motion: reduce) { html body .puente-club-tetoca { animation: none; } }
html body .puente-club-entrar:disabled { opacity: 0.6; cursor: default; }
html body .puente-club-ventana-pregunta { margin-top: 0.875rem; font-size: 0.9375rem; color: var(--cv-texto-f2f3f5); }
html body .puente-club-ventana-acc .puente-club-entrar { padding: 0.5rem 1rem; font-size: 0.875rem; }
html body .puente-club-ventana-cerrar { padding: 0.5rem 1rem; border: 0; border-radius: 0.375rem; background: var(--cv-fondo-36353b); color: var(--cv-texto-dbdee1); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
/* Las hojas: una ventana en la PC, toda la pantalla en el celular */
html body .puente-hoja-fondo { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; background: var(--cv-fondo-000000-60); }
html body .puente-hoja-fondo { animation: puente-hoja-entra 0.14s ease-out; }
html body .puente-hoja-fondo.puente-hoja-saliendo { opacity: 0; transition: opacity 0.14s ease-in; pointer-events: none; }
@keyframes puente-hoja-entra { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html body .puente-hoja-fondo { animation: none; } }
/* Sin el resaltado que Android pinta al tocar (se veia como un destello) */
html body .puente-club-arriba, html body .puente-club-arriba *, html body .puente-hoja-fondo, html body .puente-hoja-fondo * { -webkit-tap-highlight-color: transparent; }
html body .puente-hoja {
  display: flex; flex-direction: column; width: min(32.5rem, calc(100vw - 2rem)); max-height: 88vh; box-sizing: border-box;
  background: var(--cv-fondo-1a1a1e); border-radius: 0.75rem; color: var(--cv-texto-dbdee1); overflow: hidden; box-shadow: 0 8px 32px var(--cv-sombra-000000-50);
}
html body .puente-hoja-cab { display: flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1rem; border-bottom: 1px solid var(--cv-borde-2b2b30); }
html body .puente-hoja-icono { font-size: 1.125rem; line-height: 1; }
html body .puente-hoja-titulo { flex: 1 1 auto; font-size: 1.0625rem; font-weight: 700; color: var(--cv-texto-f2f3f5); }
html body .puente-hoja-x { width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent; color: var(--cv-texto-b5bac1); font-size: 1.125rem; cursor: pointer; }
html body .puente-hoja-x:hover { background: var(--cv-fondo-2b2a31); color: var(--cv-texto-f2f3f5); }
html body .puente-hoja-cuerpo { flex: 1 1 auto; overflow-y: auto; padding: 0.25rem 1rem 1.25rem; overscroll-behavior: contain; }
@media (max-width: 768px) {
  html body .puente-hoja { width: 100vw; height: 100%; max-height: none; border-radius: 0; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
}
/* La Guía */
html body .puente-guia-sec-cab { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0 0.375rem; }
html body .puente-guia-sec-titulo { flex: 1 1 auto; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; color: var(--cv-texto-949ba4); }
html body .puente-guia-editar { border: 0; background: none; padding: 0; color: var(--cv-texto-00a8fc); font: inherit; font-size: 0.75rem; cursor: pointer; }
html body .puente-guia-msgs { color: var(--cv-texto-949ba4); font-size: 0.875rem; }
html body #puente-guia .message, html body #puente-guia .message-compact { margin: 0; padding-left: 0; padding-right: 0; background: none; }
html body #puente-guia .message.pinned { border-left: 0; }
html body #puente-guia .msg-toolbar, html body #puente-guia .msg-dots-btn, html body #puente-guia .message-actions { display: none !important; }
html body .puente-guia-pie { margin-top: 1.25rem; text-align: center; font-size: 0.75rem; color: var(--cv-texto-949ba4); }
/* El club hoy */
html body .puente-club-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.75rem; }
html body .puente-club-dato, html body .puente-club-caja { padding: 0.75rem; background: var(--cv-fondo-232228); border-radius: 0.625rem; }
html body .puente-club-caja { margin-top: 0.625rem; }
html body .puente-club-caja-tit { margin-bottom: 0.375rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; color: var(--cv-texto-949ba4); }
html body .puente-club-valor { display: flex; align-items: center; gap: 0.375rem; font-size: 1.375rem; font-weight: 700; color: var(--cv-texto-f2f3f5); }
html body .puente-club-caja .puente-club-mesa { margin-top: 0; padding: 0.375rem 0; border-top: 0; }
html body .puente-club-caja .puente-club-mesa + .puente-club-mesa { border-top: 1px solid var(--cv-borde-2f2e35); }
html body .puente-club-unidad { align-self: flex-end; margin-bottom: 0.1875rem; font-size: 0.8125rem; font-weight: 500; color: var(--cv-texto-949ba4); }
html body .puente-club-gente { display: flex; flex-wrap: wrap; gap: 0.375rem 0.875rem; }
html body .puente-club-persona { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: var(--cv-texto-dbdee1); }
html body .puente-club-gris { color: var(--cv-texto-949ba4); font-size: 0.8125rem; }
html body .puente-club-link { display: inline-block; margin-top: 0.625rem; padding: 0; border: 0; background: none; color: var(--cv-texto-00a8fc) !important; font: inherit; font-weight: 600; font-size: 0.8125rem; text-decoration: none !important; cursor: pointer; }
html body .puente-club-gris .puente-club-link { margin-top: 0; }
html body #puente-server-info .puente-server-linea { display: block; }

/* Celular: el cuadro de escribir como el de Discord, todo adentro de una sola barra redondeada
   (el +, las fotos, el emoji y enviar van adentro; enviar gris mientras no escribiste nada) */
@media (max-width: 768px) {
  html body #message-input-area {
    position: relative; gap: 0.125rem !important; align-items: flex-end !important;
    padding: 0.5rem 1.125rem calc(0.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body #message-input-area::before {
    content: ''; position: absolute; z-index: 0; pointer-events: none;
    left: 0.75rem; right: 0.75rem; top: 0.5rem; bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    background: var(--cv-fondo-252429); border-radius: 1.5rem;
  }
  html body #message-input-area > #composer-plus-btn, html body #message-input-area > #puente-fotos-btn,
  html body #message-input-area > .input-actions-box:not(.open), html body #message-input-area > #send-btn,
  html body #message-input-area > #message-input:not(.puente-ta-oculto) { position: relative; z-index: 1; }
  html body #message-input-area > #composer-plus-btn {
    flex: 0 0 2.25rem !important; width: 2.25rem !important; height: 2.25rem !important; min-width: 2.25rem;
    margin: 0 0 0.375rem -0.0625rem !important; background: var(--cv-fondo-35343a) !important; font-size: 1.375rem !important;
  }
  html body #message-input-area > #puente-fotos-btn {
    flex: 0 0 2.25rem; width: 2.25rem; height: 2.25rem; min-width: 2.25rem; margin: 0 0 0.375rem 0; background: transparent; color: var(--cv-texto-b5bac1);
  }
  html body #message-input-area > #puente-fotos-btn:active { background: var(--cv-fondo-35343a); }
  html body #message-input-area > #message-input:not(.puente-ta-oculto) {
    flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; min-height: 3rem !important;
    padding: 0.75rem 0.375rem !important; background: transparent !important; border-radius: 0 !important;
  }
  html body #message-input-area > .input-actions-box:not(.open) {
    inset: auto !important; transform: none !important; align-self: flex-end; flex: 0 0 auto;
    margin: 0 0 0.375rem 0 !important; height: 2.25rem; align-items: center;
  }
  html body #message-input-area .input-actions-box:not(.open) > button,
  html body #message-input-area .input-actions-box:not(.open) > #emoji-btn,
  html body #message-input-area #burn-btn { width: 2.25rem !important; height: 2.25rem !important; min-width: 2.25rem; font-size: 1.375rem !important; }
  html body #message-input-area .input-actions-box:not(.open) > button svg { width: 1.5rem; height: 1.5rem; }
  html body #message-input-area > #send-btn {
    flex: 0 0 2.375rem !important; width: 2.375rem !important; height: 2.375rem !important; min-width: 2.375rem;
    margin: 0 -0.0625rem 0.3125rem 0.125rem !important; transition: background-color 0.15s, color 0.15s;
  }
  html body #message-input-area > #send-btn svg { width: 1.125rem; height: 1.125rem; }
  /* Gris con el cuadro vacio, salvo que haya una foto o un archivo listo para mandar (se puede enviar sin texto) */
  html body:not(:has(#image-queue-bar > *)) #message-input-area > #message-input:not(.puente-ta-oculto):placeholder-shown ~ #send-btn { background: var(--cv-fondo-35343a) !important; color: var(--cv-texto-80848e) !important; }
}

/* Franja azul "N mensajes nuevos desde las HH:MM" arriba del canal, como la de Discord (aviso.js) */
html body .message-area { position: relative; }
html body #puente-franja-nuevos {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center;
  background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); box-shadow: 0 2px 6px var(--cv-sombra-000000-25);
}
html body #puente-franja-nuevos .puente-franja-ir {
  flex: 1 1 auto; min-width: 0; text-align: left; background: none; border: 0; color: inherit; cursor: pointer;
  font: inherit; font-size: 0.9375rem; font-weight: 600; padding: 0.625rem 0.5rem 0.625rem 1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html body #puente-franja-nuevos .puente-franja-x {
  flex: none; width: 2.75rem; height: 2.5rem; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: inherit; cursor: pointer; margin-right: 0.25rem;
}
html body #puente-franja-nuevos button:active { opacity: 0.75; }
@media (hover: hover) and (pointer: fine) {
  html body #puente-franja-nuevos { border-radius: 0 0 0.5rem 0.5rem; }
  html body #puente-franja-nuevos .puente-franja-ir { font-size: 0.875rem; padding: 0.375rem 0.5rem 0.375rem 1rem; }
  html body #puente-franja-nuevos .puente-franja-x { height: 2rem; }
  html body #puente-franja-nuevos .puente-franja-ir:hover { text-decoration: underline; }
}

/* ── Propuestas de emojis y stickers (propuestas.js; aviso.js: "Proponer" en el selector y Admin → Propuestas) ── */
.puente-prop-abrir { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.5rem; padding: 0.25rem 0.625rem; border: 1px solid var(--cv-borde-3a3940); border-radius: 0.375rem; background: transparent; color: var(--cv-texto-b5bac1); font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.puente-prop-abrir:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); border-color: var(--cv-borde-5865f2); }
.puente-prop-abrir.en-fila { margin: 0 0 0 auto; flex: 0 0 auto; align-self: center; border: 0; }
#emoji-picker > .puente-prop-abrir:not(.en-fila) { margin: 0.375rem; align-self: flex-end; }
.puente-prop-fondo { position: fixed; inset: 0; z-index: 100040; display: flex; align-items: center; justify-content: center; padding: 1rem; background: var(--cv-fondo-000000-60); animation: puente-fade 0.14s ease-out; }
.puente-prop-caja { box-sizing: border-box; width: 100%; max-width: 26rem; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; padding: 1rem 1.125rem; border-radius: 0.75rem; background: var(--cv-fondo-1a1a1e); color: var(--cv-texto-dbdee1); box-shadow: 0 8px 32px var(--cv-sombra-000000-50); }
.puente-prop-cab { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; }
.puente-prop-titulo { font-size: 1.125rem; font-weight: 700; color: var(--cv-texto-fbfbfb); }
.puente-prop-x { display: inline-flex; padding: 0.25rem; border: 0; border-radius: 0.375rem; background: transparent; color: var(--cv-texto-b5bac1); cursor: pointer; }
.puente-prop-x:hover { background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); }
.puente-prop-modos { display: flex; gap: 0.25rem; padding: 0.25rem; margin-bottom: 0.75rem; border-radius: 0.5rem; background: var(--cv-fondo-252429); }
.puente-prop-modo { flex: 1 1 0; padding: 0.375rem 0.5rem; border: 0; border-radius: 0.375rem; background: transparent; color: var(--cv-texto-b5bac1); font: inherit; font-weight: 600; cursor: pointer; }
.puente-prop-modo.actual { background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); }
.puente-prop-estado { margin-bottom: 0.75rem; font-size: 0.875rem; color: var(--cv-texto-b5bac1); }
.puente-prop-estado.mal { padding: 0.5rem 0.625rem; border-radius: 0.375rem; background: var(--cv-fondo-e91e63-12); color: var(--cv-texto-f48fb1); }
.puente-prop-estado[hidden] { display: none; }
.puente-prop-zona { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 0.875rem; }
.puente-prop-vista { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border-radius: 0.5rem; background: var(--cv-fondo-252429); overflow: hidden; }
.puente-prop-vista.sticker { width: 7.5rem; height: 7.5rem; }
.puente-prop-vista img { max-width: 100%; max-height: 100%; object-fit: contain; }
.puente-prop-vista img[hidden], .puente-prop-vacio[hidden] { display: none; }
.puente-prop-vacio { font-size: 0.75rem; color: var(--cv-texto-80848e); text-align: center; padding: 0.25rem; }
.puente-prop-lado { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0.375rem; }
.puente-prop-elegir { padding: 0.5rem 0.875rem; border: 0; border-radius: 0.375rem; background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); font: inherit; font-weight: 600; cursor: pointer; }
.puente-prop-elegir:hover { background: var(--cv-fondo-3a3940); }
.puente-prop-info { font-size: 0.8125rem; color: var(--cv-texto-949ba4); }
.puente-prop-info.mal { color: var(--cv-texto-f48fb1); }
.puente-prop-label { display: block; margin-bottom: 0.375rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--cv-texto-b5bac1); }
.puente-prop-nombre { display: flex; align-items: center; gap: 0.125rem; padding: 0 0.625rem; border-radius: 0.375rem; background: var(--cv-fondo-252429); border: 1px solid var(--cv-borde-3a3940); }
.puente-prop-nombre:focus-within { border-color: var(--cv-borde-5865f2); }
.puente-prop-nombre input { flex: 1 1 auto; min-width: 0; padding: 0.625rem 0; border: 0; outline: 0; background: transparent; color: var(--cv-texto-fbfbfb); font: inherit; font-size: 1rem; }
.puente-prop-dos { color: var(--cv-texto-80848e); font-weight: 700; }
.puente-prop-dos[hidden] { display: none; }
.puente-prop-ayuda { margin-top: 0.625rem; font-size: 0.8125rem; color: var(--cv-texto-949ba4); }
.puente-prop-error { min-height: 1.25rem; margin-top: 0.5rem; font-size: 0.875rem; color: var(--cv-texto-f48fb1); }
.puente-prop-error:empty { min-height: 0; margin: 0; }
.puente-prop-pie { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.875rem; }
.puente-prop-btn { padding: 0.5rem 1rem; border: 0; border-radius: 0.375rem; background: var(--cv-fondo-2e2d32); color: var(--cv-texto-fbfbfb); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.puente-prop-btn:hover { background: var(--cv-fondo-3a3940); }
.puente-prop-btn:disabled { opacity: 0.55; cursor: default; }
.puente-prop-azul { background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); }
.puente-prop-azul:hover { background: var(--cv-fondo-4752c4); }
.puente-prop-rojo { background: transparent; color: var(--cv-texto-f48fb1); box-shadow: inset 0 0 0 1px var(--cv-sombra-e91e63-50); }
.puente-prop-rojo:hover { background: var(--cv-fondo-e91e63-15); }
@media (max-width: 480px) {
  .puente-prop-fondo { align-items: flex-end; padding: 0; }
  .puente-prop-caja { max-width: none; border-radius: 0.75rem 0.75rem 0 0; max-height: 92vh; max-height: 92dvh; padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
  .puente-prop-pie .puente-prop-btn { flex: 1 1 0; padding: 0.625rem; }
}
/* Admin → Propuestas */
.ppz-vista { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 1.25rem; scrollbar-width: thin; scrollbar-color: var(--cv-barra-3a3940) transparent; }
.ppz-vista[hidden] { display: none !important; }
.pm-celular .ppz-vista { padding: 0.75rem; }
.ppz-lista { display: flex; flex-direction: column; gap: 0.625rem; margin-top: 0.75rem; }
.ppz-item { display: flex; gap: 0.875rem; padding: 0.75rem; border-radius: 0.5rem; background: var(--cv-fondo-252429); border: 1px solid transparent; }
.ppz-item.lista { border-color: var(--cv-borde-5865f2); }
.ppz-img { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 0.375rem; background: var(--cv-fondo-1a1a1e); overflow: hidden; font-size: 1.5rem; }
.ppz-img.sticker { width: 6rem; height: 6rem; }
.ppz-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ppz-datos { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.ppz-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.ppz-nombre { font-weight: 700; color: var(--cv-texto-fbfbfb); overflow-wrap: anywhere; }
.ppz-chip { padding: 0.0625rem 0.5rem; border-radius: 1rem; background: var(--cv-fondo-2e2d32); color: var(--cv-texto-b5bac1); font-size: 0.75rem; font-weight: 600; }
.ppz-chip-lista { background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); }
.ppz-chip-aprobada { background: var(--cv-fondo-23a55a-20); color: var(--cv-texto-7ee2a8); }
.ppz-chip-rechazada { background: var(--cv-fondo-e91e63-15); color: var(--cv-texto-f48fb1); }
.ppz-meta { font-size: 0.8125rem; color: var(--cv-texto-949ba4); overflow-wrap: anywhere; }
.ppz-votos { font-size: 0.875rem; color: var(--cv-texto-dbdee1); white-space: pre-wrap; }
.ppz-ops { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.375rem; }
.ppz-ops[hidden], .ppz-motivo[hidden] { display: none; }
.ppz-motivo { display: flex; flex-direction: column; gap: 0.375rem; margin-top: 0.375rem; }
.ppz-motivo textarea { box-sizing: border-box; width: 100%; padding: 0.5rem; border: 1px solid var(--cv-borde-3a3940); border-radius: 0.375rem; background: var(--cv-fondo-1a1a1e); color: var(--cv-texto-fbfbfb); font: inherit; font-size: 0.875rem; resize: vertical; }
.ppz-motivo textarea:focus { outline: 0; border-color: var(--cv-borde-5865f2); }
@media (max-width: 480px) {
  .ppz-item { gap: 0.625rem; padding: 0.625rem; }
  .ppz-img.sticker { width: 4.5rem; height: 4.5rem; }
  .ppz-ops .puente-prop-btn { flex: 1 1 0; }
}

/* PC: la hora que aparece al pasar el mouse por un mensaje seguido, dentro de la columna de la foto y
   alineada a la derecha con un margen: con letra grande ("04:54 p.m.") quedaba pegada a la imagen */
@media (hover: hover) {
  html body .message-compact .compact-time {
    left: 0; width: var(--msg-gutter); box-sizing: border-box; padding-right: 0.5rem;
    text-align: right; white-space: nowrap; overflow: hidden; text-overflow: clip;
  }
}

/* Aviso de la copia de seguridad en la pagina "Miembros" de Admin (aviso.js, /puente/api/respaldo) */
html body .pm-respaldo { margin: 0 0 0.75rem; padding: 0.625rem 0.875rem; border-radius: 0.5rem; background: var(--cv-fondo-f23f43-14); border: 1px solid var(--cv-borde-f23f43-45); color: var(--cv-texto-f2f3f5); font-size: 0.875rem; line-height: 1.4; }
html body .pm-respaldo.leve { background: var(--cv-fondo-f0b232-12); border-color: var(--cv-borde-f0b232-45); }

/* Sin "Personas" de Haven (escribir como otro personaje): ni en Editar perfil ni la lista de :: (vincular.js no deja crearlas) */
html body .personas-section, html body #persona-dropdown { display: none !important; }

/* ── Hilos con el aspecto del chat ──
   El panel de un hilo tenia el aspecto de Haven: "🧵 Hilo" arriba, el mensaje que lo empezo con los ** a la vista,
   letras y avatares de otro tamaño y otro cuadro de escribir. Ahora: el nombre del hilo como titulo (app-threads.js),
   el mensaje que lo empezo con su formato, las respuestas con las medidas del canal (avatar, nombre, hora, texto y la
   linea curva de las respuestas) y el mismo cuadro de escribir redondeado. */
html body #thread-panel { background: var(--cv-fondo-1a191e); }
html body #thread-panel .thread-panel-header { padding: 0 !important; background: var(--cv-fondo-1a191e); border-bottom: 1px solid var(--cv-borde-2b2a30); }
html body #thread-panel .thread-panel-header-top { display: flex; align-items: center; gap: 0.125rem; min-height: 3.25rem; padding: 0 0.375rem 0 0.25rem; }
html body #thread-panel .thread-panel-icon { display: none; }
html body #thread-panel .thread-panel-title {
  flex: 1 1 auto; min-width: 0; margin: 0 0.25rem; font-size: 1.125rem; font-weight: 700; color: var(--cv-texto-fbfbfb);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html body #thread-panel .thread-panel-header-top .icon-btn {
  width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center;
  color: var(--cv-texto-b5bac1); background: transparent; border: 0; font-size: 1.25rem;
}
/* el mensaje que empezo el hilo: autor y texto como un mensaje del canal (hasta 6 lineas) */
html body #thread-panel .thread-parent-meta { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 1rem 0.125rem 0.75rem; }
html body #thread-panel .thread-parent-meta img, html body #thread-panel .thread-parent-meta .thread-parent-avatar { width: 1.875rem !important; height: 1.875rem !important; }
html body #thread-panel .thread-parent-name { font-size: 0.9375rem; font-weight: 500; color: var(--cv-texto-fbfbfb); }
html body #thread-panel .thread-parent-preview {
  margin: 0; padding: 0 1rem 0.75rem 3.125rem; font-size: 0.875rem; line-height: 1.1875rem; color: var(--cv-texto-dbdee1); white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
/* las respuestas, con las medidas del canal (y la respuesta a otro mensaje arriba, unida al avatar) */
html body #thread-messages .thread-message { --rb-shift: 23px; --rb-h: 1rem; --rb-gap: 0.25rem; }
html body #thread-messages .thread-message:not(.thread-compact) { margin-top: 0.375rem; }
html body #thread-messages .thread-msg-row { padding: 0.25rem 0.75rem 0.25rem 0.25rem; gap: 0.5rem; }
html body #thread-messages .thread-msg-avatar { width: 1.875rem !important; height: 1.875rem !important; flex: 0 0 1.875rem; margin-top: 0.125rem; }
html body #thread-messages .thread-msg-body { display: flex; flex-direction: column; min-width: 0; }
html body #thread-messages .thread-msg-body > .reply-banner { order: -1; }
html body #thread-messages .thread-message:has(.thread-msg-body > .reply-banner) .thread-msg-avatar { margin-top: calc(var(--rb-h) + var(--rb-gap) + 0.125rem); }
html body #thread-messages .thread-msg-author { font-size: 0.9375rem; font-weight: 500; }
html body #thread-messages .thread-msg-time { font-size: 0.6875rem; color: var(--cv-texto-81828a); }
html body #thread-messages .thread-msg-content { font-size: 0.875rem; line-height: 1.1875rem; color: var(--cv-texto-efeff1); }
/* el cuadro de escribir: el mismo del canal, todo adentro de una barra redondeada (enviar gris sin texto) */
html body #thread-panel .thread-input-area {
  position: relative; display: flex; align-items: flex-end; gap: 0.125rem;
  padding: 0.5rem 1.125rem calc(0.5rem + env(safe-area-inset-bottom, 0px)) !important; background: var(--cv-fondo-1a191e); border-top: 0 !important;
}
html body #thread-panel .thread-input-area::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  left: 0.75rem; right: 0.75rem; top: 0.5rem; bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--cv-fondo-252429); border-radius: 0.5rem;
}
html body #thread-panel .thread-input-area > * { position: relative; z-index: 1; }
html body #thread-panel .thread-input-area > .pip-input-resizer { display: none; }
html body #thread-panel #thread-input {
  order: 1; flex: 1 1 0; min-width: 0; min-height: 3rem; padding: 0.75rem 0.375rem 0.75rem 0.5rem !important;
  background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  color: var(--cv-texto-fbfbfb); font-size: 1.0625rem; line-height: 1.5rem;
}
html body #thread-panel #thread-input::placeholder { color: var(--cv-texto-96969e); }
html body #thread-panel #thread-emoji-btn { order: 2; width: 2.25rem; height: 2.25rem; margin: 0 0 0.375rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
html body #thread-panel #thread-emoji-btn svg { width: 1.5rem; height: 1.5rem; }
html body #thread-panel #thread-gif-btn { order: 2; }
html body #thread-panel #thread-send-btn {
  order: 3; flex: 0 0 2.375rem; width: 2.375rem; height: 2.375rem; min-width: 2.375rem; border-radius: 50% !important;
  margin: 0 -0.0625rem 0.3125rem 0.125rem; background: var(--cv-fondo-5865f2); color: var(--cv-sobre-acento-ffffff); transition: background-color 0.15s, color 0.15s;
}
html body #thread-panel:not(:has(#thread-image-queue-bar > *)) #thread-input:placeholder-shown ~ #thread-send-btn { background: var(--cv-fondo-35343a); color: var(--cv-texto-80848e); }
/* celular: sin GIF ni ventanita (como el canal), y la flecha para volver a la izquierda en vez de la × */
@media (max-width: 768px) {
  html body #thread-panel #thread-gif-btn, html body #thread-panel #thread-panel-pip { display: none !important; }
  html body #thread-panel .thread-input-area::before { border-radius: 1.5rem; }
  html body #thread-panel #thread-panel-close { order: -1; position: relative; overflow: hidden; text-indent: -999px; }
  html body #thread-panel #thread-panel-close > .glyph-icon { display: none !important; }
  html body #thread-panel #thread-panel-close::before {
    content: ''; position: absolute; left: 50%; top: 50%; width: 1.5rem; height: 1.5rem; transform: translate(-50%, -50%); background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M12 19l-7-7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M12 19l-7-7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

/* ══ Responder, sugerencias y editar como en Discord (3/12) ═══════════════════════════════════════════
   Haven trae estas piezas con su estilo: la barra de responder con la linea azul, la campanita y el texto del
   mensaje; las listas de sugerencias de @ # : y / con la fila marcada en azul fuerte; la edicion con el borde
   azul y los botones Guardar/Cancelar; las fotos por mandar en una franja aparte con el borde azul. Ahora: la
   barra pegada arriba del cuadro de escribir ("Respondiendo a Nombre", el aviso como "@ SÍ / @ NO" y la ✕),
   las listas del ancho del cuadro con titulo y la fila marcada en gris, la edicion en un cuadro oscuro con
   "escape para cancelar • enter para guardar" abajo, y las fotos por mandar adentro del cuadro. */

/* -- Barra de responder (canal, hilo y ventanita de mensajes directos) y la de "Editando mensaje" del celu -- */
html body :is(#reply-bar, #thread-reply-bar, #dm-pip-reply-bar, #puente-editando) {
  align-items: center; justify-content: flex-start; gap: 0.25rem; min-height: 2.125rem; box-sizing: border-box;
  padding: 0.125rem 0.375rem 0.125rem 1rem; background: var(--cv-fondo-121214); border: 0; color: var(--cv-texto-b5bac1);
  font-size: 0.875rem; line-height: 1.125rem;
}
html body :is(#reply-preview-text, #thread-reply-preview-text, #dm-pip-reply-preview-text, #puente-editando .reply-bar-text) {
  order: 1; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cv-texto-b5bac1);
}
/* Solo "Respondiendo a Nombre", como Discord: el texto del mensaje queda oculto (si el nombre no vino en negrita, se ve todo) */
html:is([lang^="es"], [lang^="en"]) body :is(#reply-preview-text, #thread-reply-preview-text, #dm-pip-reply-preview-text):has(> strong) { font-size: 0 !important; }
html:is([lang^="es"], [lang^="en"]) body :is(#reply-preview-text, #thread-reply-preview-text, #dm-pip-reply-preview-text):has(> strong)::before { content: 'Respondiendo a '; font-size: 0.875rem; }
html[lang^="en"] body :is(#reply-preview-text, #thread-reply-preview-text, #dm-pip-reply-preview-text):has(> strong)::before { content: 'Replying to '; }
html:is([lang^="es"], [lang^="en"]) body :is(#reply-preview-text, #thread-reply-preview-text, #dm-pip-reply-preview-text):has(> strong) > strong { font-size: 0.875rem; }
html body :is(#reply-preview-text, #thread-reply-preview-text, #dm-pip-reply-preview-text) > strong { font-weight: 600; color: var(--cv-texto-fbfbfb); }
/* La campanita de Haven (si a quien respondes le llega la notificacion) como el "@ SÍ / @ NO" de Discord */
html body :is(#reply-bar, #thread-reply-bar, #dm-pip-reply-bar) > .reply-ping-btn {
  order: 2; display: inline-flex; align-items: baseline; gap: 0.25rem; width: auto; height: auto; margin: 0; padding: 0.3125rem 0.375rem;
  border: 0; border-radius: 0.25rem; background: transparent !important; color: var(--cv-texto-00a8fc); font-size: 0; font-weight: 700; cursor: pointer;
}
html body :is(#reply-bar, #thread-reply-bar, #dm-pip-reply-bar) > .reply-ping-btn > svg { display: none; }
html body :is(#reply-bar, #thread-reply-bar, #dm-pip-reply-bar) > .reply-ping-btn::before { content: '@'; font-size: 1rem; line-height: 1.125rem; }
html body :is(#reply-bar, #thread-reply-bar, #dm-pip-reply-bar) > .reply-ping-btn::after { content: 'SÍ'; font-size: 0.875rem; line-height: 1.125rem; letter-spacing: 0.02em; }
html body :is(#reply-bar, #thread-reply-bar, #dm-pip-reply-bar) > .reply-ping-btn[aria-pressed="false"] { color: var(--cv-texto-949ba4); }
html body :is(#reply-bar, #thread-reply-bar, #dm-pip-reply-bar) > .reply-ping-btn[aria-pressed="false"]::after { content: 'NO'; }
html[lang^="en"] body :is(#reply-bar, #thread-reply-bar, #dm-pip-reply-bar) > .reply-ping-btn::after { content: 'ON'; }
html[lang^="en"] body :is(#reply-bar, #thread-reply-bar, #dm-pip-reply-bar) > .reply-ping-btn[aria-pressed="false"]::after { content: 'OFF'; }
html body :is(#reply-bar, #thread-reply-bar, #dm-pip-reply-bar) > .reply-ping-btn:hover { filter: brightness(1.2); }
/* La ✕ como el circulo con la cruz de Discord, separada del "@" por una rayita */
html body :is(#reply-close-btn, #thread-reply-close-btn, #dm-pip-reply-close-btn, .puente-editando-x) {
  order: 3; position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 1.75rem; height: 1.75rem; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent !important; color: var(--cv-texto-b5bac1); font-size: 0 !important; cursor: pointer;
}
html body :is(#reply-close-btn, #thread-reply-close-btn, #dm-pip-reply-close-btn) { margin-left: 0.5rem; }
html body :is(#reply-close-btn, #thread-reply-close-btn, #dm-pip-reply-close-btn)::before {
  content: ''; position: absolute; left: -0.3125rem; top: 0.375rem; bottom: 0.375rem; width: 1px; background: var(--cv-fondo-3f3e44); pointer-events: none;
}
html body :is(#reply-close-btn, #thread-reply-close-btn, #dm-pip-reply-close-btn, .puente-editando-x)::after {
  content: ''; width: 1.125rem; height: 1.125rem; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body :is(#reply-close-btn, #thread-reply-close-btn, #dm-pip-reply-close-btn, .puente-editando-x):hover { color: var(--cv-texto-dbdee1); }
html body #puente-editando .reply-bar-text { color: var(--cv-texto-dbdee1); font-weight: 600; }
/* PC: la barra va pegada arriba del cuadro de escribir, del mismo ancho, y el cuadro pierde sus puntas de arriba */
@media (min-width: 769px) {
  html body :is(#reply-bar, #puente-editando) { margin: 0 1rem; border-radius: 0.5rem 0.5rem 0 0; }
  html body:has(#reply-bar:not([style*="none"])) #message-input-area::before,
  html body:has(#image-queue-bar > *) #message-input-area::before { border-top-left-radius: 0; border-top-right-radius: 0; }
  html body #thread-panel #thread-reply-bar { margin: 0 0.75rem; border-radius: 0.5rem 0.5rem 0 0; }
  html body #thread-panel:has(#thread-reply-bar:not([style*="none"])) .thread-input-area { padding-top: 0 !important; }
  html body #thread-panel:has(#thread-reply-bar:not([style*="none"])) .thread-input-area::before { top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
}
/* Celu: una tira redondeada arriba de la fila de escribir */
@media (max-width: 768px) {
  html body :is(#reply-bar, #puente-editando, #thread-reply-bar) {
    margin: 0.375rem 0.75rem 0; padding: 0.125rem 0.25rem 0.125rem 0.875rem; min-height: 2.25rem; border-radius: 0.75rem;
    background: var(--cv-fondo-252429); font-size: 0.8125rem;
  }
  html:is([lang^="es"], [lang^="en"]) body :is(#reply-preview-text, #thread-reply-preview-text):has(> strong)::before,
  html:is([lang^="es"], [lang^="en"]) body :is(#reply-preview-text, #thread-reply-preview-text):has(> strong) > strong { font-size: 0.8125rem; }
}

/* -- Listas de sugerencias de @miembros, #canales, :emojis:, /comandos (y las de personas y ferry) -- */
html body :is(.mention-dropdown, .emoji-dropdown, .slash-dropdown) {
  padding: 0 0.5rem 0.5rem; background: var(--cv-fondo-1e1e22); border: 1px solid var(--cv-borde-29292d); border-radius: 0.5rem;
  box-shadow: 0 8px 24px var(--cv-sombra-000000-50); color: var(--cv-texto-dbdee1);
}
html body :is(.mention-dropdown, .emoji-dropdown, .slash-dropdown):not(:is(#mention-dropdown, #channel-dropdown, #emoji-dropdown, #slash-dropdown)) { padding-top: 0.5rem; }
/* Del ancho del cuadro de escribir, justo arriba (y arriba de la barra de responder, si esta) */
html body #message-input-area > :is(.mention-dropdown, .emoji-dropdown, .slash-dropdown) {
  left: 1rem; right: 1rem; width: auto; min-width: 0; max-width: none; margin-bottom: 0.5rem;
}
html body:has(#reply-bar:not([style*="none"])) #message-input-area > :is(.mention-dropdown, .emoji-dropdown, .slash-dropdown) { margin-bottom: 2.625rem; }
html body #thread-panel .thread-input-area > :is(.mention-dropdown, .emoji-dropdown, .slash-dropdown) {
  position: absolute; z-index: 1001; left: 0.75rem; right: 0.75rem; width: auto; min-width: 0; max-width: none; margin-bottom: 0.25rem;
}
html body #thread-panel:has(#thread-reply-bar:not([style*="none"])) .thread-input-area > :is(.mention-dropdown, .emoji-dropdown, .slash-dropdown) { margin-bottom: 2.375rem; }
@media (max-width: 768px) { html body #thread-panel:has(#thread-reply-bar:not([style*="none"])) .thread-input-area > :is(.mention-dropdown, .emoji-dropdown, .slash-dropdown) { margin-bottom: 2.875rem; } }
html body .dm-pip-input-area > :is(.mention-dropdown, .emoji-dropdown, .slash-dropdown) { left: 0.375rem; right: 0.375rem; width: auto; min-width: 0; max-width: none; }
html body .editing :is(.message-content, .thread-msg-content) > :is(.mention-dropdown, .emoji-dropdown) { left: 0; right: 0; width: auto; min-width: 0; max-width: 40rem; margin-bottom: 0.375rem; }
@media (max-width: 768px) {
  html body #message-input-area > :is(.mention-dropdown, .emoji-dropdown, .slash-dropdown) { left: 0.5rem; right: 0.5rem; margin-bottom: 0.375rem; }
  html body:has(#reply-bar:not([style*="none"])) #message-input-area > :is(.mention-dropdown, .emoji-dropdown, .slash-dropdown) { margin-bottom: 3rem; }
}
/* Titulo arriba, como en Discord */
html body :is(#mention-dropdown, #channel-dropdown, #emoji-dropdown, #slash-dropdown)::before {
  display: block; position: sticky; top: 0; z-index: 1; margin: 0 -0.5rem; padding: 0.75rem 1rem 0.5rem; background: var(--cv-fondo-1e1e22);
  color: var(--cv-texto-b5bac1); font-size: 0.75rem; font-weight: 700; line-height: 1rem; letter-spacing: 0.02em; text-transform: uppercase;
}
html body #mention-dropdown::before { content: 'Miembros'; }
html body #channel-dropdown::before { content: 'Canales'; }
html body #emoji-dropdown::before { content: 'Emojis'; }
html body #slash-dropdown::before { content: 'Comandos'; }
html[lang^="en"] body #mention-dropdown::before { content: 'Members'; }
html[lang^="en"] body #channel-dropdown::before { content: 'Channels'; }
html[lang^="en"] body #emoji-dropdown::before { content: 'Emoji'; }
html[lang^="en"] body #slash-dropdown::before { content: 'Commands'; }
/* Filas: la marcada (con las flechas o el mouse) en gris, no en azul */
html body :is(.mention-item, .emoji-ac-item, .slash-item) {
  display: flex; align-items: center; gap: 0.625rem; min-height: 2.25rem; box-sizing: border-box; padding: 0.375rem 0.5rem;
  border: 0; border-radius: 0.25rem; background: transparent; color: var(--cv-texto-dbdee1); font-size: 0.9375rem; transition: none;
}
html body :is(.mention-item, .emoji-ac-item, .slash-item):is(:hover, .active) { background: var(--cv-fondo-35343a); color: var(--cv-texto-fbfbfb); }
@media (pointer: coarse) { html body :is(.mention-item, .emoji-ac-item, .slash-item) { min-height: 2.75rem; } }
html body .mention-item strong { font-weight: 600; }
html body .mention-item-handle { margin-left: auto; padding-left: 0.75rem; opacity: 1; color: var(--cv-texto-949ba4); font-size: 0.8125rem; }
html body .emoji-ac-preview { width: 1.5rem; }
html body .emoji-ac-preview img { width: 1.5rem !important; height: 1.5rem !important; object-fit: contain; display: block; }
html body .emoji-ac-preview-char { font-size: 1.375rem; line-height: 1.5rem; }
html body .emoji-ac-name { opacity: 1; font-size: 0.9375rem; }
html body .emoji-ac-section { margin: 0.25rem -0.5rem 0; padding: 0.75rem 1rem 0.5rem; border-top: 1px solid var(--cv-borde-29292d); color: var(--cv-texto-b5bac1); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
html body .slash-cmd, html body :is(.slash-item:hover, .slash-item.active) .slash-cmd { color: var(--cv-texto-fbfbfb); font-weight: 600; min-width: 0; }
html body .slash-args, html body :is(.slash-item:hover, .slash-item.active) .slash-args { color: var(--cv-texto-949ba4); font-style: normal; font-size: 0.8125rem; }
html body .slash-desc { color: var(--cv-texto-949ba4); font-size: 0.8125rem; }

/* -- Editar un mensaje en la PC: cuadro oscuro sin borde, el boton de emojis adentro a la derecha, y abajo
      "escape para cancelar • enter para guardar" (los botones de Haven quedan como esos dos enlaces) -- */
html body .editing:is(.message, .message-compact, [data-msg-id]) :is(.message-content, .thread-msg-content) { position: relative; padding-top: 0.25rem; }
html body .edit-textarea {
  display: block; box-sizing: border-box; padding: 0.6875rem 3rem 0.6875rem 1rem; background: var(--cv-fondo-252429); border: 0 !important; border-radius: 0.5rem;
  box-shadow: none !important; outline: none; color: var(--cv-texto-dbdee1); font-size: inherit; line-height: 1.375rem; max-height: 50vh;
}
html body .edit-textarea:focus { border: 0 !important; box-shadow: none !important; outline: none; }
html body .pip-input-resizer.edit-resizer { height: 0.5rem; margin: 0; }
html body .pip-input-resizer.edit-resizer::before { opacity: 0; background: var(--cv-fondo-4e5058); }
html body .pip-input-resizer.edit-resizer:hover::before { opacity: 1; background: var(--cv-fondo-80848e); }
html body .edit-actions {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem; margin: 0.125rem 0 0; padding: 0; color: var(--cv-texto-dbdee1); font-size: 0.75rem; line-height: 1rem;
}
html body .edit-actions .edit-cancel-btn { order: 1; }
html body .edit-actions::after { content: '•'; order: 2; }
html body .edit-actions .edit-save-btn { order: 3; }
html body .edit-actions :is(.edit-save-btn, .edit-cancel-btn) {
  padding: 0; margin: 0; border: 0; border-radius: 0; background: none !important; color: var(--cv-texto-00a8fc) !important;
  font: inherit; font-size: 0.75rem; font-weight: 400; text-transform: lowercase; cursor: pointer;
}
html body .edit-actions :is(.edit-save-btn, .edit-cancel-btn):hover { text-decoration: underline; }
@media (pointer: fine) {
  html:is([lang^="es"], [lang^="en"]) body .edit-actions::before { content: 'escape para'; order: 0; }
  html:is([lang^="es"], [lang^="en"]) body .edit-actions::after { content: '• enter para'; }
  html[lang^="en"] body .edit-actions::before { content: 'escape to'; }
  html[lang^="en"] body .edit-actions::after { content: '• enter to'; }
}
html body .edit-actions .edit-emoji-btn {
  position: absolute; top: 0.25rem; right: 0.25rem; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.75rem; padding: 0; margin: 0; border: 0; border-radius: 0.25rem; background: transparent !important; color: var(--cv-texto-b5bac1); font-size: 0 !important; cursor: pointer;
}
html body .edit-actions .edit-emoji-btn::before {
  content: ''; width: 1.375rem; height: 1.375rem; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 14s1.5 2 4 2 4-2 4-2'/%3E%3Ccircle cx='9' cy='10' r='1.2' fill='black' stroke='none'/%3E%3Ccircle cx='15' cy='10' r='1.2' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 14s1.5 2 4 2 4-2 4-2'/%3E%3Ccircle cx='9' cy='10' r='1.2' fill='black' stroke='none'/%3E%3Ccircle cx='15' cy='10' r='1.2' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body .edit-actions .edit-emoji-btn:hover { color: var(--cv-texto-dbdee1); }

/* -- Fotos y archivos por mandar: adentro del cuadro de escribir (PC) o arriba de la fila (celu), como tarjetas
      grises; sin el borde azul de Haven (el de "elegida para etiquetas" solo si esa barra esta a la vista) -- */
html body .image-queue-bar { gap: 0.75rem; padding: 0.75rem 0.75rem 0.625rem; background: transparent; border: 0; }
html body .image-queue-thumb {
  width: 4.5rem; height: 4.5rem; border: 0; border-radius: 0.375rem; background: var(--cv-fondo-1e1e22); transition: none;
}
html body #image-queue-bar .image-queue-thumb { width: 7.5rem; height: 7.5rem; }
html body .image-queue-thumb:hover, html body .image-queue-thumb.is-spoiler { border: 0; }
html body .file-queue-chip { height: 2.75rem; padding: 0 2.25rem 0 0.75rem; border: 0; border-radius: 0.375rem; background: var(--cv-fondo-1e1e22); color: var(--cv-texto-dbdee1); }
html body .file-queue-chip:hover { border: 0; background: var(--cv-fondo-232228); }
html body:not(:has(#tag-queue-bar:not([style*="none"]))) :is(.image-queue-thumb, .file-queue-chip).is-active { outline: 0; }
html body .image-queue-remove {
  top: 0.25rem; right: 0.25rem; width: 1.75rem; height: 1.75rem; border-radius: 0.375rem; background: var(--cv-fondo-1e1e22-92); color: var(--cv-texto-dbdee1); font-size: 1.125rem;
}
html body .image-queue-remove:hover { background: var(--cv-fondo-f23f43); color: var(--cv-sobre-acento-ffffff); }
html body .file-queue-chip .image-queue-remove { top: 50%; right: 0.5rem; }
html body .image-queue-spoiler { left: 0.25rem; bottom: 0.25rem; width: 1.75rem; height: 1.75rem; border-radius: 0.375rem; background: var(--cv-fondo-1e1e22-92); }
html body .image-queue-spoiler:hover { background: var(--cv-fondo-35343a); }
html body .image-queue-clear-all { align-self: center; padding: 0.375rem 0.75rem; border: 0; border-radius: 0.25rem; background: var(--cv-fondo-35343a); color: var(--cv-texto-dbdee1); font-size: 0.8125rem; }
html body .image-queue-clear-all:hover { background: var(--cv-fondo-3f3e44); }
@media (pointer: coarse) { html body .image-queue-remove { opacity: 1; } }
@media (min-width: 769px) {
  html body #image-queue-bar { margin: 0 1rem; background: var(--cv-fondo-252429); border-bottom: 1px solid var(--cv-borde-2e2d33); border-radius: 0.5rem 0.5rem 0 0; }
  html body:has(#reply-bar:not([style*="none"])) #image-queue-bar { border-radius: 0; }
  html body #thread-panel #thread-image-queue-bar { margin: 0 0.75rem; background: var(--cv-fondo-252429); border-bottom: 1px solid var(--cv-borde-2e2d33); border-radius: 0.5rem 0.5rem 0 0; }
  html body #thread-panel:has(#thread-reply-bar:not([style*="none"])) #thread-image-queue-bar { border-radius: 0; }
  html body #thread-panel:has(#thread-image-queue-bar > *) .thread-input-area { padding-top: 0 !important; }
  html body #thread-panel:has(#thread-image-queue-bar > *) .thread-input-area::before { top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
}
@media (max-width: 768px) {
  html body .image-queue-bar { padding: 0.5rem 0.75rem 0; }
  html body #image-queue-bar .image-queue-thumb { width: 5.5rem; height: 5.5rem; border-radius: 0.5rem; }
}

/* -- El cartel de los mensajes largos (cv-foro-app.js, 4/12/2026): sugiere pasarlos al foro. Arriba del cuadro, como
   "Respondiendo a"; en el celular, el boton abajo del texto -- */
html body #puente-largo {
  display: flex; align-items: center; gap: 0.5rem; min-height: 2.125rem; box-sizing: border-box;
  padding: 0.25rem 0.375rem 0.25rem 1rem; background: var(--cv-fondo-121214); color: var(--cv-texto-b5bac1);
  font-size: 0.875rem; line-height: 1.125rem;
}
html body #puente-largo[hidden] { display: none; }
html body #puente-largo .pl-texto { flex: 1 1 auto; min-width: 0; }
html body #puente-largo .pl-ir {
  flex: none; padding: 0.3125rem 0.75rem; border: 0; border-radius: 0.25rem; background: var(--cv-fondo-5865f2);
  color: var(--cv-texto-fbfbfb); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer;
}
html body #puente-largo .pl-ir:hover { background: var(--cv-fondo-4752c4); }
html body #puente-largo .pl-x {
  flex: none; width: 1.75rem; height: 1.75rem; padding: 0; border: 0; border-radius: 0.25rem; background: transparent;
  color: var(--cv-texto-b5bac1); font-size: 1.25rem; line-height: 1; cursor: pointer;
}
html body #puente-largo .pl-x:hover { color: var(--cv-texto-fbfbfb); }
@media (max-width: 768px) {
  html body #puente-largo { flex-wrap: wrap; row-gap: 0.25rem; padding: 0.375rem 0.25rem 0.375rem 0.75rem; font-size: 0.8125rem; }
  html body #puente-largo .pl-texto { order: 1; flex-basis: calc(100% - 2.5rem); }
  html body #puente-largo .pl-x { order: 2; }
  html body #puente-largo .pl-ir { order: 3; margin-left: auto; margin-right: 0.25rem; }
}

/* ── La parte de arriba del chat en la PC (el dueño aprobó la propuesta el 5/12/2026) ──
   Las tres cabeceras de 56 px con la raya de abajo a la misma altura (la del servidor, la del canal y la de Miembros);
   "477 miembros" debajo del nombre, alineado con el texto; la descripcion del canal en la linea del nombre y la hora pico
   corta, las dos tocables (cv-canal-celu.js: la ventana con todo); el boton de Miembros en la cabecera (cv-varios-2.js)
   en vez de la flechita que flotaba encima del buscador; una raya debajo de Admin, Actividad y Guardados */
#puente-cab-miembros { display: none; }
html.puente-invitado #puente-cab-miembros { display: none !important; }
@media (min-width: 769px) {
  /* (sin la raya de arriba de la columna de canales: la cabecera empezaba 1 px mas abajo que la del canal) */
  html body [data-haven-region="navigation-sidebar"] { border-top-width: 0 !important; }
  html body [data-haven-region="navigation-sidebar"] .sidebar-header { height: 56px !important; min-height: 0 !important; padding: 7px 16px 0 !important; box-sizing: border-box !important; overflow: hidden !important; border-bottom: 1px solid var(--cv-borde-2b2b30) !important; }
  html body [data-haven-region="navigation-sidebar"] .sidebar-header .brand { margin: 0 !important; height: 24px !important; }
  html body [data-haven-region="navigation-sidebar"] .sidebar-header .brand-icon { width: 22px !important; height: 22px !important; }
  html body [data-haven-region="navigation-sidebar"] .sidebar-header .brand-text { font-size: 15px !important; line-height: 24px !important; }
  html body #puente-server-info { margin: 1px 0 0 !important; padding-left: 32px !important; font-size: 12px !important; line-height: 16px !important; color: var(--cv-texto-949ba4) !important; }
  html body header.channel-header { height: 56px !important; min-height: 56px !important; flex-wrap: nowrap !important; box-sizing: border-box !important; padding-top: 0 !important; padding-bottom: 0 !important; border-bottom: 1px solid var(--cv-borde-2b2b30) !important; }
  html body header.channel-header > .channel-info { flex: 1 1 auto !important; max-width: none !important; width: auto !important; min-width: 0 !important; display: flex !important; align-items: center !important; overflow: hidden !important; }
  html body header.channel-header > .channel-info ~ div:not([class]):not([id]) { flex: 0 0 0 !important; width: 0 !important; min-width: 0 !important; }
  html body header.channel-header > .channel-info h3 { flex: none !important; }
  html body #channel-topic-bar { display: none !important; }
  html body header.channel-header .puente-tema { display: block; min-width: 0; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--cv-borde-3a3940); color: var(--cv-texto-b5bac1); font-size: 14px; font-weight: 400; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
  html body header.channel-header .puente-tema:hover { color: var(--cv-texto-f2f3f5); }
  html body header.channel-header .puente-tema[hidden] { display: none; }
  html body header.channel-header .puente-pico { flex: none; margin-left: 10px; padding: 2px 8px; border-radius: 999px; background: var(--cv-fondo-2b2a31); color: var(--cv-texto-949ba4); font-size: 12px; font-weight: 500; cursor: pointer; }
  html body header.channel-header .puente-pico:hover { color: var(--cv-texto-f2f3f5); }
  html body #sidebar-toggle-btn { display: none !important; }
  #puente-cab-miembros { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0 4px; padding: 0; border: 0; border-radius: 8px; background: var(--cv-fondo-2b2a31); color: var(--cv-texto-b5bac1); cursor: pointer; }
  #puente-cab-miembros:hover { background: var(--cv-fondo-36353b); color: var(--cv-texto-f2f3f5); }
  html body #search-container.puente-busca-caja { flex: 0 1 11.5rem; min-width: 8rem; }
  html body #right-sidebar-voice, html body #right-sidebar-voice > .panel { height: 56px !important; min-height: 56px !important; box-sizing: border-box !important; }
  html body #right-sidebar-voice .voice-panel-header { height: 56px !important; box-sizing: border-box !important; border-bottom: 1px solid var(--cv-borde-2b2b30) !important; display: flex !important; align-items: center !important; }
  html body #puente-atajos { padding-bottom: 8px !important; margin-bottom: 0 !important; border-bottom: 1px solid var(--cv-borde-2b2b30) !important; }
  /* la ventana de la descripcion y la hora pico: en el medio de la pantalla (en el celular es la hoja de abajo) */
  html body #puente-tema-hoja { top: 0; bottom: 0; left: 0; right: 0; width: calc(100% - 2rem); max-width: 30rem; height: fit-content; max-height: 80vh; margin: auto; padding: 1.25rem; border-radius: 1rem; box-shadow: 0 8px 32px var(--cv-sombra-000000-45); animation: puente-fade 0.14s ease-out; }
  html body #puente-tema-hoja .puente-sheet-handle { display: none; }
  html body #puente-tema-hoja .puente-tema-editar:hover { background: var(--cv-fondo-3a3940); }
}

/* Sin la columna de la izquierda en la PC (el dueño, 5/12/2026): CV Chat y los mensajes estan en la barra de arriba
   (el sobre, con los mensajes directos sin leer en vivo y marcado mientras se los ve: barra.js). Sus botones siguen en
   la pagina, escondidos: el sobre y "CV Chat" los tocan por adentro (.puente-pc-dm, #home-server) */
@media (min-width: 769px) {
  html body #server-bar { display: none !important; }
  html body [data-haven-region="navigation-sidebar"] { border-left-width: 0 !important; border-top-left-radius: 0 !important; }
  /* (viendo los mensajes directos, sin "477 miembros" suelto arriba: es del servidor) */
  html body .puente-ver-dms #puente-server-info { display: none !important; }
}

/* Sin "Abrir en el navegador" en ningun lado (el dueño, 5/12/2026): por si el menu de una imagen de Haven ("Abrir en
   pestaña nueva") se muestra sin pasar por cv-foro-app.js / cv-toques.js, que ya lo sacan */
#image-context-menu button[data-action="open"] { display: none !important; }
