/* =====================================================================================
   Editor nuevo de NamiChats ("estudio"): apps a la izquierda, teléfono al centro con su barra de íconos y un
   panel fijo a la derecha con pestañas (🌐 chat global, Chatear, Contacto, Teléfono, Estilo).
   En el celular: apps en una fila arriba, el teléfono y el panel como hoja fija abajo.
   Lo arma /assets/js/nc-studio.js moviendo los mismos controles de siempre (no se pierde ninguna opción).
   Solo aplica con <html class="ncs-on"> (el editor clásico se ve con ?ui=clasico).
   ===================================================================================== */

html.ncs-on #editor-section:not(.ncs-ready) { visibility: hidden; }
html.ncs-on #editor-section > .editor-grid { display: none !important; }
html.ncs-on #livechat-bubble-collapsed, html.ncs-on #livechat-fab, html.ncs-on #action-buttons { display: none !important; }
/* Celular: el chat global (ventana que sube) va encima de la hoja del editor */
html.ncs-on #livechat-drawer { z-index: 1450 !important; }

.ncs { --ncs-side: 400px; --ncs-rail: 84px; --ncs-bg: #09090b; --ncs-panel: #0f0f13; --ncs-line: rgba(255,255,255,.08); --ncs-soft: rgba(255,255,255,.04); --ncs-tx: #f4f4f5; --ncs-mut: #a1a1aa; --ncs-dim: #71717a;
    display: grid; grid-template-columns: var(--ncs-rail) minmax(0, 1fr) var(--ncs-side); height: calc(100vh - 64px); height: calc(100dvh - 64px); font-family: Inter, Montserrat, system-ui, sans-serif; color: var(--ncs-tx); }
@media (min-width: 1440px) { .ncs { --ncs-side: 440px; } }
html.ncs-on #editor-section.ncs-ready { padding: 64px 0 0 !important; min-height: 0 !important; max-width: none !important; overflow: hidden !important; animation: none !important; }
@media (min-width: 1024px) { html.ncs-on body { overflow: hidden; } }

/* ---------- Apps (izquierda) ---------- */
.ncs-rail { min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 12px 8px; border-right: 1px solid var(--ncs-line); background: rgba(255,255,255,.015); }
.ncs-rail::-webkit-scrollbar { display: none; }
.ncs-rail .nc-apps { flex-direction: column; align-items: stretch; gap: 4px; overflow: visible; padding: 0; margin: 0; border: 0; }
.ncs-rail .nc-app { width: 100%; padding: 8px 2px 7px; gap: 6px; border-radius: 14px; }
.ncs-rail .nc-app-ic { width: 38px; height: 38px; border-radius: 12px; }
.ncs-rail .nc-app-tx { font-size: 9.5px; font-weight: 700; }
.ncs-rail .nc-app.is-active { background: rgba(176,38,255,.12); border-color: rgba(176,38,255,.45); }
.ncs-rail .nc-apps-sep { width: auto; height: 1px; align-self: auto; margin: 6px 8px; }
html[data-theme="light"] .ncs-rail .nc-app { color: #52525b; }
html[data-theme="light"] .ncs-rail .nc-app:hover { color: #0f0f14; background: rgba(15,15,20,.04); }
html[data-theme="light"] .ncs-rail .nc-app.is-active { color: #6b21a8; background: rgba(176,38,255,.09); border-color: rgba(176,38,255,.35); }

/* ---------- Centro: barra de íconos + teléfono ---------- */
.ncs-stage { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; overflow: hidden; background: radial-gradient(900px 600px at 50% 0%, rgba(176,38,255,.06), transparent 70%); }
.ncs-bar { position: relative; z-index: 70; margin: 14px 12px 4px; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 16px; background: rgba(20,20,26,.85); border: 1px solid var(--ncs-line); box-shadow: 0 10px 30px rgba(0,0,0,.35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); max-width: calc(100% - 24px); flex-wrap: nowrap; }
.ncs-sep { width: 1px; height: 22px; margin: 0 4px; background: var(--ncs-line); flex-shrink: 0; }
.ncs-ib { position: relative; width: 36px; height: 36px; flex-shrink: 0; border: 0; border-radius: 11px; background: transparent; color: #d4d4d8; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; transition: background-color .15s, color .15s; }
.ncs-ib:hover { background: rgba(255,255,255,.07); color: #fff; }
.ncs-ib.on { color: #fff; background: rgba(176,38,255,.22); box-shadow: inset 0 0 0 1px rgba(176,38,255,.45); }
.ncs-ib[data-tip]:hover::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 600; color: #fff; background: #000; box-shadow: 0 6px 18px rgba(0,0,0,.4); pointer-events: none; z-index: 5; }
/* Sistema operativo */
.ncs-os { position: relative; }
.ncs-os-btn { height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 0; border-radius: 11px; background: rgba(255,255,255,.05); color: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ncs-os-btn:hover { background: rgba(255,255,255,.09); }
.ncs-os-btn .fa-chevron-down { font-size: 9px; opacity: .6; transition: transform .2s; }
.ncs-os.open .ncs-os-btn .fa-chevron-down { transform: rotate(180deg); }
.ncs-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 190px; padding: 6px; border-radius: 14px; background: #17161c; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 22px 50px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97); transform-origin: top left; transition: opacity .15s, transform .15s, visibility 0s linear .15s; z-index: 90; }
.open > .ncs-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s, visibility 0s; }
.ncs-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: #e4e4e7; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; }
.ncs-menu button:hover { background: rgba(255,255,255,.06); color: #fff; }
.ncs-menu button i:first-child { width: 18px; text-align: center; color: #c4b5fd; }
.ncs-menu button .ck { margin-left: auto; font-size: 11px; color: #c084fc; visibility: hidden; }
.ncs-menu button.on .ck { visibility: visible; }
/* Idioma del teléfono */
.ncs-lang { display: inline-flex; padding: 3px; border-radius: 11px; background: rgba(255,255,255,.05); }
.ncs-lang button { height: 30px; min-width: 34px; padding: 0 8px; border: 0 !important; border-radius: 8px; background: transparent !important; color: var(--ncs-mut) !important; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; cursor: pointer; }
.ncs-lang button.border-neon-purple { color: #fff !important; background: rgba(176,38,255,.3) !important; }
/* Guardar, proyectos, etiqueta y descargar (los mismos botones de siempre) */
.ncs-acts { display: flex; align-items: center; gap: 4px; }
.ncs-acts .nc-dl-tools { display: flex !important; gap: 4px; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.ncs-acts .nc-dl-tools-proj { display: flex; gap: 4px; }
.ncs-acts .nc-dl-tool { position: relative; width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; flex-direction: row; gap: 0; border: 0; border-radius: 11px; background: transparent; color: #d4d4d8; font-size: 0; }
.ncs-acts .nc-dl-tool > i:first-child { font-size: 15px; }
.ncs-acts .nc-dl-tool > span { display: none; }
.ncs-acts .nc-dl-tool:hover { background: rgba(255,255,255,.07); color: #fff; }
.ncs-acts .nc-dl-tool .nc-crown { position: absolute; top: 3px; right: 3px; font-size: 8px; color: #fbbf24; margin: 0; }
.ncs-acts .nc-dl-tool[data-tip]:hover::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 600; color: #fff; background: #000; pointer-events: none; z-index: 5; }
.ncs-acts .nc-dm { margin: 0 0 0 4px; }
.ncs-acts .nc-dm-btn { min-height: 36px; height: 36px; width: auto; padding: 0 14px; border-radius: 11px; font-size: 13px; box-shadow: 0 6px 18px rgba(176,38,255,.3); }
.ncs-acts .nc-dm-car { transform: rotate(180deg); }
.ncs-acts .nc-dm-menu { left: auto; right: 0; bottom: auto; top: calc(100% + 8px); }
.ncs-proj { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 5; max-width: 80%; }
.ncs-proj .nc-proj-cur { margin: 0; }
.ncs-phone { flex: 1; min-height: 0; width: 100%; display: flex; justify-content: center; align-items: flex-start; overflow: hidden; }
.ncs-phone #phone-frame-wrapper { margin-top: 0 !important; padding-top: 18px; }

/* ---------- Panel fijo (derecha) ---------- */
.ncs-side { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--ncs-panel); border-left: 1px solid var(--ncs-line); }
.ncs-tabs { flex-shrink: 0; display: flex; align-items: stretch; justify-content: space-between; gap: 0; padding: 0 6px; border-bottom: 1px solid var(--ncs-line); overflow-x: auto; scrollbar-width: none; }
.ncs-tabs::-webkit-scrollbar { display: none; }
.ncs-tabs .tab-btn { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; height: 52px; padding: 0 9px; border: 0; background: transparent; color: var(--ncs-mut); font-size: 13px; font-weight: 700; letter-spacing: .01em; cursor: pointer; transition: color .15s; white-space: nowrap; }
.ncs-tabs .tab-btn i { font-size: 14px; }
.ncs-tabs .tab-btn:hover { color: #fff; }
.ncs-tabs .tab-btn::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #b026ff, #e900ff); opacity: 0; transition: opacity .15s; }
.ncs-tabs .tab-btn.is-active { color: #fff; }
.ncs-tabs .tab-btn.is-active::after { opacity: 1; }
.ncs-tabs .ncs-globe { padding: 0 12px; }
.ncs-tabs .ncs-globe i { font-size: 17px; }
.ncs-tabs .ncs-globe .ncs-dot { position: absolute; top: 12px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px var(--ncs-panel); display: none; }
.ncs-tabs .ncs-globe.has-new .ncs-dot { display: block; }
/* Te responden o te mencionan en el chat global: "@" en vez del punto */
.ncs-tabs .ncs-globe.has-at .ncs-dot { display: flex; align-items: center; justify-content: center; top: 7px; right: 1px; width: 17px; height: 17px; font: 800 11px/1 system-ui, -apple-system, sans-serif; color: #fff; background: #ef4444; }
.ncs-tabs .ncs-globe.has-at .ncs-dot::before { content: "@"; margin-top: -1px; }
.ncs-tabs .ncs-tsep { width: 1px; margin: 14px 4px; background: var(--ncs-line); flex-shrink: 0; }
.ncs-panes { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 16px 18px 20px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.ncs-panes > .tab-content { margin: 0 !important; }
.ncs-phead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 0 14px; min-height: 34px; }
.ncs-ptitle { font-size: 12.5px; font-weight: 600; color: var(--ncs-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncs-ptitle b { color: #fff; font-weight: 700; }
.ncs-pacts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ncs-pacts .nc-clear-wrap { gap: 6px; }
.ncs-pacts #clear-chat-hint { display: none !important; }
/* Tutorial, Borrar y Vaciar: solo el ícono (el nombre sale al pasar el mouse) */
.ncs-pacts .nc-clear { width: 32px; height: 32px; padding: 0; justify-content: center; gap: 0; border-radius: 10px; color: var(--ncs-mut); background: var(--ncs-soft); border: 1px solid var(--ncs-line); font-size: 13px; }
.ncs-pacts .nc-clear span { display: none; }
.ncs-pacts .nc-clear:hover { color: #fff; background: rgba(255,255,255,.08); }
.ncs-pacts #btn-clear-chat:hover, .ncs-pacts #btn-clear-contact:hover { color: #f87171; background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.3); }
html[data-theme="light"] .ncs-pacts .nc-clear:hover { color: #0f0f14; background: rgba(15,15,20,.06); }
.ncs-script-btn { height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--ncs-line); background: var(--ncs-soft); color: #e4e4e7; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ncs-script-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.ncs-empty { padding: 28px 10px; text-align: center; font-size: 13px; color: var(--ncs-dim); }
.ncs-empty i { display: block; font-size: 26px; margin-bottom: 10px; opacity: .6; }
/* Lo que el panel viejo tenía y aquí no se usa */
html.ncs-on #tab-chat .nc-sticky-add > p, html.ncs-on #bloqueo-add-row > p { display: none; }
html.ncs-on .ncs-chatapp #tab-chat .nc-sticky-add:not(#bloqueo-add-row), html.ncs-on .ncs-chatapp #nc-import-row { display: none !important; }
html.ncs-on .ncs .nc-sticky-add { position: sticky; bottom: -20px; z-index: 5; margin: 0 -18px -20px; padding: 14px 18px 14px; background: linear-gradient(to bottom, rgba(15,15,19,0), var(--ncs-panel) 14px); }

/* Historial de mensajes (Chatear) */
.ncs-msgs { display: flex; flex-direction: column; gap: 4px; }
.ncs-msgs[hidden], .ncs-script-btn[hidden], .ncs-empty[hidden] { display: none !important; }
.ncs-msgs:not(:empty) { margin-bottom: 18px; }
.ncs-m { position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 6px 6px 4px; border-radius: 12px; border: 1px solid transparent; background: transparent; transition: background-color .12s, border-color .12s; cursor: pointer; }
.ncs-m:hover { background: rgba(255,255,255,.035); }
.ncs-m.is-edit { background: rgba(176,38,255,.1); border-color: rgba(176,38,255,.45); }
.ncs-m.dragging { opacity: .45; }
.ncs-m.drop-before { box-shadow: 0 -2px 0 0 #b026ff; }
.ncs-m.drop-after { box-shadow: 0 2px 0 0 #b026ff; }
.ncs-grip { width: 18px; height: 30px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #52525b; cursor: grab; touch-action: none; font-size: 13px; }
.ncs-grip:active { cursor: grabbing; }
.ncs-who { flex-shrink: 0; min-width: 54px; max-width: 92px; height: 26px; padding: 0 9px; border: 0; border-radius: 8px; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: flex-start; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.ncs-who span { overflow: hidden; text-overflow: ellipsis; }
.ncs-who.sent { color: #fff; background: linear-gradient(135deg, rgba(176,38,255,.85), rgba(124,58,237,.85)); }
.ncs-who.received { color: #e4e4e7; background: rgba(255,255,255,.08); }
.ncs-mtx { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; color: #f4f4f5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.ncs-mtx .ncs-kind { display: inline-flex; align-items: center; gap: 5px; color: #c4b5fd; font-weight: 600; }
.ncs-mtx .ncs-react { margin-left: 6px; font-size: 13px; }
.ncs-mtime { flex-shrink: 0; font-size: 11.5px; color: var(--ncs-dim); font-variant-numeric: tabular-nums; }
.ncs-mact { display: flex; gap: 2px; flex-shrink: 0; opacity: 0; transition: opacity .12s; }
.ncs-m:hover .ncs-mact, .ncs-m.is-edit .ncs-mact, .ncs-m:focus-within .ncs-mact { opacity: 1; }
@media (hover: none) { .ncs-mact { opacity: 1; } }
.ncs-mact button { width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--ncs-mut); font-size: 14px; cursor: pointer; }
.ncs-mact button:hover { background: rgba(255,255,255,.08); color: #fff; }
.ncs-mact button[data-m-del]:hover { color: #f87171; background: rgba(239,68,68,.12); }
.ncs-rpop { position: absolute; right: 36px; bottom: calc(100% - 2px); z-index: 30; display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: #1c1b22; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 14px 34px rgba(0,0,0,.55); }
.ncs-rpop button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; font-size: 19px; cursor: pointer; transition: transform .1s, background-color .1s; }
.ncs-rpop button:hover { transform: scale(1.18); background: rgba(255,255,255,.08); }
.ncs-rpop button.on { background: rgba(176,38,255,.3); }
.ncs-rpop button.x { font-size: 13px; color: #a1a1aa; }
.ncs-rpop.down { bottom: auto; top: calc(100% - 2px); }

/* Pie de Chatear: estado del mensaje + redactor */
.ncs-foot { flex-shrink: 0; position: relative; border-top: 1px solid var(--ncs-line); padding: 10px 12px 10px; background: var(--ncs-panel); }
.ncs-foot[hidden] { display: none; }
.ncs-stat { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.ncs-stat #status-container { flex: 1; min-width: 0; display: block; margin: 0 !important; }
.ncs-stat #status-container.hidden { display: none !important; }
.ncs-stat #status-container > label { display: none; }
.ncs-stat #status-container > .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ncs-stat #status-container button { height: 38px; border-radius: 11px; }
.ncs-stat .ncs-time { margin-left: auto; flex-shrink: 0; }
.ncs-time { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 11px; border: 1px solid var(--ncs-line); background: rgba(255,255,255,.02); color: var(--ncs-mut); font-size: 12px; }
.ncs-time input { width: 48px; background: transparent !important; border: 0 !important; padding: 0 !important; color: #fff !important; font-size: 13px !important; text-align: center; outline: none; box-shadow: none !important; }
.ncs-hint { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--ncs-dim); }
.ncs-hint kbd { display: inline-block; padding: 1px 6px; margin-right: 3px; border-radius: 5px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); font: 600 10.5px Inter, system-ui, sans-serif; color: #d4d4d8; }
.ncs-hint .q { white-space: nowrap; }
/* Más opciones del mensaje (foto, audio, sticker, reacción, separador, SMS/iMessage…): se abre con + */
.ncs-opts { display: none; position: absolute; left: 0; right: 0; bottom: 100%; max-height: min(62vh, 560px); overflow-y: auto; padding: 14px 16px 16px; background: #131218; border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 -20px 40px rgba(0,0,0,.45); border-radius: 18px 18px 0 0; }
.ncs-opts.open { display: block; animation: ncsUp .16s ease-out; }
@keyframes ncsUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ncs-opts-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 13px; font-weight: 800; }
.ncs-opts-h button { width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--ncs-mut); cursor: pointer; }
.ncs-opts-h button:hover { background: rgba(255,255,255,.08); color: #fff; }
.ncs-opts #chat-message-editor-container > label:first-child, .ncs-opts #msg-text, .ncs-opts .nc-sticky-add, .ncs-opts #tx-video-sound, .ncs-opts #twitterx-counts-container, .ncs-opts #msg-type { display: none !important; }
.ncs-opts #chat-message-editor-container .grid.grid-cols-2:has(> #msg-type) { display: none !important; }
/* Opciones del mensaje: solo lo que no está en otro lado (foto como video, Transcribir, el audio o sticker listo).
   Foto/audio/sticker van en el +, la reacción y el separador en la lista de mensajes, el estado en los botones de arriba. */
.ncs-opts #msg-media-label, .ncs-opts #msg-media, .ncs-opts #msg-media-label + .ncf, .ncs-opts #cm-panel > label:first-child, .ncs-opts #cm-panel > .grid,
.ncs-opts #cm-panel > p, .ncs-opts #cm-myavatar-row, .ncs-opts #nc-extras, .ncs-opts #status-container { display: none !important; }
.ncs-opts #ncx-video-block { margin-top: 0; }
.ncs-opts #cm-transcribe-row { margin-top: 0; }
.ncs-opts #chat-message-editor-container > div { margin-bottom: 0 !important; }
/* Responder: separado de "Mostrar como video" / "Transcribir" cuando se ven juntos */
.ncs-opts #chat-message-editor-container:has(#ncx-video-block:not(.hidden), #cm-transcribe-row:not(.hidden)) #ncx-reply-block { margin-top: 16px !important; }
/* Menú del + */
.ncs-plus { position: absolute; bottom: calc(100% + 8px); right: 0; z-index: 40; min-width: 220px; padding: 6px; border-radius: 14px; background: #1a1920; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.ncs-plus[hidden] { display: none; }
.ncs-plus button { width: 100%; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: #e4e4e7; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; }
.ncs-plus button:hover { background: rgba(255,255,255,.06); color: #fff; }
.ncs-plus button i { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; }
.ncs-plus .sep { height: 1px; margin: 5px 4px; background: rgba(255,255,255,.07); }

/* Chat global como pestaña fija (el mismo panel de siempre) */
.ncs-global { position: absolute; inset: 0; display: flex; flex-direction: column; }
#tab-global.hidden { display: none !important; }
html.ncs-on #tab-global #livechat-panel { position: static !important; inset: auto !important; display: flex !important; width: 100% !important; max-width: none !important; height: 100% !important; max-height: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; opacity: 1 !important; transform: none !important; pointer-events: auto !important; background: transparent !important; }
html.ncs-on #tab-global #livechat-panel > div:first-child { background: transparent !important; }
html.ncs-on #tab-global #livechat-btn-collapse { display: none !important; }
html.ncs-on .ncs-panes.is-global { padding: 0; overflow: hidden; }
html.ncs-on .ncs-panes.is-global .ncs-phead { display: none; }
.ncs-rules { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(12,11,16,.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ncs-rules-card { width: 100%; max-width: 340px; text-align: center; }
.ncs-rules-ic { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 17px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; background: linear-gradient(135deg, #b026ff, #7c3aed); box-shadow: 0 10px 30px rgba(176,38,255,.35); }
.ncs-rules h3 { margin: 0 0 14px; font-size: 18px; font-weight: 800; }
.ncs-rules ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; text-align: left; }
.ncs-rules li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); font-size: 13px; line-height: 1.4; color: #e4e4e7; }
.ncs-rules li i { margin-top: 2px; width: 16px; text-align: center; color: #c084fc; }
.ncs-rules .go { width: 100%; min-height: 46px; border: 0; border-radius: 13px; color: #fff; font-size: 14px; font-weight: 800; background: linear-gradient(135deg, #b026ff, #7c3aed); cursor: pointer; }
/* Adjuntar foto en el chat global */
.lc-attach { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #d4d4d8; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lc-attach:hover { background: rgba(255,255,255,.1); color: #fff; }
.lc-attach.busy { opacity: .5; pointer-events: none; }

/* Estilo */
#tab-estilo .ncs-sec + .ncs-sec { margin-top: 26px; }
.ncs-only[hidden] { display: none !important; }

/* =====================================================================================
   Celular y tablet (<1024 px): apps en fila arriba, barra de íconos, teléfono y el panel como hoja fija abajo
   ===================================================================================== */
@media (max-width: 1023.98px) {
    .ncs { display: flex; flex-direction: column; height: auto; min-height: calc(100dvh - 64px); padding-bottom: var(--ncs-sheet, 160px); }
    html.ncs-on #editor-section.ncs-ready { overflow: visible !important; }
    /* Apps: una fila de íconos (sin nombres; el nombre sale en la barra de la hoja) */
    .ncs-rail { position: relative; z-index: 60; flex-shrink: 0; padding: 6px 8px; border-right: 0; border-bottom: 1px solid var(--ncs-line); background: rgba(9,9,11,.92); overflow-x: auto; overflow-y: hidden; }
    .ncs-rail .nc-apps { flex-direction: row; gap: 4px; }
    .ncs-rail .nc-app { width: 44px; flex-shrink: 0; padding: 4px 0; gap: 0; border-radius: 12px; }
    .ncs-rail .nc-app-ic { width: 32px; height: 32px; border-radius: 10px; }
    .ncs-rail .nc-app-tx { display: none; }
    .ncs-rail .nc-apps-sep { width: 1px; height: auto; align-self: stretch; margin: 4px 3px; }
    .ncs-stage { overflow: visible; }
    /* Barra en una sola línea: sistema solo con su ícono, idioma como un botón que alterna ES/EN */
    .ncs-bar { margin: 8px 8px 0; padding: 4px; gap: 1px; flex-wrap: nowrap; justify-content: center; max-width: calc(100% - 16px); }
    .ncs-sep { margin: 0 2px; }
    .ncs-ib, .ncs-acts .nc-dl-tool { width: 34px; min-width: 34px; height: 34px; min-height: 34px; }
    .ncs-os-btn { padding: 0 8px; gap: 5px; height: 34px; font-size: 15px; }
    .ncs-os-btn [data-os-name] { display: none; }
    .ncs-lang { padding: 2px; }
    .ncs-lang button:not(.border-neon-purple) { display: none; }
    .ncs-lang button { height: 30px; min-width: 32px; padding: 0 6px; }
    .ncs-ib[data-tip]:hover::after, .ncs-acts .nc-dl-tool[data-tip]:hover::after { display: none; }
    .ncs-acts .nc-dm-btn { padding: 0 12px; }
    .ncs-acts .nc-dm-btn span { display: none; }
    .ncs-acts .nc-dm-btn.is-busy { min-width: 56px; padding: 0 8px; justify-content: center; font-size: 12px; opacity: 1; color: #fff; }
    .ncs-acts .nc-dm-btn .nc-dm-pc { display: inline; }
    .ncs-acts .nc-dm-btn.has-pc > i:first-child { display: none; } /* con avance ("31%") basta el número: el botón no se ensancha */
    .ncs-phone #phone-frame-wrapper { padding-top: 12px; padding-bottom: 12px; }
    .ncs-proj { position: static; transform: none; margin: 0 0 8px; }
    /* Hoja fija abajo */
    .ncs-side { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1300; max-height: calc(100dvh - 120px); border-left: 0; border-top: 1px solid rgba(255,255,255,.1); border-radius: 20px 20px 0 0; box-shadow: 0 -18px 50px rgba(0,0,0,.55); padding-bottom: env(safe-area-inset-bottom); transition: height .22s ease; }
    .ncs-grab { display: flex; justify-content: center; padding: 7px 0 1px; cursor: pointer; }
    .ncs-grab span { width: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); }
    .ncs-tabs { padding: 0 6px; justify-content: space-between; }
    .ncs-tabs .tab-btn { height: 44px; padding: 0 8px; font-size: 12px; gap: 6px; }
    .ncs-tabs .tab-btn i { font-size: 13px; }
    .ncs-tabs .ncs-tsep { margin: 12px 2px; }
    .ncs-panes { padding: 14px 14px 16px; }
    .ncs-side:not(.open) .ncs-panes { display: none; }
    .ncs-side:not(.open) .ncs-tabs .tab-btn::after { opacity: 0; }
    .ncs-side.open { height: min(72dvh, calc(100dvh - 120px)); }
    .ncs-side:not(.open) .ncs-stat { display: none; }
    .ncs-side:not(.open) .ncs-hint { display: none; }
    .ncs-foot { padding: 8px 10px; }
    .ncs-opts { max-height: 60dvh; }
    .ncs-hint .keys { display: none; }
}
@media (max-width: 379.98px) {
    /* celulares angostos (360 px): la barra no cabía y se cortaban los extremos */
    .ncs-ib, .ncs-acts .nc-dl-tool { width: 31px; min-width: 31px; }
    .ncs-os-btn { padding: 0 6px; gap: 3px; }
    .ncs-acts .nc-dm-btn { padding: 0 10px; }
    .ncs-acts .nc-dm-btn.is-busy { min-width: 52px; padding: 0 6px; }
}
@media (min-width: 1024px) { .ncs-grab { display: none; } }
@media (min-width: 1024px) and (max-width: 1439.98px) { .ncs-tabs .tab-btn { padding: 0 7px; gap: 6px; font-size: 12.5px; } .ncs-tabs .ncs-tsep { margin: 14px 2px; } }
@media (min-width: 1024px) and (max-width: 1279.98px) { .ncs { --ncs-side: 360px; --ncs-rail: 76px; } .ncs-tabs .tab-btn:not(.ncs-globe) i { display: none; } .ncs-tabs .tab-btn { padding: 0 7px; font-size: 12.5px; } .ncs-acts .nc-dm-btn span { display: none; } .ncs-acts .nc-dm-btn .nc-dm-pc { display: inline; } }

/* =====================================================================================
   Modo claro
   ===================================================================================== */
html[data-theme="light"] .ncs { --ncs-panel: #ffffff; --ncs-line: rgba(15,15,20,.09); --ncs-soft: rgba(15,15,20,.03); --ncs-tx: #0f0f14; --ncs-mut: #52525b; --ncs-dim: #71717a; }
html[data-theme="light"] .ncs-rail { background: #fbfbfd; }
html[data-theme="light"] .ncs-stage { background: radial-gradient(900px 600px at 50% 0%, rgba(176,38,255,.06), transparent 70%), #f4f4f7; }
html[data-theme="light"] .ncs-bar { background: rgba(255,255,255,.92); box-shadow: 0 10px 30px rgba(15,15,20,.1); }
html[data-theme="light"] .ncs-ib, html[data-theme="light"] .ncs-acts .nc-dl-tool { color: #3f3f46; }
html[data-theme="light"] .ncs-ib:hover, html[data-theme="light"] .ncs-acts .nc-dl-tool:hover { background: rgba(15,15,20,.06); color: #0f0f14; }
html[data-theme="light"] .ncs-ib.on { color: #6b21a8; background: rgba(176,38,255,.12); }
html[data-theme="light"] .ncs-os-btn { color: #0f0f14; background: rgba(15,15,20,.05); }
html[data-theme="light"] .ncs-lang { background: rgba(15,15,20,.05); }
html[data-theme="light"] .ncs-lang button.border-neon-purple { color: #fff !important; background: linear-gradient(135deg, #b026ff, #7c3aed) !important; }
html[data-theme="light"] .ncs-menu, html[data-theme="light"] .ncs-plus { background: #fff; border-color: rgba(15,15,20,.1); box-shadow: 0 22px 50px rgba(15,15,20,.18); }
html[data-theme="light"] .ncs-menu button, html[data-theme="light"] .ncs-plus button { color: #27272a; }
html[data-theme="light"] .ncs-menu button:hover, html[data-theme="light"] .ncs-plus button:hover { background: rgba(15,15,20,.05); color: #0f0f14; }
html[data-theme="light"] .ncs-menu button i:first-child { color: #7e22ce; }
html[data-theme="light"] .ncs-tabs .tab-btn:hover, html[data-theme="light"] .ncs-tabs .tab-btn.is-active { color: #0f0f14; }
html[data-theme="light"] .ncs-ptitle b { color: #0f0f14; }
html[data-theme="light"] .ncs-script-btn { color: #27272a; }
html[data-theme="light"] .ncs-script-btn:hover { background: rgba(15,15,20,.06); color: #0f0f14; }
html[data-theme="light"] .ncs-m:hover { background: rgba(15,15,20,.03); }
html[data-theme="light"] .ncs-m.is-edit { background: rgba(176,38,255,.07); }
html[data-theme="light"] .ncs-who.received { color: #27272a; background: #f1f1f4; }
html[data-theme="light"] .ncs-mtx { color: #18181b; }
html[data-theme="light"] .ncs-mtx .ncs-kind { color: #7e22ce; }
html[data-theme="light"] .ncs-mact button:hover { background: rgba(15,15,20,.06); color: #0f0f14; }
html[data-theme="light"] .ncs-rpop { background: #fff; border-color: rgba(15,15,20,.1); box-shadow: 0 14px 34px rgba(15,15,20,.18); }
html[data-theme="light"] .ncs-rpop button:hover { background: rgba(15,15,20,.06); }
html[data-theme="light"] .ncs-rpop button.on { background: rgba(176,38,255,.15); }
html[data-theme="light"] .ncs-time input { color: #0f0f14 !important; }
html[data-theme="light"] .ncs-hint kbd { border-color: rgba(15,15,20,.14); background: #f4f4f5; color: #3f3f46; }
html[data-theme="light"] .ncs-opts { background: #fff; border-top-color: rgba(15,15,20,.1); box-shadow: 0 -20px 40px rgba(15,15,20,.12); }
html[data-theme="light"] .ncs-opts-h button:hover { background: rgba(15,15,20,.06); color: #0f0f14; }
html[data-theme="light"] .ncs-rules { background: rgba(255,255,255,.95); }
html[data-theme="light"] .ncs-rules li { background: #f6f6f9; border-color: rgba(15,15,20,.07); color: #27272a; }
html[data-theme="light"] .lc-attach { color: #3f3f46; background: #f4f4f5; border-color: rgba(15,15,20,.1); }
html[data-theme="light"] .ncs-tabs .ncs-globe .ncs-dot { box-shadow: 0 0 0 2px #fff; }
html[data-theme="light"] .ncs .nc-sticky-add { background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 14px); }
@media (max-width: 1023.98px) {
    html[data-theme="light"] .ncs-rail { background: rgba(251,251,253,.94); }
    html[data-theme="light"] .ncs-side { box-shadow: 0 -18px 50px rgba(15,15,20,.16); border-top-color: rgba(15,15,20,.1); }
    html[data-theme="light"] .ncs-grab span { background: rgba(15,15,20,.18); }
}

/* =====================================================================================
   v2: ajustes después de probarlo
   ===================================================================================== */
/* Sin la barra de desplazamiento de la página en PC (solo se desplaza el panel) y sin saltos al aparecer su barra */
@media (min-width: 1024px) { html.ncs-on, html.ncs-on body { overflow: hidden !important; height: 100%; } }
.ncs-panes { scrollbar-gutter: stable; }
.ncs-panes::-webkit-scrollbar { width: 8px; }
.ncs-panes::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
html[data-theme="light"] .ncs-panes::-webkit-scrollbar-thumb { background-color: rgba(15,15,20,.15); }
/* Encabezado de la pestaña (N mensajes · Usar script · Importar…) fijo al desplazar la lista */
.ncs-phead { position: sticky; top: -16px; z-index: 25; margin: -16px -18px 12px; padding: 12px 18px 10px; background: var(--ncs-panel); border-bottom: 1px solid transparent; }
.ncs-panes.scrolled .ncs-phead { border-bottom-color: var(--ncs-line); }
.ncs-script-btn { gap: 6px; padding: 0 10px; }
.ncs-script-btn .ncs-crown, .ncs-plus .ncs-crown { font-size: 9px; color: #fbbf24; margin-left: 2px; }
.ncs-plus button i.ncs-crown { margin-left: auto; width: auto; height: auto; background: none !important; font-size: 10px; }
/* Historial: el mensaje completo (sin "…"), separador de fecha y reacción con los emojis de Apple */
.ncs-mtx { display: block; -webkit-line-clamp: unset; overflow: visible; white-space: pre-wrap; }
.ncs-m { align-items: flex-start; }
.ncs-m > .ncs-grip, .ncs-m > .ncs-who, .ncs-m > .ncs-mtime, .ncs-m > .ncs-mact { margin-top: 3px; }
.ncs-sepb { display: flex; width: fit-content; align-items: center; gap: 5px; margin: 0 0 4px; padding: 2px 8px; border-radius: 7px; font-size: 11px; font-weight: 600; color: var(--ncs-mut); background: rgba(255,255,255,.05); }
.ncs-react { display: inline-flex; align-items: center; gap: 1px; margin-left: 8px; padding: 2px 6px; border-radius: 999px; background: rgba(255,255,255,.07); vertical-align: middle; }
.ncs-react b { margin-left: 3px; font-size: 11px; font-weight: 700; color: var(--ncs-mut); }
.ncs-emo { display: inline-block; vertical-align: middle; object-fit: contain; }
.ncs-mtime { border: 0; background: transparent; padding: 4px 6px; border-radius: 8px; cursor: pointer; font-family: inherit; }
.ncs-mtime:hover { background: rgba(255,255,255,.07); color: #fff; }
html[data-theme="light"] .ncs-sepb, html[data-theme="light"] .ncs-react { background: rgba(15,15,20,.05); }
html[data-theme="light"] .ncs-mtime:hover { background: rgba(15,15,20,.06); color: #0f0f14; }
/* Estado del mensaje: una fila compacta (en Instagram/Messenger hay más opciones: se desliza) */
.ncs-stat #status-container > .grid { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.ncs-stat #status-container > .grid::-webkit-scrollbar { display: none; }
.ncs-stat #status-container button { flex: 1 0 auto; min-width: 40px; height: 32px; padding: 0 10px; border-radius: 10px; font-size: 11px; white-space: nowrap; }
.ncs-stat #status-container button svg { width: 15px; height: 15px; }
.ncs-time { height: 32px; border-radius: 10px; }
/* Ventanitas de reacción y de hora (van en el panel, junto a la fila) */
.ncs-rpop, .ncs-tpop { position: absolute; right: 18px; bottom: auto; top: 0; z-index: 30; border-radius: 16px; background: #1c1b22; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.ncs-rpop { display: block; padding: 6px; max-width: calc(100% - 36px); border-radius: 18px; }
.ncs-rpop .rp-top { display: flex; align-items: center; gap: 2px; }
.ncs-rpop button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .1s, background-color .1s; font-size: 0; }
.ncs-rpop button:hover { transform: scale(1.15); background: rgba(255,255,255,.08); }
.ncs-rpop button.on { background: rgba(176,38,255,.32); }
.ncs-rpop button.more { font-size: 14px; color: #e4e4e7; background: rgba(255,255,255,.08); }
.ncs-rpop button.more.on { background: rgba(176,38,255,.32); }
.ncs-rpop .rp-more { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 168px; overflow-y: auto; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.08); }
.ncs-rpop .rp-more button { width: 34px; height: 34px; }
.ncs-rpop .rp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding: 6px 4px 2px; border-top: 1px solid rgba(255,255,255,.08); }
.ncs-rpop .rp-foot label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ncs-mut); }
.ncs-rpop .rp-foot input { width: 56px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: #000; color: #fff; text-align: center; font-size: 13px; }
.ncs-rpop .rp-foot button { width: auto; height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #f87171; }
.ncs-rpop .rp-foot button:hover { transform: none; background: rgba(239,68,68,.12); }
.ncs-tpop { width: 280px; padding: 14px; }
.ncs-tpop .tp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; }
.ncs-tpop input { height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: #000; color: #fff; padding: 0 10px; font-size: 14px; color-scheme: dark; }
.ncs-tpop input[type="date"], .ncs-tpop input[type="text"] { width: 100%; margin-top: 8px; }
.ncs-tpop input[hidden] { display: none; }
.ncs-tpop .tp-sec { margin: 14px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ncs-dim); }
.ncs-tpop .tp-seg { display: flex; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.05); }
.ncs-tpop .tp-seg button { flex: 1; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ncs-mut); font-size: 12px; font-weight: 700; cursor: pointer; }
.ncs-tpop .tp-seg button.on { color: #fff; background: rgba(176,38,255,.35); }
.ncs-tpop .tp-prev { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--ncs-mut); }
.ncs-tpop .tp-prev[hidden] { display: none; }
.ncs-tpop .tp-acts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 14px; }
.ncs-tpop .tp-acts button { height: 34px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: transparent; color: #e4e4e7; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ncs-tpop .tp-acts button.pri { border-color: transparent; color: #fff; background: linear-gradient(135deg, #b026ff, #7c3aed); }
html[data-theme="light"] .ncs-rpop, html[data-theme="light"] .ncs-tpop { background: #fff; border-color: rgba(15,15,20,.1); box-shadow: 0 16px 40px rgba(15,15,20,.18); color: #0f0f14; }
html[data-theme="light"] .ncs-rpop button:hover { background: rgba(15,15,20,.06); }
html[data-theme="light"] .ncs-rpop button.on, html[data-theme="light"] .ncs-tpop .tp-seg button.on { background: rgba(176,38,255,.15); color: #6b21a8; }
html[data-theme="light"] .ncs-rpop button.more { color: #3f3f46; background: #f4f4f5; }
html[data-theme="light"] .ncs-rpop .rp-more, html[data-theme="light"] .ncs-rpop .rp-foot { border-top-color: rgba(15,15,20,.08); }
html[data-theme="light"] .ncs-tpop input, html[data-theme="light"] .ncs-rpop .rp-foot input { background: #fafafa; color: #0f0f14; border-color: rgba(15,15,20,.15); color-scheme: light; }
html[data-theme="light"] .ncs-tpop .tp-seg { background: #f4f4f5; }
html[data-theme="light"] .ncs-tpop .tp-acts button { color: #27272a; border-color: rgba(15,15,20,.14); }
html[data-theme="light"] .ncs-tpop .tp-acts button.pri { color: #fff; }
/* Mover: la fila se levanta y sigue al dedo/mouse; las demás se corren */
.ncs-msgs.is-dragging { user-select: none; }
.ncs-m.dragging { position: relative; z-index: 20; opacity: 1; background: #1d1c24; border-color: rgba(176,38,255,.6); box-shadow: 0 14px 34px rgba(0,0,0,.55), 0 0 0 1px rgba(176,38,255,.35); cursor: grabbing; transition: box-shadow .15s, background-color .15s; }
.ncs-m.dragging .ncs-grip { color: #c084fc; }
html[data-theme="light"] .ncs-m.dragging { background: #fff; box-shadow: 0 14px 34px rgba(15,15,20,.18), 0 0 0 1px rgba(176,38,255,.35); }
/* Menús de la barra (idioma del teléfono y compartir) */
.ncs-dd { position: relative; }
.ncs-dd.open > .ncs-ib { color: #fff; background: rgba(255,255,255,.08); }
.ncs-dd.open > .ncs-ib[data-tip]:hover::after { display: none; }
.ncs-menu.ncs-menu-end { left: auto; right: 0; transform-origin: top right; }
.ncs-plang .ncs-menu { left: 50%; transform: translate(-50%, -6px) scale(.97); transform-origin: top center; }
.ncs-plang.open .ncs-menu { transform: translate(-50%, 0); }
.ncs-menu [data-phone-lang] { border: 0 !important; background: transparent !important; color: #e4e4e7 !important; padding: 9px 10px !important; }
.ncs-menu [data-phone-lang]:hover { background: rgba(255,255,255,.06) !important; }
.ncs-menu [data-phone-lang].border-neon-purple .ck { visibility: visible; }
.ncs-flag { font-family: 'Twemoji Country Flags', system-ui; font-size: 16px; width: 18px; text-align: center; }
.ncs-msep { height: 1px; margin: 5px 4px; background: rgba(255,255,255,.08); }
.ncs-ib.busy { pointer-events: none; opacity: .7; }
html[data-theme="light"] .ncs-menu [data-phone-lang] { color: #27272a !important; }
html[data-theme="light"] .ncs-menu [data-phone-lang]:hover { background: rgba(15,15,20,.05) !important; }
html[data-theme="light"] .ncs-msep { background: rgba(15,15,20,.08); }
html[data-theme="light"] .ncs-dd.open > .ncs-ib { color: #0f0f14; background: rgba(15,15,20,.06); }
/* Sticker/GIF, grabación y audio listo: arriba del redactor */
.ncs-foot > #cm-gif:not(.hidden) { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 8px); z-index: 45; margin: 0; box-shadow: 0 20px 50px rgba(0,0,0,.6); background: #141319; }
.ncs-foot > #cm-recorder:not(.hidden), .ncs-foot > #cm-pending:not(.hidden) { margin: 0 0 10px; }
html[data-theme="light"] .ncs-foot > #cm-gif:not(.hidden) { background: #fff; box-shadow: 0 20px 50px rgba(15,15,20,.18); }
/* 🌐 Chat global con el mismo fondo del panel */
html.ncs-on:not([data-theme="light"]) #tab-global #livechat-messages,
html.ncs-on:not([data-theme="light"]) #tab-global #livechat-input-wrap,
html.ncs-on:not([data-theme="light"]) #tab-global #livechat-panel > div:first-child { background: var(--ncs-panel) !important; }
html.ncs-on #tab-global #livechat-panel > div:first-child { border-bottom-color: var(--ncs-line) !important; }
/* Celular: las apps van debajo del teléfono (arriba de lo demás de la página) */
@media (max-width: 1023.98px) {
    .ncs-stage { order: 1; }
    .ncs-rail { order: 2; border-bottom: 0; border-top: 1px solid var(--ncs-line); background: transparent; padding: 8px 10px; }
    .ncs-phead { top: -14px; margin: -14px -14px 12px; padding: 12px 14px 10px; }
    .ncs-rpop .rp-more { grid-template-columns: repeat(7, 1fr); }
    .ncs-tpop { width: min(280px, calc(100% - 36px)); }
}
@media (max-width: 1023.98px) { .ncs-script-btn span { display: none; } .ncs-script-btn { padding: 0 9px; } }
@media (min-width: 1024px) and (max-width: 1365.98px) { .ncs-script-btn[data-ncs-import] span { display: none; } }

/* Modo claro del panel (las mismas reglas del panel viejo #nc-panel, ahora para el panel nuevo) */
html[data-theme="light"] #ncs .ncs-side { background: #fff; border-color: rgba(15,15,20,.08); box-shadow: 0 1px 2px rgba(15,15,20,.04), 0 24px 60px rgba(15,15,20,.08); color: #0f0f14; }
html[data-theme="light"] #ncs .ncs-side .nc-apps, html[data-theme="light"] #ncs .ncs-side .nc-nav { border-color: rgba(15,15,20,.07) !important; }
html[data-theme="light"] #ncs .ncs-side .nc-app { color: #71717a; }
html[data-theme="light"] #ncs .ncs-side .nc-app:hover { background: rgba(15,15,20,.04); color: #27272a; }
html[data-theme="light"] #ncs .ncs-side .nc-app.is-active { background: rgba(176,38,255,.07); color: #0f0f14; }
html[data-theme="light"] #ncs .ncs-side .nc-app-ic { box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 4px 10px rgba(15,15,20,.15); }
html[data-theme="light"] #ncs .ncs-side .nc-nav .tab-btn { color: #52525b; }
html[data-theme="light"] #ncs .ncs-side .nc-nav .tab-btn:hover { background: rgba(15,15,20,.04); color: #0f0f14; }
html[data-theme="light"] #ncs .ncs-side .nc-nav .tab-btn.is-active { background: rgba(176,38,255,.07); border-color: rgba(147,51,234,.3); color: #0f0f14; }
html[data-theme="light"] #ncs .ncs-side .nc-ico { color: #71717a; background: #f4f4f5; }
html[data-theme="light"] #ncs .ncs-side .nc-nav .tab-btn:hover .nc-ico { color: #27272a; }
html[data-theme="light"] #ncs .ncs-side .nc-tx small, html[data-theme="light"] #ncs .ncs-side .nc-cur-tx small { color: #71717a; }
html[data-theme="light"] #ncs .ncs-side .nc-pane-head { border-bottom-color: rgba(15,15,20,.07); }
html[data-theme="light"] #ncs .ncs-side .tab-content label.block.uppercase, html[data-theme="light"] #ncs .ncs-side .tab-content .text-xs.font-bold.text-gray-500.uppercase { color: #71717a; }
html[data-theme="light"] #ncs .ncs-side :is(.text-white, .text-gray-100, .text-gray-200) { color: #0f0f14; }
html[data-theme="light"] #ncs .ncs-side .text-gray-300 { color: #3f3f46; }
html[data-theme="light"] #ncs .ncs-side .text-gray-400 { color: #52525b; }
html[data-theme="light"] #ncs .ncs-side :is(.text-gray-500, .text-gray-600) { color: #71717a; }
html[data-theme="light"] #ncs .ncs-side :is(.border-white\/5, .border-white\/10, .border-white\/20) { border-color: rgba(15,15,20,.1); }
html[data-theme="light"] #ncs .ncs-side :is(.bg-white\/5, .bg-white\/10) { background-color: rgba(15,15,20,.04); }
html[data-theme="light"] #ncs .ncs-side :is(.bg-black, .bg-\[\#0d0c11\], .bg-\[\#0b0b0e\], .bg-\[\#111\], .bg-\[\#121212\], .bg-\[\#1a1a1a\], .bg-black\/30, .bg-black\/40, .bg-black\/50) { background-color: #fff; }
html[data-theme="light"] #ncs .ncs-side :is(input[type="text"], input[type="number"], input[type="date"], input[type="time"], input[type="search"], select, textarea) { background-color: #fff; color: #0f0f14; border-color: rgba(15,15,20,.14); }
html[data-theme="light"] #ncs .ncs-side :is(input, textarea)::placeholder { color: #a1a1aa; }
html[data-theme="light"] #ncs .ncs-side select option { background: #fff; color: #0f0f14; }
html[data-theme="light"] #ncs .ncs-side button.border.border-white\/10 { background-color: #fff; border-color: rgba(15,15,20,.12); color: #3f3f46; }
html[data-theme="light"] #ncs .ncs-side button.border.border-white\/10:hover { background-color: #f4f4f5; border-color: rgba(15,15,20,.2); color: #0f0f14; }
html[data-theme="light"] #ncs .ncs-side button.border-neon-purple { background-color: rgba(176,38,255,.08); color: #0f0f14; }
html[data-theme="light"] #ncs .ncs-side .nc-pane-body { scrollbar-color: rgba(15,15,20,.18) transparent; }
html[data-theme="light"] #ncs .ncs-side .nc-pane-body::-webkit-scrollbar-thumb { background: rgba(15,15,20,.18); }
html[data-theme="light"] #ncs .ncs-side .dev-time-sel { color: #0f0f14; }
html[data-theme="light"] #ncs .ncs-side .dev-time-sel option { background: #fff; color: #0f0f14; }
html[data-theme="light"] #ncs .ncs-side .dev-time-now:hover { color: #0f0f14; background: rgba(15,15,20,.06); }
html[data-theme="light"] #ncs .ncs-side .sb-mini { color: #52525b; }
html[data-theme="light"] #ncs .ncs-side .sb-mini-box { border-color: rgba(15,15,20,.3); }
html[data-theme="light"] #ncs .ncs-side :is(.nc-intro-row) { background: #fafafa; border-color: rgba(15,15,20,.1); }
html[data-theme="light"] #ncs .ncs-side .nc-intro-tx b { color: #0f0f14; }
html[data-theme="light"] #ncs .ncs-side .nc-switch { background: rgba(15,15,20,.15); }
html[data-theme="light"] #ncs .ncs-side .nc-soon { color: #52525b; background: #f4f4f5; border-color: rgba(15,15,20,.1); }
html[data-theme="light"] .nc-dl, html[data-theme="light"] #ncs .ncs-side .nc-dl { background: #f6f6f9; border-color: rgba(15,15,20,.08); }
html[data-theme="light"] #ncs .ncs-side .nc-cur-tx b { color: #0f0f14; }
html[data-theme="light"] #ncs .ncs-side .nc-tut { color: #7e22ce; background: rgba(139,92,246,.08); border-color: rgba(139,92,246,.35); }
html[data-theme="light"] #ncs .ncs-side .nc-clear:not(.nc-tut) { color: #52525b; border-color: rgba(15,15,20,.14); background: #fff; }
html[data-theme="light"] #ncs .ncs-side .cm-btn { color: #3f3f46; }
html[data-theme="light"] #ncs .ncs-side .cm-btn:hover { color: #0f0f14; }
html[data-theme="light"] #ncs .ncs-side .nc-chk { background: #fff; border-color: rgba(15,15,20,.12); }
html[data-theme="light"] #ncs .ncs-side .nc-chk-box { border-color: rgba(15,15,20,.3); }
html[data-theme="light"] #ncs .ncs-side .nc-chk-tx { color: #27272a; }
html[data-theme="light"] #ncs .ncs-side .sb-tile { color: #52525b; background: #fff; border-color: rgba(15,15,20,.12); }
html[data-theme="light"] #ncs .ncs-side .sb-tile.on { color: #0f0f14; background: rgba(176,38,255,.08); border-color: #a855f7; }
html[data-theme="light"] #ncs .ncs-side .ncx-chip { color: #52525b; background: #fff; border-color: rgba(15,15,20,.12); }
html[data-theme="light"] #ncs .ncs-side .ncx-chip:hover { border-color: rgba(15,15,20,.25); }
html[data-theme="light"] #ncs .ncs-side .ncx-chip.on { color: #0f0f14; background: rgba(176,38,255,.1); border-color: #a855f7; }

/* Estado del mensaje con muchas opciones (Instagram, Messenger): un botón con la elegida que abre la lista */
.ncs-stsel { display: none; }
#status-container.ncs-many { position: relative; }
#status-container.ncs-many .ncs-stsel { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(176,38,255,.45); background: rgba(176,38,255,.1); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
#status-container.ncs-many .ncs-stsel span { display: inline-flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#status-container.ncs-many .ncs-stsel svg { width: 15px; height: 15px; }
#status-container.ncs-many .ncs-stsel .fa-chevron-up { font-size: 10px; opacity: .7; transition: transform .2s; }
#status-container.ncs-many.open .ncs-stsel .fa-chevron-up { transform: rotate(180deg); }
.ncs-stat #status-container.ncs-many > .grid { display: none; }
.ncs-stat #status-container.ncs-many.open > .grid { display: flex; flex-direction: column; align-items: stretch; gap: 3px; position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 50; min-width: 220px; max-height: 300px; overflow-y: auto; padding: 6px; border-radius: 14px; background: #1a1920; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.ncs-stat #status-container.ncs-many.open > .grid > button { flex: none; width: 100%; height: 36px; justify-content: flex-start; padding: 0 12px; font-size: 12.5px; }
html[data-theme="light"] #status-container.ncs-many .ncs-stsel { color: #6b21a8; background: rgba(176,38,255,.07); }
html[data-theme="light"] .ncs-stat #status-container.ncs-many.open > .grid { background: #fff; border-color: rgba(15,15,20,.1); box-shadow: 0 20px 50px rgba(15,15,20,.18); }
/* Celular: la fila de estado también se ve con la hoja cerrada */
@media (max-width: 1023.98px) { .ncs-side:not(.open) .ncs-stat { display: flex; } .ncs-stat { margin-bottom: 8px; } }
/* 🌐 que gira */
.ncs-tabs .ncs-globe i { display: inline-block; transform-style: preserve-3d; }
/* Café (PC: al final de las apps) */
.ncs-rail .ncs-cafe { margin-top: 10px; }
.ncs-rail .ncs-cafe .nc-app-ic i { font-size: 16px; color: #3b2300; }
.ncs-cafe-back { position: fixed; inset: 0; z-index: 2300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5,3,10,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ncs-cafe-box { position: relative; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 24px; background: var(--ncs-panel, #0f0f13); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.ncs-cafe-box #namichats-cafe { padding: 10px 24px 30px !important; }
.ncs-cafe-box #namichats-cafe > div { border-top: 0; }
.ncs-cafe-box #donation-wrapper { margin-top: 110px; }
.ncs-cafe-x { position: absolute; top: 12px; right: 12px; z-index: 5; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #e4e4e7; cursor: pointer; }
html[data-theme="light"] .ncs-cafe-box { background: #fff; border-color: rgba(15,15,20,.1); }
html[data-theme="light"] .ncs-cafe-x { background: #f4f4f5; color: #27272a; }
/* Celular: el chat global en la hoja, con las pestañas arriba para volver */
@media (max-width: 1023.98px) {
    .ncs-side.open.is-global .ncs-foot { display: none; }
    /* Apps: debajo del teléfono (más abajo, fuera de la primera vista) en 2 filas, con su nombre */
    .ncs-rail { margin-top: 18px; padding: 14px 12px 6px; overflow: visible; }
    .ncs-rail .nc-apps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px 4px; }
    .ncs-rail .nc-apps-sep { display: none; }
    .ncs-rail .nc-app { width: auto; padding: 6px 2px; gap: 5px; }
    .ncs-rail .nc-app-ic { width: 40px; height: 40px; border-radius: 12px; }
    .ncs-rail .nc-app-tx { display: block; font-size: 10px; }
    .ncs-rail .ncs-cafe { display: none; }
}
/* Modo claro: el centro sin fondo sólido (así se ven las partículas) */
html[data-theme="light"] .ncs-stage { background: radial-gradient(900px 600px at 50% 0%, rgba(176,38,255,.06), transparent 70%); }

/* ===== v4 ===== */
/* 🌐 La Tierra girando */
.ncs-tabs .ncs-globe .ncs-earth { width: 22px; height: 22px; display: block; border-radius: 50%; filter: drop-shadow(0 0 6px rgba(96,165,250,.45)); }
.ncs-tabs .ncs-globe { padding: 0 11px; }
/* Redactor más compacto en PC (en el celular sigue en 16 px para que el iPhone no haga zoom) */
@media (min-width: 1024px) {
    .ncq-studio .ncq-row { padding: 4px; gap: 4px; border-radius: 18px; }
    .ncq-studio .ncq-in { height: 32px; font-size: 14px !important; line-height: 18px; padding: 7px 4px; }
    .ncq-studio .ncq-who { height: 32px; padding: 0 10px; font-size: 12.5px; border-radius: 11px; }
    .ncq-studio .ncq-ic, .ncq-studio .ncq-send { width: 32px; height: 32px; font-size: 14px; }
    .ncs-foot { padding: 8px 12px; }
    .ncs-hint { margin-top: 6px; }
}
.ncs-hint kbd + kbd { margin-left: -1px; }
/* Café en PC: el globito de "Nami" (arriba de la taza) se ve completo */
.ncs-cafe-box { padding-top: 40px; }
.ncs-cafe-box #donation-wrapper { margin-top: 150px !important; }
/* Celular: el teléfono pegado a la hoja y sin el espacio vacío entre las apps y el café */
@media (max-width: 1023.98px) {
    .ncs-phone #phone-frame-wrapper { padding-bottom: 2px !important; }
    #namichats-cafe { padding-top: 0 !important; }
    #namichats-cafe > div { border-top: 0 !important; padding-top: 0 !important; }
    #namichats-cafe #donation-wrapper { margin-top: 96px !important; }
    .ncs-rail { padding-bottom: 0; }
}

/* ===== v5 ===== */
/* Contacto → Personas del chat */
.ncs-people[hidden] { display: none !important; }
.ncs-pp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ncs-pp-mode { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--ncs-line); }
.ncs-pp-mode button { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ncs-mut); font-size: 11.5px; font-weight: 700; cursor: pointer; }
.ncs-pp-mode button.on { color: #fff; background: rgba(176,38,255,.32); }
.ncs-pp-mode button[disabled] { cursor: default; opacity: .7; }
.ncs-pp-mode em { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 5px; border-radius: 5px; color: #fbbf24; background: rgba(251,191,36,.12); }
.ncs-pp-list { display: flex; flex-direction: column; gap: 8px; }
.ncs-pp-row { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 14px; border: 1px solid var(--ncs-line); background: rgba(255,255,255,.02); }
.ncs-pp-av { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #3f3f46, #27272a); color: #fff; font-weight: 800; font-size: 17px; }
.ncs-pp-av img { width: 100%; height: 100%; object-fit: cover; }
.ncs-pp-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ncs-pp-tx b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncs-pp-tx small { margin-top: 1px; font-size: 11.5px; color: var(--ncs-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncs-pp-btn { flex-shrink: 0; height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border-radius: 10px; border: 1px solid rgba(176,38,255,.35); background: rgba(176,38,255,.1); color: #e9d5ff; font-size: 12px; font-weight: 700; cursor: pointer; }
.ncs-pp-btn:hover { background: rgba(176,38,255,.2); color: #fff; }
.ncs-pp-del { width: 32px; height: 32px; flex-shrink: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ncs-mut); cursor: pointer; }
.ncs-pp-del:hover { color: #f87171; background: rgba(239,68,68,.12); }
/* Grupo de WhatsApp: participantes (nombre de su color, número, guardado, color, foto) */
.ncs-pp-mode button[data-pp-mode] { cursor: pointer; }
.ncs-gm-h { margin: 14px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ncs-dim); }
.ncs-gm-list { display: flex; flex-direction: column; gap: 8px; }
.ncs-gm { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 14px; border: 1px solid var(--ncs-line); background: rgba(255,255,255,.02); }
.ncs-gm-av { position: relative; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; overflow: hidden; border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--gm); background: color-mix(in srgb, var(--gm) 22%, #18181b); font-weight: 800; font-size: 16px; }
.ncs-gm-av img { width: 100%; height: 100%; object-fit: cover; }
.ncs-gm-av > i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .15s; }
.ncs-gm-av:hover > i { opacity: 1; }
.ncs-gm-f { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ncs-gm-f input { width: 100%; min-width: 0; height: 28px; padding: 0 8px; border-radius: 8px; border: 1px solid transparent; background: rgba(255,255,255,.04); font-size: 13px; font-weight: 700; outline: none; }
.ncs-gm-f input[data-gm-phone] { font-weight: 500; font-size: 12px; color: var(--ncs-mut); height: 24px; }
.ncs-gm-f input:focus { border-color: rgba(176,38,255,.6); background: rgba(255,255,255,.07); }
.ncs-gm-f input:disabled { opacity: .45; }
.ncs-gm-l2 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ncs-gm-l2 input { flex: 1; }
.ncs-gm-saved { flex-shrink: 0; height: 24px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--ncs-line); background: transparent; color: var(--ncs-mut); font-size: 10.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ncs-gm-saved.on { color: #34d399; border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.1); }
.ncs-gm-c { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); cursor: pointer; padding: 0; }
.ncs-gm-add { margin-top: 8px; width: 100%; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; border: 1px dashed rgba(176,38,255,.5); background: rgba(176,38,255,.08); color: #e9d5ff; font-size: 13px; font-weight: 700; cursor: pointer; }
.ncs-gm-add:hover { background: rgba(176,38,255,.16); }
.ncs-gsws { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.ncs-gsw { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ncs-line); background: rgba(255,255,255,.02); color: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.ncs-gsw[aria-checked="true"] .nc-switch { background: #b026ff; }
.ncs-gsw[aria-checked="true"] .nc-switch i { transform: translateX(16px); }
/* la fila de la comunidad es una .ncs-pp-row más (mismos tamaños: los botones quedan en una misma línea) */
.ncs-pp-av.ncs-gcom-av { border-radius: 0; background: transparent; overflow: visible; cursor: pointer; }
/* Modo del chat: primero en CONTACTO */
.ncs-chatmode { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.ncs-chatmode[hidden] { display: none; }
.ncs-pp-av[data-pp-change] { cursor: pointer; }
.ncs-pp-av[data-pp-change]:hover { filter: brightness(1.12); }
.ncs-gcom-av img { width: 100%; height: 100%; object-fit: cover; }
.ncs-gcom-t { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; }
@media (max-width: 360px) { .ncs-gm-saved span { display: none; } .ncs-gm-saved { width: 26px; padding: 0; justify-content: center; } }
.ncs-pp-av svg { width: 100%; height: 100%; display: block; }
/* En un grupo no aplican: estado (en línea…), verificado, detalle de perfil ni cuenta de empresa (los mensajes temporales sí) */
html.nc-wa-group #setting-status-container > label:first-child,
html.nc-wa-group #setting-status-container > .flex.flex-col,
html.nc-wa-group #setting-verified-container,
html.nc-wa-group #nc-intro-container,
html.nc-wa-group #tiktok-account-container,
html.nc-wa-group #wa-story-container,
html.nc-wa-group #wa-avatar-color-container { display: none !important; }
html.nc-wa-group #whatsapp-temp-messages-container { margin-top: 0; }
html[data-theme="light"] .ncs-gm { background: #fafafa; }
html[data-theme="light"] .ncs-gm-av { background: color-mix(in srgb, var(--gm) 18%, #ffffff); }
html[data-theme="light"] .ncs-gm-f input { background: #f4f4f5; }
html[data-theme="light"] .ncs-gm-add { color: #6b21a8; }
html[data-theme="light"] .ncs-gm-c { border-color: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
html[data-theme="light"] #ncs .ncs-side .ncs-gsw[aria-checked="true"] .nc-switch { background: #b026ff; }
.ncs-pp-del.is-empty { visibility: hidden; pointer-events: none; } /* sin foto que quitar: guarda el espacio para que "Cambiar foto" quede alineado */
@media (max-width: 420px) { .ncs-pp-btn span { display: none; } .ncs-pp-btn { width: 32px; padding: 0; justify-content: center; } }
/* La "Foto de perfil" de siempre queda dentro de Personas (se usa su mismo campo); el color del avatar sin foto sigue abajo */
.ncs-people-on #setting-avatar-container > label:first-child,
.ncs-people-on #setting-avatar-container > div.flex,
.ncs-people-on #input-avatar-filename { display: none !important; }
.ncs-people-on #setting-avatar-container > #wa-avatar-color-container { margin-top: 0; }
html[data-theme="light"] .ncs-pp-mode { background: #f4f4f5; }
html[data-theme="light"] .ncs-pp-mode button.on { color: #6b21a8; background: rgba(176,38,255,.14); }
html[data-theme="light"] .ncs-pp-row { background: #fafafa; }
html[data-theme="light"] .ncs-pp-tx b { color: #0f0f14; }
html[data-theme="light"] .ncs-pp-btn { color: #6b21a8; background: rgba(176,38,255,.08); }
html[data-theme="light"] .ncs-pp-btn:hover { color: #581c87; background: rgba(176,38,255,.14); }
html[data-theme="light"] .ncs-pp-av.empty { background: linear-gradient(135deg, #d4d4d8, #a1a1aa); }
/* Celular: el café termina por encima de la hoja de abajo (se ve todo, también el texto final) */
@media (max-width: 1023.98px) {
    .ncs { padding-bottom: 0; }
    #namichats-cafe { padding-bottom: calc(var(--ncs-sheet, 170px) + 24px) !important; }
}

/* ===== v6 ===== */
@media (max-width: 1023.98px) {
    #namichats-cafe { margin-top: 26px; }
    #namichats-cafe #donation-wrapper { margin-top: 150px !important; }
}

/* ===== v8: Compartir ===== */
.ncs-menu button i.ncs-xi { color: #fff; font-style: normal; }
html[data-theme="light"] .ncs-menu button i.ncs-xi { color: #0f0f14; }

/* ===== v11: si ya es Premium, sin coronitas ===== */
html.nc-pro .nc-crown, html.nc-pro .ncs-crown, html.nc-pro .nc-dm-pro { display: none !important; }

/* ===== v12: arriba de Chatear una sola barra sobria (script, importar, tutorial, vaciar) + dedito en la brocha ===== */
#ncs .ncs-pacts { gap: 2px; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--ncs-line); }
#ncs .ncs-pacts .nc-clear-wrap { gap: 2px; }
#ncs .ncs-pacts > .ncs-script-btn:not([hidden]) ~ .nc-clear-wrap::before { content: ''; width: 1px; height: 16px; margin: 0 3px; background: var(--ncs-line); }
#ncs .ncs-pacts .ncs-script-btn, #ncs .ncs-pacts .nc-clear { height: 28px; border: 0; border-radius: 9px; background: transparent; box-shadow: none; color: #a1a1aa; transition: background-color .15s, color .15s; }
#ncs .ncs-pacts .ncs-script-btn { padding: 0 10px; gap: 6px; font-size: 12px; font-weight: 600; color: #d4d4d8; }
#ncs .ncs-pacts .ncs-script-btn > i:first-child { font-size: 12px; color: #8b8b95; transition: color .15s; }
#ncs .ncs-pacts .nc-clear { width: 30px; font-size: 12.5px; }
#ncs .ncs-pacts .ncs-script-btn:hover, #ncs .ncs-pacts .nc-clear:hover { background: rgba(255,255,255,.07); color: #fff; }
#ncs .ncs-pacts .ncs-script-btn:hover > i:first-child { color: #fff; }
#ncs .ncs-pacts #btn-clear-chat:hover, #ncs .ncs-pacts #btn-clear-contact:hover { color: #fda4af; background: rgba(244,63,94,.12); }
html[data-theme="light"] #ncs .ncs-side .ncs-pacts { background: #f6f6f8; border-color: rgba(15,15,20,.1); }
html[data-theme="light"] #ncs .ncs-side .ncs-pacts .ncs-script-btn, html[data-theme="light"] #ncs .ncs-side .ncs-pacts .nc-clear { background: transparent; border: 0; box-shadow: none; color: #52525b; }
html[data-theme="light"] #ncs .ncs-side .ncs-pacts .ncs-script-btn { color: #27272a; }
html[data-theme="light"] #ncs .ncs-side .ncs-pacts .ncs-script-btn > i:first-child { color: #71717a; }
html[data-theme="light"] #ncs .ncs-side .ncs-pacts .ncs-script-btn:hover, html[data-theme="light"] #ncs .ncs-side .ncs-pacts .nc-clear:hover { background: #fff; color: #0f0f14; box-shadow: 0 1px 3px rgba(15,15,20,.1); }
html[data-theme="light"] #ncs .ncs-side .ncs-pacts #btn-clear-chat:hover, html[data-theme="light"] #ncs .ncs-side .ncs-pacts #btn-clear-contact:hover { color: #e11d48; }
/* Dedito: señala la brocha hasta que se usa una vez */
#ncs .ncs-pacts #btn-clear-chat { position: relative; overflow: visible; }
.ncs-hand { display: none; position: absolute; left: 50%; top: calc(100% + 3px); width: 22px; height: 22px; margin-left: -11px; pointer-events: none; z-index: 6; filter: drop-shadow(0 3px 6px rgba(0,0,0,.45)); animation: ncsHand 1.1s ease-in-out infinite; }
.ncs-hand img { width: 22px; height: 22px; display: block; }
#ncs.ncs-hand-on .ncs-pacts #btn-clear-chat .ncs-hand { display: block; }
#ncs.ncs-hand-on .ncs-pacts #btn-clear-chat { color: #fda4af; background: rgba(244,63,94,.12); animation: ncsRing 1.8s ease-out infinite; }
html[data-theme="light"] #ncs.ncs-hand-on .ncs-side .ncs-pacts #btn-clear-chat { color: #e11d48; background: rgba(244,63,94,.1); }
@keyframes ncsHand { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ncsRing { 0% { box-shadow: 0 0 0 0 rgba(244,63,94,.5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(244,63,94,0); } }
@media (prefers-reduced-motion: reduce) { .ncs-hand, #ncs.ncs-hand-on .ncs-pacts #btn-clear-chat { animation: none; } }

/* Historial de Chatear: letra un poco más chica */
.ncs-m { min-height: 40px; }
.ncs-mtx { font-size: 11px; line-height: 1.4; }
.ncs-who { height: 22px; font-size: 10.5px; }
.ncs-mtime { font-size: 10.5px; }

/* Estado del mensaje y hora: solo mientras escribes o corriges un mensaje; una barra segmentada */
.ncs-stat:not(.is-on) { display: none !important; }
.ncs-stat.is-on { animation: ncsStatIn .18s cubic-bezier(.2,.8,.2,1); }
@keyframes ncsStatIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ncs-stat { gap: 8px; }
.ncs-stat #status-container:not(.ncs-many) > .grid { gap: 2px; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--ncs-line); }
.ncs-stat #status-container:not(.ncs-many) > .grid > button { height: 30px; min-width: 0; padding: 0 8px; border: 0 !important; border-radius: 9px; background: transparent !important; color: #8b8b95 !important; box-shadow: none; transition: background-color .15s, color .15s; }
.ncs-stat #status-container:not(.ncs-many) > .grid > button svg { color: inherit !important; }
.ncs-stat #status-container:not(.ncs-many) > .grid > button:hover { color: #e4e4e7 !important; background: rgba(255,255,255,.05) !important; }
.ncs-stat #status-container:not(.ncs-many) > .grid > button.border-neon-purple, .ncs-stat #status-container:not(.ncs-many) > .grid > button.border-blue-500 { color: #fff !important; background: rgba(255,255,255,.11) !important; box-shadow: 0 1px 2px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06); }
.ncs-stat #status-container:not(.ncs-many) > .grid > button.border-blue-500, .ncs-stat #status-container:not(.ncs-many) > .grid > #status-read.border-neon-purple { color: #53bdeb !important; }
#status-container.ncs-many .ncs-stsel { height: 38px; border-radius: 12px; }
.ncs-stat .ncs-time { height: 38px; padding: 0 12px 0 11px; gap: 7px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--ncs-line); color: #8b8b95; cursor: text; transition: border-color .15s, color .15s; }
.ncs-stat .ncs-time:focus-within { border-color: rgba(176,38,255,.55); color: #c4b5fd; }
.ncs-stat .ncs-time input { font-weight: 700; font-variant-numeric: tabular-nums; }
html[data-theme="light"] .ncs-stat #status-container:not(.ncs-many) > .grid, html[data-theme="light"] .ncs-stat .ncs-time { background: #f4f4f6; border-color: rgba(15,15,20,.1); }
html[data-theme="light"] .ncs-stat #status-container:not(.ncs-many) > .grid > button { color: #71717a !important; }
html[data-theme="light"] .ncs-stat #status-container:not(.ncs-many) > .grid > button:hover { color: #18181b !important; background: rgba(15,15,20,.04) !important; }
html[data-theme="light"] .ncs-stat #status-container:not(.ncs-many) > .grid > button.border-neon-purple { color: #0f0f14 !important; background: #fff !important; box-shadow: 0 1px 3px rgba(15,15,20,.14); }
html[data-theme="light"] .ncs-stat #status-container:not(.ncs-many) > .grid > button.border-blue-500, html[data-theme="light"] .ncs-stat #status-container:not(.ncs-many) > .grid > #status-read.border-neon-purple { color: #0ea5e9 !important; background: #fff !important; box-shadow: 0 1px 3px rgba(15,15,20,.14); }
