.jchat{height:calc(100vh - 115px);min-height:620px;display:grid;grid-template-columns:330px minmax(440px,1fr) 270px;background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden;box-shadow:var(--shadow)}
.jchat *{box-sizing:border-box}.jchat button{font-family:inherit}.jchat-side{border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0;background:#fff}.jchat-side-head{padding:20px 18px 12px;display:flex;align-items:center;justify-content:space-between}.jchat-side-head h2{font-size:21px}.jchat-new{width:36px;height:36px;border:0;border-radius:10px;background:linear-gradient(135deg,var(--gold),var(--gold-dk));color:#fff;font-size:21px}.jchat-search{margin:0 16px 12px;background:#f4f5f7;border-radius:10px;padding:9px 12px;display:flex;gap:8px;align-items:center}.jchat-search input{border:0;outline:0;background:transparent;width:100%;font-size:13px}.jchat-tabs{display:flex;gap:5px;padding:0 16px 12px;border-bottom:1px solid var(--line)}.jchat-tabs button{border:0;background:transparent;color:var(--ink2);font-size:11px;padding:6px 9px;border-radius:7px}.jchat-tabs button.on{background:#f6ecd7;color:var(--gold-dk);font-weight:700}.jchat-list{overflow:auto;flex:1;padding:8px}.jchat-person{width:100%;border:0;background:#fff;display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;text-align:left;padding:11px 10px;border-radius:11px}.jchat-person:hover{background:#f7f7f8}.jchat-person.on{background:#fbf3e2}.jchat-avatar{position:relative;width:42px;height:42px;border-radius:12px;background:#e8e2f7;color:#655287;display:grid;place-items:center;font-weight:800;font-size:12px;flex:none}.jchat-avatar.group{background:#dcecf8;color:#39749c}.jchat-avatar i{position:absolute;width:10px;height:10px;border-radius:50%;right:-2px;bottom:1px;background:#35bf84;border:2px solid #fff}.jchat-person-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.jchat-person-copy strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jchat-person-copy small{font-size:10px;color:var(--ink2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jchat-person-meta{align-self:stretch;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;font-size:9px;color:#949baa}.jchat-badge{background:var(--gold);color:#fff;min-width:18px;text-align:center;border-radius:10px;padding:2px 5px;font-weight:700}.jchat-presence{margin:10px 13px 14px;padding:10px 12px;border-radius:10px;background:#f5f7f8;color:var(--ink2);font-size:10px}.jchat-presence b{color:var(--ok)}
.jchat-main{display:flex;flex-direction:column;min-width:0;background:#fafbfc}.jchat-head{height:69px;display:flex;align-items:center;gap:11px;padding:0 18px;background:#fff;border-bottom:1px solid var(--line)}.jchat-title{display:flex;flex-direction:column}.jchat-title strong{font-size:14px}.jchat-title small{font-size:10px;color:var(--ok)}.jchat-actions{margin-left:auto;display:flex;gap:6px}.jchat-actions button{width:35px;height:35px;border:0;border-radius:9px;background:#f3f4f6;color:#5f6a7e;font-size:16px}.jchat-actions button:hover{background:#f6ecd7;color:var(--gold-dk)}.jchat-messages{flex:1;overflow-y:auto;padding:20px 25px;background:radial-gradient(circle at 20% 10%,rgba(201,150,47,.04),transparent 25%),#fafbfc}.jchat-empty{height:100%;display:grid;place-items:center;text-align:center;color:var(--ink2)}.jchat-empty b{display:block;color:var(--ink);font-size:18px;margin-bottom:5px}.jchat-day{text-align:center;margin:0 0 20px}.jchat-day span{font-size:9px;background:#eceff2;color:#8a92a0;border-radius:10px;padding:4px 9px}.jchat-msg{display:flex;margin:0 0 14px;max-width:76%;gap:7px}.jchat-msg.mine{margin-left:auto;justify-content:flex-end}.jchat-bubble{background:#fff;border:1px solid #e8eaee;border-radius:4px 13px 13px 13px;padding:10px 13px;font-size:12px;line-height:1.45;box-shadow:0 3px 10px rgba(20,30,50,.04);word-break:break-word}.jchat-msg.mine .jchat-bubble{background:linear-gradient(135deg,#d0a446,#a9781e);color:#fff;border:0;border-radius:13px 4px 13px 13px}.jchat-msg time{display:block;font-size:8px;color:#979eaa;margin:4px 3px}.jchat-msg.mine time{text-align:right}.jchat-file{display:grid;grid-template-columns:36px 1fr 24px;align-items:center;gap:9px;min-width:270px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:9px 10px;color:var(--ink);text-decoration:none}.jchat-file-icon{width:34px;height:34px;border-radius:8px;background:#f6ecd7;color:var(--gold-dk);display:grid;place-items:center;font-weight:800}.jchat-file span:nth-child(2){min-width:0}.jchat-file strong,.jchat-file small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jchat-file strong{font-size:10px}.jchat-file small{font-size:9px;color:var(--ink2);margin-top:3px}.jchat-compose-wrap{background:#fff;border-top:1px solid var(--line);padding:10px 16px 13px}.jchat-compose{height:48px;display:flex;align-items:center;border:1px solid #dfe2e7;border-radius:12px;padding:0 6px}.jchat-compose input[type=text]{border:0;outline:0;flex:1;min-width:0;padding:0 8px;font-size:12px}.jchat-compose button{width:34px;height:34px;border:0;background:transparent;color:#7e8796;font-size:17px}.jchat-compose .jchat-send{background:linear-gradient(135deg,var(--gold),var(--gold-dk));color:#fff;border-radius:9px}.jchat-upload-progress{height:3px;background:#eceff2;margin-top:6px;border-radius:4px;overflow:hidden;display:none}.jchat-upload-progress i{display:block;height:100%;background:var(--gold);width:0;transition:.2s}
.jchat-info{border-left:1px solid var(--line);background:#fff;padding:25px 18px;text-align:center;overflow:auto}.jchat-profile{width:68px;height:68px;border-radius:20px;margin:10px auto 10px;font-size:18px}.jchat-info h3{font-size:16px}.jchat-info>p{font-size:10px;color:var(--ink2);margin-top:4px}.jchat-quick{display:flex;justify-content:center;gap:8px;margin:20px 0}.jchat-quick button{width:56px;border:0;background:#f5f6f7;border-radius:9px;padding:8px 2px;font-size:8px;color:var(--ink2)}.jchat-quick span{display:block;font-size:17px;color:var(--gold-dk);margin-bottom:4px}.jchat-info-section{border-top:1px solid var(--line);padding:16px 0;text-align:left;font-size:11px}.jchat-info-section h4{margin-bottom:10px}.jchat-shared-file{display:flex;align-items:center;gap:8px;padding:7px 0;color:var(--ink);text-decoration:none}.jchat-shared-file b{font-size:9px}.jchat-shared-file small{font-size:8px;color:var(--ink2);display:block}
.jchat-modal-bg{position:fixed;inset:0;background:rgba(8,13,27,.82);z-index:100090;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(5px)}.jchat-call{width:390px;min-height:470px;background:linear-gradient(155deg,#202940,#0f172a);color:#fff;border-radius:24px;padding:27px;text-align:center;box-shadow:0 30px 80px rgba(0,0,0,.45)}.jchat-call-brand{text-align:left;font-size:11px;letter-spacing:.12em;color:#d5d9e5}.jchat-call-brand b{color:#e8b84f}.jchat-call-video{height:215px;margin:35px 0 15px;position:relative;border-radius:18px;overflow:hidden;background:#11192d;display:grid;place-items:center}.jchat-call-video video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.jchat-call-video .jchat-avatar{width:95px;height:95px;border-radius:29px;font-size:25px}.jchat-local-video{position:absolute!important;width:105px!important;height:75px!important;inset:auto 10px 10px auto!important;border:2px solid #fff;border-radius:11px!important;z-index:2;background:#222}.jchat-call h3{font-size:20px}.jchat-call p{font-size:11px;color:#aeb7ca;margin-top:6px}.jchat-call-controls{display:flex;gap:15px;justify-content:center;margin-top:25px}.jchat-call-controls button{width:58px;height:58px;border-radius:19px;border:0;background:rgba(255,255,255,.1);color:#fff;font-size:19px}.jchat-call-controls button.end{background:#e6505d}.jchat-incoming-actions{display:flex;justify-content:center;gap:14px;margin-top:25px}.jchat-incoming-actions button{border:0;border-radius:12px;padding:12px 20px;color:#fff;font-weight:700}.jchat-accept{background:#2eb77d}.jchat-reject{background:#e6505d}.jchat-toast{position:fixed;z-index:100100;bottom:24px;left:50%;transform:translateX(-50%);background:#131b2c;color:#fff;padding:11px 18px;border-radius:10px;font-size:12px;box-shadow:0 10px 30px rgba(0,0,0,.28)}
.jchat-pagehead{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.jmeet-open{border:0;border-radius:11px;padding:11px 18px;background:linear-gradient(135deg,#176847,#0d4935);color:#fff;font-weight:800;cursor:pointer;box-shadow:0 7px 20px rgba(13,73,53,.2)}
.jmeet-modal{width:min(1050px,94vw);max-height:92vh;overflow:auto;background:#f7f9f8;border-radius:22px;color:var(--ink);box-shadow:0 35px 90px rgba(0,0,0,.45)}.jmeet-modal>header{display:flex;justify-content:space-between;gap:20px;padding:25px 28px;background:linear-gradient(135deg,#0c4735,#1a714e 65%,#a5791e);color:#fff}.jmeet-modal>header span{font-size:9px;letter-spacing:.18em;color:#f2d68c;font-weight:800}.jmeet-modal>header h2{font-size:27px;margin:5px 0}.jmeet-modal>header p{font-size:11px;opacity:.82}.jmeet-modal>header>button{width:38px;height:38px;border:1px solid #ffffff3b;border-radius:11px;background:#ffffff17;color:#fff;font-size:18px}.jmeet-create{display:grid;grid-template-columns:2fr 1.3fr 1fr auto;gap:12px;align-items:end;padding:22px 28px;background:#fff;border-bottom:1px solid var(--line)}.jmeet-create label span{display:block;font-size:10px;font-weight:800;color:var(--ink2);margin-bottom:7px}.jmeet-create input,.jmeet-create select{width:100%;height:44px;border:1px solid #d9dfdc;border-radius:10px;padding:0 11px;background:#fff;color:var(--ink);font:inherit;font-size:12px}.jmeet-primary{height:44px;border:0;border-radius:10px;padding:0 18px;background:linear-gradient(135deg,var(--gold),var(--gold-dk));color:#fff;font-weight:800;white-space:nowrap}.jmeet-note{margin:18px 28px 0;padding:11px 13px;border-radius:10px;background:#edf6f2;color:#396456;font-size:10px}.jmeet-list{padding:18px 28px 28px;display:grid;gap:11px}.jmeet-card{display:flex;justify-content:space-between;align-items:center;gap:18px;background:#fff;border:1px solid #dde4e1;border-left:4px solid #1a714e;border-radius:13px;padding:15px 17px}.jmeet-card.ended{opacity:.58;border-left-color:#9aa5a0}.jmeet-status{font-size:8px;font-weight:900;letter-spacing:.13em;color:#1a714e}.jmeet-card h4{margin:4px 0;font-size:14px}.jmeet-card p{font-size:10px;color:var(--ink2)}.jmeet-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.jmeet-actions button{border:0;border-radius:8px;background:#eef2f0;color:#355047;padding:8px 10px;font-size:9px;font-weight:800}.jmeet-actions button:first-child{background:#176847;color:#fff}.jmeet-actions button.danger{color:#a33c36;background:#fff0ef}.jmeet-empty{text-align:center;padding:45px;color:var(--ink2)}.jmeet-empty span,.jmeet-empty b,.jmeet-empty small{display:block}.jmeet-empty span{font-size:38px}.jmeet-empty b{color:var(--ink);margin:8px 0}.jmeet-loading{text-align:center;padding:30px;color:var(--ink2)}
@media(max-width:1180px){.jchat{grid-template-columns:300px 1fr}.jchat-info{display:none}}@media(max-width:850px){.jmeet-create{grid-template-columns:1fr}.jmeet-card{align-items:flex-start;flex-direction:column}.jmeet-actions{justify-content:flex-start}.jchat-pagehead{align-items:center}.jmeet-open{padding:9px 12px}}@media(max-width:800px){.content:has(.jchat){padding:0}.jchat{height:calc(100vh - 68px);min-height:560px;border:0;border-radius:0;grid-template-columns:1fr}.jchat-side{display:flex}.jchat-main{display:none}.jchat.mobile-chat .jchat-side{display:none}.jchat.mobile-chat .jchat-main{display:flex}.jchat-mobile-back{display:block!important}}.jchat-mobile-back{display:none}

/* v512 · El historial es la única zona que crece y se desplaza. El encabezado
   y el compositor permanecen siempre visibles, incluso con muchos archivos. */
.jchat{height:calc(100dvh - 115px);min-height:0;max-height:calc(100dvh - 115px)}
.jchat-side,.jchat-main,.jchat-info{min-height:0;height:100%;overflow:hidden}
.jchat-main{min-width:0;display:flex;flex-direction:column}
.jchat-head{flex:0 0 69px}
.jchat-messages{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
.jchat-compose-wrap{position:relative;z-index:4;flex:0 0 auto;background:#fff}
.jchat-file{grid-template-columns:36px minmax(0,1fr) 24px;width:min(420px,100%);min-width:0;max-width:100%}
.jchat-shared-file{min-width:0}.jchat-shared-file>span:last-child{min-width:0;overflow:hidden}.jchat-shared-file b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jchat-side .jchat-list,.jchat-info{overflow-y:auto;overscroll-behavior:contain}
@media(max-width:800px){.content:has(.jchat){overflow:hidden}.jchat{height:calc(100dvh - 68px);min-height:0;max-height:calc(100dvh - 68px)}}
