/* Ubícate GPS Sales: one layout system for CRM, conversations and embedded chat. */
:root{--bg:#f4f5f6;--card:#fff;--ink:#191919;--muted:#617080;--line:#dfe5eb;--accent:#f26a21;--accent-dark:#b9470d;--accent-soft:#fff2e9;--shadow:0 5px 20px rgba(25,42,62,.045);--radius:16px}
*{box-sizing:border-box}html{color-scheme:light}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}img{max-width:100%}a{color:var(--accent-dark);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}[hidden]{display:none!important}:focus-visible{outline:3px solid #225ea8;outline-offset:3px}h1,h2,p{overflow-wrap:anywhere}h1{font-size:clamp(25px,3vw,34px);letter-spacing:-.8px;line-height:1.15;margin:6px 0 10px}h2{font-size:18px;line-height:1.3;margin:0}p{margin:8px 0 14px}.muted,.small-note{color:var(--muted)}.small-note{font-size:12px}.eyebrow{font-size:11px;letter-spacing:1.7px;text-transform:uppercase;font-weight:800;color:var(--accent-dark)}
body>header{background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:24px;padding:12px 24px;min-height:72px;position:sticky;top:0;z-index:30;flex-wrap:wrap}.brand{font-size:18px;font-weight:900;letter-spacing:-.6px;white-space:nowrap;color:var(--ink)}.brand span,.logo span{color:var(--accent)}nav{display:flex;align-items:center;gap:4px;flex:1;flex-wrap:wrap;min-width:0}nav a{color:var(--muted);font-weight:600;font-size:12px;padding:9px 10px;border-radius:8px;white-space:nowrap}nav a:hover{background:var(--accent-soft);color:var(--accent-dark);text-decoration:none}.user{font-size:12px;color:var(--muted);margin-left:auto;white-space:nowrap}main{width:100%;max-width:1500px;margin:auto;padding:28px 24px 108px;min-width:0}.top,.ubi-workspace-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.top-actions,.bot-actions,.automation-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.top-actions form,.automation-actions form{margin:0}.card{min-width:0;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow)}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}.sectionhead>a{font-weight:600;font-size:13px}.btn,button,.ubi-head-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:10px;background:var(--accent);color:#fff;font-weight:700;font-size:13px;line-height:1.3;text-align:center;cursor:pointer;vertical-align:middle;text-decoration:none;max-width:100%;white-space:normal}button:hover,.btn:hover,.ubi-head-btn:hover{background:var(--accent-dark);text-decoration:none}button:disabled,.btn[aria-disabled=true]{opacity:.55;cursor:not-allowed}.ghost,.btn.ghost,button.ghost{background:#f0f3f6;color:var(--ink);border-color:var(--line)}.ghost:hover{background:#e5ebf0}.danger{background:#bd3437}.danger:hover{background:#96292c}.danger-text,.link-danger{color:#a92529}.link-danger{background:transparent;border-color:transparent;padding:8px;font-size:12px}.link-danger:hover{background:#fff0f0}.danger-zone{border-color:#eec6c8}.pill{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:999px;background:#edf1f5;color:#4f5c6a;font-size:11px;font-weight:600;line-height:1.5;max-width:100%;overflow-wrap:anywhere}.pill.active,.pill.completed{background:#e5f4ec;color:#246448}.pill.paused{background:#fff1d7;color:#835818}.pill.escalated{background:#ffe9e9;color:#923137}.pill.automated{background:var(--accent-soft);color:var(--accent-dark)}
label{display:block;min-width:0;font-size:12px;font-weight:700;color:#435163}input,select,textarea{display:block;width:100%;min-width:0;min-height:44px;margin-top:6px;border:1px solid #ccd5df;border-radius:10px;padding:10px 12px;color:var(--ink);background:#fff;line-height:1.4}textarea{resize:vertical;min-height:88px}input::placeholder,textarea::placeholder{color:#788795}input[type=checkbox],input[type=radio]{display:inline-block;width:18px;height:18px;min-height:0;padding:0;margin:0 5px;vertical-align:middle;accent-color:var(--accent);flex:0 0 auto}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.formgrid .full{grid-column:1/-1}.mini-form,.proactive-form{display:grid;gap:12px;min-width:0}.mini-form{margin-bottom:18px}.mini-form .two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mini-form button,.proactive-form button{justify-self:start}.filters{display:flex;gap:10px;margin-bottom:16px;flex-wrap:wrap}.filters input,.filters select{flex:1 1 200px;margin:0}.filters button{flex:0 0 auto}.grid,.detail-grid,.bot-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:18px}.bot-layout{grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr)}.kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:20px}.kpis>div{padding:18px;background:#fff;border:1px solid var(--line);border-radius:14px}.kpis small{display:block;color:var(--muted);font-size:12px}.kpis b{display:block;font-size:30px;line-height:1.2;margin-top:8px}.big-number{font-size:42px;font-weight:800}.tablewrap{overflow-x:auto;overscroll-behavior-x:contain;max-width:100%;scrollbar-width:thin}table{width:100%;border-collapse:collapse;min-width:620px}th,td{text-align:left;vertical-align:top;padding:14px 12px;border-bottom:1px solid var(--line);font-size:13px;overflow-wrap:anywhere}th{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.4px;background:#f9fafc}td small{color:var(--muted)}td .mini-form{min-width:220px;margin-top:12px}details summary{cursor:pointer;color:var(--accent-dark);padding:8px 0}.timeline>div{border-left:3px solid #ffd1b4;padding:8px 0 10px 14px;margin-bottom:12px}.timeline p{margin:5px 0}.timeline small,.asset-list span{font-size:12px;color:var(--muted)}.asset-list>div{padding:12px 0;border-bottom:1px solid var(--line)}.asset-list span{display:block;margin-top:4px}.automation-actions{margin:16px 0}.flow{padding-left:22px;line-height:1.9}.automation-card,.recent-card{margin-top:18px}.pipeline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.pipeline a{display:flex;justify-content:space-between;border:1px solid var(--line);border-radius:10px;padding:12px}.recent{display:grid}.recent a{padding:12px 0;border-bottom:1px solid var(--line)}.recent span,.recent em{font-size:12px;color:var(--muted)}.alert,.flash{padding:12px 14px;border:1px solid transparent;border-radius:10px;font-size:13px;margin-bottom:16px;overflow-wrap:anywhere}.alert,.flash.error{background:#fff0e9;color:#923b1b;border-color:#f4d1be}.flash.ok{background:#e9f5ed;color:#28613e;border-color:#cce8d5}.login{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at top,#fff2e9,var(--bg) 65%)}.login-card{width:min(430px,100%);border:1px solid var(--line);border-radius:20px;background:#fff;padding:32px;box-shadow:0 18px 60px #27364712}.logo{font-size:19px;font-weight:900;margin-bottom:24px}.login-card h1{font-size:27px}.login-card form{display:grid;gap:16px;margin:24px 0}.login-card small{color:var(--muted)}
.board-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 16px;flex-wrap:wrap}.board-filter{display:flex;align-items:center;gap:8px}.board-filter select{width:230px;margin:0}.kanban{display:flex;gap:14px;align-items:flex-start;overflow-x:auto;max-width:100%;padding:2px 2px 20px;overscroll-behavior-x:contain;scrollbar-width:thin}.kanban-col{--stage:#697b8f;--stage-bg:#eef2f6;flex:0 0 276px;min-width:0;min-height:400px;background:#edf1f5;border:1px solid var(--line);border-radius:14px;padding:10px}.kanban-col[data-status=contactado]{--stage:#316dcc;--stage-bg:#eaf2ff}.kanban-col[data-status=calificado]{--stage:#7254bc;--stage-bg:#f0ebfc}.kanban-col[data-status=cotizado]{--stage:#a97713;--stage-bg:#fff5dd}.kanban-col[data-status=negociacion]{--stage:#c85b20;--stage-bg:#fff0e5}.kanban-col[data-status=venta],.kanban-col[data-status=activo]{--stage:#26805c;--stage-bg:#e5f4ec}.kanban-col[data-status=instalacion]{--stage:#267e8c;--stage-bg:#e5f4f7}.kanban-col[data-status=perdido]{--stage:#b34448;--stage-bg:#fff0f0}.kanban-head{padding:4px 4px 12px}.kanban-head>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.kanban-head strong{font-size:13px;display:flex;align-items:center;gap:8px}.kanban-head strong:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--stage)}.count{background:var(--stage-bg);color:var(--stage);border-radius:20px;padding:3px 8px;font-weight:700;font-size:11px}.dropzone{min-height:330px;border-radius:10px;padding:1px}.dropzone.over{background:var(--stage-bg);outline:2px dashed var(--stage)}.empty-drop{display:grid;place-items:center;height:100px;border:1px dashed #cbd5df;border-radius:10px;color:var(--muted);font-size:12px}.lead-card{position:relative;border:1px solid #d8e1e9;border-left:3px solid var(--stage);border-radius:11px;padding:14px 12px;background:#fff;margin:8px 0;cursor:grab;box-shadow:0 2px 6px #22334408;overflow-wrap:anywhere}.lead-card:hover{border-color:#b9c9d8}.lead-card.dragging{opacity:.45;cursor:grabbing}.lead-card[aria-busy=true]{opacity:.6;cursor:progress}.drag-handle{position:absolute;right:8px;top:8px;color:#8c9ba9}.lead-main{display:block;padding-right:18px;color:var(--ink)}.lead-main strong,.lead-main span{display:block}.lead-main span{font-size:12px;color:var(--muted);margin-top:4px}.interest-pill{display:inline-block;padding:4px 8px;border-radius:20px;background:#f0f3f6;color:#506171;font-size:10px;margin-top:10px}.lead-meta{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted);margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}.bot-chip{font-size:11px;padding:5px 8px;border-radius:7px;color:#855317;background:#fff4df;margin-top:8px}
.bot-profile{display:grid;gap:8px;background:#f7f9fb;border:1px solid var(--line);border-radius:12px;padding:16px;margin-top:14px}.bot-profile span{font-size:12px;color:var(--muted)}.ubi-workspace{display:grid;grid-template-columns:285px minmax(0,1fr);gap:16px;min-height:560px;height:min(760px,calc(100dvh - 230px))}.conversation-sidebar{display:flex;flex-direction:column;min-height:0;padding:16px}.conversation-sidebar .sectionhead{gap:8px}.conversation-tabs{display:flex;gap:5px}.conversation-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.conversation-item{display:grid;grid-template-columns:36px minmax(0,1fr) 8px;gap:10px;align-items:center;padding:12px 9px;border:1px solid transparent;border-radius:11px;margin-bottom:5px;color:var(--ink)}.conversation-item:hover{background:#f6f8fa;text-decoration:none}.conversation-item.selected{background:var(--accent-soft);border-color:#f7cfb9}.conv-avatar{width:36px;height:36px;display:grid;place-items:center;background:#253346;color:#fff;border-radius:50%;font-size:12px;font-weight:800}.conv-main{min-width:0}.conv-main strong,.conv-main small,.conv-main em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conv-main strong{font-size:12px}.conv-main small{font-size:10px;color:var(--muted);margin-top:3px}.conv-main em{font-style:normal;font-size:10px;color:var(--accent-dark);margin-top:4px}.conv-status{width:8px;height:8px;border-radius:50%;background:#99a5b1}.conv-status.automated{background:var(--accent)}.conv-status.escalated{background:#bc484c}.conv-status.completed{background:#31986b}.conversation-footer{padding-top:12px;border-top:1px solid var(--line);margin-top:10px}.conversation-footer .btn{width:100%}.empty-conversations{padding:28px 12px;text-align:center;color:var(--muted);font-size:12px}.chat-card{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;padding:18px}.chat-card>.sectionhead{flex:0 0 auto;margin-bottom:12px}.chat-card>.sectionhead>div:first-child{min-width:0}.chat-card .top-actions{justify-content:flex-end}.chatbox{flex:1 1 0;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f7f9fb;overscroll-behavior:contain;scrollbar-width:thin}.bubble{position:relative;width:fit-content;max-width:85%;padding:12px 14px 24px;border-radius:14px;margin:8px 0;overflow-wrap:anywhere;white-space:normal;font-size:14px;line-height:1.55}.bubble small{display:block;font-size:10px;font-weight:700;color:#687583;margin-bottom:5px}.bubble.inbound{margin-right:auto;background:#fff;border:1px solid #e0e5eb;border-bottom-left-radius:4px}.bubble.outbound{margin-left:auto;background:var(--accent-soft);border:1px solid #f7d3bd;border-bottom-right-radius:4px}.bubble time{position:absolute;bottom:5px;right:12px;color:#6b7885;font-size:9px}.empty-chat{display:grid;place-items:center;align-content:center;gap:8px;min-height:220px;height:100%;text-align:center;color:var(--muted)}.empty-chat-icon{font-size:40px}.bot-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-top:12px;flex:0 0 auto;min-width:0;position:relative}.compose-main{position:relative;min-width:0}.bot-compose textarea{margin:0;min-height:64px;max-height:160px}.send-btn{align-self:start;min-width:116px;height:64px}.compose-tools{position:relative;display:flex;align-items:center;gap:8px;margin-top:6px;min-width:0}.compose-hint{color:var(--muted);font-size:10px}.emoji-wrap{position:relative;display:inline-flex;flex:0 0 auto}.emoji-toggle{min-height:34px;width:38px;padding:3px;background:#edf2f6;color:var(--ink);font-size:20px}.emoji-toggle:hover{background:#e1e8ef}.emoji-panel{position:absolute;left:0;bottom:calc(100% + 8px);width:290px;max-width:calc(100vw - 54px);max-height:220px;overflow:auto;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;border:1px solid var(--line);border-radius:12px;padding:8px;background:#fff;box-shadow:0 12px 35px #1d344226;z-index:80}.emoji-btn{min-height:30px;height:32px;width:100%;padding:0;font-size:19px;background:#f5f7f9;color:var(--ink);border-radius:6px}.emoji-btn:hover{background:var(--accent-soft)}.chat-settings{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:11px;margin-top:8px;flex:0 0 auto}.chat-settings label{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:500}.mobile-conv-toggle{display:none}
.ubi-float{position:fixed;right:22px;bottom:22px;width:66px;height:66px;min-height:0;padding:0;border-radius:50%;background:#202a35;border:3px solid var(--accent);box-shadow:0 10px 25px #172b4433;z-index:90}.ubi-float img{width:60px;height:60px;object-fit:contain;border-radius:50%}.ubi-float span{position:absolute;right:-5px;bottom:-6px;border:2px solid #fff;border-radius:20px;background:var(--accent);color:#fff;font-size:10px;padding:2px 7px}.ubi-modal-open{overflow:hidden}.ubi-modal{position:fixed;inset:0;z-index:100}.ubi-modal-backdrop{position:absolute;inset:0;background:#17233399}.ubi-modal-window{position:absolute;inset:4dvh 4vw;display:flex;flex-direction:column;min-height:0;min-width:0;border-radius:18px;overflow:hidden;background:var(--bg);box-shadow:0 20px 80px #101f3655}.ubi-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#202a35;color:#fff;padding:12px 16px;flex:0 0 auto;min-height:68px}.ubi-modal-title{display:flex;align-items:center;gap:10px;min-width:0}.ubi-modal-title img{width:40px;height:40px;object-fit:contain;flex:0 0 auto}.ubi-modal-title strong,.ubi-modal-title small{display:block}.ubi-modal-title strong{font-size:15px}.ubi-modal-title small{color:#c5d0dc;font-size:11px}.ubi-modal-actions{display:flex;align-items:center;gap:8px}.ubi-head-btn{font-size:12px}.ubi-close{width:44px;padding:0;font-size:27px;background:#374355}.ubi-modal-frame{display:block;width:100%;flex:1 1 0;min-height:0;border:0;background:var(--bg)}body.ubi-embed{height:100dvh;min-height:0;overflow:hidden}.ubi-embed main{display:flex;flex-direction:column;height:100dvh;max-width:none;padding:16px;overflow:hidden;min-height:0}.ubi-embed .ubi-workspace-head{margin-bottom:12px;flex:0 0 auto;align-items:center}.ubi-embed .ubi-workspace-head h1{font-size:23px;margin-bottom:4px}.ubi-embed .ubi-workspace-head p{font-size:12px;margin:4px 0}.ubi-embed .ubi-workspace{flex:1 1 0;height:auto;min-height:0}.ubi-embed main>.flash{flex:0 0 auto;margin-bottom:8px;padding:8px 12px}
@media(max-width:1150px){body>header{gap:12px;padding:12px 18px}body>header nav{order:3;flex-basis:100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}nav a{flex:0 0 auto}.ubi-workspace{grid-template-columns:250px minmax(0,1fr)}.chat-card .top-actions{gap:5px}.chat-card .top-actions button{padding:8px 10px;font-size:12px}}
@media(max-width:900px){.grid,.detail-grid,.bot-layout{grid-template-columns:minmax(0,1fr)}.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.top{flex-wrap:wrap}main{padding:24px 18px 100px}.card{padding:18px}.ubi-workspace{grid-template-columns:220px minmax(0,1fr)}.conversation-sidebar{padding:12px}.conversation-sidebar .sectionhead{align-items:flex-start}.bot-compose{grid-template-columns:minmax(0,1fr)}.send-btn{width:100%;height:44px}.chat-settings>span{display:none}}
@media(max-width:700px){body>header{padding:10px 14px;gap:8px}.brand{font-size:16px}.user{font-size:11px}nav a{padding:9px 8px}.top,.ubi-workspace-head{gap:10px}.top-actions{width:100%;align-items:stretch}.top-actions .btn{flex:1}.formgrid,.mini-form .two{grid-template-columns:minmax(0,1fr)}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.kpis>div{padding:14px}.kpis b{font-size:25px}main{padding:20px 12px 96px}.card{padding:16px}.board-toolbar{align-items:stretch}.board-filter{width:100%}.board-filter select{flex:1;width:0}.kanban-col{flex-basis:260px}.filters{display:grid;grid-template-columns:minmax(0,1fr)}.filters input,.filters select{width:100%}.sectionhead{gap:10px}.login-card{padding:26px}.ubi-workspace{position:relative;display:block;height:720px;min-height:480px}.mobile-conv-toggle{display:inline-flex;white-space:nowrap;flex:0 0 auto}.ubi-workspace-head{align-items:center;flex-wrap:wrap}.ubi-workspace-head>div{flex:1;min-width:0}.ubi-workspace-head p{font-size:12px}.conversation-sidebar{position:absolute;inset:0 auto 0 0;width:min(86%,300px);height:100%;z-index:62;transform:translateX(-115%);visibility:hidden;transition:transform .2s ease,visibility .2s;box-shadow:12px 0 30px #162b3b26}.sidebar-open .conversation-sidebar{transform:translateX(0);visibility:visible}.sidebar-open .ubi-workspace:after{content:"";position:absolute;inset:0;background:#17233366;z-index:60}.chat-card{width:100%;padding:12px;overflow:visible}.chat-card>.sectionhead{align-items:flex-start}.chat-card>.sectionhead h2{font-size:15px}.chat-card .top-actions{width:auto;max-width:100%;justify-content:flex-start}.chat-card .top-actions .pill{padding:4px 7px;font-size:10px}.chat-card .top-actions button{min-height:36px;font-size:11px;padding:7px 9px}.chatbox{padding:9px}.bubble{max-width:92%;padding:10px 11px 23px;font-size:13px}.bot-compose{gap:7px;margin-top:8px}.bot-compose textarea{min-height:54px;max-height:110px;font-size:16px}.compose-hint{font-size:10px}.compose-tools{margin-top:4px}.chat-settings{margin-top:5px}.ubi-embed main{padding:8px}.ubi-embed .ubi-workspace-head{margin:0 0 8px;min-height:44px}.ubi-embed .ubi-workspace-head .eyebrow,.ubi-embed .ubi-workspace-head p{display:none}.ubi-embed .ubi-workspace-head h1{font-size:17px;margin:0}.ubi-embed .ubi-workspace{height:auto;min-height:0;overflow:hidden}.ubi-embed .chat-card{height:100%;min-height:0;overflow:visible}.ubi-embed .chat-card>.sectionhead{margin-bottom:8px}.ubi-embed .chat-settings{padding-bottom:env(safe-area-inset-bottom,0)}.ubi-modal-window{inset:0;border-radius:0;height:100dvh}.ubi-modal-head{min-height:60px;padding:8px 10px}.ubi-modal-title img{width:34px;height:34px}.ubi-modal-title strong{font-size:14px}.ubi-modal-title small{font-size:10px}.ubi-head-btn{display:none}.ubi-float{right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0));width:60px;height:60px}.ubi-float img{width:54px;height:54px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Components introduced with v1.1; these do not reuse the legacy override sheets. */
.nav-toggle{display:none}.user{display:flex;align-items:center;gap:10px}.user form{margin:0}.user span{max-width:190px;overflow:hidden;text-overflow:ellipsis}.app-header nav [aria-current=page]{background:var(--accent-soft);color:var(--accent-dark)}
.skip-link{position:fixed;top:8px;left:8px;transform:translateY(-180%);z-index:200;background:#fff;color:var(--ink);padding:12px;border:2px solid var(--accent);border-radius:8px}.skip-link:focus{transform:none}
.row-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}.row-actions form{margin:0}.row-actions .btn,.row-actions button{white-space:nowrap}
.stage-control{display:flex;align-items:center;gap:8px;margin-top:14px;padding-top:10px;border-top:1px solid var(--line);font-size:11px;font-weight:500}.stage-control span{flex:0 0 auto}.stage-control select{margin:0;min-height:40px;font-size:12px;padding:8px 28px 8px 8px}.lead-card[aria-busy=true]{opacity:.7}.lead-card.needs-refresh{border-color:#ba3838}.lead-card select{cursor:pointer}
.app-toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);padding:14px 18px;background:#1d4937;color:#fff;border-radius:12px;box-shadow:0 8px 28px #17233333;z-index:150;font-size:13px;overflow-wrap:anywhere}.app-toast.error{background:#873032}
.confirm-dialog{max-width:440px;width:calc(100% - 32px);border:1px solid var(--line);border-radius:18px;padding:26px;color:var(--ink);box-shadow:0 24px 80px #17233355}.confirm-dialog::backdrop{background:#17233399}.confirm-dialog h2{margin-bottom:14px}.confirm-dialog p{font-size:14px;line-height:1.6;margin-bottom:20px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.dialog-actions button{min-width:110px}
.page-bot_test main{padding-bottom:24px}.page-bot_test .ubi-float{display:none}
@media(max-width:700px){.app-header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}.app-header .brand{font-size:15px;letter-spacing:-.5px}.app-header .user{margin-left:0}.app-header .user>span{display:none}.app-header .user button,.nav-toggle{padding:8px 10px}.js .nav-toggle{display:inline-flex}.app-header #appNav{grid-column:1/-1}.js .app-header #appNav{display:none}.js .app-header #appNav.is-open{display:flex;flex-wrap:wrap;overflow:visible}.app-header nav a{min-height:44px;display:inline-flex;align-items:center}.ubi-workspace{height:calc(100dvh - 220px);min-height:440px}.page-bot_test .ubi-workspace-head{margin-bottom:12px}.page-bot_test .ubi-workspace-head p{display:none}.compose-hint{display:none}.dialog-actions{display:grid;grid-template-columns:1fr 1fr}.dialog-actions button{min-width:0;width:100%}.row-actions .btn,.row-actions button{padding:8px 11px}.ubi-embed .ubi-workspace{height:auto;min-height:0}.ubi-embed main{padding-bottom:8px}}
@media(max-width:700px){.page-bot_test .ubi-workspace-head>div{flex:1 0 100%;width:100%}.page-bot_test .ubi-workspace-head h1{font-size:26px;line-height:1.2}.page-bot_test .ubi-workspace-head .eyebrow{white-space:nowrap}.page-bot_test .ubi-workspace-head>a,.page-bot_test .mobile-conv-toggle{flex:1;justify-content:center}.page-bot_test .ubi-workspace{height:calc(100dvh - 242px);min-height:440px}.ubi-embed .ubi-workspace{height:auto;min-height:0}}
/* Ubícate Sales v2: grouped navigation, direct lead actions and personal profiles. */
.app-header nav{gap:6px}.nav-group{position:relative;flex:0 0 auto}.nav-group>summary{list-style:none;cursor:pointer;border-radius:9px;padding:9px 12px;color:var(--muted);font-weight:700;font-size:12px;white-space:nowrap}.nav-group>summary::-webkit-details-marker{display:none}.nav-group>summary:after{content:'⌄';margin-left:7px;color:#98a4af}.nav-group[open]>summary,.nav-group>summary:hover{background:var(--accent-soft);color:var(--accent-dark)}.nav-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:40;display:grid;min-width:190px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px #1723331c}.app-header nav .nav-menu a{display:block;padding:10px 12px}.user-profile-link{display:flex;align-items:center;gap:8px;color:var(--ink);font-weight:700}.user-profile-link:hover{text-decoration:none;color:var(--accent-dark)}.user-avatar{width:34px;height:34px;object-fit:cover;border-radius:50%;border:1px solid var(--line)}.user-avatar-fallback,.avatar-preview span{display:grid;place-items:center;background:#253346;color:#fff;font-weight:800}.lead-card-actions{display:flex;gap:8px;margin-top:10px;padding-top:9px;border-top:1px solid var(--line)}.lead-card-actions a{flex:1;text-align:center;border-radius:8px;padding:7px 8px;background:#f0f3f6;color:var(--ink);font-size:11px;font-weight:700}.lead-card-actions a:first-child{background:var(--accent-soft);color:var(--accent-dark)}.kpis>a{display:block;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:14px;color:var(--ink);transition:transform .15s,border-color .15s}.kpis>a:hover{transform:translateY(-2px);border-color:#f3b28e;text-decoration:none}.kpis b .kpi-detail{display:inline;font-size:11px;font-weight:500}.attention-card{margin:0 0 20px}.attention-list{display:grid}.attention-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.attention-row>div:first-child{min-width:0}.attention-row strong,.attention-row small{display:block}.attention-row small{margin-top:3px;color:var(--muted);font-size:11px}.profile-form{display:grid;grid-template-columns:minmax(200px,.65fr) minmax(0,1.35fr);gap:24px;max-width:950px}.profile-photo{display:grid;align-content:start;justify-items:start;gap:14px}.avatar-preview{width:132px;height:132px;overflow:hidden;border-radius:50%;border:1px solid var(--line);background:#eef2f6}.avatar-preview img{width:100%;height:100%;object-fit:cover}.avatar-preview span{width:100%;height:100%;font-size:42px}.profile-photo label small,.profile-form label small{display:block;font-weight:400;color:var(--muted);margin-top:5px}.profile-form input[type=file]{padding:8px;font-size:12px}.profile-form .formgrid{align-content:start}.profile-form .full{display:flex;justify-content:flex-end}
@media(max-width:1150px){.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.app-header nav{flex-basis:100%;overflow:visible;flex-wrap:wrap}.profile-form{grid-template-columns:1fr}.profile-photo{grid-template-columns:auto minmax(0,1fr);align-items:center}.avatar-preview{width:96px;height:96px}}
@media(max-width:700px){.app-header .user-profile-link>span:not(.user-avatar){display:none}.nav-group>summary{padding:9px 8px}.nav-menu{position:static;min-width:0;box-shadow:none}.app-header nav .nav-group[open]{flex-basis:100%}.app-header nav .nav-group[open] .nav-menu{width:100%}.kpis>a{padding:14px}.attention-row{align-items:flex-start;flex-direction:column}.attention-row .row-actions{width:100%}.attention-row .row-actions a{flex:1}.profile-photo{grid-template-columns:80px minmax(0,1fr)}.avatar-preview{width:80px;height:80px}}

/* Identidad Ubícate y controles más discretos (UI v2.1). */
:root{--radius:13px;--shadow:0 2px 10px rgba(25,42,62,.035)}
body>header{min-height:64px;padding:9px 20px;gap:18px}
.brand{display:inline-flex;align-items:center;gap:8px;text-decoration:none!important}
.brand-mark{display:block;width:27px;height:30px;object-fit:contain;flex:0 0 auto}
.brand-name{font-size:16px;letter-spacing:-.4px}
.brand-name em{font-style:normal;color:var(--accent);font-weight:800}
.btn,button,.ubi-head-btn{min-height:38px;padding:8px 12px;border-radius:8px;font-size:12px;font-weight:650}
input,select,textarea{min-height:40px;border-radius:8px;padding:8px 11px}
textarea{min-height:88px}
.row-actions{gap:6px;flex-wrap:wrap}
.row-actions .btn,.row-actions button{min-height:32px;padding:6px 9px;border-radius:7px;font-size:11px}
.row-actions .danger-text,.row-actions .link-danger{background:transparent;border-color:transparent;color:#a92529}
.card{padding:19px;border-radius:13px}
.kpis{gap:10px}
.kpis>div{padding:15px;border-radius:12px}
.kpis b{font-size:27px}
.login-card{padding:30px;border-radius:18px}
.login-brand-logo{display:block;width:min(100%,300px);height:auto;object-fit:contain;margin:0 auto 4px}
.login-card .logo{text-align:center;color:var(--muted);font-size:12px;letter-spacing:2px;margin-bottom:20px}
@media(max-width:700px){body>header{padding:9px 13px}.brand-mark{width:24px;height:27px}.brand-name{font-size:14px}.btn,button,.ubi-head-btn{min-height:38px;padding:8px 10px}.row-actions{width:100%}.row-actions .btn,.row-actions button{flex:0 0 auto}}

/* Responsive pass: small phones, tablets and touch operation. */
html,body{max-width:100%;overflow-x:hidden}
@media(max-width:700px){
  main{padding-left:12px;padding-right:12px}
  body>header{gap:7px}
  .app-header{grid-template-columns:minmax(0,1fr) auto auto}
  .app-header .brand{min-width:0;gap:6px}
  .brand-name{font-size:clamp(12px,3.8vw,14px);letter-spacing:-.35px}
  .app-header .user{gap:6px}
  .app-header .user form button,.nav-toggle{min-height:34px;padding:6px 8px;font-size:11px}
  .app-header nav a{min-height:40px}
  .top-actions{gap:6px}
  .top-actions .btn{min-width:0;min-height:36px;padding:7px 9px;font-size:11px}
  .row-actions{white-space:normal;gap:5px}
  .row-actions .btn,.row-actions button{min-height:30px;padding:5px 8px;font-size:10px}
  .tablewrap{border-radius:11px;-webkit-overflow-scrolling:touch}
  th,td{padding:10px 9px}
  input,select{font-size:16px}
  .page-bot_test .ubi-workspace{height:calc(100dvh - 235px);min-height:340px}
  .page-bot_test .ubi-workspace-head h1{font-size:22px}
  .page-bot_test .ubi-workspace-head>a,.page-bot_test .mobile-conv-toggle{min-height:34px;font-size:11px}
}
@media(max-width:380px){
  main{padding-left:9px;padding-right:9px}
  .brand-mark{width:21px;height:24px}
  .brand-name{font-size:12px}
  .app-header .user-profile-link .user-avatar{width:29px;height:29px}
  .app-header .user form button,.nav-toggle{padding:5px 6px;font-size:10px}
  .kpis>div{padding:11px}
  .kpis b{font-size:22px}
  .chat-card .top-actions{gap:4px}
  .chat-card .top-actions button{padding:6px 7px;font-size:10px}
}
@media(max-height:520px) and (max-width:700px){.page-bot_test .ubi-workspace{height:calc(100dvh - 190px);min-height:300px}.page-bot_test .ubi-workspace-head p{display:none}}

@media(max-width:700px){.tablewrap table{min-width:680px}.tablewrap th,.tablewrap td{white-space:nowrap}.tablewrap td:first-child{min-width:180px}.tablewrap{overflow-x:auto;touch-action:pan-x pan-y;scrollbar-width:thin}}

@media(max-width:700px){.tablewrap:before{content:"↔ Desliza para ver más columnas";display:block;padding:0 0 8px;color:var(--muted);font-size:11px}}

/* CRM v3: navegación contextual, tablero de trabajo y bandeja operativa. */
.nav-group>summary{transition:background .16s ease,color .16s ease,transform .16s ease}
.nav-group>summary:active{transform:scale(.98)}
.nav-group[data-active="true"]>summary{color:var(--accent-dark)}
.nav-group[data-active="true"]>summary:before{content:"";width:6px;height:6px;display:inline-block;margin:0 7px 1px 0;border-radius:50%;background:var(--accent)}
.nav-menu{transform-origin:top left}
.nav-group[open] .nav-menu{animation:menu-arrive .16s ease-out both}
@keyframes menu-arrive{from{opacity:0;transform:translateY(-5px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.nav-menu a{transition:background .15s ease,color .15s ease,padding-left .15s ease}
.nav-menu a:hover{padding-left:16px}
.dashboard-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(275px,320px);gap:14px;align-items:start;margin-top:12px}
.dashboard-board{min-width:0;padding:17px;overflow:hidden}
.board-panel-head{align-items:center;margin-bottom:10px}
.board-panel-head>div{min-width:0}
.board-panel-head .small-note{display:block;margin-top:4px}
.dashboard-board .board-toolbar{margin:10px 0 8px}
.dashboard-board .kanban{padding-bottom:12px}
.dashboard-side{display:grid;gap:14px;min-width:0}
.dashboard-side .attention-card{margin:0}
.dashboard-side .attention-row{align-items:flex-start;padding:10px 0}
.dashboard-side .attention-row .row-actions{flex-wrap:nowrap}
.quick-actions .sectionhead{margin-bottom:8px}
.quick-action-list{display:grid;gap:4px}
.quick-action-list>a{display:grid;grid-template-columns:34px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:9px;border:1px solid transparent;border-radius:10px;color:var(--ink);transition:background .16s ease,border-color .16s ease,transform .16s ease}
.quick-action-list>a:hover{background:#f7f8fa;border-color:var(--line);text-decoration:none;transform:translateX(2px)}
.quick-action-list>a.quick-action-primary{background:var(--accent-soft);border-color:#f8ddcd}
.quick-action-list strong,.quick-action-list small{display:block}
.quick-action-list strong{font-size:12px}
.quick-action-list small{margin-top:2px;color:var(--muted);font-size:10px}
.quick-action-list>b,.quick-action-list>a>b{color:var(--muted);font-size:19px;text-align:center}
.quick-action-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#fff;color:var(--accent-dark);font-size:16px;font-weight:800}
.dashboard-accordion{margin-top:14px;padding:0;overflow:hidden}
.dashboard-accordion>.accordion-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:64px;padding:14px 18px;cursor:pointer;list-style:none;transition:background .15s ease}
.dashboard-accordion>.accordion-summary::-webkit-details-marker{display:none}
.dashboard-accordion>.accordion-summary:hover{background:#fafbfc}
.accordion-summary>span:first-child{display:grid;gap:3px}
.accordion-summary strong{font-size:13px}
.accordion-summary small{font-size:11px;color:var(--muted);font-weight:400}
.accordion-icon{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--line);border-radius:50%;color:var(--muted);transition:transform .18s ease,background .18s ease}
.dashboard-accordion[open]>.accordion-summary{border-bottom:1px solid var(--line);background:#fafbfc}
.dashboard-accordion[open] .accordion-icon{transform:rotate(180deg);background:#fff;color:var(--accent-dark)}
.accordion-content{padding:14px 18px 18px;animation:accordion-arrive .18s ease-out both}
@keyframes accordion-arrive{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.dashboard-accordion .source-performance,.source-performance .tablewrap{margin:0}
.dashboard-support-grid{margin:0!important}
.inbox-filters{display:grid;gap:7px;margin:10px 0 5px}
.inbox-search-label,.inbox-channel-label{min-width:0}
.inbox-filters input,.inbox-filters select{min-height:36px;margin:0;padding:7px 10px;font-size:12px;border-radius:8px}
.inbox-result-count{margin:3px 2px 7px;color:var(--muted);font-size:10px}
.conversation-item{transition:background .15s ease,border-color .15s ease,transform .15s ease}
.conversation-item:hover{transform:translateX(2px)}
.conversation-item[hidden]{display:none!important}
.chat-card>.sectionhead{padding:0 0 10px;border-bottom:1px solid var(--line)}
.chat-card .inbox-lead-link{min-height:32px;padding:5px 9px;font-size:11px}
.chatbox{scroll-behavior:smooth}
.bubble{animation:bubble-arrive .18s ease-out both}
@keyframes bubble-arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.btn,button,.ubi-head-btn{transition:background .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease,transform .12s ease}
.btn:active,button:active,.ubi-head-btn:active{transform:translateY(1px)}
.card{transition:border-color .16s ease,box-shadow .16s ease}
.quick-actions:hover,.attention-card:hover{border-color:#d5dfe8;box-shadow:0 6px 20px rgba(25,42,62,.055)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1100px){.dashboard-workspace{grid-template-columns:minmax(0,1fr)}.dashboard-side{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-side .attention-card{grid-row:span 2}}
@media(max-width:700px){.dashboard-workspace{gap:10px;margin-top:9px}.dashboard-board{padding:12px}.board-panel-head{align-items:flex-start}.board-panel-head>a{flex:0 0 auto}.board-panel-head .small-note{max-width:42ch}.dashboard-side{grid-template-columns:minmax(0,1fr);gap:10px}.dashboard-side .attention-card{grid-row:auto}.dashboard-accordion>.accordion-summary{min-height:58px;padding:12px 14px}.accordion-content{padding:12px}.inbox-filters{grid-template-columns:minmax(0,1fr) 130px;gap:6px}.inbox-filters input,.inbox-filters select{font-size:16px}.chat-card>.sectionhead{gap:8px}.chat-card .inbox-lead-link{min-height:30px;padding:5px 7px}}
@media(max-width:380px){.inbox-filters{grid-template-columns:minmax(0,1fr)}.board-panel-head .btn{font-size:10px;padding:6px 7px}}
@media(prefers-reduced-motion:reduce){.nav-menu,.accordion-content,.bubble{animation:none!important}.nav-menu a,.nav-group>summary,.quick-action-list>a,.conversation-item,.btn,button,.card{transition:none!important}}

/* WhatsApp-style quoted replies, media controls, and personal quick replies. */
.quote-message{display:inline-flex;align-items:center;gap:5px;margin-top:7px;padding:4px 8px;min-height:28px;border:1px solid #d8e1e9;border-radius:999px;background:#fff;color:#526274;font-size:11px;font-weight:650;cursor:pointer}.quote-message:hover{border-color:#f36f21;color:#b84a0b;background:#fff7f1}.quote-preview{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border:1px solid #ffd2b6;border-left:3px solid #f36f21;border-radius:9px;background:#fff8f3;color:#536172;font-size:12px}.quote-preview b{color:#222}.quote-preview button{min-width:28px;padding:3px;border:0;background:transparent;color:#677384;font-size:19px}.chat-media-image{display:block;width:min(100%,360px);max-height:300px;object-fit:contain;border-radius:10px;background:#eef1f4}.chat-media-video{display:block;width:min(100%,380px);max-height:320px;border-radius:10px;background:#111}.chat-media-audio{display:block;width:min(100%,340px);height:42px}.chat-media-file{display:inline-flex;padding:10px 12px;border:1px solid #dbe2e9;border-radius:8px;background:#fff}.quick-reply-bar{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:6px 0}.quick-reply-bar select{max-width:280px;min-height:36px;padding:7px 10px}.quick-reply-bar .ghost{min-height:36px;padding:7px 10px;font-size:12px}.quick-reply-note,.attachment-name{color:var(--muted);font-size:11px}.attachment-btn{display:inline-flex;align-items:center;min-height:34px;padding:6px 11px;border:1px solid #d8e1e9;border-radius:8px;background:#fff;color:#38485a;font-size:12px;font-weight:650;cursor:pointer}.attachment-btn:hover{border-color:#f36f21;color:#b84a0b;background:#fff8f3}.compose-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.page-bot_test .bubble{overflow-wrap:anywhere}
@media(max-width:700px){.quick-reply-bar{align-items:stretch}.quick-reply-bar select{max-width:none;flex:1 1 100%;min-height:42px;font-size:16px}.quick-reply-bar .ghost{flex:1}.quick-reply-note{flex-basis:100%}.attachment-btn{min-height:40px}.chat-media-image,.chat-media-video{max-width:100%;max-height:240px}.chat-media-audio{width:min(100%,300px)}}
.attachment-preview{flex-basis:100%;padding:6px 0}.attachment-preview[hidden]{display:none}.quick-reply-bar button:disabled{opacity:.45;cursor:not-allowed}
.page-bot_test .chat-card{gap:0;background:#fff}
.page-bot_test .chatbox{background-color:#f7f6f2;background-image:radial-gradient(circle at 18% 22%,#f36f2110 1px,transparent 1.4px),radial-gradient(circle at 78% 68%,#202a3308 1px,transparent 1.5px);background-size:24px 24px,31px 31px;border-color:#e6e9ec}
.page-bot_test .bubble{box-shadow:0 1px 1px #17212b0a}
.quick-replies-menu{order:2;grid-column:1/-1;grid-row:2;position:relative;width:max-content;max-width:100%;margin:0 0 7px}
.quick-replies-menu>summary{list-style:none;display:flex;align-items:center;gap:6px;min-height:30px;padding:4px 10px;border:1px solid #e0e5e9;border-radius:999px;background:#fff;color:#566270;font-size:11px;font-weight:650;cursor:pointer;transition:background .15s,border-color .15s}
.quick-replies-menu>summary::-webkit-details-marker{display:none}.quick-replies-menu>summary:hover,.quick-replies-menu[open]>summary{border-color:#f5c9ad;background:#fff8f3;color:#a9440b}
.quick-reply-panel{position:absolute;left:0;bottom:calc(100% + 6px);z-index:25;width:min(560px,calc(100vw - 36px));padding:8px;border:1px solid #e0e5e9;border-radius:13px;background:#fff;box-shadow:0 12px 32px #1b29331f}
.quick-reply-bar{display:flex;align-items:center;gap:6px;margin:0}.quick-reply-bar select{flex:1;min-width:130px;max-width:none}.quick-reply-bar .ghost{white-space:nowrap}
.page-bot_test .bot-compose{grid-template-columns:minmax(0,1fr) 50px;align-items:end;gap:8px;margin-top:7px;padding:0;border:0;background:transparent}
.page-bot_test .bot-compose>.quote-preview{grid-column:1/-1;grid-row:1}
.page-bot_test .compose-main{grid-column:1;grid-row:3;overflow:visible;border:1px solid #dfe4e8;border-radius:20px;background:#fff;box-shadow:0 2px 8px #1926330a}
.page-bot_test .compose-main:focus-within{border-color:#f0a576;box-shadow:0 0 0 3px #f36f2114}
.page-bot_test .bot-compose textarea{display:block;width:100%;min-height:42px;max-height:130px;padding:11px 15px 6px;border:0;border-radius:20px;background:transparent;box-shadow:none;resize:vertical;font-size:14px;line-height:1.4}
.page-bot_test .bot-compose textarea:focus{outline:0;box-shadow:none}
.page-bot_test .compose-tools{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:0;padding:4px 8px 7px}
.page-bot_test .attachment-btn{justify-content:center;width:36px;min-width:36px;height:34px;min-height:34px;padding:0;border:0;border-radius:50%;background:transparent;color:#5b6874;font-size:0}
.page-bot_test .attachment-btn:hover{background:#fff3eb;color:#b84a0b}
.page-bot_test .compose-tools>label.attachment-btn::before{content:'＋';font-size:22px;font-weight:400}
.page-bot_test .compose-tools .mic-btn{width:36px;min-width:36px;height:34px;min-height:34px;font-size:18px}
.page-bot_test .compose-tools .sticker-btn{width:34px;min-width:34px;height:34px;min-height:34px;font-size:18px}
.page-bot_test .emoji-toggle{width:34px;min-height:34px;border-radius:50%;background:transparent}
.page-bot_test .send-btn{grid-column:2;grid-row:3;align-self:end;display:grid;place-items:center;width:48px;min-width:48px;height:48px;min-height:48px;padding:0;border:0;border-radius:50%;background:#f36f21;color:#fff;font-size:0;box-shadow:0 3px 9px #f36f2133;transition:transform .15s,background .15s}
.page-bot_test .send-btn::before{content:'➤';font-size:20px;line-height:1;transform:translate(-1px,1px)}
.page-bot_test .send-btn:hover{background:#db5c12;transform:translateY(-1px)}
.page-bot_test .send-btn:disabled{opacity:.48;box-shadow:none}
.page-bot_test .recording-state{flex:1 1 180px;padding:0 4px;font-size:11px;color:#a9440b}
.page-bot_test .attachment-name{flex-basis:100%;padding:0 7px;font-size:10px}
.page-bot_test .attachment-preview{flex-basis:100%;padding:6px 4px}
.page-bot_test .attachment-preview audio{display:block;width:min(100%,340px);height:38px}
.page-bot_test .attachment-preview .ghost{min-height:30px;margin-top:5px;padding:4px 9px;font-size:11px}
.page-bot_test .quick-reply-bar select{font-size:12px}
.page-bot_test .chat-settings{margin:3px 0 0 6px;font-size:10px}
@media(max-width:700px){.quick-replies-menu{margin-bottom:4px}.quick-reply-panel{position:fixed;left:10px;right:10px;bottom:calc(78px + env(safe-area-inset-bottom,0));width:auto}.quick-reply-bar{flex-wrap:wrap}.quick-reply-bar select{flex:1 1 100%;min-width:0}.quick-reply-bar .ghost{flex:1;min-height:36px}.page-bot_test .bot-compose{grid-template-columns:minmax(0,1fr) 44px;gap:6px}.page-bot_test .compose-main{min-width:0}.page-bot_test .bot-compose textarea{min-height:40px;max-height:105px;padding:10px 13px 5px;font-size:16px}.page-bot_test .send-btn{width:42px;min-width:42px;height:42px;min-height:42px}.page-bot_test .send-btn::before{font-size:18px}.page-bot_test .compose-tools{gap:2px;padding:3px 6px 5px}.page-bot_test .attachment-btn,.page-bot_test .compose-tools .mic-btn{width:34px;min-width:34px;height:34px;min-height:34px}.page-bot_test .recording-state{flex-basis:100%;padding:3px 5px}.page-bot_test .attachment-preview audio{width:100%}.page-bot_test .chat-settings{margin-top:2px}}

/* Ubícate GPS Sales · identidad y personalización por asesor */
.brand{display:flex;align-items:center;gap:9px;color:#191919;text-decoration:none}
.brand-logo-pro{display:block;width:clamp(180px,15vw,205px);height:48px;object-fit:contain;object-position:left center}
.brand-product{display:inline-flex;align-items:center;min-height:22px;padding:3px 7px;border-left:2px solid var(--accent);color:#191919;font-size:10px;letter-spacing:1px;font-weight:900}
.board-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.board-toolbar-title{display:flex;align-items:baseline;gap:3px;flex-wrap:wrap}
.board-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pipeline-customize{min-height:36px;padding:7px 11px;font-size:11px}
.kanban-col{border-top:3px solid var(--stage);background:var(--stage-bg)}
.pipeline-dialog{width:min(680px,calc(100vw - 28px));max-height:min(86dvh,780px);padding:0;border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 80px #10182040;color:var(--ink)}
.pipeline-dialog::backdrop{background:#10182070;backdrop-filter:blur(2px)}
.pipeline-dialog form{padding:0}
.pipeline-dialog-head{padding:18px 20px 12px;border-bottom:1px solid var(--line)}
.pipeline-dialog-head h2{font-size:18px}
.pipeline-dialog-head p{margin:5px 0 0;color:var(--muted);font-size:12px}
.pipeline-dialog-list{display:grid;gap:8px;padding:14px 20px;max-height:55dvh;overflow:auto}
.pipeline-stage-setting{display:grid;grid-template-columns:34px minmax(0,1fr) 56px 36px 36px;align-items:center;gap:9px;padding:9px;border:1px solid var(--line);border-radius:11px;background:#fff}
.pipeline-stage-setting input[type=text]{min-height:36px;margin:0;padding:7px 9px;font-size:13px}
.pipeline-stage-setting input[type=color]{width:42px;height:36px;min-height:36px;margin:0;padding:3px;cursor:pointer}
.pipeline-stage-order{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#f2f3f4;color:#656565;font-size:11px;font-weight:800}
.pipeline-stage-setting button{min-height:34px;padding:4px 7px;background:#f2f3f4;color:#222;border:1px solid var(--line);font-size:12px}
.pipeline-stage-setting button:hover{background:var(--accent-soft);border-color:#f3c2a5}
.pipeline-dialog-actions{display:flex;justify-content:space-between;gap:8px;padding:12px 20px 18px;border-top:1px solid var(--line)}
.pipeline-dialog-actions>div{display:flex;gap:8px}
.pipeline-dialog .btn,.pipeline-dialog button{min-height:38px;padding:8px 12px;font-size:12px}
@media(max-width:760px){.app-header .brand-logo-pro{width:145px;height:38px}.board-toolbar{align-items:stretch}.board-toolbar-actions{width:100%;justify-content:space-between}.board-filter{flex:1;display:flex;gap:6px}.board-filter select{min-width:0}.pipeline-stage-setting{grid-template-columns:26px minmax(0,1fr) 44px 32px 32px;gap:6px;padding:7px}.pipeline-stage-setting input[type=color]{width:36px}.pipeline-dialog-list{padding:12px;max-height:56dvh}.pipeline-dialog-actions{padding:12px;flex-wrap:wrap}.pipeline-dialog-actions .btn,.pipeline-dialog-actions button{flex:1}}
@media(max-width:430px){.app-header .brand-logo-pro{width:132px}.brand-product{font-size:9px;padding:2px 5px}.board-toolbar-actions{align-items:stretch;flex-direction:column}.board-filter{width:100%}.board-filter button{flex:0 0 auto}}

@media(max-width:1100px){.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}

@media(max-width:700px){.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Pipeline flexible de hasta seis pasos y centro de notificaciones. */
.board-toolbar-actions>button{min-height:36px;padding:7px 11px;font-size:11px}
.kanban{display:block;overflow:visible;max-width:none;padding:2px 0 10px}
.kanban-visible{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:10px}
.kanban-visible .kanban-col{min-width:0;min-height:290px;padding:9px}
.kanban-visible .dropzone{min-height:220px}
.kanban-overflow{margin-top:10px;border:1px solid var(--line);border-radius:11px;background:#fff}
.kanban-overflow>summary{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:11px 13px;color:var(--ink);font-size:12px;font-weight:750}
.kanban-overflow>summary small{color:var(--muted);font-size:11px;font-weight:500}
.kanban-overflow-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 10px 10px}
.kanban-overflow-grid .kanban-col{min-width:0;min-height:240px;padding:8px}
.kanban-overflow-grid .dropzone{min-height:160px}
.dashboard-board.pipeline-fullscreen{position:fixed;z-index:1000;inset:10px;max-width:none;margin:0;padding:16px;overflow:auto;border-color:#cbd3da;box-shadow:0 18px 70px #11182755}
.pipeline-fullscreen .kanban-visible{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.pipeline-fullscreen .kanban-visible .kanban-col{height:min(72dvh,720px);min-height:340px;overflow:hidden}
.pipeline-fullscreen .kanban-visible .dropzone{height:calc(100% - 42px);min-height:0;overflow:auto;overscroll-behavior:contain}
.pipeline-fullscreen .kanban-overflow{margin-top:8px}
body.pipeline-lock-scroll{overflow:hidden}
.pipeline-add-label{display:flex;align-items:center;gap:12px;padding:10px 0 0}
.pipeline-add-label select{width:auto;min-width:210px;min-height:38px;margin:0;padding:7px 10px;font-size:12px}
.pipeline-stage-setting{grid-template-columns:30px minmax(0,1fr) 42px 34px 34px 34px}
.pipeline-stage-setting button[data-remove]{color:#9a3838}
.notification-center{position:relative;flex:0 0 auto;margin-left:auto}
.notification-trigger{position:relative;width:40px;min-height:40px;padding:4px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink);font-size:23px}
.notification-trigger:hover{background:var(--accent-soft);color:var(--accent-dark)}
.notification-badge{position:absolute;top:-4px;right:-5px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:20px;background:#d83d32;color:#fff;font-size:10px;font-weight:800}
.notification-panel{position:absolute;top:calc(100% + 10px);right:-8px;z-index:1200;width:min(370px,calc(100vw - 24px));max-height:min(70dvh,520px);overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 16px 45px #1a293820}
.notification-panel>header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border-bottom:1px solid var(--line);background:#fff}
.notification-panel>header .ghost{min-height:30px;padding:5px 8px;font-size:10px}
.notification-permission{min-height:32px;margin:8px 10px;padding:6px 9px;font-size:10px}
.notification-items{display:grid;padding:5px}
.notification-item{display:grid;gap:3px;padding:11px 10px;border-radius:9px;color:var(--ink)}
.notification-item:hover{background:#f5f6f7;text-decoration:none}
.notification-item.unread{background:#fff4ec}
.notification-item strong{font-size:12px}
.notification-item span{font-size:11px;color:#566270}
.notification-item small,.notification-empty{font-size:10px;color:var(--muted)}
.notification-empty{padding:10px 12px}
@media(max-width:1100px){.pipeline-fullscreen .kanban-visible{grid-template-columns:repeat(3,minmax(0,1fr))}.pipeline-fullscreen .kanban-visible .kanban-col{height:38dvh;min-height:280px}}
@media(max-width:900px){.kanban-visible,.kanban-overflow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-board.pipeline-fullscreen{inset:6px;padding:12px}.pipeline-fullscreen .kanban-visible{grid-template-columns:repeat(2,minmax(0,1fr))}.pipeline-fullscreen .kanban-visible .kanban-col{height:42dvh;min-height:250px}}
@media(max-width:700px){.app-header{grid-template-columns:minmax(0,1fr) auto auto auto}.notification-center{grid-column:auto;grid-row:1;grid-column:3}.app-header .user{grid-column:4;grid-row:1}.kanban-visible,.kanban-overflow-grid{grid-template-columns:minmax(0,1fr)}.kanban-visible .kanban-col{min-height:210px}.kanban-visible .dropzone{min-height:120px}.pipeline-fullscreen .kanban-visible{grid-template-columns:repeat(2,minmax(0,1fr))}.pipeline-fullscreen .kanban-visible .kanban-col{height:44dvh;min-height:230px}.pipeline-stage-setting{grid-template-columns:26px minmax(0,1fr) 36px 30px 30px 30px;gap:5px}.pipeline-stage-setting input[type=color]{width:32px}.pipeline-add-label{align-items:flex-start;flex-direction:column;gap:4px}.pipeline-add-label select{width:100%}.notification-panel{position:fixed;top:66px;right:10px;max-height:calc(100dvh - 84px)}}
@media(max-width:420px){.pipeline-fullscreen .kanban-visible{grid-template-columns:minmax(0,1fr)}.pipeline-fullscreen .kanban-visible .kanban-col{height:auto;min-height:190px}.pipeline-fullscreen .kanban-visible .kanban-col .dropzone{max-height:28dvh;overflow:auto}.pipeline-fullscreen .board-toolbar{position:sticky;top:-12px;z-index:5;padding:8px 0;background:#fff}}
@media(prefers-reduced-motion:reduce){.notification-panel,.notification-item{animation:none!important;transition:none!important}}

.start-attention-form{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0}.start-attention-form select,.compose-mode-label select{max-width:220px;min-height:38px;padding:7px 10px;font-size:12px}.compose-mode-label{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:5px;font-size:11px;color:var(--muted)}.compose-main>.small-note{margin:0 0 6px;font-size:11px}.start-attention-form button{min-height:38px;padding:7px 10px;font-size:11px}@media(max-width:700px){.start-attention-form{width:100%}.start-attention-form select{max-width:100%;flex:1}.compose-mode-label select{max-width:100%;flex:1}}
.email-settings-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px;margin:14px 0 18px}.email-settings-summary>div{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid var(--line,#e2e8f0);border-radius:12px;background:var(--surface-soft,#f8fafc)}.email-settings-summary small{color:var(--muted,#64748b);font-size:.8rem}.email-settings-summary strong{overflow-wrap:anywhere}.email-settings-card .formgrid{gap:16px}.email-settings-card input[type=password]{width:100%;margin-top:7px}.email-settings-card label.full small{display:block;margin-top:6px;color:var(--muted,#64748b)}.email-test-form{margin-top:16px;padding-top:14px;border-top:1px solid var(--line,#e2e8f0)}.email-log-stats{display:flex;flex-wrap:wrap;gap:8px}.email-log-stats span{display:inline-flex;align-items:center;gap:4px;padding:6px 10px;border-radius:999px;background:var(--surface-soft,#f8fafc);font-size:.85rem;white-space:nowrap}.email-delivery-log .tablewrap{overflow:auto}.email-delivery-log td{vertical-align:top}.page-email_notifications main{max-width:1440px;margin-inline:auto;padding:clamp(16px,3vw,32px)}@media(max-width:640px){.email-settings-summary{grid-template-columns:1fr}.email-settings-card .formgrid .full button{width:100%}.email-log-stats{width:100%}}
.app-credit{padding:12px 22px 18px;text-align:right;color:#89919b;font-size:11px;letter-spacing:.01em}.app-credit a{color:#727b86;text-decoration:none}.app-credit a:hover{color:#e7651b;text-decoration:underline}.ubi-embed .app-credit{display:none}

/* Mobile inbox: keep the transcript visible and independently scrollable. */
@media(max-width:700px){
  body.page-bot_test:not(.ubi-embed) main{padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}
  body.page-bot_test:not(.ubi-embed) .ubi-workspace{display:block;height:auto;min-height:0;overflow:visible}
  body.page-bot_test:not(.ubi-embed) .chat-card{height:auto;min-height:0;overflow:visible}
  body.page-bot_test:not(.ubi-embed) .chatbox{height:min(48dvh,520px);min-height:220px;max-height:560px;flex:0 0 auto;-webkit-overflow-scrolling:touch}
  body.page-bot_test:not(.ubi-embed) .conversation-sidebar{height:min(76dvh,640px);max-height:calc(100dvh - 130px)}
  body.ubi-embed .ubi-workspace{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:auto;min-height:0;flex:1 1 0;overflow:hidden}
  body.ubi-embed .chat-card{height:100%;min-height:0;overflow:hidden}
  body.ubi-embed .chatbox{flex:1 1 0;min-height:100px;height:auto}
}
.delivery-status{display:block;margin-top:4px;text-align:right;font-size:10px;color:#6b7885}
.delivery-status[data-status=failed]{color:#a92529;font-weight:700}
.delivery-status[data-status=delivered],.delivery-status[data-status=read]{color:#246448}

/* Message actions, voice notes and WhatsApp ticks. */
.bubble.inbound[data-external-id]{cursor:pointer}.bubble.inbound[data-external-id]:hover{border-color:#efbd9d;box-shadow:0 3px 12px #1d293914}.quote-message{position:absolute;right:-8px;top:8px;z-index:2;width:32px;min-width:32px;height:32px;min-height:32px;padding:0;border-radius:50%;background:#fff;color:#4e5e70;box-shadow:0 2px 8px #1d29391c;opacity:0;transform:translateX(5px);transition:opacity .14s ease,transform .14s ease}.bubble.inbound:hover .quote-message,.bubble.inbound:focus-within .quote-message{opacity:1;transform:none}.quote-message-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.quote-message span[aria-hidden]{font-size:18px;line-height:1}.quote-preview>span{display:grid;gap:3px;min-width:0}.quote-preview small{font-size:10px;color:#bd5619;font-weight:700}.quote-preview b{overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}.delivery-status{display:inline-flex;justify-content:flex-end;min-width:18px;font-size:14px;font-weight:750;letter-spacing:-2px;line-height:1.1;color:#85919e}.delivery-status[data-status=delivered],.delivery-status[data-status=read]{color:#6f7d8b}.delivery-status[data-status=read]{color:#188ad1}.delivery-status[data-status=failed],.delivery-status[data-status=simulated]{font-size:10px;letter-spacing:0}.mic-btn{width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border-radius:50%;font-size:18px}.mic-btn.is-recording{background:#c43831;color:#fff;border-color:#c43831;animation:mic-pulse 1.1s ease-in-out infinite}.recording-state{font-size:11px;color:#b84a0b}.recording-state:empty{display:none}@keyframes mic-pulse{50%{box-shadow:0 0 0 6px #c4383128}}@media(max-width:700px){.quote-message{right:6px;top:6px;width:36px;min-width:36px;height:36px;min-height:36px;opacity:1;transform:none}.bubble.inbound[data-external-id]{padding-right:46px}.quick-reply-bar{gap:6px}.quick-reply-bar .ghost{min-height:40px}.compose-tools{gap:6px}.mic-btn{width:42px;min-width:42px;height:42px;min-height:42px}.quote-preview{align-items:flex-start;padding:9px 10px}.quote-preview b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}
.bot-compose>.quote-preview,.bot-compose>.quick-reply-bar{grid-column:1/-1;min-width:0;width:100%}
@media(min-width:701px){body.page-bot_test:not(.ubi-embed) .ubi-workspace{height:min(820px,max(660px,calc(100dvh - 180px)));min-height:660px}}
/* Inbox polish v9: compact state controls, explicit reply status, and line identity. */
.page-bot_test .ubi-workspace-head p{display:none}

/* Lead cards: quick scan first, secondary information in a compact disclosure. */
.lead-card{padding:13px 12px 11px;transition:box-shadow .16s ease,transform .16s ease,border-color .16s ease}
.lead-card:hover{transform:translateY(-1px);box-shadow:0 7px 18px #222b3510}
.lead-main strong{font-size:13px;line-height:1.35}
.lead-card-glance{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:9px;color:var(--muted);font-size:10px}
.lead-card-glance>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lead-card-glance .bot-chip{margin:0;white-space:nowrap}
.lead-card-actions{align-items:center;margin-top:9px;padding-top:8px;gap:7px}
.lead-card-actions .lead-chat-quick{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:6px 9px;border:1px solid #f2c5a9;border-radius:8px;background:#fff7f1;color:#9f4314}
.lead-card-actions .lead-chat-quick:hover{background:#ffecdf;text-decoration:none}
.lead-more{position:relative;flex:0 0 auto}
.lead-more>summary{display:flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:6px 9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#485565;font-size:11px;font-weight:650;list-style:none}
.lead-more>summary::-webkit-details-marker{display:none}
.lead-more[open]>summary{border-color:#efc6ac;background:#fff8f2;color:#9f4314}
.lead-more-panel{position:absolute;z-index:20;right:0;top:calc(100% + 5px);width:min(230px,calc(100vw - 36px));display:grid;gap:3px;padding:7px;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:0 12px 30px #17233320}
.lead-more-panel>a{display:block;padding:8px 9px;border-radius:7px;color:var(--ink);font-size:12px;font-weight:600}
.lead-more-panel>a:hover{background:var(--accent-soft);text-decoration:none}
.lead-more-panel>div:not(.stage-control){display:grid;gap:2px;padding:7px 9px;border-top:1px solid #edf0f3}
.lead-more-panel>div small{font-size:10px;color:var(--muted)}
.lead-more-panel>div b{font-size:11px;font-weight:600;overflow-wrap:anywhere}
.lead-more-panel .stage-control{display:grid;gap:5px;margin:3px 0 0;padding:8px 4px 2px;border-top:1px solid #edf0f3;font-size:11px}
.lead-more-panel .stage-control select{width:100%;min-height:38px}
.chatbox{background-color:#f8f7f4;background-image:radial-gradient(circle at 20% 20%,#f26a2108 1px,transparent 1.5px),radial-gradient(circle at 80% 70%,#17171706 1px,transparent 1.5px);background-size:25px 25px,31px 31px}
.bubble{border-radius:14px;box-shadow:0 1px 1px #1c29300a}
.bubble.inbound{border-bottom-left-radius:5px}
.bubble.outbound{background:#fff0e5;border-color:#f4c9aa;border-bottom-right-radius:5px}
.bubble .chat-media-audio{width:min(100%,340px);height:48px;border-radius:9px}
.audio-playback-note{display:block;margin-top:5px;color:#9f4314;font-size:11px}
.audio-playback-note a{font-weight:700;text-decoration:underline}
.chat-card>.sectionhead{padding-bottom:10px;border-bottom:1px solid var(--line)}
@media(max-width:700px){
 .lead-card{padding:12px 10px 10px}
 .lead-card-actions .lead-chat-quick,.lead-more>summary{min-height:38px}
 .lead-more-panel{position:fixed;top:auto;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0));width:min(320px,calc(100vw - 24px));max-height:min(70dvh,480px);overflow:auto}
 .page-bot_test .chat-card>.sectionhead{position:sticky;top:0;z-index:3;background:#fff;padding:8px 0 10px}
 .page-bot_test .chatbox{border-radius:14px;background-size:22px 22px,28px 28px}
 .page-bot_test .bubble{max-width:min(94%,520px)}
 .page-bot_test .bubble .chat-media-audio{width:min(100%,280px)}
}
.inbox-head{align-items:center;gap:8px;margin-bottom:8px}
.conversation-view-filter{margin:0;min-width:118px}
.conversation-view-filter select{margin:0;min-height:34px;padding:6px 30px 6px 10px;border-radius:9px;font-size:12px;background:#fff}
.inbox-legend{display:flex;gap:12px;align-items:center;margin:0 2px 7px;color:var(--muted);font-size:10px}
.inbox-legend span{display:inline-flex;align-items:center;gap:5px}
.inbox-legend i,.conv-status i,.chat-owner-state i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#bc5b1f;flex:0 0 auto}
.inbox-legend .responded i{background:#31986b}
.conversation-item{grid-template-columns:36px minmax(0,1fr) auto;gap:8px}
.conv-status{display:inline-flex;align-items:center;gap:5px;width:auto;min-width:74px;padding:4px 7px;border-radius:99px;background:#fff0e7;color:#9b471b;font-size:9px;font-weight:700;white-space:nowrap}
.conv-status i{width:6px;height:6px}
.conv-status.responded{background:#e8f5ed;color:#28613e}
.conv-status.responded i{background:#31986b}
.conv-main em{max-width:100%;font-size:9px}
.top-actions{position:relative;align-items:center}
.whatsapp-line-badge{max-width:min(360px,100%);white-space:normal;line-height:1.35;overflow-wrap:anywhere}
.chat-actions-menu{position:relative;flex:0 0 auto}
.chat-actions-menu>summary{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:7px 11px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:11px;font-weight:700;list-style:none}
.chat-actions-menu>summary::-webkit-details-marker{display:none}
.chat-actions-menu>summary:hover,.chat-actions-menu[open]>summary{background:#f6f8fa;border-color:#cbd5df}
.chat-actions-panel{position:absolute;right:0;top:calc(100% + 7px);z-index:90;display:grid;gap:7px;width:min(320px,calc(100vw - 36px));max-height:min(70dvh,480px);overflow:auto;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 14px 35px #1d344226}
.chat-actions-panel form{margin:0;min-width:0}
.chat-actions-panel button,.chat-actions-panel select{width:100%;min-height:36px;margin:0;padding:7px 9px;font-size:11px}
.chat-owner-state{display:flex;align-items:center;gap:7px;padding:5px 3px;color:#566575;font-size:11px}
.chat-owner-state.advisor i{background:#bc484c}
.chat-owner-state.ubi i{background:#31986b}
.start-attention-form{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
.compose-tools{gap:6px;flex-wrap:wrap}
.sticker-btn{width:34px;min-width:34px;height:34px;min-height:34px;padding:0;font-size:18px}
.chat-settings{margin-top:4px;gap:0}
.chat-settings label{width:30px;height:28px;justify-content:center;border:1px solid var(--line);border-radius:7px;background:#fff;color:#566575;font-size:14px}
.chat-settings input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.wa-template-start{margin:0 0 12px;border:1px solid #e2e7eb;border-radius:12px;background:#fff}
.wa-template-start>summary{padding:11px 14px;cursor:pointer;font-weight:650;color:#263442}
.wa-template-panel{padding:0 14px 14px;display:grid;gap:10px}
.wa-template-panel label{display:grid;gap:5px;font-size:12px;font-weight:650}
.wa-template-panel input,.wa-template-panel select{width:100%;min-height:42px;border:1px solid #d5dde5;border-radius:9px;padding:8px 10px}
.wa-template-preview{white-space:pre-wrap;border:1px solid #d8e6dc;border-radius:10px;background:#eff8f1;padding:12px;color:#233}
.wa-template-start .send-btn{width:auto;justify-self:end}
@media(max-width:700px){
 .inbox-head{align-items:center}
 .conversation-view-filter{min-width:112px}
 .conversation-item{grid-template-columns:32px minmax(0,1fr) auto;padding:10px 7px;gap:7px}
 .conv-status{min-width:0;padding:4px 6px;font-size:9px}
 .conv-status small{display:inline}
 .whatsapp-line-badge{max-width:calc(100vw - 175px);font-size:9px}
 .chat-actions-menu>summary{min-height:34px;padding:6px 9px}
 .chat-actions-panel{position:fixed;top:auto;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0));width:min(340px,calc(100vw - 24px));max-height:min(72dvh,520px)}
 .sticker-btn{width:38px;min-width:38px;height:38px;min-height:38px}
 .chat-settings{display:none}
 .wa-template-start>summary{min-height:44px;display:flex;align-items:center}
 .wa-template-panel{padding:0 10px 10px}
 .wa-template-start .send-btn{width:100%}
}
@media(max-width:390px){
 .conv-status{min-width:6px;width:8px;height:8px;padding:0;border-radius:50%;font-size:0}
 .conv-status small{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 .whatsapp-line-badge{max-width:calc(100vw - 145px)}
}

/* Chat attachments: clear, responsive previews for images, voice notes and files. */
.page-bot_test .attachment-preview{display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex-basis:100%;width:100%;min-width:0;margin-top:6px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#f8fafb}
.page-bot_test .attachment-preview[hidden]{display:none}
.page-bot_test .attachment-preview .chat-media-image{display:block;width:auto;max-width:min(100%,360px);max-height:260px;object-fit:contain;background:#fff;border-radius:8px}
.page-bot_test .attachment-preview audio,.page-bot_test .attachment-preview video{display:block;width:min(100%,360px);max-height:240px}
.page-bot_test .recording-state:empty,.page-bot_test .attachment-name:empty{display:none}
@media(max-width:700px){.page-bot_test .attachment-preview{padding:8px}.page-bot_test .attachment-preview .chat-media-image{max-width:100%;max-height:220px}.page-bot_test .attachment-preview audio,.page-bot_test .attachment-preview video{width:100%}}

/* Mobile inbox: app-like full-screen chat with a fixed composer and off-canvas inbox. */
@media(max-width:700px){
  body.page-bot_test:not(.ubi-embed){height:100vh;height:100dvh;min-height:0;overflow:hidden;overscroll-behavior:none;background:#f5f6f7}
  body.page-bot_test:not(.ubi-embed)>header{display:none}
  body.page-bot_test:not(.ubi-embed) main#mainContent{box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-width:none;height:100%;min-height:0;margin:0;padding:env(safe-area-inset-top,0) 0 env(safe-area-inset-bottom,0);overflow:hidden}
  body.page-bot_test:not(.ubi-embed) .ubi-workspace-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;flex:0 0 auto;min-height:58px;margin:0;padding:7px 12px;background:#fff;border-bottom:1px solid #e6e9ed}
  body.page-bot_test:not(.ubi-embed) .ubi-workspace-head>div{width:auto;min-width:0;flex:initial}
  body.page-bot_test:not(.ubi-embed) .ubi-workspace-head .eyebrow{display:none}
  body.page-bot_test:not(.ubi-embed) .ubi-workspace-head h1{margin:0;font-size:17px;line-height:1.25}
  body.page-bot_test:not(.ubi-embed) .ubi-workspace-head>a{display:none}
  body.page-bot_test:not(.ubi-embed) .mobile-conv-toggle{display:inline-flex;min-height:40px;padding:7px 11px;border-radius:999px;background:#fff5ed;border:1px solid #f4d2bd;color:#a74912;font-size:12px;font-weight:700}
  body.page-bot_test:not(.ubi-embed) .ubi-workspace{position:relative;display:flex;width:100%;height:auto;min-height:0;flex:1 1 auto;overflow:hidden;gap:0}
  body.page-bot_test:not(.ubi-embed) .conversation-sidebar{position:fixed;inset:calc(env(safe-area-inset-top,0px) + 66px) 12px calc(env(safe-area-inset-bottom,0px) + 12px);z-index:82;width:auto;max-width:380px;height:auto;max-height:none;padding:14px;transform:translateX(calc(-100% - 24px));visibility:hidden;border:1px solid #e5e8ec;border-radius:18px;background:#fff;box-shadow:0 18px 48px #15202d2e;transition:transform .2s ease,visibility .2s}
  body.page-bot_test.sidebar-open:not(.ubi-embed) .conversation-sidebar{transform:translateX(0);visibility:visible}
  body.page-bot_test.sidebar-open:not(.ubi-embed)::before{content:"";position:fixed;inset:0;z-index:81;background:#11182075;backdrop-filter:blur(1px)}
  body.page-bot_test:not(.ubi-embed) .chat-card{display:flex;flex:1 1 auto;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden!important;padding:0 10px 4px;border:0;border-radius:0;background:#fff}
  body.page-bot_test:not(.ubi-embed) .chat-card>.sectionhead{position:relative;top:auto;z-index:2;display:flex;align-items:center;gap:8px;flex:0 0 auto;min-height:58px;margin:0;padding:7px 2px 8px;background:#fff;border-bottom:1px solid #e8ebee}
  body.page-bot_test:not(.ubi-embed) .chat-card>.sectionhead>div:first-child{flex:1 1 auto;min-width:0}
  body.page-bot_test:not(.ubi-embed) .chat-card>.sectionhead h2{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
  body.page-bot_test:not(.ubi-embed) .chat-card>.sectionhead .small-note{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
  body.page-bot_test:not(.ubi-embed) .chat-card .top-actions{display:flex;width:auto;max-width:48%;min-width:0;align-items:center;justify-content:flex-end;gap:5px;flex:0 1 auto}
  body.page-bot_test:not(.ubi-embed) .chat-card .top-actions>.inbox-lead-link,
  body.page-bot_test:not(.ubi-embed) .chat-card .top-actions>a.btn{display:none}
  body.page-bot_test:not(.ubi-embed) .whatsapp-line-badge{display:inline-flex;max-width:calc(100vw - 220px);max-height:36px;overflow:hidden;padding:4px 7px;font-size:9px;line-height:1.2}
  body.page-bot_test:not(.ubi-embed) .chat-actions-menu>summary{min-height:36px;padding:6px 9px;font-size:11px}
  body.page-bot_test:not(.ubi-embed) .chatbox{display:block;flex:1 1 auto;width:100%;height:auto;min-height:0;max-height:none;overflow-x:hidden;overflow-y:auto;padding:10px 8px;border:0;border-radius:0;background-color:#f8f7f4;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
  body.page-bot_test:not(.ubi-embed) .bubble{max-width:90%;padding:11px 12px 24px;font-size:14px;line-height:1.48}
  body.page-bot_test:not(.ubi-embed) .wa-template-start{flex:0 0 auto;margin:4px 0 2px;border-radius:10px}
  body.page-bot_test:not(.ubi-embed) .wa-template-start>summary{min-height:36px;padding:7px 10px;font-size:11px}
  body.page-bot_test:not(.ubi-embed) .quick-replies-menu{order:0;flex:0 0 auto;margin:4px 0 2px}
  body.page-bot_test:not(.ubi-embed) .quick-replies-menu>summary{min-height:32px;padding:4px 10px}
  body.page-bot_test:not(.ubi-embed) .bot-compose{position:relative;z-index:2;grid-template-columns:minmax(0,1fr) 44px;gap:6px;flex:0 0 auto;margin:2px 0 0;padding:5px 0 calc(5px + env(safe-area-inset-bottom,0px));background:#fff}
  body.page-bot_test:not(.ubi-embed) .bot-compose .compose-main{grid-column:1;grid-row:3;min-width:0;border-radius:18px}
  body.page-bot_test:not(.ubi-embed) .bot-compose textarea{min-height:44px;max-height:27dvh;padding:11px 13px 7px;font-size:16px;line-height:1.4;resize:none;overscroll-behavior:contain}
  body.page-bot_test:not(.ubi-embed) .bot-compose .send-btn{grid-column:2;grid-row:3;align-self:end;width:42px;min-width:42px;height:42px;min-height:42px}
  body.page-bot_test:not(.ubi-embed) .bot-compose .compose-tools{gap:5px;min-height:42px;flex-wrap:wrap;padding:4px 6px 6px}
  body.page-bot_test:not(.ubi-embed) .bot-compose .attachment-btn,
  body.page-bot_test:not(.ubi-embed) .bot-compose .mic-btn,
  body.page-bot_test:not(.ubi-embed) .bot-compose .sticker-btn,
  body.page-bot_test:not(.ubi-embed) .bot-compose .emoji-toggle{width:38px;min-width:38px;height:38px;min-height:38px}
  body.page-bot_test:not(.ubi-embed) .recording-state{flex:1 1 100%;padding:2px 5px;line-height:1.35}
  body.page-bot_test:not(.ubi-embed) .attachment-name{overflow-wrap:anywhere}
  body.page-bot_test:not(.ubi-embed) .attachment-preview{max-height:22dvh;overflow:auto}
  body.page-bot_test:not(.ubi-embed) .attachment-preview .chat-media-image{max-height:18dvh}
  body.page-bot_test:not(.ubi-embed) .chat-settings{display:none}
  body.page-bot_test:not(.ubi-embed) .empty-chat{min-height:120px}
}
@media(max-width:390px){
  body.page-bot_test:not(.ubi-embed) .chat-card{padding-inline:7px}
  body.page-bot_test:not(.ubi-embed) .chat-card>.sectionhead{gap:5px}
  body.page-bot_test:not(.ubi-embed) .chat-card .top-actions{max-width:44%}
  body.page-bot_test:not(.ubi-embed) .whatsapp-line-badge{max-width:calc(100vw - 205px);font-size:8px}
  body.page-bot_test:not(.ubi-embed) .chatbox{padding-inline:5px}
}
.vehicle-tracking-card .sectionhead p{margin:4px 0 0}.vehicle-tracking-card .mini-form{gap:10px}.vehicle-tracking-card .mini-form>label{display:grid;gap:5px;font-size:.88rem;color:#3c4652}.vehicle-tracking-list{display:grid;gap:9px;margin-top:16px}.vehicle-record{border:1px solid #dfe5ec;border-radius:12px;background:#fff;overflow:hidden}.vehicle-record>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 15px;cursor:pointer;list-style:none}.vehicle-record>summary::-webkit-details-marker{display:none}.vehicle-record>summary span:first-child{display:grid;gap:4px}.vehicle-record>summary small{color:#667085}.vehicle-record[open]>summary{background:#fff7f1;border-bottom:1px solid #f3d1bb}.vehicle-edit-form{padding:14px}.vehicle-edit-form label{display:grid;gap:5px;font-size:.88rem;color:#3c4652}.vehicle-history{margin-top:14px;border-top:1px solid #e4e8ee;padding-top:12px}.vehicle-history>summary{cursor:pointer;font-weight:650;color:#445064}.vehicle-history .timeline{max-height:300px;overflow:auto}.vehicle-tracking-card input,.vehicle-tracking-card select,.vehicle-tracking-card textarea{min-width:0;width:100%}@media(max-width:640px){.vehicle-tracking-card .two{grid-template-columns:1fr;gap:9px}.vehicle-record>summary{padding:12px}.vehicle-edit-form{padding:12px}}
.workflow-card{margin-top:18px;border-color:#f4c29b;background:linear-gradient(135deg,#fff 0%,#fff9f3 100%)}
.workflow-card h2{margin:.2rem 0}.workflow-stage-pill{white-space:normal;text-align:center;line-height:1.35}
.workflow-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;list-style:none;padding:0;margin:16px 0}
.workflow-steps li{padding:10px 12px;border:1px solid #dbe2ea;border-radius:12px;background:#f7f9fb;color:#68798d;font-size:.86rem}
.workflow-steps li.done{border-color:#f7b37e;background:#fff0e5;color:#a9480a;font-weight:700}
.workflow-actions{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-top:14px}
.workflow-payment-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;flex:1}
.workflow-payment-form label{display:grid;gap:5px;font-size:.85rem;font-weight:650;color:#42566c}
.workflow-payment-form input:not([type=checkbox]),.workflow-payment-form select{min-width:150px}
.workflow-payment-form .workflow-confirm{display:flex;align-items:center;gap:7px;min-height:42px}
.workflow-payment-form .workflow-confirm input{accent-color:#f36d21}
.workflow-bot-button{background:#242424}
.workflow-history{margin-top:14px;border-top:1px solid #e5eaf0;padding-top:12px}
.workflow-history>summary{cursor:pointer;color:#405773;font-weight:650}
@media(max-width:720px){.workflow-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.workflow-actions,.workflow-payment-form{align-items:stretch;flex-direction:column}.workflow-payment-form label,.workflow-payment-form input:not([type=checkbox]),.workflow-payment-form select,.workflow-payment-form button,.workflow-actions>form,.workflow-actions>form button{width:100%}.workflow-payment-form .workflow-confirm{justify-content:flex-start}}
.workflow-payment-form input[type=file]{max-width:min(320px,80vw);font-size:.82rem}.workflow-payment-form label small{max-width:280px;color:#65768a;font-weight:400}.payment-proof-list{flex:1 0 100%;border-top:1px solid #e7ebef;padding-top:10px}.payment-proof-list summary{cursor:pointer;color:#405773;font-weight:650}.payment-proof-list ul{margin:8px 0 0;padding-left:20px}.payment-proof-list li{padding:4px 0}.payment-proof-list li small{color:#65768a}.page-ubi_inbox .tablewrap{overflow-x:auto}.page-ubi_inbox td:nth-child(2){min-width:220px;max-width:460px}.page-ubi_inbox td:last-child{white-space:nowrap}.page-ubi_inbox td:last-child button{min-height:38px}@media(max-width:720px){.workflow-payment-form input[type=file]{max-width:100%;width:100%}.page-ubi_inbox .top{align-items:flex-start}.page-ubi_inbox .tablewrap{margin-inline:-8px}.page-ubi_inbox table{min-width:680px}}
.payment-proof-list{flex:1 0 100%;border-top:1px solid #e7ebef;padding-top:12px}.payment-proof-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.payment-proof-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:12px}.payment-proof-card{min-width:0;border:1px solid #e4e9ef;border-radius:12px;background:#fff;overflow:hidden}.payment-proof-image-link{display:grid;place-items:center;height:190px;background:#f4f6f8}.payment-proof-image-link img{display:block;width:100%;height:100%;object-fit:contain}.payment-proof-pdf{height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#f4f6f8;color:#b53b2b;text-decoration:none}.payment-proof-pdf span{font-size:1.6rem;font-weight:800;border:2px solid currentColor;border-radius:8px;padding:7px 10px}.payment-proof-meta{display:grid;gap:5px;padding:10px 12px}.payment-proof-meta>a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}.payment-proof-meta small{color:#65768a;font-size:.78rem}@media(max-width:720px){.payment-proof-heading{align-items:flex-start;flex-direction:column}.payment-proof-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr))}.payment-proof-image-link,.payment-proof-pdf{height:155px}}
/* Institutional Sales mark */
.login-card .login-brand-logo,.app-header .brand-logo-pro{content:url("sales-brand-28.svg");object-fit:contain;height:auto}.login-card .login-brand-logo{width:min(100%,232px);margin:0 auto 16px}.app-header .brand-logo-pro{width:148px}.login-brand-logo+.logo,.app-header .brand-logo-pro+.brand-product{display:none}
