:root{color-scheme:light;--bg: #f2f4f8;--surface: #ffffff;--surface-muted: #e9edf3;--glass: rgba(255,255,255,.76);--glass-strong: rgba(255,255,255,.9);--text: #18212e;--text-muted: #526174;--border: rgba(65,82,105,.22);--accent: #0062cf;--accent-hover: #0057bc;--accent-soft: #e1eeff;--success: #176b3a;--success-soft: #e1f3e7;--warning: #855000;--warning-soft: #fff0cb;--danger: #b52632;--danger-soft: #ffe6e8;--purple: #6742b2;--purple-soft: #eee7fb;--teal: #006b74;--teal-soft: #dcf2f3;--on-accent: #ffffff;--qr-bg: #ffffff;--overlay: rgba(26,35,48,.4);--shadow-color: rgba(23,38,61,.09);--highlight: rgba(255,255,255,.9);--ambient: rgba(10,132,255,.065);--primary: var(--accent);--primary-dark: var(--accent-hover);--primary-light: var(--accent-soft);--card: var(--glass);--card-bg: var(--glass);--header-bg: var(--glass-strong);--sidebar-bg: var(--glass);--nav-active: var(--surface);--nav-active-text: var(--accent);--nav-text: var(--text-muted);--nav-hover: var(--accent-soft);--input-bg: var(--glass-strong);--chart-grid: var(--border);--chart-label: var(--text-muted);--chart-1: var(--accent);--chart-2: var(--teal);--sidebar-width: 236px;--radius: 22px;--blur: blur(24px) saturate(160%);--shadow: 0 2px 4px var(--shadow-color), 0 14px 36px var(--shadow-color), inset 0 1px 0 var(--highlight)}html[data-theme=dark]{color-scheme:dark;--bg: #111318;--surface: #242830;--surface-muted: #2b3039;--glass: rgba(35,39,48,.82);--glass-strong: rgba(35,39,48,.95);--text: #f3f5f9;--text-muted: #b4becd;--border: rgba(196,208,226,.22);--accent: #83bbff;--accent-hover: #acd2ff;--accent-soft: #233b59;--success: #8bdfaa;--success-soft: #203d2c;--warning: #f4c76b;--warning-soft: #44361f;--danger: #ffabb3;--danger-soft: #48282f;--purple: #c9b1ff;--purple-soft: #382e4c;--teal: #80d7df;--teal-soft: #213c40;--on-accent: #111a27;--overlay: rgba(0,0,0,.6);--shadow-color: rgba(0,0,0,.23);--highlight: rgba(255,255,255,.12);--ambient: rgba(10,132,255,.05)}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:400;background:var(--bg);color:var(--text);font-size:14px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--surface-muted);border-radius:3px}.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}.w-full{width:100%}.text-sm{font-size:12px}.text-muted{color:var(--text-muted)}.font-semibold{font-weight:600}.font-bold{font-weight:700}.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-4{margin-top:16px}.mb-4{margin-bottom:16px}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:8px;border:none;cursor:pointer;font-size:14px;font-weight:500;transition:all .15s;text-decoration:none}.btn-primary{background:var(--primary);color:var(--on-accent)}.btn-primary:hover{background:var(--primary-dark)}.btn-secondary{background:var(--surface-muted);color:var(--text);border:1px solid var(--border)}.btn-secondary:hover{background:var(--surface-muted)}.btn-danger{background:var(--danger);color:var(--on-accent)}.btn-danger:hover{background:var(--danger)}.btn-sm{padding:5px 10px;font-size:12px}.btn-icon{padding:7px;background:transparent;border:1px solid var(--border);border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;color:var(--text-muted);transition:all .15s}.btn-icon:hover{background:var(--surface-muted);color:var(--text)}.prospect-copy{width:22px;height:22px;padding:0;flex:0 0 22px;border:0;border-radius:7px;background:var(--surface-muted);color:var(--text-muted);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.prospect-copy:hover{background:var(--surface-muted);color:var(--accent)}.prospect-web-link{width:21px;height:21px;flex:0 0 21px;border-radius:6px;background:var(--surface);color:var(--accent);display:inline-flex;align-items:center;justify-content:center}.prospect-web-link:hover{background:var(--accent-soft);color:var(--accent)}.prospect-more-info{position:relative}.prospect-info-alert{position:absolute;top:-5px;right:-5px;width:10px;height:10px;border-radius:50%;background:var(--danger);border:2px solid var(--border);box-shadow:0 0 0 1px var(--shadow-color)}.prospect-qualification{display:flex;align-items:center;gap:7px;margin-top:7px}.prospect-qualification strong{font-size:11px;color:var(--text)}.prospect-priority,.prospect-score{cursor:default!important;-webkit-user-select:none;user-select:none}.prospect-priority{display:inline-flex;align-items:center;border-radius:999px;padding:2px 7px;font-size:10px;font-weight:700}.prospect-priority-a{background:var(--success-soft);color:var(--success)}.prospect-priority-b{background:var(--warning-soft);color:var(--warning)}.prospect-priority-c{background:var(--surface-muted);color:var(--text-muted)}.prospect-qualification-reason,.prospect-call-angle{max-width:260px;margin-top:5px;color:var(--text-muted);font-size:11px;line-height:1.35}.prospect-call-angle{color:var(--text)}.prospect-ra-check{display:flex;align-items:center;gap:6px;margin-top:7px}.prospect-ra-check-status{min-width:165px;justify-content:space-between;margin:0 0 7px}.prospect-ra-check>span{color:var(--text-muted);font-size:10px;font-weight:600}.prospect-ra-select{height:25px;padding:2px 22px 2px 7px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text-muted);font:600 10px/1 Inter,sans-serif;cursor:pointer}.prospect-ra-select.ra-si{border-color:var(--border);background:var(--success-soft);color:var(--success)}.prospect-ra-select.ra-no{border-color:var(--border);background:var(--accent-soft);color:var(--accent)}.prospect-ra-select.ra-pendiente{background:var(--surface);color:var(--text-muted)}.prospect-admin-controls{min-width:165px;margin-bottom:7px}.prospect-assignee-control{display:flex;align-items:center;justify-content:space-between;gap:6px}.prospect-assignee-control>span{color:var(--text-muted);font-size:10px;font-weight:600}.prospect-assignee-select{width:118px;height:27px;padding:2px 22px 2px 7px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--accent);font:600 10px/1 Inter,sans-serif;cursor:pointer}.prospect-assignment-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:-4px 0 16px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.prospect-assignment-title{color:var(--text-muted);font-size:11px;font-weight:600;margin-right:4px}.prospect-assignment-counter{display:flex;align-items:center;gap:7px;padding:6px 9px;border-radius:8px;background:var(--surface-muted);color:var(--text);font-size:11px}.prospect-assignment-counter strong{min-width:20px;padding:2px 6px;border-radius:999px;background:var(--accent);color:var(--on-accent);text-align:center;font-size:11px}.sidebar-chat-badge{margin-left:auto;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:var(--danger);color:var(--on-accent);font-size:10px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.admin-preview-banner{display:flex;align-items:center;justify-content:center;gap:12px;min-height:42px;padding:8px 20px;background:var(--surface);color:var(--danger);border-bottom:1px solid var(--border);font-size:13px;position:sticky;top:60px;z-index:45}.admin-preview-banner button{border:1px solid var(--border);background:var(--surface);color:var(--danger);border-radius:8px;padding:6px 10px;font-weight:600;cursor:pointer}.admin-preview-banner button:hover{background:var(--warning-soft)}.setter-commission-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.setter-commission-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:16px}.setter-progress{height:12px;background:var(--surface-muted);border-radius:99px;overflow:hidden;margin:22px 0 10px}.setter-progress>div{height:100%;background:linear-gradient(90deg,var(--accent),var(--teal));border-radius:99px;transition:width .3s}.setter-tier-grid{display:grid;grid-template-columns:repeat(4,minmax(90px,1fr));gap:8px;margin-top:22px}.setter-tier-grid>div{padding:12px 10px;border-radius:10px;border:1px solid var(--border);background:var(--surface-muted)}.setter-tier-grid>div strong{font-size:13px}.setter-tier-grid>div p{font-size:12px;color:var(--text-muted)}.setter-tier-grid>div.reached{border-color:var(--border);background:var(--surface)}.setter-tier-grid>div.reached p{color:var(--success)}.setter-commission-rules{padding:20px;margin-top:16px}.setter-rules-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.setter-rules-heading h2{font-size:18px}.setter-rules-heading p,.setter-rule-note{color:var(--text-muted);font-size:12px}.setter-rules-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.setter-rules-grid h3{font-size:15px;margin-bottom:4px}.setter-rules-grid table{width:100%;margin-top:12px}.setter-rules-grid th,.setter-rules-grid td{padding:10px 12px;text-align:left}.setter-rules-grid th:last-child,.setter-rules-grid td:last-child{text-align:right}.setter-motivation{display:flex;gap:10px;align-items:center;margin-top:14px;padding:13px;border-radius:10px;background:var(--surface);color:var(--purple)}.setter-motivation p{font-size:11px;margin-top:2px}.closer-availability-message{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:9px;font-size:12px;margin-bottom:12px}.closer-availability-message.available{background:var(--surface);color:var(--success);border:1px solid var(--border)}.closer-availability-message.unavailable{background:var(--surface);color:var(--danger);border:1px solid var(--border)}.closer-calendar-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.closer-calendar-stat{background:var(--card-bg,var(--surface));border:1px solid var(--border,var(--surface-muted));border-top:3px solid var(--border);border-radius:12px;padding:14px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px}.closer-calendar-stat svg{color:var(--accent)}.closer-calendar-stat span{font-size:12px;color:var(--text-muted)}.closer-calendar-stat strong{font-size:22px}.closer-calendar-stat.pending{border-top-color:var(--border)}.closer-pending-panel{padding:18px;margin-bottom:18px}.closer-pending-panel h2{font-size:16px;display:flex;align-items:center;gap:7px}.closer-pending-panel>p{font-size:12px;color:var(--text-muted);margin:4px 0 12px}.closer-pending-list{display:flex;flex-direction:column}.closer-pending-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--border,var(--surface-muted))}.closer-pending-item>div:first-child{display:flex;flex-direction:column;font-size:13px}.closer-pending-item span{font-size:11px;color:var(--text-muted)}.closer-calendar-actions{display:flex;gap:6px;flex-wrap:wrap}.closer-week-grid{display:grid;grid-template-columns:repeat(5,minmax(190px,1fr));gap:10px;overflow-x:auto;padding-bottom:8px}.closer-day{padding:12px;min-height:260px}.closer-day h3{text-transform:capitalize;font-size:13px;margin-bottom:10px}.closer-booking{padding:11px;border:1px solid var(--border,var(--surface-muted));border-left:3px solid var(--border);border-radius:9px;margin-bottom:9px;display:flex;flex-direction:column;gap:4px}.closer-booking-time{display:flex;align-items:center;gap:5px;color:var(--accent);font-weight:700;font-size:12px}.closer-booking>strong{font-size:13px}.closer-booking>span,.closer-booking>small{font-size:11px;color:var(--text-muted)}.closer-booking-owner{font-weight:700!important;color:var(--teal)!important}.closer-day-empty{font-size:12px;color:var(--text-muted);text-align:center;padding:50px 0}@media (max-width:720px){.closer-calendar-summary{grid-template-columns:1fr}.closer-pending-item{align-items:flex-start;flex-direction:column}.closer-week-grid{grid-template-columns:repeat(5,240px)}}.availability-days{display:flex;flex-direction:column;gap:8px}.availability-day{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--border,var(--surface-muted));border-radius:10px;opacity:.62}.availability-day.active{opacity:1;background:var(--accent-soft)}.availability-day>label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;min-width:110px}.availability-day>div{display:flex;align-items:center;gap:8px}.availability-day .input{width:112px;padding:7px 9px}@media (max-width:600px){.availability-day{align-items:flex-start;flex-direction:column}.availability-day>div{width:100%}.availability-day .input{min-width:0;flex:1}}.team-workspace-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.team-workspace-stat{background:var(--card-bg,var(--surface));border:1px solid var(--border,var(--surface-muted));border-top:3px solid var(--border);border-radius:12px;padding:15px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px}.team-workspace-stat svg{color:var(--accent)}.team-workspace-stat span{font-size:12px;color:var(--text-muted)}.team-workspace-stat strong{font-size:22px}.team-workspace-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.team-workspace-section{padding:18px}.team-workspace-section h2{font-size:16px;display:flex;align-items:center;gap:7px;margin-bottom:10px}.team-workspace-row{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid var(--border,var(--surface-muted));font-size:12px}.team-workspace-row>div{display:flex;flex-direction:column}.team-workspace-row span{color:var(--text-muted)}.team-workspace-empty{font-size:12px;color:var(--text-muted);padding:18px 0}@media (max-width:800px){.team-workspace-stats{grid-template-columns:1fr 1fr}.team-workspace-columns{grid-template-columns:1fr}}@media (max-width:480px){.team-workspace-stats{grid-template-columns:1fr}}.chat-connection{display:flex;align-items:center;gap:7px;color:var(--text-muted);font-size:12px}.chat-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.chat-tone-select{height:32px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);padding:0 9px;font:inherit;font-size:12px}.app-loading{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:var(--surface);color:var(--text);font-size:13px;font-weight:400;letter-spacing:.015em}.app-loading img{width:52px;height:52px;border-radius:14px;box-shadow:0 12px 34px var(--shadow-color);animation:loadingPulse 1.1s ease-in-out infinite alternate}@keyframes loadingPulse{0%{opacity:.55;transform:scale(.96)}to{opacity:1;transform:scale(1.04)}}.chat-shell{padding:0;display:flex;height:550px;min-height:440px;overflow:hidden}.chat-people{width:250px;flex:0 0 250px;border-right:1px solid var(--border);padding:10px;overflow-y:auto}.chat-section-title{padding:7px 9px 10px;color:var(--text-muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.chat-person{width:100%;display:flex;align-items:center;gap:9px;border:0;background:transparent;padding:9px;border-radius:10px;cursor:pointer;text-align:left;color:var(--text)}.chat-person:hover{background:var(--surface-muted)}.chat-person.active{background:var(--surface);color:var(--accent)}.chat-avatar{width:34px;height:34px;flex:0 0 34px;border-radius:50%;background:var(--accent-soft);display:flex;align-items:center;justify-content:center;font-weight:700}.chat-avatar-wrap{position:relative;flex:0 0 34px}.chat-presence-dot{position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;border:2px solid var(--border);border-radius:50%}.chat-presence-dot.online{background:var(--success)}.chat-presence-dot.offline{background:var(--surface-muted)}.chat-presence-label{display:flex;flex-direction:row!important;align-items:center;gap:5px}.chat-presence-label i{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:var(--surface-muted)}.chat-presence-label.online{color:var(--success)}.chat-presence-label.online i{background:var(--success)}.chat-person-copy{min-width:0;display:flex;flex-direction:column}.chat-person-copy strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-person-copy small{color:var(--text-muted);font-size:11px}.chat-unread{margin-left:auto;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--danger);color:var(--on-accent);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700}.chat-conversation{flex:1;min-width:0;display:flex;flex-direction:column}.chat-header{min-height:58px;flex:0 0 58px;border-bottom:1px solid var(--border);padding:8px 18px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}.chat-header>div{display:flex;flex-direction:column;min-width:0}.chat-header strong{font-size:14px}.chat-header span{color:var(--text-muted);font-size:11px}.chat-messages{flex:1;overflow-y:auto;padding:18px;background:var(--surface)}.chat-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--text-muted);gap:8px;font-size:13px}.chat-message-row{display:flex;margin:6px 0}.chat-message-row.mine{justify-content:flex-end}.chat-bubble{max-width:min(70%,560px);padding:9px 12px 6px;border-radius:4px 15px 15px;background:var(--surface);color:var(--text);box-shadow:0 1px 2px var(--shadow-color)}.chat-message-row.mine .chat-bubble{background:var(--accent);color:var(--on-accent);border-radius:15px 4px 15px 15px}.chat-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.45}.chat-bubble time{display:block;margin-top:3px;font-size:9px;opacity:.65;text-align:right}.chat-typing{color:var(--text-muted);font-size:11px;font-style:italic;padding:4px}.chat-compose{border-top:1px solid var(--border);padding:10px 54px 10px 10px;display:flex;align-items:flex-end;gap:8px}.chat-compose textarea{flex:1;resize:none;min-height:44px;max-height:110px;border:1px solid var(--border);border-radius:10px;padding:10px 12px;font:inherit;font-size:13px;outline:none}.chat-compose textarea:focus{border-color:var(--border)}.btn-call-ready{color:var(--success);border:1px solid var(--border);background:var(--success-soft)}.btn-call-ready:hover{color:var(--success);background:var(--success-soft)}.prospect-reminder{width:34px;height:34px;padding:0;border-radius:9px;border:1px solid var(--border);background:var(--surface);color:var(--text-muted);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.prospect-reminder:hover{background:var(--surface);color:var(--accent);border-color:var(--border)}.prospect-reminder.scheduled{background:var(--accent-soft);color:var(--accent);border-color:var(--border)}.input{width:100%;padding:9px 12px;border:1px solid var(--border);border-radius:8px;font-size:14px;background:var(--surface);color:var(--text);outline:none;transition:border .15s}.input:focus{border-color:var(--primary)}.input-group{display:flex;flex-direction:column;gap:4px}.input-group label{font-size:13px;font-weight:500;color:var(--text)}select.input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.pipeline-stage-title{flex:1;font-weight:500;letter-spacing:-.01em}.pipeline-stage-order{font-size:12px;font-weight:300;color:var(--text-muted);letter-spacing:.01em}.prospect-filter-bar .input-group label{font-weight:400;color:var(--text-muted)}.prospect-filter-bar .input{font-family:inherit;font-weight:400}.prospect-filter-bar .input::placeholder{color:var(--text-muted);font-weight:300;opacity:1}.prospect-filter-bar .tab{font-weight:400}.prospect-filter-bar .tab.active{font-weight:600}.badge{display:inline-flex;align-items:center;padding:2px 10px;border-radius:20px;font-size:11px;font-weight:600}.badge-blue{background:var(--accent-soft);color:var(--accent)}.badge-green{background:var(--success-soft);color:var(--success)}.badge-yellow{background:var(--warning-soft);color:var(--warning)}.badge-red{background:var(--surface);color:var(--danger)}.badge-gray{background:var(--surface-muted);color:var(--text-muted)}.badge-purple{background:var(--surface);color:var(--purple)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th{text-align:left;padding:10px 14px;font-size:12px;font-weight:600;color:var(--text-muted);background:var(--surface);border-bottom:1px solid var(--border)}td{padding:12px 14px;border-bottom:1px solid var(--border);vertical-align:middle}tr:last-child td{border-bottom:none}tr:hover td{background:var(--surface)}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--surface);z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px}.modal{background:var(--surface);border-radius:16px;width:100%;max-width:560px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px var(--shadow-color)}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--border)}.modal-header h3{font-size:16px;font-weight:600}.modal-body{padding:24px;display:flex;flex-direction:column;gap:16px}.modal-footer{display:flex;gap:10px;justify-content:flex-end;padding:16px 24px;border-top:1px solid var(--border)}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.page-header h1{font-size:22px;font-weight:700}.page-header p{font-size:13px;color:var(--text-muted);margin-top:2px}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}.stat-card{background:var(--card);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);display:flex;align-items:center;gap:16px;position:relative;overflow:hidden;transition:transform .3s ease,box-shadow .3s ease}.stat-card:hover{transform:translateY(-4px);box-shadow:0 14px 28px var(--shadow-color),0 10px 10px var(--surface)}.stat-card:after{content:"";position:absolute;top:0;right:0;width:100px;height:100%;background:linear-gradient(90deg,transparent,var(--surface));transform:skew(-20deg) translate(250px);transition:transform .6s ease;pointer-events:none}.stat-card:hover:after{transform:skew(-20deg) translate(-250px)}.stat-card-colored{color:var(--on-accent);border:none}.stat-card-colored .stat-label{color:var(--on-accent);font-weight:500;font-size:13px}.stat-card-colored .stat-value{color:var(--on-accent);text-shadow:0 2px 4px var(--shadow-color)}.stat-card-colored .stat-icon{background:var(--surface)!important;box-shadow:0 4px 15px var(--shadow-color);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.stat-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;z-index:1}.stat-value{font-size:28px;font-weight:700;line-height:1}.stat-label{font-size:12px;color:var(--text-muted);margin-top:4px}.stat-content{flex:1;min-width:0;position:relative;z-index:1}.stat-content-currency{text-align:center;width:100%;padding:0 4px}.stat-value-currency{font-size:clamp(19px,1.9vw,26px);white-space:nowrap;letter-spacing:-.35px}.stat-content-currency .stat-label{font-size:12px}.search-bar{display:flex;align-items:center;gap:10px;margin-bottom:16px;flex-wrap:wrap}.search-input-wrap{position:relative;flex:1;min-width:200px}.search-input-wrap svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--text-muted)}.search-input-wrap input{padding-left:36px}.kanban-board{display:flex;gap:16px;overflow-x:auto;padding-bottom:16px}.kanban-col{min-width:260px;max-width:260px;background:var(--surface);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px}.kanban-col-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.kanban-col-title{font-size:13px;font-weight:600}.kanban-count{background:var(--surface-muted);color:var(--text-muted);border-radius:20px;padding:1px 8px;font-size:11px;font-weight:600}.kanban-card{background:var(--surface);border-radius:10px;padding:14px;box-shadow:0 1px 4px var(--shadow-color);cursor:grab;border-left:3px solid var(--primary)}.kanban-card:active{cursor:grabbing}.kanban-card h4{font-size:13px;font-weight:600;margin-bottom:6px}.kanban-card .amount{font-size:15px;font-weight:700;color:var(--primary)}.opportunity-quick-actions .btn{min-width:0;justify-content:center;padding-left:7px;padding-right:7px}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.cal-day{min-height:90px;background:var(--surface);border-radius:8px;padding:6px;border:1px solid var(--border)}.cal-day.other-month{background:var(--surface);opacity:.5}.cal-day.today{border-color:var(--primary)}.cal-day-num{font-size:12px;font-weight:600;margin-bottom:4px}.cal-event{font-size:10px;background:var(--primary);color:var(--on-accent);border-radius:4px;padding:2px 5px;margin-bottom:2px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid .full{grid-column:1 / -1}@media (max-width: 600px){.form-grid{grid-template-columns:1fr}}.followup-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}.followup-filter{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px;text-align:left;cursor:pointer;color:var(--text-muted)}.followup-filter strong{display:block;margin-top:6px;font-size:26px;color:var(--text)}.followup-filter.active{border-color:var(--primary);box-shadow:0 0 0 2px var(--shadow-color)}.prospect-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.prospect-summary .followup-filter{padding:13px 15px}.prospect-summary .followup-filter strong{margin-top:4px;font-size:23px}.prospect-summary .prospect-stat{border-top-width:4px}.prospect-stat-day,.prospect-stat-pending,.prospect-stat-call,.prospect-stat-contacted,.prospect-stat-history{border-top-color:var(--border)}.followup-list{display:flex;flex-direction:column}.followup-row{display:flex;gap:14px;align-items:center;padding:17px 20px;border-bottom:1px solid var(--border);border-left:4px solid transparent}.followup-row:last-child{border-bottom:0}.followup-row.vencido{border-left-color:var(--danger);background:var(--surface)}.followup-row.hoy{border-left-color:var(--accent)}.followup-row.sin_fecha{border-left-color:var(--border)}.followup-icon{width:38px;height:38px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:10px;background:var(--surface-muted);color:var(--primary)}.followup-main{flex:1;min-width:0}.followup-title{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.followup-main>p{color:var(--text-muted);font-size:12px;margin-top:3px}.followup-main .followup-action{color:var(--text);font-size:13px;font-weight:500}.followup-meta{display:flex;gap:14px;flex-wrap:wrap;margin-top:7px;color:var(--text-muted);font-size:11px}.followup-meta span{display:flex;align-items:center;gap:4px}.followup-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}@media (max-width: 900px){.followup-summary{grid-template-columns:1fr 1fr}.prospect-summary{grid-template-columns:repeat(3,1fr)}.followup-row{align-items:flex-start;flex-wrap:wrap}.followup-actions{width:100%;justify-content:flex-start;margin-left:52px}}@media (max-width: 768px){.admin-preview-banner{top:60px;justify-content:space-between;gap:8px;padding:7px 10px;font-size:11px}.admin-preview-note{display:none}.admin-preview-banner button{padding:5px 8px;font-size:11px;flex-shrink:0}.setter-commission-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.setter-commission-layout{grid-template-columns:1fr}.setter-tier-grid{grid-template-columns:repeat(2,minmax(90px,1fr))}.setter-rules-grid{grid-template-columns:1fr}.opportunity-quick-actions{gap:4px!important}.opportunity-quick-actions .btn{padding:6px 5px;font-size:11px;gap:3px}.opportunity-quick-actions .btn svg{width:13px;height:13px;flex:0 0 13px}:root{--sidebar-width: 0px}body{padding-bottom:calc(66px + env(safe-area-inset-bottom))}.app-sidebar{width:100%!important;height:calc(64px + env(safe-area-inset-bottom))!important;top:auto!important;bottom:0!important;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -4px 18px var(--shadow-color)}.sidebar-brand,.sidebar-profile,.sidebar-admin-links,.sidebar-logout{display:none!important}.sidebar-nav{display:flex!important;flex-direction:row!important;align-items:stretch;gap:2px;padding:5px 6px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none}.sidebar-nav::-webkit-scrollbar{display:none}.sidebar-nav>a{min-width:72px;margin:0!important;padding:6px 5px!important;flex-direction:column!important;justify-content:center;gap:3px!important;font-size:10px!important;text-align:center;white-space:nowrap}.sidebar-nav>a svg{width:19px;height:19px}.nav-label-desktop{display:none!important}.nav-label-mobile{display:block!important;max-width:100%;overflow:hidden;text-overflow:ellipsis}.app-content{margin-left:0!important;min-width:0}.app-main{padding:14px 12px 20px!important}.app-header{height:56px!important;padding:env(safe-area-inset-top) 12px 0!important;gap:8px!important}.header-search{max-width:none!important;min-width:0}.header-search input{font-size:16px}.header-user{padding:4px!important;background:transparent!important}.header-user>div:last-child{display:none}.page-header{align-items:flex-start;gap:10px}.page-header h1{font-size:21px}.page-header>div:last-child{flex-wrap:wrap}.stats-grid{grid-template-columns:1fr 1fr;gap:10px}.stat-card{padding:15px 12px}.stat-value{font-size:23px}.followup-summary{grid-template-columns:1fr 1fr;gap:8px}.prospect-summary{grid-template-columns:1fr 1fr}.followup-filter{padding:12px}.followup-filter strong{font-size:22px}.modal{max-height:calc(100vh - 24px);overflow-y:auto;margin:12px}.table-wrap{-webkit-overflow-scrolling:touch}.dashboard-charts-row,.dashboard-bottom-row{grid-template-columns:1fr!important;gap:14px!important}.monthly-chart .recharts-responsive-container,.pipeline-chart .recharts-responsive-container{height:300px!important}.pipeline-chart .recharts-legend-wrapper{line-height:1.55;padding:0 8px}.kanban-board{gap:12px;scroll-snap-type:x mandatory;scroll-padding-left:0}.kanban-col{min-width:calc(100vw - 24px);max-width:calc(100vw - 24px);scroll-snap-align:start}.kanban-card{overflow:hidden}.kanban-card .badge{max-width:100%;white-space:normal;line-height:1.25}.kanban-card .btn{min-width:0;padding-left:8px;padding-right:8px}}@media (display-mode: standalone){body{overscroll-behavior-y:none}}.empty-state{text-align:center;padding:60px 20px;color:var(--text-muted)}.empty-state svg{margin:0 auto 16px;opacity:.4}.empty-state h3{font-size:16px;font-weight:600;color:var(--text);margin-bottom:6px}.tag{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;background:var(--primary-light);color:var(--primary-dark);border-radius:20px;font-size:11px;font-weight:500}.quick-action-menu-item{width:100%;display:flex;align-items:center;gap:8px;padding:8px 9px;border:0;border-radius:7px;background:var(--surface);color:var(--text);cursor:pointer;text-align:left;font-size:12px}.quick-action-menu-item:hover{background:var(--surface-muted)}.nav-label-mobile{display:none}.daily-plan-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.daily-plan-item{display:flex;flex-direction:column;gap:4px;padding:13px 12px;background:var(--card);border:1px solid var(--border);border-radius:9px;text-decoration:none;color:var(--text)}.daily-plan-item strong{font-size:24px;line-height:1}.daily-plan-item span{font-size:11px;color:var(--text-muted)}@media (max-width: 768px){.daily-plan-grid{grid-template-columns:1fr 1fr;gap:8px}.chat-shell{height:calc(100vh - 185px);min-height:440px;position:relative}.chat-people{width:82px;flex-basis:82px;padding:7px 5px}.chat-section-title{display:none}.chat-person{justify-content:center;padding:8px 4px;position:relative}.chat-person-copy{display:none}.chat-unread{position:absolute;top:2px;right:2px}.chat-avatar{width:38px;height:38px;flex-basis:38px}.chat-header{height:52px;flex-basis:52px;padding:8px 12px}.chat-messages{padding:12px 9px}.chat-bubble{max-width:85%}.chat-compose{padding:8px 48px 8px 8px}.chat-compose .btn{padding:10px}.chat-compose .btn svg{margin:0}.chat-compose .btn{font-size:0}}.spinner{width:36px;height:36px;border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .7s linear infinite;margin:40px auto}@keyframes spin{to{transform:rotate(360deg)}}.tabs{display:flex;gap:4px;border-bottom:2px solid var(--border);margin-bottom:20px}.tab{padding:8px 16px;background:none;border:none;cursor:pointer;font-size:14px;font-weight:500;color:var(--text-muted);border-bottom:2px solid transparent;margin-bottom:-2px;transition:all .15s}.tab.active{color:var(--primary);border-bottom-color:var(--primary)}body,.card,.app-header,.app-sidebar,.modal,.input,input,select,textarea{transition:background-color .2s ease,color .2s ease,border-color .2s ease}.crm-command-center{max-width:1640px;margin:0 auto}.glass-card{background:linear-gradient(145deg,var(--surface),var(--surface));border:1px solid var(--border);border-radius:18px;box-shadow:0 24px 65px var(--shadow-color),inset 0 1px var(--surface);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.crm-command-header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:22px}.crm-command-header h1{color:var(--text);font-size:clamp(25px,2.3vw,36px);letter-spacing:-.035em;line-height:1.08;margin:5px 0 7px}.crm-command-header p{color:var(--text-muted);font-size:13px;text-transform:capitalize}.crm-live-row{display:inline-flex;align-items:center;gap:7px;color:var(--teal);font-size:10px;font-weight:800;letter-spacing:.11em}.crm-live-dot{width:7px;height:7px;border-radius:50%;background:var(--teal);box-shadow:0 0 0 5px var(--shadow-color),0 0 18px var(--teal);animation:crmPulse 1.8s ease-in-out infinite}@keyframes crmPulse{50%{opacity:.5;transform:scale(.75)}}.crm-sync-status{display:flex;align-items:center;gap:8px;color:var(--text-muted);padding:9px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);font-size:11px}.crm-sync-status svg{color:var(--teal)}.crm-sync-status strong{color:var(--teal);font-variant-numeric:tabular-nums}.crm-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.crm-kpi-card{min-height:154px;padding:17px 18px;position:relative;overflow:hidden;text-decoration:none;color:var(--text);transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}.crm-kpi-card:before{content:"";position:absolute;width:120px;height:120px;right:-46px;top:-52px;border-radius:50%;background:var(--kpi-color);opacity:.12;filter:blur(16px)}.crm-kpi-card:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--kpi-color) 45%,transparent);box-shadow:0 25px 65px var(--shadow-color),0 0 34px color-mix(in srgb,var(--kpi-color) 12%,transparent)}.crm-kpi-top{display:flex;justify-content:space-between;align-items:center;color:var(--text-muted);font-size:12px}.crm-kpi-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;color:var(--kpi-color);background:color-mix(in srgb,var(--kpi-color) 13%,transparent);border:1px solid color-mix(in srgb,var(--kpi-color) 35%,transparent);box-shadow:0 0 24px color-mix(in srgb,var(--kpi-color) 17%,transparent)}.crm-kpi-card>strong{display:block;font-size:30px;line-height:1;margin:7px 0 5px;letter-spacing:-.03em}.crm-kpi-card>small{display:flex;align-items:center;gap:3px;color:var(--kpi-color);font-size:10px;font-weight:650}.crm-sparkline{position:absolute;left:16px;right:16px;bottom:8px;width:calc(100% - 32px);height:31px;filter:drop-shadow(0 0 6px var(--kpi-color));opacity:.9}.crm-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:16px}.crm-attention-panel,.crm-activity-panel,.crm-chart-panel,.crm-quick-panel{padding:19px}.crm-panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:15px}.crm-panel-heading h2{color:var(--text);font-size:17px;letter-spacing:-.015em;margin-top:4px}.crm-panel-heading p{color:var(--text-muted);font-size:11px;margin-top:3px}.crm-panel-heading>a{display:flex;align-items:center;gap:4px;color:var(--purple);font-size:11px;text-decoration:none}.crm-panel-heading.compact{margin-bottom:12px}.crm-eyebrow{display:flex;align-items:center;gap:6px;color:var(--purple);font-size:9px;letter-spacing:.12em;font-weight:800}.crm-attention-list,.crm-timeline{display:flex;flex-direction:column}.crm-attention-row{display:flex;align-items:center;gap:11px;min-height:66px;padding:10px 3px;border-top:1px solid var(--border);color:var(--text);text-decoration:none;transition:background .18s,padding .18s}.crm-attention-row:hover{background:var(--purple-soft);padding-left:9px;padding-right:9px;border-radius:12px}.crm-priority-orb{width:32px;height:32px;flex:0 0 32px;border-radius:10px;display:grid;place-items:center;background:var(--teal-soft);color:var(--teal);border:1px solid var(--border);font-size:11px;font-weight:800}.crm-priority-orb.danger{background:var(--danger-soft);color:var(--danger);border-color:var(--border);box-shadow:0 0 20px var(--shadow-color)}.crm-attention-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.crm-attention-copy strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crm-attention-copy span{color:var(--text-muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crm-attention-meta{display:flex;flex-direction:column;align-items:flex-end;gap:5px}.crm-attention-meta small{color:var(--text-muted);font-size:9px}.crm-status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:9px;font-weight:750}.crm-status-pill.cyan{color:var(--teal);background:var(--teal-soft);border:1px solid var(--border)}.crm-status-pill.danger{color:var(--danger);background:var(--danger-soft);border:1px solid var(--border)}.crm-status-pill.purple{color:var(--accent);background:var(--purple-soft);border:1px solid var(--border)}.crm-timeline-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 0;border-top:1px solid var(--border)}.crm-timeline-icon{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;color:var(--accent);background:var(--purple-soft)}.crm-timeline-icon.tone-1{color:var(--teal);background:var(--teal-soft)}.crm-timeline-icon.tone-2{color:var(--danger);background:var(--danger-soft)}.crm-timeline-row>div{min-width:0;display:flex;flex-direction:column;gap:3px}.crm-timeline-row strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-timeline-row span,.crm-timeline-row time{color:var(--text-muted);font-size:9px}.crm-chart-panel{min-height:350px}.crm-chart-legend{display:flex;gap:18px;padding-left:12px;color:var(--text-muted);font-size:10px}.crm-chart-legend span{display:flex;align-items:center;gap:6px}.crm-chart-legend i{width:7px;height:7px;border-radius:50%;box-shadow:0 0 10px currentColor}.crm-chart-legend .purple{background:var(--purple);color:var(--purple)}.crm-chart-legend .cyan{background:var(--teal);color:var(--teal)}.crm-quick-panel{display:flex;flex-direction:column;gap:10px;align-self:stretch}.crm-quick-action{display:grid;grid-template-columns:38px minmax(0,1fr) 16px;gap:11px;align-items:center;padding:13px;border:1px solid var(--border);border-radius:14px;color:var(--text);text-decoration:none;background:var(--surface);transition:transform .18s,border-color .18s,background .18s}.crm-quick-action:hover{transform:translate(4px);background:var(--surface)}.crm-quick-action>svg:first-child{padding:9px;width:38px;height:38px;border-radius:11px}.crm-quick-action.purple>svg:first-child{color:var(--accent);background:var(--purple-soft)}.crm-quick-action.cyan>svg:first-child{color:var(--teal);background:var(--teal-soft)}.crm-quick-action.pink>svg:first-child{color:var(--danger);background:var(--danger-soft)}.crm-quick-action span{display:flex;flex-direction:column;gap:3px}.crm-quick-action strong{font-size:11px}.crm-quick-action small{color:var(--text-muted);font-size:9px}.crm-empty-success{display:flex;align-items:center;justify-content:center;gap:10px;min-height:120px;color:var(--teal)}.crm-empty-success>div{display:flex;flex-direction:column;gap:3px}.crm-empty-success strong{color:var(--text);font-size:12px}.crm-empty-success span{color:var(--text-muted);font-size:10px}@media (max-width:1100px){.crm-kpi-grid{grid-template-columns:1fr 1fr}.crm-dashboard-grid{grid-template-columns:1fr}.crm-activity-panel{grid-row:3}.crm-quick-panel{grid-row:4}}@media (max-width:600px){.crm-command-header{align-items:flex-start;flex-direction:column}.crm-sync-status{align-self:stretch;justify-content:center}.crm-kpi-grid{grid-template-columns:1fr 1fr;gap:9px}.crm-kpi-card{min-height:132px;padding:13px}.crm-kpi-card>strong{font-size:25px}.crm-attention-meta{display:none}.crm-attention-panel,.crm-activity-panel,.crm-chart-panel,.crm-quick-panel{padding:14px}.glass-card{border-radius:16px}}.personal-hub{--hub-cyan:var(--teal);--hub-purple:var(--purple-soft);display:flex;flex-direction:column;gap:18px;color:var(--text)}.hub-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:8px 2px 4px}.hub-hero h1{margin:7px 0 4px;color:var(--text);font-size:28px;letter-spacing:-.04em}.hub-hero p{color:var(--text-muted);font-size:12px}.hub-system{display:flex;align-items:center;gap:7px;color:var(--hub-cyan);font-size:9px;font-weight:850;letter-spacing:.15em}.hub-schema-badge{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:2px 8px;min-width:210px;padding:11px 14px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}.hub-schema-badge>span{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;color:var(--on-accent);background:linear-gradient(135deg,var(--teal),var(--accent));border-radius:11px;font-size:10px;font-weight:900}.hub-schema-badge strong{font-size:11px}.hub-schema-badge small{color:var(--text-muted);font-size:9px}.hub-section{padding:18px;border:1px solid var(--border);border-radius:20px;background:linear-gradient(145deg,var(--surface),var(--surface));box-shadow:0 20px 55px var(--shadow-color)}.hub-section-heading{display:flex;align-items:center;gap:11px;margin-bottom:14px}.hub-section-heading>div:nth-child(2){min-width:0;flex:1}.hub-section-heading>div>span{color:var(--text-muted);font-size:8px;font-weight:850;letter-spacing:.14em}.hub-section-heading h2{margin:2px 0;color:var(--text);font-size:16px}.hub-section-heading p{color:var(--text-muted);font-size:10px}.hub-section-heading>strong{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:var(--teal);background:var(--teal-soft);font-size:11px}.hub-heading-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px}.hub-heading-icon.cyan{color:var(--teal);background:var(--teal-soft);box-shadow:0 0 24px var(--shadow-color)}.hub-heading-icon.purple{color:var(--accent);background:var(--purple-soft)}.hub-heading-icon.blue{color:var(--accent);background:var(--accent-soft)}.hub-composer{display:flex;gap:8px;margin-bottom:13px}.hub-composer input{min-width:0;flex:1;height:38px;padding:0 12px;color:var(--text);border:1px solid var(--border);border-radius:11px;outline:none;background:var(--surface);font-size:11px}.hub-composer input:focus{border-color:var(--border);box-shadow:0 0 0 3px var(--shadow-color)}.hub-composer button{display:flex;align-items:center;justify-content:center;gap:5px;height:38px;padding:0 13px;border:0;border-radius:11px;color:var(--on-accent);background:linear-gradient(135deg,var(--teal),var(--accent));font-size:10px;font-weight:800;cursor:pointer}.hub-composer button:disabled{opacity:.45;cursor:not-allowed}.hub-composer-agenda input[type=datetime-local],.hub-composer-resource input:nth-child(2){max-width:190px}.hub-inbox-list,.hub-agenda-list,.hub-resource-list{display:flex;flex-direction:column;gap:7px}.hub-inbox-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.hub-inbox-item>div:nth-child(2){display:flex;flex-direction:column;gap:2px}.hub-inbox-item strong,.hub-task>strong{color:var(--text);font-size:11px}.hub-inbox-item p,.hub-task p,.hub-agenda-list p{color:var(--text-muted);font-size:10px}.hub-inbox-item small,.hub-task>small{color:var(--text-muted);font-size:8px}.hub-source{padding:4px 7px;border-radius:99px;color:var(--text-muted);background:var(--surface-muted);font-size:7px;font-weight:850;text-transform:uppercase}.hub-source.puchi{color:var(--teal);background:var(--teal-soft)}.hub-item-actions{display:flex;align-items:center;gap:5px}.hub-item-actions button,.hub-item-actions select{height:27px;border:1px solid var(--border);border-radius:8px;color:var(--text-muted);background:var(--surface);cursor:pointer}.hub-item-actions button{width:27px;display:grid;place-items:center}.hub-item-actions button:hover{color:var(--teal);border-color:var(--border)}.hub-item-actions select{max-width:108px;padding:0 5px;font-size:8px}.hub-kanban{display:grid;grid-template-columns:repeat(5,minmax(170px,1fr));gap:9px;overflow-x:auto;padding-bottom:4px}.hub-kanban-column{min-height:175px;padding:9px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}.hub-kanban-column>header{display:flex;align-items:flex-start;justify-content:space-between;gap:7px;margin-bottom:9px}.hub-kanban-column>header div{display:flex;flex-direction:column;gap:2px}.hub-kanban-column>header strong{color:var(--text);font-size:10px}.hub-kanban-column>header small{color:var(--text-muted);font-size:7px}.hub-kanban-column>header>span{color:var(--text-muted);font-size:9px}.status-hoy,.status-en_proceso{border-color:var(--border)}.status-hecho{opacity:.78}.hub-task-list{display:flex;flex-direction:column;gap:7px}.hub-task{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--border);border-radius:11px;background:linear-gradient(145deg,var(--surface),var(--surface))}.hub-task .hub-item-actions{justify-content:flex-end;margin-top:2px}.hub-lower-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.hub-agenda-list article,.hub-resource-list article{display:grid;align-items:center;gap:10px;padding:9px 10px;border-top:1px solid var(--border)}.hub-agenda-list article{grid-template-columns:52px minmax(0,1fr) auto}.hub-agenda-list time{display:flex;flex-direction:column;color:var(--teal)}.hub-agenda-list time strong{font-size:13px}.hub-agenda-list time span{color:var(--text-muted);font-size:8px;text-transform:uppercase}.hub-agenda-list article>div:nth-child(2){display:flex;flex-direction:column;gap:2px}.hub-agenda-list article>div>strong,.hub-resource-list article>div>strong{color:var(--text);font-size:10px}.hub-resource-list article{grid-template-columns:30px minmax(0,1fr) auto auto}.hub-resource-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:var(--teal);background:var(--teal-soft)}.hub-resource-list article>div:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:2px}.hub-resource-list article>div>span{overflow:hidden;color:var(--text-muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.hub-resource-list a{color:var(--text-muted)}.hub-first-run{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;color:var(--teal);font-size:10px}@media (max-width:1000px){.hub-kanban{grid-template-columns:repeat(5,220px)}.hub-lower-grid{grid-template-columns:1fr}}@media (max-width:620px){.hub-hero{align-items:flex-start;flex-direction:column}.hub-schema-badge{width:100%}.hub-section{padding:13px;border-radius:16px}.hub-composer{flex-wrap:wrap}.hub-composer input{flex-basis:70%}.hub-composer-agenda input[type=datetime-local],.hub-composer-resource input:nth-child(2){max-width:none;flex-basis:100%}.hub-kanban{grid-template-columns:repeat(5,82vw)}.hub-lower-grid{gap:12px}.hub-section-heading p{white-space:normal}}body{font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Inter,system-ui,sans-serif;background:radial-gradient(ellipse at 20% 0%,var(--ambient),transparent 65%),var(--bg);background-attachment:fixed;line-height:1.45}button,input,select,textarea{font-family:inherit}a{color:var(--accent)}h1,h2,h3{letter-spacing:-.025em}.app-content,.app-main{min-width:0}.app-main>*{min-width:0;max-width:100%}.card,.glass-card,.hub-section,.modal,.kanban-card,.stat-card,.login-card{background:var(--glass);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);backdrop-filter:var(--blur);-webkit-backdrop-filter:var(--blur);color:var(--text)}.app-header,.app-sidebar{backdrop-filter:var(--blur);-webkit-backdrop-filter:var(--blur)}.app-sidebar{border-right:1px solid var(--border);box-shadow:6px 0 32px var(--shadow-color)}.sidebar-nav a{border-radius:999px!important;min-height:44px}.sidebar-nav a:hover{background:var(--nav-hover)!important;color:var(--accent)!important}.sidebar-nav a[aria-current=page]{box-shadow:var(--shadow)}.sidebar-nav a[aria-current=page] svg{color:var(--accent)}.sidebar-logout button{border-radius:999px!important}.btn{justify-content:center;border-radius:999px;min-height:40px;font-weight:600;transition:background .18s,box-shadow .18s}.btn-primary,.login-submit,.hub-composer button{background:var(--accent);color:var(--on-accent);box-shadow:inset 0 1px 0 var(--highlight),0 4px 12px var(--shadow-color)}.btn-primary:hover,.login-submit:hover{background:var(--accent-hover)}.btn-secondary,.btn-icon{background:var(--glass-strong);color:var(--text);border:1px solid var(--border)}.btn-secondary:hover,.btn-icon:hover{background:var(--surface-muted)}.btn-icon{justify-content:center;border-radius:50%;min-width:36px;min-height:36px}.theme-toggle{width:36px;height:36px;flex-shrink:0;color:var(--accent)}@media (max-width:768px){.theme-toggle{width:40px;height:40px}}button:disabled,.btn:disabled{opacity:.55;cursor:not-allowed}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.input,.hub-composer input,.chat-compose textarea{background:var(--input-bg);color:var(--text);border:1px solid var(--border);border-radius:14px;min-height:42px}.input:focus,.hub-composer input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}input::placeholder,textarea::placeholder{color:var(--text-muted);opacity:1}input[type=checkbox],input[type=radio]{accent-color:var(--accent)}select option{color:var(--text);background:var(--surface)}.modal-overlay{background:var(--overlay);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.modal{background:var(--glass-strong);max-width:calc(100vw - 24px)}.modal-header,.modal-footer{border-color:var(--border)}.table-wrap{max-width:100%;overflow-x:auto;border-radius:16px}th{color:var(--text-muted);background:var(--surface-muted)}td{border-color:var(--border)}tr:hover td{background:var(--accent-soft)}.kanban-board{max-width:100%;overflow-x:auto}.kanban-col,.hub-kanban-column{background:var(--surface-muted);border-color:var(--border);border-radius:18px}.tag,.badge{border-radius:999px}.recharts-cartesian-grid line{stroke:var(--chart-grid)}.recharts-cartesian-axis-tick-value{fill:var(--chart-label)}.recharts-default-tooltip{background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:14px;color:var(--text)}.recharts-tooltip-label{color:var(--text)}.recharts-legend-item-text{color:var(--text-muted)!important}.app-loading{background:var(--bg);color:var(--text-muted)}.login-page{min-height:100dvh;display:flex;background:radial-gradient(ellipse at top,var(--ambient),transparent 70%),var(--bg)}.login-shell{display:flex;align-items:center;justify-content:center;width:100%;padding:24px}.login-card{width:100%;max-width:420px;padding:44px 36px}.login-title{color:var(--text);font-size:32px;line-height:1.15;letter-spacing:-.04em}.login-subtitle{color:var(--text-muted);margin-top:10px;font-size:13px}.login-remember{display:flex;align-items:center;gap:8px;color:var(--text-muted);font-size:12px}.hub-hero h1,.hub-section-heading h2{color:var(--text)}.hub-system,.hub-schema-badge,.hub-heading-icon.cyan,.hub-heading-icon.purple,.hub-heading-icon.blue{color:var(--accent)}.hub-schema-badge,.hub-sync-status,.crm-sync-status,.hub-task{background:var(--glass);border-color:var(--border)}.hub-composer button{border-radius:999px}.hub-item-actions button,.hub-item-actions select{background:var(--surface);color:var(--text-muted)}.hub-section-heading p,.hub-inbox-item p,.hub-task p,.hub-agenda-list p{font-size:12px}.hub-section-heading>div>span,.hub-kanban-column>header small,.hub-inbox-item small,.hub-task>small,.hub-source,.hub-resource-list article>div>span{font-size:11px}.hub-inbox-item strong,.hub-task>strong,.hub-agenda-list article>div>strong,.hub-resource-list article>div>strong,.hub-kanban-column>header strong{font-size:13px}.hub-kanban{min-width:0;max-width:100%}.hub-lower-grid>*{min-width:0}.sheet-leads h1{line-height:1.2;margin:5px 0 8px}.lead-card{display:flex;flex-direction:column}.lead-card h3{font-size:19px!important;line-height:1.3}.lead-phone{font-size:20px;letter-spacing:-.02em;font-variant-numeric:tabular-nums}.lead-card>div:last-child{margin-top:auto;padding-top:10px}.lead-call{flex:1;min-height:48px!important}.lead-status{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:600;background:var(--surface-muted);color:var(--text-muted)}.lead-status-nuevo{background:var(--accent-soft);color:var(--accent)}.lead-status-no_contesta{background:var(--warning-soft);color:var(--warning)}.lead-status-volver_llamar{background:var(--purple-soft);color:var(--purple)}.lead-status-interesado{background:var(--success-soft);color:var(--success)}.lead-status-agendado{background:var(--teal-soft);color:var(--teal)}.lead-status-no_interesado{background:var(--surface-muted);color:var(--text-muted)}.lead-status-numero_erroneo{background:var(--danger-soft);color:var(--danger)}.lead-duplicate{border:1px solid var(--warning);border-radius:14px!important}.lead-duplicate a{color:inherit;text-decoration:underline}.lead-status-filters{padding:5px;gap:4px!important;border-radius:20px;background:var(--surface-muted)}.lead-status-filters .btn{background:transparent;border:1px solid transparent;color:var(--text-muted);box-shadow:none}.lead-status-filters .btn[aria-pressed=true]{background:var(--surface);color:var(--accent);box-shadow:var(--shadow)}.sheet-leads label{line-height:1.7}@media (min-width:769px){.app-sidebar{left:12px!important;top:12px!important;height:calc(100dvh - 24px)!important;width:calc(var(--sidebar-width) - 12px)!important;border:1px solid var(--border);border-radius:26px;overflow:hidden}}@media (max-width:768px){.app-header>div:last-child{gap:6px!important;flex-shrink:0}.app-sidebar{background:var(--glass-strong)!important}.sidebar-nav{display:grid!important;grid-template-columns:repeat(10,minmax(0,1fr));gap:0;overflow:visible!important}.sidebar-nav:has(>a:nth-child(5):last-child){grid-template-columns:repeat(5,minmax(0,1fr))}.sidebar-nav>a{min-width:0;padding:6px 1px!important;font-size:8px!important;border-radius:12px!important}.sidebar-nav>a svg{width:17px;height:17px}.btn,.btn-icon{min-height:44px}.btn-icon{min-width:44px}.page-header{flex-wrap:wrap}.sheet-leads .lead-status-filters{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}.sheet-leads .lead-status-filters::-webkit-scrollbar{display:none}.sheet-leads .lead-status-filters .btn{flex:0 0 auto;white-space:nowrap}.sheet-leads .input{min-width:0!important}.input,select,textarea{font-size:16px}.modal-overlay{padding:0;align-items:flex-end}.modal{margin:0 0 env(safe-area-inset-bottom);width:100%!important;max-width:100%;max-height:92dvh;border-radius:26px 26px 0 0}.modal-body{padding:18px}.login-card{padding:32px 24px}.hub-item-actions button{width:44px;height:44px}.hub-item-actions select{height:44px;font-size:12px}.hub-inbox-item{grid-template-columns:minmax(0,1fr) auto}.hub-inbox-item>.hub-source{grid-column:1 / -1;justify-self:start}}@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root,html[data-theme=dark]{--glass:var(--surface);--glass-strong:var(--surface)}}@media (prefers-reduced-transparency:reduce){:root,html[data-theme=dark]{--glass:var(--surface);--glass-strong:var(--surface);--blur:none}}@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.stat-card-colored,.stat-card-colored .stat-label,.stat-card-colored .stat-value{color:var(--text);background:var(--glass);text-shadow:none}.react-flow__controls-button{background:var(--surface);color:var(--text);border-color:var(--border);fill:currentColor}.react-flow__controls-button:hover{background:var(--surface-muted)}.react-flow__attribution{background:var(--surface)}.react-flow__attribution a{color:var(--text-muted)}:root{--kpi-color:var(--accent)}@media (max-width:768px){body{padding-bottom:calc(120px + env(safe-area-inset-bottom))}.app-sidebar{height:calc(116px + env(safe-area-inset-bottom))!important}.sidebar-nav{grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:52px}.sidebar-nav>a{font-size:10px!important}.sidebar-nav>a svg{width:19px;height:19px}.app-sidebar:has(.sidebar-nav>a:nth-child(5):last-child){height:calc(64px + env(safe-area-inset-bottom))!important}body:has(.sidebar-nav>a:nth-child(5):last-child){padding-bottom:calc(68px + env(safe-area-inset-bottom))}.app-main [style*="grid-template-columns: 1fr 1fr"],.app-main [style*="grid-template-columns: repeat(3"],.app-main [style*="grid-template-columns: repeat(4"]{grid-template-columns:minmax(0,1fr)!important}}:root{--whatsapp: #25D366;--whatsapp-icon: rgb(255 255 255);--waiting: rgb(57 75 164);--waiting-soft: rgb(232 235 252)}html[data-theme=dark]{--waiting: rgb(175 189 255);--waiting-soft: rgb(43 49 83)}.btn-whatsapp,.btn-whatsapp:hover{background:var(--whatsapp);color:var(--whatsapp-icon);min-width:44px;min-height:44px}.lead-status-quiere_agendar{color:var(--waiting);background:var(--waiting-soft)}.lead-availability{padding:12px;margin:10px 0;border-radius:12px;background:var(--waiting-soft);color:var(--waiting);white-space:pre-wrap;overflow-wrap:anywhere;font-weight:600}.agenda-page{max-width:1240px;margin:0 auto;padding-bottom:28px}.agenda-heading{margin-bottom:28px}.agenda-eyebrow{color:var(--accent);text-transform:uppercase;font-size:12px;letter-spacing:.12em;font-weight:700;margin-bottom:8px}.agenda-heading h1{font-size:clamp(24px,3vw,34px);letter-spacing:-.035em;margin-bottom:10px}.agenda-section{margin-bottom:32px}.agenda-section h2{font-size:20px;margin-bottom:16px}.agenda-section h2 span{color:var(--text-muted);font-size:15px;font-weight:500}.agenda-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}.agenda-card{--agenda-tint:var(--accent);--agenda-soft:var(--accent-soft);padding:9px;display:flex;flex-direction:column;min-width:0;border:1px solid var(--border);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);overflow-wrap:anywhere}.agenda-status-no_contesta{--agenda-tint:var(--warning);--agenda-soft:var(--warning-soft)}.agenda-status-volver_llamar{--agenda-tint:var(--purple);--agenda-soft:var(--purple-soft)}.agenda-status-interesado{--agenda-tint:var(--success);--agenda-soft:var(--success-soft)}.agenda-status-agendado{--agenda-tint:var(--teal);--agenda-soft:var(--teal-soft)}.agenda-status-quiere_agendar{--agenda-tint:var(--waiting);--agenda-soft:var(--waiting-soft)}.agenda-overdue{--agenda-tint:var(--danger);--agenda-soft:var(--danger-soft)}.agenda-card-header{min-height:120px;padding:18px;border-radius:16px;display:flex;flex-direction:column;gap:4px;color:var(--agenda-tint);background:radial-gradient(ellipse at 95% 0%,color-mix(in srgb,var(--agenda-tint) 20%,transparent),transparent 70%),linear-gradient(135deg,var(--agenda-soft),var(--surface))}.agenda-time{font-size:36px;font-weight:700;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.agenda-card-header>span:last-child{font-size:12px;font-weight:600}.agenda-card-body{padding:16px 10px;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:9px}.agenda-card-body h3{font-size:18px}.agenda-chips{display:flex;flex-wrap:wrap;gap:6px}.agenda-chips span{padding:5px 8px;border:1px solid var(--border);background:var(--surface-muted);border-radius:99px;font-size:11px}.agenda-notes{color:var(--text-muted);font-size:13px;white-space:pre-wrap}.agenda-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:4px 10px 10px}.agenda-call{flex:1;min-height:44px}.agenda-detail{min-height:44px;display:flex;align-items:center;justify-content:center;color:var(--accent);font-size:12px;padding:0 4px}.agenda-empty{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.agenda-upcoming{margin-bottom:14px}.agenda-upcoming h3{text-transform:capitalize;font-size:16px;margin-bottom:12px}.agenda-upcoming-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:14px 0;border-top:1px solid var(--border)}.agenda-upcoming-row>div{flex:1;min-width:140px;overflow-wrap:anywhere}.agenda-upcoming-row a{color:var(--text);font-weight:600}.agenda-error{margin-bottom:20px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.agenda-skeleton{height:330px;display:flex;flex-direction:column;gap:20px}.agenda-skeleton div,.agenda-skeleton span{background:var(--surface-muted);border-radius:12px;animation:agendaPulse 1.5s ease-in-out infinite alternate}.agenda-skeleton div{height:120px}.agenda-skeleton span{height:20px;width:75%}@keyframes agendaPulse{to{opacity:.4}}@media (min-width:640px){.agenda-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:1100px){.agenda-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (prefers-reduced-motion:reduce){.agenda-skeleton div,.agenda-skeleton span{animation:none}}.calendar-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px}.calendar-heading h2{margin:0}.calendar-heading .btn{min-height:44px}.calendar-event,.calendar-connect{background:var(--glass);border:1px solid var(--border);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);box-shadow:var(--shadow);min-width:0;overflow-wrap:anywhere}.calendar-event{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.calendar-event h3{font-size:18px;color:var(--text)}.calendar-event .btn{margin-top:auto;min-height:44px}.calendar-event-time{color:var(--accent);font-size:20px;font-weight:700;font-variant-numeric:tabular-nums}.calendar-now{border-color:var(--success);background:linear-gradient(var(--success-soft),var(--glass))}.calendar-next{border-color:var(--accent)}.calendar-badge{background:var(--accent-soft);color:var(--accent);padding:5px 10px;border-radius:999px;font-size:12px}.calendar-now .calendar-badge{background:var(--success-soft);color:var(--success)}.calendar-connect h3{font-size:15px;margin-bottom:8px}.calendar-connect p{font-size:13px;line-height:1.6}.owner-calendar{margin-bottom:24px}.owner-calendar .hub-section-heading{flex-wrap:wrap}.calendar-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}.calendar-row{display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:14px;background:var(--surface-muted);border:1px solid transparent}.calendar-row-time{flex:0 0 78px;white-space:nowrap;display:flex;flex-direction:column;font-weight:700;font-size:16px;color:var(--accent);font-variant-numeric:tabular-nums}.calendar-row-time small{font-size:11px;font-weight:500;color:var(--text-muted)}.calendar-row-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.calendar-row-body strong{color:var(--text);font-size:14px;overflow-wrap:anywhere}.calendar-row-body .calendar-badge{align-self:flex-start}.calendar-row.calendar-next{border-color:var(--accent);background:var(--accent-soft)}.calendar-row.calendar-now{border-color:var(--success)}.calendar-row.calendar-past{opacity:.55}@media (max-width:620px){.calendar-row{flex-wrap:wrap}.calendar-row .btn{flex:1 0 100%;min-height:44px}}.owner-calendar{border-color:color-mix(in srgb,var(--accent) 30%,var(--border));background:radial-gradient(ellipse at 100% 0%,color-mix(in srgb,var(--teal) 22%,transparent),transparent 55%),linear-gradient(135deg,color-mix(in srgb,var(--accent) 16%,var(--surface)),color-mix(in srgb,var(--accent) 5%,var(--surface)))}.owner-calendar .calendar-row{background:color-mix(in srgb,var(--surface) 78%,transparent)}.owner-calendar .calendar-row.calendar-next{background:color-mix(in srgb,var(--accent) 14%,var(--surface))}.agenda-card{border-color:color-mix(in srgb,var(--agenda-tint) 28%,var(--border));background:linear-gradient(180deg,color-mix(in srgb,var(--agenda-tint) 9%,var(--surface)),var(--surface) 70%)}.agenda-card-header{background:radial-gradient(ellipse at 95% 0%,color-mix(in srgb,var(--agenda-tint) 38%,transparent),transparent 70%),linear-gradient(135deg,color-mix(in srgb,var(--agenda-tint) 26%,var(--surface)),color-mix(in srgb,var(--agenda-tint) 8%,var(--surface)))}.whatsapp-menu-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;background:var(--overlay)}.whatsapp-menu{position:fixed;width:min(380px,calc(100vw - 24px));max-height:min(480px,calc(100dvh - 24px));overflow-y:auto;padding:16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--glass-strong);backdrop-filter:var(--blur);-webkit-backdrop-filter:var(--blur);box-shadow:var(--shadow);color:var(--text)}.whatsapp-menu header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.whatsapp-menu button,.whatsapp-menu a{min-height:44px}.whatsapp-menu .btn-icon{min-width:44px;flex-shrink:0}.whatsapp-menu p{margin:16px 0;color:var(--text-muted)}.whatsapp-template-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--border);padding:6px 0}.whatsapp-template-row>a{flex:1;min-width:0;padding:8px;color:var(--text);text-decoration:none;border-radius:10px}.whatsapp-template-row>a:hover{background:var(--surface-muted)}.whatsapp-template-row strong,.whatsapp-template-row span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whatsapp-template-row span{color:var(--text-muted);font-size:13px;margin-top:4px}.whatsapp-menu footer a{display:flex;align-items:center;margin-top:8px}.whatsapp-menu :focus-visible{outline:2px solid var(--accent);outline-offset:2px}.whatsapp-manual-copy{display:block;margin-top:12px}@media (max-width:620px){.whatsapp-menu{top:auto!important;left:0!important;bottom:0;width:100%;max-height:85dvh;border-radius:var(--radius) var(--radius) 0 0;padding-bottom:calc(16px + env(safe-area-inset-bottom))}}.lead-summary-clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.lead-import-preview{max-height:48dvh;overflow:auto;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.lead-import-preview table{width:100%;border-collapse:collapse;font-size:13px}.lead-import-preview th,.lead-import-preview td{padding:10px;text-align:left;border-bottom:1px solid var(--border);overflow-wrap:anywhere}.lead-import-preview .badge{display:inline-block;margin:3px;white-space:normal;background:var(--accent-soft);color:var(--accent)}.lead-import-error{color:var(--danger)}@media (max-width: 620px){.lead-import-preview table,.lead-import-preview tbody,.lead-import-preview tr,.lead-import-preview td{display:block}.lead-import-preview thead{display:none}.lead-import-preview tr{margin:10px;border:1px solid var(--border);border-radius:12px;padding:6px}.lead-import-preview td{border:0;padding:5px}}.badge-duplicate{background:var(--warning-soft);color:var(--warning)}.lead-quick-note{display:grid;gap:8px;margin-top:10px}.nav-hot{position:relative;font-weight:700!important;color:#fff!important;background:linear-gradient(135deg,#ff7a18,#ff3d2e 55%,#e0115f)!important;box-shadow:0 6px 18px #ff4a2659,inset 0 1px #ffffff59;animation:nav-hot-glow 2.4s ease-in-out infinite}.nav-hot svg{color:#fff3b0;filter:drop-shadow(0 0 4px rgba(255,210,80,.9))}.nav-hot:hover{filter:brightness(1.06)}.nav-hot.active{box-shadow:0 0 0 2px #ffffffb3,0 8px 22px #ff4a2673}@keyframes nav-hot-glow{0%,to{box-shadow:0 6px 18px #ff4a264d,inset 0 1px #ffffff59}50%{box-shadow:0 8px 26px #ff4a268c,inset 0 1px #ffffff59}}@media (prefers-reduced-motion:reduce){.nav-hot{animation:none}}.scheduled-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:24px}.scheduled-toolbar .input{flex:1;min-width:220px}.scheduled-toolbar .tabs{margin:0}.scheduled-card{cursor:pointer}.scheduled-open{border:0;text-align:left;width:100%;font:inherit;cursor:pointer}.scheduled-open:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}.scheduled-dialog{margin:auto;width:min(680px,calc(100% - 24px));max-height:90dvh;padding:24px;border:1px solid var(--border);border-radius:20px;background:var(--card-bg,var(--surface));color:var(--text);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);overflow:auto}.scheduled-dialog::backdrop{background:color-mix(in srgb,var(--text) 30%,transparent);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.scheduled-dialog header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.scheduled-dialog section{margin-top:22px}.scheduled-dialog h3{margin-bottom:10px}.scheduled-text{white-space:pre-wrap;overflow-wrap:anywhere}.scheduled-fields{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,2fr);gap:8px 16px;overflow-wrap:anywhere}.scheduled-fields dt{color:var(--text-muted)}.scheduled-fields dd{margin:0}.scheduled-comment{border-left:3px solid var(--accent-soft);padding:8px 12px;margin:12px 0}.scheduled-comment small{display:block}.scheduled-dialog textarea{min-height:100px;margin:8px 0}.lead-call,.agenda-call{white-space:nowrap;flex-shrink:0}.sheet-leads .btn,.agenda-card .btn{white-space:nowrap}.lead-note-btn{width:44px;min-width:44px;height:44px;padding:0!important;justify-content:center;border-radius:50%!important;font-size:18px;flex-shrink:0}.sheet-leads .lead-call{flex:1 1 auto;min-width:max-content}@media (max-width:768px){.sidebar-nav a{position:relative}.sidebar-nav a .badge{position:absolute;top:2px;right:calc(50% - 22px);margin:0!important;padding:0 5px;min-width:16px;height:16px;line-height:16px;font-size:10px;justify-content:center}}.sidebar-section-label{color:var(--text-muted);font-size:11px;font-weight:700;padding:16px 12px 6px}.preview-switcher{margin:10px;padding:12px;border:1px solid var(--border);border-radius:18px;background:var(--glass);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:var(--shadow)}.preview-switcher strong{font-size:12px}.preview-pills{display:flex;gap:4px;margin-top:8px}.preview-pills button{flex:1;padding:7px 8px;border:1px solid var(--border);border-radius:999px;color:var(--text);background:var(--surface);cursor:pointer}.preview-pills button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}.preview-mobile{display:none;position:relative}.closer-stage-control{padding:12px}.closer-stage-control fieldset{border:0;padding:0;margin:0;min-width:0}.closer-stage-control legend{font-weight:600;font-size:13px;margin-bottom:8px}.closer-segments{display:flex;flex-wrap:wrap;gap:4px}.closer-segments button{padding:7px 9px;border:1px solid var(--border);border-radius:999px;color:var(--stage-color);background:var(--glass);cursor:pointer;font-size:12px}.closer-segments button[aria-pressed=true]{border-color:var(--stage-color);background:color-mix(in srgb,var(--stage-color) 15%,var(--surface));box-shadow:var(--shadow)}.closer-stage-control fieldset:disabled{opacity:.6}.closer-stage-fields{display:grid;gap:10px;margin-top:12px}.closer-stage-fields label{display:grid;gap:5px;font-size:13px}.owner-calendar h2 small{font-size:12px;font-weight:400}@media (max-width:768px){.sidebar-section-label,.preview-desktop{display:none}.preview-mobile{display:block;font-size:11px}.preview-mobile summary{cursor:pointer;color:var(--accent)}.preview-mobile .preview-switcher{position:fixed;right:12px;top:56px;width:260px;background:var(--surface);z-index:210}.sidebar-role-admin .sidebar-nav,.sidebar-role-gerente .sidebar-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-rows:48px}.sidebar-role-admin,.sidebar-role-gerente{height:calc(154px + env(safe-area-inset-bottom))!important}body:has(.sidebar-role-admin),body:has(.sidebar-role-gerente){padding-bottom:calc(158px + env(safe-area-inset-bottom))}.sidebar-role-closer .sidebar-nav{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:48px}.sidebar-role-closer{height:calc(106px + env(safe-area-inset-bottom))!important}body:has(.sidebar-role-closer){padding-bottom:calc(110px + env(safe-area-inset-bottom))}}.preview-desktop .preview-pills,.preview-switcher .preview-pills{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}.preview-pills button{width:100%;white-space:nowrap}.preview-switcher-settings .preview-pills{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:520px}@media (max-width:620px){.preview-switcher-settings .preview-pills{grid-template-columns:1fr 1fr}}.header-mobile-logout{display:none!important}@media (max-width:768px){.header-mobile-logout{display:inline-flex!important}}.new-closer-dialog{background:var(--glass-strong)}.new-closer-dialog fieldset{border:0;padding:0;display:grid;gap:16px;min-width:0}.new-closer-dialog label{display:grid;gap:6px}.owner-calendar .calendar-list{max-height:min(560px,62vh);overflow-y:auto;overscroll-behavior:contain;padding-right:4px;scrollbar-width:thin}:root{--metric-tomato: #d50000;--metric-tomato-accent: #a60000;--metric-tangerine: #f4511e;--metric-tangerine-accent: #a33309;--metric-banana: #f6bf26;--metric-banana-accent: #725200;--metric-sage: #33b679;--metric-sage-accent: #146342;--metric-basil: #0b8043;--metric-basil-accent: #095d31;--metric-peacock: #039be5;--metric-peacock-accent: #00608d;--metric-blueberry: #3f51b5;--metric-blueberry-accent: #303f91;--metric-lavender: #7986cb;--metric-lavender-accent: #4c5791;--metric-grape: #8e24aa;--metric-grape-accent: #75178d;--metric-flamingo: #e67c73;--metric-flamingo-accent: #923d36;--metric-graphite: #616161;--metric-graphite-accent: #454545}html[data-theme=dark]{--metric-tomato: #ff9898;--metric-tomato-accent: #ff9898;--metric-tangerine: #ffae87;--metric-tangerine-accent: #ffae87;--metric-banana: #ffe089;--metric-banana-accent: #ffe089;--metric-sage: #93e4b7;--metric-sage-accent: #93e4b7;--metric-basil: #86dfac;--metric-basil-accent: #86dfac;--metric-peacock: #89d8ff;--metric-peacock-accent: #89d8ff;--metric-blueberry: #b4bfff;--metric-blueberry-accent: #b4bfff;--metric-lavender: #c7ceff;--metric-lavender-accent: #c7ceff;--metric-grape: #e7a9f8;--metric-grape-accent: #e7a9f8;--metric-flamingo: #ffc0b9;--metric-flamingo-accent: #ffc0b9;--metric-graphite: #d2d5dd;--metric-graphite-accent: #d2d5dd}.daily-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:0 0 20px}.daily-metric{position:relative;min-width:0;padding:14px;border:1px solid var(--border);border-radius:var(--radius);background:color-mix(in srgb,var(--tile-color,var(--surface-muted)) 14%,var(--surface));box-shadow:var(--shadow);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur)}.daily-metric strong{display:block;padding-right:20px;color:var(--tile-accent,var(--text));font-size:26px;line-height:1.2;overflow-wrap:anywhere}.daily-metric>span{display:block;margin-top:7px;font-size:12px;color:var(--text)}.daily-metric>svg{position:absolute;right:12px;top:15px;color:var(--tile-accent)}.daily-metric .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.metric-skeleton span{height:18px;width:70%;background:var(--surface-muted);border-radius:6px}.metric-skeleton span:first-child{height:28px;width:45%}.sale-card-money{margin:0;padding:0 16px 12px;font-size:13px}.closer-stage-fields label{min-width:0}.closer-stage-fields input{width:100%;min-width:0}@media (max-width:768px){.daily-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar-role-admin,.sidebar-role-gerente,.sidebar-role-closer{height:calc(124px + env(safe-area-inset-bottom))!important}.sidebar-role-admin .sidebar-nav,.sidebar-role-gerente .sidebar-nav,.sidebar-role-closer .sidebar-nav{grid-template-columns:none!important;grid-template-rows:repeat(2,56px);grid-auto-flow:column;grid-auto-columns:88px;overflow-x:auto!important;overflow-y:hidden!important}.sidebar-role-closer .sidebar-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-flow:row}.sidebar-role-closer .nav-label-mobile{white-space:normal;font-size:9px;line-height:1.1}body:has(.sidebar-role-admin),body:has(.sidebar-role-gerente),body:has(.sidebar-role-closer){padding-bottom:calc(130px + env(safe-area-inset-bottom))}}
