/* Message content is shared between desktop and phone. */
.support-bubble .message-text{white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.support-bubble .message-text strong,.support-bubble .message-api-header{font-size:inherit;font-weight:750;color:inherit}
.support-bubble .message-text em{font-style:italic}
.support-bubble .message-text del{text-decoration:line-through}
.support-bubble .message-text code{white-space:pre-wrap;font-family:ui-monospace,monospace;background:#0002;padding:1px 4px;border-radius:4px}
.support-bubble .message-meta{display:flex;align-items:center;justify-content:flex-end;gap:4px;min-height:16px;margin-top:3px;line-height:1}
.support-bubble .message-meta time{position:static;margin:0;float:none;font-size:10px;white-space:nowrap;color:inherit;opacity:.68}
.message-receipt{display:inline-flex;align-items:center;color:#aac5d2;flex:0 0 auto}
.message-receipt svg{width:19px;height:14px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.message-receipt.registered{opacity:.65}.message-receipt.read{color:#58c6ff}.message-receipt.failed{color:#ff8794}
.message-receipt.pending .icon{width:13px;height:13px}
.message-api-header{display:block;margin-bottom:6px}.message-api-footer{display:block;opacity:.7;margin-top:8px;font-size:11px}
.support-bubble .message-api-buttons{display:flex;flex-wrap:wrap;gap:7px;border-top:1px solid #8bc3d83b;margin:10px -3px 0;padding:10px 0 2px}
.message-api-button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1 1 95px;padding:9px 12px;min-height:38px;border:1px solid #6ebeea80;border-radius:9px;background:#35a4eb12;color:#8cdbff;font-weight:650;font-size:13px;text-align:center;line-height:1.3;overflow-wrap:anywhere}
.message-api-button>.icon{width:15px;height:15px;flex:0 0 15px}
.message-file{display:flex;align-items:center;gap:8px;min-height:38px;overflow-wrap:anywhere}
.message-file .icon{width:20px;height:20px;flex-shrink:0}
body.light .message-api-button{color:#1768a8;background:#207ddb09;border-color:#4998cb6e}
body.light .message-receipt{color:#668b9e}body.light .message-receipt.read{color:#008ccd}

/* The same compact card is used for every WhatsApp number and on mobile. */
body[data-route=conexiones] .compact-connections-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:stretch;margin-top:12px}
.connection-summary{display:inline-flex;align-items:center;gap:8px;min-height:35px;padding:5px 10px 5px 6px;background:#2d2c32;border:1px solid #3b3a41;border-radius:10px;color:#c3c5ce;font-size:12px}
.connection-summary>.icon{width:25px;height:25px;padding:4px;border-radius:7px;background:var(--aria-mobile-gradient);color:#fff}
body[data-route=conexiones] .compact-connection{display:flex;flex-direction:column;gap:8px;min-width:0;min-height:0;height:auto;padding:12px;border:1px solid #3b3a42;border-radius:15px;background:linear-gradient(160deg,#2d2c32,#242328 75%);box-shadow:0 4px 0 #11101580,inset 0 1px #fff04;color:#f4f5f8}
body[data-route=conexiones] .compact-connection .connection-card-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0;min-height:20px}
body[data-route=conexiones] .compact-connection .qr-badge{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;background:#1dafe91c;color:#4cc2f2;border-radius:20px;padding:3px 6px;font-size:9px;font-weight:750;line-height:1.4}
body[data-route=conexiones] .compact-connection .qr-badge .icon{width:12px;height:12px}
body[data-route=conexiones] .compact-connection .connected-badge{display:inline-flex;align-items:center;gap:4px;background:var(--aria-mobile-gradient);color:#fff;font-size:9px;font-weight:750;border-radius:20px;padding:3px 7px;white-space:nowrap;line-height:1.4}
body[data-route=conexiones] .compact-connection .connected-badge i{width:5px;height:5px;background:currentColor;border-radius:50%}
body[data-route=conexiones] .compact-connection.pending .connected-badge{background:#875a263d;color:#ffc777}
body[data-route=conexiones] .compact-connection.blocked .connected-badge{background:#872c3b44;color:#ff899b}
body[data-route=conexiones] .compact-connection .connection-name{display:flex;align-items:center;gap:9px;margin:0;min-height:43px;padding:0}
body[data-route=conexiones] .compact-connection .phone-icon{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;background:var(--aria-mobile-gradient);border:1px solid #6db5ff70;border-radius:10px;box-shadow:0 3px 0 #1a6c9a;color:#fff;padding:0}
body[data-route=conexiones] .compact-connection .phone-icon .icon{width:21px;height:21px}
body[data-route=conexiones] .compact-connection .connection-identity{min-width:0;flex:1}
body[data-route=conexiones] .compact-connection .connection-name h2{font-size:14px;line-height:1.3;font-weight:750;color:inherit;margin:0 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-route=conexiones] .compact-connection .connection-name strong{display:block;color:#a9a8b2;font-size:12px;font-weight:600;overflow-wrap:anywhere}
body[data-route=conexiones] .compact-connection .connection-name>.icon-btn{width:28px;height:32px;min-width:28px;padding:6px;border:0;background:transparent;color:#9b99a6}
.connection-payment,.connection-method{display:flex;align-items:center;gap:5px;min-height:29px;padding:6px 7px;border-radius:7px;background:#c47b131c;color:#d5c6ae;font-size:10px;line-height:1.35}
.connection-payment>.icon,.connection-method>.icon{width:13px;height:13px;flex:0 0 13px;color:#f7b13d}
.connection-payment>span,.connection-method>span{flex:1;min-width:0}
.connection-payment button{border:0;background:transparent;color:#f7b13d;text-decoration:underline;white-space:nowrap;padding:3px 0;font-size:10px}
.connection-method{background:#3e8cf511;color:#a5b9d0}.connection-method>.icon{color:#5ebbff}
.connection-details{display:grid;gap:4px;flex:1;align-content:start}
.connection-details p{display:flex;align-items:center;gap:6px;margin:0;color:#a3a2ad;font-size:11px;line-height:1.4}
.connection-details .icon{width:13px;height:13px;flex:0 0 13px}
.connection-details .connection-availability{color:#73b9f5}
body[data-route=conexiones] .compact-connection .btn.wide{width:100%;min-height:37px;margin:0;padding:8px 10px;background:var(--aria-mobile-gradient);border:1px solid #69b2ff60;border-radius:10px;box-shadow:0 3px 0 #176d9d;color:#fff;font-size:12px;font-weight:750}
body[data-route=conexiones] .compact-connections-grid>.add-connection{min-height:170px;height:100%;margin:0;width:100%;color:#70bdff;border-color:#526278;background:#25252c}
body[data-route=conexiones] .compact-connections-grid>.add-connection .circle-plus{color:#70bdff;border-color:#70bdff}
body[data-route=conexiones] .christmas-bonus{margin-bottom:16px;min-height:105px;padding-block:14px;background:linear-gradient(115deg,#203e63,#193047);border-color:#3486c2}
body[data-route=conexiones] .christmas-bonus:before{background:var(--aria-mobile-gradient)}
body[data-route=conexiones] :is(.bonus-action .btn,.reference-connection-actions .reference-lime){background:var(--aria-mobile-gradient);border-color:#55b2fa;box-shadow:0 3px 0 #1d6f9b}
body.light .connection-summary{background:#fff;color:#596779;border-color:#dce4ef}
body.light .compact-connection .connection-name strong,body.light .connection-details p{color:#647185}
body.light .connection-details .connection-availability{color:#167bc0}
body.light .connection-payment{background:#fff3df;color:#825b26}
body.light .connection-payment button{color:#9a6600}
body.light[data-route=conexiones] .compact-connections-grid>.add-connection{background:#f6faff;color:#167bc0;border-color:#9fbada}
@media(min-width:761px) and (max-width:1199px){body[data-route=conexiones] .compact-connections-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:760px){
 body{--mobile-top:56px}
 .mobile-app-header{height:56px;grid-template-columns:1fr 118px 1fr}
 .mobile-brand img{width:118px;height:40px}
 body[data-route=chat] .support-layout{padding:0!important;margin:0!important;gap:0!important}
 body[data-route=chat] .support-inbox{padding:0!important}
 body[data-route=chat] .support-chat-tabs{margin-bottom:8px}
 body[data-route=chat] .support-thread{min-height:70px!important;padding:11px!important;border-radius:14px!important;margin-bottom:7px}
 body[data-route=chat] .support-count{padding:8px 5px!important}
 body[data-route=chat][data-mobile-chat-open=true] .support-conversation-header{height:auto!important;min-height:56px!important;box-sizing:border-box;padding:calc(6px + env(safe-area-inset-top,0px)) 8px 6px!important}
 body[data-mobile-chat-open=true] .support-person .mobile-chat-origin{background:none!important;padding:0;color:var(--mobile-muted)!important}
 body[data-route=chat][data-mobile-chat-open=true] #message-form{min-height:0!important;height:auto!important;padding:4px!important;align-items:center;gap:3px}
 body[data-route=chat][data-mobile-chat-open=true] #message-input{min-height:40px!important;height:40px;max-height:112px;margin:0!important;padding:9px 10px!important;line-height:22px}
 body[data-route=chat][data-mobile-chat-open=true] .support-composer-area{padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px))!important;border-top:1px solid var(--mobile-border)}
 body[data-mobile-chat-open=true] .support-composer-tools{min-height:0!important;height:40px;margin:0;gap:2px}
 body[data-mobile-chat-open=true] .support-composer-tools .icon-btn{width:34px;height:40px}
 body[data-route=chat][data-mobile-chat-open=true] #send-message{width:40px;height:40px;min-width:40px;min-height:40px;border-radius:50%}
 body[data-route=chat][data-mobile-chat-open=true] .support-bubble{max-width:87%!important}
 body[data-mobile-chat-open=true] .message-api-button{min-height:40px;font-size:14px;padding:8px}
 body[data-mobile-chat-open=true] .support-bubble .message-meta time{font-size:10px}
 body[data-route=dashboard] .sales-dashboard .metric-card{height:auto!important;min-height:76px!important;grid-template-columns:34px minmax(0,1fr)!important;padding:10px!important;gap:2px 8px!important;border-radius:16px!important}
 body[data-route=dashboard] .sales-dashboard .metric-label h2{font-size:12px!important;line-height:1.3!important}
 body[data-route=dashboard] .sales-dashboard .metric-value{font-size:19px!important;line-height:1.15!important}
 body[data-route=dashboard] .sales-dashboard .metric-card .color-icon{width:34px!important;height:36px!important;border-radius:9px!important}
 body[data-route=conexiones] .compact-connections-grid{grid-template-columns:minmax(0,1fr)}
 body[data-route=conexiones] .compact-connection{padding:13px;gap:9px}
 body[data-route=conexiones] .compact-connection .connection-name h2{font-size:16px}
 body[data-route=conexiones] .compact-connection .connection-name strong{font-size:13px}
 body[data-route=conexiones] .compact-connection .qr-badge,body[data-route=conexiones] .compact-connection .connected-badge{font-size:10px}
 body[data-route=conexiones] .compact-connection .btn.wide{font-size:14px;min-height:42px}
 .connection-payment,.connection-method{font-size:11px;min-height:32px}
 .connection-payment button{font-size:11px}
 .connection-details p{font-size:12px}
 body[data-route=campanas] .campaign-panel{padding:0;border:0;background:transparent;box-shadow:none}
 body[data-route=campanas] .campaign-tabs{display:flex;gap:3px;padding:3px;border:1px solid var(--mobile-border);border-radius:25px;margin-bottom:12px}
 body[data-route=campanas] .campaign-tabs>button{display:flex;justify-content:center;align-items:center;flex:1;min-width:0;min-height:42px;padding:8px 5px;border:0;border-radius:22px;background:none;color:var(--mobile-muted);font-size:12px;font-weight:650;white-space:nowrap}
 body[data-route=campanas] .campaign-tabs>button .icon{display:none}
 body[data-route=campanas] .campaign-tabs>button.selected{background:var(--aria-mobile-gradient);color:#fff;box-shadow:none}
 body[data-route=campanas] .campaign-actions{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:0 0 10px;margin:0;flex-wrap:nowrap}
 body[data-route=campanas] .campaign-actions .inline-controls{gap:5px;min-width:0}
 body[data-route=campanas] .campaign-actions :is(.tracking-badge,#campaign-updated,[data-action=campaign-status],[data-action=campaign-options]){display:none}
 body[data-route=campanas] .campaign-actions :is(.btn,.icon-btn){min-height:40px}
 body[data-route=campanas] .campaign-filters{display:block!important;margin:0 0 12px;padding:0}
 body[data-route=campanas] .campaign-filters>.form-field:not(:first-child){display:none}
 body[data-route=campanas] #campaign-search{min-height:44px;border-radius:14px;font-size:16px}
 body[data-route=campanas] .campaign-table{margin:0;border:1px solid var(--mobile-border);border-radius:14px;max-width:100%;overflow-x:auto}
 body[data-route=campanas] .campaign-table table{min-width:1150px}
 body[data-route=campanas] .campaign-table th{font-size:11px;padding:14px 10px}
 body[data-route=campanas] .campaign-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;min-height:190px;text-align:center;padding:24px 14px;color:var(--mobile-muted);font-size:14px}
 body[data-route=campanas] .campaign-empty[hidden]{display:none}
 body[data-route=campanas] .campaign-empty .btn{background:var(--aria-mobile-gradient);color:#fff;border-radius:12px;min-height:44px}
}
