/* Shared charcoal surfaces and the supplied Ariabot workspace layouts. */
body:not(.light){--bg:#1b1a1f;--sidebar:#242328;--panel:#242328;--panel-deep:#242328;--input:#242328;--soft:#242328;--line:#38373e;--line-light:#4a4951}
body:not(.light) :is(.sidebar,.sidebar-brand,.sidebar-bottom,.account-popup,.picker-popup,.calendar-popup,.row-menu>div,.capi-event-options){background:#242328;border-color:#38373e}
body:not(.light) :is(.workspace,#page-content,.page,.page-header){background:#1b1a1f}
body:not(.light) :is(.contacts-table,.campaign-table,.flow-library-table,.settings-table) :is(th,td){border-color:#38373e}
body:not(.light) .nav-link:hover:not(.active){background:#2d2c33}

/* Connection shortcuts use the supplied blue, green and red button palette. */
.reference-connection-actions,.reference-library-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.reference-connection-actions .btn,.reference-library-actions .btn,.automation-empty .btn{font-family:var(--font-inter);font-size:11px;font-weight:750;white-space:nowrap;gap:6px;border-radius:7px;min-height:29px;padding:7px 11px}
.reference-connection-actions .btn{min-height:39px;border-radius:11px;font-size:10px;letter-spacing:.05px;padding:8px 13px}
.reference-connection-actions>.icon-btn{height:36px;width:40px;border-radius:11px}
.reference-library-actions>.icon-btn{height:28px;width:28px;padding:5px;border-radius:5px}
body .btn.reference-cyan{background:#18afe9;border:1px solid #5acaff;color:#fff;box-shadow:inset 0 1px #ffffff20,0 4px #1185b4}
body .btn.reference-lime{background:#57c900;border:1px solid #7fdf36;color:#fff;box-shadow:inset 0 1px #ffffff20,0 3px #3d9700}
body .btn.reference-red{background:#cc2840;border:1px solid #d7354b;color:#fff;box-shadow:0 3px #991d30}
body .btn.reference-blue{background:#2e79de;border:1px solid #2e79de;color:#fff;box-shadow:none}
body .btn.reference-coral{background:#fc835e;border:1px solid #fc835e;color:#fff;box-shadow:none}
body .btn:is(.reference-cyan,.reference-lime,.reference-red,.reference-blue,.reference-coral):hover{filter:brightness(1.09)}
.reference-connection-actions .channel-brand{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:8px;background:#fff;color:#1684f9;margin:-3px 2px -3px -4px}
.reference-connection-actions .channel-brand .icon{width:21px;height:21px}
.reference-connection-actions .platform-logo{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:8px;background:#fff;margin:-3px 2px -3px -4px;overflow:hidden}
.reference-connection-actions .platform-logo img{display:block;width:24px;height:24px;object-fit:contain}
.reference-connection-actions .meta-brand{font-size:29px;font-weight:500;line-height:1}
.reference-header-search{display:flex;align-items:center;width:150px;gap:8px;border-bottom:1px solid var(--line-light);color:var(--muted);padding:5px 0}
.reference-header-search>.icon{width:16px;height:16px;flex:0 0 16px}
.reference-header-search input{background:none;border:0;outline:0;color:var(--text);min-width:0;width:100%;font-family:var(--font-system);font-size:12px;padding:0}
.reference-header-search:focus-within{border-color:#3289ff}
.welcome-dot{width:5px;height:5px;border-radius:50%;background:#36e485;flex:0 0 5px}

/* Connections: channel shortcuts, the bonus banner and the add-number card. */
body .page.reference-connections{padding:16px;min-height:calc(100svh - 60px)}
.christmas-bonus{position:relative;display:flex;align-items:center;gap:16px;min-height:112px;padding:18px 20px;border:1px solid #1e925d;border-radius:17px;background:linear-gradient(110deg,#228656,#0a4936 58%,#08412f);color:#fff;overflow:hidden;box-shadow:0 3px #0a402d}
.christmas-bonus:before{content:"";position:absolute;top:0;left:0;right:0;height:5px;background:repeating-linear-gradient(135deg,#e23748 0 10px,#f4eee2 10px 20px,#219660 20px 30px,#f4eee2 30px 40px)}
.bonus-gift{display:grid;place-items:center;flex:0 0 40px;height:40px;border:1px solid #ef6d73;border-radius:10px;background:#bd263a;box-shadow:0 3px #872334;transform:rotate(-8deg)}
.bonus-gift>.icon{width:25px;height:25px}
.bonus-copy{min-width:0}
.bonus-copy small{font-family:var(--font-inter);font-size:8px;font-weight:850;letter-spacing:.75px;color:#fff1a5}
.bonus-copy h2{font-size:20px;line-height:1.25;margin:3px 0 5px;font-weight:800}
.bonus-copy p{font-size:12px;line-height:1.45;margin:0}
.bonus-action{margin-left:auto;max-width:220px;flex-shrink:0;text-align:center;display:flex;align-items:center;flex-direction:column;gap:9px}
.bonus-action .btn{font-family:var(--font-inter);font-size:10px;font-weight:750;min-height:34px;padding:9px 12px;border-radius:9px}
.bonus-action .icon{width:14px;height:14px}
.bonus-action small{font-size:9px;line-height:1.4;max-width:190px}
body .reference-connections .connection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
body:not(.light) .reference-connections .add-connection{background:#242328;border:1px dashed #4a4951;box-shadow:none}
body .reference-connections .add-connection{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:124px;padding:22px;border-radius:13px;color:var(--text)}
body .reference-connections .add-connection .circle-plus{display:grid;place-items:center;flex:none;width:34px;height:34px;border:1px dashed #58c900;border-radius:50%;background:transparent;color:#58c900;box-shadow:none;margin:0 0 1px}
.reference-connections .circle-plus .icon{width:18px;height:18px}
.reference-connections .add-connection strong{font-family:var(--font-inter);font-size:14px;font-weight:750;line-height:1.3}
.reference-connections .add-connection>span:last-child{font-size:11px;color:var(--muted)}
body:not(.light) .reference-connections .add-connection:hover{background:#2d2c33;border-color:#58c900}

/* Full-screen live chat: filters, inbox, conversation, replies and client. */
body[data-route=chat] .support-layout{grid-template-columns:80px 320px minmax(0,1fr) 192px 287px;gap:5px}
body:not(.light)[data-route=chat] .support-layout{--chat-bg:#1b1a1f;--chat-panel:#242328;--chat-raised:#242328;--chat-line:#38373e;--chat-text:#dce3eb;--chat-muted:#91a0b0;--teal:#00af97;background:#1b1a1f}
body[data-route=chat] .support-replies{display:flex;flex-direction:column}
body:not(.light)[data-route=chat] :is(.support-filters,.support-inbox,.support-conversation,.support-replies,.support-client){background:#1b1a1f;border-color:#38373e;color:var(--chat-text)}
body:not(.light)[data-route=chat] .support-layout :is(.support-rail-heading,.support-inbox-controls,.support-chat-tabs,.support-count,.support-conversation-header,.support-quick-tools,.support-mobile-nav){background:#242328;border-color:#38373e;color:#b5c7da}
body:not(.light)[data-route=chat] .support-layout .support-rail-heading>.icon{color:#00af97}
body:not(.light)[data-route=chat] .support-layout :is(.search-field,.support-date,.all-switch,.rail-control,.rail-label,.support-reply){background:#242328;border-color:#414047;color:var(--chat-text)}
body:not(.light)[data-route=chat] .support-inbox-filters .select{background-color:#242328;border-color:#414047;color:var(--chat-text)}
body:not(.light)[data-route=chat] .support-layout .support-primary{background:#00af97;border-color:#00af97;color:#fff}
body:not(.light)[data-route=chat] .support-layout .support-chat-tabs>button.selected{color:#00c3a7;border-color:#00b79e}
body:not(.light)[data-route=chat] .support-thread{background:#242328;border-color:#38373e}
body:not(.light)[data-route=chat] .support-thread.selected{background:#2b2a31;box-shadow:none;border-radius:6px}
body:not(.light)[data-route=chat] .support-thread:hover{background:#302f37}
body:not(.light)[data-route=chat] .support-layout :is(.rail-control.active,.rail-label.selected){background:#00af9714;border-color:#00af97;color:#00c3a7}
body[data-route=chat] .support-conversation-header{height:62px;min-height:62px}
body:not(.light)[data-route=chat] .support-conversation-actions .flow-off{background:#482b30;color:#b77f82}
body:not(.light)[data-route=chat] .support-conversation-actions .flow-on{background:#00af9720;color:#60dcca}
body:not(.light)[data-route=chat] .support-messages{background-color:#1b1a1f;background-image:url('/wallpaper-dark.png');background-blend-mode:luminosity}
body:not(.light)[data-route=chat] .support-bubble.received{background:#2e2d35;border-color:#414047;color:#e4ebf2}
body:not(.light)[data-route=chat] .support-bubble.sent{background:#075c50;border-color:#087866;color:#edfffc}
body:not(.light)[data-route=chat] .support-date-divider{background:#242328;color:#91a0b0}
body:not(.light)[data-route=chat] .support-composer-area{background:#1b1a1f;border-color:#38373e}
body:not(.light)[data-route=chat] .support-composer-area form{background:#242328;border-color:#3d3c45;border-radius:13px}
body:not(.light)[data-route=chat] .support-composer-area form:focus-within{border-color:#00af97}
body:not(.light)[data-route=chat] .support-send{background:#00af97;color:#fff;border-color:#00af97}
body:not(.light)[data-route=chat] #record-message{background:#fff;color:#17171b;border-color:#fff}
body:not(.light)[data-route=chat] .support-quick-tools [data-action=quick-template]{background:#a829c4;color:#fff}
body:not(.light)[data-route=chat] .support-quick-tools [data-action=quick-flow]{background:#00af97;color:#fff}
body[data-route=chat] .support-replies #reply-list{display:flex;flex:1;min-height:0;max-height:none;flex-direction:column;overflow:auto;padding:7px}
body[data-route=chat] .support-no-replies{margin:auto 0;padding:20px 7px;text-align:center;color:var(--chat-muted);font-size:11px;line-height:1.6}
body[data-route=chat] .support-no-replies>.icon{width:29px;height:29px;opacity:.5;margin-bottom:10px}
body[data-route=chat] .support-no-replies p{margin:0}
body[data-route=chat] .support-reply{flex-shrink:0}
body[data-route=chat] .support-client .client-profile{min-height:76px;padding:12px 54px 12px 13px}
body[data-route=chat] .support-client .client-profile .support-avatar{width:44px;height:44px;flex:0 0 44px}
body[data-route=chat] .support-client .client-order-hero{padding:10px;border:1px solid var(--chat-line);border-radius:10px;background:var(--chat-panel)}
.client-order-hero>div{display:flex;align-items:center;gap:8px;min-width:0;margin-bottom:8px}
.client-order-hero>div>span{display:grid;place-items:center;background:#ff9800;color:#fff;border-radius:9px;width:33px;height:33px;flex:0 0 33px;box-shadow:0 2px #bc7500}
.client-order-hero>div>span .icon{width:20px;height:20px}
.client-order-hero>div>div{min-width:0}
.client-order-hero h3{font-size:11px;font-weight:750;margin:0 0 1px;line-height:1.3}
.client-order-hero p{font-size:8px;line-height:1.4;margin:0;color:var(--chat-muted)}
body[data-route=chat] .support-client .client-order-hero>.btn{width:100%;min-height:33px;padding:7px;font-size:11px;border-radius:8px}
body[data-route=chat] .support-client .rail-section{padding:17px 13px;border-color:var(--chat-line)}
body[data-route=chat] .support-client .rail-section.ticket-section{padding-right:13px}
body[data-route=chat] .support-client .rail-section>summary{font-family:var(--font-system);font-size:9px;font-weight:650;letter-spacing:.6px;margin-bottom:12px}
body[data-route=chat] .support-client .rail-section:not([open])>summary{margin-bottom:0}
body[data-route=chat] .support-client .rail-section>summary>.icon:first-child{color:#00af97}
body[data-route=chat] .support-client .ticket-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
body[data-route=chat] .support-client .ticket-fact-wide{display:none}
body[data-route=chat] .support-client .ticket-fact{min-height:30px;padding:5px 7px;border:0;border-radius:6px}
body[data-route=chat] .support-client .ticket-fact span{font-size:8px}
body[data-route=chat] .support-client .ticket-fact strong{font-size:9px;line-height:1.25}
body:not(.light)[data-route=chat] .support-client :is(.ticket-fact,.rail-card,.rail-section textarea,.rail-section input,.client-order-select){background:#242328;border-color:#3d3c45;color:var(--chat-text)}
body[data-route=chat] .support-client .memory-section .rail-card{min-height:183px;padding:12px;border-radius:10px}
body[data-route=chat] .support-client .rail-card>h3{display:flex;align-items:center;gap:8px;font-size:9px;margin:0 0 12px;color:#afc1d5}
body[data-route=chat] .support-client .rail-card>h3 .icon{color:#00af97}
body:not(.light)[data-route=chat] .support-client .sales-data{background:#00af970d;border:1px solid #00af9738;padding:8px;border-radius:7px}
body:not(.light)[data-route=chat] .support-client :is(.sales-data strong,.client-profile-phone){color:#00c3a7}
body[data-route=chat] .support-client .sales-data>span{font-size:8px;letter-spacing:.5px}
body[data-route=chat] .support-client .sales-data>div{display:flex;justify-content:space-between;align-items:center;font-size:9px}
body[data-route=chat] .support-client .sales-data strong{font-size:16px}
body:not(.light)[data-route=chat] .support-client .manual-sale-action{width:100%;min-height:32px;display:flex;align-items:center;justify-content:center;gap:7px;padding:7px 4px;margin-top:7px;border:1px solid #00af9755;background:transparent;color:#00d6ba;border-radius:5px;font-size:9px}
body[data-route=chat] .support-client .sales-empty{display:flex;align-items:center;justify-content:center;gap:7px;min-height:47px;margin:8px 0 0;font-size:9px;color:var(--chat-muted)}
body[data-route=chat] .support-client .sales-empty .icon{width:16px;height:16px;flex:0 0 16px;opacity:.65}
body:not(.light)[data-route=chat] .support-client [data-action=schedule-message]{background:#00af97;border-color:#00af97;color:#fff;min-height:33px;font-size:10px;border-radius:7px}
body[data-route=chat] .support-client .notes-section textarea{min-height:55px;padding:10px;border-radius:8px;resize:vertical}
body[data-route=chat] .support-client .notes-section .note-save{margin:5px 0 0;min-height:22px;font-size:9px;background:var(--chat-panel);border-color:var(--chat-line);color:#00c3a7}
body[data-route=chat] .support-client .rail-empty{min-height:25px;margin:12px 0 0;font-size:10px}
body:not(.light)[data-route=chat] .support-client .client-shipping-action{background:#ff7900;border-color:#ff7900;color:#fff;min-height:35px;border-radius:7px;font-size:11px}
body[data-route=chat] .support-client .shipment-section>summary>.icon:first-child{color:#ff7900}
body[data-route=chat] .support-client :is(.order-section,.origin-section,.tags-section){padding-top:12px;padding-bottom:12px}

@media(max-width:1600px){
 body[data-route=chat] .support-layout{grid-template-columns:72px 285px minmax(0,1fr) 180px 255px;gap:4px}
 .reference-connection-actions{gap:8px;flex-wrap:wrap}
 .reference-connection-actions .btn{font-size:9px;padding:7px 10px;min-height:35px}
}
@media(max-width:1280px){
 body[data-route=chat] .support-layout{grid-template-columns:70px 270px minmax(0,1fr) 245px;padding-top:38px}
 body[data-route=chat] .support-replies{display:none}
 body[data-route=chat] .support-layout.panel-replies .support-replies{display:flex;position:absolute;right:0;top:38px;bottom:0;width:255px;z-index:10}
 body[data-route=chat] .support-layout.panel-client .support-client{display:flex;position:absolute;right:0;top:38px;bottom:0;width:290px;z-index:10}
 .automation-toolbar{flex-wrap:wrap;gap:8px;padding:8px 12px}
 .automation-controls{margin-left:auto}
 body[data-route=conexiones] .page-header{padding:12px 16px}
}
@media(max-width:1080px){
 body[data-route=chat] .support-layout{grid-template-columns:70px 270px minmax(0,1fr)}
 body[data-route=chat] .support-client{display:none}
 .reference-connection-actions{gap:7px}
 .reference-connection-actions .channel-brand{width:22px;height:22px;flex-basis:22px;margin-left:-3px}
 .reference-connection-actions .channel-brand .icon{width:17px;height:17px}
 .reference-connection-actions .meta-brand{font-size:24px}
 .bonus-copy h2{font-size:18px}
 .bonus-copy p{font-size:11px}
 .bonus-action{max-width:175px}
}
@media(max-width:760px){
 body[data-route=chat] .support-layout{grid-template-columns:260px minmax(0,1fr)}
 body[data-route=chat] .support-filters{display:none}
 body[data-route=chat] .support-layout.panel-filters .support-filters{display:flex;position:absolute;left:0;top:38px;bottom:0;width:90px;z-index:10}
 body[data-route=chat] .support-layout.panel-filters .support-inbox{grid-column:1}
 body[data-route=conexiones] .page-header{gap:12px;flex-wrap:wrap}
 .reference-title .mobile-menu{display:inline-grid}
 .reference-connection-actions{justify-content:flex-start;flex:1 0 100%}
 .reference-library-actions{gap:7px;margin-left:auto}
 .reference-header-search{width:125px}
 .reference-library-actions .btn{font-size:10px;padding:6px 8px}
 .christmas-bonus{flex-wrap:wrap;padding:19px 15px;gap:12px}
 .bonus-copy{flex:1;min-width:180px}
 .bonus-action{margin-left:52px;flex-direction:row;max-width:none;text-align:left;gap:12px}
 .bonus-action small{max-width:150px}
 body .reference-connections .connection-grid{grid-template-columns:minmax(0,1fr)}
 .automation-empty{padding-top:85px}
 .automation-controls{flex-wrap:wrap;gap:5px}
 .automation-folder-bar{padding-left:10px}
}
@media(max-width:600px){
 body[data-route=chat] .support-layout{grid-template-columns:minmax(0,1fr);gap:0}
 body[data-route=chat] .support-layout .support-inbox{display:none}
 body[data-route=chat] .support-layout.no-selection .support-inbox{display:flex}
 body[data-route=chat] .support-layout.no-selection .support-conversation{display:none}
 body[data-route=chat] .support-layout.panel-filters .support-inbox{grid-column:auto}
 body[data-route=chat] .support-conversation-header{height:62px;min-height:62px}
 body .page.reference-connections{padding:10px}
 .reference-library-actions{width:100%;justify-content:flex-end}
 .reference-header-search{flex:1;max-width:none}
 .reference-connection-actions .btn{font-size:8px;min-height:34px}
 .reference-connection-actions>.icon-btn{height:32px;width:32px}
 .automation-toolbar{align-items:flex-start;padding:9px}
 .automation-counts{width:100%;gap:12px}
 .automation-controls{width:100%;margin:0;justify-content:flex-start}
 body .reference-automation .automation-controls .select{min-width:78px;font-size:9px;padding-left:7px}
 .automation-segments>button{font-size:9px;padding:4px 6px;min-width:23px}
 .automation-empty p{max-width:320px}
 .bonus-action{margin-left:0;flex-wrap:wrap}
}


/* Page titles retain their colored silhouette without a surrounding tile. */
body[data-route] .page-header .section-title-icon,
body[data-route] .academy-heading .academy-brand-icon{
 display:grid;place-items:center;flex:0 0 29px;width:29px;height:32px;
 padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--section-accent,#18afe9);
}
body[data-route] .page-header .section-title-icon>.section-asset-icon,
body[data-route] .academy-heading .academy-brand-icon>.section-asset-icon{width:27px;height:27px;flex-basis:27px}
body[data-route=integraciones]{--section-accent:#18afe9;--section-top:#5acaff;--section-bottom:#1185b4}
body[data-route=bloqueo]{--section-accent:#cc2840;--section-top:#f35c70;--section-bottom:#991d30}
body[data-route] .section-header-actions .btn.reference-cyan{background:#18afe9;border:1px solid #5acaff;color:#fff;box-shadow:inset 0 1px #ffffff20,0 4px #1185b4}
body[data-route] .section-header-actions .btn.reference-red{background:#cc2840;border:1px solid #d7354b;color:#fff;box-shadow:inset 0 1px #ffffff15,0 4px #991d30}
body[data-route] .section-header-actions .btn.reference-lime{background:#57c900;border:1px solid #7fdf36;color:#fff;box-shadow:inset 0 1px #ffffff20,0 4px #3d9700}
body[data-route] .section-header-actions .btn:is(.reference-cyan,.reference-red,.reference-lime){min-height:38px;padding:9px 15px;border-radius:9px;font-size:12px;font-weight:700}
body[data-route] .section-header-actions .btn:is(.reference-cyan,.reference-red,.reference-lime)>.icon{color:inherit;background:none}

/* Classic flow and trigger libraries: search, state tabs, folders, table. */
body:is([data-route=flujos],[data-route=disparadores]):not([data-flow-editor=true]) .page-header{min-height:80px;height:80px;padding:14px 18px;border-bottom:0}
body:is([data-route=flujos],[data-route=disparadores]) .section-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body .page.flow-library{background:var(--bg);padding:0 8px 10px;display:flex;flex-direction:column;gap:10px}
body .flow-library .flow-library-search{width:100%;min-height:39px;margin:0;border-radius:6px;background:var(--panel);border:1px solid var(--line);box-shadow:none}
body .flow-library .flow-library-search input{font-size:12px;padding:10px 0}
body .flow-library .flow-status-filters{display:flex;gap:8px;margin:0 0 6px;flex-wrap:wrap}
body .flow-library .flow-status-filters button{display:inline-flex;align-items:center;gap:6px;min-height:31px;padding:7px 12px;border:1px solid var(--line-light);border-radius:6px;background:var(--panel);color:var(--text);box-shadow:none;font-size:11px;font-weight:650}
body .flow-library .flow-status-filters button.selected{background:#18afe9;border-color:#5acaff;color:#fff}
body .flow-library .flow-status-filters button>i{width:7px;height:7px;border-radius:50%;background:#8c949f}
body .flow-library .flow-status-filters [data-status=Activos]>i{background:#24cc7c}
body .flow-library .flow-library-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:0;flex:1;min-height:0;max-height:none;margin:0;border:1px solid var(--line);border-radius:6px;background:var(--panel);box-shadow:none;overflow:hidden}
body .flow-library .flow-folders{width:auto;max-height:none;padding:10px 6px;background:var(--panel);border:0;border-right:1px solid var(--line);border-radius:0;box-shadow:none;overflow:auto}
body .flow-library .flow-folders>h2{font-size:10px;font-weight:500;letter-spacing:.25px;color:var(--muted);padding:0 7px;margin:0 0 10px}
body .flow-library .folder-entry{display:flex;align-items:center;margin-bottom:5px;border-radius:8px;min-width:0}
body .flow-library .folder-entry:has(.folder-select.selected){background:#18afe9}
body .flow-library .folder-select{display:flex;align-items:center;gap:10px;flex:1;width:100%;min-width:0;min-height:40px;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:var(--text);text-align:left;font-size:12px;font-weight:600}
body .flow-library .folder-select:hover:not(.selected){background:var(--soft)}
body .flow-library .flow-folders .folder-select.selected{background:#18afe9;color:#fff;border:0}
body .flow-library .folder-select>.icon{width:23px;height:23px;padding:3px;border-radius:4px;color:var(--section-accent);background:color-mix(in srgb,var(--section-accent) 15%,transparent)}
body .flow-library .folder-select.selected>.icon{color:#fff;background:#ffffff18}
body .flow-library .folder-select .folder-count{display:none}
body .flow-library .folder-row-menu>summary{color:var(--muted)}
body .flow-library .folder-entry:has(.selected) .folder-row-menu>summary{color:#fff}
body .flow-library .flow-library-content{padding:0;background:var(--panel);border:0;border-radius:0;box-shadow:none;min-width:0}
body .flow-library .flow-library-content>h2{padding:11px 24px;border-bottom:1px solid var(--line);font-size:14px;line-height:1.3;font-weight:700}
body .flow-library .flow-table-scroll{padding:0 14px;min-height:0}
body .flow-library .flow-library-table{min-width:680px;background:var(--panel)}
body .flow-library .flow-library-table th{padding:11px 12px;background:var(--panel);border-color:var(--line);font-size:10px;font-weight:500;letter-spacing:.2px}
body .flow-library .flow-library-table td{padding:14px 12px;border-color:var(--line);font-size:12px}
body .flow-library .flow-library-table .flow-library-empty{height:165px;padding-top:40px;vertical-align:middle;text-align:center;color:var(--muted);font-size:13px}

/* Integration outlines and actions follow each service's own accent. */
body .integrations .integration-section-heading{margin-bottom:14px}
body .integrations .integration-section-icon.cyan{background:#18afe9;border:1px solid #5acaff;box-shadow:inset 0 1px #ffffff35,0 3px #1185b4;color:#fff}
body .integrations .service-sheets{--service-accent:#57c900}
body .integrations .service-cloud{--service-accent:#18afe9}
body .integrations .service-openai{--service-accent:#ffd500}
body .integrations .service-anthropic{--service-accent:#ffd500}
body .integrations .integrations-unified{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:1000px}
body .integrations .service-card{display:flex;flex-direction:column;padding:12px;min-height:124px;border:1px dashed var(--service-accent);border-radius:14px;background:var(--bg);box-shadow:none}
body .integrations .service-card-heading{gap:8px;align-items:center}
body .integrations .service-brand{width:34px;height:36px;flex-basis:34px;border-radius:10px}
body .integrations .service-card h3{font-size:13px;line-height:1.3;font-weight:750}
body .integrations .service-card .service-state{font-size:10px;letter-spacing:.4px;color:var(--muted);font-weight:750;margin-top:3px}
body .integrations .service-card>p{color:var(--muted);font-size:11px;line-height:1.5;margin:8px 0 14px}
body .integrations .service-card .service-configure{margin-top:auto;align-self:flex-start;color:var(--service-accent);background:none;border:0;box-shadow:none;font-size:12px;font-weight:750;padding:0;min-height:22px;display:inline-flex;gap:7px;align-items:center}
body .integrations .service-configure .icon{width:13px;height:13px;color:inherit}
body .integrations .service-card.service-ai{background:var(--panel);box-shadow:0 3px #141318}
.service-ai-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto}
body .integrations .service-ai-footer .service-configure{margin:0;align-self:center;font-size:11px}
body .integrations .ai-config-status{display:flex;align-items:center;gap:5px;min-height:20px;padding:3px 8px;border-radius:12px;background:#2e2d32;color:var(--muted);font-size:9px;font-weight:700}
body .integrations .ai-config-status.connected{color:#57c900}
body .integrations .service-card .service-state.connected{color:#57c900}
body .integrations .service-ai .service-state{color:var(--muted)}

/* Country restrictions use the full workspace for a compact, scrollable grid. */
body[data-route=bloqueo] .page-header{width:100%;max-width:none;min-height:80px;height:80px;margin:0;padding:13px 18px;border:0}
body[data-route=bloqueo] #page-content>.page.country-workspace{display:flex;width:100%;max-width:none;margin:0;padding:0 18px 12px;height:100%;min-height:0;overflow:hidden}
.country-workspace .country-directory{display:flex;flex-direction:column;flex:1;gap:10px;min-height:0;min-width:0;margin:0}
.country-toolbar{display:flex;align-items:center;gap:12px;flex:0 0 auto}
body .country-workspace .country-search{flex:1;width:auto;min-height:40px;margin:0;background:var(--panel);border:1px solid var(--line);border-radius:9px}
.country-workspace .country-search input{font-size:13px;padding:10px 0}
.country-workspace .country-search>.icon{color:#18afe9}
.country-toolbar>.select,.country-toolbar>.picker{min-width:220px}
.country-toolbar .select,.country-toolbar .picker-trigger{min-height:40px;font-size:12px;background:var(--panel);border-radius:9px}
.country-filterbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:0 0 auto}
.country-filterbar>div{display:flex;gap:6px}
.country-filterbar button{min-height:31px;padding:7px 12px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--muted);font-size:11px;font-weight:600}
.country-filterbar button.selected{color:#18afe9;background:#18afe914;border-color:#18afe970}
#country-result-count{font-size:11px;color:var(--muted);white-space:nowrap}
body .country-workspace .country-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));grid-auto-rows:minmax(65px,auto);align-content:start;gap:9px;flex:1;min-height:0;height:auto;max-height:none;overflow:auto;padding:2px 4px 6px 2px;margin:0;background:none;border:0;border-radius:0;scrollbar-gutter:stable}
body .country-workspace .country-rule{position:relative;display:flex;align-items:center;gap:10px;min-width:0;min-height:65px;padding:10px 11px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);cursor:pointer}
body .country-workspace .country-rule:hover{border-color:var(--line-light);background:#2b2a31}
body .country-workspace .country-rule.is-blocked,body .country-workspace .country-rule:has(input:checked){background:var(--panel);border-color:#cc284078}
.country-code-badge{display:grid;place-items:center;flex:0 0 30px;width:30px;height:32px;background:var(--bg);border:1px solid var(--line);border-radius:7px;color:var(--muted);font-family:var(--font-inter);font-size:11px;font-weight:750}
.is-blocked .country-code-badge{color:#ff6174;background:#cc284016;border-color:#cc284030}
.country-rule-name{display:flex;flex-direction:column;min-width:0;gap:4px}
.country-rule-name strong{font-family:var(--font-inter);font-size:12px;font-weight:650;line-height:1.3;overflow-wrap:anywhere}
.country-rule-name small{font-size:9px;color:var(--muted);line-height:1.3}
.country-rule input{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:32px;height:24px;margin:0;opacity:0;cursor:pointer}
.country-rule-switch{position:relative;flex:0 0 29px;width:29px;height:16px;margin-left:auto;border-radius:18px;background:#5a5862;pointer-events:none}
.country-rule-switch:after{content:'';position:absolute;left:2px;top:2px;width:12px;height:12px;background:#c9c7cf;border-radius:50%;transition:transform .15s}
.country-rule input:checked+.country-rule-switch{background:#cc2840}
.country-rule input:checked+.country-rule-switch:after{transform:translateX(13px);background:#fff}
.country-rule input:focus-visible+.country-rule-switch{outline:2px solid #5acaff;outline-offset:4px}
.country-empty{grid-column:1/-1;padding:40px 20px;text-align:center;color:var(--muted);font-size:13px}
body .country-workspace .country-footer{display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;gap:12px;min-height:49px;padding:9px 0 3px;margin:0;border-top:1px solid var(--line);background:var(--bg)}
.country-footer .country-selection-summary{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--muted)}
.country-selection-summary strong{font-size:12px;font-weight:600;color:var(--text)}
.country-workspace .country-footer>div:last-child{display:flex;align-items:center;gap:8px}
body .country-workspace .country-footer .btn{min-height:35px;margin:0;padding:8px 12px;font-size:11px;border-radius:8px}
body .country-workspace .country-footer .btn.secondary{background:var(--panel);border-color:var(--line);color:var(--text)}
body .country-workspace .country-footer .btn.reference-cyan{background:#18afe9;border-color:#5acaff;color:#fff;box-shadow:inset 0 1px #ffffff20,0 3px #1185b4}

/* Contacts becomes a compact CRM with a portfolio and next-contact card. */
body[data-route=contactos] .page-header{width:100%;max-width:none;margin:0;border-bottom:0}
body[data-route=contactos] .contacts-header-actions{display:flex;align-items:center;gap:10px;flex-basis:auto;padding-left:0}
body[data-route=contactos] .contacts-header-actions .btn{font-size:11px;min-height:36px;padding:9px 12px}
body[data-route=contactos] #page-content>.page.crm-page{display:flex;flex-direction:column;width:100%;max-width:none;margin:0;padding:0 18px 14px;overflow:hidden;min-height:0}
.crm-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden}
.crm-stat{--crm-accent:#57c900;--crm-highlight:#91e848;--crm-bottom:#3d9700;display:flex;align-items:center;gap:12px;position:relative;min-height:73px;padding:14px 15px;background:transparent;color:var(--text);text-align:left;border:0}
.crm-stat.amber{--crm-accent:#ff9700;--crm-highlight:#ffc650;--crm-bottom:#bf7300;background:transparent}
.crm-stat.red{--crm-accent:#ff4653;--crm-highlight:#ff878f;--crm-bottom:#c22732;background:transparent}
.crm-stat.cyan{--crm-accent:#18afe9;--crm-highlight:#5acaff;--crm-bottom:#1185b4;background:transparent}
.crm-stat+.crm-stat{border-left:1px solid var(--line)}
.crm-stat.selected{background:#ffffff04;box-shadow:inset 0 -3px var(--crm-accent)}
.crm-stat:hover{background:#ffffff07}
.crm-stat-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:39px;border:1px solid var(--crm-highlight);border-radius:12px;background:var(--crm-accent);color:#fff;box-shadow:inset 0 1px #ffffff30,0 3px var(--crm-bottom),0 5px 9px color-mix(in srgb,var(--crm-accent) 13%,transparent)}
.crm-stat-icon>.icon{width:20px;height:20px;stroke-width:2}
.crm-stat strong{display:block;font-family:var(--font-inter);font-size:22px;font-weight:800;line-height:1.1}
.crm-stat small{display:block;color:var(--muted);font-size:10px;line-height:1.4;margin-top:4px}
.crm-layout{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:17px;align-items:start;margin-top:18px;min-width:0}
.crm-portfolio{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:0 3px #0002}
.crm-portfolio-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 13px;min-height:65px}
.crm-portfolio-heading>div:first-child{margin-right:auto}
.crm-portfolio-heading h2{font-size:15px;font-weight:800}
.crm-portfolio-heading p{font-size:11px;color:var(--muted);margin-top:2px}
body .crm-portfolio-heading>.search-field{flex:1 1 230px;max-width:320px;min-height:35px;border-radius:10px;background:var(--bg)}
.crm-portfolio-heading .search-field input{font-size:11px;padding:8px 0}
body .crm-portfolio-heading .select,body .crm-portfolio-heading .picker-trigger{font-size:11px;min-height:35px;background:var(--bg);border-radius:9px}
.crm-portfolio-heading .picker{min-width:138px}
body .crm-page .contacts-data{height:auto;min-height:0;max-height:none;flex:none;overflow:auto;background:var(--panel);border:0;border-radius:0;box-shadow:none;scrollbar-gutter:auto}
body .crm-page .crm-table{min-width:885px;width:100%;border:0;table-layout:auto;background:var(--panel)}
body .crm-page .crm-table thead{background:var(--bg)}
body .crm-page .crm-table th{position:static;width:auto;height:32px;padding:10px 9px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--bg);color:var(--muted);font-size:9px;line-height:1.3;font-weight:750;letter-spacing:.65px;white-space:nowrap}
body .crm-page .crm-table th button{display:flex;align-items:center;gap:4px;background:transparent;color:inherit;font:inherit;padding:0}
.crm-table th button>.icon{width:10px;height:10px;opacity:0}
.crm-table th button:hover>.icon{opacity:1}
body .crm-page .crm-table td{padding:12px 9px;min-height:54px;border-bottom:1px solid var(--line);font-size:11px;color:var(--text);white-space:nowrap}
body .crm-page .crm-table .contact-select,body .crm-page .crm-table td:first-child{width:26px;min-width:26px;padding-right:0}
body .crm-page .crm-table td:nth-child(2){min-width:160px}
body .crm-page .crm-table td:nth-child(5){min-width:142px}
.crm-table input[type=checkbox]{width:12px;height:12px;margin:0;vertical-align:middle;accent-color:#18afe9}
.crm-table td>strong{font-size:10px;font-weight:700}
.crm-table td>small{display:block;font-size:9px;color:var(--muted);margin-top:4px}
body .crm-page .crm-table tr.crm-row-selected{background:#ffffff04}
.crm-person{display:flex;align-items:center;gap:9px;max-width:220px;padding:0;background:transparent;color:var(--text);text-align:left;border:0}
.crm-person>span:last-child{min-width:0}
.crm-person strong{display:block;font-family:var(--font-inter);font-size:11px;font-weight:750;overflow:hidden;text-overflow:ellipsis}
.crm-person small{display:block;font-size:10px;color:var(--muted);margin-top:2px}
.crm-avatar{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:var(--avatar-color,#a76aed);color:#fff;font-size:12px;font-weight:750}
.crm-status{display:inline-flex;align-items:center;font-size:9px;font-weight:750;border-radius:6px;padding:4px 7px;background:#8f8d9718;color:#b1afbb}
.crm-status.active{background:#57c90025;color:#76dc20}
.crm-status.lead{background:#18afe923;color:#42c5f8}
.crm-tags{display:flex;flex-wrap:wrap;gap:3px;max-width:150px;margin-top:3px}
.crm-tags:empty{display:none}
.crm-tags>span{font-size:9px;line-height:1.4;color:var(--muted)}
.crm-tags>span+span:before{content:'·';margin-right:3px}
.crm-date{display:inline-flex;align-items:center;gap:5px;background:#18afe923;color:#18bdf8;border-radius:6px;padding:5px 7px;font-size:9px;line-height:1.25;font-weight:700;white-space:nowrap}
.crm-date>.icon{width:12px;height:12px;stroke-width:2}
.crm-date.overdue{color:#ff6375;background:#cc284025}
.crm-date.today{color:#ffb547;background:#ff970020}
.crm-page .contact-row-actions{display:flex;align-items:center;gap:5px}
.crm-page .contact-row-actions .icon-btn{width:27px;height:27px;background:transparent;border:0;color:var(--muted);border-radius:5px}
.crm-page .contact-row-actions .icon-btn:hover{background:#ffffff08;color:#18afe9}
.crm-page .contact-row-actions .icon-btn>.icon{width:14px;height:14px}
.crm-row-menu>summary,.crm-tools>summary{opacity:1;display:grid;place-items:center;width:25px;height:27px;background:transparent;border:0;border-radius:5px;color:var(--muted);padding:4px;list-style:none}
.crm-row-menu>summary::-webkit-details-marker,.crm-tools>summary::-webkit-details-marker{display:none}
.crm-page .crm-row-menu>summary{opacity:.5}
.crm-page tr:hover .crm-row-menu>summary,.crm-page .crm-row-menu:focus-within>summary{opacity:1}
body .crm-page .crm-row-menu>div,body .crm-page .crm-tools>div{background:var(--panel);border-color:var(--line)}
body .crm-page .crm-table .contacts-empty{height:166px;padding:28px;text-align:center;white-space:normal;color:var(--muted)}
.crm-table .contacts-empty>strong{font-size:13px;color:var(--text)}
.crm-table .contacts-empty>p{font-size:12px;margin:8px 0 13px}
.crm-table .contacts-empty .btn{font-size:11px;min-height:31px;padding:7px 11px}
.crm-footer{display:flex;align-items:center;justify-content:flex-end;gap:15px;min-height:42px;padding:6px 12px;font-size:11px;color:var(--muted)}
.crm-footer button{display:grid;place-items:center;width:22px;height:24px;border-radius:4px;background:transparent;color:var(--muted)}
.crm-footer button:not(:disabled):hover{background:var(--soft);color:#18afe9}
.crm-footer .icon{width:15px;height:15px}
.crm-next{align-self:start;border:1px solid var(--line);border-top:6px solid #18afe9;border-radius:14px;background:var(--panel);box-shadow:0 3px #0002;padding:16px;min-width:0}
.crm-next-eyebrow{display:block;font-family:var(--font-inter);font-size:9px;font-weight:800;color:#18afe9;margin-bottom:5px}
.crm-next h2{font-size:16px;font-weight:800;line-height:1.3;letter-spacing:-.3px}
.crm-next-copy>p{font-size:12px;line-height:1.5;color:var(--muted);margin-top:6px}
.crm-next-person{display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:13px 0;margin:14px 0 11px}
.crm-next-person strong{font-family:var(--font-inter);font-size:11px;font-weight:750}
.crm-next-person small{display:block;font-size:10px;color:var(--muted);margin-top:2px}
.crm-next-actions{display:flex;flex-direction:column;gap:8px;margin-top:13px}
.crm-next-actions>.btn{font-size:11px;min-height:34px;padding:8px 7px;border-radius:9px}
.crm-next-actions>.secondary{background:var(--soft);border-color:var(--line-light);box-shadow:0 2px #0003}
body .crm-page .contact-extra-filters,body .crm-page .contacts-selection{padding:10px 13px;border:0;border-top:1px solid var(--line);border-radius:0;background:var(--panel);box-shadow:none;font-size:11px}
.crm-page .contact-extra-filters:not([hidden]),.crm-page .contacts-selection:not([hidden]){display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.crm-page .contact-extra-filters .btn,.crm-page .contacts-selection .btn{font-size:11px;min-height:30px}
.form-field .form-help,.crm-form-hint{font-size:11px;color:var(--muted);line-height:1.5}

@media(max-width:1350px){
 .crm-layout{grid-template-columns:minmax(0,1fr) 250px;gap:13px}
 .crm-portfolio-heading>.search-field{max-width:none}
 .crm-portfolio-heading>div:first-child{flex:1 0 100%}
 .crm-stat{padding:13px 11px;gap:9px}
 body .integrations .integrations-unified{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1050px){
 .crm-layout{grid-template-columns:minmax(0,1fr)}
 .crm-next{max-width:440px;width:100%}
 .crm-stat small{font-size:9px}
 .protection-steps{grid-template-columns:minmax(0,1fr)}
 .protection-steps>article{min-height:74px}
 .protection-steps>article+article{border-left:0;border-top:1px solid var(--line)}
 .protection-toggle{font-size:10px;gap:10px}
 .protection-banner{gap:12px;padding:15px}
 body .flow-library .flow-library-layout{grid-template-columns:185px minmax(0,1fr)}
}
@media(max-width:760px){
 body:is([data-route=flujos],[data-route=disparadores]):not([data-flow-editor=true]) .page-header{height:auto;min-height:80px;padding:12px;gap:12px;flex-wrap:wrap}
 body[data-route] .section-header-actions .btn:is(.reference-cyan,.reference-red,.reference-lime){padding:8px 11px;min-height:34px;font-size:11px}
 body .flow-library .flow-library-layout{display:grid;grid-template-columns:170px minmax(0,1fr);min-height:0;max-height:none}
 body .flow-library .flow-folders{display:block;max-height:none;border-right:1px solid var(--line);border-bottom:0}
 body .flow-library .flow-library-content>h2{padding:12px 14px}
 body[data-route=bloqueo] .page-header{padding:12px 15px;height:auto;min-height:88px}
 .protection-brand{display:none}
 body[data-route=bloqueo] #page-content>.page.protection-page{padding:0 14px 18px}
 .protection-banner{flex-wrap:wrap}
 .protection-banner>div{flex:1;min-width:170px}
 .protection-toggle{margin-left:59px}
 .protection-stats>article{padding:12px 9px;gap:7px}
 .protection-stats .protection-stat-icon{width:28px;height:31px;flex-basis:28px}
 .protection-stats strong{font-size:14px}
 .protection-stats article>div>span{font-size:9px}
 .country-directory-heading{flex-wrap:wrap;gap:12px}
 body .protection-page .country-search{width:100%}
 body .protection-page .country-footer{bottom:-18px}
 body[data-route=contactos] .page-header{height:auto;min-height:84px;flex-wrap:wrap;gap:12px;padding:13px 15px}
 body[data-route=contactos] #page-content>.page.crm-page{padding:3px 14px 20px}
 .crm-portfolio-heading>div:first-child{flex-basis:auto}
 .crm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .crm-stat:nth-child(3){border-left:0;border-top:1px solid var(--line)}
 .crm-stat:nth-child(4){border-top:1px solid var(--line)}
 .crm-stat small{font-size:10px}
 .crm-next{max-width:none}
 body .crm-page .contacts-data{max-height:none;min-height:0}
}
@media(max-width:540px){
 body .integrations .integrations-unified{grid-template-columns:minmax(0,1fr)}
 body .flow-library .flow-library-layout{grid-template-columns:130px minmax(0,1fr)}
 body .flow-library .flow-folders{padding:10px 4px}
 body .flow-library .folder-select{min-width:0;padding:8px 6px;font-size:11px;gap:6px}
 body .flow-library .folder-select>.icon{width:19px;height:19px;padding:2px}
 body .flow-library .folder-row-menu{flex-basis:22px;margin-right:0}
 body .flow-library .flow-table-scroll{padding:0 5px}
 .protection-stats{grid-template-columns:minmax(0,1fr)}
 .protection-stats>article+article{border-left:0;border-top:1px solid var(--line)}
 .protection-stats>article{min-height:57px;padding:11px 14px}
 .protection-stats strong{font-size:16px}
 .protection-stats article>div>span{font-size:10px}
 .country-filterbar{flex-wrap:wrap}
 .country-filterbar>.picker,.country-filterbar>.select{width:100%}
 .country-rule-status{display:none}
 .country-rule-switch{margin-left:auto}
 body .protection-page .country-footer{flex-wrap:wrap;gap:8px}
 .protection-page .country-footer>div{margin-left:auto}
 .crm-portfolio-heading{gap:8px}
 .crm-portfolio-heading>div:first-child{flex:1 0 100%}
 body .crm-portfolio-heading>.search-field{flex:1 0 100%;max-width:none}
 .crm-portfolio-heading .picker{flex:1}
}


/* Persistent Ariabot bar, using the supplied blue gradient. */
:root{--app-bar-height:46px;--ariabot-blue-gradient:linear-gradient(110deg,#4785ff 0%,#3273f5 48%,#2259dd 100%)}
body.with-app-bar{padding-top:var(--app-bar-height)}
.app-bar{position:fixed;z-index:45;inset:0 0 auto;height:var(--app-bar-height);display:grid;grid-template-columns:160px minmax(0,1fr) 160px;align-items:center;padding:0 18px;background:var(--ariabot-blue-gradient);border-top:2px solid #87adff;border-bottom:1px solid #1e50cc;box-shadow:0 2px 5px #0002;color:#fff}
.app-bar-brand{display:flex;align-items:center;justify-content:flex-start;width:max-content;height:100%;overflow:hidden}
.app-bar-brand img{display:block;width:120px;height:44px;object-fit:contain}
.app-bar-greeting{justify-self:center;padding:5px 9px;border-radius:5px;background:#194ea22e;color:#fff;font-size:11px;font-weight:650;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.app-bar-settings{display:grid;place-items:center;justify-self:end;width:30px;height:30px;border-radius:7px;color:#fff}
.app-bar-settings:hover{background:#ffffff1a}
.app-bar-settings>.icon{width:19px;height:19px;stroke-width:2}
body.with-app-bar .sidebar{top:var(--app-bar-height)}
body.with-app-bar .sidebar-brand{display:none}
body.with-app-bar .backdrop{top:var(--app-bar-height)}
body.with-app-bar .workspace{min-height:calc(100dvh - var(--app-bar-height))}
body.with-app-bar:is([data-route=bloqueo],[data-route=contactos],[data-route=disparadores],[data-route=flujos],[data-route=tutoriales],[data-route=chat],[data-flow-editor=true]) .workspace{height:calc(100dvh - var(--app-bar-height));min-height:0}
body.with-app-bar .page.integrations,body.with-app-bar .page.reference-connections{min-height:calc(100dvh - var(--app-bar-height) - 80px)}
body.with-app-bar .skip-link:focus{z-index:50;top:calc(var(--app-bar-height) + 6px)}

/* The connection picker matches the compact cyan and green reference. */
body #modal[data-kind=connection-choice][open]{width:600px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);padding:6px 0 25px;border:2px solid #38373e;border-radius:23px;background:#0d0d0d;color:#fff;overflow:auto;box-shadow:0 18px 60px #0006}
body #modal[data-kind=connection-choice][open] .modal-head{min-height:0;padding:22px 24px 5px;background:transparent;border:0;gap:12px}
body #modal[data-kind=connection-choice][open] .modal-head h2{font-family:var(--font-inter);font-size:20px;line-height:1.3;font-weight:800;color:#fff}
body #modal[data-kind=connection-choice][open] .modal-head .icon-btn{width:27px;height:27px;background:none;border:0;box-shadow:none;color:#99969f;font-size:19px}
body #modal[data-kind=connection-choice][open] #modal-content{padding:0;margin:0}
body #modal[data-kind=connection-choice][open] .connection-choice-subtitle{margin:0 24px 20px;color:#9a98a0;font-size:13px;font-weight:650;line-height:1.4}
body #modal[data-kind=connection-choice][open] .connection-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding:0 24px 2px}
body #modal[data-kind=connection-choice][open] .connection-choice{--choice:#1cb0f6;--choice-bottom:#1185b4;--choice-bg:#102b37;display:flex;flex-direction:column;min-width:0;min-height:204px;padding:17px 17px 19px;border:2px solid var(--choice);border-radius:18px;background:var(--choice-bg);box-shadow:0 5px var(--choice-bottom);text-align:left;color:#fff}
body #modal[data-kind=connection-choice][open] .business-choice{--choice:#57c900;--choice-bottom:#3d9700;--choice-bg:#1b300b}
body #modal[data-kind=connection-choice][open] .connection-choice-top{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;margin-bottom:13px}
body #modal[data-kind=connection-choice][open] .connection-choice .luminous-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:47px;border-radius:14px;background:var(--choice);border:1px solid color-mix(in srgb,var(--choice) 70%,#fff);box-shadow:inset 0 1px #ffffff40,0 3px var(--choice-bottom);color:#fff}
body #modal[data-kind=connection-choice][open] .connection-choice .luminous-icon>.icon{width:25px;height:25px;stroke-width:2}
body #modal[data-kind=connection-choice][open] .recommended-chip{padding:5px 9px;border:0;border-radius:15px;background:#18afe9;color:#fff;font-family:var(--font-inter);font-size:9px;line-height:1.3;font-weight:800}
body #modal[data-kind=connection-choice][open] .connection-choice h3{margin:0 0 9px;font-family:var(--font-inter);font-size:16px;line-height:1.3;font-weight:800;letter-spacing:-.25px}
body #modal[data-kind=connection-choice][open] .connection-choice p{font-size:13px;font-weight:650;line-height:1.5;color:#a6a2ad;margin:0}
body #modal[data-kind=connection-choice][open] .connection-choice:focus-visible{outline:2px solid #fff;outline-offset:4px}

@media(max-width:1050px){
 .country-footer .country-selection-summary{flex-direction:column;align-items:flex-start;gap:3px}
}
@media(max-width:760px){
 .app-bar{grid-template-columns:120px minmax(0,1fr) 32px;padding:0 10px;gap:8px}
 .app-bar-brand img{width:110px}
 .app-bar-greeting{font-size:10px;padding:4px 6px}
 body[data-route=bloqueo] .page-header{height:auto;min-height:77px;padding:12px 14px}
 body[data-route=bloqueo] #page-content>.page.country-workspace{padding:0 12px 10px}
 body .country-workspace .country-list{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
 .country-toolbar>.select,.country-toolbar>.picker{min-width:170px}
 body .country-workspace .country-footer{flex-wrap:wrap;gap:8px}
}
@media(max-width:520px){
 .app-bar{grid-template-columns:112px minmax(0,1fr) 28px;padding:0 7px;gap:5px}
 .app-bar-greeting{font-size:9px;font-weight:600}
 .country-toolbar{flex-wrap:wrap;gap:8px}
 body .country-workspace .country-search{flex:1 0 100%}
 .country-toolbar>.select,.country-toolbar>.picker{width:100%}
 .country-filterbar{flex-wrap:nowrap}
 .country-filterbar button{padding:6px 9px;font-size:10px}
 #country-result-count{font-size:10px}
 body .country-workspace .country-list{grid-template-columns:minmax(0,1fr)}
 body .country-workspace .country-footer .btn{padding:8px 10px;font-size:10px}
 .country-selection-summary strong{font-size:11px}
 .country-selection-summary>span{font-size:9px}
 body #modal[data-kind=connection-choice][open]{padding-bottom:23px}
 body #modal[data-kind=connection-choice][open] .modal-head{padding:17px 18px 5px}
 body #modal[data-kind=connection-choice][open] .connection-choice-subtitle{margin:0 18px 18px;font-size:12px}
 body #modal[data-kind=connection-choice][open] .connection-choices{grid-template-columns:minmax(0,1fr);padding:0 18px;gap:18px}
 body #modal[data-kind=connection-choice][open] .connection-choice{min-height:0;padding:15px}
 body #modal[data-kind=connection-choice][open] .connection-choice-top{margin-bottom:11px}
}

/* Every section shares the Dashboard heading: a bare icon, title and subtitle. */
body[data-route=chat]{--section-accent:#00af97}
body[data-route=configuracion]{--section-accent:#a6a3b4}
body[data-route]:not([data-flow-editor=true]) #page-header{display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;flex-wrap:wrap;gap:12px 18px;width:100%;max-width:none;min-height:80px;height:auto;margin:0;padding:13px 18px;border-bottom:0}
body[data-route] #page-header .section-title{display:flex;align-items:center;gap:12px;flex:1 1 245px;min-width:0}
body[data-route] #page-header .section-title-icon{display:grid;place-items:center;width:27px;height:32px;flex:0 0 27px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--section-accent)}
body[data-route] #page-header .section-title-icon>.section-asset-icon{width:27px;height:27px}
body[data-route] #page-header .section-title-copy{min-width:0}
body[data-route] #page-header .section-title h1{font-family:var(--font-inter);font-size:21px!important;font-weight:700;line-height:1.3;letter-spacing:-.4px;color:var(--text);margin:0;white-space:normal!important}
body[data-route] #page-header .section-title p{font-family:var(--font-system);font-size:13px;font-weight:400;line-height:1.45;color:var(--muted);margin:5px 0 0}
body[data-route] #page-header .academy-count{flex:0 0 auto;margin-left:auto}
body[data-route=chat] .workspace{display:flex;flex-direction:column}
body[data-route=chat] #page-content{flex:1;min-height:0;height:auto;display:flex;flex-direction:column;overflow:hidden}
body[data-route=chat] .support-layout{flex:1;min-height:0;height:100%}

/* Bottom navigation follows the supplied blue gradient and red palette. */
body .sidebar-bottom .bottom-buttons .btn.notice-button{background:var(--ariabot-blue-gradient);border:1px solid #78a4ff;color:#fff;box-shadow:inset 0 1px #ffffff25,0 3px #1d50c8}
body .sidebar-bottom .bottom-buttons .btn[data-action=affiliate]{background:#cc2840;border:1px solid #d7354b;color:#fff;box-shadow:inset 0 1px #ffffff18,0 3px #991d30}
body .sidebar-bottom .bottom-buttons .btn{border-radius:8px;font-weight:650;min-height:35px;margin-bottom:3px}
body .sidebar-bottom .bottom-buttons .btn:active{transform:translateY(1px)}

/* The CRM uses the full workspace, with a scrolling table and visible footer. */
.crm-stats{flex:0 0 auto;border-radius:11px}
.crm-stat{min-height:65px;padding:11px 14px}
.crm-stat small{font-size:12px}
.crm-layout{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) 280px;grid-template-rows:minmax(0,1fr);gap:12px;align-items:stretch;margin-top:12px}
.crm-portfolio{display:flex;flex-direction:column;min-height:0;height:100%;border-radius:11px}
.crm-portfolio-heading{flex:0 0 auto;min-height:59px;padding:10px 12px}
.crm-portfolio-heading>div:first-child{flex:0 0 auto}
body .crm-portfolio-heading>.search-field{flex:1 1 250px;max-width:440px}
.crm-portfolio-heading .search-field input{font-size:12px}
body .crm-page .contacts-data{flex:1;min-height:0;height:auto;max-height:none;overflow:auto;overscroll-behavior:contain}
body .crm-page .crm-table{min-width:920px}
body .crm-page .crm-table th{position:sticky;top:0;z-index:2}
body .crm-page .crm-table td{padding:10px 9px;font-size:12px}
.crm-person strong{font-size:12px}
.crm-person small{font-size:11px}
.crm-footer{flex:0 0 auto;min-height:40px;border-top:1px solid var(--line)}
.crm-next{align-self:start;max-width:none;width:100%;padding:14px;border-radius:11px}
.crm-next-person>div{min-width:0}
.crm-next-person strong{overflow-wrap:anywhere}
.crm-next-person small{overflow-wrap:anywhere}

@media(max-width:1500px){
 .crm-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:'next' 'portfolio'}
 .crm-portfolio{grid-area:portfolio}
 .crm-next{grid-area:next;display:grid;grid-template-columns:minmax(0,1fr) auto 190px;align-items:center;gap:16px;padding:12px 14px;border-top-width:1px;border-left:4px solid #18afe9}
 .crm-next h2{font-size:15px}
 .crm-next-contact{min-width:0;width:clamp(135px,18vw,200px);border-left:1px solid var(--line);padding-left:16px}
 .crm-next-person{border:0;padding:0;margin:0 0 7px}
 .crm-next-actions{grid-column:3;margin-top:0}
 .crm-next-copy>p{margin-top:4px}
 .crm-portfolio-heading>div:first-child{flex-basis:auto}
 .crm-stat{padding:10px 11px;gap:9px}
}
@media(max-width:1050px){
 .crm-next{grid-template-columns:minmax(0,1fr) 185px;gap:10px 14px}
 .crm-next-contact{grid-column:1;grid-row:2;width:auto;border:0;padding:0;display:flex;align-items:center;gap:12px}
 .crm-next-person{margin:0}
 .crm-next-actions{grid-column:2;grid-row:1 / span 2}
 .crm-stat{gap:8px}
 .crm-stat-icon{width:31px;height:33px;flex-basis:31px}
 .crm-stat small{font-size:11px}
 body .crm-portfolio-heading>.search-field{max-width:none}
}
@media(max-width:760px){
 body[data-route]:not([data-flow-editor=true]) #page-header{min-height:80px;padding:12px 14px;gap:12px}
 body[data-route] #page-header .section-title{flex-basis:220px;gap:10px}
 body[data-route] #page-header .section-title .mobile-menu{display:grid;flex:0 0 24px;width:24px;height:28px;padding:2px;background:transparent;border:0}
 body[data-route] #page-header .section-title h1{font-size:21px!important}
 body[data-route] #page-header .section-title p{font-size:12px}
 body[data-route=contactos] #page-content>.page.crm-page{height:auto;min-height:0;flex:1 0 auto;overflow:visible;padding:0 14px 14px}
 .crm-layout{flex:none;min-height:0;grid-template-rows:auto auto}
 .crm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .crm-stat{min-height:62px}
 .crm-next{grid-template-columns:minmax(0,1fr);gap:12px;padding:12px}
 .crm-next-contact{grid-column:auto;grid-row:auto}
 .crm-next-actions{grid-column:auto;grid-row:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .crm-next-actions>.btn{min-height:38px;white-space:normal}
 .crm-next-actions>.btn:only-child{grid-column:1 / -1}
 .crm-portfolio{height:auto;min-height:330px}
 body .crm-page .contacts-data{flex:auto;max-height:65dvh;min-height:180px}
 .crm-portfolio-heading>div:first-child{flex:1 0 100%}
 body .crm-portfolio-heading>.search-field{flex:1 0 100%}
 .crm-portfolio-heading .picker{flex:1}
 .reference-connection-actions{width:100%;flex-wrap:wrap;justify-content:flex-start}
}
