/* Nexo: espacio de trabajo integrado, conserva la identidad Terralys. */
body.nexo-mode .content{max-width:none;padding:18px 22px}
body.nexo-mode .nexo-float{display:none}
.nw-shell{display:grid;grid-template-columns:215px minmax(0,1fr);height:calc(100dvh - 160px);min-height:540px;border:1px solid #d6e1eb;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 12px 35px #08274506}
.nw-history{background:#f5f8fb;border-right:1px solid #dfe7ef;padding:18px 12px;display:flex;flex-direction:column;gap:13px;min-width:0}
.nw-brand{display:flex;align-items:center;gap:10px;padding:2px 6px 10px;color:#153650;font-size:20px;font-weight:800;letter-spacing:-.6px}
.nw-brand i{font-style:normal;font-size:25px;color:#3e7db8}
.nw-new{background:#0d2b49;color:white;border:0;border-radius:10px;padding:12px;text-align:left;font-size:13px;font-weight:700}
.nw-history input{width:100%;border:1px solid #dce5ee;border-radius:9px;background:#fff;padding:10px;font-size:12px}
.nw-threads{flex:1;overflow:auto;display:grid;align-content:start;gap:6px}
.nw-thread{width:100%;text-align:left;border:1px solid transparent;background:transparent;border-radius:9px;padding:11px 10px;color:#456177;min-width:0}
.nw-thread.active{background:#e8eff7;border-color:#d3e0ee;color:#143c5d}
.nw-thread b{display:block;font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.nw-thread small{display:block;font-size:10px;color:#7d90a3;margin-top:5px}
.nw-history-foot{border-top:1px solid #dce5ee;padding:12px 5px 0;font-size:11px;line-height:1.6;color:#7e8fa1}
.nw-main{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff}
.nw-head{padding:15px 22px;border-bottom:1px solid #e2e9f0;display:flex;justify-content:space-between;gap:16px;align-items:center;flex-shrink:0}
.nw-head h2{margin:0;font-size:17px;color:#143956;line-height:1.4}
.nw-head p{margin:3px 0 0;font-size:12px;color:#7a8fa3}
.nw-head-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.nw-head button,.nw-context button{border:1px solid #d9e3ed;background:#fff;padding:8px 10px;border-radius:8px;color:#4e6b83;font-size:12px;white-space:nowrap}
.nw-context{padding:10px 22px;border-bottom:1px solid #e5ebf2;background:#fafcff;display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:12px;color:#637e96;flex-shrink:0}
.nw-context b{color:#2d5474;font-weight:600}
.nw-context-panel{padding:14px 22px;background:#f3f7fb;border-bottom:1px solid #e1e9f1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;flex-shrink:0}
.nw-context-panel b{font-size:12px;color:#375a78;display:block;margin-bottom:5px}
.nw-context-panel p{font-size:12px;line-height:1.6;color:#778b9f;margin:0}
.nw-stream{flex:1;min-height:100px;overflow:auto;padding:25px 24px 16px;scroll-behavior:smooth}
.nw-stream-inner{max-width:770px;margin:0 auto}
.nw-welcome{padding:28px 12px 10px;text-align:center;max-width:690px;margin:0 auto}
.nw-welcome .nw-mark{font-size:42px;color:#467cac}
.nw-welcome h2{font-size:25px;color:#173957;line-height:1.3;margin:14px 0 8px;letter-spacing:-.8px}
.nw-welcome p{font-size:14px;line-height:1.75;color:#788da0;margin:0}
.nw-starters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:620px;margin:25px auto}
.nw-starters button{text-align:left;padding:16px;border:1px solid #dce5ef;border-radius:12px;background:#f9fbfd;color:#365d7c;line-height:1.55;font-size:13px}
.nw-turn{margin:0 0 25px;line-height:1.8;font-size:14px;overflow-wrap:anywhere}
.nw-turn.user{margin-left:15%;display:flex;justify-content:flex-end}
.nw-user-bubble{border-radius:15px 15px 3px 15px;background:#edf3fa;border:1px solid #e2eaf3;padding:13px 17px;max-width:95%;color:#254866;white-space:pre-wrap}
.nw-assistant-head{display:flex;align-items:center;gap:9px;margin-bottom:10px;color:#285274;font-size:12px;font-weight:700}
.nw-assistant-head i{font-style:normal;width:26px;height:26px;background:#edf3fa;border-radius:8px;display:grid;place-items:center;color:#4580b3;font-size:16px}
.nw-answer{white-space:pre-wrap;color:#405c73}
.nw-snapshot{font-size:10px;color:#8697a8;margin:12px 0 0;line-height:1.6}
.nw-message-actions{display:flex;gap:12px;margin-top:9px}
.nw-message-actions button{border:0;background:transparent;color:#8396a8;padding:3px 0;font-size:11px}
.nw-proposal{margin:15px 0 0;padding:16px 18px;border:1px solid #d3e1ee;border-left:3px solid #447cac;border-radius:12px;background:#f7faff}
.nw-proposal small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#7e94a9;margin-bottom:7px;font-weight:700}
.nw-proposal h3{font-size:15px;margin:0;color:#244c6e;line-height:1.45}
.nw-proposal p{font-size:13px;line-height:1.7;color:#6c8297;margin:8px 0 12px;white-space:pre-wrap}
.nw-proposal button{font-size:12px!important;min-height:36px!important;padding:8px 12px!important}
.nw-composer-wrap{padding:0 22px 14px;flex-shrink:0}
.nw-composer{max-width:820px;margin:0 auto;border:1px solid #cfdce8;border-radius:17px;background:#fff;box-shadow:0 5px 18px #082b4808;padding:12px 14px}
.nw-composer:focus-within{border-color:#6995bb;box-shadow:0 0 0 3px #477dad10}
.nw-composer textarea{width:100%;min-height:48px;max-height:135px;resize:vertical;border:0;outline:none;font-size:14px;line-height:1.6;color:#355b78;background:transparent;padding:3px}
.nw-compose-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:7px}
.nw-compose-left{display:flex;gap:8px;align-items:center;color:#8ba0b3;font-size:11px}
.nw-attach{border:1px solid #d9e4ee;border-radius:8px;background:white;color:#597993;padding:7px 10px;font-size:12px}
.nw-send{border:0;border-radius:9px;background:#103758;color:white;padding:10px 17px;font-weight:700;font-size:12px}
.nw-send:disabled{opacity:.4;cursor:default}
.nw-disclosure{text-align:center;color:#92a2b1;font-size:10px;line-height:1.5;margin:9px auto 0;max-width:820px}
.nw-attachments{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:8px}
.nw-file{padding:7px 9px;background:#f2f6fb;border:1px solid #dce6f0;border-radius:8px;font-size:11px;color:#53738e;display:flex;gap:8px;align-items:center;max-width:100%}
.nw-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}
.nw-file button{border:0;background:transparent;color:#7690a5;font-size:15px}
.nw-toggle-history{display:none}
.nw-evaluation-table{border-collapse:collapse;width:100%;font-size:12px;line-height:1.65}
.nw-evaluation-table th,.nw-evaluation-table td{padding:12px 9px;text-align:left;border-bottom:1px solid #dce5ef;vertical-align:top}
.nw-evaluation-table th{color:#385d7d;background:#f1f6fb;font-size:11px}
@media(min-width:821px) and (max-width:1180px){.nw-shell{grid-template-columns:180px minmax(0,1fr);height:calc(100dvh - 195px)}.nw-head{padding:13px 15px}.nw-context{padding:10px 15px}.nw-stream{padding:20px 15px}.nw-context-panel{grid-template-columns:1fr}.nw-starters{grid-template-columns:1fr}.nw-head p{max-width:28ch}.nw-compose-left>span{display:none}}
@media(max-width:820px){body.nexo-mode .content{padding:10px 10px 108px!important}.nw-shell{display:flex;height:calc(100dvh - 230px);min-height:470px;border-radius:14px;position:relative}.nw-history{display:none;width:230px;position:absolute;inset:0 auto 0 0;z-index:4;box-shadow:15px 0 40px #0a28472b}.nw-shell.history-open .nw-history{display:flex}.nw-main{width:100%}.nw-toggle-history{display:block}.nw-head{padding:12px;gap:7px}.nw-head h2{font-size:15px}.nw-head p{font-size:10px;max-width:25ch}.nw-head-actions{gap:4px}.nw-head button{font-size:11px;padding:7px}.nw-head-actions .nw-return{display:none}.nw-context{padding:8px 12px;font-size:11px}.nw-context-panel{grid-template-columns:1fr;padding:10px 12px;max-height:140px;overflow:auto}.nw-stream{padding:17px 12px}.nw-welcome{padding:10px 5px}.nw-welcome h2{font-size:21px}.nw-starters{grid-template-columns:1fr;gap:7px;margin:15px auto}.nw-starters button{padding:12px;font-size:12px}.nw-turn{font-size:14px}.nw-composer-wrap{padding:0 10px 10px}.nw-composer{padding:10px}.nw-compose-left>span{display:none}.nw-composer textarea{font-size:16px;min-height:43px}.nw-disclosure{font-size:9px}.nw-proposal{padding:12px}.nw-evaluation-table{font-size:11px}.nw-evaluation-table th,.nw-evaluation-table td{padding:10px 6px}}
#mobileMoreSheet>.mobile-more-action{display:flex;align-items:center;gap:12px;width:calc(100% - 28px);margin:12px 14px;padding:14px;border:1px solid #d6e2ed;background:#f3f7fb;color:#254e70;border-radius:12px;text-align:left}
#mobileMoreSheet>.mobile-more-action>span{font-size:22px}#mobileMoreSheet>.mobile-more-action b{display:block;font-size:14px}#mobileMoreSheet>.mobile-more-action small{display:block;font-size:12px;margin-top:4px;color:#718ba0}
