/* Interfaz en BLANCO Y NEGRO (pedido de Edilberto, 2026-10-13; prompt 2, sección 1).
   - Solo dos opciones: Claro (fondo blanco, letras negras) y Oscuro (fondo negro, letras blancas).
   - El logo conserva sus colores (es una imagen; aquí no se toca).
   - Los colores del CONTENIDO (portadas, letras y resaltados del cuaderno, dibujos, fondos del chat) se conservan.
   - monochrome-auto.css (generado) cambia el resto de verdes por grises; este archivo pone los colores principales.
   Se carga al final de index.html para ganar sobre los estilos anteriores. */
:root {
  --mono-bg: #F4F6FA; --mono-surface: #FFFFFF; --mono-line: #E2E6EE; --mono-ink: #1B1F2A; --mono-soft: #5B6070;
  --mono-accent: #1B1F2A; --mono-accent-soft: #E2E6EE; --mono-on-accent: #FFFFFF;
  --mono-nav: #1B1F2A; --mono-nav-ink: #FFFFFF; --mono-nav-soft: #FF9A5C; --mono-nav-active: #FFFFFF; --mono-nav-active-ink: #1B1F2A;
  --cuadernote-neon: #1B1F2A;
}
:root[data-theme="dark"] {
  --mono-bg: #232B3A; --mono-surface: #313B4F; --mono-line: #313B4F; --mono-ink: #FF7A33; --mono-soft: #8E9BB2;
  --mono-accent: #EEF2F8; --mono-accent-soft: rgba(255, 255, 255, .12); --mono-on-accent: #232B3A;
  --mono-nav: #FF7A33; --mono-nav-ink: #313B4F; --mono-nav-soft: #3F4A62; --mono-nav-active: #313B4F; --mono-nav-active-ink: #EEF2F8;
  --cuadernote-neon: #EEF2F8;
}
html, body { background: var(--mono-bg); }

/* ---------- Pantallas principales (Inicio, Cuadernos, Más) ---------- */
body #view-notes .nh, :root[data-theme="dark"] body #view-notes .nh {
  --nh-bg: var(--mono-bg); --nh-surface: var(--mono-surface); --nh-line: var(--mono-line); --nh-ink: var(--mono-ink); --nh-soft: var(--mono-soft);
  --nh-accent: var(--mono-accent); --nh-accent-soft: var(--mono-accent-soft); --nh-green: var(--mono-accent); --nh-nav: var(--mono-nav);
}
body #view-notes .nh, :root[data-theme="dark"] body #view-notes .nh { background: var(--mono-bg); }
body.cuadernote-exclusive .app-shell { background: var(--mono-bg) !important; }
body #view-notes .nh .nh-primary, :root[data-theme="dark"] body #view-notes .nh .nh-primary { background: var(--mono-accent); color: var(--mono-on-accent); }
.nh-continue, .nh-mod, .nh-nbcard { box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.nh-brand img { box-shadow: 0 3px 8px rgba(0, 0, 0, .18); }

/* Encabezado fijo: el logo, el nombre, la lupa y el perfil nunca desaparecen al deslizar. */
/* «sticky» no sirve aquí (un contenedor antiguo recorta el desplazamiento), por eso va fijo y la página baja lo mismo. */
body #view-notes .nh .nh-appbar { position: fixed; top: 0; left: 0; right: 0; z-index: 45; box-sizing: border-box; height: calc(60px + env(safe-area-inset-top));
  margin: 0; padding: env(safe-area-inset-top) 14px 0; background: var(--mono-bg); border-bottom: 1px solid var(--mono-line); }
body #view-notes .nh .nh-body { padding-top: calc(60px + env(safe-area-inset-top)); }
@media (min-width: 1000px) { body #view-notes .nh .nh-appbar { left: 96px; padding-left: 20px; padding-right: 20px; } }

/* Barra de abajo: negra en modo claro (sección activa blanca), clara en modo oscuro (sección activa negra). */
body #view-notes .nh .nh-bottom { background: var(--mono-nav); border-top: 0; box-shadow: 0 -6px 18px rgba(0, 0, 0, .12); -webkit-backdrop-filter: none; backdrop-filter: none; }
body #view-notes .nh .nh-bottom button { color: var(--text); }
body #view-notes .nh .nh-bottom button[aria-current="page"] { color: var(--mono-nav-ink); }
body #view-notes .nh .nh-bottom button[aria-current="page"] svg { background: var(--mono-nav-active); color: var(--text); }
body #view-notes .nh .nh-bottom button:focus-visible { outline-color: var(--mono-nav-ink); }

/* Interruptor (claro / oscuro) con forma de interruptor real, no de casilla. */
.nh-toggle { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 52px !important; height: 30px !important; margin-left: auto; border-radius: 999px;
  background: var(--mono-line); border: 1px solid var(--mono-soft); cursor: pointer; transition: background .2s ease; }
.nh-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--mono-surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s ease; }
.nh-toggle:checked { background: var(--mono-accent); border-color: var(--mono-accent); }
.nh-toggle:checked::after { transform: translateX(22px); background: var(--mono-on-accent); }
.nh-toggle:focus-visible { outline: 2px solid var(--mono-accent); outline-offset: 3px; }

/* Configuración → Apariencia: selector Claro | Oscuro en blanco y negro. */
body .cn-theme-setting { background: var(--mono-surface) !important; border-color: var(--mono-line) !important; color: var(--text) !important; }
body .cn-theme-setting legend, body .cn-theme-setting p { color: var(--text) !important; background: transparent !important; }
body .cn-theme-switch { all: unset; box-sizing: border-box; display: grid; gap: 8px; width: 100%; cursor: pointer; }
.cn-mono-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 16px; border: 1px solid var(--mono-line); background: var(--mono-bg); }
.cn-mono-seg span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; font: 800 16px Manrope, system-ui, sans-serif; color: var(--mono-soft); }
.cn-mono-seg i { font-style: normal; font-size: 18px; }
.cn-theme-switch[data-theme="light"] .cn-mono-seg [data-opt="light"] { background: #FFFFFF; color: #1B1F2A; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.cn-theme-switch[data-theme="dark"] .cn-mono-seg [data-opt="dark"] { background: #313B4F; color: #EEF2F8; box-shadow: 0 0 0 1px #313B4F; }
body .cn-theme-switch .cn-theme-current { justify-self: center; font-size: 13px; color: var(--mono-soft) !important; }
body .cn-theme-switch:focus-visible { outline: 2px solid var(--mono-accent); outline-offset: 3px; border-radius: 16px; }

/* ---------- Inicio útil y barra de 5 secciones (prompt 2, sección 2) ---------- */
body #view-notes .nh .nh-bottom { grid-template-columns: repeat(5, 1fr); gap: 2px; padding-left: 6px; padding-right: 6px; }
body #view-notes .nh .nh-bottom button { font-size: 11.5px; padding: 6px 0; }
body #view-notes .nh .nh-bottom button svg { padding: 4px 12px; }
.nh-nextlist { display: grid; gap: 10px; }
.nh-next { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; cursor: pointer;
  background: var(--mono-surface); border: 1px solid var(--mono-line); box-shadow: 0 4px 14px rgba(0, 0, 0, .05); }
.nh-next .nh-mod-ic { width: 44px; height: 44px; flex: none; }
.nh-next .nh-mod-ic svg { width: 22px; height: 22px; }
.nh-next > span:nth-child(2) { flex: 1; min-width: 0; }
.nh-next b { display: block; font-size: 15.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nh-next small { display: block; font-size: 13px; color: var(--mono-soft); }
.nh-next i { display: grid; color: var(--mono-soft); } .nh-next i svg { width: 20px; height: 20px; }
.nh-next.is-empty { border-style: dashed; box-shadow: none; }
.nh-next:focus-visible { outline: 2px solid var(--mono-accent); outline-offset: 2px; }
.nh-recent { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.nh-recent-item { all: unset; box-sizing: border-box; display: grid; justify-items: center; gap: 8px; padding: 12px 8px; border-radius: 18px; cursor: pointer;
  background: var(--mono-surface); border: 1px solid var(--mono-line); }
.nh-recent-cover { width: 56px; }
.nh-recent-item b { font-size: 13px; color: var(--text); text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nh-recent-item:focus-visible { outline: 2px solid var(--mono-accent); outline-offset: 2px; }

/* ---------- Cuadernos: letreros de contenido y «Tapa y nombre» (2026-10-13) ---------- */
.nh-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.nh-tags i { font: 700 11.5px Manrope, system-ui, sans-serif; font-style: normal; padding: 3px 9px; border-radius: 999px; background: var(--mono-accent-soft); color: var(--text); }
.nh-nbtext small, .nh-book small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--mono-soft); }
.nh-editcover { all: unset; display: inline-block; margin-top: 6px; padding: 6px 12px; border-radius: 999px; cursor: pointer; font: 800 12.5px Manrope, system-ui, sans-serif;
  background: var(--mono-accent); color: var(--mono-on-accent); }
.nh-editcover:focus-visible { outline: 2px solid var(--mono-accent); outline-offset: 2px; }
.nh-grid .nh-tile[data-tile="ai"] { grid-column: auto; }

/* ---------- Multimedia y Agenda: una sola fila de tipos y un botón «＋ Agregar» (prompt 2, sección 10) ---------- */
.nh-typebar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.nh-type { all: unset; box-sizing: border-box; flex: none; display: grid; justify-items: center; gap: 4px; min-width: 66px; padding: 8px 8px 7px; border-radius: 16px; cursor: pointer;
  background: var(--mono-surface); border: 1px solid var(--mono-line); font: 700 12px Manrope, system-ui, sans-serif; color: var(--text); }
.nh-type svg { width: 26px; height: 26px; }
.nh-type[aria-selected="true"] { background: var(--mono-accent); border-color: var(--mono-accent); color: var(--mono-on-accent); }
.nh-type:focus-visible { outline: 2px solid var(--mono-accent); outline-offset: 2px; }
.nh-addrow { display: flex; gap: 8px; margin: 6px 0 4px; }
.nh-add { all: unset; box-sizing: border-box; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 14px; border-radius: 14px; cursor: pointer;
  background: var(--mono-accent); color: var(--mono-on-accent); font: 800 14.5px Manrope, system-ui, sans-serif; }
.nh-add.is-ghost { flex: none; background: var(--mono-surface); color: var(--text); border: 1px solid var(--mono-line); }
.nh-add svg { width: 20px; height: 20px; }
.nh-add:focus-visible { outline: 2px solid var(--mono-accent); outline-offset: 2px; }

/* Ventanitas del cuaderno (Multimedia, Agenda, Documentos…): fondo de la interfaz, no crema. */
body .nh-win, :root[data-theme="dark"] body .nh-win { background: var(--mono-bg) !important; color: var(--text); }
body .nh-win .nh-win-head b { color: var(--text); }

/* ---------- Logo tocable («La historia de meldune»), eliminar cuadernos y flecha de volver fija ---------- */
body #view-notes .nh .nh-brand { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; margin-right: auto; min-width: 0; cursor: pointer; border-radius: 12px; }
body #view-notes .nh .nh-brand:focus-visible { outline: 2px solid var(--mono-accent); outline-offset: 3px; }
.nh-logo-wrap { position: relative; display: inline-flex; }
.nh-logo-plus { position: absolute; right: -5px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font: 900 12px/1 system-ui; font-style: normal;
  background: var(--mono-accent); color: var(--mono-on-accent); border: 2px solid var(--mono-bg); }
.nh-about { display: grid; justify-items: center; gap: 12px; padding: 10px 6px 18px; text-align: center; }
.nh-about img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.nh-about p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text); }
/* Eliminar cuaderno: botón propio, separado del resto de la tarjeta (no se confunde con abrir). */
.nh-book-del { all: unset; box-sizing: border-box; flex: none; display: grid; place-items: center; width: 42px; height: 42px; margin-left: 6px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--mono-line); background: var(--mono-bg); color: var(--mono-soft); }
.nh-book-del svg { width: 19px; height: 19px; }
.nh-book-del:hover, .nh-book-del:focus-visible { background: #E55B13; border-color: #E55B13; color: #FFFFFF; outline: none; }
.nh-recent-cell { display: grid; gap: 6px; justify-items: center; }
.nh-recent-cell .nh-recent-item { width: 100%; }
.nh-recent-cell .nh-book-del { width: 100%; height: 34px; margin: 0; border-radius: 10px; }
/* Flecha de volver: fija debajo del encabezado, nunca se pierde al deslizar. */
body #view-notes .nh .nh-detailbar, body #view-notes .nh .nh-backlink { position: fixed; top: calc(60px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 44; margin: 0;
  display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 12px; border-radius: 0; background: var(--mono-bg); border-bottom: 1px solid var(--mono-line); color: var(--text); }
body #view-notes .nh .nh-body:has(.nh-detailbar, .nh-backlink) { padding-top: calc(110px + env(safe-area-inset-top)); }
@media (min-width: 1000px) { body #view-notes .nh .nh-detailbar, body #view-notes .nh .nh-backlink { left: 96px; } }

/* ---------- Inicio: ★ Favoritos y Mis cuadernos con círculo ＋ (2026-10-13) ---------- */
body #view-notes .nh .nh-row h2 { display: flex; align-items: center; gap: 8px; }
body #view-notes .nh .nh-row h2 svg { width: 22px; height: 22px; }
.nh-favlist { display: grid; gap: 8px; }
.nh-favrow { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; cursor: pointer;
  background: var(--mono-surface); border: 1px solid var(--mono-line); }
.nh-favrow-cover { width: 34px; flex: none; }
.nh-favrow > span:last-child { min-width: 0; }
.nh-favrow b { display: block; font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nh-favrow small { display: block; font-size: 12.5px; color: var(--mono-soft); }
.nh-favrow:focus-visible { outline: 2px solid var(--mono-accent); outline-offset: 2px; }
.nh-favempty { padding: 16px; border-radius: 16px; border: 1px dashed var(--mono-line); color: var(--mono-soft); font-size: 13.5px; text-align: center; }
.nh-welcome { display: grid; justify-items: center; gap: 10px; margin: 4px 0 22px; padding: 24px 16px; border: 1px solid var(--mono-line); border-radius: 22px; text-align: center; background: var(--mono-surface); }
.nh-welcome-book { display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--mono-ink); border-radius: 14px; color: var(--text); }
.nh-welcome-book svg { width: 27px; height: 27px; }
.nh-welcome .nh-eyebrow { margin: 3px 0 0; color: var(--mono-soft); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.nh-welcome h2 { margin: 0; color: var(--text); font: 800 25px/1.1 Manrope, system-ui, sans-serif; }
.nh-welcome-line { max-width: 31ch; margin: 0; color: var(--mono-soft); font-size: 14px; }
.nh-welcome-steps { display: grid; gap: 8px; width: min(100%, 420px); margin: 8px 0 0; padding: 0; list-style: none; text-align: left; }
.nh-welcome-steps button { all: unset; box-sizing: border-box; display: grid; gap: 3px; width: 100%; min-height: 58px; padding: 11px 13px; border: 1px solid var(--mono-line); border-radius: 14px; cursor: pointer; color: var(--text); }
.nh-welcome-steps button:hover, .nh-welcome-steps button:focus-visible { background: var(--mono-accent-soft); outline: 2px solid var(--mono-accent); outline-offset: 2px; }
.nh-welcome-steps b { font: 800 14px/1.25 Manrope, system-ui, sans-serif; }
.nh-welcome-steps small { color: var(--mono-soft); font-size: 12px; }
.nh-homegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 8px; }
@media (min-width: 640px) { .nh-homegrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nh-homegrid .nh-recent-item { height: 100%; align-content: start; }
.nh-homegrid .nh-tags { justify-content: center; }
.nh-homegrid small { text-align: center; }
.nh-newcircle { all: unset; box-sizing: border-box; display: grid; place-items: center; align-content: center; gap: 10px; min-height: 150px; border-radius: 18px; cursor: pointer;
  border: 2px dashed var(--mono-line); color: var(--text); }
.nh-newcircle span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--mono-accent); color: var(--mono-on-accent); font: 300 38px/1 system-ui, sans-serif; }
.nh-newcircle b { font: 800 14px Manrope, system-ui, sans-serif; }
.nh-newcircle:focus-visible { outline: 2px solid var(--mono-accent); outline-offset: 2px; }

/* Caneca al lado del cuaderno (esquina de su tarjeta, botón propio) y aviso del borrador. */
.nh-recent-cell { position: relative; }
body .nh-recent-cell .nh-book-del { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; margin: 0; border-radius: 12px; background: var(--mono-surface); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.nh-book-del svg { width: 22px; height: 22px; }
.nh-draftnote { margin: 4px 2px 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; background: var(--mono-accent-soft); color: var(--text); }

/* Papelera de reciclaje: caneca más grande y elegante; acceso visible en Cuadernos y en Más. */
body .nh-recent-cell .nh-book-del, body .nh-nbcard .nh-book-del { width: 46px; height: 46px; }
.nh-book-del .ic-bin { width: 30px !important; height: 30px !important; }
.nh-morerow .nh-mod-ic .ic-bin { width: 30px; height: 30px; }
.nh-trashlink { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px 0 10px; border-radius: 14px; cursor: pointer;
  background: var(--mono-surface); border: 1px solid var(--mono-line); color: var(--text); font: 800 14px Manrope, system-ui, sans-serif; }
.nh-trashlink .ic-bin { width: 30px; height: 30px; }
.nh-trashlink:focus-visible { outline: 2px solid var(--mono-accent); outline-offset: 2px; }
.nh-trashhead { display: flex; align-items: center; gap: 14px; margin: 4px 0 6px; padding: 14px; border-radius: 18px; background: var(--mono-surface); border: 1px solid var(--mono-line); }
.nh-trashhead .ic-bin { flex: none; width: 56px; height: 56px; color: var(--text); }
.nh-trashhead p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--mono-soft); }
.nh-trashhead b { color: var(--text); }
/* «Eliminar para siempre»: solo colores de la app (blanco/negro), con borde para distinguirlo de «Recuperar». */
body .nh-pill.is-danger { background: transparent; color: var(--text); border: 1.5px solid var(--mono-ink); margin-left: 6px; }

/* ---------- Estantería de cuadernos «libres» (sin cuadro): ★ a un lado, caneca al otro, nombre debajo ---------- */
.nh-shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; padding: 6px 0 12px; }
@media (min-width: 640px) { .nh-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nh-shelf-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-rows: auto auto; align-items: start; justify-items: center; row-gap: 8px; }
.nh-shelf-cover { all: unset; grid-column: 2; grid-row: 1; width: 78px; cursor: pointer; border-radius: 8px; transition: transform .15s ease; }
.nh-shelf-cover:active { transform: scale(.96); }
.nh-shelf-cover:focus-visible { outline: 2px solid var(--mono-accent); outline-offset: 4px; }
body .nh-shelf-item .nh-shelf-star { grid-column: 1; grid-row: 1; align-self: start; margin-top: 2px; }
body .nh-shelf-item .nh-book-del { grid-column: 3; grid-row: 1; align-self: start; position: static; width: 44px; height: 44px; margin: 0; border: 0; background: transparent; box-shadow: none; color: var(--text); }
body .nh-shelf-item .nh-book-del:hover, body .nh-shelf-item .nh-book-del:focus-visible { background: var(--mono-accent-soft); color: var(--text); }
.nh-shelf-name { all: unset; grid-column: 1 / -1; grid-row: 2; display: grid; justify-items: center; gap: 2px; max-width: 100%; text-align: center; cursor: pointer; }
.nh-shelf-name b { font: 800 14.5px Manrope, system-ui, sans-serif; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nh-shelf-name .nh-tags { justify-content: center; margin-top: 3px; }
.nh-shelf-name small { font-size: 12px; color: var(--mono-soft); }
.nh-shelf-item.is-new { grid-template-columns: 1fr; }
.nh-shelf-item.is-new .nh-newcircle { min-height: 0; width: 78px; height: 104px; border-radius: 10px; }
.nh-shelf-newlabel { font: 800 14.5px Manrope, system-ui, sans-serif; color: var(--text); }

/* Caneca cerrada; al poner el dedo o el cursor se abre la tapa y baja la flecha (animación mínima). */
.ic-bin .ic-bin-lid { transform-box: view-box; transform-origin: 26.5px 13px; transition: transform .2s ease; }
.ic-bin .ic-bin-arrow { opacity: 0; transform: translateY(-3px); transition: opacity .2s ease, transform .2s ease; }
.nh-book-del:hover .ic-bin-lid, .nh-book-del:active .ic-bin-lid, .nh-book-del:focus-visible .ic-bin-lid,
.nh-trashlink:hover .ic-bin-lid, .nh-trashlink:active .ic-bin-lid, .nh-morerow:hover .ic-bin-lid, .nh-morerow:active .ic-bin-lid, .nh-trashhead .ic-bin-lid { transform: rotate(78deg); }
.nh-book-del:hover .ic-bin-arrow, .nh-book-del:active .ic-bin-arrow, .nh-book-del:focus-visible .ic-bin-arrow,
.nh-trashlink:hover .ic-bin-arrow, .nh-trashlink:active .ic-bin-arrow, .nh-morerow:hover .ic-bin-arrow, .nh-morerow:active .ic-bin-arrow, .nh-trashhead .ic-bin-arrow { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ic-bin .ic-bin-lid, .ic-bin .ic-bin-arrow { transition: none; } }
.nh-rem .nh-rem-open { min-width: 0; }
body #view-notes .nh .nh-twobtn .nh-primary { margin: 0; }

/* ---------- Recordatorios, Archivados y Papelera (diseño nuevo) ---------- */
.nh-backlink { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 8px; margin: 4px 0 2px; border-radius: 999px;
  cursor: pointer; font: 700 14px Manrope, system-ui, sans-serif; color: var(--mono-soft); }
.nh-backlink svg { width: 20px; height: 20px; }
.nh-backlink:focus-visible { outline: 2px solid var(--mono-accent); }
.nh-twobtn { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 6px 0 4px; }
body #view-notes .nh .nh-twobtn .nh-primary { margin: 0; }
.nh-secondary { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 14px; cursor: pointer;
  background: var(--mono-surface); border: 1px solid var(--mono-line); color: var(--text); font: 800 14.5px Manrope, system-ui, sans-serif; }
.nh-secondary svg { width: 20px; height: 20px; }
.nh-rems { display: grid; gap: 10px; }
.nh-rem { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border-radius: 18px; background: var(--mono-surface); border: 1px solid var(--mono-line); }
.nh-rem.is-late { border-left: 4px solid var(--mono-ink); }
.nh-rem.is-done .nh-rem-open b { text-decoration: line-through; color: var(--mono-soft); }
.nh-rem-check { -webkit-appearance: none; appearance: none; flex: none; width: 26px; height: 26px; margin: 0; border-radius: 50%; border: 2px solid var(--mono-soft); cursor: pointer; display: grid; place-items: center; }
.nh-rem-check:checked { background: var(--mono-accent); border-color: var(--mono-accent); }
.nh-rem-check:checked::after { content: '✓'; color: var(--mono-on-accent); font: 900 14px system-ui; }
.nh-rem-open { all: unset; flex: 1; min-width: 0; cursor: pointer; display: grid; gap: 2px; }
.nh-rem-open b { font-size: 15.5px; color: var(--text); overflow-wrap: anywhere; }
.nh-rem-open small { font-size: 12.5px; color: var(--mono-soft); }
.nh-rem-open span { font-size: 13px; color: var(--mono-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nh-rem-del { all: unset; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; color: var(--mono-soft); }
.nh-rem-del svg { width: 20px; height: 20px; }
.nh-rem-del:hover, .nh-rem-del:focus-visible { background: var(--mono-accent-soft); color: var(--text); }
.nh-pill { all: unset; flex: none; padding: 9px 14px; border-radius: 999px; cursor: pointer; background: var(--mono-accent); color: var(--mono-on-accent); font: 800 13px Manrope, system-ui, sans-serif; }
.nh-fav-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; }
.nh-fav-ic svg { width: 30px; height: 30px; }
.nh-emptybox {display: grid; justify-items: center; gap: 8px; margin-top: 24px; padding: 34px 20px; border-radius: 22px; border: 1px dashed var(--mono-line); text-align: center; color: var(--mono-soft); }
.nh-emptybox svg { width: 40px; height: 40px; }
.nh-emptybox b { color: var(--text); font-size: 16px; }

/* ---------- Menú de abajo con burbuja flotante (referencia de Edilberto) ---------- */
@media (max-width: 999px) {
  body #view-notes .nh .nh-bubblebar { grid-template-columns: repeat(5, 1fr); height: calc(66px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); gap: 0; overflow: visible;
    border-radius: 22px 22px 0 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, .14); }
  /* La burbuja: círculo del color activo, con un aro del color de la página que hace ver el «corte» curvo en la barra. */
  body #view-notes .nh .nh-bubblebar .nh-notch { position: absolute; top: -34px; z-index: 0; width: 54px; height: 54px; border-radius: 50%; pointer-events: none;
    left: calc(6px + (100% - 12px) / 5 * var(--i) + (100% - 12px) / 10 - 33px); box-sizing: content-box;
    background: var(--mono-nav-active); border: 6px solid var(--mono-bg); box-shadow: 0 6px 14px rgba(0, 0, 0, .22);
    transition: left .42s cubic-bezier(.45, 1.35, .45, 1); }
  /* Pequeñas curvas a los lados del corte para que se vea suave, como en la referencia. */
  body #view-notes .nh .nh-bubblebar .nh-notch::before, body #view-notes .nh .nh-bubblebar .nh-notch::after { content: ''; position: absolute; top: 25px; width: 14px; height: 14px; background: transparent; }
  body #view-notes .nh .nh-bubblebar .nh-notch::before { left: -19px; border-top-right-radius: 14px; box-shadow: 5px -5px 0 0 var(--mono-bg); }
  body #view-notes .nh .nh-bubblebar .nh-notch::after { right: -19px; border-top-left-radius: 14px; box-shadow: -5px -5px 0 0 var(--mono-bg); }
  body #view-notes .nh .nh-bubblebar button { position: relative; z-index: 1; justify-content: flex-end; gap: 4px; padding: 0 0 9px; height: 66px; border-radius: 0; color: var(--text); }
  body #view-notes .nh .nh-bubblebar button svg { width: 24px; height: 24px; padding: 0; background: none !important; transition: transform .42s cubic-bezier(.45, 1.35, .45, 1), color .2s ease; }
  body #view-notes .nh .nh-bubblebar button span { font-size: 11px; transition: color .2s ease; }
  body #view-notes .nh .nh-bubblebar button[aria-current="page"] { color: var(--mono-nav-ink); }
  body #view-notes .nh .nh-bubblebar button[aria-current="page"] svg { transform: translateY(-37px) scale(1.12); color: var(--text); }
  body #view-notes .nh .nh-body { padding-bottom: 34px; }
}
@media (prefers-reduced-motion: reduce) { body #view-notes .nh .nh-bubblebar .nh-notch, body #view-notes .nh .nh-bubblebar button svg { transition: none; } }
@media (min-width: 1000px) { body #view-notes .nh .nh-bubblebar .nh-notch { display: none; } }

/* ---------- Temática de cuaderno: brinco del menú y páginas que se pasan (pedido de Edilberto) ---------- */
@keyframes nh-hop { 0% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-20px) rotate(-10deg) scale(1.06, .94); } 70% { transform: translateY(-6px) rotate(4deg); } 100% { transform: translateY(0) rotate(0); } }
@keyframes nh-iconflip { 0% { transform: translateY(-37px) scale(1.12) perspective(200px) rotateY(-180deg); } 100% { transform: translateY(-37px) scale(1.12) perspective(200px) rotateY(0); } }
@keyframes nh-pageturn { 0% { transform: perspective(1400px) rotateY(-78deg); opacity: .25; box-shadow: 24px 0 40px rgba(0, 0, 0, .25); } 70% { opacity: 1; } 100% { transform: perspective(1400px) rotateY(0); opacity: 1; } }
@media (max-width: 999px) {
  body #view-notes .nh .nh-bubblebar.is-hopping .nh-notch { animation: nh-hop .6s cubic-bezier(.3, 1.4, .5, 1); }
  body #view-notes .nh .nh-bubblebar.is-hopping button[aria-current="page"] svg { animation: nh-iconflip .6s ease; }
}
/* La hoja de funciones del cuaderno, las ventanitas (Agenda, Multimedia…) y las hojas se abren como una página
   que se pasa desde el lomo (solo al abrirse, no cada vez que se actualizan). */
body #view-notes .nh.is-turning .nh-page { transform-origin: left center; animation: nh-pageturn .62s cubic-bezier(.2, .8, .25, 1) both; }
/* La ventanita se centra con translate(-50%); la animación debe CONSERVARLO (si no, queda corrida a la derecha). */
@keyframes nh-pageturn-win { 0% { transform: translate(-50%, 0) perspective(1400px) rotateY(-70deg); opacity: .25; } 70% { opacity: 1; } 100% { transform: translate(-50%, 0) perspective(1400px) rotateY(0); opacity: 1; } }
body .nh-layer.is-open .nh-win.is-turning { transform-origin: left center; animation: nh-pageturn-win .55s cubic-bezier(.2, .8, .25, 1) both; }
body dialog.notebook-book-dialog[open] .book-layout { transform-origin: left center; animation: nh-pageturn .62s cubic-bezier(.2, .8, .25, 1) both; }
@media (prefers-reduced-motion: reduce) { body #view-notes .nh .nh-bubblebar.is-hopping .nh-notch, body #view-notes .nh .nh-bubblebar.is-hopping button svg, body #view-notes .nh.is-turning .nh-page, body .nh-win.is-turning, body dialog.notebook-book-dialog[open] .book-layout { animation: none; } }
/* ＋ pequeño en el encabezado (crear cuaderno), junto a la lupa. */
body #view-notes .nh .nh-appbar .nh-plus { font: 300 26px/1 system-ui, sans-serif; color: var(--text); }

/* Lupa por pantalla: barra de búsqueda bajo el título, con X para cerrarla. */
.nh-topsearch { margin: 4px 0 12px; }
.nh-search-x { all: unset; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font: 400 24px/1 system-ui; color: var(--mono-soft); }
.nh-search-x:focus-visible { outline: 2px solid var(--mono-accent); }
body #view-notes .nh .nh-appbar .nh-round[data-act="search"][aria-pressed="true"] { background: var(--mono-accent); color: var(--mono-on-accent); }
[hidden].nh-morerow, [hidden].nh-rem, [hidden].nh-favrow, [hidden].nh-shelf-item { display: none !important; }

/* ---------- Calculadora y tablas ---------- */
.cc-layer, :root[data-theme="dark"] .cc-layer {
  --cc-bg: var(--mono-surface); --cc-ink: var(--mono-ink); --cc-soft: var(--mono-soft); --cc-key: var(--mono-surface); --cc-keyline: var(--mono-line);
  --cc-fn: var(--mono-accent-soft); --cc-op: var(--mono-accent-soft); --cc-eq: var(--mono-accent); --cc-disp: var(--mono-bg);
}
.cc-key.is-eq { color: var(--mono-on-accent); }
.cc-key.is-on:not(.is-shift) { color: var(--mono-on-accent); }
.cc-bg { background: rgba(0, 0, 0, .35); }
.pt-bar, :root[data-theme="dark"] .pt-bar { background: var(--mono-accent-soft); border-color: var(--mono-line); color: var(--text); }
.pt-bar button, .pt-bar select, :root[data-theme="dark"] .pt-bar button, :root[data-theme="dark"] .pt-bar select { background: var(--mono-surface); border-color: var(--mono-line); color: var(--text); }
.pt-dialog, :root[data-theme="dark"] .pt-dialog { background: var(--mono-surface); color: var(--text); }

/* ---------- Chat ---------- */
.ian-chat, :root[data-theme="light"] .ian-chat {
  --ic-surface: var(--mono-surface); --ic-field: var(--mono-bg); --ic-line: var(--mono-line); --ic-text: var(--mono-ink); --ic-muted: var(--mono-soft);
  --ic-accent: var(--mono-accent); --ic-accent-ink: var(--mono-on-accent);
}
/* chat.css trae un degradado oscuro propio. En el modo Claro la interfaz debe
   respetar el fondo blanco; los fondos elegidos dentro de cada conversación
   siguen siendo contenido y se conservan en .ic-thread-messages. */
:root[data-theme="light"] .ian-chat { background: var(--mono-bg); }

/* Volver al Inicio desde el Chat: flecha grande y bien visible en claro y oscuro (pedido de Edilberto). */
body .ian-chat .ic-head .ic-back-app { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 8px !important;
  border-radius: 999px !important; background: #FFFFFF !important; color: #1B1F2A !important; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); font: 800 15px Manrope, system-ui, sans-serif !important; opacity: 1 !important; }
body .ian-chat .ic-head .ic-back-app svg { width: 24px !important; height: 24px !important; stroke-width: 2.6; }
body .ian-chat .ic-head .ic-back-app span { display: inline !important; font-size: 15px !important; color: inherit !important; }
body .ian-chat .ic-goback { margin-top: 10px; font-weight: 800; }
/* Con el aviso «No se pudo conectar» queda UNA sola salida: «← Volver al Inicio» (pedido de Edilberto). */
body .ian-chat:has(.ic-goback) .ic-back-app { display: none !important; }

/* X grande para salir del Chat en cualquier pantalla (también si no se pudo conectar). */
.ian-chat .ic-exit { all: unset; box-sizing: border-box; flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-left: 6px; border-radius: 50%; cursor: pointer;
  font: 400 28px/1 system-ui, sans-serif; color: var(--ic-text); background: color-mix(in srgb, var(--ic-text) 10%, transparent); }
.ian-chat .ic-exit:focus-visible { outline: 2px solid var(--ic-accent); outline-offset: 2px; }

/* Chat en modo claro: las filas de conversación tenían fondo casi negro con letras negras (ilegible).
   Revisado con cuenta de prueba, 2026-10-13. */
:root[data-theme="light"] body .ian-chat .ic-row { background: var(--mono-surface) !important; color: var(--text) !important; border: 1px solid var(--mono-line) !important; }
:root[data-theme="light"] body .ian-chat .ic-row:hover, :root[data-theme="light"] body .ian-chat .ic-row:focus-visible { background: var(--mono-accent-soft) !important; }
:root[data-theme="light"] body .ian-chat .ic-row * { color: inherit; }
:root[data-theme="light"] body .ian-chat .ic-row small, :root[data-theme="light"] body .ian-chat .ic-row .ic-sub { color: var(--mono-soft) !important; }
/* La inicial no debe heredar el azul oscuro de la fila: queda blanca y legible sobre el círculo azul. */
body .ian-chat .ic-avatar:not(.has-photo) { color: #FFFFFF !important; letter-spacing: .04em; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
/* Etiquetas «Pendiente», «Modo prueba» y «No disponible»: solo blanco y negro (sin amarillo ni naranja). */
body .ian-chat .ic-soon, body .ian-chat .ic-test, body .settings-na-badge { background: transparent !important; color: var(--mono-soft) !important; border: 1px solid var(--mono-line) !important; }

/* ---------- Entrada con correo y contraseña (referencia de Edilberto, 2026-10-13) ---------- */
.ian-chat .ic-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body .ian-chat .ic-login { max-width: 420px; margin-inline: auto; }
body .ian-chat .ic-login h2 { font-size: 30px; letter-spacing: -.01em; }
body .ian-chat .ic-login .ic-form { display: grid; gap: 12px; width: 100%; margin-top: 6px; text-align: left; }
body .ian-chat .ic-login .ic-field input { box-sizing: border-box; width: 100%; min-height: 52px; padding: 0 20px; border-radius: 999px !important;
  border: 1.5px solid var(--mono-line) !important; background: var(--mono-surface) !important; color: var(--text) !important; font: 500 16px Manrope, system-ui, sans-serif; }
body .ian-chat .ic-login .ic-field input::placeholder { color: var(--mono-soft); }
body .ian-chat .ic-login .ic-field input:focus { outline: none; border-color: var(--mono-accent) !important; box-shadow: 0 0 0 3px var(--mono-accent-soft) !important; }
body .ian-chat .ic-login .ic-pass { position: relative; display: block; }
body .ian-chat .ic-login .ic-pass .ic-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; }
body .ian-chat .ic-login .ic-forgot { justify-self: end; margin-top: -4px; font-size: 13px; font-weight: 700; color: var(--text) !important; }
body .ian-chat .ic-login .ic-primary { min-height: 52px; border-radius: 999px; background: var(--mono-accent) !important; color: var(--mono-on-accent) !important; }
body .ian-chat .ic-login .ic-or { width: 100%; margin: 14px 0; }
body .ian-chat .ic-login .ic-google { width: 100%; min-height: 52px; border-radius: 999px; border: 1.5px solid var(--mono-line) !important; background: var(--mono-surface) !important; color: var(--text) !important; }
body .ian-chat .ic-login .ic-create { width: 100%; min-height: 50px; margin-top: 12px; border-radius: 999px; font-weight: 800; }

/* ---------- Avisos ---------- */
.ian-toast { background: var(--mono-ink); color: var(--mono-bg); }

/* Frase del día: estilo elegante (cursiva con serifa), un poco más grande y entre comillas. */
body .nh-welcome .nh-welcome-line { font: italic 400 17px/1.45 Georgia, 'Times New Roman', serif !important; color: var(--text) !important; opacity: .82; max-width: 30ch; margin: 2px auto 4px !important; }
body .nh-welcome .nh-welcome-line::before { content: '“'; }
body .nh-welcome .nh-welcome-line::after { content: '”'; }
/* Bienvenida: 3 pasos como tarjetas limpias, con el número dentro (pedido de Edilberto, 2026-10-13). */
body ol.nh-welcome-steps { list-style: none !important; counter-reset: paso; padding: 0 !important; margin: 10px 0 0 !important; display: grid; gap: 10px; width: min(100%, 440px); }
body ol.nh-welcome-steps > li { list-style: none !important; margin: 0; padding: 0; counter-increment: paso; }
body ol.nh-welcome-steps > li::marker { content: ''; }
body .nh-welcome-steps button { all: unset; box-sizing: border-box; position: relative; display: grid; gap: 3px; width: 100%; min-height: 64px; padding: 12px 14px 12px 58px; text-align: left; cursor: pointer;
  background: var(--mono-surface) !important; color: var(--text) !important; border: 1px solid var(--mono-line) !important; border-radius: 16px; box-shadow: 0 3px 12px rgba(0, 0, 0, .06); }
body .nh-welcome-steps button::before { content: counter(paso); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: var(--mono-accent); color: var(--mono-on-accent); font: 800 15px/1 Manrope, system-ui, sans-serif; }
body .nh-welcome-steps b { display: block; font: 800 14.5px/1.25 Manrope, system-ui, sans-serif; color: var(--text) !important; }
body .nh-welcome-steps b::first-letter { letter-spacing: 0; }
body .nh-welcome-steps small { display: block; font-size: 12.5px; color: var(--mono-soft) !important; }
body .nh-welcome-steps button:hover, body .nh-welcome-steps button:focus-visible { outline: 2px solid var(--mono-accent); outline-offset: 2px; }

/* Entrada solo con Google: enlace «Crear una cuenta de Google gratis» con forma de botón (2026-10-13). */
body .ian-chat .ic-login a.ic-create { box-sizing: border-box; display: flex; align-items: center; justify-content: center; text-decoration: none; text-align: center;
  border: 1.5px solid var(--mono-line) !important; background: var(--mono-surface) !important; color: var(--text) !important; padding: 0 16px; }
body .ian-chat .ic-login a.ic-create:focus-visible { outline: 2px solid var(--mono-accent); outline-offset: 2px; }
body .ian-chat .ic-login .ic-or span { font-size: 12.5px; color: var(--mono-soft); }

/* ---------- Simulación animada del Inicio vacío (pedido de Edilberto, 2026-10-13) ---------- */
.nh-showcase { position: relative; width: min(100%, 440px); margin: 6px auto 4px; }
.sc-scene { display: none; margin: 0; }
.sc-scene.is-active { display: grid; gap: 10px; justify-items: center; animation: sc-in .45s ease both; }
@keyframes sc-in { from { opacity: 0; transform: perspective(900px) rotateY(-25deg); } to { opacity: 1; transform: none; } }
.sc-stage { position: relative; width: 100%; height: 170px; display: grid; place-items: center; border-radius: 18px; overflow: hidden;
  background: var(--mono-bg); border: 1px solid var(--mono-line); }
.sc-scene figcaption { display: grid; gap: 2px; text-align: center; }
.sc-scene figcaption b { font: 800 16px/1.2 Manrope, system-ui, sans-serif; color: var(--text); }
.sc-scene figcaption small { font-size: 13px; color: var(--mono-soft); }
.sc-dots { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
.sc-dots button { all: unset; box-sizing: border-box; width: 24px; height: 24px; display: grid; place-items: center; cursor: pointer; }
.sc-dots button::after { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--mono-line); transition: width .25s ease, background .25s ease; }
.sc-dots button[aria-pressed="true"]::after { width: 22px; background: var(--mono-ink); }
.sc-dots button:focus-visible { outline: 2px solid var(--mono-accent); border-radius: 8px; }

/* 1 · Cuaderno que se abre */
.sc-book { position: relative; width: 96px; height: 124px; perspective: 700px; }
.sc-page { position: absolute; inset: 0; border-radius: 4px 10px 10px 4px; background: var(--mono-surface); border: 1px solid var(--mono-line); display: grid; align-content: center; gap: 12px; padding: 0 14px; }
.sc-page i { height: 2px; background: var(--mono-line); border-radius: 2px; }
.sc-cover { position: absolute; inset: 0; border-radius: 4px 10px 10px 4px; background: var(--mono-ink); transform-origin: left center; box-shadow: 4px 6px 14px rgba(0, 0, 0, .25); }
.sc-cover span { position: absolute; left: -6px; width: 12px; height: 8px; border-radius: 4px; border: 2px solid var(--mono-soft); background: var(--mono-bg); }
.sc-cover span:nth-child(1) { top: 26px; } .sc-cover span:nth-child(2) { top: 56px; } .sc-cover span:nth-child(3) { top: 86px; }
.sc-scene.is-active .sc-cover { animation: sc-open 3.2s ease-in-out infinite; }
@keyframes sc-open { 0%, 15% { transform: rotateY(0); } 50%, 85% { transform: rotateY(-155deg); } 100% { transform: rotateY(0); } }

/* 2 · Tinta que escribe */
.sc-sheet { position: relative; width: 190px; height: 124px; border-radius: 10px; background: var(--mono-surface); border: 1px solid var(--mono-line); display: grid; align-content: center; gap: 16px; padding: 0 18px; box-sizing: border-box; }
.sc-sheet i { height: 3px; border-radius: 3px; background: var(--mono-ink); width: 0; }
.sc-scene.is-active .sc-sheet i { animation: sc-ink 3.2s ease-out infinite; }
.sc-sheet i:nth-child(2) { animation-delay: .5s !important; } .sc-sheet i:nth-child(3) { animation-delay: 1s !important; } .sc-sheet i:nth-child(4) { animation-delay: 1.5s !important; }
@keyframes sc-ink { 0% { width: 0; } 30% { width: 100%; } 90% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }
.sc-sheet i:nth-child(4) { max-width: 60%; }
.sc-pen { position: absolute; right: 10px; top: 14px; font: 400 26px/1 system-ui; color: var(--text); }
.sc-scene.is-active .sc-pen { animation: sc-pen 1.6s ease-in-out infinite; }
@keyframes sc-pen { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-8px, 6px) rotate(-12deg); } }

/* 3 · Fotos, audios y enlaces que caen al cuaderno */
.sc-save { position: relative; width: 200px; height: 140px; }
.sc-tray { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); width: 64px; height: 64px; display: grid; place-items: center; color: var(--text); }
.sc-tray svg { width: 56px; height: 56px; }
.sc-chip { position: absolute; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mono-ink); color: var(--mono-bg); font: 800 20px/1 system-ui; opacity: 0; }
.sc-chip svg { width: 22px; height: 22px; }
.sc-chip:nth-child(1) { left: 22px; } .sc-chip:nth-child(2) { left: 80px; } .sc-chip:nth-child(3) { left: 138px; }
.sc-scene.is-active .sc-chip { animation: sc-drop 3.2s ease-in infinite; }
.sc-chip:nth-child(2) { animation-delay: .4s !important; } .sc-chip:nth-child(3) { animation-delay: .8s !important; }
@keyframes sc-drop { 0% { opacity: 0; transform: translateY(-10px); } 15% { opacity: 1; transform: translateY(0); } 55% { opacity: 1; transform: translate(var(--sc-x, 0), 70px) scale(.6); } 70%, 100% { opacity: 0; transform: translate(var(--sc-x, 0), 80px) scale(.3); } }
.sc-chip:nth-child(1) { --sc-x: 58px; } .sc-chip:nth-child(3) { --sc-x: -58px; }

/* 4 · Chat que conversa */
.sc-chat { width: 220px; display: grid; gap: 8px; }
.sc-chat p { margin: 0; padding: 8px 12px; border-radius: 14px; font: 600 13px/1.3 Manrope, system-ui, sans-serif; max-width: 80%; opacity: 0; }
.sc-chat .is-in { justify-self: start; background: var(--mono-surface); border: 1px solid var(--mono-line); color: var(--text); border-bottom-left-radius: 4px; }
.sc-chat .is-out { justify-self: end; background: var(--mono-ink); color: var(--mono-bg); border-bottom-right-radius: 4px; }
.sc-scene.is-active .sc-chat p { animation: sc-msg 3.2s ease-out infinite; }
.sc-chat p:nth-child(2) { animation-delay: .7s !important; } .sc-chat p:nth-child(3) { animation-delay: 1.4s !important; }
@keyframes sc-msg { 0% { opacity: 0; transform: translateY(8px); } 15%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.sc-typing { display: flex; gap: 4px; }
.sc-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mono-soft); animation: sc-dot 1s ease-in-out infinite; }
.sc-typing i:nth-child(2) { animation-delay: .15s; } .sc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sc-dot { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-4px); opacity: 1; } }

/* 5 · Reloj de tarjetas y campana */
.sc-clock { display: flex; align-items: center; gap: 8px; }
.sc-card { position: relative; display: grid; place-items: center; width: 64px; height: 72px; border-radius: 10px; background: #1B1F2A; color: #E2E6EE; font: 400 46px/1 "Bebas Neue", Oswald, Impact, sans-serif; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.sc-card::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #1B1F2A; }
.sc-scene.is-active .sc-card:nth-child(2) { animation: sc-flip 3.2s ease-in-out infinite; }
@keyframes sc-flip { 0%, 40% { transform: perspective(300px) rotateX(0); } 50% { transform: perspective(300px) rotateX(-90deg); } 60%, 100% { transform: perspective(300px) rotateX(0); } }
.sc-bell { display: grid; place-items: center; width: 44px; height: 44px; margin-left: 8px; color: var(--text); }
.sc-bell svg { width: 34px; height: 34px; }
.sc-scene.is-active .sc-bell { animation: sc-ring 3.2s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes sc-ring { 0%, 55% { transform: rotate(0); } 60% { transform: rotate(18deg); } 65% { transform: rotate(-16deg); } 70% { transform: rotate(12deg); } 75% { transform: rotate(-8deg); } 80%, 100% { transform: rotate(0); } }

/* Botón principal de la bienvenida */
.nh-welcome-cta { all: unset; box-sizing: border-box; display: grid; place-items: center; width: min(100%, 440px); min-height: 52px; margin: 14px auto 0; border-radius: 999px; cursor: pointer;
  background: var(--mono-accent); color: var(--mono-on-accent); font: 800 16px Manrope, system-ui, sans-serif; }
.nh-welcome-cta:focus-visible { outline: 2px solid var(--mono-accent); outline-offset: 3px; }

/* Menos movimiento: las escenas se ven quietas (se cambian con los puntitos o deslizando). */
@media (prefers-reduced-motion: reduce) {
  .sc-scene.is-active, .sc-scene.is-active * { animation: none !important; }
  .sc-sheet i { width: 100%; } .sc-chat p, .sc-chip { opacity: 1; }
}

/* Bienvenida a PANTALLA COMPLETA (pedido de Edilberto): solo quedan el logo arriba y el menú abajo. */
body #view-notes .nh .nh-welcome.is-full { box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; margin: 8px 0 0; padding: 14px 14px 10px; border: 0; background: transparent;
  min-height: calc(100dvh - 60px - 66px - 34px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); text-align: center; }
.nh-welcome-hello { margin: 0; font-size: 13.5px; color: var(--mono-soft); line-height: 1.4; }
.nh-welcome-hello b { color: var(--text); font-size: 15px; }
.nh-welcome-hello span { font-style: italic; font-family: Georgia, 'Times New Roman', serif; }
body .nh-welcome.is-full .nh-welcome-cta { margin: 0 auto; width: min(100%, 460px); }
.nh-welcome-cta.is-swap { animation: sc-cta .4s ease; }
@keyframes sc-cta { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
body .nh-welcome.is-full .nh-showcase { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 560px; margin: 0 auto; }
body .nh-welcome.is-full .sc-scene.is-active { flex: 1; grid-template-rows: 1fr auto; }
body .nh-welcome.is-full .sc-stage { height: auto; min-height: 260px; border-radius: 24px; }
/* Las ilustraciones se agrandan para llenar la escena. */
body .nh-welcome.is-full .sc-stage > * { transform: scale(1.55); }
@media (max-height: 640px) { body .nh-welcome.is-full .sc-stage { min-height: 200px; } body .nh-welcome.is-full .sc-stage > * { transform: scale(1.2); } }
body .nh-welcome.is-full .sc-scene figcaption b { font-size: 19px; }
body .nh-welcome.is-full .sc-scene figcaption small { font-size: 14px; }
body .nh-welcome.is-full .sc-stage > .sc-book { transform: translateX(78px) scale(1.4); }

/* ---------- Escenas «reales» de la bienvenida (2026-10-13) ---------- */
/* 2 · El lápiz escribe de verdad, con letra de mano */
.sc-write { width: 210px; height: 128px; align-content: center; padding: 10px 16px; background-image: repeating-linear-gradient(transparent 0 27px, var(--mono-line) 27px 28px); }
.sc-hand { margin: 0; font: 400 19px/28px 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive; color: var(--text); text-align: left; min-height: 84px; }
.sc-hand .sc-pen { display: inline-block; position: static; margin-left: 2px; font: 400 20px/1 system-ui; transform: translateY(-4px) rotate(-10deg); }
.sc-scene.is-active .sc-hand .sc-pen { animation: sc-pen-wiggle .35s ease-in-out infinite alternate; }
@keyframes sc-pen-wiggle { from { transform: translateY(-4px) rotate(-14deg); } to { transform: translate(2px, -1px) rotate(-4deg); } }

/* 3 · Video que se reproduce, audio con ondas y una foto */
.sc-media { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 220px; }
.sc-video { grid-column: 1 / -1; position: relative; height: 82px; border-radius: 12px; background: var(--mono-ink); display: grid; place-items: center; overflow: hidden; }
.sc-play { color: var(--mono-bg); font: 400 26px/1 system-ui; }
.sc-scene.is-active .sc-play { animation: sc-play 1.6s ease-in-out infinite; }
@keyframes sc-play { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.15); opacity: 1; } }
.sc-bar { position: absolute; left: 10px; right: 10px; bottom: 8px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
:root[data-theme="dark"] .sc-bar { background: rgba(0, 0, 0, .25); }
.sc-bar i { display: block; height: 100%; width: 0; background: var(--mono-bg); }
.sc-scene.is-active .sc-bar i { animation: sc-progress 4.6s linear infinite; }
@keyframes sc-progress { from { width: 0; } to { width: 100%; } }
.sc-audio { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 8px; border-radius: 12px; border: 1px solid var(--mono-line); background: var(--mono-surface); color: var(--text); }
.sc-audio span { display: flex; align-items: center; gap: 3px; height: 24px; }
.sc-audio span i { width: 3px; height: 30%; border-radius: 2px; background: var(--mono-ink); }
.sc-scene.is-active .sc-audio span i { animation: sc-eq .9s ease-in-out infinite; }
.sc-audio span i:nth-child(2) { animation-delay: .1s !important; } .sc-audio span i:nth-child(3) { animation-delay: .25s !important; } .sc-audio span i:nth-child(4) { animation-delay: .05s !important; }
.sc-audio span i:nth-child(5) { animation-delay: .3s !important; } .sc-audio span i:nth-child(6) { animation-delay: .15s !important; } .sc-audio span i:nth-child(7) { animation-delay: .2s !important; }
@keyframes sc-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.sc-photo { display: grid; place-items: center; height: 44px; border-radius: 12px; border: 1px solid var(--mono-line); background: var(--mono-surface); color: var(--text); }
.sc-photo svg { width: 24px; height: 24px; }
.sc-scene.is-active .sc-photo { animation: sc-pop 2.4s ease-in-out infinite; }
@keyframes sc-pop { 0%, 70%, 100% { transform: none; } 80% { transform: scale(1.08) rotate(-3deg); } }

/* 4 · Chat con guion: «escribiendo…» y luego el mensaje */
.sc-chat { width: 230px; min-height: 150px; align-content: end; }
body .sc-scene.is-active .sc-chat p { opacity: 1; animation: none; }
.sc-chat p.sc-show { animation: sc-show .35s ease-out both !important; }
@keyframes sc-show { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.sc-chat p.sc-typing { display: flex; gap: 4px; padding: 10px 12px; }

/* 5 · Hazlo a tu estilo: la hoja cambia de blanco a negro y las letras de estilo */
.sc-style { display: flex; align-items: center; gap: 16px; }
.sc-mini { width: 130px; height: 120px; border-radius: 12px; border: 1px solid var(--mono-line); display: grid; align-content: center; gap: 8px; padding: 0 14px; box-sizing: border-box; background: #FFFFFF; color: #1B1F2A; }
.sc-mini b { font: 800 30px/1 Manrope, system-ui, sans-serif; }
.sc-mini span { font: 600 13px/1 Manrope, system-ui, sans-serif; }
.sc-mini i { height: 3px; border-radius: 3px; background: currentColor; opacity: .35; }
.sc-scene.is-active .sc-mini { animation: sc-theme 5.2s ease-in-out infinite; }
.sc-scene.is-active .sc-mini b { animation: sc-font 5.2s steps(1) infinite; }
@keyframes sc-theme { 0%, 40% { background: #FFFFFF; color: #1B1F2A; } 50%, 90% { background: #1B1F2A; color: #E2E6EE; } 100% { background: #FFFFFF; color: #1B1F2A; } }
@keyframes sc-font { 0% { font: 800 30px/1 Manrope, sans-serif; } 25% { font: italic 400 32px/1 Georgia, serif; } 50% { font: 800 34px/1 Manrope, sans-serif; } 75% { font: 400 28px/1 'Segoe Print', cursive; } }
.sc-toggle { position: relative; width: 52px; height: 30px; border-radius: 999px; border: 1.5px solid var(--mono-ink); }
.sc-toggle i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--mono-ink); }
.sc-scene.is-active .sc-toggle i { animation: sc-switch 5.2s ease-in-out infinite; }
@keyframes sc-switch { 0%, 40% { transform: none; } 50%, 90% { transform: translateX(22px); } 100% { transform: none; } }

/* 6 · La alarma suena: ondas alrededor de la campana y el reloj vibra */
.sc-bell { position: relative; }
.sc-wave { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--mono-ink); opacity: 0; }
.sc-scene.is-active .sc-wave { animation: sc-wave 1.6s ease-out infinite; }
.sc-scene.is-active .sc-wave:nth-child(2) { animation-delay: .5s; }
@keyframes sc-wave { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
.sc-scene.is-active .sc-bell { animation: sc-ring 1.2s ease-in-out infinite !important; }
.sc-scene.is-active .sc-clock .sc-card:first-child { animation: sc-buzz 1.2s linear infinite; }
@keyframes sc-buzz { 0%, 60%, 100% { transform: none; } 65% { transform: translateX(-2px); } 70% { transform: translateX(2px); } 75% { transform: translateX(-2px); } 80% { transform: translateX(1px); } }

@media (prefers-reduced-motion: reduce) { .sc-mini { background: #1B1F2A; color: #E2E6EE; } .sc-bar i { width: 60%; } .sc-audio span i { height: 70%; } }
.sc-hand { font-family: Caveat, 'Segoe Print', 'Bradley Hand', cursive !important; font-size: 25px !important; font-weight: 600 !important; }
html body #view-notes .nh .nh-welcome .sc-hand, html body #view-notes .nh .nh-welcome .sc-hand span { font-family: Caveat, 'Segoe Print', 'Bradley Hand', cursive !important; font-size: 26px !important; font-weight: 600 !important; line-height: 28px !important; }
body .nh-welcome.is-full .sc-stage > .sc-media { transform: scale(1.22); } body .nh-welcome.is-full .sc-stage > .sc-clock { transform: scale(1.12); } body .nh-welcome.is-full .sc-stage > .sc-chat { transform: scale(1.12); } body .nh-welcome.is-full .sc-stage > .sc-style { transform: scale(1.3); } body .nh-welcome.is-full .sc-stage > .sc-write { transform: scale(1.3); }

/* ---------- Marca meldune (2026-10-13): colores del logo (azul, violeta, cian y azul marino) ---------- */
/* Reemplaza el blanco y negro: solo cambian los colores; la forma de todo sigue igual. */
:root {
  --seima-blue: #E55B13; --seima-violet: #4A3FB5; --seima-cyan: #E55B13; --seima-navy: #4A3FB5;
  --seima-grad: linear-gradient(135deg, #C24A0C 0%, #C24A0C 55%, #C24A0C 100%);
  --mono-bg: #F4F6FA; --mono-surface: #FFFFFF; --mono-line: #E2E6EE; --mono-ink: #4A3FB5; --mono-soft: #5B6070;
  --mono-accent: #C24A0C; --mono-accent-soft: #E2E6EE; --mono-on-accent: #FFFFFF;
  --mono-nav: #C24A0C; --mono-nav-ink: #FFFFFF; --mono-nav-soft: rgba(255, 255, 255, .72); --mono-nav-active: #FFFFFF; --mono-nav-active-ink: #C24A0C;
  --cuadernote-neon: #E55B13;
}
:root[data-theme="dark"] {
  --mono-bg: #232B3A; --mono-surface: #313B4F; --mono-line: #313B4F; --mono-ink: #FF7A33; --mono-soft: #8E9BB2;
  --mono-accent: #FF7A33; --mono-accent-soft: rgba(142, 155, 178, .16); --mono-on-accent: #232B3A;
  --mono-nav: #313B4F; --mono-nav-ink: #EEF2F8; --mono-nav-soft: rgba(255, 255, 255, .66); --mono-nav-active: #FF7A33; --mono-nav-active-ink: #232B3A;
  --cuadernote-neon: #FF7A33;
}
/* Menú de abajo con el degradado del logo (azul → violeta). */
body #view-notes .nh .nh-bottom { background: var(--seima-grad); }
:root[data-theme="dark"] body #view-notes .nh .nh-bottom { background: linear-gradient(135deg, #E55B13 0%, #E55B13 55%, #E55B13 100%); }
/* Botón principal con el degradado de la marca. */
body #view-notes .nh .nh-primary, :root[data-theme="dark"] body #view-notes .nh .nh-primary { background: var(--seima-grad); color: #EEF2F8; }
/* Lema de meldune (Analiza. Crea. Comparte.) */
.seima-slogan { margin: 4px 0 10px; font: 700 14px/1.3 Manrope, system-ui, sans-serif; letter-spacing: .03em;
  background: linear-gradient(90deg, #E55B13 0%, #E55B13 55%, #C24A0C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Marca de inteligencia artificial: «✦ Próximamente» */
.nh-tile .nh-ai-soon { font-style: normal; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #4A3FB5, #E55B13); color: #FFFFFF; font: 800 10.5px/1.6 Manrope, system-ui, sans-serif; }
.nh-tile .nh-ai-soon span { font-size: 11px; }

/* meldune · íconos de funciones con los colores del logo (Agenda, Escribir, Multimedia, Documentos…) */
body #view-notes .nh .nh-tile svg, body #view-notes .nh .nh-mod svg, body #view-notes .nh .nh-win-head svg { color: var(--text); }
body #view-notes .nh .nh-tile:nth-child(3n+2) svg { color: var(--text); }
body #view-notes .nh .nh-tile:nth-child(3n) svg { color: #1B1F2A; }
:root[data-theme="dark"] body #view-notes .nh .nh-tile svg { color: var(--text); }
:root[data-theme="dark"] body #view-notes .nh .nh-tile:nth-child(3n+2) svg { color: #EEF2F8; }
/* Encabezados y títulos en azul marino; acentos en azul */
body #view-notes .nh .nh-appbar b, body #view-notes .nh h2 { color: var(--text); }
body #view-notes .nh .nh-appbar button svg { color: var(--text); }
:root[data-theme="dark"] body #view-notes .nh .nh-appbar button svg { color: var(--text); }
/* Animación de bienvenida: puntos, video y tarjetas con la marca */
.sc-video { background: var(--seima-grad) !important; }
.sc-play, .sc-bar i { color: #FFFFFF; }
.sc-bar i { background: #FFFFFF !important; }
.sc-audio span i { background: var(--seima-violet) !important; }
.sc-photo { color: var(--text) !important; }
.sc-toggle { border-color: var(--seima-blue) !important; } .sc-toggle i { background: var(--seima-grad) !important; }
.sc-wave { border-color: var(--seima-cyan) !important; }
@keyframes sc-theme { 0%, 40% { background: #FFFFFF; color: #1B1F2A; } 50%, 90% { background: #4A3FB5; color: #E2E6EE; } 100% { background: #FFFFFF; color: #1B1F2A; } }

/* ---------- meldune · ajustes finales (2026-10-13) ---------- */
/* Reloj de la bienvenida y de Recordatorios/Alarma: tarjetas con los colores del logo, no negras. */
.sc-card { background: linear-gradient(180deg, #E55B13 0%, #E55B13 55%, #C24A0C 100%) !important; color: #FFFFFF !important; box-shadow: 0 6px 16px rgba(229, 91, 19, .35) !important; }
.sc-card::after { background: rgba(74, 63, 181, .35) !important; }
.sc-bell { color: var(--text) !important; }
body .ck-flip .fc-card, body .ck-board .fc-card, body .fc-card { --fc-card: #E55B13; color: #FFFFFF; }
:root[data-theme="dark"] body .ck-flip .fc-card, :root[data-theme="dark"] body .ck-board .fc-card, :root[data-theme="dark"] body .fc-card { --fc-card: #E55B13; box-shadow: 0 0 0 1px #FF7A33, 0 .35em 1em rgba(13, 20, 38, .6); }
body .fc-card::after { background: rgba(74, 63, 181, .45) !important; }
body .fc-flap::after { background: #4A3FB5; }

/* Al tocar un ícono o botón: cambia a violeta/azul del logo (se adapta a claro y oscuro). */
html { -webkit-tap-highlight-color: rgba(74, 63, 181, .18); }
body button:not(:disabled):active svg, body [role="button"]:active svg { color: var(--text) !important; transition: color .08s; }
:root[data-theme="dark"] body button:not(:disabled):active svg { color: var(--text) !important; }
body #view-notes .nh .nh-bottom button:active svg { background: rgba(255, 255, 255, .22); color: #FFFFFF !important; }
body #view-notes .nh .nh-tile:active { border-color: var(--seima-violet); box-shadow: 0 0 0 3px rgba(74, 63, 181, .22); }

/* Argollado real: doble alambre metálico plateado que entra por un agujero perforado en la hoja. */
body #view-notes .nh-page::before { left: -13px; width: 26px; filter: drop-shadow(1px 2px 1.5px rgba(74, 63, 181, .35));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='20' viewBox='0 0 26 20'%3E%3Cdefs%3E%3ClinearGradient id='m' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.35' stop-color='%23cfd6ea'/%3E%3Cstop offset='.7' stop-color='%237d88ab'/%3E%3Cstop offset='1' stop-color='%23e9edf8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cellipse cx='20.5' cy='10' rx='2.6' ry='3.1' fill='%2313205A' opacity='.55'/%3E%3Cellipse cx='20.8' cy='10.4' rx='1.7' ry='2.2' fill='%23ffffff' opacity='.35'/%3E%3Cpath d='M20 6.6C9 4.6 2 6.6 2.6 9.2' fill='none' stroke='%235b6690' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M20 6.6C9 4.6 2 6.6 2.6 9.2' fill='none' stroke='url(%23m)' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M20 9.6C9 7.6 2.6 9.4 3.1 12.1C4 14.6 12 14.4 19.6 13' fill='none' stroke='%235b6690' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M20 9.6C9 7.6 2.6 9.4 3.1 12.1C4 14.6 12 14.4 19.6 13' fill='none' stroke='url(%23m)' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M15 6 C10 5.4 6 5.8 4.4 6.8' fill='none' stroke='%23ffffff' stroke-width='.7' stroke-linecap='round' opacity='.9'/%3E%3C/svg%3E") repeat-y 0 0 / 26px 20px !important; }
.cn3d-spiral { filter: drop-shadow(1px 2px 1.2px rgba(74, 63, 181, .4)) !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='20' viewBox='0 0 26 20'%3E%3Cdefs%3E%3ClinearGradient id='m' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.35' stop-color='%23cfd6ea'/%3E%3Cstop offset='.7' stop-color='%237d88ab'/%3E%3Cstop offset='1' stop-color='%23e9edf8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cellipse cx='20.5' cy='10' rx='2.6' ry='3.1' fill='%230B1233' opacity='.7'/%3E%3Cpath d='M20 6.6C9 4.6 2 6.6 2.6 9.2' fill='none' stroke='%235b6690' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M20 6.6C9 4.6 2 6.6 2.6 9.2' fill='none' stroke='url(%23m)' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M20 9.6C9 7.6 2.6 9.4 3.1 12.1C4 14.6 12 14.4 19.6 13' fill='none' stroke='%235b6690' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M20 9.6C9 7.6 2.6 9.4 3.1 12.1C4 14.6 12 14.4 19.6 13' fill='none' stroke='url(%23m)' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M15 6 C10 5.4 6 5.8 4.4 6.8' fill='none' stroke='%23ffffff' stroke-width='.7' stroke-linecap='round' opacity='.9'/%3E%3C/svg%3E") repeat-y 0 0 / 18cqw 13.8cqw !important; }

/* meldune · Cuaderno abierto: marco azul de la marca (ya no verde-negro) y escritura desde el primer renglón/cuadro. */
body dialog.notebook-book-dialog.ian-book { background: linear-gradient(145deg, #C24A0C, #4A3FB5 78%) !important; }
:root[data-theme="dark"] body dialog.notebook-book-dialog.ian-book { background: linear-gradient(145deg, #313B4F, #232B3A 78%) !important; }
body dialog.notebook-book-dialog .book-head { background: var(--seima-grad) !important; }
:root[data-theme="dark"] body dialog.notebook-book-dialog .book-head { background: linear-gradient(135deg, #E55B13, #E55B13) !important; }
body dialog.notebook-book-dialog .book-page-content { padding-top: 0 !important; cursor: text; }

/* meldune · Letras SOBRE la raya, como en un cuaderno real: todos los renglones miden lo mismo (1.85em)
   y las rayas se suben hasta la línea base de la letra. */
body dialog.notebook-book-dialog .book-page .book-page-content { line-height: 1.85em !important; padding-top: 0 !important; background-position: 0 var(--seima-raya, -0.56em) !important; background-origin: content-box; }
body dialog.notebook-book-dialog .book-page-content :is(p, div, li, blockquote, h1, h2, h3, ul, ol) { margin-top: 0 !important; margin-bottom: 0 !important; line-height: 1.85em !important; }
body dialog.notebook-book-dialog .book-page-content :is(h1, h2, h3) { font-size: 1em !important; font-weight: 800; }

/* meldune · candadito y botón «Listo» en blanco sobre la barra azul (pedido de Edilberto). */
body dialog.notebook-book-dialog .book-lock-icon, body dialog.notebook-book-dialog .book-lock-icon svg { color: #FFFFFF !important; }
body dialog.notebook-book-dialog .book-edit-button { color: #FFFFFF !important; background: rgba(255, 255, 255, .16) !important; border-color: rgba(255, 255, 255, .85) !important; }
body dialog.notebook-book-dialog .book-edit-button svg { color: #FFFFFF !important; }

/* meldune · Palabra con significado: un «+» pequeñito y sutil; al tocarla sale una burbuja. */
body dialog.notebook-book-dialog .book-page-content .ian-gloss { cursor: pointer; text-decoration: underline dotted rgba(74, 63, 181, .55); text-underline-offset: 3px; border-bottom: 0 !important; background: none !important; }
body dialog.notebook-book-dialog .book-page-content .ian-gloss::after { content: '+'; display: inline-grid; place-items: center; width: .95em; height: .95em; margin-left: 1px; vertical-align: .55em;
  border-radius: 50%; background: linear-gradient(135deg, #C24A0C 0%, #C24A0C 55%, #C24A0C 100%); color: #FFFFFF; font: 800 .62em/1 Manrope, system-ui, sans-serif; opacity: .85; user-select: none; }
body dialog.notebook-book-dialog .ian-gloss-pop { max-width: min(280px, 86%); padding: 12px 14px 10px; border-radius: 16px 16px 16px 4px; border: 1px solid #E2E6EE; background: #FFFFFF; color: #1B1F2A;
  box-shadow: 0 10px 28px rgba(229, 91, 19, .22); animation: seima-pop .18s ease-out; }
body dialog.notebook-book-dialog .ian-gloss-pop strong { display: block; margin-bottom: 4px; font: 800 14px/1.3 Manrope, system-ui, sans-serif; background: linear-gradient(90deg, #E55B13 0%, #E55B13 55%, #C24A0C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
body dialog.notebook-book-dialog .ian-gloss-pop p { margin: 0 0 10px; font: 500 14px/1.45 Manrope, system-ui, sans-serif; white-space: pre-wrap; }
body dialog.notebook-book-dialog .ian-gloss-pop .gloss-actions { display: flex; gap: 8px; }
body dialog.notebook-book-dialog .ian-gloss-pop .gloss-actions button { flex: 1; min-height: 36px; border-radius: 10px; border: 1px solid #E2E6EE; background: #F4F6FA; color: #1B1F2A; font: 700 13px Manrope, system-ui, sans-serif; }
body dialog.notebook-book-dialog .ian-gloss-pop .gloss-actions [data-gloss-remove] { color: #1B1F2A; }
:root[data-theme="dark"] body dialog.notebook-book-dialog .ian-gloss-pop { background: #313B4F; border-color: #313B4F; color: #EEF2F8; }
:root[data-theme="dark"] body dialog.notebook-book-dialog .ian-gloss-pop .gloss-actions button { background: #313B4F; border-color: #313B4F; color: #EEF2F8; }
:root[data-theme="dark"] body dialog.notebook-book-dialog .ian-gloss-pop .gloss-actions [data-gloss-remove] { color: #EEF2F8; }
@keyframes seima-pop { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }

/* meldune · Favoritos con ★ (quitar) y caneca (eliminar) a un lado. */
.nh-favrow-wrap { display: flex; align-items: center; gap: 6px; }
.nh-favrow-wrap > .nh-favrow { flex: 1; min-width: 0; }
.nh-favacts { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.nh-favacts .nh-heart { width: 40px; height: 40px; }
.nh-favacts .nh-fav-del { width: 40px !important; height: 40px !important; margin: 0; }
.nh-favacts .nh-fav-del .ic-bin { width: 24px !important; height: 24px !important; }

/* meldune · Caneca de eliminar: cajita completa con color, elegante y visible (claro y oscuro). */
body #view-notes .nh .nh-book-del { border-radius: 14px !important; border: 1px solid #E2E6EE !important;
  background: linear-gradient(145deg, #F4F6FA 0%, #F4F6FA 100%) !important; color: #1B1F2A !important;
  box-shadow: 0 4px 12px rgba(201, 38, 79, .16), inset 0 1px 0 rgba(255, 255, 255, .9) !important; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
body #view-notes .nh .nh-book-del svg, body #view-notes .nh .nh-book-del .ic-bin { color: #1B1F2A !important; }
body #view-notes .nh .nh-book-del .ic-bin-arrow { stroke: #4A3FB5 !important; color: #1B1F2A !important; }
body #view-notes .nh .nh-book-del:hover, body #view-notes .nh .nh-book-del:focus-visible, body #view-notes .nh .nh-book-del:active {
  background: linear-gradient(145deg, #E55B13 0%, #4A3FB5 100%) !important; border-color: transparent !important; transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(74, 63, 181, .3) !important; }
body #view-notes .nh .nh-book-del:hover svg, body #view-notes .nh .nh-book-del:focus-visible svg, body #view-notes .nh .nh-book-del:active svg,
body #view-notes .nh .nh-book-del:hover .ic-bin-arrow, body #view-notes .nh .nh-book-del:active .ic-bin-arrow { color: #FFFFFF !important; stroke: #FFFFFF !important; }
:root[data-theme="dark"] body #view-notes .nh .nh-book-del { background: linear-gradient(145deg, #313B4F 0%, #313B4F 100%) !important; border-color: #313B4F !important; color: #EEF2F8 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25) !important; }
:root[data-theme="dark"] body #view-notes .nh .nh-book-del svg { color: #EEF2F8 !important; }
:root[data-theme="dark"] body #view-notes .nh .nh-book-del .ic-bin-arrow { stroke: #FF7A33 !important; color: #EEF2F8 !important; }

/* meldune · Cada cuaderno en su propia tarjeta, con la ★ y la caneca pegaditas a la tapa (no se confunden con el vecino). */
body .nh-shelf-item:not(.is-new) { grid-template-columns: 36px 78px 36px; justify-content: center; column-gap: 6px; padding: 12px 6px 10px; border-radius: 18px;
  background: var(--mono-surface); border: 1px solid var(--mono-line); box-shadow: 0 6px 16px rgba(229, 91, 19, .08); }
body .nh-shelf-item .nh-shelf-star { width: 36px; height: 36px; margin-top: 0; }
body .nh-shelf-item .nh-book-del { width: 36px !important; height: 36px !important; border: 1px solid #E2E6EE !important; }
body .nh-shelf-item .nh-book-del .ic-bin { width: 22px !important; height: 22px !important; }

/* meldune · Botón cerrar (X en circulito) con los colores del logo, en toda la app. */
body .nh-x, body .close-button, body .fc-close, body .st-close, body .pz-close, body .emoji-close, body .sp-dclose, body .rc-side-close, body .rc-close-mobile,
body .notebook-library-type-close, body .ic-owner-bubble-close {
  border-radius: 50% !important; border: 0 !important; background: linear-gradient(135deg, #C24A0C 0%, #C24A0C 55%, #C24A0C 100%) !important; color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(229, 91, 19, .3) !important; }
body .nh-x svg, body .close-button svg, body .fc-close svg, body .st-close svg, body .pz-close svg, body .rc-side-close svg, body .rc-close-mobile svg { color: #FFFFFF !important; stroke: #FFFFFF !important; }
body .nh-x:active, body .close-button:active { transform: scale(.92); }
/* La rayita de arrastre de las ventanas: degradado de la marca en vez de color piel. */
body .nh-grab { background: linear-gradient(90deg, #E55B13 0%, #E55B13 55%, #C24A0C 100%) !important; opacity: .7; }

/* ---------- meldune · Mascota en la bienvenida (2026-10-14) ---------- */

/* Para que meldune no tape la escena, el contenido se corre un poco hacia el lado contrario. */
body .nh-welcome.is-full .sc-stage { min-height: 300px; }
body .nh-welcome.is-full .sc-scene:nth-child(odd) .sc-stage > :first-child { margin-left: 120px; }
body .nh-welcome.is-full .sc-scene:nth-child(even) .sc-stage > :first-child { margin-right: 120px; }
body .nh-welcome.is-full .sc-stage > .sc-book { transform: scale(1.4) !important; }
@media (max-width: 420px) {
   
  body .nh-welcome.is-full .sc-scene:nth-child(odd) .sc-stage > :first-child { margin-left: 96px; }
  body .nh-welcome.is-full .sc-scene:nth-child(even) .sc-stage > :first-child { margin-right: 96px; }
}

/* Cuaderno de la bienvenida: portada con el logo; adentro el nombre meldune y el lema. */
.sc-cover { background: linear-gradient(145deg, #E55B13 0%, #E55B13 55%, #C24A0C 100%) !important; display: grid; place-items: center; }
.sc-cover-logo { width: 62%; height: auto; border-radius: 12px; filter: drop-shadow(0 4px 8px rgba(13, 20, 38, .35)); }
.sc-cover span { border-color: #E2E6EE !important; background: #F4F6FA !important; }
.sc-page { align-content: center; justify-items: center; gap: 6px !important; background: #FFFFFF !important; }
.sc-page-name { font: 900 17px/1 Manrope, system-ui, sans-serif; letter-spacing: .04em; background: linear-gradient(90deg, #E55B13 0%, #E55B13 55%, #C24A0C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-page-slogan { font: 700 6.5px/1.2 Manrope, system-ui, sans-serif; color: #1B1F2A; text-align: center; }
.sc-page i { width: 100%; }

/* ---------- meldune · Íconos con color propio según su función (claro y oscuro) ---------- */
/* Escribir = azul · Agenda = violeta · Multimedia = cian · Documentos = azul índigo · Asistente IA = violeta→cian */
:root { --ic-write: #E55B13; --ic-agenda: #4A3FB5; --ic-media: #E55B13; --ic-docs: #C24A0C; --ic-clock: #E55B13; --ic-calc: #E55B13; --ic-bell: #4A3FB5; --ic-gear: #5B6070; --ic-box: #C24A0C; --ic-trash: #E55B13; }
:root[data-theme="dark"] { --ic-write: #FF7A33; --ic-agenda: #FF7A33; --ic-media: #FF7A33; --ic-docs: #FF7A33; --ic-clock: #FF7A33; --ic-calc: #FF7A33; --ic-bell: #FF7A33; --ic-gear: #8E9BB2; --ic-box: #FF7A33; --ic-trash: #FF7A33; }
/* Lista de «Más»: cada ícono en su cajita de color suave. */
body #view-notes .nh .nh-morerow .nh-mod-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; }
body #view-notes .nh .nh-morerow .nh-mod-ic svg { width: 22px; height: 22px; }
body #view-notes .nh [data-more="agenda"] .nh-mod-ic { color: var(--text); background: color-mix(in srgb, var(--ic-agenda) 14%, transparent); }
body #view-notes .nh [data-more="media"] .nh-mod-ic { color: var(--text); background: color-mix(in srgb, var(--ic-media) 14%, transparent); }
body #view-notes .nh [data-more="clock"] .nh-mod-ic { color: var(--text); background: color-mix(in srgb, var(--ic-clock) 14%, transparent); }
body #view-notes .nh [data-more="calc"] .nh-mod-ic { color: var(--text); background: color-mix(in srgb, var(--ic-calc) 14%, transparent); }
body #view-notes .nh [data-more="reminders"] .nh-mod-ic { color: var(--text); background: color-mix(in srgb, var(--ic-bell) 14%, transparent); }
body #view-notes .nh [data-more="settings"] .nh-mod-ic { color: var(--ic-gear); background: color-mix(in srgb, var(--ic-gear) 14%, transparent); }
body #view-notes .nh [data-more="archived"] .nh-mod-ic { color: var(--text); background: color-mix(in srgb, var(--ic-box) 14%, transparent); }
body #view-notes .nh [data-more="trash"] .nh-mod-ic { color: var(--text); background: color-mix(in srgb, var(--ic-trash) 12%, transparent); }
/* Funciones del cuaderno: cajita de color según la función (los dibujos ya traen sus colores). */
body #view-notes .nh .nh-tile > svg:first-child { padding: 6px; border-radius: 14px; box-sizing: content-box; }
body #view-notes .nh .nh-tile[data-tile="write"] > svg:first-child { background: color-mix(in srgb, var(--ic-write) 12%, transparent); }
body #view-notes .nh .nh-tile[data-tile="agenda"] > svg:first-child { background: color-mix(in srgb, var(--ic-agenda) 12%, transparent); }
body #view-notes .nh .nh-tile[data-tile="media"] > svg:first-child { background: color-mix(in srgb, var(--ic-media) 12%, transparent); }
body #view-notes .nh .nh-tile[data-tile="docs"] > svg:first-child { background: color-mix(in srgb, var(--ic-docs) 12%, transparent); }
body #view-notes .nh .nh-tile[data-tile="ai"] > svg:first-child { background: linear-gradient(135deg, color-mix(in srgb, #4A3FB5 16%, transparent), color-mix(in srgb, #E55B13 16%, transparent)); }
body #view-notes .nh .nh-tile[data-tile="write"] b { color: var(--text); } body #view-notes .nh .nh-tile[data-tile="agenda"] b { color: var(--text); }
body #view-notes .nh .nh-tile[data-tile="media"] b { color: var(--text); } body #view-notes .nh .nh-tile[data-tile="docs"] b { color: var(--text); }
/* Menú de abajo: cada sección con su color cuando está activa. */
body #view-notes .nh .nh-bottom button[aria-current="page"] svg { color: #1B1F2A; }

/* ---------- meldune · Aviso de Novedades (solo cambios importantes, una vez) ---------- */
.seima-news { position: fixed; inset: 0; z-index: 30000; display: grid; place-items: end center; padding: 16px; background: rgba(13, 20, 38, .45); animation: seima-news-fade .25s ease-out; }
.seima-news.is-out { opacity: 0; transition: opacity .25s ease; }
.seima-news-card { position: relative; width: min(420px, 100%); margin-bottom: calc(env(safe-area-inset-bottom) + 8px); padding: 64px 20px 18px; border-radius: 24px; background: #FFFFFF; color: #1B1F2A;
  box-shadow: 0 20px 50px rgba(74, 63, 181, .35); font: 500 14px/1.45 Manrope, system-ui, sans-serif; animation: seima-news-up .35s cubic-bezier(.2, .9, .3, 1.15); }
.seima-news-pet { position: absolute; top: -46px; left: 50%; width: 150px; transform: translateX(-50%); filter: drop-shadow(0 8px 14px rgba(74, 63, 181, .3)); }
.seima-news-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, #C24A0C 0%, #C24A0C 55%, #C24A0C 100%); color: #FFFFFF; font: 800 11px/1.6 Manrope, system-ui, sans-serif; letter-spacing: .08em; }
.seima-news-card h2 { margin: 8px 0 8px; font: 900 21px/1.2 Manrope, system-ui, sans-serif; }
.seima-news-card ul { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 7px; }
.seima-news-card li { position: relative; padding-left: 22px; }
.seima-news-card li::before { content: '✦'; position: absolute; left: 0; top: 0; color: #1B1F2A; }
.seima-news-card p { margin: 0 0 14px; color: #5B6070; font-size: 13px; }
.seima-news-card button { width: 100%; min-height: 48px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #C24A0C 0%, #C24A0C 55%, #C24A0C 100%); color: #FFFFFF; font: 800 16px Manrope, system-ui, sans-serif; cursor: pointer; }
:root[data-theme="dark"] .seima-news-card { background: #313B4F; color: #EEF2F8; }
:root[data-theme="dark"] .seima-news-card p { color: #8E9BB2; }
:root[data-theme="dark"] .seima-news-card li::before { color: #EEF2F8; }
@keyframes seima-news-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes seima-news-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .seima-news, .seima-news-card { animation: none; } }

/* ---------- meldune con movimientos naturales (2026-10-14) ---------- */

/* meldune debajo de la escena (no al lado): la escena arriba completa y meldune abajo, señalándola. */
body .nh-welcome.is-full .sc-scene:nth-child(odd) .sc-stage > :first-child, body .nh-welcome.is-full .sc-scene:nth-child(even) .sc-stage > :first-child { margin: 0 0 128px !important; }
body .nh-welcome.is-full .sc-stage { min-height: 340px; }
body .nh-welcome.is-full .sc-stage > .sc-book { transform: translateY(-6px) scale(1.25) !important; }

@media (max-width: 420px) {  body .nh-welcome.is-full .sc-scene:nth-child(odd) .sc-stage > :first-child, body .nh-welcome.is-full .sc-scene:nth-child(even) .sc-stage > :first-child { margin: 0 0 112px !important; } }

/* ---------- meldune camina (2026-10-14, reemplaza la patita suelta) ---------- */

body .nh-welcome.is-full .sc-stage > .sc-book { transform: translate(52px, -6px) scale(1.25) !important; }

/* ---------- meldune camina de verdad (2026-10-14): marioneta de 5 piezas ---------- */

/* ---------- meldune quieta que mira (2026-10-14, reemplaza la caminata) ---------- */

/* ---------- Flecha fija que señala el ＋ (reemplaza la barra azul de la bienvenida, 2026-10-14) ---------- */
body #view-notes .nh .nh-plus-hint { all: unset; box-sizing: border-box; position: fixed; z-index: 46; top: calc(62px + env(safe-area-inset-top)); right: 64px;
  display: flex; align-items: flex-start; gap: 4px; cursor: pointer; animation: plus-hint-bob 1.4s ease-in-out infinite; }
body #view-notes .nh .nh-plus-hint span { margin-top: 18px; padding: 7px 12px; border-radius: 14px 4px 14px 14px; background: linear-gradient(135deg, #C24A0C 0%, #C24A0C 55%, #C24A0C 100%); color: #FFFFFF;
  font: 700 13px/1.25 Manrope, system-ui, sans-serif; box-shadow: 0 6px 16px rgba(229, 91, 19, .3); white-space: nowrap; }
body #view-notes .nh .nh-plus-hint span b { font-weight: 900; }
body #view-notes .nh .nh-plus-hint i { display: grid; place-items: center; width: 30px; height: 30px; color: #1B1F2A; transform: rotate(90deg); }
body #view-notes .nh .nh-plus-hint i svg { width: 26px; height: 26px; stroke-width: 2.6; }
:root[data-theme="dark"] body #view-notes .nh .nh-plus-hint i { color: #EEF2F8; }
@keyframes plus-hint-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (min-width: 1000px) { body #view-notes .nh .nh-plus-hint { right: 84px; } }
@media (prefers-reduced-motion: reduce) { body #view-notes .nh .nh-plus-hint { animation: none; } }
/* La animación sube un poco porque ya no está la barra azul. */
body .nh-welcome.is-full .nh-showcase { margin-top: 40px; }

body #view-notes .nh .nh-plus-hint { right: 75px; }

body #view-notes .nh .nh-welcome.is-full .nh-welcome-hello { margin-top: 46px; }
body .nh-welcome.is-full .nh-showcase { margin-top: 10px; }

/* Bienvenida: sin el ＋ del encabezado; en su lugar, un solo botón «＋ Empieza a crear» en ese mismo sitio. */
body #view-notes .nh:has(.nh-welcome.is-full) .nh-appbar .nh-plus { display: none !important; }
body #view-notes .nh .nh-plus-hint { top: calc(11px + env(safe-area-inset-top)) !important; right: 58px !important; z-index: 47; animation: plus-hint-pulse 2.2s ease-in-out infinite !important; }
body #view-notes .nh .nh-plus-hint span { margin-top: 0 !important; padding: 9px 14px !important; border-radius: 999px !important; font-size: 14px !important; }
body #view-notes .nh .nh-plus-hint span b { margin-right: 2px; }
body #view-notes .nh .nh-plus-hint i { display: none !important; }
@keyframes plus-hint-pulse { 0%, 100% { transform: scale(1); box-shadow: none; } 50% { transform: scale(1.05); } }
body #view-notes .nh .nh-welcome.is-full .nh-welcome-hello { margin-top: 10px !important; }
@media (min-width: 1000px) { body #view-notes .nh .nh-plus-hint { right: 78px !important; } }

/* ---------- Cada cambio de escena = pasar la hoja de un cuaderno ---------- */
/* Una hoja de papel tapa la escena y da la vuelta desde el borde izquierdo, descubriendo la escena nueva. */
body .sc-stage { perspective: 1400px; }
body .sc-scene.is-active .sc-stage::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, #E2E6EE 0%, #FFFFFF 18%, #FFFFFF 82%, #E2E6EE 100%);
  background-image: linear-gradient(90deg, rgba(74, 63, 181, .10) 0%, rgba(74, 63, 181, 0) 16%), repeating-linear-gradient(#FFFFFF 0 27px, #E2E6EE 27px 28px);
  box-shadow: 4px 0 18px rgba(74, 63, 181, .18); transform-origin: 0 50%; backface-visibility: hidden;
  animation: sc-page-turn .95s cubic-bezier(.45, .05, .35, 1) both; }
:root[data-theme="dark"] body .sc-scene.is-active .sc-stage::after { background-image: linear-gradient(90deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, 0) 16%), repeating-linear-gradient(#313B4F 0 27px, #313B4F 27px 28px); }
@keyframes sc-page-turn {
  0% { transform: rotateY(0); box-shadow: 4px 0 18px rgba(74, 63, 181, .18); }
  100% { transform: rotateY(-178deg); box-shadow: -12px 0 24px rgba(74, 63, 181, 0); }
}
@media (prefers-reduced-motion: reduce) { body .sc-scene.is-active .sc-stage::after { display: none; } }


/* ---------- meldune, el robot articulado (2026-10-16, v2: cabeza que gira y manos originales) ---------- */
body .sc-stage > .sc-seima { position: absolute; left: 6px; bottom: 4px; z-index: 3; display: flex; align-items: flex-start; gap: 14px; max-width: calc(100% - 12px); pointer-events: none; transform: none; }
.sc-seima .sc-bot { display: block; flex: none; width: 132px; height: auto; aspect-ratio: 560 / 512; overflow: visible; }
.sc-seima .sc-seima-say { order: 2; align-self: flex-start; margin-top: 4px; max-width: 176px; padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: #FFFFFF; color: #1B1F2A; border: 1px solid #E2E6EE;
  font: 700 12.5px/1.3 Manrope, system-ui, sans-serif; box-shadow: 0 6px 16px rgba(229, 91, 19, .18); }
:root[data-theme="dark"] .sc-seima .sc-seima-say { background: #313B4F; color: #EEF2F8; border-color: #313B4F; }
@media (max-width: 420px) { .sc-seima .sc-bot { width: 118px; } .sc-seima .sc-seima-say { max-width: 150px; font-size: 11.5px; } }
.sc-bot image { pointer-events: none; }

/* Aparece, flota suave y la sombra respira. */
.sc-scene .sc-seima .sc-bot { opacity: 0; }
.sc-scene.is-active .sc-seima .sc-bot { animation: bot-appear .6s ease-out .1s both; }
.sc-scene.is-active .sc-seima .sc-seima-say { animation: bot-say .45s ease-out .6s both; }
.sc-scene.is-active .sc-bot .b-float { animation: bot-float 3.6s ease-in-out infinite; }
.sc-scene.is-active .sc-bot .b-shadow { animation: bot-shadow 3.6s ease-in-out infinite; transform-origin: 280px 485px; }
@keyframes bot-appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bot-say { from { opacity: 0; transform: translateY(6px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes bot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes bot-shadow { 0%, 100% { transform: scale(1); opacity: .95; } 50% { transform: scale(.88); opacity: .65; } }

/* ---- Cabeza: gira hacia donde mira (izquierda, derecha, arriba, abajo) con suavidad; los ojos acompañan ---- */
.sc-bot .b-head { transform-origin: 268.9px 251.8px; transition: transform .8s cubic-bezier(.45, .05, .25, 1); }
.sc-bot .b-head-idle { transform-origin: 268.9px 251.8px; animation: head-idle 5.2s ease-in-out infinite; }
@keyframes head-idle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(1.2deg); } 70% { transform: rotate(-1deg); } }
.sc-bot.h-left .b-head { transform: rotate(-5deg) translateX(-4px); }
.sc-bot.h-right .b-head { transform: rotate(5deg) translateX(4px); }
.sc-bot.h-up .b-head { transform: translateY(-5px) rotate(-1.5deg); }
.sc-bot.h-down .b-head { transform: translateY(4px) rotate(1.5deg); }
.sc-bot .b-gaze { transition: transform .5s cubic-bezier(.45, .05, .25, 1); }
.sc-bot.h-left .b-gaze { transform: translate(-16px, 0); } .sc-bot.h-right .b-gaze { transform: translate(16px, 0); }
.sc-bot.h-up .b-gaze { transform: translate(0, -14px); } .sc-bot.h-down .b-gaze { transform: translate(0, 12px); }

/* ---- Cara: ojos, cejas y boca (mismo cian de la pantalla original) ---- */
.sc-bot .b-face { filter: drop-shadow(0 0 3px rgba(249, 192, 159, .3)); opacity: 0; transition: opacity .15s ease; }
.sc-bot .head-clean { opacity: 0; transition: opacity .15s ease; }
/* La cara ORIGINAL de la imagen se ve en reposo; la cara dibujada solo entra al cambiar de expresión o al hablar. */
.sc-bot:is(.e-joy, .e-wow, .e-think, .e-wink, .e-listen, .is-talking) .b-face, .sc-bot:is(.e-joy, .e-wow, .e-think, .e-wink, .e-listen, .is-talking) .head-clean { opacity: 1; }
/* Las uniones redondas solo se ven mientras el brazo se mueve; en reposo no existen. */
.sc-bot .b-joint { opacity: 0; transition: opacity .3s ease; }
.sc-bot.p-wave .b-joint-l, .sc-bot.p-point .b-joint-r, .sc-bot.p-present .b-joint-r { opacity: 1; }
.sc-bot .f-eye > g, .sc-bot .f-brow, .sc-bot [class^="mouth-"] { transition: opacity .18s ease, transform .28s ease; transform-box: fill-box; transform-origin: 50% 50%; }
.sc-bot .eye-dome path { fill: #A59CFF; stroke: #A59CFF; stroke-width: 6; stroke-linejoin: round; }
.sc-bot .eye-open ellipse { fill: #A59CFF; transform-box: fill-box; transform-origin: 50% 50%; animation: bot-blink 4.4s ease-in-out infinite; }
.sc-bot .eye-glint { fill: #FFFFFF; opacity: .75; }
.sc-bot .eye-line path { stroke: #A59CFF; stroke-width: 24; stroke-linecap: round; }
.sc-bot .f-brow path { stroke: #A59CFF; stroke-width: 13; stroke-linecap: round; }
.sc-bot .mouth-smile path, .sc-bot .mouth-flat path { stroke: #A59CFF; stroke-width: 14; stroke-linecap: round; }
.sc-bot .mouth-open path { fill: #A59CFF; stroke: #A59CFF; stroke-width: 8; stroke-linejoin: round; }
.sc-bot .mouth-o ellipse { fill: none; stroke: #A59CFF; stroke-width: 15; }
.sc-bot .eye-open, .sc-bot .eye-line, .sc-bot .mouth-open, .sc-bot .mouth-o, .sc-bot .mouth-flat { opacity: 0; }
.sc-bot .mouth-open { transform-origin: 50% 0%; transform: scaleY(.3); }
@keyframes bot-blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }
.sc-bot.e-joy .eye-dome { transform: scale(1.14) translateY(-4px); } .sc-bot.e-joy .f-brow { transform: translateY(-12px); }
.sc-bot.e-joy .mouth-smile { opacity: 0; } .sc-bot.e-joy .mouth-open { opacity: 1; transform: scaleY(.85); }
.sc-bot.e-wow .eye-dome { opacity: 0; } .sc-bot.e-wow .eye-open { opacity: 1; transform: scale(1.1); } .sc-bot.e-wow .f-brow { transform: translateY(-28px); }
.sc-bot.e-wow .mouth-smile { opacity: 0; } .sc-bot.e-wow .mouth-o { opacity: 1; }
.sc-bot.e-think .eye-dome { opacity: 0; } .sc-bot.e-think .eye-open { opacity: 1; transform: scale(.78) translate(14px, -14px); }
.sc-bot.e-think .f-brow-l { transform: translateY(-26px) rotate(-8deg); } .sc-bot.e-think .f-brow-r { transform: translateY(8px) rotate(10deg); }
.sc-bot.e-think .mouth-smile { opacity: 0; } .sc-bot.e-think .mouth-flat { opacity: 1; }
.sc-bot.e-wink .f-eye-r .eye-dome { opacity: 0; } .sc-bot.e-wink .f-eye-r .eye-line { opacity: 1; } .sc-bot.e-wink .f-brow-r { transform: translateY(6px); } .sc-bot.e-wink .f-brow-l { transform: translateY(-8px); }
.sc-bot.e-listen .eye-dome { opacity: 0; } .sc-bot.e-listen .eye-open { opacity: 1; } .sc-bot.e-listen .f-brow { transform: translateY(-10px); }
.sc-bot.is-talking .mouth-smile, .sc-bot.is-talking .mouth-o, .sc-bot.is-talking .mouth-flat { opacity: 0; }
.sc-bot.is-talking .mouth-open { opacity: 1; animation: bot-talk .27s ease-in-out infinite alternate; }
@keyframes bot-talk { from { transform: scaleY(.2); } to { transform: scaleY(1); } }

/* ---- Brazos (manos originales de la imagen) ---- */
.sc-bot .b-armL { transform-origin: 140.8px 307.3px; animation: botL-idle 4.2s ease-in-out infinite; }
.sc-bot .b-handL { transform-origin: 71.3px 295.3px; }
@keyframes botL-idle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2.5deg); } }
.sc-bot.p-wave .b-armL { animation: botL-wave 1.7s ease-in-out both; }
.sc-bot.p-wave .b-handL { animation: botL-hand .42s ease-in-out 4 alternate both; }
@keyframes botL-wave { 0% { transform: rotate(0); } 18% { transform: rotate(-14deg); } 82% { transform: rotate(-12deg); } 100% { transform: rotate(0); } }
@keyframes botL-hand { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
.sc-bot .b-foreR { transform-origin: 420.8px 388px; transition: transform .95s cubic-bezier(.4, 0, .2, 1); }
.sc-bot .b-handR { transform-origin: 474.6px 416.2px; transition: transform .95s cubic-bezier(.4, 0, .2, 1); }
.sc-bot.p-point .b-foreR { transform: rotate(-58deg); } .sc-bot.p-point .b-handR { transform: rotate(-8deg); }
.sc-bot.p-present .b-foreR { transform: rotate(-26deg); } .sc-bot.p-present .b-handR { transform: rotate(-10deg); }

/* ---- Cabeza de la IA «Beta»: estados para el chat ---- */
.ia-bot { display: block; width: 100%; height: auto; overflow: visible; }
.ia-bot .b-head { transform-origin: 256px 408px; }
.ia-bot .b-head-idle { transform-origin: 256px 408px; }
.ia-bot.st-talking .b-head-idle { animation: ia-nod .9s ease-in-out infinite; }
.ia-bot.st-thinking .b-head { transform: rotate(-5deg); } .ia-bot.st-thinking .b-gaze { animation: ia-scan 2.4s ease-in-out infinite; }
.ia-bot.st-listening .b-head { transform: rotate(4deg); }
@keyframes ia-nod { 0%, 100% { transform: rotate(0) translateY(0); } 25% { transform: rotate(1.5deg) translateY(-2px); } 75% { transform: rotate(-1.5deg) translateY(1px); } }
@keyframes ia-scan { 0%, 100% { transform: translate(-14px, -10px); } 50% { transform: translate(14px, -10px); } }
@media (prefers-reduced-motion: reduce) { .sc-scene.is-active .sc-bot .b-float, .sc-scene.is-active .sc-bot .b-shadow, .sc-bot .b-armL, .sc-bot .b-head-idle, .sc-bot .eye-open ellipse, .ia-bot .b-gaze { animation: none !important; } .sc-scene .sc-seima .sc-bot { opacity: 1; } }

/* ---------- Nombre oficial de meldune en el encabezado (el mismo rótulo del pecho del robot, con la estrella en la A) ---------- */
.nh-wordmark { display: inline-block; height: 24px; aspect-ratio: 341 / 74; vertical-align: middle; background-color: var(--mono-ink, #4A3FB5);
  -webkit-mask: url("./assets/meldune-wordmark.png?v=r1") center / contain no-repeat; mask: url("./assets/meldune-wordmark.png?v=r1") center / contain no-repeat; }
.nh-word:has(.nh-wordmark) { display: inline-flex; align-items: center; }

/* ---------- Cabeza del robot = ícono de la inteligencia artificial (Beta) ---------- */
.nh-tile .nh-ai-head { display: block; width: 58px; height: 58px; padding: 2px; box-sizing: content-box; border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, #4A3FB5 16%, transparent), color-mix(in srgb, #E55B13 16%, transparent)); }

/* Tarjeta de Novedades con el robot */
.seima-news-pet { width: 168px; top: -80px; }
.seima-news-card { padding-top: 96px; }

/* Ajustes del robot y del encabezado (2026-10-16) */
body .nh-welcome.is-full .sc-stage > .sc-seima { transform: none !important; }
body #view-notes .nh .nh-appbar .nh-brand { gap: 6px; }
.nh-wordmark { height: 21px; }
body #view-notes .nh .nh-plus-hint span { padding: 8px 12px !important; font-size: 13px !important; }
body #view-notes .nh .nh-plus-hint { right: 52px !important; }
@media (max-width: 380px) { .nh-wordmark { height: 19px; } body #view-notes .nh .nh-plus-hint span { padding: 7px 10px !important; font-size: 12.5px !important; } }
/* ========== meldune simplificada (2026-10-17): barra de 3, ＋ flotante único, Inicio = «Mis cuadernos» ========== */
/* Barra de abajo: Chats · Inicio · Más, con un indicador compacto integrado (sin la burbuja flotante). */
body #view-notes .nh .nh-tribar { grid-template-columns: repeat(3, 1fr); gap: 6px; height: auto; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; overflow: visible; }
body #view-notes .nh .nh-tribar button { position: static; justify-content: center; gap: 3px; height: auto; padding: 7px 4px; border-radius: 16px; color: rgba(255, 255, 255, .78); font: 700 12px Manrope, system-ui, sans-serif; transition: background .2s ease, color .2s ease; }
body #view-notes .nh .nh-tribar button svg { width: 24px; height: 24px; padding: 0; background: none !important; color: inherit !important; transform: none !important; animation: none !important; }
body #view-notes .nh .nh-tribar button span { font-size: 12px; }
body #view-notes .nh .nh-tribar button[aria-current="page"] { color: #FFFFFF; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
body #view-notes .nh .nh-tribar button:active { background: rgba(255, 255, 255, .26); }
body #view-notes .nh .nh-tribar button:focus-visible { outline: 2px solid #FFFFFF; outline-offset: -2px; }
body #view-notes .nh .nh-body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 1000px) {
  body #view-notes .nh .nh-tribar { grid-template-columns: 1fr; align-content: center; gap: 10px; padding: 16px 10px; border-radius: 0 22px 22px 0; }
  body #view-notes .nh .nh-body { padding-bottom: 24px; }
}

/* Único ＋ flotante para crear */
body #view-notes .nh .nh-fab { all: unset; box-sizing: border-box; position: fixed; right: 18px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 52; display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%; background: var(--seima-grad); color: #FFFFFF; font: 300 34px/1 system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 10px 24px rgba(229, 91, 19, .38), 0 2px 6px rgba(74, 63, 181, .25); transition: transform .15s ease; -webkit-tap-highlight-color: transparent; }
body #view-notes .nh .nh-fab:active { transform: scale(.93); }
body #view-notes .nh .nh-fab:focus-visible { outline: 3px solid var(--seima-cyan); outline-offset: 3px; }
@media (min-width: 1000px) { body #view-notes .nh .nh-fab { right: 32px; bottom: 32px; } }

/* Encabezado: las letras del logo oficial (2026-10-17) y el lema debajo, con el mismo ancho visual que el nombre */
body #view-notes .nh .nh-appbar .nh-word:has(.nh-slogan) { --wm-h: 40px; display: inline-grid; justify-items: stretch; gap: 2px; width: calc(var(--wm-h) * 600 / 229); }
body #view-notes .nh .nh-letras { display: block; width: 100%; height: var(--wm-h); background: url("./assets/meldune-letras.png?v=meldune5") center / contain no-repeat; }
:root[data-theme="dark"] body #view-notes .nh .nh-letras { background-image: url("./assets/meldune-letras-oscuro.png?v=meldune5"); }
body #view-notes .nh .nh-appbar .nh-slogan { display: block; width: 100%; font: 700 8px/1 Manrope, system-ui, sans-serif; letter-spacing: 0; white-space: nowrap; text-align: justify; text-align-last: justify; color: var(--text); }
@media (max-width: 340px) { body #view-notes .nh .nh-appbar .nh-word:has(.nh-slogan) { --wm-h: 34px; } body #view-notes .nh .nh-appbar .nh-slogan { font-size: 6.8px; } }
/* Pantalla de carga y bienvenida: el logo oficial completo (burbuja con el nombre y el lema, 2026-10-17) */
#app-splash img.seima-splash-logo { width: min(150px, 40vw); height: auto; filter: drop-shadow(0 14px 30px rgba(74, 63, 181, .28)); }
.ian-chat .ic-gate-logo.ic-gate-logo-full { width: min(210px, 62vw); height: auto; border-radius: 0; }
.ian-chat .ic-gate-logo.ic-gate-logo-icono { width: 120px; height: auto; border-radius: 0; }
:root[data-theme="light"] #app-splash img.seima-splash-logo { content: url("./assets/meldune-icono.png?v=meldune3"); }
body .nh-about img { width: min(230px, 64vw) !important; height: auto !important; border-radius: 0 !important; box-shadow: none !important; }
/* (Antes) el lema de texto en la pantalla de carga */
#app-splash .seima-splash-slogan { display: block; width: calc(36px * 341 / 74); margin-top: -8px; font-size: 12.6px; letter-spacing: 0; white-space: nowrap; text-align: justify; text-align-last: justify; }

/* Cuadernos: tarjetas con la tapa, el nombre, sus letreros, la ★ y la caneca */
body #view-notes .nh .nh-booklist { display: grid; gap: 12px; margin-top: 4px; }
@media (min-width: 700px) { body #view-notes .nh .nh-booklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1300px) { body #view-notes .nh .nh-booklist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
body #view-notes .nh .nh-bookrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 10px 10px 20px; border-radius: 20px;
  background: var(--mono-surface); border: 1px solid var(--mono-line); box-shadow: 0 6px 18px rgba(74, 63, 181, .07); }
body #view-notes .nh .nh-bookrow-open { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 14px; min-width: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
body #view-notes .nh .nh-bookrow-open:focus-visible { outline: 2px solid var(--mono-accent); outline-offset: 4px; border-radius: 12px; }
body #view-notes .nh .nh-bookrow-open:active .nh-bookrow-cover { transform: scale(.96); }
body #view-notes .nh .nh-bookrow-cover { display: block; width: 62px; transition: transform .15s ease; }
body #view-notes .nh .nh-bookrow-cover > * { max-width: 100%; }
body #view-notes .nh .nh-bookrow-text { display: grid; gap: 5px; min-width: 0; }
body #view-notes .nh .nh-bookrow-text b { overflow: hidden; color: var(--text); font: 800 17px/1.2 Manrope, system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
body #view-notes .nh .nh-bookrow-text small { color: var(--mono-soft); font-size: 12.5px; }
body #view-notes .nh .nh-bookrow-acts { display: grid; gap: 6px; justify-items: center; }
body #view-notes .nh .nh-bookrow-acts .nh-heart { width: 38px; height: 38px; }
body #view-notes .nh .nh-bookrow-acts .nh-heart svg { width: 24px; height: 24px; }
body #view-notes .nh .nh-bookrow-acts .nh-book-del { width: 38px !important; height: 38px !important; margin: 0; }
body #view-notes .nh .nh-bookrow-acts .nh-book-del .ic-bin { width: 22px !important; height: 22px !important; }

/* Sin cuadernos: estado vacío sencillo con meldune y el botón para crear */
body #view-notes .nh .nh-empty-books { display: grid; justify-items: center; gap: 8px; margin: 18px auto 0; max-width: 420px; padding: 18px 18px 22px; text-align: center;
  border-radius: 24px; background: var(--mono-surface); border: 1px solid var(--mono-line); box-shadow: 0 10px 26px rgba(74, 63, 181, .07); }
body #view-notes .nh .nh-empty-books .nh-empty-bot { width: 150px; }
body #view-notes .nh .nh-empty-books .nh-empty-bot .sc-bot { display: block; width: 100%; height: auto; aspect-ratio: 560 / 512; overflow: visible; }
body #view-notes .nh .nh-empty-books b { color: var(--text); font: 800 19px/1.25 Manrope, system-ui, sans-serif; }
body #view-notes .nh .nh-empty-books small { color: var(--mono-soft); font-size: 14px; line-height: 1.4; }
body #view-notes .nh .nh-empty-books .nh-primary { margin-top: 8px; padding: 12px 22px; border-radius: 999px; }

/* Dentro del cuaderno: «Escribir» destacado y el resto en «Herramientas» */
body #view-notes .nh .nh-writecard { all: unset; box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; margin: 14px 0 6px;
  padding: 14px 16px; border-radius: 20px; background: var(--seima-grad); color: #FFFFFF; cursor: pointer; box-shadow: 0 10px 24px rgba(229, 91, 19, .3); -webkit-tap-highlight-color: transparent; }
body #view-notes .nh .nh-writecard:active { transform: scale(.98); }
body #view-notes .nh .nh-writecard:focus-visible { outline: 3px solid var(--seima-cyan); outline-offset: 3px; }
body #view-notes .nh .nh-writecard-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .92); }
body #view-notes .nh .nh-writecard-ic svg { width: 34px; height: 34px; }
body #view-notes .nh .nh-writecard b { display: block; color: #FFFFFF; font: 800 19px/1.2 Manrope, system-ui, sans-serif; }
body #view-notes .nh .nh-writecard small { display: block; margin-top: 2px; color: rgba(255, 255, 255, .86); font-size: 13px; }
body #view-notes .nh .nh-writecard > i svg { width: 22px; height: 22px; color: #FFFFFF; }
body #view-notes .nh .nh-tile[data-tile="config"] > svg:first-child { background: color-mix(in srgb, var(--seima-blue) 12%, transparent); }
body #view-notes .nh .nh-tile[data-tile="config"] b { color: var(--text); }
body #view-notes .nh .nh-head .nh-cover { cursor: default; }

/* Más: cuadrícula compacta */
body #view-notes .nh .nh-moregrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 6px; }
@media (min-width: 700px) { body #view-notes .nh .nh-moregrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
body #view-notes .nh .nh-moretile { position: relative; display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 104px; padding: 14px 6px 12px; border-radius: 18px; text-align: center; }
body #view-notes .nh .nh-moretile .nh-mod-ic { width: 46px; height: 46px; margin: 0; }
body #view-notes .nh .nh-moretile b { font-size: 13px; line-height: 1.2; }
body #view-notes .nh .nh-moretile-n { position: absolute; top: 8px; right: 8px; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--seima-violet); color: #FFFFFF; font: 800 11px/20px Manrope, system-ui, sans-serif; font-style: normal; }
body #view-notes .nh [data-more="favorites"] .nh-mod-ic { color: #1B1F2A; background: color-mix(in srgb, #E55B13 18%, transparent); }
body #view-notes .nh [data-more="favorites"] .nh-mod-ic svg { fill: #E55B13; stroke: #E55B13; }

/* Chat: «Contactos» visible arriba, la misma barra de abajo de meldune y el ＋ flotante */
.ian-chat .ic-contacts-pill { all: unset; box-sizing: border-box; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--ic-accent) 50%, transparent); background: color-mix(in srgb, var(--ic-accent) 10%, transparent); color: var(--ic-accent); font: 800 13.5px Manrope, system-ui, sans-serif; }
.ian-chat .ic-contacts-pill svg { width: 20px; height: 20px; }
.ian-chat .ic-contacts-pill .ic-count { position: absolute; top: -6px; right: -6px; }
.ian-chat .ic-contacts-pill:focus-visible { outline: 2px solid var(--ic-accent); outline-offset: 2px; }
body .ian-chat .ic-head .ic-back-app[hidden] { display: none !important; }
.ian-chat .ic-appnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; background: var(--seima-grad, linear-gradient(135deg, #C24A0C 0%, #C24A0C 55%, #C24A0C 100%)); box-shadow: 0 -6px 18px rgba(0, 0, 0, .14); }
:root[data-theme="dark"] .ian-chat .ic-appnav { background: linear-gradient(135deg, #E55B13 0%, #E55B13 55%, #E55B13 100%); }
.ian-chat .ic-appnav[hidden] { display: none; }
.ian-chat .ic-appnav button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 7px 4px; border-radius: 16px; cursor: pointer;
  color: rgba(255, 255, 255, .78); font: 700 12px Manrope, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
.ian-chat .ic-appnav button svg { width: 24px; height: 24px; }
.ian-chat .ic-appnav button[aria-current="page"] { color: #FFFFFF; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.ian-chat .ic-appnav button:active { background: rgba(255, 255, 255, .26); }
.ian-chat .ic-appnav button:focus-visible { outline: 2px solid #FFFFFF; outline-offset: -2px; }
.ian-chat.ic-has-appnav .ic-body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.ian-chat .ic-fab { all: unset; box-sizing: border-box; position: fixed; right: 18px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 6; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--seima-grad, linear-gradient(135deg, #C24A0C 0%, #C24A0C 55%, #C24A0C 100%)); color: #FFFFFF; font: 300 34px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 10px 24px rgba(229, 91, 19, .38), 0 2px 6px rgba(74, 63, 181, .25); }
.ian-chat .ic-fab[hidden] { display: none; }
.ian-chat .ic-fab:active { transform: scale(.93); }
.ian-chat .ic-fab:focus-visible { outline: 3px solid var(--seima-cyan, #E55B13); outline-offset: 3px; }
@media (min-width: 1000px) {
  .ian-chat.ic-has-appnav { padding-left: 96px; }
  .ian-chat .ic-appnav { top: 0; right: auto; width: 96px; grid-template-columns: 1fr; align-content: center; gap: 10px; padding: 16px 10px; border-radius: 0 22px 22px 0; }
  .ian-chat.ic-has-appnav .ic-body { padding-bottom: 24px; }
  .ian-chat .ic-fab { right: 32px; bottom: 32px; }
}

/* ========== Contraste (2026-10-18): todo texto se lee en claro y en oscuro ========== */
/* Menú ☰ y menús emergentes del Chat: el fondo sigue al modo (antes era azul oscuro fijo con letras oscuras en modo claro). */
body .ian-chat .ic-pop { background: var(--mono-surface); border-color: var(--mono-line); box-shadow: 0 16px 40px rgba(74, 63, 181, .22); }
body .ian-chat .ic-pop button { color: var(--text); }
body .ian-chat .ic-pop button svg { color: var(--text); }
body .ian-chat .ic-pop button:hover, body .ian-chat .ic-pop button[aria-current] { background: var(--mono-accent-soft); color: var(--text); }
body .ian-chat .ic-pop .ic-menu-danger { border-top-color: var(--mono-line); color: #1B1F2A; }
:root[data-theme="dark"] body .ian-chat .ic-pop { box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
:root[data-theme="dark"] body .ian-chat .ic-pop .ic-menu-danger { color: #EEF2F8; }/* Títulos pequeños y notas en modo oscuro (antes azul marino o gris sobre fondo oscuro). */
:root[data-theme="dark"] body .nh-name small, :root[data-theme="dark"] body .nh-sec { color: #8E9BB2 !important; }
:root[data-theme="dark"] body .nh-note, :root[data-theme="dark"] body .nh-item-open small, :root[data-theme="dark"] body .nh-book small, :root[data-theme="dark"] body .nh-crea-card small { color: #EEF2F8 !important; }
/* «✦ Próximamente»: degradado más oscuro para que el texto blanco se lea. */
body .nh-tile .nh-ai-soon { background: linear-gradient(135deg, #E55B13, #E55B13) !important; color: #FFFFFF !important; }
/* Nombres de las funciones en modo claro: celeste y violeta un poco más oscuros. */
:root:not([data-theme="dark"]) body #view-notes .nh .nh-tile[data-tile="media"] b { color: #EEF2F8; }
:root:not([data-theme="dark"]) body #view-notes .nh .nh-tile[data-tile="agenda"] b { color: #EEF2F8; }
/* Nombre escrito en la tapa del cuaderno y textos sobre degradados. */
body .cn3d-title { color: rgba(255, 255, 255, .94) !important; }
body #view-notes .nh .nh-writecard small { color: #FFFFFF; }
body dialog.notebook-book-dialog .book-save-state { color: #FFFFFF !important; font-weight: 700; }
body dialog.notebook-book-dialog.is-locked .book-edit-button { background: #E55B13 !important; }
/* Barra de abajo (Cuadernos y Chat): letras blancas y el botón activo con un fondo más oscuro. */
body #view-notes .nh .nh-tribar button, body .ian-chat .ic-appnav button { color: rgba(255, 255, 255, .93); }
body #view-notes .nh .nh-tribar button[aria-current="page"], body .ian-chat .ic-appnav button[aria-current="page"] { color: #FFFFFF; background: rgba(74, 63, 181, .34); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
/* Azul sobre fondo azul clarito (filtros del Chat, menú, calculadora): un tono más oscuro en modo claro. */
:root:not([data-theme="dark"]) body .ian-chat .ic-chat-filters button[aria-selected="true"], :root:not([data-theme="dark"]) body .ian-chat .ic-pop button[aria-current], :root:not([data-theme="dark"]) body .ian-chat .ic-pop button:hover { color: #EEF2F8; }
:root:not([data-theme="dark"]) body .cc-insert { color: #EEF2F8; }
/* Ajustes: títulos pequeños («CENTRO DE CONTROL», «TU meldune») en modo claro. */
:root:not([data-theme="dark"]) body #view-settings .eyebrow { color: #EEF2F8; }
/* Calendario y recordatorios: textos grises más oscuros en claro, y modo oscuro completo (antes se quedaba blanco). */
body dialog.rc-dialog { --rc-muted: #5B6070; }
:root[data-theme="dark"] body dialog.rc-dialog { --rc-bg: #232B3A; --rc-surface: #313B4F; --rc-line: #313B4F; --rc-text: #FF7A33; --rc-muted: #8E9BB2; --rc-accent: #FF7A33; --rc-accent-soft: rgba(142, 155, 178, .24); }
:root[data-theme="dark"] body dialog.rc-dialog::backdrop { background: #232B3A; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-btn, :root[data-theme="dark"] body dialog.rc-dialog .rc-menu, :root[data-theme="dark"] body dialog.rc-dialog .rc-field select, :root[data-theme="dark"] body dialog.rc-dialog .rc-person-form input, :root[data-theme="dark"] body dialog.rc-dialog .rc-sheet-card { background: #313B4F; color: var(--text); }
:root[data-theme="dark"] body dialog.rc-dialog .rc-field input, :root[data-theme="dark"] body dialog.rc-dialog .rc-field textarea { background: #313B4F; color: var(--text); border-color: var(--rc-line); }
:root[data-theme="dark"] body dialog.rc-dialog .rc-chip, :root[data-theme="dark"] body dialog.rc-dialog .rc-event, :root[data-theme="dark"] body dialog.rc-dialog .rc-chip-mini { background: color-mix(in srgb, var(--ev, #FF7A33) 34%, #313B4F); color: var(--text); }
:root[data-theme="dark"] body dialog.rc-dialog .rc-chip.is-add { background: var(--rc-surface); color: var(--rc-muted); }
:root[data-theme="dark"] body dialog.rc-dialog .rc-bar { background: var(--rc-line); }
/* Calculadora: funciones de SHIFT (naranja) y la tecla SHIFT. */
:root:not([data-theme="dark"]) body .cc-key .cc-alt { color: #313B4F; }
body .cc-key.is-shift { background: #C24A0C; color: #FFFFFF; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-side-item.is-active, :root[data-theme="dark"] body dialog.rc-dialog .rc-side-item.is-active span { color: #EEF2F8; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-chip.is-active, :root[data-theme="dark"] body dialog.rc-dialog .rc-chip.is-active span { color: #EEF2F8; }
/* Planificador: botones de arriba legibles en oscuro, días de la semana con letra azul marino y letras «EST» un poco más intensas. */
:root[data-theme="dark"] body .sp-tb-group button { color: #EEF2F8; border-color: #313B4F; }
:root[data-theme="dark"] body .sp-tb-group button[aria-pressed="true"] { background: #FF7A33 !important; color: #EEF2F8 !important; border-color: #FF7A33 !important; }
body .sp-dows .sp-dow { color: #1B1F2A; }
body .sp-sigla b { filter: saturate(1.25) brightness(.78); }

/* Inicio vacío (2026-10-18): sin botón propio; el texto muestra el mismo ＋ del botón flotante. */
body #view-notes .nh .nh-empty-books .nh-empty-plus { display: inline-grid; place-items: center; width: 22px; height: 22px; margin: 0 2px; border-radius: 50%; background: var(--seima-grad); color: #FFFFFF; font: 400 16px/1 system-ui, sans-serif; vertical-align: -5px; }

/* ========== Botones redondos de meldune (2026-10-18): VOLVER «‹» y CERRAR «×», iguales en toda la app ========== */
/* Circulito con el degradado del logo y el símbolo blanco. En modo oscuro el degradado es un poco más luminoso y lleva
   un aro suave para que se distinga del fondo. Para un botón nuevo basta con usar una de estas clases. */
:root { --seima-btn-bg: linear-gradient(135deg, #C24A0C 0%, #C24A0C 55%, #C24A0C 100%); --seima-btn-shadow: 0 4px 12px rgba(229, 91, 19, .32); }
:root[data-theme="dark"] { --seima-btn-bg: linear-gradient(135deg, #E55B13 0%, #E55B13 55%, #E55B13 100%); --seima-btn-shadow: 0 0 0 1.5px rgba(255, 255, 255, .2), 0 4px 14px rgba(0, 0, 0, .45); }
/* Solo el ícono (cerrar y volver) */
body .nh-x, body .close-button, body .fc-close, body .st-close, body .pz-close, body .emoji-close, body .sp-dclose, body .rc-side-close, body .rc-close-mobile,
body .notebook-library-type-close, body .ic-owner-bubble-close, body .cc-x, body [data-close-hive], body .book-icon-btn[data-pop-close], body .seima-mudanza-x,
body .ck-back, body .reader-close, body dialog.notebook-book-dialog .book-back-button, body .book-icon-btn[data-close], body .ian-chat [data-act="close-chat"],
body #view-notes .nh .nh-detailbar > .nh-round:first-child {
  display: inline-grid !important; place-items: center !important; flex: none !important; box-sizing: border-box !important;
  width: 42px !important; height: 42px !important; min-width: 42px !important; min-height: 42px !important; padding: 0 !important;
  border: 0 !important; border-radius: 50% !important; background: var(--seima-btn-bg) !important; color: #FFFFFF !important;
  box-shadow: var(--seima-btn-shadow) !important; font: 400 22px/1 system-ui, sans-serif !important; cursor: pointer; transition: transform .15s ease !important; }
body .nh-x svg, body .close-button svg, body .fc-close svg, body .st-close svg, body .pz-close svg, body .emoji-close svg, body .sp-dclose svg, body .rc-side-close svg, body .rc-close-mobile svg,
body .cc-x svg, body .book-icon-btn[data-pop-close] svg, body .ck-back svg, body .reader-close svg, body dialog.notebook-book-dialog .book-back-button svg, body .book-icon-btn[data-close] svg,
body .ian-chat [data-act="close-chat"] svg, body #view-notes .nh .nh-detailbar > .nh-round:first-child svg {
  width: 22px !important; height: 22px !important; padding: 0 !important; background: none !important; color: #FFFFFF !important; stroke: #FFFFFF !important; }
/* La X pequeña dentro de la búsqueda: el mismo estilo, más chico */
body #view-notes .nh .nh-search-x { display: inline-grid !important; place-items: center !important; width: 28px !important; height: 28px !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important;
  background: var(--seima-btn-bg) !important; color: #FFFFFF !important; box-shadow: var(--seima-btn-shadow) !important; font: 400 17px/1 system-ui, sans-serif !important; }
/* Volver con texto al lado (‹ Más, ‹ Inicio): el circulito y la palabra en el color del texto */
body #view-notes .nh .nh-backlink, body .ian-chat .ic-head .ic-back-app {
  display: inline-flex !important; align-items: center !important; gap: 10px !important; min-height: 42px !important; padding: 0 12px 0 0 !important;
  border: 0 !important; border-radius: 999px !important; background: transparent !important; box-shadow: none !important;
  color: var(--text) !important; font: 800 15px Manrope, system-ui, sans-serif !important; cursor: pointer; }
body #view-notes .nh .nh-backlink > svg:first-child, body .ian-chat .ic-head .ic-back-app > svg:first-child, body .ian-back-home .seima-back-ic {
  display: inline-grid; place-items: center; box-sizing: border-box; flex: none; width: 42px !important; height: 42px !important; padding: 10px !important;
  border-radius: 50%; background: var(--seima-btn-bg) !important; color: #FFFFFF !important; stroke: #FFFFFF; box-shadow: var(--seima-btn-shadow); }
body .ian-back-home .seima-back-ic svg { width: 22px; height: 22px; }
body #view-notes .nh .nh-backlink span, body .ian-chat .ic-head .ic-back-app span, body .ian-back-home span:last-child { color: var(--text) !important; font-size: 15px !important; }
/* Tocar: se encoge un poquito (todos) */
body .nh-x:active, body .close-button:active, body .st-close:active, body .ck-back:active, body .reader-close:active, body .cc-x:active, body .rc-close-mobile:active, body .rc-side-close:active,
body #view-notes .nh .nh-detailbar > .nh-round:first-child:active, body .ian-chat [data-act="close-chat"]:active, body dialog.notebook-book-dialog .book-back-button:active { transform: scale(.92) !important; }
body .nh-x:focus-visible, body .close-button:focus-visible, body .ck-back:focus-visible, body .rc-close-mobile:focus-visible, body .ian-back-home:focus-visible, body #view-notes .nh .nh-backlink:focus-visible { outline: 3px solid var(--seima-cyan, #E55B13) !important; outline-offset: 3px !important; }/* «‹ Inicio» flotante de Ajustes: solo se ve en Ajustes y Copias, como una píldora sobre el contenido */
body .ian-back-home { align-items: center !important; gap: 10px !important; min-height: 42px !important; padding: 0 16px 0 0 !important; border: 0 !important; border-radius: 999px !important;
  background: var(--mono-surface) !important; box-shadow: 0 4px 16px rgba(74, 63, 181, .16) !important; color: var(--text) !important; font: 800 15px Manrope, system-ui, sans-serif !important; cursor: pointer; }
body[data-active-app="settings"] .ian-back-home, body[data-active-app="storage"] .ian-back-home { display: inline-flex !important; }
/* ========== Convocatorias de reuniones (2026-10-18) ========== */
body .ian-chat .ic-meet-entry-card { padding: 6px; }
body .ian-chat .ic-meet-entry .ic-meet-entry-ic { background: var(--seima-btn-bg); color: #FFFFFF; }
body .ian-chat .ic-meet-entry .ic-count { position: static; margin-left: auto; }
body .ian-chat .ic-meet-new { flex: none; width: auto; min-height: 40px; padding: 0 16px; }
body .ian-chat .ic-meet { display: grid; gap: 8px; margin-top: 12px; padding: 14px; border: 1px solid var(--ic-line); border-radius: 18px; background: var(--ic-surface); }
body .ian-chat .ic-meet.is-past { opacity: .72; }
body .ian-chat .ic-meet-head { display: flex; align-items: center; gap: 10px; }
body .ian-chat .ic-meet-ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 14px; background: var(--seima-btn-bg); color: #FFFFFF; }
body .ian-chat .ic-meet-title { display: grid; min-width: 0; flex: 1; }
body .ian-chat .ic-meet-title b { color: var(--ic-text); font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
body .ian-chat .ic-meet-title small { color: var(--text); font-size: 12.5px; }
body .ian-chat .ic-meet-state { flex: none; padding: 4px 10px; border-radius: 999px; font: 800 11.5px Manrope, system-ui, sans-serif; font-style: normal; }
body .ian-chat .is-yes { background: rgba(242, 169, 59, .16); color: #1B1F2A; }
body .ian-chat .is-no { background: rgba(201, 38, 79, .12); color: #1B1F2A; }
body .ian-chat .is-wait { background: rgba(74, 63, 181, .14); color: #1B1F2A; }
body .ian-chat .is-off { background: var(--ic-line); color: var(--text); }
:root[data-theme="dark"] body .ian-chat .is-yes { color: #EEF2F8; } :root[data-theme="dark"] body .ian-chat .is-no { color: #EEF2F8; } :root[data-theme="dark"] body .ian-chat .is-wait { color: #EEF2F8; }
body .ian-chat .ic-meet-line { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ic-text); font-size: 14px; }
body .ian-chat .ic-meet-line svg { flex: none; color: var(--text); }
body .ian-chat .ic-meet-line span:first-letter { text-transform: uppercase; }
body .ian-chat .ic-meet-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body .ian-chat .ic-meet-btns button { width: 100%; min-height: 46px; margin: 0; }
body .ian-chat .ic-meet-where { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body .ian-chat .ic-meet-where label, body .ian-chat .ic-meet-modes label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 8px; border: 1px solid var(--ic-line); border-radius: 12px; color: var(--ic-text); font-size: 13.5px; font-weight: 700; cursor: pointer; }
body .ian-chat .ic-meet-where label:has(input:checked), body .ian-chat .ic-meet-modes label:has(input:checked) { border-color: var(--mono-accent); background: var(--mono-accent-soft); color: var(--text); }
body .ian-chat .ic-meet-where input, body .ian-chat .ic-meet-modes input { accent-color: var(--mono-accent); }
body .ian-chat .ic-meet-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
body .ian-chat .ic-meet-stats span { display: grid; justify-items: center; padding: 8px 4px; border-radius: 12px; background: var(--mono-accent-soft); }
body .ian-chat .ic-meet-stats b { color: var(--ic-text); font-size: 20px; }
body .ian-chat .ic-meet-stats small { color: var(--text); font-size: 11.5px; }
body .ian-chat .ic-meet-who summary { color: var(--text); font-weight: 700; font-size: 13.5px; cursor: pointer; }
body .ian-chat .ic-meet-who ul { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
body .ian-chat .ic-meet-who li { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ic-text); font-size: 14px; }
body .ian-chat .ic-meet-who li i { padding: 3px 9px; border-radius: 999px; font: 700 11.5px Manrope, system-ui, sans-serif; font-style: normal; }
body .ian-chat .ic-meet-danger { color: #1B1F2A !important; }
:root[data-theme="dark"] body .ian-chat .ic-meet-danger { color: #EEF2F8 !important; }
body .ian-chat .ic-meet-form { display: grid; gap: 12px; }
body .ian-chat .ic-meet-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body .ian-chat .ic-meet-modes, body .ian-chat .ic-meet-people { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
body .ian-chat .ic-meet-modes { grid-template-columns: repeat(3, 1fr); }
body .ian-chat .ic-meet-modes legend, body .ian-chat .ic-meet-people legend { margin-bottom: 6px; color: var(--text); font-size: 13px; font-weight: 700; }
body .ian-chat .ic-meet-person { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--ic-line); border-radius: 14px; cursor: pointer; }
body .ian-chat .ic-meet-person:has(input:checked) { border-color: var(--mono-accent); background: var(--mono-accent-soft); }
body .ian-chat .ic-meet-person input { width: 20px; height: 20px; accent-color: var(--mono-accent); }
body .ian-chat .ic-meet-person span:last-child { display: grid; } body .ian-chat .ic-meet-person b { color: var(--ic-text); font-size: 14.5px; } body .ian-chat .ic-meet-person small { color: var(--text); font-size: 12px; }body .ian-chat .ic-meet-where input, body .ian-chat .ic-meet-modes input, body .ian-chat .ic-meet-person input { flex: none !important; width: 18px !important; height: 18px !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; -webkit-appearance: auto !important; appearance: auto !important; }
/* Modalidad y «dónde estarás»: píldoras (la opción elegida se ilumina); el círculo nativo queda oculto pero usable con teclado */
body .ian-chat .ic-meet-where label, body .ian-chat .ic-meet-modes label { position: relative; }
body .ian-chat .ic-meet-where input, body .ian-chat .ic-meet-modes input { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; opacity: 0 !important; cursor: pointer; }
body .ian-chat .ic-meet-where label:has(input:focus-visible), body .ian-chat .ic-meet-modes label:has(input:focus-visible) { outline: 3px solid var(--seima-cyan, #E55B13); outline-offset: 2px; }
body .ian-chat .ic-meet-person input { background: transparent !important; accent-color: #E55B13 !important; }
/* ========== Conversación con fondo oscuro (2026-10-18) ==========
   El fondo del chat (Ajustes → Chat) es independiente del modo claro u oscuro de la app. Con fondo oscuro (o una imagen
   oscura) y la app en modo claro, los mensajes y el nombre quedaban azul marino sobre azul noche. Aquí, todo lo de la
   conversación toma colores claros cuando su fondo es oscuro, sin importar el modo de la app. */
body .ian-chat[data-ic-theme="dark"] .ic-thread, body .ian-chat[data-ic-theme="image"][data-ic-ink="light"] .ic-thread {
  --ic-text: #E2E6EE; --ic-muted: #9AA3B5; --ic-line: #1B1F2A; --ic-field: #1B1F2A; --ic-surface: rgba(20, 29, 71, .92);
  --mono-ink: #E2E6EE; --mono-soft: #9AA3B5; --mono-line: #1B1F2A; --mono-surface: #1B1F2A; --mono-bg: #1B1F2A; color: #E2E6EE; }
body .ian-chat[data-ic-theme="dark"] .ic-thread .ic-message, body .ian-chat[data-ic-theme="dark"] .ic-thread .ic-message p,
body .ian-chat[data-ic-theme="dark"] .ic-thread-head strong, body .ian-chat[data-ic-theme="dark"] .ic-thread-head b,
body .ian-chat[data-ic-theme="image"][data-ic-ink="light"] .ic-thread-head strong, body .ian-chat[data-ic-theme="image"][data-ic-ink="light"] .ic-thread-head b { color: #E2E6EE; }
body .ian-chat[data-ic-theme="dark"] .ic-thread .ic-message { background: #1B1F2A; border-color: #1B1F2A; }
body .ian-chat[data-ic-theme="dark"] .ic-thread .ic-message.mine { background: #C24A0C; border-color: #E55B13; }
body .ian-chat[data-ic-theme="dark"] .ic-thread .ic-message-meta { color: rgba(251, 246, 242, .72); }
body .ian-chat[data-ic-theme="dark"] .ic-thread .ic-message .ic-quote { color: #E2E6EE; }
body .ian-chat[data-ic-theme="dark"] .ic-thread-head small, body .ian-chat[data-ic-theme="image"][data-ic-ink="light"] .ic-thread-head small { color: #E2E6EE; }
body .ian-chat[data-ic-theme="dark"] .ic-thread .ic-composer textarea { color: #E2E6EE; }
body .ian-chat[data-ic-theme="dark"] .ic-thread .ic-composer textarea::placeholder { color: #9AA3B5; }
/* Semáforo del contacto (pedido de Edilberto, 2026-10-18): solo VERDE = en línea y ROJO = fuera de línea (sin naranja).
   Es la única excepción a los colores de la marca: el verde de «en línea» se reconoce al instante. */
body .ian-chat .ic-dot { width: 10px; height: 10px; }
body .ian-chat .ic-dot.on { background: #4A3FB5 !important; box-shadow: 0 0 0 3px rgba(31, 196, 90, .25) !important; }
body .ian-chat .ic-dot.wait { background: #E55B13 !important; box-shadow: 0 0 0 3px rgba(255, 159, 26, .25) !important; }
body .ian-chat .ic-dot.off { background: #C0392B !important; box-shadow: 0 0 0 3px rgba(240, 68, 58, .22) !important; }
/* ---------- Convocatorias: portada, imagen propia, enlace y botón volver (2026-10-18) ---------- */
body .ian-chat .ic-head .ic-back-tab { display: inline-grid !important; place-items: center !important; flex: none; width: 42px !important; height: 42px !important; min-height: 42px !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important;
  background: var(--seima-btn-bg) !important; color: #FFFFFF !important; box-shadow: var(--seima-btn-shadow) !important; }
body .ian-chat .ic-head .ic-back-tab[hidden] { display: none !important; }
body .ian-chat .ic-head .ic-back-tab svg { width: 22px; height: 22px; stroke-width: 2.6; color: #FFFFFF; }
body .ian-chat .ic-head .ic-back-tab:active { transform: scale(.92); }
body .ian-chat .ic-meet { overflow: hidden; }
body .ian-chat .ic-meet-cover { display: flex; align-items: center; justify-content: center; gap: 12px; height: 108px; margin: -14px -14px 2px; color: #FFFFFF; font: 800 17px Manrope, system-ui, sans-serif; }
body .ian-chat .ic-meet-cover svg { width: 46px; height: 46px; stroke-width: 1.7; }
body .ian-chat .ic-meet-cover.is-meeting { background: linear-gradient(135deg, #E55B13, #C24A0C); }
body .ian-chat .ic-meet-cover.is-training { background: linear-gradient(135deg, #E55B13, #E55B13); }
body .ian-chat .ic-meet-cover.is-safety { background: linear-gradient(135deg, #C24A0C 0%, #C24A0C 55%, #C24A0C 100%); }
body .ian-chat .ic-meet-cover.is-project { background: linear-gradient(135deg, #C24A0C, #4A3FB5); }
body .ian-chat .ic-meet-cover.is-celebration { background: linear-gradient(135deg, #4A3FB5, #E55B13); }
body .ian-chat .ic-meet-cover.has-img { height: 150px; background: var(--ic-line); }
body .ian-chat .ic-meet-cover.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
body .ian-chat .ic-meet-join { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 44px; text-decoration: none; }
body .ian-chat .ic-meet-join svg { width: 20px; height: 20px; }
body .ian-chat .ic-meet-covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
body .ian-chat .ic-meet-covers legend { margin-bottom: 6px; color: var(--text); font-size: 13px; font-weight: 700; }
body .ian-chat .ic-meet-coverpick { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; color: #FFFFFF; font-size: 12px; font-weight: 800; cursor: pointer; border: 2px solid transparent; }
body .ian-chat .ic-meet-coverpick svg { width: 28px; height: 28px; }
body .ian-chat .ic-meet-coverpick input { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; opacity: 0 !important; margin: 0 !important; cursor: pointer; }
body .ian-chat .ic-meet-coverpick.is-meeting { background: linear-gradient(135deg, #E55B13, #C24A0C); } body .ian-chat .ic-meet-coverpick.is-training { background: linear-gradient(135deg, #E55B13, #E55B13); }
body .ian-chat .ic-meet-coverpick.is-safety { background: linear-gradient(135deg, #C24A0C 0%, #C24A0C 55%, #C24A0C 100%); } body .ian-chat .ic-meet-coverpick.is-project { background: linear-gradient(135deg, #C24A0C, #4A3FB5); }
body .ian-chat .ic-meet-coverpick.is-celebration { background: linear-gradient(135deg, #4A3FB5, #E55B13); }
body .ian-chat .ic-meet-coverpick.is-upload { background: var(--mono-accent-soft); color: var(--text); border-color: var(--mono-line); }
body .ian-chat .ic-meet-coverpick:has(input:checked) { border-color: var(--seima-cyan, #E55B13); box-shadow: 0 0 0 3px rgba(242, 169, 59, .35); }
body .ian-chat .ic-meet-coverpick:has(input:focus-visible) { outline: 3px solid var(--seima-cyan, #E55B13); outline-offset: 2px; }
body .ian-chat .ic-meet-upload { display: grid; gap: 8px; }
body .ian-chat .ic-meet-upload[hidden] { display: none; }
body .ian-chat .ic-meet-upload-preview img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 14px; display: block; }
body .ian-chat .ic-meet-upload-preview small { color: var(--text); }
/* Avisos del Chat (información y error) legibles en modo claro */
:root:not([data-theme="dark"]) body .ian-chat .ic-msg[data-kind="info"] { background: #FF7A33; border-color: #FF7A33; color: #EEF2F8; }
:root:not([data-theme="dark"]) body .ian-chat .ic-msg[data-kind="error"] { background: #FF7A33; border-color: #FF7A33; color: #EEF2F8; }/* Con el botón «‹» visible, el encabezado debe caber en el celular: «Contactos» queda solo con su ícono y el título se recorta. */
body .ian-chat .ic-head [data-ic-title] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .ian-chat .ic-head:has(.ic-back-tab:not([hidden])) .ic-contacts-pill { width: 42px; padding: 0; justify-content: center; }
body .ian-chat .ic-head:has(.ic-back-tab:not([hidden])) .ic-contacts-pill > span { display: none; }

/* ========== Inicio: tablero de todo lo que haces (2026-10-18) ========== */
body #view-notes .nh .nh-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 6px; }
@media (max-width: 330px) { body #view-notes .nh .nh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body #view-notes .nh .nh-stat { all: unset; box-sizing: border-box; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 66px; padding: 8px 4px; border-radius: 16px; background: var(--mono-surface); border: 1px solid var(--mono-line); text-align: center; }
body #view-notes .nh button.nh-stat { cursor: pointer; -webkit-tap-highlight-color: transparent; }
body #view-notes .nh button.nh-stat:active { transform: scale(.96); }
body #view-notes .nh button.nh-stat:focus-visible { outline: 3px solid var(--seima-cyan, #E55B13); outline-offset: 2px; }
body #view-notes .nh .nh-stat b { color: var(--text); font: 800 22px/1 Manrope, system-ui, sans-serif; }
body #view-notes .nh .nh-stat small { color: var(--mono-soft); font-size: 11px; font-weight: 700; line-height: 1.15; }
body #view-notes .nh .nh-stat.is-zero b { color: var(--mono-soft); }
body #view-notes .nh .nh-hsec { margin-top: 18px; }
body #view-notes .nh .nh-hsec .nh-row h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; }
body #view-notes .nh .nh-hsec .nh-row h2 svg { width: 20px; height: 20px; }
body #view-notes .nh .nh-hcount { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; box-sizing: border-box; border-radius: 999px; background: var(--seima-btn-bg); color: #FFFFFF; font: 800 12px/1 Manrope, system-ui, sans-serif; font-style: normal; }
body #view-notes .nh .nh-hlist { display: grid; gap: 8px; margin-top: 10px; }
body #view-notes .nh .nh-hrow { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 16px; background: var(--mono-surface); border: 1px solid var(--mono-line); }
body #view-notes .nh .nh-hrow-open { all: unset; box-sizing: border-box; display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
body #view-notes .nh .nh-hrow-open:focus-visible { outline: 3px solid var(--seima-cyan, #E55B13); outline-offset: 3px; border-radius: 12px; }
body #view-notes .nh .nh-hrow-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--mono-accent-soft); color: var(--text); }
body #view-notes .nh .nh-hrow-ic svg { width: 22px; height: 22px; }
body #view-notes .nh .nh-hrow-text { display: grid; min-width: 0; flex: 1; }
body #view-notes .nh .nh-hrow-text b { overflow: hidden; color: var(--text); font-size: 14.5px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
body #view-notes .nh .nh-hrow-text small { color: var(--mono-soft); font-size: 12.5px; }
body #view-notes .nh .nh-feed .nh-hrow-text b { white-space: normal; overflow-wrap: anywhere; }
body #view-notes .nh .nh-feed.is-new .nh-hrow-ic { background: rgba(242, 169, 59, .16); color: #1B1F2A; }
body #view-notes .nh .nh-feed.is-del .nh-hrow-ic { background: rgba(201, 38, 79, .12); color: #1B1F2A; }
body #view-notes .nh .nh-feed.is-back .nh-hrow-ic { background: rgba(74, 63, 181, .14); color: #1B1F2A; }
body #view-notes .nh .nh-feed.is-fav .nh-hrow-ic { background: rgba(242, 184, 58, .2); color: #1B1F2A; }
:root[data-theme="dark"] body #view-notes .nh .nh-feed.is-new .nh-hrow-ic { color: #EEF2F8; }
:root[data-theme="dark"] body #view-notes .nh .nh-feed.is-del .nh-hrow-ic { color: #EEF2F8; }
:root[data-theme="dark"] body #view-notes .nh .nh-feed.is-back .nh-hrow-ic { color: #EEF2F8; }
:root[data-theme="dark"] body #view-notes .nh .nh-feed.is-fav .nh-hrow-ic { color: #EEF2F8; }
body #view-notes .nh .nh-hrow .nh-heart { flex: none; width: 36px; height: 36px; }
body #view-notes .nh .nh-hrow .nh-pill { flex: none; }
/* ========== Inicio: carpetitas que aparecen al crear (2026-10-18) ========== */
body #view-notes .nh .nh-folders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin: 14px 0 10px; }
@media (min-width: 700px) { body #view-notes .nh .nh-folders { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
body #view-notes .nh .nh-folder { all: unset; box-sizing: border-box; position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "ic n" "label label"; align-items: center; gap: 8px 10px; min-height: 92px; margin-top: 10px; padding: 14px 12px 12px; border-radius: 6px 18px 18px 18px;
  background: var(--fo-bg, var(--mono-accent-soft)); border: 1.5px solid var(--fo-line, var(--mono-line)); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s ease; animation: nh-folder-in .45s cubic-bezier(.2, .9, .3, 1.2) both; }
body #view-notes .nh .nh-folder::before { content: ''; position: absolute; left: -1.5px; top: -11px; width: 48%; height: 12px; border: 1.5px solid var(--fo-line, var(--mono-line)); border-bottom: 0; border-radius: 8px 10px 0 0; background: var(--fo-bg, var(--mono-accent-soft)); }
body #view-notes .nh .nh-folder:active { transform: scale(.96); }
body #view-notes .nh .nh-folder:focus-visible { outline: 3px solid var(--seima-cyan, #E55B13); outline-offset: 3px; }
body #view-notes .nh .nh-folder-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--mono-surface); color: var(--text)); }
body #view-notes .nh .nh-folder-ic svg { width: 22px; height: 22px; }
body #view-notes .nh .nh-folder b { overflow: hidden; color: var(--text); font: 800 14.5px/1.2 Manrope, system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
body #view-notes .nh .nh-folder-n { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; box-sizing: border-box; border-radius: 999px; background: var(--seima-btn-bg); color: #FFFFFF; font: 800 15px/1 Manrope, system-ui, sans-serif; font-style: normal; }
body #view-notes .nh .nh-folder-new { position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 999px; background: #4A3FB5; color: #1B1F2A; font: 800 10.5px/1.4 Manrope, system-ui, sans-serif; font-style: normal; }
body #view-notes .nh .nh-folder.is-fresh { animation: nh-folder-in .45s cubic-bezier(.2, .9, .3, 1.2) both, nh-folder-pulse 1.6s ease-in-out .5s 3; }
@keyframes nh-folder-in { 0% { opacity: 0; transform: translateY(14px) scale(.9); } 100% { opacity: 1; transform: none; } }
@keyframes nh-folder-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 169, 59, 0); } 50% { box-shadow: 0 0 0 6px rgba(242, 169, 59, .35); } }
@media (prefers-reduced-motion: reduce) { body #view-notes .nh .nh-folder, body #view-notes .nh .nh-folder.is-fresh { animation: none; } }
body #view-notes .nh .nh-folder.is-books { --fo-bg: #E2E6EE; --fo-line: #E55B13; --fo-ink: #E55B13; }
body #view-notes .nh .nh-folder.is-reminders { --fo-bg: #E2E6EE; --fo-line: #E2E6EE; --fo-ink: #C24A0C; }
body #view-notes .nh .nh-folder.is-alarms { --fo-bg: #F4F6FA; --fo-line: #FF9A5C; --fo-ink: #C24A0C; }
body #view-notes .nh .nh-folder.is-tasks { --fo-bg: #E2E6EE; --fo-line: #E55B13; --fo-ink: #C24A0C; }
body #view-notes .nh .nh-folder.is-notes { --fo-bg: #E2E6EE; --fo-line: #FF9A5C; --fo-ink: #C24A0C; }
body #view-notes .nh .nh-folder.is-media { --fo-bg: #F4F6FA; --fo-line: #FF9A5C; --fo-ink: #C24A0C; }
body #view-notes .nh .nh-folder.is-files { --fo-bg: #F4F6FA; --fo-line: #E2E6EE; --fo-ink: #C24A0C; }
body #view-notes .nh .nh-folder.is-links { --fo-bg: #E2E6EE; --fo-line: #E2E6EE; --fo-ink: #C24A0C; }
body #view-notes .nh .nh-folder.is-favorites { --fo-bg: #E2E6EE; --fo-line: #FF9A5C; --fo-ink: #C24A0C; }
body #view-notes .nh .nh-folder.is-trash { --fo-bg: #F4F6FA; --fo-line: #FF9A5C; --fo-ink: #C24A0C; }
:root[data-theme="dark"] body #view-notes .nh .nh-folder { --fo-bg: #313B4F !important; --fo-line: #E55B13 !important; }
:root[data-theme="dark"] body #view-notes .nh .nh-folder.is-books, :root[data-theme="dark"] body #view-notes .nh .nh-folder.is-tasks { --fo-ink: #FF7A33; }
:root[data-theme="dark"] body #view-notes .nh .nh-folder.is-reminders, :root[data-theme="dark"] body #view-notes .nh .nh-folder.is-links { --fo-ink: #FF7A33; }
:root[data-theme="dark"] body #view-notes .nh .nh-folder.is-alarms, :root[data-theme="dark"] body #view-notes .nh .nh-folder.is-media { --fo-ink: #FF7A33; }
:root[data-theme="dark"] body #view-notes .nh .nh-folder.is-notes, :root[data-theme="dark"] body #view-notes .nh .nh-folder.is-favorites { --fo-ink: #FF7A33; }
:root[data-theme="dark"] body #view-notes .nh .nh-folder.is-files { --fo-ink: #FF7A33; }
:root[data-theme="dark"] body #view-notes .nh .nh-folder.is-trash { --fo-ink: #FF7A33; }
body #view-notes .nh .nh-welcome-compact { margin-top: 18px; }
body #view-notes .nh .nh-folder-hint { display: flex; justify-content: flex-end; margin: 2px 0 8px; }body #view-notes .nh .nh-folder-ic { grid-area: ic; justify-self: start; } body #view-notes .nh .nh-folder-n { grid-area: n; } body #view-notes .nh .nh-folder b { grid-area: label; font-size: 15px; }

/* ---------- Reuniones: reloj regresivo, candado y «Unirme» (2026-10-18) ---------- */
body #view-notes .nh .nh-count, body .ian-chat .ic-meet-count { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(242, 169, 59, .16); color: #1B1F2A; font: 800 12px/1.5 Manrope, system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
body #view-notes .nh .nh-count::before, body .ian-chat .ic-meet-count::before { content: ''; width: 12px; height: 12px; flex: none; 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.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2.5 2M9 3h6'/%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.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2.5 2M9 3h6'/%3E%3C/svg%3E") center / contain no-repeat; }
body #view-notes .nh .nh-count.is-live, body .ian-chat .ic-meet-count.is-live { background: rgba(31, 196, 90, .2); color: #1B1F2A; }
body #view-notes .nh .nh-count.is-over, body .ian-chat .ic-meet-count.is-over { background: var(--mono-line); color: var(--mono-soft); }
:root[data-theme="dark"] body #view-notes .nh .nh-count, :root[data-theme="dark"] body .ian-chat .ic-meet-count { color: #EEF2F8; }
:root[data-theme="dark"] body #view-notes .nh .nh-count.is-live, :root[data-theme="dark"] body .ian-chat .ic-meet-count.is-live { color: #EEF2F8; }
body .ian-chat .ic-meet-line { flex-wrap: wrap; }
body #view-notes .nh .nh-hrow-text small { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; }
body #view-notes .nh .nh-lock { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--mono-accent-soft); color: var(--text); }
body #view-notes .nh .nh-lock svg { width: 18px; height: 18px; }
body #view-notes .nh a.nh-join { display: inline-flex; align-items: center; flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--seima-grad); color: #FFFFFF; font: 800 13px Manrope, system-ui, sans-serif; text-decoration: none; }
body .ian-chat .ic-meet-linkbox { margin-top: 2px; }
body .ian-chat .ic-meet-linkform { display: grid; gap: 8px; margin-top: 8px; }
body #view-notes .nh .nh-hrow-text b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

/* ========== Inicio estilo GoodNotes (2026-10-18): carpetas de color y cuadernos como portadas ========== */
/* Reemplaza el diseño de «carpetita en tarjeta» de más arriba. */
body #view-notes .nh .nh-folders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 8px; margin: 18px 0 6px; }
@media (min-width: 700px) { body #view-notes .nh .nh-folders { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 14px; } }
body #view-notes .nh .nh-folder { all: unset; box-sizing: border-box; display: grid; justify-items: center; align-content: start; gap: 3px; min-height: 0; margin: 0; padding: 0; background: none; border: 0; border-radius: 12px; cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent; transition: transform .15s ease; animation: nh-folder-in .45s cubic-bezier(.2, .9, .3, 1.2) both; }
body #view-notes .nh .nh-folder::before { display: none; }
body #view-notes .nh .nh-folder:active { transform: scale(.95); }
body #view-notes .nh .nh-folder:focus-visible { outline: 3px solid var(--seima-cyan, #E55B13); outline-offset: 4px; }
body #view-notes .nh .nh-fbox { position: relative; display: block; width: min(100%, 118px); aspect-ratio: 120 / 92; filter: drop-shadow(0 6px 8px rgba(74, 63, 181, .16)); }
body #view-notes .nh .nh-fsvg { display: block; width: 100%; height: 100%; }
body #view-notes .nh .nh-fsvg .fb { fill: var(--f1); }
body #view-notes .nh .nh-fsvg .ff { fill: var(--f2); }
body #view-notes .nh .nh-fico { position: absolute; left: 0; right: 0; top: 40%; display: grid; place-items: center; color: #1B1F2A; opacity: .72; }
body #view-notes .nh .nh-fico svg { width: 34px; height: 34px; }
body #view-notes .nh .nh-folder-n { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; box-sizing: border-box; border-radius: 999px; background: var(--seima-btn-bg); color: #FFFFFF; font: 800 13.5px/1 Manrope, system-ui, sans-serif; font-style: normal; box-shadow: 0 2px 6px rgba(74, 63, 181, .3); }
body #view-notes .nh .nh-folder-new { position: absolute; left: 4px; top: -8px; padding: 2px 8px; border-radius: 999px; background: #4A3FB5; color: #1B1F2A; font: 800 10.5px/1.4 Manrope, system-ui, sans-serif; font-style: normal; }
body #view-notes .nh .nh-folder > b { max-width: 100%; margin-top: 4px; overflow: hidden; color: var(--text); font: 800 13.5px/1.2 Manrope, system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
body #view-notes .nh .nh-folder > small { max-width: 100%; overflow: hidden; color: var(--mono-soft); font: 600 11px/1.25 Manrope, system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
body #view-notes .nh .nh-folder.is-fresh .nh-fbox { animation: nh-folder-pulse 1.6s ease-in-out .5s 3; border-radius: 16px; }
body #view-notes .nh .nh-folder.is-tasks { --f1: #E55B13; --f2: #E55B13; } body #view-notes .nh .nh-folder.is-reminders { --f1: #E55B13; --f2: #E2E6EE; }
body #view-notes .nh .nh-folder.is-alarms { --f1: #E55B13; --f2: #FF9A5C; } body #view-notes .nh .nh-folder.is-calc { --f1: #E55B13; --f2: #E55B13; }
body #view-notes .nh .nh-folder.is-notes { --f1: #E55B13; --f2: #FF9A5C; } body #view-notes .nh .nh-folder.is-media { --f1: #E55B13; --f2: #E55B13; }
body #view-notes .nh .nh-folder.is-files { --f1: #E55B13; --f2: #FF9A5C; } body #view-notes .nh .nh-folder.is-links { --f1: #E55B13; --f2: #E55B13; }
body #view-notes .nh .nh-folder.is-favorites { --f1: #E55B13; --f2: #E55B13; } body #view-notes .nh .nh-folder.is-trash { --f1: #FF9A5C; --f2: #FF9A5C; }
:root[data-theme="dark"] body #view-notes .nh .nh-fbox { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
/* Cuadernos como portadas */
body #view-notes .nh .nh-covers-head { margin-top: 22px; }
body #view-notes .nh .nh-covers-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; }
body #view-notes .nh .nh-covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 8px; margin-top: 12px; }
@media (min-width: 700px) { body #view-notes .nh .nh-covers { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 14px; } }
body #view-notes .nh .nh-cv { position: relative; display: grid; justify-items: center; gap: 6px; }
body #view-notes .nh .nh-cv-open { all: unset; display: block; width: min(86%, 104px); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s ease; }
body #view-notes .nh .nh-cv-open:active { transform: scale(.96); }
body #view-notes .nh .nh-cv-open:focus-visible { outline: 3px solid var(--seima-cyan, #E55B13); outline-offset: 4px; border-radius: 8px; }
body #view-notes .nh .nh-cv-star { position: absolute !important; top: -6px; right: 0; width: 32px !important; height: 32px !important; }
body #view-notes .nh .nh-cv-del { position: absolute !important; top: -6px; left: 0; width: 32px !important; height: 32px !important; margin: 0 !important; border-radius: 10px !important; }
body #view-notes .nh .nh-cv-del .ic-bin { width: 18px !important; height: 18px !important; }
body #view-notes .nh .nh-cv-name { all: unset; display: grid; justify-items: center; gap: 2px; max-width: 100%; text-align: center; cursor: pointer; }
body #view-notes .nh .nh-cv-name b { max-width: 100%; overflow: hidden; color: var(--text); font: 800 13.5px/1.2 Manrope, system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
body #view-notes .nh .nh-cv-name .nh-tags { justify-content: center; }
body #view-notes .nh .nh-cv-name small { color: var(--mono-soft); font-size: 11px; }body #view-notes .nh .nh-folder { grid-template-columns: minmax(0, 1fr); width: 100%; } body #view-notes .nh .nh-fbox { width: 100%; max-width: 118px; } body #view-notes .nh .nh-cv { grid-template-columns: minmax(0, 1fr); }

body #view-notes .nh .nh-folder { grid-template-areas: none; grid-auto-flow: row; } body #view-notes .nh .nh-folder > b, body #view-notes .nh .nh-folder > small, body #view-notes .nh .nh-folder .nh-folder-n, body #view-notes .nh .nh-folder .nh-folder-ic { grid-area: auto; }

/* La animación de entrada solo para carpetas nuevas: así no se repite (ni se ven desteñidas) cada vez que la pantalla se actualiza. */
body #view-notes .nh .nh-folder { animation: none; }
body #view-notes .nh .nh-folder.is-fresh { animation: nh-folder-in .45s cubic-bezier(.2, .9, .3, 1.2) both; }
body #view-notes .nh .nh-folder.is-fresh .nh-fbox { animation: nh-folder-pulse 1.6s ease-in-out .5s 3; }

body #view-notes .nh .nh-folder .nh-folder-new { right: auto; left: 2px; top: -8px; width: auto; padding: 1px 8px; font-size: 10px; box-shadow: 0 2px 5px rgba(0, 0, 0, .2); }
body #view-notes .nh .nh-folder > small { white-space: normal; text-overflow: clip; overflow-wrap: anywhere; }

/* ---------- meldune, la mascota que se cuida (2026-10-19, Fase 1) ---------- */
/* Se puede ocultar en Ajustes › meldune, la mascota. */
html[data-seima-mascota="off"] .sc-seima, html[data-seima-mascota="off"] .nh-seima-card { display: none !important; }
.sc-seima-pet { position: relative; display: block; flex: none; }
.sc-seima .sc-bot, .nh-seima-card .sc-bot { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* El «＋» discreto en la esquina de meldune (dedo, mouse o lápiz). */
.sc-seima-plus { position: absolute; left: -4px; bottom: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; padding: 0; pointer-events: auto; cursor: pointer;
  border: 1px solid rgba(229, 91, 19, .3); background: rgba(255, 255, 255, .78); color: #1B1F2A; font: 800 17px/1 Manrope, system-ui, sans-serif;
  opacity: .55; transition: opacity .2s ease, transform .2s ease; box-shadow: 0 2px 8px rgba(74, 63, 181, .14); }
.sc-seima-plus:hover, .sc-seima-plus:focus-visible { opacity: 1; transform: scale(1.08); }
.sc-seima-plus:focus-visible { outline: 2px solid #E55B13; outline-offset: 2px; }
@media (hover: none) { .sc-seima-plus { opacity: .72; } }
:root[data-theme="dark"] .sc-seima-plus { background: rgba(20, 29, 71, .85); color: #EEF2F8; border-color: rgba(142, 155, 178, .4); }
.sc-scene:not(.is-active) .sc-seima-plus { visibility: hidden; }

/* Ojos dormidos, «Zzz» y notas musicales */
.sc-bot .eye-sleep { opacity: 0; }
.sc-bot .eye-sleep path { stroke: #A59CFF; stroke-width: 22; stroke-linecap: round; }
.sc-bot .b-fx > * { opacity: 0; }
.sc-bot .fx-z { stroke: #4A3FB5; }
:root[data-theme="dark"] .sc-bot .fx-z { stroke: #A59CFF; }
.sc-bot.is-asleep .b-face, .sc-bot.is-asleep .head-clean { opacity: 1 !important; }
.sc-bot.is-asleep :is(.eye-dome, .eye-open, .eye-line, .mouth-smile, .mouth-open, .mouth-flat) { opacity: 0 !important; }
.sc-bot.is-asleep .eye-sleep { opacity: 1; }
.sc-bot.is-asleep .mouth-o { opacity: 1 !important; transform: scale(.5); animation: pet-breathe 3.4s ease-in-out infinite; }
.sc-bot.is-asleep .f-brow { transform: translateY(14px); }
.sc-bot.is-asleep .b-face { filter: drop-shadow(0 0 2px rgba(249, 192, 159, .2)) brightness(.82); }
.sc-bot.is-asleep .b-head { transform: rotate(4deg) translateY(8px); }
.sc-bot.is-asleep .b-armL { animation: none; }
.sc-bot.is-asleep .b-float { animation-duration: 6s !important; }
.sc-bot.is-asleep .fx-z { animation: pet-z 3.6s ease-in-out infinite; }
.sc-bot.is-asleep .fx-z.z2 { animation-delay: 1.2s; } .sc-bot.is-asleep .fx-z.z3 { animation-delay: 2.4s; }
@keyframes pet-breathe { 0%, 100% { transform: scale(.42); } 50% { transform: scale(.58); } }
@keyframes pet-z { 0% { opacity: 0; translate: 0 12px; } 30% { opacity: 1; } 100% { opacity: 0; translate: 22px -34px; } }
.sc-bot:is(.is-singing, .is-dancing) .fx-note { animation: pet-note 1.7s ease-out infinite; }
.sc-bot:is(.is-singing, .is-dancing) .fx-note.n2 { animation-delay: .55s; } .sc-bot:is(.is-singing, .is-dancing) .fx-note.n3 { animation-delay: 1.1s; }
@keyframes pet-note { 0% { opacity: 0; translate: 0 16px; } 25% { opacity: 1; } 100% { opacity: 0; translate: 10px -46px; } }

/* Bailar y saltar */
.sc-bot.is-dancing .b-float { animation: pet-dance .96s ease-in-out infinite !important; transform-origin: 280px 470px; }
@keyframes pet-dance { 0%, 100% { transform: rotate(-6deg); } 25% { transform: translateY(-16px); } 50% { transform: rotate(6deg); } 75% { transform: translateY(-16px); } }
.sc-bot.is-dancing .b-head-idle { animation: pet-head .48s ease-in-out infinite alternate !important; }
@keyframes pet-head { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.sc-bot.is-dancing .b-armL { animation: pet-armL .48s ease-in-out infinite alternate !important; }
@keyframes pet-armL { from { transform: rotate(4deg); } to { transform: rotate(-16deg); } }
.sc-bot.is-dancing .b-foreR { animation: pet-armR .48s ease-in-out infinite alternate; }
@keyframes pet-armR { from { transform: rotate(0); } to { transform: rotate(-40deg); } }
.sc-bot.is-dancing .b-joint { opacity: 1; }
.sc-bot.is-hop .b-float { animation: pet-hop .6s cubic-bezier(.3, .7, .4, 1) !important; }
@keyframes pet-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-26px); } }
/* Fuera de las escenas (cuarto y «Más») también flota. */
:is(.seima-room, .nh-seima-card) .sc-bot .b-float { animation: bot-float 3.6s ease-in-out infinite; }
:is(.seima-room, .nh-seima-card) .sc-bot .b-shadow { animation: bot-shadow 3.6s ease-in-out infinite; transform-origin: 280px 485px; }

/* Tarjeta de meldune en «Más» */
.nh-seima-card { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; padding: 10px 14px; border-radius: 20px; background: linear-gradient(135deg, #E2E6EE, #F4F6FA); border: 1px solid #E2E6EE; color: #1B1F2A; }
:root[data-theme="dark"] .nh-seima-card { background: linear-gradient(135deg, #313B4F, #313B4F); border-color: #313B4F; color: #EEF2F8; }
.nh-seima-pet { width: 112px; }
.nh-seima-card .sc-bot { display: block; width: 100%; height: auto; overflow: visible; }
.nh-seima-card .sc-seima-plus { left: -2px; bottom: 4px; }
.nh-seima-text { display: grid; gap: 4px; min-width: 0; }
.nh-seima-text b { font: 800 16px/1.2 Manrope, system-ui, sans-serif; }
.nh-seima-text small { font: 500 12.5px/1.35 Manrope, system-ui, sans-serif; color: #1B1F2A; }
:root[data-theme="dark"] .nh-seima-text small { color: #EEF2F8; }
.nh-seima-open { justify-self: start; margin-top: 4px; border: 0; border-radius: 999px; padding: 8px 16px; background: #E55B13; color: #FFFFFF; font: 700 13px/1 Manrope, system-ui, sans-serif; cursor: pointer; }
.nh-seima-open:focus-visible { outline: 2px solid #4A3FB5; outline-offset: 2px; }

/* El cuarto de meldune (hoja que sube desde abajo; en computador, ventana centrada) */
.seima-room { padding: 0; border: 0; background: transparent; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; display: flex; align-items: flex-end; justify-content: center; }
.seima-room:not([open]) { display: none; }
.seima-room::backdrop { background: rgba(13, 20, 38, .55); }
.seima-room-card { width: min(560px, 100%); max-height: 94dvh; overflow: auto; overscroll-behavior: contain; background: #FFFFFF; color: #1B1F2A; border-radius: 24px 24px 0 0;
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(74, 63, 181, .28); transform: translateY(32px); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
.seima-room.is-open .seima-room-card { transform: none; opacity: 1; }
@media (min-width: 700px) { .seima-room { align-items: center; } .seima-room-card { border-radius: 24px; } }
:root[data-theme="dark"] .seima-room-card { background: #313B4F; color: #EEF2F8; box-shadow: 0 -10px 40px rgba(0, 0, 0, .45); }
.seima-room-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.seima-room-head h2 { margin: 0; font: 800 19px/1.2 Manrope, system-ui, sans-serif; color: inherit; }
.seima-room-x { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; border: 1.5px solid rgba(229, 91, 19, .35); background: #E2E6EE; color: #1B1F2A; }
.seima-room-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
:root[data-theme="dark"] .seima-room-x { background: #313B4F; color: #EEF2F8; border-color: rgba(142, 155, 178, .4); }
.seima-room-stage { display: grid; justify-items: center; margin: 10px 0 12px; padding: 10px 0 4px; border-radius: 20px; background: radial-gradient(circle at 50% 72%, rgba(229, 91, 19, .14), rgba(74, 63, 181, .05) 55%, transparent 75%); }
.seima-room-say { margin: 0 0 2px; padding: 8px 14px; border-radius: 14px; max-width: 90%; text-align: center; background: #E2E6EE; color: #1B1F2A; font: 700 13.5px/1.3 Manrope, system-ui, sans-serif; }
:root[data-theme="dark"] .seima-room-say { background: #313B4F; color: #EEF2F8; }
.seima-room-bot { border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.seima-room-bot .sc-bot { display: block; width: min(230px, 58vw); height: auto; overflow: visible; }
.seima-room-bot:focus-visible { outline: 2px solid #E55B13; outline-offset: 4px; border-radius: 16px; }
.seima-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seima-acts button { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 16px; border: 1px solid #E2E6EE; background: #F4F6FA; color: #1B1F2A; font: 700 12.5px/1.2 Manrope, system-ui, sans-serif; cursor: pointer; }
.seima-acts button > span { display: contents; }
.seima-acts svg { width: 26px; height: 26px; fill: none; stroke: #E55B13; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seima-acts button:not(:disabled):hover { border-color: #E55B13; }
.seima-acts button:focus-visible { outline: 2px solid #E55B13; outline-offset: 2px; }
.seima-acts .is-soon { cursor: default; } .seima-acts .is-soon :is(svg, b) { opacity: .5; }
.seima-acts i { position: absolute; top: 4px; right: 4px; padding: 1px 6px; border-radius: 8px; background: #4A3FB5; color: #FFFFFF; font: 800 9.5px/1.4 Manrope, system-ui, sans-serif; font-style: normal; }
:root[data-theme="dark"] .seima-acts button { background: #313B4F; border-color: #313B4F; color: #EEF2F8; }
:root[data-theme="dark"] .seima-acts svg { stroke: #A59CFF; }
.seima-room-card h3 { margin: 16px 2px 8px; font: 800 14.5px/1.2 Manrope, system-ui, sans-serif; color: inherit; }
.seima-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.seima-chip { display: grid; justify-items: center; gap: 2px; padding: 6px 4px 8px; border-radius: 14px; border: 1.5px solid #E2E6EE; background: #F4F6FA; color: #1B1F2A; font: 700 11.5px/1.2 Manrope, system-ui, sans-serif; text-align: center; cursor: pointer; }
.seima-chip svg { width: 100%; height: 56px; }
.seima-chip[aria-pressed="true"] { border-color: #E55B13; background: #E2E6EE; box-shadow: 0 0 0 2px rgba(229, 91, 19, .22); }
.seima-chip:focus-visible { outline: 2px solid #E55B13; outline-offset: 2px; }
:root[data-theme="dark"] .seima-chip { background: #313B4F; border-color: #313B4F; color: #EEF2F8; }
:root[data-theme="dark"] .seima-chip[aria-pressed="true"] { border-color: #FF7A33; background: #313B4F; box-shadow: 0 0 0 2px rgba(142, 155, 178, .25); }
.seima-room-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.seima-sound { border-radius: 999px; padding: 8px 16px; border: 1.5px solid #E55B13; background: transparent; color: #1B1F2A; font: 700 12.5px/1 Manrope, system-ui, sans-serif; cursor: pointer; }
:root[data-theme="dark"] .seima-sound { border-color: #A59CFF; color: #EEF2F8; }
.seima-room-foot small { flex: 1 1 200px; color: #1B1F2A; font: 500 12px/1.35 Manrope, system-ui, sans-serif; }
:root[data-theme="dark"] .seima-room-foot small { color: #EEF2F8; }

/* Menos movimiento: meldune se queda quieta (sigue vistiéndose y durmiendo). */
@media (prefers-reduced-motion: reduce) {
  .sc-bot :is(.b-float, .b-head-idle, .b-armL, .b-foreR, .b-shadow, .fx-z, .fx-note, .mouth-o) { animation: none !important; }
  .sc-bot.is-asleep .fx-z { opacity: 1; }
  .seima-room-card { transition: none; }
}
html.ian-reduce-motion .sc-bot :is(.b-float, .b-head-idle, .b-armL, .b-foreR, .b-shadow, .fx-z, .fx-note, .mouth-o) { animation: none !important; }
html.ian-reduce-motion .sc-bot.is-asleep .fx-z { opacity: 1; }

/* ---------- Reunión finalizada (2026-10-19): 1 hora después de la hora de fin, «Unirme» cambia a este aviso ---------- */
.ic-meet-ended, .nh-join-off { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid #E2E6EE; background: #E2E6EE; color: #1B1F2A; font: 700 12.5px/1.25 Manrope, system-ui, sans-serif; text-align: center; }
.ic-meet-ended { width: 100%; margin-top: 10px; }
.nh-join-off { flex: none; max-width: 132px; padding: 6px 10px; font-size: 11.5px; }
:root[data-theme="dark"] :is(.ic-meet-ended, .nh-join-off) { background: #313B4F; border-color: #313B4F; color: #EEF2F8; }
.is-extra { color: #1B1F2A; }
:root[data-theme="dark"] .is-extra { color: #EEF2F8; }

/* ---------- Reuniones v2 y Mi empresa (2026-10-19) ---------- */
body .ian-chat .ic-meet-asks { display: grid; gap: 8px; padding: 12px; border-radius: 16px; border: 1px solid rgba(74, 63, 181, .4); background: rgba(74, 63, 181, .09); }
body .ian-chat .ic-meet-asks-title { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ic-text); font-size: 14px; }
body .ian-chat .ic-meet-asks-title svg { flex: none; width: 18px; height: 18px; color: #1B1F2A; }
body .ian-chat .ic-meet-asks ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
body .ian-chat .ic-meet-asks li { display: grid; gap: 8px; color: var(--ic-text); font-size: 14.5px; font-weight: 700; }
body .ian-chat .ic-meet-ask-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body .ian-chat .ic-meet-ask-btns button { width: 100%; min-height: 42px; margin: 0; }
body .ian-chat .ic-meet-soon { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 1px dashed var(--ic-line); color: var(--text); font-size: 13.5px; font-weight: 700; text-align: center; }
body .ian-chat .ic-meet-soon svg { flex: none; width: 18px; height: 18px; }
body .ian-chat .ic-meet-hint { margin: 0; }
body .ian-chat .ic-meet-opts .ic-meet-optlist { display: grid; gap: 8px; margin-top: 8px; }
body .ian-chat .ic-meet-opts .ic-meet-optlist button { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; min-height: 44px; margin: 0; text-align: left; }
body .ian-chat .ic-meet-opts .ic-meet-optlist svg { flex: none; width: 18px; height: 18px; }
body .ian-chat .ic-meet-who li { flex-wrap: wrap; }
body .ian-chat .ic-meet-co { flex-basis: 100%; text-align: left; padding: 0; font-size: 12.5px; }
body .ian-chat .ic-meet-chatpick, body .ian-chat .ic-meet-all { margin-top: 2px; }
body .ian-chat .ic-joincard { border: 2px solid var(--mono-accent); }
body .ian-chat .ic-joincard h3 { margin: 0 0 6px; }
/* Mi empresa */
body .ian-chat .ic-co-role { display: inline-block; flex: none; padding: 4px 10px; border-radius: 999px; font: 800 11.5px Manrope, system-ui, sans-serif; font-style: normal; background: var(--mono-accent-soft); color: var(--text); }
body .ian-chat .ic-co-role.is-super { background: #E55B13; color: #FFFFFF; }
body .ian-chat .ic-co-role.is-admin { background: rgba(74, 63, 181, .16); color: #1B1F2A; }
body .ian-chat .ic-co-role.is-lead { background: rgba(242, 169, 59, .18); color: #1B1F2A; }
:root[data-theme="dark"] body .ian-chat .ic-co-role.is-super { background: #FF7A33; color: #232B3A; }
:root[data-theme="dark"] body .ian-chat .ic-co-role.is-admin { color: #EEF2F8; }
:root[data-theme="dark"] body .ian-chat .ic-co-role.is-lead { color: #EEF2F8; }
body .ian-chat .ic-co-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; padding: 4px; border-radius: 999px; background: var(--mono-accent-soft); }
body .ian-chat .ic-co-tabs button { min-height: 38px; margin: 0; padding: 0 4px; border: 0; border-radius: 999px; background: transparent; color: var(--ic-text); font: 700 13px Manrope, system-ui, sans-serif; cursor: pointer; }
body .ian-chat .ic-co-tabs button[aria-selected="true"] { background: var(--seima-btn-bg); color: #FFFFFF; }
body .ian-chat .ic-co-list { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
body .ian-chat .ic-co-member { border: 1px solid var(--ic-line); border-radius: 16px; background: var(--ic-surface); }
body .ian-chat .ic-co-member > div, body .ian-chat .ic-co-member summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: default; list-style: none; }
body .ian-chat .ic-co-member summary { cursor: pointer; }
body .ian-chat .ic-co-member summary::-webkit-details-marker { display: none; }
body .ian-chat .ic-co-member details[open] summary { border-bottom: 1px solid var(--ic-line); }
body .ian-chat .ic-co-member .ic-row-text { min-width: 0; flex: 1; display: grid; }
body .ian-chat .ic-co-member .ic-row-text b { color: var(--ic-text); font-size: 14.5px; overflow-wrap: anywhere; }
body .ian-chat .ic-co-member .ic-row-text small { color: var(--text); font-size: 12.5px; }
body .ian-chat .ic-co-form { padding: 12px; }
body .ian-chat .ic-co-form .ic-field select, body .ian-chat .ic-field select { width: 100%; min-height: 46px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--ic-line); background: var(--ic-field, transparent); color: var(--ic-text); font: 600 14.5px Manrope, system-ui, sans-serif; }
body .ian-chat .ic-field textarea { width: 100%; box-sizing: border-box; padding: 12px; border-radius: 14px; border: 1px solid var(--ic-line); background: var(--ic-field, transparent); color: var(--ic-text); font: 500 14.5px/1.45 Manrope, system-ui, sans-serif; resize: vertical; }
body .ian-chat .ic-co-invite { display: grid; gap: 8px; padding: 10px 0; }
body .ian-chat .ic-co-invite + .ic-co-invite { border-top: 1px solid var(--ic-line); }
body .ian-chat .ic-co-invite > span:first-child { display: none; }
body .ian-chat .ic-co-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--ic-line); border-radius: 16px; background: var(--ic-surface); }
body .ian-chat .ic-co-item .ic-row { padding: 0; border: 0; background: transparent; }
body .ian-chat .ic-co-item .ic-row-text { min-width: 0; flex: 1; display: grid; }
body .ian-chat .ic-co-item .ic-row-text b { color: var(--ic-text); font-size: 14.5px; overflow-wrap: anywhere; }
body .ian-chat .ic-co-item .ic-row-text small { color: var(--text); font-size: 12.5px; }
body .ian-chat .ic-co-body { margin: 6px 0 12px; color: var(--ic-text); font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
body .ian-chat .ic-co-roles, body .ian-chat .ic-co-levels { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
body .ian-chat .ic-co-roles li { display: grid; gap: 4px; justify-items: start; color: var(--ic-text); font-size: 13.5px; }
body .ian-chat .ic-co-levels li { display: grid; gap: 2px; color: var(--ic-text); font-size: 13.5px; }
body .ian-chat .ic-co-levels small { color: var(--text); font-size: 12.5px; }
body .ian-chat .ic-co-sug { color: var(--text); font-weight: 700; font-size: 12px; }
body .ian-chat .ic-co-foot { display: grid; justify-items: start; }

/* ---------- Alertas de seguridad, compartir, espacios y términos (2026-10-19) ---------- */
body .ian-chat .ic-meet-asks.is-risk { border-color: rgba(201, 38, 79, .55); background: rgba(201, 38, 79, .07); }
body .ian-chat .ic-meet-alert { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(201, 38, 79, .12); color: #1B1F2A; font-size: 13px; line-height: 1.4; }
:root[data-theme="dark"] body .ian-chat .ic-meet-alert { background: rgba(142, 155, 178, .14); color: #EEF2F8; }
body .ian-chat .ic-meet-ask-who { display: grid; }
body .ian-chat .ic-meet-ask-who small { color: var(--text); font-size: 12.5px; font-weight: 600; }
body .ian-chat .ic-meet-flags { display: flex; flex-wrap: wrap; gap: 6px; }
body .ian-chat .ic-meet-flags i { padding: 3px 9px; border-radius: 999px; font: 700 11.5px Manrope, system-ui, sans-serif; font-style: normal; }
body .ian-chat .ic-meet-flags .is-ok { background: rgba(242, 169, 59, .16); color: #1B1F2A; }
body .ian-chat .ic-meet-flags .is-warn { background: rgba(201, 38, 79, .14); color: #1B1F2A; }
:root[data-theme="dark"] body .ian-chat .ic-meet-flags .is-ok { color: #EEF2F8; }
:root[data-theme="dark"] body .ian-chat .ic-meet-flags .is-warn { color: #EEF2F8; }
body .ian-chat .ic-meet-sharebtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 42px; margin: 0; }
body .ian-chat .ic-meet-sharebtn svg { width: 18px; height: 18px; flex: none; }
body .ian-chat .ic-share { display: grid; gap: 8px; padding: 12px; border-radius: 16px; border: 1px solid var(--ic-line); background: var(--mono-accent-soft); }
body .ian-chat .ic-share-title { margin: 0; color: var(--ic-text); font-size: 14px; }
body .ian-chat .ic-share-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
body .ian-chat .ic-share-grid > * { display: flex; align-items: center; justify-content: center; min-height: 42px; margin: 0; text-decoration: none; text-align: center; }
body .ian-chat .ic-meet-space { margin: 14px 0 -4px; color: var(--text); font: 800 12px Manrope, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
body .ian-chat .ic-co-terms-list { display: grid; gap: 8px; margin: 8px 0 0; padding-left: 20px; color: var(--ic-text); font-size: 13.5px; line-height: 1.45; }

/* ---------- Mi enlace y mi código QR (2026-10-19) ---------- */
body .ian-chat .ic-qr { width: min(220px, 72%); margin: 4px auto 0; padding: 10px; border-radius: 16px; background: #FFFFFF; box-shadow: 0 2px 10px rgba(74, 63, 181, .15); }
body .ian-chat .ic-qr svg { display: block; width: 100%; height: auto; }
body .ian-chat .ic-mylink-url { margin: 0; color: var(--text); font-size: 12.5px; text-align: center; overflow-wrap: anywhere; }

/* Sugerencias de personas conocidas (2026-10-19) */
body .ian-chat .ic-suggest { display: grid; gap: 6px; margin-top: 6px; }
body .ian-chat .ic-suggest-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--ic-line); border-radius: 14px; background: var(--ic-surface); color: var(--ic-text); text-align: left; cursor: pointer; }
body .ian-chat .ic-suggest-item .ic-row-text { display: grid; min-width: 0; }
body .ian-chat .ic-suggest-item b { font-size: 14.5px; overflow-wrap: anywhere; }
body .ian-chat .ic-suggest-item small { color: var(--text); font-size: 12.5px; }
body .ian-chat .ic-suggest-item:hover, body .ian-chat .ic-suggest-item:focus-visible { border-color: var(--mono-accent); }

body .ian-chat .ic-meet-btnrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }

/* meldune habla: la boca «golpea» en cada palabra y la rejilla de acciones se adapta a 5 botones (2026-10-19) */
.sc-bot.is-talking.is-beat .mouth-open { animation: pet-beat .18s ease-out; }
@keyframes pet-beat { from { transform: scaleY(1.15); } to { transform: scaleY(.3); } }
.seima-acts { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); }
@media (prefers-reduced-motion: reduce) { .sc-bot.is-talking.is-beat .mouth-open { animation: none !important; } }

/* ---------- Grupos del chat (2026-10-19) ---------- */
body .ian-chat .ic-gmsgs { display: grid; gap: 8px; max-height: 52dvh; overflow-y: auto; padding: 4px 2px; scroll-behavior: smooth; }
body .ian-chat .ic-gmsg { position: relative; display: grid; gap: 2px; max-width: 86%; justify-self: start; padding: 8px 12px; border-radius: 16px 16px 16px 4px; background: var(--ic-surface); border: 1px solid var(--ic-line); color: var(--ic-text); }
body .ian-chat .ic-gmsg.is-mine { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--mono-accent-soft); }
body .ian-chat .ic-gmsg.is-pending { opacity: .65; }
body .ian-chat .ic-gmsg p { margin: 0; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
body .ian-chat .ic-gmsg small { color: var(--text); font-size: 11.5px; justify-self: end; }
body .ian-chat .ic-gmsg-who { color: var(--text); font: 800 12px Manrope, system-ui, sans-serif; }
body .ian-chat .ic-gmsg-del { justify-self: end; padding: 0; font-size: 11.5px; }
body .ian-chat .ic-gcard { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--ic-line); background: var(--ic-surface); color: var(--ic-text); text-align: left; cursor: pointer; }
body .ian-chat .ic-gcard svg { flex: none; width: 22px; height: 22px; color: var(--text); }
body .ian-chat .ic-gcard span { display: grid; min-width: 0; flex: 1; }
body .ian-chat .ic-gcard b { font-size: 14.5px; overflow-wrap: anywhere; }
body .ian-chat .ic-gcard small { color: var(--text); justify-self: start; }
body .ian-chat .ic-gcard i { color: var(--text); font: 700 12.5px Manrope, system-ui, sans-serif; font-style: normal; }
body .ian-chat .ic-gform { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; }
body .ian-chat .ic-gform textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 10px 14px; border-radius: 22px; border: 1px solid var(--ic-line); background: var(--ic-field, transparent); color: var(--ic-text); font: 500 14.5px/1.35 Manrope, system-ui, sans-serif; resize: none; }
body .ian-chat .ic-gform .ic-primary { flex: none; width: 46px; min-width: 46px; height: 46px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
body .ian-chat .ic-gform .ic-primary svg { width: 22px; height: 22px; }

/* ---------- Listas desplegables legibles en claro y oscuro (2026-10-19, aviso de Edilberto: opciones oscuras sobre fondo oscuro) ---------- */
select option { background: #FFFFFF; color: #1B1F2A; }
:root[data-theme="dark"] select option { background: #313B4F; color: #EEF2F8; }
body .ian-chat select option { background: #FFFFFF !important; color: #1B1F2A !important; }
:root[data-theme="dark"] body .ian-chat select option { background: #313B4F !important; color: #EEF2F8 !important; }
select option:checked, select option:hover { background: #E55B13 !important; color: #FFFFFF !important; }
/* Enlaces de invitación (2026-10-19): la línea de la tarjeta no se parte en dos y la sección del grupo se lee bien */
body .ian-chat .ic-joincard .ic-invline { flex-wrap: nowrap; align-items: flex-start; }
body .ian-chat .ic-joincard .ic-invline svg { margin-top: 2px; }
body .ian-chat .ic-invlink .ic-meet-state { display: inline-block; }

/* Limpieza de pantallas (2026-10-19, pedido de Edilberto): sin argollas; hoja lisa que cambia con claro/oscuro; búsqueda siempre visible arriba. */
body #view-notes .nh-page::before, .cn3d-spiral { display: none !important; }
body #view-notes .nh .nh-page { width: 100%; margin: 0 auto; padding: 16px 14px; border-radius: 22px; background: #FFFFFF; box-shadow: 0 6px 22px rgba(74, 63, 181, .10), inset 0 0 0 1px #E2E6EE; }
:root[data-theme="dark"] body #view-notes .nh .nh-page { background: #313B4F; box-shadow: 0 6px 22px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(142, 155, 178, .28); }
body #view-notes .nh .nh-appbar .nh-barsearch { flex: 1; min-width: 0; max-width: 340px; margin: 0 0 0 auto; padding: 0 10px; gap: 6px; border-radius: 999px; background: #FFFFFF; border: 1.5px solid #E2E6EE; color: #1B1F2A; }
body #view-notes .nh .nh-appbar .nh-barsearch:focus-within { border-color: #E55B13; box-shadow: 0 0 0 3px rgba(242, 169, 59, .22); }
body #view-notes .nh .nh-appbar .nh-barsearch input { padding: 9px 0; font-size: 14px; color: var(--text); min-width: 0; }
body #view-notes .nh .nh-appbar .nh-barsearch svg { width: 18px; height: 18px; color: #1B1F2A; }
:root[data-theme="dark"] body #view-notes .nh .nh-appbar .nh-barsearch { background: #313B4F; border-color: rgba(74, 63, 181, .45); }
:root[data-theme="dark"] body #view-notes .nh .nh-appbar .nh-barsearch svg { color: #EEF2F8; }

/* Listas desplegables más fáciles de ver (2026-10-19): flecha clara a la derecha, sin tapar el texto. */
body .ian-chat select { -webkit-appearance: none; appearance: none; padding-right: 46px !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23BA480A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 22px !important; }
:root[data-theme="dark"] body .ian-chat select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23F28A3C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; }

/* Rediseño del Chat, tanda 1 (2026-10-19): ＋ de crear más pequeño, sin el ＋ de meldune en la bienvenida, botones «Próximamente» discretos. */
body #view-notes .nh .nh-fab { width: 46px !important; height: 46px !important; font-size: 26px !important; right: 16px !important; bottom: calc(86px + env(safe-area-inset-bottom)) !important; }
body #view-notes .nh .nh-welcome .sc-seima-plus { display: none !important; }
body .ian-chat .ic-soon-btn { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: #1B1F2A; }
body .ian-chat .ic-soon-btn svg { width: 22px; height: 22px; }
:root[data-theme="dark"] body .ian-chat .ic-soon-btn { color: #EEF2F8; }
body .ian-chat .ic-compose-row.has-text .ic-soon-btn { display: none; }
body .ian-chat .ic-call-btn svg { color: #1B1F2A; }
:root[data-theme="dark"] body .ian-chat .ic-call-btn svg { color: #EEF2F8; }
body .ian-chat .ic-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body .ian-chat .ic-compose-row { display: flex !important; align-items: flex-end; gap: 6px; }
body .ian-chat .ic-compose-row textarea { flex: 1 1 auto; min-width: 0; }
body .ian-chat .ic-compose-row > button { flex: none; }

/* Tanda 1b: ventanas que se cierran bajando con el dedo (sin ×) y botones que se marcan al tocarlos. */
/* La × solo se quita en pantallas táctiles (se cierra bajando con el dedo); en PC se deja. */
@media (hover: none) and (pointer: coarse) { body .nh-win .nh-x { display: none !important; } }
body .nh-win .nh-grab, body .nh-win .nh-win-head { touch-action: none; cursor: grab; }
body .nh-win .nh-grab { height: 22px; }
body .ian-chat .ic-soon-btn.is-on, body .ian-chat .ic-call-btn.is-on { background: rgba(74, 63, 181, .22); box-shadow: 0 0 0 2px #E55B13; }

/* Fotos en chats y grupos (2026-10-19) */
body .ian-chat .ic-photo { all: unset; display: block; cursor: zoom-in; }
body .ian-chat .ic-photo img { display: block; max-width: min(260px, 100%); max-height: 320px; border-radius: 12px; object-fit: cover; }
body .ic-zoom { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; background: rgba(13, 20, 38, .88); cursor: zoom-out; padding: 12px; }
body .ic-zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; }

/* Bajar la pantalla con el dedo ya no recarga ni cierra la app (se actualiza con el letrero «Actualizar meldune» o desde Ajustes). */
/* (sin overscroll-behavior: bloqueaba la rueda y el dedo; el «bajar para recargar» se evita en src/back-button.js) */
body .ian-chat .ic-fab { display: none !important; }

/* Animación de bienvenida: la primera hoja del cuaderno muestra el logo del encabezado (letras de meldune), no el texto (pedido de Edilberto, 2026-10-19). */
.sc-page-logo { display: block; width: 86%; height: 34px; margin: 0 auto; background: center / contain no-repeat; }
.sc-logo-light { background-image: url("./assets/meldune-letras.png?v=meldune5"); }
.sc-logo-dark { background-image: url("./assets/meldune-letras-oscuro.png?v=meldune5"); display: none; }
:root[data-theme="dark"] .sc-logo-light { display: none; }
:root[data-theme="dark"] .sc-logo-dark { display: block; }
.sc-page-slogan { display: block; text-align: center; font: 700 7px Manrope, system-ui, sans-serif; color: var(--text); }

/* Perfil y Ajustes más simples (2026-10-20) */
body .ian-chat .ic-subtle { display: block; margin-top: 6px; text-align: center; font-size: 11.5px; color: var(--text); opacity: .85; }
body .ian-chat .ic-center-actions { justify-content: center; }
body #view-notes .nh .nh-trashtop { margin-bottom: 4px; }
.settings-signout { margin: 18px 0 8px; display: grid; }
.settings-signout .secondary-button { color: #1B1F2A; border-color: rgba(201, 38, 79, .45); }

/* Íconos propios de meldune (2026-10-20): tamaño uniforme en Más, el menú ☰ y Ajustes; fondo suave de la marca. */
body #view-notes .nh .nh-moretile .nh-mod-ic { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(160deg, #F4F6FA, #F4F6FA) !important; box-shadow: inset 0 0 0 1px rgba(229, 91, 19, .12); }
:root[data-theme="dark"] body #view-notes .nh .nh-moretile .nh-mod-ic { background: linear-gradient(160deg, #313B4F, #313B4F) !important; box-shadow: inset 0 0 0 1px rgba(142, 155, 178, .3); }
body #view-notes .nh .nh-moretile .nh-mod-ic .seima-ic { width: 32px; height: 32px; }
body .ian-chat .ic-menu .seima-ic { width: 22px; height: 22px; flex: none; }
.settings-menu-item > span .seima-ic { width: 26px; height: 26px; }
.settings-center-head h2 > span .seima-ic { width: 26px; height: 26px; vertical-align: -6px; }
/* Carpetas: acciones y favorita */
.nh-folder.is-fav b { color: #1B1F2A; }
.nh-folder-tools, .nh-folder-confirm { display: grid; gap: 8px; margin: 8px 0 4px; }
.nh-folder-tools > div, .nh-folder-confirm > div { display: flex; flex-wrap: wrap; gap: 8px; }
.nh-folder-cancel { background: transparent !important; color: inherit !important; border: 1px solid currentColor !important; }
/* Barra de tipos: se desliza con el dedo o con las flechas */
.nh-typewrap { position: relative; display: flex; align-items: center; gap: 4px; }
.nh-typewrap .nh-typebar { flex: 1; min-width: 0; scroll-behavior: smooth; -webkit-mask-image: linear-gradient(90deg, transparent 0, #1B1F2A 14px, #1B1F2A calc(100% - 14px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #1B1F2A 14px, #1B1F2A calc(100% - 14px), transparent 100%); }
.nh-type-arrow { all: unset; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font: 700 20px/1 system-ui, sans-serif; color: #FFFFFF; background: linear-gradient(135deg, #C24A0C 0%, #C24A0C 55%, #C24A0C 100%); box-shadow: 0 2px 8px rgba(229, 91, 19, .3); }
/* Ajustes › Chats: tonos */
.cn-tones { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 4px; }
.cn-tone { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 999px; border: 1.5px solid #E2E6EE; font: 700 13px Manrope, system-ui, sans-serif; color: #1B1F2A; background: #FFFFFF; }
.cn-tone[aria-pressed="true"] { background: linear-gradient(135deg, #C24A0C 0%, #C24A0C 55%, #C24A0C 100%); color: #FFFFFF; border-color: transparent; }
:root[data-theme="dark"] .cn-tone { background: #313B4F; color: #EEF2F8; border-color: rgba(74, 63, 181, .45); }
.cn-test { justify-self: start; margin: 2px 0 6px; }

/* Barra de abajo más angosta y elegante (2026-10-20): flotante, con bordes redondos y menos alta; igual en Inicio, Más y Chats. */
@media (max-width: 999px) {
  body #view-notes .nh .nh-bottom.nh-tribar, body .ian-chat .ic-appnav { left: 12px !important; right: 12px !important; bottom: calc(8px + env(safe-area-inset-bottom)) !important; gap: 4px !important; padding: 5px 6px !important; border-radius: 22px !important; box-shadow: 0 8px 22px rgba(74, 63, 181, .28) !important; }
  body #view-notes .nh .nh-bottom.nh-tribar button, body .ian-chat .ic-appnav button { min-height: 46px; gap: 2px !important; padding: 4px 2px !important; border-radius: 17px !important; font-size: 11px !important; }
  body #view-notes .nh .nh-bottom.nh-tribar button svg, body .ian-chat .ic-appnav button svg { width: 21px !important; height: 21px !important; padding: 0 !important; background: none !important; }
}
/* Al escribir (celular): se esconden la barra de abajo y el ＋ para que el teclado no tape las letras. */
html.kb-open body #view-notes .nh .nh-bottom, html.kb-open body .ian-chat .ic-appnav, html.kb-open body #view-notes .nh .nh-fab { display: none !important; }
/* Ventanas (Multimedia, Documentos, Agenda, Reloj…): pantalla completa, sin ver lo de atrás, con «‹ Volver». */
body .nh-layer .nh-layer-bg { background: #F4F6FA !important; }
:root[data-theme="dark"] body .nh-layer .nh-layer-bg { background: #232B3A !important; }
body .nh-layer .nh-win { top: 0 !important; bottom: 0 !important; width: 100% !important; max-width: none !important; height: 100dvh; max-height: none !important; border-radius: 0 !important; box-shadow: none !important;
  padding: calc(6px + env(safe-area-inset-top)) max(16px, calc((100% - 760px) / 2)) calc(24px + env(safe-area-inset-bottom)) !important; }
body .nh-win .nh-win-top { position: sticky; top: calc(-6px - env(safe-area-inset-top)); z-index: 3; display: flex; align-items: center; gap: 10px; margin: 0 -4px 6px; padding: 6px 4px; background: inherit; }
body .nh-win .nh-win-top .nh-grab { margin: 0 auto 0 0; flex: none; }
body .nh-win .nh-win-back { all: unset; flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 999px; cursor: pointer; font: 800 14px Manrope, system-ui, sans-serif; color: #FFFFFF; background: linear-gradient(135deg, #C24A0C 0%, #C24A0C 55%, #C24A0C 100%); box-shadow: 0 4px 12px rgba(229, 91, 19, .3); }
body .nh-win .nh-win-back:focus-visible { outline: 2px solid #E55B13; outline-offset: 2px; }
body .nh-win .nh-win-top .nh-grab { display: none !important; } /* se cierra bajando desde la parte de arriba, sin barrita */

/* Copia en la nube: aviso cuando otro aparato tiene una copia más nueva */
.ian-nube-card { position: fixed; left: 50%; top: calc(70px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 20001; width: min(420px, calc(100vw - 24px)); display: grid; gap: 6px; padding: 14px 16px; border-radius: 18px; background: #FFFFFF; color: #1B1F2A; border: 1.5px solid #4A3FB5; box-shadow: 0 14px 34px rgba(74, 63, 181, .28); font: 600 13px Manrope, system-ui, sans-serif; }
.ian-nube-card b { font-size: 15px; } .ian-nube-card small { color: #1B1F2A; }
.ian-nube-card div { display: flex; gap: 8px; flex-wrap: wrap; }
.ian-nube-card button { all: unset; cursor: pointer; padding: 9px 14px; border-radius: 999px; font: 800 13px Manrope, system-ui, sans-serif; background: linear-gradient(135deg, #C24A0C 0%, #C24A0C 55%, #C24A0C 100%); color: #FFFFFF; }
.ian-nube-card button + button { background: #F4F6FA; color: #1B1F2A; }
:root[data-theme="dark"] .ian-nube-card { background: #313B4F; color: #EEF2F8; } :root[data-theme="dark"] .ian-nube-card small { color: #EEF2F8; }
/* «Mis mensajes» y chats ocultos */
body .ian-chat .ic-self-list { margin-bottom: 4px; }
body .ian-chat .ic-self-ic { background: #F4F6FA !important; }
body .ian-chat .ic-self-ic .seima-ic { width: 26px; height: 26px; }
body .ian-chat .ic-secret-bar { display: grid; gap: 4px; margin: 0 0 10px; padding: 12px; border-radius: 14px; background: rgba(74, 63, 181, .12); border: 1px dashed #4A3FB5; }
body .ian-chat .ic-secret-bar button { justify-self: start; }

/* «(tú)»: chat contigo mismo igual a un chat normal */
body .ian-chat .ic-self-thread .ic-send { display: inline-grid !important; }
body .ian-chat .ic-self-thread .ic-soon-btn { display: inline-grid !important; }
body .ian-chat .ic-self-thread .ic-thread-person { all: unset; display: grid; min-width: 0; }
body .ian-chat .ic-self-pinbar { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 14px; cursor: pointer; font: 600 13px Manrope, system-ui, sans-serif; color: #1B1F2A; background: #F4F6FA; border-bottom: 1px solid rgba(229, 91, 19, .2); }
body .ian-chat .ic-self-pinbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[data-theme="dark"] body .ian-chat .ic-self-pinbar { background: #313B4F; color: #EEF2F8; }
body .ian-chat .ic-self-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
body .ian-chat .ic-self-acts button { all: unset; cursor: pointer; padding: 5px 10px; border-radius: 999px; font: 700 12px Manrope, system-ui, sans-serif; background: rgba(255, 255, 255, .9); color: #1B1F2A; }
body .ian-chat .ic-message.is-pinned { box-shadow: 0 0 0 2px #E55B13; }

/* Menú de cada chat (dejar presionado o clic derecho), listas con aro de color y chats con clave */
body .ian-chat .ic-avatar.has-ring { box-shadow: 0 0 0 2.5px var(--ic-bg, #FFFFFF), 0 0 0 5px var(--ring) !important; }
body .ian-chat .ic-row-menu { display: grid; gap: 6px; margin: 6px 4px 10px; padding: 10px; border-radius: 16px; background: #FFFFFF; border: 1px solid #E2E6EE; box-shadow: 0 8px 22px rgba(74, 63, 181, .14); }
:root[data-theme="dark"] body .ian-chat .ic-row-menu { background: #313B4F; border-color: rgba(142, 155, 178, .35); }
body .ian-chat .ic-row-menu > button[role="menuitem"] { all: unset; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; cursor: pointer; font: 700 14px Manrope, system-ui, sans-serif; color: inherit; }
body .ian-chat .ic-row-menu > button[role="menuitem"]:hover { background: rgba(229, 91, 19, .08); }
body .ian-chat .ic-row-menu svg { width: 18px; height: 18px; color: #1B1F2A; }
body .ian-chat .ic-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ring); flex: none; }
body .ian-chat .ic-list-chips { display: flex; flex-wrap: wrap; gap: 6px; }
body .ian-chat .ic-list-chip { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 999px; font: 700 13px Manrope, system-ui, sans-serif; border: 2px solid var(--ring); color: inherit; }
body .ian-chat .ic-list-chip[aria-pressed="true"] { background: var(--ring); color: #FFFFFF; }
body .ian-chat .ic-colors { display: flex; gap: 8px; flex-wrap: wrap; }
body .ian-chat .ic-colors input { position: absolute; opacity: 0; pointer-events: none; }
body .ian-chat .ic-colors span { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--ring); cursor: pointer; box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px rgba(74, 63, 181, .15); }
body .ian-chat .ic-colors input:checked + span { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #4A3FB5; }
body .ian-chat .ic-lock-box { display: grid; justify-items: center; gap: 12px; margin: auto; padding: 28px 20px; text-align: center; max-width: 340px; }
body .ian-chat .ic-lock-box form { display: grid; gap: 10px; width: 100%; }
body .ian-chat .ic-lock-box input { text-align: center; letter-spacing: 8px; font-size: 20px; }
body .ian-chat .ic-lock-ic svg { width: 40px; height: 40px; color: #1B1F2A; }
body .ian-chat .ic-lock-screen { display: flex; flex-direction: column; min-height: 100%; }
body .ian-chat .ic-self-error { display: grid; gap: 8px; margin: 16px; padding: 16px; border-radius: 16px; background: #FFFFFF; color: #1B1F2A; border: 1.5px solid #4A3FB5; }
body .ian-chat .ic-self-error small { color: #1B1F2A; }
body .ian-chat .ic-self-error button { justify-self: start; }
:root[data-theme="dark"] body .ian-chat .ic-self-error { background: #313B4F; color: #EEF2F8; }

/* ---------- Cuaderno de la bienvenida: se abre, pasa una hoja por escena y se cierra al final (2026-10-20) ---------- */
/* Ya no se usa la hoja grande que tapaba toda la escena ni el giro de la escena completa: ahora pasa la hoja del cuaderno. */
body .nh-showcase .sc-scene.is-active .sc-stage::after { display: none !important; }
body .nh-showcase .sc-scene.is-active { animation: none; }
body .nh-showcase .sc-scene.is-active figcaption { animation: sc-cap .45s ease-out both; }
@keyframes sc-cap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Tamaño según la pantalla (celular, tableta, computador). */
body .sc-stage > .sc-nbw { --nbk: 1; transform: scale(var(--nbk)) !important; }
@media (max-width: 360px) { body .sc-stage > .sc-nbw { --nbk: .84; } }
@media (min-width: 520px) and (min-height: 700px) { body .sc-stage > .sc-nbw { --nbk: 1.22; } }
@media (min-width: 900px) and (min-height: 820px) { body .sc-stage > .sc-nbw { --nbk: 1.4; } }
@media (max-height: 640px) { body .sc-stage > .sc-nbw { --nbk: .78; } }
.sc-nb { position: relative; width: 280px; height: 196px; perspective: 1100px; }
.sc-nb-page, .sc-nb-cover, .sc-nb-leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; }
.sc-nb-page, .sc-nb .sc-face { box-sizing: border-box; border-radius: 3px 12px 12px 3px; }
.sc-nb-cover, .sc-nb-leaf { transform-origin: 0 50%; transform-style: preserve-3d; }
.sc-nb .sc-face { position: absolute; inset: 0; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
/* Hojas de papel con renglones (la de la derecha, el revés de la portada y la hoja que se pasa). */
.sc-nb-page, .sc-nb .sc-back, .sc-nb-leaf > .sc-front { background-color: #FFFFFF; background-image: repeating-linear-gradient(transparent 0 19px, #F4F6FA 19px 20px); background-position: 0 7px; border: 1px solid #E2E6EE; }
.sc-nb-page, .sc-nb-leaf > .sc-front { display: grid; padding: 12px 8px 10px 10px; box-shadow: inset 10px 0 12px -10px rgba(74, 63, 181, .22); }
.sc-nb-page { box-shadow: 4px 6px 14px rgba(74, 63, 181, .14), inset 10px 0 12px -10px rgba(74, 63, 181, .22); overflow: hidden; }
.sc-nb .sc-back { transform: rotateY(180deg); border-radius: 12px 3px 3px 12px; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 0 10px;
  box-shadow: inset -10px 0 12px -10px rgba(74, 63, 181, .22), -4px 6px 14px rgba(74, 63, 181, .1); }
.sc-nb .sc-back .sc-page-slogan { font-size: 9.5px; }
.sc-nb-cover > .sc-front { display: grid; place-items: center; background: linear-gradient(145deg, #4A3FB5 0%, #E55B13 100%); box-shadow: 4px 6px 14px rgba(74, 63, 181, .25); }
.sc-nb-cover .sc-cover-logo { width: 74%; border-radius: 0; filter: drop-shadow(0 3px 6px rgba(27, 31, 42, .28)); }
.sc-nb-art { display: grid; place-items: center; min-width: 0; min-height: 0; }
:root[data-theme="dark"] .sc-nb-page, :root[data-theme="dark"] .sc-nb .sc-back, :root[data-theme="dark"] .sc-nb-leaf > .sc-front { background-color: #313B4F; background-image: repeating-linear-gradient(transparent 0 19px, #313B4F 19px 20px); border-color: #313B4F; }
/* Abierto: la portada queda a la izquierda y su revés es la primera hoja (logo y lema). */
.sc-nb-cover, .sc-nb-leaf { transform: rotateY(-180deg); }
.sc-nb.is-opening { animation: sc-nb-center 1.8s cubic-bezier(.45, .05, .3, 1) .5s both; }
.sc-nb.is-opening .sc-nb-cover { animation: sc-nb-open 1.8s cubic-bezier(.45, .05, .3, 1) .5s both; }
.sc-scene.is-active .sc-nb-leaf { animation: sc-nb-open 1s cubic-bezier(.45, .05, .35, 1) .15s both; }
.sc-scene.is-closing .sc-nb { animation: sc-nb-uncenter 1.5s cubic-bezier(.45, .05, .3, 1) both; }
.sc-scene.is-closing .sc-nb-cover { animation: sc-nb-shut 1.5s cubic-bezier(.45, .05, .3, 1) both; }
.sc-scene.is-closing .sc-nb-leaf { visibility: hidden; }
@keyframes sc-nb-open { from { transform: rotateY(0); } to { transform: rotateY(-180deg); } }
@keyframes sc-nb-shut { from { transform: rotateY(-180deg); } to { transform: rotateY(0); } }
@keyframes sc-nb-center { from { transform: translateX(-25%); } to { transform: none; } }
@keyframes sc-nb-uncenter { from { transform: none; } to { transform: translateX(-25%); } }
/* Escena 1: la portada de adentro, escrita a mano. */
.sc-nb-title { display: grid; justify-items: center; gap: 6px; }
.sc-nb-title b { font: 700 25px/1.05 Caveat, 'Segoe Print', 'Bradley Hand', cursive; color: #1B1F2A; text-align: center; }
.sc-nb-title i { width: 72%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #E55B13 0%, #E55B13 55%, #C24A0C 100%); transform-origin: left center; }
.sc-scene.is-active .sc-nb-page .sc-nb-title i { animation: sc-underline .9s ease-out 2.2s both; }
@keyframes sc-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
:root[data-theme="dark"] .sc-nb-title b { color: #EEF2F8; }
html body #view-notes .nh .nh-welcome .sc-nb-title b { font-family: Caveat, 'Segoe Print', 'Bradley Hand', cursive !important; font-size: 27px !important; font-weight: 700 !important; line-height: 1.05 !important; }
/* Cada dibujo cabe en la hoja del cuaderno. */
.sc-nb .sc-sheet { width: 100%; height: auto; align-self: start; padding: 0 2px; background: none; border: 0; box-shadow: none; }
html body #view-notes .nh .nh-welcome .sc-nb .sc-hand, html body #view-notes .nh .nh-welcome .sc-nb .sc-hand span { font-size: 19px !important; line-height: 20px !important; }
.sc-nb .sc-hand { min-height: 0; }
.sc-nb .sc-media { width: 100%; gap: 6px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sc-nb .sc-audio { overflow: hidden; justify-content: center; }
.sc-nb .sc-video { height: 64px; border-radius: 10px; }
.sc-nb .sc-play { font-size: 20px; }
.sc-nb .sc-audio { height: 36px; gap: 3px; padding: 0 5px; border-radius: 10px; }
.sc-nb .sc-audio b { font-size: 12px; }
.sc-nb .sc-audio span { gap: 2px; height: 18px; }
.sc-nb .sc-audio span i { width: 2.5px; }
.sc-nb .sc-photo { height: 36px; border-radius: 10px; }
.sc-nb .sc-photo svg { width: 20px; height: 20px; }
.sc-nb .sc-chat { width: 100%; min-height: 0; gap: 5px; align-self: end; }
.sc-nb .sc-chat p { font-size: 9.5px; line-height: 1.3; padding: 5px 8px; border-radius: 10px; max-width: 94%; }
.sc-nb-leaf .sc-chat p { opacity: 1; }
.sc-nb .sc-chat p.sc-typing { padding: 7px 8px; }
.sc-nb .sc-typing i { width: 4px; height: 4px; }
.sc-nb .sc-style { flex-direction: column; gap: 10px; }
.sc-nb .sc-mini { width: 104px; height: 96px; padding: 0 10px; gap: 6px; }
.sc-nb .sc-mini span { font-size: 11px; }
.sc-nb .sc-clock { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 6px; }
.sc-nb .sc-card { width: 46px; height: 56px; font-size: 38px; border-radius: 8px; }
.sc-nb .sc-bell { grid-column: 1 / -1; justify-self: center; margin: 8px 0 0; width: 40px; height: 40px; }
.sc-nb .sc-bell svg { width: 30px; height: 30px; }
/* Menos movimiento: el cuaderno se ve abierto y quieto. */
@media (prefers-reduced-motion: reduce) { .sc-nb, .sc-nb * { animation: none !important; } }

/* ---------- Carpeta «Borradores» en Inicio (2026-10-20): lo que quedó sin guardar cuando la app se cerró ---------- */
body #view-notes .nh .nh-folder.is-drafts { --f1: #E55B13; --f2: #FF9A5C; }
body #view-notes .nh .borr-hint { margin: 2px 4px 10px; font-size: 12.5px; color: var(--mono-soft); }
.nh-win .borr-win { display: grid; gap: 10px; padding: 4px 2px 10px; }
.nh-win .borr-when { margin: 0; font: 800 14px/1.35 Manrope, system-ui, sans-serif; color: var(--text); }
.nh-win .borr-field { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: #F4F6FA; border: 1px solid #E2E6EE; }
.nh-win .borr-field small { font: 800 11.5px/1.2 Manrope, system-ui, sans-serif; color: #1B1F2A; text-transform: uppercase; letter-spacing: .04em; }
.nh-win .borr-field p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 500 14.5px/1.45 Manrope, system-ui, sans-serif; color: var(--text); max-height: 40vh; overflow: auto; }
.nh-win .borr-field .nh-pill { justify-self: end; }
.nh-win .borr-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.nh-win .borr-main { background: linear-gradient(135deg, #C24A0C 0%, #C24A0C 55%, #C24A0C 100%) !important; color: #FFFFFF !important; border-color: transparent !important; }
.nh-win .borr-del { background: transparent !important; color: #1B1F2A !important; border: 1.5px solid rgba(201, 38, 79, .5) !important; box-shadow: none !important; }
:root[data-theme="dark"] .nh-win .borr-field { background: #313B4F; border-color: #313B4F; }
:root[data-theme="dark"] .nh-win .borr-field small { color: #EEF2F8; }
:root[data-theme="dark"] .nh-win .borr-del { color: #EEF2F8 !important; }

/* ---------- Plantillas de trabajo para hojas (meldune Empresas, 2026-10-20) ---------- */
dialog.ian-plantillas { width: min(92vw, 440px); max-height: 86dvh; padding: 16px; border: 0; border-radius: 22px; background: #FFFFFF; color: #1B1F2A; box-shadow: 0 20px 50px rgba(74, 63, 181, .35); overflow: auto; }
dialog.ian-plantillas::backdrop { background: rgba(13, 20, 38, .5); }
.ian-plantillas .plt-head b { font: 900 18px/1.2 Manrope, system-ui, sans-serif; }
.ian-plantillas .plt-list { display: grid; gap: 8px; margin: 12px 0; }
.ian-plantillas .plt-item { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #F4F6FA; border: 1px solid #E2E6EE; cursor: pointer; }
.ian-plantillas .plt-item:focus-visible { outline: 2px solid #E55B13; }
.ian-plantillas .plt-item > span:first-child { font-size: 24px; }
.ian-plantillas .plt-item b { display: block; font: 800 14.5px/1.25 Manrope, system-ui, sans-serif; }
.ian-plantillas .plt-item small { display: block; font: 500 12.5px/1.3 Manrope, system-ui, sans-serif; color: #5B6070; }
.ian-plantillas .plt-cancel { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 100%; min-height: 44px; border-radius: 12px; border: 1.5px solid #E2E6EE; font: 800 14px Manrope, system-ui, sans-serif; cursor: pointer; }
:root[data-theme="dark"] dialog.ian-plantillas { background: #313B4F; color: #EEF2F8; }
:root[data-theme="dark"] .ian-plantillas .plt-item { background: #313B4F; border-color: #313B4F; }
:root[data-theme="dark"] .ian-plantillas .plt-item small { color: #8E9BB2; }
:root[data-theme="dark"] .ian-plantillas .plt-cancel { border-color: #313B4F; }

/* ---------- Avatares sin foto con 8 colores de la paleta (2026-10-21): letras blancas, mismo color por persona ---------- */
body .ic-avatar.av-0:not(.has-photo) { background: linear-gradient(135deg, #C24A0C 0%, #C24A0C 55%, #C24A0C 100%); }
body .ic-avatar.av-1:not(.has-photo) { background: linear-gradient(135deg, #4A3FB5, #4A3FB5); }
body .ic-avatar.av-2:not(.has-photo) { background: linear-gradient(135deg, #C24A0C, #C24A0C); }
body .ic-avatar.av-3:not(.has-photo) { background: linear-gradient(135deg, #4A3FB5, #1B1F2A); }
body .ic-avatar.av-4:not(.has-photo) { background: linear-gradient(135deg, #C24A0C, #C24A0C); }
body .ic-avatar.av-5:not(.has-photo) { background: linear-gradient(135deg, #4A3FB5, #4A3FB5); }
body .ic-avatar.av-6:not(.has-photo) { background: linear-gradient(135deg, #E55B13, #C24A0C); }
body .ic-avatar.av-7:not(.has-photo) { background: linear-gradient(135deg, #5B6070, #1B1F2A); }

/* Agenda: la columna de hoy en modo oscuro ya no queda blanca (2026-10-21) */
.rc-daycol.is-today { background-color: #F4F6FA; }
:root[data-theme="dark"] .rc-daycol.is-today { background-color: rgba(142, 155, 178, .09); }

/* Rótulos pequeños naranja: más oscuros en modo claro para que se lean (2026-10-21) */
:root[data-theme="light"] .eyebrow, :root[data-theme="light"] .settings-qr-button, :root[data-theme="light"] .settings-eyebrow { color: #1B1F2A; }
/* Agenda: día elegido y pestaña activa con buen contraste (2026-10-21) */
:root[data-theme="light"] .rc-strip-day.is-selected b, :root[data-theme="light"] .rc-strip-day.is-today.is-selected b { background: #C24A0C; color: #FFFFFF; }
:root[data-theme="dark"] .rc-strip-day.is-selected b, :root[data-theme="dark"] .rc-strip-day.is-today.is-selected b { background: #FF7A33; color: #232B3A; }
:root[data-theme="light"] .rc-side-item.is-active span { color: #1B1F2A; }
/* Editor de recordatorios (ventana oscura inmersiva): destellos y botón con la paleta nueva (2026-10-21) */
body dialog.reminder-editor-dialog { background:
    radial-gradient(circle at 87% 6%, rgba(232, 99, 26, .24) 0 7%, transparent 28%),
    radial-gradient(circle at 8% 23%, rgba(42, 58, 143, .26) 0 6%, transparent 25%),
    linear-gradient(160deg, #1B1F2A 0%, #1B1F2A 48%, #1B1F2A 100%) !important; }
body dialog.reminder-editor-dialog .dialog-actions .primary-button { color: #FFFFFF !important; background: linear-gradient(135deg, #C24A0C, #C24A0C) !important; box-shadow: 0 8px 18px rgba(201, 79, 10, .3) !important; }

/* ---------- Bienvenida: cuaderno más grande, meldune más pequeño y su burbuja que sale de él (2026-10-21) ---------- */
body .sc-stage > .sc-nbw { --nbk: 1.1; }
@media (max-width: 360px) { body .sc-stage > .sc-nbw { --nbk: .95; } }
@media (min-width: 520px) and (min-height: 700px) { body .sc-stage > .sc-nbw { --nbk: 1.4; } }
@media (min-width: 900px) and (min-height: 820px) { body .sc-stage > .sc-nbw { --nbk: 1.7; } }
@media (max-height: 640px) { body .sc-stage > .sc-nbw { --nbk: .85; } }
body .nh-welcome.is-full .sc-scene:nth-child(odd) .sc-stage > :first-child, body .nh-welcome.is-full .sc-scene:nth-child(even) .sc-stage > :first-child { margin: 0 0 92px !important; }
@media (max-width: 420px) { body .nh-welcome.is-full .sc-scene:nth-child(odd) .sc-stage > :first-child, body .nh-welcome.is-full .sc-scene:nth-child(even) .sc-stage > :first-child { margin: 0 0 84px !important; } }
/* meldune más pequeño, con los mismos movimientos */
.sc-seima .sc-bot { width: 92px; }
@media (max-width: 420px) { .sc-seima .sc-bot { width: 84px; } }
body .sc-stage > .sc-seima { gap: 12px; align-items: flex-start; }
/* Burbuja con colita hacia el robot y dos burbujitas de pensamiento */
.sc-seima .sc-seima-say { position: relative; margin-top: 10px; max-width: 200px; padding: 9px 13px; border-radius: 16px; font-size: 13px; line-height: 1.3; box-shadow: 0 6px 18px rgba(74, 63, 181, .16); }
@media (max-width: 420px) { .sc-seima .sc-seima-say { max-width: 176px; font-size: 12.5px; } }
.sc-seima .sc-seima-say::before { content: ''; position: absolute; left: -6px; top: 18px; width: 11px; height: 11px; background: inherit; border-left: 1px solid #E2E6EE; border-bottom: 1px solid #E2E6EE; border-radius: 0 0 0 3px; transform: rotate(45deg); }
:root[data-theme="dark"] .sc-seima .sc-seima-say::before { border-color: #313B4F; }
.sc-seima .sc-seima-say .w { display: inline-block; opacity: 0; transform: translateY(4px) scale(.92); transition: opacity .22s ease, transform .22s cubic-bezier(.2, .9, .3, 1.3); }
.sc-seima .sc-seima-say .w.on { opacity: 1; transform: none; }
.sc-scene.is-active .sc-seima .sc-seima-say { animation: bot-say .3s ease-out .55s both; }
@media (prefers-reduced-motion: reduce) { .sc-seima .sc-seima-say .w { opacity: 1; transform: none; transition: none; } }
/* ---------- Cuaderno: el cuadernito del encabezado se ve (sobre una placa clara) y pestañas con la paleta (2026-10-21) ---------- */
body dialog.notebook-book-dialog .book-head .book-head-title button.book-cover { width: 50px !important; height: 58px !important; padding: 4px; box-sizing: border-box; border-radius: 13px !important; background: transparent !important; box-shadow: none !important; display: grid; place-items: center; filter: drop-shadow(2px 0 0 #FFFFFF) drop-shadow(-2px 0 0 #FFFFFF) drop-shadow(0 2px 0 #FFFFFF) drop-shadow(0 -2px 0 #FFFFFF) drop-shadow(0 5px 7px rgba(74, 63, 181, .45)); }
body dialog.notebook-book-dialog .book-head .book-head-title button.book-cover .cn3d { transform: rotate(-3deg) scale(1.12); }
/* Pestañas «General» y «+ Materia» */
body .notebook-book-dialog .book-tabs .book-tab { background: rgba(255, 255, 255, .22) !important; color: #FFFFFF !important; border: 1px solid rgba(255, 255, 255, .38) !important; border-bottom: 0 !important; font-weight: 700; }
body .notebook-book-dialog .book-tabs .book-tab.is-active { background: #FFFFFF !important; color: #1B1F2A !important; font-weight: 800; }
body .notebook-book-dialog .book-tabs .book-tab.book-tab-add { background: transparent !important; color: rgba(255, 255, 255, .95) !important; border: 1px dashed rgba(255, 255, 255, .6) !important; border-bottom: 0 !important; }
body .notebook-book-dialog .book-tabs .book-tab i, body .notebook-book-dialog .book-tabs .book-tab small, body .notebook-book-dialog .book-tabs .book-tab em { color: inherit !important; opacity: .85; }

/* Avatares sin foto: 4 formas (además del color) para distinguir a más personas sin depender solo del color (2026-10-21) */
body .ic-avatar.sh-0:not(.has-photo) { border-radius: 50%; }
body .ic-avatar.sh-1:not(.has-photo) { border-radius: 30%; }
body .ic-avatar.sh-2:not(.has-photo) { border-radius: 50% 50% 50% 14%; }
body .ic-avatar.sh-3:not(.has-photo) { border-radius: 50% 16% 50% 16%; }
/* Contraste (2026-10-21): rótulos naranja pequeños y botones principales en modo oscuro */
html[data-theme="light"] body .eyebrow, html[data-theme="light"] body [class*="eyebrow"] { color: #1B1F2A !important; }
html[data-theme="dark"] body .primary-button, html[data-theme="dark"] body button.primary-button { color: #232B3A !important; }
/* Cuaderno: botón Editar/Listo y zoom con buen contraste (2026-10-21) */
body dialog.notebook-book-dialog .book-head .book-edit-button { background: #C24A0C !important; color: #FFFFFF !important; border: 1.5px solid rgba(255, 255, 255, .55) !important; font-weight: 800; }
body dialog.notebook-book-dialog .book-head .book-edit-button span, body dialog.notebook-book-dialog .book-head .book-edit-button svg { color: #FFFFFF !important; }
body dialog.notebook-book-dialog [data-page-zoom-minus], body dialog.notebook-book-dialog [data-page-zoom-plus], body dialog.notebook-book-dialog [data-page-zoom-reset] { color: #FFFFFF !important; }

/* Ajustes: engranaje con circuito e IA, y el aviso de la IA que viene (2026-10-21) */
body .settings-center-intro .settings-ai-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(160deg, #F4F6FA, #E2E6EE) !important; box-shadow: inset 0 0 0 1px rgba(168, 63, 8, .18) !important; color: #1B1F2A !important; flex: none; }
body .settings-center-intro .settings-ai-icon svg { width: 44px; height: 44px; }
:root[data-theme="dark"] body .settings-center-intro .settings-ai-icon { background: linear-gradient(160deg, #232B3A, #313B4F) !important; box-shadow: inset 0 0 0 1px rgba(142, 155, 178, .3) !important; }
body .settings-ai-chip { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0 !important; padding: 4px 11px; border-radius: 999px; background: #E2E6EE; color: #1B1F2A !important; font: 700 12px/1.3 Manrope, system-ui, sans-serif; }
body .settings-ai-chip span { color: #1B1F2A; }
:root[data-theme="dark"] body .settings-ai-chip { background: rgba(142, 155, 178, .16); color: #EEF2F8 !important; }
:root[data-theme="dark"] body .settings-ai-chip span { color: #EEF2F8; }

/* ---------- Carpetas con su color y sus acciones (2026-10-21) ---------- */
body .nh-win .nh-folders.nh-fcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body .nh-fc.fc-0, body .nh-ffchip.fc-0 { --fc-bg: #E2E6EE; --fc-line: #FF9A5C; --fc-ink: #C24A0C; --fc-dk: #E55B13; }
body .nh-fc.fc-1, body .nh-ffchip.fc-1 { --fc-bg: #ECE9FF; --fc-line: #A59CFF; --fc-ink: #4A3FB5; --fc-dk: #A59CFF; }
body .nh-fc.fc-2, body .nh-ffchip.fc-2 { --fc-bg: #F4F6FA; --fc-line: #FF9A5C; --fc-ink: #C24A0C; --fc-dk: #E55B13; }
body .nh-fc.fc-3, body .nh-ffchip.fc-3 { --fc-bg: #ECE9FF; --fc-line: #A59CFF; --fc-ink: #1B1F2A; --fc-dk: #4A3FB5; }
body .nh-fc.fc-4, body .nh-ffchip.fc-4 { --fc-bg: #E2E6EE; --fc-line: #E55B13; --fc-ink: #C24A0C; --fc-dk: #E55B13; }
body .nh-fc.fc-5, body .nh-ffchip.fc-5 { --fc-bg: #ECE9FF; --fc-line: #A59CFF; --fc-ink: #4A3FB5; --fc-dk: #A59CFF; }
body .nh-fc.fc-6, body .nh-ffchip.fc-6 { --fc-bg: #E2E6EE; --fc-line: #FF9A5C; --fc-ink: #C24A0C; --fc-dk: #E55B13; }
body .nh-fc.fc-7, body .nh-ffchip.fc-7 { --fc-bg: #E2E6EE; --fc-line: #9AA3B5; --fc-ink: #1B1F2A; --fc-dk: #A59CFF; }
body .nh-fc.fc-all { --fc-bg: #F4F6FA; --fc-line: #9AA3B5; --fc-ink: #1B1F2A; --fc-dk: #9AA3B5; }
body .nh-fc { position: relative; display: grid; align-content: space-between; min-height: 104px; border-radius: 18px; background: var(--fc-bg); border: 1.5px solid var(--fc-line); color: var(--text); overflow: hidden; }
body .nh-fc.is-selected { border-color: var(--fc-ink); box-shadow: 0 0 0 2px var(--fc-ink), 0 6px 14px rgba(74, 63, 181, .18); }
body .nh-fc.is-pending { border-style: dashed; }
body .nh-fc .nh-fc-main { all: unset; box-sizing: border-box; display: grid; gap: 3px; padding: 12px 12px 4px; cursor: pointer; }
body .nh-fc .nh-fc-main svg { width: 30px; height: 30px; margin-bottom: 4px; }
body .nh-fc .nh-fc-main b { font: 800 15px/1.2 Manrope, system-ui, sans-serif; overflow-wrap: anywhere; }
body .nh-fc .nh-fc-main small { font: 600 12px/1.3 Manrope, system-ui, sans-serif; opacity: .85; }
body .nh-fc .nh-fc-acts { display: flex; justify-content: flex-end; gap: 2px; padding: 0 6px 6px; }
body .nh-fc .nh-fc-act { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--text); cursor: pointer; }
body .nh-fc .nh-fc-act svg { width: 21px; height: 21px; }
body .nh-fc .nh-fc-act:hover, body .nh-fc .nh-fc-act:focus-visible { background: rgba(255, 255, 255, .6); outline: 2px solid var(--fc-ink); }
body .nh-fc .nh-fc-act.is-fav[aria-pressed="true"] { color: #1B1F2A; }
body .nh-fc .nh-fc-act.is-fav[aria-pressed="true"] svg { fill: currentColor; }
body .nh-fc .nh-fc-act.is-delete { color: #C0392B; }
body .nh-folder-which { display: block; width: 100%; margin-bottom: 6px; font: 800 13px/1.3 Manrope, system-ui, sans-serif; color: var(--text); }
:root[data-theme="dark"] body .nh-fc { background: color-mix(in srgb, var(--fc-dk) 18%, #313B4F); border-color: color-mix(in srgb, var(--fc-dk) 55%, transparent); color: #EEF2F8; }
:root[data-theme="dark"] body .nh-fc.is-selected { border-color: var(--fc-dk); box-shadow: 0 0 0 2px var(--fc-dk); }
:root[data-theme="dark"] body .nh-fc .nh-fc-act { color: var(--text); }
:root[data-theme="dark"] body .nh-fc .nh-fc-act:hover { background: rgba(255, 255, 255, .08); }
:root[data-theme="dark"] body .nh-fc .nh-fc-act.is-delete { color: #FF7B7B; }
:root[data-theme="dark"] body .nh-fc .nh-fc-act.is-fav[aria-pressed="true"] { color: #EEF2F8; }
:root[data-theme="dark"] body .nh-fc.fc-all { background: #313B4F; border-color: #313B4F; }
/* Carpetas favoritas en Inicio */
body #view-notes .nh .nh-favfolders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 12px; }
body #view-notes .nh .nh-ffchip { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 16px; background: var(--fc-bg); border: 1.5px solid var(--fc-line); color: var(--text); cursor: pointer; }
body #view-notes .nh .nh-ffchip svg { width: 28px; height: 28px; flex: none; }
body #view-notes .nh .nh-ffchip b { display: block; font: 800 14px/1.2 Manrope, system-ui, sans-serif; overflow-wrap: anywhere; }
body #view-notes .nh .nh-ffchip small { display: block; font: 600 11.5px/1.3 Manrope, system-ui, sans-serif; opacity: .85; }
body #view-notes .nh .nh-ffchip:focus-visible { outline: 2px solid var(--fc-ink); outline-offset: 2px; }
:root[data-theme="dark"] body #view-notes .nh .nh-ffchip { background: color-mix(in srgb, var(--fc-dk) 18%, #313B4F); border-color: color-mix(in srgb, var(--fc-dk) 55%, transparent); color: #EEF2F8; }
@media (max-width: 340px) { body .nh-win .nh-folders.nh-fcs, body #view-notes .nh .nh-favfolders { grid-template-columns: 1fr; } }
body .nh-fc .nh-fc-act.is-fav svg { fill: none !important; stroke: currentColor; }
body .nh-fc .nh-fc-act.is-fav[aria-pressed="true"] svg { fill: currentColor !important; }

/* ---------- Encabezado del cuaderno: iconos reales con letrero, sin círculos; flechas de volver bien visibles (2026-10-21) ---------- */
body dialog.notebook-book-dialog .book-head .book-head-actions { align-items: flex-end; gap: 0; }
body dialog.notebook-book-dialog .book-head :is(.book-icon-btn, .book-edit-button, .book-more-menu > summary) { background: transparent !important; border: 0 !important; box-shadow: none !important; width: auto !important; min-width: 44px; height: auto !important; min-height: 46px; padding: 3px 4px !important; border-radius: 12px !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #FFFFFF !important; cursor: pointer; }
body dialog.notebook-book-dialog .book-head :is(.book-icon-btn, .book-edit-button) svg { width: 23px !important; height: 23px !important; }
body dialog.notebook-book-dialog .book-head :is(.book-icon-btn small, .book-edit-button span) { font: 800 10px/1 Manrope, system-ui, sans-serif; color: #FFFFFF !important; letter-spacing: .01em; }
body dialog.notebook-book-dialog .book-head .book-more-menu > summary { font-size: 26px; line-height: 1; min-width: 30px; }
body dialog.notebook-book-dialog .book-head :is(.book-icon-btn, .book-edit-button):hover, body dialog.notebook-book-dialog .book-head .book-more-menu > summary:hover { background: rgba(255, 255, 255, .16) !important; }
body dialog.notebook-book-dialog .book-head .book-edit-button[aria-pressed="true"] { background: #FFFFFF !important; }
body dialog.notebook-book-dialog .book-head .book-edit-button[aria-pressed="true"], body dialog.notebook-book-dialog .book-head .book-edit-button[aria-pressed="true"] span, body dialog.notebook-book-dialog .book-head .book-edit-button[aria-pressed="true"] svg { color: #1B1F2A !important; }
body dialog.notebook-book-dialog .book-head .book-lock-icon svg { width: 20px; height: 20px; }
/* Flecha de volver: círculo blanco con flecha naranja gruesa */
body dialog.notebook-book-dialog .book-head .book-back-button { background: #FFFFFF !important; color: #1B1F2A !important; width: 44px !important; height: 44px !important; min-height: 44px; border-radius: 50% !important; box-shadow: 0 4px 12px rgba(74, 63, 181, .35) !important; }
body dialog.notebook-book-dialog .book-head .book-back-button svg { width: 26px !important; height: 26px !important; stroke-width: 3 !important; color: #1B1F2A !important; }
body :is(.nh-round, .ic-back-app, .nh-backlink) svg { stroke-width: 3; }
@media (max-width: 400px) {
  body dialog.notebook-book-dialog .book-head :is(.book-icon-btn, .book-edit-button, .book-more-menu > summary) { min-width: 38px; padding: 3px 2px !important; }
  body dialog.notebook-book-dialog .book-head :is(.book-icon-btn small, .book-edit-button span) { font-size: 9px; }
  body dialog.notebook-book-dialog .book-head .book-head-actions { margin-left: auto; }
}
@media (max-width: 460px) {
  body dialog.notebook-book-dialog .book-head { flex-wrap: wrap !important; row-gap: 2px; height: auto !important; min-height: 0 !important; }
  body dialog.notebook-book-dialog .book-head .book-head-title { flex: 1 1 0; min-width: 0; }
  body dialog.notebook-book-dialog .book-head .book-head-actions { order: 3; flex: 1 1 100%; width: 100%; justify-content: space-around; margin-left: 0; padding: 0 4px 2px; }
}

/* Menú «Más» del cuaderno visible: Historial de versiones, Modo lectura, Imprimir o guardar PDF, Materias, Tareas… (2026-10-21) */
body dialog.notebook-book-dialog .book-head .book-more-menu { display: block !important; position: relative; }
body dialog.notebook-book-dialog .book-head .book-more-menu > summary { list-style: none; font-size: 0 !important; }
body dialog.notebook-book-dialog .book-head .book-more-menu > summary::before { content: ''; width: 23px; height: 23px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='5' r='2.2'/%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3Ccircle cx='12' cy='19' r='2.2'/%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='black'%3E%3Ccircle cx='12' cy='5' r='2.2'/%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3Ccircle cx='12' cy='19' r='2.2'/%3E%3C/svg%3E") center / contain no-repeat; }
body dialog.notebook-book-dialog .book-head .book-more-menu > summary::after { content: 'Más'; font: 800 10px/1 Manrope, system-ui, sans-serif; color: #FFFFFF; }
body dialog.notebook-book-dialog .book-head .book-more-menu > summary::-webkit-details-marker { display: none; }
body dialog.notebook-book-dialog .book-head .book-more-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 230px; max-height: 70dvh; overflow: auto; display: grid; gap: 2px; padding: 8px; border-radius: 16px; background: #FFFFFF; color: #1B1F2A; box-shadow: 0 14px 34px rgba(74, 63, 181, .35); }
body dialog.notebook-book-dialog .book-head .book-more-panel button { all: unset; box-sizing: border-box; display: block; padding: 10px 12px; border-radius: 10px; font: 700 14px/1.3 Manrope, system-ui, sans-serif; color: #1B1F2A; cursor: pointer; }
body dialog.notebook-book-dialog .book-head .book-more-panel button:hover, body dialog.notebook-book-dialog .book-head .book-more-panel button:focus-visible { background: #E2E6EE; outline: none; }
body dialog.notebook-book-dialog .book-head .book-more-panel summary { padding: 10px 12px; border-radius: 10px; font: 700 14px/1.3 Manrope, system-ui, sans-serif; color: #1B1F2A; cursor: pointer; list-style: none; }
:root[data-theme="dark"] body dialog.notebook-book-dialog .book-head .book-more-panel { background: #313B4F; color: #EEF2F8; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); }
:root[data-theme="dark"] body dialog.notebook-book-dialog .book-head .book-more-panel :is(button, summary) { color: #EEF2F8; }
:root[data-theme="dark"] body dialog.notebook-book-dialog .book-head .book-more-panel button:hover { background: #313B4F; }

/* ---------- Guía «¿Qué es meldune?» (2026-10-21) ---------- */
dialog.ian-guia { position: fixed; inset: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: var(--mono-bg, #F4F6FA); color: var(--text); overflow: hidden; }
dialog.ian-guia[open] { display: flex; flex-direction: column; }
dialog.ian-guia::backdrop { background: rgba(11, 18, 51, .5); }
.ian-guia .gd-top { display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: linear-gradient(135deg, #C24A0C, #C24A0C); color: #FFFFFF; }
.ian-guia .gd-top b { font: 900 19px/1.2 Manrope, system-ui, sans-serif; }
.ian-guia .gd-back { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #FFFFFF; color: #1B1F2A; cursor: pointer; box-shadow: 0 4px 12px rgba(74, 63, 181, .3); }
.ian-guia .gd-back svg { width: 26px; height: 26px; }
.ian-guia .gd-body { flex: 1; overflow: auto; padding: 16px 16px calc(28px + env(safe-area-inset-bottom)); max-width: 640px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.ian-guia .gd-hero { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 14px; border-radius: 22px; background: var(--mono-surface, #FFFFFF); border: 1px solid var(--mono-line, #E2E6EE); }
.ian-guia .gd-hero img { width: min(240px, 70%); height: auto; }
.ian-guia .gd-hero p { margin: 0; font: 500 15px/1.5 Manrope, system-ui, sans-serif; }
.ian-guia .gd-h { margin: 22px 0 10px; padding-left: 10px; border-left: 4px solid #C24A0C; font: 900 18px/1.2 Manrope, system-ui, sans-serif; }
.ian-guia .gd-uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ian-guia .gd-use { display: grid; gap: 4px; padding: 14px 12px; border-radius: 18px; border: 1.5px solid var(--gd-line); background: var(--gd-bg); }
.ian-guia .gd-use b { font: 800 15px/1.2 Manrope, system-ui, sans-serif; color: var(--text); }
.ian-guia .gd-use small { font: 500 12.5px/1.4 Manrope, system-ui, sans-serif; color: var(--mono-soft, #5B6070); }
.ian-guia .gd-t0 { --gd-bg: #E2E6EE; --gd-line: #FF9A5C; --gd-ink: #C24A0C; }
.ian-guia .gd-t1 { --gd-bg: #ECE9FF; --gd-line: #A59CFF; --gd-ink: #4A3FB5; }
.ian-guia .gd-t2 { --gd-bg: #ECE9FF; --gd-line: #A59CFF; --gd-ink: #1B1F2A; }
.ian-guia .gd-t3 { --gd-bg: #F4F6FA; --gd-line: #FF9A5C; --gd-ink: #C24A0C; }
.ian-guia .gd-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .75); }
.ian-guia .gd-keep, .ian-guia .gd-care, .ian-guia .gd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ian-guia .gd-keep li { display: grid; gap: 2px; padding: 11px 13px; border-radius: 14px; background: var(--mono-surface, #FFFFFF); border: 1px solid var(--mono-line, #E2E6EE); }
.ian-guia li b, .ian-guia .gd-sum b { display: block; font: 800 14.5px/1.3 Manrope, system-ui, sans-serif; }
.ian-guia li small { display: block; font: 500 12.5px/1.4 Manrope, system-ui, sans-serif; color: var(--mono-soft, #5B6070); }
.ian-guia .gd-care li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--mono-surface, #FFFFFF); border: 1px solid var(--mono-line, #E2E6EE); }
.ian-guia .gd-care .gd-ico { width: 42px; height: 42px; flex: none; background: #E2E6EE; }
.ian-guia .gd-note { margin: 10px 2px 0; font: 600 12px/1.4 Manrope, system-ui, sans-serif; color: var(--mono-soft, #5B6070); }
.ian-guia .gd-steps li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--mono-surface, #FFFFFF); border: 1px solid var(--mono-line, #E2E6EE); }
.ian-guia .gd-steps i { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #C24A0C; color: #FFFFFF; font: 900 17px/1 Manrope, system-ui, sans-serif; font-style: normal; }
.ian-guia .gd-sum { margin-top: 20px; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, #4A3FB5, #4A3FB5); color: #FFFFFF; }
.ian-guia .gd-sum p { margin: 6px 0 10px; font: 500 14px/1.5 Manrope, system-ui, sans-serif; }
.ian-guia .gd-soon { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(242, 169, 59, .2); color: #E2E6EE; font: 700 12px/1.3 Manrope, system-ui, sans-serif; }
:root[data-theme="dark"] .ian-guia .gd-use { background: color-mix(in srgb, var(--gd-line) 14%, #313B4F); border-color: color-mix(in srgb, var(--gd-line) 50%, transparent); }
:root[data-theme="dark"] .ian-guia .gd-use b { color: #EEF2F8; }
:root[data-theme="dark"] .ian-guia .gd-ico { background: rgba(255, 255, 255, .1); }
:root[data-theme="dark"] .ian-guia .gd-care .gd-ico { background: rgba(142, 155, 178, .18); }
:root[data-theme="dark"] .ian-guia .gd-sum { background: linear-gradient(135deg, #313B4F, #313B4F); }
@media (max-width: 340px) { .ian-guia .gd-uses { grid-template-columns: 1fr; } }
/* Funciones del cuaderno: textos naranja con contraste y la etiqueta «Próximamente» (2026-10-21) */
:root[data-theme="light"] body #view-notes .nh .nh-tile b { color: #1B1F2A; }
body #view-notes .nh .nh-ai-soon, body #view-notes .nh .nh-ai-soon * { color: #1B1F2A !important; }

/* ---------- Estados con forma e ícono, no solo color (2026-10-21) ---------- */
/* Leído = doble visto grueso dentro de un círculo; entregado = doble visto fino */
body .ian-chat .ic-delivery svg { stroke-width: 1.8; }
body .ian-chat .ic-delivery.read { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(201, 79, 10, .16); }
body .ian-chat .ic-delivery.read svg { stroke-width: 2.8; width: 15px; height: 15px; }
:root[data-theme="dark"] body .ian-chat .ic-delivery.read { background: rgba(142, 155, 178, .22); }
/* Reuniones: «En curso» con punto lleno; «Finalizó» con visto; «Por empezar» con reloj */
body #view-notes .nh .nh-count.is-live::before, body .ian-chat .ic-meet-count.is-live::before { border-radius: 50%; -webkit-mask: none; mask: none; background: currentColor; width: 9px; height: 9px; animation: nh-live-dot 1.4s ease-in-out infinite; }
body #view-notes .nh .nh-count.is-over::before, body .ian-chat .ic-meet-count.is-over::before { -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='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l5 5L19 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='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l5 5L19 7'/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes nh-live-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { body #view-notes .nh .nh-count.is-live::before, body .ian-chat .ic-meet-count.is-live::before { animation: none; } }

/* ---------- Hoja «Compartir» del chat (2026-10-21) ---------- */
.ic-sharesheet-wrap { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: flex-end; justify-content: center; background: rgba(11, 18, 51, .5); }
.ic-sharesheet { width: min(100%, 520px); max-height: 82dvh; overflow: auto; box-sizing: border-box; padding: 14px 14px calc(18px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--mono-surface, #FFFFFF); color: var(--text); box-shadow: 0 -10px 30px rgba(74, 63, 181, .3); font-family: Manrope, system-ui, sans-serif; }
.ic-sharesheet .ic-share-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ic-sharesheet .ic-share-head b { flex: 1; font: 900 18px/1.2 Manrope, system-ui, sans-serif; }
.ic-sharesheet .ic-share-x, .ic-sharesheet .ic-share-back { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mono-line, #E2E6EE); color: var(--text); cursor: pointer; }
.ic-sharesheet .ic-share-x svg, .ic-sharesheet .ic-share-back svg { width: 22px; height: 22px; stroke-width: 3; }
.ic-sharesheet .ic-share-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
.ic-sharesheet .ic-share-item { all: unset; box-sizing: border-box; display: grid; justify-items: center; gap: 5px; padding: 6px 2px; text-align: center; cursor: pointer; border-radius: 14px; }
.ic-sharesheet .ic-share-item:focus-visible { outline: 2px solid #C24A0C; }
.ic-sharesheet .ic-share-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: #E2E6EE; color: #1B1F2A; }
.ic-sharesheet .ic-share-ic svg { width: 28px; height: 28px; }
.ic-sharesheet .ic-share-item:nth-child(2) .ic-share-ic { background: #ECE9FF; color: #1B1F2A; }
.ic-sharesheet .ic-share-item:nth-child(3) .ic-share-ic { background: #ECE9FF; color: #1B1F2A; }
.ic-sharesheet .ic-share-item:nth-child(4) .ic-share-ic { background: #ECE9FF; color: #1B1F2A; }
.ic-sharesheet .ic-share-item:nth-child(5) .ic-share-ic { background: #F4F6FA; color: #1B1F2A; }
.ic-sharesheet .ic-share-item b { font: 700 12.5px/1.2 Manrope, system-ui, sans-serif; }
.ic-sharesheet .ic-share-item small { font: 700 10.5px/1.2 Manrope, system-ui, sans-serif; color: var(--mono-soft, #5B6070); }
.ic-sharesheet .ic-share-item.is-soon { opacity: .6; }
.ic-sharesheet .ic-share-item.is-soon .ic-share-ic { background: var(--mono-line, #E2E6EE); color: var(--mono-soft, #5B6070); }
.ic-sharesheet .ic-share-form { display: grid; gap: 10px; }
.ic-sharesheet .ic-share-form input { min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--mono-line, #E2E6EE); background: var(--mono-bg, #F4F6FA); color: var(--text); font: 600 15px Manrope, system-ui, sans-serif; }
.ic-sharesheet .ic-share-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ic-sharesheet .ic-share-person { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; cursor: pointer; }
.ic-sharesheet .ic-share-person:hover, .ic-sharesheet .ic-share-person:focus-visible { background: #E2E6EE; outline: none; }
.ic-sharesheet .ic-share-person b { display: block; font: 800 14.5px/1.2 Manrope, system-ui, sans-serif; }
.ic-sharesheet .ic-share-person small { display: block; font: 600 12px/1.3 Manrope, system-ui, sans-serif; color: var(--mono-soft, #5B6070); }
.ic-sharesheet .ic-avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; color: #FFFFFF; font-weight: 800; }
.ic-sharesheet .ic-hint { margin: 4px 2px 10px; font: 500 13px/1.45 Manrope, system-ui, sans-serif; color: var(--mono-soft, #5B6070); }
.ic-sharesheet .ic-primary { min-height: 46px; padding: 0 18px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #C24A0C, #C24A0C); color: #FFFFFF; font: 800 15px Manrope, system-ui, sans-serif; cursor: pointer; }
:root[data-theme="dark"] .ic-sharesheet-wrap .ic-sharesheet { background: #313B4F; color: #EEF2F8; }
:root[data-theme="dark"] .ic-sharesheet .ic-share-x, :root[data-theme="dark"] .ic-sharesheet .ic-share-back { background: #313B4F; color: #EEF2F8; }
:root[data-theme="dark"] .ic-sharesheet .ic-share-ic { background: rgba(142, 155, 178, .18); color: #EEF2F8; }
:root[data-theme="dark"] .ic-sharesheet .ic-share-item:nth-child(n+2):nth-child(-n+5) .ic-share-ic { background: rgba(255, 255, 255, .09); color: #EEF2F8; }
:root[data-theme="dark"] .ic-sharesheet .ic-share-form input { background: #232B3A; border-color: #313B4F; color: #EEF2F8; }
:root[data-theme="dark"] .ic-sharesheet .ic-share-person:hover { background: #313B4F; }
@media (max-width: 340px) { .ic-sharesheet .ic-share-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Contactos: orden A–Z, letras y buscador (2026-10-21) ---------- */
body .ian-chat .ic-contact-filter { display: block; margin: 6px 0 10px; }
body .ian-chat .ic-contact-filter input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--mono-line, #E2E6EE); background: var(--mono-bg, #F4F6FA); color: var(--text); font: 600 15px Manrope, system-ui, sans-serif; }
body .ian-chat .ic-contact-filter input:focus { outline: 2px solid #C24A0C; outline-offset: 1px; }
body .ian-chat .ic-letter { position: sticky; top: 0; z-index: 1; padding: 6px 4px 2px; list-style: none; font: 900 13px/1 Manrope, system-ui, sans-serif; color: #1B1F2A; background: var(--mono-surface, #FFFFFF); }
:root[data-theme="dark"] body .ian-chat .ic-letter { color: #EEF2F8; }
body .ian-chat .ic-count-chip { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 12px; background: #E2E6EE; color: #1B1F2A; font: 800 13px Manrope, system-ui, sans-serif; vertical-align: 2px; }
:root[data-theme="dark"] body .ian-chat .ic-count-chip { background: rgba(142, 155, 178, .2); color: #EEF2F8; }
/* Corrección de escritura: el error se subraya con una rayita ondulada naranja (donde el navegador lo permite) (2026-10-22) */
::spelling-error { text-decoration: underline wavy #C24A0C; text-decoration-thickness: 2px; text-underline-offset: 2px; }
::grammar-error { text-decoration: underline wavy #4A3FB5; text-decoration-thickness: 2px; text-underline-offset: 2px; }

/* Borradores: editar el texto antes de decidir (2026-10-22) */
.nh-win .borr-edit { display: grid; gap: 6px; }
.nh-win .borr-edit small { font: 800 11.5px/1.2 Manrope, system-ui, sans-serif; color: #1B1F2A; text-transform: uppercase; letter-spacing: .04em; }
.nh-win .borr-edit textarea { width: 100%; box-sizing: border-box; padding: 12px; border-radius: 14px; border: 1.5px solid var(--mono-line, #E2E6EE); background: var(--mono-surface, #FFFFFF); color: var(--text); font: 500 15px/1.45 Manrope, system-ui, sans-serif; resize: vertical; }
.nh-win .borr-edit textarea:focus { outline: 2px solid #C24A0C; outline-offset: 1px; }
:root[data-theme="dark"] .nh-win .borr-edit small { color: #EEF2F8; }
/* ---------- Administrador de plantillas propias (2026-10-22) ---------- */
dialog.ian-plantillas { width: min(94vw, 520px); max-height: 90dvh; }
.ian-plantillas .plt-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ian-plantillas .plt-head b { flex: 1; font: 900 19px/1.2 Manrope, system-ui, sans-serif; overflow-wrap: anywhere; }
.ian-plantillas .plt-x, .ian-plantillas .plt-back { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #E2E6EE; color: #1B1F2A; font: 700 24px/1 Manrope, system-ui, sans-serif; cursor: pointer; flex: none; }
.ian-plantillas .plt-back svg { width: 22px; height: 22px; }
.ian-plantillas .plt-note { margin: 0 0 10px; font: 500 13.5px/1.5 Manrope, system-ui, sans-serif; color: var(--mono-soft, #5B6070); }
.ian-plantillas .plt-note code, .ian-plantillas .plt-help code { padding: 0 4px; border-radius: 4px; background: #E2E6EE; color: #1B1F2A; font-size: 12.5px; }
.ian-plantillas .plt-msg { margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; background: #ECE9FF; color: #1B1F2A; font: 700 13px/1.4 Manrope, system-ui, sans-serif; }
.ian-plantillas .plt-msg.is-bad { background: #FDECEC; color: #C0392B; }
.ian-plantillas .plt-top { display: grid; gap: 8px; margin-bottom: 8px; }
.ian-plantillas .plt-big { all: unset; box-sizing: border-box; display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: #E2E6EE; color: #1B1F2A; border: 1.5px solid #FF9A5C; font: 800 15px/1.3 Manrope, system-ui, sans-serif; cursor: pointer; text-align: left; }
.ian-plantillas .plt-big small { font: 600 12px/1.3 Manrope, system-ui, sans-serif; opacity: .85; }
.ian-plantillas .plt-big.is-alt { background: #ECE9FF; color: #1B1F2A; border-color: #A59CFF; }
.ian-plantillas .plt-big.is-main { background: linear-gradient(135deg, #C24A0C, #C24A0C); color: #FFFFFF; border: 0; text-align: center; justify-items: center; }
.ian-plantillas .plt-h { margin: 14px 0 6px; font: 900 15px/1.2 Manrope, system-ui, sans-serif; }
.ian-plantillas .plt-h i { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #C24A0C; color: #FFFFFF; font: 800 12px/1 Manrope, system-ui, sans-serif; font-style: normal; vertical-align: 1px; }
.ian-plantillas .plt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ian-plantillas .plt-row { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--mono-line, #E2E6EE); background: var(--mono-surface, #FFFFFF); }
.ian-plantillas .plt-badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #FFFFFF; font: 900 18px/1 Manrope, system-ui, sans-serif; }
.ian-plantillas .plt-b-word { background: #4A3FB5; } .ian-plantillas .plt-b-excel { background: #4A3FB5; } .ian-plantillas .plt-b-ppt { background: #C24A0C; } .ian-plantillas .plt-b-page { background: #C24A0C; } .ian-plantillas .plt-b-other { background: #5B6070; }
.ian-plantillas .plt-name b { display: block; font: 800 14.5px/1.25 Manrope, system-ui, sans-serif; overflow-wrap: anywhere; }
.ian-plantillas .plt-name small { display: block; font: 500 12px/1.3 Manrope, system-ui, sans-serif; color: var(--mono-soft, #5B6070); }
.ian-plantillas .plt-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.ian-plantillas .plt-btn { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; min-height: 38px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--mono-line, #E2E6EE); font: 800 13px Manrope, system-ui, sans-serif; cursor: pointer; text-align: center; }
.ian-plantillas .plt-btn.is-main { background: #C24A0C; border-color: #C24A0C; color: #FFFFFF; }
.ian-plantillas .plt-btn.is-danger { color: #C0392B; border-color: rgba(179, 38, 30, .5); }
.ian-plantillas .plt-wide { width: 100%; margin-top: 8px; }
.ian-plantillas .plt-two { display: grid; gap: 8px; }
.ian-plantillas .plt-empty { margin: 4px 0 8px; font: 500 13px/1.5 Manrope, system-ui, sans-serif; color: var(--mono-soft, #5B6070); }
.ian-plantillas details { margin-top: 12px; }
.ian-plantillas summary { cursor: pointer; font: 800 14px/1.3 Manrope, system-ui, sans-serif; padding: 6px 0; }
.ian-plantillas .plt-help p { margin: 6px 0 0; font: 500 13px/1.5 Manrope, system-ui, sans-serif; color: var(--mono-soft, #5B6070); }
.ian-plantillas .plt-link { all: unset; margin-top: 8px; color: #1B1F2A; font: 800 13px Manrope, system-ui, sans-serif; text-decoration: underline; cursor: pointer; }
.ian-plantillas .plt-form { display: grid; gap: 10px; }
.ian-plantillas .plt-form label { display: grid; gap: 4px; }
.ian-plantillas .plt-form label span { font: 800 12px/1.2 Manrope, system-ui, sans-serif; color: #1B1F2A; text-transform: uppercase; letter-spacing: .03em; }
.ian-plantillas .plt-form input { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--mono-line, #E2E6EE); background: var(--mono-bg, #F4F6FA); color: var(--text); font: 600 15px Manrope, system-ui, sans-serif; }
.ian-plantillas .plt-form input:focus { outline: 2px solid #C24A0C; outline-offset: 1px; }
:root[data-theme="dark"] .ian-plantillas .plt-x, :root[data-theme="dark"] .ian-plantillas .plt-back { background: #313B4F; color: #EEF2F8; }
:root[data-theme="dark"] .ian-plantillas .plt-big { background: rgba(142, 155, 178, .16); color: #EEF2F8; border-color: rgba(142, 155, 178, .4); }
:root[data-theme="dark"] .ian-plantillas .plt-big.is-alt { background: rgba(142, 155, 178, .14); color: #EEF2F8; border-color: rgba(142, 155, 178, .4); }
:root[data-theme="dark"] .ian-plantillas .plt-big.is-main { background: linear-gradient(135deg, #E55B13, #E55B13); color: #EEF2F8; }
:root[data-theme="dark"] .ian-plantillas .plt-row { background: #313B4F; border-color: #313B4F; }
:root[data-theme="dark"] .ian-plantillas .plt-btn { border-color: #313B4F; color: #EEF2F8; }
:root[data-theme="dark"] .ian-plantillas .plt-btn.is-main { background: #E55B13; color: #EEF2F8; border-color: #E55B13; }
:root[data-theme="dark"] .ian-plantillas .plt-btn.is-danger { color: #FF7B7B; border-color: rgba(255, 138, 128, .5); }
:root[data-theme="dark"] .ian-plantillas .plt-msg { background: rgba(92, 199, 191, .15); color: #EEF2F8; }
:root[data-theme="dark"] .ian-plantillas .plt-msg.is-bad { background: rgba(255, 138, 128, .15); color: #FF7B7B; }
:root[data-theme="dark"] .ian-plantillas .plt-form input { background: #232B3A; border-color: #313B4F; color: #EEF2F8; }
:root[data-theme="dark"] .ian-plantillas .plt-form label span, :root[data-theme="dark"] .ian-plantillas .plt-link { color: #EEF2F8; }
:root[data-theme="dark"] .ian-plantillas .plt-note code, :root[data-theme="dark"] .ian-plantillas .plt-help code { background: rgba(142, 155, 178, .2); color: #EEF2F8; }
body dialog.notebook-book-dialog .book-head .book-more-panel button:disabled { opacity: .6; cursor: not-allowed; }
body dialog.notebook-book-dialog .book-head .book-more-panel button:disabled:hover { background: transparent; }
/* ---------- Burbujas pequeñas y ícono de proyecto (2026-10-22, pedido de Edilberto) ---------- */
.ian-bubble { position: fixed; z-index: 2147483000; max-width: min(260px, calc(100vw - 16px)); padding: 9px 13px; border-radius: 16px; background: #4A3FB5; color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .24); box-shadow: 0 8px 22px rgba(74, 63, 181, .38); font: 700 13.5px/1.35 Manrope, system-ui, sans-serif; transform-origin: var(--tail, 50%) 100%; animation: ian-bubble-in .2s cubic-bezier(.2, .9, .3, 1.25) both; }
.ian-bubble.is-below { transform-origin: var(--tail, 50%) 0; }
.ian-bubble::after { content: ""; position: absolute; left: calc(var(--tail, 50%) - 7px); bottom: -7px; width: 14px; height: 14px; background: #4A3FB5; border: 1px solid rgba(255, 255, 255, .24); border-width: 0 1px 1px 0; border-radius: 0 0 4px 0; transform: rotate(45deg); }
.ian-bubble.is-below::after { bottom: auto; top: -7px; transform: rotate(225deg); }
.ian-bubble[data-tone="warning"] { border-color: #E55B13; }
.ian-bubble[data-tone="warning"]::after { border-color: #E55B13; }
.ian-bubble-q { display: inline; }
.ian-bubble-mark { color: #1B1F2A; font-weight: 900; }
.ian-bubble-d { display: block; margin-top: 2px; font: 500 12px/1.35 Manrope, system-ui, sans-serif; color: #ECE9FF; }
.ian-bubble-acts { display: flex; gap: 8px; margin-top: 8px; }
.ian-bubble-acts button { all: unset; box-sizing: border-box; flex: 1; min-width: 60px; min-height: 38px; display: grid; place-items: center; border-radius: 12px; font: 800 13.5px/1 Manrope, system-ui, sans-serif; cursor: pointer; text-align: center; }
.ian-bubble-acts .ian-bubble-yes { background: #E55B13; color: #1B1F2A; }
.ian-bubble-acts .ian-bubble-no { border: 1.5px solid rgba(255, 255, 255, .75); color: #FFFFFF; }
.ian-bubble-acts button:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
@keyframes ian-bubble-in { 0% { opacity: 0; transform: scale(.55); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ian-bubble { animation: none; } }
/* Recuadro de proyecto: reemplaza al dibujo del cuaderno en las listas */
body #view-notes .nh .nh-bookrow-cover { width: 52px; }
.nh-pj { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 14px; background: linear-gradient(145deg, var(--pj, #C24A0C), color-mix(in srgb, var(--pj, #C24A0C) 70%, #1B1F2A)); color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 3px 8px rgba(74, 63, 181, .22); }
.nh-pj svg { width: 56%; height: 56%; }
body #view-notes .nh .nh-folder.is-books { --f1: #4A3FB5; --f2: #4A3FB5; }
/* ---------- Menú del Chat reorganizado y hoja del ＋ (2026-10-22) ---------- */
.ic-menu .ic-menu-sec { display: block; padding: 8px 14px 2px; font: 800 11.5px/1.2 Manrope, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #5B6070; }
.ic-menu .ic-menu-sec:first-child { padding-top: 4px; }
:root[data-theme="dark"] .ic-menu .ic-menu-sec { color: #B8C4D8; }
.nh-pj-folder { background: linear-gradient(145deg, #C24A0C, #C24A0C); }
body #view-notes .nh .nh-book-cover { width: 46px; flex: none; }
.ic-menu [role="menuitem"] > svg { width: 22px; height: 22px; flex: 0 0 22px; }
.ic-menu [role="menuitem"] { gap: 14px; }
/* ---------- Más como lista simple (2026-10-22) ---------- */
body #view-notes .nh .nh-mlist { background: #FFFFFF; border: 1px solid var(--mono-line, #E2E6EE); border-radius: 18px; overflow: hidden; margin-bottom: 8px; }
body #view-notes .nh .nh-mrow { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 16px; cursor: pointer; }
body #view-notes .nh .nh-mrow + .nh-mrow { border-top: 1px solid var(--mono-line, #E2E6EE); }
body #view-notes .nh .nh-mrow:active { background: #E2E6EE; }
body #view-notes .nh .nh-mrow:focus-visible { outline: 2px solid #C24A0C; outline-offset: -2px; }
body #view-notes .nh .nh-mrow-ic { flex: none; display: grid; place-items: center; width: 26px; height: 26px; color: #1B1F2A; }
body #view-notes .nh .nh-mrow-ic svg { width: 24px; height: 24px; }
body #view-notes .nh .nh-mrow-tx { flex: 1; min-width: 0; display: grid; gap: 1px; }
body #view-notes .nh .nh-mrow-tx b { font: 800 16px/1.25 Manrope, system-ui, sans-serif; color: #1B1F2A; }
body #view-notes .nh .nh-mrow-tx small { font: 500 13px/1.3 Manrope, system-ui, sans-serif; color: #5B6070; }
body #view-notes .nh .nh-mrow-n { flex: none; min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: 12px; background: #C24A0C; color: #FFFFFF; font: 800 12.5px/1 Manrope, system-ui, sans-serif; font-style: normal; }
body #view-notes .nh .nh-mrow-go { flex: none; color: #5B6070; font: 700 22px/1 Manrope, system-ui, sans-serif; }
:root[data-theme="dark"] body #view-notes .nh .nh-mlist { background: #313B4F; border-color: #313B4F; }
:root[data-theme="dark"] body #view-notes .nh .nh-mrow + .nh-mrow { border-top-color: #313B4F; }
:root[data-theme="dark"] body #view-notes .nh .nh-mrow:active { background: #313B4F; }
:root[data-theme="dark"] body #view-notes .nh .nh-mrow-ic, :root[data-theme="dark"] body #view-notes .nh .nh-mrow-tx b { color: #EEF2F8; }
:root[data-theme="dark"] body #view-notes .nh .nh-mrow-tx small, :root[data-theme="dark"] body #view-notes .nh .nh-mrow-go { color: #B8C4D8; }
/* ---------- Barra de 4 botones, reloj en pastilla, asistente y atención (2026-10-22) ---------- */
body #view-notes .nh .nh-tribar, body .ian-chat .ic-appnav { grid-template-columns: repeat(4, 1fr) !important; }
.nh-titlerow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nh-titlerow .nh-title { margin-right: 0; min-width: 0; }
.nh-clockpill { all: unset; box-sizing: border-box; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: #E2E6EE; color: #1B1F2A; border: 1px solid #E55B13; font: 800 13px/1 Manrope, system-ui, sans-serif; cursor: pointer; transition: opacity .25s ease, transform .25s ease; }
.nh-clockpill i { display: grid; place-items: center; width: 16px; height: 16px; }
.nh-clockpill i svg { width: 16px; height: 16px; }
.nh-clockpill span { font-weight: 600; color: #5B6070; }
.nh-clockpill:focus-visible { outline: 2px solid #C24A0C; outline-offset: 2px; }
.ic-clockpill { margin-left: 8px; min-height: 30px; padding: 0 10px; }
@media (max-width: 400px) { .nh-clockpill span { display: none; } }
body.nh-scrolled .nh-clockpill, body.nh-typing .nh-clockpill { opacity: 0; pointer-events: none; transform: translateY(-6px); }
:root[data-theme="dark"] .nh-clockpill { background: rgba(142, 155, 178, .16); color: #EEF2F8; border-color: rgba(242, 169, 59, .45); }
:root[data-theme="dark"] .nh-clockpill span { color: #B8C4D8; }
body #view-notes .nh .nh-fabs { position: fixed; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 52; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
body #view-notes .nh .nh-fabs .nh-fab { position: static !important; right: auto !important; bottom: auto !important; }
body #view-notes .nh .nh-fab-ai, body #view-notes .nh .nh-fab-help { background: #4A3FB5 !important; color: #FFFFFF !important; width: 42px !important; height: 42px !important; box-shadow: 0 6px 16px rgba(74, 63, 181, .35); }
body #view-notes .nh .nh-fab-ai svg, body #view-notes .nh .nh-fab-help svg { width: 22px; height: 22px; }
.nh-pwrap { display: flex; align-items: center; gap: 8px; }
.nh-pwrap .nh-book { flex: 1; min-width: 0; }
.nh-aiform { display: flex; gap: 8px; margin: 10px 0 6px; }
.nh-aiform input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--mono-line, #E2E6EE); background: #FFFFFF; color: #1B1F2A; font: 600 15px Manrope, system-ui, sans-serif; }
.nh-aiform input:focus { outline: 2px solid #C24A0C; outline-offset: 1px; }
.nh-aimsg { min-height: 20px; margin: 4px 2px; font: 700 13.5px/1.4 Manrope, system-ui, sans-serif; color: #1B1F2A; }
.nh-aichips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
:root[data-theme="dark"] .nh-aiform input { background: #232B3A; border-color: #313B4F; color: #EEF2F8; }
:root[data-theme="dark"] .nh-aimsg { color: #EEF2F8; }
.nh-pwrap .nh-bookrow-acts { display: flex; flex-direction: row; align-items: center; gap: 4px; flex: none; }
.nh-aiform { align-items: stretch; }
.nh-aiform input { flex: 1 1 auto !important; width: auto !important; min-width: 0; }
.nh-aiform .nh-primary { flex: 0 0 auto !important; width: auto !important; min-width: 76px; min-height: 46px; padding: 0 20px !important; border-radius: 14px !important; }
/* Barra de 2 botones: Inicio y Más (2026-10-22) */
body #view-notes .nh .nh-tribar, body .ian-chat .ic-appnav { grid-template-columns: repeat(2, 1fr) !important; }
body #view-notes .nh .nh-pwrap .nh-bookrow-acts { flex-direction: row !important; align-items: center !important; gap: 4px !important; }
body #view-notes .nh .nh-pwrap .nh-bookrow-acts { display: flex !important; grid-template-columns: none !important; width: auto !important; flex-direction: row !important; }
/* ---------- Barra de 4 botones con IA, efecto de hoja, menos letreros y recorrido (2026-10-22) ---------- */
body #view-notes .nh .nh-tribar, body .ian-chat .ic-appnav { grid-template-columns: repeat(4, 1fr) !important; }
body #view-notes .nh.is-turning .nh-body { transform-origin: left center; animation: nh-pageturn .55s cubic-bezier(.2, .8, .25, 1) both; }
@media (prefers-reduced-motion: reduce) { body #view-notes .nh.is-turning .nh-body { animation: none; } }
.ic-menu .ic-menu-hr { display: block; height: 1px; margin: 6px 14px; background: var(--mono-line, #E2E6EE); }
:root[data-theme="dark"] .ic-menu .ic-menu-hr { background: #313B4F; }
.ian-chat .ic-body .ic-section-title + .ic-sub { display: none; }
dialog.ian-tour { border: 0; padding: 0; width: min(92vw, 420px); max-height: 90dvh; border-radius: 28px; background: #FFFFFF; color: #1B1F2A; box-shadow: 0 24px 60px rgba(74, 63, 181, .35); overflow: hidden; }
dialog.ian-tour::backdrop { background: rgba(74, 63, 181, .55); }
.ian-tour { display: grid; grid-template-rows: auto 1fr auto auto; gap: 8px; padding: 14px 22px 22px; text-align: center; }
.ian-tour[open] { display: grid; }
.ian-tour .tour-skip { all: unset; justify-self: end; min-height: 32px; padding: 0 8px; font: 800 14px Manrope, system-ui, sans-serif; color: #5B6070; cursor: pointer; }
.ian-tour .tour-stage { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 250px; }
.ian-tour .tour-ic { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 30px; background: linear-gradient(145deg, #C24A0C, #C24A0C); color: #FFFFFF; box-shadow: 0 10px 24px rgba(186, 72, 10, .35); }
.ian-tour .tour-ic svg { width: 52px; height: 52px; }
.ian-tour h2 { margin: 6px 0 0; font: 900 30px/1.1 Manrope, system-ui, sans-serif; color: #1B1F2A; }
.ian-tour p { margin: 0; max-width: 28ch; font: 600 17px/1.4 Manrope, system-ui, sans-serif; color: #5B6070; }
.ian-tour .tour-dots { display: flex; justify-content: center; gap: 8px; }
.ian-tour .tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: #E2E6EE; }
.ian-tour .tour-dots i.on { width: 24px; border-radius: 6px; background: #C24A0C; }
.ian-tour .tour-next { all: unset; box-sizing: border-box; display: grid; place-items: center; min-height: 52px; border-radius: 16px; background: #C24A0C; color: #FFFFFF; font: 800 17px Manrope, system-ui, sans-serif; cursor: pointer; }
.ian-tour .tour-next:focus-visible, .ian-tour .tour-skip:focus-visible { outline: 3px solid #4A3FB5; outline-offset: 2px; }
:root[data-theme="dark"] dialog.ian-tour { background: #313B4F; color: #EEF2F8; }
:root[data-theme="dark"] .ian-tour h2 { color: #EEF2F8; }
:root[data-theme="dark"] .ian-tour p, :root[data-theme="dark"] .ian-tour .tour-skip { color: #B8C4D8; }
:root[data-theme="dark"] .ian-tour .tour-dots i { background: #313B4F; }
dialog.ian-tour[open] { padding: 14px 22px 22px; }
/* ---------- Efecto de «pasar la hoja» en todas las pantallas y recorrido con flechas (2026-10-22) ---------- */
@keyframes ian-turn-fwd { 0% { transform: perspective(1400px) rotateY(-78deg); opacity: .25; } 70% { opacity: 1; } 100% { transform: perspective(1400px) rotateY(0); opacity: 1; } }
@keyframes ian-turn-back { 0% { transform: perspective(1400px) rotateY(78deg); opacity: .25; } 70% { opacity: 1; } 100% { transform: perspective(1400px) rotateY(0); opacity: 1; } }
body #view-notes .nh.is-turning.is-turn-fwd .nh-body { transform-origin: left center; animation: ian-turn-fwd .55s cubic-bezier(.2, .8, .25, 1) both; }
body #view-notes .nh.is-turning.is-turn-back .nh-body { transform-origin: right center; animation: ian-turn-back .55s cubic-bezier(.2, .8, .25, 1) both; }
.ian-turning-back { transform-origin: right center; animation: ian-turn-back .5s cubic-bezier(.2, .8, .25, 1) both; }
.ian-chat .ic-wrap.ic-turn-fwd { transform-origin: left center; animation: ian-turn-fwd .5s cubic-bezier(.2, .8, .25, 1) both; }
.ian-chat .ic-wrap.ic-turn-back { transform-origin: right center; animation: ian-turn-back .5s cubic-bezier(.2, .8, .25, 1) both; }
dialog.rc-dialog[open], .cc-layer.is-open, .ck-app.is-open, dialog.settings-center-dialog[open], dialog.ian-guia[open], #view-settings.active-view { transform-origin: left center; animation: ian-turn-fwd .5s cubic-bezier(.2, .8, .25, 1) backwards; }
body > .ian-chat { transform-origin: right center; animation: ian-turn-back .5s cubic-bezier(.2, .8, .25, 1) backwards; }
@keyframes nh-turnout-win { 0% { transform: translate(-50%, 0) perspective(1400px) rotateY(0); opacity: 1; } 100% { transform: translate(-50%, 0) perspective(1400px) rotateY(-70deg); opacity: 0; } }
body .nh-layer.is-leaving .nh-win { transform-origin: left center; animation: nh-turnout-win .24s ease-in both; }
@media (prefers-reduced-motion: reduce) { body #view-notes .nh.is-turning .nh-body, .ian-turning-back, .ian-chat .ic-wrap, dialog.rc-dialog[open], .cc-layer.is-open, .ck-app.is-open, dialog.settings-center-dialog[open], dialog.ian-guia[open], #view-settings.active-view, body > .ian-chat, body .nh-layer.is-leaving .nh-win { animation: none !important; } }
.ian-coach { position: fixed; inset: 0; z-index: 2147483000; cursor: pointer; outline: none; }
.ian-coach .coach-ring { position: fixed; border-radius: 18px; border: 3px solid #FFFFFF; box-shadow: 0 0 0 100vmax rgba(74, 63, 181, .62); transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease; pointer-events: none; }
.ian-coach .coach-arrow { position: fixed; width: 56px; height: 56px; pointer-events: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); transition: left .25s ease, top .25s ease; animation: coach-bounce 0.9s ease-in-out infinite; }
.ian-coach .coach-arrow.is-down { transform: rotate(180deg); }
.ian-coach .coach-arrow svg { width: 100%; height: 100%; }
@keyframes coach-bounce { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.ian-coach .coach-arrow.is-down { animation-name: coach-bounce-down; }
@keyframes coach-bounce-down { 0%, 100% { translate: 0 0; } 50% { translate: 0 10px; } }
.ian-coach .coach-skip { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .96); color: #1B1F2A; font: 800 26px/1 Manrope, system-ui, sans-serif; cursor: pointer; }
.ian-coach .coach-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ian-coach.is-hint { pointer-events: none; cursor: default; }
.ian-coach.is-hint .coach-ring { box-shadow: 0 0 0 4px rgba(229, 91, 19, .55); }
@media (prefers-reduced-motion: reduce) { .ian-coach .coach-arrow { animation: none; } }
.ian-coach .coach-skip { right: auto; left: 14px; }
/* ---------- Tarjeta del QR con identidad meldune (2026-10-22) ---------- */
.ic-qrcard { display: grid; justify-items: center; gap: 10px; width: min(100%, 280px); margin: 0 auto; padding: 16px 16px 14px; border-radius: 22px; background: #FFFFFF; border: 1.5px solid #FF9A5C; box-shadow: 0 8px 22px rgba(74, 63, 181, .12); }
.ic-qrcard .ic-qrbrand { display: block; width: 120px; height: auto; }
.ic-qrcard .ic-qr { width: 100%; max-width: 220px; margin: 0; }
.ic-qrcard .ic-qr svg { display: block; width: 100%; height: auto; }
.ic-qrcard .ic-qruser { font: 800 15px/1.2 Manrope, system-ui, sans-serif; color: #1B1F2A; overflow-wrap: anywhere; text-align: center; }
/* ---------- Barra de 5 botones con el Chat al centro, burbuja de IA y Más con 4 puntos (2026-10-22) ---------- */
body #view-notes .nh .nh-tribar, body .ian-chat .ic-appnav { grid-template-columns: repeat(5, 1fr) !important; overflow: visible !important; }
body #view-notes .nh .nh-tribar button.is-center, body .ian-chat .ic-appnav button.is-center { position: relative; top: -16px; justify-self: center; width: 62px; height: 62px; min-height: 62px !important; padding: 0 !important; border-radius: 50% !important; background: #4A3FB5 !important; color: #FFFFFF !important; border: 3px solid #F4F6FA; box-shadow: 0 8px 18px rgba(74, 63, 181, .38); display: grid; place-items: center; }
body #view-notes .nh .nh-tribar button.is-center svg, body .ian-chat .ic-appnav button.is-center svg { width: 28px !important; height: 28px !important; }
body #view-notes .nh .nh-tribar button.is-center span, body .ian-chat .ic-appnav button.is-center span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body #view-notes .nh .nh-tribar button.is-center[aria-current="page"], body .ian-chat .ic-appnav button.is-center[aria-current="page"] { background: #1B1F2A !important; box-shadow: 0 0 0 3px #E55B13, 0 8px 18px rgba(74, 63, 181, .45); }
:root[data-theme="dark"] body #view-notes .nh .nh-tribar button.is-center, :root[data-theme="dark"] body .ian-chat .ic-appnav button.is-center { border-color: #232B3A; }
.nh-iabubble, .ic-iabubble { all: unset; box-sizing: border-box; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #FFFFFF; border: 1.5px solid #FF9A5C; box-shadow: 0 4px 12px rgba(74, 63, 181, .18); cursor: pointer; }
.nh-iabubble img, .ic-iabubble img { display: block; width: 74%; height: 74%; object-fit: contain; }
.ic-iabubble { width: 40px; height: 40px; margin-right: 8px; }
.nh-iabubble:focus-visible, .ic-iabubble:focus-visible { outline: 2px solid #C24A0C; outline-offset: 2px; }
.nh-iabubble:active, .ic-iabubble:active { transform: scale(.94); }
:root[data-theme="dark"] .nh-iabubble, :root[data-theme="dark"] .ic-iabubble { background: #313B4F; border-color: #E55B13; }
/* El botón activo de la barra (Inicio, Empresa, Agenda, Más) toma el mismo azul noche del círculo del Chat (2026-10-22) */
body #view-notes .nh .nh-tribar button[aria-current="page"]:not(.is-center), body .ian-chat .ic-appnav button[aria-current="page"]:not(.is-center) { background: #4A3FB5 !important; color: #FFFFFF !important; border: 2px solid #F4F6FA; box-shadow: 0 6px 14px rgba(74, 63, 181, .35) !important; border-radius: 18px !important; }
:root[data-theme="dark"] body #view-notes .nh .nh-tribar button[aria-current="page"]:not(.is-center), :root[data-theme="dark"] body .ian-chat .ic-appnav button[aria-current="page"]:not(.is-center) { border-color: #232B3A; }
/* El círculo del Chat solo se pinta cuando es el seleccionado; si no, queda como los demás botones (2026-10-22) */
body #view-notes .nh .nh-tribar button.is-center:not([aria-current="page"]), body .ian-chat .ic-appnav button.is-center:not([aria-current="page"]) { background: transparent !important; border: 2px solid rgba(255, 255, 255, .6); box-shadow: none !important; top: -8px; width: 56px; height: 56px; min-height: 56px !important; }
.ian-chat:not(.ic-chats-tab) .ic-clockpill { display: none; }
/* Agenda en pantalla angosta: el botón «Cerrar» de la barra lateral no debe verse (queda la flecha de arriba) */
@media (max-width: 719px) { body dialog.rc-dialog .rc-side-close { display: none !important; } }
/* Agenda en pantalla angosta: la hora del encabezado no debe quedar pegada al borde */
@media (max-width: 719px) { body dialog.rc-dialog .rc-title { padding-right: 22px; } }
/* Pista muy discreta en el logo: «i» pequeña para que se sepa que al tocarlo sale la historia de meldune (2026-10-22) */
body #view-notes .nh .nh-brand { position: relative; }
body #view-notes .nh .nh-brand-i { position: absolute; top: 1px; right: -6px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1.3px solid #C24A0C; background: #FFFFFF; color: #1B1F2A; font: italic 800 10px/1 Georgia, "Times New Roman", serif; opacity: .9; pointer-events: none; }
:root[data-theme="dark"] body #view-notes .nh .nh-brand-i { background: #313B4F; color: #EEF2F8; border-color: #FF7A33; }
/* ---------- Editor de foto de perfil (2026-10-22) ---------- */
dialog.ian-foto { border: 0; padding: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; background: #1B1F2A; color: #FFFFFF; }
dialog.ian-foto[open] { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; align-items: center; gap: 14px; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
dialog.ian-foto::backdrop { background: #1B1F2A; }
.ian-foto .foto-x { position: absolute; top: 14px; left: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #FFFFFF; font: 700 26px/1 Manrope, system-ui, sans-serif; cursor: pointer; }
.ian-foto .foto-stage { width: min(86vw, 340px); aspect-ratio: 1; touch-action: none; cursor: grab; outline: none; }
.ian-foto .foto-stage:active { cursor: grabbing; }
.ian-foto .foto-view { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background: #1B1F2A; box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 100vmax rgba(11, 18, 51, .72); }
.ian-foto .foto-img { position: absolute; left: 50%; top: 50%; max-width: none; user-select: none; -webkit-user-drag: none; transform-origin: center; pointer-events: none; }
.ian-foto .foto-stage:focus-visible .foto-view { box-shadow: 0 0 0 3px #E55B13, 0 0 0 100vmax rgba(11, 18, 51, .72); }
.ian-foto .foto-tools { display: flex; align-items: center; gap: 10px; width: min(92vw, 380px); }
.ian-foto .foto-btn { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #FFFFFF; cursor: pointer; }
.ian-foto .foto-btn svg { width: 22px; height: 22px; }
.ian-foto .foto-zoom { flex: 1; min-width: 0; accent-color: #E55B13; height: 28px; }
.ian-foto .foto-actions { display: flex; gap: 12px; width: min(92vw, 380px); }
.ian-foto .foto-actions button { flex: 1; min-height: 52px; border-radius: 16px; font: 800 16px Manrope, system-ui, sans-serif; cursor: pointer; }
.ian-foto .foto-cancel { border: 1.5px solid rgba(255, 255, 255, .55); background: transparent; color: #FFFFFF; }
.ian-foto .foto-ok { border: 0; background: #C24A0C; color: #FFFFFF; }
.ian-foto button:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.ian-foto .foto-tools, .ian-foto .foto-actions, .ian-foto .foto-x { position: relative; z-index: 2; }
.ian-foto .foto-x { position: absolute; }
/* Editor de foto: solo gestos; dos íconos redondos, sin letras ni controles (2026-10-22) */
.ian-foto .foto-actions { justify-content: center; gap: 28px; width: auto; }
.ian-foto .foto-circle { flex: none; display: grid; place-items: center; width: 56px; height: 56px; min-height: 56px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #FFFFFF; cursor: pointer; }
.ian-foto .foto-circle svg { width: 26px; height: 26px; }
.ian-foto .foto-circle.is-ok { background: #C24A0C; }
/* ---------- Foto de perfil: una cámara que abre el menú; enlace en botón chico (2026-10-22) ---------- */
.ian-chat button.ic-profile-photo-wrap { all: unset; position: relative; display: inline-block; cursor: pointer; border-radius: 50%; }
.ian-chat button.ic-profile-photo-wrap:focus-visible { outline: 3px solid #C24A0C; outline-offset: 3px; }
.ian-chat button.ic-profile-photo-wrap > span:last-child { position: absolute; right: -4px; bottom: -3px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #C24A0C; color: #FFFFFF; border: 2px solid #FFFFFF; }
.ian-chat button.ic-profile-photo-wrap > span:last-child svg { width: 17px; height: 17px; }
.ian-chat .ic-photo-sheet { position: absolute; inset: 0; z-index: 60; display: grid; align-items: end; }
.ian-chat .ic-ps-bg { position: absolute; inset: 0; background: rgba(74, 63, 181, .5); }
.ian-chat .ic-ps-card { position: relative; display: grid; gap: 2px; margin: 0 10px calc(12px + env(safe-area-inset-bottom)); padding: 8px; border-radius: 22px; background: #FFFFFF; box-shadow: 0 -8px 30px rgba(74, 63, 181, .25); max-width: 460px; width: calc(100% - 20px); justify-self: center; animation: ian-turn-back .3s ease both; }
.ian-chat .ic-ps-card button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 16px; border-radius: 16px; font: 700 16px Manrope, system-ui, sans-serif; color: #1B1F2A; cursor: pointer; }
.ian-chat .ic-ps-card button:hover, .ian-chat .ic-ps-card button:focus-visible { background: #E2E6EE; }
.ian-chat .ic-ps-card button svg { width: 24px; height: 24px; flex: none; }
.ian-chat .ic-ps-card button.is-danger { color: #1B1F2A; }
:root[data-theme="dark"] .ian-chat .ic-ps-card { background: #313B4F; }
:root[data-theme="dark"] .ian-chat .ic-ps-card button { color: #EEF2F8; }
:root[data-theme="dark"] .ian-chat .ic-ps-card button.is-danger { color: #EEF2F8; }
.ian-chat .ic-copychip { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 7px; justify-self: center; margin: 10px auto 0; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #FF9A5C; background: #F4F6FA; color: #1B1F2A; font: 800 13.5px Manrope, system-ui, sans-serif; cursor: pointer; }
.ian-chat .ic-copychip svg { width: 16px; height: 16px; }
.ian-chat .ic-copychip:focus-visible { outline: 2px solid #C24A0C; outline-offset: 2px; }
.ian-chat .ic-mylink { display: grid; justify-items: center; }
:root[data-theme="dark"] .ian-chat .ic-copychip { background: rgba(142, 155, 178, .14); color: #EEF2F8; border-color: rgba(242, 169, 59, .45); }
/* ---------- Perfil sin cuadros, guardado solo; selectores con flecha de la marca (2026-10-22) ---------- */
.ian-chat select { -webkit-appearance: none; appearance: none; background-color: transparent !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BA480A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 4px center !important; background-size: 20px !important; padding-right: 30px !important; accent-color: #C24A0C; color: inherit; }
.ian-chat .ic-profile-card { display: grid; justify-items: center; gap: 6px; text-align: center; }
.ian-chat .ic-ptop { position: relative; display: inline-flex; align-items: flex-end; gap: 14px; }
.ian-chat .ic-qrbtn { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #1B1F2A; background: #F4F6FA; cursor: pointer; align-self: center; }
.ian-chat .ic-qrbtn svg { width: 22px; height: 22px; }
.ian-chat .ic-qrbtn:focus-visible { outline: 2px solid #C24A0C; outline-offset: 2px; }
.ian-chat .ic-pname, .ian-chat .ic-pstatus { width: 100%; margin: 0; }
.ian-chat .ic-pname input { width: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; text-align: center; font: 900 24px/1.2 Manrope, system-ui, sans-serif; color: #1B1F2A; padding: 4px 8px; border-radius: 10px; }
.ian-chat .ic-pstatus input[name="text"] { width: 100%; border: 0 !important; border-bottom: 1px solid #E2E6EE !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; text-align: center; font: 600 15px Manrope, system-ui, sans-serif; padding: 8px; }
.ian-chat .ic-pname input:focus, .ian-chat .ic-pstatus input:focus { outline: 2px solid #FF9A5C; outline-offset: 0; }
.ian-chat .ic-prow { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 4px; border-top: 1px solid #E2E6EE; text-align: left; font: 700 14px Manrope, system-ui, sans-serif; color: #5B6070; }
.ian-chat .ic-prow select { border: 0 !important; width: auto; max-width: 48%; text-align: right; font: 800 14px Manrope, system-ui, sans-serif; color: #1B1F2A; }
.ian-chat .ic-more { width: 100%; border-top: 1px solid #E2E6EE; text-align: left; }
.ian-chat .ic-more > summary { cursor: pointer; padding: 12px 4px; font: 800 14px Manrope, system-ui, sans-serif; color: #1B1F2A; list-style: none; }
.ian-chat .ic-more > summary::-webkit-details-marker { display: none; }
.ian-chat .ic-more > summary::after { content: " ›"; }
.ian-chat .ic-more[open] > summary::after { content: " ⌄"; }
.ian-chat .ic-more .ic-card { box-shadow: none; background: transparent; padding: 6px 0; border: 0; }
.ian-chat .ic-linkrow { all: unset; display: block; padding: 12px 4px; cursor: pointer; font: 800 14px Manrope, system-ui, sans-serif; color: #1B1F2A; }
.ian-chat .ic-qr-sheet { position: absolute; inset: 0; z-index: 60; display: grid; align-items: end; }
.ian-chat .ic-qs-card { position: relative; margin: 0 8px calc(10px + env(safe-area-inset-bottom)); padding: 14px 0 12px; border-radius: 24px; background: #FFFFFF; box-shadow: 0 -8px 30px rgba(74, 63, 181, .25); max-width: 440px; width: calc(100% - 16px); justify-self: center; animation: ian-turn-back .3s ease both; }
.ian-chat .ic-qs-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.ian-chat .ic-qs-track::-webkit-scrollbar { display: none; }
.ian-chat .ic-qs-slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; justify-items: center; gap: 4px; padding: 0 12px; box-sizing: border-box; }
.ian-chat .ic-qs-dots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }
.ian-chat .ic-qs-dots i { width: 8px; height: 8px; border-radius: 50%; background: #E2E6EE; }
.ian-chat .ic-qs-dots i.on { width: 22px; border-radius: 6px; background: #C24A0C; }
:root[data-theme="dark"] .ian-chat .ic-qs-card { background: #313B4F; }
:root[data-theme="dark"] .ian-chat .ic-pname input { color: #EEF2F8; }
:root[data-theme="dark"] .ian-chat .ic-prow, :root[data-theme="dark"] .ian-chat .ic-prow select { color: #EEF2F8; }
:root[data-theme="dark"] .ian-chat .ic-qrbtn { background: rgba(142, 155, 178, .16); color: #EEF2F8; }
/* ---------- Chat sin tarjetas de más: la pantalla queda limpia, solo con líneas finas (2026-10-22) ---------- */
.ian-chat .ic-card { background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; }
.ian-chat .ic-card + .ic-card { border-top: 1px solid #E2E6EE !important; }
:root[data-theme="dark"] .ian-chat .ic-card + .ic-card { border-top-color: #313B4F !important; }
.ian-chat .ic-profile-card { padding-top: 6px; }
.ian-chat .ic-qs-card .ic-card { border: 0 !important; }
/* ---------- Agenda: ＋ pequeño arriba, pestañas con color, fecha y hora con distintivo (2026-10-22) ---------- */
body dialog.rc-dialog .rc-plus { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 10px; border-radius: 50%; border: 1.5px solid #E55B13; color: #1B1F2A; cursor: pointer; vertical-align: middle; }
body dialog.rc-dialog .rc-plus svg { width: 14px; height: 14px; }
body dialog.rc-dialog .rc-plus:focus-visible { outline: 2px solid #4A3FB5; outline-offset: 2px; }
body dialog.rc-dialog .rc-plus:active { transform: scale(.92); }
body dialog.rc-dialog .rc-title h2 { color: #1B1F2A; font-weight: 800; }
body dialog.rc-dialog .rc-clock { padding: 3px 10px; border-radius: 999px; background: #E2E6EE; color: #1B1F2A; font-weight: 800; }
body dialog.rc-dialog .rc-bar { display: none; }
body dialog.rc-dialog .rc-side-item[data-rc-section="calendar"] svg { color: #1B1F2A; }
body dialog.rc-dialog .rc-side-item[data-rc-section="pending"] svg { color: #1B1F2A; }
body dialog.rc-dialog .rc-side-item[data-rc-section="done"] svg { color: #1B1F2A; }
body dialog.rc-dialog .rc-side-item[data-rc-section="people"] svg { color: #1B1F2A; }
body dialog.rc-dialog .rc-strip-day b { color: #1B1F2A; }
body dialog.rc-dialog .rc-strip-day.is-selected b { background: #E55B13; color: #FFFFFF; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-title h2, :root[data-theme="dark"] body dialog.rc-dialog .rc-strip-day b { color: #EEF2F8; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-side-item[data-rc-section="pending"] svg, :root[data-theme="dark"] body dialog.rc-dialog .rc-side-item[data-rc-section="done"] svg { color: #EEF2F8; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-clock { background: rgba(142, 155, 178, .18); color: #EEF2F8; }
body dialog.rc-dialog .rc-strip-day.is-today:not(.is-selected) b { background: transparent !important; color: #1B1F2A !important; box-shadow: inset 0 0 0 2px #E55B13; }
/* ---------- Agenda: el ＋ vive dentro del día elegido (azul noche con número naranja) (2026-10-22) ---------- */
body dialog.rc-dialog .rc-strip-day.is-selected { background: #4A3FB5 !important; border-radius: 16px; }
body dialog.rc-dialog .rc-strip-day.is-selected small { color: #1B1F2A; }
body dialog.rc-dialog .rc-strip-day.is-selected b { background: transparent !important; color: #1B1F2A !important; box-shadow: none !important; }
body dialog.rc-dialog .rc-day-plus { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: #E55B13; color: #FFFFFF; cursor: pointer; }
body dialog.rc-dialog .rc-day-plus svg { width: 12px; height: 12px; }
body dialog.rc-dialog .rc-day-plus:active { transform: scale(.9); }
/* ---------- Agenda: selectores de lado (Día/Mes/Año, filtro), vista Mes y Año (2026-10-22) ---------- */
body dialog.rc-dialog .rc-cycle { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px; border-radius: 12px; border: 1px solid #E2E6EE; background: #FFFFFF; }
body dialog.rc-dialog .rc-cycle.is-on { border-color: #E55B13; background: #F4F6FA; }
body dialog.rc-dialog .rc-cycle b { min-width: 52px; text-align: center; font: 800 14px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body dialog.rc-dialog .rc-cy { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 26px; height: 30px; color: #1B1F2A; cursor: pointer; border-radius: 8px; }
body dialog.rc-dialog .rc-cy svg { width: 16px; height: 16px; }
body dialog.rc-dialog .rc-cy:active { background: #E2E6EE; }
body dialog.rc-dialog .rc-cy:focus-visible { outline: 2px solid #4A3FB5; }
body dialog.rc-dialog .rc-month { padding: 4px 6px 12px; }
body dialog.rc-dialog .rc-mhead, body dialog.rc-dialog .rc-mgrid { display: grid; grid-template-columns: repeat(7, 1fr); }
body dialog.rc-dialog .rc-mhead span { text-align: center; font: 700 12px Manrope, system-ui, sans-serif; color: #5B6070; padding: 6px 0; }
body dialog.rc-dialog .rc-mcell { all: unset; box-sizing: border-box; display: grid; justify-items: center; align-content: start; gap: 3px; min-height: 52px; padding: 6px 0; cursor: pointer; border-radius: 14px; }
body dialog.rc-dialog .rc-mcell b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 800 15px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body dialog.rc-dialog .rc-mcell.is-out b { color: #9AA3B5; font-weight: 600; }
body dialog.rc-dialog .rc-mcell.is-today b { box-shadow: inset 0 0 0 2px #E55B13; }
body dialog.rc-dialog .rc-mcell.is-selected { background: #4A3FB5; }
body dialog.rc-dialog .rc-mcell.is-selected b { color: #1B1F2A; }
body dialog.rc-dialog .rc-mdots { display: flex; gap: 3px; }
body dialog.rc-dialog .rc-mdots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ev, #E55B13); }
body dialog.rc-dialog .rc-year { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 12px 20px; }
body dialog.rc-dialog .rc-ymonth { all: unset; box-sizing: border-box; display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 72px; border-radius: 16px; border: 1px solid #E2E6EE; cursor: pointer; font: 800 15px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body dialog.rc-dialog .rc-ymonth span { font: 800 12px Manrope, system-ui, sans-serif; color: #FFFFFF; background: #E55B13; border-radius: 999px; padding: 1px 8px; }
body dialog.rc-dialog .rc-ymonth.is-today { border-color: #E55B13; }
body dialog.rc-dialog .rc-ymonth.is-selected { background: #4A3FB5; color: #1B1F2A; border-color: #4A3FB5; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-cycle { background: transparent; border-color: #313B4F; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-cycle b, :root[data-theme="dark"] body dialog.rc-dialog .rc-mcell b, :root[data-theme="dark"] body dialog.rc-dialog .rc-ymonth { color: #EEF2F8; }
/* ---------- Agenda: calendario de pared con argollas, lista del día y selección (2026-10-22) ---------- */
body dialog.rc-dialog .rc-wall { position: relative; padding: 22px 14px 18px; max-width: 520px; margin: 0 auto; touch-action: pan-y; }
body dialog.rc-dialog .rc-wall-card { position: relative; background: #FFFFFF; border-radius: 22px; box-shadow: 0 10px 28px rgba(74, 63, 181, .16), 0 2px 0 #E2E6EE; overflow: hidden; transform-origin: top center; }
body dialog.rc-dialog .rc-wall-band { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 34px 18px 12px; background: linear-gradient(180deg, #E55B13, #C24A0C); color: #FFFFFF; }
body dialog.rc-dialog .rc-wall-band.is-year { justify-content: center; }
body dialog.rc-dialog .rc-wall-month, body dialog.rc-dialog .rc-wall-year { all: unset; cursor: pointer; font: 900 26px/1.1 Manrope, system-ui, sans-serif; color: #FFFFFF; letter-spacing: .01em; }
body dialog.rc-dialog .rc-wall-year { font-size: 26px; }
body dialog.rc-dialog .rc-wall-band.is-year .rc-wall-year { cursor: default; font-size: 30px; }
body dialog.rc-dialog .rc-wall-month:focus-visible, body dialog.rc-dialog .rc-wall-year:focus-visible { outline: 2px solid #E55B13; outline-offset: 3px; border-radius: 6px; }
body dialog.rc-dialog .rc-ring { all: unset; box-sizing: border-box; position: absolute; top: 4px; z-index: 3; width: 44px; height: 44px; cursor: pointer; display: grid; place-items: center; }
body dialog.rc-dialog .rc-ring::before { content: ""; width: 16px; height: 32px; border-radius: 9px; background: linear-gradient(90deg, #E2E6EE, #5B6070 45%, #E2E6EE); border: 2px solid #5B6070; box-shadow: 0 3px 5px rgba(74, 63, 181, .3); transition: transform .15s ease; }
body dialog.rc-dialog .rc-ring:active::before { transform: scale(.9); }
body dialog.rc-dialog .rc-ring:focus-visible { outline: 2px solid #4A3FB5; border-radius: 12px; }
body dialog.rc-dialog .rc-ring.is-prev { left: 17%; } body dialog.rc-dialog .rc-ring.is-next { right: 17%; }
@keyframes rc-flip-next { 0% { transform: perspective(900px) rotateX(55deg); opacity: .2; } 100% { transform: perspective(900px) rotateX(0); opacity: 1; } }
@keyframes rc-flip-prev { 0% { transform: perspective(900px) rotateX(-40deg); opacity: .2; } 100% { transform: perspective(900px) rotateX(0); opacity: 1; } }
body dialog.rc-dialog .rc-flip-next { animation: rc-flip-next .38s cubic-bezier(.2, .8, .25, 1) both; }
body dialog.rc-dialog .rc-flip-prev { animation: rc-flip-prev .38s cubic-bezier(.2, .8, .25, 1) both; }
body dialog.rc-dialog .rc-month { padding: 0; }
body dialog.rc-dialog .rc-wall .rc-mhead { padding: 10px 8px 2px; }
body dialog.rc-dialog .rc-wall .rc-mgrid { padding: 0 8px 12px; }
body dialog.rc-dialog .rc-mhead span.is-sun { color: #1B1F2A; }
body dialog.rc-dialog .rc-mcell.is-sun b { color: #1B1F2A; }
body dialog.rc-dialog .rc-mcell.is-out.is-sun b { color: #1B1F2A; }
body dialog.rc-dialog .rc-mcell.has-plans b { background: #F4F6FA; }
body dialog.rc-dialog .rc-mcell.is-today b { background: #4A3FB5; color: #1B1F2A; box-shadow: none; }
body dialog.rc-dialog .rc-mcell:active { background: #E2E6EE; }
body dialog.rc-dialog .rc-wall .rc-year { padding: 14px 12px 18px; }
body dialog.rc-dialog .rc-ymonth { position: relative; }
body dialog.rc-dialog .rc-ymonth.is-today { background: #4A3FB5; color: #1B1F2A; border-color: #4A3FB5; }
body dialog.rc-dialog .rc-dayview { padding: 4px 14px 24px; max-width: 560px; margin: 0 auto; }
body dialog.rc-dialog .rc-daybar { display: flex; align-items: center; gap: 14px; padding: 8px 0 12px; }
body dialog.rc-dialog .rc-daybar-gap { flex: 1; }
body dialog.rc-dialog .rc-daybar.is-select span { flex: 1; text-align: center; font: 700 13px Manrope, system-ui, sans-serif; color: #5B6070; }
body dialog.rc-dialog .rc-link { all: unset; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font: 800 14px Manrope, system-ui, sans-serif; color: #1B1F2A; padding: 6px 2px; }
body dialog.rc-dialog .rc-link svg { width: 18px; height: 18px; }
body dialog.rc-dialog .rc-link.is-danger { color: #1B1F2A; }
body dialog.rc-dialog .rc-link[disabled] { opacity: .4; pointer-events: none; }
body dialog.rc-dialog .rc-link:focus-visible { outline: 2px solid #4A3FB5; border-radius: 6px; }
body dialog.rc-dialog .rc-plus2 { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #4A3FB5; color: #1B1F2A; cursor: pointer; }
body dialog.rc-dialog .rc-plus2 svg { width: 18px; height: 18px; }
body dialog.rc-dialog .rc-plus2:focus-visible { outline: 2px solid #E55B13; outline-offset: 2px; }
body dialog.rc-dialog .rc-plans { display: grid; gap: 8px; }
body dialog.rc-dialog .rc-plan { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 8px; border-radius: 16px; border-left: 5px solid var(--ev, #E55B13); background: #FFFFFF; box-shadow: 0 1px 0 #E2E6EE; }
body dialog.rc-dialog .rc-plan time { display: grid; min-width: 46px; text-align: center; }
body dialog.rc-dialog .rc-plan time b { font: 800 15px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body dialog.rc-dialog .rc-plan time small { font: 600 12px Manrope, system-ui, sans-serif; color: #5B6070; }
body dialog.rc-dialog .rc-plan-main { all: unset; flex: 1; min-width: 0; display: grid; gap: 2px; cursor: pointer; }
body dialog.rc-dialog .rc-plan-main strong { font: 800 15px Manrope, system-ui, sans-serif; color: #1B1F2A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body dialog.rc-dialog .rc-plan-main small { font: 600 12px Manrope, system-ui, sans-serif; color: #5B6070; }
body dialog.rc-dialog .rc-plan.is-done .rc-plan-main strong { text-decoration: line-through; opacity: .6; }
body dialog.rc-dialog .rc-plan.is-picked { background: #F4F6FA; box-shadow: inset 0 0 0 2px #E55B13; }
body dialog.rc-dialog .rc-pickbox { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #C24A0C; color: #FFFFFF; cursor: pointer; }
body dialog.rc-dialog .rc-pickbox.is-on { background: #E55B13; }
body dialog.rc-dialog .rc-pickbox svg { width: 14px; height: 14px; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-wall-card, :root[data-theme="dark"] body dialog.rc-dialog .rc-plan { background: #313B4F; box-shadow: none; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-plan time b, :root[data-theme="dark"] body dialog.rc-dialog .rc-plan-main strong { color: #EEF2F8; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-mcell.has-plans b { background: rgba(142, 155, 178, .18); }
body dialog.rc-dialog .rc-body { overflow-y: auto; align-items: flex-start; }
body dialog.rc-dialog .rc-body > .rc-wall, body dialog.rc-dialog .rc-body > .rc-dayview, body dialog.rc-dialog .rc-body > .rc-empty { width: 100%; box-sizing: border-box; flex: 0 0 auto; }
body dialog.rc-dialog .rc-body > .rc-wall { max-width: 520px; margin: 0 auto; }
@media (hover: hover) and (max-width: 719px) { body dialog.rc-dialog .rc-head, body dialog.rc-dialog .rc-dayview, body dialog.rc-dialog .rc-wall { padding-right: 30px; } }
body dialog.rc-dialog .rc-plan:not(.is-done) .rc-plan-main strong { text-decoration: none !important; opacity: 1 !important; }
/* ---------- Agenda: flechas sobre las argollas, día vacío tocable (2026-10-22) ---------- */
body dialog.rc-dialog .rc-ring { overflow: visible; }
body dialog.rc-dialog .rc-ring svg { position: absolute; top: 24px; width: 20px; height: 20px; color: #FFFFFF; stroke-width: 2.6; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); pointer-events: none; }
body dialog.rc-dialog .rc-ring.is-prev svg { left: 2px; } body dialog.rc-dialog .rc-ring.is-next svg { right: 2px; }
body dialog.rc-dialog .rc-ring { width: 64px; } body dialog.rc-dialog .rc-ring.is-prev { left: calc(17% - 10px); } body dialog.rc-dialog .rc-ring.is-next { right: calc(17% - 10px); }
body dialog.rc-dialog .rc-empty-go { all: unset; box-sizing: border-box; display: grid; justify-items: center; gap: 6px; width: 100%; padding: 36px 12px; cursor: pointer; text-align: center; }
body dialog.rc-dialog .rc-empty-go span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #4A3FB5; color: #1B1F2A; }
body dialog.rc-dialog .rc-empty-go span svg { width: 28px; height: 28px; }
body dialog.rc-dialog .rc-empty-go strong { font: 800 16px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body dialog.rc-dialog .rc-empty-go small { font: 600 13px Manrope, system-ui, sans-serif; color: #5B6070; }
body dialog.rc-dialog .rc-empty-go:focus-visible { outline: 2px solid #E55B13; border-radius: 16px; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-empty-go strong { color: #EEF2F8; }
/* ---------- Agenda: panel lateral limpio para planificar (2026-10-22) ---------- */
body dialog.rc-dialog .rc-pwrap { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end; background: rgba(74, 63, 181, .32); }
body dialog.rc-dialog .rc-sidepanel { box-sizing: border-box; width: min(92%, 400px); height: 100%; overflow-y: auto; background: #FFFFFF; padding: 16px 18px 24px; box-shadow: -10px 0 30px rgba(74, 63, 181, .22); animation: rc-slide-in .28s cubic-bezier(.2, .8, .25, 1) both; display: grid; align-content: start; gap: 14px; }
@keyframes rc-slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
body dialog.rc-dialog .rc-sidepanel header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
body dialog.rc-dialog .rc-sidepanel header small { display: block; font: 700 12px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body dialog.rc-dialog .rc-sidepanel header h3 { margin: 2px 0 0; font: 900 22px/1.15 Manrope, system-ui, sans-serif; color: #1B1F2A; }
body dialog.rc-dialog .rc-sidepanel form { display: grid; gap: 14px; }
body dialog.rc-dialog .rc-sidepanel input, body dialog.rc-dialog .rc-sidepanel select, body dialog.rc-dialog .rc-sidepanel textarea { box-sizing: border-box; width: 100%; border: 0; border-bottom: 1.5px solid #E2E6EE; border-radius: 0; background: transparent; padding: 8px 2px; font: 600 15px Manrope, system-ui, sans-serif; color: #1B1F2A; outline: none; }
body dialog.rc-dialog .rc-sidepanel input:focus, body dialog.rc-dialog .rc-sidepanel select:focus, body dialog.rc-dialog .rc-sidepanel textarea:focus { border-bottom-color: #E55B13; }
body dialog.rc-dialog .rc-sidepanel .rc-pname { font: 800 18px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body dialog.rc-dialog .rc-sidepanel textarea { resize: none; border: 1.5px solid #E2E6EE; border-radius: 12px; padding: 10px; }
body dialog.rc-dialog .rc-prow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
body dialog.rc-dialog .rc-prow label, body dialog.rc-dialog .rc-prow1 { display: grid; gap: 2px; }
body dialog.rc-dialog .rc-prow label span, body dialog.rc-dialog .rc-prow1 span { font: 700 12px Manrope, system-ui, sans-serif; color: #5B6070; }
body dialog.rc-dialog .rc-colors { display: flex; gap: 12px; align-items: center; }
body dialog.rc-dialog .rc-color { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; cursor: pointer; }
body dialog.rc-dialog .rc-color input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; }
body dialog.rc-dialog .rc-color i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); transition: transform .12s ease; }
body dialog.rc-dialog .rc-color input:checked + i { transform: scale(1.15); box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--c); }
body dialog.rc-dialog .rc-color input:focus-visible + i { outline: 2px solid #4A3FB5; outline-offset: 3px; }
body dialog.rc-dialog .rc-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font: 800 15px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body dialog.rc-dialog .rc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
body dialog.rc-dialog .rc-switch i { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #E2E6EE; transition: background .15s ease; flex: none; }
body dialog.rc-dialog .rc-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s ease; }
body dialog.rc-dialog .rc-switch input:checked + i { background: #E55B13; }
body dialog.rc-dialog .rc-switch input:checked + i::after { transform: translateX(18px); }
body dialog.rc-dialog .rc-switch input:focus-visible + i { outline: 2px solid #4A3FB5; outline-offset: 2px; }
body dialog.rc-dialog .rc-switch span { display: inline-flex; align-items: center; gap: 6px; }
body dialog.rc-dialog .rc-switch span svg { width: 20px; height: 20px; color: #1B1F2A; }
body dialog.rc-dialog .rc-created { font: 600 12px Manrope, system-ui, sans-serif; color: #5B6070; }
body dialog.rc-dialog .rc-pactions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
body dialog.rc-dialog .rc-save { all: unset; box-sizing: border-box; cursor: pointer; padding: 12px 28px; border-radius: 999px; background: linear-gradient(180deg, #E55B13, #C24A0C); color: #FFFFFF; font: 800 15px Manrope, system-ui, sans-serif; box-shadow: 0 6px 16px rgba(186, 72, 10, .3); }
body dialog.rc-dialog .rc-save:active { transform: scale(.97); }
body dialog.rc-dialog .rc-save:focus-visible { outline: 2px solid #4A3FB5; outline-offset: 2px; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-sidepanel { background: #313B4F; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-sidepanel input, :root[data-theme="dark"] body dialog.rc-dialog .rc-sidepanel select, :root[data-theme="dark"] body dialog.rc-dialog .rc-sidepanel textarea { color: #EEF2F8; border-color: #313B4F; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-sidepanel header h3, :root[data-theme="dark"] body dialog.rc-dialog .rc-sidepanel .rc-pname, :root[data-theme="dark"] body dialog.rc-dialog .rc-switch { color: #EEF2F8; }
/* ---------- Agenda: las argollas son flechas elegantes (2026-10-22) ---------- */
body dialog.rc-dialog .rc-ring { width: 46px; height: 46px; top: 3px; }
body dialog.rc-dialog .rc-ring.is-prev { left: 15%; } body dialog.rc-dialog .rc-ring.is-next { right: 15%; }
body dialog.rc-dialog .rc-ring::before { content: none; }
body dialog.rc-dialog .rc-ring svg { position: static; width: 30px; height: 30px; color: #1B1F2A; stroke-width: 2.2; filter: drop-shadow(0 2px 2px rgba(74, 63, 181, .35)); transition: transform .15s ease; pointer-events: none; }
body dialog.rc-dialog .rc-ring.is-prev svg { transform: rotate(180deg); }
body dialog.rc-dialog .rc-ring:hover svg { color: #1B1F2A; }
body dialog.rc-dialog .rc-ring.is-next:active svg { transform: scale(.88); }
body dialog.rc-dialog .rc-ring.is-prev:active svg { transform: rotate(180deg) scale(.88); }
:root[data-theme="dark"] body dialog.rc-dialog .rc-ring svg { color: #EEF2F8; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
/* ---------- Agenda: la flecha es parte de la argolla (2026-10-22) ---------- */
body dialog.rc-dialog .rc-ring { width: 56px; height: 44px; top: 4px; }
body dialog.rc-dialog .rc-ring.is-prev { left: calc(15% - 6px); } body dialog.rc-dialog .rc-ring.is-next { right: calc(15% - 6px); }
body dialog.rc-dialog .rc-ring svg { width: 46px; height: 34px; filter: drop-shadow(0 2px 2px rgba(74, 63, 181, .35)); }
body dialog.rc-dialog .rc-ring.is-prev svg { transform: rotate(180deg); }
body dialog.rc-dialog .rc-ring.is-next:active svg { transform: scale(.9); }
body dialog.rc-dialog .rc-ring.is-prev:active svg { transform: rotate(180deg) scale(.9); }
/* flechas de las argollas más pequeñas */
body dialog.rc-dialog .rc-ring { width: 44px; height: 36px; top: 8px; }
body dialog.rc-dialog .rc-ring svg { width: 34px; height: 25px; }
body dialog.rc-dialog .rc-ring.is-prev { left: calc(15% - 2px); } body dialog.rc-dialog .rc-ring.is-next { right: calc(15% - 2px); }
/* ---------- Agenda: panel más armado, círculos meldune y flechas puntero (2026-10-22) ---------- */
body dialog.rc-dialog .rc-ptr { width: 16px; height: 16px; flex: none; }
body dialog.rc-dialog .rc-ptr.is-left { transform: rotate(180deg); }
body dialog.rc-dialog .rc-icon-btn .rc-ptr { width: 18px; height: 18px; }
body dialog.rc-dialog .rc-circ { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: #FFFFFF; background: linear-gradient(180deg, #E55B13, #C24A0C); box-shadow: 0 4px 10px rgba(186, 72, 10, .35); flex: none; }
body dialog.rc-dialog .rc-circ svg { width: 18px; height: 18px; }
body dialog.rc-dialog .rc-circ:active { transform: scale(.92); }
body dialog.rc-dialog .rc-circ:focus-visible { outline: 2px solid #4A3FB5; outline-offset: 2px; }
body dialog.rc-dialog .rc-pwrap { align-items: flex-start; }
body dialog.rc-dialog .rc-sidepanel { height: auto; max-height: 100%; padding: 0 0 20px; gap: 0; border-radius: 0 0 0 26px; overflow-y: auto; }
body dialog.rc-dialog .rc-sidepanel .rc-phead { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 14px; background: linear-gradient(180deg, #E55B13, #C24A0C); color: #FFFFFF; }
body dialog.rc-dialog .rc-pdate { display: flex; align-items: center; gap: 12px; }
body dialog.rc-dialog .rc-pdate b { font: 900 44px/1 Manrope, system-ui, sans-serif; color: #FFFFFF; }
body dialog.rc-dialog .rc-pdate span { font: 700 14px/1.25 Manrope, system-ui, sans-serif; color: #E2E6EE; }
body dialog.rc-dialog .rc-sidepanel .rc-phead .rc-circ { background: #FFFFFF; color: #1B1F2A; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
body dialog.rc-dialog .rc-ptypebar { position: relative; padding: 10px 18px 0; }
body dialog.rc-dialog .rc-ptype { all: unset; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: 800 15px Manrope, system-ui, sans-serif; color: #1B1F2A; padding: 6px 0; }
body dialog.rc-dialog .rc-ptype svg { width: 16px; height: 16px; color: #1B1F2A; stroke-width: 2.4; }
body dialog.rc-dialog .rc-ptype.is-static { cursor: default; }
body dialog.rc-dialog .rc-ptype:focus-visible { outline: 2px solid #E55B13; border-radius: 6px; }
body dialog.rc-dialog .rc-pmenu { position: absolute; z-index: 5; top: 100%; left: 14px; min-width: 190px; padding: 6px; border-radius: 16px; background: #FFFFFF; box-shadow: 0 10px 28px rgba(74, 63, 181, .22); display: grid; }
body dialog.rc-dialog .rc-pmenu[hidden] { display: none; }
body dialog.rc-dialog .rc-pmenu button { all: unset; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; cursor: pointer; font: 700 15px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body dialog.rc-dialog .rc-pmenu button svg { width: 20px; height: 20px; color: #1B1F2A; }
body dialog.rc-dialog .rc-pmenu button:active, body dialog.rc-dialog .rc-pmenu button:hover { background: #F4F6FA; }
body dialog.rc-dialog .rc-sidepanel form { gap: 10px; padding: 6px 18px 0; }
body dialog.rc-dialog .rc-sidepanel .rc-pname { font: 800 20px Manrope, system-ui, sans-serif; padding: 8px 2px; }
body dialog.rc-dialog .rc-pline { display: flex; align-items: center; gap: 12px; }
body dialog.rc-dialog .rc-pline.is-top { align-items: flex-start; }
body dialog.rc-dialog .rc-pline > i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #F4F6FA; color: #1B1F2A; font-style: normal; }
body dialog.rc-dialog .rc-pline > i svg { width: 18px; height: 18px; }
body dialog.rc-dialog .rc-pline > input, body dialog.rc-dialog .rc-pline > select { flex: 1; min-width: 0; }
body dialog.rc-dialog .rc-pline > textarea { flex: 1; min-width: 0; margin-top: 2px; }
body dialog.rc-dialog .rc-pline .rc-switch { flex: 1; }
body dialog.rc-dialog .rc-pline .rc-switch span svg { display: none; }
body dialog.rc-dialog .rc-switch i.rc-sw { width: 44px; height: 26px; background: #E2E6EE; border-radius: 999px; position: relative; display: block; }
body dialog.rc-dialog .rc-switch input:checked + i.rc-sw { background: #E55B13; }
body dialog.rc-dialog .rc-pline .rc-colors { flex: 1; justify-content: space-between; }
body dialog.rc-dialog .rc-pactions { justify-content: flex-end; margin-top: 2px; }
body dialog.rc-dialog .rc-plan { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-pmenu { background: #313B4F; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-ptype, :root[data-theme="dark"] body dialog.rc-dialog .rc-pmenu button { color: #EEF2F8; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-pline > i { background: rgba(142, 155, 178, .16); }
:root[data-theme="dark"] body dialog.rc-dialog .rc-ring svg path:nth-of-type(2) { fill: #FF7A33; stroke: #FF7A33; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-ring svg rect:first-of-type { stroke: #FF7A33; }
/* ---------- X y flechas uniformes en toda la app (2026-10-22): la X va en el círculo meldune y es la misma en todas partes ---------- */
.seima-x { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
body :is(.close-button, .nh-x, .pz-close, .plt-x, .fc-close, .emoji-close, .cc-x, .sp-dclose) { display: inline-grid !important; place-items: center !important; width: 36px !important; height: 36px !important; min-width: 0 !important; padding: 0 !important; border-radius: 50% !important; border: 0 !important; background: linear-gradient(180deg, #E55B13, #C24A0C) !important; color: #FFFFFF !important; font-size: 18px !important; line-height: 1 !important; box-shadow: 0 4px 10px rgba(186, 72, 10, .3) !important; cursor: pointer; }
body :is(.close-button, .nh-x, .pz-close, .plt-x, .fc-close, .emoji-close, .cc-x, .sp-dclose):active { transform: scale(.92); }
body :is(.close-button, .nh-x, .pz-close, .plt-x, .fc-close, .emoji-close, .cc-x, .sp-dclose):focus-visible { outline: 2px solid #4A3FB5; outline-offset: 2px; }
:root[data-theme="dark"] body :is(.close-button, .nh-x, .pz-close, .plt-x, .fc-close, .emoji-close, .cc-x, .sp-dclose):focus-visible { outline-color: #FF7A33; }
.seima-ptr { width: 1em; height: 1em; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; vertical-align: -.12em; }
.seima-ptr.is-left { transform: rotate(180deg); }
b > .seima-ptr, span > .seima-ptr, i > .seima-ptr { width: 15px; height: 15px; opacity: .75; }
/* ---------- Agenda: argollas solo de adorno, «hoy/actual» bajo el mes y el año, reloj con segundos (2026-10-22) ---------- */
body dialog.rc-dialog .rc-ring { position: absolute; top: 5px; z-index: 3; width: auto; height: auto; display: block; pointer-events: none; }
body dialog.rc-dialog .rc-ring.is-prev { left: 15%; right: auto; } body dialog.rc-dialog .rc-ring.is-next { right: 15%; left: auto; }
body dialog.rc-dialog .rc-ring svg { position: static; display: block; width: 20px; height: 34px; transform: none !important; filter: drop-shadow(0 2px 2px rgba(74, 63, 181, .3)); }
body dialog.rc-dialog .rc-wall-col { display: grid; gap: 1px; justify-items: start; }
body dialog.rc-dialog .rc-wall-col.is-end { justify-items: end; }
body dialog.rc-dialog .rc-wall-col.is-mid { justify-items: center; }
body dialog.rc-dialog .rc-wall-band { align-items: flex-end; }
body dialog.rc-dialog .rc-sub { all: unset; font: 600 11px/1.2 Manrope, system-ui, sans-serif; letter-spacing: .06em; text-transform: lowercase; color: #E2E6EE; opacity: .85; }
body dialog.rc-dialog button.rc-sub.is-go { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
body dialog.rc-dialog button.rc-sub.is-go:focus-visible { outline: 2px solid #E2E6EE; outline-offset: 2px; border-radius: 4px; }
body dialog.rc-dialog .rc-clock { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 3px 12px 3px 8px; border-radius: 999px; background: #E2E6EE; color: #1B1F2A; }
body dialog.rc-dialog .rc-clock svg { width: 16px; height: 16px; color: #1B1F2A; }
body dialog.rc-dialog .rc-clock b { font: 800 15px Manrope, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
body dialog.rc-dialog .rc-clock:focus-visible { outline: 2px solid #4A3FB5; outline-offset: 2px; }
body dialog.rc-dialog .rc-nav .rc-icon-btn { width: 36px; height: 36px; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-clock { background: rgba(142, 155, 178, .18); color: #EEF2F8; }
/* ---------- Agenda: flechas en círculos meldune, lupa y búsqueda de fecha, mes y año (2026-10-22) ---------- */
body dialog.rc-dialog .rc-nav { display: inline-flex; gap: 8px; }
body dialog.rc-dialog .rc-nav .rc-circ svg { width: 17px; height: 17px; color: #FFFFFF; }
body dialog.rc-dialog .rc-lupa { all: unset; box-sizing: border-box; display: grid; place-items: center; align-self: center; width: 34px; height: 34px; border-radius: 50%; background: #FFFFFF; color: #1B1F2A; cursor: pointer; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); }
body dialog.rc-dialog .rc-lupa svg { width: 18px; height: 18px; }
body dialog.rc-dialog .rc-lupa:active { transform: scale(.92); }
body dialog.rc-dialog .rc-lupa:focus-visible { outline: 2px solid #4A3FB5; outline-offset: 2px; }
body dialog.rc-dialog .rc-pwrap.is-search { justify-content: center; background: rgba(74, 63, 181, .26); }
body dialog.rc-dialog .rc-spop { box-sizing: border-box; width: min(92%, 380px); margin-top: 96px; padding: 12px 14px 14px; border-radius: 22px; background: #FFFFFF; box-shadow: 0 14px 34px rgba(74, 63, 181, .28); display: grid; gap: 10px; animation: rc-pop-in .2s ease both; }
@keyframes rc-pop-in { from { transform: translateY(-8px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
body dialog.rc-dialog .rc-sbar { display: flex; align-items: center; gap: 8px; border-bottom: 1.5px solid #E2E6EE; padding-bottom: 6px; }
body dialog.rc-dialog .rc-sbar > i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #F4F6FA; color: #1B1F2A; font-style: normal; flex: none; }
body dialog.rc-dialog .rc-sbar > i svg { width: 18px; height: 18px; }
body dialog.rc-dialog .rc-sbar input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: 700 16px Manrope, system-ui, sans-serif; color: #1B1F2A; padding: 6px 2px; }
body dialog.rc-dialog .rc-sbar .rc-circ { width: 30px; height: 30px; }
body dialog.rc-dialog .rc-sbar .rc-circ svg { width: 15px; height: 15px; }
body dialog.rc-dialog .rc-sres { min-height: 24px; }
body dialog.rc-dialog .rc-snone { margin: 4px 2px; font: 600 13px Manrope, system-ui, sans-serif; color: #5B6070; }
body dialog.rc-dialog .rc-slist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
body dialog.rc-dialog .rc-slist li { display: flex; gap: 10px; align-items: baseline; padding: 6px 8px; border-left: 4px solid var(--ev, #E55B13); border-radius: 8px; background: #F4F6FA; font: 600 14px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body dialog.rc-dialog .rc-slist li b { color: #1B1F2A; font-weight: 800; }
body dialog.rc-dialog .rc-slist li.is-more { border-left-color: #E2E6EE; color: #5B6070; }
body dialog.rc-dialog .rc-schips { display: flex; flex-wrap: wrap; gap: 8px; }
body dialog.rc-dialog .rc-schip { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 999px; background: #F4F6FA; color: #1B1F2A; font: 800 14px Manrope, system-ui, sans-serif; }
body dialog.rc-dialog .rc-schip.is-on, body dialog.rc-dialog .rc-schip:hover { background: #4A3FB5; color: #1B1F2A; }
body dialog.rc-dialog .rc-schip:focus-visible { outline: 2px solid #4A3FB5; outline-offset: 2px; }
body dialog.rc-dialog .rc-sfoot { display: flex; align-items: center; justify-content: space-between; }
body dialog.rc-dialog .rc-spop > .rc-save { justify-self: end; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-spop { background: #313B4F; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-sbar input { color: #EEF2F8; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-slist li { background: rgba(142, 155, 178, .1); color: #EEF2F8; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-slist li b { color: #EEF2F8; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-schip { background: rgba(142, 155, 178, .16); color: #EEF2F8; }
/* encabezado de la Agenda: título con el reloj debajo; flechas a la derecha */
body dialog.rc-dialog .rc-head { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
body dialog.rc-dialog .rc-title { display: grid !important; gap: 3px; flex: 1; min-width: 0; justify-items: start; }
body dialog.rc-dialog .rc-title h2 { margin: 0; line-height: 1.15; }
body dialog.rc-dialog .rc-controls { flex: none; margin-left: auto; }
/* ---------- Agenda: lupa arriba, búsqueda con pestañas Fecha / Mes / Año, sin selector nativo (2026-10-22) ---------- */
body dialog.rc-dialog .rc-circ.is-soft { background: #F4F6FA; color: #1B1F2A; box-shadow: none; }
body dialog.rc-dialog .rc-circ.is-soft svg { width: 18px; height: 18px; color: #1B1F2A; }
body dialog.rc-dialog .rc-stabs { display: flex; gap: 6px; }
body dialog.rc-dialog .rc-stab { all: unset; cursor: pointer; padding: 6px 14px; border-radius: 999px; font: 800 13px Manrope, system-ui, sans-serif; color: #5B6070; }
body dialog.rc-dialog .rc-stab.is-on { background: #4A3FB5; color: #1B1F2A; }
body dialog.rc-dialog .rc-stab:focus-visible { outline: 2px solid #E55B13; outline-offset: 2px; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-stab { color: #8E9BB2; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-circ.is-soft { background: rgba(142, 155, 178, .18); }
/* ---------- Repetir, aviso antes, todo el día, tarjeta de aviso (2026-10-22) ---------- */
body dialog.rc-dialog .rc-sidepanel form.is-allday .rc-hide-allday { display: none !important; }
body dialog.rc-dialog .rc-pline[hidden] { display: none; }
body dialog.rc-dialog .rc-pline.is-off { opacity: .55; }
body dialog.rc-dialog .rc-switch em { font-style: normal; font-size: 11px; font-weight: 700; color: #5B6070; margin-left: 6px; }
.seima-alerta { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2147483000; display: flex; align-items: center; gap: 10px; max-width: min(94vw, 440px); padding: 10px 12px; border-radius: 20px; background: #4A3FB5; color: #FFFFFF; box-shadow: 0 12px 30px rgba(74, 63, 181, .4); font-family: Manrope, system-ui, sans-serif; }
.seima-alerta .sa-text { display: grid; min-width: 0; flex: 1; }
.seima-alerta .sa-text strong { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seima-alerta .sa-text small { font-size: 11px; color: #1B1F2A; font-weight: 700; }
.seima-alerta button { all: unset; cursor: pointer; padding: 8px 12px; border-radius: 999px; font: 800 13px Manrope, system-ui, sans-serif; white-space: nowrap; }
.seima-alerta .sa-snooze { background: #E55B13; color: #1B1F2A; }
.seima-alerta .sa-ok { background: rgba(255, 255, 255, .14); color: #FFFFFF; }
.seima-alerta button:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
/* ---------- Eliminar con presión larga (2026-10-22): el botón de eliminar solo aparece al mantener presionado ---------- */
body :is(.nh-book-del, .nh-rem-del) { display: none !important; }
body .ian-reveal :is(.nh-book-del, .nh-rem-del) { display: inline-grid !important; place-items: center; animation: ian-reveal-in .18s ease both; }
@keyframes ian-reveal-in { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
body .ian-reveal { outline: 2px solid rgba(229, 91, 19, .35); outline-offset: 2px; border-radius: 16px; }
/* ---------- Estados en el perfil (2026-10-22) ---------- */
body :is(.ic-estado-del) { display: none !important; }
body .ian-reveal :is(.ic-estado-del) { display: grid !important; place-items: center; animation: ian-reveal-in .18s ease both; }
.ian-chat .ic-estados { width: 100%; box-sizing: border-box; display: grid; gap: 8px; padding: 10px 4px 4px; border-top: 1px solid #E2E6EE; text-align: left; }
.ian-chat .ic-estados-head { display: flex; align-items: baseline; justify-content: space-between; }
.ian-chat .ic-estados-head b { font: 800 14px Manrope, system-ui, sans-serif; color: #1B1F2A; }
.ian-chat .ic-estados-head small { font: 600 12px Manrope, system-ui, sans-serif; color: #5B6070; }
.ian-chat .ic-estado { position: relative; display: grid; gap: 2px; padding: 10px 52px 10px 14px; border-radius: 16px; background: #F4F6FA; }
.ian-chat .ic-estado p { margin: 0; font: 700 15px/1.3 Manrope, system-ui, sans-serif; color: #1B1F2A; overflow-wrap: anywhere; }
.ian-chat .ic-estado small { font: 600 12px Manrope, system-ui, sans-serif; color: #1B1F2A; }
.ian-chat .ic-estado-del { all: unset; box-sizing: border-box; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: #C24A0C; color: #FFFFFF; cursor: pointer; }
.ian-chat .ic-estado-del svg { width: 18px; height: 18px; }
.ian-chat .ian-reveal.ic-estado { outline: 2px solid rgba(160, 42, 10, .35); outline-offset: 2px; }
.ian-chat .ic-estado-form { display: flex; align-items: center; gap: 8px; }
.ian-chat .ic-estado-form input[name="text"] { flex: 1; min-width: 0; border: 0 !important; border-bottom: 1.5px solid #E2E6EE !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; font: 600 15px Manrope, system-ui, sans-serif; padding: 8px 2px; color: inherit; }
.ian-chat .ic-estado-form input[name="text"]:focus { border-bottom-color: #E55B13 !important; outline: none; }
.ian-chat .ic-estado-send { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: #FFFFFF; background: linear-gradient(180deg, #E55B13, #C24A0C); box-shadow: 0 4px 10px rgba(186, 72, 10, .3); flex: none; }
.ian-chat .ic-estado-send svg { width: 17px; height: 17px; }
.ian-chat .ic-estado-send:active { transform: scale(.92); }
.ian-chat .ic-estado-soon { display: flex; align-items: center; gap: 8px; opacity: .55; font: 600 12px Manrope, system-ui, sans-serif; color: #5B6070; }
.ian-chat .ic-estado-soon em { font-style: normal; font-weight: 800; color: #1B1F2A; }
:root[data-theme="dark"] .ian-chat .ic-estados-head b { color: #EEF2F8; }
:root[data-theme="dark"] .ian-chat .ic-estado { background: rgba(142, 155, 178, .14); }
:root[data-theme="dark"] .ian-chat .ic-estado p { color: #EEF2F8; }
:root[data-theme="dark"] .ian-chat .ic-estado small, :root[data-theme="dark"] .ian-chat .ic-estado-soon em { color: #EEF2F8; }
.ian-chat .ic-estado-del { top: calc(50% - 17px) !important; transform: none !important; }
/* flecha de «Más» del perfil: el mismo puntero de la app */
.ian-chat .ic-more > summary::after, .ian-chat .ic-more[open] > summary::after { content: ""; display: inline-block; width: 11px; height: 11px; margin-left: 6px; vertical-align: -1px; 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='M3.6 4.4 21 12 3.6 19.6 8.2 12Z' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%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='M3.6 4.4 21 12 3.6 19.6 8.2 12Z' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .15s ease; }
.ian-chat .ic-more[open] > summary::after { transform: rotate(90deg); }
/* panel de planificar: nada se sale por los lados en pantallas angostas */
body dialog.rc-dialog .rc-sidepanel { overflow-x: hidden; width: min(94%, 400px); }
body dialog.rc-dialog .rc-sidepanel form, body dialog.rc-dialog .rc-pline { min-width: 0; max-width: 100%; }
body dialog.rc-dialog .rc-pline > input, body dialog.rc-dialog .rc-pline > select { min-width: 0 !important; width: 100%; font-size: 14px; }
body dialog.rc-dialog .rc-pline > input[type="date"] { flex: 1.5 1 0; }
body dialog.rc-dialog .rc-pline > input[type="time"] { flex: 1 1 0; }
body dialog.rc-dialog .rc-sidepanel input[type="date"], body dialog.rc-dialog .rc-sidepanel input[type="time"] { padding-right: 0; }
body dialog.rc-dialog .rc-sidepanel input::-webkit-calendar-picker-indicator { margin-left: 2px; padding: 0; }
body dialog.rc-dialog .rc-pline .rc-switch span { min-width: 0; flex-wrap: wrap; }
/* ---------- Listas del Chat sin cuadros: nombre limpio con su foto y una línea fina (2026-10-22) ---------- */
:root[data-theme] body .ian-chat .ic-row, :root[data-theme] body .ian-chat .ic-row:hover, :root[data-theme] body .ian-chat .ic-row:focus-visible { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--mono-line, #E2E6EE) !important; border-radius: 0 !important; box-shadow: none !important; }
:root[data-theme] body .ian-chat .ic-row:active { background: rgba(229, 91, 19, .08) !important; }
:root[data-theme] body .ian-chat .ic-row-text b { color: #1B1F2A; }
:root[data-theme="dark"] body .ian-chat .ic-row-text b { color: #EEF2F8; }
.ian-chat .ic-self-who { all: unset; display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; cursor: pointer; }
.ian-chat .ic-self-who:focus-visible { outline: 2px solid #E55B13; outline-offset: 2px; border-radius: 12px; }
.ian-chat .ic-estados-sheet .ic-qs-card { padding: 14px 16px 16px; }
.ian-chat .ic-estado-who { margin: 0; font: 600 12px Manrope, system-ui, sans-serif; color: #5B6070; }
.ian-chat .ic-estado-who b { color: #1B1F2A; font-weight: 800; }
:root[data-theme="dark"] .ian-chat .ic-estado-who b { color: #EEF2F8; }
.ian-chat .ic-soon-tag { font-style: normal; font-size: 11px; font-weight: 800; color: #1B1F2A; margin-left: 6px; }
:root[data-theme="dark"] .ian-chat .ic-soon-tag { color: #EEF2F8; }
/* ---------- Botón de llamar (próximamente): blanco dentro de un cuadrito naranja, bien visible (2026-10-22) ---------- */
body .ian-chat .ic-call-btn, body .ian-chat .ic-soon-btn.ic-call-btn { width: 38px !important; height: 38px !important; border-radius: 12px !important; background: linear-gradient(180deg, #E55B13, #C24A0C) !important; color: #FFFFFF !important; box-shadow: 0 3px 8px rgba(186, 72, 10, .32) !important; }
body .ian-chat .ic-call-btn svg, :root[data-theme="dark"] body .ian-chat .ic-call-btn svg { color: #EEF2F8 !important; width: 20px; height: 20px; }
body .ian-chat .ic-call-btn:active { transform: scale(.92); }
body .ian-chat .ic-call-btn:focus-visible { outline: 2px solid #4A3FB5; outline-offset: 2px; }
:root[data-theme="dark"] body .ian-chat .ic-call-btn:focus-visible { outline-color: #FF7A33; }
/* ---------- Pestañas de la Agenda: la elegida va en naranja y las demás en azul noche (claro) o crema (oscuro) (2026-10-22) ---------- */
body dialog.rc-dialog .rc-side-item { color: #1B1F2A !important; }
body dialog.rc-dialog .rc-side-item svg, body dialog.rc-dialog .rc-side-item[data-rc-section] svg { color: #1B1F2A !important; }
body dialog.rc-dialog .rc-side-item span { color: #1B1F2A !important; font-weight: 700; }
body dialog.rc-dialog .rc-side-item.is-active, body dialog.rc-dialog .rc-side-item[aria-current="page"] { background: #F4F6FA !important; }
body dialog.rc-dialog .rc-side-item.is-active span, body dialog.rc-dialog .rc-side-item[aria-current="page"] span { color: #1B1F2A !important; font-weight: 800; }
body dialog.rc-dialog .rc-side-item.is-active svg, body dialog.rc-dialog .rc-side-item[aria-current="page"] svg, body dialog.rc-dialog .rc-side-item.is-active[data-rc-section] svg, body dialog.rc-dialog .rc-side-item[aria-current="page"][data-rc-section] svg { color: #1B1F2A !important; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-side-item, :root[data-theme="dark"] body dialog.rc-dialog .rc-side-item svg, :root[data-theme="dark"] body dialog.rc-dialog .rc-side-item[data-rc-section] svg, :root[data-theme="dark"] body dialog.rc-dialog .rc-side-item span { color: #B8C4D8 !important; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-side-item.is-active, :root[data-theme="dark"] body dialog.rc-dialog .rc-side-item[aria-current="page"] { background: rgba(142, 155, 178, .18) !important; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-side-item.is-active span, :root[data-theme="dark"] body dialog.rc-dialog .rc-side-item[aria-current="page"] span, :root[data-theme="dark"] body dialog.rc-dialog .rc-side-item.is-active svg, :root[data-theme="dark"] body dialog.rc-dialog .rc-side-item[aria-current="page"] svg, :root[data-theme="dark"] body dialog.rc-dialog .rc-side-item.is-active[data-rc-section] svg, :root[data-theme="dark"] body dialog.rc-dialog .rc-side-item[aria-current="page"][data-rc-section] svg { color: #EEF2F8 !important; }
/* ---------- Escribir mensajes: el campo va de lado a lado con los íconos adentro; elegir cámara o selfie (2026-10-22) ---------- */
body .ian-chat .ic-compose-row, body .ian-chat .ic-gform { display: flex !important; align-items: flex-end; gap: 8px; }
body .ian-chat .ic-compose-row .ic-field, body .ian-chat .ic-gform .ic-field { flex: 1 1 auto; min-width: 0; display: flex; align-items: flex-end; gap: 0; padding: 2px 6px 2px 4px; border-radius: 24px; background: #FFFFFF; border: 1px solid #E2E6EE; box-shadow: none; }
body .ian-chat .ic-field textarea { flex: 1 1 auto; min-width: 0; width: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; padding: 11px 6px; min-height: 44px; max-height: 140px; border-radius: 0 !important; }
body .ian-chat .ic-field .ic-emoji-btn, body .ian-chat .ic-field .ic-soon-btn { flex: none; width: 38px; height: 44px; display: grid; place-items: center; }
body .ian-chat .ic-field .ic-soon-btn { color: #1B1F2A; }
body .ian-chat .ic-compose-row.has-text .ic-field .ic-soon-btn { display: grid; }
body .ian-chat .ic-field .ic-soon-btn svg, body .ian-chat .ic-field .ic-emoji-btn svg { width: 22px; height: 22px; }
:root[data-theme="dark"] body .ian-chat .ic-compose-row .ic-field, :root[data-theme="dark"] body .ian-chat .ic-gform .ic-field { background: #313B4F; border-color: #313B4F; }
:root[data-theme="dark"] body .ian-chat .ic-field .ic-soon-btn { color: #EEF2F8; }
body .ian-chat .ic-camchoice { position: absolute; z-index: 70; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); display: grid; gap: 2px; min-width: 190px; padding: 6px; border-radius: 18px; background: #FFFFFF; box-shadow: 0 12px 32px rgba(74, 63, 181, .28); border: 1px solid #E2E6EE; }
body .ian-chat .ic-camchoice button { all: unset; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; cursor: pointer; font: 700 15px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body .ian-chat .ic-camchoice button svg { width: 22px; height: 22px; color: #1B1F2A; }
body .ian-chat .ic-camchoice button:active, body .ian-chat .ic-camchoice button:hover { background: #F4F6FA; }
body .ian-chat .ic-camchoice button:focus-visible { outline: 2px solid #E55B13; }
:root[data-theme="dark"] body .ian-chat .ic-camchoice { background: #313B4F; border-color: #313B4F; }
:root[data-theme="dark"] body .ian-chat .ic-camchoice button { color: #EEF2F8; }
body .ian-chat .ic-field textarea { resize: none; }
/* X de la hoja «Compartir» en el círculo meldune */
body .ic-sharesheet .ic-share-x { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: #FFFFFF; background: linear-gradient(180deg, #E55B13, #C24A0C); box-shadow: 0 4px 10px rgba(186, 72, 10, .3); }
body .ic-sharesheet .ic-share-x svg { width: 18px; height: 18px; }
/* ---------- Calendarios por color: mostrar u ocultar (2026-10-22) ---------- */
body dialog.rc-dialog .rc-cals { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px 6px 4px; }
body dialog.rc-dialog .rc-cal { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; cursor: pointer; font: 800 13px Manrope, system-ui, sans-serif; color: #1B1F2A; background: #FFFFFF; border: 1.5px solid var(--c); }
body dialog.rc-dialog .rc-cal i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); flex: none; }
body dialog.rc-dialog .rc-cal.is-off { opacity: .5; border-style: dashed; background: transparent; text-decoration: line-through; }
body dialog.rc-dialog .rc-cal.is-off i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
body dialog.rc-dialog .rc-cal:focus-visible { outline: 2px solid #E55B13; outline-offset: 2px; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-cal { background: #313B4F; color: #EEF2F8; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-cal[data-rc-cal="Empresa"] { border-color: #A59CFF; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-cal[data-rc-cal="Empresa"] i { background: #A59CFF; }
/* ---------- Panel sin selectores nativos: fecha y hora escritas, opciones en botoncitos; compartir con personas; borrador (2026-10-22) ---------- */
body dialog.rc-dialog .rc-chiprow { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
body dialog.rc-dialog .rc-chiprow::-webkit-scrollbar { display: none; }
body dialog.rc-dialog .rc-chipr { position: relative; flex: none; cursor: pointer; }
body dialog.rc-dialog .rc-chipr input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; border: 0; }
body dialog.rc-dialog .rc-chipr span { display: block; padding: 7px 12px; border-radius: 999px; border: 1.5px solid #E2E6EE; font: 700 13px Manrope, system-ui, sans-serif; color: #1B1F2A; white-space: nowrap; background: transparent; }
body dialog.rc-dialog .rc-chipr input:checked + span { background: #E55B13; border-color: #E55B13; color: #FFFFFF; }
body dialog.rc-dialog .rc-chipr input:focus-visible + span { outline: 2px solid #4A3FB5; outline-offset: 2px; }
body dialog.rc-dialog .rc-ampm { display: inline-flex; gap: 4px; flex: none; }
body dialog.rc-dialog .rc-ampm label { position: relative; cursor: pointer; }
body dialog.rc-dialog .rc-ampm input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; border: 0; }
body dialog.rc-dialog .rc-ampm span { display: block; padding: 6px 9px; border-radius: 999px; border: 1.5px solid #E2E6EE; font: 700 12px Manrope, system-ui, sans-serif; color: #1B1F2A; white-space: nowrap; }
body dialog.rc-dialog .rc-ampm input:checked + span { background: #4A3FB5; border-color: #4A3FB5; color: #1B1F2A; }
body dialog.rc-dialog .rc-sharebox { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
body dialog.rc-dialog .rc-sharechips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
body dialog.rc-dialog .rc-sh { padding: 5px 11px; border-radius: 999px; background: #F4F6FA; color: #1B1F2A; font: 800 13px Manrope, system-ui, sans-serif; }
body dialog.rc-dialog .rc-sh-none { font: 600 14px Manrope, system-ui, sans-serif; color: #5B6070; }
body dialog.rc-dialog .rc-addbtn { all: unset; box-sizing: border-box; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #4A3FB5; color: #1B1F2A; cursor: pointer; }
body dialog.rc-dialog .rc-addbtn svg { width: 17px; height: 17px; }
body dialog.rc-dialog .rc-addbtn:focus-visible { outline: 2px solid #E55B13; outline-offset: 2px; }
body dialog.rc-dialog .rc-linkbtn { all: unset; box-sizing: border-box; flex: 1; min-width: 0; cursor: pointer; padding: 8px 2px; border-bottom: 1.5px solid #E2E6EE; font: 600 15px Manrope, system-ui, sans-serif; color: #1B1F2A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body dialog.rc-dialog .rc-plist { display: grid; gap: 2px; margin: -4px 0 2px 46px; padding: 6px; border-radius: 16px; background: #F4F6FA; max-height: 220px; overflow-y: auto; }
body dialog.rc-dialog .rc-plist[hidden] { display: none; }
body dialog.rc-dialog .rc-plist-row { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; cursor: pointer; font: 700 14px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body dialog.rc-dialog .rc-plist-row i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #E2E6EE; color: #1B1F2A; font-style: normal; font-weight: 800; flex: none; }
body dialog.rc-dialog .rc-plist-row b { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body dialog.rc-dialog .rc-plist-row .rc-tick { display: none; color: #1B1F2A; }
body dialog.rc-dialog .rc-plist-row .rc-tick svg { width: 18px; height: 18px; }
body dialog.rc-dialog .rc-plist-row.is-on { background: #F4F6FA; }
body dialog.rc-dialog .rc-plist-row.is-on .rc-tick { display: block; }
body dialog.rc-dialog .rc-plist-row:focus-visible { outline: 2px solid #E55B13; }
body dialog.rc-dialog .rc-draftnote { margin: 0; font: 700 13px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body dialog.rc-dialog .rc-person-real { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid #E2E6EE; cursor: pointer; }
body dialog.rc-dialog .rc-person-real span { flex: 1; min-width: 0; display: grid; }
body dialog.rc-dialog .rc-person-real strong { font: 800 15px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body dialog.rc-dialog .rc-person-real small { font: 600 12px Manrope, system-ui, sans-serif; color: #5B6070; }
body dialog.rc-dialog .rc-person-go { color: #1B1F2A; }
body dialog.rc-dialog .rc-person-go svg { width: 14px; height: 14px; }
body dialog.rc-dialog .rc-sub-h { margin: 16px 0 4px; font: 800 12px Manrope, system-ui, sans-serif; color: #5B6070; text-transform: uppercase; letter-spacing: .05em; }
body dialog.rc-dialog .rc-pline > input[name="date"] { flex: 1.4 1 0; }
body dialog.rc-dialog .rc-pline > input[name="time"] { flex: .8 1 0; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-chipr span, :root[data-theme="dark"] body dialog.rc-dialog .rc-ampm span, :root[data-theme="dark"] body dialog.rc-dialog .rc-linkbtn, :root[data-theme="dark"] body dialog.rc-dialog .rc-plist-row, :root[data-theme="dark"] body dialog.rc-dialog .rc-person-real strong { color: #EEF2F8; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-chipr span, :root[data-theme="dark"] body dialog.rc-dialog .rc-ampm span { border-color: #313B4F; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-plist { background: rgba(142, 155, 178, .08); }
:root[data-theme="dark"] body dialog.rc-dialog .rc-plist-row.is-on { background: rgba(142, 155, 178, .18); }
:root[data-theme="dark"] body dialog.rc-dialog .rc-sh { background: rgba(142, 155, 178, .18); color: #EEF2F8; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-draftnote { color: #EEF2F8; }
/* ---------- Agenda con Cuadernos y Reloj; Pendientes/Completados juntos (2026-10-22) ---------- */
body dialog.rc-dialog .rc-tabs2 { display: flex; gap: 8px; padding: 10px 14px 4px; }
body dialog.rc-dialog .rc-tab2 { all: unset; cursor: pointer; padding: 7px 16px; border-radius: 999px; border: 1.5px solid #E2E6EE; font: 800 14px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body dialog.rc-dialog .rc-tab2.is-on { background: #E55B13; border-color: #E55B13; color: #FFFFFF; }
body dialog.rc-dialog .rc-tab2:focus-visible { outline: 2px solid #4A3FB5; outline-offset: 2px; }
body dialog.rc-dialog .rc-nbk { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #E2E6EE; cursor: pointer; }
body dialog.rc-dialog .rc-nbk > span { flex: 1; min-width: 0; display: grid; }
body dialog.rc-dialog .rc-nbk strong { font: 800 15px Manrope, system-ui, sans-serif; color: #1B1F2A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body dialog.rc-dialog .rc-nbk small { font: 600 12px Manrope, system-ui, sans-serif; color: #5B6070; }
body dialog.rc-dialog .rc-nbk .rc-avatar svg { width: 22px; height: 22px; }
body dialog.rc-dialog .rc-nbk:focus-visible { outline: 2px solid #E55B13; border-radius: 10px; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-tab2 { color: #EEF2F8; border-color: #313B4F; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-nbk strong { color: #EEF2F8; }
/* ---------- Empresa: secciones que llegan después, visibles y apagadas (2026-10-22) ---------- */
.ian-chat .ic-co-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.ian-chat .ic-co-tabs::-webkit-scrollbar { display: none; }
.ian-chat .ic-co-tabs button { flex: none; white-space: nowrap; }
.ian-chat .ic-soon-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.ian-chat .ic-soon-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 2px; border-bottom: 1px solid #E2E6EE; opacity: .7; }
.ian-chat .ic-soon-list li span { display: grid; min-width: 0; }
.ian-chat .ic-soon-list li b { font: 800 14px Manrope, system-ui, sans-serif; color: #1B1F2A; }
.ian-chat .ic-soon-list li small { font: 600 12px Manrope, system-ui, sans-serif; color: #5B6070; }
:root[data-theme="dark"] .ian-chat .ic-soon-list li b { color: #EEF2F8; }
.ian-plantillas .plt-grp { list-style: none; padding: 14px 2px 4px; }
.ian-plantillas .plt-grp b { font: 800 12px Manrope, system-ui, sans-serif; color: #1B1F2A; text-transform: uppercase; letter-spacing: .06em; }
:root[data-theme="dark"] .ian-plantillas .plt-grp b { color: #EEF2F8; }

/* hora actual junto al campo de hora */
body dialog.rc-dialog .rc-nowbtn { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #F4F6FA; color: #1B1F2A; cursor: pointer; }
body dialog.rc-dialog .rc-nowbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ===== Barra de abajo delgada y siempre a la mano (2026-10-22) ===== */
html body #view-notes .nh .nh-bottom.nh-tribar, html body .ian-chat .ic-appnav, html body .seima-dock {
  left: 0 !important; right: 0 !important; bottom: 0 !important; width: auto !important; border-radius: 0 !important; gap: 0 !important;
  padding: 2px 4px calc(2px + env(safe-area-inset-bottom)) !important; background: #F4F6FA !important; border: 0 !important; border-top: 1px solid rgba(74, 63, 181, .12) !important; box-shadow: none !important;
}
:root[data-theme="dark"] body #view-notes .nh .nh-bottom.nh-tribar, :root[data-theme="dark"] body #view-notes .nh .nh-bottom.nh-tribar, :root[data-theme="dark"] body .ian-chat .ic-appnav, :root[data-theme="dark"] body .seima-dock { background: #232B3A !important; border-top-color: rgba(255, 255, 255, .12) !important; }
html body #view-notes .nh .nh-tribar button, html body .ian-chat .ic-appnav button, html body .seima-dock button,
html body #view-notes .nh .nh-tribar button.is-center, html body .ian-chat .ic-appnav button.is-center {
  all: unset; box-sizing: border-box; position: relative !important; top: 0 !important; width: auto !important; height: auto !important; min-height: 42px !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 1px !important;
  padding: 3px 2px !important; border: 0 !important; border-radius: 12px !important; background: transparent !important; box-shadow: none !important; color: #5B6070 !important; font: 700 10px Manrope, system-ui, sans-serif !important; cursor: pointer;
}
:root[data-theme="dark"] body #view-notes .nh .nh-tribar button, :root[data-theme="dark"] body .ian-chat .ic-appnav button, :root[data-theme="dark"] body .seima-dock button { color: #B8C4D8 !important; }
html body #view-notes .nh .nh-tribar button svg, html body .ian-chat .ic-appnav button svg, html body .seima-dock button svg,
html body #view-notes .nh .nh-tribar button.is-center svg, html body .ian-chat .ic-appnav button.is-center svg { width: 20px !important; height: 20px !important; padding: 0 !important; background: none !important; color: inherit !important; }
html body #view-notes .nh .nh-tribar button span, html body .ian-chat .ic-appnav button span, html body .seima-dock button span,
html body #view-notes .nh .nh-tribar button.is-center span, html body .ian-chat .ic-appnav button.is-center span { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; font-size: 10px !important; line-height: 1.1; white-space: nowrap; }
html body #view-notes .nh .nh-tribar button[aria-current="page"], html body #view-notes .nh .nh-tribar button[aria-current="page"]:not(.is-center), html body .ian-chat .ic-appnav button[aria-current="page"], html body .ian-chat .ic-appnav button[aria-current="page"]:not(.is-center), html body .seima-dock button[aria-current="page"],
html body #view-notes .nh .nh-tribar button.is-center[aria-current="page"], html body .ian-chat .ic-appnav button.is-center[aria-current="page"] { color: #1B1F2A !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
html body #view-notes .nh .nh-tribar button.is-center:not([aria-current="page"]), html body .ian-chat .ic-appnav button.is-center:not([aria-current="page"]) { border: 0 !important; width: auto !important; height: auto !important; top: 0 !important; background: transparent !important; }
html body #view-notes .nh .nh-tribar button:focus-visible, html body .ian-chat .ic-appnav button:focus-visible, html body .seima-dock button:focus-visible { outline: 2px solid #E55B13; outline-offset: -2px; }
html body #view-notes .nh .nh-tribar, html body .ian-chat .ic-appnav, html body .seima-dock { display: grid !important; grid-template-columns: repeat(5, 1fr) !important; }
html body .ian-chat .ic-appnav[hidden] { display: none !important; }
/* puntito de mensajes sin leer en el Chat */
html body [data-badge]::after { content: attr(data-badge); position: absolute; top: 1px; left: calc(50% + 6px); min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: #E55B13; color: #FFFFFF; font: 800 9px/15px Manrope, system-ui, sans-serif; text-align: center; box-sizing: border-box; }
/* la barra dentro de la Agenda */
body dialog.rc-dialog .seima-dock { position: absolute; z-index: 3; }
body dialog.rc-dialog:has(> .seima-dock) .rc-shell { height: calc(100% - 48px) !important; max-height: calc(100% - 48px) !important; }
@media (max-width: 719px) {
  body dialog.rc-dialog:has(> .seima-dock) .rc-side { bottom: calc(46px + env(safe-area-inset-bottom)) !important; height: 46px !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
  body dialog.rc-dialog:has(> .seima-dock) .rc-side .rc-side-item { min-height: 40px !important; padding-top: 2px !important; padding-bottom: 2px !important; }
  body dialog.rc-dialog:has(> .seima-dock) .rc-side .rc-side-item svg { width: 18px !important; height: 18px !important; }
  body dialog.rc-dialog:has(> .seima-dock) .rc-side .rc-side-item span { font-size: 10px !important; }
}

/* ===== Barra de abajo: íconos blancos dentro de botones naranja, claro y oscuro (2026-10-22) ===== */
html body #view-notes .nh .nh-bottom.nh-tribar, html body .ian-chat .ic-appnav, html body .seima-dock { padding-top: 4px !important; transition: transform .22s ease, opacity .22s ease; }
html body #view-notes .nh .nh-tribar button, html body .ian-chat .ic-appnav button, html body .seima-dock button,
html body #view-notes .nh .nh-tribar button.is-center, html body .ian-chat .ic-appnav button.is-center { min-height: 54px !important; gap: 2px !important; }
html body #view-notes .nh .nh-tribar button svg, html body .ian-chat .ic-appnav button svg, html body .seima-dock button svg,
html body #view-notes .nh .nh-tribar button.is-center svg, html body .ian-chat .ic-appnav button.is-center svg {
  width: 34px !important; height: 34px !important; padding: 8px !important; box-sizing: border-box; border-radius: 50% !important; background: #E55B13 !important; color: #FFFFFF !important; stroke: #FFFFFF; box-shadow: 0 2px 6px rgba(229, 91, 19, .35);
}
html body #view-notes .nh .nh-tribar button[aria-current="page"] svg, html body .ian-chat .ic-appnav button[aria-current="page"] svg, html body .seima-dock button[aria-current="page"] svg,
html body #view-notes .nh .nh-tribar button.is-center[aria-current="page"] svg, html body .ian-chat .ic-appnav button.is-center[aria-current="page"] svg { background: #C24A0C !important; box-shadow: 0 0 0 2px #F4F6FA, 0 0 0 4px #E55B13; }
:root[data-theme="dark"] body #view-notes .nh .nh-tribar button[aria-current="page"] svg, :root[data-theme="dark"] body .ian-chat .ic-appnav button[aria-current="page"] svg, :root[data-theme="dark"] body .seima-dock button[aria-current="page"] svg { box-shadow: 0 0 0 2px #232B3A, 0 0 0 4px #FF7A33; }
html body #view-notes .nh .nh-tribar button span, html body .ian-chat .ic-appnav button span, html body .seima-dock button span { color: #1B1F2A !important; font-weight: 700 !important; }
:root[data-theme="dark"] body #view-notes .nh .nh-tribar button span, :root[data-theme="dark"] body .ian-chat .ic-appnav button span, :root[data-theme="dark"] body .seima-dock button span { color: #B8C4D8 !important; }
html body #view-notes .nh .nh-tribar button[aria-current="page"] span, html body .ian-chat .ic-appnav button[aria-current="page"] span, html body .seima-dock button[aria-current="page"] span { color: #1B1F2A !important; font-weight: 800 !important; }
:root[data-theme="dark"] body #view-notes .nh .nh-tribar button[aria-current="page"] span, :root[data-theme="dark"] body .ian-chat .ic-appnav button[aria-current="page"] span, :root[data-theme="dark"] body .seima-dock button[aria-current="page"] span { color: #EEF2F8 !important; }
html body [data-badge]::after { left: calc(50% + 8px); top: 0; background: #4A3FB5; box-shadow: 0 0 0 2px #F4F6FA; }
:root[data-theme="dark"] body [data-badge]::after { background: #FF7A33; color: #232B3A; box-shadow: 0 0 0 2px #232B3A; }
/* se esconde al bajar por una lista o página, y vuelve al subir */
html.seima-dock-hide body #view-notes .nh .nh-bottom.nh-tribar, html.seima-dock-hide body .ian-chat .ic-appnav { transform: translateY(110%); opacity: 0; pointer-events: none; }
body dialog.rc-dialog .seima-dock { position: absolute; }
body dialog.rc-dialog:has(> .seima-dock) .rc-shell { height: calc(100% - 58px) !important; max-height: calc(100% - 58px) !important; }
@media (max-width: 719px) {
  body dialog.rc-dialog:has(> .seima-dock) .rc-side { bottom: calc(58px + env(safe-area-inset-bottom)) !important; }
}

/* Botones siempre visibles: todos naranja, el de la pestaña actual más oscuro con aro (alta prioridad) */
html body #view-notes .nh .nh-tribar button:not(#z):not(#y), html body .ian-chat .ic-appnav button:not(#z):not(#y), html body .seima-dock button:not(#z):not(#y) {
  position: relative !important; top: 0 !important; width: auto !important; height: auto !important; min-height: 54px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 12px !important; padding: 3px 2px !important; margin: 0 !important; justify-self: stretch !important;
}
html body #view-notes .nh .nh-tribar button:not(#z):not(#y) svg, html body .ian-chat .ic-appnav button:not(#z):not(#y) svg, html body .seima-dock button:not(#z):not(#y) svg {
  width: 32px !important; height: 32px !important; padding: 8px !important; box-sizing: border-box !important; border-radius: 50% !important; background: #E55B13 !important; color: #FFFFFF !important; stroke: #FFFFFF; box-shadow: 0 2px 6px rgba(229, 91, 19, .3) !important; opacity: 1 !important; display: block !important;
}
html body #view-notes .nh .nh-tribar button[aria-current="page"]:not(#z):not(#y) svg, html body .ian-chat .ic-appnav button[aria-current="page"]:not(#z):not(#y) svg, html body .seima-dock button[aria-current="page"]:not(#z):not(#y) svg { background: #C24A0C !important; box-shadow: 0 0 0 2px #F4F6FA, 0 0 0 3px #E55B13 !important; }
:root[data-theme="dark"] body #view-notes .nh .nh-tribar button[aria-current="page"]:not(#z):not(#y) svg, :root[data-theme="dark"] body .ian-chat .ic-appnav button[aria-current="page"]:not(#z):not(#y) svg, :root[data-theme="dark"] body .seima-dock button[aria-current="page"]:not(#z):not(#y) svg { box-shadow: 0 0 0 2px #232B3A, 0 0 0 3px #FF7A33 !important; }
html body #view-notes .nh .nh-tribar button:not(#z):not(#y) span, html body .ian-chat .ic-appnav button:not(#z):not(#y) span, html body .seima-dock button:not(#z):not(#y) span { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; color: #1B1F2A !important; font-size: 10px !important; }
:root[data-theme="dark"] body #view-notes .nh .nh-tribar button:not(#z):not(#y) span, :root[data-theme="dark"] body .ian-chat .ic-appnav button:not(#z):not(#y) span, :root[data-theme="dark"] body .seima-dock button:not(#z):not(#y) span { color: #B8C4D8 !important; }
html body #view-notes .nh .nh-tribar button[aria-current="page"]:not(#z):not(#y) span, html body .ian-chat .ic-appnav button[aria-current="page"]:not(#z):not(#y) span, html body .seima-dock button[aria-current="page"]:not(#z):not(#y) span { color: #1B1F2A !important; font-weight: 800 !important; }
:root[data-theme="dark"] body #view-notes .nh .nh-tribar button[aria-current="page"]:not(#z):not(#y) span, :root[data-theme="dark"] body .ian-chat .ic-appnav button[aria-current="page"]:not(#z):not(#y) span, :root[data-theme="dark"] body .seima-dock button[aria-current="page"]:not(#z):not(#y) span { color: #EEF2F8 !important; }
/* línea más delgada */
html body #view-notes .nh .nh-bottom.nh-tribar:not(#z), html body .ian-chat .ic-appnav:not(#z), html body .seima-dock:not(#z) { border-top-width: 1px !important; border-top-color: rgba(74, 63, 181, .08) !important; padding: 2px 4px calc(2px + env(safe-area-inset-bottom)) !important; }
:root[data-theme="dark"] body #view-notes .nh .nh-bottom.nh-tribar:not(#z), :root[data-theme="dark"] body .ian-chat .ic-appnav:not(#z), :root[data-theme="dark"] body .seima-dock:not(#z) { border-top-color: rgba(255, 255, 255, .07) !important; }

/* Pestañas de Empresa: una sola fila que se desliza */
body .ian-chat .ic-co-tabs:not(#z) { display: flex !important; grid-template-columns: none !important; flex-wrap: nowrap !important; overflow-x: auto; gap: 4px; }
body .ian-chat .ic-co-tabs:not(#z) button { flex: none !important; padding: 0 14px !important; }

/* Empresa: selector de sección con flechita; al abrirlo se ven TODAS las secciones, sin cortar nada */
body .ian-chat .ic-co-pick:not(#z) { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 10px 14px; border-radius: 16px; background: var(--mono-accent-soft); cursor: pointer; color: var(--ic-text); }
body .ian-chat .ic-co-pick:not(#z) b { font: 800 16px Manrope, system-ui, sans-serif; }
body .ian-chat .ic-co-pick:not(#z) span { margin-left: auto; font: 700 12px Manrope, system-ui, sans-serif; opacity: .75; }
body .ian-chat .ic-co-pick:not(#z) svg { width: 22px; height: 22px; flex: none; padding: 4px; box-sizing: border-box; border-radius: 50%; background: #E55B13; color: #FFFFFF; transition: transform .2s ease; }
body .ian-chat .ic-co-pick[aria-expanded="true"]:not(#z) svg { transform: rotate(180deg); }
body .ian-chat .ic-co-grid:not(#z) { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; overflow: visible; gap: 6px; border-radius: 16px; margin-top: 8px; }
body .ian-chat .ic-co-grid:not(#z) button { min-height: 44px !important; padding: 0 8px !important; border-radius: 12px !important; }

/* Chat: pestañas Personas | Empresa */
body .ian-chat .ic-scope:not(#z) { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 4px 0 10px; padding: 4px; border-radius: 999px; background: var(--mono-accent-soft); }
body .ian-chat .ic-scope:not(#z) button { all: unset; box-sizing: border-box; text-align: center; min-height: 38px; line-height: 38px; border-radius: 999px; cursor: pointer; color: var(--ic-text); font: 800 14px Manrope, system-ui, sans-serif; }
body .ian-chat .ic-scope:not(#z) button[aria-selected="true"] { background: #E55B13; color: #FFFFFF; }

/* Agenda en celular: las secciones van arriba, en una fila de botones pequeños (no se confunden con la barra de abajo) */
@media (max-width: 719px) {
  body dialog.rc-dialog .rc-main > .rc-side:not(#z) { position: static !important; inset: auto !important; display: flex !important; flex-direction: row !important; gap: 6px; width: auto !important; height: auto !important; min-height: 0 !important; margin: 4px 12px 6px; padding: 4px !important; border-radius: 999px !important; background: var(--mono-accent-soft, #F4F6FA) !important; border: 0 !important; box-shadow: none !important; overflow-x: auto; }
  body dialog.rc-dialog .rc-main > .rc-side:not(#z) .rc-side-item { flex: 1 0 auto; flex-direction: row !important; gap: 6px; min-height: 36px !important; padding: 0 12px !important; border-radius: 999px !important; }
  body dialog.rc-dialog .rc-main > .rc-side:not(#z) .rc-side-item svg { width: 16px !important; height: 16px !important; }
  body dialog.rc-dialog .rc-main > .rc-side:not(#z) .rc-side-item span { font-size: 12px !important; }
  body dialog.rc-dialog .rc-main > .rc-side:not(#z) .rc-side-item.is-active, body dialog.rc-dialog .rc-main > .rc-side:not(#z) .rc-side-item[aria-current="page"] { background: #E55B13 !important; }
  body dialog.rc-dialog .rc-main > .rc-side:not(#z) .rc-side-item.is-active span, body dialog.rc-dialog .rc-main > .rc-side:not(#z) .rc-side-item.is-active svg, body dialog.rc-dialog .rc-main > .rc-side:not(#z) .rc-side-item[aria-current="page"] span, body dialog.rc-dialog .rc-main > .rc-side:not(#z) .rc-side-item[aria-current="page"] svg { color: #FFFFFF !important; }
}
@media (max-width: 719px) {
  body dialog.rc-dialog .rc-main > .rc-side:not(#z) { scrollbar-width: none; gap: 2px; }
  body dialog.rc-dialog .rc-main > .rc-side:not(#z)::-webkit-scrollbar { display: none; }
  body dialog.rc-dialog .rc-main > .rc-side:not(#z) .rc-side-item { flex: 1 1 0 !important; justify-content: center; gap: 4px !important; padding: 0 6px !important; min-width: 0; }
  body dialog.rc-dialog .rc-main > .rc-side:not(#z) .rc-side-item span { font-size: 11px !important; white-space: nowrap; }
  body dialog.rc-dialog .rc-main > .rc-side:not(#z) .rc-side-item svg { width: 14px !important; height: 14px !important; flex: none; }
}

/* ===== Legibilidad (22-oct, fallas vistas en el celular) ===== */
/* 1) Letras al escribir un mensaje: siempre se ven, en claro y en oscuro (antes salían claras sobre fondo blanco) */
body .ian-chat .ic-compose-row .ic-field textarea:not(#z), body .ian-chat .ic-gform .ic-field textarea:not(#z) { color: #1B1F2A !important; caret-color: #E55B13; font-size: 16px; opacity: 1; }
body .ian-chat .ic-compose-row .ic-field textarea:not(#z)::placeholder, body .ian-chat .ic-gform .ic-field textarea:not(#z)::placeholder { color: #5B6070; opacity: 1; }
:root[data-theme="dark"] body .ian-chat .ic-compose-row .ic-field:not(#z), :root[data-theme="dark"] body .ian-chat .ic-gform .ic-field:not(#z), body .ian-chat[data-ic-theme="dark"] .ic-compose-row .ic-field:not(#z), body .ian-chat[data-ic-theme="dark"] .ic-gform .ic-field:not(#z) { background: #313B4F !important; border-color: #313B4F !important; }
:root[data-theme="dark"] body .ian-chat .ic-compose-row .ic-field textarea:not(#z), :root[data-theme="dark"] body .ian-chat .ic-gform .ic-field textarea:not(#z), body .ian-chat[data-ic-theme="dark"] .ic-compose-row .ic-field textarea:not(#z), body .ian-chat[data-ic-theme="dark"] .ic-gform .ic-field textarea:not(#z) { color: #EEF2F8 !important; }
:root[data-theme="dark"] body .ian-chat .ic-compose-row .ic-field textarea:not(#z)::placeholder, :root[data-theme="dark"] body .ian-chat .ic-gform .ic-field textarea:not(#z)::placeholder, body .ian-chat[data-ic-theme="dark"] .ic-compose-row .ic-field textarea:not(#z)::placeholder, body .ian-chat[data-ic-theme="dark"] .ic-gform .ic-field textarea:not(#z)::placeholder { color: #B8C4D8; }
/* 2) Aviso amarillo de «cuenta nueva»: letra oscura sobre fondo claro (claro) y letra clara (oscuro) */
body .ian-chat .ic-warn:not(#z) { background: #E2E6EE; border: 1px solid #E55B13; color: #1B1F2A; font-size: 14px; font-weight: 600; line-height: 1.4; }
:root[data-theme="dark"] body .ian-chat .ic-warn:not(#z) { background: #313B4F; border-color: #E55B13; color: #EEF2F8; }
/* 3) Bienvenida «Avisos opcionales»: fondo sólido (sin botones fantasma detrás) y colores de meldune en claro y oscuro */
body .ian-welcome:not(#z) { background: #F4F6FA; backdrop-filter: none; }
body .ian-welcome:not(#z) .ian-welcome-card { background: #FFFFFF; color: #1B1F2A; border: 1px solid #E2E6EE; box-shadow: 0 12px 36px rgba(74, 63, 181, .15); }
body .ian-welcome:not(#z) .ian-welcome-card p { color: #1B1F2A; }
body .ian-welcome:not(#z) .ian-welcome-card label { background: #F4F6FA; }
body .ian-welcome:not(#z) .ian-welcome-card label small, body .ian-welcome:not(#z) .ian-welcome-note { color: #5B6070; }
body .ian-welcome:not(#z) .ian-welcome-yes { background: #E55B13; border-color: #E55B13; color: #FFFFFF; }
body .ian-welcome:not(#z) .ian-welcome-no { color: #1B1F2A; text-decoration: underline; }
:root[data-theme="dark"] body .ian-welcome:not(#z) { background: #232B3A; }
:root[data-theme="dark"] body .ian-welcome:not(#z) .ian-welcome-card { background: #313B4F; color: #EEF2F8; border-color: #313B4F; }
:root[data-theme="dark"] body .ian-welcome:not(#z) .ian-welcome-card p { color: #B8C4D8; }
:root[data-theme="dark"] body .ian-welcome:not(#z) .ian-welcome-card label { background: #232B3A; }
:root[data-theme="dark"] body .ian-welcome:not(#z) .ian-welcome-card label small, :root[data-theme="dark"] body .ian-welcome:not(#z) .ian-welcome-note { color: #EEF2F8; }
:root[data-theme="dark"] body .ian-welcome:not(#z) .ian-welcome-no { color: #B8C4D8; }

/* Foto recibida: pregunta antes de mostrarla */
body .ian-chat .ic-photo-ask:not(#z) { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; min-width: 200px; padding: 12px 14px; border-radius: 16px; background: #F4F6FA; color: #1B1F2A; cursor: pointer; border: 1px dashed #E55B13; }
body .ian-chat .ic-photo-ask:not(#z) svg { width: 30px; height: 30px; flex: none; padding: 6px; box-sizing: border-box; border-radius: 50%; background: #E55B13; color: #FFFFFF; }
body .ian-chat .ic-photo-ask:not(#z) span { display: grid; gap: 1px; text-align: left; }
body .ian-chat .ic-photo-ask:not(#z) b { font: 800 14px Manrope, system-ui, sans-serif; }
body .ian-chat .ic-photo-ask:not(#z) small { font: 500 12px Manrope, system-ui, sans-serif; opacity: .8; }
:root[data-theme="dark"] body .ian-chat .ic-photo-ask:not(#z), body .ian-chat[data-ic-theme="dark"] .ic-photo-ask:not(#z) { background: #232B3A; color: #EEF2F8; }
body .ian-chat .ic-img-confirm { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(13, 20, 38, .55); }
body .ian-chat .ic-img-confirm-card { width: min(320px, 100%); display: grid; gap: 8px; padding: 18px; border-radius: 22px; background: #FFFFFF; color: #1B1F2A; text-align: center; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
body .ian-chat .ic-img-confirm-card b { font: 800 17px Manrope, system-ui, sans-serif; }
body .ian-chat .ic-img-confirm-card p { margin: 0; color: #1B1F2A; }
:root[data-theme="dark"] body .ian-chat .ic-img-confirm-card, body .ian-chat[data-ic-theme="dark"] .ic-img-confirm-card { background: #313B4F; color: #EEF2F8; }
:root[data-theme="dark"] body .ian-chat .ic-img-confirm-card p, body .ian-chat[data-ic-theme="dark"] .ic-img-confirm-card p { color: #B8C4D8; }

/* Compartir / cámara: botones naranja con ícono blanco (visibles en claro y oscuro) */
body .ic-sharesheet .ic-share-item .ic-share-ic:not(#z), body .ic-sharesheet .ic-share-item:nth-child(n) .ic-share-ic:not(#z) { background: #E55B13; color: #FFFFFF; box-shadow: 0 3px 8px rgba(229, 91, 19, .3); }
body .ic-sharesheet .ic-share-item.is-soon .ic-share-ic:not(#z) { background: #9AA3B5; color: #FFFFFF; box-shadow: none; }
:root[data-theme="dark"] body .ic-sharesheet .ic-share-item.is-soon .ic-share-ic:not(#z) { background: #3F4A62; }
body .ic-sharesheet .ic-share-item b:not(#z) { color: #1B1F2A; font-size: 13px; }
body .ic-sharesheet .ic-share-item small:not(#z) { color: #5B6070; }
:root[data-theme="dark"] body .ic-sharesheet:not(#z) { background: #313B4F; color: #EEF2F8; }
:root[data-theme="dark"] body .ic-sharesheet .ic-share-item b:not(#z) { color: #EEF2F8; }
:root[data-theme="dark"] body .ic-sharesheet .ic-share-item small:not(#z) { color: #EEF2F8; }
:root[data-theme="dark"] body .ic-sharesheet .ic-share-x:not(#z), :root[data-theme="dark"] body .ic-sharesheet .ic-share-back:not(#z) { background: #E55B13; color: #EEF2F8; }
body .ic-sharesheet .ic-share-x:not(#z), body .ic-sharesheet .ic-share-back:not(#z) { background: #E55B13; color: #FFFFFF; }
/* botones del campo de escribir (clip, cámara) en naranja */
body .ian-chat .ic-compose-row .ic-field .ic-soon-btn:not(#z), body .ian-chat .ic-gform .ic-field .ic-soon-btn:not(#z) { color: #1B1F2A; }
body .ian-chat .ic-compose-row .ic-field .ic-soon-btn svg:not(#z), body .ian-chat .ic-gform .ic-field .ic-soon-btn svg:not(#z) { stroke: currentColor; }

/* Agenda › Personas: Personal | Empresarial y «⋯» para pasar o copiar */
body dialog.rc-dialog .rc-books:not(#z) { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--mono-accent-soft, #F4F6FA); margin-bottom: 8px; }
body dialog.rc-dialog .rc-books:not(#z) button { all: unset; box-sizing: border-box; text-align: center; min-height: 38px; line-height: 38px; border-radius: 999px; cursor: pointer; font: 800 14px Manrope, system-ui, sans-serif; color: #1B1F2A; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-books:not(#z) button { color: #EEF2F8; }
body dialog.rc-dialog .rc-books:not(#z) button[aria-selected="true"] { background: #E55B13; color: #FFFFFF; }
body dialog.rc-dialog .rc-person-wrap:not(#z) { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; }
body dialog.rc-dialog .rc-person-wrap:not(#z) .rc-book-menu { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #E55B13; color: #FFFFFF; font: 900 20px/1 Manrope, system-ui, sans-serif; cursor: pointer; }
body dialog.rc-dialog .rc-person-wrap:not(#z) .rc-book-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 4px 10px; }
body dialog.rc-dialog .rc-person-wrap:not(#z) .rc-book-acts button { all: unset; box-sizing: border-box; padding: 8px 14px; border-radius: 999px; background: #F4F6FA; color: #1B1F2A; font: 800 13px Manrope, system-ui, sans-serif; cursor: pointer; border: 1px solid #E55B13; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-person-wrap:not(#z) .rc-book-acts button { background: #232B3A; color: #EEF2F8; border-color: #3F4A62; }

body dialog.rc-dialog .rc-person-wrap:not(#z) .rc-avatar { background: #E55B13; color: #FFFFFF; }

/* Chulitos del chat: siempre visibles (una pastilla azul noche con chulitos claros; leído = chulitos ámbar), en cualquier fondo */
body .ian-chat .ic-delivery:not(#z):not(#y) { display: inline-grid; place-items: center; width: auto; min-width: 26px; height: 18px; padding: 0 5px; border-radius: 9px; background: #4A3FB5; color: #FFFFFF; box-shadow: 0 0 0 1px rgba(255, 255, 255, .55); }
body .ian-chat .ic-delivery:not(#z):not(#y) svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.6; }
body .ian-chat .ic-delivery.read:not(#z):not(#y) { background: #4A3FB5; color: #1B1F2A; width: auto; height: 18px; }
body .ian-chat .ic-delivery.read:not(#z):not(#y) svg { width: 15px; height: 15px; stroke-width: 2.8; }
:root[data-theme="dark"] body .ian-chat .ic-delivery.read:not(#z):not(#y) { background: #4A3FB5; }

/* Grabar audio como WhatsApp: mantener presionado, soltar = enviar, deslizar = cancelar o fijar */
body .ian-chat [data-act="rec-start"] { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body .ian-chat .ic-recording:not(#z) { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 26px; background: #FFFFFF; border: 1px solid #E2E6EE; color: #1B1F2A; }
:root[data-theme="dark"] body .ian-chat .ic-recording:not(#z), body .ian-chat[data-ic-theme="dark"] .ic-recording:not(#z) { background: #313B4F; border-color: #313B4F; color: #EEF2F8; }
body .ian-chat .ic-recording:not(#z) b { font: 800 15px Manrope, system-ui, sans-serif; min-width: 38px; }
body .ian-chat .ic-recording:not(#z) [data-ic-rec-hint] { flex: 1; min-width: 0; font: 600 13px Manrope, system-ui, sans-serif; opacity: .9; }
body .ian-chat .ic-recording [data-ic-rec-hint].is-danger { color: #C0392B; font-weight: 800; opacity: 1; }
body .ian-chat .ic-recording.is-hold:not(#z) [data-act="rec-pause"], body .ian-chat .ic-recording.is-hold:not(#z) [data-act="rec-cancel"], body .ian-chat .ic-recording.is-hold:not(#z) [data-act="rec-send"] { display: none; }
body .ian-chat .ic-recording.is-paused .ic-rec-dot { animation: none; opacity: .4; }
body .ian-chat .ic-recording:not(#z) [data-act="rec-pause"] { color: #1B1F2A; font-weight: 800; }
:root[data-theme="dark"] body .ian-chat .ic-recording:not(#z) [data-act="rec-pause"] { color: #EEF2F8; }

/* Respuestas rápidas: lista que sale al escribir «/» */
body .ian-chat .ic-quickpop:not(#z) { display: grid; gap: 4px; padding: 6px; margin-bottom: 6px; border-radius: 16px; background: #FFFFFF; border: 1px solid #E2E6EE; box-shadow: 0 6px 18px rgba(74, 63, 181, .15); max-height: 220px; overflow: auto; }
body .ian-chat .ic-quickpop:not(#z) button { all: unset; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; cursor: pointer; color: #1B1F2A; font: 600 14px Manrope, system-ui, sans-serif; }
body .ian-chat .ic-quickpop:not(#z) button:hover, body .ian-chat .ic-quickpop:not(#z) button:focus-visible { background: #F4F6FA; outline: none; }
:root[data-theme="dark"] body .ian-chat .ic-quickpop:not(#z), body .ian-chat[data-ic-theme="dark"] .ic-quickpop:not(#z) { background: #313B4F; border-color: #313B4F; }
:root[data-theme="dark"] body .ian-chat .ic-quickpop:not(#z) button, body .ian-chat[data-ic-theme="dark"] .ic-quickpop:not(#z) button { color: #EEF2F8; }
:root[data-theme="dark"] body .ian-chat .ic-quickpop:not(#z) button:hover, body .ian-chat[data-ic-theme="dark"] .ic-quickpop:not(#z) button:hover { background: #232B3A; }
body .ian-chat .ic-logo-pick:not(#z) { display: inline-grid; place-items: center; cursor: pointer; }

/* Filtros de la lista de chats: Todos · No leídos · Fijados */
body .ian-chat .ic-filters:not(#z) { display: flex; gap: 6px; margin: 8px 0 4px; overflow-x: auto; scrollbar-width: none; }
body .ian-chat .ic-filters:not(#z) button { all: unset; box-sizing: border-box; flex: none; padding: 7px 14px; border-radius: 999px; background: var(--mono-accent-soft, #F4F6FA); color: #1B1F2A; font: 700 13px Manrope, system-ui, sans-serif; cursor: pointer; }
:root[data-theme="dark"] body .ian-chat .ic-filters:not(#z) button, body .ian-chat[data-ic-theme="dark"] .ic-filters:not(#z) button { background: #232B3A; color: #EEF2F8; }
body .ian-chat .ic-filters:not(#z) button[aria-selected="true"] { background: #E55B13; color: #FFFFFF; }

body dialog.rc-dialog .rc-quick-hint:not(#z) { display: block; margin: -4px 0 6px 2px; color: #1B1F2A; font: 700 12.5px Manrope, system-ui, sans-serif; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-quick-hint:not(#z) { color: #EEF2F8; }
body dialog.rc-dialog .rc-quick-hint[hidden] { display: none; }

/* Agenda: línea «Siguiente» */
body dialog.rc-dialog .rc-next:not(#z) { all: unset; box-sizing: border-box; display: block; margin: 0 12px 6px; padding: 8px 14px; border-radius: 14px; background: #F4F6FA; color: #1B1F2A; font: 800 13px Manrope, system-ui, sans-serif; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-next:not(#z) { background: #232B3A; color: #EEF2F8; }
body dialog.rc-dialog .rc-next[hidden] { display: none; }

body .ian-chat .ic-thread-search:not(#z) { margin: 6px 10px; }
body .ian-chat .ic-thread-search:not(#z) small { flex: none; color: #5B6070; font: 700 12px Manrope, system-ui, sans-serif; }
:root[data-theme="dark"] body .ian-chat .ic-thread-search:not(#z) small { color: #EEF2F8; }

body .ian-chat .ic-message[hidden], body .ian-chat .ic-co-list > li[hidden], body .ian-chat [data-team-list] > li[hidden] { display: none !important; }

/* ===== Pantalla ancha (computador): la barra pasa a una columna delgada a la izquierda; dentro de la Agenda queda centrada ===== */
@media (min-width: 1000px) {
  html body #view-notes .nh .nh-bottom.nh-tribar:not(#z), html body .ian-chat .ic-appnav:not(#z) {
    top: 0 !important; bottom: 0 !important; left: 0 !important; right: auto !important; width: 92px !important; height: auto !important;
    grid-template-columns: 1fr !important; grid-auto-rows: min-content; align-content: center !important; gap: 8px !important;
    padding: 12px 6px !important; border-top: 0 !important; border-right: 1px solid rgba(74, 63, 181, .1) !important;
  }
  :root[data-theme="dark"] html body #view-notes .nh .nh-bottom.nh-tribar:not(#z), :root[data-theme="dark"] html body .ian-chat .ic-appnav:not(#z) { border-right-color: rgba(255, 255, 255, .1) !important; }
  html body #view-notes .nh .nh-tribar button:not(#z):not(#y), html body .ian-chat .ic-appnav button:not(#z):not(#y) { min-height: 62px !important; }
  html.seima-dock-hide body #view-notes .nh .nh-bottom.nh-tribar, html.seima-dock-hide body .ian-chat .ic-appnav { transform: none !important; opacity: 1 !important; pointer-events: auto !important; }
  body dialog.rc-dialog .seima-dock:not(#z) { left: 50% !important; right: auto !important; width: min(560px, 100%) !important; transform: translateX(-50%); border-radius: 16px 16px 0 0 !important; border: 1px solid rgba(74, 63, 181, .1) !important; border-bottom: 0 !important; }
  body dialog.rc-dialog:has(> .seima-dock) .rc-shell { height: calc(100% - 66px) !important; max-height: calc(100% - 66px) !important; }
}

/* Agenda: lugar, videollamada y archivos del plan */
body dialog.rc-dialog .rc-pline input[name="place"]:not(#z), body dialog.rc-dialog .rc-pline input[name="link"]:not(#z) { flex: 1; min-width: 0; }
body dialog.rc-dialog .rc-attachbox:not(#z) { display: grid; gap: 8px; }
body dialog.rc-dialog .rc-attachbox[hidden] { display: none; }
body dialog.rc-dialog .rc-attach-acts:not(#z) { display: flex; flex-wrap: wrap; gap: 8px; }
body dialog.rc-dialog .rc-attach-acts .rc-btn:not(#z) { cursor: pointer; }
body dialog.rc-dialog .rc-sheet-links:not(#z) { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
body dialog.rc-dialog .rc-sheet-links:not(#z) li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body dialog.rc-dialog .rc-sheet-links:not(#z) svg { width: 18px; height: 18px; flex: none; color: #1B1F2A; }
body dialog.rc-dialog .rc-sheet-links:not(#z) a, body dialog.rc-dialog .rc-sheet-links:not(#z) .rc-link { color: #1B1F2A; font-weight: 800; text-decoration: underline; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-sheet-links:not(#z) a, :root[data-theme="dark"] body dialog.rc-dialog .rc-sheet-links:not(#z) .rc-link { color: #EEF2F8; }

/* Empresa › Documentos: categorías */
body .ian-chat .ic-doc-grid:not(#z) { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
body .ian-chat .ic-doc-cat:not(#z) { all: unset; box-sizing: border-box; display: grid; gap: 2px; padding: 14px 12px; border-radius: 18px; background: var(--mono-accent-soft, #F4F6FA); color: #1B1F2A; cursor: pointer; border: 1px solid #E2E6EE; }
body .ian-chat .ic-doc-cat:not(#z) span { font-size: 26px; }
body .ian-chat .ic-doc-cat:not(#z) b { font: 800 14px Manrope, system-ui, sans-serif; }
body .ian-chat .ic-doc-cat:not(#z) small { font: 600 12px Manrope, system-ui, sans-serif; opacity: .8; }
:root[data-theme="dark"] body .ian-chat .ic-doc-cat:not(#z), body .ian-chat[data-ic-theme="dark"] .ic-doc-cat:not(#z) { background: #232B3A; color: #EEF2F8; border-color: #313B4F; }
body .ian-chat .ic-doc-cat:not(#z):focus-visible { outline: 3px solid #E55B13; }

/* Agenda › plan: panel limpio; lo demás se agrega con botones que dicen qué hacen */
body dialog.rc-dialog .rc-addbar:not(#z) { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 6px; }
body dialog.rc-dialog .rc-addbar-title:not(#z) { flex: 1 0 100%; font: 800 13px Manrope, system-ui, sans-serif; color: #5B6070; text-transform: uppercase; letter-spacing: .04em; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-addbar-title:not(#z) { color: #EEF2F8; }
body dialog.rc-dialog .rc-addchip:not(#z) { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: #F4F6FA; color: #1B1F2A; border: 1px solid #E2E6EE; font: 800 13px Manrope, system-ui, sans-serif; cursor: pointer; }
body dialog.rc-dialog .rc-addchip:not(#z) svg { width: 16px; height: 16px; }
body dialog.rc-dialog .rc-addchip[aria-pressed="true"]:not(#z) { background: #E55B13; color: #FFFFFF; border-color: #E55B13; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-addchip:not(#z) { background: #232B3A; color: #EEF2F8; border-color: #313B4F; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-addchip[aria-pressed="true"]:not(#z) { background: #E55B13; color: #EEF2F8; border-color: #E55B13; }
body dialog.rc-dialog .rc-opt:not(#z) { display: grid; gap: 8px; margin: 10px 0; padding: 12px; border-radius: 16px; background: rgba(229, 91, 19, .06); border: 1px solid rgba(229, 91, 19, .2); }
body dialog.rc-dialog .rc-opt[hidden] { display: none; }
body dialog.rc-dialog .rc-opt-title:not(#z) { margin: 0; display: flex; align-items: center; gap: 8px; font: 800 15px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body dialog.rc-dialog .rc-opt-title svg { width: 18px; height: 18px; }
body dialog.rc-dialog .rc-opt-sub:not(#z) { margin: 0; font: 600 12.5px Manrope, system-ui, sans-serif; color: #5B6070; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-opt-title:not(#z) { color: #EEF2F8; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-opt-sub:not(#z) { color: #EEF2F8; }
body dialog.rc-dialog .rc-opt .rc-pline > i:not(#z) { display: none; }
/* Sin columna de íconos sueltos en el panel del plan: cada cosa lleva su nombre */
body dialog.rc-dialog [data-rc-panel-form] .rc-pline > i:not(.rc-sw):not(#z) { display: none; }
body dialog.rc-dialog [data-rc-panel-form] .rc-pline:not(#z) { gap: 10px; }
body dialog.rc-dialog .rc-field-label:not(#z) { margin: 12px 0 4px; font: 800 12.5px Manrope, system-ui, sans-serif; color: #1B1F2A; text-transform: uppercase; letter-spacing: .04em; }
:root[data-theme="dark"] body dialog.rc-dialog .rc-field-label:not(#z) { color: #EEF2F8; }

body dialog.rc-dialog .rc-opt[data-rc-opt="attach"] .rc-pline:has([data-rc-attachopen]) { display: none; }
body dialog.rc-dialog .rc-opt[data-rc-opt="attach"] .rc-plist { margin: 0; }

/* ===== Ideas de otra app: progreso del día, resumen de la empresa y administración en filas ===== */
body #view-notes .nh .nh-today:not(#z) { all: unset; box-sizing: border-box; display: grid; gap: 6px; margin: 10px 0; padding: 12px 14px; border-radius: 16px; background: #F4F6FA; border: 1px solid #E2E6EE; cursor: pointer; width: 100%; }
body #view-notes .nh .nh-today-text:not(#z) { font: 700 14px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body #view-notes .nh .nh-today-bar:not(#z) { display: block; height: 8px; border-radius: 999px; background: rgba(229, 91, 19, .18); overflow: hidden; }
body #view-notes .nh .nh-today-bar i:not(#z) { display: block; height: 100%; border-radius: 999px; background: #E55B13; }
:root[data-theme="dark"] body #view-notes .nh .nh-today:not(#z) { background: #232B3A; border-color: #313B4F; }
:root[data-theme="dark"] body #view-notes .nh .nh-today-text:not(#z) { color: #EEF2F8; }
body #view-notes .nh .nh-version:not(#z) { margin: 18px 0 6px; text-align: center; font: 600 12px Manrope, system-ui, sans-serif; color: #5B6070; }
:root[data-theme="dark"] body #view-notes .nh .nh-version:not(#z) { color: #EEF2F8; }
body .ian-chat .ic-stats:not(#z) { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
body .ian-chat .ic-stat:not(#z) { display: grid; gap: 2px; justify-items: center; padding: 10px 6px; border-radius: 14px; background: var(--mono-accent-soft, #F4F6FA); }
body .ian-chat .ic-stat b:not(#z) { font: 900 22px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body .ian-chat .ic-stat small:not(#z) { font: 700 11.5px Manrope, system-ui, sans-serif; text-align: center; color: #1B1F2A; }
:root[data-theme="dark"] body .ian-chat .ic-stat:not(#z), body .ian-chat[data-ic-theme="dark"] .ic-stat:not(#z) { background: #232B3A; }
:root[data-theme="dark"] body .ian-chat .ic-stat small:not(#z), body .ian-chat[data-ic-theme="dark"] .ic-stat small:not(#z) { color: #B8C4D8; }
body .ian-chat .ic-adm-list:not(#z) { display: grid; gap: 8px; margin-top: 8px; }
body .ian-chat .ic-adm-row:not(#z) { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--mono-accent-soft, #F4F6FA); border: 1px solid #E2E6EE; cursor: pointer; color: #1B1F2A; }
body .ian-chat .ic-adm-ic:not(#z) { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: #E55B13; font-size: 20px; }
body .ian-chat .ic-adm-row .ic-row-text:not(#z) { flex: 1; min-width: 0; display: grid; gap: 2px; }
body .ian-chat .ic-adm-row b:not(#z) { font: 800 15px Manrope, system-ui, sans-serif; }
body .ian-chat .ic-adm-row small:not(#z) { font: 600 12.5px Manrope, system-ui, sans-serif; opacity: .85; }
:root[data-theme="dark"] body .ian-chat .ic-adm-row:not(#z), body .ian-chat[data-ic-theme="dark"] .ic-adm-row:not(#z) { background: #232B3A; border-color: #313B4F; color: #EEF2F8; }
body .ian-chat .ic-adm-row:focus-visible:not(#z) { outline: 3px solid #E55B13; }

/* ===== Barras de color (PRUEBA): arriba y abajo con el mismo color de meldune; se prende en Ajustes ===== */
html.seima-bars body #view-notes .nh .nh-appbar:not(#z), html.seima-bars body .ian-chat .ic-head:not(#z), html.seima-bars body dialog.rc-dialog .rc-head:not(#z) {
  background: linear-gradient(135deg, #E55B13 0%, #C24A0C 100%) !important; color: #FFFFFF !important; border-radius: 0 0 20px 20px; box-shadow: 0 4px 14px rgba(168, 63, 8, .3);
}
html.seima-bars body #view-notes .nh .nh-appbar *:not(svg):not(path):not(input):not(#z), html.seima-bars body .ian-chat .ic-head *:not(svg):not(path):not(#z), html.seima-bars body dialog.rc-dialog .rc-head *:not(svg):not(path):not(#z) { color: #FFFFFF !important; }
html.seima-bars body #view-notes .nh .nh-appbar svg:not(#z), html.seima-bars body .ian-chat .ic-head svg:not(#z), html.seima-bars body dialog.rc-dialog .rc-head svg:not(#z) { color: #FFFFFF !important; stroke: currentColor; }
html.seima-bars body .ian-chat .ic-head button:not(.ic-iabubble):not(#z), html.seima-bars body dialog.rc-dialog .rc-head button:not(#z) { background: rgba(255, 255, 255, .2) !important; box-shadow: none !important; border-color: transparent !important; }
html.seima-bars body #view-notes .nh .nh-appbar .nh-search:not(#z) { background: rgba(255, 255, 255, .22) !important; }
html.seima-bars body #view-notes .nh .nh-appbar .nh-search input:not(#z)::placeholder { color: rgba(255, 255, 255, .85); }
html.seima-bars body #view-notes .nh .nh-bottom.nh-tribar:not(#z), html.seima-bars body .ian-chat .ic-appnav:not(#z), html.seima-bars body .seima-dock:not(#z) {
  background: linear-gradient(135deg, #E55B13 0%, #C24A0C 100%) !important; border-top: 0 !important; border-radius: 20px 20px 0 0 !important; box-shadow: 0 -4px 14px rgba(168, 63, 8, .3) !important;
}
html.seima-bars body #view-notes .nh .nh-tribar button svg:not(#z), html.seima-bars body .ian-chat .ic-appnav button svg:not(#z), html.seima-bars body .seima-dock button svg:not(#z) { background: #FFFFFF !important; color: #1B1F2A !important; stroke: #E55B13; box-shadow: none !important; }
html.seima-bars body #view-notes .nh .nh-tribar button span:not(#z), html.seima-bars body .ian-chat .ic-appnav button span:not(#z), html.seima-bars body .seima-dock button span:not(#z) { color: #FFFFFF !important; }
html.seima-bars body #view-notes .nh .nh-tribar button[aria-current="page"] svg:not(#z), html.seima-bars body .ian-chat .ic-appnav button[aria-current="page"] svg:not(#z), html.seima-bars body .seima-dock button[aria-current="page"] svg:not(#z) { background: #4A3FB5 !important; color: #FFFFFF !important; stroke: #FFFFFF; box-shadow: 0 0 0 2px #FFFFFF !important; }
html.seima-bars body #view-notes .nh .nh-tribar button svg:not(#z):not(#y):not(#x), html.seima-bars body .ian-chat .ic-appnav button svg:not(#z):not(#y):not(#x), html.seima-bars body .seima-dock button svg:not(#z):not(#y):not(#x) { background: #FFFFFF !important; color: #1B1F2A !important; stroke: #E55B13 !important; box-shadow: none !important; }
html.seima-bars body #view-notes .nh .nh-tribar button span:not(#z):not(#y):not(#x), html.seima-bars body .ian-chat .ic-appnav button span:not(#z):not(#y):not(#x), html.seima-bars body .seima-dock button span:not(#z):not(#y):not(#x) { color: #FFFFFF !important; }
html.seima-bars body #view-notes .nh .nh-tribar button[aria-current="page"] svg:not(#z):not(#y):not(#x), html.seima-bars body .ian-chat .ic-appnav button[aria-current="page"] svg:not(#z):not(#y):not(#x), html.seima-bars body .seima-dock button[aria-current="page"] svg:not(#z):not(#y):not(#x) { background: #4A3FB5 !important; color: #FFFFFF !important; stroke: #FFFFFF !important; box-shadow: 0 0 0 2px #FFFFFF !important; }

/* Recorrido de bienvenida: ahora dice qué botón es y para qué sirve (2026-10-24) */
.ian-coach { z-index: 2147483000; }
.ian-coach .coach-label:not(#z) { position: fixed; z-index: 2; box-sizing: border-box; display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: #FFFFFF; color: #1B1F2A; box-shadow: 0 8px 24px rgba(74, 63, 181, .35); text-align: center; pointer-events: none; }
.ian-coach .coach-label b:not(#z) { font: 900 18px Manrope, system-ui, sans-serif; color: #1B1F2A; }
.ian-coach .coach-label span:not(#z) { font: 700 14px Manrope, system-ui, sans-serif; color: #1B1F2A; }
.ian-coach .coach-label small:not(#z) { font: 700 12px Manrope, system-ui, sans-serif; color: #5B6070; margin-top: 4px; }
.ian-coach.is-hint .coach-label { display: none; }

/* Catálogo: tarjetas de producto (idea de las apps de tienda) */
body .ian-chat .ic-prod-grid:not(#z) { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 10px 0; }
body .ian-chat .ic-prod:not(#z) { display: grid; gap: 4px; align-content: start; padding: 8px; border-radius: 16px; background: var(--mono-accent-soft, #F4F6FA); border: 1px solid #E2E6EE; }
body .ian-chat .ic-prod img:not(#z), body .ian-chat .ic-prod-ph:not(#z) { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: #FFFFFF; display: grid; place-items: center; font-size: 36px; }
body .ian-chat .ic-prod b:not(#z) { font: 800 14px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body .ian-chat .ic-prod-price:not(#z) { font: 900 15px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body .ian-chat .ic-prod small:not(#z) { font: 600 12px Manrope, system-ui, sans-serif; color: #1B1F2A; }
body .ian-chat .ic-prod-acts:not(#z) { display: grid; gap: 4px; margin-top: 4px; }
:root[data-theme="dark"] body .ian-chat .ic-prod:not(#z), body .ian-chat[data-ic-theme="dark"] .ic-prod:not(#z) { background: #232B3A; border-color: #313B4F; }
:root[data-theme="dark"] body .ian-chat .ic-prod b:not(#z), body .ian-chat[data-ic-theme="dark"] .ic-prod b:not(#z) { color: #EEF2F8; }
:root[data-theme="dark"] body .ian-chat .ic-prod small:not(#z), body .ian-chat[data-ic-theme="dark"] .ic-prod small:not(#z) { color: #B8C4D8; }

body .ian-chat .ic-stats-4:not(#z) { grid-template-columns: repeat(2, 1fr); }
body .ian-chat .ic-stats-4 .ic-stat b:not(#z) { font-size: 17px; }
body .ian-chat .ic-prod-link:not(#z) { text-align: center; text-decoration: none; }

/* Chat: pestañas Mensajes · Grupos · Llamadas, estados vacíos y grupos en tarjetas */
body .ian-chat .ic-scope-3:not(#z) { grid-template-columns: repeat(3, 1fr); }
body .ian-chat .ic-empty-state:not(#z) { display: grid; justify-items: center; gap: 6px; padding: 24px 12px; text-align: center; }
body .ian-chat .ic-empty-state span:not(#z) { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--mono-accent-soft, #F4F6FA); font-size: 40px; }
body .ian-chat .ic-empty-state b:not(#z) { font: 800 17px Manrope, system-ui, sans-serif; }
body .ian-chat .ic-empty-state small:not(#z) { max-width: 280px; font: 600 13px Manrope, system-ui, sans-serif; opacity: .85; }
body .ian-chat .ic-group-grid:not(#z) { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
body .ian-chat .ic-group-card:not(#z) { all: unset; box-sizing: border-box; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 14px 8px; border-radius: 18px; background: var(--mono-accent-soft, #F4F6FA); border: 1px solid #E2E6EE; cursor: pointer; color: #1B1F2A; }
body .ian-chat .ic-group-card b:not(#z) { font: 800 14px Manrope, system-ui, sans-serif; }
body .ian-chat .ic-group-card small:not(#z) { font: 600 12px Manrope, system-ui, sans-serif; opacity: .8; }
:root[data-theme="dark"] body .ian-chat .ic-group-card:not(#z), body .ian-chat[data-ic-theme="dark"] .ic-group-card:not(#z) { background: #232B3A; border-color: #313B4F; color: #EEF2F8; }
:root[data-theme="dark"] body .ian-chat .ic-empty-state span:not(#z), body .ian-chat[data-ic-theme="dark"] .ic-empty-state span:not(#z) { background: #232B3A; }

/* Inicio: estados y novedades de empresas */
.ies-strip { margin: 8px 0 4px; }
.ies-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.ies-me { all: unset; box-sizing: border-box; display: grid; justify-items: center; gap: 4px; cursor: pointer; }
.ies-circle { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; border: 3px dashed #E55B13; background: #F4F6FA; }
.ies-circle i { font-style: normal; font: 900 26px Manrope, system-ui, sans-serif; color: #1B1F2A; }
.ies-me small { font: 700 12px Manrope, system-ui, sans-serif; color: #1B1F2A; }
.ies-hint { margin: 6px 2px 0; font: 600 12.5px Manrope, system-ui, sans-serif; color: #5B6070; }
:root[data-theme="dark"] .ies-circle { background: #232B3A; }
:root[data-theme="dark"] .ies-me small { color: #EEF2F8; }
:root[data-theme="dark"] .ies-hint { color: #EEF2F8; }
.ies-sheet { position: fixed; inset: 0; z-index: 2147482000; display: grid; place-items: end center; background: rgba(13, 20, 38, .6); }
.ies-card { box-sizing: border-box; width: min(520px, 100%); max-height: 92dvh; overflow: auto; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #FFFFFF; color: #1B1F2A; display: grid; gap: 10px; font-family: Manrope, system-ui, sans-serif; }
.ies-card header { display: flex; align-items: center; justify-content: space-between; }
.ies-card header b { font: 900 18px Manrope, system-ui, sans-serif; }
.ies-x { all: unset; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #E55B13; color: #FFFFFF; font: 800 18px Manrope, sans-serif; cursor: pointer; }
.ies-media { width: 100%; max-height: 44dvh; border-radius: 16px; background: #4A3FB5; object-fit: contain; }
.ies-note { margin: 0; font: 700 13.5px Manrope, system-ui, sans-serif; color: #1B1F2A; }
.ies-note.is-error { color: #1B1F2A; }
.ies-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ies-parts li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #F4F6FA; }
.ies-parts label { display: flex; align-items: center; gap: 10px; }
.ies-parts input { width: 22px; height: 22px; accent-color: #E55B13; }
.ies-parts b { display: block; font: 800 14px Manrope, sans-serif; }
.ies-parts small { font: 600 12px Manrope, sans-serif; color: #5B6070; }
.ies-play { all: unset; padding: 6px 14px; border-radius: 999px; background: #E55B13; color: #FFFFFF; font: 800 13px Manrope, sans-serif; cursor: pointer; }
.ies-pick { display: grid; place-items: center; min-height: 46px; border-radius: 14px; border: 2px dashed #E55B13; color: #1B1F2A; font: 800 15px Manrope, sans-serif; cursor: pointer; }
.ies-publish { all: unset; box-sizing: border-box; display: grid; place-items: center; min-height: 48px; border-radius: 14px; background: #9AA3B5; color: #FFFFFF; font: 800 15px Manrope, sans-serif; }
.ies-soon { font: 600 12px Manrope, sans-serif; color: #5B6070; text-align: center; }
:root[data-theme="dark"] .ies-card { background: #313B4F; color: #EEF2F8; }
:root[data-theme="dark"] .ies-note, :root[data-theme="dark"] .ies-soon, :root[data-theme="dark"] .ies-parts small { color: #EEF2F8; }
:root[data-theme="dark"] .ies-parts li { background: #232B3A; }
:root[data-theme="dark"] .ies-pick { color: #EEF2F8; }

.ies-publish { width: 100%; padding: 0 12px; text-align: center; }

/* Con barras de color, el logo de meldune va sobre una pastilla blanca para que se vea completo */
html.seima-bars body #view-notes .nh .nh-appbar .nh-brand:not(#z) { background: #FFFFFF !important; border-radius: 16px; padding: 4px 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
html.seima-bars body #view-notes .nh .nh-appbar .nh-brand *:not(#z) { color: initial !important; }

html.seima-bars body #view-notes .nh .nh-appbar .nh-brand .nh-slogan:not(#z):not(#y) { color: #1B1F2A !important; font-size: 9px; font-weight: 800; }

/* Inicio: cambiar entre Persona y Empresa; estados/publicaciones preparados */
.ies-mode { display: inline-flex; gap: 4px; padding: 3px; margin-bottom: 8px; border-radius: 999px; background: #F4F6FA; max-width: 100%; }
.ies-mode button { all: unset; box-sizing: border-box; padding: 6px 14px; border-radius: 999px; font: 800 13px Manrope, system-ui, sans-serif; color: #1B1F2A; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55vw; }
.ies-mode button[aria-selected="true"] { background: #E55B13; color: #FFFFFF; }
:root[data-theme="dark"] .ies-mode { background: #232B3A; }
:root[data-theme="dark"] .ies-mode button { color: #EEF2F8; }
:root[data-theme="dark"] .ies-mode button[aria-selected="true"] { color: #EEF2F8; }
.ies-head { display: flex; align-items: baseline; justify-content: space-between; margin: 2px 2px 4px; }
.ies-head b { font: 900 17px Manrope, system-ui, sans-serif; color: #1B1F2A; }
.ies-head small { font: 700 12px Manrope, system-ui, sans-serif; color: #5B6070; }
:root[data-theme="dark"] .ies-head b { color: #EEF2F8; }
:root[data-theme="dark"] .ies-head small { color: #EEF2F8; }
.ies-me[disabled] { opacity: .45; cursor: not-allowed; }
.ies-item { all: unset; box-sizing: border-box; display: grid; justify-items: center; gap: 4px; cursor: pointer; }
.ies-item img, .ies-item span { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 3px solid #E55B13; background: #4A3FB5; color: #FFFFFF; display: grid; place-items: center; font-size: 22px; }
.ies-item small { font: 700 11.5px Manrope, system-ui, sans-serif; color: #1B1F2A; }
:root[data-theme="dark"] .ies-item small { color: #EEF2F8; }
.ies-keep { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 100%; min-height: 48px; border-radius: 14px; background: #E55B13; color: #FFFFFF; font: 800 15px Manrope, sans-serif; cursor: pointer; text-align: center; padding: 0 12px; }
.ies-keep[disabled] { opacity: .5; }
.ies-del { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 100%; min-height: 46px; border-radius: 14px; border: 2px solid #E55B13; color: #1B1F2A; font: 800 15px Manrope, sans-serif; cursor: pointer; }

/* Galería grande de estados/publicaciones: ocupa casi todo el ancho; 1 columna en celular, 2 en tablet y 3 en computador */
.ies-gallery { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 10px 0 14px; }
@media (min-width: 700px) { .ies-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ies-gallery { grid-template-columns: repeat(3, 1fr); } }
.ies-big { margin: 0; border-radius: 20px; overflow: hidden; background: #4A3FB5; box-shadow: 0 6px 18px rgba(74, 63, 181, .25); display: grid; }
.ies-big img, .ies-big video { width: 100%; height: min(62dvh, 520px); object-fit: contain; background: #4A3FB5; display: block; }
.ies-big figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: #FFFFFF; color: #1B1F2A; font: 800 14px Manrope, system-ui, sans-serif; }
.ies-big figcaption button { all: unset; padding: 6px 14px; border-radius: 999px; background: #E55B13; color: #FFFFFF; font: 800 13px Manrope, sans-serif; cursor: pointer; }
:root[data-theme="dark"] .ies-big figcaption { background: #313B4F; color: #EEF2F8; }
/* El puntico junto al logo: botón «i» con la historia de meldune; ahora se ve siempre */
.nh-brand-i:not(#z) { background: #E55B13 !important; color: #FFFFFF !important; border: 2px solid #FFFFFF !important; width: 18px; height: 18px; display: grid !important; place-items: center; border-radius: 50%; font: 900 11px/1 Manrope, system-ui, sans-serif; font-style: normal; }

/* menú de las rayitas del Chat: letreros visibles (no heredan el blanco del encabezado) */
html.seima-bars body .ian-chat .ic-head .ic-pop button:not(#z):not(#y), html.seima-bars body .ian-chat .ic-pop button:not(#z):not(#y) { background: transparent !important; color: #1B1F2A !important; }
html.seima-bars body .ian-chat .ic-pop button:not(#z):not(#y) span { color: #1B1F2A !important; }

/* Esfera de IA con cuatro puntos (encabezado del Chat): cada punto es una función */
.ic-ia-orb { width: 40px; height: 40px; border-radius: 50%; padding: 0; display: inline-flex; align-items: center; justify-content: center; gap: 3px; border: 0; background: radial-gradient(circle at 35% 30%, #E55B13 0%, #E55B13 55%, #4A3FB5 100%) !important; box-shadow: 0 0 0 4px rgba(229, 91, 19,.25) !important; animation: ic-orb-resp 3.2s ease-in-out infinite; }
.ic-ia-orb i { width: 4px; height: 4px; border-radius: 50%; background: #FFFFFF; display: block; }
@keyframes ic-orb-resp { 50% { box-shadow: 0 0 0 7px rgba(229, 91, 19,.12); } }
@media (prefers-reduced-motion: reduce) { .ic-ia-orb { animation: none; } }
.ic-iafan button { display: flex; align-items: center; gap: 10px; }
.ic-iafan button b { width: 12px; height: 12px; border-radius: 50%; background: #E55B13; flex: none; }
html.seima-bars body .ian-chat .ic-head .ic-ia-orb:not(#z):not(#y) { background: radial-gradient(circle at 35% 30%, #E55B13 0%, #E55B13 55%, #4A3FB5 100%) !important; }
/* Ajustes en tarjetas (2026-10-24): cuadrícula 2 columnas (3 en pantalla ancha), ícono blanco en círculo naranja */
.nh-sgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px; }
@media (min-width: 820px) { .nh-sgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nh-scard { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 14px; border-radius: 16px; border: 1px solid rgba(74, 63, 181,.1); background: #FFFFFF; color: #1B1F2A; cursor: pointer; min-height: 104px; box-shadow: 0 2px 8px rgba(74, 63, 181,.06); }
.nh-scard b { font-size: 15px; font-weight: 700; }
.nh-scard small { font-size: 12px; color: #5B6070; }
.nh-scard-ic { width: 38px; height: 38px; border-radius: 50%; background: #E55B13; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.nh-scard-ic svg { width: 22px; height: 22px; color: #FFFFFF; stroke: #FFFFFF; background: transparent !important; }
.nh-scard:active { transform: scale(.98); }
/* Ajustes: perfil arriba, Ayuda con preguntas, interruptores naranja planos (2026-10-24) */
.nh-shead { display: flex; align-items: center; gap: 14px; margin: 4px 16px 16px; padding: 14px; border-radius: 16px; background: #FFFFFF; border: 1px solid rgba(74, 63, 181,.1); box-shadow: 0 2px 8px rgba(74, 63, 181,.06); }
.nh-shead-av { width: 52px; height: 52px; border-radius: 50%; background: #4A3FB5; color: #FFFFFF; font-size: 22px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.nh-shead b { display: block; color: #1B1F2A; font-size: 17px; }
.nh-shead small { color: #5B6070; }
.settings-faq details { background: #FFFFFF; border: 1px solid rgba(74, 63, 181,.1); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.settings-faq summary { cursor: pointer; font-weight: 700; color: #1B1F2A; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.settings-faq summary::after { content: '▾'; color: #1B1F2A; }
.settings-faq details[open] summary::after { content: '▴'; }
.settings-faq p { margin: 10px 0 0; color: #1B1F2A; font-size: 14px; }
.settings-toggle input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 46px; height: 26px; border-radius: 13px; background: #9AA3B5; position: relative; cursor: pointer; flex: none; transition: background .15s; border: 0; }
.settings-toggle input[type="checkbox"]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; transition: transform .15s; box-shadow: none; }
.settings-toggle input[type="checkbox"]:checked { background: #E55B13; }
.settings-toggle input[type="checkbox"]:checked::after { transform: translateX(20px); }
.settings-toggle input[type="checkbox"]:focus-visible { outline: 3px solid #4A3FB5; outline-offset: 2px; }
/* Foto de perfil en el encabezado del Chat y foto ampliada (2026-10-24) */
.ic-selfav { width: 40px; height: 40px; padding: 0; border: 2px solid #FFFFFF; border-radius: 50%; background: transparent !important; cursor: pointer; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.ic-selfav .ic-avatar { width: 100%; height: 100%; }
.ic-selfav .ic-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ic-photo-zoom { position: fixed; inset: 0; z-index: 99999; background: rgba(74, 63, 181,.88); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.ic-photo-zoom img { max-width: 100%; max-height: 100%; border-radius: 18px; object-fit: contain; }
/* Contador de mensajes sin leer en cada fila del Chat */
.ic-chat-row .ic-row-side i.ic-badge-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #E55B13; color: #FFFFFF; font: 700 12px/20px sans-serif; font-style: normal; text-align: center; display: inline-block; box-sizing: border-box; }
body .ian-chat .ic-scope-4:not(#z) { grid-template-columns: repeat(4, 1fr); }
body .ian-chat .ic-scope-4 button { padding-left: 4px; padding-right: 4px; font-size: 13px; }

.ic-addmods { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ic-addmod { border: 1.5px dashed #E55B13; background: transparent; color: #1B1F2A; font-weight: 700; padding: 8px 14px; border-radius: 999px; cursor: pointer; }

.ic-tarea-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #E55B13; background: transparent; flex: none; cursor: pointer; padding: 0; }
.ic-tarea-check[aria-pressed="true"] { background: #E55B13; box-shadow: inset 0 0 0 4px #FFFFFF; }
.ic-tarea.is-done .ic-row-text b { text-decoration: line-through; opacity: .6; }

/* Ajustes por grupos: horario, días y estilo de burbuja (2026-10-24) */
.settings-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.settings-days { border: 1px solid rgba(74, 63, 181,.15); border-radius: 12px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.settings-days legend { font-weight: 700; color: #1B1F2A; padding: 0 6px; }
.settings-days label { position: relative; }
.settings-days input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.settings-days span { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #E55B13; color: #1B1F2A; align-items: center; justify-content: center; font-weight: 700; }
.settings-days input:checked + span { background: #E55B13; color: #FFFFFF; }
.settings-days input:focus-visible + span { outline: 3px solid #4A3FB5; outline-offset: 2px; }
html[data-bubble="recta"] .ian-chat .ic-message { border-radius: 6px !important; }
html[data-bubble="suave"] .ian-chat .ic-message { border-radius: 22px !important; }
/* Ajustes como lista (organización de la imagen del 24-oct): una fila por grupo, ícono + título + línea corta + flecha */
.nh-sgrid { grid-template-columns: 1fr !important; gap: 8px; }
.nh-scard { flex-direction: row; align-items: center; gap: 14px; min-height: 0; padding: 12px 14px; position: relative; display: grid; grid-template-columns: 40px 1fr 18px; grid-template-areas: "ic t go" "ic s go"; column-gap: 14px; row-gap: 0; }
.nh-scard .nh-scard-ic { grid-area: ic; margin: 0; align-self: center; }
.nh-scard b { grid-area: t; align-self: end; }
.nh-scard small { grid-area: s; align-self: start; }
.nh-scard::after { content: ''; grid-area: go; width: 8px; height: 8px; border-right: 2px solid #E55B13; border-top: 2px solid #E55B13; transform: rotate(45deg); justify-self: center; }
.nh-scard[data-more="set:g-salir"] { border-color: #C24A0C; }
.nh-scard[data-more="set:g-salir"] b { color: #1B1F2A; }
.nh-scard[data-more="set:g-salir"] .nh-scard-ic { background: #C24A0C; }
/* Cambio de pestañas del Chat (Mensajes, Grupos, Personas, Llamadas) instantáneo, sin la animación de página */
.ian-chat .ic-wrap.ic-turn-fwd:has(> .ic-scope-4), .ian-chat .ic-wrap.ic-turn-back:has(> .ic-scope-4) { animation: none !important; transform: none !important; }

.ian-chat .ic-chan-av { background: #4A3FB5 !important; color: #FFFFFF !important; display: inline-flex; align-items: center; justify-content: center; }
.ian-chat .ic-list-head { margin: 12px 0 4px; }

/* Grabadora de reuniones (2026-10-24) */
.gr-veil { position: fixed; inset: 0; z-index: 100000; background: rgba(74, 63, 181,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.gr-veil.is-discreet { inset: auto 12px 92px auto; background: transparent; padding: 0; }
.gr-card { background: #F4F6FA; color: #1B1F2A; border-radius: 20px; padding: 20px; width: min(460px, 100%); max-height: 90vh; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.gr-card h2 { margin: 0; font-size: 22px; }
.gr-live h2 { font-size: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.gr-badge { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: #1B1F2A; }
.gr-note { margin: 0; text-align: center; color: #1B1F2A; }
.gr-dot { width: 12px; height: 12px; border-radius: 50%; background: #E55B13; display: inline-block; animation: gr-blink 1.2s ease-in-out infinite; }
.is-paused .gr-dot { animation: none; opacity: .4; }
@keyframes gr-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .gr-dot { animation: none; } }
.gr-text { min-height: 120px; max-height: 38vh; overflow: auto; background: #FFFFFF; border: 1px solid rgba(74, 63, 181,.15); border-radius: 14px; padding: 12px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.gr-check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.gr-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.gr-btn { border: 1.5px solid #E55B13; background: transparent; color: #1B1F2A; border-radius: 999px; padding: 10px 16px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.gr-btn.gr-main { background: #E55B13; color: #FFFFFF; }
.gr-btn:disabled { opacity: .5; cursor: default; }
.gr-mini { display: flex; align-items: center; gap: 8px; background: #4A3FB5; color: #FFFFFF; border-radius: 999px; padding: 6px 8px 6px 14px; box-shadow: 0 6px 18px rgba(74, 63, 181,.3); }
.gr-mini b { font-variant-numeric: tabular-nums; }
.gr-mini .gr-btn { padding: 6px 12px; color: #FFFFFF; border-color: rgba(255,255,255,.5); }
.gr-mini .gr-btn.gr-main { border-color: #E55B13; }
.gr-x { background: transparent; border: 0; color: #FFFFFF; font-size: 16px; cursor: pointer; padding: 4px 8px; }
/* Estados y publicaciones: carrusel de izquierda a derecha, una tarjeta por pantalla (2026-10-24, pedido de Edilberto) */
.ies-carousel { position: relative; margin: 10px 0 14px; }
.ies-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.ies-track::-webkit-scrollbar { display: none; }
.ies-track .ies-big { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.ies-track .ies-big img { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ies-nav { all: unset; position: absolute; top: calc(min(62dvh, 520px) / 2 - 20px); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(74, 63, 181,.35); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.ies-nav[hidden] { display: none; }
.ies-nav svg { width: 20px; height: 20px; fill: #E55B13; }
.ies-prev { left: 8px; } .ies-prev svg { transform: rotate(180deg); }
.ies-next { right: 8px; }
.ies-nav:focus-visible { outline: 3px solid #4A3FB5; outline-offset: 2px; }
.ies-count { position: absolute; top: 10px; right: 12px; background: rgba(74, 63, 181,.8); color: #FFFFFF; font: 700 12px Manrope, sans-serif; padding: 3px 10px; border-radius: 999px; pointer-events: none; }
.ies-count:empty { display: none; }
@media (hover: none) { .ies-nav { opacity: .85; } }
/* Recortador de videos de estados: dos manijas, de 5 segundos a 1 minuto */
.ies-trim { display: grid; gap: 8px; margin: 8px 0; }
.ies-bar { position: relative; height: 10px; border-radius: 999px; background: rgba(74, 63, 181,.15); overflow: hidden; }
.ies-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; background: #E55B13; border-radius: 999px; }
.ies-handle { display: grid; gap: 2px; font: 700 13px Manrope, sans-serif; color: #1B1F2A; }
.ies-handle input[type="range"] { width: 100%; accent-color: #E55B13; height: 28px; }
.ies-len { margin: 0; font: 700 14px Manrope, sans-serif; color: #1B1F2A; }
:root[data-theme="dark"] .ies-handle, :root[data-theme="dark"] .ies-len { color: #EEF2F8; }
/* Empresa: botones de invitación con más color, logo y QR en grande (2026-10-24) */
.ian-chat .ic-invlink .ic-actions .ic-secondary, .ian-chat .ic-invlink .ic-logo-pick { background: #E55B13 !important; color: #FFFFFF !important; border-color: #E55B13 !important; font-weight: 700; }
.ian-chat .ic-invlink .ic-actions { align-items: center; }
.ian-chat .ic-logo-thumb { all: unset; cursor: pointer; width: 56px; height: 56px; border-radius: 14px; background: #FFFFFF; border: 2px solid #E55B13; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.ian-chat .ic-logo-thumb img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
.ian-chat .ic-qr-big, .ic-qr-big { background: #FFFFFF; border-radius: 20px; padding: 16px; width: min(86vw, 420px); }
.ic-qr-big svg { width: 100%; height: auto; display: block; }
.ic-photo-zoom img { background: #FFFFFF; }
/* QR de la empresa: nombre grande arriba, meldune pequeño abajo, paleta de color */
.ian-chat .ic-qrco { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ic-qrname { font: 800 clamp(26px, 8vw, 36px)/1.1 Manrope, system-ui, sans-serif; color: #1B1F2A; text-align: center; letter-spacing: -.01em; word-break: break-word; }
.ic-qr-big .ic-qrname { display: block; text-align: center; margin-bottom: 8px; color: #1B1F2A; }
.ian-chat .ic-qrbrand-s { width: 64px; height: auto; opacity: 1; }
.ian-chat .ic-qrpal { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ian-chat .ic-qrsw { all: unset; width: 30px; height: 30px; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px rgba(74, 63, 181,.3); }
.ian-chat .ic-qrsw.on { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 5px #E55B13; }
.ian-chat .ic-qrsw:focus-visible { outline: 3px solid #4A3FB5; outline-offset: 3px; }
.ian-chat .ic-edit-name { all: unset; cursor: pointer; margin-left: 8px; width: 26px; height: 26px; border-radius: 50%; background: #E55B13; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.ian-chat .ic-edit-name:focus-visible { outline: 3px solid #4A3FB5; outline-offset: 2px; }
.ian-chat .ic-invlink .ic-share-grid [data-act="share-copy"] { display: none; }

/* Estados: botón ＋ pequeño en la esquina, explicación corta (2026-10-24) */
.ies-head { display: flex; align-items: center; gap: 8px; }
.ies-head .ies-plus { all: unset; margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: #E55B13; color: #FFFFFF; font: 700 22px/34px Manrope, sans-serif; text-align: center; cursor: pointer; box-shadow: 0 2px 8px rgba(229, 91, 19,.4); }
.ies-head .ies-plus[disabled] { opacity: .45; cursor: default; }
.ies-head .ies-plus:focus-visible { outline: 3px solid #4A3FB5; outline-offset: 2px; }
.ies-hint { font-size: 12px !important; opacity: .85; margin: 4px 0 8px; }
/* Estados: tarjeta con menú ⋮, toque para abrir, texto, descripción y visor (2026-10-24) */
.ies-big { position: relative; }
.ies-hit { all: unset; position: absolute; inset: 0; cursor: pointer; z-index: 1; -webkit-tap-highlight-color: transparent; }
.ies-dots { all: unset; position: absolute; top: 8px; left: 8px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: rgba(74, 63, 181,.78); color: #FFFFFF; font: 800 20px/34px Manrope, sans-serif; text-align: center; cursor: pointer; }
.ies-dots:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.ies-play-ic { position: absolute; left: 50%; top: calc(min(62dvh, 520px) / 2); transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.92); color: #1B1F2A; display: grid; place-items: center; font-size: 26px; z-index: 0; pointer-events: none; }
.ies-big .ies-desc { margin: 0; padding: 10px 14px; background: #FFFFFF; color: #1B1F2A; font: 600 14px/1.35 Manrope, system-ui, sans-serif; }
:root[data-theme="dark"] .ies-big .ies-desc { background: #313B4F; color: #EEF2F8; }
.ies-text { display: grid; place-items: center; min-height: min(62dvh, 520px); background: var(--bg, #4A3FB5); }
.ies-text p { margin: 0; padding: 28px; color: #FFFFFF; font: 800 clamp(22px, 6vw, 30px)/1.25 Manrope, system-ui, sans-serif; text-align: center; word-break: break-word; }
.ies-textprev { display: grid; place-items: center; min-height: 160px; border-radius: 16px; background: var(--bg, #4A3FB5); }
.ies-textprev p { margin: 0; padding: 18px; color: #FFFFFF; font: 800 20px/1.25 Manrope, sans-serif; text-align: center; word-break: break-word; }
.ies-textprev.is-big { min-height: 50dvh; }
.ies-colors { display: flex; gap: 10px; }
.ies-sw { all: unset; width: 32px; height: 32px; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px rgba(74, 63, 181,.3); }
.ies-sw.on { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 5px #E55B13; }
.ies-field { display: grid; gap: 4px; font: 700 13px Manrope, sans-serif; color: #1B1F2A; }
.ies-field small { font-weight: 600; opacity: .8; }
.ies-field textarea { box-sizing: border-box; width: 100%; border-radius: 12px; border: 1.5px solid rgba(74, 63, 181,.25); padding: 10px 12px; font: 500 15px Manrope, sans-serif; background: #FFFFFF; color: #1B1F2A; resize: vertical; }
:root[data-theme="dark"] .ies-field { color: #EEF2F8; }
.ies-pop { position: fixed; z-index: 2147483000; background: #FFFFFF; border-radius: 14px; box-shadow: 0 10px 28px rgba(74, 63, 181,.35); padding: 6px; display: grid; min-width: 190px; }
.ies-pop button { all: unset; box-sizing: border-box; padding: 12px 14px; border-radius: 10px; cursor: pointer; font: 700 15px Manrope, sans-serif; color: #1B1F2A; }
.ies-pop button:hover, .ies-pop button:focus-visible { background: rgba(229, 91, 19,.12); }
.ies-pop button.is-danger { color: #1B1F2A; }
:root[data-theme="dark"] .ies-pop { background: #313B4F; }
:root[data-theme="dark"] .ies-pop button { color: #EEF2F8; }
.ies-sheet.is-view .ies-card { background: #4A3FB5; color: #E2E6EE; }
.ies-media.is-big { max-height: 70dvh; }
.ies-desc.is-view { margin: 0; font: 600 15px/1.4 Manrope, sans-serif; color: #E2E6EE; }
.ies-react { all: unset; display: grid; place-items: center; min-height: 44px; border-radius: 14px; background: rgba(255,255,255,.14); color: #E2E6EE; font: 700 14px Manrope, sans-serif; opacity: .8; }
.ies-keep { all: unset; box-sizing: border-box; display: grid; place-items: center; min-height: 48px; border-radius: 14px; background: #E55B13; color: #FFFFFF; font: 800 16px Manrope, sans-serif; cursor: pointer; }
.ies-keep[disabled] { opacity: .45; cursor: default; }
.ies-play { all: unset; box-sizing: border-box; display: grid; place-items: center; min-height: 40px; border-radius: 12px; border: 1.5px solid #E55B13; color: #1B1F2A; font: 800 14px Manrope, sans-serif; cursor: pointer; }
/* Estados: caja del medio, descripción en la misma tarjeta, visor a pantalla completa (2026-10-24) */
.ies-mbox { position: relative; }
.ies-mbox.ies-text { display: grid; place-items: center; min-height: min(62dvh, 520px); background: var(--bg, #4A3FB5); }
.ies-desc-in { box-sizing: border-box; width: 100%; border: 0; border-top: 1px solid rgba(74, 63, 181,.12); padding: 10px 14px; background: #FFFFFF; color: #1B1F2A; font: 600 14px/1.35 Manrope, system-ui, sans-serif; resize: none; overflow: hidden; min-height: 42px; }
.ies-desc-in::placeholder { color: #5B6070; font-weight: 500; }
.ies-desc-in:focus { outline: 2px solid #E55B13; outline-offset: -2px; }
:root[data-theme="dark"] .ies-desc-in { background: #313B4F; color: #EEF2F8; }
.ies-pop button { display: flex !important; align-items: center; gap: 10px; }
.ies-pop button svg { flex: none; }
.ies-story { position: fixed; inset: 0; z-index: 2147483300; background: #1B1F2A; display: grid; place-items: center; overflow: hidden; touch-action: manipulation; }
.ies-st-media { width: 100%; height: 100%; object-fit: contain; display: block; }
.ies-st-text { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg, #4A3FB5); }
.ies-st-text p { margin: 0; padding: 32px; color: #FFFFFF; font: 800 clamp(26px, 7vw, 40px)/1.25 Manrope, system-ui, sans-serif; text-align: center; word-break: break-word; }
.ies-st-zone { position: absolute; inset: 0; z-index: 1; -webkit-tap-highlight-color: transparent; }
.ies-st-bars { position: absolute; top: calc(8px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; pointer-events: none; }
.ies-st-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.ies-st-bars i b { display: block; height: 100%; width: 0; background: #FFFFFF; }
.ies-st-bars i.done b { width: 100%; }
.ies-st-top { position: absolute; top: calc(18px + env(safe-area-inset-top)); right: 10px; display: flex; gap: 8px; z-index: 3; }
.ies-st-x, .ies-st-btn { all: unset; width: 28px; height: 28px; border-radius: 50%; background: rgba(14,19,48,.55); color: #FFFFFF; display: grid; place-items: center; cursor: pointer; font: 700 14px/1 Manrope, sans-serif; }
.ies-st-btn { width: 34px; height: 34px; }
.ies-st-x:focus-visible, .ies-st-btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.ies-st-desc { position: absolute; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); margin: 0; padding: 12px 16px; background: linear-gradient(to top, rgba(14,19,48,.75), rgba(14,19,48,0)); color: #FFFFFF; font: 600 16px/1.4 Manrope, sans-serif; z-index: 2; pointer-events: none; text-align: center; }
.ies-st-bottom { position: absolute; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: center; z-index: 3; }
.ies-st-react { all: unset; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); color: #FFFFFF; display: grid; place-items: center; font: 700 22px/1 Manrope, sans-serif; opacity: .85; }
/* Chat › menú de las rayitas › Quién ve mis estados */
.ic-aud-sheet { position: absolute; inset: 0; z-index: 60; display: grid; place-items: end center; }
.ic-aud-sheet .ic-ps-bg { position: absolute; inset: 0; background: rgba(74, 63, 181,.5); }
.ic-aud-card { position: relative; width: min(520px, 100%); max-height: 86%; overflow: auto; background: #F4F6FA; color: #1B1F2A; border-radius: 22px 22px 0 0; padding: 16px; display: grid; gap: 10px; }
.ic-aud-card header { display: flex; align-items: center; justify-content: space-between; }
.ic-aud-card header b { font-size: 18px; }
.ic-aud-x { all: unset; width: 36px; height: 36px; border-radius: 50%; background: #E55B13; color: #FFFFFF; display: grid; place-items: center; cursor: pointer; }
.ic-aud-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ic-aud-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #FFFFFF; border-radius: 14px; padding: 8px 10px; }
.ic-aud-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ic-aud-who b { display: block; }
.ic-aud-who small { color: #5B6070; }
.ic-aud-tog { all: unset; width: 38px; height: 38px; border-radius: 50%; background: #E55B13; color: #FFFFFF; display: grid; place-items: center; font: 800 18px/1 Manrope, sans-serif; cursor: pointer; flex: none; }
.ic-aud-tog.is-off { background: #FFFFFF; color: #1B1F2A; box-shadow: inset 0 0 0 2px #C24A0C; }
.ic-aud-tog:focus-visible { outline: 3px solid #4A3FB5; outline-offset: 2px; }
.ies-st-desc a { color: #FFFFFF; text-decoration: underline; pointer-events: auto; word-break: break-all; }
.ies-st-desc { pointer-events: none; }
.ies-field textarea { min-height: 44px; }

/* Visor: X naranja, ✓ pequeño en la esquina (blanco; naranja al tocarlo) y fotos con descripción antes de guardar */
.ies-st-x, .ies-st-btn { background: #E55B13; color: #FFFFFF; box-shadow: 0 1px 6px rgba(14,19,48,.45); }
.ies-st-bottom { left: auto; right: 14px; justify-content: flex-end; }
.ies-st-react { all: unset; width: 26px; height: 26px; border-radius: 50%; background: rgba(14,19,48,.35); color: #FFFFFF; display: grid; place-items: center; font: 700 14px/1 Manrope, sans-serif; opacity: .9; cursor: pointer; }
.ies-st-react.on { background: #E55B13; opacity: 1; }
.ies-st-react:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.ies-drafts { display: grid; gap: 12px; }
.ies-draft { display: grid; gap: 6px; }
.ies-draft img { width: 100%; max-height: 36dvh; object-fit: contain; border-radius: 14px; background: #4A3FB5; }
.ies-draft textarea { box-sizing: border-box; width: 100%; border-radius: 12px; border: 1.5px solid rgba(74, 63, 181,.25); padding: 10px 12px; font: 500 15px Manrope, sans-serif; background: #FFFFFF; color: #1B1F2A; min-height: 44px; resize: vertical; }
/* Visor como en otras apps: quién publicó y hace cuánto arriba, descripción grande abajo, favorito (estrella) a la derecha */
.ies-st-head { position: absolute; top: calc(20px + env(safe-area-inset-top)); left: 12px; display: flex; align-items: center; gap: 8px; z-index: 3; pointer-events: none; }
.ies-st-av { width: 34px; height: 34px; border-radius: 50%; background: #E55B13; color: #FFFFFF; display: grid; place-items: center; font: 800 15px/1 Manrope, sans-serif; box-shadow: 0 0 0 2px #FFFFFF; }
.ies-st-who { display: grid; color: #FFFFFF; text-shadow: 0 1px 4px rgba(14,19,48,.7); line-height: 1.15; }
.ies-st-who b { font: 800 14px Manrope, sans-serif; }
.ies-st-who small { font: 600 11px Manrope, sans-serif; opacity: .9; }
.ies-st-desc { bottom: calc(66px + env(safe-area-inset-bottom)); font: 800 18px/1.35 Manrope, system-ui, sans-serif; text-shadow: 0 1px 6px rgba(14,19,48,.8); padding: 40px 18px 10px; }
.ies-st-bottom { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
.ies-st-react { width: 40px; height: 40px; background: rgba(14,19,48,.55); color: #FFFFFF; }
.ies-st-react.on { background: #E55B13; }
.ies-st-react.on svg { fill: #FFFFFF; }
/* Flechas de la tira: pequeñas, finas y solo con el ratón encima (en el celular se arrastra con el dedo) */
.ies-nav { width: 28px; height: 28px; top: calc(min(62dvh, 520px) / 2 - 14px); background: rgba(255,255,255,.85); box-shadow: 0 1px 5px rgba(74, 63, 181,.3); opacity: 0; transition: opacity .15s; }
.ies-nav svg { width: 13px; height: 13px; }
.ies-carousel:hover .ies-nav, .ies-nav:focus-visible { opacity: 1; }
@media (hover: none) { .ies-nav { display: none; } }
/* Privacidad de estados (opciones con círculo, como otras apps) */
.ic-aud-q { margin: 0; font: 800 14px Manrope, sans-serif; color: #1B1F2A; }
.ic-aud-opts { display: grid; gap: 4px; }
.ic-aud-opt { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 12px 6px; cursor: pointer; font: 700 16px Manrope, sans-serif; color: #1B1F2A; }
.ic-aud-opt i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #5B6070; display: grid; place-items: center; flex: none; }
.ic-aud-opt[aria-checked="true"] i { border-color: #E55B13; }
.ic-aud-opt[aria-checked="true"] i::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: #E55B13; }
.ic-aud-opt:focus-visible { outline: 3px solid #4A3FB5; outline-offset: 2px; border-radius: 8px; }
/* Ventanas: una flecha pequeña a la izquierda del nombre para volver, en vez de una X grande (2026-10-25, pedido de Edilberto).
   Aplica a los encabezados de ventanas; los visores de fotos y videos conservan su ✕ pequeña. */
.settings-center-dialog .close-button, .nh-win-head .nh-x, .ies-card header .ies-x, .ic-aud-card header .ic-aud-x { all: unset; box-sizing: border-box; order: -1; flex: none; width: 34px; height: 34px; border-radius: 50%; background-color: rgba(229, 91, 19,.14); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20.4 4.4 3 12l17.4 7.6L15.8 12z' fill='%23D9560F'/></svg>"); background-repeat: no-repeat; background-position: center; background-size: 16px 16px; cursor: pointer; font-size: 0; color: transparent; box-shadow: none; }
.settings-center-dialog .close-button svg, .nh-win-head .nh-x svg { display: none; }
.settings-center-dialog .close-button:focus-visible, .nh-win-head .nh-x:focus-visible, .ies-card header .ies-x:focus-visible, .ic-aud-card header .ic-aud-x:focus-visible { outline: 3px solid #4A3FB5; outline-offset: 2px; }
.settings-center-head { display: flex; align-items: center; gap: 12px; justify-content: flex-start; }
.ies-card header, .ic-aud-card header, .nh-win-head { display: flex; align-items: center; gap: 12px; justify-content: flex-start; }
.settings-center-head h2 span { display: none; }
/* Refuerzo: gana a las reglas antiguas de los botones de cerrar */
html body .settings-center-dialog .close-button, html body .nh-win-head .nh-x, html body .ies-card header .ies-x, html body .ic-aud-card header .ic-aud-x { width: 34px !important; height: 34px !important; min-width: 34px !important; min-height: 34px !important; padding: 0 !important; border-radius: 50% !important; background-color: rgba(229, 91, 19,.14) !important; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20.4 4.4 3 12l17.4 7.6L15.8 12z' fill='%23D9560F'/></svg>") !important; background-repeat: no-repeat !important; background-position: center !important; background-size: 16px 16px !important; box-shadow: none !important; border: 0 !important; font-size: 0 !important; color: transparent !important; order: -1; }
html body .settings-center-dialog .close-button svg, html body .nh-win-head .nh-x svg { display: none !important; }
.ies-card .ies-keep { width: 100%; }

/* Calculadora: la misma flecha pequeña de volver, a la izquierda */
html body .cc-x { width: 34px !important; height: 34px !important; min-width: 34px !important; min-height: 34px !important; padding: 0 !important; border-radius: 50% !important; background-color: rgba(229, 91, 19,.14) !important; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20.4 4.4 3 12l17.4 7.6L15.8 12z' fill='%23D9560F'/></svg>") !important; background-repeat: no-repeat !important; background-position: center !important; background-size: 16px 16px !important; box-shadow: none !important; border: 0 !important; font-size: 0 !important; color: transparent !important; order: -1; }
html body .cc-x svg { display: none !important; }
/* UNIFORME (2026-10-25): todas las ✕ iguales y todas las flechas iguales, pequeñas.
   Regla: la FLECHA es para volver o ir a otra pantalla; la ✕ es para cerrar una ventana flotante o un visor. Nunca las dos con la misma función en el mismo lado. */
html body .ies-card header .ies-x, html body .ic-aud-card header .ic-aud-x, html body .cc-x, html body .nh-win-head .nh-x { width: 30px !important; height: 30px !important; min-width: 30px !important; min-height: 30px !important; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 6l12 12M18 6 6 18' stroke='%23D9560F' stroke-width='3' stroke-linecap='round' fill='none'/></svg>") !important; background-size: 14px 14px !important; }
html body .settings-center-dialog .close-button { width: 30px !important; height: 30px !important; min-width: 30px !important; min-height: 30px !important; background-size: 14px 14px !important; }
html body .ies-st-x, html body .ies-st-btn { width: 30px !important; height: 30px !important; font-size: 14px !important; }
html body .ian-chat .ic-back-tab, html body .ian-chat .ic-back-app, html body .rc-close-mobile, html body .rc-circ { width: 30px !important; height: 30px !important; min-width: 30px !important; min-height: 30px !important; padding: 0 !important; }
html body .ian-chat .ic-back-tab svg, html body .ian-chat .ic-back-app svg, html body .rc-close-mobile svg, html body .rc-circ svg { width: 14px !important; height: 14px !important; }
html body .ian-chat .ic-head .ic-icon.ic-back-tab, html body .ian-chat .ic-head .ic-back-app { width: 30px !important; height: 30px !important; min-width: 30px !important; min-height: 30px !important; flex: none; }
html body .ian-chat .ic-head .ic-icon.ic-back-tab svg, html body .ian-chat .ic-head .ic-back-app svg { width: 14px !important; height: 14px !important; }

/* Buzón y atención */
.ian-chat .ic-buzon .ic-row-text > span { display: block; margin-top: 4px; }
.ian-chat .ic-buzon-ans { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(229, 91, 19,.12); color: #1B1F2A; font-style: normal; font-weight: 600; }
.ian-chat .ic-buzon-reply { margin-top: 8px; }
/* Buzón y atención */
.ian-chat .ic-buzon .ic-row-text > span { display: block; margin-top: 4px; }
.ian-chat .ic-buzon-ans { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(229, 91, 19,.12); color: #1B1F2A; font-style: normal; font-weight: 600; }
.ian-chat .ic-buzon-reply { margin-top: 8px; }
/* Recortador de videos con puntitos que se arrastran (2026-10-25) */
.ies-tl { padding: 18px 14px 6px; touch-action: none; }
.ies-tl-track { position: relative; height: 10px; border-radius: 999px; background: rgba(74, 63, 181,.18); touch-action: none; cursor: pointer; }
.ies-tl-sel { position: absolute; top: 0; bottom: 0; background: #E55B13; border-radius: 999px; pointer-events: none; }
.ies-tl-h { all: unset; position: absolute; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #FFFFFF; border: 3px solid #E55B13; box-shadow: 0 2px 8px rgba(74, 63, 181,.4); cursor: grab; touch-action: none; }
.ies-tl-h:active { cursor: grabbing; transform: scale(1.12); }
.ies-tl-h:focus-visible { outline: 3px solid #4A3FB5; outline-offset: 2px; }
.ies-len { text-align: center; font: 800 15px Manrope, sans-serif; color: #1B1F2A; margin: 4px 0 8px; }
:root[data-theme="dark"] .ies-len { color: #EEF2F8; }
.ies-st-media.is-cover { object-fit: cover; }
/* Letras más legibles (2026-10-25): grises un poco más oscuros en modo claro y más claros en modo oscuro; «Colaborador» más oscuro */
html body .ian-chat .ic-soon-list small:not(#z), html body .ian-chat .ic-adm-row small:not(#z) { color: #5B6070; opacity: 1; }
:root[data-theme="dark"] body .ian-chat .ic-soon-list small:not(#z) { color: #EEF2F8; }
html body .ian-chat .ic-co-role.is-member:not(#z) { color: #1B1F2A; }
:root[data-theme="dark"] body .ian-chat .ic-co-role.is-member:not(#z) { color: #EEF2F8; }
:root[data-theme="dark"] body .ian-chat .ic-buzon-ans:not(#z) { color: #EEF2F8; background: rgba(142, 155, 178, .25); }
:root[data-theme="dark"] body .ian-chat .ic-aud-card, :root[data-theme="dark"] body .ian-chat .ic-aud-q { color: #EEF2F8; }
/* 2026-10-31: listas desplegables de Ajustes claras en modo claro (antes salían azul oscuro). */
:root[data-theme="light"] .settings-field select, :root[data-theme="light"] .settings-field input:not([type="range"]):not([type="checkbox"]), :root[data-theme="light"] .settings-field textarea { background-color: #FFFFFF !important; color: #1B1F2A !important; border: 1px solid #E2E6EE !important; }

/* 2026-10-31 · tapa del cuaderno: modo claro con degradado, modo oscuro blanca con las personas a color */
:root[data-theme="dark"] .sc-nb-cover > .sc-front { background: #FFFFFF; box-shadow: 4px 6px 16px rgba(0, 0, 0, .45); }
:root[data-theme="dark"] .sc-nb-cover .sc-cover-logo { content: url("./assets/meldune-icono.png?v=meldune8"); filter: none; }


/* 2026-10-31 · encabezado de Inicio: logo original (naranja e índigo); en oscuro sobre una pastilla blanca */
body #view-notes .nh .nh-appbar .nh-word { --wm-h: 34px; display: block; width: calc(var(--wm-h) * 600 / 229) !important; }
body #view-notes .nh .nh-letras, :root[data-theme="dark"] body #view-notes .nh .nh-letras { background-image: url("./assets/meldune-letras.png?v=meldune9") !important; }
:root[data-theme="dark"] body #view-notes .nh .nh-appbar .nh-brand { background: #FFFFFF !important; border-radius: 14px !important; padding: 5px 10px !important; }
.nh-brand .nh-brand-i { background: var(--line) !important; color: var(--text) !important; border-color: transparent !important; }
/* cuaderno: las páginas son blancas también en oscuro, con el logo original; la tapa lleva lomo y marcador para que se vea que es un cuaderno */
:root[data-theme="dark"] .sc-nb-page, :root[data-theme="dark"] .sc-nb .sc-back, :root[data-theme="dark"] .sc-nb-leaf > .sc-front { background-color: #FFFFFF !important; background-image: repeating-linear-gradient(transparent 0 19px, #E2E6EE 19px 20px) !important; border-color: #E2E6EE !important; color: #1B1F2A !important; }
:root[data-theme="dark"] .sc-nb .sc-page-slogan, :root[data-theme="dark"] .sc-nb [class*="sc-hand"], :root[data-theme="dark"] .sc-nb .sc-write, :root[data-theme="dark"] .sc-nb-page * { color: #1B1F2A !important; }
:root[data-theme="dark"] .sc-logo-light { display: block !important; }
:root[data-theme="dark"] .sc-logo-dark { display: none !important; }
.sc-nb-cover > .sc-front::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 13px; border-radius: 6px 0 0 6px; background: radial-gradient(circle at 6.5px 11px, #FFFFFF 3px, transparent 3.6px) 0 0 / 13px 22px repeat-y, rgba(27, 31, 42, .28); }
.sc-nb-cover > .sc-front::after { content: ""; position: absolute; right: 16px; top: 0; width: 13px; height: 44px; background: #FFFFFF; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
:root[data-theme="dark"] .sc-nb-cover > .sc-front::before { background: radial-gradient(circle at 6.5px 11px, #232B3A 3px, transparent 3.6px) 0 0 / 13px 22px repeat-y, rgba(27, 31, 42, .12); }
:root[data-theme="dark"] .sc-nb-cover > .sc-front::after { background: #E55B13; }
/* 2026-10-31 · íconos y carpetas más sobrios: círculo con borde naranja y el ícono en color de texto (blanco en oscuro, oscuro en claro) */
.nh-bottom button svg { background: transparent !important; color: var(--text) !important; box-shadow: inset 0 0 0 2px #E55B13 !important; }
.nh-bottom button.is-active svg, .nh-bottom button[aria-current] svg, .nh-bottom button.on svg, .nh-bottom button[aria-selected="true"] svg { background: #E55B13 !important; color: #FFFFFF !important; box-shadow: none !important; }
.nh-scard-ic { background: transparent !important; color: var(--text) !important; box-shadow: inset 0 0 0 2px #E55B13 !important; }
.nh-scard-ic svg { color: var(--text) !important; stroke: currentColor; }
/* íconos de muchos colores: se vuelven de un solo tono, claro en oscuro y oscuro en claro */
svg.seima-ic { filter: grayscale(1) brightness(.32); }
:root[data-theme="dark"] svg.seima-ic { filter: grayscale(1) brightness(1.9); }
/* carpetas: sin naranja sólido; borde naranja fino y relleno del color de las tarjetas */
.nh-fsvg .fb { fill: var(--panel-2) !important; stroke: #E55B13; stroke-width: 2px; }
.nh-fsvg .ff { fill: var(--panel) !important; stroke: #E55B13; stroke-width: 2px; }
.nh-folder b, .nh-folder small { color: var(--text) !important; }
.nh-folder small { opacity: .7; }
/* 2026-10-31 · mismos cambios de íconos con más fuerza (los estilos viejos usan :not(#id) para ganar) */
html body .nh-bottom.nh-tribar button svg:not(#z):not(#y):not(#x):not(#w), html body .ian-chat .ic-appnav button svg:not(#z):not(#y):not(#x):not(#w), html body .seima-dock button svg:not(#z):not(#y):not(#x):not(#w) { background: transparent !important; color: var(--text) !important; box-shadow: inset 0 0 0 2px #E55B13 !important; border-radius: 50% !important; }
html body .nh-bottom.nh-tribar button[aria-current="page"] svg:not(#z):not(#y):not(#x):not(#w), html body .ian-chat .ic-appnav button[aria-current="page"] svg:not(#z):not(#y):not(#x):not(#w), html body .seima-dock button[aria-current="page"] svg:not(#z):not(#y):not(#x):not(#w) { background: #E55B13 !important; color: #FFFFFF !important; box-shadow: none !important; }
html body .nh-bottom.nh-tribar button.is-center svg:not(#z):not(#y):not(#x):not(#w), html body .ian-chat .ic-appnav button.is-center svg:not(#z):not(#y):not(#x):not(#w) { background: transparent !important; color: var(--text) !important; box-shadow: inset 0 0 0 2px #E55B13 !important; }
html body #view-notes .nh .nh-scard-ic:not(#z):not(#y):not(#x):not(#w) { background: transparent !important; color: var(--text) !important; box-shadow: inset 0 0 0 2px #E55B13 !important; }
html body #view-notes .nh .nh-scard-ic svg:not(#z):not(#y):not(#x):not(#w) { color: var(--text) !important; }
html body #view-notes .nh .nh-fsvg .fb:not(#z):not(#y):not(#x):not(#w) { fill: var(--panel-2) !important; stroke: #E55B13 !important; stroke-width: 2px !important; }
html body #view-notes .nh .nh-fsvg .ff:not(#z):not(#y):not(#x):not(#w) { fill: var(--panel) !important; stroke: #E55B13 !important; stroke-width: 2px !important; }
/* 2026-10-31 · modo oscuro: las filas de Ajustes ya no son blancas */
:root[data-theme="dark"] html body #view-notes .nh .nh-scard:not(#z):not(#y):not(#x):not(#w), :root[data-theme="dark"] body #view-notes .nh .nh-scard:not(#z):not(#y):not(#x):not(#w) { background: var(--panel) !important; border: 1px solid var(--line) !important; color: var(--text) !important; }
:root[data-theme="dark"] body #view-notes .nh .nh-scard:not(#z):not(#y):not(#x):not(#w) *:not(svg):not(path):not(.nh-scard-ic) { color: var(--text) !important; }
:root[data-theme="dark"] body #view-notes .nh .nh-scard small:not(#z):not(#y):not(#x):not(#w) { color: var(--muted) !important; }
/* 2026-10-31 · en modo claro los trazos de los íconos eran blancos sobre fondo blanco: ahora toman el color de texto */
html body .nh-bottom.nh-tribar button svg:not(#z):not(#y):not(#x):not(#w), html body .nh-bottom.nh-tribar button svg:not(#z):not(#y):not(#x):not(#w) *, html body .ian-chat .ic-appnav button svg:not(#z):not(#y):not(#x):not(#w), html body .ian-chat .ic-appnav button svg:not(#z):not(#y):not(#x):not(#w) *, html body .seima-dock button svg:not(#z):not(#y):not(#x):not(#w), html body .seima-dock button svg:not(#z):not(#y):not(#x):not(#w) * { stroke: currentColor !important; }
html body .nh-bottom.nh-tribar button[aria-current="page"] svg:not(#z):not(#y):not(#x):not(#w) *, html body .ian-chat .ic-appnav button[aria-current="page"] svg:not(#z):not(#y):not(#x):not(#w) *, html body .seima-dock button[aria-current="page"] svg:not(#z):not(#y):not(#x):not(#w) * { stroke: #FFFFFF !important; }
html body #view-notes .nh .nh-scard-ic svg:not(#z):not(#y):not(#x):not(#w), html body #view-notes .nh .nh-scard-ic svg:not(#z):not(#y):not(#x):not(#w) * { stroke: currentColor !important; }
/* 2026-10-31 · la tapa del cuaderno giraba sin el dibujo (el filtro del dibujo lo despegaba del giro): sin filtro, el dibujo gira con la tapa */
html body .sc-nb-cover .sc-cover-logo:not(#z):not(#y):not(#x):not(#w), :root[data-theme="dark"] html body .sc-nb-cover .sc-cover-logo:not(#z):not(#y):not(#x):not(#w) { filter: none !important; transform: translateZ(0); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.sc-nb-cover > .sc-front, .sc-nb-cover > .sc-front::before, .sc-nb-cover > .sc-front::after { backface-visibility: hidden; -webkit-backface-visibility: hidden; }