/* ===================================================================================
   NexoShipping · tema «opción D»  (solo apariencia)
   - No cambia ningún comportamiento: solo colores, tipografía, radios, sombras y fondos.
   - Se quita borrando el <link> a este archivo en vueapp.html.erb (patch-branding.sh).
   Mapa: lienzo gris + contenido en panel blanco flotante · barra lateral en cápsula negra ·
         conversaciones en vidrio oscuro · fuente Geist servida desde /brand-assets/.
   =================================================================================== */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/brand-assets/geist-latin.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;
}

/* ---------- 1. paleta clara de NexoShipping (también si alguien eligió modo oscuro: el tema es solo claro) ---------- */
body.dark, .dark {
  --slate-1: 252 252 253;
  --slate-2: 249 249 251;
  --slate-3: 240 240 243;
  --slate-4: 232 232 236;
  --slate-5: 224 225 230;
  --slate-6: 217 217 224;
  --slate-7: 205 206 214;
  --slate-8: 185 187 198;
  --slate-9: 139 141 152;
  --slate-10: 128 131 141;
  --slate-11: 96 100 108;
  --slate-12: 28 32 36;
  --iris-1: 253 253 255;
  --iris-2: 248 248 255;
  --iris-3: 240 241 254;
  --iris-4: 230 231 255;
  --iris-5: 218 220 255;
  --iris-6: 203 205 255;
  --iris-7: 184 186 248;
  --iris-8: 155 158 240;
  --iris-9: 91 91 214;
  --iris-10: 81 81 205;
  --iris-11: 87 83 198;
  --iris-12: 39 41 98;
  --blue-1: 251 253 255;
  --blue-2: 245 249 255;
  --blue-3: 233 243 255;
  --blue-4: 218 236 255;
  --blue-5: 201 226 255;
  --blue-6: 181 213 255;
  --blue-7: 155 195 252;
  --blue-8: 117 171 247;
  --blue-9: 39 129 246;
  --blue-10: 16 115 233;
  --blue-11: 8 109 224;
  --blue-12: 11 50 101;
  --ruby-1: 255 252 253;
  --ruby-2: 255 247 248;
  --ruby-3: 254 234 237;
  --ruby-4: 255 220 225;
  --ruby-5: 255 206 214;
  --ruby-6: 248 191 200;
  --ruby-7: 239 172 184;
  --ruby-8: 229 146 163;
  --ruby-9: 229 70 102;
  --ruby-10: 220 59 93;
  --ruby-11: 202 36 77;
  --ruby-12: 100 23 43;
  --amber-1: 254 253 251;
  --amber-2: 254 251 233;
  --amber-3: 255 247 194;
  --amber-4: 255 238 156;
  --amber-5: 251 229 119;
  --amber-6: 243 214 115;
  --amber-7: 233 193 98;
  --amber-8: 226 163 54;
  --amber-9: 255 197 61;
  --amber-10: 255 186 24;
  --amber-11: 171 100 0;
  --amber-12: 79 52 34;
  --teal-1: 250 254 253;
  --teal-2: 243 251 249;
  --teal-3: 224 248 243;
  --teal-4: 204 243 234;
  --teal-5: 184 234 224;
  --teal-6: 161 222 210;
  --teal-7: 131 205 193;
  --teal-8: 83 185 171;
  --teal-9: 18 165 148;
  --teal-10: 13 155 138;
  --teal-11: 0 133 115;
  --teal-12: 13 61 56;
  --gray-1: 252 252 252;
  --gray-2: 249 249 249;
  --gray-3: 240 240 240;
  --gray-4: 232 232 232;
  --gray-5: 224 224 224;
  --gray-6: 217 217 217;
  --gray-7: 206 206 206;
  --gray-8: 187 187 187;
  --gray-9: 141 141 141;
  --gray-10: 131 131 131;
  --gray-11: 100 100 100;
  --gray-12: 32 32 32;
  --violet-1: 253 252 254;
  --violet-2: 250 248 255;
  --violet-3: 244 240 254;
  --violet-4: 235 228 255;
  --violet-5: 225 217 255;
  --violet-6: 212 202 254;
  --violet-7: 194 178 248;
  --violet-8: 169 153 236;
  --violet-9: 110 86 207;
  --violet-10: 100 84 196;
  --violet-11: 101 85 183;
  --violet-12: 47 38 95;
  --background-color: 247 247 247;
  --surface-1: 254 254 254;
  --surface-2: 255 255 255;
  --surface-active: 255 255 255;
  --background-input-box: 0, 0, 0, 0.03;
  --text-blue: 1 22 44;
  --text-purple: 2 4 49;
  --text-amber: 37 24 1;
  --border-container: 236 236 236;
  --border-strong: 226 227 231;
  --border-weak: 234 234 234;
  --border-blue-strong: 18 61 117;
  --solid-1: 255 255 255;
  --solid-2: 255 255 255;
  --solid-3: 255 255 255;
  --solid-active: 255 255 255;
  --solid-amber: 255 228 181;
  --solid-blue: 218 236 255;
  --solid-blue-2: 251 253 255;
  --solid-iris: 230 231 255;
  --solid-purple: 230 231 255;
  --solid-red: 254 200 201;
  --solid-amber-button: 255 221 141;
  --card-color: 255 255 255;
  --overlay: 0, 0, 0, 0.12;
  --overlay-avatar: 255, 255, 255, 0.67;
  --button-color: 255 255 255;
  --button-hover-color: 255, 255, 255, 0.2;
  --label-background: 247 247 247;
  --label-border: 0, 0, 0, 0.04;
  --alpha-1: 215, 215, 215, 0.22;
  --alpha-2: 196, 197, 198, 0.22;
  --alpha-3: 255, 255, 255, 0.96;
  --black-alpha-1: 0, 0, 0, 0.12;
  --black-alpha-2: 0, 0, 0, 0.04;
  --border-blue: 39, 129, 246, 0.5;
  --white-alpha: 255, 255, 255, 0.8;
  --call-widget: 33, 34, 38, 0.95;
  --call-widget-border: 255, 255, 255, 0.1;
  --call-widget-text: 237, 238, 240, 1;
  --call-widget-sub-text: 173, 177, 184, 1;
  color-scheme: light;
}
:root, body.dark, .dark {
  --background-color: 236 237 240;     /* lienzo */
  --surface-1: 255 255 255;
  --surface-2: 250 250 251;
  --surface-active: 244 245 247;
  --solid-1: 255 255 255;
  --solid-2: 255 255 255;
  --solid-3: 247 248 250;
  --card-color: 255 255 255;
  --button-color: 255 255 255;
  --border-weak: 236 237 240;
  --border-strong: 226 228 233;
  --slate-12: 20 23 28;                 /* tinta */
  --slate-11: 107 114 128;
  --solid-blue: 220 235 255;            /* burbuja propia en vistas claras */
  --nexo-tinta: 20 23 28;
  --nexo-azul: 39 129 246;
}

/* ---------- 2. tipografía ---------- */
body, #app, .font-inter, .font-interDisplay, button, input, textarea, select {
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
}
#app h1, #app h2, #app h3 { letter-spacing: -0.02em; }

/* ---------- 3. radios más amplios (píldoras y tarjetas) ---------- */
#app .rounded-lg { border-radius: 12px; }
#app .rounded-xl { border-radius: 16px; }
#app .rounded-2xl { border-radius: 20px; }

/* ---------- 4. lienzo y contenido en panel flotante ---------- */
#app { background: rgb(236 237 240) !important; }
#app > div.flex-grow.overflow-hidden { gap: 14px; padding: 14px; }
#app .nexo-columna { gap: 0; }
#app .nexo-columna > main {
  border-radius: 22px;
  background: rgb(255 255 255);
  box-shadow: 0 1px 2px rgba(20,23,28,.05), 0 14px 36px -20px rgba(20,23,28,.28);
}

/* ---------- 5. barra lateral: cápsula negra ---------- */
#app > div.flex-grow.overflow-hidden > aside {
  --slate-1: 17 17 19;
  --slate-2: 24 25 27;
  --slate-3: 33 34 37;
  --slate-4: 39 42 45;
  --slate-5: 46 49 53;
  --slate-6: 54 58 63;
  --slate-7: 67 72 78;
  --slate-8: 90 97 105;
  --slate-9: 105 110 119;
  --slate-10: 119 123 132;
  --slate-11: 176 180 186;
  --slate-12: 237 238 240;
  --iris-1: 19 19 30;
  --iris-2: 23 22 37;
  --iris-3: 32 34 72;
  --iris-4: 38 42 101;
  --iris-5: 48 51 116;
  --iris-6: 61 62 130;
  --iris-7: 74 74 149;
  --iris-8: 89 88 177;
  --iris-9: 91 91 214;
  --iris-10: 84 114 228;
  --iris-11: 158 177 255;
  --iris-12: 224 223 254;
  --blue-1: 10 17 28;
  --blue-2: 15 24 38;
  --blue-3: 15 39 72;
  --blue-4: 10 49 99;
  --blue-5: 18 61 117;
  --blue-6: 29 84 134;
  --blue-7: 40 89 156;
  --blue-8: 48 106 186;
  --blue-9: 39 129 246;
  --blue-10: 21 116 231;
  --blue-11: 126 182 255;
  --blue-12: 205 227 255;
  --ruby-1: 25 17 19;
  --ruby-2: 30 21 23;
  --ruby-3: 58 20 30;
  --ruby-4: 78 19 37;
  --ruby-5: 94 26 46;
  --ruby-6: 111 37 57;
  --ruby-7: 136 52 71;
  --ruby-8: 179 68 90;
  --ruby-9: 229 70 102;
  --ruby-10: 236 90 114;
  --ruby-11: 255 148 157;
  --ruby-12: 254 210 225;
  --amber-1: 22 18 12;
  --amber-2: 29 24 15;
  --amber-3: 48 32 8;
  --amber-4: 63 39 0;
  --amber-5: 77 48 0;
  --amber-6: 92 61 5;
  --amber-7: 113 79 25;
  --amber-8: 143 100 36;
  --amber-9: 255 197 61;
  --amber-10: 255 214 10;
  --amber-11: 255 202 22;
  --amber-12: 255 231 179;
  --teal-1: 13 21 20;
  --teal-2: 17 28 27;
  --teal-3: 13 45 42;
  --teal-4: 2 59 55;
  --teal-5: 8 72 67;
  --teal-6: 20 87 80;
  --teal-7: 28 105 97;
  --teal-8: 32 126 115;
  --teal-9: 18 165 148;
  --teal-10: 14 179 158;
  --teal-11: 11 216 182;
  --teal-12: 173 240 221;
  --gray-1: 17 17 17;
  --gray-2: 25 25 25;
  --gray-3: 34 34 34;
  --gray-4: 42 42 42;
  --gray-5: 49 49 49;
  --gray-6: 58 58 58;
  --gray-7: 72 72 72;
  --gray-8: 96 96 96;
  --gray-9: 110 110 110;
  --gray-10: 123 123 123;
  --gray-11: 180 180 180;
  --gray-12: 238 238 238;
  --violet-1: 20 17 31;
  --violet-2: 27 21 37;
  --violet-3: 41 31 67;
  --violet-4: 50 37 85;
  --violet-5: 60 46 105;
  --violet-6: 71 56 135;
  --violet-7: 86 70 151;
  --violet-8: 110 86 171;
  --violet-9: 110 86 207;
  --violet-10: 125 109 217;
  --violet-11: 169 153 236;
  --violet-12: 226 221 254;
  --background-color: 28 29 32;
  --surface-1: 20 21 23;
  --surface-2: 22 23 26;
  --surface-active: 53 57 66;
  --background-input-box: 255, 255, 255, 0.02;
  --text-blue: 213 234 255;
  --text-purple: 232 233 254;
  --text-amber: 255 247 234;
  --border-strong: 46 45 50;
  --border-weak: 31 31 37;
  --border-blue-strong: 201 226 255;
  --solid-1: 23 23 26;
  --solid-2: 29 30 36;
  --solid-3: 44 45 54;
  --solid-active: 53 57 66;
  --solid-amber: 56 50 41;
  --solid-blue: 15 57 102;
  --solid-blue-2: 26 29 35;
  --solid-iris: 38 42 101;
  --solid-purple: 51 51 107;
  --solid-red: 90 33 34;
  --solid-amber-button: 255 221 141;
  --card-color: 28 30 34;
  --overlay: 0, 0, 0, 0.4;
  --overlay-avatar: 0, 0, 0, 0.05;
  --button-color: 42 43 51;
  --button-hover-color: 0, 0, 0, 0.15;
  --label-background: 36 38 45;
  --label-border: 255, 255, 255, 0.03;
  --alpha-1: 35, 36, 42, 0.8;
  --alpha-2: 147, 153, 176, 0.12;
  --alpha-3: 33, 34, 38, 0.95;
  --black-alpha-1: 0, 0, 0, 0.3;
  --black-alpha-2: 0, 0, 0, 0.2;
  --border-blue: 39, 129, 246, 0.5;
  --border-container: 255, 255, 255, 0;
  --white-alpha: 255, 255, 255, 0.1;
  --call-widget: 50, 53, 61, 1;
  --call-widget-border: 255, 255, 255, 0.07;
  --call-widget-text: 237, 238, 240, 1;
  --call-widget-sub-text: 173, 177, 184, 1;
  --background-color: 20 23 28;
  --alpha-2: 39, 129, 246, 0.32;        /* ítem activo y hover en azul de marca */
  color-scheme: dark;
  background: rgb(20 23 28) !important;
  border: 0 !important;
  border-radius: 9999px;                 /* riel en cápsula */
  color: rgb(var(--slate-12));
  overflow: visible;                     /* no recortar: el menú del perfil (320 px) se abre hacia fuera del riel */
  padding-block: 10px;
}
@media (max-width: 767px) {
  #app > div.flex-grow.overflow-hidden > aside { border-radius: 0 24px 24px 0; }
}

/* ---------- 6. conversaciones: vidrio oscuro ---------- */
#app main:has(.conversations-list-wrap) {
  background:
    radial-gradient(700px 480px at 8% 12%, rgba(39,129,246,.22), transparent 65%),
    radial-gradient(600px 420px at 92% 88%, rgba(200,149,90,.14), transparent 65%),
    rgb(14 16 20) !important;
}
#app main section:has(> .conversations-list-wrap) {
  --slate-1: 17 17 19;
  --slate-2: 24 25 27;
  --slate-3: 33 34 37;
  --slate-4: 39 42 45;
  --slate-5: 46 49 53;
  --slate-6: 54 58 63;
  --slate-7: 67 72 78;
  --slate-8: 90 97 105;
  --slate-9: 105 110 119;
  --slate-10: 119 123 132;
  --slate-11: 176 180 186;
  --slate-12: 237 238 240;
  --iris-1: 19 19 30;
  --iris-2: 23 22 37;
  --iris-3: 32 34 72;
  --iris-4: 38 42 101;
  --iris-5: 48 51 116;
  --iris-6: 61 62 130;
  --iris-7: 74 74 149;
  --iris-8: 89 88 177;
  --iris-9: 91 91 214;
  --iris-10: 84 114 228;
  --iris-11: 158 177 255;
  --iris-12: 224 223 254;
  --blue-1: 10 17 28;
  --blue-2: 15 24 38;
  --blue-3: 15 39 72;
  --blue-4: 10 49 99;
  --blue-5: 18 61 117;
  --blue-6: 29 84 134;
  --blue-7: 40 89 156;
  --blue-8: 48 106 186;
  --blue-9: 39 129 246;
  --blue-10: 21 116 231;
  --blue-11: 126 182 255;
  --blue-12: 205 227 255;
  --ruby-1: 25 17 19;
  --ruby-2: 30 21 23;
  --ruby-3: 58 20 30;
  --ruby-4: 78 19 37;
  --ruby-5: 94 26 46;
  --ruby-6: 111 37 57;
  --ruby-7: 136 52 71;
  --ruby-8: 179 68 90;
  --ruby-9: 229 70 102;
  --ruby-10: 236 90 114;
  --ruby-11: 255 148 157;
  --ruby-12: 254 210 225;
  --amber-1: 22 18 12;
  --amber-2: 29 24 15;
  --amber-3: 48 32 8;
  --amber-4: 63 39 0;
  --amber-5: 77 48 0;
  --amber-6: 92 61 5;
  --amber-7: 113 79 25;
  --amber-8: 143 100 36;
  --amber-9: 255 197 61;
  --amber-10: 255 214 10;
  --amber-11: 255 202 22;
  --amber-12: 255 231 179;
  --teal-1: 13 21 20;
  --teal-2: 17 28 27;
  --teal-3: 13 45 42;
  --teal-4: 2 59 55;
  --teal-5: 8 72 67;
  --teal-6: 20 87 80;
  --teal-7: 28 105 97;
  --teal-8: 32 126 115;
  --teal-9: 18 165 148;
  --teal-10: 14 179 158;
  --teal-11: 11 216 182;
  --teal-12: 173 240 221;
  --gray-1: 17 17 17;
  --gray-2: 25 25 25;
  --gray-3: 34 34 34;
  --gray-4: 42 42 42;
  --gray-5: 49 49 49;
  --gray-6: 58 58 58;
  --gray-7: 72 72 72;
  --gray-8: 96 96 96;
  --gray-9: 110 110 110;
  --gray-10: 123 123 123;
  --gray-11: 180 180 180;
  --gray-12: 238 238 238;
  --violet-1: 20 17 31;
  --violet-2: 27 21 37;
  --violet-3: 41 31 67;
  --violet-4: 50 37 85;
  --violet-5: 60 46 105;
  --violet-6: 71 56 135;
  --violet-7: 86 70 151;
  --violet-8: 110 86 171;
  --violet-9: 110 86 207;
  --violet-10: 125 109 217;
  --violet-11: 169 153 236;
  --violet-12: 226 221 254;
  --background-color: 28 29 32;
  --surface-1: 20 21 23;
  --surface-2: 22 23 26;
  --surface-active: 53 57 66;
  --background-input-box: 255, 255, 255, 0.02;
  --text-blue: 213 234 255;
  --text-purple: 232 233 254;
  --text-amber: 255 247 234;
  --border-strong: 46 45 50;
  --border-weak: 31 31 37;
  --border-blue-strong: 201 226 255;
  --solid-1: 23 23 26;
  --solid-2: 29 30 36;
  --solid-3: 44 45 54;
  --solid-active: 53 57 66;
  --solid-amber: 56 50 41;
  --solid-blue: 15 57 102;
  --solid-blue-2: 26 29 35;
  --solid-iris: 38 42 101;
  --solid-purple: 51 51 107;
  --solid-red: 90 33 34;
  --solid-amber-button: 255 221 141;
  --card-color: 28 30 34;
  --overlay: 0, 0, 0, 0.4;
  --overlay-avatar: 0, 0, 0, 0.05;
  --button-color: 42 43 51;
  --button-hover-color: 0, 0, 0, 0.15;
  --label-background: 36 38 45;
  --label-border: 255, 255, 255, 0.03;
  --alpha-1: 35, 36, 42, 0.8;
  --alpha-2: 147, 153, 176, 0.12;
  --alpha-3: 33, 34, 38, 0.95;
  --black-alpha-1: 0, 0, 0, 0.3;
  --black-alpha-2: 0, 0, 0, 0.2;
  --border-blue: 39, 129, 246, 0.5;
  --border-container: 255, 255, 255, 0;
  --white-alpha: 255, 255, 255, 0.1;
  --call-widget: 50, 53, 61, 1;
  --call-widget-border: 255, 255, 255, 0.07;
  --call-widget-text: 237, 238, 240, 1;
  --call-widget-sub-text: 173, 177, 184, 1;
  --solid-blue: 39 129 246;              /* burbuja propia: azul de marca */
  --slate-4: 44 47 56;                   /* burbuja del cliente */
  color-scheme: dark;
  color: rgb(var(--slate-12));
  gap: 10px;
  padding: 10px;
}
#app main section:has(> .conversations-list-wrap) > .conversations-list-wrap,
#app main section:has(> .conversations-list-wrap) > .conversation-details-wrap,
#app main section:has(> .conversations-list-wrap) > .md\:min-w-\[320px\] {
  background: rgba(24, 26, 33, .78) !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 18px;
  backdrop-filter: blur(22px);
  overflow: hidden;
}
/* la burbuja propia lleva texto blanco sobre el azul */
#app section:has(> .conversations-list-wrap) .bg-n-solid-blue { color: #FFFFFF; }
#app section:has(> .conversations-list-wrap) .bg-n-solid-blue .text-n-slate-11 { color: rgba(255,255,255,.72) !important; }
/* tarjetas de la lista: separadores suaves y la conversación abierta resaltada */
#app .conversations-list-wrap .conversation { border-color: rgba(255,255,255,.05) !important; border-radius: 12px; }
#app .conversations-list-wrap .conversation.active { background: rgba(255,255,255,.08) !important; }
/* caja de respuesta como píldora de vidrio */
#app .conversation-details-wrap .reply-box {
  margin: 0 10px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
}

/* ---------- 7. detalles generales ---------- */
#app ::selection { background: rgba(39, 129, 246, .25); }

/* ---------- 8. pantallas medianas: márgenes más compactos para no quitarle ancho al chat ---------- */
@media (max-width: 1320px) {
  #app > div.flex-grow.overflow-hidden { gap: 8px; padding: 8px; }
  #app main section:has(> .conversations-list-wrap) { gap: 6px; padding: 6px; }
}
/* ---------- 9. celular: el contenido ocupa toda la pantalla, como hoy ---------- */
@media (max-width: 767px) {
  #app > div.flex-grow.overflow-hidden { gap: 0; padding: 0; }
  #app .nexo-columna > main { border-radius: 0; box-shadow: none; }
  #app main section:has(> .conversations-list-wrap) { gap: 0; padding: 0; }
  #app main section:has(> .conversations-list-wrap) > .conversations-list-wrap,
  #app main section:has(> .conversations-list-wrap) > .conversation-details-wrap,
  #app main section:has(> .conversations-list-wrap) > .md\:min-w-\[320px\] { border-radius: 0; border: 0 !important; }
}

/* ---------- 10. rediseño: riel de iconos, barra superior e Inicio ---------- */
/* ítems del riel: círculos de 44 px; el activo, azul claro con icono en tinta */
#app > div.flex-grow.overflow-hidden > aside nav a,
#app > div.flex-grow.overflow-hidden > aside nav [role="button"] { border-radius: 9999px !important; }
#app > div.flex-grow.overflow-hidden > aside nav .bg-n-alpha-2 { background: rgb(220 235 255) !important; color: rgb(20 23 28) !important; }
#app > div.flex-grow.overflow-hidden > aside nav .bg-n-alpha-2 * { color: rgb(20 23 28) !important; }
/* la barra superior vive sobre el lienzo */
#app .nexo-barra { background: transparent; }
@media (max-width: 767px) {
  #app .nexo-barra { padding: 10px 10px 8px; }
  #app > div.flex-grow.overflow-hidden > aside { border-radius: 0 24px 24px 0; }
}

/* ---------- 11. rediseño de Conversaciones ---------- */
/* panel de navegación propio, mismo vidrio que las otras columnas */
#app main section:has(> .conversations-list-wrap) > .nexo-panel-conv {
  background: rgba(24, 26, 33, .78);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  backdrop-filter: blur(22px);
}
#app .nexo-panel-conv .nexo-item { color: rgb(var(--slate-11)); }
#app .nexo-panel-conv .nexo-item:hover { background: rgba(255, 255, 255, .06); color: rgb(var(--slate-12)); }
#app .nexo-panel-conv .nexo-item.is-activa { background: rgba(39, 129, 246, .22); color: #FFFFFF; }
#app .nexo-cuenta { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9999px;
  background: #2781F6; color: #FFFFFF; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* lista: encabezado y control segmentado */
#app .conversations-list-wrap .nexo-segmentos { background: rgba(255, 255, 255, .05); }
#app .conversations-list-wrap .nexo-segmento { background: transparent; color: rgb(var(--slate-11)); }
#app .conversations-list-wrap .nexo-segmento:hover { color: rgb(var(--slate-12)); }
#app .conversations-list-wrap .nexo-segmento.is-activo { background: rgba(255, 255, 255, .1); color: #FFFFFF; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
#app .conversations-list-wrap .nexo-segmento-n { padding: 0 6px; border-radius: 9999px; background: rgba(255,255,255,.08); font-size: 10.5px; }
#app .conversations-list-wrap .nexo-segmento.is-activo .nexo-segmento-n { background: #2781F6; color: #FFFFFF; }

/* tarjetas de conversación: losetas separadas */
#app .conversations-list-wrap .nexo-tarjeta { margin: 2px 8px; border-radius: 14px; border: 0 !important; transition: background .15s; }
#app .conversations-list-wrap .nexo-tarjeta:hover { background: rgba(255, 255, 255, .05); }
#app .conversations-list-wrap .nexo-tarjeta.active { background: rgba(39, 129, 246, .16) !important; box-shadow: inset 0 0 0 1px rgba(39, 129, 246, .45); }
#app .conversations-list-wrap .nexo-tarjeta.selected { background: rgba(255, 255, 255, .08) !important; }
#app .conversations-list-wrap .nexo-tarjeta.is-unread .nexo-hora { color: #7DAEF9; font-weight: 600; }
#app .conversations-list-wrap .nexo-tarjeta.is-unread::before { content: ""; position: absolute; left: 2px; top: 50%; width: 4px; height: 18px;
  margin-top: -9px; border-radius: 9999px; background: #2781F6; }
#app .conversations-list-wrap .nexo-chip { padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, .06); }

/* encabezado del chat con estado */
#app .conversation-details-wrap .nexo-cabecera { border-bottom: 1px solid rgba(255, 255, 255, .06); }
#app .nexo-estado-open { background: rgba(34, 160, 91, .18); color: #4ADE80; }
#app .nexo-estado-pending { background: rgba(232, 163, 61, .18); color: #FACC15; }
#app .nexo-estado-snoozed { background: rgba(142, 124, 195, .22); color: #C4B5FD; }
#app .nexo-estado-resolved { background: rgba(155, 161, 173, .18); color: #C7CBD5; }

/* fondo del chat: trama de puntos muy suave */
#app .conversation-details-wrap .conversation-panel {
  background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* ancho de columnas: con el panel propio, la lista se angosta un poco en pantallas medianas */
@media (min-width: 1280px) and (max-width: 1599px) {
  #app .nexo-panel-conv { width: 204px !important; }
  #app .conversations-list-wrap:not(.basis-full) { width: 300px !important; }
}

/* vista «expandida» (lista a todo lo ancho): de fábrica la lista mide el 100 % y no se encoge; con el panel
   propio al lado se salía por la derecha y dejaba fuera de pantalla el botón que devuelve a la vista partida.
   Aquí ocupa solo el espacio que queda. */
#app main section:has(> .conversations-list-wrap) > .conversations-list-wrap.basis-full {
  flex: 1 1 0%;
  min-width: 0;
}
