/* MeldGrow · el verde es el color del CRECIMIENTO y de lo que sale bien (opción B, 2026-11-07).
   Marca: negro + naranja. Verde: progreso, porcentajes, interruptores encendidos, casillas marcadas, «Listo», «en línea», contadores.
   Esta hoja se carga la ÚLTIMA para ganar sobre las demás. */
html body dialog.st-dialog .st-bar b,
html body dialog.st-dialog .st-bar.is-warn b { background: var(--mg-ok) !important; }
html body .nh-toggle:checked,
html body .nh-rem-check:checked,
html body dialog.rc-dialog .rc-switch input:checked + i,
html body dialog.rc-dialog .rc-switch input:checked + i.rc-sw { background: var(--mg-ok) !important; border-color: var(--mg-ok) !important; }
html body .nh-rem-check:checked::after,
html body .nh-toggle:checked::after { color: #FFFFFF; }
html body .ian-chat .ic-toggle-form input[type="checkbox"],
html body dialog.sp-dialog .sp-switch input,
html body input[type="checkbox"], html body input[type="radio"] { accent-color: var(--mg-ok); }
/* Ventana «La historia»: el logo del título nunca se encoge ni desaparece */
html body .nh-about-word:not(#z) { flex: 0 0 auto !important; max-width: none !important; width: auto !important; height: 30px !important; min-width: 100px; object-fit: contain; }
/* Inicio · banner: la flecha y las barras de crecimiento en verde (opción a) */
html body .nh .nh-hero-g rect:not(#z) { fill: var(--mg-ok) !important; }
html body .nh .nh-hero-g path:not(#z) { stroke: var(--mg-ok) !important; }
/* Pantalla de bienvenida: la imagen de las montañas con el nombre */
html body .ian-chat .ic-gate-logo.ic-gate-foto:not(#z), html body .ic-gate-logo.ic-gate-foto:not(#z) { width: min(260px, 74vw) !important; height: auto !important; border-radius: 26px !important; object-fit: cover; box-shadow: 0 10px 26px rgba(0,0,0,.28); }
/* Encabezado: símbolo oficial (dos figuras en espiral) a la izquierda del nombre */
html body .nh .nh-sym:not(#z) { width: 30px !important; height: 30px !important; min-width: 30px; border-radius: 0 !important; box-shadow: none !important; object-fit: contain !important; display: block; }
html body .nh .nh-sym-oscuro:not(#z) { display: none; }
html:is([data-theme="dark"]) body .nh .nh-sym-claro:not(#z) { display: none; }
html:is([data-theme="dark"]) body .nh .nh-sym-oscuro:not(#z) { display: block; }
/* Modo oscuro: sin placa blanca; nombre y símbolo en su versión para fondo oscuro */
html:is([data-theme="dark"]) body #view-notes .nh .nh-brand:not(#z) { background: transparent !important; }
html:is([data-theme="dark"]) body #view-notes .nh .nh-letras:not(#z) { background-image: url("./assets/meldune-letras-oscuro.png?v=meldune159") !important; }
/* «Atrás» de Chat/Equipos (llegando desde las herramientas del Inicio): solo círculo con flecha, igual que el resto; el texto queda para lectores de pantalla (aria-label) */
html body .ian-chat .ic-head .ic-back-app span:not(#z) { display: none !important; }
html body .ian-chat .ic-head .ic-back-app:not(#z) { width: 38px !important; height: 38px !important; min-width: 38px !important; min-height: 38px !important; padding: 0 !important; justify-content: center; }
/* Íconos de las herramientas: negro de marca liso, sin degradado plateado ni borde blanco (el plateado solo existe en el logo metalizado) */
html body svg.mi-tile:not(#z):not(#y):not(#x):not(#w) { --mi-t1: var(--mg-ink-bg); --mi-t2: var(--mg-ink-bg); --mi-t3: var(--mg-ink-bg); --mi-det: #1B1F2A; }
html body svg.mi-tile .mi-ring:not(#z):not(#y):not(#x):not(#w):not(#v):not(#u):not(#t) { stroke: none !important; }
html body svg.mi-tile .mi-shine:not(#z):not(#y):not(#x):not(#w):not(#v):not(#u):not(#t) { stroke-opacity: 0 !important; }
/* Ícono activo de la barra de abajo: negro con borde naranja (negro = selección, naranja = acento), sin tono salmón ni resplandor */
html body .nh-bottom.nh-tribar button[aria-current="page"] svg.mi-tile:not(#z):not(#y):not(#x):not(#w):not(#v), html body .ian-chat .ic-appnav button[aria-current="page"] svg.mi-tile:not(#z):not(#y):not(#x):not(#w):not(#v) { --mi-t1: var(--mg-ink-bg); --mi-t2: var(--mg-ink-bg); --mi-t3: var(--mg-ink-bg); --mi-s1: #FFFFFF; --mi-s2: #FFFFFF; --mi-det: #1B1F2A; filter: none; }
html body .nh-bottom.nh-tribar button[aria-current="page"] svg.mi-tile .mi-ring:not(#z):not(#y):not(#x):not(#w):not(#v):not(#u):not(#t):not(#s), html body .ian-chat .ic-appnav button[aria-current="page"] svg.mi-tile .mi-ring:not(#z):not(#y):not(#x):not(#w):not(#v):not(#u):not(#t):not(#s) { stroke: var(--mg-cta) !important; stroke-width: 2.6px !important; }
/* BOTONES REDONDOS (X, flechas de volver, cerrar): círculo liso del color de marca (negro; gris oscuro en modo oscuro) con el ícono SIEMPRE blanco.
   Así se ven igual y con buen contraste en claro, oscuro y predeterminado. El naranja queda solo para el instante de tocar. */
html body :is(.nh-search-x, .nh-x, .seima-x-btn, .nh-round, .rc-circ, .rc-icon-btn, .rc-side-close, .rc-close-mobile, .ic-back-app, .ic-back-tab, .ian-back-home, .nh-backlink, .nh-win-back, .gd-back, .ck-back, .chat-back-button, .cn-back-pill, .notebook-create-back, .book-back-button, .plt-back, .seima-back-ic):not(#z):not(#y):not(#x):not(#w):not(#v) { background-color: var(--mg-ink-bg) !important; background-image: none !important; color: #FFFFFF !important; border: 0 !important; box-shadow: none !important; }
html body :is(.nh-search-x, .nh-x, .seima-x-btn, .nh-round, .rc-circ, .rc-icon-btn, .rc-side-close, .rc-close-mobile, .ic-back-app, .ic-back-tab, .ian-back-home, .nh-backlink, .nh-win-back, .gd-back, .ck-back, .chat-back-button, .cn-back-pill, .notebook-create-back, .book-back-button, .plt-back, .seima-back-ic):not(#z):not(#y):not(#x):not(#w):not(#v) :is(svg, svg *):not(#u) { stroke: #FFFFFF !important; color: #FFFFFF !important; }
html body .nh-search-x:not(#z):not(#y):not(#x):not(#w):not(#v) { width: 30px !important; height: 30px !important; min-width: 30px; }
html body .nh-search-x:not(#z):not(#y):not(#x):not(#w):not(#v) svg { width: 14px !important; height: 14px !important; stroke-width: 3 !important; fill: none !important; }
html body :is(.nh-search-x, .nh-x, .seima-x-btn, .nh-round, .rc-circ, .rc-icon-btn, .rc-side-close, .ic-back-app, .ic-back-tab, .ian-back-home, .nh-backlink, .nh-win-back, .gd-back, .ck-back, .chat-back-button, .cn-back-pill, .notebook-create-back, .book-back-button, .plt-back, .seima-back-ic):not(#z):not(#y):not(#x):not(#w):not(#v):active { background-color: var(--mg-cta) !important; }
/* «Volver» de las ventanas flotantes: solo círculo con flecha (sin la palabra), igual que en el resto de la app */
html body .nh-win-back:not(#z):not(#y):not(#x):not(#w):not(#v) { width: 38px !important; height: 38px !important; min-width: 38px !important; padding: 0 !important; border-radius: 999px !important; display: inline-grid !important; place-items: center; font-size: 0 !important; }
html body .nh-win-back:not(#z):not(#y):not(#x):not(#w):not(#v) svg { width: 16px !important; height: 16px !important; fill: #FFFFFF !important; stroke: #FFFFFF !important; }
/* «La historia de …»: el nombre con su tamaño propio (la imagen es el nombre solo, ancho) */
html body .nh-about-word:not(#z):not(#y) { height: 24px !important; width: auto !important; min-width: 0 !important; max-width: 60% !important; }
/* Modo oscuro: la tarjeta «Cuaderno» es clara, así que su flecha va oscura (antes era blanca sobre blanco) */
html[data-theme="dark"] body .nh-writecard > i:not(#z):not(#y), html[data-theme="dark"] body .nh-writecard > i svg:not(#z):not(#y) { color: #1B1F2A !important; }
html[data-theme="dark"] body .nh-writecard > i svg path:not(#z):not(#y) { fill: #1B1F2A !important; stroke: #1B1F2A !important; }
/* Guía de bienvenida: el eslogan debajo del logo */
html body .ian-guia .gd-hero p.gd-lema:not(#z) { font-weight: 700 !important; font-size: 13px !important; letter-spacing: .14em; text-transform: none; color: var(--text-secondary, #5E6371); margin-top: -4px; }
/* BOTONES FÁCILES DE TOCAR (evaluación 22-nov): mínimo 44 px de zona táctil. En los que ya se ven bien se agranda solo la zona que
   responde al toque (sin cambiar cómo se ven); en los demás se agranda el botón. */
html body :is(.nh-brand, .nh-clockpill, .rc-clock, .ies-plus, .ic-head-btn, .ic-filters button):not(#z):not(#y) { position: relative; }
html body :is(.nh-brand, .nh-clockpill, .rc-clock, .ies-plus, .ic-head-btn, .ic-filters button):not(#z):not(#y)::before { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 44px; transform: translateY(-50%); background: transparent; }
/* Puntos de las escenas de bienvenida: el punto se ve igual (8 px) pero el botón mide 44 x 44 */
html body .sc-dots:not(#z) { gap: 0; }
html body .sc-dots button:not(#z) { width: 44px !important; height: 44px !important; }
/* Estos cuatro están dentro de contenedores que recortan lo que sobresale: se agranda el botón mismo */
html body .nh-brand:not(#z):not(#y):not(#x):not(#w) { min-height: 44px; }
html body .ies-plus:not(#z):not(#y) { min-width: 44px !important; min-height: 44px !important; }
html body .ic-head-btn:not(#z):not(#y) { min-width: 44px !important; min-height: 44px !important; }
html body .ic-filters button:not(#z):not(#y) { min-height: 40px !important; }
/* Pestañas Chats / Grupos / Personas / Llamadas y cuadros de búsqueda */
html body .ic-scope button:not(#z):not(#y) { min-height: 44px; }
html body .nh-search input:not(#z):not(#y), html body .nh-barsearch input:not(#z):not(#y) { min-height: 44px; }
/* Casilla de aceptar (términos de empresa y casillas de lista): más grande, y toda la fila se puede tocar */
html body .ic-meet-person:not(#z):not(#y) { min-height: 44px; display: flex; align-items: center; gap: 10px; }
html body .ic-meet-person input[type="checkbox"]:not(#z):not(#y) { width: 24px !important; height: 24px !important; min-width: 24px; flex: none; }
/* Agenda: el botón redondo de cerrar no muestra el texto (se montaba sobre la X); el nombre queda para lectores de pantalla */
html body dialog.rc-dialog .rc-side-close span { display: none !important; }
html body dialog.rc-dialog .rc-side-close { width: 40px !important; height: 40px !important; min-width: 40px !important; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; }
